/* Shared styles for the static guide pages. Tokens mirror website/index.html. */
:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #4F5651;
  --ink-muted: #767D78;
  --green: #2E7D32;
  --green-deep: #1B5E20;
  --green-soft: #E8F5E9;
  --line: #E4E2D9;
  --amber-a: #F9AA26;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* nav */
nav { border-bottom: 1px solid var(--line); background: var(--bg); }
nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { text-decoration: none; }
.brand-name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { background: var(--green); color: #FFFFFF; padding: 11px 18px; border-radius: 12px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--green-deep); color: #FFFFFF; }

/* article */
.article { max-width: 800px; padding-top: 40px; padding-bottom: 88px; }
.crumbs { font-size: 14px; color: var(--ink-muted); margin-bottom: 28px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 14px; }
.reviewed { font-size: 14px; color: var(--ink-muted); margin-top: 14px; }
.answer {
  margin-top: 28px; padding: 22px 24px; font-size: 19px; line-height: 1.55;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 0 14px 14px 0;
}
.article p { color: var(--ink-soft); }
.article p + p { margin-top: 14px; }
.article p.answer { color: var(--ink); }
.article article ul { color: var(--ink-soft); padding-left: 22px; display: grid; gap: 8px; }
.article article li::marker { color: var(--green); }
.article a { color: var(--green-deep); text-underline-offset: 3px; }

.note { margin-top: 16px; padding: 16px 18px; background: var(--green-soft); border-radius: 12px; }
.article p.note { color: var(--ink); }
.legal ul { margin: 10px 0 14px; }
.legal ul + p { margin-top: 14px; }

/* tables */
.table-wrap { margin: 24px 0 16px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--bg); }
tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
tbody td { color: var(--ink-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* app call to action */
.cta {
  margin-top: 56px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  background: var(--green-soft); border-radius: 18px;
}
.cta h2 { margin: 0 0 8px; font-size: 22px; }
.article .cta p { color: var(--ink-soft); font-size: 16px; }
.play-badge { display: inline-flex; border-radius: 10px; }
.play-badge img { height: 60px; width: auto; }

/* sources and related */
.sources, .related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h2, .related h2 { margin-top: 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.article .sources ul { font-size: 15px; gap: 10px; }
.sources a { overflow-wrap: anywhere; }
.related ul { list-style: none; display: grid; gap: 10px; }
.related a { font-weight: 500; }

/* guides index */
.guide-list { list-style: none; margin-top: 36px; display: grid; gap: 14px; }
.guide-list a {
  display: block; padding: 20px 22px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.guide-list a:hover { border-color: var(--green); }
.guide-list strong { display: block; font-size: 18px; font-weight: 600; color: var(--ink); }
.guide-list span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* footer */
footer { background: #111A13; color: rgba(255, 255, 255, 0.7); padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
footer .brand-name { color: #FFFFFF; display: block; margin-bottom: 12px; }
footer p { max-width: 340px; }
footer h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer a { text-decoration: none; color: rgba(255, 255, 255, 0.82); overflow-wrap: anywhere; }
footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-disclaimer { margin-top: 48px; padding: 18px 20px; border-left: 3px solid var(--amber-a); background: rgba(255, 255, 255, 0.05); border-radius: 0 10px 10px 0; font-size: 14px; }
.footer-disclaimer strong { color: #FFFFFF; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .article { padding-top: 28px; padding-bottom: 64px; }
  .answer { font-size: 17px; padding: 18px; }
  h2 { font-size: 21px; margin-top: 40px; }
  th, td { padding: 12px 14px; }
  table { font-size: 15px; }
  tbody th { white-space: normal; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 22px; }
}
