/* ============================================================
   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: var(--fs-body); }
.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: 600; 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 var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out); }

.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: 600; font-size: var(--fs-small); 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: var(--fs-micro); font-weight: 600; color: var(--grey); margin-right: 4px; }
.ev-year { font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--ink); background: var(--light); border: 1px solid transparent; border-radius: 6px; padding: 7px 14px; cursor: pointer; transition: background .15s var(--ease-out), color .15s var(--ease-out); }

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

/* -- Listing groups + cards ---------------------------------------------- */
.evs-h { font-size: var(--fs-h2); 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 oklch(49.77% 0.1613 265.73 / .25); }
.ec-img { height: 220px; }
.ec-img img.fit-dark { object-fit: contain; padding: 40px; background: var(--polar-night); }
.ec-img img.fit-light { object-fit: contain; padding: 40px; background: var(--cold-daylight); }
.ec-img.ec-ph { display: flex; align-items: center; justify-content: center; padding: 24px 28px; background: radial-gradient(circle at 20% 15%, oklch(49.77% 0.1613 265.73 / .35), transparent 55%), linear-gradient(135deg, var(--polar-night) 0%, var(--deep-blue) 100%); }
.ec-ph-name { font-family: var(--head); font-weight: 600; color: #fff; font-size: 20px; line-height: 1.2; 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: 600; font-size: 13px; 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: 600; line-height: 1.08; font-size: clamp(22px, 3vw, 30px); margin: 0; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { font-family: var(--head); font-weight: 600; font-size: var(--fs-small); 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: var(--fs-micro); font-weight: 600; 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: var(--on-dark-muted); }
.cal-day { font-family: var(--head); font-weight: 600; 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: var(--fs-micro); font-weight: 600; 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: var(--fs-small); color: var(--grey); }
.cal-notes p { margin-bottom: 8px; }
.cal-notes a { color: var(--blue); font-weight: 600; 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: var(--silver-light); }
.cal-agenda .ag-d { display: block; font-size: var(--fs-micro); font-weight: 600; color: var(--blue); margin-bottom: 2px; font-family: var(--head); }
.cal-agenda .ag-n { font-family: var(--head); font-weight: 600; font-size: var(--fs-h4); }
.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 var(--line-on-dark); border-radius: 10px; color: var(--grey-light); font-size: 13px; font-weight: 600; 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: var(--fs-micro); font-weight: 600; 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: oklch(var(--shadow-tint) / .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: var(--shadow-overlay); overflow: hidden; animation: evmin .22s var(--ease-out); }
@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: oklch(var(--shadow-tint) / .55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s var(--ease-out); z-index: 6; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.evm-close:hover { background: oklch(100% 0 0 / .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: var(--cold-daylight); }
.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: var(--fs-micro); font-weight: 600; 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: var(--fs-micro); font-weight: 600; padding: 4px 10px; border-radius: 4px; background: var(--blue); color: #fff; }
.evm-status.is-past { background: var(--silver-dark); }

.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-band { background: #fff; padding: 6px 0 28px; }
.evm-band .ctn-carousel { padding: 0 32px; }
.evm-soon { margin: 0; padding: 0 32px; color: var(--grey); font-size: 16px; line-height: 1.6; }
/* 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: var(--shadow-raise); }
.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: var(--silver-light); 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: var(--shadow-up); }
.evm-foot:empty { display: none; }
.evd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.evd-more { margin-left: auto; font-family: var(--head); font-weight: 600; font-size: var(--fs-small); color: var(--blue); }
.evd-more:hover { text-decoration: underline; }
.evd-desc { position: relative; max-width: none; margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--graphite);
  padding: 20px 24px 20px 26px; border-radius: 12px;
  background: linear-gradient(135deg, oklch(49.77% 0.1613 265.73 / .06), oklch(49.77% 0.1613 265.73 / .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: var(--fs-small); 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 var(--line-on-dark); 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: var(--fs-sub); line-height: 1.6; display: block; color: #fff; }
.evm-facts .item .val .sub { display: block; font-size: 13px; color: var(--on-dark-muted); 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: var(--on-dark-muted); 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: 0 32px; min-height: 0; }
.evm-lead .lead-actions { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
.lead-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--blue-light); font-family: var(--head); font-weight: 600; 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: 0 20px; }
  .evm-lead .lead-actions { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}
.evm-loading { padding: 80px 32px; text-align: center; color: var(--grey); font-size: var(--fs-sub); background: #fff; }

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

.evp-hero .evd-actions .btn-secondary { border-color: oklch(100% 0 0 / .5); color: #fff; }
.evp-hero .evd-actions .btn-secondary:hover { background: #fff; color: var(--ink); }

.evp-intro p { font-size: 18px; color: var(--graphite); }

.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 var(--ease-out), transform .2s var(--ease-out); }

.evp-related .r-d { display: block; font-family: var(--head); font-size: var(--fs-micro); font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.evp-related .r-n { font-family: var(--head); font-weight: 600; font-size: var(--fs-h4); line-height: 1.2; }
.evp-related .r-l { display: block; margin-top: 6px; color: var(--grey); font-size: var(--fs-small); }

/* -- 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 .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 var(--line-on-dark); padding: 12px 20px; }
  .evm-facts .item:last-child { border-bottom: 0; }
  .evm-foot .evd-actions { flex-wrap: wrap; gap: 10px; }
  /* same size and type as every other button; the pair sits side by side when it fits, stacked when not */
  .evm-foot .evd-actions .btn { flex: 1 1 150px; text-align: center; padding-inline: 12px; }
  .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: var(--grad-spectrum); }

/* ---- 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; }
.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 { color: var(--on-dark-muted); font-size: var(--fs-lede); font-weight: 400; line-height: 1.6; max-width: 56ch; margin: 0; }
.evm-status { border-radius: 0; font-family: var(--body); font-size: .8125rem; 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 var(--line-on-dark); 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 var(--line-on-dark);
  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: .8125rem; color: var(--spec-ice); }
.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: var(--on-dark-muted); 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: var(--fs-sub); 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: .8125rem; }

/* ---- 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 var(--ease-out); }
.event-card:hover { transform: none; border: 0; box-shadow: var(--shadow-raise); }
.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 var(--ease-out); z-index: 2; }
.event-card:hover .ec-img::after, .event-card:focus-within .ec-img::after { transform: scaleX(1); }
.ec-body { padding: 24px 24px 22px; }
.ec-title { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 18px; color: var(--polar-night); transition: color .2s var(--ease-out); }
.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: .8125rem; font-weight: 600; color: var(--silver-dark); padding-top: 13px; }
.ec-meta .val { font-size: var(--fs-sub); }
.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: .8125rem; font-weight: 600; }
.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: .8125rem; font-weight: 600; 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: .8125rem; }

/* ---- 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: .8125rem; font-weight: 600; color: var(--spec-ice); }
.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: 400; 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 var(--line-on-dark); background: oklch(100% 0 0 / .03); position: relative; }
.pcard:hover { transform: none; box-shadow: none; border-color: var(--line-on-dark); }
.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 var(--ease-out); }
.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: .8125rem; font-weight: 600; color: var(--spec-ice); }
.pc-badge { border-radius: 0; font-family: var(--body); font-size: .8125rem; 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 .r-d { font-family: var(--body); font-size: .8125rem; font-weight: 600; }
.evp-related .r-n { font-weight: 600; font-size: var(--fs-h4); color: var(--polar-night); transition: color .2s var(--ease-out); }
.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; }
  .evp-hero { padding: 72px 0 72px; }
  .events-hero p { font-size: var(--fs-lede); }
  .events-wrap { padding: 48px 0 96px; }
  .evp-hero .event-bar { display: flex; flex-wrap: nowrap; border-bottom: 1px solid var(--line-on-dark); }
  .evp-hero .event-bar .item { display: block; flex: 1 1 0; padding: 20px 24px; border-bottom: 0; border-left: 1px solid var(--line-on-dark); }
  .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 { 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: .8125rem; font-weight: 600; 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: var(--fs-sub); color: var(--polar-night); }
  .cm-day.out { visibility: hidden; }
  .cm-day.today { box-shadow: inset 0 0 0 1px var(--polar-night); font-weight: 600; }
  .cm-day.has-ev { font-weight: 600; 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: var(--spec-ice); }
  .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: var(--fs-micro); color: var(--spec-ice); }
  .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: var(--fs-h4); 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; }
}

/* ============================================================
   DESIGN DIRECTION LAYER (2026-11-26)
   Kept here rather than in site.css because this file loads after it.
   ============================================================ */

/* ---- Event cards -------------------------------------------------------------
   No status flag (the list is already split into upcoming and past), the
   category as a quiet line under the name, and rows grouped by spacing. */
.ec-cat { margin: -10px 0 16px; font-size: 14px; color: var(--silver-dark); }
.ec-meta { border-top: 0; row-gap: 2px; }
.ec-meta .lbl, .ec-meta .val { border-bottom: 0; padding: 4px 0; }
.ec-meta .lbl { font-size: .8125rem; font-weight: 600; padding-top: 6px; }
.ec-more { font-size: 14px; font-weight: 600; color: var(--signal-blue); }
.event-card:hover .ec-more { text-decoration: underline; }
.event-card:hover { box-shadow: var(--shadow-raise); }

/* Event page and pop-up: status and category sit together under the name. */
.evp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -8px 0 0; }
.evp-meta .evm-status { margin: 0; }
.evp-cat { font-size: var(--fs-sub); color: oklch(100% 0 0 / .75); }
.evm-status { font-size: .8125rem; }
.evm-cat { font-size: 14px; }
.evm-sub { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: var(--polar-night); }
.evm-band .evm-sub { padding: 0 32px; }
.evd-desc { border-left: 0; }
@media (max-width: 760px) {
  .evm-band .evm-sub { padding-left: 20px; padding-right: 20px; }
}

/* ---- Event pop-up as a bottom sheet on phones ---------------------------------
   Slides up from the bottom edge and can be dragged down to close (events.js).
   The handle marks the draggable area. */
.evm-grab { display: none; }
@media (max-width: 760px) {
  .evm-shell { padding: 12px 0 0; align-items: flex-end; }
  .evm-box { max-height: calc(100dvh - 12px); height: calc(100dvh - 12px); touch-action: pan-y; }
  .evm-grab {
    display: block; position: absolute; top: 0; left: 64px; right: 64px; height: 24px; z-index: 7;
    touch-action: none; cursor: grab;
  }
  .evm-head { touch-action: none; }
  .evm-grab::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px;
    margin-left: -20px; background: oklch(100% 0 0 / .45);
  }
  .evm-box.is-dragging { transition: none; }
  .evm-box.is-settling { transition: transform .28s var(--ease-out); }
  @media (prefers-reduced-motion: no-preference) {
    .evm-box { animation: ctn-sheet-in .34s var(--ease-out); }
  }
}
@keyframes ctn-sheet-in { from { transform: translateY(100%); } }

/* Loading placeholder for the pop-up: the shape of what is coming. */
.evm-skel { background: #fff; }
.evm-skel-head { height: 112px; background: var(--polar-night); }
.evm-skel-body { padding: 28px 32px; display: grid; gap: 14px; }
.evm-skel-line { height: 14px; background: var(--cold-daylight); }
.evm-skel-line:nth-child(2) { width: 86%; }
.evm-skel-line:nth-child(3) { width: 64%; }
@media (prefers-reduced-motion: no-preference) {
  .evm-skel-line { animation: ctn-pulse 1.2s var(--ease-in-out) infinite alternate; }
}
@keyframes ctn-pulse { to { opacity: .45; } }

/* ---- sanity pass (Nov 2026) ---- */
.ev-view button[aria-pressed="true"], .ev-year.is-active { background: var(--chosen-bg); border-color: var(--signal-blue); color: var(--deep-blue); box-shadow: inset 0 0 0 1px var(--signal-blue); }
/* every event card reads as one card on a white or a tinted band */
.event-card { box-shadow: 0 0 0 1px var(--line); }
.event-card:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow-raise); }
.event-card:focus-within { box-shadow: 0 0 0 2px var(--signal-blue); }
.cal-title { color: var(--polar-night); }
/* the product row on an event page fills the width when it all fits */
@media (min-width: 900px) { .evd-carousel { grid-auto-columns: minmax(200px, 1fr); } }

