/* ==========================================================================
   CapabriX — components: header, footer, hero, catalogue, cart, calendar.

   Design discipline for this file:
   - White ground. Navy for structure. ONE accent (teal) used sparingly.
   - No gradient headings, no glass blur, no blurred colour blobs, no bento.
   - Borders and spacing do the work instead of shadows and colour washes.
   - Layouts are asymmetric and content-led; nothing is centred by default.
   ========================================================================== */

/* ============================================================== header === */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(14,31,61,.05); }

.header-inner { display: flex; align-items: center; gap: var(--sp-5); min-height: 76px; }

.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand-lockup:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.32rem;
  color: var(--navy-800); letter-spacing: -.02em; line-height: 1;
}
.brand-name .x { fill: none; }

/* nav ------------------------------------------------------------------- */
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: var(--r-sm);
  font-size: .935rem; font-weight: 600; color: var(--ink-700);
  text-decoration: none; white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-link:hover { color: var(--navy-700); background: var(--navy-050); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--navy-800); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; inset: auto 0 -2px 0; height: 2px;
}
.nav-item { position: relative; }
.nav-item > .nav-link[aria-current="page"] { background: var(--navy-050); }

/* dropdown -------------------------------------------------------------- */
.nav-toggle-caret { width: 9px; height: 9px; transition: transform .2s var(--ease); }
.nav-item.is-open .nav-toggle-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: .45rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown li { margin: 0; }
.nav-dropdown a {
  display: block; padding: .6rem .75rem; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 600; color: var(--ink-700); text-decoration: none;
}
.nav-dropdown a:hover { background: var(--navy-050); color: var(--navy-700); text-decoration: none; }
.nav-dropdown .dd-desc { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-500); margin-top: .1rem; }

/* header actions -------------------------------------------------------- */
.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.cart-button {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: #fff;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy-700); cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.cart-button:hover { border-color: var(--navy-700); background: var(--navy-050); }
.cart-count {
  min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem;
  display: inline-grid; place-items: center; border-radius: var(--r-pill);
  background: var(--accent-teal); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}
.cart-count[data-count="0"] { display: none; }

/* mobile ---------------------------------------------------------------- */
.nav-burger {
  display: none; width: 44px; height: 44px; padding: 0; place-items: center;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .22s var(--ease), opacity .18s var(--ease); }
.nav-burger span + span { margin-top: 4px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-burger { display: grid; }
  .primary-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
    max-height: calc(100dvh - 76px); overflow-y: auto;
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-link { padding: .8rem .6rem; font-size: 1rem; justify-content: space-between; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: .1rem 0 .4rem .6rem; padding: 0 0 0 .5rem;
    display: none;
  }
  .nav-item.is-open .nav-dropdown { display: block; }
}

/* =============================================================== hero ====
   Asymmetric on purpose: statement copy on the left, a real programme index
   on the right. The right column is actual catalogue data with real prices,
   not decoration. */

.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); } }

.hero-title { font-size: var(--fs-display); color: var(--navy-900); margin-bottom: var(--sp-5); }
.hero-lead { font-size: var(--fs-lead); color: var(--ink-500); max-width: 46ch; margin-bottom: var(--sp-6); }

.hero-statement {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 500;
  color: var(--navy-700); padding-left: 1rem; border-left: 3px solid var(--brand-teal);
  margin-bottom: var(--sp-5); line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--sp-6); }

.hero-facts { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.hero-fact dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); font-weight: 700; margin-bottom: .25rem; }
.hero-fact dd { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--navy-800); }

