:root {
  color-scheme: light;
  --ink: #141922;
  --muted: #515b6a;
  --line: #dde2e8;
  --paper: #f6f7f9;
  --red: #bd101b;
  --red-hover: #990d17;
  --rose: #fff2f3;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--red); text-underline-offset: .2em; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 4vw, 2.15rem); }
h3 { font-size: clamp(1.4rem, 4vw, 1.75rem); }
.wrap { width: min(1120px, 100% - 3.5rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; top: .5rem; left: .5rem; padding: .5rem 1rem; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.topbar, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand span { font-size: 1.16em; line-height: 1; }
.topbar nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .9rem; }
.topbar nav a:hover { color: var(--red); }

.hero { background: #161c28; color: #fff; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 6vw, 5.5rem);
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
.eyebrow {
  color: #ffc3c7;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.hero h1 { margin-block: .85rem 1rem; font-size: clamp(2.45rem, 5.6vw, 4.45rem); font-weight: 800; }
.hero-copy > p:not(.eyebrow) { max-width: 56ch; color: #e0e5ee; font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-copy .button { margin-top: 1.55rem; }
.hero :focus-visible { outline-color: #ffb1b7; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.35;
  cursor: pointer;
}
.button-primary { background: #c91c28; color: #fff; padding-inline: 1.1rem; }
.button-primary:hover { background: #aa1520; color: #fff; }
.button-outline, .copy { border-color: var(--line); background: #fff; color: var(--ink); }
.button-outline:hover, .copy:hover { color: var(--red); border-color: var(--red); }

.receipt {
  position: relative;
  border: 1px solid #495262;
  border-top: 3px solid #e64b57;
  border-radius: .9rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: #232c3a;
}
.receipt-heading { margin-bottom: 1rem; color: #f5d1d4; font-weight: 750; }
.receipt-list { position: relative; padding-left: 1.3rem; }
.receipt-list::before { content: ""; position: absolute; top: .65rem; bottom: 1.4rem; left: .22rem; width: 1px; background: #718094; }
.receipt-list > div { position: relative; }
.receipt-list > div + div { margin-top: .95rem; }
.receipt-list > div::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: .56rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #ff909a;
}
.receipt dt { font-weight: 750; }
.receipt dd { color: #e0e5ee; line-height: 1.5; }

.walkthrough { padding-block: clamp(2.2rem, 6vw, 4.2rem); }
.section-intro { margin-bottom: 1.55rem; }
.section-intro p { color: var(--muted); margin-top: .45rem; }
.guide-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.step-nav { position: sticky; top: 1rem; }
.step-nav ol { display: grid; gap: .3rem; padding: 0; list-style: none; }
.step-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.65rem;
  border-radius: .5rem;
  padding: .45rem .6rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.step-nav span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #e9edf2;
  color: var(--ink);
  font-size: .875rem;
}
.step-nav a:hover, .step-nav a[aria-current] { color: var(--red); background: var(--rose); }
.step-nav a[aria-current] span { background: var(--red); color: #fff; }
.step, .sources {
  margin-bottom: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  scroll-margin-top: 1rem;
}
.step > :not(:first-child), .sources > :not(:first-child) { margin-top: .95rem; }
.step h3:focus { outline: none; }
fieldset {
  min-width: 0;
  padding: 0;
  margin-inline: 0;
  border: 0;
}
legend { margin-bottom: .5rem; padding: 0; font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: .55rem; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}
.choices label:has(:checked) { color: var(--red-hover); border-color: #d98e94; background: var(--rose); }
.choices label:has(:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.choices input { width: 1rem; height: 1rem; flex: 0 0 1rem; margin: 0; accent-color: var(--red); }
.choices input:focus-visible { outline: none; }
.route-advice { color: var(--muted); }
.note { padding: .85rem 1rem; border-left: 3px solid #c91c28; border-radius: 0 .55rem .55rem 0; background: var(--paper); }
.note a { display: inline-block; margin-top: .3rem; font-weight: 650; }
.checklist, .form-instructions { padding-left: 1.25rem; }
.checklist li + li, .form-instructions li + li { margin-top: .44rem; }
.checklist li::marker, .form-instructions li::marker { color: var(--red); font-weight: 750; }
.field-guide { border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.field-guide > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: .4rem 1rem; padding: .75rem .9rem; }
.field-guide > div + div { border-top: 1px solid var(--line); }
.field-guide dt { font-weight: 750; }
.field-guide dd { color: var(--muted); }
.template { border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.template-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .55rem .75rem; background: var(--paper); font-weight: 750; }
.template textarea {
  display: block;
  width: 100%;
  min-height: 18rem;
  resize: vertical;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: .9rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.template textarea:focus-visible { outline-offset: -4px; }
.feedback { color: var(--muted); font-weight: 650; }
.feedback:empty { margin: 0; }
.replies { border-block: 1px solid var(--line); }
.replies details + details { border-top: 1px solid var(--line); }
.replies summary { padding: .8rem .2rem; font-weight: 750; cursor: pointer; }
.replies summary::marker { color: var(--red); }
.replies summary:hover { color: var(--red); }
.replies p { padding: 0 .2rem .85rem 1.15rem; color: var(--muted); }
.sources { background: var(--paper); }
.sources h2 { font-size: 1.35rem; }
.sources ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; padding: 0; }
.sources p { color: var(--muted); font-size: .875rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; color: var(--muted); }

@media (max-width: 800px) {
  .hero-layout, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { gap: 1.5rem; }
  .step-nav { position: static; }
  .step-nav ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
  .step-nav a { padding-inline: .45rem; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 2rem); }
  .topbar { align-items: flex-start; font-size: .925rem; }
  .topbar nav { justify-content: flex-end; gap: .3rem .7rem; }
  .topbar nav a { padding-block: .2rem; }
  .field-guide > div { grid-template-columns: minmax(0, 1fr); }
  .choices { align-items: stretch; flex-direction: column; }
}
