/* Arnold Handbook — Prime Tours tokens (brand/prime-tours/tokens.json) */
@font-face { font-family: "Mulish"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Mulish-400.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/Mulish-400i.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Mulish-600.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Mulish-700.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/Mulish-800.woff2") format("woff2"); }

:root {
  --aubergine: #3C3744;
  --teal: #136F63;
  --yellow: #F5DF4D;
  --cream: #F5F3EC;
  --graphite: #111827;

  --bg: #F5F3EC;
  --bg-2: #EDEAE0;          /* sidebar, code, quiet fills (cream, one step down) */
  --surface: #FFFFFF;
  --line: #E2DDD0;
  --line-strong: #CBC5B5;
  --ink: #3C3744;
  --ink-2: #5C5666;         /* secondary text, aubergine tinted */
  --muted: #8A8492;
  --link: #136F63;
  --link-hover: #0E574E;
  --accent: #F5DF4D;
  --accent-ink: #3C3744;
  --teal-soft: #E1EFEC;
  --yellow-soft: #FBF3C4;
  --warn: #9A3412;
  --warn-soft: #FBE9DB;
  --ok: #136F63;
  --mark: #FBF0A8;
  --shadow: 0 1px 2px rgba(60,55,68,.08), 0 8px 24px rgba(60,55,68,.08);

  --font: "Mulish", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 3px;
  --radius-lg: 6px;
  --measure: 66ch;
  --sidebar: 272px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1A23; --bg-2: #27222D; --surface: #2C2733; --line: #3A3442; --line-strong: #4C4556;
    --ink: #F5F3EC; --ink-2: #CFC9D6; --muted: #9F98A8; --link: #5FC0B1; --link-hover: #8AD6CA;
    --accent: #F5DF4D; --accent-ink: #3C3744; --teal-soft: #1F3A36; --yellow-soft: #3E3821;
    --warn: #F3B08A; --warn-soft: #3F2A20; --ok: #5FC0B1; --mark: #5A5120;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1A23; --bg-2: #27222D; --surface: #2C2733; --line: #3A3442; --line-strong: #4C4556;
  --ink: #F5F3EC; --ink-2: #CFC9D6; --muted: #9F98A8; --link: #5FC0B1; --link-hover: #8AD6CA;
  --accent: #F5DF4D; --accent-ink: #3C3744; --teal-soft: #1F3A36; --yellow-soft: #3E3821;
  --warn: #F3B08A; --warn-soft: #3F2A20; --ok: #5FC0B1; --mark: #5A5120;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@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(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--radius); }
img { max-width: 100%; height: auto; display: block; }
code, kbd { font-family: var(--mono); font-size: .875em; }
code { background: var(--bg-2); padding: .1em .35em; border-radius: var(--radius); }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--radius); padding: 0 .4em; background: var(--surface); font-size: .8em; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; margin: 0; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; margin-top: 0; }
h3 { font-size: 1.3rem; font-weight: 700; margin-top: 2.2rem; margin-bottom: .6rem; }
h4 { font-size: 1.02rem; font-weight: 700; margin-top: 1.4rem; margin-bottom: .3rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; max-width: var(--measure); }
li { margin-bottom: .35rem; }
li > ul, li > ol { margin-top: .35rem; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }
.small { font-size: .875rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.de { color: var(--muted); font-weight: 400; font-style: italic; }
.ui { font-weight: 700; white-space: nowrap; }
.ui::before { content: "\201C"; font-weight: 400; color: var(--muted); }
.ui::after { content: "\201D"; font-weight: 400; color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 18px 40px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.brand span { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.search { position: relative; }
.search input { width: 100%; padding: 10px 36px 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink-2); font-size: .93rem; font-weight: 600; }
.nav a .n { font-variant-numeric: tabular-nums; font-size: .72rem; color: var(--muted); width: 1.4em; font-weight: 700; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.on { background: var(--aubergine); color: #F5F3EC; }
.nav a.on .n { color: var(--yellow); }
.side .foot { margin-top: auto; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.side .foot a { color: var(--ink-2); }
.topbar { display: none; }

main { min-width: 0; }
.wrap { max-width: 980px; padding: 40px 56px 80px; }
section.doc { padding-top: 3.2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
section.doc:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: .8rem; }
.sec-head .num { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--teal); font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 8px 0 32px; border-bottom: 3px solid var(--aubergine); margin-bottom: 40px; }
.hero h1 { margin: .3rem 0 .8rem; }
.hero .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.hero .facts b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero .facts a { font-weight: 700; }
.hero-card { background: var(--aubergine); color: #F5F3EC; padding: 22px 24px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.hero-card > * { position: relative; z-index: 1; }
.hero-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow); opacity: .14; z-index: 0; }
.hero-card .eyebrow { color: var(--yellow); }
.hero-card ol { margin: 0; padding-left: 1.2rem; }
.hero-card li { margin-bottom: .5rem; }
.hero-card li b { color: #fff; }
.hero-card a { color: var(--yellow); }

/* ---------- blocks ---------- */
.callout { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0; max-width: calc(var(--measure) + 40px); }
.callout.rule { border-color: var(--yellow); background: var(--yellow-soft); }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .t { font-weight: 800; display: block; margin-bottom: .25rem; }
.notyet { border: 1px dashed var(--line-strong); padding: 14px 18px; border-radius: var(--radius); max-width: calc(var(--measure) + 40px); }
.notyet .t { font-weight: 800; }
.notyet ul { margin-bottom: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 1rem 0 1.5rem; max-width: 760px; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps li b, .steps li p { grid-column: 2; }
.steps li b { display: block; }
.steps li p { margin-top: -10px; }
.steps li p { margin: 0; font-size: .95rem; color: var(--ink-2); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1rem 0 1.5rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 1rem 0 1.5rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile h4 { margin-top: 0; }
.tile p { font-size: .95rem; margin-bottom: .4rem; }
.tile p:last-child { margin-bottom: 0; }
.tile .lab { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--teal); }

/* capability catalogue */
.cap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap h4 { margin: 0 0 .3rem; }
.cap .tag { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 2px 7px; border-radius: var(--radius); background: var(--teal-soft); color: var(--teal); margin-bottom: 6px; }
.cap .tag.draft { background: var(--yellow-soft); color: var(--accent-ink); }
.cap .tag.shadow { background: var(--bg-2); color: var(--ink-2); }
.cap p { margin-bottom: .5rem; font-size: .95rem; }
.cap .kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 12px; font-size: .92rem; margin-top: .3rem; }
.cap .kv b { color: var(--muted); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding-top: .25em; }

/* prompts */
.prompts { display: grid; gap: 10px; margin: .8rem 0 1.6rem; }
.prompt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.prompt .q { font-size: .95rem; white-space: pre-line; }
.prompt .why { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.prompt button { font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 10px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink); border-radius: var(--radius); cursor: pointer; }
.prompt button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--accent-ink); }
.prompt button.ok { background: var(--teal); border-color: var(--teal); color: #fff; }

/* figures */
figure { margin: 1.4rem 0 2rem; }
figure .frame img { width: 100%; }
figure .frame { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
figure.phone { max-width: 320px; }
figure.phone .frame { border-radius: 22px; border-width: 6px; border-color: var(--aubergine); }
figure.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
figure.pair .frame { margin: 0; }
figure.pair figcaption { grid-column: 1 / -1; }
figcaption { font-size: .86rem; color: var(--ink-2); margin-top: 8px; max-width: var(--measure); }
figcaption b { color: var(--ink); }
.pin { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--accent-ink); font-weight: 800; font-size: .8rem; display: grid; place-items: center; border: 2px solid var(--aubergine); transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,.25); font-variant-numeric: tabular-nums; }
.legend { columns: 2; column-gap: 28px; font-size: .92rem; margin: .6rem 0 1rem; padding: 0; list-style: none; max-width: 780px; }
.legend li { break-inside: avoid; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; margin-bottom: 8px; align-items: start; }
.legend li i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--accent-ink); font-weight: 800; font-size: .72rem; display: grid; place-items: center; border: 2px solid var(--aubergine); }

