/* Local GEO / TSO / AX concept hubs. Shared site tokens stay authoritative. */
body.hub-page {
  --hub-geo: #7ee0d5;
  --hub-tso: #c2b0ff;
  --hub-ax: #ffc294;
  --hub-aiads: #ff9fc6;
  --hub-accent: var(--hub-geo);
  --hub-tint: #142f43;
  --hub-bg: #091321;
  --hub-surface: #0d1b2f;
  --hub-surface-raised: #12233b;
  --hub-paper: #f0f6ff;
  --hub-ink: #15243c;
  --hub-ink-muted: #4c607b;
  --hub-line: var(--border-dark-subtle);
  --hub-line-strong: var(--border-dark-strong);
  margin: 0;
  color: var(--text-body);
  font: 400 17px/1.8 'Noto Sans TC', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.hub-page[data-hub="tso"] { --hub-accent: var(--hub-tso); --hub-tint: #252846; }
body.hub-page[data-hub="ax"] { --hub-accent: var(--hub-ax); --hub-tint: #302a34; }
body.hub-page[data-hub="aiads"] { --hub-accent: var(--hub-aiads); --hub-tint: #33243a; }
.hub-page * { box-sizing: border-box; }
.hub-page :is(a, summary, input, button):focus-visible { outline: 3px solid var(--hub-accent); outline-offset: 5px; }
.hub-page a { color: var(--accent-on-dark); text-underline-offset: 4px; }
.hub-page .skip-link { z-index: 40; color: var(--text-light-heading); background: var(--bg-light-base); }
.hub-page :is(h1,h2,h3,h4) { text-wrap: pretty; }
.hub-page main { overflow-wrap: break-word; }
.hub-page code { color: var(--text-heading); font: 400 .9em 'IBM Plex Mono', monospace; }
.hub-shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
/* Header and footer keep the main site shell; only the topic content sits on navy. */
.hub-page :is(.hub-subbar, main) { background: var(--hub-bg); }
.hub-menu-toggle { display: none; }

/* Sibling topics share a recognizable path and color system. */
.hub-subbar { border-bottom: 1px solid var(--hub-line); }
.hub-subbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.hub-subbar__crumb { display: flex; gap: 10px; color: var(--text-muted); font-size: 13px; }
.hub-subbar__crumb a { color: var(--text-muted); text-decoration: none; }
.hub-switcher { display: flex; align-items: center; padding: 3px; border: 1px solid var(--hub-line-strong); border-radius: 999px; }
.hub-switcher a { --switch-accent: var(--hub-geo); display: flex; align-items: baseline; gap: 8px; min-height: 38px; padding: 8px 16px; border-radius: 999px; color: var(--text-heading); text-decoration: none; }
.hub-switcher a[href$="/tso/"] { --switch-accent: var(--hub-tso); }
.hub-switcher a[href$="/ax/"] { --switch-accent: var(--hub-ax); }
.hub-switcher a[href$="/aiads/"] { --switch-accent: var(--hub-aiads); }
.hub-switcher b { color: var(--switch-accent); font: 700 14px/1.4 'Space Grotesk', sans-serif; }
.hub-switcher span { color: var(--text-muted); font-size: 12px; }
.hub-switcher a[aria-current="page"] { background: color-mix(in srgb, var(--switch-accent) 16%, transparent); }
.hub-switcher a[aria-current="page"] span { color: var(--text-heading); }
.hub-switcher a:not([aria-current]):is(:hover, :active) { background: var(--bg-dark-elevated); }

/* First screen: a plain-language introduction, the topic character, then a strip of facts. */
.hub-hero { position: relative; }
.hub-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); grid-template-areas: "copy art"; column-gap: 72px; align-items: center; padding-block: 56px 40px; }
.hub-hero__copy { grid-area: copy; }
/* The portrait arrives already cut out from the server; it simply stands there and fades at the bottom. */
.hub-hero__art { grid-area: art; position: relative; justify-self: center; width: min(100%, 340px); }
.hub-hero__character { width: 100%; aspect-ratio: 34 / 48; margin: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.hub-hero__character img { display: block; width: 100%; height: auto; margin-block-start: 4%; }
.hub-eyebrow { margin: 0 0 22px; color: var(--text-muted); font: 500 13px/1.5 'Space Grotesk', 'Noto Sans TC', sans-serif; letter-spacing: .02em; }
.hub-hero h1 { margin: 0 0 28px; color: var(--text-heading); font: 700 clamp(36px, 4.1vw, 56px)/1.28 'Noto Sans TC', sans-serif; letter-spacing: -.03em; }
.hub-title-label { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block-end: 18px; color: var(--hub-accent); font: 700 24px/1.4 'Space Grotesk', sans-serif; letter-spacing: 0; }
.hub-title-label > span { padding-inline-start: 12px; border-inline-start: 1px solid var(--hub-line-strong); color: var(--text-body); font: 500 15px/1.5 'Noto Sans TC', sans-serif; }
.hub-title-subject { display: block; }
.hub-intro, .hub-definition { max-width: 36em; margin: 0; color: var(--text-body); font-size: 18px; line-height: 1.95; }
.hub-definition { margin-block-end: 16px; }
.hub-definition strong { color: var(--text-heading); font-weight: 700; }
/* Table of contents: the old facts strip, now a hairline row of numbered anchors. */
.hub-toc { grid-area: facts; clear: both; max-width: 760px; margin-block-start: 40px; padding: 20px 22px 18px; background: var(--hub-surface); border: 1px solid var(--hub-line-strong); border-top-color: color-mix(in srgb, var(--text-heading) 22%, transparent); border-radius: 14px; }
.hub-toc__label { margin: 0 0 12px; color: var(--hub-accent); font: 500 12px/1.6 'IBM Plex Mono', 'Noto Sans TC', monospace; letter-spacing: .12em; }
.hub-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.hub-toc a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px 6px 6px; border-radius: 10px; color: var(--text-heading); font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.hub-toc__num { flex: none; display: inline-grid; place-items: center; min-width: 40px; padding: 2px 10px; background: color-mix(in srgb, var(--hub-accent) 16%, transparent); border-radius: 999px; color: var(--hub-accent); font: 500 12px/1.6 'IBM Plex Mono', monospace; letter-spacing: .04em; }
.hub-toc a:is(:hover, :active) { color: var(--hub-accent); background: color-mix(in srgb, var(--hub-accent) 8%, transparent); }
.hub-toc a:is(:hover, :active) .hub-toc__num { color: var(--hub-ink); background: var(--hub-accent); }
.hub-toc.hub-shell { max-width: none; margin-block: 0 48px; }

/* Hero concept animations: a small decorative loop beside the portrait. The base styles are the final frame. */
.hub-hero__demo { --hd-ease: cubic-bezier(.2, .7, .2, 1); position: absolute; z-index: 2; inset-inline-start: -12%; inset-block-end: 4%; width: 204px; padding: 11px 13px 12px; border: 1px solid color-mix(in srgb, var(--hub-accent) 42%, transparent); border-radius: 12px; background: rgba(9, 19, 33, .92); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); color: var(--text-body); font-size: 13px; line-height: 1.5; pointer-events: none; }
.hub-hero__demo p { margin: 0; }
.hd-label { margin-block-end: 6px !important; color: var(--hub-accent); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.hd-query { margin-block-end: 8px !important; color: var(--text-heading); font-size: 13px; font-weight: 500; }
.hd-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hd-list li { display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.hd-list b { color: var(--text-muted); font: 500 12px/1 'IBM Plex Mono', monospace; }
.hd-list li.is-mine { background: color-mix(in srgb, var(--hub-geo) 22%, transparent); color: #e8fffb; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-geo) 60%, transparent); }
.hd-list em { margin-inline-start: auto; padding: 0 7px; border-radius: 999px; background: var(--hub-geo); color: var(--hub-ink); font-size: 12px; font-style: normal; font-weight: 700; }
.hub-hero__demo.hub-hero__demo--tso { z-index: auto; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.hd-atom { position: absolute; inset: 0; }
.hd-orbits { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.hd-orbit { fill: none; stroke: color-mix(in srgb, var(--hub-accent) 24%, transparent); stroke-width: 1; }
.hd-tiles { margin: 0; padding: 0; list-style: none; }
.hd-tile { position: absolute; z-index: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--hub-surface); border: 1px solid var(--hub-line-strong); color: var(--text-muted); transform: translate(-50%, -50%); }
.hd-tile[data-tool="map"] { left: 8%; top: 38%; }
.hd-tile[data-tool="review"] { left: 16%; top: 77%; }
.hd-tile[data-tool="payment"] { left: 7%; top: 59%; }
.hd-tile[data-tool="calendar"] { left: 22%; top: 16%; }
.hd-tile[data-tool="booking"] { left: 82%; top: 77%; }
.hd-tile[data-tool="weather"] { left: 82%; top: 21%; }
.hd-tile[data-tool="delivery"] { left: 93%; top: 59%; }
.hd-tile[data-tool="mail"] { left: 94%; top: 39%; }
.hd-tile svg { display: block; width: 20px; height: 20px; }
.hd-tile.is-winner { z-index: 3; width: 48px; height: 48px; background: var(--hub-accent); color: var(--hub-ink); border-color: var(--hub-accent); box-shadow: 0 0 0 5px var(--hub-bg); }
.hd-tile .hd-caption { position: absolute; top: calc(100% + 10px); right: -8px; padding: 4px 8px; border-radius: 6px; background: var(--hub-bg); color: var(--hub-accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (min-width: 901px) {
  .hub-hero__art .hub-hero__character { position: relative; z-index: 1; }
  [data-hub="tso"] .hub-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .85fr); column-gap: 56px; }
  [data-hub="tso"] .hub-hero__art { width: 100%; max-width: 420px; isolation: isolate; }
  [data-hub="tso"] .hub-hero__character { width: 80%; aspect-ratio: 32 / 48; margin-inline: auto; }
}
.hd-tick { transform-box: fill-box; transform-origin: center; }
.hub-hero__demo--ax { width: 212px; }
.hd-checks { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.hd-checks li { display: flex; align-items: center; gap: 9px; font-size: 13px; white-space: nowrap; }
.hd-checks i { position: relative; flex: none; width: 15px; height: 15px; border: 1.5px solid var(--hub-accent); border-radius: 4px; }
.hd-checks i::after { content: ''; position: absolute; inset-inline-start: 3.5px; inset-block-start: 0; width: 4px; height: 8px; border: solid var(--hub-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hd-receipt { padding: 6px 9px; border: 1px dashed color-mix(in srgb, var(--hub-accent) 55%, transparent); border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text-heading); font: 500 13px/1.45 'IBM Plex Mono', monospace; }
.hd-receipt span { display: block; color: var(--hub-accent); font: 500 12px/1.5 'Noto Sans TC', sans-serif; }
/* AI advertising: an answer line, then a sponsored card slides in under it. */
.hub-hero__demo--aiads { width: 214px; inset-inline-start: -18%; inset-block-end: -12%; }
.hd-answer { margin-block-end: 8px !important; color: var(--text-body); font-size: 13px; }
.hub-hero__demo .hd-ad { display: grid; gap: 1px; margin: 0; padding: 7px 10px 8px; border: 1px solid color-mix(in srgb, var(--hub-aiads) 55%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--hub-aiads) 14%, transparent); }
.hd-ad em { justify-self: start; margin-block-end: 3px; padding: 0 7px; border-radius: 999px; background: var(--hub-aiads); color: var(--hub-ink); font-size: 12px; font-style: normal; font-weight: 700; }
.hd-ad strong { color: var(--text-heading); font-size: 13px; }
.hd-ad span { color: var(--text-body); font-size: 12px; }

@keyframes hd-in-0 { 0% { opacity: 0; transform: translateY(8px); } 5%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hd-in-1 { 0%, 6% { opacity: 0; transform: translateY(6px); } 11%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hd-in-2 { 0%, 16% { opacity: 0; transform: translateY(6px); } 21%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hd-in-3 { 0%, 26% { opacity: 0; transform: translateY(6px); } 31%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hd-in-4 { 0%, 36% { opacity: 0; transform: translateY(6px); } 41%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hd-in-5 { 0%, 48% { opacity: 0; } 53%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes hd-in-6 { 0%, 62% { opacity: 0; transform: translateY(8px); } 68%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hd-tick-1 { 0%, 10% { opacity: 0; } 15%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes hd-tick-2 { 0%, 22% { opacity: 0; } 27%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes hd-tick-3 { 0%, 34% { opacity: 0; } 39%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes hd-tick-4 { 0%, 46% { opacity: 0; } 51%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hub-hero__demo--geo, .hub-hero__demo--ax, .hub-hero__demo--aiads { animation: hd-in-0 10s var(--hd-ease) infinite both; }
  .hd-s1 { animation: hd-in-1 10s var(--hd-ease) infinite both; }
  .hd-s2 { animation: hd-in-2 10s var(--hd-ease) infinite both; }
  .hd-s3 { animation: hd-in-3 10s var(--hd-ease) infinite both; }
  .hd-s4 { animation: hd-in-4 10s var(--hd-ease) infinite both; }
  .hd-s5 { animation: hd-in-5 10s var(--hd-ease) infinite both; }
  .hd-k1 i::after { animation: hd-tick-1 10s var(--hd-ease) infinite both; }
  .hd-k2 i::after { animation: hd-tick-2 10s var(--hd-ease) infinite both; }
  .hd-k3 i::after { animation: hd-tick-3 10s var(--hd-ease) infinite both; }
  .hd-k4 i::after { animation: hd-tick-4 10s var(--hd-ease) infinite both; }
  .hd-receipt { animation: hd-in-6 10s var(--hd-ease) infinite both; }
}
.hub-hero__art:hover .hub-hero__demo, .hub-hero__art:hover .hub-hero__demo *, .hub-hero__art:hover .hub-hero__demo *::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hub-hero__demo, .hub-hero__demo *, .hub-hero__demo *::after { animation: none !important; }
}
/* Hero concept animations end */

/* Phone section bar (built by hub.js from the table of contents): past the table of contents, a thin
   bar names the current section and opens the list. Never shown on desktop. */
.hub-sectionbar { display: none; }
@media (max-width: 900px) {
  .hub-sectionbar { position: fixed; inset: 0 0 auto; z-index: 30; display: block; transform: translateY(-110%); transition: transform .28s cubic-bezier(.2, .7, .2, 1); background: rgba(9, 19, 33, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hub-line-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
  .hub-sectionbar.is-visible { transform: none; }
  /* Beats editorial.css `[id] { scroll-margin-top: 32px }`, so jump targets clear the 52px bar. */
  .hub-page main [id] { scroll-margin-top: 76px; }
  .hub-sectionbar__toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: calc(6px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); border: 0; background: none; color: var(--text-heading); font: 600 15px/1.4 'Noto Sans TC', sans-serif; text-align: start; cursor: pointer; }
  .hub-sectionbar__num { flex: none; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--hub-accent) 16%, transparent); color: var(--hub-accent); font: 500 13px/1.6 'IBM Plex Mono', monospace; }
  .hub-sectionbar__num small { color: var(--text-muted); font-size: 12px; }
  .hub-sectionbar__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hub-sectionbar__icon { flex: none; width: 9px; height: 9px; margin-inline-end: 4px; border: solid var(--text-muted); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
  .hub-sectionbar__toggle[aria-expanded="true"] .hub-sectionbar__icon { transform: translateY(2px) rotate(-135deg); }
  .hub-sectionbar__list { max-height: min(70svh, 460px); overflow-y: auto; margin: 0; padding: 6px max(8px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--hub-line); list-style: none; overscroll-behavior: contain; }
  .hub-sectionbar__list[hidden] { display: none; }
  .hub-sectionbar__list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; border-radius: 10px; color: var(--text-heading); font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: none; }
  .hub-sectionbar__list a[aria-current] { color: var(--hub-accent); background: color-mix(in srgb, var(--hub-accent) 10%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .hub-sectionbar, .hub-sectionbar__icon { transition: none; }
  html:has(.hub-page) { scroll-behavior: auto; }
}

/* Sections share one heading rhythm: kicker, title, lead. */
.hub-section { padding-block: 72px; border-top: 1px solid var(--hub-line); scroll-margin-top: 96px; }
.hub-section > :is(p, details, ul):not(.hub-concepts, .hub-flow, .hub-list) { max-width: var(--container-reading); }
.hub-section p { margin: 0 0 16px; }
.hub-section h2 { margin: 0 0 16px; color: var(--text-heading); font: 700 clamp(28px, 2.7vw, 38px)/1.38 'Noto Sans TC', sans-serif; letter-spacing: -.02em; }
.hub-head { max-width: 880px; margin-block-end: 32px; }
.hub-head > :last-child { margin-block-end: 0; }
.hub-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; color: var(--hub-accent); font: 700 14px/1.5 'Noto Sans TC', sans-serif; }
.hub-kicker > span { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding-inline: 8px; border: 1px solid color-mix(in srgb, var(--hub-accent) 55%, transparent); border-radius: 999px; font: 500 12px/1 'IBM Plex Mono', monospace; }
.hub-lead { max-width: 46em; color: var(--text-body); font-size: 17px; line-height: 1.9; }
.hub-note, .hub-meta { color: var(--text-muted); font-size: 13px; }
.hub-section .hub-meta { margin-block-start: 22px; }
.hub-explainer__sources, .routing-source { margin-block: 24px 0 !important; color: var(--text-muted); font-size: 13px; }
.hub-explainer__sources a, .routing-source a { color: var(--text-body); }

/* GEO: points on right-angle axes, with a cosine ranking that responds to the reader. */
#geometry .hub-head { margin-block-end: 16px; }
#geometry .hub-lead { font-size: 16px; line-height: 1.85; }
.hub-vector-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 36px; align-items: start; padding: 16px 28px 18px; background: #0c1b30; border: 1px solid var(--hub-line-strong); border-radius: 18px; }
.hub-vector-canvas { min-width: 0; margin: 0; color: #9fb3cf; }
.hub-vector-canvas svg { display: block; width: 100%; height: auto; max-height: min(440px, max(280px, calc(100svh - 320px))); margin-inline: auto; cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hub-vector-canvas svg.is-dragging { cursor: grabbing; }
.hub-vector-gridlines { opacity: .1; }
.hub-vector-axes { color: #a9bbd4; }
.hub-vector-axis-labels { font: 500 14px 'Noto Sans TC', sans-serif; }
.hub-vector-arc { fill: none; stroke: #e9f0fa; stroke-width: 2; }
.hub-vector-theta { fill: #e9f0fa; font: 500 20px 'Space Grotesk', sans-serif; transition: opacity 150ms ease; }
.hub-vector-theta.is-hidden { opacity: 0; }
.hub-vector-point line { stroke: currentColor; stroke-linecap: round; }
.hub-vector-point circle { fill: currentColor; }
.hub-vector-point text { fill: currentColor; font: 500 15px 'Noto Sans TC', sans-serif; paint-order: stroke; stroke: #0c1b30; stroke-width: 5px; stroke-linejoin: round; }
.hub-vector-key-letter { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.hub-vector-point.is-other { color: #91a4bf; }
.hub-vector-point.is-other line { stroke-width: 1.5; stroke-dasharray: 4 6; }
.hub-vector-point.is-other circle { fill: #0c1b30; stroke: currentColor; stroke-width: 2; }
.hub-vector-point.is-other.is-retrieved { color: #c7d3e5; }
.hub-vector-point.is-other.is-retrieved circle { fill: currentColor; }
.hub-vector-point.is-query { color: #5c9eff; }
.hub-vector-point.is-query line { stroke-width: 3; }
.hub-vector-point.is-mine { color: var(--hub-geo); cursor: grab; }
.hub-vector-point.is-mine * { touch-action: none; }
.hub-vector-point.is-mine line { stroke-width: 3; }
.hub-vector-halo { opacity: .16; touch-action: none; }
.hub-vector-point.is-mine.is-retrieved .hub-vector-halo { opacity: .32; }
.hub-vector-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-block-start: 6px; color: var(--text-muted); font-size: 13px; }
.hub-vector-legend > span { display: flex; align-items: center; gap: 8px; }
.hub-vector-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.hub-vector-key--query { background: #5c9eff; }
.hub-vector-key--mine { background: var(--hub-geo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hub-geo) 22%, transparent); }
.hub-vector-key--other { border: 2px solid #8a9bb4; }
.hub-vector-controls { min-width: 0; }
.hub-vector-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block-end: 6px; }
.hub-vector-readout > div { display: grid; gap: 2px; }
.hub-vector-readout span { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.hub-vector-readout output { color: var(--hub-accent); font: 500 clamp(30px, 2.6vw, 36px)/1.05 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.hub-vector-status { margin: 8px 0 0 !important; padding: 6px 12px; border-radius: 8px; background: #18283f; color: var(--text-heading); font-size: 14px; line-height: 1.6; }
.hub-vector-status[data-state="in"] { background: color-mix(in srgb, var(--hub-geo) 16%, #0c1b30); color: #c9f5ef; }
.hub-vector-slider { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.hub-vector-slider label { grid-column: 1 / -1; color: var(--text-heading); font-size: 15px; font-weight: 600; line-height: 1.5; }
.hub-vector-slider input[type="range"] { grid-column: 2; grid-row: 2; display: block; width: 100%; height: 36px; margin: 0; accent-color: var(--hub-accent); cursor: pointer; }
.hub-vector-range-labels { display: contents; }
.hub-vector-range-labels span { grid-row: 2; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.hub-vector-range-labels span:first-child { grid-column: 1; }
.hub-vector-range-labels span:last-child { grid-column: 3; }
.hub-vector-label { margin: 0 !important; color: var(--text-heading); font-size: 15px; font-weight: 600; line-height: 1.5; }
.hub-vector-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 6px 8px; }
.hub-vector-sample { margin: 0 0 10px; padding: 10px 14px; min-height: calc(2 * 14px * 1.7 + 20px); border-inline-start: 3px solid var(--hub-geo); border-radius: 0 8px 8px 0; background: #13243b; font-size: 14px; }
.hub-vector-sample p { margin: 0 !important; color: var(--text-heading); font-size: 14px; line-height: 1.7; }
.hub-vector-verdict { margin: 6px 0 10px !important; color: var(--text-heading); font-size: 15px; font-weight: 600; line-height: 1.6; min-height: 1.6em; }
.hub-vector-verdict[data-state="near"] { color: #8be8da; }
.hub-vector-verdict[data-state="mid"] { color: #f2d48a; }
.hub-vector-verdict[data-state="far"] { color: #f4a7a0; }
.hub-vector-presets button { min-height: 44px; padding: 8px 14px; border: 1px solid #4b627f; border-radius: 6px; background: transparent; color: var(--text-heading); font: 500 14px 'Noto Sans TC', sans-serif; cursor: pointer; }
.hub-vector-presets button[aria-pressed="true"], .hub-vector-presets button:hover { background: var(--hub-accent); color: var(--hub-ink); border-color: var(--hub-accent); }
.hub-vector-notes { display: grid; gap: 4px; max-width: 880px; margin-block-start: 14px; }
.hub-vector-help { margin: 0 !important; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.hub-vector-rank { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: rank; }
.hub-vector-rank li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) 70px 46px; align-items: center; gap: 10px; padding: 3px 10px; border-radius: 8px; color: var(--text-muted); font-size: 13.5px; line-height: 1.5; counter-increment: rank; }
.hub-vector-rank li::before { content: counter(rank); font: 500 12px 'IBM Plex Mono', monospace; }
.hub-vector-rank li:nth-child(2) { margin-block-end: 20px; }
.hub-vector-rank li:nth-child(2)::after { content: '教學模型中的前 2 個候選'; position: absolute; inset-inline: 0; inset-block-end: -18px; padding-block-start: 2px; border-top: 1px dashed #3d526e; color: var(--text-muted); font-size: 11px; line-height: 1.4; text-align: end; }
:lang(zh-CN) .hub-vector-rank li:nth-child(2)::after { content: '教学模型中的前 2 个候选'; }
:lang(en) .hub-vector-rank li:nth-child(2)::after { content: 'Top 2 candidates in this teaching model'; }
.hub-vector-rank li.is-retrieved { color: var(--text-body); }
.hub-vector-rank li.is-mine { background: color-mix(in srgb, var(--hub-geo) 14%, transparent); color: var(--text-heading); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-geo) 45%, transparent); }
.hub-rank-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hub-rank-bar { height: 6px; overflow: hidden; background: #1c2b42; border-radius: 3px; }
.hub-rank-bar i { display: block; height: 100%; background: #5d6f8b; border-radius: inherit; }
.is-retrieved .hub-rank-bar i { background: #c7d3e5; }
.is-mine .hub-rank-bar i { background: var(--hub-geo); }
.hub-rank-score { font: 500 13px 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; text-align: end; }
.hub-vector-formula { margin: 0 !important; color: var(--text-muted); font: 400 13px/1.8 'IBM Plex Mono', monospace; }
.hub-vector-formula > span { color: var(--hub-accent); }
.hub-vector-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.hub-vector-steps li { display: flex; gap: 16px; }
.hub-vector-steps li > span { color: var(--hub-accent); font: 500 13px/1.9 'IBM Plex Mono', monospace; }
.hub-vector-steps h3 { margin: 0 0 6px; color: var(--text-heading); font-size: 18px; }
.hub-vector-steps p { margin: 0; color: var(--text-body); font-size: 15px; line-height: 1.85; }

/* Scenario: one shared request, three states, characters peek over the panel. */
.hub-lab { display: block; overflow-x: clip; }
.hub-lab__intro { min-height: 164px; padding-inline-end: 240px; padding-block-end: 22px; }
.hub-lab__intro > p:not(.hub-kicker, .hub-task) { max-width: 46em; color: var(--text-body); font-size: 17px; }
.hub-task { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 20px 0 0 !important; color: var(--text-heading); font-size: 19px; font-weight: 500; }
.hub-task > span { padding: 2px 10px; border: 1px solid var(--hub-line-strong); border-radius: 999px; color: var(--text-muted); font-size: 12px; font-weight: 400; }
.hub-stage { position: relative; min-width: 0; }
.hub-demo { position: relative; z-index: 1; min-width: 0; padding: 30px 34px 34px; background: var(--hub-paper); color: var(--hub-ink); border-radius: 18px; }
.hub-demo__controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 620px; margin: 0; padding: 0; border: 0; }
.hub-demo__controls legend { margin-block-end: 12px; color: var(--hub-ink-muted); font-size: 13px; }
.hub-demo__controls label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 5px; border: 1px solid #bfcddd; border-radius: 8px; background: #e5edf8; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.hub-demo__controls input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hub-demo__controls label:has(input:checked) { color: #fff; border-color: #253d60; background: #253d60; }
.hub-demo__controls label:has(input:focus-visible) { outline: 3px solid #2d639c; outline-offset: 3px; }
.hub-demo__controls label:active { background: #cbdcee; }
.hub-demo__controls label:has(input:checked):active { background: #1a304c; }
.hub-demo__panel { display: none; grid-template-columns: minmax(0, 1.4fr) minmax(230px, .65fr); column-gap: 44px; align-items: center; }
.hub-demo:has(input[value="1"]:checked) [data-panel="1"], .hub-demo:has(input[value="2"]:checked) [data-panel="2"], .hub-demo:has(input[value="3"]:checked) [data-panel="3"], .hub-demo:has(input[value="4"]:checked) [data-panel="4"] { display: grid; }
.hub-demo__controls:has(input[value="4"]) { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 780px; }
.hub-demo__panel h3 { grid-column: 1 / -1; margin: 26px 0 20px; color: var(--hub-ink); font: 700 23px/1.5 'Noto Sans TC', sans-serif; }
.hub-demo__visual { min-height: 180px; }
.hub-demo__insight { margin: 0; padding: 0 0 0 22px; border-inline-start: 3px solid #c3d2e4; }
.hub-demo__insight p { margin: 0; color: #3c5069; font-size: 16px; line-height: 1.85; }
.hub-demo__insight p > span { display: block; margin-block-end: 8px; color: var(--hub-ink); font-size: 13px; font-weight: 700; }
.hub-demo__next { display: inline-flex; align-items: center; min-height: 44px; margin-block-start: 18px; padding: 10px 16px; border: 0; border-radius: 8px; background: #253d60; color: #fff !important; font: 700 14px/1.6 'Noto Sans TC', sans-serif; text-align: start; text-decoration: none; cursor: pointer; }
.hub-demo__next:is(:hover, :focus-visible) { background: #1a304c; }
.hub-demo__next:focus-visible { outline: 3px solid #2d639c; outline-offset: 3px; }
/* Without the script the chibi still peeks over the edge; its art is already transparent. */
.hub-peek { position: absolute; width: 180px; height: 150px; inset-inline-end: 56px; inset-block-end: calc(100% - 2px); margin: 0; overflow: hidden; pointer-events: none; }
/* The live character stands behind the panel; the panel edge hides everything below the chest. */
.hub-peek-canvas { position: absolute; z-index: 0; inset-inline-end: -29px; inset-block-end: calc(100% - 190px); width: 380px; height: 440px; pointer-events: none; }
/* Only the face starts a pull; the rest of the panel keeps normal pointer behaviour. */
.hub-peek-hotspot { position: absolute; z-index: 2; border-radius: 50%; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.hub-stage.is-pulling .hub-peek-hotspot { cursor: grabbing; }
.hub-stage:not(.is-live) .hub-peek-hotspot { display: none; }
.hub-stage.is-live .hub-peek { display: none !important; }
.hub-stage.is-live .hub-demo::after { content: ''; position: absolute; inset-block-start: -7px; inset-inline-end: 52px; width: 230px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(9, 19, 33, .28), transparent); pointer-events: none; }
.hub-peek img { display: block; width: 100%; height: auto; }
.demo-answer { margin: 0; padding: 24px; background: #fff; border-radius: 10px; color: var(--hub-ink); font: 500 20px/1.9 'Noto Sans TC', sans-serif; }
.demo-answer strong { padding: 3px 5px; background: #bdeee4; color: #0c4e46; }
.demo-answer sup { margin-inline-start: 6px; color: #496587; font-size: 11px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 12px; }
.demo-actions span { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 8px; background: #253d60; color: #fff; font-size: 15px; font-weight: 700; }
.demo-actions small { color: #c8d6ea; font-size: 12px; font-weight: 400; }
.demo-annotation { display: flex; align-items: baseline; gap: 14px; margin-block-start: 16px; }
.demo-annotation span { padding: 3px 8px; border: 1px solid #4d8c80; border-radius: 4px; color: #24665b; font-size: 12px; }
.demo-annotation p { margin: 0; color: var(--hub-ink-muted); font-size: 14px; }
.demo-sources, .demo-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-sources { margin-block-start: 12px; }
.demo-sources > div, .demo-compare > div { display: grid; align-content: start; gap: 8px; padding: 18px; background: #fff; border-radius: 10px; }
.demo-sources span, .demo-compare span, .demo-tool-match div > span { color: var(--hub-ink-muted); font-size: 12px; }
.demo-sources strong { font-size: 16px; }
.demo-sources small { color: var(--hub-ink-muted); font-size: 12px; }
.demo-compare strong { font-size: 19px; line-height: 1.75; }
.demo-gap, .demo-handoff { margin: 14px 0 0 !important; padding: 0; color: #75431f !important; font-size: 13px; }
.demo-handoff { color: #30565a !important; }
.demo-tool-list { display: grid; gap: 8px; }
.demo-tool-list > div { display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 10px; padding: 14px; background: #fff; border: 1px solid #d8e2ef; border-radius: 8px; }
.demo-tool-list span { color: var(--hub-ink-muted); font-size: 12px; }
.demo-tool-list strong { font-size: 17px; }
.demo-tool-list b { padding: 2px 8px; color: #255b53; background: #def0eb; border-radius: 4px; font-size: 12px; font-weight: 500; }
.demo-tool-list .is-missing { border: 1px dashed #8f9bad; background: transparent; }
.demo-tool-list .is-missing b { color: #73522f; background: #f0e3d5; }
.demo-tool-match { display: flex; align-items: center; gap: 18px; padding: 24px; background: #fff; border-radius: 10px; }
.demo-tool-match div { display: grid; gap: 6px; }
.demo-tool-match strong { font-size: 20px; }
.demo-check { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #cfe9df; color: #256554; font-size: 24px; }
.demo-params { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.demo-params li { display: grid; gap: 6px; padding: 14px; border: 1px solid #c4d2e3; border-radius: 8px; color: var(--hub-ink-muted); font-size: 12px; }
.demo-params strong { color: var(--hub-ink); font-size: 18px; }
.demo-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: journey; }
.demo-journey li { position: relative; display: grid; gap: 10px; padding: 18px 10px; background: #e2e9f2; color: var(--hub-ink-muted); border-radius: 10px; text-align: center; counter-increment: journey; }
.demo-journey li::before { content: counter(journey); display: grid; place-items: center; width: 32px; height: 32px; margin-inline: auto; border: 1px solid #98abc3; border-radius: 50%; font: 600 15px/1 'Space Grotesk', sans-serif; }
.demo-journey li + li::after { content: '→'; position: absolute; inset-inline-start: -18px; inset-block-start: 25px; color: #526c8c; }
.demo-journey .is-done { background: #e0eee8; color: #285a50; }
.demo-journey .is-current { background: #fff0dc; color: #785324; outline: 1px solid #c79755; }
.demo-journey span { font-size: 12px; }
.demo-journey strong { font-size: 14px; }
.demo-result { display: grid; gap: 8px; margin: 16px 0 0; padding-inline-start: 24px; font-size: 14px; }

/* Framework: every explanation is visible; the question carries the scan line. */
.hub-concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hub-concept { display: grid; align-content: start; min-width: 0; padding: 26px 30px 28px; background: var(--hub-surface); border: 1px solid var(--hub-line-strong); border-radius: 14px; }
.hub-concept[data-letter] { position: relative; overflow: hidden; isolation: isolate; }
.hub-concept[data-letter]::after { content: attr(data-letter); position: absolute; inset-inline-end: 14px; inset-block-end: -38px; z-index: -1; width: 156px; color: var(--hub-accent); font: 700 176px/1 'Space Grotesk', sans-serif; text-align: center; letter-spacing: -.04em; opacity: .08; pointer-events: none; }
.hub-concept__num { color: var(--hub-accent); font: 500 13px/1.6 'IBM Plex Mono', monospace; }
.hub-concept h3 { margin: 8px 0 4px; color: var(--text-heading); font: 700 23px/1.45 'Noto Sans TC', sans-serif; }
.hub-concept h3 span { margin-inline-start: 8px; color: var(--text-muted); font: 500 13px/1.5 'Space Grotesk', sans-serif; }
.hub-concept .hub-concept__q { margin: 0 0 14px; color: var(--hub-accent); font-size: 16px; font-weight: 500; line-height: 1.7; }
.hub-concept p:not(.hub-concept__q) { margin: 0; color: var(--text-body); font-size: 15.5px; line-height: 1.9; }
.hub-example { display: grid; gap: 4px; max-width: 880px; margin-block-start: 28px; padding: 24px 28px; background: var(--hub-tint); border-radius: 14px; }
.hub-example > span { color: var(--hub-accent); font-size: 13px; font-weight: 700; }
.hub-example p { margin: 8px 0 0; color: var(--text-body); font-size: 16px; line-height: 1.9; }

/* Related reading, FAQ and sources keep provenance close at hand. */
.hub-list { margin: 0; padding: 0; list-style: none; }
.hub-list > li { border-top: 1px solid var(--hub-line); }
.hub-list > li, .hub-list--links a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; padding-block: 24px; }
.hub-list--links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hub-list--links > li { display: block; padding: 0; border: 1px solid var(--hub-line-strong); border-radius: 12px; }
.hub-list--links a { position: relative; grid-template-columns: 1fr; gap: 12px; height: 100%; padding: 24px 46px 28px 26px; color: inherit; text-decoration: none; }
.hub-list--links a::after { content: '→'; position: absolute; inset-inline-end: 20px; inset-block-start: 24px; color: var(--hub-accent); font-size: 20px; }
.hub-list--links a:is(:hover, :focus-visible) { background: var(--hub-tint); border-radius: 12px; }
.hub-list--links a:active { background: var(--bg-dark-elevated); }
.hub-list h3 { margin: 0 0 8px; color: var(--text-heading); font: 600 18px/1.65 'Noto Sans TC', sans-serif; }
.hub-list p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.hub-cat { color: var(--hub-accent); font-size: 13px; font-weight: 600; }
.hub-reading { padding-block: 40px 48px; }
.hub-reading .hub-head { margin-block-end: 24px; }
.hub-reading .hub-list--links { align-items: stretch; }
.hub-reading .hub-list--links a { align-content: start; }
.hub-faq { border-top: 1px solid var(--hub-line); }
.hub-faq:last-of-type { border-bottom: 1px solid var(--hub-line); }
.hub-faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: baseline; gap: 24px; padding-block: 22px; cursor: pointer; list-style: none; }
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq summary h3 { margin: 0; color: var(--text-heading); font: 600 18px/1.7 'Noto Sans TC', sans-serif; }
.hub-faq summary::after { content: '+'; color: var(--hub-accent); text-align: center; font: 400 20px/1 'IBM Plex Mono', monospace; }
.hub-faq[open] summary::after { content: '−'; }
.hub-faq summary:is(:hover, :active) h3 { color: var(--hub-accent); }
.hub-faq p { max-width: 68ch; margin: 0 48px 24px 0; font-size: 16px; }
.hub-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.hub-flow li { position: relative; min-width: 0; }
.hub-flow a { --flow-accent: var(--hub-geo); position: relative; display: grid; align-content: start; gap: 6px; height: 100%; min-height: 172px; padding: 24px 120px 26px 24px; overflow: hidden; border: 1px solid var(--hub-line-strong); border-radius: 14px; color: var(--text-heading); background: var(--hub-surface); text-decoration: none; }
.hub-flow__art { position: absolute; inset-inline-end: 14px; inset-block-end: 0; display: flex; align-items: flex-end; justify-content: center; width: 96px; height: 132px; }
.hub-flow__art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hub-flow a[href$="/tso/"] { --flow-accent: var(--hub-tso); }
.hub-flow a[href$="/ax/"] { --flow-accent: var(--hub-ax); }
.hub-flow a[href$="/aiads/"] { --flow-accent: var(--hub-aiads); }
.hub-flow__name { display: flex; align-items: center; gap: 10px; color: var(--flow-accent); font: 700 28px/1.2 'Space Grotesk', sans-serif; }
.hub-flow strong { font: 600 17px/1.6 'Noto Sans TC', sans-serif; }
.hub-flow__desc { color: var(--text-muted); font: 400 14px/1.7 'Noto Sans TC', sans-serif; }
.hub-flow a[aria-current="page"] { background: color-mix(in srgb, var(--flow-accent) 10%, var(--hub-bg)); }
.hub-flow a[aria-current="page"] .hub-flow__name::after { padding: 2px 8px; border-radius: 999px; font: 500 11px/1.5 'Noto Sans TC', sans-serif; }
.hub-flow a[aria-current="page"] .hub-flow__name::after { content: '本頁'; border: 1px solid color-mix(in srgb, var(--flow-accent) 60%, transparent); }
:lang(zh-CN) .hub-flow a[aria-current="page"] .hub-flow__name::after { content: '本页'; }
:lang(en) .hub-flow a[aria-current="page"] .hub-flow__name::after { content: 'Current'; }
.hub-flow a:not([aria-current]):is(:hover, :focus-visible) { border-color: var(--flow-accent); background: var(--hub-surface-raised); }
.hub-flow a:active { background: var(--bg-dark-elevated); }
.hub-sources-block { padding-block: 56px; }
.hub-sources-block h2 { font-size: 20px; }
.hub-sources { margin: 16px 0 0; padding-inline-start: 20px; font-size: 14px; line-height: 1.8; }
.hub-sources a { color: var(--text-body); }
.hub-sources li + li { margin-block-start: 12px; }
.hub-credits { padding-block: 24px 48px; color: var(--text-muted); border-top: 1px solid var(--hub-line); font-size: 12px; }
.hub-credits h2 { margin: 0 0 8px; color: var(--text-body); font-size: 14px; }
.hub-credits p { max-width: var(--container-reading); margin: 0 0 12px; }
.hub-credits summary { min-height: 44px; padding-block: 10px; color: var(--text-body); cursor: pointer; }
.hub-credits a { color: var(--text-body); }

/* Sources stay in the HTML; the native disclosure keeps the reading surface quiet. */
.hub-reference { padding-block: 0 32px; }
.hub-evidence { border-block: 1px solid var(--hub-line-strong); }
.hub-evidence summary { display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 16px; min-height: 56px; padding-block: 12px; color: var(--text-body); font-size: 14px; cursor: pointer; list-style: none; }
.hub-evidence summary::-webkit-details-marker { display: none; }
.hub-evidence summary::after { content: '+'; color: var(--hub-accent); font: 400 20px/1 'IBM Plex Mono', monospace; text-align: end; }
.hub-evidence[open] summary::after { content: '−'; }
.hub-evidence summary:hover { color: var(--hub-accent); }
.hub-evidence__hint { color: var(--text-muted); font-size: 13px; }
.hub-evidence__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 16px 28px; }
.hub-evidence__body h3 { margin: 0; color: var(--text-heading); font-size: 14px; font-weight: 600; }
.hub-evidence .hub-sources { margin-block-start: 12px; padding: 0; list-style: none; }
.hub-evidence .hub-sources li + li { margin-block-start: 20px; }
.hub-evidence .hub-sources p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.hub-attribution { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin: 18px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.hub-attribution a { color: inherit; }
@media (max-width: 600px) {
  .hub-evidence__body { grid-template-columns: 1fr; gap: 24px; }
  .hub-evidence__hint { display: none; }
  .hub-evidence summary { grid-template-columns: 1fr 18px; }
  .hub-attribution { flex-direction: column; }
}

/* Native controls share one interaction language across the diagrams. */
:is(.routing-tabs, .loop-controls) { min-width: 0; margin: 0; padding: 0; border: 0; }
:is(.routing-tabs, .loop-controls) legend { margin-block-end: 14px; color: var(--text-muted); font-size: 13px; }
:is(.routing-tabs, .loop-controls) { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 26px; }
.routing-tabs { margin-block-end: 14px; }
.routing-tabs legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(.routing-tabs, .loop-controls) label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; background: #11223a; border: 1px solid #465b76; border-radius: 8px; color: var(--text-body); font-size: 14px; cursor: pointer; }
:is(.routing-tabs, .loop-controls) input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
:is(.routing-tabs, .loop-controls) label:has(input:checked) { background: var(--hub-accent); border-color: var(--hub-accent); color: var(--hub-ink); font-weight: 600; }
:is(.routing-tabs, .loop-controls) label:not(:has(input:checked)):hover { border-color: var(--hub-accent); }
:is(.routing-tabs, .loop-controls) label:has(input:focus-visible) { outline: 3px solid var(--hub-accent); outline-offset: 4px; }
.routing-panel, .loop-detail { display: none; }
.routing-explorer:has(input[value="pipeline"]:checked) [data-routing-panel="pipeline"], .routing-explorer:has(input[value="diagnosis"]:checked) [data-routing-panel="diagnosis"], .routing-explorer:has(input[value="definition"]:checked) [data-routing-panel="definition"] { display: block; }
.loop-explorer:has(input[value="discover"]:checked) [data-loop-panel="discover"], .loop-explorer:has(input[value="execute"]:checked) [data-loop-panel="execute"], .loop-explorer:has(input[value="verify"]:checked) [data-loop-panel="verify"], .loop-explorer:has(input[value="recover"]:checked) [data-loop-panel="recover"] { display: block; }

/* TSO: pipeline, breakpoints, then tool definitions side by side. */
.hub-routing .hub-head { margin-block-end: 16px; }
.routing-panels { padding: 22px 24px 20px; background: #101d32; border: 1px solid #354563; border-radius: 18px; }
.routing-panel-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-block-end: 14px; }
.routing-panel-heading h3 { margin: 0; color: var(--text-heading); font-size: 21px; line-height: 1.5; }
.routing-panel-heading p { margin: 0; color: var(--text-body); font-size: 15px; }
.routing-query { margin: 0 !important; }
.routing-panel .routing-source { margin-block-start: 12px !important; }
.routing-takeaways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; padding-block-start: 14px; }
.routing-takeaways > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 10px; }
.routing-takeaways span { color: var(--hub-accent); font-size: 13px; font-weight: 700; }
.routing-takeaways h4 { margin: 0; color: var(--text-heading); font-size: 16px; }
.routing-takeaways p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--text-body); font-size: 14px; line-height: 1.7; }

/* TSO funnel: many tools, a few reach the model, one is chosen. */
.routing-funnel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .62fr) minmax(0, .82fr) minmax(0, .56fr) minmax(0, .78fr); align-items: stretch; padding: 16px 16px 14px; border-radius: 12px; background: #eaf0ff; color: #243455; }
.funnel-stage { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.funnel-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px !important; }
.funnel-number { color: #606697; font: 700 44px/1 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.funnel-stage--loaded .funnel-number { color: #6a5fd0; font-size: 52px; }
.funnel-stage--picked .funnel-number { color: #4a3da8; font-size: 60px; }
.funnel-head > span { display: grid; color: #243455; font-size: 13px; font-weight: 700; line-height: 1.35; }
.funnel-head small { color: #566683; font-size: 12px; font-weight: 400; }
.funnel-chips { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.funnel-stage--pool .funnel-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.funnel-chip { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 26px; padding: 2px 6px; border: 1px solid #d0d9ec; border-radius: 6px; background: #e1e7f4; color: #53627c; font-size: 12px; line-height: 1.3; text-align: center; }
.funnel-chip.is-hit { border-color: #8a80da; background: #fff; color: #34406a; font-weight: 600; }
.funnel-chip.is-loaded { min-height: 32px; border: 1.5px solid #6a5fd0; background: #fff; color: #243455; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 3px rgba(106, 95, 208, .14); }
.funnel-chip.is-picked { min-height: 40px; border-color: #4a3da8; background: #4a3da8; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 0 0 4px rgba(74, 61, 168, .2); }
.funnel-chip.is-picked i { font-style: normal; }
.funnel-args { margin: 8px 0 0 !important; color: #3d456f; font: 500 13px/1.4 'IBM Plex Mono', monospace; }
.funnel-gate { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; margin-inline: 8px; padding: 10px 6px 10px 12px; color: #243455; text-align: center; }
.funnel-gate::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(106, 95, 208, .22), rgba(106, 95, 208, .06)); clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%); }
.funnel-gate--two { padding-inline-end: 22%; }
.funnel-gate--two::before { background: linear-gradient(90deg, rgba(106, 95, 208, .1), rgba(106, 95, 208, .26)); clip-path: polygon(0 16%, 68% 16%, 68% 0, 100% 50%, 68% 100%, 68% 84%, 0 84%); }
.funnel-gate > * { position: relative; z-index: 1; }
.funnel-gate span { color: #5a4db8; font: 500 12px/1.4 'IBM Plex Mono', monospace; }
.funnel-gate strong { font-size: 14px; line-height: 1.4; }
.funnel-gate small { color: #566683; font-size: 12px; line-height: 1.4; }
.routing-breakpoints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 4px 0 0; padding: 0; list-style: none; }
.routing-breakpoints li { min-width: 0; }
.routing-breakpoint-number { color: var(--hub-accent); font: 400 28px/1 'Space Grotesk', sans-serif; }
.routing-breakpoints h4 { margin: 6px 0 2px; color: var(--text-heading); font-size: 19px; }
.routing-breakpoints p { margin: 0 0 6px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.routing-breakpoints .routing-breakpoint-question { color: var(--text-body); }
.routing-breakpoint-example { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 10px; padding: 10px 12px; border-radius: 10px; background: #1c2a43; font-size: 13px; }
.routing-action { margin-block: 10px 0 !important; color: var(--text-body) !important; }
.routing-action strong { display: block; margin-block-end: 2px; color: var(--hub-accent); }
.routing-code-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.routing-code-example { min-width: 0; padding: 16px 18px; background: #17233a; border: 1px solid #43516a; border-radius: 12px; }
.routing-code-example--clear { background: #1f2b45; border-color: #a895df; }
.routing-code-example h4 { margin: 0 0 10px; color: var(--text-heading); font-size: 17px; }
.routing-tool-definition { margin: 0; }
.routing-tool-definition > div { margin-block-end: 8px; }
.routing-tool-definition dt { color: var(--hub-accent); font: 400 12px/1.6 'IBM Plex Mono', monospace; }
.routing-tool-definition dd { margin: 2px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.routing-code-example p { margin: 10px 0 0; color: var(--text-muted); font-size: 14px; }
.routing-schema { margin-block-start: 10px; }
.routing-schema summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 15px; }
.routing-schema pre { max-width: 100%; overflow-x: auto; padding: 22px; background: var(--hub-bg); border-radius: 10px; font-size: 13px; line-height: 1.7; }

/* AX: three kinds of users side by side, then a four-part booking loop. */
.evolution-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.evolution-col { position: relative; display: grid; align-content: start; min-width: 0; padding: 26px 26px 28px; background: var(--hub-surface); border: 1px solid var(--hub-line-strong); border-radius: 14px; }
.evolution-col + .evolution-col::before { content: '→'; position: absolute; inset-inline-start: -26px; inset-block-start: 52px; color: var(--text-muted); font: 400 20px/1 'IBM Plex Mono', monospace; }
.evolution-col.is-current { background: var(--hub-tint); border-color: color-mix(in srgb, var(--hub-accent) 60%, transparent); }
.evolution-col__head { display: flex; align-items: center; gap: 16px; }
.evolution-icon { display: block; flex-shrink: 0; width: 64px; color: var(--text-muted); }
.evolution-col.is-current .evolution-icon { color: var(--hub-accent); }
.evolution-col__name { display: grid; margin: 0 !important; color: var(--hub-accent); font: 700 30px/1.15 'Space Grotesk', sans-serif; }
.evolution-col__name span { color: var(--text-muted); font: 500 12px/1.5 'Space Grotesk', sans-serif; }
.evolution-col h3 { margin: 20px 0 4px; color: var(--text-heading); font-size: 21px; }
.evolution-col__scene { margin: 0 0 18px !important; color: var(--text-body); font-size: 15px; }
.evolution-route { display: grid; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }
.evolution-route li { position: relative; display: grid; gap: 2px; padding: 10px 0 10px 18px; border-inline-start: 2px solid var(--hub-line-strong); }
.evolution-route li::before { content: ''; position: absolute; inset-inline-start: -5px; inset-block-start: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.evolution-col.is-current .evolution-route li { border-color: color-mix(in srgb, var(--hub-accent) 50%, transparent); }
.evolution-col.is-current .evolution-route li::before { background: var(--hub-accent); }
.evolution-route span { color: var(--text-muted); font-size: 12px; }
.evolution-route strong { color: var(--text-heading); font-size: 16px; }
.evolution-col__focus { margin: 0 !important; color: var(--text-muted); font-size: 14.5px; line-height: 1.85; }
.loop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.loop-map { display: block; width: 100%; height: auto; color: #9bacca; }
.loop-map__core { fill: #172942; stroke: #435976; }
.loop-map__bed { color: var(--hub-accent); }
.loop-map__center-title { fill: var(--text-heading); font-size: 20px; }
.loop-node__disc { fill: #13243c; stroke: #53647f; stroke-width: 1.5px; }
.loop-node__number { fill: var(--text-muted); font: 400 14px 'IBM Plex Mono', monospace; }
.loop-node__title { fill: var(--text-heading); font-size: 20px; font-weight: 600; }
.loop-node__english { fill: var(--text-muted); font-size: 11px; }
.loop-explorer:has(input[value="discover"]:checked) [data-loop-node="discover"] .loop-node__disc, .loop-explorer:has(input[value="execute"]:checked) [data-loop-node="execute"] .loop-node__disc, .loop-explorer:has(input[value="verify"]:checked) [data-loop-node="verify"] .loop-node__disc, .loop-explorer:has(input[value="recover"]:checked) [data-loop-node="recover"] .loop-node__disc { fill: #49382e; stroke: var(--hub-accent); stroke-width: 2.5px; }
.loop-panels { padding: 28px 30px; background: #132238; border: 1px solid #384961; border-radius: 14px; }
.loop-phase { margin: 0 0 8px !important; color: var(--hub-accent); font: 500 13px/1.6 'Space Grotesk', sans-serif; }
.loop-detail h3 { margin: 0 0 12px; color: var(--text-heading); font-size: 23px; line-height: 1.5; }
.loop-theory { color: var(--text-muted); font-size: 13px; }
.loop-detail h4 { margin: 22px 0 8px; color: var(--text-heading); font-size: 15px; }
.loop-design > p { font-size: 16px; }
.loop-design .loop-example { color: var(--hub-accent); font-size: 14px; }
.loop-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.loop-metrics li { padding: 6px 10px; border-radius: 6px; background: #25354b; color: var(--text-body); font-size: 13px; }

/* AI advertising: the chibi stands in full, a mock ad unit, the published ad pipeline, a cost calculator and the pilot study. */
[data-hub="aiads"] :is(.hub-title-label, .hub-switcher b, .hub-flow__name), .hub-switcher a[href$="/aiads/"] b, .hub-flow a[href$="/aiads/"] .hub-flow__name { font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif; }
[data-hub="aiads"] .hub-hero__character { aspect-ratio: 595 / 640; -webkit-mask-image: none; mask-image: none; }
[data-hub="aiads"] .hub-hero__character img { margin-block-start: 0; }
.demo-chat { display: grid; gap: 12px; }
.demo-chat .demo-user { justify-self: end; max-width: 86%; margin: 0; padding: 10px 16px; border-radius: 16px 16px 4px 16px; background: #dbe5f3; color: var(--hub-ink); font-size: 16px; line-height: 1.7; }
.demo-answer.demo-answer--compact { padding: 16px 18px; font-size: 16px; line-height: 1.85; }
.demo-ad { padding: 14px 16px 16px; background: #fff; border: 1px solid #d3dceb; border-radius: 12px; box-shadow: 0 6px 18px rgba(21, 36, 60, .08); }
.demo-ad .demo-ad__intro { margin: 0 0 10px; color: var(--hub-ink-muted); font-size: 13px; }
.demo-ad__head { display: flex; align-items: center; gap: 10px; }
.demo-ad__icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #ffc4dc, #ff9fc6); color: #5b1d3a; font: 700 14px/1 'Space Grotesk', sans-serif; }
.demo-ad__head strong { color: var(--hub-ink); font-size: 15px; }
.demo-ad__tag { margin-inline-start: auto; padding: 1px 9px; border: 1px solid #c3cfe0; border-radius: 999px; color: var(--hub-ink-muted); font-size: 12px; }
.demo-ad__body { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: 14px; margin-block-start: 12px; }
.demo-ad .demo-ad__title { margin: 0 0 4px; color: var(--hub-ink); font-size: 17px; font-weight: 700; line-height: 1.5; }
.demo-ad .demo-ad__copy { margin: 0; color: #3c5069; font-size: 14px; line-height: 1.7; }
.demo-ad__cta { display: inline-flex; margin-block-start: 10px; padding: 5px 14px; border-radius: 999px; background: var(--hub-ink); color: #fff; font-size: 13px; font-weight: 700; }
.demo-ad__image { display: block; aspect-ratio: 1; border-radius: 10px; background: radial-gradient(circle at 50% 50%, #fffaf5 0 30%, #f1d7c6 31% 41%, transparent 42%), linear-gradient(140deg, #ffd9e8, #ffeef4 60%, #f6e3d6); }
/* Under the four research areas: one request, the two hidden steps, then the sponsored slot. */
.ad-logic { margin: 28px 0 0; padding: 26px 28px 22px; background: var(--hub-paper); color: var(--hub-ink); border-radius: 18px; }
.ad-logic__title { margin: 0 0 18px; color: var(--hub-ink); font: 700 20px/1.5 'Noto Sans TC', sans-serif; }
.ad-logic__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px 40px; align-items: start; }
.ad-logic .ad-logic__system { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 8px 12px; border: 1px dashed #b9c6d8; border-radius: 10px; color: var(--hub-ink-muted); font-size: 13px; line-height: 1.7; }
.ad-logic__system span { display: inline-flex; align-items: center; }
.ad-logic__mark, .ad-logic__steps b { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin-inline-end: 8px; border-radius: 50%; background: #a8305f; color: #fff; font: 700 12px/1 'Space Grotesk', sans-serif; vertical-align: 1px; }
.ad-logic__steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ad-logic__steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.ad-logic__steps b { margin: 3px 0 0; }
.ad-logic__steps h3 { margin: 0 0 2px; color: var(--hub-ink); font-size: 16px; line-height: 1.6; }
.ad-logic__steps p { margin: 0; color: #3c5069; font-size: 14.5px; line-height: 1.75; }
.ad-logic .ad-logic__more { margin: 18px 0 0; color: var(--hub-ink-muted); font-size: 13px; }
.ad-logic a { color: #1d4f9c; }
/* Glossary: four groups of four terms, each with what it meant, what changes and how to re-evaluate. */
.hub-demo__panel.ad-terms-panel { grid-template-columns: minmax(0, 1fr); }
.ad-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ad-term { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 11px 13px 12px; background: #fff; border: 1px solid #d5deea; border-radius: 10px; }
.ad-term h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; margin: 0 0 1px; }
.ad-term__abbr { color: #a8305f; font: 700 14.5px/1.3 'Space Grotesk', 'Noto Sans TC', sans-serif; letter-spacing: -.01em; }
.ad-term__name { color: var(--hub-ink); font: 700 13px/1.4 'Noto Sans TC', sans-serif; }
.ad-term__en { color: var(--hub-ink-muted); font: 500 10.5px/1.4 'Space Grotesk', sans-serif; }
.ad-term dl { display: grid; gap: 4px; margin: 0; }
/* The label leads its paragraph instead of taking a column, so the text keeps the full card width. */
.ad-term dl > div { display: block; font-size: 12.5px; line-height: 1.65; }
.ad-term dt { display: inline; margin-inline-end: 7px; color: var(--hub-ink-muted); font-size: 11px; font-weight: 700; line-height: 1.65; }
.ad-term dd { display: inline; margin: 0; color: #2f425c; font-size: 12.5px; line-height: 1.65; }
.ad-term .ad-term__shift { margin-inline: -7px; padding: 4px 7px; border-radius: 7px; background: #fbeff5; }
.ad-term .ad-term__shift dt { color: #a8305f; }
.ad-term .ad-term__more { align-self: flex-start; margin-block-start: auto; color: #1d4f9c; font-size: 12px; font-weight: 600; }
/* The glossary is a reference panel: its tabs, heading and button run one size below the other hub panels. */
.ad-glossary .hub-demo { padding: 22px 24px 24px; }
.ad-glossary .hub-demo__controls:has(input[value="4"]) { gap: 5px; max-width: 600px; }
.ad-glossary .hub-demo__controls legend { margin-block-end: 9px; font-size: 12px; }
.ad-glossary .hub-demo__controls label { min-height: 36px; padding: 6px 5px; font-size: 13px; }
.ad-glossary .hub-demo__panel h3 { margin: 16px 0 12px; font-size: 18px; }
.ad-glossary .hub-demo__next { justify-self: start; min-height: 36px; margin-block-start: 14px; padding: 7px 14px; font-size: 13px; }
.ad-pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; margin: 0; padding: 0; list-style: none; }
.ad-pipeline li { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; padding: 22px 24px 24px; background: var(--hub-surface); border: 1px solid var(--hub-line-strong); border-radius: 14px; }
.ad-pipeline li:not(:nth-child(3n))::after { content: '→'; position: absolute; inset-inline-end: -21px; inset-block-start: 22px; color: var(--hub-accent); font: 400 16px/1 'IBM Plex Mono', monospace; }
.ad-pipeline li:last-child { background: var(--hub-tint); border-color: color-mix(in srgb, var(--hub-accent) 55%, transparent); }
.ad-pipeline__num { color: var(--hub-accent); font: 500 13px/1.6 'IBM Plex Mono', monospace; }
.ad-pipeline h3 { margin: 0; color: var(--text-heading); font-size: 19px; line-height: 1.5; }
.ad-pipeline p { margin: 0; color: var(--text-body); font-size: 15px; line-height: 1.85; }
.ad-example code { color: var(--hub-accent); overflow-wrap: anywhere; }
.ad-calc { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 28px 44px; padding: 30px 34px 32px; background: var(--hub-paper); color: var(--hub-ink); border-radius: 18px; }
.hub-stage.is-live .ad-calc::after { content: ''; position: absolute; inset-block-start: -7px; inset-inline-end: 52px; width: 230px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(9, 19, 33, .28), transparent); pointer-events: none; }
.ad-calc__inputs { display: grid; align-content: start; gap: 18px; min-width: 0; }
.ad-field { --ad-thumb: 18px; min-width: 0; }
.ad-field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ad-field__head label { color: var(--hub-ink); font-size: 15px; font-weight: 700; }
.ad-field__head output { color: var(--hub-ink); font: 600 20px/1.2 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
/* One track per slider. When a slider has a reference range, it is painted on that same track. */
.ad-field input[type="range"] { --from: 0; --to: 0; --ad-band-from: calc(var(--ad-thumb) / 2 + (100% - var(--ad-thumb)) * var(--from)); --ad-band-to: calc(var(--ad-thumb) / 2 + (100% - var(--ad-thumb)) * var(--to)); display: block; width: 100%; height: 34px; margin: 2px 0 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ad-field input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, transparent var(--ad-band-from), rgba(168, 48, 95, .3) var(--ad-band-from), rgba(168, 48, 95, .3) var(--ad-band-to), transparent var(--ad-band-to)), #dfe7f2; }
.ad-field input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, transparent var(--ad-band-from), rgba(168, 48, 95, .3) var(--ad-band-from), rgba(168, 48, 95, .3) var(--ad-band-to), transparent var(--ad-band-to)), #dfe7f2; }
.ad-field input[type="range"]::-webkit-slider-thumb { box-sizing: border-box; width: var(--ad-thumb); height: var(--ad-thumb); margin-top: calc((8px - var(--ad-thumb)) / 2); border: 3px solid #fff; border-radius: 50%; background: #a8305f; box-shadow: 0 1px 4px rgba(21, 36, 60, .35); -webkit-appearance: none; appearance: none; }
.ad-field input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: var(--ad-thumb); height: var(--ad-thumb); border: 3px solid #fff; border-radius: 50%; background: #a8305f; box-shadow: 0 1px 4px rgba(21, 36, 60, .35); }
.ad-field .ad-field__note { margin: 4px 0 0; color: var(--hub-ink-muted); font-size: 12.5px; line-height: 1.6; }
.ad-calc__results { align-self: start; min-width: 0; padding: 22px 24px; background: #fff; border-radius: 14px; }
.ad-calc .ad-calc__label { margin: 0 0 12px; color: var(--hub-ink-muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.ad-calc .ad-calc__key { display: grid; gap: 2px; margin: 0; padding-block-end: 16px; border-bottom: 1px solid #dbe3ee; }
.ad-calc__key span { color: var(--hub-ink-muted); font-size: 13px; }
.ad-calc__key strong { color: #a8305f; font: 600 38px/1.15 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.ad-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 16px 0 0; }
.ad-results > div { display: grid; align-content: start; gap: 2px; min-width: 0; }
.ad-results dt { color: var(--hub-ink-muted); font-size: 13px; line-height: 1.5; }
.ad-results dd { margin: 0; color: var(--hub-ink); font: 600 22px/1.25 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ad-calc .ad-calc__formula { margin: 16px 0 0; padding-block-start: 12px; border-top: 1px solid #dbe3ee; color: var(--hub-ink-muted); font-size: 12.5px; line-height: 1.7; }
.ad-calc .ad-calc__live { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hub-section > ul.ad-notes { max-width: none; }
.ad-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.ad-notes li { min-width: 0; padding: 20px 22px 22px; background: var(--hub-surface); border: 1px solid var(--hub-line-strong); border-radius: 14px; }
.ad-notes h3 { margin: 0 0 6px; color: var(--text-heading); font-size: 17px; line-height: 1.5; }
.ad-notes p { margin: 0; color: var(--text-body); font-size: 15px; line-height: 1.85; }
.ad-study__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 32px; align-items: start; }
.ad-design { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.ad-design > div { min-width: 0; padding: 18px 20px; background: var(--hub-surface); border: 1px solid var(--hub-line-strong); border-radius: 12px; }
.ad-design dt { color: var(--hub-accent); font-size: 13px; font-weight: 700; }
.ad-design dd { margin: 6px 0 0; color: var(--text-body); font-size: 15px; line-height: 1.8; }
.ad-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ad-steps li { display: grid; align-content: start; gap: 6px; min-width: 0; padding-block-start: 14px; border-top: 2px solid color-mix(in srgb, var(--hub-accent) 45%, transparent); }
.ad-steps span { color: var(--hub-accent); font: 500 13px/1.6 'IBM Plex Mono', monospace; }
.ad-steps h3 { margin: 0; color: var(--text-heading); font-size: 17px; line-height: 1.5; }
.ad-steps p { margin: 0; color: var(--text-body); font-size: 14.5px; line-height: 1.8; }
.ad-study__join { min-width: 0; margin-block-start: 52px; padding: 0 24px 26px; background: var(--hub-tint); border: 1px solid color-mix(in srgb, var(--hub-accent) 45%, transparent); border-radius: 16px; }
.ad-study__join img { display: block; width: 86%; max-width: 280px; height: auto; margin: -64px auto 6px; }
.ad-study__join h3 { margin: 0 0 8px; color: var(--text-heading); font-size: 20px; line-height: 1.5; }
.ad-study__join p { margin: 0 0 18px; color: var(--text-body); font-size: 15px; line-height: 1.85; }
.ad-cta { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: 999px; background: var(--hub-accent); color: var(--hub-ink) !important; font-size: 15px; font-weight: 700; text-decoration: none; }
.ad-cta:is(:hover, :active) { background: #ffc4dc; }
/* One-column calculator only (built by hub.js): the results sit below the sliders there, so a slim copy of
   CPA, clicks and conversions stays pinned under the section bar while the reader drags. */
.ad-calc__strip { display: none; }
@media (min-width: 901px) {
  .hub-flow:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .ad-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ad-pipeline, .ad-notes, .ad-study__grid { grid-template-columns: 1fr; }
  .ad-pipeline { gap: 24px; }
  .ad-pipeline li:not(:nth-child(3n))::after { content: none; }
  .ad-pipeline li:not(:last-child)::after { content: '↓'; position: absolute; inset-inline: auto 24px; inset-block: auto -21px; color: var(--hub-accent); font: 400 16px/1 'IBM Plex Mono', monospace; }
  .ad-calc { grid-template-columns: 1fr; }
  .ad-logic__grid, .ad-terms { grid-template-columns: 1fr; }
  .ad-study__join { max-width: 520px; }
  .hub-stage.is-live .ad-calc::after { display: none; }
  /* Label over value in three fixed rows of type, so the strip never changes height under a dragging finger. */
  .ad-calc__strip { position: sticky; z-index: 3; inset-block-start: calc(60px + env(safe-area-inset-top)); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 0 16px; min-width: 0; margin: 0; padding: 8px 14px 9px; border-radius: 10px; background: var(--hub-ink); box-shadow: 0 6px 18px rgba(9, 19, 33, .28); }
  .ad-calc__strip > span { display: grid; gap: 1px; min-width: 0; }
  .ad-calc__strip small { overflow: hidden; color: #c9d6e8; font-size: 12px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
  .ad-calc__strip b { color: #fff; font: 600 16px/1.2 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ad-calc__strip > span:first-child b { color: var(--hub-aiads); font-size: 19px; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hub-stage.is-live .ad-calc::after { display: none; }
}
@media (max-width: 600px) {
  [data-hub="aiads"] .hub-hero__character img { width: 150%; margin: 2px 0 0 -25%; }
  .demo-chat .demo-user { max-width: 94%; font-size: 15px; }
  .demo-answer.demo-answer--compact { padding: 14px 16px; font-size: 15px; }
  .demo-ad__body { grid-template-columns: minmax(0, 1fr) 64px; }
  .ad-logic { padding: 20px 16px 18px; border-radius: 14px; }
  .ad-logic__title { font-size: 18px; }
  /* Glossary: the desktop reference sizes are too small to read on a phone, so cards return to body size. */
  .ad-glossary .hub-demo { padding: 18px 14px; }
  .ad-glossary .hub-demo__controls label { font-size: 14px; }
  .ad-glossary .hub-demo__controls label, .ad-glossary .hub-demo__next { min-height: 44px; }
  .ad-glossary .hub-demo__next { font-size: 14px; }
  .ad-terms { gap: 10px; }
  .ad-term { gap: 6px; padding: 14px 14px 10px; }
  .ad-term__abbr { font-size: 16px; }
  .ad-term__name { font-size: 15px; }
  .ad-term__en { font-size: 12px; }
  .ad-term dl { gap: 6px; }
  .ad-term dl > div, .ad-term dd { font-size: 14.5px; line-height: 1.75; }
  .ad-term dt { font-size: 12.5px; line-height: 1.75; }
  .ad-term .ad-term__shift { margin-inline: -6px; padding: 8px 8px; }
  .ad-term .ad-term__more { display: inline-flex; align-items: center; min-height: 44px; margin-block-end: -4px; font-size: 14px; }
  .ad-calc { padding: 22px 16px; border-radius: 14px; }
  .ad-field input[type="range"] { height: 44px; touch-action: pan-y; }
  .ad-calc__results { padding: 18px 16px; }
  .ad-results { gap: 12px; }
  .ad-results dd { font-size: 20px; }
  .ad-calc__key strong { font-size: 32px; }
  /* Sequences (the six published stages, the four study steps) read as one vertical timeline
     instead of boxed cards, arrows or ruled blocks. */
  :is(.ad-pipeline, .ad-steps) { gap: 0; }
  :is(.ad-pipeline, .ad-steps) li { position: relative; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 14px; padding: 0 0 22px; background: none; border: 0; border-radius: 0; }
  :is(.ad-pipeline, .ad-steps) li:not(:last-child)::after { content: ''; position: absolute; inset: 40px auto 4px 16px; width: 2px; background: color-mix(in srgb, var(--hub-accent) 32%, transparent); }
  :is(.ad-pipeline__num, .ad-steps span) { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--hub-accent) 55%, transparent); border-radius: 50%; background: var(--hub-surface); font-size: 13px; line-height: 1; }
  :is(.ad-pipeline, .ad-steps) h3 { padding-block-start: 3px; font-size: 18px; }
  :is(.ad-pipeline, .ad-steps) p { font-size: 15px; line-height: 1.8; }
  :is(.ad-pipeline, .ad-steps) li:last-child { padding: 0; background: none; }
  .ad-pipeline li:last-child .ad-pipeline__num { border-color: var(--hub-accent); background: var(--hub-accent); color: var(--hub-ink); font-weight: 700; }
  .ad-pipeline li:last-child h3 { color: var(--hub-accent); }
  /* Short note cards and the study design become one panel with dividers, like the reading list. */
  :is(.ad-notes, .ad-design) { gap: 0; padding: 2px 16px; background: var(--hub-surface); border: 1px solid var(--hub-line-strong); border-radius: 14px; }
  :is(.ad-notes > li, .ad-design > div) { padding: 16px 0; background: none; border: 0; border-radius: 0; }
  :is(.ad-notes > li, .ad-design > div) + :is(li, div) { border-top: 1px solid var(--hub-line-strong); }
  .ad-notes h3 { font-size: 16px; }
  .ad-design { grid-template-columns: 1fr; margin-block-end: 32px; }
  .ad-design dd { margin-block-start: 4px; line-height: 1.75; }
  .ad-steps { grid-template-columns: 1fr; }
  .ad-study__join { margin-block-start: 44px; padding-inline: 20px; }
  .ad-study__join img { width: 64%; max-width: 220px; margin-block-start: -44px; }
}


@media (max-width: 1100px) {
  .hub-hero__grid { column-gap: 44px; }
  .evolution-compare { gap: 26px; }
  .evolution-col { padding: 22px 20px 24px; }
  .evolution-col + .evolution-col::before { inset-inline-start: -21px; }
  .hub-vector-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr); gap: 24px; padding: 18px 22px; }
  .demo-tool-list > div { grid-template-columns: 90px 1fr auto; gap: 8px; }
}
@media (max-width: 1000px) {
  .hub-hero__demo { inset-inline-start: 0; }
  .hub-demo__panel { column-gap: 26px; }
  .loop-layout { gap: 20px; }
  .loop-panels { padding: 24px; }
}
@media (max-width: 900px) {
  .hub-page .editorial-header .header-row { min-height: 68px; padding-block: max(10px, env(safe-area-inset-top)) 10px; gap: 0; }
  .hub-page .editorial-shell { width: calc(100% - 40px); }
  .hub-page .brand-wordmark { width: 126px; }
  .hub-menu-ready .hub-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-inline-start: auto; padding: 8px 12px; border: 1px solid var(--hub-line-strong); border-radius: 8px; background: transparent; color: var(--text-heading); font: 500 14px/1.5 'Noto Sans TC', sans-serif; cursor: pointer; }
  .hub-menu-toggle::after { content: ''; width: 14px; height: 10px; border-block: 1.5px solid currentColor; }
  .hub-menu-toggle[aria-expanded="true"]::after { height: 0; border-bottom: 0; }
  .hub-menu-toggle:active { background: var(--hub-surface-raised); }
  .hub-page .hub-menu-ready .site-navigation { display: none; }
  .hub-page .hub-menu-ready.is-menu-open .site-navigation { display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 0; padding-block: 12px 4px; }
  .hub-page .hub-menu-ready .site-navigation > a, .hub-menu-ready .site-navigation summary { padding: 10px 8px; min-height: 46px; font-size: 15px; }
  .hub-menu-ready .language-disclosure { margin: 0; }
  .hub-menu-ready .site-navigation :is(.tool-panel, .language-panel) { position: static; width: 100%; max-width: none; box-shadow: none; border-radius: 8px; }
  .hub-menu-ready .site-navigation .tool-panel a { padding: 12px; }
  .hub-toc ol { grid-template-columns: 1fr; }
  .hub-shell { width: calc(100% - 48px); }
  .hub-hero__grid { display: block; padding-block-start: 44px; }
  .hub-hero__art { display: contents; }
  .hub-hero__demo { display: none; }
  .hub-hero__character { float: right; width: 170px; margin: 4px 0 16px 24px; }
  .evolution-compare { grid-template-columns: 1fr; gap: 30px; }
  .evolution-col + .evolution-col::before { content: '↓'; inset-inline-start: 34px; inset-block-start: -27px; }
  .hub-subbar__inner { justify-content: flex-start; }
  .hub-switcher span { display: none; }
  .hub-switcher a { align-items: center; min-height: 44px; }
  .hub-subbar__crumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .hub-peek-canvas, .hub-peek-hotspot { display: none; }
  .hub-stage.is-live .hub-peek { display: block !important; }
  .hub-stage.is-live .hub-demo::after { display: none; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hub-peek-canvas, .hub-peek-hotspot { display: none; }
  .hub-stage.is-live .hub-peek { display: block !important; }
  .hub-stage.is-live .hub-demo::after { display: none; }
}
@media (max-width: 900px) {
  .hub-vector-grid, .loop-layout { grid-template-columns: 1fr; }
  .hub-vector-canvas { width: 100%; max-width: 560px; margin-inline: auto; }
  .hub-vector-steps { grid-template-columns: 1fr; gap: 18px; }
  .hub-demo__panel { grid-template-columns: 1fr; }
  .hub-demo__insight { margin-block-start: 22px; }
  .routing-code-pair, .routing-breakpoints { grid-template-columns: 1fr; }
  .routing-breakpoints { gap: 26px; }
  .routing-funnel { grid-template-columns: 1fr; gap: 4px; padding: 16px 14px; }
  .funnel-gate { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 4px 0; padding: 12px 14px 22px; }
  .funnel-gate::before, .funnel-gate--two::before { background: linear-gradient(180deg, rgba(106, 95, 208, .22), rgba(106, 95, 208, .06)); clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%); }
  .funnel-gate--two { padding-inline-end: 14px; }
  .funnel-stage--loaded .funnel-chips, .funnel-stage--picked .funnel-chips { max-width: 280px; }
  .routing-takeaways { grid-template-columns: 1fr; }
  .loop-map { max-width: 520px; margin-inline: auto; }
  .hub-concepts, .hub-list--links { grid-template-columns: 1fr; }
  .hub-flow { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
  .hub-shell { width: calc(100% - 40px); }
  .hub-subbar__inner { gap: 8px; justify-content: space-between; min-height: 60px; padding-block: 4px; }
  .hub-switcher a { align-items: center; min-height: 44px; padding-inline: 12px; }
  .hub-subbar__crumb { align-items: center; }
  .hub-subbar__crumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .hub-vector-slider input[type="range"] { height: 44px; }
  .hub-explainer__sources, .routing-source { line-height: 2.3; }
  .hub-hero__grid { padding-block: 28px 32px; }
  .hub-hero__grid { position: relative; }
  .hub-hero__character { position: absolute; top: 16px; right: 0; width: 88px; height: 88px; margin: 0; border-radius: 50%; background: var(--hub-tint); border: 1px solid var(--hub-line-strong); overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .hub-hero__character img { width: 180%; max-width: none; height: auto; margin: -4px 0 0 -40%; }
  .hub-eyebrow, .hub-title-label { padding-inline-end: 102px; }
  .hub-title-subject { margin-block-start: 26px; }
  .hub-intro, .hub-definition { font-size: 16px; line-height: 1.8; }
  .hub-flow a { min-height: 0; padding-inline-end: 104px; }
  .hub-flow__art { width: 78px; height: 108px; inset-inline-end: 12px; }
  .hub-eyebrow { margin-block-end: 12px; font-size: 12px; }
  .hub-hero h1 { margin-block-end: 20px; font-size: clamp(28px, 7.6vw, 38px); line-height: 1.4; }
  .hub-title-label { margin-block-end: 0; gap: 8px; font-size: 20px; }
  .hub-title-label > span { padding-inline-start: 8px; font-size: 13px; }
  .hub-section { padding-block: 40px; }
  .hub-section h2 { font-size: 26px; }
  .hub-head { margin-block-end: 24px; }
  .hub-lead { font-size: 16px; line-height: 1.8; }
  .hub-toc.hub-shell { margin-block-end: 32px; padding: 16px 12px; }
  .hub-toc a { gap: 10px; font-size: 14px; }
  .hub-toc__num { min-width: 30px; padding-inline: 6px; }
  .hub-reading .hub-list--links { gap: 0; }
  .hub-reading .hub-list--links > li { border: 0; border-bottom: 1px solid var(--hub-line-strong); border-radius: 0; }
  .hub-reading .hub-list--links > li:first-child { margin-block-end: 4px; border: 1px solid var(--hub-line-strong); border-radius: 12px; background: var(--hub-surface); }
  .hub-reading .hub-list--links a { gap: 4px; padding: 16px 32px 16px 14px; }
  .hub-reading .hub-list--links a::after { inset-inline-end: 12px; inset-block-start: 14px; }
  .hub-reading .hub-list h3 { margin-block-end: 4px; font-size: 17px; line-height: 1.6; }
  .hub-reading .hub-list p { font-size: 14px; line-height: 1.7; }
  .hub-vector-grid { padding: 18px 14px; gap: 14px; border-radius: 14px; }
  .hub-vector-controls { display: contents; }
  .hub-vector-label { order: 1; }
  .hub-vector-presets { order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
  .hub-vector-presets button { padding: 10px 6px; font-size: 14px; line-height: 1.5; }
  .hub-vector-sample { order: 3; margin: 0; }
  .hub-vector-canvas { order: 4; }
  .hub-vector-readout { order: 5; }
  .hub-vector-verdict { order: 6; margin: 0 !important; }
  .hub-vector-slider { order: 7; grid-template-columns: 1fr 1fr; }
  .hub-vector-slider input[type="range"] { grid-column: 1 / -1; height: 48px; touch-action: pan-y; }
  .hub-vector-range-labels span { grid-row: 3; white-space: normal; }
  .hub-vector-range-labels span:last-child { grid-column: 2; text-align: end; }
  .hub-vector-status { order: 8; margin: 0 !important; }
  .hub-vector-rank { order: 9; margin: 0; }
  .hub-vector-point text { font-size: 24px; stroke-width: 7px; }
  .hub-vector-key-name { display: none; }
  .hub-vector-point.is-query .hub-vector-key-name, .hub-vector-point.is-mine .hub-vector-key-name { display: inline; }
  .hub-vector-axis-labels { font-size: 21px; }
  .hub-vector-theta { font-size: 28px; }
  .hub-vector-legend { gap: 8px 16px; font-size: 13px; }
  .hub-vector-readout { gap: 14px; }
  .hub-vector-readout output { font-size: 36px; }
  .hub-vector-rank li { grid-template-columns: 16px minmax(0, 1fr) 44px; gap: 8px; padding: 7px 8px; font-size: 13px; }
  .hub-rank-name { overflow: visible; white-space: normal; }
  .hub-rank-bar { display: none; }
  .hub-lab__intro { min-height: 0; padding: 0; }
  .hub-task { font-size: 17px; }
  .hub-stage { margin-block-start: 94px; }
  .hub-peek { width: 106px; height: 90px; inset-inline-end: 16px; }
  .hub-peek-canvas { inset-inline-end: -21px; inset-block-end: calc(100% - 96px); width: 250px; height: 300px; }
  .hub-stage.is-live .hub-demo::after { inset-inline-end: 20px; width: 170px; }
  .hub-demo { padding: 22px 16px; border-radius: 14px; }
  .hub-demo__controls label { font-size: 14px; line-height: 1.5; }
  .hub-demo__panel h3 { font-size: 20px; }
  .hub-demo__visual { min-height: 0; }
  .hub-demo__insight p { font-size: 14.5px; }
  .demo-answer { padding: 18px; font-size: 18px; }
  .demo-annotation { align-items: flex-start; gap: 10px; }
  .demo-annotation span { flex-shrink: 0; }
  .demo-annotation p { font-size: 13px; }
  .demo-sources, .demo-compare { gap: 8px; }
  .demo-sources > div, .demo-compare > div { padding: 14px; }
  .demo-compare strong { font-size: 17px; }
  .demo-sources strong { font-size: 15px; }
  .demo-tool-list > div { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .demo-tool-list span { grid-column: 1 / 3; }
  .demo-tool-list strong { font-size: 16px; }
  .demo-tool-match { gap: 12px; padding: 18px 14px; }
  .demo-tool-match strong { font-size: 18px; }
  .demo-params { gap: 8px; }
  .demo-params li { padding: 10px; }
  .demo-params strong { font-size: 16px; }
  .demo-journey { gap: 16px; }
  .demo-journey li { padding: 14px 5px; }
  .demo-journey strong { font-size: 13px; }
  .demo-journey span { font-size: 12px; }
  .demo-journey li + li::after { inset-inline-start: -15px; }
  /* Research-area cards: number, name and English name share one heading row instead of three lines;
     the question and the explanation keep their full text and body size. */
  .hub-concepts { gap: 10px; }
  .hub-concept { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 10px; padding: 18px 16px 20px; }
  .hub-concept__num { margin-block-start: 4px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--hub-accent) 14%, transparent); font-size: 12px; line-height: 1.6; }
  .hub-concept h3 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin: 0; font-size: 20px; line-height: 1.4; }
  .hub-concept h3 span { margin: 0; font-size: 12.5px; }
  .hub-concept :is(.hub-concept__q, p) { grid-column: 1 / -1; }
  .hub-concept .hub-concept__q { margin: 8px 0 8px; font-size: 15.5px; line-height: 1.6; }
  .hub-concept p:not(.hub-concept__q) { font-size: 16px; line-height: 1.75; }
  .hub-concept[data-letter]::after { inset-block-end: -30px; width: 120px; font-size: 136px; }
  .hub-example { padding: 20px; }
  .hub-list > li, .hub-list--links a { grid-template-columns: 1fr; gap: 8px; }
  .hub-list--links a { padding: 20px 40px 24px 20px; }
  .hub-faq summary { gap: 16px; }
  .hub-faq p { margin-inline-end: 0; }
  :is(.routing-tabs, .loop-controls) { gap: 8px; }
  .routing-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .routing-tabs label { min-width: 0; padding: 10px 6px; font-size: 14px; line-height: 1.5; text-align: center; }
  .loop-controls label { flex: 1 1 calc(50% - 8px); padding: 10px; font-size: 14px; line-height: 1.5; }
  .routing-panels { padding: 18px 14px; }
  .routing-panel-heading h3 { font-size: 19px; }
  .hub-demo__controls:has(input[value="4"]) { grid-template-columns: 1fr 1fr; }
  .routing-takeaways { gap: 12px; }
  .routing-code-example { padding: 18px; }
  .routing-funnel { padding: 16px 12px; gap: 8px; }
  .funnel-stage { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: center; }
  .funnel-head { display: grid; gap: 6px; margin: 0 !important; }
  .funnel-stage--pool .funnel-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .funnel-stage--pool .funnel-chip { min-height: 28px; padding-inline: 3px; }
  .funnel-args { grid-column: 2; font-size: 12px; }
  .funnel-gate { margin: 0; padding: 10px 6px 18px; gap: 4px 8px; }
  .funnel-gate small { flex-basis: 100%; }
  .routing-schema pre { padding: 14px; font-size: 12px; }
  .evolution-col { padding: 20px 18px 22px; }
  .evolution-icon { width: 52px; }
  .loop-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .loop-map { max-width: 300px; }
  .loop-panels { padding: 20px 16px; }
  .loop-detail h3 { font-size: 22px; }
  .loop-node__title { font-size: 28px; }
  .loop-node__number { font-size: 20px; }
  .loop-node__english { display: none; }
  .loop-map__center-title { font-size: 28px; }
}
@media (max-width: 360px) {
  .hub-shell, .hub-page .editorial-shell { width: calc(100% - 32px); }
  .hub-title-label { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hub-title-label > span { padding: 0; border: 0; }
  .demo-sources, .demo-compare, .demo-params { grid-template-columns: 1fr; }
  .demo-params li { grid-template-columns: 1fr 1fr; align-items: center; }
  .funnel-stage { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
}
