:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f8f7;
  --text: #13282d;
  --text-muted: #5c7076;
  --border: #dfe5e2;
  --accent: #00756f;
  --accent-dark: #064f4c;
  --accent-soft: #d8f2ec;
  --warning: #a66f00;
  --warning-soft: #fff1c6;
  --rose: #b94c3f;
  --rose-soft: #ffe8e3;
  --blue-soft: #e8efff;
  --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 22px 60px rgb(var(--shadow-rgb) / 0.12);
}

* {
  box-sizing: border-box;
}

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

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,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
}

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

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

.page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 30px 0 20px;
}

.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,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 12px;
  font-size: 54px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
}

.page-title p {
  max-width: 780px;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 10px;
  min-width: 390px;
}

.trust-strip div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.trust-strip strong {
  color: var(--accent-dark);
  font-size: 23px;
  line-height: 1;
}

.trust-strip span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 760;
}

.funding-intent {
  display: grid;
  gap: 14px;
  max-width: 1120px;
  margin: 8px auto 28px;
}

.intent-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgb(var(--text-rgb) / 0.15);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 18px 54px rgb(36 44 42 / 0.12);
}

.intent-form:focus-within {
  border-color: rgb(var(--accent-rgb) / 0.28);
  box-shadow: 0 20px 58px rgb(var(--accent-rgb) / 0.13), 0 0 0 4px rgb(var(--accent-rgb) / 0.08);
}

.intent-form textarea {
  min-height: 52px;
  max-height: 120px;
  min-width: 0;
  padding: 10px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  resize: none;
}

.send-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 22px rgb(var(--accent-rgb) / 0.22);
}

.send-button svg,
.route-icon svg,
.feature-icon svg,
.save-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.send-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.25;
}

.chips,
.active-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.chip,
.filter-chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgb(var(--text-rgb) / 0.12);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 780;
}

.route-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0 34px;
}

.route-link {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 118px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: center;
}

.route-link strong {
  font-size: 16px;
}

.route-link span:not(.route-icon) {
  color: var(--text-muted);
  font-size: 13px;
}

.route-icon,
.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-xs);
  color: #4f6870;
}

.route-icon svg,
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}

.section {
  padding: 34px 0;
  border-top: 1px solid rgb(var(--text-rgb) / 0.08);
}

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

.section-head h2,
.coverage-band h2 {
  margin-bottom: 6px;
  font-size: 31px;
  line-height: 1.06;
}

.section-head p,
.coverage-band p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
}

.text-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 860;
}

.coverage-band {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgb(var(--text-rgb) / 0.09);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f5fbf9, #ffffff);
}

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

.coverage-item {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
}

.coverage-item strong {
  display: block;
  margin: 10px 0 4px;
}

.coverage-item span:not(.feature-icon) {
  color: var(--text-muted);
  font-size: 13px;
}

.route-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
}

.feature-main,
.route-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
}

.feature-main {
  display: grid;
  align-content: space-between;
  min-height: 360px;
  padding: 28px;
  background: linear-gradient(135deg, #083b39, #0a5f59);
  color: white;
  box-shadow: var(--shadow-sm);
}

.feature-main .badge {
  width: max-content;
  border: 0;
  background: rgb(255 255 255 / 0.16);
  color: white;
}

.feature-main h3 {
  max-width: 620px;
  margin: 20px 0 10px;
  font-size: 38px;
  line-height: 1.04;
}

.feature-main p {
  max-width: 700px;
  margin: 0;
  color: rgb(255 255 255 / 0.78);
}

.feature-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.feature-facts span {
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-xs);
  background: rgb(255 255 255 / 0.08);
  font-size: 13px;
  font-weight: 760;
}

.route-list {
  display: grid;
  gap: 10px;
}

.route-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
}

.route-row h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

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

