:root {
  color-scheme: light;
  --surface: #fff;
  --border: #d8d5cc;
  --border-hover: #bab8af;
  --glow: #fffbee;
  --header-background: rgba(255,255,255,.97);
  --ink: #231f20;
  --brand: #ffcd00;
  --brand-soft: #fff3bd;
  --text: #4b4842;
  --muted: #605d56;
  --line: #dfddd6;
  --soft: #fafaf8;
  --accent: #231f20;
  --accent-hover: #000;
  --link: #765c00;
  --link-hover: #5f4a00;
  --list-bullet: #b8b0a3;
  --list-check: #438466;
  --list-x: #b45d68;
  --step-number: #856000;
  --selection-background: #fff2ac;
  --selection-text: #231f20;
  --header-height: 108px;
  --sidebar-width: 244px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #191919;
  --ink: #f5f2e9;
  --text: #dedbd3;
  --muted: #b6b2a8;
  --line: #42423d;
  --soft: #222220;
  --border: #56564e;
  --border-hover: #77756b;
  --brand-soft: #403719;
  --glow: #302b1a;
  --accent: #f5f2e9;
  --accent-hover: #ffcd00;
  --link: #f2cf55;
  --link-hover: #ffe17d;
  --list-bullet: #9b9387;
  --list-check: #82c7a4;
  --list-x: #e08d98;
  --step-number: #f2cf55;
  --header-background: rgba(25,25,25,.97);
}
[data-theme="dark"] .brand-logo { filter: invert(1); }
[data-theme="dark"] .journey-sheet-icon,
[data-theme="dark"] .guide-symbol,
[data-theme="dark"] .sidebar-link.active .icon { color: #e4c96d; }
[data-theme="dark"] .journey-seal,
[data-theme="dark"] .journey-node-last { background: #403719; color: #e4c96d; border-color: #66572b; }
[data-theme="dark"] .journey-node:not(.journey-node-last) { background: #20382d; color: #98d2b6; border-color: #3e614f; }
[data-theme="dark"] .journey-orbit { border-color: #51482a; }
[data-theme="dark"] .status-submitted { background: #353329; color: #ddd3b6; }
[data-theme="dark"] .status-in-progress { background: #403719; color: #edcf76; }
[data-theme="dark"] .status-complete { background: #20382d; color: #98d2b6; }
[data-theme="dark"] .status-cancelled { background: #412830; color: #efadbd; }
dialog { background: var(--surface); }
.theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; font-size: 15px; line-height: 1.65; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { color: inherit; }
button:disabled { cursor: wait; }
button, a, input, summary, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 2px solid #9d7800; }
[hidden] { display: none !important; }
::selection { background: var(--selection-background); color: var(--selection-text); }
.icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 16px; color: var(--surface); background: var(--accent); border-radius: 6px; }
.skip-link:focus { top: 10px; color: var(--surface); }
.site-header { position: fixed; top: 0; z-index: 20; height: var(--header-height); background: var(--header-background); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); width: 100%; }
.header-main { height: 64px; display: grid; grid-template-columns: 1fr 330px 1fr; align-items: center; gap: 24px; padding: 0 28px; }
.brand-area { display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand-logo { display: block; width: auto; height: 24px; }
.search-trigger { display: flex; align-items: center; gap: 10px; height: 35px; width: 100%; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface); box-shadow: 0 1px 2px #231f2004; font-size: 13px; text-align: left; }
.search-trigger:hover { border-color: var(--border-hover); }
kbd { font-family: inherit; font-size: 11px; line-height: 1.5; border-radius: 3px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); padding: 0 5px; }
.search-trigger kbd { margin-left: auto; }
.search-trigger .icon { width: 15px; height: 15px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; font-size: 13px; }
.auth-link { border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; white-space: nowrap; }
.auth-link:hover { color: var(--ink); text-decoration: underline; }
.auth-status { margin: 16px 28px; font-size: 13px; }
.auth-status:empty { display: none; }
.internal-layout { max-width: 900px; margin: var(--header-height) auto 0; padding: 48px 28px; }
#google-sign-in { margin: 20px 0; min-height: 44px; }
#internal-menu { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.app-link { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 7px 14px; border-radius: 7px; background: var(--brand); color: #231f20; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 4px #231f200d; transition: background .15s, transform .15s; }
.app-link:hover { background: #edbf00; color: #231f20; transform: translateY(-1px); }
.topnav { height: 44px; display: flex; justify-content: space-between; align-items: stretch; padding: 0 28px; }
.topnav > div { display: flex; gap: 27px; }
.topnav-link { position: relative; display: flex; align-items: center; color: var(--text); font-size: 13px; }
.topnav-link.active { color: var(--ink); font-weight: 600; }
.topnav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--brand); }
.nav-context { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.nav-context .icon { width: 14px; height: 14px; }
.icon-button { display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; border-radius: 5px; width: 36px; height: 36px; padding: 0; }
.icon-button:hover { background: var(--line); }
.mobile-menu { display: none; }

/* A quiet editorial landing page with one clear starting point. */
.home-hero { margin-top: var(--header-height); overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 20%,var(--glow),transparent 55%); }
.hero-inner { display: grid; grid-template-columns: minmax(0,1fr) 350px; align-items: center; gap: 68px; max-width: 1152px; padding: 58px 32px 62px; margin: 0 auto; min-height: 360px; }
.hero-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: 1.25px; margin-bottom: 16px; }
.hero-eyebrow > span { width: 7px; height: 7px; border-radius: 2px; background: #ffcd00; }
h1 { color: var(--ink); }
.hero-copy h1 { margin: 0; font-size: 48px; line-height: 1.15; letter-spacing: -1.9px; font-weight: 670; }
.title-period { color: #ffcd00; }
.hero-copy > p { color: var(--muted); font-size: 19px; line-height: 1.6; margin: 20px 0 28px; max-width: 465px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.button-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 29px; min-height: 43px; padding: 10px 17px; background: var(--brand); color: #231f20; border-radius: 7px; font-weight: 550; box-shadow: 0 3px 5px #231f200d; transition: background .15s, transform .15s; }
.button-primary:hover { background: #edbf00; color: #231f20; transform: translateY(-1px); }
.button-primary .icon, .text-link .icon { width: 15px; height: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 500; }
.hero-illustration { position: relative; width: 350px; height: 262px; }
.journey-orbit { position: absolute; border: 1px solid #eee6c7; border-radius: 50%; width: 350px; height: 350px; top: -44px; right: -9px; }
.orbit-two { width: 440px; height: 440px; top: -89px; right: -54px; border-style: dashed; opacity: .65; }
.journey-sheet { position: absolute; inset: 0 18px 11px 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 22px 23px; box-shadow: 0 15px 38px #231f2009,0 2px 5px #231f2006; }
.journey-sheet-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 19px; margin-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 620; }
.journey-sheet-icon { color: #756321; }
.journey-step { position: relative; display: flex; gap: 13px; padding: 0 0 18px; }
.journey-step:last-child { padding-bottom: 0; }
.journey-step:not(:last-child)::after { content: ''; position: absolute; width: 1px; top: 27px; bottom: 5px; left: 11px; background: #dbe4e7; }
.journey-node { display: grid; place-items: center; width: 23px; height: 23px; flex-shrink: 0; border: 1px solid #dce9e2; border-radius: 50%; background: #f1f7f3; color: #598671; }
.journey-node .icon { width: 12px; height: 12px; }
.journey-node-last { border-color: #eddea1; color: #786224; background: #fff5ce; }
.journey-step > div { display: grid; gap: 2px; }
.journey-step strong { color: var(--text); font-size: 12px; line-height: 1.4; font-weight: 550; }
.journey-step > div > span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.journey-seal { position: absolute; bottom: -8px; left: 75px; display: flex; align-items: center; gap: 8px; border: 1px solid #eadbb0; border-radius: 6px; background: #fff8d6; color: var(--muted); padding: 8px 13px; font-size: 11px; box-shadow: 0 4px 9px #231f2006; }
.journey-seal .icon { width: 13px; height: 13px; }
.home-content, .home-footer-wrap { max-width: 1152px; padding: 0 32px; margin: 0 auto; }
.home-content { padding-top: 42px; }
.prose { color: var(--text); line-height: 1.65; }
.prose h2 { color: var(--ink); font-size: 24px; font-weight: 620; line-height: 1.35; letter-spacing: -.5px; margin: 42px 0 14px; position: relative; }
.home-content.prose h2 { margin-top: 34px; font-size: 23px; }
.home-content.prose > div > h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.5; margin: 28px 0 9px; }
.prose h2 .badge, .prose h3 .badge { margin-left: 5px; vertical-align: middle; letter-spacing: 0; }
.prose p { margin: 0 0 18px; }
.home-content.prose > div > h2 + p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.heading-anchor { margin-left: 10px; opacity: 0; font-weight: 400; transition: opacity .12s; }
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.guide-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.guide-card { position: relative; border: 1px solid var(--border); border-radius: 12px; display: block; color: var(--text); overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; }
.guide-card:hover { border-color: var(--border-hover); color: var(--text); box-shadow: 0 9px 22px #231f2009; transform: translateY(-2px); }
.guide-card-guide { border-top: 3px solid var(--brand); background: linear-gradient(115deg,var(--glow),var(--soft)); }
.guide-card-reference { border-top: 3px solid var(--border); background: var(--surface); }
.guide-symbol { position: absolute; top: 29px; right: 29px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: #756321; box-shadow: 0 2px 4px #231f2004; }
.guide-symbol > .icon { width: 21px; height: 21px; }
.symbol-reference { background: var(--soft); color: var(--muted); border-color: var(--line); }
.guide-card-body { padding: 30px 30px 25px; }
.card-eyebrow { display: block; font-size: 10px; font-weight: 650; letter-spacing: 1px; color: var(--muted); margin-bottom: 19px; }
.prose .guide-card h3 { white-space: pre-line; margin: 0 0 13px; font-size: 28px; line-height: 1.28; font-weight: 610; letter-spacing: -.8px; color: var(--ink); }
.prose .guide-card-reference h3 { font-size: 26px; }
.prose .guide-card p { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 0; max-width: 390px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 27px; padding-top: 17px; border-top: 1px solid var(--border); font-size: 13px; }
.card-footer > span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 550; }
.card-footer .icon { width: 14px; height: 14px; }
.card-footer > .read-time { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.home-content.prose > div > ul { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 18px 0 0; padding: 0; list-style: none; }
.home-content.prose > div > ul > li { margin: 0; padding: 0; }
.home-content.prose > div > ul a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.home-content.prose > div > ul a::after { content: '↗'; color: var(--muted); }
.home-content.prose > div > ul a:hover { color: var(--accent); border-color: var(--border-hover); }

/* One self-contained example, with each stage selectable by mouse or keyboard. */
.order-demo { margin-bottom: 28px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-top: 22px; }
.demo-heading { padding: 12px 19px; background: var(--soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.demo-heading > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.demo-heading .icon { width: 15px; height: 15px; color: var(--muted); }
.demo-label { font-size: 10px; color: var(--muted); }
.demo-body { display: grid; grid-template-columns: 180px 1fr; }
.demo-explainer { padding: 24px 10px; border-right: 1px solid var(--line); }
.demo-tabs { display: grid; gap: 6px; }
.demo-tabs button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 10px 8px; font-size: 12px; color: var(--muted); text-align: left; white-space: nowrap; }
.demo-tabs button:hover { background: var(--soft); }
.demo-tabs button[aria-selected="true"] { color: var(--accent); background: var(--brand-soft); border-color: #eed879; font-weight: 550; }
.step-number { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid var(--border); border-radius: 50%; font-size: 10px; background: var(--surface); color: var(--muted); }
[aria-selected="true"] .step-number { color: var(--accent); border-color: #dbbd40; }
.demo-tabs button > .icon { margin-left: auto; width: 12px; height: 12px; opacity: 0; }
.demo-tabs button[aria-selected="true"] > .icon { opacity: 1; }
.demo-panel { padding: 25px 23px 22px; background: radial-gradient(ellipse at 50% 0,var(--soft),var(--surface) 80%); }
.order-preview { max-width: 435px; margin: 0 auto; padding: 20px 23px 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 4px 15px #231f2010; }
.order-preview-head { display: flex; align-items: center; justify-content: space-between; }
.order-preview-head > div { display: grid; gap: 2px; }
.order-overline { font-size: 10px; letter-spacing: 1px; font-weight: 600; color: var(--muted); }
.order-preview-head strong { font-size: 18px; color: var(--ink); font-weight: 600; letter-spacing: -.2px; }
.status-pill, .badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; font-size: 10px; line-height: 1.4; font-weight: 550; white-space: nowrap; }
.badge { padding: 3px 8px; font-size: 12px; }
.status-pill::before, .badge::before { content: ''; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.status-draft { color: var(--muted); background: var(--line); }
.status-submitted { color: #675f4e; background: #f1eee6; }
.status-in-progress { color: #80601b; background: #fff3c4; }
.status-complete { color: #247b61; background: #e7f4ef; }
.status-cancelled { color: #9b5260; background: #f9edf0; }
.badge-gray { color: #5e5b54; background: #efeee9; }
.badge-blue { color: #285b8f; background: #eaf3fc; }
.badge-green { color: #247b61; background: #e7f4ef; }
.badge-yellow { color: #80601b; background: #fff3c4; }
.badge-orange { color: #9a4d16; background: #fff0e5; }
.badge-red { color: #9b5260; background: #f9edf0; }
.badge-purple { color: #67509a; background: #f1ecfa; }
[data-theme="dark"] .badge-gray { color: #d5d0c5; background: #353532; }
[data-theme="dark"] .badge-blue { color: #9fc7f0; background: #1e344a; }
[data-theme="dark"] .badge-green { color: #98d2b6; background: #20382d; }
[data-theme="dark"] .badge-yellow { color: #edcf76; background: #403719; }
[data-theme="dark"] .badge-orange { color: #f3ad78; background: #402b1d; }
[data-theme="dark"] .badge-red { color: #efadbd; background: #412830; }
[data-theme="dark"] .badge-purple { color: #c8b4f0; background: #332b47; }
.order-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.order-facts > div { display: grid; gap: 3px; font-size: 13px; }
.order-facts span { color: var(--muted); font-size: 11px; }
.order-facts strong { color: var(--muted); font-weight: 500; }
.order-progress { display: flex; gap: 5px; margin-top: 20px; }
.order-progress span { flex: 1; height: 4px; background: var(--line); border-radius: 4px; transition: background .15s; }
.order-progress .is-current { background: #ffcd00; }
.order-progress .is-complete { background: #ffe782; }
.order-preview-foot { display: flex; justify-content: space-between; margin-top: 9px; font-size: 10px; color: var(--muted); }
.order-preview-foot span:first-child { color: var(--muted); }
.demo-caption { max-width: 435px; margin: 20px auto 0; min-height: 64px; }
.prose .demo-caption h3 { font-size: 13px; margin: 0 0 4px; font-weight: 600; }
.prose .demo-caption p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.65; }
.demo-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding: 11px 19px; font-size: 11px; }
.demo-bottom > span { color: var(--muted); }
.demo-bottom > a { display: flex; align-items: center; gap: 7px; }
.demo-bottom .icon { width: 12px; height: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 22px; padding: 27px 0 35px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.site-footer a:hover { color: var(--accent); }
.site-footer .icon { width: 11px; height: 11px; }
.footer-dot { margin: 0 6px; color: var(--border-hover); }
.home-footer-wrap { margin-top: 52px; }

/* Guide layout: narrow navigation, readable text, and a separate contents rail. */
.sidebar { position: fixed; width: var(--sidebar-width); top: var(--header-height); bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--surface); }
.sidebar > nav { padding: 16px 12px; flex: 1; overflow-y: auto; }
.nav-label { color: var(--muted); font-size: 10px; letter-spacing: .8px; font-weight: 650; margin: 0 10px 10px; }
.sidebar-link { display: flex; align-items: center; gap: 8px; margin: 1px 0; padding: 5px 10px; border-radius: 5px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sidebar-link .icon { width: 15px; height: 15px; color: var(--muted); }
.sidebar-link:hover { background: var(--soft); color: var(--accent); }
.sidebar-link.active { background: var(--brand-soft); color: var(--accent); font-weight: 550; }
.sidebar-link.active .icon { color: #605129; }
.nav-page-row { display: flex; align-items: center; gap: 2px; margin: 1px 0; }
.nav-page-row > .sidebar-link { flex: 1; min-width: 0; margin: 0; }
.nav-page-toggle { display: inline-grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.nav-page-toggle:hover { background: var(--soft); color: var(--accent); }
.nav-page-toggle .icon { width: 12px; height: 12px; transition: transform 160ms ease; }
.nav-page-group.is-open > .nav-page-row > .nav-page-toggle .icon { transform: rotate(90deg); }
.nav-child-links { margin-left: 17px; padding: 2px 0 3px 8px; border-left: 1px solid var(--line); overflow: hidden; }
.nav-group { margin: 0 0 6px; }
.nav-section-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 5px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.nav-section-toggle::-webkit-details-marker { display: none; }
.nav-section-toggle:hover { background: var(--soft); }
.nav-section-toggle:focus-visible, .sidebar-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-section-toggle .icon { flex: 0 0 13px; width: 13px; height: 13px; color: var(--muted); transition: transform 160ms ease; }
.nav-group[open]:not([data-collapsing]) > .nav-section-toggle .icon { transform: rotate(90deg); }
.nav-section-links { padding: 2px 0 4px 10px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .nav-section-toggle .icon, .nav-page-toggle .icon { transition: none; } }
.subnav-link { display: block; margin-left: 17px; padding: 6px 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.subnav-link:hover { border-color: var(--accent); }
.sidebar-bottom { display: flex; align-items: center; gap: 7px; padding: 15px 27px; font-size: 11px; border-top: 1px solid var(--line); color: var(--muted); }
.sidebar-bottom > .icon { width: 14px; height: 14px; }
.article-layout { margin-left: var(--sidebar-width); padding: 34px 40px 0; display: grid; grid-template-columns: minmax(0,832px) 180px; justify-content: center; gap: 48px; margin-top: var(--header-height); }
.article-layout-full-width { display: block; }
.article-layout-full-width .article-main { max-width: 1080px; margin: 0 auto; }
.article-main { min-width: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 23px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .icon { width: 11px; height: 11px; color: var(--border-hover); }
.article-heading h1 { margin: 0; font-size: 36px; font-weight: 650; line-height: 1.25; letter-spacing: -1px; }
.article-heading > p { font-size: 19px; color: var(--muted); margin: 10px 0 24px; line-height: 1.6; }
.article-toolbar { display: flex; align-items: center; gap: 19px; padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 28px; font-size: 11px; }
.article-toolbar button, .article-toolbar a { border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.article-toolbar a:hover, .article-toolbar button:hover { color: var(--accent); }
.article-toolbar .icon { width: 13px; height: 13px; }
.article-read-time { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); }
.article-prose { font-size: 16px; line-height: 1.65; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose li { padding-left: 4px; margin: 9px 0; }
.prose ul, .prose ol { margin: 18px 0 22px; padding-left: 23px; }
.prose ul > li::marker { color: var(--list-bullet); }
.prose ul.styled-list-checklist, .prose ul.styled-list-x { padding-left: 0; list-style: none; }
.prose .styled-list-checklist > li, .prose .styled-list-x > li { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 11px; padding-left: 0; }
.styled-list-icon { width: 16px; height: 16px; margin-top: .32em; }
.styled-list-checklist .styled-list-icon { color: var(--list-check); }
.styled-list-x .styled-list-icon { color: var(--list-x); }
.styled-list-content { min-width: 0; }
.styled-list-content > :first-child { margin-top: 0; }
.styled-list-content > :last-child { margin-bottom: 0; }
.article-prose ol { padding-left: 0; list-style: none; counter-reset: steps; }
.article-prose ol > li { counter-increment: steps; position: relative; margin: 0; padding: 0 0 12px 38px; }
.article-prose ol.styled-list-ordered > li:not(:last-child) { padding-bottom: 28px; }
.article-prose ol > li:last-child { padding-bottom: 0; }
.article-prose ol > li::before { content: counter(steps); position: absolute; top: 3px; left: 0; display: grid; place-items: center; box-sizing: border-box; width: 23px; height: 23px; border-radius: 50%; background: var(--brand-soft); color: var(--step-number); font-size: 11px; font-weight: 550; line-height: 1; }
.article-prose ol > li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.ordered-list-content > :first-child { margin-top: 0; }
.ordered-list-content > :last-child { margin-bottom: 0; }
.article-prose p > a, .article-prose li > a, .article-prose td > a { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-prose p > a:hover, .article-prose li > a:hover, .article-prose td > a:hover { color: var(--link-hover); }
.prose img.content-image { display: block; width: 100%; max-width: var(--image-max-width, 100%); height: auto; margin: 24px 0 31px; border-radius: 7px; }
.content-tabs { margin: 26px 0 32px; }
.content-tab-list { display: flex; gap: 34px; max-width: 100%; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.content-tab-list::-webkit-scrollbar { display: none; }
.content-tab-list > [role="tab"] { flex: 0 0 auto; margin: 0 0 -1px; padding: 9px 1px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.4; }
.content-tab-list > [role="tab"]:hover { color: var(--ink); }
.content-tab-list > [role="tab"][aria-selected="true"] { border-bottom-color: var(--brand); color: var(--ink); }
.content-tab-panel { padding-top: 22px; }
.content-tab-panel > :last-child { margin-bottom: 0; }
.prose p.footnote { margin: 24px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.callout { display: flex; gap: 13px; background: var(--callout-background); border: 1px solid var(--callout-border); border-radius: 6px; padding: 17px 19px; margin: 24px 0 31px; font-size: 13px; }
.callout-info { --callout-background: #eff6ff; --callout-border: #bfdbfe; --callout-accent: #1d4ed8; }
.callout-warning { --callout-background: #fff7ed; --callout-border: #fed7aa; --callout-accent: #c2410c; }
.callout-tip { --callout-background: #fefce8; --callout-border: #fde047; --callout-accent: #856000; }
.callout-stop { --callout-background: #fef2f2; --callout-border: #fecaca; --callout-accent: #b91c1c; }
.callout-note { --callout-background: #f7f7f5; --callout-border: #d8d5cc; --callout-accent: #605d56; }
[data-theme="dark"] .callout-info { --callout-background: #172539; --callout-border: #304d72; --callout-accent: #93c5fd; }
[data-theme="dark"] .callout-warning { --callout-background: #332419; --callout-border: #754323; --callout-accent: #fdba74; }
[data-theme="dark"] .callout-tip { --callout-background: #302b16; --callout-border: #685b24; --callout-accent: #fde047; }
[data-theme="dark"] .callout-stop { --callout-background: #341e20; --callout-border: #743337; --callout-accent: #fca5a5; }
[data-theme="dark"] .callout-note { --callout-background: #222220; --callout-border: #56564e; --callout-accent: #b6b2a8; }
.callout-symbol { display: block; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--callout-accent); }
.callout > div { min-width: 0; }
.callout > div > strong { display: block; margin-bottom: 4px; font-size: 14px; color: var(--callout-accent); }
.callout p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.75; }
.callout p + p { margin-top: 12px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 20px 0 32px; border: 1px solid var(--line); border-radius: 7px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; text-align: left; }
.prose th { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .45px; text-transform: uppercase; background: var(--soft); }
.prose th, .prose td { padding: 13px 15px; vertical-align: top; }
.prose th { padding-top: 11px; padding-bottom: 11px; }
.prose tbody tr { border-top: 1px solid var(--line); }
.prose td { color: var(--muted); }
.prose td:first-child { color: var(--text); font-weight: 500; min-width: 116px; }
.prose tbody tr:nth-child(even) { background: var(--soft); }
.prose td .status-pill { font-size: 11px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--line); padding: 2px 4px; border-radius: 4px; }
.prose pre { background: var(--soft); padding: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.toc { position: sticky; top: 151px; align-self: start; padding-top: 8px; font-size: 11px; }
.toc > p { color: var(--muted); font-weight: 600; font-size: 12px; margin: 0 0 12px; }
.toc nav { position: relative; display: flex; flex-direction: column; gap: 0; }
.toc nav::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 1px; background: var(--line); }
.toc-indicator { position: absolute; z-index: 1; top: 0; left: 0; width: 2px; height: 0; border-radius: 2px; background: #c89f00; opacity: 0; transform: translateY(0); transition: transform .24s ease, height .24s ease, opacity .15s ease; pointer-events: none; }
.toc a { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; padding: 6px 0 6px 13px; }
.toc a.toc-level-3 { padding-left: 27px; }
.toc a.is-active { color: var(--ink); }
.toc a:hover { color: var(--accent); }
.toc-note { margin-top: 31px; padding-top: 22px; border-top: 1px solid var(--line); }
.toc-note p { color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 10px; }
.mobile-toc { display: none; }
.article-main .site-footer { margin-top: 48px; padding-top: 22px; }

/* Native dialogs supply focus trapping, escape, and a true modal backdrop. */
dialog::backdrop { background: #231f2047; backdrop-filter: blur(3px); }
.search-dialog { margin: min(17vh,150px) auto 0; padding: 0; width: min(600px,calc(100% - 32px)); max-height: calc(100dvh - 100px); border: 1px solid var(--border); border-radius: 10px; color: var(--text); box-shadow: 0 25px 100px #231f2038; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.search-field > .icon { color: var(--muted); }
.search-field input { width: 100%; min-width: 0; outline: 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: var(--muted); }
.search-field button { border: 0; background: transparent; padding: 3px; }
.search-results { padding: 10px; max-height: 380px; overflow: auto; }
.search-count { color: var(--muted); font-size: 10px; font-weight: 600; margin: 4px 10px 8px; }
.search-result { display: flex; align-items: center; gap: 12px; border-radius: 6px; padding: 13px 10px; color: var(--text); }
.search-result:hover, .search-result:focus-visible { background: var(--brand-soft); color: var(--text); }
.result-icon { display: grid; place-items: center; width: 32px; height: 35px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); background: var(--surface); flex-shrink: 0; }
.result-icon .icon { width: 15px; }
.search-result > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.search-result strong { font-size: 12px; font-weight: 550; }
.search-result small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.search-result > .icon { margin-left: auto; color: var(--muted); width: 13px; }
.search-empty { padding: 35px 15px; text-align: center; color: var(--muted); }
.search-empty > .icon { display: block; margin: 0 auto 12px; }
.search-empty strong { color: var(--muted); font-size: 14px; }
.search-empty p { margin: 6px 0 0; font-size: 12px; }
.search-hint { display: flex; gap: 18px; border-top: 1px solid var(--line); background: var(--soft); padding: 11px 20px; font-size: 10px; color: var(--muted); }
.search-hint kbd { margin-right: 4px; font-size: 10px; }
.nav-dialog { height: 100dvh; max-height: 100dvh; width: min(320px,calc(100% - 36px)); max-width: none; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--line); color: var(--text); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 23px 22px; border-bottom: 1px solid var(--line); }
.nav-dialog nav { padding: 12px; }
.nav-dialog .sidebar-link { font-size: 14px; padding: 7px 10px; }
.nav-dialog .nav-section-toggle { padding: 9px 10px; font-size: 14px; }
.nav-dialog .subnav-link { padding-top: 9px; padding-bottom: 9px; font-size: 12px; }
.mobile-external { display: flex; align-items: center; gap: 10px; margin: 12px 27px 24px; font-size: 13px; }

/* Keep small navigation and metadata readable on the light surfaces. */
.search-trigger, kbd, .nav-context, .card-eyebrow, .card-footer > .read-time,
.demo-label, .step-number, .order-overline, .order-facts span, .order-preview-foot,
.prose .demo-caption p, .demo-bottom > span, .site-footer, .site-footer a, .footer-dot,
.nav-label, .subnav-link, .breadcrumbs, .article-read-time, .callout p, .prose th,
.toc a, .toc-note p, .search-count, .search-result small,
.search-hint, .search-empty { color: var(--muted); }
.status-draft { color: var(--muted); }
.search-field:focus-within { box-shadow: inset 0 -2px var(--accent); }

@media (min-width: 1600px) { .article-layout { padding-left: 60px; padding-right: 60px; gap: 68px; } }
@media (max-width: 1200px) {
  :root { --sidebar-width: 218px; }
  .article-layout { padding-left: 32px; padding-right: 32px; gap: 28px; grid-template-columns: minmax(0,1fr) 145px; }
  .sidebar > nav { padding-left: 12px; padding-right: 12px; }
  .article-heading h1 { font-size: 30px; }
}
@media (max-width: 1050px) {
  .toc { display: none; }
  .article-layout { grid-template-columns: minmax(0,740px); }
  .hero-inner { grid-template-columns: minmax(0,1fr) 310px; gap: 30px; }
  .hero-copy > p { max-width: 405px; font-size: 18px; }
  .hero-actions { gap: 15px; }
  .hero-illustration { transform: scale(.88); transform-origin: left center; }
  .header-main { grid-template-columns: 1fr 300px 1fr; gap: 18px; }
  .header-actions { gap: 12px; }
  .demo-panel { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 760px) {
  :root { --header-height: 104px; }
  .header-main { height: 60px; padding: 0 19px; grid-template-columns: 1fr auto auto; gap: 8px; }
  .header-actions { display: flex; }
  .header-actions > :not(.theme-toggle) { display: none; }
  .search-trigger { height: 34px; width: 34px; padding: 0; justify-content: center; background: var(--surface); }
  .search-trigger > span, .search-trigger kbd { display: none; }
  .search-trigger .icon { width: 17px; height: 17px; }
  .mobile-menu { display: inline-grid; width: 26px; }
  .topnav { padding: 0 22px; }
  .topnav > div { gap: 27px; }
  .topnav-link { font-size: 12px; }
  .nav-context { font-size: 10px; }
  .nav-context .icon { display: none; }
  .hero-inner { min-height: auto; padding: 45px 24px; grid-template-columns: minmax(0,1fr) 250px; gap: 20px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy > p { font-size: 17px; }
  .hero-illustration { transform: scale(.72); width: 350px; transform-origin: left center; }
  .hero-actions { font-size: 12px; }
  .home-content, .home-footer-wrap { padding-left: 24px; padding-right: 24px; }
  .guide-grid { gap: 16px; }
  .guide-card-body { padding: 25px 22px 22px; }
  .prose .guide-card h3 { font-size: 24px; }
  .prose .guide-card p { font-size: 14px; }
  .card-footer { font-size: 12px; }
  .card-footer > .read-time { display: none; }
  .demo-body { grid-template-columns: 170px 1fr; }
  .demo-explainer { padding: 21px 10px; }
  .demo-tabs button { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .demo-panel { padding: 25px 20px; }
  .order-preview { padding: 17px; }
  .sidebar { display: none; }
  .article-layout { margin-left: 0; padding: 25px 24px 0; display: block; }
  .article-main { max-width: 690px; margin: 0 auto; }
  .article-heading h1 { font-size: 29px; }
  .article-heading > p { font-size: 17px; }
  .mobile-toc { display: block; font-size: 12px; margin: -8px 0 25px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
  .mobile-toc summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc summary .icon { transform: rotate(90deg); width: 12px; }
  .mobile-toc[open] summary .icon { transform: rotate(-90deg); }
  .mobile-toc nav { display: grid; gap: 10px; padding: 15px 0 5px; }
  .mobile-toc a { color: var(--muted); }
  .mobile-toc a.toc-level-3 { padding-left: 14px; }
  .mobile-toc a.is-active { color: var(--accent); }
  .prose h2 { font-size: 21px; }
}
@media (max-width: 560px) {
  .nav-context { display: none; }
  .hero-inner { display: block; padding: 39px 24px 37px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 15px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy > p { max-width: 360px; font-size: 17px; line-height: 1.6; margin: 18px 0 25px; }
  .hero-illustration { display: none; }
  .hero-actions { gap: 17px; }
  .button-primary { padding: 8px 10px; gap: 7px; }
  .text-link { gap: 3px; }
  .text-link .icon { width: 11px; }
  .home-content { padding-top: 31px; }
  .home-content.prose h2 { font-size: 22px; margin-top: 32px; }
  .home-content.prose > div > h2 + p { font-size: 15px; }
  .guide-grid { grid-template-columns: 1fr; gap: 20px; }
  .guide-symbol { top: 24px; right: 22px; width: 35px; height: 35px; border-radius: 9px; }
  .guide-symbol .icon { width: 18px; height: 18px; }
  .home-content.prose > div > ul { grid-template-columns: 1fr; gap: 0; }
  .guide-card-body { padding: 25px 23px 23px; }
  .prose .guide-card h3 { font-size: 26px; }
  .prose .guide-card p { font-size: 14px; }
  .card-footer { font-size: 12px; }
  .card-footer > .read-time { display: none; }
  .demo-heading { padding: 12px 14px; font-size: 11px; }
  .demo-label { font-size: 10px; }
  .demo-body { display: block; }
  .demo-explainer { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 10px; }
  .demo-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .demo-tabs button { padding: 7px 9px; font-size: 11px; gap: 8px; }
  .demo-tabs button > .icon { display: none; }
  .step-number { height: 18px; width: 18px; font-size: 10px; }
  .demo-panel { padding: 23px 18px 19px; }
  .order-preview { padding: 17px; }
  .demo-caption { min-height: 82px; }
  .demo-bottom { padding: 12px 16px; display: block; font-size: 10px; }
  .demo-bottom > span { display: block; margin-bottom: 4px; }
  .site-footer { display: flex; flex-direction: column; gap: 8px; padding-bottom: 25px; }
  .home-footer-wrap { margin-top: 36px; }
  .article-heading h1 { font-size: 31px; }
  .article-heading > p { font-size: 16px; }
  .article-toolbar { gap: 15px; }
  .article-read-time { font-size: 10px; }
  .article-read-time .icon { display: none; }
  .breadcrumbs { margin-bottom: 18px; }
  .article-prose { font-size: 16px; }
  .content-tab-list { gap: 26px; }
  .content-tab-list > [role="tab"] { font-size: 14px; }
  .prose th, .prose td { padding: 11px 12px; }
  .prose table { font-size: 13px; }
  .prose table:has(th:nth-child(3)) { min-width: 520px; }
  .table-scroll:has(th:nth-child(3))::before { content: 'Swipe to see all columns →'; display: block; position: sticky; left: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 10px; }
  .callout { padding: 16px; gap: 10px; font-size: 14px; }
  .search-dialog { margin-top: 70px; }
  .search-hint { gap: 12px; padding: 11px 14px; }
  .search-field { padding: 15px; gap: 8px; }
  .search-result { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Related documents use the available content width, including beside sidebars. */
.see-also { container-type: inline-size; margin: 36px 0; }
.prose .see-also h2 { margin: 0 0 20px; }
.see-also-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.see-also-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.see-also-card:hover { border-color: var(--border-hover); background: var(--soft); }
.see-also-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.see-also-card-title { color: #856800; font-size: 16px; font-weight: 550; line-height: 1.5; }
.see-also-card-description { color: var(--muted); font-size: 14px; line-height: 1.65; }
[data-theme="dark"] .see-also-card-title { color: #f2cf55; }
@container (max-width: 600px) { .see-also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 400px) { .see-also-grid { grid-template-columns: 1fr; } }
