[hidden] { display: none !important; }

:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-alt: #eaf2f6;
  --ink: #0f2233;
  --muted: #4b6377;
  --border: #d3e1ea;
  --accent: #0e7490;
  --accent-dark: #09576d;
  --accent-soft: #def2f7;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 34, 51, 0.06);
  --shadow-md: 0 12px 30px -8px rgba(15, 34, 51, 0.10);
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --target-size: 36px;
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, video { max-inline-size: 100%; block-size: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a, code) { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus { inset-block-start: 12px; text-decoration: none; }

.wrap { width: 100%; max-inline-size: 1100px; margin-inline: auto; padding-inline: 20px; }
.prose-wrap { max-inline-size: 800px; }

/* Header & Responsive Popover Navbar */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
}

.site-header.is-measuring * { transition: none !important; }

.header-inner {
  min-block-size: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-block-size: var(--target-size);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--accent-dark); }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-mark-sm { width: 24px; height: 24px; border-radius: 6px; }

.site-nav { display: flex; align-items: center; }

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 40px;
  min-inline-size: 44px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.menu-button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

@supports not selector(:popover-open) {
  .site-menu[popover]:not(.\:popover-open) { display: none; }
}

.site-menu {
  position: fixed;
  inset: auto;
  inset-block-start: 3.75rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(84dvw, 19rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 5.5rem);
  margin: 0.45rem 0 0;
  padding: 8px;
  list-style: none;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.site-menu:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-menu::backdrop { background: rgba(15, 34, 51, 0.22); }

@media (prefers-reduced-motion: no-preference) {
  .site-menu[popover] {
    opacity: 0;
    translate: 0 -6px;
    transition: opacity 0.18s ease, translate 0.18s ease, display 0.18s ease, overlay 0.18s ease;
    transition-behavior: allow-discrete;
  }
  .site-menu[popover]:is(:popover-open, .\:popover-open) {
    opacity: 1;
    translate: 0 0;
  }
  @starting-style {
    .site-menu[popover]:is(:popover-open, .\:popover-open) {
      opacity: 0;
      translate: 0 -6px;
    }
  }
}

.site-menu li { margin: 0; }
.site-menu a {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-menu a:hover { background: var(--surface-alt); color: var(--accent-dark); text-decoration: none; }
.site-menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent);
}

.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  translate: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a {
  min-block-size: 38px;
  padding: 6px 11px;
  font-size: 13.5px;
  color: var(--muted);
}
.site-header.is-wide .site-menu a:hover { color: var(--accent-dark); background: var(--surface-alt); }
.site-header.is-wide .site-menu a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { outline: 2px solid Highlight; box-shadow: none; }
}

/* Homepage Clinical Backdrop & Compact Hero */
.hero-arena-band {
  background:
    radial-gradient(64rem 24rem at 18% -10%, rgba(14, 116, 144, 0.10), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(15, 34, 51, 0.05) 1px, transparent 0);
  background-size: auto, 22px 22px;
  padding-block-end: 14px;
}

.hero-compact { padding: 16px 0 10px; }
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.badge-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.hero-compact h1 {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.35rem);
  margin-bottom: 5px;
}
.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-inline-size: 68ch;
}

/* Arena Shell */
.arena-section { padding: 4px 0 8px; }
.tool-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 3px 0 var(--accent), var(--shadow-md);
  overflow: hidden;
  scroll-margin-top: 62px;
}

/* Utility Strip */
.utility-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-block-size: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}
.util-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--bg); }
.util-btn:active { transform: scale(0.98); }
.util-btn[data-gf-liked], .util-btn[data-gf-done] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.util-btn-accent {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--surface);
}
.util-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-alt);
}
.util-msg { font-size: 12px; color: var(--accent-dark); font-weight: 600; }
.ios-tip {
  inline-size: 100%;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

/* Ad Native Slot — collapses cleanly when empty, zero dashed borders */
.ad-native-slot {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
}
.ad-native-slot:not(:empty) { margin: 16px auto; }
.ad-native-slot:empty { display: none; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.16s ease, transform 0.14s ease;
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-primary:active { transform: scale(0.985); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.btn-ghost {
  min-block-size: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.btn-inline { margin-top: 14px; }

/* Specialty Tracks Section (Visual Editorial Cards) */
.tracks-section { padding: 34px 0 24px; }
.section-head { margin-bottom: 20px; }
.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.section-head h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); margin-bottom: 6px; }
.section-head p { margin: 0; color: var(--muted); max-inline-size: 62ch; }

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.track-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.track-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.track-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.track-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}
.track-card:hover .track-media img { transform: scale(1.025); }
.track-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.track-kicker {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.track-kicker-warm { background: var(--amber-soft); color: var(--amber); }
.track-card h3 { font-size: 18px; margin-bottom: 6px; }
.track-card p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.track-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-dark);
}

