:root {
  --ink: #0b1730;
  --ink-2: #17284a;
  --cloud: #f7f5ec;
  --paper: #fffdf6;
  --sky: #20bde6;
  --sky-soft: #dff8ff;
  --gold: #ffc62e;
  --gold-soft: #fff1b5;
  --turf: #59d66d;
  --violet: #7044d8;
  --pink: #ed4da7;
  --red: #dc4747;
  --muted: #62708b;
  --line: #cbd2d6;
  --shadow: 8px 8px 0 rgba(11, 23, 48, 0.11);
  --shadow-small: 4px 4px 0 rgba(11, 23, 48, 0.12);
  --max: 1180px;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(32, 189, 230, 0.14), transparent 24rem),
    radial-gradient(circle at 90% 40%, rgba(112, 68, 216, 0.1), transparent 28rem),
    linear-gradient(rgba(11, 23, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 23, 48, 0.035) 1px, transparent 1px),
    var(--cloud);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

button,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 4px solid var(--sky);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  border: 2px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 236, 0.96);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(14px);
}

.season-rail {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem max(1rem, calc((100vw - var(--max)) / 2));
  color: var(--cloud);
  background: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.season-rail > span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-shell {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--gold);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.045em;
}

.brand-copy small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.primary-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-nav a {
  min-height: 44px;
  padding: 0.7rem 0.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-color: var(--sky);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0.7rem;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.button {
  min-height: 48px;
  padding: 0.78rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-small);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(11, 23, 48, 0.15);
}

.button--dark {
  color: var(--cloud);
  background: var(--ink);
}

.button--gold {
  background: var(--gold);
}

.button--ghost {
  color: var(--cloud);
  border-color: rgba(247, 245, 236, 0.75);
  background: rgba(247, 245, 236, 0.08);
  box-shadow: 4px 4px 0 rgba(247, 245, 236, 0.25);
}

.button--small {
  min-height: 42px;
  padding: 0.58rem 0.82rem;
}

.button-row,
.freshness-row,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.text-link {
  font-weight: 850;
}

main {
  overflow: hidden;
}

