:root {
  --ink: #071521;
  --ink-soft: #0a1d2d;
  --navy: #092640;
  --navy-2: #0d3556;
  --navy-3: #16496f;
  --blue: #79bcff;
  --blue-deep: #2376ad;
  --gold: #efb52e;
  --gold-soft: #f7dc8e;
  --paper: #f5f1e7;
  --paper-2: #e7e0d0;
  --white: #fbfdff;
  --muted: #a9bdcd;
  --green: #2cb67d;
  --red: #e45858;
  --line: rgba(121, 188, 255, 0.22);
  --paper-line: #cec5b4;
  --shadow: 0 24px 62px rgba(0, 0, 0, 0.34);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 84% 2%, rgba(35, 118, 173, 0.28), transparent 30rem),
    var(--ink);
  background-size: 34px 34px, 34px 34px, auto, auto;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  display: block;
}

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

.shell {
  width: min(1420px, calc(100% - 56px));
  margin-inline: auto;
}

.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;
  z-index: 200;
  top: 14px;
  left: 14px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.top-rule {
  height: 7px;
  background: linear-gradient(90deg, var(--gold) 0 27%, var(--blue) 27% 74%, var(--green) 74%);
}

.dev-ribbon {
  padding: 5px 14px;
  color: #ffe9b0;
  background: #6c3d00;
  border-bottom: 1px solid #a87422;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

html[data-build-mode="production"] .dev-ribbon {
  display: none;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(7, 21, 33, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  box-shadow: 0 0 0 2px rgba(239, 181, 46, 0.34);
}

.brand-lockup {
  display: grid;
  line-height: 0.94;
}

.brand-title {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #d7e4ed;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav > a:not(.nav-cta):hover {
  color: var(--blue);
}

.primary-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--gold);
  border: 1px solid var(--gold);
  background: rgba(239, 181, 46, 0.04);
}

.nav-cta:hover {
  color: var(--ink);
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-content: center;
  gap: 6px;
  padding: 0;
  color: var(--white);
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: currentColor;
}

