:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f8f7;
  --text: #13282d;
  --text-muted: #5c7076;
  --border: #dfe5e2;
  --accent: #00756f;
  --accent-dark: #064f4c;
  --accent-soft: #d8f2ec;
  --lake: #2f7885;
  --lake-soft: #e4f3f4;
  --warning: #a66f00;
  --warning-soft: #fff1c6;
  --night: #123232;
  --surface-rgb: 255 255 255;
  --text-rgb: 19 40 45;
  --accent-rgb: 0 117 111;
  --shadow-rgb: 36 44 42;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --page-width: min(1720px, calc(100vw - 144px));
  --section-x: 40px;
  --shadow-sm: 0 16px 44px rgb(var(--shadow-rgb) / 0.08);
  --shadow-md: 0 24px 64px rgb(var(--shadow-rgb) / 0.12);
}

/* Published guide discovery */
.guide-discovery {
  padding-bottom: 64px;
}

.guide-search {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.guide-search label {
  font-size: 13px;
  font-weight: 800;
}

.guide-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.guide-search input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: white;
  color: var(--text);
  font: inherit;
}

.guide-search input:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(var(--accent-rgb) / 0.14);
}

.guide-publication-note {
  display: grid;
  gap: 10px;
  width: min(100%, 410px);
  padding: 22px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.guide-publication-note strong {
  font-size: 18px;
}

.guide-publication-note p,
.guide-publication-note span {
  margin: 0;
  color: var(--text-muted);
}

.guide-results {
  padding-top: 34px;
}

.guide-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface-soft);
}

.guide-filter-summary[hidden] {
  display: none;
}

.guide-filter-summary a {
  margin-inline-start: auto;
  color: var(--accent-dark);
  font-weight: 800;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.published-guide-card,
.guide-loading,
.guide-state-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
}

.published-guide-meta,
.published-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.published-guide-meta span {
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 820;
}

.published-guide-meta small,
.published-guide-actions span,
.published-guide-card > p,
.guide-loading span,
.guide-state-card span {
  color: var(--text-muted);
}

.published-guide-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
}

.published-guide-card > p {
  margin: 0;
}

.published-guide-subtitle {
  font-weight: 720;
}

.guide-translation-status {
  padding: 10px 12px;
  border-inline-start: 3px solid var(--warning);
  background: var(--warning-soft);
  color: var(--text) !important;
  font-size: 13px;
}

.published-guide-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.published-guide-actions a,
.guide-state-card a,
.guide-state-card button,
.guide-next-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs);
  background: white;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 820;
}

.guide-loading,
.guide-state-card {
  grid-column: 1 / -1;
  min-height: 160px;
  align-items: flex-start;
  justify-content: center;
}

.guide-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-rule-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-inline-start: 3px solid var(--accent);
  background: var(--surface-soft);
}

.guide-rule-grid span,
.guide-next p {
  color: var(--text-muted);
}

.guide-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.guide-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

[dir="rtl"] .guide-search,
[dir="rtl"] .guide-publication-note,
[dir="rtl"] .published-guide-card,
[dir="rtl"] .guide-state-card,
[dir="rtl"] .guide-loading {
  text-align: right;
}

