/* ============================================================================
   TEMPLATE 7 — "Civic". A photographic, delivery-led design.

   WHY. The Ministry of Works asked (23 Sep 2026, via a mock-up from the CTO)
   for a site led by a photograph of the State's own infrastructure: a full-bleed
   hero with a left-set headline, a white figures band overlapping the hero's
   foot, "about" beside the Commissioner, the project tracker as a row of cards
   with a progress bar and a status badge, an icon grid of services, and the
   newsroom next to a quick-access panel. Templates 1–6 could not compose that,
   so it is the SEVENTH template — additive like 5 and 6: nothing renders it
   until a site sets theme.template = 7, and it reads the same fields.

   COLOUR. The tokens default to the mock-up's navy and gold; a site's own
   theme.primary / accent replace them and every derived shade is a color-mix
   of the pair, so another MDA's colours recolour the whole design.

   PHOTO. `--hero` (theme.hero) is the site's own upload — the Works flyover
   lives in the SITE'S media, not here, because it is the ministry's picture.
   Without a photo the hero is the navy gradient alone.
   ========================================================================= */

:root {
  --primary:      #0d2b4e;
  --accent:       #f0b323;

  --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
  --primary-deep: color-mix(in srgb, var(--primary) 62%, #000);
  --primary-mid:  color-mix(in srgb, var(--primary) 70%, #4a90e2);
  --primary-pale: color-mix(in srgb, var(--primary) 8%, #fff);
  --accent-light: color-mix(in srgb, var(--accent) 80%, #fff);
  --accent-deep:  color-mix(in srgb, var(--accent) 72%, #000);
  --accent-pale:  color-mix(in srgb, var(--accent) 14%, #fff);
  --on-accent:    #1a1400;

  --ink:    #0f1c2e;
  --body:   #3b4a5c;
  --soft:   #6b7a8c;
  --line:   #e4e9ef;
  --ground: #f4f6f9;
  --panel:  #ffffff;

  --ok:      #1f8a4c;
  --warn:    #c77c0a;
  --planned: #5a6b7d;

  --shadow-1: 0 1px 2px rgb(13 43 78 / .06);
  --shadow-2: 0 6px 24px rgb(13 43 78 / .10);
  --shadow-3: 0 16px 48px rgb(13 43 78 / .16);

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* One geometric sans throughout, as the mock-up sets it. theme.font = "jakarta" serves it. */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fw-ui: 600;

  --max: 1920px;
  --gutter: clamp(1rem, 2.6vw, 3.25rem);
  --measure: 64ch;
  --nav-h: 72px;
}

/* ---- rhythm + type -------------------------------------------------------- */
.section       { padding-block: clamp(2.75rem, 5.5vw, 5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section.alt   { background: var(--ground); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); color: var(--ink); }
h3 { font-weight: 700; font-size: var(--t-lg); }

/* The mock-up's eyebrow: a short gold rule, then small tracked caps. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: .55rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--accent); border-radius: 2px; }
.section-head { margin-bottom: clamp(1.4rem, 3vw, 2.25rem); }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-sub { color: var(--soft); margin-top: .3rem; max-width: var(--measure); }
.link-more {
  font-weight: 700; font-size: var(--t-sm); text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: .4rem; border-bottom: 2px solid var(--accent); padding-bottom: .15rem;
}
.link-more:hover { color: var(--primary); }
.link-more .i, .read-more .i, .btn .i { width: 16px; height: 16px; }

/* ---- buttons: gold is the primary action, navy the secondary --------------- */
.btn { font-weight: 700; border-radius: var(--radius-sm); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-light); color: var(--on-accent); filter: none; }
.btn-primary { background: var(--primary); }
.btn-on-dark { border-color: rgb(255 255 255 / .7); background: transparent; }

/* ---- government bar: navy strip, gold portal button ---------------------- */
.gov-bar { background: var(--primary-deep); border-bottom: 0; color: rgb(255 255 255 / .85); }
.gov-bar .wrap { padding-block: .55rem; }
.gov-bar .links a:first-child {
  background: var(--accent); color: var(--on-accent); padding: .35rem .8rem; border-radius: 6px;
  font-weight: 800; letter-spacing: .02em;
}
.gov-bar .links a:first-child:hover { background: var(--accent-light); text-decoration: none; }
.gov-bar .i { width: 14px; height: 14px; }

/* ---- masthead: white, the unit's name in heavy navy, the parent beneath --- */
.nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
.nav .wrap { min-height: var(--nav-h); }
.brand > span { display: flex; flex-direction: column-reverse; }
.brand img { width: 50px; height: 50px; }
.brand .unit { color: var(--primary); font-weight: 800; font-size: var(--t-lg); letter-spacing: -.02em; }
.brand .org  { color: var(--soft); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: var(--t-xs); }
.nav-links a { color: var(--ink); font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: transparent; color: var(--primary); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav-links a.cta { background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); box-shadow: none; margin-left: .5rem; }
.nav-links a.cta:hover { background: var(--accent-light); color: var(--on-accent); }
@media (max-width: 560px) {
  :root { --nav-h: 62px; }
  .brand img { width: 40px; height: 40px; }
  .brand .unit { font-size: var(--t-md); }
  .brand .org { display: none; }
}

/* ---- hero: a full-width photographic banner ---------------------------------
   The photograph fills the band edge to edge; navy comes in from the left so the
   type reads, a gold-to-green swoosh sits on the right edge and gold contour
   lines run along the bottom-left — the mock-up's furniture, drawn in CSS so no
   artwork is baked into the template. */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary) 60%, var(--primary-mid));
  min-height: clamp(400px, 34vw, 600px); display: grid; align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.hero-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 94%, transparent) 0%,
                           color-mix(in srgb, var(--primary) 80%, transparent) 28%,
                           color-mix(in srgb, var(--primary) 30%, transparent) 52%,
                           color-mix(in srgb, var(--primary) 4%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, transparent), color-mix(in srgb, var(--primary) 34%, transparent));
}
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-swoosh {
  position: absolute; top: -20%; right: -14%; width: 34%; height: 150%;
  background: linear-gradient(200deg, color-mix(in srgb, var(--accent) 88%, transparent) 0%, color-mix(in srgb, var(--accent) 55%, transparent) 45%, color-mix(in srgb, #1e7d4f 70%, transparent) 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 72% 100%, 30% 62%);
  opacity: .82; mix-blend-mode: multiply;
}
.hero-contours {
  position: absolute; left: -6%; bottom: -12%; width: 58%; height: 62%;
  background: repeating-radial-gradient(ellipse 110% 60% at 20% 110%, transparent 0 34px, color-mix(in srgb, var(--accent) 60%, transparent) 34px 35px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
  opacity: .45;
}
.hero-inner { width: 100%; }
.hero-text { max-width: 720px; }
.hero-eyebrow {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .7rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 1.4rem + 4vw, 5.2rem); line-height: .98; letter-spacing: -.035em; font-weight: 800;
  text-wrap: balance; margin-bottom: 1rem;
}
.hero h1[data-len="long"]  { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.6rem); }
.hero h1[data-len="xlong"] { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.9rem); }
.hero-tag { font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem); color: rgb(255 255 255 / .9); max-width: 34ch; line-height: 1.35; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero .btn-on-dark { border-color: rgb(255 255 255 / .8); background: transparent; }
@media (max-width: 700px) { .hero-swoosh { display: none; } .hero.has-photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 78%, transparent), color-mix(in srgb, var(--primary) 90%, transparent)); } }

