:root {
  --forest: #173d2c;
  --forest-2: #24543e;
  --forest-3: #dfe9e2;
  --ink: #18231d;
  --muted: #5f6d65;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: #d9ddd8;
  --gold: #d4a23b;
  --gold-soft: #f4e7c5;
  --red: #a6372a;
  --red-soft: #f5ded9;
  --orange: #a65d18;
  --orange-soft: #f8e6cf;
  --shadow: 0 18px 50px rgba(22, 50, 36, .10);
  --radius: 18px;
  --shell: 1180px;
}

* { 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; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.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: 12px; top: -60px; z-index: 999; background: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,239,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(23,61,44,.10); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; color: var(--forest); }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; text-decoration: none; font-weight: 700; font-size: .93rem; color: #314039; }
.site-nav a:hover, .site-nav a.is-active { color: var(--forest); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 3px; border-radius: 5px; background: var(--gold); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 8px 11px; font-weight: 700; }

.deadline-alert { background: #fff1e8; border-bottom: 1px solid #efc7ab; color: #703715; }
.deadline-alert__inner { min-height: 54px; display: flex; align-items: center; gap: 12px; }
.deadline-alert__icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 900; }
.deadline-alert p { margin: 0; flex: 1; font-size: .94rem; }
.deadline-alert a { font-weight: 800; text-underline-offset: 3px; }

