/* Spatial Omics Methods Catalog: Apple-style system, continuous with the cover. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Public Sans", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Public Sans", sans-serif;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --card-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --hair: #e5e5ea;
  --hair-2: #d2d2d7;
  --fill: #e8e8ed;
  --link: #0066cc;
  --accent: #0071e3;
  --accent-tint: #e8f1fd;
  --stat: #2b37c9;
  --hyb: #9b6bff;
  --dl: #2ea8ff;
  --lack: #ff3b30;
  --chip-on: #1d1d1f;
  --chip-on-text: #ffffff;
  --shadow-card: 0 2px 6px rgb(0 0 0 / .03), 0 12px 40px rgb(0 0 0 / .05);
  --r-card: 28px;
  --r-ctl: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #0b0b0d; --card: #1c1c1e; --card-soft: #161618; --text: #f5f5f7; --muted: #a1a1a6; --faint: #86868b;
    --hair: #2c2c2e; --hair-2: #3a3a3c; --fill: #2c2c2e; --link: #2997ff; --accent: #2997ff; --accent-tint: #0f2a47;
    --stat: #7f8cff; --hyb: #b996ff; --dl: #4dbbff; --lack: #ff453a; --chip-on: #f5f5f7; --chip-on-text: #000;
    --shadow-card: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #0b0b0d; --card: #1c1c1e; --card-soft: #161618; --text: #f5f5f7; --muted: #a1a1a6; --faint: #86868b;
  --hair: #2c2c2e; --hair-2: #3a3a3c; --fill: #2c2c2e; --link: #2997ff; --accent: #2997ff; --accent-tint: #0f2a47;
  --stat: #7f8cff; --hyb: #b996ff; --dl: #4dbbff; --lack: #ff453a; --chip-on: #f5f5f7; --chip-on-text: #000;
  --shadow-card: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--hair-2) transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; accent-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
input, select, button { font-family: var(--font); letter-spacing: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--faint); font-size: 14px; }
svg { width: 14px; height: 14px; flex: none; }

/* Sections */
.sec { padding: 120px 0; }
.sec-gray { background: var(--bg-2); }
.sec-white { background: var(--bg); }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.sec-h { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.sec-sub { margin: 20px auto 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); max-width: 40ch; letter-spacing: -.01em; }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card-black { background: #000; color: #f5f5f7; }
.card-soft { background: var(--card-soft); box-shadow: none; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 19px; color: var(--link); }
.more svg { width: 13px; height: 13px; }
.sec-links { display: flex; justify-content: center; gap: 40px; margin: 56px 0 0; flex-wrap: wrap; }

/* ---------- Pipeline ---------- */
.stages { list-style: none; margin: 0 auto 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1000px; position: relative; }
.stages::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #8fb8e8, #8fd0a0 33%, #f2bd6b 66%, #c7a0e2); transform-origin: left; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; position: relative; }
.sn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 15px var(--display); color: #1d1d1f;
  box-shadow: 0 0 0 6px var(--bg-2); position: relative; z-index: 1; }
.s1 .sn { background: #8fb8e8; } .s2 .sn { background: #8fd0a0; } .s3 .sn { background: #f2bd6b; } .s4 .sn { background: #c7a0e2; }
.st { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--text); letter-spacing: -.012em; }

.pipe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.tasks-card { padding: 14px; display: flex; }
.tasklist { display: flex; flex-direction: column; width: 100%; justify-content: center; }
.ht { display: grid; grid-template-columns: minmax(0, 1fr) 30% 2.4rem; gap: 16px; align-items: center; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 14px; color: var(--text); cursor: pointer; font: 500 16px/1.25 var(--font); letter-spacing: -.015em;
  padding: 12px 16px; transition: background-color .2s ease-out; }
