@charset "UTF-8";
/* ==========================================================================
   PhotoCraft Hub — photocraft.cloud
   Hand-written static stylesheet. No frameworks, no web fonts, no build step.
   Design language: technical editorial. Dark ink masthead, light reading
   surface, single Rust-orange accent, mono micro-labels, quiet card system.
   --------------------------------------------------------------------------
   Radius scale (one system):
     controls (buttons, inputs, chips) = 12px  ·  containers (cards,
     callouts, tables, panels) = 18px  ·  status pills & step numerals = full
   Shadow rules: always tinted slate, never pure black.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Ink (dark masthead, footer) */
  --ink-950: #0b0e13;
  --ink-900: #0e1116;
  --ink-850: #12161d;
  --ink-800: #171c24;
  --ink-700: #222a35;
  --ink-600: #2d3644;

  /* Slate (text on light) */
  --slate-800: #232a34;
  --slate-700: #39414d;
  --slate-600: #4c5563;
  --slate-500: #626b7a;
  --slate-400: #8b93a1;
  --slate-300: #b6bcc6;

  /* Light surfaces */
  --paper: #ffffff;
  --paper-alt: #f7f8fa;
  --paper-sunk: #f1f3f6;
  --line: #e2e6ec;
  --line-soft: #edf0f4;
  --line-strong: #cfd5de;

  /* Accent: Rust orange (from the Rust language mark) */
  --rust-800: #8c2716;
  --rust-700: #a62f1b;
  --rust-600: #c43d24;
  --rust-500: #ce422b;
  --rust-400: #e05f45;
  --rust-300: #f0907c;
  --rust-100: #fbe4dd;
  --rust-50: #fdf5f2;
  /* Accent tuned for the dark masthead (7:1 on ink) */
  --rust-on-dark: #ff7a5c;

  /* Status (semantic only, never decorative) */
  --ok-bg: #e8f6ef;
  --ok-fg: #0d6b47;
  --warn-bg: #fdf0dd;
  --warn-fg: #8a5410;
  --dev-bg: #eef1f6;
  --dev-fg: #4c5563;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Metrics */
  --shell: 1180px;
  --content: 860px;
  --toc-w: 224px;
  --header-h: 64px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Radius */
  --r-control: 12px;
  --r-box: 18px;
  --r-pill: 999px;

  /* Elevation (tinted, never pure black) */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px -2px rgba(15, 23, 42, 0.07);
  --sh-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 14px 32px -14px rgba(15, 23, 42, 0.16);
  --sh-rust: 0 1px 2px rgba(140, 39, 22, 0.24), 0 10px 22px -10px rgba(196, 61, 36, 0.45);
  --sh-rust-lg: 0 2px 4px rgba(140, 39, 22, 0.22), 0 16px 32px -14px rgba(196, 61, 36, 0.5);
  --hairline: linear-gradient(90deg, rgba(206, 66, 43, 0.4), var(--line) 16%, var(--line-soft) 60%, transparent);
  --ring: 0 0 0 3px rgba(206, 66, 43, 0.32);
}

/* 2. RESET ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate-700);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--slate-800);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.05rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.42rem, 1.16rem + 0.95vw, 1.85rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.012em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { margin: 0 0 1.05em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }
li:last-child { margin-bottom: 0; }
strong { color: var(--slate-800); font-weight: 650; }

a { color: var(--rust-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rust-800); text-decoration-thickness: 2px; }
.prose a { text-decoration-color: rgba(196, 61, 36, 0.34); }
.prose a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--rust-500); outline-offset: 2px; border-radius: 4px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--rust-100); color: var(--rust-800); }

/* 3. UTILITIES ------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.nowrap { white-space: nowrap; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -0.22em;
}
.icon--lg { width: 1.5em; height: 1.5em; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--paper);
  color: var(--slate-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sh-md);
  transition: top 0.16s ease;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 4. MASTHEAD + NAV (dark zone: identical on every page) ------------------- */
