/*
 * skills.raq.com pages: the library explorer and its preview card, the Add to Raq.com steps with the Skill Library
 * dialog, the download section, skill cards and the dark subject and guide heads. Skill pages are in skill.css and
 * subject keys in keycaps.css. Plain sans type throughout (Alex, 22 Nov 2026: avoid the mono font). Colour is kept
 * for status and the primary action.
 */
:root {
  --c-bg-1: #0f1116;
  --c-bg-3: #1c2330;
  --c-hair: rgb(255 255 255 / 8%);
  --c-text-2: #b4bbc6;
  --c-text-3: #8f97a4;
}
.c-dark-top > main { padding-top: 0; }
.shell { max-width: calc(1360px + var(--gutter) * 2); }

/* ---------- Shared chrome ---------- */
.c-dots { display: inline-flex; flex: none; gap: 6px; }
.c-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 14%); }
.c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.c-link-light { color: #fff; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 35%); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .15s; }
.c-link-light:hover { text-decoration-color: #fff; }
.c-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 32px; margin-bottom: 40px; }
.c-head h2, .c-h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.045em; }
.c-head p { max-width: 520px; justify-self: end; font-size: 18px; color: var(--muted); }

/* ---------- The stage: a live agent session on a dark panel under the keycap hero ---------- */
@keyframes c-spin { to { transform: rotate(360deg); } }
/* ---------- Catalogue: the library as an explorer ---------- */
.c-cat { padding: clamp(72px, 8vw, 112px) 0 clamp(80px, 9vw, 128px); background: var(--ground); }
/* The list scrolls with the page, with the subjects and preview held beside it (Alex, 22 Nov 2026): a list with its own
   scroll held on to the mouse wheel. overflow: clip keeps the rounded corners without breaking the sticky columns. */