/* 5th Guide Spotlight Banner */
.spotlight-guide {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.spotlight-guide:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; }
.spotlight-media {
  aspect-ratio: 16 / 9;
  height: 100%;
  background: var(--surface-alt);
  overflow: hidden;
}
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { padding: 18px 22px 18px 4px; }
.spotlight-body h3 { font-size: 18px; margin-bottom: 6px; }
.spotlight-body p { margin: 0 0 10px; font-size: 14px; color: var(--muted); max-inline-size: 62ch; }

/* Visual Feature Split */
.visual-feature { padding: 20px 0 32px; }
.feature-split {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.feature-copy h2 { font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.6rem); }
.feature-copy p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.feature-media {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

/* Prose & Guides */
.prose-section { padding: 16px 0 32px; }
.prose-wrap h2 { font-size: clamp(1.35rem, 1.12rem + 0.85vw, 1.65rem); margin-top: 34px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.prose-wrap h3 { font-size: 18px; margin-top: 24px; color: var(--ink); }
.prose-wrap p { margin: 0 0 15px; max-inline-size: 68ch; color: var(--ink); }
.prose-wrap ul, .prose-wrap ol { margin: 0 0 18px; padding-inline-start: 22px; color: var(--ink); }
.prose-wrap li { margin-bottom: 7px; }
.prose-wrap code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-alt);
  color: var(--accent-dark);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Container-Aware Responsive Tables */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  margin: 20px 0;
  border-radius: var(--radius);
  container-type: inline-size;
}
.table-wrapper:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.prose-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.prose-wrap thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
}
.prose-wrap th, .prose-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose-wrap th {
  background: var(--surface-alt);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}
.prose-wrap tbody tr:last-child td { border-bottom: none; }
.prose-wrap tbody tr:nth-child(even) td { background: var(--bg); }

@container (width < 560px) {
  .prose-wrap table[data-has-labels="true"] {
    border: none;
    background: transparent;
    border-radius: 0;
  }
  .prose-wrap table[data-has-labels="true"],
  .prose-wrap table[data-has-labels="true"] tbody,
  .prose-wrap table[data-has-labels="true"] tr,
  .prose-wrap table[data-has-labels="true"] td {
    display: block;
    width: 100%;
  }
  .prose-wrap table[data-has-labels="true"] thead { display: none; }
  .prose-wrap table[data-has-labels="true"] tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-block-end: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .prose-wrap table[data-has-labels="true"] td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface) !important;
  }
  .prose-wrap table[data-has-labels="true"] td:first-child {
    background: var(--surface-alt) !important;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    font-size: 14.5px;
  }
  .prose-wrap table[data-has-labels="true"] td:last-child { border-bottom: none; }
  .prose-wrap table[data-has-labels="true"] td:nth-child(2)::before {
    content: var(--col-2);
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 3px;
  }
  .prose-wrap table[data-has-labels="true"] td:nth-child(3)::before {
    content: var(--col-3);
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 3px;
  }
  .prose-wrap table[data-has-labels="true"] td:nth-child(4)::before {
    content: var(--col-4);
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 3px;
  }
}

/* Guide Header */
.guide-article { padding: 0 0 48px; }
.guide-header {
  padding: 24px 0 20px;
  background: radial-gradient(56rem 18rem at 15% -20%, rgba(14, 116, 144, 0.09), transparent 64%);
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-block-size: 32px;
  font-weight: 600;
}
.guide-header h1 {
  font-size: clamp(1.55rem, 1.12rem + 1.8vw, 2.25rem);
  margin-bottom: 16px;
}
.quick-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.qa-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.quick-answer p { margin: 0; font-size: 15px; color: var(--ink); }
.guide-cover {
  margin: 18px 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}