/* tables */
.tbl { overflow-x: auto; margin: 1rem 0 1.6rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--line-strong); }
td:first-child { font-weight: 700; white-space: nowrap; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill.blue { background: #E4E8FF; color: #2B3FAE; }
.pill.green { background: #DFF3E4; color: #15613A; }
.pill.grey { background: var(--bg-2); color: var(--ink-2); }
.pill.amber { background: var(--yellow-soft); color: #6B5A00; }
:root[data-theme="dark"] .pill.blue, :root:not([data-theme="light"]) .pill.blue { background: #2B3FAE; color: #E4E8FF; }
:root[data-theme="dark"] .pill.green, :root:not([data-theme="light"]) .pill.green { background: #15613A; color: #DFF3E4; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pill.blue { background: #E4E8FF; color: #2B3FAE; } :root:not([data-theme="dark"]) .pill.green { background: #DFF3E4; color: #15613A; } }

/* day-one checklist */
.todo { list-style: none; padding: 0; margin: .4rem 0 1.4rem; display: grid; gap: 6px; max-width: 760px; }
.todo label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; font-size: .95rem; }
.todo input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--teal); }
.todo input:checked + * , .todo label:has(input:checked) { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* faq */
details { border-top: 1px solid var(--line); padding: 10px 0; max-width: 780px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding: 4px 0; list-style: none; display: flex; gap: 10px; align-items: baseline; }
summary::before { content: "+"; color: var(--teal); font-weight: 800; width: 1em; }
details[open] summary::before { content: "\2212"; }
details p { margin: .5rem 0 .4rem 1.6em; font-size: .95rem; }

/* quick ref */
.quick { background: var(--surface); border: 2px solid var(--aubergine); border-radius: var(--radius-lg); padding: 24px 28px; margin: 1rem 0 2rem; }
.quick .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
.quick h4 { margin-top: 0; color: var(--teal); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.quick ul { padding-left: 1.1rem; font-size: .9rem; margin: 0; }
.quick li { margin-bottom: .3rem; }
.printbtn { font: inherit; font-weight: 700; font-size: .85rem; padding: 8px 14px; background: var(--yellow); color: var(--accent-ink); border: 0; border-radius: var(--radius); cursor: pointer; }
.printbtn:hover { background: #F2D62A; }

/* search results */
mark { background: var(--mark); color: inherit; padding: 0 .1em; border-radius: 2px; }
.results { display: none; }
body.searching .results { display: block; }
body.searching .content { display: none; }
.results .hit { display: block; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.results .hit:hover { border-color: var(--teal); }
.results .hit .where { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.results .hit .ttl { font-weight: 800; display: block; margin: 2px 0 4px; }
.results .hit .snip { font-size: .9rem; color: var(--ink-2); }
.results .none { color: var(--muted); padding: 20px 0; }
.results .count { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--aubergine); color: #F5F3EC; padding: 10px 16px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw); transform: translateX(-100%); transition: transform .2s; z-index: 30; box-shadow: none; }
  body.menu-open .side { transform: none; box-shadow: var(--shadow); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; display: none; }
  body.menu-open .scrim { display: block; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .topbar .brand img { width: 30px; height: 30px; }
  .topbar .brand b { font-size: .95rem; }
  .topbar .brand span { display: none; }
  .topbar .search { flex: 1; }
  .topbar .search kbd { display: none; }
  .topbar button { font: inherit; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 8px 10px; border-radius: var(--radius); font-weight: 700; }
  .side .search { display: none; }
  .wrap { padding: 24px 18px 60px; }
  .hero { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .grid2, .grid3, figure.pair { grid-template-columns: 1fr; }
  .cap { grid-template-columns: 1fr; gap: 6px; }
  .quick .cols { grid-template-columns: 1fr; }
  .legend { columns: 1; }
}
@media (max-width: 600px) { .steps li { grid-template-columns: 28px 1fr; } .steps li::before { width: 28px; height: 28px; } }

@media print {
  .side, .topbar, .scrim, .toast, .printbtn, .prompt button { display: none !important; }
  .shell { display: block; }
  .wrap { max-width: none; padding: 0; }
  body { background: #fff; color: #000; font-size: 11pt; }
  section.doc { break-before: page; border: 0; }
  section.doc:first-of-type { break-before: auto; }
  .print-only-quick section.doc:not(#quick) { display: none; }
  figure .frame { box-shadow: none; }
  a { color: #000; text-decoration: none; }
}
