:root {
  --navy-950: #061423;
  --navy-900: #0a2036;
  --navy-800: #12314e;
  --ink: #152436;
  --muted: #5c6877;
  --line: #dfe5ea;
  --paper: #f4f6f7;
  --white: #ffffff;
  --gold: #e4aa35;
  --sfst: #1f6fb2;
  --aride: #de7c24;
  --dre: #7046a5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 88px; padding: 10px clamp(20px, 4vw, 68px); background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(11, 32, 54, 0.1); backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 14px; width: fit-content; }
.brand-seal { display: grid; flex: 0 0 auto; place-items: center; width: 50px; height: 68px; }
.brand-seal img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.brand-copy strong { color: var(--navy-900); font-size: 16px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.brand-copy small { margin-top: 7px; color: #718191; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; }

.main-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 700; color: #445261; }
.main-nav a, footer > a:last-child { transition: color 160ms ease; }
.main-nav a:hover, .main-nav a:focus-visible, footer > a:last-child:hover { color: var(--sfst); }
.main-nav a[aria-current="page"] { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 7px; }

.portal-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 7px; background: var(--gold);
  color: #132233; font-size: 14px; font-weight: 800; box-shadow: 0 8px 22px rgba(228, 170, 53, 0.2);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.portal-button:hover, .portal-button:focus-visible { background: #f0ba4b; box-shadow: 0 10px 26px rgba(228, 170, 53, 0.3); transform: translateY(-1px); }
.portal-button-small { justify-self: end; padding: 12px 17px; }

.hero { position: relative; overflow: hidden; background: var(--navy-950) url("/images/mississippi-night-road-hero.png") center right / cover no-repeat; color: var(--white); }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4, 16, 29, .98) 0%, rgba(4, 16, 29, .91) 42%, rgba(4, 16, 29, .44) 70%, rgba(4, 16, 29, .62) 100%); }
.hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(0,0,0,.02) 55%, rgba(4,16,29,.62) 100%); }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; width: min(1180px, calc(100% - 40px)); min-height: 650px; margin: 0 auto; padding: 88px 0 112px; }
.hero-copy { max-width: 720px; }

