/* The Next Row website. Brand pack v1.0 tokens. */
/* Layout idea: one bold cobalt panel holding a live sheet; everything else quiet paper, ink and rows. */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #22283A; --paper: #FAF7EF; --cobalt: #365CFF; --butter: #FFD978;
  --bg: var(--paper); --surface: #FFFFFF; --surface-2: #F3EFE4; --text: var(--ink); --muted: #5C6475; --border: #7D8598; --rule: #E4DFD2;
  --action: var(--cobalt); --action-hover: #244BDB; --on-action: #FFFFFF; --focus: var(--ink);
  --success: #166449; --success-surface: #E6F4ED; --warning: #815600; --warning-surface: #FFF0C6; --error: #B42318; --error-surface: #FEECEB;
  --panel: var(--cobalt); --on-panel: #FFFFFF; --grid-line: #D9D4C6; --grid-head: #F1EDE2; --target: var(--butter);
  --font: "Manrope", Arial, sans-serif; --mono: "IBM Plex Mono", Consolas, monospace;
  --r-s: 4px; --r-c: 8px; --r-p: 16px; --t-short: 180ms; --t-section: 240ms; --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #22283A; --surface: #30384C; --surface-2: #2A3144; --text: #FAF7EF; --muted: #C5CBDA; --border: #8F97AA; --rule: #3E465B;
    --action: #AFC2FF; --action-hover: #C8D4FF; --on-action: #22283A; --focus: #FFD978;
    --success: #7FD6AE; --success-surface: #20402F; --warning: #FFD978; --warning-surface: #4A3D18; --error: #FF9C93; --error-surface: #4A2622;
    --panel: #2B3A8C; --grid-line: #475069; --grid-head: #2A3144; --target: rgba(255, 217, 120, 0.34); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #22283A; --surface: #30384C; --surface-2: #2A3144; --text: #FAF7EF; --muted: #C5CBDA; --border: #8F97AA; --rule: #3E465B;
  --action: #AFC2FF; --action-hover: #C8D4FF; --on-action: #22283A; --focus: #FFD978;
  --success: #7FD6AE; --success-surface: #20402F; --warning: #FFD978; --warning-surface: #4A3D18; --error: #FF9C93; --error-surface: #4A2622;
  --panel: #2B3A8C; --grid-line: #475069; --grid-head: #2A3144; --target: rgba(255, 217, 120, 0.34); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--action); text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
