/* ============================================================
   PUMWANI — DESIGN SYSTEM LAYER  (loaded after style.css + tools.css)
   One vocabulary for every page. Use these classes instead of
   page-local grids so improvements propagate site-wide.

   Layout utilities  : .ui-grid[data-cols] .ui-section .ui-head
   Components        : .ui-card .ui-tile .ui-row .ui-panel
                       .ui-toolbar .ui-badge .ui-meta .ui-actions
   ============================================================ */

:root{
  /* spacing scale — every section uses the same rhythm */
  --sp-1:6px;  --sp-2:10px; --sp-3:14px; --sp-4:18px;
  --sp-5:24px; --sp-6:32px; --sp-7:44px; --sp-8:60px;

  /* element scale */
  --card-pad:18px;
  --card-pad-lg:24px;
  --card-radius:14px;
  --card-radius-lg:18px;
  --card-line:#E4EDE7;
  --card-line-strong:#CFE0D6;
  --card-shadow:0 1px 2px rgba(6,45,30,.05), 0 6px 18px rgba(6,45,30,.06);
  --card-shadow-hover:0 14px 34px rgba(6,45,30,.11);

  /* type scale */
  --fs-h1:clamp(1.85rem, 3.1vw, 2.75rem);
  --fs-h2:clamp(1.45rem, 2.3vw, 2rem);
  --fs-h3:1.06rem;
  --fs-body:.94rem;
  --fs-small:.83rem;
  --fs-micro:.72rem;

  /* page rhythm */
  --section-pad:72px;
  --section-pad-sm:52px;
  --measure:68ch;
}

/* ---------- section rhythm + headings ---------- */
.ui-section{ padding:var(--section-pad) 0; }
.ui-section.tight{ padding:var(--section-pad-sm) 0; }
.ui-section.alt{ background:var(--bg-alt); }

.ui-head{ max-width:760px; margin:0 0 var(--sp-6); }
.ui-head.center{ margin-inline:auto; text-align:center; }
.ui-head .ui-eyebrow,
.ui-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.72rem; font-weight:800; letter-spacing:.16em;
  text-transform:uppercase; color:var(--gold-600); margin-bottom:10px;
}
.ui-eyebrow::before{ content:""; width:26px; height:2px; background:var(--yellow); border-radius:2px; }
.ui-head h2{ font-family:var(--font-display); font-size:var(--fs-h2); line-height:1.16;
  letter-spacing:-.02em; color:var(--green-900); margin:0 0 10px; }
.ui-head p{ margin:0; font-size:var(--fs-body); line-height:1.6; color:var(--muted); max-width:var(--measure); }
.ui-head.center p{ margin-inline:auto; }

/* ---------- responsive grid utility ----------
   <div class="ui-grid" data-cols="4">   — 4 across on desktop
   Collapses 6→4→3→2→1 automatically.                              */
