/* ============================================================
   CTN USA -- Events (listing, calendar, details modal, event page)
   Loaded after site.css. PURE ASCII ONLY.
   ============================================================ */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ev-error { text-align: center; padding: 60px 0; color: var(--grey); font-size: 17px; }
.ev-error a { color: var(--blue); text-decoration: underline; }

/* -- Toolbar: tabs, years, view toggle ----------------------------------- */
.ev-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ev-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-filter { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .3px; color: var(--grey); background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 10px 22px; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }

.ev-filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.ev-filter:focus-visible, .ev-view button:focus-visible, .ev-year:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ev-view { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.ev-view button { font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--grey); background: transparent; border: 0; padding: 10px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.ev-view button + button { border-left: 1px solid var(--line); }
.ev-view button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ev-view svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-years { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.ev-years[hidden] { display: none; }
.ev-years-label { font-family: var(--head); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--grey); margin-right: 4px; }
.ev-year { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--ink); background: var(--light); border: 1px solid transparent; border-radius: 6px; padding: 7px 14px; cursor: pointer; transition: background .15s, color .15s; }

.ev-empty { text-align: center; color: var(--grey); font-size: 16px; padding: 30px 0 10px; }

/* -- Listing groups + cards ---------------------------------------------- */
.evs-h { font-size: clamp(22px, 2.6vw, 28px); margin: 8px 0 24px; }
.ev-group { margin-bottom: 40px; }
.ev-group[hidden] { display: none; }
.js-ev .evs-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 0; }
.event-card { position: relative; cursor: pointer; }
.event-card[hidden] { display: none; }
.event-card:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,122,183,.25); }
.ec-img { height: 220px; }
.ec-img img.fit-dark { object-fit: contain; padding: 40px; background: #1a2a3a; }
.ec-img img.fit-light { object-fit: contain; padding: 40px; background: #f2f5f7; }
.ec-img.ec-ph { display: flex; align-items: center; justify-content: center; padding: 24px 28px; background: radial-gradient(circle at 20% 15%, rgba(43,122,183,.35), transparent 55%), linear-gradient(135deg, #1A1D21 0%, #2B3540 100%); }
.ec-ph-name { font-family: var(--head); font-weight: 800; color: #fff; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; text-align: center; max-width: 22ch; text-wrap: balance; }

.ec-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ec-title a:focus-visible { outline: none; }
.ec-more { margin-top: auto; padding-top: 4px; font-family: var(--head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--blue); }
.event-card:hover .ec-more { color: var(--blue-dark); }

/* -- Calendar view -------------------------------------------------------- */
.cal[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-title { font-family: var(--head); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; font-size: clamp(22px, 3vw, 30px); margin: 0; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { font-family: var(--head); font-weight: 700; font-size: 13.5px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; cursor: pointer; }
.cal-nav button:hover { border-color: var(--blue); color: var(--blue); }
.cal-nav button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cal-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; border-radius: 12px 12px 0 0; overflow: hidden; }
.cal-dow-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { font-family: var(--head); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--grey); padding: 10px 8px; background: var(--light); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* one grid per week: row 1 holds the day cells, later rows hold event bars */
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(var(--lanes, 1), 26px); row-gap: 3px; padding-bottom: 8px; position: relative; }
.cal-cell { grid-row: 1 / -1; min-height: 104px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; }

.cal-cell.out .cal-day { color: #b4bcc4; }
.cal-day { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--ink); }
.cal-week .cal-cell.today .cal-day { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; }
/* bars sit above the day cells and can span several columns */
.cal-ev { position: relative; z-index: 2; align-self: center; margin: 0 5px; display: block; font-size: 12.5px; font-weight: 700; line-height: 22px; height: 22px; padding: 0 9px; border-radius: 5px; background: var(--blue); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cal-ev:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* runs that continue into the next or previous week */
.cal-ev.cont-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 12px; }
.cal-ev.cont-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-ev.cont-l::before { content: "\25C0"; font-size: 8px; position: absolute; left: 3px; top: 0; opacity: .85; }
.cal-ev.cont-r::after { content: "\25B6"; font-size: 8px; position: absolute; right: 3px; top: 0; opacity: .85; }
.cal-notes { margin-top: 18px; font-size: 14.5px; color: var(--grey); }
.cal-notes p { margin-bottom: 8px; }
.cal-notes a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.cal-agenda { display: none; list-style: none; padding: 0; margin: 0; }
.cal-agenda li { margin: 0 0 10px; }
.cal-agenda a { display: block; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; }
.cal-agenda a.past { border-left-color: #8d96a0; }
.cal-agenda .ag-d { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin-bottom: 2px; font-family: var(--head); }
.cal-agenda .ag-n { font-family: var(--head); font-weight: 800; font-size: 16px; }
.cal-none { color: var(--grey); padding: 18px 0; }

/* -- Product tiles (homepage .pcard) when used on events pages ------------ */

.pcard .imgbox-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 130px; border: 1px dashed #3a414a; border-radius: 10px; color: var(--grey-light); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; text-align: center; padding: 0 12px; }
.pc-badge { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--blue); color: #fff; font-family: var(--head); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; padding: 5px 10px; border-radius: 4px; }
.evd-tiles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

/* -- Details modal -------------------------------------------------------- */
html.ev-lock { overflow: hidden; }
dialog.ev-modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; overflow: hidden; color: var(--ink); }
dialog.ev-modal:not([open]) { display: none; }
dialog.ev-modal::backdrop { background: rgba(12, 14, 17, .78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.evm-shell { height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.evm-box { position: relative; background: #fff; width: 100%; max-width: 940px; max-height: 100%; display: flex; flex-direction: column; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; animation: evmin .22s ease; }
@keyframes evmin { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.evm-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(12,14,17,.55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s; z-index: 6; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.evm-close:hover { background: rgba(255,255,255,.3); }
.evm-close:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
#evm-content { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.evm-inner { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.evm-inner[hidden], .evm-lead[hidden] { display: none; }

/* --- Compact header: small logo tile beside the title --- */
.evm-head { position: relative; flex: 0 0 auto; background: var(--ink); display: flex; align-items: center; gap: 20px; padding: 16px 76px 16px 28px; }
.evb { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.evb-modal { flex: none; width: 148px; height: 74px; border-radius: 9px; }

.evb-logo.evb-light { background: #f2f5f7; }
.evb-logo img { max-width: 80%; max-height: 74%; width: auto; height: auto; object-fit: contain; }
.evb-photo { background: var(--ink-soft); }
.evb-photo img { width: 100%; height: 100%; object-fit: cover; }
.evb-none { display: none; }
.evm-head-text { min-width: 0; flex: 1; }
.evm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 7px; }
.evm-cat { font-family: var(--head); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue-light); }
.evm-title { font-size: clamp(20px,2.6vw,27px); line-height: 1.12; margin: 0; color: #fff; }
.evm-status { display: inline-block; font-family: var(--head); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; padding: 4px 10px; border-radius: 4px; background: var(--blue); color: #fff; }
.evm-status.is-past { background: #6b7480; }

.evm-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; background: #fff; }
.evm-pad { padding: 26px 32px; background: #fff; }
.evm-pad:first-child { padding-top: 28px; }
.evm-pad .evd-floor { margin: 0; }
.evm-pad .eyebrow { margin-bottom: 14px; }
.evm-band { background: #fff; padding: 6px 0 28px; }
.evm-band .eyebrow { color: var(--blue); }
.evm-band .eyebrow { margin-bottom: 16px; padding: 0 32px; }
.evm-band .ctn-carousel { padding: 0 32px; }
.evm-soon { margin: 0; padding: 0 32px; color: var(--grey); font-size: 16px; line-height: 1.5; }
/* Light product tiles for the white modal band */
.evm-band .pcard { background: #fff; border-color: var(--line); color: var(--ink); }
.evm-band .pcard:hover { border-color: var(--blue); box-shadow: 0 18px 40px rgba(26,29,33,.10); }
.evm-band .pcard .imgbox { background: var(--light); border-radius: 10px; height: 136px; margin-bottom: 16px; }
.evm-band .pcard .imgbox img { max-height: 118px; }
.evm-band .pcard h3 { color: var(--ink); }
.evm-band .pcard p { color: var(--grey); }
.evm-band .pcard .more { color: var(--blue); }
.evm-band .pcard .imgbox-ph { border-color: #c3ccd5; color: var(--grey); height: 100%; }
.evd-carousel { grid-auto-columns: minmax(200px, 230px); }
.evd-carousel .pcard { scroll-snap-align: start; }
.evm-band .cc-prev { left: 10px; }
.evm-band .cc-next { right: 10px; }
.evm-foot { flex: 0 0 auto; border-top: 1px solid var(--line); background: #fff; padding: 14px 32px; box-shadow: 0 -8px 24px rgba(26,29,33,.06); }
.evm-foot:empty { display: none; }
.evd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.evd-actions .btn { padding: 14px 26px; }
.evd-more { margin-left: auto; font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--blue); }
.evd-more:hover { text-decoration: underline; }
.evd-desc { position: relative; max-width: none; margin: 0; font-size: 17px; line-height: 1.7; color: #2c3138;
  padding: 20px 24px 20px 26px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(43,122,183,.06), rgba(43,122,183,.02) 60%, transparent);
  border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.evd-floor { margin: 0; }
.evd-floor img { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.evd-floor figcaption { margin-top: 10px; font-size: 13.5px; color: var(--grey); text-align: center; }
.evd-floor figcaption a { color: var(--blue); text-decoration: underline; }
/* facts bar: site's .event-bar restyled left-aligned inside the modal */
.evm-scroll .event-bar.evm-facts { flex-direction: row; justify-content: flex-start; align-items: stretch; margin: 0; padding: 18px 20px; background: var(--ink-soft); border: 0; }
.evm-facts .item { padding: 4px 18px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 0; text-align: left; flex: 1 1 0; min-width: 132px; }
.evm-facts .item:first-child { flex: 1.3 1 0; }
.evm-facts .item:last-child { border-right: 0; }
.evm-facts .item .lbl { color: var(--blue-light); }
.evm-facts .item .val { font-size: 15.5px; line-height: 1.4; display: block; color: #fff; }
.evm-facts .item .val .sub { display: block; font-size: 13px; color: #aeb7c0; margin-top: 2px; }
.event-bar .item .val .sub { display: block; font-size: 13px; opacity: .8; font-weight: 400; margin-top: 2px; }
.evm-facts .item.booth .val { font-size: 28px; line-height: 1.05; color: var(--blue-light); }
.evm-facts .item.tba .val { color: #aeb7c0; font-style: italic; font-weight: 600; }
.evm-lead { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; background: #fff; }
.evm-lead .lead-head { background: var(--ink); color: #fff; padding: 20px 72px 20px 32px; flex: 0 0 auto; }
.evm-lead .lead-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 22px 32px 28px; min-height: 0; }
.lead-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--blue-light); font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .3px; padding: 0 0 10px; cursor: pointer; }
.lead-back:hover { color: #fff; text-decoration: underline; }
.lead-back:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
@media (max-width: 640px) {
  .evm-lead .lead-head { padding: 16px 58px 16px 20px; }
  .evm-lead .lead-body { padding: 18px 20px 24px; }
}
.evm-loading { padding: 80px 32px; text-align: center; color: var(--grey); font-size: 15px; background: #fff; }

/* -- Event page ------------------------------------------------------------ */

.evp-hero .evd-actions .btn-secondary { border-color: rgba(255,255,255,.5); color: #fff; }
.evp-hero .evd-actions .btn-secondary:hover { background: #fff; color: var(--ink); }

.evp-intro p { font-size: 18px; color: #2c3138; }

.evp-floor { max-width: 900px; margin: 0 auto; }
.evp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.evp-related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; transition: border-color .2s, transform .2s; }

.evp-related .r-d { display: block; font-family: var(--head); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--blue); margin-bottom: 6px; }
.evp-related .r-n { font-family: var(--head); font-weight: 800; font-size: 18px; line-height: 1.2; }
.evp-related .r-l { display: block; margin-top: 6px; color: var(--grey); font-size: 14.5px; }

/* -- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .evp-related { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .events-grid { grid-template-columns: 1fr; }
  .ec-img { height: 200px; }
}
@media (max-width: 700px) {
  .cal-grid, .cal-notes-grid { display: none; }
  .cal-agenda { display: block; }
}
@media (max-width: 640px) {
  .evm-shell { padding: 0; align-items: stretch; }
  .evm-box { border-radius: 0; max-width: none; }
  .evm-head { padding: 14px 58px 14px 18px; gap: 14px; }
  .evb-modal { width: 104px; height: 58px; }
  .evm-pad { padding: 20px; }
  .evm-band { padding: 20px 0 24px; }
  .evm-band .eyebrow, .evm-band .ctn-carousel, .evm-soon { padding-left: 20px; padding-right: 20px; }
  .evm-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .evm-scroll .event-bar.evm-facts { flex-direction: column; padding: 8px 0; }
  .evm-facts .item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 20px; }
  .evm-facts .item:last-child { border-bottom: 0; }
  .evm-foot .evd-actions { flex-wrap: nowrap; gap: 10px; }
  .evm-foot .evd-actions .btn { flex: 1 1 0; text-align: center; padding: 13px 8px; font-size: 12px; letter-spacing: .6px; }
  .evm-foot .evd-more { display: none; }
  .evp-hero .evd-actions .btn { flex: 1 1 100%; text-align: center; }
  .ev-toolbar { flex-direction: column; align-items: stretch; }
  .ev-view { align-self: stretch; margin-left: 0; }
  .ev-view button { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .evm-box { animation: none; }
  .evm-close, .ev-filter { transition: none; }
}

.ev-toolbar[hidden], .ev-tabs[hidden], #ev-list[hidden], .ev-empty[hidden] { display: none; }

/* ==========================================================================
   Events, 2026 redesign. These rules come after the originals above and
   override them where they differ.
   Same language as the redesigned product and Insights pages: Polar Night
   heads with the brand edge pattern, the spectrum only as a thin light edge,
   ruled facts, square corners.
   Mobile first. PURE ASCII ONLY in this file.
   ========================================================================== */

:root { --ev-edge: linear-gradient(90deg, #99B2FA 0%, #5C81F1 33%, #F05E60 66%, #F18A64 100%); }

/* ---- heads: left aligned, the C edge pattern at the right ---- */
.events-hero, .evp-hero { position: relative; overflow: hidden; text-align: left; padding: 48px 0 48px; }
.events-hero::after, .evp-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; height: 100%; width: auto; aspect-ratio: 494 / 604; max-width: 46%;
  background: url("/images/brand/edge-c.svg") left center / auto 100% no-repeat; opacity: .06; pointer-events: none; }
.events-hero > .wrap, .evp-hero > .wrap { position: relative; z-index: 1; }
.events-hero .eyebrow, .evp-hero .eyebrow, .evp-hero .evm-status { margin-left: 0; margin-right: 0; }
.events-hero h1, .evp-hero h1 { font-size: clamp(36px, 8.4vw, 60px); line-height: 1.05; margin: 0 0 20px; max-width: 20ch; }
.events-hero p:not(.eyebrow) { color: #cbd3da; font-size: 17px; font-weight: 300; line-height: 1.6; max-width: 56ch; margin: 0; }
.evm-status { border-radius: 0; font-family: var(--body); font-size: 11px; letter-spacing: .14em; padding: 6px 10px; }
.evp-hero .evm-status { margin-bottom: 20px; }
.evp-hero .evd-actions { justify-content: flex-start; }

/* the facts: a ruled row like the product pages' stats, no box */
.evp-hero .event-bar { max-width: none; margin: 32px 0 36px; padding: 0; background: none; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); }
.evp-hero .event-bar .item { text-align: left; padding: 16px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16);
  display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 16px; align-items: baseline; }
.evp-hero .event-bar .item .lbl { margin: 0; font-family: var(--body); font-size: 11px; letter-spacing: .14em; color: #99B2FA; }
.evp-hero .event-bar .item .val { font-family: var(--head); font-size: 18px; font-weight: 600; color: #fff; }
.evp-hero .event-bar .item .val .sub { color: rgba(255,255,255,.66); font-family: var(--body); font-weight: 400; }
.evp-hero .event-bar .item.booth .val { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; color: #fff; }

/* ---- listing toolbar: Upcoming / Past as tabs with the spectrum under the
        current one, the List / Calendar switch square ---- */
.events-wrap { background: var(--cold-daylight); padding: 36px 0 64px; }
.ev-toolbar { gap: 16px; margin-bottom: 28px; }
.ev-tabs { flex: 1 1 auto; gap: 24px; border-bottom: 1px solid var(--silver-light); }
.ev-filter { position: relative; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none;
  font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--silver-dark); }
.ev-filter:hover { border: 0; color: var(--polar-night); }
.ev-filter.is-active, .ev-filter[aria-pressed="true"] { background: none; color: var(--polar-night); }
.ev-filter.is-active::after, .ev-filter[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ev-edge); }
.ev-view { border-radius: 0; border-color: var(--silver-light); }
.ev-view button { min-height: 44px; font-family: var(--body); font-weight: 600; font-size: 14px; }
.ev-view button[aria-pressed="true"] { background: var(--polar-night); }
.ev-year { border-radius: 0; font-family: var(--body); font-weight: 600; background: #fff; border: 1px solid var(--silver-light); }
.ev-year:hover { background: #fff; border-color: var(--signal-blue); color: var(--signal-blue); }
.ev-year.is-active { background: var(--polar-night); border-color: var(--polar-night); color: #fff; }
.ev-years-label { font-family: var(--body); font-size: 11px; letter-spacing: .14em; }

/* ---- event cards: square white panels, the logo on Polar Night, ruled facts ---- */
.events-grid { gap: 24px; }
.event-card { border: 0; border-radius: 0; background: #fff; box-shadow: none; transition: box-shadow .2s; }
.event-card:hover { transform: none; border: 0; box-shadow: 0 16px 36px rgba(11,23,59,.10); }
.event-card:focus-within { box-shadow: 0 0 0 2px var(--signal-blue); }
.ec-img { background: var(--polar-night); }
.ec-img img.fit-dark { background: var(--polar-night); }
.ec-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ev-edge);
  transform: scaleX(0); transform-origin: left center; transition: transform .35s ease; z-index: 2; }
.event-card:hover .ec-img::after, .event-card:focus-within .ec-img::after { transform: scaleX(1); }
.active-badge { border-radius: 0; font-family: var(--body); font-size: 11px; letter-spacing: .14em; padding: 6px 10px; }
.ec-body { padding: 24px 24px 22px; }
.ec-eyebrow { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; margin-bottom: 12px; }
.ec-title { font-size: clamp(21px, 5vw, 24px); line-height: 1.2; margin-bottom: 18px; color: var(--polar-night); transition: color .2s; }
.event-card:hover .ec-title, .event-card:hover .ec-title a { color: var(--signal-blue); }
.ec-meta { align-items: stretch; grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr); gap: 0; margin-bottom: 20px; border-top: 1px solid var(--silver-light); }
.ec-meta .lbl, .ec-meta .val { padding: 10px 0; border-bottom: 1px solid var(--silver-light); }
.ec-meta .lbl { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--silver-dark); padding-top: 13px; }
.ec-meta .val { font-size: 15px; }
.ec-meta .val.booth { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--signal-blue); }
.ec-more { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.ec-img.ec-ph { background: var(--polar-night); }

/* ---- calendar: square, Signal Blue bars, ruled grid ---- */
.cal-title { font-weight: 600; }
.cal-nav button { border-radius: 0; font-family: var(--body); font-weight: 600; min-height: 44px; }
.cal-grid { border-radius: 0; border-color: var(--silver-light); }
.cal-dow { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--silver-dark); background: #fff; }
.cal-cell { border-color: var(--silver-light); }
.cal-cell.out { background: var(--neutral-light); }
.cal-ev { border-radius: 0; background: var(--signal-blue); }
.cal-ev:hover { background: var(--polar-night); }
.cal-ev.past { background: var(--silver-dark); }
.cal-agenda a { border-radius: 0; border: 0; border-left: 3px solid var(--signal-blue); }
.cal-agenda .ag-d { font-family: var(--body); font-size: 11px; letter-spacing: .14em; }

/* ---- the details window: square, the facts ruled ---- */
.evm-box { border-radius: 0; }
.evm-close { border-radius: 0; }
.evb-modal { border-radius: 0; }
.evb-logo.evb-dark { background: var(--polar-night); }
.evm-cat { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #99B2FA; }
.evd-desc { border-radius: 0; background: var(--cold-daylight); border: 0; border-left: 3px solid var(--signal-blue); }
.evd-floor img { border-radius: 0; }
.evm-band .pcard .imgbox { border-radius: 0; }

/* ---- event page body ---- */
.evp-intro { max-width: 46rem; margin: 0; }
.evp-intro p { color: var(--silver-dark); line-height: 1.7; }
.evp-answer { font-family: var(--head); font-size: clamp(20px, 4.6vw, 24px); line-height: 1.45; font-weight: 500; color: var(--polar-night);
  padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--silver-light); }

/* the product tiles on the dark band: square, flat, the spectrum edge on hover */
.pcard { border-radius: 0; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); position: relative; }
.pcard:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,.28); }
.pcard::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--ev-edge);
  transform: scaleX(0); transform-origin: left center; transition: transform .35s ease; }
.pcard:hover::after, .pcard:focus-visible::after { transform: scaleX(1); }
.pcard { padding-top: 0; overflow: hidden; }
.pcard .imgbox { background: #fff; height: 168px; margin: 0 -24px 20px; padding: 14px; }
.pcard .imgbox img { max-height: 140px; }
.pcard .more { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #99B2FA; }
.pc-badge { border-radius: 0; font-family: var(--body); font-size: 11px; letter-spacing: .14em; top: 12px; right: 12px; }

/* more events: a ruled list, the date as the eyebrow */
.evp-related { gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--polar-night); }
.evp-related a { position: relative; border: 0; border-bottom: 1px solid var(--silver-light); border-radius: 0; background: none; padding: 20px 32px 20px 0; transition: none; }
.evp-related a:hover { transform: none; border-color: var(--silver-light); }
.evp-related a::after { content: "\2192"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--signal-blue); transition: transform .2s; }
.evp-related a:hover::after { transform: translate(4px, -50%); }
.evp-related .r-d { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.evp-related .r-n { font-weight: 600; font-size: 20px; color: var(--polar-night); transition: color .2s; }
.evp-related a:hover .r-n { color: var(--signal-blue); }
.evp-related .r-l { font-size: 14px; color: var(--silver-dark); }

/* ---- wider screens ---- */
@media (min-width: 640px) {
  .evp-hero .event-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .ev-toolbar { align-items: flex-end; }
}
@media (min-width: 900px) {
  .events-hero { padding: 88px 0 80px; }
  .events-hero p:not(.eyebrow) { font-size: 19px; }
  .evp-hero { padding: 72px 0 72px; }
  .events-wrap { padding: 48px 0 96px; }
  .evp-hero .event-bar { display: flex; flex-wrap: nowrap; border-bottom: 1px solid rgba(255,255,255,.16); }
  .evp-hero .event-bar .item { display: block; flex: 1 1 0; padding: 20px 24px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.16); }
  .evp-hero .event-bar .item:first-child { padding-left: 0; border-left: 0; }
  .evp-hero .event-bar .item .lbl { display: block; margin-bottom: 10px; }
  .evp-related { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-img::after, .pcard::after, .event-card, .ec-title, .evp-related a::after { transition: none; }
}

/* ---- phones: the calendar as a small month grid, then that month's list ----
   events.js builds .cal-mini; each day with an event carries a Signal Blue
   run under its number, joined across the days it covers. */
.cal-mini { display: none; }
@media (max-width: 700px) {
  .cal-head { flex-wrap: wrap; }
  .cal-nav button { padding: 0 12px; }
  .cal-mini { display: block; margin: 0 0 24px; padding: 10px 8px 8px; background: #fff; }
  .cm-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cm-dow span { padding: 4px 0 8px; text-align: center; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--silver-dark); }
  .cm-day { position: relative; display: flex; align-items: center; justify-content: center; height: 46px; margin: 0; padding: 0; border: 0; background: none;
    font-family: var(--body); font-size: 15px; color: var(--polar-night); }
  .cm-day.out { visibility: hidden; }
  .cm-day.today { box-shadow: inset 0 0 0 1px var(--polar-night); font-weight: 700; }
  .cm-day.has-ev { font-weight: 700; cursor: pointer; }
  .cm-day.has-ev::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 4px; background: var(--signal-blue); }
  .cm-day.run-l::after { left: 0; }
  .cm-day.run-r::after { right: 0; }
  .cm-day.past::after { background: var(--silver-light); }
  .cm-day.is-sel { background: var(--polar-night); color: #fff; }
  .cm-day.is-sel::after { background: #99B2FA; }
  .cm-day:focus-visible { outline: 2px solid var(--signal-blue); outline-offset: -2px; }
  .cal-agenda { border-top: 1px solid var(--polar-night); }
  .cal-agenda li { margin: 0; }
  .cal-agenda a { display: flex; align-items: center; gap: 16px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--silver-light); border-radius: 0; background: none; }
  .ag-cal { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; background: var(--polar-night); color: #fff; }
  .ag-cal b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; }
  .ag-cal i { margin-top: 4px; font-style: normal; font-family: var(--body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #99B2FA; }
  .cal-agenda a.past .ag-cal { background: var(--silver-dark); }
  .ag-t { display: grid; gap: 4px; min-width: 0; }
  .cal-agenda .ag-n { font-family: var(--head); font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--polar-night); }
  .cal-agenda .ag-d { margin: 0; font-family: var(--body); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--silver-dark); }
  .ag-all { padding: 14px 0 0; }
  .ag-all button { min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--signal-blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
}