.masthead {
  position: relative;
  background: var(--ink-900);
  color: #d5dae2;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -28px 40px -30px rgba(206, 66, 43, 0.55);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 8%, transparent 78%);
  mask-image: radial-gradient(120% 78% at 50% 0%, #000 8%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 300px at 84% -16%, rgba(206, 66, 43, 0.26), transparent 66%),
    radial-gradient(520px 260px at 4% 0%, rgba(206, 66, 43, 0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 15, 20, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex: none;
}
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8892a0;
}

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-link {
  display: block;
  padding: 8px 11px;
  border-radius: var(--r-control);
  color: #c3cad4;
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 10px;
  padding: 9px 15px;
  border-radius: var(--r-control);
  background: linear-gradient(180deg, var(--rust-400), var(--rust-600));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sh-rust);
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--rust-400); color: #fff; }
.nav-cta:active { transform: translateY(1px); }

/* Mobile nav: native details element, works with JS disabled */
.nav-drawer { display: none; margin-left: auto; }
.nav-drawer > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-control);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e6eaf0;
}
.nav-drawer > summary::-webkit-details-marker { display: none; }
.nav-drawer > summary:hover { background: rgba(255, 255, 255, 0.08); }
.nav-drawer[open] > summary { background: rgba(255, 255, 255, 0.1); }
.nav-drawer .nav-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--ink-850);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
  padding: 10px 20px 18px;
}
.nav-drawer .nav-list { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
.nav-drawer .nav-link { padding: 12px 12px; font-size: 1rem; }
.nav-drawer .nav-cta { margin: 0 0 8px; justify-content: center; }

/* 5. HERO ------------------------------------------------------------------ */
.page-hero { padding: var(--sp-7) 0 54px; }
.page-hero--home { padding: 62px 0 var(--sp-8); }

.hero-inner { max-width: 920px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rust-on-dark);
  background: rgba(206, 66, 43, 0.13);
  border: 1px solid rgba(206, 66, 43, 0.34);
  border-radius: var(--r-pill);
  padding: 5px 12px 5px 10px;
  margin-bottom: 20px;
}
.eyebrow .icon { width: 0.95em; height: 0.95em; }

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
  max-width: 880px;
}
.page-hero--home h1 { max-width: 900px; }

.hero-lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  color: #a9b2bf;
  max-width: 62ch;
  margin-bottom: 26px;
}
.hero-lede strong { color: #e3e7ed; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Buttons: filled = rust on white text (4.7:1) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.12s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--rust-400), var(--rust-600));
  color: #fff;
  box-shadow: var(--sh-rust), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #e9705a, var(--rust-500));
  color: #fff;
  box-shadow: var(--sh-rust-lg), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn--ghost { background: rgba(255, 255, 255, 0.05); color: #eaedf2; border-color: rgba(255, 255, 255, 0.22); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); color: #fff; border-color: rgba(255, 255, 255, 0.34); }

.btn--outline { background: var(--paper); color: var(--slate-800); border-color: var(--line-strong); box-shadow: var(--sh-xs); }
.btn--outline:hover { border-color: var(--rust-300); color: var(--rust-700); }

.btn--sm { padding: 10px 16px; font-size: 0.875rem; }

/* Fact bar: sits under the hero, never inside it */
/* 6. PAGE LAYOUT ----------------------------------------------------------- */
main {
  display: block;
  background: linear-gradient(180deg, #f6f8fa 0, rgba(255, 255, 255, 0) 260px);
}

.layout {
  display: grid;
  grid-template-columns: var(--toc-w) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-2);
}
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout--full .prose { max-width: var(--content); margin-inline: auto; }

.prose { max-width: var(--content); }

/* 7. TOC ------------------------------------------------------------------- */
.toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 12px;
}
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc-list li { margin: 0; }
.toc-list a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.42;
  text-decoration: none;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.toc-list a:hover { color: var(--rust-700); border-left-color: var(--rust-300); }
.toc-list a.is-active {
  color: var(--rust-700);
  border-left-color: var(--rust-500);
  font-weight: 620;
}

/* Reading progress: CSS scroll-driven, no JavaScript, hidden where unsupported */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--rust-500), var(--rust-300));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: pc-progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes pc-progress { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

.toc-mobile { display: none; margin-bottom: 28px; }
.toc-mobile > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--paper-alt);
  color: var(--slate-800);
  font-size: 0.9rem;
  font-weight: 620;
}
.toc-mobile > summary::-webkit-details-marker { display: none; }
.toc-mobile > summary .icon { margin-left: auto; color: var(--slate-400); transition: transform 0.18s ease; }
.toc-mobile[open] > summary .icon { transform: rotate(180deg); }
.toc-mobile .toc-list { margin-top: 12px; border-left: 0; }
.toc-mobile .toc-list a { padding-left: 2px; border-left: 0; }

