/* warranty-guide — "reading the fine print with a highlighter" theme.
   Paper-white page, deep contract-ink navy, highlighter amber. */
:root {
  --paper: #fffef9;
  --ink: #1c2430;
  --ink-soft: #3a4556;
  --amber: #f0a500;
  --amber-wash: #fdf3d7;
  --amber-deep: #966300;
  --line: #e7dfc9;
  --warn-bg: #fff4e0;
  --warn-edge: #d9930a;
  --disclaimer-bg: #f3f1ea;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.7;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header.site { background: var(--ink); color: #f5f2e8; }

/* Skip link — visually hidden until it receives keyboard focus.
   Utility from modern-web-guidance: guides/accessibility/accessibility.md,
   "Code Example: Visually Hidden Utility" (clip-path: inset(50%) instead of
   the older clip: rect() snippet; :focus-within/:active opts focused skip
   links out so they become visible). */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
}
/* Fixed top-left so the page doesn't shift when the skip link appears. */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
}
header.site .wrap {
  max-width: 56rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  padding-top: .9rem; padding-bottom: .9rem;
}
.brand {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
}
.brand span { color: var(--amber); }
/* Nav list — modern-web-guidance: guides/accessibility/accessibility.md §3
   "Use lists for repeated, contiguous content: <ul>/<ol> give assistive tech
   a count up front and let users skip the entire group." Flex layout moved
   from nav to the new <ul> so the visual layout is unchanged. */
nav { margin-left: auto; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
nav a {
  color: #e8e2cf; text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .95rem;
}
nav a:hover { color: var(--amber); }

/* Visible focus indicators — modern-web-guidance:
   guides/accessibility/accessibility.md §4 DO "Visible Focus Indicators:
   Always style :focus-visible states explicitly." Brand colors used:
   amber-deep on paper backgrounds, amber on the dark header. */
::where(a:any-link, button):focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 3px;
}
header.site ::where(a:any-link, button):focus-visible {
  outline-color: var(--amber);
}

/* Hero */
.hero { background: var(--ink); color: #f5f2e8; padding: 3.25rem 0 3.5rem; }
.hero .wrap { max-width: 48rem; }
.kicker {
  margin: 0 0 .75rem;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--amber);
}
.hero h1 { color: #fff; font-size: 2.35rem; line-height: 1.2; margin: 0 0 1rem; }
.hero .lede { color: #d8d2bc; font-size: 1.15rem; margin: 0; max-width: 38rem; }

/* Main */
main { padding: 2.5rem 0 3rem; }
section { margin-bottom: 2.75rem; }
/* Modern text wrapping — modern-web-guidance: guides/css/css.md §7 "Text
   wrapping": balance for headlines, pretty for long-form body. Deliberately
   NOT applied to * (the guide's perf caveat), and not to boxed containers. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2, h3 { color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.3; }
h1 { font-size: 2.1rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.45rem; margin: 2.25rem 0 .9rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .5rem; }

/* The highlighted short answer */
.answer {
  background: var(--amber-wash);
  border-left: 5px solid var(--amber);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
}
.answer p { margin: 0; color: var(--ink); }
.answer strong { color: var(--ink); }

a { color: var(--amber-deep); }
a:hover { color: var(--ink); }

/* Step lists */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.1rem;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 2.1rem; height: 2.1rem; line-height: 2.1rem;
  text-align: center; border-radius: 50%;
  background: var(--ink); color: var(--amber);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: .95rem;
}

/* Warning callout */
.warn {
  background: var(--warn-bg);
  border: 2px solid var(--warn-edge);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
}
.warn strong { color: var(--ink); }

/* Related guides */
.related { margin: 2.5rem 0 0; }
.related h3 { margin-top: 0; }
.related ul { padding-left: 1.2rem; }

/* Disclaimer */
.disclaimer {
  background: var(--disclaimer-bg);
  border-top: 3px solid var(--line);
  padding: 1rem 1.25rem;
  margin-top: 2.5rem;
  font-size: .95rem;
}
.disclaimer strong { color: var(--ink); }
.disclaimer p { margin: .35rem 0 0; }

/* Homepage cards */
.cluster-label {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--amber-deep); margin: 2rem 0 .75rem;
}
.cards { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  padding: 1.1rem 1.25rem;
  text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--amber); }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* Homepage note box */
.note {
  background: var(--amber-wash);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.note strong { color: var(--ink); display: block; margin-bottom: .25rem; }

/* Footer */
footer.site { background: var(--ink); color: #cfc8ae; padding: 2rem 0; }
footer.site .wrap { max-width: 56rem; }
footer.site p { margin: 0 0 .4rem; font-size: .9rem; }

@media (max-width: 32rem) {
  .hero h1 { font-size: 1.85rem; }
  h1 { font-size: 1.7rem; }
}
:root { --accent: var(--amber); }

/* ---- Professional frame: byline, tables, AI brief ---- */
.byline {
  margin: 2.5rem 0 0; padding: 1.25rem 1.5rem;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--wash); border-radius: 0 8px 8px 0; font-size: 0.95rem;
}
.byline p { margin: 0.4rem 0; }
.byline .reviewed { color: var(--muted); font-size: 0.85rem; }
.table-scroll { overflow-x: auto; margin: 1.5rem -20px; padding: 0 20px; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0;
  margin: 0; font-size: 0.93rem; line-height: 1.55;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
}
table.data caption { text-align: left; font-weight: 700; font-size: 1.02rem; padding: 0 0 0.6rem; color: var(--ink); }
table.data th, table.data td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--ink); color: #fffdf8; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: none; white-space: nowrap; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:nth-child(even) { background: var(--wash); }
table.data tbody tr:hover { background: #f3ecdb; }
table.data tbody th[scope="row"] { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (min-width: 700px) { .table-scroll { margin-left: 0; margin-right: 0; padding: 0; } }
.ai-brief { margin: 2.5rem 0; padding: 1.5rem; border: 2px dashed var(--accent); border-radius: 8px; background: #fff; }
.ai-brief h2 { margin-top: 0; }
.ai-brief .ai-note { font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.ai-brief dl { margin: 0; } .ai-brief dt { font-weight: 700; margin-top: 1rem; } .ai-brief dd { margin: 0.25rem 0 0; }
.ai-brief ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.chart-wrap { margin: 1.5rem 0; } .chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-wrap figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
