/* Shur Events Calendar. Styled to match the Shur Sales & Marketing site:
   charcoal panels, Barlow Condensed uppercase headings with a red marker,
   gold labels and outlined gold buttons. Everything is scoped to .shur-ev
   so the rest of the theme isn't affected. Adjust colors here if needed. */
.shur-ev, .shur-ev-overlay{
  --sev-surface:#2D3135; --sev-raised:#383C41; --sev-sunk:#25282C; --sev-line:#41464C;
  --sev-ink:#F3F3F1; --sev-muted:#A4A9AE; --sev-gold:#BFA56B; --sev-red:#E4472B; --sev-on-red:#FFFFFF;
  --c-wear:#E4472B; --c-training:#5E9FE6; --c-webinar:#6DB27E; --c-show:#E39B3A; --c-other:#A898E6;
  --sev-display:'Barlow Condensed','Arial Narrow',Arial,sans-serif;
  --sev-radius:6px;
  color:var(--sev-ink); font-size:16px; line-height:1.5; color-scheme:dark;
}
.shur-ev *, .shur-ev-overlay *{box-sizing:border-box}
/* neutralize theme button styling */
.shur-ev button, .shur-ev-overlay button{background:none;border:0;box-shadow:none;margin:0;padding:0;min-height:0;font:inherit;color:inherit;text-transform:none;letter-spacing:normal;line-height:inherit;border-radius:0;cursor:pointer;width:auto}
.shur-ev button:hover, .shur-ev-overlay button:hover{background:none;color:inherit}
.shur-ev a, .shur-ev-overlay a{color:inherit}
.shur-ev :focus-visible, .shur-ev-overlay :focus-visible{outline:2px solid var(--sev-gold);outline-offset:2px}

/* shared pieces: section heading with red marker, gold label, outlined gold button */
.shur-ev .sev-h, .shur-ev-overlay .sev-h{font-family:var(--sev-display);font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:var(--sev-ink);border-left:4px solid var(--sev-red);padding-left:12px;line-height:1.05;margin:0}
.shur-ev .sev-label, .shur-ev-overlay .sev-label{font-family:var(--sev-display);font-weight:600;font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;color:var(--sev-gold)}
.shur-ev .sev-outline, .shur-ev-overlay .sev-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--sev-display);font-weight:700;font-size:.95rem;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--sev-gold);border-radius:var(--sev-radius);color:var(--sev-ink);background:transparent;text-decoration:none;transition:background .15s,border-color .15s}
.shur-ev .sev-outline:hover, .shur-ev-overlay .sev-btn:hover{background:color-mix(in srgb,var(--sev-gold) 14%,transparent)}

/* toolbar */
.shur-ev .sev-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.shur-ev .sev-seg{display:inline-flex;border:1px solid var(--sev-line);border-radius:var(--sev-radius);overflow:hidden;background:var(--sev-surface)}
.shur-ev .sev-seg button{padding:8px 18px;font-family:var(--sev-display);font-weight:700;font-size:.95rem;letter-spacing:.06em;text-transform:uppercase;color:var(--sev-muted)}
.shur-ev .sev-seg button[aria-pressed="true"]{background:var(--sev-raised);color:var(--sev-ink);box-shadow:inset 3px 0 0 var(--sev-red)}
.shur-ev select{font:inherit;font-size:.95rem;padding:8px 12px;border:1px solid var(--sev-line);border-radius:var(--sev-radius);background:var(--sev-sunk);color:var(--sev-ink);width:auto;height:auto}

.shur-ev .sev-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.shur-ev .sev-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--sev-line);background:var(--sev-surface);border-radius:var(--sev-radius);padding:6px 12px;font-family:var(--sev-display);font-weight:700;font-size:.92rem;letter-spacing:.06em;text-transform:uppercase;color:var(--sev-muted)}
.shur-ev .sev-chip i{width:9px;height:9px;border-radius:2px;background:var(--c);opacity:.45}
.shur-ev .sev-chip[aria-pressed="true"]{color:var(--sev-ink);border-color:var(--sev-gold)}
.shur-ev .sev-chip[aria-pressed="true"] i{opacity:1}