/* 8. SECTIONS + PROSE RHYTHM ---------------------------------------------- */
.section { position: relative; padding: 40px 0; }
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
}
.section:first-child { padding-top: 0; }
.section:first-child::before { display: none; }
.section--alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 30px 28px;
  margin: 30px 0;
}
.section--alt:first-child { margin-top: 0; }
.section--alt::before { display: none; }

.section > h2 { margin-top: 0; }
.section > h2:not(:first-child) { margin-top: 0.4em; }
.section h2 + p, .section h2 + ul, .section h2 + ol, .section h2 + .table-wrap { margin-top: 0.2em; }
.section > *:last-child { margin-bottom: 0; }

.prose h2 {
  position: relative;
  padding-top: 4px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.h-anchor {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: var(--rust-300);
  text-decoration: none;
  vertical-align: -0.05em;
  opacity: 0;
  transition: opacity 0.16s ease, color 0.16s ease;
}
.h-anchor .icon { width: 0.72em; height: 0.72em; }
.prose h2:hover .h-anchor,
.h-anchor:focus-visible { opacity: 1; }
.h-anchor:hover { color: var(--rust-500); }
@media (hover: none) { .h-anchor { opacity: 0.45; } }
.prose h3 { margin-top: 1.6em; color: var(--slate-800); }
.prose h3 + p { margin-top: -0.2em; }

.lede { font-size: 1.12rem; line-height: 1.62; color: var(--slate-600); }

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.855em;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--slate-800);
  white-space: nowrap;
}

.ext { white-space: nowrap; }
.ext .icon { width: 0.92em; height: 0.92em; color: var(--slate-400); margin-left: 2px; }
.ext:hover .icon { color: var(--rust-500); }

.divider { margin: 36px 0; }

/* 8b. FIGURES -------------------------------------------------------------- */
figure { margin: 26px 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  background: var(--paper);
  box-shadow: var(--sh-xs);
}
figcaption {
  margin-top: 10px;
  font-size: 0.845rem;
  line-height: 1.55;
  color: var(--slate-500);
  max-width: 68ch;
}