.mobile-menu {
  padding: 0 28px 22px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 78px;
  padding-block: 76px 70px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 68px;
  right: 0;
  width: 430px;
  height: 430px;
  content: "";
  border: 1px solid rgba(121, 188, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(121, 188, 255, 0.026),
    0 0 0 104px rgba(121, 188, 255, 0.016);
}

.eyebrow,
.section-kicker,
.console-kicker,
.dialog-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before {
  width: 46px;
  height: 3px;
  content: "";
  background: var(--gold);
}

h1,
h2,
h3,
.footer-brand {
  margin: 0;
  font-family: var(--display);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(76px, 8.2vw, 132px);
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 0.79;
}

.hero h1 span {
  display: block;
}

.hero h1 mark {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px 14px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 11px 11px 0 var(--navy-2);
  transform: rotate(-1deg);
}

.hero-copy {
  max-width: 720px;
  margin: 34px 0 0;
  color: #c6d4df;
  font-size: 21px;
  line-height: 1.53;
}

.hero-copy strong {
  color: var(--white);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  padding: 0;
  margin: 32px 0 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-proof li::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(44, 182, 125, 0.13);
}

.search-console {
  position: relative;
  z-index: 2;
  padding: 34px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #fff;
  box-shadow: 18px 18px 0 var(--navy-2), var(--shadow);
  transform: rotate(0.5deg);
  color-scheme: light;
}

.console-tab {
  position: absolute;
  top: -16px;
  right: 26px;
  padding: 7px 11px;
  color: var(--gold);
  background: var(--navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.console-kicker {
  color: var(--blue-deep);
}

.search-console h2 {
  max-width: 520px;
  margin-top: 10px;
  color: var(--navy);
  font-size: 48px;
}

.search-console > p:not(.console-kicker) {
  max-width: 510px;
  margin: 14px 0 24px;
  color: #435464;
  line-height: 1.45;
}

.search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 9px 9px 16px;
  background: #fff;
  border: 2px solid var(--navy);
  box-shadow: 5px 5px 0 var(--gold);
}

.search-icon {
  color: var(--blue-deep);
}

.search-icon svg {
  width: 22px;
  height: 22px;
}

.search-form input {
  min-width: 0;
  padding: 10px 4px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.search-form button,
.empty-state button {
  min-height: 46px;
  padding: 10px 17px;
  color: #fff;
  border: 0;
  background: var(--navy);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-form button:hover,
.empty-state button:hover {
  background: var(--blue-deep);
}

.quick-queries {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  border-top: 1px solid #c9c1af;
}

.quick-query {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  color: var(--navy);
  border: 0;
  border-bottom: 1px solid #c9c1af;
  background: transparent;
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}

.quick-query:hover {
  color: var(--blue-deep);
}

.quick-query span:last-child {
  font-size: 22px;
}

.stat-band {
  background: rgba(9, 38, 64, 0.65);
  border-block: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 27px 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.routes-section,
.featured-section {
  padding-block: 96px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 38px;
}

.section-head h2,
.tools-intro h2 {
  margin-top: 8px;
  font-size: clamp(50px, 5vw, 76px);
}

.section-note {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.route-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(150deg, rgba(13, 53, 86, 0.9), rgba(9, 38, 64, 0.92));
  border: 1px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.route-card:hover {
  background: linear-gradient(150deg, #154d76, var(--navy));
  border-color: var(--blue);
  transform: translateY(-7px);
}

.route-number {
  position: absolute;
  right: -5px;
  bottom: -38px;
  color: rgba(121, 188, 255, 0.08);
  font-family: var(--display);
  font-size: 170px;
  font-weight: 900;
  line-height: 1;
}

.route-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
}

.route-icon svg {
  width: 25px;
  height: 25px;
}

.route-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  font-size: 30px;
}

.route-card p {
  position: relative;
  z-index: 1;
  margin: 14px 0 50px;
  color: var(--muted);
  line-height: 1.45;
}

.route-link {
  position: absolute;
  z-index: 2;
  bottom: 25px;
  left: 28px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.catalog-section {
  padding-block: 98px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 181, 46, 0.15), transparent 23rem),
    linear-gradient(180deg, var(--paper), #f2ede2);
  color-scheme: light;
}

.catalog-section .section-kicker {
  color: var(--blue-deep);
}

.catalog-section .section-head h2 {
  color: var(--navy);
}

.catalog-section .section-note {
  color: #526474;
}

.catalog-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.format-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: -7px 0 24px;
  color: #5c6e7c;
  font-size: 13px;
  font-weight: 800;
}

.format-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.format-button {
  min-height: 34px;
  padding: 5px 10px;
  color: #41586a;
  border: 1px solid #c8c0af;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.format-button:hover,
.format-button.active {
  color: #fff;
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.filter-button,
.clear-state,
.active-context button {
  min-height: 42px;
  padding: 8px 14px;
  color: var(--navy);
  border: 1px solid #b8b09f;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.filter-button.active::before {
  display: inline-block;
  margin-right: 7px;
  content: "●";
  color: var(--gold);
  font-size: 9px;
  vertical-align: 1px;
}

.result-status {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #5c6e7c;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.clear-state {
  min-height: 36px;
  padding: 5px 10px;
  color: #704f00;
  border-color: #c8a54d;
}

.active-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 13px 16px;
  color: #06365a;
  background: #d8ecff;
  border-left: 5px solid var(--blue-deep);
  font-weight: 750;
}

.active-context button {
  min-height: 36px;
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.catalog-loading,
.catalog-error {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 36px;
  color: var(--navy);
  border: 2px dashed #a9a08f;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.catalog-loading strong,
.catalog-error strong {
  font-family: var(--display);
  font-size: 32px;
}

.catalog-loading span,
.catalog-error p {
  margin: 0;
  color: #596a77;
}

.catalog-error code {
  color: #8f2f2f;
}

.resource-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--paper-line);
  box-shadow: 7px 7px 0 #d9d1c1;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.resource-card:hover {
  box-shadow: 11px 11px 0 var(--gold-soft);
  transform: translate(-3px, -3px);
}

.resource-card[hidden] {
  display: none;
}

.resource-image {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: var(--navy);
  border-bottom: 1px solid var(--paper-line);
}

button.resource-image {
  width: 100%;
  padding: 0;
  color: inherit;
  border: 0;
  cursor: pointer;
}

.resource-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  content: "";
  background: linear-gradient(transparent, rgba(7, 21, 33, 0.2));
  pointer-events: none;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 300ms ease;
}

.resource-card:hover .resource-image img {
  transform: scale(1.02);
}

.resource-type,
.feature-label {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.resource-meta {
  margin: 0;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin-top: 10px;
  color: var(--navy);
  font-size: 32px;
}

.topic-card h3 {
  font-size: 28px;
  line-height: 1.04;
}

.resource-summary {
  margin: 15px 0 23px;
  color: #566778;
  line-height: 1.46;
}

.topic-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 23px;
}

.topic-count {
  padding: 5px 8px;
  color: #3f5668;
  border: 1px solid #d7d0c3;
  background: #f7f3ea;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.topic-count strong {
  color: var(--navy);
  font-size: 13px;
}

.resource-actions,
.feature-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.resource-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--navy);
  border: 1px solid #bcc6cc;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

button.resource-action {
  cursor: pointer;
}

.catalog-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.show-more {
  min-height: 46px;
  padding: 9px 18px;
  color: #fff;
  border: 1px solid var(--navy);
  background: var(--navy);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.show-more:hover {
  background: var(--blue-deep);
}

.catalog-sync {
  margin: 0 0 0 auto;
  color: #667887;
  font-size: 13px;
  text-align: right;
}

.catalog-sync a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource-action:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.resource-action--primary {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.empty-state {
  min-height: 320px;
  place-items: center;
  align-content: center;
  padding: 42px;
  text-align: center;
  border: 2px dashed #a9a08f;
  background: rgba(255, 255, 255, 0.45);
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-code {
  color: #978b75;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.empty-state h3 {
  color: var(--navy);
  font-size: 46px;
}

.empty-state p {
  max-width: 580px;
  margin: 10px auto 22px;
  color: #596a77;
}

.feature-card {
  min-height: 590px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(121, 188, 255, 0.08), transparent 44%),
    #08131d;
}

.feature-visual img {
  width: min(100%, 410px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.4deg);
}

.feature-label {
  background: var(--red);
  color: #fff;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px;
}

.feature-copy h2 {
  max-width: 760px;
  margin-top: 9px;
  font-size: clamp(52px, 5.2vw, 78px);
}

.feature-intro {
  max-width: 700px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.52;
}

.bundle-steps {
  display: grid;
  margin: 10px 0 24px;
}

.bundle-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.bundle-step strong {
  color: var(--gold);
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bundle-step span {
  color: #d8e5ee;
}

.feature-actions {
  margin-top: 0;
}

.feature-actions .resource-action {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
}

.feature-actions .resource-action--primary,
.feature-actions .resource-action:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.tools-strip {
  padding-block: 44px;
  color: var(--ink);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.12), transparent 35%),
    var(--gold);
  color-scheme: light;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(5, 1fr);
  align-items: stretch;
  gap: 14px;
}

.tools-intro {
  padding-right: 20px;
}

.tools-intro .section-kicker {
  color: #624400;
}

.tools-intro h2 {
  font-size: 48px;
}

.tools-intro > p:last-child {
  margin: 7px 0 0;
  color: #604817;
  font-weight: 700;
}

.tool-link {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(7, 21, 33, 0.25);
  background: rgba(255, 255, 255, 0.48);
  font-weight: 850;
  line-height: 1.2;
}

.tool-link:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.tool-link span:last-child {
  font-size: 24px;
}

.site-footer {
  padding-block: 60px 32px;
  color: var(--muted);
  background:
    linear-gradient(115deg, rgba(27, 114, 160, 0.08), transparent 42%),
    var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(460px, 0.8fr);
  gap: clamp(52px, 7vw, 110px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: var(--white);
  font-size: 29px;
  font-weight: 900;
}

.footer-about > p {
  max-width: 760px;
  margin: 12px 0 0;
}

.footer-source-note {
  color: #91aabd;
  font-size: 15px;
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.footer-link-group {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--blue);
  font-weight: 750;
}

.footer-link-group h2 {
  margin-bottom: 5px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-link-group a {
  width: fit-content;
}

.footer-link-group a:hover {
  color: var(--gold);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 20px;
  color: #829aad;
  border-top: 1px solid rgba(119, 151, 172, 0.24);
  font-size: 14px;
  font-weight: 650;
}

.video-dialog {
  width: min(560px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  color: var(--white);
  border: 1px solid var(--line);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.topic-dialog {
  width: min(1120px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid #a89f8e;
  background: var(--paper);
  box-shadow: var(--shadow);
  color-scheme: light;
}

.topic-dialog::backdrop {
  background: rgba(3, 12, 19, 0.86);
  backdrop-filter: blur(5px);
}

.topic-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  padding: 27px 30px;
  color: #fff;
  background: var(--navy);
  border-bottom: 5px solid var(--gold);
}

.topic-dialog-header h2 {
  margin-top: 4px;
  font-size: clamp(38px, 5vw, 58px);
}

.topic-dialog-header p:last-child {
  max-width: 760px;
  margin: 8px 0 0;
  color: #c4d5e2;
}

.topic-dialog-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 28px 30px 40px;
}

.topic-resource-group + .topic-resource-group {
  margin-top: 32px;
}

.topic-resource-group > h3 {
  margin-bottom: 14px;
  padding-bottom: 8px;
  color: var(--navy);
  border-bottom: 2px solid #c8c0b1;
  font-size: 25px;
}

.topic-resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-resource {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 15px;
  padding: 13px;
  background: #fff;
  border: 1px solid #d2cabb;
}

.topic-resource > img,
.topic-resource-placeholder {
  width: 92px;
  height: 112px;
  object-fit: cover;
  object-position: top center;
  background: var(--navy);
}

.topic-resource-placeholder {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.topic-resource-copy {
  min-width: 0;
}

.topic-resource h4 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.05;
}

.topic-resource p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 10px;
  color: #596a77;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.topic-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-resource-link {
  padding: 5px 8px;
  color: #fff;
  background: var(--navy);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.topic-resource-link:hover {
  color: var(--ink);
  background: var(--gold);
}

.topic-resource-link--secondary {
  color: var(--navy);
  border: 1px solid #b7c1c9;
  background: transparent;
}

.video-dialog::backdrop {
  background: rgba(3, 12, 19, 0.86);
  backdrop-filter: blur(5px);
}

.video-dialog-header,
.video-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.video-dialog-header {
  border-bottom: 1px solid var(--line);
}

.video-dialog-header h2 {
  margin-top: 5px;
  font-size: 35px;
}

.dialog-back {
  min-height: 44px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--white);
  border: 1px solid var(--line);
  background: transparent;
  font: 800 14px/1 var(--body);
  white-space: nowrap;
  cursor: pointer;
}

.dialog-back:hover,
.dialog-back:focus-visible {
  color: var(--ink);
  background: var(--gold);
}

.video-frame {
  min-height: 520px;
  display: grid;
  place-items: center;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: min(70vh, 740px);
  border: 0;
}

.video-dialog-footer {
  align-items: baseline;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.video-dialog-footer p {
  margin: 0;
  color: var(--muted);
}

.video-dialog-footer a {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.legal-main {
  max-width: 1040px;
  padding-block: 82px 110px;
}

.legal-main > h1 {
  max-width: 900px;
  font-size: clamp(58px, 7vw, 94px);
}

.legal-card {
  margin-top: 38px;
  padding: clamp(28px, 5vw, 62px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #fff;
  box-shadow: 14px 14px 0 var(--navy-2);
  color-scheme: light;
}

.legal-lead {
  margin-top: 0;
  color: var(--navy);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.5;
}

.legal-card h2 {
  margin-top: 34px;
  color: var(--navy);
  font-size: 34px;
}

.legal-card p {
  color: #435462;
}

.legal-review {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--paper-line);
  font-size: 14px;
  font-weight: 750;
}

.legal-actions {
  margin-top: 22px;
}

.legal-back {
  font-weight: 800;
}

.not-found-page {
  display: grid;
  grid-template-rows: auto 1fr;
}

.not-found {
  max-width: 900px;
  display: grid;
  place-items: start;
  align-content: center;
  padding-block: 60px;
}

.not-found > img {
  width: 84px;
  height: 84px;
  margin-bottom: 34px;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(239, 181, 46, 0.34);
}

.not-found h1 {
  max-width: 850px;
  font-size: clamp(64px, 9vw, 118px);
}

.not-found > p:not(.eyebrow) {
  max-width: 680px;
  margin: 25px 0;
  color: var(--muted);
  font-size: 20px;
}

.not-found .resource-action {
  padding: 13px 17px;
}

@media (max-width: 1120px) {
  .primary-nav {
    gap: 18px;
  }

  .primary-nav > a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero::after {
    display: none;
  }

  .search-console {
    width: min(740px, 100%);
  }

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

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

  .topic-resource-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    max-height: 620px;
  }

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

  .tools-intro {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  .shell {
    width: min(100% - 30px, 1420px);
  }

  .nav-shell {
    min-height: 72px;
  }

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

  .brand-title {
    font-size: 22px;
  }

  .brand-sub {
    letter-spacing: 0.1em;
  }

  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    min-height: auto;
    gap: 54px;
    padding-block: 58px 66px;
  }

  .hero h1 {
    font-size: clamp(65px, 19vw, 94px);
  }

  .hero h1 mark {
    box-shadow: 7px 7px 0 var(--navy-2);
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-proof {
    gap: 14px 20px;
  }

  .search-console {
    padding: 26px;
    box-shadow: 9px 9px 0 var(--navy-2);
    transform: none;
  }

  .search-console h2 {
    font-size: 42px;
  }

  .search-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-form button {
    grid-column: 1 / -1;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

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

  .routes-section,
  .featured-section,
  .catalog-section {
    padding-block: 72px;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 20px;
  }

  .route-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .format-row,
  .catalog-more {
    align-items: start;
    flex-direction: column;
  }

  .catalog-sync {
    margin-left: 0;
    text-align: left;
  }

  .result-status {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
  }

  .active-context {
    align-items: start;
    flex-direction: column;
  }

  .resource-image {
    height: min(75vw, 360px);
  }

  .feature-copy {
    padding: 36px 26px;
  }

  .feature-visual {
    padding: 44px 24px 30px;
  }

  .feature-visual img {
    width: min(88%, 410px);
  }

  .bundle-step {
    grid-template-columns: 78px 1fr;
  }

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

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

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

  .footer-meta {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .video-frame {
    min-height: 420px;
  }

  .video-dialog-footer {
    align-items: start;
    flex-direction: column;
  }

  .topic-dialog-header {
    align-items: start;
    gap: 14px;
    padding: 23px 20px;
  }

  .dialog-back {
    padding-inline: 11px;
    font-size: 13px;
  }

  .topic-dialog-body {
    max-height: calc(100vh - 190px);
    padding: 22px 18px 32px;
  }

  .topic-resource {
    grid-template-columns: 74px 1fr;
    gap: 11px;
    padding: 10px;
  }

  .topic-resource > img,
  .topic-resource-placeholder {
    width: 74px;
    height: 96px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 24px, 1420px);
  }

  .brand-sub {
    display: none;
  }

  .hero h1 {
    font-size: 61px;
  }

  .hero h1 mark {
    padding-inline: 11px;
  }

  .search-console {
    padding: 22px;
  }

  .console-tab {
    right: 16px;
  }

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

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .format-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .format-button:first-child {
    grid-column: 1 / -1;
  }

  .format-button:last-child {
    grid-column: 1 / -1;
  }

  .filter-button:first-child {
    grid-column: 1 / -1;
  }

  .resource-body {
    padding: 21px;
  }

  .resource-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-action {
    width: 100%;
    justify-content: space-between;
  }

  .bundle-step {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .search-console,
  .feature-visual img {
    transform: none;
  }
}
