/* V2 look for the camera backup tool and its guide: the shared header and footer (site-chrome.css), the
   site's dark tokens mapped onto the names styles.css and generator.css use, and the V2 type scale. */
@font-face { font-family: "Geist"; src: url("/fonts/geist/Geist-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2026, U+2192, U+2197; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist/GeistMono-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2026, U+2192, U+2197; }
:root {
  color-scheme: dark;
  --paper: var(--gx-bg);
  --surface: #1a1a19;
  --ink: var(--gx-ink);
  --muted: var(--gx-muted);
  --quiet: #77736c;
  --line: var(--gx-rule);
  --line-dark: #45433f;
  --red: #ff8a5c;
  --red-soft: rgb(255 107 61 / 12%);
  --green: #8fc59a;
  --font: var(--gx-font);
  --mono: var(--gx-mono);
}
body { background: var(--gx-bg); color: var(--gx-ink); }

/* styles.css still styles .site-header and .main-nav for the old header; the shared header overrides them. */
.site-header.gx-header { display: flex; grid-template-columns: none; height: auto; min-height: 72px; border-bottom: 0; }
.gx-header .main-nav { align-self: center; }
.gx-header .main-nav a { min-height: 0; color: inherit; font-size: inherit; font-weight: inherit; }
/* ...and .site-footer as a one-row flex bar; the shared footer stacks its sections. */
.site-footer.gx-footer { display: block; min-height: 0; padding-bottom: 0; border-top: 0; color: var(--gx-ink); font-size: inherit; line-height: inherit; }

.backup-subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 52px; border-bottom: 1px solid var(--gx-rule); font-family: var(--gx-font); font-size: 15px; }
.backup-subnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gx-muted); text-decoration: none; }
.backup-subnav a:hover, .backup-subnav a[aria-current] { color: var(--gx-ink); }
.backup-subnav a[aria-current] { box-shadow: inset 0 -2px 0 var(--gx-amber); }
.backup-subnav .local-chip { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--gx-muted); font-size: 14px; }
.backup-subnav .local-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.generator-shell { width: min(100% - 2 * var(--gx-gutter), 1040px); }
.generator-heading { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.generator-heading .eyebrow { color: var(--gx-muted); font: 400 14px/1.4 var(--gx-mono); letter-spacing: 0; text-transform: lowercase; }
.generator-heading h1 { margin: 14px 0 18px; font-size: clamp(36px, 1rem + 4vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; }
.generator-heading p:last-child { max-width: 40em; font-size: 18px; line-height: 1.6; }

.backup-preflight, .backup-automation { padding: clamp(18px, 2.4vw, 28px); border-radius: 12px; }
.backup-heading h2, .generator-section h2 { font-size: clamp(19px, 1rem + .5vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.backup-heading a { font-size: 14px; }
.backup-boundary, .backup-disclaimer { font-size: 14px; line-height: 1.6; }
.backup-steps li, .backup-automation-note, .backup-readback-hint, .backup-readback-steps li, .backup-automation-status,
.backup-declaration, .backup-variant-confirm, .backup-readback-field { font-size: 15px; line-height: 1.65; }
.backup-steps li b, .backup-readback-steps li::before { color: var(--gx-amber); font-size: 14px; }
.backup-scope-tag { color: var(--gx-amber); font-size: 13px; }
.backup-report { background: var(--gx-surface); font-size: 12px; }
.generator-section { font-size: 16px; }
.generator-section li, .generator-section p { line-height: 1.7; }
.generator-footer { font-size: 14px; }

/* Buttons in the V2 shape: pills; the dark one becomes the light primary. */
.button { border-radius: 999px; }
.button:hover:not(:disabled) { border-color: var(--gx-ink); background: #232322; }
.button.dark { border-color: var(--gx-paper); background: var(--gx-paper); color: var(--gx-ink-on-light); }
.button.dark:hover:not(:disabled) { border-color: #fff; background: #fff; }
.generator-primary { color: var(--gx-ink-on-light); border-radius: 999px; }
.generator-secondary { border-radius: 999px; }
input[type='checkbox'] { accent-color: var(--gx-amber); }

/* Plain step list: the risk line, a card-root tree, the readable diagnosis and folded details. */
.backup-risk-note { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--gx-amber); font-size: 14px; line-height: 1.6; }
.backup-readback-steps li > b { display: block; margin-bottom: 4px; }
.backup-readback-steps .backup-automation-actions { margin: 12px 0; }
.backup-tree-caption { margin: 10px 0 4px; font-size: 14px; line-height: 1.6; }
.backup-tree { margin: 0; padding: 12px 14px; overflow-x: auto; border-radius: 8px; background: var(--gx-surface); font-size: 13px; line-height: 1.5; }
.backup-tree-legend { margin: 6px 0 0; padding-left: 0; list-style: none; font-size: 14px; line-height: 1.6; }
.backup-tree-legend li { margin: 2px 0; }
.backup-tree-legend b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; margin-right: 4px; }
/* Steps carry file diagrams, so they read top to bottom; legend items are not steps. */
.backup-readback-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.backup-readback-steps .backup-tree-legend li { padding-left: 0; counter-increment: none; }
.backup-readback-steps .backup-tree-legend li::before { content: none; }
.backup-readback-steps .backup-tree-legend li > b { display: inline; margin-bottom: 0; }
.backup-diagnosis { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--gx-amber); border-radius: 8px; font-size: 15px; line-height: 1.65; }
.backup-diagnosis p { margin: 0 0 6px; }
.backup-report-details, .backup-more-details { margin-top: 12px; font-size: 14px; }
.backup-report-details summary, .backup-more-details summary { cursor: pointer; }
