:root {
  color-scheme: dark;
  --bg: #0c1012;
  --surface: #141b1f;
  --raised: #1b2429;
  --text: #f1eee7;
  --muted: #b0b9bb;
  --line: #344047;
  --accent: #ff615b;
  --gold: #e3b879;
  --green: #a8d9b4;
  --layout-max: 90rem;
  --layout-gap: 1.5rem;
  --article-left-gutter-width: 12.5rem;
  --article-right-gutter-width: 17rem;
  --header-height: 4.5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 Arial, Helvetica, sans-serif; text-rendering: optimizeLegibility; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
a { color: var(--gold); text-underline-offset: .25em; }
a:hover { color: var(--text); }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
button:disabled { opacity: .65; cursor: wait; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1, h2 { font-weight: 900; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .75rem; }
strong { color: var(--text); }
.container, .page-container { width: min(calc(100% - 2rem), var(--layout-max)); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--gold); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(12,16,18,.98); }
.nav-shell { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { letter-spacing: .08em; font-size: .85rem; }
.brand small { color: var(--accent); letter-spacing: .18em; font: .58rem/1.8 ui-monospace, monospace; }
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav a { color: var(--muted); text-decoration: none; padding: .6rem .8rem; font-size: .8rem; font-weight: 700; border: 1px solid transparent; border-radius: .25rem; }
.primary-nav a:hover, .primary-nav a[aria-current=page] { color: var(--text); border-color: var(--line); background: var(--surface); }
.nav-action { margin-left: 1rem; }
.primary-nav a.nav-action { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.primary-nav a.nav-action:hover { color: var(--bg); background: #ff8b87; }
.menu-toggle { display: none; min-height: 44px; border: 1px solid var(--line); border-radius: .25rem; background: var(--surface); color: var(--text); padding: .5rem .8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; min-height: 46px; padding: .7rem 1rem; border: 1px solid var(--accent); border-radius: .25rem; background: var(--accent); color: var(--bg); font-size: .85rem; font-weight: 800; line-height: 1.4; text-decoration: none; }
.button:hover { background: #ff8b87; border-color: #ff8b87; color: var(--bg); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--gold); background: var(--raised); }
.kicker, .eyebrow { display: block; color: var(--accent); font: 700 .68rem/1.6 ui-monospace, SFMono-Regular, monospace; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: var(--gold); }
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(115deg, transparent 35%, rgba(122,36,32,.12)); }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: 4rem; align-items: center; padding-block: 4.5rem; }
.hero h1 { margin: 1rem 0 1.3rem; font-size: clamp(3rem, 5.5vw, 5.6rem); line-height: .96; letter-spacing: -.06em; text-transform: uppercase; }
.hero h1 span { color: var(--accent); display: block; }
.hero-lead { max-width: 35rem; font-size: 1.05rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; font-size: .85rem; }
.source-note { font: .7rem/1.7 ui-monospace, monospace; color: var(--muted); margin-top: 1.7rem; }
.launch-desk { border: 1px solid var(--line); background: var(--surface); border-radius: .35rem; overflow: hidden; }
.desk-heading { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; font: .65rem/1.5 ui-monospace, monospace; color: var(--muted); }
.desk-heading span:first-child { color: var(--accent); }
.desk-body { padding: 1.5rem; }
.desk-body h2 { font-size: 1.7rem; }
.file-options { border: 0; padding: 0; margin: 1.5rem 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.file-options legend { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.file-option { position: relative; display: block; border: 1px solid var(--line); padding: 1rem; border-radius: .25rem; cursor: pointer; }
.file-option:has(input:checked) { border-color: var(--accent); background: rgba(255,97,91,.055); }
.file-option input { accent-color: var(--accent); margin: 0 .5rem 0 0; width: 16px; height: 16px; vertical-align: middle; }
.file-option strong { font-size: 1.1rem; vertical-align: middle; }
.file-option small { display: block; margin-top: .6rem; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.launch-description { min-height: 3.4em; font-size: .83rem; }
.launch-button { width: 100%; }
.host-note { margin: .85rem 0 0; font-size: .72rem; line-height: 1.6; }
.status-line { display: flex; align-items: center; gap: .5rem; }
.status-line::before { content: ''; height: 6px; width: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.signal-strip { border-bottom: 1px solid var(--line); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-grid div { padding: 1.3rem 1.5rem; border-left: 1px solid var(--line); }
.signal-grid div:first-child { padding-left: 0; border: 0; }
.signal-grid strong { display: block; color: var(--gold); font: 700 1rem/1.5 ui-monospace, monospace; }
.signal-grid span { font-size: .75rem; color: var(--muted); }
.section { padding-block: 4rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.section-heading h2 { margin: .5rem 0 0; }
.section-heading > p { max-width: 28rem; font-size: .9rem; margin-bottom: 0; }
.check-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.check-copy h2 { margin-top: .7rem; }
.check-copy p { max-width: 34rem; }
.check-copy .button { margin-top: .4rem; }
.check-output { border: 1px solid var(--line); padding: 1.5rem; background: var(--surface); border-radius: .3rem; }
.check-output strong { font-size: 1.2rem; display: block; line-height: 1.4; }
.check-output p { margin: .85rem 0 0; font-size: .88rem; }
.check-output .technical-note { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .75rem; }
.check-output[data-state=ready] { border-color: var(--green); }
.check-output[data-state=ready] strong { color: var(--green); }
.check-output[data-state=unavailable] { border-color: var(--gold); }
.band { background: #10171a; border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps article { background: var(--surface); padding: 1.5rem; }
.step-number { color: var(--accent); font: .75rem ui-monospace, monospace; }
.steps h3 { margin: 1rem 0 .6rem; }
.steps p { font-size: .83rem; margin-bottom: 0; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.task-link { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); padding: 1.5rem; color: var(--text); text-decoration: none; border-radius: .3rem; }
.task-link:hover { border-color: var(--accent); background: var(--raised); }
.task-link .eyebrow { color: var(--accent); margin-bottom: 1.2rem; }
.task-link h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.task-link p { font-size: .85rem; margin-bottom: 1.5rem; }
.task-link > span:last-child { color: var(--gold); font-size: .76rem; margin-top: auto; }
.notice { border-left: 3px solid var(--gold); background: var(--surface); padding: 1.25rem 1.5rem; margin-block: 1.5rem; }
.notice p:last-child { margin-bottom: 0; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.faq-stack details { border-top: 1px solid var(--line); }
.faq-stack details:last-child { border-bottom: 1px solid var(--line); }
.faq-stack summary { font-weight: 700; padding: 1.2rem 1.5rem 1.2rem 0; font-size: .9rem; }
.faq-stack details p { padding-bottom: 1rem; font-size: .88rem; }
.article-page { padding-block: 2.5rem 4rem; }
.article-center { min-width: 0; max-width: 54rem; margin-inline: auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .75rem; margin-bottom: 2rem; }
.breadcrumbs a { text-decoration: none; }
.article-intro { border-bottom: 1px solid var(--line); padding-bottom: 1.75rem; margin-bottom: 2rem; }
.article-intro h1 { margin: .6rem 0 1rem; }
.article-intro p { font-size: 1rem; margin-bottom: 1rem; }
.reviewed { color: var(--muted); font: .65rem/1.6 ui-monospace, monospace; }
.article-main h2 { font-size: 1.65rem; margin: 2.5rem 0 1rem; }
.article-main h3 { margin: 1.8rem 0 .7rem; }
.article-main p, .article-main li { font-size: .94rem; }
.article-main section:first-child h2 { margin-top: 0; }
.article-main .task-grid { grid-template-columns: 1fr 1fr; }
.article-main .task-link p { font-size: .85rem; }
.article-main .task-link h2 { font-size: 1.3rem; margin-top: 0; }
.article-main .task-link h3 { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: .25rem; }
table { border-collapse: collapse; width: 100%; font-size: .83rem; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: .85rem; vertical-align: top; }
th { background: var(--raised); color: var(--text); font-size: .7rem; letter-spacing: .04em; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
kbd { display: inline-block; min-width: 1.65rem; padding: .1rem .4rem; border: 1px solid #58656c; border-bottom-width: 2px; border-radius: .2rem; background: var(--raised); color: var(--text); font: .8rem/1.6 ui-monospace, monospace; white-space: nowrap; }
.field-label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
input[type=search], select { width: 100%; max-width: 100%; border: 1px solid #58656c; border-radius: .25rem; background: var(--surface); color: var(--text); padding: .7rem .85rem; min-height: 48px; }
.field-help { font-size: .77rem !important; margin: .5rem 0; }
.issue-result { margin-top: 1.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: .3rem; }
.issue-result h2 { margin-top: 0; }
.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.1rem; }
.related a { display: inline-block; margin: .2rem 1.2rem .2rem 0; font-size: .85rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-inner p { font-size: .78rem; max-width: 30rem; margin-top: 1rem; }
.footer-links { display: grid; align-content: start; gap: .6rem; font-size: .8rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-links strong { margin-bottom: .3rem; font-size: .7rem; letter-spacing: .1em; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .67rem; }
.text-button { background: transparent; border: 0; color: var(--gold); padding: .25rem 0; min-height: 44px; font-size: .8rem; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.analytics-panel { position: fixed; inset: auto 1rem 1rem auto; z-index: 50; max-width: 27rem; width: calc(100% - 2rem); background: var(--raised); border: 1px solid var(--line); box-shadow: 0 8px 40px #0008; padding: 1.25rem; border-radius: .3rem; }
.analytics-panel p { font-size: .83rem; }
.analytics-actions { display: flex; gap: .75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1280px) {
  .article-shell { display: grid; grid-template-columns: var(--article-left-gutter-width) minmax(0,1fr) var(--article-right-gutter-width); column-gap: var(--layout-gap); align-items: start; }
  .article-center { grid-column: 2; width: 100%; max-width: none; }
}
@media (max-width: 1000px) {
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
  .nav-action { display: none; }
  .check-layout, .faq-layout { gap: 2rem; }
  .primary-nav a { padding-inline: .6rem; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem; }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { min-height: 44px; }
  .primary-nav .nav-action { display: inline-flex; margin: .5rem 0 0; color: var(--bg); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.75rem; gap: 2rem; }
  .hero h1 { font-size: clamp(3.15rem, 10vw, 5.5rem); }
  .hero-lead { font-size: 1rem; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal-grid div { padding: 1rem; border-top: 1px solid var(--line); }
  .signal-grid div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .signal-grid div:nth-child(-n+2) { border-top: 0; }
  .section { padding-block: 2.75rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .check-layout, .faq-layout { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .article-page { padding-top: 1.5rem; }
}
@media (max-width: 430px) {
  .task-grid, .article-main .task-grid { grid-template-columns: 1fr; }
  .file-option { padding: .75rem; }
  .file-option strong { font-size: .95rem; }
  .desk-body { padding: 1rem; }
  .desk-heading { padding: .85rem 1rem; font-size: .6rem; }
  .steps article { padding: 1rem; }
  .steps h3 { font-size: 1.1rem; }
  .footer-bottom { display: block; }
  th, td { padding: .65rem .5rem; font-size: .75rem; }
  .check-output, .issue-result { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
