:root {
  --ink: #17212f;
  --muted: #667085;
  --line: #d9e1ea;
  --wash: #f5f8f7;
  --paper: #ffffff;
  --brand: #116149;
  --brand-strong: #073f33;
  --gold: #e5bd61;
  --soft-green: #e8f5ef;
  --soft-gold: #fff7df;
  --shadow: 0 18px 48px rgba(23, 33, 47, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
  backdrop-filter: blur(16px);
}
.article-brand { display: inline-flex; align-items: center; gap: 10px; }
.article-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  background: var(--brand-strong);
  font-weight: 850;
}
.article-brand strong, .article-brand small { display: block; line-height: 1.2; }
.article-brand strong { font-size: 16px; }
.article-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: 0.08em; }
.article-site-header nav { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.article-site-header nav a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; }
.article-site-header nav a:hover { background: #f1f5f3; }
.article-site-header .header-cta { color: white; background: var(--brand); }
.article-site-header .header-cta:hover { background: var(--brand-strong); }

.article-hero {
  color: white;
  background: var(--brand-strong);
}
.article-hero-inner { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 44px; }
.back-link { display: inline-block; margin-bottom: 24px; color: rgba(255,255,255,.74); font-size: 14px; font-weight: 700; }
.back-link::before { content: "\2190"; margin-right: 7px; }
.back-link:hover { color: white; }
.article-kicker, .section-eyebrow { margin: 0 0 12px; color: #caa548; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.article-hero h1 { max-width: 820px; margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -.035em; }
.article-deck { max-width: 760px; margin: 18px 0 0; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 23px); }
.article-deck strong { color: white; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: rgba(255,255,255,.65); font-size: 13px; }

.article-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 70px; }
.prose { width: min(760px, 100%); margin-left: auto; margin-right: auto; }
.prose h2 { margin: 50px 0 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -.025em; }
.prose > h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; color: #354052; font-size: 17px; }
.prose strong { color: var(--ink); }
.scope-note { margin: 26px 0; padding: 18px 20px; border-left: 3px solid var(--brand); background: var(--soft-green); }
.scope-note strong { display: block; margin-bottom: 6px; color: var(--brand-strong); }
.scope-note p { margin: 0; color: #2e5147; font-size: 15px; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 50px 0; }
.numbers div { padding: 24px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 8px 24px rgba(23,33,47,.05); }
.numbers strong, .numbers span { display: block; }
.numbers strong { color: var(--brand); font-size: 42px; line-height: 1; }
.numbers span { margin-top: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }

.full-list { margin-top: 42px; scroll-margin-top: 82px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3.5vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
.section-heading > div > p:last-child { margin: 10px 0 0; color: var(--muted); }
.result-count { flex: 0 0 auto; margin: 0; padding: 8px 12px; border-radius: 999px; color: var(--brand-strong); background: var(--soft-green); font-size: 13px; font-weight: 800; }

.list-tools { display: grid; grid-template-columns: minmax(260px, 1.6fr) minmax(190px, .7fr) auto; align-items: end; gap: 12px; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.list-tools label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.list-tools input, .list-tools select, .list-tools button { min-height: 46px; border: 1px solid #cbd5df; border-radius: 8px; background: white; }
.list-tools input, .list-tools select { width: 100%; padding: 0 12px; color: var(--ink); }
.list-tools button { padding: 0 16px; color: var(--brand); font-weight: 800; }
.list-tools button:hover { border-color: var(--brand); background: var(--soft-green); }
.article-site-header a:focus-visible, .programme-name:focus-visible, .inline-course-link:focus-visible, .article-back-to-top:focus-visible { outline: 3px solid rgba(17,97,73,.28); outline-offset: 2px; }

.programme-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
.programme-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.programme-table th { position: sticky; top: 65px; z-index: 2; padding: 14px 12px; color: #364152; background: #eef4f1; border-bottom: 1px solid #ccd9d3; text-align: left; font-size: 12px; }
.programme-table td { padding: 15px 12px; border-bottom: 1px solid #edf0f3; vertical-align: top; }
.programme-table tbody tr:last-child td { border-bottom: 0; }
.programme-table tbody tr:hover { background: #fbfdfc; }
.programme-table th:first-child, .programme-table td:first-child { width: 48px; text-align: center; color: #8a94a3; }
.programme-table th:nth-child(2), .programme-table td:nth-child(2) { width: 150px; }
.programme-table th:nth-child(4), .programme-table td:nth-child(4) { width: 168px; }
.programme-table th:nth-child(5), .programme-table td:nth-child(5) { width: 190px; }
.programme-name { display: block; color: var(--brand-strong); font-weight: 800; }
.programme-name:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.programme-name strong, .programme-name small { display: block; }
.programme-name small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.deadline-date { white-space: nowrap; font-weight: 800; }
.deadline-date.is-july { color: #9a5c00; }
.no-results { padding: 56px 24px !important; color: var(--muted); text-align: center !important; }

.inline-course-link { color: var(--brand); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.checklist { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 14px 16px 14px 46px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #354052; }
.checklist li::before { content: ""; position: absolute; left: 17px; top: 17px; width: 15px; height: 15px; border: 2px solid var(--brand); border-radius: 4px; }
.closing-cta { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 28px; width: min(900px, 100%); margin: 58px auto 0; padding: 30px; border-radius: 14px; color: white; background: var(--brand-strong); }
.closing-cta h2 { margin: 0; color: white; font-size: 28px; }
.closing-cta p { margin: 10px 0 0; color: rgba(255,255,255,.72); font-size: 15px; }
.closing-cta .section-eyebrow { margin: 0 0 8px; color: var(--gold); }
.closing-cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 8px; color: var(--brand-strong); background: white; font-weight: 850; white-space: nowrap; }
.disclaimer { margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 13px !important; }

.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(24px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); background: white; }
.article-footer p { color: var(--muted); font-size: 13px; }
.article-back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 10; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: white; background: var(--brand); box-shadow: 0 12px 28px rgba(7,63,51,.25); }
.article-back-to-top[hidden] { display: none; }
.article-back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 820px) {
  .article-site-header { padding: 9px 16px; }
  .article-site-header nav > a:first-child { display: none; }
  .article-hero-inner, .article-shell { width: min(100% - 32px, 1120px); }
  .article-hero-inner { padding: 34px 0 38px; }
  .back-link { margin-bottom: 24px; }
  .article-shell { padding-top: 38px; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 10px; margin: 36px 0; }
  .numbers div { padding: 18px; }
  .numbers strong { font-size: 34px; }
  .full-list { margin-top: 38px; }
  .section-heading { align-items: start; }
  .list-tools { grid-template-columns: 1fr 1fr; }
  .list-tools label:first-child { grid-column: 1 / -1; }
  .list-tools button { min-width: 0; }
  .programme-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .programme-table, .programme-table tbody { display: block; }
  .programme-table thead { display: none; }
  .programme-table tbody { display: grid; gap: 12px; }
  .programme-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
  .programme-table td { display: block; width: auto !important; padding: 11px 14px; border: 0; border-top: 1px solid #edf0f3; text-align: left !important; }
  .programme-table td::before { display: block; margin-bottom: 3px; color: #8a94a3; content: attr(data-label); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
  .programme-table td:first-child { grid-column: 1 / -1; padding: 6px 14px; border: 0; color: var(--brand); background: #eef4f1; font-size: 11px; font-weight: 850; }
  .programme-table td:first-child::before { display: inline; margin-right: 4px; }
  .programme-table td:nth-child(2), .programme-table td:nth-child(3) { grid-column: 1 / -1; }
  .programme-table td:nth-child(2) { border-top: 0; }
  .programme-name small { font-size: 11px; }
  .programme-table td:nth-child(4) { border-right: 1px solid #edf0f3; }
  .no-results { grid-column: 1 / -1 !important; padding: 40px 18px !important; }
  .closing-cta { grid-template-columns: 1fr; padding: 24px; }
  .closing-cta h2 { font-size: 24px; }
  .closing-cta a { width: 100%; }
  .article-footer { align-items: flex-start; flex-direction: column; padding: 24px 16px 80px; }
  .article-footer p { margin: 0; }
  .article-back-to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 480px) {
  .article-site-header .header-cta { padding: 0 10px; font-size: 12px; }
  .article-brand-mark { width: 36px; height: 36px; }
  .article-hero h1 { font-size: 38px; }
  .article-deck { font-size: 19px; }
  .article-meta { gap: 5px 12px; }
  .article-meta span:last-child { display: none; }
  .prose p { font-size: 16px; }
  .scope-note { padding: 18px; }
  .numbers strong { font-size: 30px; }
  .numbers span { font-size: 11px; }
  .section-heading { display: block; }
  .result-count { width: fit-content; margin-top: 14px; }
  .list-tools { grid-template-columns: 1fr; padding: 12px; }
  .list-tools label:first-child { grid-column: auto; }
  .programme-table tbody tr { grid-template-columns: 1fr; }
  .programme-table td:nth-child(4), .programme-table td:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
}

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