@media (max-width: 980px) {
  .guide-grid,
  .guide-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-next {
    grid-template-columns: 1fr;
  }

  .guide-next-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .guide-grid,
  .guide-rule-grid,
  .guide-search > div {
    grid-template-columns: 1fr;
  }

  .guide-publication-note {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

button,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.page {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 56%, #f7faf9 100%);
}

.shell {
  max-width: var(--page-width);
  min-width: 0;
  margin: 0 auto;
  padding: 26px var(--section-x) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: 34px 0 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 820;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

h1 {
  max-width: 930px;
  margin-bottom: 14px;
  font-size: 58px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 19px;
}

.hero-actions,
.prompt-chips,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary,
.secondary,
.text-link,
.document-row a,
.document-row button,
.route-comparison button,
.guide-library button,
.prompt-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-weight: 820;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary {
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgb(var(--accent-rgb) / 0.2);
}

.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.secondary {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgb(var(--text-rgb) / 0.14);
  background: white;
  color: var(--text);
}

.secondary:hover {
  border-color: rgb(var(--accent-rgb) / 0.32);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.hero-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  min-width: 460px;
}

.hero-map div {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
}

.hero-map strong {
  color: var(--accent-dark);
  font-size: 28px;
  line-height: 1;
}

.hero-map span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 760;
}

.question-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0 46px;
}

.question-route {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  min-height: 148px;
  padding: 18px 16px;
  border: 1px solid rgb(var(--text-rgb) / 0.1);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text);
  text-align: left;
  box-shadow: 0 12px 32px rgb(var(--shadow-rgb) / 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.question-route:hover {
  border-color: rgb(var(--accent-rgb) / 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.question-route [data-guide-icon] {
  color: var(--accent);
}

[data-guide-icon] svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.question-route strong {
  font-size: 16px;
  line-height: 1.22;
}

.question-route em {
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 680;
}

.section {
  padding: 54px 0;
  scroll-margin-top: 28px;
}

.section + .section {
  border-top: 1px solid rgb(var(--text-rgb) / 0.1);
}

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

.section-head h2,
.prompt-section h2 {
  max-width: 760px;
  margin-bottom: 9px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.prompt-section p {
  max-width: 820px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.text-link,
.button-link {
  min-height: 38px;
  padding: 0 2px;
  background: transparent;
  color: var(--accent-dark);
  white-space: nowrap;
}

.text-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.timeline-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.timeline-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 232px;
  padding: 22px 18px 20px;
  border-right: 1px solid var(--border);
  background: white;
  color: var(--text);
  text-align: left;
  outline: 0;
  transition: background 180ms ease, color 180ms ease;
}

.timeline-step:last-child {
  border-right: 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
}

.timeline-step.active,
.timeline-step:hover,
.timeline-step:focus-visible {
  background: linear-gradient(180deg, #eef9f6 0%, #ffffff 74%);
}

.timeline-step.active::before,
.timeline-step:hover::before,
.timeline-step:focus-visible::before {
  background: var(--accent);
}

.timeline-step span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.timeline-step strong {
  font-size: 18px;
  line-height: 1.2;
}

.timeline-step em {
  color: var(--text-muted);
  font-size: 14px;
  font-style: normal;
}

.timeline-step a {
  align-self: end;
  margin-top: 4px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 860;
}

.application-window-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgb(var(--accent-rgb) / 0.18);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, #effbf8 0%, #ffffff 48%, #f8fbfa 100%);
  box-shadow: var(--shadow-sm);
}

.application-window-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.application-window-head h3 {
  margin-bottom: 8px;
  font-size: 27px;
  line-height: 1.08;
}

.application-window-head p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.application-window-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  gap: 8px;
  min-width: 390px;
}

.application-window-stats span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgb(var(--text-rgb) / 0.1);
  border-radius: var(--radius-xs);
  background: rgb(255 255 255 / 0.76);
}

.application-window-stats strong {
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1;
}

.application-window-stats em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.application-window-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.application-window-card {
  display: grid;
  gap: 9px;
  min-height: 214px;
  padding: 16px;
  border: 1px solid rgb(var(--text-rgb) / 0.12);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.8);
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.application-window-card:hover,
.application-window-card:focus-visible,
.application-window-card.active {
  border-color: rgb(var(--accent-rgb) / 0.4);
  background: white;
  box-shadow: 0 14px 34px rgb(var(--accent-rgb) / 0.11);
  transform: translateY(-1px);
  outline: 0;
}

.application-window-card span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.application-window-card strong {
  font-size: 17px;
  line-height: 1.18;
}

.application-window-card p,
.application-window-card em {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}

.application-window-card em {
  padding-top: 8px;
  border-top: 1px solid rgb(var(--text-rgb) / 0.08);
}

.application-window-card small {
  align-self: end;
  color: var(--accent-dark);
  font-weight: 840;
}

.timeline-filter-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgb(var(--text-rgb) / 0.1);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.74);
}

.timeline-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) auto;
  gap: 10px;
  align-items: end;
}

.timeline-filter-grid label {
  display: grid;
  gap: 6px;
}