.breadcrumbs {
  width: min(calc(100% - 2rem), var(--max));
  margin: 1.3rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.section-shell,
.home-hero,
.signal-strip,
.page-hero {
  width: min(calc(100% - 2rem), var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section-shell {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #226077;
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.04;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.018em;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 7vw, 6.9rem);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin-top: 0;
}

.home-hero {
  position: relative;
  min-height: 660px;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  align-items: stretch;
  color: var(--cloud);
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(11, 23, 48, 0.14);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  opacity: 0.14;
  background:
    radial-gradient(circle at 25% 20%, transparent 0 4px, var(--sky) 5px 6px, transparent 7px),
    linear-gradient(31deg, transparent 48%, var(--sky) 49% 50%, transparent 51%);
  background-size: 90px 90px, 180px 180px;
  pointer-events: none;
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero__copy .eyebrow {
  color: var(--sky);
}

.home-hero__copy h1 {
  max-width: 10ch;
  color: var(--cloud);
  font-size: clamp(4rem, 7vw, 7rem);
}

.home-hero__copy h1::first-line {
  color: var(--gold);
}

.home-hero__lede {
  max-width: 35rem;
  margin-bottom: 1.8rem;
  color: #d9e4ed;
  font-size: 1.12rem;
}

.home-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.home-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -2px;
  z-index: 1;
  width: 44px;
  background: linear-gradient(100deg, var(--ink), transparent);
}

.home-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

figcaption {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.home-hero__visual figcaption {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.35rem 0.55rem;
  color: var(--cloud);
  background: rgba(11, 23, 48, 0.8);
}

.fact-row {
  margin: 2.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(247, 245, 236, 0.25);
}

.fact-row div {
  padding: 1rem 0.7rem 0 0;
}

.fact-row dt {
  color: #95a7bb;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-row dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 900;
}

.signal-strip {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.signal-strip > div {
  min-height: 92px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.signal-strip > div:last-child {
  border-right: 0;
}

.signal-strip strong {
  font-size: 0.88rem;
}

.signal-strip small {
  color: var(--muted);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--turf);
  box-shadow: 0 0 0 6px rgba(89, 214, 109, 0.2);
}

.source-badge {
  width: fit-content;
  padding: 0.27rem 0.5rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: var(--sky-soft);
  border: 1px solid currentColor;
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.source-badge--community {
  background: var(--gold-soft);
}

.source-badge--unknown {
  background: #f3e8e8;
  color: #8e3030;
}

.source-badge--live {
  color: var(--ink);
  background: var(--turf);
}

.intro-grid,
.split-feature,
.content-grid,
.guide-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

.intro-grid {
  grid-template-columns: 1.3fr 0.8fr;
  align-items: start;
}

.intro-grid > div > p:not(.eyebrow),
.narrow-copy > p,
.article-section p {
  color: #3f4c65;
  font-size: 1.03rem;
}

.inline-note {
  padding: 1rem 1.1rem;
  color: var(--ink) !important;
  background: var(--gold-soft);
  border-left: 5px solid var(--gold);
}

.source-key {
  padding: 1.6rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.source-key h2 {
  font-size: 2rem;
}

.source-key > div {
  padding: 0.8rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
}

.source-key > div span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.section-heading {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 34rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.route-card {
  min-height: 290px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-small);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.route-card:nth-child(2n) {
  background: var(--sky-soft);
}

.route-card:nth-child(4n + 3) {
  background: var(--gold-soft);
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 10px 0 rgba(11, 23, 48, 0.12);
}

.route-card__index {
  font-family: var(--display);
  font-size: 2.1rem;
}

.route-card__tag {
  width: fit-content;
  margin: 1.4rem 0 0.7rem;
  padding: 0.2rem 0.45rem;
  color: var(--cloud);
  background: var(--ink);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-card strong {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.route-card > span:nth-of-type(3) {
  color: var(--muted);
  font-size: 0.86rem;
}

.route-card b {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.78rem;
}

.split-feature {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.split-feature figure,
.page-hero__media {
  margin: 0;
}

.split-feature figure img,
.page-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 11px 11px 0 var(--sky);
}

.split-feature figcaption,
.page-hero__media figcaption {
  margin-top: 0.65rem;
}

.step-list {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step-list li {
  padding: 0.9rem 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.step-list li > span {
  color: var(--violet);
  font-family: var(--display);
  font-size: 1.45rem;
}

.step-list p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-item {
  background: var(--paper);
  border: 2px solid var(--ink);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  width: 100%;
  min-height: 70px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-weight: 850;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.faq-item button [aria-hidden] {
  color: var(--violet);
  font-size: 1.4rem;
}

.faq-item [data-faq-panel] {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq-item [data-faq-panel] p {
  margin-bottom: 0;
}

.page-hero {
  position: relative;
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 14px;
  background: linear-gradient(90deg, var(--sky) 0 33%, var(--gold) 33% 66%, var(--violet) 66%);
}

.page-hero--compact {
  grid-template-columns: 1fr;
  padding-right: min(15vw, 11rem);
}

.page-hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 6vw, 5.8rem);
}

.page-hero .lede {
  max-width: 49rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
}

.content-aside,
.guide-aside {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 1rem;
}

.aside-card {
  padding: 1.25rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-small);
}

.aside-card h2 {
  font-size: 1.8rem;
}

.aside-card p,
.aside-card li {
  color: var(--muted);
  font-size: 0.88rem;
}

.aside-card ol {
  margin: 0;
  padding-left: 1.2rem;
}

.aside-card > a:not(.text-link) {
  padding: 0.55rem 0;
  display: block;
  font-size: 0.85rem;
  font-weight: 850;
  border-top: 1px solid var(--line);
}

.warning-panel {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff0ed;
  border: 2px solid var(--ink);
  border-left: 10px solid var(--red);
}

.warning-panel--soft {
  background: var(--sky-soft);
  border-left-color: var(--sky);
}

.warning-panel h2 {
  margin: 0.8rem 0 0.6rem;
  font-size: 2rem;
}

.warning-panel p {
  margin-bottom: 0;
  color: #48536a;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.code-card {
  padding: 1.2rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-small);
}

.code-card__top,
.code-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.code-card code {
  font-size: 1.08rem;
  font-weight: 950;
}

.code-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.code-card__actions {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.code-card__actions span {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

.filter-bar {
  margin: 2rem 0;
}

.filter-chip {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--gold);
  box-shadow: var(--shadow-small);
}

.tier-board {
  display: grid;
  gap: 1.2rem;
}

.tier-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.tier-label {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  border-right: 2px solid var(--ink);
  background: var(--gold);
}

.tier-label--a {
  background: var(--sky);
}

.tier-label--b {
  background: var(--turf);
}

.tier-label--c,
.tier-label--watch {
  background: #e6dfef;
}

.tier-label strong {
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 0.9;
}

.tier-label span {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-content {
  padding: 1.2rem;
}

.tier-content > p {
  color: var(--muted);
}

.tier-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.tier-item {
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fbfaf6;
}

.tier-item[hidden] {
  display: none;
}

.tier-item > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tier-item > div span {
  color: var(--violet);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-item p {
  margin: 0.55rem 0;
  font-size: 0.84rem;
}

.tier-item small {
  color: var(--muted);
}

.decision-banner {
  margin-bottom: 2rem;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--cloud);
  background: var(--ink);
  border: 2px solid var(--ink);
}

.decision-banner > span {
  padding: 0.35rem 0.5rem;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-banner p {
  margin: 0;
  color: #b9c7d5;
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.starter-card {
  position: relative;
  padding: 1.5rem;
  background: var(--sky-soft);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.starter-card--2 {
  background: #ffebe2;
}

.starter-card--3 {
  background: #e9f9df;
}

.starter-card__number {
  position: absolute;
  top: -1rem;
  right: 0.4rem;
  color: rgba(11, 23, 48, 0.08);
  font-family: var(--display);
  font-size: 7rem;
  line-height: 1;
}

.starter-card h2 {
  position: relative;
  font-size: 2.6rem;
}

.starter-card h3 {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.starter-card ul {
  padding-left: 1.1rem;
  color: #45516a;
  font-size: 0.85rem;
}

.next-route {
  margin-top: 3rem;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.next-route h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.matchup-tool {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  color: var(--cloud);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--sky);
}

.matchup-tool .eyebrow {
  color: var(--sky);
}

.matchup-tool h2 {
  font-size: 2.6rem;
}

.matchup-tool p {
  color: #b8c7d8;
}

.matchup-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 0.7rem;
}

.matchup-inputs label {
  display: grid;
  gap: 0.4rem;
  color: #c6d2dd;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.matchup-inputs select {
  min-height: 52px;
  padding: 0.5rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--sky);
}

.matchup-inputs > span {
  padding-bottom: 0.65rem;
  color: var(--gold);
  font-size: 1.5rem;
}

.matchup-result {
  grid-column: 1 / -1;
  padding: 1.2rem;
  display: grid;
  background: rgba(247, 245, 236, 0.08);
  border: 1px solid rgba(247, 245, 236, 0.3);
}

.matchup-result[data-state="strong"] {
  background: rgba(89, 214, 109, 0.18);
}

.matchup-result[data-state="weak"] {
  background: rgba(220, 71, 71, 0.2);
}

.matchup-result > span {
  color: var(--sky);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.matchup-result strong {
  margin: 0.35rem 0;
  font-size: 1.15rem;
}

.matchup-result p {
  margin: 0;
}

.table-scroll {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--cloud);
  background: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody th {
  color: var(--violet);
}

td {
  color: #4d5a70;
  font-size: 0.84rem;
}

.guide-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

.article-sections {
  margin-top: 4rem;
  border-top: 2px solid var(--ink);
}

.content-main > .article-sections,
.tier-board + .article-sections,
.starter-grid + .article-sections,
.type-table + .article-sections {
  margin-top: 3rem;
}

.article-section {
  padding: 2.2rem 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.article-section h2 {
  max-width: 18ch;
  font-size: 2.5rem;
}

.section-index {
  color: var(--violet);
  font-family: var(--display);
  font-size: 1.8rem;
}

.check-list {
  margin: 1rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: #3e4a62;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #197b42;
  font-weight: 950;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.method-grid article,
.source-list article {
  padding: 1.3rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-small);
}

.method-grid article > span {
  color: var(--violet);
  font-family: var(--display);
  font-size: 2rem;
}

.method-grid h2,
.source-list h2 {
  margin-top: 1rem;
  font-size: 1.7rem;
}

.method-grid p,
.source-list p {
  color: var(--muted);
  font-size: 0.86rem;
}

.source-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.narrow-copy {
  max-width: 800px;
}

.narrow-copy h2 {
  margin-top: 2.6rem;
}

.not-found {
  width: min(calc(100% - 2rem), 850px);
  min-height: 58vh;
  margin: 4rem auto;
  padding: clamp(2rem, 7vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--cloud);
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--gold);
}

.not-found h1 {
  color: var(--gold);
}

.not-found p:not(.eyebrow) {
  color: #c4d0db;
}

.site-footer {
  padding: 4.5rem max(1rem, calc((100vw - var(--max)) / 2)) 1rem;
  color: #c7d4df;
  background: var(--ink);
  border-top: 8px solid var(--sky);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.7fr);
  gap: 2rem;
}

.footer-grid h2 {
  color: var(--cloud);
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  color: #aebdca;
  font-size: 0.82rem;
}

.footer-grid a {
  margin: 0.5rem 0;
  display: block;
}

.footer-mark {
  color: var(--cloud) !important;
  font-family: var(--display);
  font-size: 1.8rem !important;
  letter-spacing: 0.05em;
}

.footer-mark span {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #8295a8;
  border-top: 1px solid #2f4262;
  font-size: 0.7rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  color: var(--cloud);
  background: var(--ink);
  border: 2px solid var(--sky);
  box-shadow: var(--shadow-small);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast[data-visible] {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .header-shell {
    grid-template-columns: auto auto 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    order: 2;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    width: min(360px, calc(100vw - 2rem));
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow);
  }

  .primary-nav[data-open] {
    display: flex;
  }

  .primary-nav a {
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .header-cta {
    order: 3;
  }

  .home-hero {
    min-height: 590px;
    grid-template-columns: 1fr 1fr;
  }

  .home-hero__copy {
    padding: 2.4rem;
  }

  .home-hero__copy h1 {
    font-size: clamp(3.6rem, 7vw, 5.3rem);
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-card {
    min-height: 250px;
  }

  .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .season-rail span:last-child,
  .header-cta {
    display: none;
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    order: initial;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    min-height: 470px;
  }

  .home-hero__copy h1 {
    max-width: 10ch;
  }

  .home-hero__visual {
    aspect-ratio: 1 / 1;
  }

  .home-hero__visual::before {
    inset: -2px 0 auto;
    width: auto;
    height: 40px;
    background: linear-gradient(180deg, var(--ink), transparent);
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip > div:nth-child(2) {
    border-right: 0;
  }

  .signal-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .intro-grid,
  .split-feature,
  .content-grid,
  .guide-layout,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero--compact {
    padding-right: 2rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .faq-list,
  .code-grid,
  .tier-items {
    grid-template-columns: 1fr;
  }

  .content-aside,
  .guide-aside {
    position: static;
  }

  .starter-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .decision-banner {
    grid-template-columns: auto 1fr;
  }

  .decision-banner p {
    grid-column: 1 / -1;
  }

  .matchup-tool {
    grid-template-columns: 1fr;
  }

  .matchup-inputs {
    grid-template-columns: 1fr;
  }

  .matchup-inputs > span {
    padding: 0;
    transform: rotate(90deg);
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .season-rail {
    justify-content: center;
  }

  .brand-copy strong {
    font-size: 1.2rem;
  }

  .brand-copy small {
    font-size: 0.5rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .home-hero,
  .page-hero {
    border-width: 2px;
    box-shadow: 7px 7px 0 rgba(11, 23, 48, 0.14);
  }

  .home-hero__copy {
    min-height: 480px;
    padding: 1.5rem;
  }

  .home-hero__copy h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .home-hero__lede {
    font-size: 1rem;
  }

  .button-row .button {
    width: 100%;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .fact-row div {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(247, 245, 236, 0.18);
  }

  .signal-strip,
  .route-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .signal-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-shell {
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
  }

  .page-hero {
    padding: 1.5rem;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .route-card {
    min-height: 230px;
  }

  .tier-row {
    grid-template-columns: 1fr;
  }

  .tier-label {
    min-height: 100px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .tier-label strong {
    font-size: 3rem;
  }

  .next-route,
  .code-card__top,
  .code-card__actions,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-section {
    grid-template-columns: 42px 1fr;
    gap: 0.7rem;
  }

  .article-section h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