/* The principal as a CUTOUT standing at the right edge (theme.heroPortrait — a background-free
   image, NOT lead.photo). Bottom-anchored so its natural foot is the banner's foot; the text
   column keeps clear of it; hidden under 900px where the two would collide. */
.hero-figure { position: absolute; right: clamp(1rem, 5vw, 7rem); bottom: 0; top: clamp(1rem, 3vw, 2.5rem); margin: 0; z-index: 0; display: flex; align-items: flex-end; pointer-events: none; }
.hero-portrait { height: 100%; width: auto; max-width: 42vw; object-fit: contain; object-position: bottom; display: block; filter: drop-shadow(-12px 18px 30px rgb(5 20 40 / .55)); }
.hero-plate {
  position: absolute; left: 0; bottom: clamp(1rem, 3vw, 2.25rem); transform: translateX(-38%);
  background: color-mix(in srgb, var(--primary-deep) 92%, transparent); color: #fff; border-left: 4px solid var(--accent);
  padding: .6rem .95rem; display: grid; gap: .15rem; box-shadow: var(--shadow-3); pointer-events: auto; max-width: 320px;
}
.hero-plate b { font-size: var(--t-sm); font-weight: 800; letter-spacing: -.01em; }
.hero-plate span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); font-weight: 700; line-height: 1.35; }
.hero.has-portrait .hero-text { max-width: min(640px, 52%); }
.hero.has-portrait .hero-swoosh { opacity: .95; }
@media (max-width: 1240px) {
  .hero-portrait { max-width: 36vw; }
  .hero-plate { transform: none; left: auto; right: 0; bottom: 0; max-width: 250px; padding: .5rem .75rem; }
  .hero.has-portrait .hero-text { max-width: 56%; }
}
@media (max-width: 900px) { .hero-figure { display: none; } .hero.has-portrait .hero-text { max-width: 720px; } }