.timeline-filter-grid span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 820;
}

.timeline-filter-grid input,
.timeline-filter-grid select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgb(var(--text-rgb) / 0.13);
  border-radius: var(--radius-xs);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 720;
}

.timeline-result-mode {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgb(var(--text-rgb) / 0.1);
  border-radius: var(--radius-xs);
  background: #f4faf8;
}

.timeline-result-mode button,
.timeline-filter-chips button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 860;
}

.timeline-result-mode button.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 8px 16px rgb(var(--text-rgb) / 0.08);
}

.timeline-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.timeline-filter-chips button,
.timeline-filter-chips .count {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgb(var(--text-rgb) / 0.1);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 860;
}

.timeline-filter-chips .count {
  background: var(--accent-soft);
}

.timeline-deadline-board {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgb(var(--text-rgb) / 0.1);
  border-radius: var(--radius-sm);
  background: white;
}

.timeline-deadline-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.timeline-deadline-head div {
  display: grid;
  gap: 3px;
}

.timeline-deadline-head strong {
  font-size: 18px;
}

.timeline-deadline-head span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 680;
}

.timeline-deadline-head a {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 860;
  white-space: nowrap;
}

.timeline-deadline-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.timeline-school-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.timeline-deadline-item {
  display: grid;
  gap: 5px;
  min-height: 126px;
  padding: 13px;
  border: 1px solid rgb(var(--text-rgb) / 0.1);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xs);
  background: #fbfdfc;
}

.timeline-deadline-item.urgent,
.timeline-deadline-item.past,
.timeline-school-item.urgent,
.timeline-school-item.past {
  border-left-color: #b23b33;
}

.timeline-deadline-item.soon,
.timeline-school-item.soon {
  border-left-color: var(--warning);
}

.timeline-deadline-item span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.timeline-deadline-item strong {
  font-size: 15px;
  line-height: 1.18;
}

.timeline-deadline-item em,
.timeline-deadline-item small,
.timeline-empty {
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}

.timeline-school-item {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgb(var(--text-rgb) / 0.1);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xs);
  background: #fbfdfc;
}

.timeline-school-item div:first-child {
  display: grid;
  gap: 4px;
}

.timeline-school-item span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.timeline-school-item strong {
  font-size: 17px;
  line-height: 1.15;
}

.timeline-school-item em {
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}

.timeline-school-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 720;
}

.timeline-school-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline-school-programs a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 860;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.document-note {
  position: sticky;
  top: 18px;
  padding: 22px;
  border: 1px solid rgb(var(--accent-rgb) / 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f0fbf8 0%, #ffffff 100%);
}

.document-note [data-guide-icon] {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.document-note h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.15;
}

.document-note p {
  margin: 0;
  color: var(--text-muted);
}

.document-table {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.document-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(170px, 1fr) minmax(190px, 1.1fr) minmax(104px, auto);
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.document-row.agent-reviewed {
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.06), white);
}

.guide-agent-notice {
  display: none;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid rgb(var(--accent-rgb) / 0.18);
  border-radius: var(--radius-xs);
  background: rgb(var(--accent-rgb) / 0.08);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 780;
}

.guide-agent-notice.visible {
  display: inline-flex;
  animation: guideNoticeIn 180ms ease;
}

.document-row:last-child {
  border-bottom: 0;
}

.document-row.header {
  min-height: 44px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.document-row strong {
  color: var(--accent-dark);
  font-size: 15px;
}

.document-row span {
  color: var(--text-muted);
  font-size: 14px;
}

.document-row a,
.document-row button,
.route-comparison button,
.guide-library button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(var(--text-rgb) / 0.12);
  background: white;
  color: var(--accent-dark);
  font-size: 13px;
}

.document-row a:hover,
.document-row button:hover,
.route-comparison button:hover,
.guide-library button:hover {
  border-color: rgb(var(--accent-rgb) / 0.24);
  background: var(--accent-soft);
}

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

.route-comparison article {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
}

.route-comparison [data-guide-icon] {
  color: var(--accent);
}