code, .mono { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0; font-size: 0.92em; }
mark { background: var(--butter); color: var(--ink); padding: 0 0.12em; border-radius: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-c); z-index: 10; }
.skip:focus { top: 12px; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: block; height: 36px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--r-c); }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.nav .btn { margin-left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r-c); border: 1px solid transparent; background: var(--action); color: var(--on-action); font: 600 16px/1.25 var(--font); text-decoration: none; cursor: pointer; transition: background-color var(--t-short) var(--ease); white-space: nowrap; }
.btn:hover { background: var(--action-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* type */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag { background: var(--butter); color: var(--ink); padding: 3px 8px; border-radius: var(--r-s); letter-spacing: 0.06em; }
.display { font-size: clamp(44px, 6.2vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 52ch; }
.section { padding: 80px 0; border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; max-width: 22ch; }
.section .sub { color: var(--muted); max-width: 60ch; margin-top: 12px; font-size: 18px; }
.prose { max-width: 68ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 16px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }

/* hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .display { margin: 16px 0 20px; }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 52ch; }

/* calls to action */
.start-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.cta-band .start-actions { margin-top: 0; }
.cta-band .btn-secondary { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.78); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.tracks .feature .start-actions { margin-top: 4px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.site-foot .linkish { color: var(--muted); }
.linkish.inline { color: var(--action); }

/* the cobalt panel and live sheet */
.panel-cobalt { background: var(--panel); color: var(--on-panel); border-radius: 20px; padding: 28px; display: grid; gap: 16px; }
.panel-cobalt .eyebrow { color: rgba(255, 255, 255, 0.86); }
.panel-cobalt .ptitle { font-size: 22px; font-weight: 700; color: #FFFFFF; }
.sheetcard { background: var(--surface); color: var(--text); border-radius: var(--r-p); padding: 16px; display: grid; gap: 12px; box-shadow: 0 1px 0 rgba(34, 40, 58, 0.08); }
.sheetcard .task { font-weight: 600; }
.mini { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; font-variant-numeric: tabular-nums; font-size: 15px; border: 1px solid var(--grid-line); border-radius: var(--r-c); overflow: hidden; }
.mini th, .mini td { border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); height: 34px; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini tr > :last-child { border-right: 0; }
.mini tbody tr:last-child > * { border-bottom: 0; }
.mini thead th { background: var(--grid-head); color: var(--muted); font: 600 12px/34px var(--mono); text-align: center; padding: 0; }
.mini th.rh { background: var(--grid-head); color: var(--muted); font: 500 12px/1 var(--mono); width: 40px; text-align: center; padding: 0; }
.mini td.num { text-align: right; }
.mini td.err { color: var(--error); font-weight: 600; text-align: center; }
.mini td.target { background: var(--target); color: var(--text); font-weight: 600; }
.mini td.ok { box-shadow: inset 0 -3px 0 var(--success); }
.mini td.bad { box-shadow: inset 0 -3px 0 var(--error); }
.fx { display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--grid-line); border-radius: var(--r-c); overflow: hidden; background: var(--surface); }
.fx label { display: grid; place-items: center; padding: 0 12px; font: 600 13px/1 var(--mono); background: var(--grid-head); border-right: 1px solid var(--grid-line); color: var(--text); }
.fx input { border: 0; min-height: 46px; padding: 8px 12px; font: 500 16px/1 var(--mono); font-variant-ligatures: none; background: transparent; color: var(--text); outline: none; width: 100%; }
.fx:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.ex-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.status { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-c); padding: 12px 14px; font-size: 15px; }
.status .icon { margin-top: 2px; }
.status.ok { background: var(--success-surface); color: var(--success); }
.status.bad { background: var(--error-surface); color: var(--error); }
.status.note { background: var(--warning-surface); color: var(--warning); }
.hintlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hintlist li { border-left: 3px solid var(--butter); padding: 2px 0 2px 10px; font-size: 15px; }
.rowlog { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rowlog li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.rowlog li b { font: 500 12px/1 var(--mono); opacity: 0.8; }
.rowlog li.fresh { animation: rowin var(--t-section) var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* feedback examples */
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.example { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-p); padding: 20px; display: grid; gap: 12px; align-content: start; }
.example .try { font: 500 16px/1.4 var(--mono); background: var(--surface-2); border-radius: var(--r-c); padding: 10px 12px; overflow-x: auto; }
.example .what { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; counter-reset: step; }
.step { border-top: 3px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; }
.step .n { font: 600 13px/1 var(--mono); color: var(--muted); }
.step h3 { font-size: 22px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-p); padding: 20px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; }
.card .meta { font-size: 14px; font-weight: 600; color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.free { background: var(--success-surface); color: var(--success); }
.pill.dev { background: var(--warning-surface); color: var(--warning); }
.pill.soon { background: var(--surface-2); color: var(--muted); }
.fnlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fnlinks a { font: 600 15px/1 var(--mono); text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-c); padding: 12px 14px; }
.fnlinks a:hover { border-color: var(--action); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-p); padding: 24px; display: grid; gap: 14px; align-content: start; }
.plan.main { border: 2px solid var(--action); }
.plan h3 { font-size: 22px; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 15px; }
.plan li .icon { width: 18px; height: 18px; color: var(--success); margin-top: 3px; }
.callout { background: var(--butter); color: var(--ink); border-radius: var(--r-p); padding: 20px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 24px; }
.callout p { font-weight: 600; }
.callout a.btn { background: var(--ink); color: #FFFFFF; }

/* faq */
.faq { margin-top: 32px; border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; max-width: 68ch; }

/* function page */
.article-head { padding: 48px 0 24px; }
.article-head .display { font-size: clamp(40px, 5vw, 64px); margin: 14px 0 16px; }
.syntax { font: 500 17px/1.5 var(--mono); background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--action); border-radius: var(--r-c); padding: 14px 16px; overflow-x: auto; margin-top: 16px; }
.args { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.args th, .args td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.args th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.args td:first-child { font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.practice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.practice .sheetcard { border: 1px solid var(--rule); }
.mistakes { display: grid; gap: 12px; margin-top: 16px; }
.mistake { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-c); padding: 16px; display: grid; gap: 8px; }
.mistake code.bad { color: var(--error); }
.breadcrumbs { font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.cta-band { background: var(--panel); color: #FFFFFF; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta-band h2 { color: #FFFFFF; font-size: clamp(28px, 3vw, 40px); }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-top: 10px; }
.cta-band .btn { background: #FFFFFF; color: var(--ink); }
.cta-band .btn:hover { background: var(--paper); }
.cta-band .fine { color: rgba(255, 255, 255, 0.86); font-size: 14px; }

/* modules list on the course page */
.modlist { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--rule); }
.modlist > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.modlist .num { font: 600 14px/1.6 var(--mono); color: var(--muted); }
.modlist h3 { font-size: 20px; }
.modlist p { color: var(--muted); margin-top: 4px; }
.modlist ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.modlist ul li { background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.fact { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-c); padding: 16px; }
.fact b { display: block; font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 14px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 80px; padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot .logo { height: 30px; margin-bottom: 10px; }

@media (max-width: 980px) {
  .hero .wrap, .cta-band { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .examples, .practice, .cards { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { padding: 28px 20px; }
  .panel-cobalt { padding: 18px; }
  .modlist > li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- components added for the built pages ---- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-foot .logo { height: 32px; }
.nav .long { white-space: pre; }
.fine a { color: inherit; }
.wrap.narrow { max-width: 880px; }
.wrap.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.section.first { border-top: 0; padding-top: 16px; }
.gap { margin-top: 48px; }
.sub code, .prose code { background: var(--surface-2); border-radius: var(--r-s); padding: 2px 6px; }
.ex-actions.top { margin-top: 28px; }

/* practice card */
.demo { min-width: 0; }
.demo-head { display: grid; gap: 4px; }
.demo-head h3.task { font-size: 18px; }
.demo-head p { margin: 0; }
.fill-note { font-size: 14px; color: var(--muted); }
.sheetwrap { overflow-x: auto; border-radius: var(--r-c); position: relative; }
.sheetwrap:focus-visible { outline-offset: 2px; }
.mini td.corner { background: var(--grid-head); }
.mini td.target .v:empty::before { content: "\00a0"; }
.status:empty { padding: 0; background: none; }
.status p { margin: 0; }
.status .xp { white-space: nowrap; }
.next { font-size: 15px; }
.demo:not(.ready) .ex-actions { opacity: 0.7; }
.panel-cobalt .next a { color: var(--action); }
.progress { display: grid; gap: 8px; }
.rowlog li.empty { display: block; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.55); color: rgba(255, 255, 255, 0.92); }
.rowlog li span:last-child { font-weight: 700; white-space: nowrap; }

/* courses */
.tracks { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 16px; margin-top: 40px; }
.tracks .feature { grid-row: span 2; gap: 14px; }
.tracks .feature h3 { font-size: 28px; }
.tracks .feature p { color: var(--text); font-size: 16px; }
.tracks .feature .btn { justify-self: start; margin-top: 4px; }
.modmini { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 15px; columns: 2; }
.modmini li { break-inside: avoid; }
.cards.fn { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.cards.fn h3 { font-family: var(--mono); font-size: 22px; letter-spacing: 0; }
.cards.fn a { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

/* function links */
.fnlinks a { display: grid; gap: 6px; min-width: 200px; flex: 1 1 200px; padding: 16px; line-height: 1.3; }
.fnlinks a .mono { font-weight: 600; font-size: 17px; }
.fnlinks a small { font: 400 14px/1.45 var(--font); color: var(--muted); }

/* pricing */
.plans.compact { margin-top: 32px; }
.plans.compact .plan { gap: 8px; }
.plans.compact .price { font-size: 32px; }
.plan h2 { font-size: 24px; }
.plan .btn { justify-self: start; margin-top: 8px; }
.plan li .icon { color: var(--success); }
.tablewrap { overflow-x: auto; margin-top: 24px; position: relative; }
.tablewrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.compare tbody th { font-weight: 600; }
.compare td .icon { color: var(--success); }
.compare td.no .icon { color: var(--muted); }

/* function page */
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; max-width: 68ch; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-c); padding: 12px 14px; font-size: 15px; }
.note .icon { color: var(--action); margin-top: 2px; }
code.syntax { display: block; }
.practice { grid-template-columns: 1fr; }
.mistake h3 { font-size: 18px; }
.mistake .try, .example .try { display: block; }
code.try.bad { color: var(--error); }
.mistake > p { color: var(--muted); font-size: 15px; }
.breadcrumbs { margin-bottom: 16px; }
.article-head .lede { margin-top: 0; }

@media (max-width: 980px) {
  .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracks .feature { grid-column: 1 / -1; grid-row: auto; }
  .cards.fn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap.two { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .tracks, .cards.fn { grid-template-columns: 1fr; }
  .modmini { columns: 1; }
  .wrap { padding: 0 16px; }
  .site-head .wrap { gap: 12px; }
  .site-head .logo { height: 31px; }
}
@media (max-width: 420px) {
  .nav .long { display: none; }
}

/* fixes after the first browser pass */
.nav a.btn { color: var(--on-action); gap: 0; }
.nav a.btn:hover { background: var(--action-hover); }
.panel-cobalt .sheetcard .eyebrow { color: var(--muted); }
.rowlog li { grid-template-columns: auto minmax(0, 1fr) auto; }
.rowlog li b { white-space: nowrap; }
.section .demo.solo { max-width: 720px; margin-top: 24px; }
.scroll-note { font-size: 13px; color: var(--muted); margin-top: -4px; }

/* contrast: text on cobalt is pure white (5.1:1); rows on the progress sheet sit on an ink tint */
.panel-cobalt .eyebrow, .cta-band p, .cta-band .fine { color: #FFFFFF; }
.rowlog li { background: rgba(34, 40, 58, 0.22); }
.rowlog li.empty { color: #FFFFFF; }
.cards.fn h2 { font-family: var(--mono); font-size: 22px; letter-spacing: 0; }

/* Cookie choices banner and panel (site/consent.js). Uses the brand tokens both stylesheets define. */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.cc-box { pointer-events: auto; position: relative; width: 100%; max-width: 640px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-p); box-shadow: 0 12px 32px rgba(34, 40, 58, 0.18); padding: 20px 22px; font-family: var(--font); font-size: 15px; line-height: 1.5; }
.cc-box h2 { font-size: 18px; line-height: 1.3; margin: 0 32px 6px 0; font-weight: 700; color: var(--text); }
.cc-box h2:focus { outline: none; }
.cc-box p { margin: 0; color: var(--text); }
.cc-box a { color: var(--action); text-decoration: underline; text-underline-offset: 0.2em; }
.cc-opts { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cc-opts[hidden] { display: none; }
.cc-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.cc-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.cc-opt label { display: grid; gap: 2px; cursor: pointer; }
.cc-opt label span { color: var(--muted); font-size: 14px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r-c); border: 1px solid transparent; background: var(--action); color: var(--on-action); font: 600 15px/1.25 var(--font); cursor: pointer; }
.cc-btn:hover { background: var(--action-hover); }
.cc-btn.cc-alt { background: transparent; color: var(--text); border-color: var(--border); }
.cc-btn.cc-alt:hover { background: var(--surface-2); }
.cc-btn:focus-visible, .cc-close:focus-visible, .cc-opt input:focus-visible, .cc-box a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cc-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: var(--r-c); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.cc-close:hover { background: var(--surface-2); }
@media (max-width: 480px) { .cc { left: 8px; right: 8px; bottom: 8px; } .cc-box { padding: 16px; } .cc-btn { flex: 1 1 auto; } }
@media print { .cc { display: none; } }

/* column widths for the practice sheets */
.cw-40 { width: 40px; }
.cw-90 { width: 90px; }
.cw-92 { width: 92px; }
.cw-110 { width: 110px; }
.cw-120 { width: 120px; }
.cw-140 { width: 140px; }