/* ---- hierarchy pass (Nov 2026) ---- */
/* phones: the dates and the city matter more than the logo */
@media (max-width: 640px) {
  .ec-img { height: 140px; }
  .ec-img img.fit-light, .ec-img img.fit-dark { padding: 24px; }
}
/* the private demo is the most direct way in: the same card as the shows,
   with a map of the showroom where the logo would be and a solid button */
.ec-map img { object-fit: cover; object-position: 64% 36%; }
.ec-map-pin { position: absolute; left: 64%; top: 36%; z-index: 1; display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -100%); margin-top: -8px; pointer-events: none; }
.ec-map .lps-tag { display: block; padding: 6px 10px 5px; font: 600 var(--fs-micro)/1 var(--body); letter-spacing: .3px; white-space: nowrap;
  color: #fff; background: var(--polar-night); border: 2px solid #fff; border-bottom: 0; box-shadow: var(--shadow-pin); }
.ec-map .lps-sub { position: relative; display: block; padding: 3px 8px 4px; font: 600 11px/1 var(--body); white-space: nowrap;
  color: #fff; background: var(--red-light); border: 2px solid #fff; border-top: 0; box-shadow: var(--shadow-pin); }
.ec-map .lps-sub::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.event-card:not(.coming-soon):hover .ec-map img { transform: none; }
.ec-map-credit { position: absolute; right: 8px; bottom: 6px; z-index: 1; font-size: 10px; line-height: 1; color: var(--silver-dark); }
.ec-showroom .ec-more.btn, .event-card.ec-showroom:hover .ec-more.btn { align-self: flex-start; margin-top: auto; padding: 18px 34px; color: #fff; font-size: var(--fs-label); }
/* event page: the summary and the story side by side on a wide screen */
@media (min-width: 900px) {
  .evp-intro:has(> p + p) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; max-width: none; align-items: start; }
  .evp-intro:has(> p + p) .evp-answer { margin: 0; padding: 0; border: 0; }
}
/* the summary leads the story: it was losing to the paragraph size */
.evp-intro .evp-answer { font-size: var(--fs-h3); line-height: 1.45; color: var(--polar-night); }
/* phones crop the map shorter: the tag alone, with its pointer, and the card
   says "by appointment" underneath anyway */
@media (max-width: 640px) {
  .ec-map .lps-sub { display: none; }
  .ec-map .lps-tag { position: relative; border-bottom: 2px solid #fff; }
  .ec-map .lps-tag::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
}
/* light logos sit on white, not on the page's own pale blue, so the card
   reads as one piece instead of a hole cut through to the section behind;
   a hairline separates the logo from the details */
.ec-img img.fit-light { background: #fff; }
.ec-img:has(> img.fit-light) { background: #fff; border-bottom: 1px solid var(--line); }