/* 8c. SCREENSHOT GALLERY --------------------------------------------------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 0;
}
.shot { margin: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  background: var(--paper-sunk);
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.shot:hover img { border-color: var(--line-strong); box-shadow: var(--sh-md); }
.shot figcaption {
  margin-top: 10px;
  font-size: 0.845rem;
  line-height: 1.5;
  color: var(--slate-500);
}
.shot-credit { margin: 16px 0 0; font-size: 0.845rem; color: var(--slate-500); }

/* 9. CARDS ----------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0 6px;
  padding: 0;
  list-style: none;
}
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: var(--sp-5) var(--sp-5) 18px;
  box-shadow: var(--sh-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust-400), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.card:hover { border-color: var(--rust-300); box-shadow: var(--sh-md); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-control);
  background: var(--rust-50);
  border: 1px solid var(--rust-100);
  color: var(--rust-600);
  margin-bottom: var(--sp-4);
  box-shadow: inset 0 1px 0 #fff;
}
.card-title { font-size: 1rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.card-text { font-size: 0.925rem; line-height: 1.6; color: var(--slate-600); margin: 0; }
.card-text + .card-text { margin-top: 8px; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* 10. CALLOUTS ------------------------------------------------------------- */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate-400);
  border-radius: var(--r-box);
  background: var(--paper-alt);
  margin: 22px 0;
}
.callout-icon { color: var(--slate-500); flex: none; margin-top: 2px; }
.callout-body { min-width: 0; }
.callout-body p { margin: 0; font-size: 0.945rem; line-height: 1.62; }
.callout-title {
  font-weight: 680;
  color: var(--slate-800);
  font-size: 0.9rem;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.callout--note { border-left-color: var(--slate-500); }
.callout--note .callout-icon { color: var(--slate-500); }
.callout--warn { background: var(--warn-bg); border-color: #f2ddbd; border-left-color: #c9821f; }
.callout--warn .callout-icon, .callout--warn .callout-title { color: var(--warn-fg); }
.callout--tip { background: var(--ok-bg); border-color: #cfe9dd; border-left-color: #17936a; }
.callout--tip .callout-icon, .callout--tip .callout-title { color: var(--ok-fg); }

/* 11. STEPS ---------------------------------------------------------------- */
.steps { list-style: none; margin: 24px 0; padding: 0; counter-reset: step; }
.step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 22px;
  margin: 0;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 15px; top: 34px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line-soft));
}
.step:last-child::before { display: none; }
.step-num {
  flex: none;
  width: 31px; height: 31px;
  border-radius: var(--r-pill);
  background: var(--rust-50);
  border: 1px solid var(--rust-300);
  color: var(--rust-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}
.step-body { min-width: 0; padding-top: 3px; }
.step-title { font-size: 1rem; margin: 0 0 5px; }
.step-body p { margin: 0; font-size: 0.945rem; color: var(--slate-600); }
.step-body p + p { margin-top: 8px; }

/* 12. TABLES --------------------------------------------------------------- */
.table-wrap {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  box-shadow: var(--sh-xs);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  min-width: 520px;
}
.table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px 0;
  font-size: 0.8rem;
  color: var(--slate-500);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.data-table thead th {
  background: var(--paper-sunk);
  color: var(--slate-700);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #fcfdfe; }
.data-table tbody tr:hover { background: var(--rust-50); }
.data-table th, .data-table td { font-variant-numeric: tabular-nums; }
.data-table tbody th {
  font-weight: 650;
  color: var(--slate-800);
  white-space: nowrap;
}
.data-table td { color: var(--slate-600); line-height: 1.55; }
.data-table td strong { color: var(--slate-800); }
.data-table--tight th, .data-table--tight td { padding: 11px 14px; font-size: 0.885rem; }

/* 13. BADGES --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge--alpha { background: var(--warn-bg); color: var(--warn-fg); border-color: #f0dcbc; }
.badge--dev { background: var(--dev-bg); color: var(--dev-fg); border-color: #e0e5ee; }
.badge--free { background: var(--ok-bg); color: var(--ok-fg); border-color: #cfe9dd; }
.badge--neutral { background: var(--paper-sunk); color: var(--slate-600); border-color: var(--line); }

/* 14. VERDICT + PICK ------------------------------------------------------- */
.verdict {
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  background: linear-gradient(180deg, var(--rust-50), var(--paper) 70%);
  border-top: 3px solid var(--rust-500);
  padding: 22px 24px;
  margin: 24px 0;
  box-shadow: var(--sh-xs);
}
.verdict-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-700);
  margin: 0 0 12px;
  font-weight: 600;
}
.verdict-list { list-style: none; margin: 0; padding: 0; }
.verdict-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.96rem;
  color: var(--slate-600);
}
.verdict-list li:last-child { margin-bottom: 0; }
.verdict-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rust-500);
}

