/* Shared article styles keep sourced guides readable without a JavaScript build. */
:root {
  color-scheme: light dark;
  --bg: #fdfaf4;
  --surface: #fff;
  --ink: #1a3b44;
  --muted: #526970;
  --accent: #1f5b68;
  --border: #deddd5;
  --soft: #e6f3ed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font: 1rem/1.75 system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.shell { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.2rem; text-decoration: none; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.nav-links a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.skip-link { position: absolute; left: 1rem; top: -8rem; padding: .75rem; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 1rem; }
.guide { max-width: 54rem; padding-block: 3rem 4rem; }
.guide header { margin-bottom: 2rem; }
.eyebrow { color: var(--accent); font-size: .85rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -.04em; margin: .75rem 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 2.75rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; }
p, li { overflow-wrap: anywhere; }
p { margin: 0 0 1.25rem; }
li { margin-bottom: .6rem; }
ul, ol { padding-left: 1.5rem; }
.lede { font-size: 1.2rem; color: var(--muted); }
.byline, .source, figcaption { font-size: .9rem; color: var(--muted); }
.answer, .notice { border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin-block: 1.5rem; background: var(--surface); }
.answer { background: var(--soft); }
.answer p:last-child, .notice p:last-child { margin-bottom: 0; }
.toc { border-block: 1px solid var(--border); padding-block: 1rem; }
.toc ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: .25rem 1.25rem; margin: 0; }
.toc a { display: inline-flex; min-height: 44px; align-items: center; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; margin-block: 1.5rem; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; }
caption { text-align: left; font-weight: 700; padding: 1rem; }
th, td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); min-width: 9rem; }
thead th { background: var(--soft); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
figure { margin: 2rem 0; }
.screen-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 34rem; margin-inline: auto; }
.screen-pair img, .app-screen { border: 1px solid var(--border); border-radius: 20px; display: block; width: 100%; }
figcaption { margin-top: .75rem; }
.screen-pair figcaption { grid-column: 1 / -1; }
.notice h2:first-child { margin-top: 0; }
.download-links, .cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 1.5rem; }
.button, .btn-primary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 10px; padding: .6rem 1.2rem; font-weight: 700; background: var(--accent); color: var(--surface); text-decoration: none; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.guide-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: block; }
.guide-card h3 { margin-top: 0; }
.site-footer { padding-block: 2rem; border-top: 1px solid var(--border); color: var(--muted); }
.site-footer .shell { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
/* Follow system appearance so reading comparison tables remains comfortable in either theme. */
@media (prefers-color-scheme: dark) {
  :root { --bg: #12262c; --surface: #1a333a; --ink: #e8f0ee; --muted: #bacbcf; --accent: #a3d9d8; --border: #3b535a; --soft: #203e3c; }
}
@media (max-width: 500px) {
  .shell { width: min(100% - 2rem, 70rem); }
  .guide { padding-top: 2rem; }
  .screen-pair { gap: .75rem; }
  th, td { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