.route-row em {
  color: var(--accent-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 820;
}

.browser-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.browser-tools h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.browser-tools p {
  margin: 0;
  color: var(--text-muted);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.primary,
.secondary,
.ghost,
.drawer-close,
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: white;
  color: var(--text);
  font-weight: 780;
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.select {
  min-width: 210px;
  min-height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: white;
  color: var(--text);
  font-weight: 780;
  padding-right: 34px;
}

.active-chips {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.scholarship-agent-notice {
  display: none;
  flex-basis: 100%;
  width: fit-content;
  max-width: 100%;
  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;
}

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

.scholarship-agent-notice a {
  margin-left: 8px;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scholarship-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid rgb(var(--accent-rgb) / 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #eff9f6, #ffffff);
  box-shadow: 0 16px 38px rgb(var(--accent-rgb) / 0.07);
}

.scholarship-focus[hidden] {
  display: none;
}

.focus-copy {
  display: grid;
  gap: 8px;
}

.focus-copy .badge {
  width: max-content;
  border: 0;
  background: var(--accent);
  color: white;
}

.focus-copy h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 27px;
  line-height: 1.08;
}

.focus-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--text-muted);
}

.focus-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.focus-facts span {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: white;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 760;
}

.focus-facts b {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.focus-actions {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

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

.scholarship-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(58px, 1fr) auto auto auto;
  gap: 10px;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  padding: 0 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: 0 14px 34px rgb(var(--shadow-rgb) / 0.04);
  cursor: pointer;
  outline: none;
}

.coverage-chips {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.scholarship-media {
  position: relative;
  width: calc(100% + 36px);
  min-width: 0;
  height: 126px;
  margin: 0 -18px 4px;
  overflow: hidden;
  background: #edf4f2;
}

.scholarship-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(5 24 27 / 0.1), rgb(5 24 27 / 0.36));
}

.scholarship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.type-badge {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.type-badge.government {
  background: var(--blue-soft);
  color: #1648bf;
}

.type-badge.province {
  background: var(--warning-soft);
  color: var(--warning);
}

.type-badge.partner {
  background: var(--rose-soft);
  color: var(--rose);
}

.scholarship-media .type-badge,
.scholarship-media .save-button {
  position: absolute;
  z-index: 1;
  top: 14px;
}

.scholarship-media .type-badge {
  left: 14px;
  box-sizing: border-box;
  max-width: calc(100% - 76px);
  overflow: hidden;
  justify-content: flex-start;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.08);
}

.scholarship-media .save-button {
  z-index: 2;
  right: 14px;
}

.scholarship-card-open {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.92);
  color: var(--accent);
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.1);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.scholarship-card-open svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scholarship-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 21px;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.school-line,
.summary {
  margin: 0;
  color: var(--text-muted);
}

.school-line {
  font-size: 14px;
}

.summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.coverage-chips {
  flex-wrap: wrap;
}

.coverage-chips span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #f0f6f4;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: #fbfdfc;
}

.facts span {
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 760;
}

.facts span:first-child {
  border-left: 0;
}

.facts b {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  align-items: center;
}

.scope-row span {
  max-width: 100%;
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid rgb(var(--accent-rgb) / 0.12);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffffff, #f4fbf9);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scholarship-readiness {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.scholarship-readiness span {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgb(var(--text-rgb) / 0.08);
  border-radius: var(--radius-xs);
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.scholarship-readiness b {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.scholarship-readiness em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 0 12px;
}

.pagination:empty {
  display: none;
}

.pagination button {
  min-width: 40px;
  padding-inline: 11px;
}

.pagination button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pagination-summary {
  margin-right: 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 760;
}

.pagination-ellipsis {
  display: inline-grid;
  min-width: 24px;
  height: 40px;
  place-items: center;
  color: var(--text-muted);
  font-weight: 800;
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-sm);
  background: var(--night);
  color: white;
}

.source-strip article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.06);
}

.source-strip strong {
  display: block;
  margin: 12px 0 5px;
}

.source-strip span:not(.feature-icon) {
  color: rgb(255 255 255 / 0.72);
  font-size: 13px;
}

.source-strip .feature-icon {
  color: #bde9df;
}

.related-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: grid;
  align-content: space-between;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
}

.related-card h3 {
  margin-bottom: 7px;
  font-size: 23px;
}

.related-card p {
  color: var(--text-muted);
}

.related-card span {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 860;
}

.faq-list article {
  padding: 18px;
  border-top: 1px solid rgb(var(--text-rgb) / 0.14);
}

.faq-list h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.faq-list p {
  margin: 0;
  color: var(--text-muted);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: none;
  background: rgb(10 22 24 / 0.22);
  backdrop-filter: blur(2px);
}

.drawer-backdrop.open {
  display: block;
}

