:root {
  --navy: #000b4d;
  --school-blue: #283583;
  --sky: #00b3e8;
  --sky-soft: #e5f9ff;
  --orange: #ed6b17;
  --orange-soft: #fff0e6;
  --ink: #101828;
  --muted: #526071;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --shadow: 0 16px 40px rgba(0, 11, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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: 10;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: absolute;
  top: clamp(0.75rem, 1.4vw, 1.25rem);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 clamp(1rem, 2.8vw, 2rem) 0 clamp(1rem, 4vw, 3rem);
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(0, 11, 77, 0.16);
}

.brand img {
  width: 168px;
  height: auto;
  display: block;
}

.brand span {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--school-blue);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.18rem;
  flex-wrap: nowrap;
  max-width: none;
  transform: translateX(-1.25rem);
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.42rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--orange);
}

.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;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  background: linear-gradient(110deg, var(--navy) 0%, var(--school-blue) 58%, #1c507a 100%);
  color: #fff;
}

.home-hero {
  position: relative;
  padding: clamp(1.8rem, 3.5vw, 2.5rem) 0 clamp(2rem, 4.5vw, 3rem);
  background: linear-gradient(110deg, var(--navy) 0%, var(--school-blue) 72%, #1c507a 100%);
  color: #fff;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-logo {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  top: clamp(1rem, 2vw, 1.5rem);
  width: clamp(108px, 9vw, 150px);
  height: auto;
}

.home-intro {
  padding-left: 0;
}

.home-intro h1 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-intro p {
  max-width: 560px;
  margin: 1rem 0 0;
  font-size: 1.12rem;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

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

.hero p,
.page-hero p {
  max-width: 780px;
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  display: block;
}

.page-hero {
  padding: clamp(1.8rem, 3.5vw, 2.5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 4.5vw, 3rem);
  background: linear-gradient(110deg, var(--navy) 0%, var(--school-blue) 72%, #1c507a 100%);
  color: #fff;
}

.page-hero .container {
  width: min(1120px, calc(100% - 2rem));
}

.page-hero h1,
.page-hero .page-meta {
  max-width: min(760px, calc(100vw - 6rem));
}

.page-hero a {
  color: #fff;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

.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: 420px;
  color: var(--muted);
  font-weight: 700;
}

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

.two-col,
.article-layout {
  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);
}

h2 {
  margin: 0 0 1.2rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  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 + h2,
ul + h2,
ol + h2,
.grid + h2,
.callout + h2 {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

p {
  margin: 0 0 1rem;
}

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

li {
  margin: 0.35rem 0;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

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

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.button.secondary {
  background: #fff;
  color: var(--school-blue);
}

.button.secondary:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.support-strip {
  padding: 1rem 0;
  background: var(--orange-soft);
  border-bottom: 1px solid #ffd8bf;
}

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

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

.support-message span {
  color: var(--ink);
}

.support-message .button {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
}

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

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

.quick-link:hover,
.quick-link:focus-visible {
  border-top-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 11, 77, 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: 2;
}

.card,
.article-aside,
.list-card {
  padding: clamp(1.35rem, 2.2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 11, 77, 0.06);
}

.card h3:first-child,
.article-aside h2:first-child,
.list-card h2:first-child {
  margin-top: 0;
}

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

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

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

.search-panel {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: 760px;
  padding: 1.2rem;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--navy);
  font-weight: 700;
}

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

.search-panel input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-results {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: calc(100% - 1.2rem);
  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, 11, 77, 0.18);
}

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

.search-results a:hover,
.search-results a:focus-visible {
  color: var(--school-blue);
}

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

.search-results strong {
  display: block;
}

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

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

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  min-height: 128px;
  align-content: center;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 11, 77, 0.06);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--school-blue);
}

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

.category-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--sky-soft);
  color: var(--school-blue);
}

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

.category-icon.navy {
  background: #eef1ff;
  color: var(--navy);
}

.category-icon.blue {
  background: #eef2ff;
  color: var(--school-blue);
}

.category-icon.sky {
  background: var(--sky-soft);
  color: #0079a6;
}

.category-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.category-card:has(.category-icon.navy)::before {
  background: var(--navy);
}

.category-card:has(.category-icon.blue)::before {
  background: var(--school-blue);
}

.category-card:has(.category-icon.sky)::before {
  background: var(--sky);
}

.category-card:has(.category-icon.orange)::before {
  background: var(--orange);
}

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

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

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

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

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

.article-content h3 {
  margin: 1.65rem 0 0.65rem;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
  line-height: 1.28;
}

.article-content h2 + h3 {
  margin-top: 1.1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.35rem;
}

.article-aside h2 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.1;
}

.source-note,
.resource-link {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 5px solid var(--sky);
  border-radius: 6px;
  background: var(--sky-soft);
}

.media-frame {
  margin: 1.5rem 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.media-frame video {
  width: 100%;
  display: block;
  border-radius: 4px;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 4px;
}

.media-frame figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.help-illustration {
  background: var(--soft);
}

.help-illustration img {
  width: 100%;
  display: block;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

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

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

.list-card h2 {
  font-size: 1.45rem;
}

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

.page-meta {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 700;
}

.site-footer {
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  background: #fff;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.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.85rem;
  color: var(--navy);
  font-weight: 700;
}

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

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--school-blue);
  font-weight: 700;
}

@media (max-width: 1320px) {
  .site-header {
    top: 1rem;
  }

  .home-intro {
    padding-left: clamp(10rem, 16vw, 13rem);
  }

  .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 {
    color: var(--school-blue);
  }

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

@media (max-width: 1120px) {
  .brand span {
    display: none;
  }

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

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

  .home-intro {
    padding-left: 0;
  }

  .hero-logo {
    display: none !important;
  }
}

@media (max-width: 780px) {
  .site-header {
    z-index: 30;
  }

  .hero,
  .two-col,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 260px;
  }

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

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

  .section-heading,
  .support-message,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .home-hero {
    padding-top: 5rem;
  }

  .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;
  }
}