/* programme index — reads like a price list, which is the honest form */
.hero-index { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.hero-index-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.35rem; background: var(--navy-800); color: #fff;
}
.hero-index-head h2 { margin: 0; font-size: .95rem; color: #fff; letter-spacing: .01em; }
.hero-index-head span { font-size: var(--fs-xs); color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.hero-index-list { list-style: none; margin: 0; padding: 0; }
.hero-index-list li { margin: 0; border-top: 1px solid var(--line); }
.hero-index-list li:first-child { border-top: 0; }
.hero-index-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.35rem; text-decoration: none; color: var(--ink-700);
  transition: background-color .16s var(--ease), padding-left .18s var(--ease);
}
.hero-index-list a:hover { background: var(--navy-050); padding-left: 1.6rem; text-decoration: none; }
.hero-index-name { font-weight: 600; font-size: .94rem; }
.hero-index-meta { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-500); margin-top: .12rem; }
.hero-index-price { font-weight: 700; font-size: .95rem; color: var(--navy-800); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-index-foot { padding: .85rem 1.35rem; background: var(--surface-2); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-500); }

/* ====================================================== learning model ===
   Numbered steps from the brochure. A connected sequence, not a card grid. */

.model-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.model-step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); padding: var(--sp-5) 0; border-top: 1px solid var(--line); margin: 0; }
.model-step:last-child { border-bottom: 1px solid var(--line); }
.model-num {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  color: var(--accent-teal); line-height: 1; min-width: 2.6rem; font-variant-numeric: tabular-nums;
}
.model-step h3 { margin-bottom: .3rem; font-size: 1.14rem; }
.model-step p { margin: 0; color: var(--ink-500); max-width: 62ch; }

@media (min-width: 860px) {
  .model-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-7); }
  .model-step:nth-child(2) { border-top: 1px solid var(--line); }
  .model-step:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ========================================================= course card === */

.course-card { display: flex; flex-direction: column; height: 100%; position: relative; }
.course-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: var(--sp-3); }
.course-card h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.course-card h3 a { color: inherit; text-decoration: none; }
.course-card h3 a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: .2em; }
.course-summary { color: var(--ink-500); font-size: .94rem; margin-bottom: var(--sp-4); }

.course-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--sp-4); }

.course-tools { font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.6; padding-top: var(--sp-3); border-top: 1px dashed var(--line-strong); margin-bottom: var(--sp-4); }
.course-tools strong { display: block; text-transform: uppercase; letter-spacing: .09em; font-size: .68rem; color: var(--ink-500); margin-bottom: .25rem; font-weight: 700; }

.course-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.price { line-height: 1.15; }
.price-amount { font-size: 1.42rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-gst { display: block; font-size: var(--fs-xs); color: var(--ink-500); margin-top: .15rem; }
.price-request { font-size: 1rem; font-weight: 700; color: var(--ink-600); }

/* ============================================================ trainers === */

.trainer-card { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.trainer-photo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface-3); flex: none;
}
.trainer-card h3 { margin-bottom: .15rem; font-size: 1.08rem; }
.trainer-post { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-teal); margin-bottom: .5rem; }
.trainer-role { font-size: .88rem; color: var(--ink-500); margin-bottom: .75rem; line-height: 1.5; }
.trainer-bio p { font-size: .93rem; margin-bottom: .8rem; }
.trainer-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: var(--sp-3); }

@media (max-width: 520px) {
  .trainer-card { grid-template-columns: 1fr; }
  .trainer-photo { width: 72px; height: 72px; }
}

/* ============================================================= why us ==== */

.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.why-item { margin: 0; padding: var(--sp-5) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2.2rem 1fr; gap: var(--sp-4); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-icon { width: 22px; height: 22px; color: var(--accent-teal); margin-top: .18rem; }
.why-item h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.why-item p { margin: 0; color: var(--ink-500); font-size: .94rem; }
@media (min-width: 800px) {
  .why-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-7); }
  .why-item:nth-child(2) { border-top: 1px solid var(--line); }
  .why-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================== footer === */