/* ---- the band under the hero: service tiles beside the figures panel ---------- */
.band { padding-block: clamp(1rem, 1.6vw, 1.5rem); background: #fff; }
.band-grid { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 1100px) { .band-grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); } .band-grid.no-stats, .band-grid.no-tiles { grid-template-columns: 1fr; } }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)); }
.tiles a {
  display: grid; justify-items: center; align-content: start; gap: .7rem; height: 100%;
  text-align: center; text-decoration: none; color: var(--ink); font-size: var(--t-xs); font-weight: 700; line-height: 1.3;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem .7rem 1.1rem; box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tiles a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: var(--primary); }
.tile-ic { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.tile-ic .i { width: 28px; height: 28px; }
.tile-ic.t-1 { background: var(--primary); }
.tile-ic.t-2 { background: var(--accent); color: var(--on-accent); }
.tile-ic.t-3 { background: #1e7d4f; }
.stats-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .5rem 1rem; align-items: center; align-content: center;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary) 70%, var(--primary-mid)); color: #fff;
  border-radius: var(--radius); padding: 1.25rem clamp(1rem, 2vw, 1.75rem); box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.stats-panel::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: repeating-radial-gradient(ellipse 100% 60% at 30% 100%, transparent 0 26px, rgb(255 255 255 / .06) 26px 27px); pointer-events: none; }
.stats-panel .stat { display: grid; grid-template-columns: auto 1fr; gap: 0 .8rem; align-items: center; padding: .5rem .25rem; position: relative; z-index: 1; }
.stats-panel .stat + .stat { border-left: 1px solid rgb(255 255 255 / .14); padding-left: 1rem; }
.stats-panel .stat-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 0; background: transparent; color: var(--accent); display: grid; place-items: center; }
.stats-panel .stat-ic .i { width: 30px; height: 30px; }
.stats-panel .value { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats-panel .label { font-size: var(--t-xs); color: rgb(255 255 255 / .85); font-weight: 500; margin-top: .25rem; letter-spacing: 0; text-transform: none; }
@media (max-width: 560px) { .stats-panel .stat + .stat { border-left: 0; padding-left: .25rem; } }

/* ---- the photo strip -------------------------------------------------------------- */
.strip { padding-block: .25rem clamp(1rem, 1.6vw, 1.5rem); background: #fff; }
.strip-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.strip-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.strip-grid img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; display: block; transition: transform .35s ease; }
.strip-grid a:hover img { transform: scale(1.04); }

/* ---- about beside the commissioner ------------------------------------------ */
.about-civic { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) {
  .about-civic { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .about-civic.has-photo { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1fr); }
}
.about-col .rich-text { max-width: var(--measure); }
.about-col .rich-text p { font-size: var(--t-md); }
.pillars { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; }
.pillars li { display: flex; align-items: center; gap: .6rem; font-size: var(--t-sm); }
.pill-ic { width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--primary-pale); color: var(--primary); display: grid; place-items: center; }
.pill-ic .i { width: 18px; height: 18px; }
.about-photo { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); align-self: stretch; min-height: 320px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.25rem;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary-deep) 90%, transparent));
  color: #fff; font-weight: 800; font-size: var(--t-lg); line-height: 1.2;
}
.commissioner { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: var(--shadow-1); }
.comm-head { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; }
.comm-head img, .comm-head .lead-placeholder { width: 150px; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: var(--radius); }
.comm-head h3 { font-size: var(--t-xl); line-height: 1.15; }
.comm-role { color: var(--soft); font-weight: 600; font-size: var(--t-sm); margin-top: .3rem; }
.comm-quote {
  margin: 1.1rem 0 .9rem; padding: .9rem 1rem .9rem 2.6rem; position: relative;
  background: var(--ground); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; font-weight: 500; color: var(--ink); line-height: 1.5;
}
.comm-quote::before { content: "\201C"; position: absolute; left: .8rem; top: .2rem; font-size: 2.4rem; line-height: 1; color: var(--accent); font-style: normal; font-weight: 800; }
.comm-bio { font-size: var(--t-sm); color: var(--body); }
@media (max-width: 480px) { .comm-head { grid-template-columns: 1fr; } .comm-head img, .comm-head .lead-placeholder { width: 100%; max-width: 220px; } }