.shur-ev .sev-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:start}
@media (max-width:960px){.shur-ev .sev-layout{grid-template-columns:minmax(0,1fr)}}

/* month grid */
.shur-ev .sev-cal{background:var(--sev-surface);border:1px solid var(--sev-line);border-radius:8px;overflow:hidden}
.shur-ev .sev-cal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--sev-line)}
.shur-ev .sev-cal-head h2{font-size:1.7rem}
.shur-ev .sev-nav{display:flex;gap:6px}
.shur-ev .sev-nav button{padding:5px 14px}
.shur-ev .sev-dow,.shur-ev .sev-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.shur-ev .sev-dow div{font-family:var(--sev-display);font-weight:600;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--sev-gold);padding:9px 8px;border-bottom:1px solid var(--sev-line)}
.shur-ev .sev-day{min-height:104px;border-right:1px solid var(--sev-line);border-bottom:1px solid var(--sev-line);padding:6px;display:flex;flex-direction:column;gap:4px;min-width:0}
.shur-ev .sev-day:nth-child(7n){border-right:0}
.shur-ev .sev-grid .sev-day:nth-last-child(-n+7){border-bottom:0}
.shur-ev .sev-day.out{background:var(--sev-sunk)}
.shur-ev .sev-day.out .sev-num{opacity:.4}
.shur-ev .sev-num{font-size:.82rem;font-weight:600;color:var(--sev-muted);font-variant-numeric:tabular-nums}
.shur-ev .sev-day.today .sev-num{color:var(--sev-on-red);background:var(--sev-red);border-radius:3px;padding:0 6px;align-self:flex-start}
.shur-ev .sev-ev{display:block;width:100%;text-align:left;border-left:3px solid var(--c);background:color-mix(in srgb,var(--c) 18%,transparent);padding:3px 6px;border-radius:3px;font-size:.78rem;font-weight:600;line-height:1.25;color:var(--sev-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shur-ev .sev-ev:hover{background:color-mix(in srgb,var(--c) 30%,transparent)}
.shur-ev .sev-ev.star::before{content:"★ ";color:var(--sev-gold)}
@media (max-width:640px){
  .shur-ev .sev-cal-head h2{font-size:1.4rem}
  .shur-ev .sev-day{min-height:56px;padding:4px;flex-direction:row;flex-wrap:wrap;align-content:flex-start}
  .shur-ev .sev-num{width:100%}
  .shur-ev .sev-ev{width:12px;height:12px;padding:0;border:0;background:var(--c);border-radius:50%;font-size:0}
  .shur-ev .sev-ev:hover{background:var(--c)}
  .shur-ev .sev-ev.star::before{content:none}
  .shur-ev .sev-dow div{padding:6px 2px;text-align:center;letter-spacing:.04em}
}

/* upcoming rail and list: rows like the literature library */
.shur-ev .sev-rail h3,.shur-ev .sev-list h3{font-size:1.45rem;margin-bottom:12px}
.shur-ev .sev-cards{display:flex;flex-direction:column;background:var(--sev-surface);border:1px solid var(--sev-line);border-radius:8px;overflow:hidden}
.shur-ev .sev-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;padding:14px 16px;text-align:left;width:100%;border-bottom:1px solid var(--sev-line)}
.shur-ev .sev-card:last-child{border-bottom:0}
.shur-ev .sev-card:hover{background:var(--sev-raised)}
.shur-ev .sev-dblock{border:1px solid var(--sev-line);background:var(--sev-sunk);border-radius:3px;text-align:center;padding:5px 0 4px;align-self:start;box-shadow:inset 0 3px 0 var(--c)}
.shur-ev .sev-dblock b{display:block;font-family:var(--sev-display);font-weight:700;font-size:1.6rem;line-height:1}
.shur-ev .sev-dblock small{display:block;font-family:var(--sev-display);font-weight:700;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--sev-red);margin-top:2px}
.shur-ev .sev-card h4{margin:0 0 3px;font-size:1.02rem;font-weight:600;line-height:1.3;color:var(--sev-ink)}
.shur-ev .sev-meta,.shur-ev-overlay .sev-meta{font-size:.86rem;color:var(--sev-muted)}
.shur-ev .sev-tag,.shur-ev-overlay .sev-tag{display:inline-block;font-family:var(--sev-display);font-size:.82rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--sev-gold);margin-top:4px}
.shur-ev .sev-tag.feat,.shur-ev-overlay .sev-tag.feat{color:var(--sev-red);margin-left:4px}
.shur-ev .sev-tag.feat::before,.shur-ev-overlay .sev-tag.feat::before{content:"· ";color:var(--sev-gold)}
.shur-ev .sev-empty{color:var(--sev-muted);background:var(--sev-surface);border:1px dashed var(--sev-line);border-radius:8px;padding:18px}
.shur-ev .sev-month{margin-bottom:28px}

