:root {
  color-scheme: dark;
  --page: #101012;
  --panel: #19191d;
  --line: #8f8f99;
  --muted: #b9b9c2;
  --gold: #efc685;
  --green: #66e3a0;
  color: #e8e8ec;
  background: var(--page);
  font: 16px/1.75 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--gold); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { color: #fff0d7; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 3px; }
.skip { position: absolute; left: 16px; top: -100px; padding: 8px 16px; background: var(--panel); z-index: 2; }
.skip:focus { top: 12px; }
.site-header, main, .site-footer { width: min(100%, 1120px); margin-inline: auto; padding-inline: 32px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 30px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; font-size: 22px; color: inherit; text-decoration: none; line-height: 1.3; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.main-nav, .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; }
.main-nav a { text-decoration: none; padding-block: 6px; }
.main-nav [aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.main-nav .planner-link { border: 1px solid var(--line); border-radius: 8px; padding: 6px 13px; }
main { padding-block: 32px 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 5.1vw, 54px); max-width: 850px; margin: 0 0 22px; }
h2 { font-size: clamp(24px, 3vw, 30px); margin: 42px 0 16px; scroll-margin-top: 24px; }
h3 { font-size: 20px; margin: 26px 0 10px; }
p { margin: 0 0 18px; }
ul, ol { padding-left: 24px; margin: 0 0 22px; }
li + li { margin-top: 9px; }
strong { color: #f5f5f7; }
.lead { color: #d1d1d9; font-size: 19px; line-height: 1.7; max-width: 820px; }
.meta { color: var(--muted); font-size: 13px; margin: 22px 0 28px; }
.hero { position: relative; padding: 10px 0 34px; border-bottom: 1px solid #393941; }
.hero h1 { max-width: 820px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 17px; border: 1px solid var(--line); border-radius: 10px; font-weight: 650; text-decoration: none; background: var(--panel); color: #f5f5f7; }
.button.primary { color: #211708; border-color: var(--gold); background: var(--gold); }
.button:hover { background: #29292f; color: #fff; }
.button.primary:hover { background: #ffdfa7; color: #211708; }
.article { max-width: 820px; margin-inline: auto; }
.contents { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 28px 0 32px; }
.contents > p { font-weight: 700; margin-bottom: 8px; }
.contents ul { display: flex; flex-wrap: wrap; gap: 7px 22px; list-style: none; padding: 0; margin: 0; }
.contents li + li { margin: 0; }
.contents a { font-size: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; padding: 25px; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; }
.guide-card h3 { margin: 8px 0 14px; font-size: 23px; }
.guide-card p { color: #c4c4cd; }
.guide-card > a { margin-top: auto; font-weight: 650; }
.card-number { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.note, .example { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 22px 24px; margin: 26px 0; }
.note { border-left: 3px solid var(--gold); }
.example { border-left: 3px solid var(--green); }
.note h3, .example h3 { margin-top: 0; }
.note > :last-child, .example > :last-child { margin-bottom: 0; }
.formula { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14px; background: #222228; border-radius: 8px; padding: 14px 16px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
caption { text-align: left; padding: 15px 18px; color: var(--muted); background: var(--panel); }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid #3b3b43; vertical-align: top; }
th { background: #222228; font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
.table-wrap th:first-child { min-width: 130px; }
.faq { margin: 18px 0; }
.faq details { padding: 16px 0; border-bottom: 1px solid #45454d; }
.faq summary { cursor: pointer; color: #f5f5f7; font-weight: 650; }
.faq details p { margin: 14px 0 0; }
.next { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.next p { margin: 0; }
.next .eyebrow { margin-bottom: 4px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 26px 38px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 14px 0 0; }
.language-picker { position: relative; flex: 0 0 auto; margin-inline-start: auto; font-size: 14px; }
.language-picker summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; list-style: none; color: var(--gold); }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:focus-visible, .language-menu a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.language-picker[open] summary { background: var(--panel); }
.language-chevron { margin-left: 4px; }
.language-menu { position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; min-width: 180px; max-width: calc(100vw - 40px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 6px; box-shadow: 0 12px 30px #0008; }
.language-menu a { display: flex; align-items: center; padding: 9px 12px; min-height: 44px; border-radius: 7px; text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current="page"] { color: #fff; background: #36312a; }
@media (max-width: 680px) {
  .site-header, main, .site-footer { padding-inline: 20px; }
  .site-header { padding-block: 20px; }
  .main-nav { gap: 5px 17px; }
  main { padding-top: 24px; padding-bottom: 44px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card, .note, .example, .contents { padding: 20px; }
  .breadcrumb { margin-bottom: 24px; }
  .lead { font-size: 17px; }
  h2 { margin-top: 34px; }
  th, td { padding: 11px 13px; }
}
@media print {
  :root { color: #111; background: #fff; }
  a, strong, .eyebrow, .meta, .lead, .site-footer, .guide-card p, .card-number { color: #222; }
  .skip, .hero-actions, .main-nav, .contents, .language-picker { display: none; }
  .guide-card, .note, .example, .formula, th, caption { background: #fff; }
  .table-wrap { overflow: visible; }
  main { padding-top: 12px; }
  h2, h3 { break-after: avoid; }
}