.section-kicker, .program-label, .network-type { margin: 0; text-transform: uppercase; letter-spacing: 0.17em; font-size: 12px; font-weight: 800; }
.hero h1 { max-width: 840px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 80px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.hero-tagline { margin: 18px 0 20px; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3.4vw, 41px); font-weight: 700; line-height: 1.1; }
.hero-tagline em { color: var(--gold); font-weight: inherit; }
.hero-description { max-width: 650px; margin: 0; color: #bccbd9; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 36px; }
.portal-button-large { padding: 16px 21px; }
.text-link { display: inline-flex; align-items: center; gap: 3px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #e7eef4; font-size: 14px; font-weight: 700; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.programs-section { padding-top: 92px; padding-bottom: 115px; }
.section-heading { display: grid; grid-template-columns: 1.35fr 0.65fr; align-items: end; gap: 70px; margin-bottom: 46px; }
.section-kicker { margin-bottom: 14px; color: var(--sfst); }
.section-heading h2, .resource-intro h2 { margin: 0; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 51px); line-height: 1.08; letter-spacing: -0.03em; }
.section-heading > p, .resource-intro > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card { --program-color: var(--sfst); position: relative; overflow: hidden; padding: 28px 29px 25px; border: 1px solid var(--line); border-top: 5px solid var(--program-color); border-radius: 9px; background: var(--white); box-shadow: 0 10px 32px rgba(19, 41, 62, 0.06); transition: transform 180ms ease, box-shadow 180ms ease; }
.program-card:hover { transform: translateY(-4px); box-shadow: 0 17px 38px rgba(19, 41, 62, 0.11); }
.program-card.aride { --program-color: var(--aride); }
.program-card.dre { --program-color: var(--dre); }
.program-topline { position: relative; display: flex; align-items: flex-start; justify-content: space-between; min-height: 148px; }
.program-seal { position: absolute; top: 0; left: 50%; width: 142px; height: 142px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(14, 34, 53, .15)); transform: translateX(-50%); }
.program-label { margin-top: 28px; color: var(--program-color); }
.program-card h3 { margin: 9px 0 3px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 38px; letter-spacing: -0.03em; }
.program-card h4 { min-height: 39px; margin: 0; color: #647180; font-size: 12px; font-weight: 800; line-height: 1.45; text-transform: uppercase; letter-spacing: 0.05em; }
.program-summary { min-height: 114px; margin: 19px 0 18px; color: #4c5967; font-size: 14px; line-height: 1.7; }
.program-card ul { min-height: 111px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.program-card li { display: flex; align-items: center; gap: 9px; margin: 8px 0; color: #43515f; font-size: 13px; }
.program-card li span { width: 6px; height: 6px; border-radius: 50%; background: var(--program-color); }
.program-card > a, .network-copy a { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--program-color); font-size: 12px; font-weight: 800; }

.network-section { padding: 82px 0 92px; background: var(--navy-900); color: var(--white); }
.network-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.network-card { display: grid; grid-template-columns: 180px 1fr; min-height: 310px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.055); }
.network-logo { display: grid; place-items: center; padding: 24px; background: rgba(255, 255, 255, 0.07); }
.network-logo img { display: block; width: 100%; max-width: 130px; max-height: 150px; object-fit: contain; }
.logo-storm { background: #f7f8f9; }
.logo-storm img { max-width: 145px; }
.network-copy { padding: 33px 30px; }
.network-type { color: #8eadc6; }
.network-copy h3 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.network-copy p:not(.network-type) { margin: 0; color: #b9c7d2; font-size: 13px; line-height: 1.7; }
.network-copy a { color: var(--gold); }

.resources-section { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 100px; padding-top: 106px; padding-bottom: 107px; }
.resource-intro h2 { font-size: 42px; }
.resource-intro > p:last-child { margin-top: 19px; }
.resource-links { border-top: 1px solid var(--line); }
.resource-links a { display: grid; grid-template-columns: 125px 1fr auto; align-items: center; gap: 19px; min-height: 82px; padding: 16px 5px; border-bottom: 1px solid var(--line); color: #334353; font-size: 14px; font-weight: 700; transition: color 160ms ease, padding 160ms ease; }
.resource-links a:hover { padding-left: 10px; color: var(--sfst); }
.resource-links span { color: #82909d; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 112px; padding: 25px clamp(20px, 4vw, 68px); background: var(--navy-950); color: #9fb0c0; }
.footer-brand .brand-copy strong { color: var(--white); }
.footer-brand .brand-copy small { color: #728ba2; }
footer p { margin: 0; font-size: 12px; }
footer > a:last-child { justify-self: end; color: var(--gold); font-size: 13px; font-weight: 800; }
a:focus-visible { outline: 3px solid #66b5ee; outline-offset: 4px; }

.detail-hero { --detail-color: var(--sfst); background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.detail-hero.aride-detail { --detail-color: var(--aride); }
.detail-hero.dre-detail { --detail-color: #a986d0; }
.detail-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 70px; width: min(1040px, calc(100% - 40px)); min-height: 505px; margin: 0 auto; padding: 72px 0 82px; }
.detail-copy { max-width: 720px; }
.breadcrumb { display: inline-block; margin-bottom: 37px; color: #bed0df; font-size: 13px; font-weight: 700; }
.breadcrumb::before { content: "← "; }
.detail-copy .section-kicker { color: var(--detail-color); }
.detail-copy h1 { margin: 8px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
.detail-copy > p:not(.section-kicker) { max-width: 690px; margin: 0; color: #c5d2dd; font-size: 18px; line-height: 1.7; }
.detail-copy .portal-button { margin-top: 31px; color: #132233; }
.detail-seal { display: block; width: 100%; height: auto; max-height: 310px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28)); }
.detail-section { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 78px; padding-top: 88px; padding-bottom: 104px; }
.detail-content h2, .related-programs h2 { margin: 0 0 18px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; }
.detail-content h2:not(:first-child) { margin-top: 42px; }
.detail-content p { margin: 0 0 20px; color: #4c5967; font-size: 16px; line-height: 1.8; }
.detail-list { margin: 0 0 28px; padding: 0; list-style: none; }
.detail-list li { position: relative; margin: 13px 0; padding-left: 25px; color: #425160; font-size: 15px; line-height: 1.6; }
.detail-list li::before { position: absolute; top: .58em; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--sfst); content: ""; }
.source-link { color: var(--sfst); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.related-programs { align-self: start; padding: 29px; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 9px; background: var(--paper); }
.related-programs h2 { font-size: 25px; }
.related-programs a { display: block; padding: 18px 0; border-top: 1px solid #d9e0e5; }
.related-programs a:first-of-type { border-top: 0; }
.related-programs strong, .related-programs span { display: block; }
.related-programs strong { color: var(--navy-900); font-size: 15px; }
.related-programs span { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.related-programs a:hover strong { color: var(--sfst); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero h1 { font-size: 62px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-summary, .program-card ul { min-height: 0; }
  .program-card { padding-left: 38px; padding-right: 38px; }
  .program-card h4 { min-height: 0; }
  .network-card { grid-template-columns: 145px 1fr; }
  .resources-section { gap: 50px; }
  .detail-hero-inner { grid-template-columns: minmax(0, 1fr) 240px; gap: 42px; }
  .detail-section { grid-template-columns: minmax(0, 1fr) 310px; gap: 45px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 78px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 8px; }
  .portal-button-small { padding: 11px 13px; font-size: 12px; }
  .hero { background-position: 62% center; }
  .hero-inner { min-height: 660px; padding: 70px 0 122px; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-description { font-size: 16px; }
  .programs-section { padding-top: 88px; padding-bottom: 88px; }
  .program-summary { margin-top: 18px; }
  .network-section { padding: 85px 0; }
  .network-grid { grid-template-columns: 1fr; }
  .network-card { grid-template-columns: 135px 1fr; }
  .resources-section { grid-template-columns: 1fr; gap: 38px; padding-top: 85px; padding-bottom: 85px; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
  .detail-hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 58px; }
  .detail-seal { width: 210px; max-height: 220px; margin: 0 auto; }
  .detail-section { grid-template-columns: 1fr; gap: 48px; padding-top: 68px; padding-bottom: 82px; }
}

@media (max-width: 520px) {
  .site-header { padding-left: 14px; padding-right: 14px; }
  .brand { gap: 8px; }
  .brand-seal { width: 38px; height: 52px; }
  .brand-copy strong { font-size: 11px; letter-spacing: .025em; }
  .brand-copy small { margin-top: 4px; font-size: 7px; letter-spacing: .12em; }
  .portal-button-small svg { display: none; }
  .hero-inner, .section { width: min(100% - 28px, 1180px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .portal-button-large { width: 100%; }
  .section-heading h2, .resource-intro h2 { font-size: 36px; }
  .program-card { padding: 25px 23px 23px; }
  .network-card { grid-template-columns: 1fr; }
  .network-logo { min-height: 150px; }
  .network-logo img { max-height: 120px; }
  .resource-links a { grid-template-columns: 1fr auto; gap: 7px; }
  .resource-links span { grid-column: 1 / -1; }
  footer { padding: 25px 14px; }
  .detail-hero-inner { width: min(100% - 28px, 1040px); gap: 44px; }
  .detail-copy h1 { font-size: 45px; }
  .detail-copy > p:not(.section-kicker) { font-size: 16px; }
  .detail-copy .portal-button { width: 100%; }
  .detail-section { width: min(100% - 28px, 1180px); }
  .related-programs { padding: 24px 21px; }
}

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