.filter-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 47;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(460px, calc(100vw - 28px));
  height: 100vh;
  overflow: auto;
  padding: 26px 26px 0;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: -24px 0 64px rgb(var(--shadow-rgb) / 0.16);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.filter-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -26px 2px;
  padding: 0 26px 18px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  display: grid;
  gap: 5px;
}

.drawer-title h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.drawer-title p {
  max-width: 300px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.filter-groups {
  padding-top: 2px;
}

.filter-group {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgb(var(--text-rgb) / 0.09);
}

.filter-group:first-child {
  border-top: 0;
  padding-top: 2px;
}

.filter-group > span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 860;
}

.filter-group label {
  display: grid;
  grid-template-columns: minmax(108px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 760;
}

.filter-select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #d8e3e0;
  border-radius: var(--radius-xs);
  background: #fbfdfc;
  color: var(--text);
  font-weight: 760;
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-list label {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: #fbfdfc;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.check-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.drawer-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  margin: 10px -26px 0;
  padding: 14px 26px 26px;
  border-top: 1px solid var(--border);
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 -18px 34px rgb(255 255 255 / 0.86);
  backdrop-filter: blur(12px);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible,
body.motion-off .reveal {
  opacity: 1;
  transform: none;
}

.route-link,
.scholarship-card,
.route-row,
.related-card,
.send-button,
.primary,
.secondary,
.ghost,
.pagination button,
.save-button,
.chip,
.filter-chip {
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease, box-shadow 170ms ease;
}

.route-link:hover,
.scholarship-card:hover,
.route-row:hover,
.related-card:hover,
.send-button:hover,
.socials a:hover,
.socials button:hover {
  transform: translateY(-1px);
}

.route-link:hover,
.chip:hover,
.filter-chip:hover,
.filter-chip.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.scholarship-card:hover,
.route-row:hover,
.related-card:hover {
  border-color: rgb(var(--accent-rgb) / 0.24);
  box-shadow: var(--shadow-sm);
}

.scholarship-card:focus-visible {
  border-color: rgb(var(--accent-rgb) / 0.42);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.12), var(--shadow-sm);
}

.scholarship-card:hover .scholarship-card-open,
.scholarship-card:focus-visible .scholarship-card-open {
  background: var(--accent);
  color: white;
  transform: translateX(2px);
}

.primary:hover,
.send-button:hover {
  background: var(--accent-dark);
}

.secondary:hover,
.ghost:hover,
.select:hover,
.drawer-close:hover {
  border-color: rgb(var(--accent-rgb) / 0.28);
  color: var(--accent-dark);
}

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

  .page-title,
  .coverage-band,
  .route-feature {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    min-width: 0;
  }

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

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

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

}

@media (max-width: 920px) {
  h1 {
    font-size: 42px;
  }

  .trust-strip,
  .source-strip,
  .related-grid,
  .faq-list,
  .scholarship-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .browser-tools {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .controls {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --page-width: 100vw;
    --section-x: 16px;
  }

  .shell {
    padding-top: 12px;
  }

  h1 {
    font-size: 34px;
  }

  .page-title p,
  .intent-form textarea {
    font-size: 16px;
  }

  .trust-strip,
  .route-shortcuts,
  .coverage-grid,
  .source-strip,
  .related-grid,
  .faq-list,
  .scholarship-grid {
    grid-template-columns: 1fr;
  }

  .route-link {
    min-height: 92px;
  }

  .coverage-band,
  .feature-main {
    padding: 20px;
  }

  .feature-main h3 {
    font-size: 30px;
  }

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

  .route-row em {
    grid-column: 2;
  }

  .controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .select {
    min-width: 0;
    width: 100%;
  }

  .scholarship-readiness {
    grid-template-columns: 1fr;
  }

  .filter-drawer {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: 86vh;
    padding: 20px 18px 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -22px 60px rgb(var(--shadow-rgb) / 0.18);
    transform: translateY(105%);
  }

  .filter-drawer.open {
    transform: translateY(0);
  }

  .drawer-head {
    margin: 0 -18px 2px;
    padding: 0 18px 16px;
  }

  .drawer-actions {
    grid-template-columns: 1fr;
    margin: 12px -18px 0;
    padding: 14px 18px 18px;
  }
}

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

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