/* Shared styles for guide pages. Brand tokens match index.html. */
:root {
  --navy: #060B16; --navy-line: #1B2A42; --gold: #56C8F5;
  --paper: #F6F4EE; --card: #FFFFFF; --ink: #060B16; --ink-soft: #4A5666; --on-navy-soft: #AEB9C7; --rule: #DCD8CC;
}
* { box-sizing: border-box; }
/* "Skip to content": hidden until it has keyboard focus. The same rule is in order.css, which loads after the page first
   shows, so the link appeared at the top until then and pushed the page down 28 px (layout shift, 4 December 2026). */
.skip { position: absolute; left: 12px; top: -80px; z-index: 1000; padding: 12px 18px; border-radius: 10px; background: #fff; color: #0B1220; font: 600 15px/1 "Inter", system-ui, sans-serif; text-decoration: none; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.skip:focus { top: 12px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.top { background: var(--navy); color: #fff; }
.top .bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--navy-line); }
/* The wordmark (the ribbon logo, 4 December 2026): Sora 500 in capitals with letter-spacing .04em, as in the logo files.
   The ribbon mark is twice its height and .6 em from it (the approved preview: mark 34 px, wordmark 17 px). */
.logo { font-family: "Sora", "Inter", system-ui, sans-serif; font-weight: 500; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.top .logo { color: #EEF8FE; }
nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .95rem; font-weight: 500; }
nav a { padding: 12px 14px; text-decoration: none; color: #D5DCE5; }
nav a:hover { color: #fff; }
nav a.btn { background: var(--gold); color: var(--navy); font-weight: 600; padding: 12px 20px; }
.title { padding: 44px 0 52px; max-width: 800px; }
.crumbs { font-size: .85rem; color: var(--on-navy-soft); }
.crumbs a { text-decoration: none; }
.eyebrow { display: block; margin-top: 18px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 12px 0 16px; }
.title p { margin: 0; font-size: 1.12rem; color: #D5DCE5; }
.byline { margin-top: 18px; font-size: .88rem; color: var(--on-navy-soft); }

.draft { background: #FFF1C2; color: #4A3800; border-bottom: 1px solid #E5CF85; font-size: .9rem; }
.draft .wrap { padding-top: 10px; padding-bottom: 10px; }
mark.confirm { background: #FFE08A; color: #3A2C00; padding: 1px 6px; border-radius: 3px; font-size: .88em; }

article { max-width: 760px; margin: 0 auto; padding: 44px 24px 24px; }
article h2 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.01em; margin: 44px 0 12px; padding-top: 18px; border-top: 2px solid var(--navy); }
article h2:first-of-type { margin-top: 8px; }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; }
article li { margin-bottom: 8px; }
.table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--rule); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
.key { background: var(--navy); color: #fff; padding: 22px 24px; margin: 0 0 24px; border-left: 6px solid var(--gold); font-size: 1.08rem; }
.key strong { color: var(--gold); }
.cta { background: var(--card); border: 1px solid var(--rule); padding: 20px 22px; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cta a { background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; min-height: 44px; }
details { background: var(--card); border: 1px solid var(--rule); padding: 14px 18px; margin-bottom: 8px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; }
.sources { font-size: .92rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.disclaimer { font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 36px; }
footer { padding: 24px 0 40px; font-size: .85rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- deep-space header theme (shared with the homepage) ---------- */
.top { position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 82% 30%, rgba(38,120,190,.34), transparent 70%),
    radial-gradient(520px 360px at 8% 100%, rgba(96,64,170,.24), transparent 70%),
    #03060D; }
.top > *:not(.space-bg) { position: relative; z-index: 1; }
.space-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.top .bar { border-bottom-color: rgba(255,255,255,.08); }
.eyebrow { color: #7FD8FF; letter-spacing: .2em; }
.top h1 { text-shadow: 0 0 28px rgba(86,200,245,.18); }
nav a.btn { border-radius: 999px; background: linear-gradient(180deg, #8ADFFF 0%, #3FA9E6 100%); color: #03101E; box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 6px 22px rgba(86,200,245,.32); }
.flag { display: inline-block; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); flex: 0 0 auto; }
.logo .flag { margin-right: 10px; vertical-align: -1px; }
.logo .mark { flex: 0 0 auto; width: 2em; height: 2em; margin-right: .6em; }
.btn, .cta a, nav a.btn { border-radius: 999px; }
.softcta { margin: 32px 0 8px; padding: 22px 24px; background: #03060D; color: #fff; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; box-shadow: 0 0 0 1px rgba(86,200,245,.25) inset; }
.softcta p { margin: 0; color: #C9D6E6; max-width: 46ch; } .softcta b { color: #fff; display: block; font-size: 1.1rem; margin-bottom: 4px; }
.softcta a { background: linear-gradient(180deg, #8ADFFF 0%, #3FA9E6 100%); color: #03101E; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center; }

/* ---------- premium pass: type, radius, depth ---------- */
/* A stand-in sized like Inter (Arial at 107.3%, measured against Inter), so text wraps the same before and after
   the web font arrives and nothing below it jumps when it does. The plain system font runs about 15% narrower. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("ArialMT"); size-adjust: 107.3%; ascent-override: 90.3%; descent-override: 22.6%; line-gap-override: 0%; }
body { font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, legend, summary { font-family: "Sora", "Inter", system-ui, sans-serif; letter-spacing: -.02em; }
.logo { display: inline-flex; align-items: center; }
.top .title h1 { font-weight: 700; letter-spacing: -.03em; }
.title { padding-bottom: 64px; }
.eyebrow { font-size: .72rem; letter-spacing: .24em; }
nav a:not(.btn) { border-radius: 999px; transition: color .2s, background .2s; }
nav a:not(.btn):hover { background: rgba(255,255,255,.06); }
nav a[aria-current="page"]:not(.btn) { color: #fff; background: rgba(255,255,255,.08); }
article h2 { border-top: 1px solid var(--rule); font-weight: 600; }
.key { border-radius: 16px; border-left: 0; box-shadow: inset 3px 0 0 #56C8F5, 0 20px 40px -30px rgba(0,0,0,.5); }
.table { border-radius: 14px; overflow-x: auto; }
details { border-radius: 12px; }
.cta { border-radius: 14px; }
.cta a { border-radius: 999px; }
mark.confirm, mark.legal { font-weight: 600; }
html.clean mark.confirm, html.clean mark.legal { background: none; color: inherit; padding: 0; font-weight: inherit; border-bottom: 1px dashed rgba(200,150,0,.6); border-radius: 0; }
html.clean .draft { display: none; }
::selection { background: rgba(86,200,245,.3); }

/* ---------- mobile pass ---------- */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.logo { min-height: 44px; }
footer a { display: inline-block; padding: 11px 2px; }
.menu-btn { display: none; }
.menu-btn .x { display: none; }
.menu-open > .menu-btn .x { display: block; }
.menu-open > .menu-btn .b { display: none; }
@media (max-width: 860px) {
  .top .bar { padding: 10px 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; }
  .bar nav { display: none; }
  .bar.menu-open nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 4px 0 12px; }
  .bar.menu-open nav a:not(.btn) { padding: 15px 4px; font-size: 1.05rem; color: #E3ECF5; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .bar.menu-open nav a.btn { margin-top: 14px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; }
  .title { padding-top: 26px; padding-bottom: 44px; }
}
@media (max-width: 560px) {
  /* The logo, the order button and the menu button share one row on phones: the wordmark scales with the screen. */
  .top .bar { column-gap: 10px; }
  /* The mark and the gap scale with the letters. Measured 4 December 2026: the flag, mark and wordmark take 32 px plus
     11.68 em, and the cart and menu buttons 108 px with the gaps, so this keeps one row from 320 px wide up. */
  .top .bar > .logo { font-size: clamp(11px, calc(9vw - 17.5px), 17px); }
  .draft { font-size: .78rem; }
  .draft .wrap { padding-top: 6px; padding-bottom: 6px; }
  .wrap { padding: 0 20px; }
  article { padding-left: 20px; padding-right: 20px; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta a { text-align: center; }
}