.ui-grid{ display:grid; gap:var(--sp-4); grid-template-columns:repeat(3,minmax(0,1fr)); }
.ui-grid[data-cols="2"]{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.ui-grid[data-cols="3"]{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.ui-grid[data-cols="4"]{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.ui-grid[data-cols="5"]{ grid-template-columns:repeat(5,minmax(0,1fr)); }
.ui-grid[data-cols="6"]{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.ui-grid.dense{ gap:var(--sp-3); }
.ui-grid.loose{ gap:var(--sp-5); }

@media (max-width:1180px){
  .ui-grid[data-cols="6"]{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ui-grid[data-cols="5"]{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:980px){
  .ui-grid, .ui-grid[data-cols="4"], .ui-grid[data-cols="3"]{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ui-grid[data-cols="6"], .ui-grid[data-cols="5"]{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px){
  .ui-grid, .ui-grid[data-cols="2"], .ui-grid[data-cols="3"], .ui-grid[data-cols="4"],
  .ui-grid[data-cols="5"], .ui-grid[data-cols="6"]{ grid-template-columns:minmax(0,1fr); }
}

/* ---------- cards ---------- */
.ui-card{
  background:#fff; border:1px solid var(--card-line); border-radius:var(--card-radius);
  padding:var(--card-pad); display:flex; flex-direction:column; gap:var(--sp-2);
  transition:border-color .18s, box-shadow .18s, transform .18s;
  min-width:0;
}
.ui-card:hover{ border-color:var(--card-line-strong); box-shadow:var(--card-shadow-hover); transform:translateY(-2px); }
.ui-card h3, .ui-card h4{ margin:0; font-size:var(--fs-h3); line-height:1.36; letter-spacing:-.01em; color:var(--green-900); }
.ui-card p{ margin:0; font-size:var(--fs-small); line-height:1.55; color:var(--muted); }
.ui-card .ui-card-foot{ margin-top:auto; padding-top:var(--sp-2); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ui-card.flat:hover{ transform:none; box-shadow:none; border-color:var(--card-line); }
.ui-card.tint{ background:var(--bg-alt); }
.ui-card.media{ padding:0; overflow:hidden; }
.ui-card.media img{ width:100%; aspect-ratio:16/10; object-fit:cover; display:block; }
.ui-card.media .ui-card-body{ padding:var(--card-pad); display:flex; flex-direction:column; gap:8px; flex:1; }

/* icon-led tile (compact link / service shortcut) */
.ui-tile{
  display:flex; align-items:flex-start; gap:12px; text-decoration:none; color:inherit;
  background:#fff; border:1px solid var(--card-line); border-radius:var(--card-radius);
  padding:14px 16px; transition:.18s; min-width:0;
}
.ui-tile:hover{ border-color:var(--green-600); box-shadow:var(--card-shadow); transform:translateY(-1px); }
.ui-tile-ico{
  flex:none; width:34px; height:34px; border-radius:10px; display:grid; place-items:center;
  background:var(--green-50); color:var(--green-700); border:1px solid #D8EAE0;
}
.ui-tile-ico svg{ width:17px; height:17px; }
.ui-tile b{ display:block; font-size:.9rem; line-height:1.35; color:var(--green-900); }
.ui-tile span{ display:block; font-size:var(--fs-micro); line-height:1.4; color:var(--muted); margin-top:2px; }

/* compact list row (documents, notices, resources) */
.ui-row{
  display:flex; align-items:center; gap:14px; padding:13px 16px;
  background:#fff; border:1px solid var(--card-line); border-radius:12px;
  text-decoration:none; color:inherit; transition:.16s; min-width:0;
}
.ui-row:hover{ border-color:var(--green-600); background:#FBFEFC; }
.ui-row .ui-row-main{ min-width:0; flex:1; }
.ui-row b{ display:block; font-size:.92rem; line-height:1.35; color:var(--green-900); }
.ui-row small{ display:block; font-size:var(--fs-micro); color:var(--muted); margin-top:2px; }
.ui-row .ui-row-tag{
  flex:none; font-size:.64rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase;
  padding:4px 9px; border-radius:999px; background:var(--green-50); color:var(--green-700);
}

/* structured panel (facts, contacts, key info) */
.ui-panel{
  background:#fff; border:1px solid var(--card-line); border-radius:var(--card-radius-lg);
  padding:var(--card-pad-lg);
}
.ui-panel h3{ margin:0 0 10px; font-size:1rem; color:var(--green-900); }
.ui-panel dl{ margin:0; display:grid; gap:10px; }
.ui-panel dt{ font-size:var(--fs-micro); font-weight:900; letter-spacing:.1em; text-transform:uppercase; color:#8A9A91; }
.ui-panel dd{ margin:2px 0 0; font-size:.88rem; color:var(--green-900); }

/* toolbar (search + chips + sort) */
.ui-toolbar{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding-bottom:14px; margin-bottom:var(--sp-5); border-bottom:1px solid var(--card-line);
}
.ui-toolbar .ui-tools-end{ display:flex; align-items:center; gap:10px; margin-left:auto; }

/* badges, meta, actions */
.ui-badge{
  display:inline-flex; align-items:center; gap:5px; font-size:.64rem; font-weight:900;
  letter-spacing:.1em; text-transform:uppercase; padding:4px 9px; border-radius:999px;
  background:var(--green-50); color:var(--green-700);
}
.ui-badge.gold{ background:#FFF6C2; color:#7A5A00; }
.ui-badge.rose{ background:#FCE9F2; color:#9B2C62; }
.ui-badge.dark{ background:var(--green-900); color:#fff; }
.ui-meta{
  font-size:var(--fs-micro); font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#8A9A91;
}
.ui-actions{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.ui-link-more{
  display:inline-flex; align-items:center; gap:6px; font-size:.79rem; font-weight:900;
  color:var(--green-700); text-decoration:none;
}
.ui-link-more svg{ width:13px; height:13px; }
.ui-link-more:hover{ color:var(--green-900); text-decoration:underline; }

/* ---------- unified page header ---------- */
.page-hero{
  padding:34px 0 40px;
  background:linear-gradient(135deg, rgba(4,40,34,.94), rgba(4,40,34,.80) 58%, rgba(10,84,72,.66)) , var(--bg-alt);
}
.page-hero .container{ padding-top:0; }
.page-hero h1{
  font-size:var(--fs-h1); line-height:1.1; letter-spacing:-.025em;
  margin:0 0 12px; max-width:22ch;
}
.page-hero p{ font-size:.98rem; line-height:1.6; max-width:62ch; }
.page-hero .ui-actions{ margin-top:20px; }

/* breadcrumb — one implementation, everywhere */
.breadcrumb{
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  font-size:.79rem; font-weight:600; margin:0 0 14px; padding:0;
}
.breadcrumb a{ color:#9FE0CF; font-weight:700; text-decoration:none; }
.breadcrumb a:hover{ color:#fff; text-decoration:underline; }
.breadcrumb .sep{ color:rgba(255,255,255,.45); }
.breadcrumb .current{ color:#FFF3C2; font-weight:800; }
/* on light backgrounds */
.breadcrumb.on-light a{ color:var(--green-700); }
.breadcrumb.on-light a:hover{ color:var(--green-900); }
.breadcrumb.on-light .sep{ color:#A6B5AC; }
.breadcrumb.on-light .current{ color:var(--green-950); }

/* compact page header used when a page has no photo hero */
.page-head-lite{
  background:linear-gradient(180deg,#F6FAF7 0%,#fff 100%);
  border-bottom:1px solid var(--card-line); padding:26px 0 30px;
}
.page-head-lite h1{ font-family:var(--font-display); font-size:var(--fs-h2); color:var(--green-900);
  margin:0 0 8px; letter-spacing:-.02em; }
.page-head-lite p{ margin:0; color:var(--muted); font-size:var(--fs-body); max-width:var(--measure); }

/* ---------- tighten the legacy blocks so old pages match ---------- */
.section{ padding:var(--section-pad) 0; }
.section-head{ margin-bottom:var(--sp-6); }
.section-title{
  font-family:var(--font-display); font-weight:700; font-size:var(--fs-h2);
  line-height:1.16; letter-spacing:-.02em;
}
.section-sub{ font-size:var(--fs-body); }
.card{ border-radius:var(--card-radius); }
.services-grid, .news-grid, .feat-grid, .dirs{ gap:var(--sp-4); }
.feat-grid .feat, .dirs .dir, .card.feat{ padding:var(--card-pad); }
.feat-grid .feat h3, .dirs .dir h4, .card.feat h3{ font-size:var(--fs-h3); }
.feat-grid .feat p, .dirs .dir p, .card.feat p{ font-size:var(--fs-small); line-height:1.55; }
.info-grid, .contact-grid{ gap:var(--sp-4); }
.news-card h3{ font-size:1rem; }
.news-body p{ font-size:var(--fs-small); }
.btn{ font-size:.85rem; }

@media (max-width:1180px){
  .services-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px){
  :root{ --section-pad:52px; --section-pad-sm:40px; }
  .page-hero{ padding:26px 0 32px; }
  .page-hero h1{ max-width:none; }
}
@media (max-width:600px){
  :root{ --section-pad:44px; --section-pad-sm:34px; --card-pad:16px; }
  .ui-panel{ padding:20px; }
}
@media print{
  .ui-toolbar, .ui-actions{ display:none !important; }
}

/* ============================================================
   RESOURCE LIBRARY  (downloads.html)
   ============================================================ */
.filter-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.fchip{
  font-family:inherit; font-size:.78rem; font-weight:800; letter-spacing:.02em;
  padding:7px 14px; border-radius:999px; border:1px solid var(--card-line-strong);
  background:#fff; color:var(--green-800); cursor:pointer; transition:.16s;
}
.fchip:hover{ border-color:var(--green-600); background:var(--green-50); }
.fchip.active{ background:var(--green-800); border-color:var(--green-800); color:#fff; }
.dic-count{ font-size:var(--fs-micro); font-weight:900; letter-spacing:.1em; text-transform:uppercase; color:#8A9A91; }

.dl-list{ display:grid; gap:10px; }
.dl-list .ui-row{ align-items:center; }
.dl-list .ui-tile-ico{ width:38px; height:38px; }
.dl-list .ui-tile-ico svg{ width:17px; height:17px; }
.dl-action{
  flex:none; display:inline-flex; align-items:center; gap:6px; font-size:.74rem; font-weight:900;
  letter-spacing:.04em; color:var(--green-700); background:var(--green-50);
  border:1px solid #D8EAE0; padding:7px 12px; border-radius:999px;
}
.dl-action svg{ width:14px; height:14px; }
.ui-row:hover .dl-action{ background:var(--green-800); color:#fff; border-color:var(--green-800); }
.dl-note p{ margin:0; font-size:var(--fs-small); color:var(--muted); max-width:80ch; }
.dl-main{ padding-top:40px; }

@media (max-width:760px){
  .dl-list .ui-row{
    display:grid; grid-template-columns:38px minmax(0,1fr);
    grid-template-areas:"ico main" "act act"; align-items:start; gap:10px 12px; padding:14px;
  }
  .dl-list .ui-tile-ico{ grid-area:ico; }
  .dl-list .ui-row-main{ grid-area:main; }
  .dl-action{ grid-area:act; margin:0; justify-content:center; padding:9px 12px; }
  .dl-list .ui-row-tag{ grid-area:act; justify-self:start; margin-top:0; }
  .dl-list .ui-row:has(.ui-row-tag) .dl-action{ grid-row:3; }
}
@media (max-width:520px){
  .dl-list .ui-row-tag{ display:none; }
}
/* generic rows also stack their trailing element */
@media (max-width:600px){
  .ui-row{ flex-wrap:wrap; }
}

/* badges inside a flex-column card must not stretch */
.ui-card > .ui-badge, .ui-card > .ui-meta, .ui-card-body > .ui-badge{ align-self:flex-start; }

/* ============================================================
   EVENTS & NOTICES  (events.html)
   ============================================================ */
.ev-lead{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:var(--sp-5); align-items:start; }
.ev-feature{
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--card-line);
  border-radius:var(--card-radius-lg); overflow:hidden; box-shadow:var(--card-shadow);
}
.ev-feature-media{ position:relative; }
.ev-feature-media img{ width:100%; aspect-ratio:16/8.2; object-fit:cover; display:block; }
.ev-feature-flag{
  position:absolute; top:14px; left:14px; background:var(--yellow); color:var(--green-950);
  font-size:.64rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase;
  padding:5px 11px; border-radius:999px;
}
.ev-feature-body{ padding:var(--card-pad-lg); display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.ev-feature-body h2{ font-family:var(--font-display); font-size:1.55rem; line-height:1.18; margin:0; letter-spacing:-.01em; }
.ev-feature-body h2 a{ color:var(--green-900); text-decoration:none; }
.ev-feature-body h2 a:hover{ text-decoration:underline; }
.ev-feature-body p{ margin:0; font-size:var(--fs-small); color:var(--muted); line-height:1.6; }
.ev-when{ color:var(--green-900) !important; }
.ev-feature-body .ui-actions{ margin-top:6px; }

.ev-date{
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
  background:var(--green-50); border:1px solid #D8EAE0; border-radius:12px; padding:7px 11px; min-width:54px;
}
.ev-date b{ font-size:1.05rem; font-weight:800; color:var(--green-800); line-height:1.1; }
.ev-date span{ font-size:.64rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:800; }
.ev-date.lg{ min-width:70px; padding:9px 14px; align-self:flex-start; }
.ev-date.lg b{ font-size:1.3rem; }

.ev-side{ display:flex; flex-direction:column; gap:10px; }
.ev-side-title{ font-size:var(--fs-micro); font-weight:900; letter-spacing:.14em; text-transform:uppercase;
  color:#8A9A91; margin:0 0 2px; }
.ev-card{
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 14px; align-items:start;
  background:#fff; border:1px solid var(--card-line); border-radius:var(--card-radius);
  padding:16px; transition:.18s;
}
.ev-card:hover{ border-color:var(--card-line-strong); box-shadow:var(--card-shadow-hover); }
.ev-card .ev-date{ grid-row:span 3; }
.ev-card .ui-badge{ justify-self:start; }
.ev-card h3{ grid-column:2; margin:0; font-size:.98rem; line-height:1.35; }
.ev-card h3 a{ color:var(--green-900); text-decoration:none; }
.ev-card h3 a:hover{ text-decoration:underline; }
.ev-card > p{ grid-column:2; margin:0; font-size:var(--fs-small); color:var(--muted); line-height:1.55; }
.ev-card-foot{ grid-column:2; display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:4px; }
.ev-empty{ text-align:center; color:var(--muted); font-size:var(--fs-small); }

@media (max-width:980px){
  .ev-lead{ grid-template-columns:minmax(0,1fr); }
  .ev-side{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ev-side-title, .ev-side-more{ grid-column:1/-1; }
}
@media (max-width:620px){
  .ev-side{ grid-template-columns:minmax(0,1fr); }
  .ev-feature-body h2{ font-size:1.3rem; }
}
.ev-loc{
  display:block; min-width:0; flex:1; font-size:.72rem; font-weight:700; letter-spacing:.02em;
  color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ev-date.text{ min-width:0; padding:7px 10px; }
.ev-date.text b{ font-size:.78rem; }
.ev-card.no-date{ grid-template-columns:minmax(0,1fr); }
.ev-card.no-date .ui-badge, .ev-card.no-date h3, .ev-card.no-date > p, .ev-card.no-date .ev-card-foot{ grid-column:1; }

/* ============================================================
   SPECIALIST DIRECTORY (doctors.html)
   ============================================================ */
.doc-grid{ align-items:stretch; }
.doc-card{ padding:0; }
.doc-card picture img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.doc-days{
  display:flex; gap:8px; align-items:flex-start; margin:0; font-size:.76rem; line-height:1.45;
  color:var(--green-800); background:var(--green-50); border:1px solid #DCEDE3;
  border-radius:10px; padding:9px 11px;
}
.doc-days svg{ flex:none; width:13px; height:13px; margin-top:2px; color:var(--green-700); }
.doc-help{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.doc-help h3{ margin:0 0 4px; }
.doc-help p{ margin:0; max-width:60ch; font-size:var(--fs-small); color:var(--muted); }
@media (max-width:600px){ .doc-help{ gap:16px; } }

/* ============================================================
   ARTICLE GRID (articles.html)
   ============================================================ */
.art-card h3{ font-size:1rem; margin-top:2px; }
.art-card h3 a{ color:var(--green-900); text-decoration:none; }
.art-card h3 a:hover{ text-decoration:underline; }
.art-card-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

/* ============================================================
   DETAIL PAGES — articles & events (no more unstyled blocks)
   ============================================================ */
.pmh-page-container{ max-width:820px; }
.pmh-article-detail, .pmh-event-detail{ padding-top:44px; }
.pmh-article-meta, .pmh-event-meta{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  font-size:var(--fs-micro); font-weight:900; letter-spacing:.1em; text-transform:uppercase;
  color:#8A9A91; margin-bottom:12px;
}
.pmh-article-detail h1, .pmh-event-detail h1{
  font-family:var(--font-display); font-size:var(--fs-h1); line-height:1.12;
  letter-spacing:-.02em; color:var(--green-900); margin:0 0 22px; max-width:24ch;
}
.pmh-article-body p, .pmh-event-body p{
  font-size:1rem; line-height:1.72; color:#33413A; margin:0 0 18px;
}
.pmh-article-body h2{
  font-family:var(--font-display); font-size:1.32rem; color:var(--green-900);
  margin:30px 0 12px; letter-spacing:-.01em;
}
.pmh-event-details{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px;
  background:var(--bg-alt); border:1px solid var(--card-line); border-radius:var(--card-radius);
  padding:18px 20px; margin-top:26px;
}
.pmh-event-details p{ margin:0; font-size:var(--fs-small); color:#33413A; }
.pmh-event-details strong{ display:block; font-size:var(--fs-micro); letter-spacing:.1em;
  text-transform:uppercase; color:#8A9A91; margin-bottom:2px; }
@media (max-width:600px){
  .pmh-event-details{ grid-template-columns:minmax(0,1fr); }
  .pmh-article-detail h1, .pmh-event-detail h1{ font-size:1.6rem; }
}

/* ============================================================
   SHARED CLOSING BAND  (light-weight variant of .closing-cta)
   Same type + colour treatment, without the newsletter form, so
   secondary pages get a consistent ending.
   ============================================================ */
.ds-cta{
  display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
  background:linear-gradient(130deg, rgba(4,40,34,.97), rgba(4,40,34,.88) 55%, rgba(10,84,72,.78));
  border-radius:var(--card-radius-lg); padding:32px 36px; color:#fff;
  box-shadow:var(--shadow);
}
.ds-cta-eyebrow{ font-size:var(--fs-micro); font-weight:900; letter-spacing:.14em;
  text-transform:uppercase; color:#9FE0CF; }
.ds-cta h2{ font-family:var(--font-display); font-size:1.6rem; line-height:1.2;
  margin:8px 0 8px; letter-spacing:-.02em; color:#fff; }
.ds-cta p{ margin:0; font-size:var(--fs-small); color:rgba(255,255,255,.78); max-width:56ch; }
.ds-cta .ui-actions{ flex:none; }
@media (max-width:760px){
  .ds-cta{ padding:24px; gap:18px; }
  .ds-cta h2{ font-size:1.32rem; }
  .ds-cta .ui-actions .btn{ flex:1 1 auto; justify-content:center; }
}

/* ============================================================
   BLOOD BANK & DONORS
   ============================================================ */
.bb-urgent{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  background:#FFF9E6; border:1px solid #F2E3AE; border-left:4px solid var(--gold-500);
  border-radius:var(--card-radius); padding:16px 20px;
}
.bb-urgent-ico{ flex:none; width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:#FDEFC2; color:#8A6A00; }
.bb-urgent-ico svg{ width:18px; height:18px; }
.bb-urgent b{ display:block; font-size:.92rem; color:#5C4A00; }
.bb-urgent span{ display:block; font-size:var(--fs-small); color:#6B5A14; line-height:1.5; }
.bb-urgent > div{ flex:1 1 320px; min-width:0; }
.bb-urgent .btn{ flex:none; }

.bb-split{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:var(--sp-6); align-items:start; }
.bb-check{ list-style:none; margin:0 0 14px; padding:0; display:grid; gap:10px; }
.bb-check li{ display:flex; align-items:flex-start; gap:10px; font-size:var(--fs-body); color:#33413A; }
.bb-check svg{ flex:none; width:16px; height:16px; margin-top:3px; color:var(--green-600); }
.bb-check b{ color:var(--green-900); }
.bb-note{ font-size:var(--fs-small); color:var(--muted); margin:0 0 18px; }
.bb-list{ margin:0; padding-left:18px; display:grid; gap:8px; font-size:var(--fs-small); color:#3B4A42; line-height:1.55; }

.bb-prep{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  margin-top:32px; padding:26px 28px; border-radius:var(--card-radius-lg);
  background:var(--green-50); border:1px solid #D8EAE0;
}
.bb-prep h2{ font-family:var(--font-display); font-size:1.35rem; margin:6px 0 6px; color:var(--green-900); letter-spacing:-.01em; }
.bb-prep p{ margin:0; font-size:var(--fs-small); color:var(--muted); max-width:60ch; }
.bb-prep > div:first-child{ flex:1 1 340px; min-width:0; }
.bb-prep .ui-actions{ flex:none; }

@media (max-width:900px){
  .bb-split{ grid-template-columns:minmax(0,1fr); }
}
@media (max-width:620px){
  .bb-urgent{ padding:14px 16px; }
  .bb-urgent .btn{ width:100%; justify-content:center; }
  .bb-prep{ padding:20px; }
  .bb-prep .ui-actions{ width:100%; }
  .bb-prep .ui-actions .btn{ flex:1 1 auto; justify-content:center; }
}

/* ============================================================
   DETAIL LAYOUT  (news-*.html / event-*.html)
   ============================================================ */
.detail-layout{
  display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:var(--sp-6); align-items:start;
}
.detail-article{ min-width:0; }
.detail-article h1{ max-width:26ch; }
.detail-article .pmh-article-body, .detail-article .pmh-event-body{ max-width:70ch; }
.detail-side{ display:flex; flex-direction:column; gap:var(--sp-4); position:sticky; top:96px; }
.detail-side .ui-panel{ padding:20px; }
.detail-links{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.detail-links .ui-tile{ padding:11px 12px; }
.detail-help p{ margin:0 0 14px; font-size:var(--fs-small); color:var(--muted); }
.detail-help .ui-actions .btn{ flex:1 1 auto; justify-content:center; }
@media (max-width:980px){
  .detail-layout{ grid-template-columns:minmax(0,1fr); }
  .detail-side{ position:static; }
}

/* ============================================================
   404
   ============================================================ */
.err-box{ max-width:860px; margin:0 auto; text-align:center; }
.err-code{
  display:inline-block; font-family:var(--font-display); font-size:4.2rem; line-height:1;
  font-weight:700; color:var(--green-100); letter-spacing:-.04em; margin-bottom:6px;
}
.err-box h1{ font-family:var(--font-display); font-size:var(--fs-h1); line-height:1.14;
  color:var(--green-900); margin:0 0 12px; letter-spacing:-.02em; }
.err-box p{ color:var(--muted); font-size:var(--fs-body); max-width:56ch; margin:0 auto 22px; }
.err-box .ui-actions{ justify-content:center; margin-bottom:34px; }
.err-box .ui-grid{ text-align:left; }
@media (max-width:600px){ .err-code{ font-size:3rem; } }

/* in-page quick nav ("mv-nav-band") */
.mv-nav-band{ padding-top:26px; padding-bottom:6px; }
.mv-nav-band .ui-tile-ico{ font-size:.86rem; font-weight:900; color:var(--green-800); }

/* ghost buttons sitting on a dark hero need light ink */
.page-hero .btn-ghost,
.ds-cta .btn-ghost{
  color:#fff; border-color:rgba(255,255,255,.45); background:transparent;
}
.page-hero .btn-ghost:hover,
.ds-cta .btn-ghost:hover{ background:rgba(255,255,255,.14); border-color:#fff; color:#fff; }

/* portal: stack the two panels on small screens */
@media (max-width:820px){
  .portal-grid{ grid-template-columns:minmax(0,1fr) !important; }
}

/* donor eligibility — checker + facts side by side */
.donor-layout{ display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:var(--sp-5); align-items:start; }
.donor-col{ min-width:0; }
.donor-side{ position:sticky; top:96px; }
@media (max-width:980px){ .donor-layout{ grid-template-columns:minmax(0,1fr); } .donor-side{ position:static; } }

/* unify heading colour on every content page: display serif + solid brand ink
   (some legacy sections used weight:800, which rendered the serif too light) */
.section-title, .ui-head h2, .page-head-lite h1{ color:var(--green-900); }
/* The closing band is dark: its heading must not inherit the light-page ink.
   This rule used to include .ds-cta h2, which painted "Maternity care that
   never closes" the same green as its own background — invisible. */
.ds-cta h2{ color:#fff; }
.section-title{ font-weight:700 !important; }
.section-head .section-title, .section-head h2{ font-family:var(--font-display); }

/* contact page: map spans the full content width under the details */
.contact-map-row{ margin-top:var(--sp-6); }
.contact-map-row .map-card{ width:100%; }
.contact-map-row svg{ width:100%; height:auto; display:block; }

/* contact page: details + map/actions aside */
.contact-aside{ display:flex; flex-direction:column; gap:var(--sp-4); }
.contact-aside .map-card{ overflow:hidden; }
.contact-aside svg{ width:100%; height:auto; display:block; }
.contact-quick .ui-tile-ico{ font-size:.82rem; font-weight:900; color:var(--green-800); }
.contact-quick .detail-links{ gap:8px; }
@media (max-width:900px){
  .contact-aside{ order:2; }
}

/* end of design-system layer */

/* ============================================================
   FACILITIES & WARDS  +  GALLERY — four columns at desktop
   (user request: "use four columns" for both pages)
   ============================================================ */
@media (min-width:1181px){
  .services-grid.four-up{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
  .gal-grid.four-up{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
}
@media (min-width:901px) and (max-width:1180px){
  .services-grid.four-up{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gal-grid.four-up{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (min-width:601px) and (max-width:900px){
  .gal-grid.four-up{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px){
  .gal-grid.four-up{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
}

/* facilities: compact 4-up cards */
.services-grid.four-up .service-card.with-photo{ border-radius:var(--card-radius); }
.services-grid.four-up .service-card.with-photo .card-img{ aspect-ratio:4/3; }
.services-grid.four-up .sc-body{ padding:16px 16px 18px; gap:2px; }
.services-grid.four-up .service-card h3{ font-size:.98rem; line-height:1.32; margin-bottom:6px; }
.services-grid.four-up .service-card p{ font-size:.82rem; line-height:1.5; margin-bottom:10px; }
.services-grid.four-up .service-meta{
  display:inline-flex; align-items:center; gap:6px; margin-top:auto;
  font-size:.72rem; font-weight:800; letter-spacing:.02em; color:var(--green-800);
  background:var(--green-50); border:1px solid #DCEDE3; border-radius:999px; padding:5px 10px;
}
.services-grid.four-up .service-meta svg{ width:12px; height:12px; }
.services-grid.four-up .icon-badge{ width:30px; height:30px; margin-bottom:8px; }
.services-grid.four-up .icon-badge svg{ width:15px; height:15px; }

/* facility quick facts strip */
.fac-strip{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:0 0 30px; }
.fac-strip span{
  font-size:.74rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--green-800); background:#fff; border:1px solid var(--card-line-strong);
  border-radius:999px; padding:6px 13px;
}
.fac-note{ text-align:center; font-size:var(--fs-small); color:var(--muted); margin:26px auto 0; max-width:64ch; }

/* gallery: four-up tiles */
.gal-grid.four-up .gal-item{ border-radius:var(--card-radius); }
.gal-grid.four-up .gal-item img{ aspect-ratio:1/1; }
.gal-grid.four-up .gal-item figcaption{ padding:10px 12px 12px; font-size:.78rem; line-height:1.35; }
.gal-count{ text-align:center; font-size:var(--fs-micro); font-weight:900; letter-spacing:.12em;
  text-transform:uppercase; color:#8A9A91; margin:0 0 22px; }

/* ============================================================
   CAREERS
   ============================================================ */
.career-card{ align-items:flex-start; }
.career-card .icon-badge{ width:34px; height:34px; margin-bottom:4px; flex:none; }
.career-card h3{ font-size:.98rem; }
.career-card p{ font-size:.84rem; }

/* live vacancy rows (fed by assets/data/tenders.js) */
.career-vac{ display:grid; gap:10px; }
.career-row{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  background:#fff; border:1px solid var(--card-line); border-radius:var(--card-radius);
  padding:15px 18px; text-decoration:none; color:inherit; transition:.16s;
}
.career-row:hover{ border-color:var(--green-600); box-shadow:var(--card-shadow); }
.career-row-main{ flex:1 1 320px; min-width:0; }
.career-row-main b{ display:block; font-size:.95rem; line-height:1.35; color:var(--green-900); }
.career-row-main small{ display:block; font-size:var(--fs-micro); color:var(--muted); margin-top:3px; }
.career-row-meta{ display:flex; align-items:center; gap:10px; flex:none; }
.career-close{ font-size:.72rem; font-weight:800; letter-spacing:.04em; color:var(--green-800);
  background:var(--green-50); border:1px solid #DCEDE3; border-radius:999px; padding:5px 11px; white-space:nowrap; }
.career-row .ui-link-more{ flex:none; }
.career-empty{
  display:grid; gap:4px; background:#fff; border:1px dashed var(--card-line-strong);
  border-radius:var(--card-radius); padding:22px; text-align:center;
}
.career-empty b{ color:var(--green-900); font-size:.95rem; }
.career-empty span{ font-size:var(--fs-small); color:var(--muted); }

/* numbered step cards */
.step-card .step-num{
  display:grid; place-items:center; width:30px; height:30px; border-radius:10px;
  background:var(--green-800); color:#fff; font-size:.85rem; font-weight:900; margin-bottom:2px;
}
.step-card h3{ font-size:.98rem; }
.step-card p{ font-size:.85rem; }

/* notice panels */
.career-notice{
  background:#fff; border:1px solid var(--card-line); border-radius:var(--card-radius);
  padding:18px 20px;
}
.career-notice b{ display:block; font-size:.95rem; color:var(--green-900); margin-bottom:4px; }
.career-notice p{ margin:0; font-size:var(--fs-small); color:var(--muted); line-height:1.55; }
.career-notice.warn{ background:#FFF9E6; border-color:#F2E3AE; border-left:4px solid var(--gold-500); }
.career-notice.warn b{ color:#5C4A00; }
.career-notice.warn p{ color:#6B5A14; }

@media (max-width:700px){
  .career-row-meta{ order:3; }
  .career-row .ui-link-more{ order:4; margin-left:auto; }
}

/* footer copy + gallery lightbox button affordance */
.footer-newsletter .socials a, .footer-socials a{ color:#1B3A2C; }
.gal-link{ position:relative; display:block; }
.gal-link::after{
  content:"View"; position:absolute; right:10px; bottom:10px;
  font-size:.66rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase;
  color:#fff; background:rgba(1,32,15,.72); border-radius:999px; padding:4px 9px;
  opacity:0; transform:translateY(4px); transition:.18s;
}
.gal-item:hover .gal-link::after, .gal-link:focus-visible::after{ opacity:1; transform:none; }

/* ============================================================
   ARCHIVE PHOTOGRAPHS  (about.html heritage section)
   ============================================================ */
.arc-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-top:30px; }
.arc-item{
  margin:0; background:#fff; border:1px solid var(--card-line); border-radius:var(--card-radius);
  overflow:hidden; display:flex; flex-direction:column; transition:.18s;
}
.arc-item:hover{ border-color:var(--card-line-strong); box-shadow:var(--card-shadow-hover); }
.arc-item picture img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; filter:contrast(1.02); }
.arc-item figcaption{ padding:12px 14px 14px; display:grid; gap:3px; }
.arc-item figcaption b{ font-size:.86rem; color:var(--green-900); }
.arc-item figcaption span{ font-size:.76rem; line-height:1.45; color:var(--muted); }
.arc-credit{ margin:16px 0 0; font-size:.72rem; letter-spacing:.02em; color:#8A9A91; }
@media (max-width:1024px){ .arc-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .arc-grid{ grid-template-columns:minmax(0,1fr); } }

/* the gate photograph reads best slightly off-centre (keeps the sign in frame) */
.services-grid.four-up .service-card.with-photo .card-img{ object-position:58% center; }
.gal-grid.four-up .gal-item img[src*="facility"]{ object-position:62% center; }

/* ---------- the email beside the social icons ----------
   .socials a is a 42×42 icon chip; the address in the "Stay informed" strip is
   an <a> too, so it inherited the chip box and its text spilled out over the
   Facebook / X / WhatsApp icons. Text link, sized by its content. */
.footer-socials a[href^="mailto:"]{
  width:auto; height:auto; min-height:0; border-radius:0; background:none; border:0;
  display:inline-flex; align-items:center; padding:0 2px 0 8px;
  color:#0A5334; font-weight:700; font-size:.9rem; letter-spacing:.01em;
  /* The address is one unbreakable token: 28 characters at 0.9rem is about
     18em, so a 22ch cap forced it onto two lines while the strip had room.
     Now it stays on one line; only a genuinely narrow screen wraps it, and
     then at the @ (see below) rather than mid-word. */
  flex:0 0 auto; white-space:nowrap; max-width:none;
}
.footer-socials a[href^="mailto:"]:hover{ background:none; border:0; color:#06351f; transform:none; }
/* keep the three icon chips legible on the coloured strip */
.footer-newsletter .footer-socials a{ background:rgba(255,255,255,.55); border-color:rgba(6,45,30,.16); color:#0A5334; }
.footer-newsletter .footer-socials a[href^="mailto:"]{ background:none; border:0; }

/* Phones: the strip stacks, so the address gets the full width and can keep
   its single line; if the screen is narrower than the address, break it at
   the @ — never through a word. */
@media (max-width:520px){
  .footer-newsletter .footer-socials{ flex-wrap:wrap; row-gap:10px; }
  .footer-socials a[href^="mailto:"]{ white-space:normal; overflow-wrap:break-word; word-break:keep-all; }
}

/* ============================================================
   HERITAGE TIMELINE  (about.html)
   ============================================================
   The approved about.html carries these rules as a page-scoped <style>
   block in its <head>. Importing the page copies the body, so the block was
   left behind — and the only rule still matching the items was the old
   `.about-miles` three-column card grid in style.css, which is why the years
   rendered as columns instead of one row per year. Ported verbatim so the
   section is the build's, not a lookalike.
   ============================================================ */
/* Every layout rule is scoped to the Heritage timeline. */
#history .timeline-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;list-style:none;padding:0;margin:0;}
#history .timeline-entry{display:grid;grid-template-columns:88px minmax(0,1fr);gap:20px;align-items:start;min-width:0;}
#history .timeline-entry>.mc-year{justify-self:start;margin-bottom:0;}
#history .timeline-content,#history .timeline-copy{min-width:0;}
#history .timeline-copy>p{max-width:78ch;}
#history .timeline-gallery{display:grid;grid-template-columns:repeat(var(--heritage-columns,4),minmax(0,1fr));gap:12px;margin-top:16px;}
#history .timeline-gallery[data-photo-count="1"]{max-width:700px;}
#history .timeline-entry .arc-item{margin:0;min-width:0;}
#history .timeline-entry .arc-item img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;}
@media(max-width:900px){#history .timeline-gallery{grid-template-columns:repeat(min(var(--heritage-columns,4),2),minmax(0,1fr));}}
@media(max-width:640px){#history .timeline-entry{grid-template-columns:minmax(0,1fr);gap:10px;}}
@media(max-width:480px){#history .timeline-gallery{grid-template-columns:minmax(0,1fr);}}

/* The same rows, without depending on the section keeping id="history"
   (any re-save through the editor can drop it). Two classes beat the single
   `.about-miles` class in style.css, so the order of the files does not
   matter. */
.about-miles.timeline-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;list-style:none;padding:0;margin:0;}
.about-miles.timeline-list > .timeline-entry{display:grid;grid-template-columns:88px minmax(0,1fr);gap:20px;align-items:start;min-width:0;}
.about-miles.timeline-list > .timeline-entry > .mc-year{justify-self:start;margin-bottom:0;}
.about-miles.timeline-list .timeline-content,
.about-miles.timeline-list .timeline-copy{min-width:0;}
.about-miles.timeline-list .timeline-copy > p{max-width:78ch;}
.about-miles.timeline-list .timeline-gallery{display:grid;grid-template-columns:repeat(var(--heritage-columns,4),minmax(0,1fr));gap:12px;margin-top:16px;}
.about-miles.timeline-list .timeline-gallery[data-photo-count="1"]{max-width:700px;}
.about-miles.timeline-list .arc-item{margin:0;min-width:0;}
.about-miles.timeline-list .arc-item img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;}
@media(max-width:900px){.about-miles.timeline-list .timeline-gallery{grid-template-columns:repeat(min(var(--heritage-columns,4),2),minmax(0,1fr));}}
@media(max-width:640px){.about-miles.timeline-list > .timeline-entry{grid-template-columns:minmax(0,1fr);gap:10px;}}
@media(max-width:480px){.about-miles.timeline-list .timeline-gallery{grid-template-columns:minmax(0,1fr);}}

/* ---------------------------------------------------------------------------
   Single article / news / event: the featured image IS the breadcrumb band.
   One photograph, behind the crumb — never a second image stacked above it.
   --------------------------------------------------------------------------- */
.page-head-lite.has-photo{
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  border-bottom:0;
  padding:34px 0 38px;
}
.page-head-lite.has-photo h1,
.page-head-lite.has-photo p{ color:#fff; }
.page-head-lite.has-photo .breadcrumb a{ color:#9FE0CF; }
.page-head-lite.has-photo .breadcrumb a:hover{ color:#fff; }
.page-head-lite.has-photo .breadcrumb .sep{ color:rgba(255,255,255,.5); }
.page-head-lite.has-photo .breadcrumb .current{ color:#FFF3C2; }
/* With no photograph the band is light, so the crumb has to be dark. */
.page-head-lite:not(.has-photo) .breadcrumb a{ color:var(--green-700); }
.page-head-lite:not(.has-photo) .breadcrumb a:hover{ color:var(--green-900); }
.page-head-lite:not(.has-photo) .breadcrumb .sep{ color:#A6B5AC; }
.page-head-lite:not(.has-photo) .breadcrumb .current{ color:var(--green-950); }
@media (max-width:600px){
  .page-head-lite.has-photo{ padding:26px 0 30px; }
}


/* ==========================================================================
   The county identity — Pumwani is a Nairobi City County hospital, and the
   county's mark belongs on every page, quietly, at the top and at the foot.
   ========================================================================== */
.pmh-county-lockup{
  display:flex; align-items:center; gap:9px; margin-right:16px; padding-right:16px;
  border-right:1px solid rgba(255,255,255,.28);
}
.pmh-county-lockup img{ width:30px; height:30px; display:block; flex:0 0 auto; }
.pmh-county-lockup span{ display:flex; flex-direction:column; line-height:1.15; }
.pmh-county-lockup b{
  color:#fff; font:600 .72rem/1.1 Rubik, sans-serif; letter-spacing:.07em; text-transform:uppercase;
}
.pmh-county-lockup em{ font-style:normal; font-size:.66rem; color:rgba(255,255,255,.74); }

.footer-county{ padding:24px 0 4px; margin-top:22px; border-top:1px solid rgba(255,255,255,.16); }
.footer-county > .container{ display:flex; align-items:center; gap:14px; }
.footer-county img{ width:46px; height:46px; flex:0 0 auto; }
.footer-county .container > div{ display:flex; flex-direction:column; gap:3px; }
.footer-county b{ color:#fff; font:600 .84rem/1.3 Rubik, sans-serif; }
.footer-county span{ color:rgba(255,255,255,.72); font-size:.76rem; line-height:1.5; }
.footer-county a{ color:rgba(255,255,255,.9); text-decoration:underline; }

@media (max-width: 780px){
  /* on a phone the county line takes its own row rather than being squeezed */
  .pmh-county-lockup{
    flex:1 0 100%; border-right:0; margin:0 0 6px; padding:0;
    padding-bottom:6px; border-bottom:1px solid rgba(255,255,255,.16);
  }
  .pmh-county-lockup b{ font-size:.68rem; }
  .pmh-county-lockup em{ font-size:.62rem; }
  .footer-county > .container{ align-items:flex-start; }
  .footer-county img{ width:38px; height:38px; }
}

.brand-county{
  display:flex; align-items:center; gap:5px; margin-top:4px;
  font:700 .6rem/1.1 Rubik, sans-serif; letter-spacing:.09em; text-transform:uppercase;
  color:var(--green-600, #018e41); white-space:nowrap;
}
.brand-county img{ width:15px; height:15px; display:block; flex:0 0 auto; }
footer .brand-county, .footer-brand .brand-county{ color:#FBD656; }
@media (max-width: 640px){ .brand-county{ display:none; } }

/* the utility bar hides trailing spans on small screens; the county line is
   not one of them, so it is restored and given its own row */
.topbar-left .pmh-county-lockup > span{ display:flex; flex-direction:column; }

@media (min-width: 781px) and (max-width: 1200px){
  /* the county line now opens the bar, so the street address steps aside here
     and returns on wider screens — it is repeated in the footer and on Contact */
  .topbar-left .pmh-node-hf-tl-2,
  .topbar-right .pmh-node-hf-tr-1{ display:none; }
  .pmh-county-lockup{ padding-right:12px; margin-right:12px; }
}


/* ---- the county's arms take the place of the language switcher ---------- */
.nav-wrap .county-mark{ margin-left:14px; }
.county-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:46px; height:46px; flex:none; border-radius:50%; background:transparent;
  position:relative; transition:transform .18s ease, filter .18s ease;
}
.nav-wrap .county-mark::before{
  content:""; position:absolute; left:-14px; top:50%; transform:translateY(-50%);
  width:1px; height:26px; background:rgba(1,74,36,.16);
}
.county-mark img{ width:46px; height:46px; display:block; }
.county-mark:hover{ transform:translateY(-1px); filter:drop-shadow(0 4px 10px rgba(1,32,16,.22)); }
.county-mark:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(1,142,65,.35); }
@media (max-width: 520px){
  .nav-wrap .county-mark{ margin-left:8px; }
  .nav-wrap .county-mark::before{ left:-8px; height:22px; }
  .county-mark, .county-mark img{ width:40px; height:40px; }
}
/* top bar account + language controls (see style.css) */
.topbar .topbar-signin{ display:inline-flex; align-items:center; gap:7px; padding:6px 14px; border-radius:999px;
  background:#fff; color:#0a3c22; font:800 .72rem/1 Rubik, sans-serif; letter-spacing:.05em; text-transform:uppercase; }
.topbar .topbar-signin svg{ width:14px; height:14px; flex:none; }
.topbar .topbar-signin:hover,.topbar .topbar-signin:focus-visible{ background:#FED803; color:#141414; }
.topbar .lang-switch{ background:transparent; border:0; padding:0; margin:0; }
.topbar .lang-dd{ background:transparent; border-color:rgba(255,255,255,.34); }
.topbar .lang-dd svg{ color:#fff; }
.topbar .pmh-lang-select{ color:#fff; background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.topbar .pmh-lang-select option{ color:#0a3c22; background:#fff; }
@media (max-width: 900px){
  .topbar .topbar-right{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
  .topbar .pmh-node-hf-tr-1{ display:none; }
}

/* ---- signed-in account control in the utility bar -------------------------
   A signed-in visitor sees their own initials and first name here instead of
   "Sign in" — the pill is a link to the account page, so it works without
   JavaScript. Style: the same white pill, with a green avatar chip inside. */
.topbar .topbar-signin.pmh-topbar-user{
  gap:8px; padding:4px 12px 4px 4px; text-transform:none; letter-spacing:0;
  font:700 .82rem/1 Rubik, sans-serif;
}
.topbar .topbar-signin.pmh-topbar-user .pmh-topbar-ava{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%; flex:none;
  background:var(--green-800, #014A24); color:#fff;
  font:800 .64rem/1 Rubik, sans-serif; letter-spacing:.02em;
}
.topbar .topbar-signin.pmh-topbar-user .pmh-topbar-name{
  max-width:132px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.topbar .topbar-signin.pmh-topbar-user svg{ width:13px; height:13px; opacity:.72; }
.topbar .topbar-signin.pmh-topbar-user:hover .pmh-topbar-ava,
.topbar .topbar-signin.pmh-topbar-user:focus-visible .pmh-topbar-ava{ background:#141414; color:#FED803; }
@media (max-width: 900px){
  .topbar .topbar-signin.pmh-topbar-user{ padding:4px 10px 4px 4px; }
  .topbar .topbar-signin.pmh-topbar-user .pmh-topbar-name{ max-width:92px; }
}
