/* Shared reading layout for the standalone guides and dated VSO announcements. */
@media screen {
  :root {
    color-scheme: light;
    --bg: #fff;
    --ink: #1d1d1f;
    --muted: #48484c;
    --line: #d2d2d7;
    --accent: #0056a3;
    --cyan: #005daf;
    --panel: #f5f5f7;
  }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
    line-height: 1.7;
  }

  a { color: var(--cyan); }
  a:hover { color: #003e76; }
  a:focus-visible, summary:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }

  body > header, .site-header { background: #fafafa; border-color: var(--line); }
  body > header:not(.site-header) { margin-inline: auto; padding-block: 1rem; }
  body > header a, .site-nav a { color: var(--muted); text-decoration: none; }
  body > header a:hover, .site-nav a:hover { color: var(--cyan); text-decoration: underline; }
  nav [aria-current], .site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; text-decoration: underline; }
  body > header > a:first-child:not([hreflang]), .brand { color: var(--ink); font-weight: 650; }
  .brand img { filter: none; }

  main:not(.wrap) { max-width: 55rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
  main.wrap { max-width: 72rem; }
  .hero { max-width: 56rem; padding-block: clamp(1.25rem, 3vw, 3rem) clamp(2.25rem, 4vw, 3.5rem); }
  .breadcrumb { margin-block: 1.25rem 0; }

  h1, h2, h3, .content strong, .toc strong, summary { color: var(--ink); }
  main article > h1, .hero h1 {
    margin-block: .65rem 1.15rem;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  main article > h1:lang(ja), .hero h1:lang(ja),
  main article > h1:lang(zh), .hero h1:lang(zh) {
    font-size: clamp(1.9rem, 4vw, 3.5rem);
    line-height: 1.25;
    letter-spacing: -.025em;
  }
  .title-chunk, .title-phrase { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .eyebrow { font-size: .8rem; color: var(--accent); font-weight: 700; letter-spacing: .06em; }
  .lead, .intro { color: #36363a; font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.6; }
  main > article > h2, .content h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
  .content h3 { font-size: 1.14rem; }
  .content p, .content li, .byline, .small, .result-card dt { color: var(--muted); }

  .toc, .flow li, .evidence, .note, .cta,
  .guide-cards article, .practical-page .guide-cards article, .result-card {
    background: var(--panel);
    color: var(--ink);
    border: 1px solid #e3e3e7;
    border-radius: 1rem;
  }
  .guide-cards article, .result-card { padding: clamp(1.15rem, 2.5vw, 1.75rem); }
  .status, .callout {
    background: #f1f6fc;
    color: var(--ink);
    border: 1px solid #c4d9ee;
    border-inline-start: 4px solid #0066bd;
    border-radius: .75rem;
  }
  .status h2, .evidence h2, .result-card h3 { color: var(--ink); }
  .result-card dd { color: #204869; }
  /* The historical guide index includes a dark, inline-styled resources panel. */
  #research-resources h2 { color: inherit; }
  .related-guide { border-inline-start-color: #0066bd; }

  caption, th, thead th { background: var(--panel); color: var(--ink); }
  td, tbody th { color: var(--muted); }
  th, td, .footer, footer { border-color: var(--line); }
  .table-wrap { background: #fff; }
  details { background: #fff; }
  pre, .digest {
    background: #f2f4f7;
    color: #173651;
    border-color: #d6dee6;
  }

  .button, .button-primary {
    background: #0064bd;
    border: 1px solid #0064bd;
    border-radius: 99rem;
    color: #fff;
    padding: .65rem 1.15rem;
    text-decoration: none;
  }
  .button.secondary { background: #fff; color: var(--cyan); border-color: currentColor; }
  .button:hover, .button-primary:hover, .button.secondary:hover { background: #004f95; border-color: #004f95; color: #fff; }
  .skip:focus { background: #fff; color: #003e76; }

  .footer, body > footer { color: var(--muted); }
}

@media screen and (max-width: 600px) {
  body > header:not(.site-header) { padding-block: .9rem; }
  .nav-wrap { gap: .65rem; }
  .hero h1, main article > h1 { letter-spacing: -.03em; }
  .cta { padding: 1.1rem; }
}