.c-explorer { overflow: clip; scroll-margin-top: 92px; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.c-ex-bar { display: flex; align-items: center; gap: 18px; height: 66px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.c-ex-bar .c-dots i { background: #dce1e7; }
.c-ex-search { display: flex; flex: 0 1 440px; align-items: center; gap: 10px; min-width: 0; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s, box-shadow .15s; }
.c-ex-search:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.c-ex-search svg { flex: none; width: 18px; height: 18px; color: var(--faint); }
.c-ex-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15.5px; }
.c-match { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.c-ex-body { display: grid; grid-template-columns: 256px minmax(0, 1fr) minmax(0, 410px); align-items: start; background: linear-gradient(90deg, #fbfbfc 0 255px, var(--line) 255px 256px, #fff 256px calc(100% - 411px), var(--line) calc(100% - 411px) calc(100% - 410px), var(--ground) calc(100% - 410px)); }
.c-ex-subjects { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 100px); padding: 14px 10px; overflow-y: auto; scrollbar-width: thin; }
.c-ex-subjects .ka-key { --s: 28px; }
.c-ex-subjects a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px 0 8px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color .15s, color .15s; }
.c-ex-subjects a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-ex-subjects b { font-size: 12.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.c-ex-subjects a:hover { background: var(--soft); color: var(--ink); }
/* Plain glyphs; only the selected subject sits on its key (Alex, 22 Nov 2026). */
.c-ex-subjects a:not([aria-current="true"]) .ka-key, .c-ex-subjects a:not([aria-current="true"]) .ka-key-cap { background: none; box-shadow: none; }
.c-ex-subjects a:not([aria-current="true"]) .ka-key svg { width: 66%; height: 66%; color: var(--faint); stroke-width: 1.8; }
.c-ex-subjects a:not([aria-current="true"]):hover .ka-key svg { color: var(--ink); }
.c-ex-subjects a[aria-current="true"] { background: var(--soft); color: var(--ink); font-weight: 600; }
.c-ex-subjects a[aria-current="true"] b { color: var(--ink); }
.c-ex-list { position: relative; min-width: 0; padding-bottom: 18px; }
.c-ex-list.is-capped .c-ex-group li:nth-child(n+4) { display: none; }
.c-ex-group-head { position: sticky; top: 80px; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 22px 10px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 -16px 0 #fff; }
.c-ex-group-head h3 { font-size: 15px; letter-spacing: -0.015em; }
.c-ex-group-head a { font-size: 13px; color: var(--muted); text-decoration: none; }
.c-ex-group-head a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.c-ex-group ul { display: grid; gap: 1px; padding: 6px 10px 10px; list-style: none; }
.c-ex-group li a { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; text-decoration: none; transition: background-color .12s; }
.c-ex-group li strong { font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.c-ex-group li span { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.45; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.c-ex-group li a:hover, .c-ex-group li a.is-previewed { background: var(--soft); }
/* Each row shows its step and check counts (Alex picked these over a graphite row and subject keys, 22 Nov 2026). */
.c-ex-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.c-ex-counts i { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-style: normal; font-weight: 500; color: var(--ink-2); }
.c-ex-counts svg { width: 13px; height: 13px; color: var(--muted); }
.c-ex-group li a.is-previewed .c-ex-counts i, .c-ex-group li a:hover .c-ex-counts i { background: #fff; }
.c-empty { padding: 44px 22px; }
.c-empty h3 { margin-bottom: 8px; font-size: 22px; }
.c-empty p { margin-bottom: 18px; color: var(--muted); }
.c-ex-preview { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; min-width: 0; max-height: calc(100vh - 100px); padding: 20px; overflow-y: auto; }
/* The key sits beside the title; the subject list on the left already names the subject (Alex, 22 Nov 2026). */
.c-pv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
.c-pv > * { grid-column: 1 / -1; }
.c-pv > .c-pv-subject { grid-column: 1; grid-row: 1; align-self: start; }
.c-pv-subject [data-p-key] { display: inline-flex; }
.c-pv-subject .ka-key { --s: 46px; }
.c-pv > .c-pv-title { grid-column: 2; grid-row: 1; align-self: center; }
.c-pv-title { font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; }
.c-pv-summary { display: block; font-size: 15px; line-height: 1.5; color: var(--muted); }
.c-pv-ask { display: grid; gap: 8px; margin-top: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.c-pv-ask small { font-size: 12.5px; color: var(--faint); }
.c-pv-bubble { justify-self: end; max-width: 94%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--ink); color: #fff; font-size: 14.5px; line-height: 1.45; }
.c-pv-ticks { display: grid; gap: 7px; list-style: none; font-size: 14px; color: var(--ink-2); }
.c-pv-ticks li { display: flex; align-items: flex-start; gap: 9px; }
.c-pv-ticks svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--pass); }
.c-ex-actions { display: grid; gap: 10px; }
.c-ex-actions .pill { width: 100%; }

/* ---------- From the library to your agent ---------- */
.c-flow { padding: clamp(80px, 9vw, 128px) 0; background: #fff; }
.c-flow h2, .c-any h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1; letter-spacing: -0.045em; }
.c-flow-lede { margin-top: 18px; font-size: 18px; color: var(--muted); }
.c-flow-lede strong { font-weight: 600; color: var(--ink); }
.c-flow-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 32px; }
.c-flow-head .c-flow-lede { justify-self: end; max-width: 520px; margin: 0; }
.c-flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; list-style: none; counter-reset: c-step; }
.c-flow-steps li { counter-increment: c-step; }
.c-flow-steps h3 { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.c-flow-steps h3::before { content: counter(c-step); display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.c-flow-steps > li > p { font-size: 15.5px; color: var(--muted); }
.c-flow-actions { margin-top: 40px; }
/* Each step's picture: the skill with its button, the Skill Library dialog (mirrors PublicSkillOfferDialog), the agent answering */
.c-pic { display: grid; place-items: center; height: 270px; padding: 24px; overflow: hidden; border-radius: 22px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.c-pic-skill { display: grid; justify-items: start; gap: 10px; width: 100%; max-width: 300px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -26px rgb(28 31 42 / 50%); }
.c-pic-skill b { font-size: 17px; line-height: 1.25; letter-spacing: -0.02em; }
.c-pic-pill, .c-pic-quiet { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.c-pic-pill { background: var(--ink); color: #fff; }
.c-pic-pill svg { width: 14px; height: 14px; }
.c-pic-quiet { box-shadow: inset 0 0 0 1px var(--edge); }
.c-pic-dialog { width: 100%; max-width: 320px; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 44px -24px rgb(14 16 22 / 60%); }
.c-dialog-band { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: radial-gradient(60% 120% at 20% 0%, rgb(245 198 165 / 22%), transparent 70%), linear-gradient(180deg, #2b2f37, #17191e); color: #fff; }
.c-dialog-band .ka-key { --s: 40px; }
.c-dialog-band b { font-size: 14.5px; font-weight: 600; }
.c-dialog-x { margin-left: auto; color: rgb(255 255 255 / 60%); }
.c-dialog-x svg { width: 18px; height: 18px; }
.c-pic-dialog-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; }
.c-pic-dialog-body b { flex-basis: 100%; margin-bottom: 6px; font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; }
.c-pic-dialog-body span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.c-dialog-quiet { margin-left: auto; box-shadow: inset 0 0 0 1px var(--edge); }
.c-dialog-go { background: var(--ink); color: #fff; }
.c-pic-chat { display: grid; gap: 10px; width: 100%; max-width: 320px; }
.c-pic-you { justify-self: end; max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.4; }
.c-pic-agent { display: -webkit-box; overflow: hidden; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.45; color: var(--ink-2); -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.c-pic-agent span { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.c-pic-agent .ka-key { --s: 20px; }

/* ---------- Any agent ---------- */
.c-any { padding: clamp(80px, 9vw, 128px) 0; background: var(--ground); }
.c-agents { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.c-agents li { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 0; font-size: 15px; font-weight: 500; }
.c-agents img { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.c-any-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.c-any-copy > p { max-width: 580px; margin-top: 18px; font-size: 18px; color: var(--muted); }
.c-any-copy > .c-any-more { margin-top: 28px; font-size: 15.5px; }
.c-pack { --folder-ink: #292c33; --file-inset: clamp(16px, 2vw, 24px); margin: 0; }
.c-pack::before { content: ""; display: block; width: 28%; max-width: 120px; height: 12px; border-radius: 8px 10px 0 0; background: var(--folder-ink); }
.c-pack-folder { display: grid; gap: 4px; padding: 18px var(--file-inset) 20px; border-radius: 0 12px 0 0; background: var(--folder-ink); color: #fff; }
.c-pack-folder b { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.03em; }
.c-pack-folder small { font-size: 14.5px; color: rgb(255 255 255 / 62%); }
.c-pack-sheet { margin: 0; padding: 0 calc(var(--file-inset) - 1px); border: 1px solid var(--line); border-top: 0; background: #fff; list-style: none; }
.c-pack-sheet li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 3px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-pack-sheet li:last-child { border-bottom: 0; }
.c-pack-sheet svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; color: var(--faint); }
.c-pack-sheet b { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.c-pack-sheet span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.c-pack figcaption { padding-top: 12px; font-size: 13.5px; color: var(--faint); }
.c-endpoint { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 8px 8px 8px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.c-endpoint code { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- File cards (subject pages, related skills) ---------- */
/* Question cards: a skill led by the request from its worked example (related skills and subject pages) */
.s-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.s-rel-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-rel-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s var(--ease); border-top: 1px solid var(--edge); }
.s-rel-card:hover { border-color: var(--ink); }
.s-rel-ask { display: flex; align-items: flex-end; justify-content: flex-end; min-height: 124px; padding: 18px 0 6px; }
.s-rel-ask span { display: block; max-width: 92%; overflow-wrap: anywhere; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--ink); color: #fff; font-size: 14.5px; line-height: 1.4; }
.s-rel-text { display: grid; gap: 8px; padding: 14px 0 6px; }
.s-rel-title { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.022em; text-wrap: pretty; }
.s-rel-text span { display: block; font-size: 15px; line-height: 1.55; color: var(--muted); }
.s-rel-go { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 0 20px; font-size: 14.5px; font-weight: 600; }
.s-rel-go svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.s-rel-card:hover .s-rel-go svg { transform: translateX(3px); }

/* ---------- Dark page heads (subject, guide) ---------- */
.c-band { position: relative; isolation: isolate; overflow: hidden; padding: 140px 0 64px; color: #fff; background: radial-gradient(800px 420px at 85% 20%, rgb(91 127 166 / 18%), transparent 65%), linear-gradient(180deg, var(--c-bg-1), var(--c-bg-3)); }
.c-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / 8%) 1px, transparent 1.3px); background-size: 24px 24px; mask-image: radial-gradient(ellipse 50% 70% at 85% 30%, #000 10%, transparent 78%); }
.c-band .crumbs, .c-band .crumbs a { color: var(--c-text-3); }
.c-band .crumbs a:hover { color: #fff; }
.c-band .crumbs svg { color: #5d6573; }
.c-band-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 40px; }
.c-band-title { display: grid; justify-items: start; gap: 28px; }
.c-band .ka-key { box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), inset 0 -2px 3px rgb(0 0 0 / 55%), 0 3px 0 #08090b, 0 0 0 1px rgb(255 255 255 / 7%), 0 30px 50px -20px rgb(0 0 0 / 70%); }
.c-band h1 { font-size: clamp(44px, 6vw, 88px); line-height: .96; letter-spacing: -0.055em; padding-bottom: .05em; }
.c-band-side p { font-size: 18.5px; color: var(--c-text-2); }
.c-band-side .c-actions { margin-top: 24px; }
.c-band .pill-light { box-shadow: none; }
.c-stat { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--c-hair); font-size: 14.5px; color: var(--c-text-3); }
.c-stat b { font-weight: 500; color: #fff; }

.c-subject-list { padding: 56px 0 0; }
.c-more { padding: clamp(64px, 8vw, 104px) 0 0; }
.c-more { padding-bottom: clamp(72px, 9vw, 120px); }
.c-more h2 { margin-bottom: 24px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; }
.c-subject-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; list-style: none; }
.c-subject-index a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.c-subject-index li:nth-child(-n+3) a { border-top: 1px solid var(--line); }
.c-subject-index .ka-key { --s: 34px; transition: transform .25s var(--ka-ease); }
.c-subject-index b { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.c-subject-index small { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.c-subject-index a:hover b { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; }
.c-subject-index a:hover .ka-key { transform: translateY(-2px); }
/* ---------- Skill page: the workbench ---------- */
.c-sec { margin-top: 64px; }
.c-sec h2 { margin-bottom: 20px; font-size: clamp(28px, 2.6vw, 34px); letter-spacing: -0.04em; }
.c-sec h3 { margin-bottom: 12px; font-size: 19px; letter-spacing: -0.02em; }
.c-sec p { color: var(--ink-2); }
.c-sec p + p { margin-top: 14px; }
.c-method { position: relative; display: grid; list-style: none; counter-reset: c-m; }
.c-method li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; color: var(--ink-2); counter-increment: c-m; }
.c-method li::before { content: counter(c-m); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; }
.c-method li::after { content: ""; position: absolute; left: 14.5px; top: 38px; bottom: 6px; width: 1px; background: var(--edge); }
.c-method li:last-child { padding-bottom: 0; }
.c-method li:last-child::after { display: none; }
.c-method li > span { padding-top: 3px; }
.c-related { padding-top: clamp(72px, 8vw, 112px); }
.c-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
/* ---------- Guide ---------- */
.c-guide { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(88px, 10vw, 140px); }
.c-toc { position: sticky; top: 104px; display: grid; gap: 2px; margin-top: 64px; font-size: 15px; }
.c-toc p { margin-bottom: 8px; font-weight: 600; }
.c-toc a { padding: 6px 0 6px 14px; border-left: 1.5px solid var(--line); color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.c-toc a:hover, .c-toc a[aria-current="true"] { border-color: var(--ink); color: var(--ink); }
.c-guide-body { min-width: 0; max-width: 880px; }
/* Where to use it: one route at a time (Alex, 22 Nov 2026), folder paths in plain type with Copy */
.c-guide code { font-family: inherit; font-size: inherit; font-weight: 500; overflow-wrap: anywhere; }
.c-tabs { overflow: hidden; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.c-tab-list { display: flex; gap: 4px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--ground); scrollbar-width: none; }
.c-tab-list::-webkit-scrollbar { display: none; }
.c-tab-list button { display: inline-flex; flex: none; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 8px; border: 0; border-radius: 14px; background: none; font: inherit; font-size: 15.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.c-tab-list button:hover { color: var(--ink); }
.c-tab-list button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgb(28 31 42 / 45%); }
.c-tab-panel { display: grid; gap: 22px; padding: 28px; }
.c-tab-panel[hidden] { display: none; }
.c-route-line { font-size: 17px; color: var(--muted); }
.c-route-cta { margin: 0; }
.c-logo { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 4px 10px -8px rgb(28 31 42 / 50%); color: var(--ink); }
.c-logo img { width: 20px; height: 20px; object-fit: contain; }
.c-logo svg { width: 18px; height: 18px; }
.c-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.c-paths div { display: grid; gap: 4px; }
.c-paths dt { font-size: 13.5px; color: var(--faint); }
.c-paths dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; }
.c-paths dd span { min-width: 0; overflow-wrap: anywhere; }
.c-paths .copy-btn { flex: none; min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.c-after { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .c-ex-body { grid-template-columns: 248px minmax(0, 1fr) minmax(0, 340px); background: linear-gradient(90deg, #fbfbfc 0 247px, var(--line) 247px 248px, #fff 248px calc(100% - 341px), var(--line) calc(100% - 341px) calc(100% - 340px), var(--ground) calc(100% - 340px)); }
}
@media (max-width: 1100px) {
  .c-ex-body { grid-template-columns: 248px minmax(0, 1fr); background: linear-gradient(90deg, #fbfbfc 0 247px, var(--line) 247px 248px, #fff 248px); }
  .c-ex-preview { display: none; }
  .c-any-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
.c-guide { grid-template-columns: minmax(0, 1fr); }
  .s-rel, .s-rel-3, .c-subject-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-subject-index li:nth-child(3) a { border-top: 0; }
  .c-toc { display: none; }
  .c-head { grid-template-columns: 1fr; gap: 14px; }
  .c-head p { justify-self: start; }
  .c-band { padding-top: 120px; }
  .c-band-grid { grid-template-columns: 1fr; gap: 20px; }
  .c-flow-head, .c-flow-steps { grid-template-columns: minmax(0, 1fr); }
  .c-flow-head .c-flow-lede { justify-self: start; }
}
@media (max-width: 800px) {
.c-ex-bar { flex-wrap: wrap; height: auto; padding: 12px; gap: 10px; }
  .c-ex-bar .c-dots { display: none; }
  .c-ex-search { flex: 1 1 100%; }
  .c-match { margin-left: 4px; }
  .c-match:empty { display: none; }
  .c-ex-body { grid-template-columns: minmax(0, 1fr); background: #fff; }
  .c-ex-subjects { position: static; max-height: none; flex-direction: row; gap: 6px; padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .c-ex-subjects::-webkit-scrollbar { display: none; }
  .c-ex-subjects a { flex: none; grid-template-columns: 26px auto auto; min-height: 42px; padding: 0 14px 0 8px; box-shadow: inset 0 0 0 1px var(--edge); background: #fff; }
  .c-ex-group-head { position: static; box-shadow: none; padding: 18px 16px 10px; }
  .c-ex-group ul { padding: 6px 4px 8px; }
}
@media (max-width: 760px) {
.c-cat, .c-flow, .c-any { padding: 64px 0; }
  .s-rel, .s-rel-3, .c-subject-index { grid-template-columns: minmax(0, 1fr); }
  .s-rel-ask { min-height: 0; }
  .c-subject-index li:nth-child(2) a { border-top: 0; }
  .c-agents li { height: 46px; padding-right: 14px; }
  .c-band { padding: 108px 0 44px; }
  .c-tab-panel { padding: 20px; }
  .c-paths { grid-template-columns: minmax(0, 1fr); }
.c-related-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
   .s-rel-card, .s-rel-go svg, .c-subject-index .ka-key { transition: none !important; }
}

@media (min-width: 1024px) and (max-width: 1339px) {
  .s-related .s-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .c-pv-title { min-height: 2.4em; }
  .c-pv-summary { min-height: 4.5em; }
  .c-pv-ask { min-height: 9em; align-content: start; }
}
