/* Shared styles for guide, terms and privacy pages. */
:root { --navy: #0b1f3a; --gold: #e2b13c; --gold-700: #8a6510; --ink: #142033; --ink-2: #44526a; --line: #d8dfea; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: #f4f6fa; line-height: 1.5; }
.page-top { background: var(--navy); color: #fff; padding: 12px 16px; }
.page-top-inner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-top a { color: #fff; font-weight: 700; text-decoration: none; }
.page-top .by { color: #c9d4e6; font-weight: 400; font-size: .85rem; }
.page { max-width: 900px; margin: 18px auto 40px; background: #fff; border-radius: 12px; padding: 28px 24px; box-shadow: 0 4px 16px rgba(11,31,58,.06); }
h1 { margin: 0 0 4px; color: var(--navy); font-size: 1.7rem; line-height: 1.2; }
h2 { color: var(--navy); font-size: 1.12rem; margin: 22px 0 6px; }
p, li { color: var(--ink-2); }
a { color: #1d3b69; }
.meta { color: #5d6b82; font-size: .9rem; margin: 0 0 14px; }
.note { background: #fdf6e3; border: 1px solid #efd58e; border-radius: 8px; padding: 10px 12px; color: #3d2d05; font-size: .92rem; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 8px; background: var(--gold); color: var(--navy); font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
:focus-visible { outline: 3px solid #c7951f; outline-offset: 2px; }
.foot { text-align: center; color: #5d6b82; font-size: .85rem; padding: 0 16px 30px; }
/* guide */
.guide table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.guide th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #5d6b82; }
.guide td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.cols { display: grid; gap: 16px; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; background: #f3f6fb; border-radius: 8px; padding: 8px 10px; line-height: 1.6; color: var(--ink); }
.formula b { color: var(--navy); }
.example { border: 2px solid var(--gold); border-radius: 10px; padding: 10px 12px; font-size: .86rem; }
.example table td:first-child { font-weight: 400; color: var(--ink-2); white-space: normal; }
.example table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.example .tot td { font-weight: 800; color: var(--navy); border-top: 2px solid var(--navy); }
@media (min-width: 760px) { .cols { grid-template-columns: 1.15fr 1fr; } .page { padding: 32px 36px; } }
@media print {
  @page { size: Letter; margin: 0.45in; }
  body { background: #fff; font-size: 9pt; line-height: 1.3; }
  .page-top, .noprint, .foot { display: none !important; }
  .page { margin: 0; padding: 0; box-shadow: none; max-width: none; border-radius: 0; }
  h1 { font-size: 15pt; } h2 { font-size: 10.5pt; margin: 8px 0 3px; }
  p, li { color: #000; margin: 2px 0; }
  .guide table { font-size: 8pt; }
  .guide th, .guide td { padding: 2px 4px; border-color: #bbb; }
  .cols { grid-template-columns: 1.15fr 1fr; gap: 12px; }
  .formula { font-size: 7.6pt; background: #fff; border: 1px solid #999; padding: 5px 7px; line-height: 1.45; }
  .example { font-size: 8pt; border-color: #000; padding: 6px 8px; }
  .note { background: #fff; border-color: #000; color: #000; }
  a { color: #000; }
}