.route-comparison h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.route-comparison dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.route-comparison dt {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.route-comparison dd {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.route-comparison a {
  color: var(--accent-dark);
  font-weight: 820;
}

.funding-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-sm);
  background: var(--night);
  color: white;
}

.funding-band .eyebrow {
  color: #c8f2e9;
}

.funding-band .eyebrow::before {
  background: #ffd36d;
}

.funding-band h2 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.05;
}

.funding-band p {
  max-width: 660px;
  margin-bottom: 22px;
  color: rgb(255 255 255 / 0.78);
}

.funding-band .primary {
  background: white;
  color: var(--accent-dark);
  box-shadow: none;
}

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

.funding-types span {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.08);
}

.funding-types strong {
  font-size: 17px;
}

.funding-types em {
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
  font-style: normal;
}

.visa-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
}

.visa-flow article {
  min-height: 190px;
  padding: 22px 18px;
  border-right: 1px solid var(--border);
}

.visa-flow article:last-child {
  border-right: 0;
}

.visa-flow span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--warning);
  font-size: 13px;
  font-weight: 920;
}

.visa-flow strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.18;
}

.visa-flow p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.guide-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.guide-library article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 18px;
  border-top: 4px solid var(--accent);
}

.guide-library h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.guide-library a,
.guide-library button {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.guide-library a:hover,
.guide-library button:hover {
  background: transparent;
  color: var(--accent-dark);
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius-sm);
  background: #f4f8f7;
}

.source-strip article {
  display: grid;
  gap: 12px;
}

.source-strip [data-guide-icon] {
  color: var(--text-muted);
}

.source-strip strong {
  font-size: 18px;
}

.source-strip span:last-child {
  color: var(--text-muted);
  font-size: 14px;
}

.prompt-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 72px;
}

.prompt-chips {
  justify-content: flex-end;
}

.prompt-chips button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgb(var(--text-rgb) / 0.12);
  background: white;
  color: var(--text-muted);
  font-size: 13px;
}

.prompt-chips button:hover {
  border-color: rgb(var(--accent-rgb) / 0.24);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms cubic-bezier(.2, .8, .2, 1), transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1280px) {
  :root {
    --page-width: min(100%, calc(100vw - 56px));
    --section-x: 24px;
  }

  .hero,
  .section-head,
  .application-window-head,
  .funding-band,
  .prompt-section {
    grid-template-columns: 1fr;
  }

  .hero-map {
    min-width: 0;
  }

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

  .application-window-stats {
    min-width: 0;
  }

  .application-window-list,
  .timeline-filter-grid,
  .timeline-deadline-list,
  .timeline-school-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-rail,
  .visa-flow {
    grid-template-columns: 1fr;
  }

  .timeline-step,
  .visa-flow article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .timeline-step:last-child,
  .visa-flow article:last-child {
    border-bottom: 0;
  }

  .timeline-step {
    grid-template-columns: 44px minmax(0, 0.35fr) minmax(0, 1fr) auto;
    align-items: center;
  }

  .document-layout,
  .route-comparison,
  .guide-library,
  .source-strip {
    grid-template-columns: 1fr 1fr;
  }

  .document-note {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --page-width: 100%;
    --section-x: 18px;
  }

  .shell {
    padding-top: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-map,
  .question-strip,
  .application-window-stats,
  .application-window-list,
  .timeline-filter-grid,
  .timeline-deadline-list,
  .timeline-school-list,
  .document-layout,
  .route-comparison,
  .funding-types,
  .guide-library,
  .source-strip,
  .prompt-section {
    grid-template-columns: 1fr;
  }

  .hero-map {
    gap: 8px;
  }

  .question-route {
    min-height: 0;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: grid;
  }

  .section-head h2,
  .prompt-section h2,
  .funding-band h2 {
    font-size: 29px;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .application-window-panel {
    padding: 18px;
  }

  .timeline-result-mode {
    grid-template-columns: 1fr;
  }

  .timeline-deadline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-table {
    overflow-x: auto;
  }

  .document-row {
    min-width: 760px;
  }

  .funding-band,
  .source-strip {
    padding: 24px;
  }

  .prompt-chips {
    justify-content: flex-start;
  }
}

@keyframes guideNoticeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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