:root {
  color-scheme: light;
  --ink: #17252b;
  --muted: #61727a;
  --line: #d8e2df;
  --mist: #f1f5f3;
  --paper: #fbfcfa;
  --white: #ffffff;
  --teal: #126a7d;
  --teal-dark: #084d60;
  --coral: #e36546;
  --coral-soft: #fff0eb;
  --leaf: #2e7d60;
  --panel: #e7f3f4;
  --shadow: 0 20px 55px rgba(21, 48, 50, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.panel-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { letter-spacing: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 7vw;
  background: rgba(251, 252, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 275px; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; color: white; background: var(--teal); border-radius: 8px; font-weight: 900; font-size: 12px; }
.brand strong { display: block; color: var(--teal-dark); font-size: 15px; line-height: 1.1; letter-spacing: 0.08em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav a { position: relative; padding: 24px 0 20px; color: #334047; }
.nav a:hover, .nav a.active { color: var(--teal-dark); }
.nav a.active::after, .nav a:hover::after { content: ""; position: absolute; right: 0; bottom: 13px; left: 0; height: 3px; background: var(--coral); }

.hero { min-height: 306px; display: grid; align-items: center; background: #e7f3f4; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 1050px; padding: 64px 7vw 72px; }
.eyebrow, .section-kicker, .panel-kicker { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 16px; font-size: clamp(36px, 5vw, 59px); line-height: 1.04; letter-spacing: 0; }
h2 { margin-bottom: 10px; font-size: 28px; line-height: 1.16; }
.subhead { max-width: 680px; margin-bottom: 0; color: #40555a; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 7px; font-weight: 800; }
.primary { color: white; background: var(--teal); }
.primary:hover { background: var(--teal-dark); }
.secondary { color: var(--teal-dark); background: rgba(255, 255, 255, 0.92); border: 1px solid #a9c7cd; }

.product-nav { max-width: 1240px; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; padding: 0 24px; transform: translateY(-1px); }
.product-nav a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-height: 122px; padding: 20px 19px; background: var(--white); border: 1px solid var(--line); border-right: 0; font-size: 19px; font-weight: 850; }
.product-nav a:last-child { border-right: 1px solid var(--line); }
.product-nav a:hover { position: relative; z-index: 1; color: var(--teal-dark); border-color: var(--teal); }
.product-nav span { grid-row: span 2; color: var(--coral); font-size: 13px; font-weight: 900; }
.product-nav small { color: var(--muted); font-size: 13px; font-weight: 600; }

.program-shell, .content-section, .about-section { max-width: 1240px; margin: 0 auto; padding: 82px 24px; }
.program-toolbar, .section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-intro { max-width: 640px; margin: 0; color: var(--muted); line-height: 1.7; }
.search { width: min(380px, 100%); display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.search input { width: 100%; min-height: 42px; padding: 0 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 7px; font: inherit; text-transform: none; letter-spacing: 0; }
.search input:focus { outline: 3px solid rgba(18, 106, 125, 0.16); border-color: var(--teal); }

.tabs, .filters { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; }
.tab, .filter { min-height: 44px; padding: 0 18px; color: #35444a; background: var(--mist); border: 1px solid var(--line); border-right: 0; font-weight: 750; cursor: pointer; }
.tab:first-child, .filter:first-child { border-radius: 7px 0 0 7px; }
.tab:last-child, .filter:last-child { border-right: 1px solid var(--line); border-radius: 0 7px 7px 0; }
.tab.active, .filter.active { color: var(--teal-dark); background: var(--white); border-top: 4px solid var(--teal); }
.filters { gap: 8px; margin-top: 14px; }
.filter { min-height: 34px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.filter:first-child, .filter:last-child { border-radius: 999px; }
.filter.active { color: white; background: var(--ink); border-color: var(--ink); border-top: 1px solid var(--ink); }

.table-wrap { margin-top: 28px; overflow-x: auto; border-top: 1px solid var(--line); }
.program-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.page-status { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.page-controls { display: flex; align-items: center; gap: 6px; }
.page-arrow, .page-number { display: grid; place-items: center; width: 36px; height: 36px; color: var(--teal-dark); background: var(--white); border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 800; cursor: pointer; }
.page-number.active { color: white; background: var(--teal); border-color: var(--teal); }
.page-arrow:disabled { color: #a9b3b6; background: var(--mist); cursor: not-allowed; }
.page-arrow:not(:disabled):hover, .page-number:not(.active):hover { border-color: var(--teal); background: #edf7f7; }
table { width: 100%; min-width: 1320px; border-collapse: collapse; }
th, td { padding: 18px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: #2f3b3e; font-size: 14px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f1f8f7; }
.school-cell { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.school-cell small { display: block; max-width: 230px; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.school-logo { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; color: white; border-radius: 50%; background: var(--teal); font-size: 11px; font-weight: 850; }
.program-name { min-width: 260px; font-weight: 750; line-height: 1.45; }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; color: var(--leaf); background: #e5f4ec; font-size: 12px; font-weight: 800; }
.pill.warn { color: #a45b19; background: #fff0dd; }

.content-section { border-top: 1px solid var(--line); }
.case-section { max-width: none; padding-right: max(24px, calc((100vw - 1192px) / 2)); padding-left: max(24px, calc((100vw - 1192px) / 2)); background: #eaf3ef; }
.case-section .section-head { max-width: 1192px; margin: 0 auto; }
.compact-search { width: min(330px, 100%); }
.case-region-filters { max-width: 1192px; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px auto 0; }
.case-region-filter { min-height: 36px; padding: 0 14px; color: #35444a; background: rgba(255, 255, 255, 0.68); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 800; cursor: pointer; }
.case-region-filter:hover { color: var(--teal-dark); border-color: var(--teal); background: var(--white); }
.case-region-filter.active { color: white; background: var(--ink); border-color: var(--ink); }
.result-note { max-width: 1192px; margin: 26px auto 12px; color: var(--muted); font-size: 13px; font-weight: 750; }
.case-grid { max-width: 1192px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 auto; }
.case-pagination { max-width: 1192px; margin: 22px auto 0; }
.case-card, .article-card { background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.content-card-button { display: block; width: 100%; height: 100%; padding: 23px; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; }
.content-card-button:hover { color: var(--teal-dark); }
.content-card-button:focus-visible { outline: 3px solid var(--coral); outline-offset: -4px; }
.case-card { min-height: 338px; }
.case-card-topline, .article-meta, .article-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.case-card-topline span:last-child { color: var(--teal); }
.case-card h3, .article-card h3 { margin: 19px 0 8px; font-size: 20px; line-height: 1.28; }
.case-program { min-height: 40px; margin-bottom: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.case-facts { display: grid; gap: 8px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; }
.case-facts dt { color: var(--muted); }
.case-facts dd { margin: 0; font-weight: 700; }
.card-summary { min-height: 63px; margin: 15px 0; color: #526369; font-size: 14px; line-height: 1.5; }
.tag-list, .outcome-tags, .method-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.outcome-tag, .method-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.outcome-tag.selected { color: #ffffff; background: #0d7a4b; }
.outcome-tag.offer { color: #17613d; background: #d9f5e1; }
.outcome-tag.rejected { color: #9b3336; background: #fde1e0; }
.outcome-tag.pending { color: #5e676b; background: #e6eaeb; }
.method-tag { color: #334448; background: #eef1f0; }
.case-facts .method-tags { gap: 5px; }
.card-link { display: block; margin-top: 18px; color: var(--coral); font-size: 13px; font-weight: 850; }
.empty-state { grid-column: 1 / -1; padding: 26px 0; color: var(--muted); }

.notes-section { padding-bottom: 90px; }
.note-head { align-items: start; }
.note-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.note-head .section-intro { max-width: 470px; padding-top: 23px; }
.section-more { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-dark); font-size: 14px; font-weight: 850; }
.section-more span { color: var(--coral); font-size: 18px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.article-card { min-height: 270px; }
.article-card.article-featured { grid-column: span 2; background: var(--coral-soft); border-color: #f0c0b1; }
.article-card h3 { max-width: 560px; font-size: 22px; }
.article-card p { max-width: 560px; margin-bottom: 23px; color: #566267; font-size: 14px; line-height: 1.65; }
.article-meta span:first-child { color: var(--coral); }
.article-footer { padding-top: 12px; border-top: 1px solid rgba(94, 99, 100, 0.16); }
.article-footer span:last-child { color: var(--teal); }

.about-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 12vw; padding-top: 70px; padding-bottom: 84px; border-top: 1px solid var(--line); }
.about-copy h2 { max-width: 580px; font-size: clamp(30px, 4vw, 46px); }
.about-copy p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.contact-actions { align-self: end; padding: 25px 0; border-top: 4px solid var(--coral); }
.text-link { display: inline-flex; gap: 10px; margin-top: 21px; color: var(--teal-dark); font-weight: 850; }
.contact-actions p { margin: 28px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.notes-page-main { max-width: 900px; margin: 0 auto; padding: 76px 24px 100px; }
.notes-index-header { max-width: 720px; padding-bottom: 58px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 52px; color: var(--teal-dark); font-size: 13px; font-weight: 850; }
.back-link span { color: var(--coral); font-size: 18px; }
.notes-index-header h1 { margin-bottom: 18px; font-size: clamp(42px, 7vw, 72px); }
.notes-index-header > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.note-feed { max-width: 760px; }
.note-entry { padding: 48px 0 54px; border-bottom: 1px solid var(--line); }
.note-entry-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 800; }
.note-entry-meta span:first-child { color: var(--coral); }
.note-entry h2 { max-width: 690px; margin: 17px 0 12px; font-size: clamp(27px, 4vw, 38px); line-height: 1.18; }
.note-entry-excerpt { max-width: 680px; margin-bottom: 28px; color: #526369; font-size: 17px; line-height: 1.7; }
.note-entry-body { max-width: 680px; color: #34464b; font-size: 17px; line-height: 1.85; }
.note-entry-body p { margin-bottom: 18px; }
.note-entry-body p:last-child { margin-bottom: 0; }

.detail-panel { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(500px, 94vw); overflow-y: auto; background: var(--white); box-shadow: var(--shadow); transform: translateX(105%); transition: transform 180ms ease; }
.detail-panel.open { transform: translateX(0); }
.close { position: absolute; top: 18px; right: 18px; z-index: 1; width: 38px; height: 38px; color: var(--ink); background: rgba(255, 255, 255, 0.88); border: 1px solid var(--line); border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.panel-head { padding: 42px 28px 28px; background: var(--panel); }
.panel-school { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-weight: 700; }
.panel-title { margin-bottom: 16px; padding-right: 36px; font-size: 27px; line-height: 1.2; }
.panel-meta, .detail-lead { margin: 0; color: #34494f; font-size: 14px; font-weight: 750; line-height: 1.6; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.round-link { display: inline-grid; place-items: center; min-height: 40px; padding: 0 14px; color: var(--teal); background: white; border: 1px solid #9ec6cc; border-radius: 999px; font-weight: 800; }
.round-link.main { color: white; background: var(--teal); }
.panel-section { padding: 27px 28px; border-bottom: 1px solid var(--line); }
.rule-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #718086; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.rule-title::before, .rule-title::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.fact-grid, .req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.fact, .req { display: grid; gap: 4px; }
.fact span, .req span { color: var(--muted); font-size: 13px; }
.fact strong, .req strong { font-size: 14px; line-height: 1.5; }
.insight { padding: 16px; color: #344e54; background: #f5f8f7; border: 1px solid var(--line); border-radius: 7px; line-height: 1.7; }
.reading-copy { color: #34464b; font-size: 16px; line-height: 1.8; }
.reading-copy p { margin-bottom: 18px; }
.reading-copy p:last-child { margin-bottom: 0; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(14, 31, 34, 0.58); }

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 0; padding: 12px 20px 0; }
  .brand { min-width: 0; }
  .nav { width: 100%; gap: 22px; overflow-x: auto; }
  .product-nav { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
  .product-nav a:nth-child(2) { border-right: 1px solid var(--line); }
  .product-nav a:nth-child(-n + 2) { border-bottom: 0; }
  .program-toolbar, .section-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .note-head-actions { align-items: flex-start; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-section { gap: 50px; }
}

@media (max-width: 600px) {
  .topbar { padding: 12px 16px 0; }
  .nav { gap: 19px; font-size: 13px; }
  .hero { min-height: 330px; }
  .hero-inner { padding: 52px 20px 56px; }
  h1 { font-size: 38px; }
  h2 { font-size: 26px; }
  .subhead { font-size: 16px; }
  .product-nav { grid-template-columns: 1fr; }
  .product-nav a, .product-nav a:nth-child(2) { min-height: 78px; border-right: 1px solid var(--line); border-bottom: 0; font-size: 18px; }
  .product-nav a:last-child { border-bottom: 1px solid var(--line); }
  .program-shell, .content-section, .about-section { padding: 58px 16px; }
  .case-section { padding-right: 16px; padding-left: 16px; }
  .tabs { gap: 6px; }
  .tab { border-right: 1px solid var(--line); border-radius: 7px; }
  .tab:first-child, .tab:last-child { border-radius: 7px; }
  .tab.active { border-top: 3px solid var(--teal); }
  .filter { padding: 0 12px; }
  .program-pagination { align-items: flex-start; flex-direction: column; gap: 12px; }
  .case-grid, .article-grid { grid-template-columns: 1fr; gap: 12px; }
  .case-card { min-height: auto; }
  .article-card.article-featured { grid-column: auto; }
  .article-card { min-height: auto; }
  .note-head .section-intro { padding-top: 0; }
  .notes-page-main { padding: 52px 20px 72px; }
  .notes-index-header { padding-bottom: 42px; }
  .back-link { margin-bottom: 40px; }
  .notes-index-header > p:last-child { font-size: 16px; }
  .note-entry { padding: 36px 0 42px; }
  .note-entry-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .note-entry-excerpt, .note-entry-body { font-size: 16px; }
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .about-copy p:last-child { font-size: 16px; }
  .panel-head { padding: 40px 22px 24px; }
  .panel-section { padding: 24px 22px; }
  .fact-grid, .req-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .detail-panel { transition: none; }
}