.guide-cover img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ Accordion */
.faq-section { padding: 18px 0 36px; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-block-size: 52px;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "";
  inline-size: 18px;
  block-size: 18px;
  flex-shrink: 0;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.faq-item[open] > summary::before { rotate: 0deg; }

.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq-item:not([open])::details-content { block-size: 0; }

@media (prefers-reduced-motion: no-preference) {
  .faq-item summary::before { transition: rotate 0.2s ease; }
  .faq-item::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-answer { padding: 0 18px 16px 48px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Related Guides */
.related-section { padding: 20px 0 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.related-card strong { font-family: var(--font-head); font-size: 15.5px; line-height: 1.3; }
.related-card span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.related-link-cue { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 13px; color: var(--accent-dark) !important; }
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }

/* Comments */
.comments-section { padding: 12px 0 48px; }
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.comment-row { margin-bottom: 10px; }
.comment-form input, .comment-form textarea {
  width: 100%;
  min-block-size: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.comment-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-msg { margin: 8px 0 0; font-size: 13px; color: var(--accent-dark); font-weight: 600; }
.comments-list[data-gf-empty]::before {
  content: "No comments yet — share your best ward-round score or suggest a clinical specialty to add next.";
  display: block;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.comment-card[data-gf-owner] { border-inline-start: 4px solid var(--accent); }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.comment-meta strong { color: var(--ink); }
.owner-pill { font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark); padding: 2px 8px; border-radius: 999px; }
.comment-body { margin: 0 0 8px; font-size: 14.5px; color: var(--ink); }
.reply-link { min-block-size: 36px; background: none; border: none; padding: 4px 0; color: var(--accent-dark); font-size: 13px; font-weight: 700; cursor: pointer; }
.comment-replies { margin-top: 10px; padding-inline-start: 16px; border-inline-start: 2px solid var(--border); display: grid; gap: 8px; }
.reply-card { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }

/* Legal & 404 */
.legal-article, .notfound-section { padding: 28px 0 56px; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--border);
  padding: 40px 0 32px;
  margin-top: 24px;
}
.site-footer a { color: var(--accent-soft); }
.site-footer a:hover { color: var(--surface); }
.footer-inner { display: grid; gap: 28px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-brand strong { font-family: var(--font-head); font-size: 18px; color: var(--surface); }
.footer-brand p { margin: 0; font-size: 13.5px; max-inline-size: 62ch; color: var(--border); line-height: 1.58; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 24px; }
.footer-cols h3 { color: var(--surface); font-size: 14px; margin-bottom: 10px; letter-spacing: 0.02em; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: 13.5px; }
.footer-cols li a { display: inline-flex; align-items: center; min-block-size: 36px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; font-size: 12.5px; color: var(--border); }

/* Responsive Breakpoints */
@media (max-width: 820px) {
  .spotlight-guide { grid-template-columns: 1fr; gap: 0; }
  .spotlight-body { padding: 16px 18px 18px; }
  .feature-split { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 14px; }
  .header-inner { min-block-size: 50px; }
  .hero-arena-band { padding-block-end: 8px; }
  .hero-compact { padding: 8px 0 6px; }
  .hero-eyebrow-row { margin-bottom: 4px; gap: 6px; }
  .badge-meta { display: none; }
  .hero-compact h1 { font-size: 21px; line-height: 1.18; margin-bottom: 4px; }
  .hero-sub { font-size: 12.5px; line-height: 1.38; }
  .utility-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
  .util-btn { width: 100%; min-block-size: 42px; padding: 7px 10px; font-size: 12.5px; }
  .util-msg, .ios-tip { grid-column: 1 / -1; }
  .tracks-section { padding: 22px 0 18px; }
  .track-grid { grid-template-columns: 1fr; gap: 14px; }
  .track-body { padding: 15px 16px 16px; }
  .faq-answer { padding: 0 16px 14px 44px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-cols li a { min-block-size: 40px; }
  .quick-answer { padding: 15px 16px; }
  .quick-answer .btn-primary { width: 100%; }
}

@media (max-width: 360px) {
  .wrap { padding-inline: 12px; }
  .brand { font-size: 16px; }
  .footer-cols { grid-template-columns: 1fr; }
}