.ht:hover { background: var(--bg-2); }
.ht.on { background: var(--bg-2); }
.ht.on .ht-name { font-weight: 600; }
.ht-track { display: block; height: 6px; }
.ht-bar { display: flex; height: 100%; border-radius: 3px; overflow: hidden; min-width: 4px; }
.ht-bar .b-stat, .bar .b-stat { background: var(--stat); } .ht-bar .b-hyb, .bar .b-hyb { background: var(--hyb); } .ht-bar .b-dl, .bar .b-dl { background: var(--dl); }
.ht-n { text-align: right; font-weight: 600; font-size: 16px; color: var(--muted); }
.ht.on .ht-n { color: var(--text); }

.inset { margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.inset canvas { display: block; width: 100%; aspect-ratio: 4 / 3; flex: 1; }
.inset figcaption { padding: 4px 28px 26px; font-size: 15px; color: #a1a1a6; line-height: 1.45; }
.inset figcaption b { color: #f5f5f7; display: block; font: 600 21px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 4px; }
.inset .synthetic { display: block; font-size: 12px; color: #6e6e73; margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-in .stages::before { animation: draw 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-in .stage { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-in .s2 { animation-delay: .12s; } .hero-in .s3 { animation-delay: .24s; } .hero-in .s4 { animation-delay: .36s; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Scroll reveal for section heads and cards (set by cover.js) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
  .rv.rv-in { opacity: 1; transform: none; }
}

/* ---------- Timeline ---------- */
.tl-legend { list-style: none; margin: 28px 0 0; padding: 0; display: flex; justify-content: center; gap: 24px; font-size: 14px; color: var(--muted); }
.tl-legend li { display: flex; align-items: center; gap: 8px; }
.pt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pt.p-stat { background: var(--stat); } .pt.p-hyb { background: var(--hyb); } .pt.p-dl { background: var(--dl); }
.tl-chart { position: relative; }
.tl-chart svg { display: block; overflow: visible; width: 100%; height: auto; }
.tl-band { fill: var(--bg-2); }
.tl-rule { stroke: var(--hair); stroke-width: 1; }
.tl-cat { fill: var(--text); font: 500 14px var(--font); letter-spacing: -.01em; }
.tl-catn { fill: var(--faint); font-weight: 400; }
.tl-year { fill: var(--faint); font: 500 13px var(--font); }
.tl-pt { stroke: var(--bg); stroke-width: 1.2; cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.tl-pt.p-stat { fill: var(--stat); } .tl-pt.p-hyb { fill: var(--hyb); } .tl-pt.p-dl { fill: var(--dl); }
.tl-pt:hover, .tl-pt:focus-visible { transform: scale(1.7); outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .timeline:not(.tl-in) .tl-pt { opacity: 0; transform: scale(.2); }
  .tl-in .tl-pt { transition: opacity .6s ease-out, transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--yi) * 80ms); }
  .tl-in .tl-pt:hover, .tl-in .tl-pt:focus-visible { transition-delay: 0s; transition-duration: .2s; }
}
.tl-tip { position: absolute; transform: translate(-50%, -100%); background: rgb(29 29 31 / .92); color: #f5f5f7; border-radius: 12px;
  padding: 10px 14px; font-size: 13px; line-height: 1.4; pointer-events: none; max-width: 260px; z-index: 5;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgb(0 0 0 / .18); }
.tl-tip b { display: block; font-size: 15px; font-weight: 600; }
.tl-tip span { display: block; color: #a1a1a6; }

/* ---------- Catalog ---------- */
.filters { padding: 32px 36px 28px; display: grid; gap: 30px; }
.f-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.f-label { font: 600 13px var(--font); letter-spacing: -.005em; text-transform: none; color: var(--text); }
.have-hint { margin: 0; font-size: 14px; color: var(--faint); }

.have-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--font); letter-spacing: -.01em; color: var(--text);
  background: var(--bg-2); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out, transform .2s cubic-bezier(.16, 1, .3, 1); }
.toggle:hover { background: var(--fill); }
.toggle:active { transform: scale(.97); }
.toggle[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-text); }
.box { display: none; }