.hero { background: var(--forest); color: var(--white); padding: 76px 0 70px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; right: -100px; top: -210px; box-shadow: 0 0 0 85px rgba(255,255,255,.025), 0 0 0 170px rgba(255,255,255,.018); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.55fr .7fr; gap: 70px; align-items: end; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--gold); font-weight: 850; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 820px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 5vw, 4.8rem); font-weight: 500; line-height: .99; letter-spacing: -.035em; }
.hero-copy { max-width: 760px; margin: 24px 0 0; color: #dce8e1; font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .91rem; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--gold); color: #201b10; }
.button--quiet { border: 1px solid rgba(255,255,255,.28); color: var(--white); }
.lead-story .button--quiet { color: var(--forest); border-color: #afbbb4; }
.button--light { background: var(--white); color: var(--forest); }
.mission-note { border-left: 3px solid var(--gold); padding: 6px 0 6px 24px; color: #d8e5dd; }
.mission-note__label { color: var(--white); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 850; }
.mission-note p { margin: 10px 0 0; font-size: .94rem; }

.topic-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.topic-bar__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topic-tabs { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 10px 0; }
.topic-tabs a { white-space: nowrap; text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 750; font-size: .88rem; color: #435047; }
.topic-tabs a:hover, .topic-tabs a.is-active { background: var(--forest-3); color: var(--forest); }
.search-box input { width: 240px; border: 1px solid #cfd6d1; background: var(--paper); border-radius: 999px; padding: 10px 14px; outline: none; }
.search-box input:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36,84,62,.12); }
.feed-notice { margin-top: 22px; padding: 12px 15px; border: 1px solid #e1c99e; border-radius: 12px; background: #fff8e8; color: #684d1c; font-size: .9rem; }

.section-space { padding-block: 58px; }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 32px; }
.lead-story, .deadline-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lead-story { padding: clamp(28px, 4vw, 48px); }
.lead-story h2 { margin: 14px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 3.45rem); font-weight: 500; line-height: 1.06; letter-spacing: -.025em; }
.lead-story h2 a, .news-card h3 a, .deadline-row h3 a { text-decoration: none; }
.lead-story h2 a:hover, .news-card h3 a:hover, .deadline-row h3 a:hover { color: var(--forest-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.lead-story > p:not(.section-kicker) { max-width: 720px; color: var(--muted); font-size: 1.03rem; }
.lead-meta, .card-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .8rem; }
.lead-meta { margin: 22px 0 26px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }

.category-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; background: var(--forest-3); color: var(--forest); }
.category-chip--national { background: #e7e9ee; color: #3d475d; }
.category-chip--funding { background: var(--gold-soft); color: #6f5014; }

.deadline-panel { padding: 26px; align-self: start; }
.deadline-panel__heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.deadline-panel__heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; }
.deadline-panel__heading .section-kicker { margin-bottom: 5px; }
.deadline-panel__heading > a { color: var(--forest); font-weight: 800; font-size: .84rem; }
.deadline-row { display: grid; grid-template-columns: 60px 1fr; gap: 15px; padding: 17px 0; border-bottom: 1px solid #e7e9e7; }
.deadline-row:last-child { border-bottom: 0; padding-bottom: 0; }
.deadline-row__date { width: 58px; height: 58px; display: grid; align-content: center; text-align: center; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); line-height: 1.05; }
.deadline-row__date strong { color: var(--forest); font-size: .93rem; }
.deadline-row__date small { margin-top: 4px; color: var(--muted); font-size: .65rem; }
.deadline-row h3 { margin: 5px 0 0; font-size: .94rem; line-height: 1.3; }
.deadline-inline { font-size: .67rem; font-weight: 850; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.deadline-inline--today, .deadline-inline--urgent { color: var(--red); }
.deadline-inline--soon { color: var(--orange); }
.deadline-inline--approaching { color: #856817; }
.muted { color: var(--muted); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 500; letter-spacing: -.02em; }
.section-heading p:not(.section-kicker) { max-width: 690px; margin: 9px 0 0; color: var(--muted); }
.result-count { flex: 0 0 auto; color: var(--muted); font-size: .83rem; font-weight: 750; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-grid--funding { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.news-card:hover { transform: translateY(-2px); border-color: #b9c6bd; box-shadow: 0 12px 32px rgba(22,50,36,.08); }
.news-card--funding { border-top: 4px solid var(--gold); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-card h3 { margin: 15px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.36rem; font-weight: 600; line-height: 1.17; }
.card-summary { color: var(--muted); font-size: .91rem; margin: 0 0 18px; }
.card-meta { margin-top: auto; padding-top: 6px; }
.text-link { color: var(--forest); font-size: .82rem; font-weight: 850; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link--community { color: #57635c; }
.deadline-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.deadline-badge--today, .deadline-badge--urgent { background: var(--red-soft); color: var(--red); }
.deadline-badge--soon { background: var(--orange-soft); color: var(--orange); }
.deadline-badge--approaching { background: var(--gold-soft); color: #755813; }
.deadline-badge--open { background: var(--forest-3); color: var(--forest); }
.deadline-date { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; margin: 3px 0 16px; border-radius: 10px; background: var(--paper); font-size: .8rem; }
.deadline-date span { color: var(--muted); }
.deadline-date strong { color: var(--forest); }
.empty-state, .empty-search { padding: 34px; border: 1px dashed #bfc8c2; background: rgba(255,255,255,.58); border-radius: 16px; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--ink); margin-top: 0; }
.empty-search { text-align: center; }

.community-cta { margin-top: 20px; background: var(--forest-2); color: var(--white); }
.community-cta__inner { padding-block: 54px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.community-cta h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; }
.community-cta p:not(.section-kicker) { max-width: 780px; margin: 12px 0 0; color: #d9e6de; }

.site-footer { background: #102c20; color: #cddbd2; padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: start; }
.brand--footer .brand-copy strong { color: var(--white); }
.brand--footer .brand-copy small { color: #a9bcb0; }
.footer-grid p { max-width: 600px; color: #aebeb4; font-size: .9rem; }
.footer-grid nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 30px; }
.footer-grid nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: .9rem; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #93a79a; font-size: .78rem; }
.footer-bottom a { color: inherit; }

@media (max-width: 900px) {
  .hero-grid, .lead-layout, .community-cta__inner { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .mission-note { max-width: 650px; }
  .lead-layout { gap: 22px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-cta__inner { gap: 26px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .header-inner { min-height: 68px; }
  .brand-copy small { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 62px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px; border-radius: 8px; }
  .site-nav a.is-active::after { display: none; }
  .site-nav a.is-active { background: var(--forest-3); }
  .deadline-alert__inner { padding-block: 10px; align-items: flex-start; }
  .deadline-alert a { display: none; }
  .hero { padding: 55px 0 50px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .topic-bar__inner { padding: 8px 0 12px; display: grid; }
  .topic-tabs { width: calc(100vw - 28px); }
  .search-box input { width: 100%; }
  .section-space { padding-block: 40px; }
  .lead-story, .deadline-panel { border-radius: 14px; }
  .news-grid, .news-grid--funding { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .result-count { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

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