.site-footer { background: var(--surface-ink); color: var(--on-dark-muted); padding-block: var(--sp-8) var(--sp-5); font-size: .92rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: var(--sp-6) var(--sp-5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-tagline { color: var(--on-dark-accent); font-size: .88rem; margin: .5rem 0 var(--sp-4); font-family: var(--font-display); }
.footer-about { color: var(--on-dark-muted); max-width: 34ch; font-size: .88rem; }

.footer-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--sp-4); color: #fff; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-list a, .footer-contact a, .footer-legal-links a {
  color: var(--on-dark-muted); text-decoration: none; transition: color .15s var(--ease);
}
.footer-list a:hover, .footer-contact a:hover, .footer-legal-links a:hover {
  color: #fff; text-decoration: underline; text-underline-offset: .2em;
}
/* Without the rule above, these links inherit the global link colour
   (--accent-teal), which is 1.7:1 against the navy footer. */
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: .6rem; line-height: 1.5; }
.footer-contact .lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: #96A5BC; margin-bottom: .1rem; }

/* LearnKnow Ventures parent-entity credit + logo slot */
.footer-parent {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.13);
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
}
.lkv-logo-slot {
  width: 116px; min-height: 56px; flex: none;
  display: grid; place-items: center; text-align: center;
  background: #fff; border-radius: var(--r-sm); padding: .5rem;
}
.lkv-logo-slot img { max-height: 46px; width: auto; }
/* Placeholder styling — disappears automatically once the real logo is dropped in.
   See docs/PLACEHOLDERS.md */
.lkv-logo-slot.is-placeholder {
  background: transparent; border: 1px dashed rgba(255,255,255,.45);
  color: #A8B6CC; font-size: .62rem; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
}
.footer-parent-text { font-size: .9rem; color: var(--on-dark-muted); max-width: 52ch; }
.footer-parent-text strong { color: #fff; font-weight: 700; }

.footer-legal {
  margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--on-dark-muted);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.footer-legal-links li { margin: 0; }

/* ======================================================== cart drawer ==== */

.cart-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(430px, 100%); z-index: 130;
  background: #fff; box-shadow: -8px 0 40px rgba(14,31,61,.16);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  /* Closed the drawer is visibility:hidden, which takes its buttons out of the
     tab order — otherwise keyboard users tab into an invisible dialog.
     visibility is switched with a 0s transition DELAYED to the end of the
     slide-out, so the panel still animates away instead of vanishing.
     On open there is no delay, so the panel is focusable on the very next
     frame; a transitioned visibility would still compute as `hidden` when
     open() tries to move focus into it. */
  visibility: hidden;
  transition: transform .34s var(--ease-out), visibility 0s linear .34s;
}
.cart-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform .34s var(--ease-out), visibility 0s linear 0s;
}
.cart-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(14,31,61,.42);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.cart-backdrop.is-open { opacity: 1; visibility: visible; }

.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.08rem; }
.icon-button {
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--ink-600); cursor: pointer; transition: background-color .15s var(--ease);
}
.icon-button:hover { background: var(--navy-050); color: var(--navy-800); }

