/* ==========================================================================
   Pasban Remittance — Independent information website
   Single stylesheet. Mobile-first. No frameworks.
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Header/Nav · 5 Buttons
             6 Hero · 7 Cards & stats · 8 Tables · 9 Callouts · 10 FAQ
             11 Countdown · 12 Forms & tools · 13 Articles · 14 Footer
             15 Utilities · 16 Breakpoints · 17 Print
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --green-900: #04341f;
  --green-800: #064a2d;
  --green-700: #0a5c39;
  --green-600: #0f7247;
  --green-100: #e5f1eb;
  --green-50:  #f2f8f4;
  --gold-600:  #a87f12;
  --gold-500:  #c99a1b;
  --gold-400:  #e0b43a;
  --gold-100:  #fbf1d6;
  --ink:       #1d2421;
  --ink-2:     #3f4a45;
  --muted:     #5e6a64;
  --line:      #dfe5e1;
  --bg:        #ffffff;
  --bg-soft:   #f6f7f5;
  --danger-700:#9a2d12;
  --danger-50: #fdf1ec;
  --danger-200:#f4c9b8;
  --info-50:   #eef5fb;
  --info-200:  #c8dcee;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 40, 28, .06), 0 4px 16px rgba(16, 40, 28, .06);
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 64px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--green-900); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
h4 { font-size: 1rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--green-800); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* 3. Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section--soft { background: var(--bg-soft); }
.section--green { background: var(--green-50); }
.section-head { margin-bottom: 28px; max-width: 760px; }
.section-head .eyebrow { display: block; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.section-head p.eyebrow { color: var(--gold-600); font-size: .78rem; margin-bottom: 8px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 8px;
}
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.page-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
.prose { max-width: 760px; overflow-wrap: break-word; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose > :first-child { margin-top: 0; }

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--green-50), #fff);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 32px;
}
.page-hero h1 { margin-top: 14px; max-width: 900px; }
.page-hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 760px; margin: 0; }
.meta-line { font-size: .875rem; color: var(--muted); margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #9aa59f; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* 4. Header & navigation ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.disclosure-bar {
  background: var(--green-900); color: #d6e7dd; font-size: .78rem; text-align: center; padding: 5px var(--gutter);
}
.disclosure-bar a { color: #fff; }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); margin-right: auto; }
.logo:hover { color: var(--green-900); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { white-space: nowrap; font-size: 1rem; letter-spacing: .06em; font-weight: 800; }
.logo-text span { font-size: .66rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.nav-toggle, .search-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--green-900); cursor: pointer;
}
.nav-toggle svg, .search-link svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.btn.header-cta { display: none; }

.primary-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
  max-height: calc(100vh - var(--header-h) - 30px); overflow-y: auto;
}
.primary-nav.is-open { display: block; }
/* Without JS the menu toggle cannot work, so show the menu inline */
.no-js .primary-nav { display: block; position: static; box-shadow: none; }
.no-js .nav-toggle { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.primary-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.primary-nav li:last-child { border-bottom: 0; }
.primary-nav a {
  display: block; padding: 13px 4px; text-decoration: none; color: var(--ink); font-weight: 550;
}
.primary-nav a[aria-current="page"] { color: var(--green-700); font-weight: 700; }
.primary-nav .nav-cta-mobile { margin-top: 12px; border: 0; }
.primary-nav .nav-cta-mobile a { text-align: center; }

/* 5. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 8px;
  font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-900); }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-50); color: var(--green-900); }
.btn-sm { white-space: nowrap; min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { width: 100%; }
.text-link { font-weight: 650; text-decoration: none; }
.text-link::after { content: " →"; }
.ext::after { content: " ↗"; font-size: .85em; }

/* 6. Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(201, 154, 27, .14), transparent 60%),
    linear-gradient(180deg, var(--green-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 44px;
}
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero .subhead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; color: var(--ink-2); margin-bottom: .7em; }
.hero .desc { color: var(--ink-2); font-size: 1.05rem; max-width: 600px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-size: .82rem; font-weight: 650; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--green-800);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.hero-facts {
  margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 0; list-style: none;
}
.hero-facts li { margin: 0; font-size: .95rem; color: var(--ink-2); padding-left: 12px; border-left: 3px solid var(--gold-500); line-height: 1.5; }
.hero-facts b { color: var(--green-900); display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-art { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px; }

/* 7. Cards & stats --------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--green-600); color: inherit; }
.card-link h3 { color: var(--green-800); }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -24px; position: relative; z-index: 2; }
.stat {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500);
  border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow);
}
.stat-value { display: block; font-size: clamp(1.1rem, .9rem + 1.4vw, 1.9rem); font-weight: 800; color: var(--green-800); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { margin: 0; position: relative; padding: 22px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step-icon { width: 40px; height: 40px; color: var(--gold-600); float: right; }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--ink-2); }

.check-list, .cross-list { list-style: none; padding: 0; }
.check-list li, .cross-list li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.check-list li::before, .cross-list li::before {
  position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800;
}
.check-list li::before { content: "✓"; background: var(--green-100); color: var(--green-700); }
.cross-list li::before { content: "✕"; background: var(--danger-50); color: var(--danger-700); }

/* Prize cards (mobile) */
.prize-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.prize-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-left: 4px solid var(--green-600); }
.prize-card--top { border-left-color: var(--gold-500); background: linear-gradient(90deg, var(--gold-100), #fff 60%); }
.prize-card .rank { font-weight: 700; color: var(--green-900); }
.prize-card .amount { font-weight: 800; font-size: 1.2rem; color: var(--green-800); text-align: right; font-variant-numeric: tabular-nums; }
.prize-card .count { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }

/* Region bars */
.region-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.region-bars li { margin: 0; }
.region-row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.region-row span:last-child { font-variant-numeric: tabular-nums; color: var(--green-800); }
.bar { height: 14px; background: var(--green-100); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-700), var(--green-600)); }
.bar--gold > span { background: linear-gradient(90deg, var(--gold-600), var(--gold-500)); }

