/*
 * TonerAI toner guides (approved mock-up docs/research/mockups/ToneGuides.mock.html).
 * Shared by /guides/ and every guide page. Colour tokens match src/ui/tokens.ts
 * (LIGHT and DARK). Hosting caches *.css for a year, so pages link this file
 * with a ?v= query: bump it in every page when this file changes.
 */
:root {
  color-scheme: light dark;
  --bg: #F5F3F7; --card: #FFFFFF; --ink: #1E1A24; --muted: #5E5768; --subtle: #8A8394; --line: #E4E0EA;
  --plum: #5B3A8C; --plum-dark: #3F2566; --plum-tint: #EEE8F6; --chip: #ECE8F1; --on-ink: #FFFFFF;
  --warn-bg: #FBEEDD; --warn: #7A410C; --sw-line: rgba(30,26,36,.12);
  /* Dark CTA band: the landing pricing band (HERO.band), the same in both modes. */
  --band: #1E1A24; --band-ink: #FFFFFF; --band-muted: #D6D0DE; --band-line: #5E5768;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141217; --card: #1E1B23; --ink: #F2EFF6; --muted: #B6AEC2; --subtle: #8F879C; --line: #34303B;
    --plum: #B79AE8; --plum-dark: #D7C6F5; --plum-tint: #2C2338; --chip: #29252F; --on-ink: #141217;
    --warn-bg: #3A2A17; --warn: #F2C38B; --sw-line: rgba(255,255,255,.14);
  }
  .cta { border: 1px solid var(--line); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--plum); }
a:focus-visible, .table:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
a:focus-visible { border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.page { max-width: 1240px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.brand { font-family: var(--serif); font-size: 26px; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 18px; align-items: center; font-weight: 600; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav .text-link { display: none; }
.nav .wide { display: none; }

/* Buttons (44 px tap targets) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn.ink { background: var(--ink); color: var(--on-ink); }
.top .btn.ink { font-size: 14px; }
.btn.block { width: 100%; }

/* Article */
.wrap { padding: 8px 20px 40px; }
.crumbs { font-size: 13px; color: var(--subtle); margin: 4px 0 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--plum); text-decoration: none; }
.kicker { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin: 0 0 8px; }
h1.t { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 0 0 10px; }
.meta { font-size: 13px; color: var(--subtle); margin: 0 0 18px; }
.reviewed { display: inline-flex; gap: 6px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.answer { background: var(--plum-tint); border-radius: 16px; padding: 16px 18px; margin: 0 0 22px; }
.answer > h2 { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum-dark); margin: 0 0 6px; }
.answer p { margin: 0; line-height: 1.6; }
h2.s { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 28px 0 10px; }
section { scroll-margin-top: 16px; }
p.body { color: var(--muted); line-height: 1.7; margin: 0 0 12px; font-size: 16px; }
p.body b, p.body strong, ul.body b, ul.body strong { color: var(--ink); }
ul.body { padding-left: 20px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
ul.body li { margin-bottom: 6px; }

/* Formula cards */
.fgrid { display: grid; grid-template-columns: 1fr; gap: 0; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0 0 12px; }
.fhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 10px; }
.fhead h3 { font-size: 17px; margin: 0; }
.badge { background: var(--plum-tint); color: var(--plum-dark); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 8px; }
.shades { list-style: none; margin: 0; padding: 0; }
.shade { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.sw { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--sw-line); flex: none; }
.shade .n { flex: 1; font-weight: 700; }
.shade .n span { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.shade .oz { font-family: var(--serif); font-size: 24px; white-space: nowrap; }
.ps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ps span { background: var(--chip); border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: 13px; }
.why { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 10px 0 0; }

/* Steps, notes, tables, FAQ */
ol.steps { padding-left: 20px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
ol.steps li { margin-bottom: 6px; }
ol.steps b { color: var(--ink); }
.warn { background: var(--warn-bg); color: var(--warn); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.table { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 12px; }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table td { color: var(--muted); }
.table.wide table { min-width: 640px; }
.faq h3 { font-size: 16px; margin: 16px 0 4px; }
.faq p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Sources, at the end of a guide */
.sources { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; font-size: 13px; color: var(--subtle); line-height: 1.6; }
.sources h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin: 0 0 6px; }
.sources ul { margin: 0 0 8px; padding-left: 18px; }
.sources li { margin-bottom: 4px; }
.sources p { margin: 0; }

/* CTA band */
.cta { background: var(--band); color: var(--band-ink); border-radius: 20px; padding: 22px; margin: 28px 0 0; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0 0 6px; }
.cta p { color: var(--band-muted); margin: 0 0 14px; line-height: 1.5; }
.cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn.light { background: var(--band-ink); color: var(--band); }
.cta .btn.ghost { border: 1px solid var(--band-line); color: var(--band-ink); }

/* Guide cards (More guides, index) */
.related { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); display: block; height: 100%; }
.gcard:hover { border-color: var(--plum); }
.gcard small { display: block; color: var(--plum); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.gcard strong { font-size: 16px; }
.gcard span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.5; }
.gindex { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.index { padding: 8px 20px 48px; }
.index .body { max-width: 640px; }
.foot { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; color: var(--subtle); font-size: 12px; line-height: 1.6; }
.foot p { margin: 0; }

/* "On this page" and the side CTA: desktop only */
.toc { display: none; }
.toc .box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.toc .box > b, .toc nav > b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.toc nav a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.toc nav a:last-child { border: 0; }
.toc .promo { background: var(--plum-tint); border-color: var(--plum-tint); }
.toc .promo > b { color: var(--plum-dark); }
.toc .promo p { margin: 8px 0 12px; line-height: 1.5; font-size: 14px; }

@media (min-width: 640px) {
  .gindex { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop (from 900 px) */
@media (min-width: 900px) {
  .top { padding: 20px 56px; }
  .nav .text-link, .nav .wide { display: inline; }
  .nav .narrow { display: none; }
  .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 8px 56px 56px; }
  h1.t { font-size: 58px; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .fgrid .fcard { margin: 0; }
  .fgrid { margin: 0 0 12px; }
  .related { grid-template-columns: repeat(3, 1fr); }
  .toc { display: block; position: sticky; top: 16px; align-self: start; }
  .index { padding: 8px 56px 48px; }
  .gindex { grid-template-columns: repeat(3, 1fr); }
}
