/* Detail pages for single features from the iceberg (theme/inc/topics.php). */
.topic { --ice: #a8c6d6; --berry: #f2557a; --accent: #a8c6d6; color: #e9ebef; }
/* Each page sets --accent; it tints the kicker, the hero, the step numbers and the demo. */
.is-studio .topic .section-kicker::before { background: var(--accent); }
.topic h1, .topic h2, .topic h3 { margin: 0; font-weight: 400; }
.topic h2 span, .topic h1 span { color: #7f858d; }
.topic-hero { padding: clamp(104px, 12vw, 156px) 0 clamp(50px, 7vw, 96px); }
.topic-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: clamp(26px, 4vw, 48px); font-size: 14.5px; }
.topic .topic-crumbs a { color: #a3a7af; text-decoration: none; transition: color 0.2s ease; }
.topic .topic-crumbs a:hover, .topic .topic-crumbs a:focus-visible { color: #fff; }
.topic .topic-crumbs a.topic-depth { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid #a8c6d640; background: #0f1e2999; color: var(--ice); font: 400 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.topic-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(30px, 5vw, 76px); }
.topic-hero-copy { display: grid; justify-items: start; gap: 22px; }
.is-studio .topic-hero-copy h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.05em; }
.topic-hero-copy p { max-width: 520px; margin: 0; color: #b9bdc6; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; }

.topic-stack { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 40px); margin: 0; padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: radial-gradient(90% 80% at 20% 0%, color-mix(in srgb, var(--accent) 22%, #23272b) 0%, #131517 55%, #0b0c0d 100%); border: 1px solid color-mix(in srgb, var(--accent) 26%, #ffffff14); }
.topic .topic-drawing { width: auto; height: 150px; object-fit: contain; }
.topic-glyph { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 34px; background: color-mix(in srgb, var(--accent) 16%, #101214); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.topic-stack-object { display: grid; place-items: end center; }
.topic-stack-sum { display: grid; gap: 16px; min-width: 0; }
.topic-stack-sum small { color: #8d939b; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.topic-stack-bar, .topic-calc-bar { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: #ffffff0f; }
.topic-stack-bar i { width: var(--w); background: var(--accent); transform-origin: left; animation: topic-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d) both; }
.topic-stack-bar i + i, .topic-calc-bar i + i { background: var(--berry); }
.topic-stack dl, .topic-receipt dl, .topic-calc-result dl { display: grid; gap: 0; margin: 0; }
.topic-stack dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid #ffffff12; animation: topic-rise 0.5s ease var(--d) both; }
.topic-stack dt { display: flex; align-items: center; gap: 9px; color: #b9bdc6; font-size: 15px; }
.topic-stack dt i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.topic-stack dl div + div dt i { background: var(--berry); }
.topic-stack dd { flex: none; margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }
.topic-stack dl .is-total { border-top-color: #ffffff3d; }
.topic-stack dl .is-total dt { color: #fff; font-size: 16px; }
.topic-stack dl .is-total dd { font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
@keyframes topic-grow { from { transform: scaleX(0); } }
@keyframes topic-rise { from { opacity: 0; translate: 0 8px; } }

.topic-section { padding: clamp(60px, 8vw, 118px) 0; }
.topic-heading { display: grid; justify-items: center; gap: 18px; max-width: 820px; margin: 0 auto clamp(34px, 4.6vw, 58px); text-align: center; }
.topic-heading.is-left { justify-items: start; margin-inline: 0; text-align: left; }
.is-studio .topic-heading h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -0.045em; }
.topic-heading p, .topic-lead, .topic-note { margin: 0; color: #a3a7af; font-size: 17px; line-height: 1.6; }
.topic-lead { max-width: 640px; margin: clamp(26px, 3.4vw, 42px) auto 0; color: #d0d3d9; font-size: clamp(17px, 1.6vw, 20px); text-align: center; }
.topic-note { max-width: 620px; margin: 22px auto 0; font-size: 14.5px; text-align: center; }

.topic-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.topic-receipt { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: #0d0e10; border: 1px solid #ffffff14; }
.topic-receipt header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.is-studio .topic-receipt h3 { font-size: 19px; letter-spacing: -0.02em; }
.topic-receipt em { padding: 5px 11px; border-radius: 999px; border: 1px solid #ffffff24; color: #b9bdc6; font-size: 12.5px; font-style: normal; }
.topic-receipt dl div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #ffffff12; color: #b9bdc6; font-size: 16px; }
.topic-receipt dd { margin: 0; color: #e9ebef; font-variant-numeric: tabular-nums; }
.topic-receipt p { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 14px; margin: 0; padding-top: 16px; border-top: 1px solid #ffffff3d; }
.topic-receipt p span { color: #fff; font-size: 16px; }
.topic-receipt p strong { grid-row: span 2; font-size: clamp(34px, 4vw, 52px); font-weight: 300; letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.topic-receipt p small { color: #8d939b; font-size: 14px; }
.topic-receipt.is-naive { opacity: 0.72; }
.topic-receipt.is-naive p strong { color: #9aa0a8; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: #f2557acc; }
.topic-receipt.is-real { border-color: #6fd39a66; background: radial-gradient(90% 70% at 50% 0%, #6fd39a1c, #0d0e10 70%); }
.topic-receipt.is-real em { border-color: #6fd39a80; color: #6fd39a; }

.topic-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.topic-steps li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 24px 22px 26px; border-radius: 22px; background: #0d0e10; border: 1px solid #ffffff14; }
.topic-when { display: flex; align-items: center; gap: 10px; color: #8d939b; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.topic-when b { padding: 4px 8px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font: 500 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; }
.is-studio .topic-steps h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.topic-steps p { margin: 0; color: #a3a7af; font-size: 15px; line-height: 1.55; }
.topic-steps strong { align-self: end; margin-top: 8px; padding-top: 14px; border-top: 1px solid #ffffff14; color: #fff; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.topic-steps li:last-child { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.topic-steps li:last-child strong { color: var(--accent); }

.topic-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.topic-calc-form, .topic-calc-result { padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: #0d0e10; border: 1px solid #ffffff14; }
.topic-calc-form { display: grid; gap: 14px; align-content: start; }
.topic-calc-form label { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 14px; color: #b9bdc6; font-size: 15.5px; }
.topic-input { display: flex; align-items: center; gap: 4px; padding: 0 12px; border-radius: 12px; background: #17191c; border: 1px solid #ffffff1f; transition: border-color 0.2s ease; }
.topic-input:focus-within { border-color: var(--ice); }
.topic-input i { color: #8d939b; font-style: normal; }
.topic .topic-input input { width: 100%; min-width: 0; padding: 11px 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; appearance: textfield; -moz-appearance: textfield; }
.topic-input input::-webkit-outer-spin-button, .topic-input input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.topic-calc-result { display: grid; gap: 20px; align-content: start; background: radial-gradient(90% 70% at 50% 0%, #a8c6d61a, #0d0e10 70%); border-color: #a8c6d64d; }
.topic-calc-main { display: grid; gap: 6px; }
.topic-calc-main small { color: #8d939b; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.topic-calc-main strong { font-size: clamp(46px, 6vw, 76px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.topic-calc-main span { color: #f2a0b6; font-size: 15px; }
.topic-calc-bar i { background: var(--ice); transition: width 0.35s ease; }
.topic-calc-result dl div { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid #ffffff14; color: #b9bdc6; font-size: 16px; }
.topic-calc-result dd { margin: 0; color: #fff; font-size: 18px; font-variant-numeric: tabular-nums; }
.topic-calc-result dl .is-muted, .topic-calc-result dl .is-muted dd { color: #7f858d; }

.topic-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic-ways article { display: grid; align-content: start; gap: 12px; padding: 26px 24px 28px; border-radius: 22px; background: #0d0e10; border: 1px solid #ffffff14; }
.topic-ways span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ffffff2e; color: #b9bdc6; font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.is-studio .topic-ways h3 { font-size: 22px; letter-spacing: -0.02em; }
.topic-ways p { margin: 0; color: #d0d3d9; font-size: 16px; line-height: 1.5; }
.topic-ways small { color: #8d939b; font-size: 14.5px; line-height: 1.5; }

.topic-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; gap: clamp(24px, 4vw, 60px); }
.topic-split .topic-heading { margin-bottom: 26px; }
.topic-split > div > p { max-width: 480px; margin: 22px 0 0; color: #a3a7af; font-size: 16px; line-height: 1.6; }
.topic-kinds, .topic-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.topic-kinds li { padding: 10px 17px; border-radius: 999px; border: 1px solid #ffffff26; background: #ffffff08; color: #e1e6ea; font-size: 15px; }
.topic-late { display: grid; gap: 14px; padding: clamp(24px, 3vw, 34px); border-radius: 24px; background: color-mix(in srgb, var(--accent) 9%, #0b0c0d); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); color: var(--accent); }
.is-studio .topic-late h3 { color: #fff; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; }
.topic-late p { margin: 0; color: #c2ccd3; font-size: 16px; line-height: 1.6; }

.topic-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(24px, 4vw, 60px); }
.topic-near { text-align: center; }
.topic-chips { justify-content: center; max-width: 860px; margin: 0 auto 30px; }
.topic .topic-chips a { display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid #ffffff26; background: #ffffff08; color: #e1e6ea; font-size: 14px; text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease; }
.topic .topic-chips a:hover, .topic .topic-chips a:focus-visible { border-color: var(--ice); background: #12202a; color: #fff; }

/* The hands-on demo on each page, drawn by assets/topic.js: controls on the left, what happens on the right. */
.topic-play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.play-card { display: grid; align-content: start; gap: 18px; min-width: 0; padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: #0d0e10; border: 1px solid #ffffff14; }
.play-result { background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 13%, transparent), #0d0e10 70%); border-color: color-mix(in srgb, var(--accent) 36%, transparent); }
.play-ask { margin: 0; color: #e1e6ea; font-size: 17px; line-height: 1.45; }
.play-hint, .play-say { margin: 0; color: #a3a7af; font-size: 14.5px; line-height: 1.55; }
.play-say { padding-top: 16px; border-top: 1px solid #ffffff14; color: #d0d3d9; font-size: 15.5px; }
.play-main { display: grid; gap: 6px; }
.play-main small { color: #8d939b; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.play-main strong { font-size: clamp(40px, 5.2vw, 66px); font-weight: 300; letter-spacing: -0.05em; line-height: 1.02; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.play-main strong.is-small { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; }
.play-main span { color: var(--accent); font-size: 15px; }
.play-bar { display: flex; gap: 2px; height: 10px; overflow: hidden; border-radius: 999px; background: #ffffff0f; }
.play-bar i { background: var(--accent); transition: width 0.3s ease; }
.play-bar i.is-warn { background: var(--berry); }
.play-rows { display: grid; margin: 0; }
.play-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-top: 1px solid #ffffff14; color: #b9bdc6; font-size: 15.5px; }
.play-rows dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.play-rows .is-warn dd { color: #f2a0b6; }
.play-rows .is-good dd { color: #6fd39a; }
.play-rows .is-muted, .play-rows .is-muted dd { color: #71767e; }
.play-range { display: grid; gap: 12px; color: #b9bdc6; font-size: 15px; }
.play-range > span { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.play-range b { color: #fff; font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.topic .play-range input { width: 100%; height: 26px; margin: 0; padding: 0; border: 0; background: none; accent-color: var(--accent); cursor: pointer; }
.play-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.topic .play-button { padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; background: #e2e7eb; color: #141519; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease; }
.topic .play-button:hover:not(:disabled) { background: #fff; }
.topic .play-button.is-quiet { background: none; border-color: #ffffff38; color: #e4e6ea; }
.topic .play-button.is-quiet:hover:not(:disabled) { background: #ffffff14; }
.topic .play-button:disabled { opacity: 0.38; cursor: default; }
.topic .play-link { padding: 12px 6px; border: 0; background: none; color: #8d939b; font: inherit; font-size: 14px; cursor: pointer; }
.topic .play-link:hover { color: #fff; }
.topic .play-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid #ffffff2e; background: #ffffff0a; color: #e1e6ea; font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.topic .play-chip:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.topic .play-chip.is-good { border-color: #6fd39a80; color: #6fd39a; }
.play-tabs, .play-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.play-prompts { display: grid; }
.topic .play-tabs button { padding: 10px 16px; border-radius: 12px; border: 1px solid #ffffff24; background: #ffffff08; color: #b9bdc6; font: inherit; font-size: 15px; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.topic .play-tabs button.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: #fff; }
.play-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(15px, 1fr)); gap: 6px; padding: 16px; border-radius: 16px; background: #131517; border: 1px solid #ffffff12; }
.play-shelf i { aspect-ratio: 1 / 2.4; border-radius: 4px 4px 3px 3px; background: #2a2e33; transition: background 0.2s ease, transform 0.2s ease; }
.play-shelf i.is-on { background: var(--accent); transform: translateY(-2px); }
.play-shelf.is-camera { position: relative; padding: 26px 22px; border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.play-shelf.is-camera::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 1px solid var(--berry); box-shadow: 0 0 10px var(--berry); }
.play-table, .play-review { display: grid; }
.play-table > div, .play-review > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #ffffff14; }
.play-table span, .play-review span { display: grid; gap: 3px; min-width: 0; }
.play-table b, .play-review b { color: #fff; font-size: 15.5px; font-weight: 500; }
.play-table small, .play-review small { color: #8d939b; font-size: 13.5px; line-height: 1.4; }
.topic .play-table input, .topic .play-text, .topic .play-select { width: 92px; padding: 10px 12px; border-radius: 12px; border: 1px solid #ffffff24; background: #17191c; color: #fff; font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; outline: 0; }
.topic .play-text, .topic .play-select { width: 100%; text-align: left; }
.topic .play-table input:focus, .topic .play-text:focus, .topic .play-select:focus { border-color: var(--accent); }
.play-field { display: grid; gap: 8px; color: #b9bdc6; font-size: 14.5px; }
.play-review > div.is-ready small { color: #6fd39a; }
.play-review > div.is-part small { color: #f0c36b; }
.play-review em { flex: none; color: #b9bdc6; font-size: 13.5px; font-style: normal; }
.play-review > div.is-ready em { color: #6fd39a; }
.play-log { display: grid; gap: 0; max-height: 260px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.play-log li { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid #ffffff14; animation: topic-rise 0.4s ease both; }
.play-log b { color: #fff; font: 500 14.5px/1.3 ui-monospace, "SF Mono", Menlo, monospace; }
.play-log span { color: #8d939b; font-size: 13.5px; }
.play-thread { display: grid; gap: 14px; }
.play-you { justify-self: end; max-width: 88%; margin: 0; padding: 11px 16px; border-radius: 18px 18px 4px 18px; background: color-mix(in srgb, var(--accent) 24%, #17191c); color: #fff; font-size: 15.5px; }
.play-typing { margin: 0; color: #8d939b; font-size: 26px; letter-spacing: 0.2em; line-height: 0.6; animation: topic-blink 1s ease-in-out infinite; }
.play-answer { display: grid; gap: 14px; }
.play-answer > p { margin: 0; color: #e1e6ea; font-size: 15.5px; line-height: 1.55; }
.play-draft { display: grid; gap: 5px; padding: 16px 18px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: #131517; }
.play-draft small { color: var(--accent); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.play-draft b { color: #fff; font-size: 16px; font-weight: 500; }
.play-draft span { color: #b9bdc6; font-size: 14.5px; }
.play-draft.is-done { border-style: solid; border-color: #6fd39a80; }
.play-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.topic .play-wall button { padding: 18px 8px; border-radius: 14px; border: 1px solid #ffffff1f; background: #131517; color: #b9bdc6; font: 500 14px/1 ui-monospace, "SF Mono", Menlo, monospace; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.topic .play-wall button.is-warn { border-color: #f2557a66; color: #f2a0b6; }
.topic .play-wall button.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: #fff; }
.topic .play-wall button.is-held { border-style: dashed; opacity: 0.6; }
.play-swatches { display: flex; gap: 10px; }
.topic .play-swatches button { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid transparent; outline: 1px solid #ffffff2e; cursor: pointer; }
.topic .play-swatches button.is-on { border-color: #0d0e10; outline: 2px solid #fff; }
.play-result.is-paper { align-content: center; background: #17191c; }
.play-paper { --ink: #1f7a45; display: grid; gap: 14px; padding: 24px; border-radius: 6px; background: #f8f5ee; color: #17130d; box-shadow: 0 18px 40px -18px #000; rotate: -1deg; }
.play-paper header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.play-paper header i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 18px; font-style: normal; font-weight: 600; }
.play-paper header b { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.play-paper small { color: #6a6256; font: 400 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.play-paper .play-rows div { border-top-color: #17130d1f; color: #4a4338; }
.play-paper .play-rows dd { color: #17130d; }
.play-paper p { margin: 0; color: var(--ink); font-size: 14.5px; }
.play-track { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.play-track li { position: relative; padding: 11px 0 11px 40px; color: #71767e; font-size: 15.5px; counter-increment: stage; transition: color 0.2s ease; }
.play-track li::before { content: counter(stage); position: absolute; left: 0; top: 7px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ffffff2e; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.play-track li + li::after { content: ""; position: absolute; left: 13px; top: -8px; height: 15px; border-left: 1px solid #ffffff2e; }
.play-track li.is-done { color: #b9bdc6; }
.play-track li.is-done::before { border-color: #6fd39a80; color: #6fd39a; }
.play-track li.is-on { color: #fff; }
.play-track li.is-on::before { border-color: var(--accent); background: var(--accent); color: #0b0c0d; }
.play-code { margin: 0; padding: 14px 16px; border-radius: 12px; background: #07090b; border: 1px solid #ffffff14; color: #b7e3c6; font: 400 12.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; white-space: pre; }
.play-switches { display: grid; gap: 10px; }
.play-switch { display: flex; align-items: center; gap: 12px; color: #e1e6ea; font-size: 15.5px; cursor: pointer; }
.topic .play-switch input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
@keyframes topic-blink { 50% { opacity: 0.3; } }

@media (max-width: 900px) {
  .topic-hero-grid, .topic-calc, .topic-play, .topic-split, .topic-faq { grid-template-columns: minmax(0, 1fr); }
  .topic-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .topic-compare, .topic-steps { grid-template-columns: minmax(0, 1fr); }
  .topic-stack { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .topic-stack-sum { width: 100%; }
  .topic .topic-stack-object img { height: 150px; }
  .topic-calc-form label { grid-template-columns: minmax(0, 1fr) 120px; font-size: 14.5px; }
  .topic-heading, .topic-heading.is-left { justify-items: center; margin-inline: auto; text-align: center; }
  .topic-kinds { justify-content: center; }
  .topic-split > div > p { margin-inline: auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-stack-bar i, .topic-stack dl div { animation: none; }
}