/* ---- the project cards ------------------------------------------------------ */
.proj-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.proj { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.proj-img { aspect-ratio: 16 / 10; display: grid; place-items: center; color: rgb(255 255 255 / .55); background: linear-gradient(135deg, var(--primary), var(--primary-mid)); }
.proj-img .i { width: 38px; height: 38px; }
.proj-body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .5rem; align-content: start; flex: 1; }
.proj-body h3 { font-size: var(--t-md); line-height: 1.25; }
.proj-body p { font-size: var(--t-xs); color: var(--body); }
.proj .bar { height: 6px; background: var(--ground); border-radius: 3px; overflow: hidden; margin-top: .35rem; }
.proj .bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.progress-label { font-family: var(--font-mono); font-size: 11px; color: var(--soft); }
.badge { display: inline-block; justify-self: start; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 4px; background: var(--ground); color: var(--body); }
.badge.s-ongoing { background: color-mix(in srgb, var(--ok) 14%, #fff); color: var(--ok); }
.badge.s-done    { background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); }
.badge.s-delayed { background: color-mix(in srgb, var(--warn) 16%, #fff); color: var(--warn); }
.badge.s-planned { background: var(--ground); color: var(--planned); }

/* ---- service grid ----------------------------------------------------------- */
.svc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.svc { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.2rem; box-shadow: var(--shadow-1); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; color: inherit; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: inherit; }
.svc-ic { width: 46px; height: 46px; border-radius: 10px; background: var(--primary-pale); color: var(--primary); display: grid; place-items: center; margin-bottom: .9rem; }
.svc-ic .i { width: 24px; height: 24px; }
.svc h3 { font-size: var(--t-md); color: var(--ink); margin-bottom: .4rem; line-height: 1.25; }
.svc p { font-size: var(--t-xs); color: var(--body); }

/* ---- news beside quick access ------------------------------------------------ */
.news-civic { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 960px) { .news-civic { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); } .news-civic.no-news { grid-template-columns: 1fr; } }
.news-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .22s ease, box-shadow .22s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: inherit; }
.news-card img, .news-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-pale), var(--ground)); color: var(--primary); }
.news-ph .i { width: 34px; height: 34px; opacity: .5; }
.news-body { padding: .95rem 1.05rem 1.1rem; display: grid; gap: .4rem; }
.news-card .news-date { font-family: var(--font-mono); font-size: 11px; color: var(--soft); text-transform: none; letter-spacing: .02em; }
.news-card h3 { font-size: var(--t-sm); line-height: 1.3; color: var(--ink); }
.news-card .read-more { font-size: var(--t-xs); font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: .3rem; }
.quick { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-1); }
.quick h3 { font-size: var(--t-lg); margin-bottom: 1rem; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.quick-grid a { display: grid; justify-items: center; gap: .5rem; text-align: center; text-decoration: none; font-size: var(--t-xs); font-weight: 700; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem .6rem; transition: background .2s ease, border-color .2s ease; }
.quick-grid a .i { width: 24px; height: 24px; color: var(--primary); }
.quick-grid a:hover { background: var(--accent-pale); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }

/* ---- officers + departments (shared block, restyled) ------------------------- */
/* auto-FILL, not auto-fit: a ministry with ONE officer listed got a single card stretched
   across the page (Physical Planning, 23 Sep). Empty columns are fine; a giant card is not. */
#team .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.officer img, .officer .placeholder { border-radius: var(--radius); }
.officer .role { color: var(--accent-deep); }
.dept-list { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.dept-list h3 { font-size: var(--t-md); margin-bottom: .75rem; }
.dept-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.dept-list li { display: inline-flex; align-items: center; gap: .45rem; background: var(--ground); border: 1px solid var(--line); border-radius: 99px; padding: .45rem .95rem; font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.dept-list .i { width: 15px; height: 15px; color: var(--accent-deep); flex: none; }

/* ---- closing band + footer ---------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--primary-deep), var(--primary) 70%, var(--primary-mid)); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-band .wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .85); }
.cta-band .btn-accent, .cta-band .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); justify-self: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; }
.contact-list .i { width: 18px; height: 18px; color: var(--accent); margin-top: .15em; flex: none; }
.contact-list a { color: #fff; text-decoration-color: var(--accent); }
.footer { background: var(--primary-deep); }
.footer h4 { font-family: var(--font-body); letter-spacing: .1em; }
.footer .contact-line .i { color: var(--accent); }
.socials a:hover { background: var(--accent); color: var(--on-accent); }

/* ---- inner pages ---------------------------------------------------------------- */
.page-hero { background: linear-gradient(120deg, var(--primary-deep), var(--primary) 65%, var(--primary-mid)); color: #fff; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.page-hero p { color: rgb(255 255 255 / .85); max-width: var(--measure); }
.prose { max-width: var(--measure); font-size: var(--t-md); }
.article-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.standfirst { font-size: var(--t-lg); font-weight: 500; color: var(--body); border-left: 3px solid var(--accent); padding-left: 1rem; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card, .post-link, .album { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-1); }

/* ---- notice strip ------------------------------------------------------------- */
.alert-strip { background: var(--primary-dark); color: #fff; border-bottom: 3px solid var(--accent); }
.alert-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; padding-block: .8rem; }
.alert-strip .tag { font-size: var(--t-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); padding: .28rem .7rem; border-radius: 4px; flex: none; }
.alert-strip p { margin: 0; font-size: var(--t-sm); font-weight: 600; }
.alert-strip a { color: #fff; text-decoration-color: var(--accent); }