.legend { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sw-stat { background: var(--stat); } .sw-hyb { background: var(--hyb); } .sw-dl { background: var(--dl); }
.task-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.trow { display: grid; grid-template-columns: minmax(150px, 18rem) 1fr 3.2rem; align-items: center; gap: 14px; width: 100%; border: 0; background: none;
  padding: 8px 12px; border-radius: 10px; text-align: left; cursor: pointer; font: 400 14px/1.25 var(--font); letter-spacing: -.01em; color: var(--text);
  transition: background-color .2s ease-out; }
.trow:hover { background: var(--bg-2); }
.trow[aria-pressed="true"] { background: var(--accent-tint); font-weight: 600; }
.trow:disabled { cursor: default; color: var(--faint); }
.trow .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--fill); }
.bar span { display: block; height: 100%; transition: width .35s cubic-bezier(.16, 1, .3, 1); }
.trow .cnt { text-align: right; font-size: 13px; color: var(--muted); font-weight: 600; }
.trow.all { grid-column: 1 / -1; margin-bottom: 6px; }
.tasks-d > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-2); border-radius: var(--r-ctl); padding: 12px 16px; font: 500 15px var(--font); }
.tasks-d > summary::-webkit-details-marker { display: none; }
.tasks-d > summary svg { transition: transform .2s cubic-bezier(.16, 1, .3, 1); color: var(--faint); }
.tasks-d[open] > summary svg { transform: rotate(90deg); }
.tasks-d[open] > summary { margin-bottom: 8px; }
.tasks-d > summary .muted { font-weight: 400; }
@media (min-width: 821px) { details.tasks-d > summary { display: none; } }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--hair); padding-top: 26px; }
.search { flex: 1 1 280px; position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; height: 16px; }
.search input { width: 100%; font-size: 16px; color: var(--text); background: var(--bg-2); border: 0; border-radius: var(--r-ctl);
  padding: 12px 14px 12px 40px; caret-color: var(--accent); transition: box-shadow .2s ease-out, background-color .2s ease-out; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.seg { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { font: 500 14px var(--font); letter-spacing: -.01em; border: 0; background: none; color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer;
  transition: background-color .2s ease-out, box-shadow .2s ease-out; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / .12), 0 1px 1px rgb(0 0 0 / .04); font-weight: 600; }
.sel { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sel select { font-size: 14px; color: var(--text); background: var(--bg-2); border: 0; border-radius: 10px; padding: 10px 30px 10px 12px; max-width: 15rem; }
.reset { font: 500 14px var(--font); border: 0; background: none; color: var(--link); cursor: pointer; padding: 6px 2px; }
.reset:hover { text-decoration: underline; text-underline-offset: 3px; }

.statusbar { display: flex; align-items: baseline; gap: 16px; margin: 28px 4px 14px; min-height: 24px; }
.status { margin: 0; font-size: 15px; color: var(--muted); }
.status b { color: var(--text); font-weight: 600; }

/* Table */
.table-shell { overflow: clip; overflow-clip-margin: 0; }
.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; letter-spacing: -.01em; }
.col-m { width: 16%; } .col-task { width: 15%; } .col-core { width: auto; } .col-req { width: 3.1rem; } .col-lang { width: 4.6rem; } .col-links { width: 5.8rem; }
.grid thead th { position: sticky; z-index: 2; background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); padding: 10px 14px; white-space: nowrap; }
.grid thead tr:first-child th { top: var(--nav-h, 52px); padding-top: 16px; padding-bottom: 2px; }
.grid thead tr.req-labels th { top: calc(var(--nav-h, 52px) + var(--h1, 34px)); padding-top: 2px; padding-bottom: 10px; font-weight: 500; font-size: 11.5px; border-bottom: 1px solid var(--hair); }
.req-group { text-align: center !important; }
.req-labels th.rq { text-align: center; padding-left: 2px; padding-right: 2px; }
.req-labels th.rq.have-on { color: var(--text); }
.req-labels abbr { text-decoration: none; cursor: help; }
.sortbtn { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sortbtn svg { width: 12px; height: 12px; opacity: .5; }
th[aria-sort="ascending"] .sortbtn, th[aria-sort="descending"] .sortbtn { color: var(--text); }
th[aria-sort="ascending"] .sortbtn svg, th[aria-sort="descending"] .sortbtn svg { opacity: 1; color: var(--accent); }

.grid tbody td { padding: 14px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr.m-row { transition: background-color .15s ease-out; }
.grid tbody tr.m-row:hover td { background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
tr.grp td { padding: 34px 14px 10px; border-bottom: 1px solid var(--hair); background: var(--card); }
tr.grp h3 { margin: 0; font: 600 21px/1.2 var(--display); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
tr.grp .gn { font: 400 15px var(--font); color: var(--faint); }
tr.grp.missing h3 { color: var(--muted); }
tr.m-row.dim td:not(.req) { color: var(--muted); }

.mname { font: 600 16px var(--font); letter-spacing: -.015em; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0;
  color: var(--text); cursor: pointer; text-align: left; }
.mname svg { width: 11px; height: 11px; color: var(--faint); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.mname[aria-expanded="true"] svg { transform: rotate(90deg); }
.mref { margin-top: 3px; color: var(--faint); font-size: 13px; line-height: 1.35; }
.mref i { font-style: normal; }
.mref .lg { display: none; }
.sub { display: block; color: var(--faint); font-size: 12.5px; margin-bottom: 2px; }
.core .pd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.pd.p-stat { background: var(--stat); } .pd.p-hyb { background: var(--hyb); } .pd.p-dl { background: var(--dl); }
@media (min-width: 821px) {
  .core .ct { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  tr.open .core .ct { -webkit-line-clamp: unset; display: inline; }
}
.missing-note { display: block; margin-top: 5px; font-size: 13px; color: var(--lack); font-weight: 500; }

td.req { text-align: center; padding-left: 2px !important; padding-right: 2px !important; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.dot.need, .dot.met { background: var(--text); }
.dot.no { width: 4px; height: 4px; background: var(--hair-2); }
.dot.lack { background: transparent; box-shadow: inset 0 0 0 2px var(--lack); }
td.yr { color: var(--muted); font-size: 14px; }
td.links { white-space: nowrap; }
td.links a { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--link); padding: 1px 0; }
td.links a svg { width: 10px; height: 10px; }
td.links .none { color: var(--faint); }
td.reqs-m { display: none; }
.reqs-m .chip-r { display: inline-flex; align-items: center; gap: 6px; }
.reqs-m .chip-r .dot { width: 7px; height: 7px; }

tr.detail td { background: var(--bg-2); padding: 20px 14px 24px; }
.detail-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; font-size: 14px; max-width: 1100px; margin: 0; }
.detail-body dt { font-size: 12px; font-weight: 600; color: var(--faint); margin-bottom: 3px; }
.detail-body dd { margin: 0; }
.detail-body .wide { grid-column: 1 / -1; }

mark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { padding: 56px 24px; text-align: center; }
.empty-title { margin: 0 0 8px; font: 600 21px var(--display); letter-spacing: -.02em; }
.empty p { color: var(--muted); margin: 0; }
.empty button { font: 500 15px var(--font); color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.note { font-size: 13px; color: var(--faint); margin: 18px 6px 0; max-width: 90ch; }

/* Closing */
.closing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.closing .card { padding: 44px 44px 40px; }
.close-h { font: 600 clamp(1.7rem, 2.6vw, 2.25rem)/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 16px; }
.closing p { margin: 0 0 22px; color: var(--muted); max-width: 52ch; }
.closing .ref { color: var(--text); }
.closing .ref sup { font-size: .68em; line-height: 0; margin-left: 1px; }
.closing .ref-note { margin-top: -4px; font-size: 13px; color: var(--faint); }
.closing .ref-note sup { font-size: .8em; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 0 !important; }
.closing .pill { font-size: 15px; padding: 11px 20px; border: 0; cursor: pointer; }
.pill[aria-disabled="true"] { background: var(--fill) !important; color: var(--faint) !important; cursor: not-allowed; }
.foot { background: var(--bg-2); border-top: 1px solid var(--hair); padding: 44px 0 40px; font-size: 12px; color: var(--faint); letter-spacing: -.005em; }
.foot p { margin: 4px 0; }

::view-transition-group(*) { animation-duration: .3s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) { *, ::view-transition-group(*) { transition: none !important; animation: none !important; } }

/* Responsive */
@media (max-width: 1100px) {
  .task-chart { grid-template-columns: 1fr; }
  .pipe-grid { grid-template-columns: 1fr; }
  .inset { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .stages { grid-template-columns: 1fr 1fr; gap: 24px 8px; margin-bottom: 36px; }
  .stages::before { display: none; }
  .st { font-size: 14px; }
  .ht { font-size: 15px; grid-template-columns: minmax(0, 1fr) 26% 2rem; padding: 11px 12px; }
  .sec-links { gap: 24px; }
  .more { font-size: 17px; }
  .filters { padding: 22px 18px; gap: 24px; border-radius: 22px; }
  .legend { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 10px; }
  .trow .bar { grid-column: 1 / -1; grid-row: 2; }
  .trow .lbl { white-space: normal; }
  .toggle { font-size: 13.5px; padding: 9px 13px; }
  .search { flex-basis: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 4px; font-size: 13px; }
  .sel { flex: 1 1 40%; }
  .sel select { width: 100%; max-width: none; }
  .table-shell { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .grid, .grid tbody, .grid tr, .grid td { display: block; width: auto; }
  .grid thead, .grid colgroup { display: none; }
  .grid tbody tr.m-row { background: var(--card); border-radius: 20px; margin-bottom: 10px; padding: 18px 18px;
    display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; box-shadow: var(--shadow-card); }
  .grid tbody td { border: 0; padding: 0; }
  .grid tbody tr.m-row:hover td { background: none; }
  td.m { grid-column: 1; }
  td.links { grid-column: 2; grid-row: 1; }
  td.task, td.core { grid-column: 1 / -1; margin-top: 8px; }
  td.yr, td.req { display: none !important; }
  td.reqs-m { display: flex !important; grid-column: 1 / -1; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
  .mref .lg { display: inline; }
  tr.grp { display: block; }
  tr.grp td { background: none; border: 0; padding: 26px 4px 12px; }
  tr.detail { margin: -14px 0 10px; }
  tr.detail td { border-radius: 0 0 20px 20px; }
  .detail-body { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; }
  .closing .card { padding: 30px 24px; border-radius: 22px; }
}

/* ================= Screen 0: cover (text only, Apple-style) ================= */
:root { --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Public Sans", sans-serif;
  --nav-h: 52px; --nav-bg: rgb(255 255 255 / .72); --nav-text: #1d1d1f; --nav-line: rgb(0 0 0 / .08); --cover-bg: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --nav-bg: rgb(18 20 30 / .72); --nav-text: #f2f3f7; --nav-line: rgb(255 255 255 / .08); --cover-bg: #06070d; } }
:root[data-theme="dark"] { --nav-bg: rgb(18 20 30 / .72); --nav-text: #f2f3f7; --nav-line: rgb(255 255 255 / .08); --cover-bg: #06070d; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id], main[id], header[id] { scroll-margin-top: var(--nav-h); }

.topnav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--nav-bg); color: var(--nav-text);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--nav-line);
  font-family: var(--display); }
.topnav-inner { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; }
.topnav-links { display: flex; gap: 28px; margin: 0 0 0 auto; font-size: 13.5px; }
.topnav-links a { color: inherit; opacity: .78; text-decoration: none; transition: opacity .15s ease-out; }
.topnav-links a:hover { opacity: 1; }
.topnav :focus-visible { outline-color: #2a34c9; }

.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; text-decoration: none; font-family: var(--display);
  font-weight: 500; letter-spacing: -.01em; transition: transform .2s cubic-bezier(.16, 1, .3, 1), background-color .2s ease-out, box-shadow .2s ease-out; }
.pill svg { width: 14px; height: 14px; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.pill:hover svg { transform: translateX(3px); }
.pill:active { transform: scale(.97); }
.pill-dark { background: #0b0b10; color: #fff !important; }
.pill-dark:hover { background: #24242c; }
.pill-light { background: rgb(255 255 255 / .92); color: #121218 !important; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(10 20 80 / .12); }
.pill-light:hover { background: #fff; }
.pill-lg { font-size: 17px; padding: 14px 26px; }

.cover { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(to bottom, var(--cover-bg) 0%, var(--cover-bg) 72%, var(--bg-2) 100%); min-height: 100svh;
  margin-top: calc(var(--nav-h) * -1); padding: calc(var(--nav-h) + 40px) 24px 64px; display: grid; place-items: center; text-align: center; }
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 96%); transform: scale(calc(1 + var(--p, 0) * .25)); transform-origin: 50% 55%; }
.glow i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.g1 { width: 96vw; height: 92vh; left: 2vw; top: 2vh; background: radial-gradient(closest-side, #3a44da 0%, rgb(58 68 218 / .9) 30%, rgb(58 68 218 / .45) 62%, rgb(58 68 218 / .12) 84%, rgb(58 68 218 / 0) 100%); }
.g2 { width: 58vw; height: 56vh; left: 21vw; top: 20vh; background: radial-gradient(closest-side, rgb(24 34 168 / .85) 0%, rgb(24 34 168 / .45) 45%, rgb(24 34 168 / 0) 100%); }
.g3 { width: 56vw; height: 70vh; left: -8vw; top: 10vh; background: radial-gradient(closest-side, rgb(132 110 255 / .8) 0%, rgb(132 110 255 / .35) 50%, rgb(132 110 255 / 0) 100%); }
.g4 { width: 60vw; height: 74vh; left: 52vw; top: 10vh; background: radial-gradient(closest-side, rgb(100 190 255 / .9) 0%, rgb(100 190 255 / .4) 50%, rgb(100 190 255 / 0) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .g1 { animation: drift1 22s ease-in-out infinite alternate; }
  .g2 { animation: drift2 18s ease-in-out infinite alternate; }
  .g3 { animation: drift3 26s ease-in-out infinite alternate; }
  .g4 { animation: drift4 24s ease-in-out infinite alternate; }
}
@keyframes drift1 { to { transform: translate(-4vw, 3vh) scale(1.06); } }
@keyframes drift2 { to { transform: translate(5vw, -2vh) scale(.94); } }
@keyframes drift3 { to { transform: translate(-7vw, 6vh) scale(1.1); } }
@keyframes drift4 { to { transform: translate(-5vw, -6vh) scale(1.05); } }

.cover-inner { max-width: 980px; margin-top: -4vh; transform: translateY(calc(var(--p, 0) * -70px)) scale(calc(1 - var(--p, 0) * .05)); opacity: calc(1 - var(--p, 0) * 1.15); }
.cover-h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 6.4vw, 5.25rem); line-height: 1.04; letter-spacing: -.038em;
  color: #fff; margin: 0; text-wrap: balance; text-shadow: 0 2px 40px rgb(16 24 110 / .28); }
.cover-h1 .ln { display: block; }
.cover-sub { max-width: 46ch; margin: 28px auto 0; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.5; letter-spacing: -.012em; color: rgb(255 255 255 / .82); text-wrap: balance; text-shadow: 0 1px 24px rgb(16 24 110 / .3); }
.cover-sub i { color: #fff; font-style: italic; }
.cover-sub sup { font-size: .68em; line-height: 0; margin-left: 1px; color: #fff; }
.cover-note { display: block; margin-top: 10px; font-size: 13px; letter-spacing: 0; color: rgb(255 255 255 / .66); }
.cover-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.cover-foot { position: absolute; left: 0; right: 0; bottom: 28px; margin: 0 auto; padding: 0 24px; font-size: 13px; color: var(--muted); font-family: var(--display); max-width: 70ch; }
.cover-foot cite { font-style: normal; color: var(--text); }
.cover :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .cover-in .cover-ed, .cover-in .ln, .cover-in .cover-sub, .cover-in .cover-cta, .cover-in .cover-foot { animation: blurIn 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .cover-in .ln:nth-child(2) { animation-delay: .12s; }
  .cover-in .cover-sub { animation-delay: .3s; }
  .cover-in .cover-cta { animation-delay: .45s; }
  .cover-in .cover-foot { animation-delay: .65s; }
}
@keyframes blurIn { from { opacity: 0; transform: translateY(22px); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (max-width: 820px) {
  .topnav-inner { padding: 0 16px; gap: 12px; justify-content: space-between; }
  .topnav-links { display: none; }
  .brand { white-space: nowrap; min-width: 0; }
  .brand span { font-size: 14px; }
  .g1 { width: 160vw; left: -30vw; } .g2 { width: 110vw; left: -5vw; }
  .g3 { width: 110vw; left: -45vw; } .g4 { width: 110vw; left: 35vw; }
  .cover-cta .pill-lg { font-size: 16px; padding: 13px 22px; }
}

/* Coverage disclaimer */
.sec-sub a[href="#disclaimer"]:hover { text-decoration: underline; }

/* Phone nav: keep the full brand name next to a compact button */
@media (max-width: 480px) {
  .brand span { overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
}
.foot .copyright { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }

/* About block (footer) */
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 26px; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr; gap: 28px; } }
.foot .about { margin: 0; }
.foot .about-h { margin: 0 0 8px; font: 600 17px/1.3 var(--display); letter-spacing: -.015em; color: var(--text); }
.foot .about p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.foot .about a { color: var(--link); }
.foot .about a:hover { text-decoration: underline; }

/* Edition switch (paper edition vs living catalog) */
:root[data-edition="review"] .ed-living, :root[data-edition="living"] .ed-review { display: none; }
.edition { display: inline-flex; flex: none; padding: 2px; gap: 2px; border-radius: 999px; background: rgb(120 120 128 / .14); font-size: 12.5px; }
.topnav-links + .edition { margin-left: -4px; }
.edition a { padding: 4px 11px; border-radius: 999px; color: inherit; opacity: .72; text-decoration: none; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: opacity .15s ease-out, background .15s ease-out; }
.edition a:hover { opacity: 1; }
.edition a[aria-current="page"] { opacity: 1; background: var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / .12); font-weight: 600; }
.edition .edn { font-variant-numeric: tabular-nums; opacity: .55; font-weight: 500; }
@media (max-width: 820px) { .edition { margin-left: auto; } }
@media (max-width: 480px) { .edition .edn { display: none; } .edition a { padding: 4px 9px; } }

/* Methods added after the review */
.badge-new { display: inline-block; margin: 2px 0 2px 2px; padding: 1px 7px; border-radius: 999px; vertical-align: middle;
  font: 600 10.5px/1.5 var(--font); letter-spacing: .02em; text-transform: uppercase; color: var(--hyb); background: color-mix(in srgb, var(--hyb) 14%, transparent); }
.tl-pt.tl-added { stroke: var(--text); stroke-width: 1.6; }

/* Edition bar (top of every page) and cover label */
.edbar { position: relative; z-index: 51; padding: 9px 16px; text-align: center; font-size: 13.5px; line-height: 1.45; letter-spacing: -.01em;
  background: #15172b; color: rgb(245 245 247 / .78); }
.edbar b { color: #fff; font-weight: 600; }
.edbar a { color: #9db8ff; text-decoration: none; margin-left: 10px; white-space: nowrap; }
.edbar a:hover { text-decoration: underline; }
:root[data-edition="living"] .edbar { background: linear-gradient(90deg, #3a2a8f, #2b37c9 55%, #1f6fd1); color: rgb(255 255 255 / .82); }
:root[data-edition="living"] .edbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .edbar-text { display: none; } .edbar a { margin-left: 8px; } }
.cover-ed { margin: 0 0 18px; }
.cover-ed span { display: inline-block; padding: 6px 14px; border-radius: 999px; font: 600 13px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 8px rgb(10 20 80 / .35); }
:root[data-edition="review"] .cover-ed .ed-living, :root[data-edition="living"] .cover-ed .ed-review { display: none; }