.pick {
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 20px 22px;
  margin: 18px 0;
  background: var(--paper);
  box-shadow: var(--sh-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pick:hover { border-color: var(--rust-300); box-shadow: var(--sh-sm); }
.pick-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pick-name { margin: 0; font-size: 1.1rem; }
.pick > p { font-size: 0.95rem; color: var(--slate-600); }
.pick > p:last-child { margin-bottom: 0; }

.pros-cons { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.pros-cons li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.5;
}
.pros-cons .icon { margin-top: 0.25em; width: 1.05em; height: 1.05em; }
.pros-cons .pro .icon { color: #17936a; }
.pros-cons .con .icon { color: #c9821f; }

/* 15. FAQ ------------------------------------------------------------------ */
.faq { margin: 22px 0 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 4px;
  font-size: 1.02rem;
  font-weight: 620;
  color: var(--slate-800);
  letter-spacing: -0.008em;
  transition: color 0.15s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--rust-700); }
.faq-q::after {
  content: "";
  flex: none;
  margin-left: auto;
  margin-top: 0.42em;
  width: 10px; height: 10px;
  border-right: 2px solid var(--slate-400);
  border-bottom: 2px solid var(--slate-400);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] .faq-q::after {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--rust-500);
}
.faq-item[open] .faq-q { color: var(--slate-800); }
.faq-item[open] { background: linear-gradient(180deg, var(--paper-alt), transparent 60%); }
@media (prefers-reduced-motion: no-preference) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.28s ease, content-visibility 0.28s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}
.faq-a { padding: 0 34px 20px 4px; }
.faq-a p { margin: 0 0 0.7em; font-size: 0.96rem; color: var(--slate-600); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { font-weight: 550; }

/* 16. INLINE CTA + NEXT STEPS --------------------------------------------- */
.cta-inline {
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  background: var(--paper-alt);
  padding: 24px 26px;
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.cta-inline-title {
  font-size: 1.08rem;
  font-weight: 680;
  color: var(--slate-800);
  margin: 0 0 4px;
  letter-spacing: -0.012em;
}
.cta-inline > div { flex: 1 1 320px; }
.cta-inline p:last-child { margin-bottom: 0; font-size: 0.94rem; }
.cta-inline .btn { flex: none; }

.next-steps { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.next-steps-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 12px;
}
.next-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.next-steps-list li {
  margin: 0;
  font-size: 0.945rem;
  color: var(--slate-500);
  padding-left: 18px;
  position: relative;
}
.next-steps-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-top: 1.5px solid var(--slate-400);
  border-right: 1.5px solid var(--slate-400);
  transform: rotate(45deg);
}
.next-steps-list a { font-weight: 600; }

/* 17. CTA BAND (before footer) -------------------------------------------- */
.cta-band {
  background: var(--ink-900);
  color: #cfd5dd;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 12% 120%, rgba(206, 66, 43, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-band .shell {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cta-band-text { flex: 1 1 380px; }
.cta-title { color: #fff; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); margin: 0 0 8px; }
.cta-text { margin: 0; font-size: 0.98rem; color: #a4adba; max-width: 56ch; }
.cta-band .hero-actions { flex: none; }

/* 18. AD SLOTS (opt-in: only emitted when AD_SLOTS = True in build.py) ----- */
.ad-slot {
  margin: 30px auto;
  max-width: var(--content);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: repeating-linear-gradient(135deg, #fbfcfd, #fbfcfd 9px, #f5f7f9 9px, #f5f7f9 18px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-box);
  padding: 18px;
  text-align: center;
}
.ad-slot--footer { margin-bottom: 8px; }
.ad-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.ad-note { font-size: 0.8rem; color: var(--slate-500); max-width: 46ch; margin: 0; }

/* 19. FOOTER --------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--ink-950);
  color: #99a2b0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(206, 66, 43, 0.5), rgba(255, 255, 255, 0.06) 30%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-top: 44px;
  padding-bottom: 30px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-about { font-size: 0.885rem; line-height: 1.62; color: #8d97a5; max-width: 40ch; margin: 0; }
.footer-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c8695;
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list li { margin: 0; }
.footer-list a {
  color: #c2cad5;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-list .icon { color: #5d6674; width: 1em; height: 1em; }
.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0 30px;
}
.disclaimer p {
  font-size: 0.795rem;
  line-height: 1.65;
  color: #7c8695;
  margin: 0 0 10px;
  max-width: 96ch;
}
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer a { color: #97a1af; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #8b95a3;
  padding-bottom: 34px;
}
.footer-bottom .dot { color: #4c5563; }

/* 20. 404 ------------------------------------------------------------------ */
.error-page { padding: 80px 0 90px; text-align: left; max-width: 620px; }
.error-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--rust-on-dark);
  text-transform: uppercase;
}
.error-page h1 { color: #fff; margin-top: 14px; }
.error-page .hero-lede { margin-bottom: 24px; }

/* 21. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .layout > .toc { display: none; }
  .layout--full .prose { max-width: var(--content); }
  .toc-mobile { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-drawer { display: block; }
  .header-inner { position: relative; }
}

@media (max-width: 780px) {
  body { font-size: 1.0313rem; }
  .shell { padding-inline: 18px; }
  .page-hero { padding: 34px 0 36px; }
  .page-hero--home { padding: 40px 0 38px; }
  .page-hero h1 { max-width: none; }
  .card-grid, .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .shot-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .section { padding: 28px 0; }
  .section--alt { padding: 24px 20px; margin: 24px 0; }
  .cta-band .shell { padding-top: 34px; padding-bottom: 34px; }
  .cta-band .hero-actions { width: 100%; }
  .cta-band .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .faq-a { padding-right: 12px; }
  .cta-inline { padding: 20px; }
  .cta-inline .btn { width: 100%; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
}

/* 22. PREFERENCES + PRINT -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .cta-band, .ad-slot, .toc, .toc-mobile, .skip-link, .nav-drawer { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .masthead { background: none; color: #000; }
  .page-hero h1, .hero-lede, .eyebrow { color: #000; }
  .section { border-top: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
}
