:root {
  --navy: #000b4d;
  --school-blue: #283583;
  --student-teal: #007c89;
  --student-sky: #00b3e8;
  --student-mint: #e8fbf8;
  --student-ice: #f3fbff;
  --orange: #ed6b17;
  --orange-soft: #fff0e6;
  --ink: #101828;
  --muted: #526071;
  --line: #d7e4ed;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --shadow: 0 18px 45px rgba(0, 31, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

a {
  color: var(--school-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.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: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 30;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--student-teal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 132px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 0.15rem;
}

.brand-text strong {
  font-size: 1.05rem;
  line-height: 1.15;
}

.student-label {
  width: fit-content;
  padding: 0.16rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #d8fbff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav a {
  padding: 0.42rem 0.5rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.home-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(0, 179, 232, 0.22), transparent 34%),
    linear-gradient(180deg, var(--student-ice) 0%, #fff 74%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.home-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 124, 137, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 124, 137, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 78%, transparent);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: 520px;
  padding: clamp(2.8rem, 6vw, 4.8rem) 0;
}

.home-intro h1,
.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.home-intro h1 {
  max-width: 620px;
}

.home-intro p,
.page-hero p {
  max-width: 570px;
  margin: 1rem 0 0;
  color: #344054;
  font-size: 1.12rem;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  color: var(--student-teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.identity-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--student-teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.page-hero.compact {
  padding: clamp(2.8rem, 5vw, 4.4rem) 0 clamp(2.4rem, 5vw, 3.6rem);
}

.page-hero .container {
  position: relative;
}

.page-hero.compact h1 {
  max-width: 920px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

.page-meta {
  color: #344054;
  font-weight: 700;
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section.soft {
  background: var(--soft);
}

.home-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

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

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading p {
  max-width: 450px;
  color: var(--muted);
  font-weight: 700;
}

h2 {
  margin: 0 0 1.2rem;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 1.65rem 0 0.65rem;
  color: var(--school-blue);
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

li {
  margin: 0.35rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--student-teal);
  border-radius: 6px;
  background: var(--student-teal);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.button:hover {
  background: #005e69;
  border-color: #005e69;
}

.search-panel {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: 760px;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  border: 1px solid rgba(0, 124, 137, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.search-panel input {
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.search-results {
  position: absolute;
  left: clamp(1.25rem, 3vw, 1.65rem);
  right: clamp(1.25rem, 3vw, 1.65rem);
  top: calc(100% - clamp(1.25rem, 3vw, 1.65rem));
  display: none;
  max-height: min(460px, 58vh);
  overflow: auto;
  padding: 0.25rem 1rem 0.35rem;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 22px 36px rgba(0, 31, 72, 0.16);
}

.search-results.active {
  display: grid;
}

.search-results a {
  display: block;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}

.search-results strong,
.search-results span {
  display: block;
}

.search-results span {
  color: var(--muted);
  font-size: 0.92rem;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.search-suggestions a {
  padding: 0.38rem 0.6rem;
  border: 1px solid #c9eef3;
  border-radius: 999px;
  background: var(--student-mint);
  color: #005e69;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.support-strip {
  background: var(--navy);
  color: #fff;
}

.support-message {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.support-title,
.support-step {
  padding: 1.15rem;
  background: var(--navy);
}

.support-title strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
}

.support-title span,
.support-step span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.support-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.support-step strong {
  color: #fff;
}

.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--student-sky);
  color: var(--navy);
  font-weight: 900;
}

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

.quick-link {
  display: grid;
  gap: 0.35rem;
  min-height: 138px;
  align-content: start;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--student-teal);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 31, 72, 0.05);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.quick-link:nth-child(2n) {
  border-top-color: var(--student-sky);
}

.quick-link:hover,
.quick-link:focus-visible {
  border-top-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 31, 72, 0.1);
}

.quick-link span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.category-card,
.article-aside,
.list-card {
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 31, 72, 0.06);
}

.category-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  min-height: 150px;
  border-left: 6px solid var(--student-teal);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.category-card:nth-child(3n + 2) {
  border-left-color: var(--student-sky);
}

.category-card:nth-child(3n) {
  border-left-color: var(--school-blue);
}

.category-card:hover {
  border-color: var(--orange);
  border-left-color: var(--orange);
  box-shadow: 0 14px 30px rgba(0, 31, 72, 0.1);
  transform: translateY(-2px);
}

.category-icon {
  display: grid;
  grid-row: span 3;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--student-mint);
  color: var(--student-teal);
}

.category-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-icon.navy,
.category-icon.blue,
.category-icon.sky,
.category-icon.orange {
  background: var(--student-mint);
  color: var(--student-teal);
}

.category-icon.blue,
.category-icon.orange {
  background: var(--student-ice);
  color: var(--school-blue);
}

.category-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.category-card strong {
  font-size: 1.15rem;
  line-height: 1.25;
}

.category-card small {
  color: var(--muted);
  font-size: 0.94rem;
}

.two-col,
.article-layout,
.student-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.article-layout {
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
}

.article-content {
  font-size: 1.04rem;
  overflow-wrap: anywhere;
}

.article-content h2 {
  margin: 2rem 0 0.85rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  line-height: 1.22;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-aside h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.article-aside ul {
  padding-left: 1.1rem;
}

.callout {
  margin: 1.75rem 0;
  padding: clamp(1.25rem, 2vw, 1.55rem);
  border-left: 6px solid var(--student-teal);
  border-radius: 6px;
  background: var(--student-mint);
}

.callout.blue {
  border-left-color: var(--student-sky);
  background: var(--student-ice);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--navy);
}

.student-band {
  background: linear-gradient(90deg, var(--student-mint), var(--student-ice));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.student-band p {
  max-width: 720px;
  margin: 0.85rem 0 0;
  color: #344054;
  font-size: 1.05rem;
}

.difference-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.difference-list li {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 124, 137, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-weight: 800;
}

.list-layout {
  display: grid;
  gap: 1rem;
}

.list-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.42rem;
}

.list-card h2 a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.site-footer {
  flex: 0 0 auto;
  padding: 0.75rem 0;
  background: #fff;
  color: var(--muted);
  border-top: 1px solid #c9d6e2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  font-weight: 700;
}

.site-footer img {
  width: 72px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1320px) {
  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.5rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    color: var(--navy);
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: var(--student-mint);
    color: var(--student-teal);
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.1rem 0.75rem;
  }
}

@media (max-width: 1120px) {
  .home-hero-inner,
  .two-col,
  .article-layout,
  .student-band-inner {
    grid-template-columns: 1fr;
  }

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

  .support-message {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .section-heading,
  .student-band-inner {
    align-items: start;
    flex-direction: column;
  }

  .brand {
    align-items: center;
  }

  .brand img {
    width: 108px;
  }

  .home-hero-inner {
    min-height: 0;
  }

  .home-intro h1 {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  .search-row,
  .quick-link-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .site-nav.open {
    grid-template-columns: 1fr;
  }

  .search-panel {
    z-index: 1;
    margin-top: 0.5rem;
    padding: 1rem;
  }

  .search-results {
    left: 1rem;
    right: 1rem;
    top: calc(100% - 1rem);
    max-height: 48vh;
    padding-inline: 0.9rem;
  }
}
