/*
  Shared look of the public guides (public/guides/*.html), added 2026-11-05.
  Same tokens as public/pricing.html (navy ground, one orange action colour, system sans) so the site reads as one.
  House rules from CLAUDE.md's design section for public pages: no gradients, no shadows at rest, no thin rules,
  no monospace, one h1 per page, surfaces separated by a step in tone. Real tables keep a tone step instead of lines.
*/
:root {
  --bg: #001b38;
  --surface: #0a2a4d;
  --surface-2: #123a66;
  --ink: #f3f5f8;
  --muted: #bccadc;
  --accent: #f97316;
  --accent-ink: #2b1200;
  --edge: 24px;
  --r: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.62 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
b, strong { font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }

/* Top bar */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px var(--edge); max-width: 1360px; margin: 0 auto; }
.bar .brand { font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.bar .brand b { color: var(--accent); }
.bar nav { display: flex; flex-wrap: wrap; gap: 2px 4px; order: 3; width: 100%; }
.bar nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: var(--r); font-size: 17px; }
.bar nav a:hover, .bar nav a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0;
  border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px;
  text-decoration: none; transition: transform .18s cubic-bezier(.2, .7, .1, 1);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
@media (min-width: 1000px) {
  .bar nav { order: 0; width: auto; margin-right: 12px; }
}

/* First screen: the title and the answer on the left, one large picture on the right */
.hero { max-width: 1360px; margin: 0 auto; padding: 32px var(--edge) 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero h1 { font-size: clamp(30px, 6vw, 54px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.hero .lede { margin-top: 22px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 60ch; }
.hero .updated { margin-top: 14px; color: var(--muted); font-size: 16px; }
.hero-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--surface); }
.hero-pic figcaption { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }
@media (min-width: 1000px) {
  .hero h1 { font-size: clamp(40px, 3.7vw, 54px); }
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding-top: 48px; }
  .hero-pic img { aspect-ratio: auto; height: 640px; }
}

/* Page frame: article on the left, the quick answer and the next step on the right */
.frame { max-width: 1360px; margin: 0 auto; padding: 56px var(--edge) 0; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .frame { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; padding-top: 96px; }
  .side { position: sticky; top: 24px; align-self: start; }
}
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 18px; padding: 6px 0; }
.back:hover { color: var(--ink); }

/* Article */
.article section { margin-top: 64px; }
.article section:first-child { margin-top: 0; }
.article h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; max-width: 26ch; }
.article h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin-top: 28px; }
.article p, .article ul, .article ol { margin-top: 16px; max-width: 66ch; }
.article h2 + p, .article h3 + p { margin-top: 14px; }
.article ul, .article ol { padding-left: 1.25em; }
.article li { margin-top: 10px; padding-left: 4px; }
.article li::marker { color: var(--accent); }
.article a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.article a:hover { color: var(--accent); }
.note { margin-top: 22px; padding: 18px 20px; background: var(--surface); border-radius: var(--r); max-width: 66ch; color: var(--ink); }
.note p { margin: 0; max-width: none; }
.note p + p { margin-top: 10px; }

/* Real tables: tone steps, no lines */
.tablewrap { margin-top: 22px; overflow-x: auto; max-width: 720px; }
table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; font-size: 17px; }
th, td { text-align: left; padding: 12px 16px; background: var(--surface); }
thead th { background: var(--surface-2); font-weight: 700; }
tbody th { font-weight: 600; }
th:first-child, td:first-child { border-radius: var(--r) 0 0 var(--r); }
th:last-child, td:last-child { border-radius: 0 var(--r) var(--r) 0; }
td.n, th.n { text-align: right; }
caption { text-align: left; color: var(--muted); font-size: 16px; padding-bottom: 8px; caption-side: bottom; padding-top: 8px; }

/* Pictures */
.pics { margin-top: 28px; display: grid; gap: 8px; grid-template-columns: 1fr; max-width: 820px; }
@media (min-width: 700px) { .pics { grid-template-columns: 1fr 1fr; } .pics.one { grid-template-columns: 1fr; } }
.pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--surface); }
.pics.one img { aspect-ratio: 16 / 9; }
.pics figure { margin: 0; }
.pics figcaption { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }

/* Side tiles */
.tile { background: var(--surface); border-radius: var(--r); padding: 24px; }
.tile + .tile { margin-top: 8px; }
.tile.accent { background: var(--accent); color: var(--accent-ink); }
.tile h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
.tile p { margin-top: 12px; font-size: 18px; line-height: 1.5; }
.tile .btn { margin-top: 18px; background: var(--bg); color: var(--ink); }
.tile ul { list-style: none; margin: 14px 0 0; }
.tile li { margin-top: 6px; }
.tile li a { display: block; padding: 8px 0; text-underline-offset: 3px; }

/* Guides hub: three large links, each with its picture */
.hub { display: grid; gap: 8px; }
.hub a { display: grid; gap: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: background .18s; }
.hub a:hover { background: var(--surface-2); }
.hub img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.hub .txt { display: block; padding: 24px 28px 28px; }
.hub .t { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.hub .d { margin: 10px 0 0; color: var(--muted); max-width: 60ch; }
@media (min-width: 700px) {
  .hub a { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .hub img { height: 100%; aspect-ratio: auto; min-height: 200px; }
}

/* Entrances: added by guides.js only, so nothing is hidden if the script never runs. Transform and opacity only. */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2, .7, .1, 1), transform .6s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.hero-pic img { transform-origin: 60% 50%; animation: settle 1.4s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Footer */
footer { max-width: 1360px; margin: 96px auto 0; padding: 0 var(--edge) 48px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { footer { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 8px; } }
footer .f { background: var(--surface); border-radius: var(--r); padding: 24px; }
footer p { margin: 0; }
footer .legal { margin-top: 12px; color: var(--muted); font-size: 16px; }
footer ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer li a { display: inline-block; padding: 8px 0; text-decoration: none; }
footer li a:hover { text-decoration: underline; }
footer .credits { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .btn, .hub a { transition: none; }
  .btn:hover { transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-pic img { animation: none; }
}

/* Phones: five-column tables fit the screen instead of scrolling sideways */
@media (max-width: 520px) {
  table { font-size: 15px; border-spacing: 0 3px; }
  th, td { padding: 9px 8px; }
  th:first-child, td:first-child { padding-left: 10px; }
}