/* 8. Tables ---------------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: 12px 16px; font-weight: 650; color: var(--green-900); caption-side: top; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--green-50); color: var(--green-900); font-weight: 700; font-size: .88rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tfoot td, tfoot th { background: var(--gold-100); font-weight: 700; border-top: 2px solid var(--gold-500); border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Responsive "stacked" tables on small screens */
@media (max-width: 767px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td, .table-stack th, .table-stack tfoot { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table-stack caption { display: block; width: 100%; }
  .table-stack td, .table-stack th { border: 0; padding: 6px 16px; text-align: right; overflow: hidden; }
  .table-stack td::before, .table-stack th[data-label]::before { content: attr(data-label); float: left; margin-right: 12px; font-weight: 650; color: var(--muted); text-align: left; }
  .table-stack td.num { white-space: normal; }
  .table-stack tfoot tr { border: 0; }
  .table-stack tbody th[scope="row"], .table-stack tfoot th[scope="row"] { text-align: left; color: var(--green-900); font-size: 1rem; padding-top: 10px; }
  .table-stack tbody th[scope="row"]::before, .table-stack tfoot th[scope="row"]::before { content: none; }
  .table-stack .m-hide { display: none; }
}

/* Status pills */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pill--upcoming { background: var(--gold-100); color: var(--gold-600); }
.pill--done { background: var(--green-100); color: var(--green-700); }
.pill--listed { background: var(--green-100); color: var(--green-700); }

/* 9. Callouts ---------------------------------------------------------------- */
.callout { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--info-200); background: var(--info-50); margin: 0 0 1.5em; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 750; margin-bottom: .35em; display: block; color: var(--ink); }
.callout--warn { background: var(--danger-50); border-color: var(--danger-200); border-left: 5px solid #c2410c; }
.callout--warn .callout-title { color: var(--danger-700); }
.callout--gold { background: var(--gold-100); border-color: #ecd59a; }
.callout--green { background: var(--green-50); border-color: #c4dccf; }
.updated-note { font-size: .875rem; color: var(--muted); }

.scam-box { display: grid; gap: 24px; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--danger-200); border-radius: var(--radius-lg); padding: 24px; }
.scam-box h2 { color: var(--danger-700); margin-top: 0; }
.prose .scam-box { margin-top: 2rem; }

/* 10. FAQ accordion ------------------------------------------------------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item[open] { border-color: #b9d3c4; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 650; color: var(--green-900); min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer { padding: 0 18px 16px; color: var(--ink-2); }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-item.is-hidden { display: none; }
.faq-group-title { margin-top: 2rem; }

/* 11. Countdown ----------------------------------------------------------- */
.draw-panel {
  background: var(--green-800); color: #e7f2ec; border-radius: var(--radius-lg); padding: 28px 22px;
  display: grid; gap: 22px; grid-template-columns: 1fr;
  background-image: radial-gradient(600px 200px at 100% 0, rgba(224, 180, 58, .18), transparent 70%);
}
.draw-panel h2, .draw-panel h3 { color: #fff; }
.draw-panel a { color: #fff; }
.draw-date { font-size: 1.4rem; font-weight: 800; color: var(--gold-400); margin: 0 0 .4em; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cd-unit { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); text-align: center; padding: 12px 4px; }
.cd-num { display: block; font-family: var(--font-num); font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cd-label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #b9d3c4; }
.countdown-done { font-weight: 700; color: var(--gold-400); font-size: 1.1rem; }
.countdown-note { font-size: .82rem; color: #b9d3c4; margin: 10px 0 0; }

/* 12. Forms & tools --------------------------------------------------------- */
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
label, .label { display: block; font-weight: 650; margin-bottom: 6px; color: var(--ink); }
.hint { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c3ccc7; border-radius: 8px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(201, 154, 27, .45); outline-offset: 0; border-color: var(--green-700); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; color: var(--green-900); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-bottom: 10px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green-700); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.tool-result { margin-top: 18px; }
.tool-result:empty { display: none; }
.result-ok { border-left: 5px solid var(--green-600); background: var(--green-50); padding: 16px 18px; border-radius: 8px; }
.result-no { border-left: 5px solid #c2410c; background: var(--danger-50); padding: 16px 18px; border-radius: 8px; }
.result-ok > :last-child, .result-no > :last-child { margin-bottom: 0; }
.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; }
.search-results { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.search-results li { margin: 0; }
.search-results a { font-weight: 700; font-size: 1.05rem; }
.search-results p { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.search-results .url { color: var(--muted); font-size: .8rem; }
.empty-state { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed #c3ccc7; border-radius: var(--radius); background: var(--bg-soft); }

/* 13. Articles / news ------------------------------------------------------ */
.article-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.article-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--green-100); }
.article-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card h3 { font-size: 1.05rem; margin: 0; }
.article-card h3 a { text-decoration: none; color: var(--green-900); }
.article-card h3 a:hover { color: var(--green-700); text-decoration: underline; }
.article-card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.article-card time, .article-date { font-size: .8rem; color: var(--muted); }
.featured-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin: 0 0 24px; }
.featured-img img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.source-box { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; margin: 2rem 0; }
.source-box h2, .prose .source-box h2 { font-size: 1rem; margin: 0 0 .5em; }
.source-box ul { margin: 0; }
.sidebar { display: grid; gap: 18px; align-content: start; }
.sidebar .card h2 { font-size: 1.05rem; }
.sidebar ul { padding-left: 1.1em; margin: 0; }
.toc ol { padding-left: 1.2em; margin: 0; font-size: .95rem; }
.related { margin-top: 2.5rem; }
/* Reserved advertising slot — keep away from official links and buttons */
.ad-slot { display: none; }
.ad-slot.is-active { display: block; margin: 2rem 0; padding-top: 22px; border-top: 1px solid var(--line); position: relative; }
.ad-slot.is-active::before { content: "Advertisement"; position: absolute; top: 4px; left: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Official source list */
.source-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.source-list li { margin: 0; }
.source-list .card { display: flex; flex-direction: column; gap: 4px; }
.source-list .updated-note { overflow-wrap: anywhere; }
.source-list .kind { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }

/* Country cards */
.country-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.country-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.country-card:hover { border-color: var(--green-600); color: inherit; }
.country-card strong { color: var(--green-800); }
.country-card span { font-size: .85rem; color: var(--muted); }

/* Key-value fact list */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 1.5em; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 550; }
.facts dd { margin: 0; font-weight: 700; color: var(--green-900); text-align: right; }

/* 14. Footer ----------------------------------------------------------------- */
.site-footer { background: var(--green-900); color: #cfe0d6; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #e9f3ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 48px 0 32px; }
.footer-brand p { color: #b5ccbf; max-width: 320px; }
.footer-col h2 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: .85rem; color: #b5ccbf; }
.footer-disclaimer p { margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 24px; font-size: .82rem; color: #9fbcad; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo-text span { color: #9fbcad; }

/* 15. Utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
.two-col { display: grid; gap: 16px; grid-template-columns: 1fr; }
.only-mobile { display: block; }
.only-desktop { display: none; }

/* 16. Breakpoints ----------------------------------------------------------- */
/* Tablet 768–1023 */
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .btn-row .btn { width: auto; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .grid-2, .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .draw-panel { padding: 36px; }
  .scam-box { padding: 32px; }
  .only-mobile { display: none; }
  .only-desktop { display: block; }
}
/* Desktop 1024+ */
@media (min-width: 1024px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .page-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .draw-panel { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 40px 44px; }
  .scam-box { grid-template-columns: 1.1fr .9fr; }
  .prose .scam-box { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Full horizontal navigation once there is room for every item */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .btn.header-cta { display: inline-flex; }
  .primary-nav, .no-js .primary-nav { display: block; position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; background: transparent; }
  .header-inner { gap: 6px; }
  .primary-nav ul { display: flex; gap: 0; padding: 0; }
  .primary-nav li { border: 0; }
  .primary-nav a { padding: 8px 7px; font-size: .95rem; font-weight: 600; border-radius: 6px; white-space: nowrap; letter-spacing: -.005em; }
  .search-link { width: 38px; height: 38px; border-color: transparent; order: 3; }
  .header-cta { order: 4; }
  .primary-nav a:hover { background: var(--green-50); }
  .primary-nav a[aria-current="page"] { background: var(--green-50); }
  .primary-nav .nav-cta-mobile { display: none; }
}

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

/* 17. Print ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer .footer-grid, .nav-toggle, .btn-row, .countdown, .ad-slot { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ==========================================================================
   18. Redesign (supplied mockup): brand, header, homepage blocks, footer
   ========================================================================== */
:root {
  --mint: #f1f7f3;
  --mint-line: #dcebe2;
  --sky: #eaf3f6;
  --c-gcc: #0a5c39; --c-uk: #e8b33a; --c-eu: #9a86c8; --c-na: #7dbb6a; --c-oth: #ee8a6b;
  --header-h: 72px;
}
.ico { width: 22px; height: 22px; flex: none; }

/* Brand */
.logo { gap: 8px; }
.logo .emblem { width: 46px; height: 46px; flex: none; }
.logo-text strong { font-size: 1.55rem; letter-spacing: .02em; color: var(--green-800); line-height: 1; }
.logo-text span { font-size: .78rem; letter-spacing: .26em; color: var(--green-700); font-weight: 600; margin-top: 3px; }
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.search-link { border-color: transparent; }
.primary-nav a[aria-current="page"] { position: relative; }
@media (min-width: 1024px) {
  .primary-nav a[aria-current="page"] { background: transparent; color: var(--green-800); }
  .primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold-500); }
  .primary-nav a:hover { background: var(--mint); }
}
.btn .ico-arrow { width: 18px; height: 18px; }
.btn-primary { background: var(--green-700); }
.btn-outline { border-width: 1.5px; }

/* Hero */
.home-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, #f5f9f7 100%); }
.home-hero-media { position: relative; }
.home-hero-media img { width: 100%; height: auto; aspect-ratio: 1208 / 702; object-fit: cover; }
.home-hero-inner { position: relative; padding-top: 24px; padding-bottom: 28px; }
.home-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.15rem); line-height: 1.08; margin-bottom: .35em; color: var(--green-900); }
.home-hero .subhead { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 650; color: var(--green-800); margin-bottom: .6em; line-height: 1.4; }
.home-hero .desc { color: var(--ink-2); max-width: 540px; }
.date-cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; }
.date-cards li { margin: 0; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; box-shadow: var(--shadow); }
.date-cards .ico { color: var(--green-700); width: 26px; height: 26px; }
.date-cards small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.2; }
.date-cards strong { display: block; font-size: .9rem; color: var(--green-900); line-height: 1.3; }
.hero-note { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }
.hero-note a { color: var(--muted); }

@media (min-width: 900px) {
  .home-hero { min-height: 480px; display: flex; align-items: center; }
  .home-hero-media { position: absolute; inset: 0 0 0 auto; width: 62%; }
  .home-hero-media img { height: 100%; aspect-ratio: auto; object-position: 60% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .home-hero-inner { padding-top: 48px; padding-bottom: 48px; width: 100%; }
  .home-hero-copy { max-width: 520px; }
}
@media (min-width: 1200px) { .home-hero { min-height: 520px; } .home-hero-media { width: 60%; } }

/* KPI cards */
.kpis { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 24px 0 8px; }
.kpi { display: flex; align-items: center; gap: 14px; background: var(--mint); border: 1px solid var(--mint-line); border-radius: 10px; padding: 16px; }
.kpi-ico { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: inline-flex; align-items: center; justify-content: center; }
.kpi-ico .ico { width: 28px; height: 28px; }
.kpi-val { display: block; font-size: clamp(1.05rem, .9rem + .8vw, 1.45rem); font-weight: 800; color: var(--green-900); line-height: 1.2; }
.kpi-lab { display: block; font-size: .85rem; color: var(--muted); }

/* Homepage rows */
.hrow { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 18px; }
.hrow-search { margin-bottom: 48px; }
.hblock { padding: 16px 0; }
.hblock h2, .hcard h2 { font-size: 1.3rem; margin-bottom: .6em; }
.hblock p { color: var(--ink-2); }
.hcard { background: var(--mint); border: 1px solid var(--mint-line); border-radius: 10px; padding: 20px; }
.hcard p { color: var(--ink-2); font-size: .95rem; }
.feature-strip { list-style: none; padding: 0; margin: 16px 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--mint); border: 1px solid var(--mint-line); border-radius: 10px; }
.feature-strip li { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px; font-size: .84rem; line-height: 1.4; color: var(--ink-2); border-bottom: 1px solid var(--mint-line); }
.feature-strip li:nth-child(odd) { border-right: 1px solid var(--mint-line); }
.feature-strip .ico { color: var(--green-700); width: 24px; height: 24px; }
.info-line { display: flex; gap: 8px; align-items: center; font-size: .82rem; margin: 6px 0 0; }
.info-line .ico { width: 18px; height: 18px; color: var(--green-700); }
.info-line a { color: var(--green-800); }

.hsteps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; }
.hsteps li { margin: 0; padding: 0 12px; text-align: left; }
.hstep-ico { position: relative; display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #e2efe7; color: var(--green-700); align-items: center; justify-content: center; margin: 0 0 10px; }
.hstep-ico .ico { width: 30px; height: 30px; }
.hstep-ico b { position: absolute; left: -4px; top: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-800); color: #fff; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }
.hsteps h3 { font-size: .98rem; color: var(--green-800); margin-bottom: .35em; }
.hsteps p { font-size: .82rem; margin: 0; line-height: 1.5; }

.hcard-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.round-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--green-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.round-ico .ico { width: 26px; height: 26px; }
.kicker { margin: 0 0 4px; font-weight: 700; color: var(--green-900); font-size: .98rem; }
.hcard-head h2 { font-size: 1.05rem; margin: 0; color: var(--green-800); }
.card-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; color: var(--green-800); text-decoration: underline; text-underline-offset: 3px; }
.card-more .ico { width: 16px; height: 16px; }
.small-muted { font-size: .85rem !important; color: var(--muted) !important; }
.h-plain { font-size: 1.1rem !important; }

.mini-table { font-size: .85rem; margin-bottom: 10px; }
.mini-table th, .mini-table td { padding: 6px 8px; border-bottom: 1px solid var(--mint-line); }
.mini-table tbody tr:nth-child(odd) { background: #e7f1eb; }
.mini-table th { color: var(--green-900); font-weight: 650; white-space: nowrap; }
.mini-table td:first-of-type { font-weight: 650; color: var(--ink); white-space: nowrap; }
.mini-table td:last-child { color: var(--ink-2); white-space: nowrap; }
.mini-total { font-size: .85rem !important; font-weight: 650; color: var(--green-800) !important; }

.donut-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin: 4px 0 12px; }
.donut { width: 120px; height: 120px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--c-gcc) 0 50%, var(--c-uk) 50% 65%, var(--c-na) 65% 75%, var(--c-eu) 75% 90%, var(--c-oth) 90% 100%); }
.donut::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: var(--mint); }
.donut span { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.legend { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.legend li { margin: 0; display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--mint-line); }
.legend li:last-child { border-bottom: 0; }
.legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend b { margin-left: auto; color: var(--green-900); font-variant-numeric: tabular-nums; }

/* Draw / scam / updates */
.draw-card { position: relative; overflow: hidden; border-radius: 10px; color: #e7f2ec; padding: 22px 20px;
  background: linear-gradient(90deg, var(--green-900) 45%, rgba(4, 52, 31, .1) 80%), url("../images/minar-e-pakistan-draw.webp") right bottom / auto 100% no-repeat, var(--green-900); }
@media (min-width: 1024px) { .draw-card { padding: 26px 24px; } }
.draw-card h2 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.05rem; margin-bottom: .4em; }
.draw-card h2 .ico { color: var(--gold-400); width: 26px; height: 26px; }
.draw-big { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 750; color: #fff; margin: 0 0 14px; }
.draw-card .countdown { grid-template-columns: repeat(4, minmax(0, 64px)); gap: 8px; }
.draw-card .cd-unit { padding: 8px 2px; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.draw-card .cd-num { font-family: var(--font); font-size: 1.45rem; }
.draw-card .cd-label { text-transform: none; letter-spacing: 0; font-size: .75rem; color: #fff; }
.cd-foot { margin: 12px 0 0; font-size: .8rem; color: #b9d3c4; }
.draw-card a, .draw-card .countdown-done a { color: #fff; }

.scam-card { background: #fdf3f0; border: 1px solid #f3d3c8; border-radius: 10px; padding: 20px; }
.scam-card h2 { display: flex; align-items: center; gap: 10px; color: var(--danger-700); font-size: 1.05rem; }
.scam-card h2 .ico { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #c2410c; color: #fff; }
.scam-card ul { padding-left: 1.1em; font-size: .86rem; color: var(--ink-2); margin-bottom: 12px; }
.scam-card li { margin-bottom: .25em; }
.scam-card li::marker { color: #c2410c; }
.scam-important { background: #fbe1d8; border-radius: 6px; padding: 10px 12px; font-size: .82rem; color: var(--danger-700); margin: 0; }
.scam-important a { color: var(--danger-700); }

.updates-card { background: #fffaf0; border-color: #f1e6c9; }
.updates-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.updates-card h2 .ico { color: var(--gold-600); width: 28px; height: 28px; }
.upd-list { list-style: none; padding: 0; margin: 0 0 12px; }
.upd-list li { margin: 0; border-bottom: 1px solid #efe5cc; }
.upd-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: .86rem; color: var(--green-800); text-decoration: none; }
.upd-list a:hover span { text-decoration: underline; }
.upd-list .ico { width: 14px; height: 14px; color: var(--green-700); }

/* Search + quick links */
.h-icon { display: flex; align-items: center; gap: 10px; font-size: 1.05rem !important; }
.h-small { font-size: 1rem !important; }
.quick-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-links li { margin: 0; }
.quick-links a { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); text-decoration: none; padding: 6px; border-radius: 8px; }
.quick-links a:hover { background: #fff; color: var(--green-800); }
.ql-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: inline-flex; align-items: center; justify-content: center; }

/* Footer */
.site-footer { background: var(--green-900); }
.footer-grid { padding: 40px 0 28px; }
.site-footer .logo-text strong { color: #fff; }
.site-footer .emblem { --em-a: #7dbb6a; --em-b: #3f9a5e; }
.site-footer .logo-text span { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: .88rem; }
.footer-brand p a { text-decoration: underline; color: #e9f3ee; }
.footer-col h2 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.footer-col li { margin-bottom: 4px; font-size: .88rem; }
.social-row { display: flex; gap: 10px; }
.social { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.footer-tagline { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-tagline img { width: 84px; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent 95%); }
.footer-tagline p { margin: 0; color: #fff; font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", "Apple Chancery", cursive; font-style: italic; font-size: 1.1rem; line-height: 1.35; }
.footer-bottom { align-items: flex-start; }
.footer-bottom a { color: #e9f3ee; text-decoration: underline; }
.footer-legal { max-width: 640px; }

@media (min-width: 768px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .hrow-3, .hrow-3b { grid-template-columns: 1fr 1fr; }
  .hrow-search { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-strip li { flex-direction: row; border-bottom: 0; border-right: 1px solid var(--mint-line); }
  .feature-strip li:last-child { border-right: 0; }
  .hsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hsteps li + li { border-left: 1px solid var(--mint-line); }
  .quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-tagline { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}
@media (min-width: 1024px) {
  .hrow-2 { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .hrow-3 { grid-template-columns: 1fr 1fr 1fr; }
  .hrow-3b { grid-template-columns: 1.15fr 1fr 1fr; }
  .hrow-search { grid-template-columns: 1fr 1.05fr; }
  .quick-links a { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; }
  .footer-tagline { grid-column: auto; flex-direction: column; align-items: flex-end; text-align: right; }
  .footer-tagline p { text-align: right; }
}

@media (max-width: 479px) {
  .kpi { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .kpi-ico { width: 42px; height: 42px; }
  .kpi-ico .ico { width: 24px; height: 24px; }
}
.hrow > * { min-width: 0; }
.searchbar input { min-width: 0; }
@media (max-width: 399px) {
  .mini-table th, .mini-table td, .mini-table td:first-of-type, .mini-table td:last-child { white-space: normal; padding: 6px; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
  .quick-links { grid-template-columns: 1fr; }
  .date-cards { grid-template-columns: 1fr; }
}

/* Full horizontal menu from 1024px (as per design) — compact sizing on smaller desktops */
@media (min-width: 1024px) and (max-width: 1319px) {
  .header-inner { gap: 4px; }
  .logo .emblem { width: 38px; height: 38px; }
  .logo-text strong { font-size: 1.25rem; }
  .logo-text span { font-size: .64rem; letter-spacing: .22em; }
  .primary-nav a { font-size: .86rem; padding: 6px 6px; }
  .primary-nav a[aria-current="page"]::after { left: 4px; right: 4px; }
  .search-link { width: 32px; height: 32px; }
  .search-link svg { width: 18px; height: 18px; }
  .btn.header-cta { font-size: .78rem; padding: 6px 10px; min-height: 36px; }
}
@media (min-width: 1180px) and (max-width: 1319px) {
  .primary-nav a { font-size: .94rem; padding: 6px 7px; }
  .logo-text strong { font-size: 1.4rem; }
}
.search-link, .btn.header-cta { flex: none; }
