/* Variables */
:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --primary: #c2562f;
  --accent: #e0a03a;
  --link: #82381e;
  --border: #d6c5b2;
  --radius: 12px;
  --heading: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}



/* Layout */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); }
.shell { width: calc(100% - 48px); max-width: 1120px; margin-inline: auto; }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 264px); gap: 48px; padding-block: 48px 64px; }
.home-grid { grid-template-columns: minmax(0, 1fr); }
.reading { min-width: 0; }
.reading > section + section { margin-top: 48px; }
h1, h2, h3 { margin: 0 0 12px; font-family: var(--heading); line-height: 1.2; }
h1 { font-size: 48px; letter-spacing: -.035em; }
h2 { font-size: 28px; letter-spacing: -.02em; }
h3 { font-size: 22px; }
p { max-width: 70ch; margin: 0 0 16px; }
ul, ol { margin-block: 12px 16px; padding-inline-start: 24px; }
li + li { margin-top: 8px; }
a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--text); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
:target { scroll-margin-top: 16px; }



/* Components */
.skip { position: absolute; top: 0; left: 16px; background: var(--card); padding: 8px 12px; transform: translateY(-150%); z-index: 2; }
.skip:focus { transform: none; }
.wordmark { color: var(--text); font: 700 22px/1.2 var(--heading); text-decoration: none; white-space: nowrap; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.masthead nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; }
.masthead nav a[aria-current], .masthead nav a:hover { text-decoration: underline; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.note { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 24px; }
.note h2 { font-size: 22px; }
.note ul { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { padding-block: 16px; cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--link); }
.faq details p { margin: 0; padding: 0 0 16px 24px; }
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; margin-block: 16px; font-size: 14px; line-height: 1.5; }
.compare caption { text-align: left; color: var(--muted); margin-bottom: 8px; }
.compare th, .compare td { border-top: 1px solid var(--border); padding: 12px 8px; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.compare thead th { background: var(--card); border-bottom: 2px solid var(--primary); }
.compare thead th:last-child { width: 24%; }
.compare tbody tr:last-child > * { border-bottom: 1px solid var(--border); }
.mobile-label { display: none; }



/* Sections */
.masthead { border-bottom: 1px solid var(--border); background: var(--card); }
.masthead-inner { min-height: 64px; }
.hero { border-bottom: 1px solid var(--border); background: var(--card); }
.hero-inner { padding-block: 48px 32px; }
.answer { font-size: 18px; max-width: 66ch; }
.edition { color: var(--muted); font-size: 14px; }
.flightline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; list-style: none; padding: 0; margin: 24px 0 0; }
.flightline li { position: relative; border-top: 2px solid var(--primary); margin: 0; }
.flightline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 1px solid var(--link); }
.flightline a { display: flex; align-items: center; min-height: 44px; padding-top: 4px; font-weight: 700; text-decoration: none; }
.flightline a:hover { text-decoration: underline; }
.policy-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.policy-grid h2 { grid-column: 1 / -1; margin-bottom: 0; }
.policy-grid p:last-child { margin-bottom: 0; }
.index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.index > div { padding-top: 16px; border-top: 1px solid var(--border); }
.index p:last-child { margin-bottom: 0; }
.steps > section { border-top: 1px solid var(--border); padding-block: 24px 8px; }
.steps > section h3 span { color: var(--link); margin-right: 8px; }
.footer { border-top: 1px solid var(--border); padding-block: 24px; background: var(--card); }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; column-gap: 16px; }
.footer nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }



/* Mobile */
@media (max-width: 860px) {
  .main-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sidebar { grid-row: 1; }
  .sidebar .note { max-width: 70ch; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner, .footer-inner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .masthead-inner { padding-top: 12px; }
  .masthead nav { column-gap: 16px; }
  .hero-inner { padding-block: 32px 24px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .answer { font-size: 16px; }
  .sidebar { display: none; }
  .flightline, .index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .policy-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .main-grid { padding-block: 32px 48px; }
  .reading > section + section { margin-top: 32px; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare caption { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare tbody tr { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-top: 12px; }
  .compare tbody tr:last-child > * { border-bottom: 0; }
  .compare tbody th { font-size: 18px; border-top: 0; padding: 4px 0 8px; }
  .compare td { display: grid; grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr); gap: 8px; padding: 8px 0; }
  .mobile-label { display: block; color: var(--muted); font-weight: 600; }
}