.cart-body { flex: 1; overflow-y: auto; padding: 1.15rem 1.35rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line-title { font-weight: 600; font-size: .94rem; color: var(--ink-700); }
.cart-line-meta { font-size: var(--fs-xs); color: var(--ink-500); margin-top: .15rem; }
.cart-line-price { font-weight: 700; color: var(--navy-800); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-line-actions { display: flex; align-items: center; gap: .5rem; grid-column: 1 / -1; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: #fff; color: var(--ink-700); font-size: 1rem; line-height: 1; cursor: pointer; }
.qty button:hover { background: var(--navy-050); }
.qty output { min-width: 2rem; text-align: center; font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.link-danger { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-xs); color: var(--err-fg); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

.cart-foot { border-top: 1px solid var(--line); padding: 1.15rem 1.35rem; background: var(--surface-2); }
.total-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .92rem; }
.total-row.is-total { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line-strong); font-size: 1.06rem; font-weight: 800; color: var(--navy-900); }
.total-row span:last-child { font-variant-numeric: tabular-nums; }
.cart-empty { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--ink-500); }

/* ===================================================== cookie banner ===== */

.cookie-banner {
  position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 150;
  max-width: 560px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 1.35rem;
  transform: translateY(140%); transition: transform .42s var(--ease-out);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner h2 { font-size: 1.02rem; margin-bottom: .5rem; }
.cookie-banner p { font-size: .89rem; color: var(--ink-500); margin-bottom: var(--sp-4); }
/* Accept and Reject are given equal visual weight on purpose — a "reject"
   styled as a faint text link is a dark pattern and is not valid consent. */
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { flex: 1 1 auto; min-width: 130px; }
@media (max-width: 420px) { .cookie-actions .btn { flex-basis: 100%; } }

/* ========================================================== calendar ===== */

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.cal-title { font-size: 1.3rem; margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--navy-900); }
.cal-nav { display: flex; gap: .4rem; }

.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1px solid var(--line); }
.calendar th {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-500); font-weight: 700; padding: .7rem .5rem; text-align: center;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.calendar td { border: 1px solid var(--line); vertical-align: top; height: 104px; padding: .4rem; position: relative; }
.calendar td.is-outside { background: var(--surface-2); }
.calendar td.is-today { background: var(--info-bg); }
.cal-date { font-size: .8rem; font-weight: 700; color: var(--ink-600); display: block; margin-bottom: .25rem; }
.calendar td.is-today .cal-date { color: var(--accent-teal); }
.cal-event {
  display: block; font-size: .74rem; line-height: 1.3; padding: .22rem .38rem; margin-bottom: .2rem;
  border-radius: 4px; background: var(--navy-050); color: var(--navy-800);
  border-left: 2px solid var(--brand-teal); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-event:hover { background: var(--navy-100); text-decoration: none; }
.cal-event.type-webinar { border-left-color: var(--brand-green); }
.cal-event.type-deadline { border-left-color: #C2410C; }

@media (max-width: 720px) {
  .calendar { display: none; }        /* the list below is the mobile view */
}
.cal-list { list-style: none; margin: 0; padding: 0; }
@media (min-width: 721px) { .cal-list.is-mobile-only { display: none; } }

.event-row { display: grid; grid-template-columns: 5.2rem 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--line); margin: 0; }
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-date { text-align: center; padding: .4rem; background: var(--surface-2); border-radius: var(--r-sm); border: 1px solid var(--line); align-self: start; }
.event-date .d { display: block; font-size: 1.35rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.event-date .m { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); font-weight: 700; margin-top: .2rem; }
.event-row h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.event-row p { margin: 0 0 .4rem; font-size: .92rem; color: var(--ink-500); }
.event-when { font-size: var(--fs-xs); color: var(--ink-500); }

/* ============================================================== misc ===== */

.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem,1rem+3vw,3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 62ch; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 var(--sp-4); padding: 0; font-size: var(--fs-xs); color: var(--ink-500); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-300); }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-teal); text-decoration: underline; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-6); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.filter-chip {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  padding: .5rem 1rem; border-radius: var(--r-pill);
  background: #fff; border: 1.5px solid var(--line-strong); color: var(--ink-600);
  /* Enumerated, not `transition: all` — `all` also animates outline-width,
     which makes the keyboard focus ring fade in late instead of appearing. */
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
  text-decoration: none;
}
.filter-chip:hover { border-color: var(--navy-700); color: var(--navy-700); text-decoration: none; }
.filter-chip[aria-pressed="true"], .filter-chip.is-active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.placeholder-note {
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  padding: var(--sp-5); background: var(--surface-2); color: var(--ink-500); font-size: .9rem;
}
.placeholder-note strong { display: block; color: var(--ink-700); margin-bottom: .3rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.42rem; margin-top: var(--sp-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-5); font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; color: var(--ink-700); }
.legal-updated { font-size: var(--fs-sm); color: var(--ink-500); padding: .7rem 1rem; background: var(--surface-2); border-left: 3px solid var(--brand-teal); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