/* detail panel (attached to <body> so theme containers can't clip it) */
.shur-ev-overlay{position:fixed;inset:0;background:rgba(10,12,14,.66);display:flex;justify-content:flex-end;z-index:100000}
.shur-ev-overlay[hidden]{display:none!important}
.shur-ev-overlay .sev-panel{background:var(--sev-surface);border-left:1px solid var(--sev-line);width:min(540px,100%);height:100%;overflow-y:auto;padding:calc(26px + env(safe-area-inset-top,0px)) clamp(16px,4vw,34px) calc(34px + env(safe-area-inset-bottom,0px));text-align:left}
body.admin-bar .shur-ev-overlay .sev-panel{padding-top:58px}
.shur-ev-overlay .sev-close{float:right;padding:4px 12px;font-size:.85rem}
.shur-ev-overlay h2{font-size:2.1rem;margin:12px 0 18px;text-wrap:balance}
.shur-ev-overlay .sev-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;margin:0 0 18px;padding:14px 16px;background:var(--sev-sunk);border:1px solid var(--sev-line);border-radius:var(--sev-radius);font-size:.95rem}
.shur-ev-overlay .sev-facts dt{margin:0;padding-top:2px}
.shur-ev-overlay .sev-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
.shur-ev-overlay .sev-facts a{color:var(--sev-gold)}
.shur-ev-overlay .sev-body{font-size:.98rem;color:var(--sev-ink)}
.shur-ev-overlay .sev-body p{margin:0 0 .8em}
.shur-ev-overlay .sev-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.shur-ev-overlay .sev-btn{padding:10px 18px}
.shur-ev-overlay .sev-btn.primary{background:var(--sev-red);border-color:var(--sev-red);color:var(--sev-on-red)}
.shur-ev-overlay .sev-btn.primary:hover{background:color-mix(in srgb,var(--sev-red) 85%,#000)}
.shur-ev-overlay .sev-note{padding:10px 14px;background:var(--sev-sunk);border-left:3px solid var(--sev-gold);border-radius:3px;font-size:.93rem}
.shur-ev-overlay .sev-lit-h{font-size:1.25rem;margin:26px 0 12px}
.shur-ev-overlay .sev-lit{list-style:none;padding:0;margin:0;border:1px solid var(--sev-line);border-radius:8px;overflow:hidden}
.shur-ev-overlay .sev-lit li{border-bottom:1px solid var(--sev-line)}
.shur-ev-overlay .sev-lit li:last-child{border-bottom:0}
.shur-ev-overlay .sev-lit a{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;text-decoration:none}
.shur-ev-overlay .sev-lit a:hover{background:var(--sev-raised)}
.shur-ev-overlay .sev-doc{width:32px;height:40px;border:1px solid var(--sev-line);background:var(--sev-sunk);border-radius:2px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:5px;font-family:var(--sev-display);font-weight:700;font-size:.62rem;color:var(--sev-red)}
.shur-ev-overlay .sev-lit strong{font-weight:600;font-size:.95rem}
.shur-ev-overlay .sev-lit .sev-open{font-family:var(--sev-display);font-weight:700;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--sev-gold);border-radius:var(--sev-radius);padding:5px 10px}
@media (prefers-reduced-motion:no-preference){.shur-ev-overlay .sev-panel{animation:sevslide .18s ease-out}@keyframes sevslide{from{transform:translateX(24px);opacity:.6}}}
