/* NGO Portal Sylhet — public styles (government-portal theme).
   Font: Noto Sans Bengali (served locally). */

@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-bengali-bengali-400-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-bengali-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-bengali-bengali-600-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-bengali-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-bengali-bengali-700-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-bengali-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------
   Government-portal theme.
   Bangladesh national colours (green #006a4e, red #f42a41) on white,
   boxed sections with green headings, a notice ticker, a hotline column
   and a two-tier footer — the layout people know from *.gov.bd sites.
   ------------------------------------------------------------------ */
:root {
  --green: #006a4e;
  --green-dark: #00513b;
  --green-deep: #003d2c;
  --green-tint: #e7f2ee;
  --green-wash: #f3f8f6;
  --red: #f42a41;
  --red-dark: #c8102e;
  --gold: #f7c844;
  --ink: #1b2a24;
  --paper: #eef2f0;
  --surface: #ffffff;
  --line: #d5dfda;
  --muted: #586a62;
  --link: #00624a;
  --accent: var(--green);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 40, 28, .06), 0 4px 14px -8px rgba(0, 40, 28, .18);
  --body: "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Noto Sans Bengali", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--body); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 880px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 14px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Older templates still use these type roles. */
.display, .display-sm { font-weight: 700; line-height: 1.3; margin: .1em 0 .3em; }
.display { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.display-sm { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.eyebrow { font-weight: 600; font-size: .9rem; color: var(--green); margin: 0; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.h-sm { font-size: 1.12rem; margin-top: 1.4em; }

/* 1. Government strip */
.gov-strip { background: var(--green-deep); color: #fff; font-size: .86rem; }
.gov-strip-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.gov-line { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; letter-spacing: .01em; }
.gov-line img { width: 22px; height: 22px; background: #fff; border-radius: 50%; }
.gov-line a { color: #fff; text-decoration: none; }
.gov-tools { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.gov-tools a { color: #fff; text-decoration: none; opacity: .92; }
.gov-tools a:hover { opacity: 1; text-decoration: underline; color: #fff; }
.gov-date { opacity: .8; }
.lang-switch { font-weight: 700; border: 1px solid rgba(255, 255, 255, .55); border-radius: 3px; padding: 1px 10px; }
.gov-login { background: var(--red); padding: 2px 12px; border-radius: 3px; font-weight: 600; opacity: 1 !important; }
.gov-login:hover { background: var(--red-dark); text-decoration: none !important; }
@media (max-width: 600px) { .gov-date { display: none; } .gov-line span { font-size: .8rem; } }

/* 2. Masthead */
.masthead { background: var(--surface); position: relative; z-index: 10; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
  background: radial-gradient(circle at 92% 50%, var(--green-tint) 0 110px, transparent 111px), linear-gradient(90deg, transparent 60%, var(--green-wash)); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-img { flex: none; width: 76px; height: 76px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.brand-img.is-emblem { border: 0; border-radius: 50%; }
.brand-img img { width: 100%; height: 100%; object-fit: contain; }
.brand-img:not(.is-emblem) img { padding: 4px; }
.brand-initials { font-weight: 700; font-size: 1.5rem; color: var(--green); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.3; font-weight: 700; color: var(--green-dark); }
.brand-text small { color: var(--muted); font-size: .95rem; line-height: 1.4; font-weight: 600; }
.masthead-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.member-badge { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 40px; background: #fff; }
.member-badge img { width: 40px; height: 40px; border-radius: 50%; }
.member-badge span { display: flex; flex-direction: column; font-size: .85rem; font-weight: 700; line-height: 1.3; color: var(--green-dark); }
.member-badge small { font-weight: 400; color: var(--muted); font-size: .76rem; }
.member-badge:hover { border-color: var(--green); color: var(--ink); }
.mini-search { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.mini-search input { width: 200px; padding: 8px 12px; border: 0; font: inherit; font-size: .92rem; color: var(--ink); background: transparent; }
.mini-search input:focus { outline: none; }
.mini-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-tint); }
.mini-search button { border: 0; background: var(--green); color: #fff; padding: 0 12px; cursor: pointer; display: grid; place-items: center; }
.mini-search button:hover { background: var(--green-dark); }

/* 3. Main navigation */
.mainnav { background: var(--green); border-bottom: 4px solid var(--red); }
.nav-toggle, .nav-burger { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li > a, .nav-list summary { display: block; padding: 11px 15px; color: #fff; text-decoration: none; font-weight: 600; font-size: .97rem; cursor: pointer; }
.nav-list > li > a:hover, .nav-list summary:hover, .nav-list > li > a[aria-current="page"], .nav-list details[open] > summary { background: var(--green-dark); color: #fff; }
.nav-list > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.nav-list summary { list-style: none; }
.nav-list summary::-webkit-details-marker { display: none; }
.nav-list summary::after { content: " ▾"; font-size: .75em; opacity: .85; }
.has-sub { position: relative; }
.has-sub .sub { list-style: none; margin: 0; padding: 6px 0; position: absolute; min-width: 240px; background: var(--surface); border-top: 3px solid var(--red); box-shadow: var(--shadow); z-index: 20; }
.has-sub .sub a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.has-sub .sub a:hover { background: var(--green-tint); color: var(--green-dark); }
@media (max-width: 820px) {
  .masthead-tools { flex: 1 1 100%; }
  .mini-search { flex: 1 1 100%; }
  .search-panel::after { width: 120px; height: 120px; right: -50px; top: -50px; opacity: .55; }
  .mini-search input { width: 100%; }
  .member-badge { display: none; }
  .nav-burger { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; cursor: pointer; color: #fff; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; }
  .nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
  .nav-list { display: none; flex-direction: column; padding-bottom: 10px; }
  .nav-toggle:checked ~ .nav-list { display: flex; }
  .has-sub .sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
  .has-sub .sub a { color: #e3f1ec; }
  .has-sub .sub a:hover { background: var(--green-dark); color: #fff; }
  .nav-list > li > a, .nav-list summary { padding: 9px 4px; }
  .brand-img { width: 58px; height: 58px; }
}

/* 4. Ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker-row { display: flex; align-items: stretch; gap: 0; min-height: 40px; }
.ticker-label { flex: none; display: flex; align-items: center; background: var(--red); color: #fff; font-weight: 700; padding: 0 16px; text-decoration: none; position: relative; margin-right: 12px; }
.ticker-label::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; border-left: 10px solid var(--red); border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.ticker-label:hover { color: #fff; background: var(--red-dark); }
.ticker-window { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; white-space: nowrap; }
.ticker-track li { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.ticker-track li::before { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 6px; flex: none; }
.ticker-track a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ticker-track a:hover { color: var(--red-dark); text-decoration: underline; }
.ticker-org { color: var(--muted); font-size: .86rem; }
.ticker.is-running .ticker-track { animation: ticker 40s linear infinite; }
.ticker.is-running .ticker-window:hover .ticker-track, .ticker.is-running .ticker-window:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-toggle { flex: none; border: 0; background: var(--green-tint); color: var(--green-dark); width: 40px; cursor: pointer; font-size: .8rem; }
.ticker-toggle:hover { background: var(--green); color: #fff; }
.ticker:not(.is-running) .ticker-toggle { display: none; }
.ticker:not(.is-running) .ticker-track li[aria-hidden] { display: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker.is-running .ticker-track { animation: none; }
  .ticker-window { overflow-x: auto; }
  .ticker-toggle { display: none; }
}

/* 5. Page grid: main column + right column */
main { min-height: 50vh; }
.gov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; padding-top: 22px; padding-bottom: 36px; align-items: start; }
.gov-main, .gov-aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 960px) { .gov-grid { grid-template-columns: 1fr; } }

/* Boxes with a green heading — the basic building block */
.gbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 16px; background: var(--green); color: #fff; font-size: 1.08rem; font-weight: 700; border-bottom: 3px solid var(--red); }
h1.gbox-head, h2.gbox-head { justify-content: flex-start; gap: 8px; }
.gbox-head h2 { margin: 0; font-size: 1.08rem; color: #fff; }
.gbox-head .more { color: #fff; font-size: .88rem; font-weight: 600; opacity: .95; }
.gbox-head .more:hover { color: var(--gold); }
.gbox-body { padding: 16px; }
.gbox > .notice-board, .gbox > .facts, .gbox > .empty, .gbox > .registry, .gbox > .district-tiles, .gbox > .hotlines, .gbox > .link-list { margin: 0; }
.gbox > .empty { border: 0; border-radius: 0; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }

/* Search panel (portal) */
.search-panel { background: linear-gradient(135deg, var(--green-dark), var(--green) 60%, #0b8a63); color: #fff; border-radius: var(--radius); padding: 22px 22px 18px; position: relative; overflow: hidden; }
.search-panel::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--red); opacity: .9; }
.search-panel > * { position: relative; z-index: 1; }
.search-panel h1 { font-size: 1.5rem; margin: 0 0 4px; }
.search-panel p { margin: 0 0 4px; opacity: .92; max-width: 60ch; }
.big-search { display: flex; gap: 0; margin: 14px 0 12px; max-width: 720px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.big-search input { flex: 1; min-width: 0; padding: 13px 16px; font: inherit; font-size: 1.05rem; border: 0; border-radius: 4px 0 0 4px; background: #fff; color: var(--ink); }
.big-search input:focus { outline: 3px solid var(--gold); outline-offset: 0; }
.big-search button { padding: 0 26px; border-radius: 0 4px 4px 0; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.big-search button:hover { background: var(--red-dark); }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; }
.stats li:nth-child(even) { border-top-color: var(--red); }
.stats strong { font-size: 1.7rem; line-height: 1.15; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.district-tiles { list-style: none; padding: 16px !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.district-tiles a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--green-wash); transition: background .15s, border-color .15s; }
.district-tiles svg { color: var(--red); margin-bottom: 4px; }
.district-tiles strong { font-size: 1.12rem; color: var(--green-dark); }
.district-tiles span { color: var(--muted); font-size: .88rem; }
.district-tiles a:hover { background: var(--green); border-color: var(--green); }
.district-tiles a:hover strong, .district-tiles a:hover span, .district-tiles a:hover svg { color: #fff; }
@media (max-width: 720px) { .district-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Sidebar boxes */
.hotlines { list-style: none; padding: 8px 0 !important; }
.hotlines a { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; padding: 8px 16px; text-decoration: none; color: var(--ink); }
.hotlines a:hover { background: var(--green-wash); }
.hotlines strong { font-size: 1.35rem; color: var(--red-dark); text-align: center; background: #fff3f4; border: 1px solid #f8c9cf; border-radius: 4px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.hotlines span { font-size: .92rem; line-height: 1.4; }
.link-list { list-style: none; padding: 6px 0 !important; }
.link-list a { display: block; padding: 8px 16px 8px 30px; position: relative; text-decoration: none; color: var(--ink); border-bottom: 1px dashed var(--line); }
.link-list li:last-child a { border-bottom: 0; }
.link-list a::before { content: "›"; position: absolute; left: 16px; color: var(--red); font-weight: 700; }
.link-list a:hover { color: var(--green-dark); background: var(--green-wash); }
.about-box .gbox-body, .portal-box .gbox-body { text-align: center; }
.about-emblem, .portal-box img { display: block; margin: 0 auto 10px; border-radius: 50%; }
.small-prose { font-size: .95rem; text-align: left; }
.facts.stacked { display: block; padding: 12px 16px; }
.facts.stacked dt { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.facts.stacked dt:first-child { margin-top: 0; }
.facts.stacked dd { margin: 0; font-weight: 600; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; font: inherit; font-weight: 700; border: 2px solid var(--green); background: var(--green); color: #fff; border-radius: 4px; cursor: pointer; text-decoration: none; }
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.button.ghost { background: transparent; color: var(--green-dark); }
.button.ghost:hover { background: var(--green); color: #fff; }
.button.full { width: 100%; }

/* Inner pages */
.section { padding: 26px 0 36px; }
.section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0 16px; }
.page-head .eyebrow { color: var(--muted); font-size: .85rem; }
.page-head h1 { color: var(--green-dark); border-left: 5px solid var(--red); padding-left: 12px; margin: 4px 0 4px; }
.page-head .lede { margin: 6px 0 0; }
.crumbs { margin: 0 0 6px; font-size: .9rem; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }
.meta-line { display: flex; gap: 12px; align-items: center; color: var(--muted); margin: 0; }
.intro-text { margin-top: 10px; }
.wrap.narrow:has(> .prose) { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .wrap.narrow:has(> .prose) { padding: 16px; border-radius: 0; border-left: 0; border-right: 0; } }

/* Notice board */
.notice-board { list-style: none; margin: 0; padding: 0; }
.notice-board li { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.notice-board li:last-child { border-bottom: 0; }
.notice-board li:nth-child(even) { background: var(--green-wash); }
.notice-board time { font-size: .82rem; color: var(--green-dark); background: var(--green-tint); border-radius: 3px; padding: 2px 8px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.notice-board .nb-title { display: block; color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.55; }
.notice-board .nb-title:hover { color: var(--red-dark); text-decoration: underline; }
.nb-org { display: block; font-size: .85rem; color: var(--muted); }
.notice-board li:first-child .nb-title::after { content: "নতুন"; display: inline-block; margin-left: 8px; font-size: .7rem; padding: 0 6px; border-radius: 3px; background: var(--red); color: #fff; vertical-align: 2px; }
html[lang="en"] .notice-board li:first-child .nb-title::after { content: "New"; }
.notice-board.compact li { grid-template-columns: 1fr; gap: 2px; }
.notice-board.compact time { justify-self: start; }
.section .notice-board, .split .notice-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.file-link { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 700; padding: 1px 10px; border-radius: 3px; background: var(--red); color: #fff; text-decoration: none; }
.file-link:hover { background: var(--red-dark); color: #fff; }
@media (max-width: 560px) { .notice-board li { grid-template-columns: 1fr; gap: 4px; } .notice-board time { justify-self: start; } }

.about-portal, .noticeboard-card, .contact-card, .form-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

/* Directory */
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.filters .field { margin: 0; }
.field.grow { flex: 1 1 280px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; padding: 9px 12px; border: 1px solid #b9c8c1; border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green-tint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.chip { padding: 5px 14px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--ink); background: var(--surface); font-size: .92rem; font-weight: 600; }
.chip span { color: var(--muted); font-size: .85em; margin-left: 4px; font-weight: 400; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-on span { color: rgba(255, 255, 255, .85); }
.chips.on-dark { margin: 0; }
.chips.on-dark .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.chips.on-dark .chip span { color: var(--gold); }
.chips.on-dark .chip:hover { background: #fff; color: var(--green-dark); }
.chips.on-dark .chip:hover span { color: var(--red-dark); }
.result-count { color: var(--muted); margin: 10px 0 14px; }

.registry { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.gbox > .registry { padding: 16px; }
.ngo-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.ngo-card:hover { border-left-color: var(--red); box-shadow: var(--shadow); }
.ngo-card-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.ngo-card-link:hover { color: var(--ink); }
.ngo-card-link:hover strong { color: var(--green-dark); text-decoration: underline; }
.ngo-logo { flex: none; width: 58px; height: 58px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.ngo-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ngo-logo.xl { width: 110px; height: 110px; border-radius: 8px; }
.ngo-initials { font-weight: 700; color: var(--green); font-size: 1.15rem; }
.ngo-names { display: flex; flex-direction: column; min-width: 0; }
.ngo-names strong { font-weight: 700; line-height: 1.4; }
.ngo-names small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.ngo-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; }
.pill { display: inline-block; font-size: .78rem; padding: 1px 9px; border-radius: 3px; background: var(--green-tint); color: var(--green-dark); font-weight: 700; }
.pill-site { background: transparent; border: 1px solid var(--green); color: var(--green); }
.stage-running { background: var(--green); color: #fff; }
.stage-upcoming { background: #fff1d6; color: #8a5300; }
.stage-completed { background: #e6e9e8; color: var(--muted); }
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 16px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.contact-card .button { width: 100%; margin-top: 4px; }
@media (max-width: 480px) { .facts:not(.stacked) { grid-template-columns: 1fr; gap: 0; } .facts:not(.stacked) dd { margin-bottom: 10px; } }

.empty { padding: 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.small { padding: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }
.pager a { font-weight: 700; text-decoration: none; padding: 6px 14px; border: 1px solid var(--green); border-radius: 4px; background: var(--surface); }
.pager a:hover { background: var(--green); color: #fff; }
.pager-pos { color: var(--muted); font-size: .92rem; }

/* Slider */
.slider { position: relative; background: var(--green-deep); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 7; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 20px 16px; color: #fff; background: linear-gradient(transparent, rgba(0, 30, 20, .75)); display: flex; flex-direction: column; }
.slide figcaption strong { font-size: 1.2rem; }
.slider-dots { position: absolute; bottom: 12px; right: 14px; display: flex; gap: 7px; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--red); border-color: #fff; }
@media (max-width: 700px) { .slide { aspect-ratio: 4 / 3; } }

/* NGO home intro */
.intro .org-name { font-size: 1.3rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.intro .lede { color: var(--ink); }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); border-color: #b9c8c1; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--green-tint); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.card-body h3 { margin: 0; font-size: 1.02rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--green-dark); text-decoration: underline; }
.card-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.card-body .pill { align-self: flex-start; }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.person { background: var(--surface); border: 1px solid var(--line); border-bottom: 4px solid var(--green); border-radius: var(--radius); padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.person strong a { color: var(--ink); text-decoration: none; }
.person-photo { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; background: var(--green-tint); display: grid; place-items: center; margin-bottom: 8px; font-size: 2rem; color: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo.lg { width: 150px; height: 150px; }
.person-detail { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }

.reach { background: var(--green-tint); border-radius: var(--radius); padding: 20px 24px; }

/* Long-form content */
.prose { overflow-wrap: break-word; }
.prose img { border-radius: 4px; height: auto; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.4em; color: var(--green-dark); }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--green); color: var(--muted); background: var(--green-wash); }
.prose ul, .prose ol { padding-left: 1.4em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.prose th { background: var(--green); color: #fff; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.prose tr:nth-child(even) td { background: var(--green-wash); }
.lead-img { width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 1.4em 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; }

.download { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin: 22px 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.download:hover { border-color: var(--red); color: var(--ink); }
.download-type { flex: none; width: 52px; height: 52px; border-radius: 4px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.download small { display: block; color: var(--muted); }
.related { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); }
.related ul { padding-left: 1.2em; }
.result-list { list-style: none; padding: 0; margin: 0 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.result-list li { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.result-list li:last-child { border-bottom: 0; }
.result-list li > a { font-weight: 700; margin-right: 10px; }
.result-list p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }

/* Forms */
.form-card textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 4px; margin-bottom: 16px; }
.notice.ok { background: var(--green-tint); color: var(--green-dark); }
.notice.err { background: #fdecee; color: #8c1020; }

/* Footer */
.footer { margin-top: 10px; font-size: .94rem; }
.footer-top { background: var(--green-dark); color: #e3f1ec; padding: 30px 0 20px; border-top: 4px solid var(--red); }
.footer a { color: #fff; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer-grid p { margin: 0 0 6px; }
.footer-name { font-weight: 700; font-size: 1.12rem; color: #fff; }
.footer-head { font-weight: 700; color: #fff; padding-bottom: 6px; margin-bottom: 8px !important; border-bottom: 2px solid rgba(255, 255, 255, .2); }
.footer-links, .social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.footer-links a, .social a { text-decoration: none; }
.footer-links a::before { content: "› "; color: var(--gold); }
.social { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.footer-bottom { background: var(--green-deep); color: #c7ddd5; padding: 12px 0; font-size: .88rem; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.implemented { display: flex; align-items: center; gap: 10px; }
.implemented img { width: 34px; height: 34px; background: #fff; border-radius: 50%; }
.implemented strong { color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Plain error pages */
.is-plain { display: grid; place-items: center; min-height: 100vh; }
.plain-error { max-width: 560px; padding: 32px 20px; }

@media print {
  .gov-strip, .mainnav, .ticker, .mini-search, .gov-aside, .footer-top, .slider { display: none !important; }
  .gov-grid { display: block; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
