/*
Theme Name: Nauru Finance
Theme URI: https://demo.naurufinance.info
Author: Nauru Finance
Description: Custom block theme for the Department of Finance (Nauru) website redesign. Colour palette derived from the national crest.
Version: 0.3.70
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: naurufinance
*/

:root {
  color-scheme: light;
}

body {
  -webkit-font-smoothing: antialiased;
  background: #F5F2EB;
}

.wp-site-blocks {
  background: #F5F2EB;
}

.wp-block-post-content {
  width: 100%;
  max-width: none;
}
.wp-block-post-content > * + * {
  margin-top: 1.1rem;
}
.wp-block-post-content.fmis-page-content > * + * {
  margin-top: 0;
}
.wp-block-heading {
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 3px solid var(--wp--preset--color--gold-500);
  outline-offset: 2px;
}

/* Site chrome — sticky header */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Anchor jumps (section-nav "On this page", in-page #anchors) need to clear the
   sticky header above, otherwise the target heading lands hidden behind it. */
html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.site-header {
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  border-bottom: 3px solid var(--wp--preset--color--gold-500);
}
.site-header a { color: #fff; text-decoration: none; }
.site-header .wp-block-navigation a {
  color: #EAEFF9 !important;
  font-weight: 600;
  font-size: 14.5px;
}
.site-header .wp-block-navigation a:hover { color: #fff !important; }
.site-header .wp-block-site-title a { color: #fff; }

/* Submenu dropdowns — white bg, dark text */
.site-header .wp-block-navigation__submenu-container {
  background: #fff !important;
  border: 1px solid rgba(0,23,70,0.12) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,23,70,0.15) !important;
  padding: 8px !important;
  min-width: 220px !important;
}
.site-header .wp-block-navigation__submenu-container a {
  color: #0B2A5B !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px !important;
  border-radius: 6px;
  display: block;
}
.site-header .wp-block-navigation__submenu-container a:hover {
  background: #E7ECF5 !important;
  color: #001746 !important;
}

.topbar {
  background: var(--wp--preset--color--navy-700);
  color: var(--wp--preset--color--gold-200);
  font-size: 13px;
}
.topbar a { color: var(--wp--preset--color--gold-200); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .fmis-portal-link > a {
  background: var(--wp--preset--color--gold-500);
  border-radius: 999px;
  color: var(--wp--preset--color--navy-900) !important;
  font-weight: 800;
  padding: 5px 12px;
}
.topbar .fmis-portal-link > a:hover {
  background: var(--wp--preset--color--gold-200);
  text-decoration: none;
}

.site-footer {
  background: var(--wp--preset--color--navy-900);
  color: #C6D0E5;
}
.site-footer a { color: #C6D0E5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: #fff; }

/* Public site search */
.homepage-search {
  background: var(--wp--preset--color--off-white);
  border-top: 1px solid rgba(0,23,70,0.08);
  border-bottom: 1px solid rgba(0,23,70,0.12);
}
.homepage-search-inner {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 48px;
}
.homepage-search-inner > *,
.search-result-card > * {
  margin-top: 0 !important;
}
.homepage-search-eyebrow {
  color: var(--wp--preset--color--navy-500) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 !important;
}
.homepage-search-help {
  color: var(--wp--preset--color--ink-600) !important;
  margin: 4px 0 0 !important;
}
.homepage-search-form,
.search-page-form {
  width: 100%;
  margin: 0 !important;
}
.homepage-search-form .wp-block-search__inside-wrapper,
.search-page-form .wp-block-search__inside-wrapper {
  gap: 10px;
}
.homepage-search-form .wp-block-search__input,
.search-page-form .wp-block-search__input {
  min-width: 0;
  min-height: 52px;
  background: #fff;
  border: 1px solid rgba(0,23,70,0.24);
  border-radius: 10px;
  color: var(--wp--preset--color--ink-900);
  font: inherit;
  padding: 12px 16px;
}
.homepage-search-form .wp-block-search__input::placeholder,
.search-page-form .wp-block-search__input::placeholder {
  color: #64665f;
  opacity: 1;
}
.homepage-search-form .wp-block-search__button,
.search-page-form .wp-block-search__button {
  min-height: 52px;
  background: var(--wp--preset--color--gold-500);
  border: 0;
  border-radius: 10px;
  color: var(--wp--preset--color--navy-900);
  font-weight: 800;
  margin: 0;
  padding: 12px 22px;
}
.homepage-search-form .wp-block-search__button:hover,
.search-page-form .wp-block-search__button:hover {
  background: var(--wp--preset--color--gold-600);
}
.search-page-hero .wp-block-query-title {
  margin: 8px 0 0;
}
.search-page-intro {
  max-width: 62ch;
}
.search-page-form {
  max-width: 780px;
  margin-top: 24px !important;
}
.search-results-section {
  background: #F5F2EB;
}
.search-results-count {
  color: var(--wp--preset--color--ink-600);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 18px !important;
}
.search-results-list .wp-block-post-template {
  margin: 0;
  padding: 0;
}
.search-result-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,23,70,0.03);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.search-result-card:hover,
.search-result-card:focus-within {
  border-color: rgba(30,76,140,0.45);
  box-shadow: 0 6px 18px rgba(0,23,70,0.08);
  transform: translateY(-1px);
}
.search-result-card .wp-block-post-title {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.2;
}
.search-result-card .wp-block-post-title a {
  color: var(--wp--preset--color--navy-900);
  text-decoration: none;
}
.search-result-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--navy-500);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.search-result-card .wp-block-post-excerpt,
.search-result-card .wp-block-post-excerpt__excerpt {
  color: var(--wp--preset--color--ink-600);
  margin: 0 !important;
}
.search-result-type {
  display: inline-block;
  background: var(--wp--preset--color--navy-100);
  border-radius: 999px;
  color: var(--wp--preset--color--navy-700) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  line-height: 1;
  margin: 0 !important;
  padding: 7px 10px;
  text-transform: uppercase;
}
.search-pagination {
  align-items: center;
  margin-top: 28px !important;
}
.search-pagination a,
.search-pagination .page-numbers {
  font-weight: 700;
}
.search-no-results {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-left: 5px solid var(--wp--preset--color--gold-500);
  border-radius: 14px;
}
.search-no-results > * {
  margin-top: 0 !important;
}
.search-no-results > * + * {
  margin-top: 12px !important;
}
.search-browse-links a {
  color: var(--wp--preset--color--navy-500);
  font-weight: 800;
}

@media (max-width: 782px) {
  .homepage-search-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .homepage-search-form .wp-block-search__inside-wrapper,
  .search-page-form .wp-block-search__inside-wrapper {
    align-items: stretch;
    flex-direction: column;
  }
  .homepage-search-form .wp-block-search__button,
  .search-page-form .wp-block-search__button {
    margin: 0;
    width: 100%;
  }
  .search-result-card {
    padding: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-result-card {
    transition: none;
  }
  .search-result-card:hover,
  .search-result-card:focus-within {
    transform: none;
  }
}

/* Hero */
.hero-band {
  background: linear-gradient(160deg, var(--wp--preset--color--navy-900) 0%, var(--wp--preset--color--navy-700) 55%, var(--wp--preset--color--navy-500) 130%);
  color: #fff;
}
.hero-band h1, .hero-band h2, .hero-band p { color: #fff; }
.hero-eyebrow {
  color: var(--wp--preset--color--gold-200);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 13px;
}
.hero-budget-message {
  color: #E4EAF5 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  margin: -12px 0 0 !important;
  max-width: 54ch;
}
.hero-content {
  max-width: 600px;
  flex: 1 1 420px;
}

/* Compact "Economy at a Glance" card module, hero-band top-right */
.hero-economy-strip {
  flex: 0 1 360px;
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 22px;
  margin-top: 6px;
}
.hero-economy-kicker {
  color: var(--wp--preset--color--gold-200) !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px !important;
  margin: 0 0 14px 0 !important;
}
/* Vertical stat-row list, not a card grid — avoids cramped/overlapping
   tiles at narrow widths and reads cleanly in a slim side panel. */
.hero-economy-strip .bp-cards {
  display: flex;
  flex-direction: column;
}
.hero-economy-strip .bp-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  border-radius: 0;
  padding: 12px 0;
}
.hero-economy-strip .bp-card:first-child { padding-top: 0; }
.hero-economy-strip .bp-card:last-child { border-bottom: none; padding-bottom: 0; }
.hero-economy-strip .bp-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255,255,255,0.14);
}
.hero-economy-strip .bp-card-head {
  gap: 8px;
  min-height: auto;
  margin-bottom: 0;
}
.hero-economy-strip .bp-card-icon {
  width: 24px;
  height: 24px;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  flex-shrink: 0;
}
.hero-economy-strip .bp-card-label {
  color: #C6D0E5 !important;
  font-size: 11.5px !important;
  white-space: nowrap;
}
.hero-economy-strip .bp-card-value {
  color: #fff;
  font-size: 19px !important;
  min-height: auto;
  margin: 0 !important;
  white-space: nowrap;
}
.hero-economy-strip .bp-card-copy {
  display: none;
}
.hero-economy-strip .bp-source {
  margin: 14px 0 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #C6D0E5 !important;
  font-size: 12px !important;
}
.hero-economy-strip .bp-source a {
  color: var(--wp--preset--color--gold-200);
  font-weight: 700;
  text-decoration: none;
}
.hero-economy-strip .bp-source a:hover { text-decoration: underline; }

/* Bare layout wrapper — visual card treatment lives on page-content-panel,
   document-panel, and the sidebar cards themselves, not on this shell.
   (Wrapping already-boxed content in another box read as "boxes within
   boxes" — see DEV/TASKS.md division-page redesign note.) */
.page-content-shell {
  display: block;
}
.page-content-panel,
.document-panel {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 18px;
}
.page-content-panel {
  padding: clamp(24px, 2.8vw, 42px);
  box-shadow: inset 0 0 0 1px rgba(17, 40, 77, 0.02);
}
.page-content-panel .wp-block-post-content {
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.7;
}
.page-content-panel .wp-block-post-content :where(p, li) {
  line-height: 1.7;
}
.page-content-panel .wp-block-post-content :where(h2, h3, h4) {
  line-height: 1.2;
  margin-bottom: 0.65em;
}
.page-content-panel .wp-block-post-content :where(h2, h3, h4):not(:first-child) {
  margin-top: 1.6em;
}
/* Major section dividers within migrated content pages (division/page/single/publication).
   h2 = top-level sections, gets the stronger gold-accented divider; h3 = sub-sections,
   gets a subtler grey line. Both skip the divider when they open the content (no rule
   needed before the very first heading on the page). */
.page-content-panel .wp-block-post-content h2 {
  color: var(--wp--preset--color--navy-900);
  font-family: var(--wp--preset--font-family--display);
  font-size: 24px;
  font-weight: 800;
  margin-top: 2.4em;
  padding-top: 28px;
  border-top: 3px solid var(--wp--preset--color--gold-500);
}
.page-content-panel .wp-block-post-content h3 {
  color: var(--wp--preset--color--navy-900);
  font-family: var(--wp--preset--font-family--display);
  font-size: 21px;
  font-weight: 800;
  padding-top: 22px;
  border-top: 1px solid var(--wp--preset--color--line);
}
.page-content-panel .wp-block-post-content h2:first-child,
.page-content-panel .wp-block-post-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
/* Link lists (e.g. "Other divisions", "Important links") get card treatment;
   plain bullet lists (no links) are left as ordinary lists. */
.page-content-panel .wp-block-post-content ul.wp-block-list:has(> li > a) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-content-panel .wp-block-post-content ul.wp-block-list:has(> li > a) > li {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.page-content-panel .wp-block-post-content ul.wp-block-list:has(> li > a) > li:hover {
  border-color: var(--wp--preset--color--navy-500);
  background: var(--wp--preset--color--navy-100);
}
.page-content-panel .wp-block-post-content ul.wp-block-list:has(> li > a) a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--wp--preset--color--navy-900);
  font-weight: 600;
}
.page-content-panel .wp-block-post-content ul.wp-block-list:has(> li > a) a::after {
  content: "→";
  color: var(--wp--preset--color--gold-600);
  flex-shrink: 0;
}
/* Tables (e.g. KPI counts) in migrated content pages */
.page-content-panel .wp-block-post-content .wp-block-table {
  overflow-x: auto;
  margin: 0;
}
.page-content-panel .wp-block-post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.page-content-panel .wp-block-post-content .wp-block-table th,
.page-content-panel .wp-block-post-content .wp-block-table td {
  padding: 10px 14px;
  border: 1px solid var(--wp--preset--color--line);
  text-align: left;
}
.page-content-panel .wp-block-post-content .wp-block-table thead th {
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.page-content-panel .wp-block-post-content .wp-block-table tbody tr:nth-child(even) {
  background: var(--wp--preset--color--off-white);
}
.page-content-panel .wp-block-post-content .wp-block-table tbody td:first-child {
  font-weight: 700;
  color: var(--wp--preset--color--navy-900);
}
.document-panel {
  padding: 22px 24px;
  margin-top: 24px;
}
.document-panel h3,
.document-panel h4 {
  margin-top: 0;
}
.document-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.document-panel li {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  background: var(--wp--preset--color--off-white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.document-panel li:hover {
  border-color: rgba(30, 76, 140, 0.35);
  box-shadow: 0 6px 18px rgba(0, 23, 70, 0.05);
}
.document-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--wp--preset--color--navy-900);
  text-decoration: none;
  font-weight: 700;
}
.document-panel a:hover {
  background: rgba(30, 76, 140, 0.03);
  text-decoration: underline;
}
.document-panel a::after {
  content: "↗";
  color: var(--wp--preset--color--gold-600);
  font-size: 18px;
}

/* Sidebar panel icon headers (document-panel, division sidebar, section nav) */
.document-panel-head,
.division-sidebar-head,
.section-nav-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.document-panel-icon,
.division-sidebar-icon,
.section-nav-icon {
  width: 34px;
  height: 34px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  font-weight: 800;
  flex-shrink: 0;
}
.document-panel-head h4,
.division-sidebar-head h4,
.section-nav-head h4 {
  margin: 0 !important;
}
.section-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Sidebar column for pages with a left-hand nav (page-division.html,
   page-with-toc.html) — the whole column sticks together (on page-division.html
   that's nav + Related Documents + More-in-division, not just the nav card on
   its own; page-with-toc.html only has the nav). Previously only
   .section-nav-card was sticky, so scrolling past it left Related
   Documents/More-in-division behind with no way back short of scrolling back
   up. If the combined sidebar content is taller than the viewport, it scrolls
   internally rather than getting cut off. */
.division-sidebar-col {
  position: sticky;
  top: 150px;
  max-height: calc(100vh - 174px);
  overflow-y: auto;
}

/* Stacked division sidebars must stay in normal flow: a full-width sticky
   column otherwise covers the content and intercepts mobile pointer events. */
@media (max-width: 782px) {
  .division-sidebar-col {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }
}

/* "On this page" section nav (naurufinance/section-nav block).
   Rendered as <details>/<summary> — collapsed by default on long pages (see
   section-nav-block.php) so it doesn't push Related Documents/More-in-division
   further down the sidebar. */
.section-nav-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.section-nav-details .section-nav-head {
  cursor: pointer;
  list-style: none;
}
.section-nav-details .section-nav-head::-webkit-details-marker,
.section-nav-details .section-nav-head::marker {
  display: none;
}
.section-nav-chevron {
  margin-left: auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--wp--preset--color--ink-300);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.section-nav-details[open] .section-nav-chevron {
  transform: rotate(180deg);
}
.section-nav-details:not([open]) .section-nav-head {
  margin-bottom: 0;
}
.section-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.section-nav-item a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--wp--preset--color--ink-600);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
  transition: background .15s ease, color .15s ease;
}
.section-nav-item a:hover {
  background: var(--wp--preset--color--navy-100);
  color: var(--wp--preset--color--navy-900);
}
.section-nav-level-3 a {
  padding-left: 22px;
  font-size: 13px;
}
.section-nav-level-4 a {
  padding-left: 34px;
  font-size: 12.5px;
  color: var(--wp--preset--color--ink-300);
}

/* "More in this division" sidebar card (naurufinance/division-siblings block) */
.division-sidebar-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 24px;
}
.division-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.division-sidebar-list li {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  background: var(--wp--preset--color--off-white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.division-sidebar-list li:hover {
  border-color: rgba(30, 76, 140, 0.35);
  box-shadow: 0 6px 18px rgba(0, 23, 70, 0.05);
}
.division-sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  color: var(--wp--preset--color--navy-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.division-sidebar-list a:hover {
  background: rgba(30, 76, 140, 0.03);
  text-decoration: underline;
}
.division-sidebar-list a::after {
  content: "→";
  color: var(--wp--preset--color--gold-600);
  flex-shrink: 0;
}
.publication-grid .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Publication Filters (naurufinance/publication-filters, publications archive) */
.pub-filters {
  margin-bottom: 32px;
}
.pub-filters-label {
  color: var(--wp--preset--color--ink-600) !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 12px !important;
  margin: 0 0 12px 0 !important;
}
.pub-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--line);
  background: #fff;
  color: var(--wp--preset--color--ink-900) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pub-filter-pill:hover {
  border-color: var(--wp--preset--color--navy-500);
  color: var(--wp--preset--color--navy-700) !important;
}
.pub-filter-pill.is-active {
  background: var(--wp--preset--color--navy-900);
  border-color: var(--wp--preset--color--navy-900);
  color: #fff !important;
}
.pub-filter-count {
  color: inherit;
  opacity: .65;
  font-size: 12px;
  font-weight: 700;
}
.pub-filters-active {
  margin: 12px 0 0 0 !important;
  color: var(--wp--preset--color--ink-600) !important;
  font-size: 13.5px !important;
}
.pub-filters-active strong { color: var(--wp--preset--color--navy-900); }

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
}
.stat-card h3 { color: var(--wp--preset--color--gold-200) !important; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* Hero stat card — dashboard style */
.stat-card .kpi-hero {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
}
.stat-card .kpi-hero .kpi-label {
  color: #C6D0E5 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.stat-card .kpi-big-value {
  font-size: 32px !important;
  font-weight: 800;
  margin: 4px 0 8px 0 !important;
  color: #fff;
  line-height: 1.1;
}
.stat-card .kpi-breakdown {
  font-size: 12.5px !important;
  color: #93A0BF !important;
  margin: 0 !important;
  line-height: 1.5;
}

.stat-card .kpi-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  align-items: stretch !important;
}
.stat-card .kpi-tile {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  height: 100%;
  min-height: 100%;
  align-self: stretch !important;
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.stat-card .kpi-tile-value {
  font-size: 20px !important;
  font-weight: 800;
  margin: 0 0 2px 0 !important;
  color: var(--wp--preset--color--gold-200) !important;
}
.stat-card .kpi-tile-label {
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #C6D0E5 !important;
  margin: 0 !important;
  min-height: 37px;
  display: flex;
  align-items: center;
}

.stat-card .kpi-footer {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-card .kpi-footer .kpi-label {
  color: #C6D0E5 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.stat-card .kpi-footer .kpi-value {
  font-size: 18px !important;
  font-weight: 800;
  margin: 0 !important;
  color: #fff;
  white-space: nowrap;
}

/* Cards */
.task-card, .division-card, .news-card, .budget-row, .service-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.task-card:hover, .division-card:hover, .news-card:hover, .service-card:hover {
  box-shadow: 0 4px 14px rgba(0,23,70,0.10);
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--navy-500);
}
.task-card a, .division-card a, .news-card a { text-decoration: none; color: inherit; }
.service-card h3 { color: var(--wp--preset--color--navy-900); margin: 0 0 6px 0; }

/* Equal-height task cards: stretch columns + fill card to column height */
.wp-block-columns .wp-block-column {
  display: flex;
  flex-direction: column;
}
.wp-block-columns .wp-block-column > .task-card,
.wp-block-columns .wp-block-column > .service-card,
.wp-block-columns .wp-block-column > .division-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Equal-height news cards inside query grid */
.wp-block-query .wp-block-post-template.is-layout-grid {
  align-items: stretch;
}
.wp-block-query .wp-block-post-template.is-layout-grid > li {
  display: flex;
  flex-direction: column;
}

/* Access Services division card grid (front page) */
.access-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .access-card-grid { grid-template-columns: 1fr; }
}
.access-card-grid .task-card {
  display: flex;
  flex-direction: column;
  margin-top: 0 !important;
}
/* Service-first cards: the division is a small secondary chip, the division's
   top services are the primary, scannable content (see svc-rows below). */
.access-card-grid .svc-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.access-card-grid .svc-division-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wp--preset--color--navy-700);
  background: var(--wp--preset--color--navy-100);
  padding: 5px 11px 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.access-card-grid .svc-division-chip svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.access-card-grid .svc-division-chip:hover {
  background: var(--wp--preset--color--navy-700);
  color: #fff;
}
.access-card-grid .svc-hub .task-card-desc {
  margin-top: 14px;
}
.access-card-grid .svc-rows {
  margin-top: 16px;
  padding-top: 2px;
  border-top: 1px solid var(--wp--preset--color--line);
}
.access-card-grid .svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--wp--preset--color--line);
  text-decoration: none;
  color: var(--wp--preset--color--navy-900) !important;
  font-weight: 600;
  font-size: 14.5px;
}
.access-card-grid .svc-row:last-child {
  border-bottom: none;
}
.access-card-grid .svc-row .svc-chev {
  color: var(--wp--preset--color--ink-300);
  font-size: 16px;
  transition: transform .15s ease, color .15s ease;
}
.access-card-grid .svc-row:hover {
  color: var(--wp--preset--color--gold-600) !important;
}
.access-card-grid .svc-row:hover .svc-chev {
  transform: translateX(3px);
  color: var(--wp--preset--color--gold-600);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background-color .15s ease, color .15s ease;
}
.service-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.service-icon.icon-navy { background: var(--wp--preset--color--navy-100); color: var(--wp--preset--color--navy-700); }
.service-icon.icon-gold { background: var(--wp--preset--color--gold-100); color: var(--wp--preset--color--gold-600); }
.service-icon.icon-green { background: var(--wp--preset--color--green-100); color: var(--wp--preset--color--green-700); }
.service-icon.icon-sand { background: var(--wp--preset--color--sand-200); color: var(--wp--preset--color--navy-900); }
.task-card:hover .service-icon.icon-navy { background: var(--wp--preset--color--navy-700); color: #fff; }
.task-card:hover .service-icon.icon-gold { background: var(--wp--preset--color--gold-600); color: #fff; }
.task-card:hover .service-icon.icon-green { background: var(--wp--preset--color--green-700); color: #fff; }
.task-card:hover .service-icon.icon-sand { background: var(--wp--preset--color--navy-900); color: #fff; }
.task-card .task-card-desc {
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}
.task-card .task-card-links {
  margin: 14px 0 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid var(--wp--preset--color--line);
}
.task-card .task-card-links a {
  color: var(--wp--preset--color--navy-700) !important;
  font-weight: 700;
  text-decoration: none;
}
.task-card .task-card-links a:hover {
  color: var(--wp--preset--color--gold-600) !important;
  text-decoration: underline;
}

.wp-block-query .news-card,
.wp-block-query .division-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.wp-block-query .news-card > .wp-block-group {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wp--preset--color--green-100);
  color: var(--wp--preset--color--green-700);
}
.badge.gold { background: var(--wp--preset--color--gold-100); color: var(--wp--preset--color--gold-600); }

/* Checkmark list (About Us objectives, etc.) */
.check-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300975E' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 9 17 19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

/* Leadership / structure callout (About Us) */
.leadership-callout {
  background: var(--wp--preset--color--navy-900);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  margin-top: 28px !important;
  gap: 20px;
}
.leadership-callout h3, .leadership-callout p { color: #fff !important; }

.section-tinted { background: var(--wp--preset--color--navy-100); }
.section-light { background: var(--wp--preset--color--off-white); }

/* Access Services section identity — flat tint, not a gradient: a gradient
   fading to off-white bled straight into the off-white section below it
   and erased the seam between them (see front-page.html section order). */
.access-services-eyebrow {
  color: var(--wp--preset--color--gold-600) !important;
  font-weight: 700 !important;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 13px !important;
  margin: 0 0 6px 0 !important;
}
.section-band-dark { background: var(--wp--preset--color--navy-900); color: #fff; }
.section-band-dark h2, .section-band-dark p { color: #fff; }
/* News card text must be dark even inside dark section — white-on-white fix */
.section-band-dark .news-card { background: #fff; }
.section-band-dark .news-card p,
.section-band-dark .news-card h3,
.section-band-dark .news-card a { color: var(--wp--preset--color--ink-900) !important; }
.section-band-dark .news-card .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--ink-600) !important; }

/* FMIS Center Point */
.fmis-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #001746 0%, #0B2A5B 55%, #1E4C8C 125%);
  color: #fff;
}
.fmis-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -230px;
  border: 80px solid rgba(245, 151, 29, 0.13);
  border-radius: 50%;
  pointer-events: none;
}
.fmis-hero h1,
.fmis-hero p { color: #fff; }
.fmis-kicker {
  color: var(--wp--preset--color--gold-200) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.fmis-hero-copy {
  max-width: 720px;
}
.fmis-status-strip {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  margin-top: 38px !important;
}
.fmis-status-item {
  background: rgba(0, 23, 70, 0.66);
  margin-top: 0 !important;
  padding: 15px 18px;
}
.fmis-status-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
}
.fmis-status-item span {
  color: #C6D0E5;
  font-size: 12px;
}
.fmis-action-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 23, 70, 0.06);
  padding: 26px;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.fmis-action-card:hover {
  border-color: var(--wp--preset--color--navy-500);
  box-shadow: 0 14px 32px rgba(0, 23, 70, 0.11);
  transform: translateY(-2px);
}
.fmis-action-icon {
  align-items: center;
  background: var(--wp--preset--color--navy-100);
  border-radius: 12px;
  color: var(--wp--preset--color--navy-700) !important;
  display: flex;
  font-size: 22px !important;
  height: 46px;
  justify-content: center;
  margin: 0 0 18px !important;
  width: 46px;
}
.fmis-action-card h3 {
  margin: 0 0 8px !important;
}
.fmis-action-card p {
  color: var(--wp--preset--color--ink-600);
}
.fmis-action-link {
  margin-top: auto !important;
  padding-top: 12px;
}
.fmis-action-link a {
  color: var(--wp--preset--color--navy-700);
  font-weight: 800;
  text-decoration: none;
}
.fmis-action-link a:hover { text-decoration: underline; }
.fmis-support-band {
  background: var(--wp--preset--color--navy-900);
  color: #fff;
}
.fmis-support-band h2,
.fmis-support-band h3,
.fmis-support-band p { color: #fff; }
.fmis-contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
}
.fmis-contact-card a {
  color: var(--wp--preset--color--gold-200);
  font-weight: 700;
}
.fmis-checklist {
  margin-bottom: 0;
}
.fmis-checklist li {
  margin-bottom: 8px;
}
@media (max-width: 782px) {
  .fmis-status-strip { grid-template-columns: 1fr; }
}

/* Financial Position dashboard cards */
.fin-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.fin-card:hover {
  box-shadow: 0 4px 14px rgba(0,23,70,0.10);
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--navy-500);
}
.fin-card-icon {
  font-size: 28px !important;
  margin: 0 0 10px 0 !important;
  line-height: 1;
}
.fin-card-label {
  color: var(--wp--preset--color--ink-600) !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 !important;
  min-height: 34px;
  display: flex;
  align-items: center;
}
.fin-card-value {
  font-size: 28px !important;
  font-weight: 800;
  color: var(--wp--preset--color--navy-900);
  line-height: 1.1;
}
.fin-card-sub {
  color: var(--wp--preset--color--ink-600) !important;
  margin: 0 !important;
}
.fin-card-trend {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--wp--preset--color--line);
}
.fin-card-trend-text {
  color: var(--wp--preset--color--green-700) !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
/* Equal-height fin cards: stretch columns */
.wp-block-columns .wp-block-column > .fin-card {
  flex: 1 1 auto;
}

/* Document link lists — a plain list of downloadable document links, used
   either standalone in page content or inside a .division-card (whose base
   ".division-card a" rule strips link styling, since it assumes the whole
   card is one link — this list variant restores visible link styling
   regardless, one row per document, matching .document-panel a). */
.document-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.document-links li {
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.document-links li:last-child {
  border-bottom: none;
}
.document-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  color: var(--wp--preset--color--navy-700);
  text-decoration: none;
  font-weight: 600;
}
.document-links a:hover {
  color: var(--wp--preset--color--gold-600);
  text-decoration: underline;
}
.document-links a::after {
  content: "↗";
  color: var(--wp--preset--color--gold-600);
  font-size: 14px;
  flex-shrink: 0;
}

/* Migrated content pages auto-box any <ul><li><a> as a "related document"
   pill row (see the ":has(> li > a)" rule above, in the page-content-panel
   block). That's wrong for two other common list shapes — opt out with one
   of these two classes on the <ul>. */

/* .described-links — a link followed by explanatory prose in the same
   <li> (e.g. "Budget Archive — every national budget since..."). The
   auto-box's flex row squashes title and description onto one line;
   this stacks them with a simple left accent instead. */
.page-content-panel .wp-block-post-content ul.wp-block-list.described-links {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-content-panel .wp-block-post-content ul.wp-block-list.described-links > li {
  border: none;
  border-radius: 0;
  border-left: 3px solid var(--wp--preset--color--gold-500);
  padding: 2px 0 2px 16px;
  margin-bottom: 16px;
}
.page-content-panel .wp-block-post-content ul.wp-block-list.described-links > li:last-child {
  margin-bottom: 0;
}
.page-content-panel .wp-block-post-content ul.wp-block-list.described-links a {
  display: inline;
  padding: 0;
  font-weight: 700;
  color: var(--wp--preset--color--navy-900);
  text-decoration: none;
}
.page-content-panel .wp-block-post-content ul.wp-block-list.described-links a:hover {
  text-decoration: underline;
}
.page-content-panel .wp-block-post-content ul.wp-block-list.described-links a::after {
  content: none;
}

/* .plain-list — an ordinary list where only some items happen to contain a
   link (e.g. a roster of entities, a few with a website). Renders as a
   normal bulleted list throughout instead of boxing only the linked rows. */
.page-content-panel .wp-block-post-content ul.wp-block-list.plain-list {
  display: block;
  list-style: disc;
  margin: 0 0 0 1.3em;
  padding: 0;
}
.page-content-panel .wp-block-post-content ul.wp-block-list.plain-list > li {
  border: none;
  padding: 3px 0;
}
.page-content-panel .wp-block-post-content ul.wp-block-list.plain-list a {
  display: inline;
  padding: 0;
  color: var(--wp--preset--color--navy-700);
  text-decoration: underline;
  font-weight: 600;
}
.page-content-panel .wp-block-post-content ul.wp-block-list.plain-list a::after {
  content: none;
}

/* Budget Performance / Economy at a Glance cards */
.bp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.bp-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 18px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.bp-card:hover {
  box-shadow: 0 4px 14px rgba(0,23,70,0.10);
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--navy-500);
}
.bp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin-bottom: 8px;
}
.bp-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.bp-card-label {
  color: var(--wp--preset--color--ink-600) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.bp-card-value {
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 800;
  color: var(--wp--preset--color--navy-900);
  line-height: 1.1;
  margin: 10px 0 6px 0 !important;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.bp-card-copy {
  color: var(--wp--preset--color--ink-600) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.bp-source {
  color: var(--wp--preset--color--ink-600) !important;
  font-size: 13px !important;
  margin: 16px 0 0 0 !important;
}
.bp-source a {
  color: var(--wp--preset--color--navy-700);
  font-weight: 700;
  text-decoration: none;
}
.bp-source a:hover { color: var(--wp--preset--color--gold-600); text-decoration: underline; }

.budget-intro-card,
.budget-paper-list,
.micro-metric {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
}
.micro-metric {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  height: 100%;
}
.micro-metric-label {
  margin: 0 !important;
  color: var(--wp--preset--color--ink-600) !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  font-size: 12px !important;
}
.micro-metric-value {
  margin: 8px 0 0 0 !important;
  font-size: 26px !important;
  font-weight: 800;
  color: var(--wp--preset--color--navy-900);
  line-height: 1.1;
}

/* Budget Archive (naurufinance/budget-archive-grid, server-rendered block) */
.budget-growth-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #001746 0%, #0B2A5B 55%, #1E4C8C 125%);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 32px) 26px;
  color: #fff;
}
.budget-growth-band::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  top: -220px;
  border: 70px solid rgba(245, 151, 29, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.budget-growth-eyebrow {
  position: relative;
  margin: 0 !important;
  color: var(--wp--preset--color--gold-200) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.budget-growth-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.6vw, 18px);
  height: clamp(120px, 16vw, 170px);
  margin-top: 26px;
}
.budget-growth-bar {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.budget-growth-amount {
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 700;
  color: var(--wp--preset--color--gold-200);
  margin-bottom: 6px;
  white-space: nowrap;
}
.budget-growth-track {
  width: 100%;
  max-width: 42px;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}
.budget-growth-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--wp--preset--color--gold-200), var(--wp--preset--color--gold-500));
  border-radius: 6px 6px 0 0;
}
.budget-growth-fill.is-current {
  background: linear-gradient(180deg, #ffffff, var(--wp--preset--color--gold-200));
}
.budget-growth-year {
  margin-top: 10px;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 700;
  color: #C6D0E5;
  white-space: nowrap;
}

.budget-archive-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.budget-archive-card {
  display: block;
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.budget-archive-card:hover {
  box-shadow: 0 10px 26px rgba(0, 23, 70, 0.10);
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--navy-500);
}
.budget-archive-card.is-current {
  border-color: var(--wp--preset--color--gold-500);
  box-shadow: 0 4px 16px rgba(245, 151, 29, 0.16);
}
.budget-archive-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.budget-archive-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.budget-archive-card.is-current .budget-archive-icon {
  background: var(--wp--preset--color--gold-500);
  color: var(--wp--preset--color--navy-900);
}
.budget-archive-badge {
  background: var(--wp--preset--color--gold-100);
  color: var(--wp--preset--color--gold-600);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.budget-archive-value {
  font-size: clamp(26px, 3vw, 32px) !important;
  font-weight: 800;
  color: var(--wp--preset--color--navy-900);
  margin: 0 0 4px 0 !important;
  line-height: 1.1;
}
.budget-archive-title {
  font-size: 13px !important;
  font-weight: 700;
  color: var(--wp--preset--color--ink-600) !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 14px 0 !important;
}
.budget-archive-meta {
  color: var(--wp--preset--color--ink-600) !important;
  font-size: 13.5px !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.5;
  min-height: 40px;
}
.budget-archive-docs {
  border-top: 1px solid var(--wp--preset--color--line);
  padding-top: 14px;
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 700;
  color: var(--wp--preset--color--navy-700);
}
.budget-archive-card:hover .budget-archive-docs {
  color: var(--wp--preset--color--gold-600);
}

/* Historical budget years with no confirmed appropriation figure — a plain
   list below the chart/cards, not mixed into either. */
.budget-archive-historical {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--wp--preset--color--line);
}
.budget-archive-historical-eyebrow {
  color: var(--wp--preset--color--ink-600) !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 12px !important;
  margin: 0 0 16px 0 !important;
}
.budget-archive-historical-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  overflow: hidden;
}
.budget-archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  text-decoration: none !important;
  border-bottom: 1px solid var(--wp--preset--color--line);
  transition: background-color .15s ease;
}
.budget-archive-row:last-child { border-bottom: none; }
.budget-archive-row:hover { background: var(--wp--preset--color--navy-100); }
.budget-archive-row-year {
  color: var(--wp--preset--color--navy-900);
  font-weight: 700;
}
.budget-archive-row-docs {
  color: var(--wp--preset--color--navy-700);
  font-size: 13.5px;
  font-weight: 600;
}

/* Development Fund KPIs (naurufinance/devfund-kpis server-rendered block —
   used on the Planning and Aid Division page) */
.devfund-kpis { width: 100%; }
.devfund-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.devfund-kpi-tile {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-left: 5px solid var(--wp--preset--color--gold-500);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.devfund-kpi-label {
  color: var(--wp--preset--color--ink-600);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
}
.devfund-kpi-value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--wp--preset--color--navy-900);
  line-height: 1.1;
}
.devfund-kpi-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--wp--preset--color--ink-600);
}
.devfund-kpi-sub.is-up { color: var(--wp--preset--color--green-700); }
.devfund-kpi-sub.is-down { color: var(--wp--preset--color--red-600); }

.devfund-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.devfund-breakdown-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  padding: 22px 22px 18px;
}
.devfund-breakdown-title {
  font-size: 15px !important;
  font-weight: 700;
  color: var(--wp--preset--color--navy-900);
  margin: 0 0 16px 0 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.devfund-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label display" "bar bar";
  gap: 2px 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.devfund-bar-row:last-child { margin-bottom: 0; }
.devfund-bar-label { grid-area: label; font-size: 14px; color: var(--wp--preset--color--ink-900); font-weight: 600; }
.devfund-bar-display { grid-area: display; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--navy-900); }
.devfund-bar-track {
  grid-area: bar;
  height: 8px;
  background: var(--wp--preset--color--navy-100);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}
.devfund-bar-fill { display: block; height: 100%; border-radius: 99px; }

/* Appropriation trend (auto from budget_year CPT) */
.devfund-trend { list-style: none; margin: 0; padding: 0; }
.devfund-trend-item {
  display: grid;
  grid-template-columns: 72px 1fr 64px;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.devfund-trend-item:last-child { margin-bottom: 0; }
.devfund-trend-year { font-size: 13px; color: var(--wp--preset--color--ink-600); font-weight: 600; }
.devfund-trend-track { height: 8px; background: var(--wp--preset--color--navy-100); border-radius: 99px; overflow: hidden; }
.devfund-trend-bar { display: block; height: 100%; background: var(--wp--preset--color--navy-500); border-radius: 99px; }
.devfund-trend-item.is-latest .devfund-trend-bar { background: var(--wp--preset--color--gold-500); }
.devfund-trend-value { font-size: 13px; font-weight: 700; color: var(--wp--preset--color--navy-900); text-align: right; }

/* Donut chart block (reusable; rendered by naurufinance/donut-chart) */
.devfund-donut-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.devfund-donut {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(17, 40, 77, 0.05), 0 12px 28px rgba(0, 23, 70, 0.12);
  background: linear-gradient(135deg, #f4f7fb 0%, #eef4ff 100%);
}
.devfund-donut::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
}
.devfund-donut.is-small { width: 120px; height: 120px; }
.devfund-donut-hole {
  position: absolute;
  inset: 18%;
  background: linear-gradient(180deg, #ffffff 0%, #f9f9f7 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(17, 40, 77, 0.08), 0 8px 18px rgba(0, 23, 70, 0.05);
  z-index: 1;
}
.devfund-donut-hole-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--wp--preset--color--navy-900);
  line-height: 1.1;
}
.devfund-donut.is-small .devfund-donut-hole-value { font-size: 15px; }
.devfund-donut-hole-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--wp--preset--color--ink-300);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 3px;
}
.devfund-chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.devfund-chart-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--wp--preset--color--ink-900);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(17, 40, 77, 0.05);
  border-radius: 10px;
  padding: 8px 10px;
}
.devfund-chart-legend strong {
  margin-left: auto;
  color: var(--wp--preset--color--navy-900);
  font-weight: 700;
}
.devfund-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}
@media (max-width: 782px) {
  .devfund-kpis-grid { grid-template-columns: 1fr; }
  .devfund-kpi-row { grid-template-columns: 1fr; }
}

/* Citizens Budget Guide */
.citizen-guide-hero {
  background: linear-gradient(135deg, var(--wp--preset--color--navy-900), var(--wp--preset--color--navy-500));
  color: #fff;
}
.citizen-guide-hero h1,
.citizen-guide-hero p { color: #fff; }
.citizen-guide-kicker {
  color: var(--wp--preset--color--gold-200) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.citizen-stat-card,
.citizen-priority-card,
.citizen-takeaway {
  height: 100%;
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
}
.citizen-stat-card {
  border-top: 5px solid var(--wp--preset--color--gold-500);
  padding: 22px;
}
.citizen-stat-label {
  color: var(--wp--preset--color--ink-600) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.citizen-stat-value {
  color: var(--wp--preset--color--navy-900) !important;
  font-size: clamp(28px, 4vw, 38px) !important;
  font-weight: 800;
  line-height: 1.1;
}
.citizen-revenue-chart {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  padding: 24px;
}
.citizen-bar-row { margin-bottom: 18px; }
.citizen-bar-row:last-child { margin-bottom: 0; }
.citizen-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  color: var(--wp--preset--color--ink-900);
  font-size: 14px;
  font-weight: 700;
}
.citizen-bar-track {
  height: 12px;
  overflow: hidden;
  background: var(--wp--preset--color--navy-100);
  border-radius: 999px;
}
.citizen-bar-fill {
  display: block;
  height: 100%;
  background: var(--wp--preset--color--navy-500);
  border-radius: 999px;
}
.citizen-takeaway {
  border-left: 5px solid var(--wp--preset--color--gold-500);
  padding: 24px;
}
.citizen-priority-card { padding: 22px; }
.citizen-priority-amount {
  color: var(--wp--preset--color--navy-500) !important;
  font-size: 26px !important;
  font-weight: 800;
}
.citizen-guide-section .wp-block-column,
.citizen-guide-section .citizen-stat-card,
.citizen-guide-section .citizen-priority-card {
  margin-top: 0 !important;
}
@media (max-width: 782px) {
  .citizen-bar-label { align-items: flex-start; }
}

/* Vacancy list + Latest News list in Access Services sidebar
   Deliberately styled apart from the white bordered .task-card grid:
   soft off-white fill, no hover lift, a coloured left rail per widget. */
.vacancy-list-card, .news-list-card {
  border: none;
  border-left: 4px solid var(--wp--preset--color--gold-500);
  border-radius: 10px;
  background: var(--wp--preset--color--off-white);
  box-shadow: 0 1px 3px rgba(0,23,70,0.06);
}
.news-list-card {
  border-left-color: var(--wp--preset--color--navy-500);
}
/* Matches the rendered height of the first Access Services card row
   (Treasury/NRO, see .svc-hub) so the two line up on the front page,
   and keeps room for two rows even when there's only one vacancy (or none). */
.vacancy-list-card {
  min-height: 320px;
}
.vacancy-list-card h3, .news-list-card h3 { color: var(--wp--preset--color--navy-900) !important; font-size: 20px; }
.vacancy-list-item, .news-list-item {
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.vacancy-list-item:last-child, .news-list-item:last-child { border-bottom: none; margin-bottom: 0 !important; padding-bottom: 0 !important; }
.vacancy-list-item .wp-block-post-title a,
.news-list-item .wp-block-post-title a {
  color: var(--wp--preset--color--navy-700);
  text-decoration: none;
  font-weight: 700;
}
.vacancy-list-item .wp-block-post-title a:hover,
.news-list-item .wp-block-post-title a:hover { color: var(--wp--preset--color--navy-900); text-decoration: underline; }
.vacancy-list-empty { display: none; }
.vacancy-list-item .vacancy-closing-date {
  color: var(--wp--preset--color--ink-300);
  font-size: 12.5px;
  white-space: nowrap;
}
.news-list-item .wp-block-post-date {
  color: var(--wp--preset--color--ink-300) !important;
  font-size: 12.5px !important;
  margin: 0 !important;
}
.news-list-item .wp-block-post-excerpt {
  margin: 0 0 4px 0 !important;
}
.news-list-item .wp-block-post-excerpt__excerpt {
  color: var(--wp--preset--color--ink-600) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Vacancy status badges (shared: homepage list + archive cards) */
.vacancy-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.vacancy-status-open {
  background: var(--wp--preset--color--green-100);
  color: var(--wp--preset--color--green-700);
}
.vacancy-status-closed {
  background: var(--wp--preset--color--navy-100);
  color: var(--wp--preset--color--ink-300);
}

/* Vacancy archive cards (theme/templates/archive-vacancy.html) */
.vacancy-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  background: #fff;
  height: 100%;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.vacancy-card:hover {
  box-shadow: 0 4px 14px rgba(0,23,70,0.10);
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--navy-500);
}
.vacancy-card .wp-block-post-title a {
  color: var(--wp--preset--color--navy-900);
  text-decoration: none;
  font-weight: 700;
}
.vacancy-card .wp-block-post-title a:hover { text-decoration: underline; }
.vacancy-card-meta {
  padding-top: 12px;
  border-top: 1px solid var(--wp--preset--color--line);
  color: var(--wp--preset--color--ink-300);
  font-size: 13px;
}
.vacancy-card-meta .vacancy-closing-date { color: var(--wp--preset--color--ink-600); font-weight: 600; }
.vacancy-card-division {
  display: block;
  color: var(--wp--preset--color--ink-300);
  margin: 2px 0 10px 0 !important;
}

/* Vacancy post (theme/templates/single-vacancy.html) */
.vacancy-hero {
  border: 1px solid var(--wp--preset--color--line);
  border-left: 6px solid var(--wp--preset--color--gold-500);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f7fbff 100%);
  box-shadow: 0 12px 30px rgba(16,44,87,.08);
}
.vacancy-kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5fc;
  color: #1f5f99;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 10px 0 0 !important;
}
.vacancy-hero h1, .vacancy-hero h2 { color: #102c57; }
.vacancy-intro { color: #27364d; margin-top: 14px !important; }
.vacancy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px !important;
}
.vacancy-summary .vacancy-stat {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  flex: 1 1 180px;
  min-width: 0;
}
.vacancy-stat-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-300);
  margin: 0 0 4px 0 !important;
}
.vacancy-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #102c57;
  margin: 0 !important;
}
.vacancy-pdf-button {
  margin-top: 20px !important;
}
.vacancy-alert {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7e6;
  border: 1px solid #f0d9a4;
  color: #4a3510;
  font-weight: 700;
}
.vacancy-section {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 18px;
  background: #fff;
}
.vacancy-section h3 { color: #102c57; }
.vacancy-section h4 { color: #1f5f99; }
.vacancy-contacts .vacancy-contact {
  border-left: 3px solid var(--wp--preset--color--gold-500);
  padding-left: 16px;
}
.vacancy-closing {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--wp--preset--color--navy-100);
  border: 1px solid var(--wp--preset--color--line);
}
.vacancy-closing .vacancy-closing-date {
  font-size: 16px;
  font-weight: 700;
  color: var(--wp--preset--color--navy-900);
}

/* Budget timeline */
.budget-timeline { overflow-x: auto; padding-bottom: 10px; }
.budget-timeline .wp-block-post-template {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.budget-timeline .wp-block-post-template > li { flex: 0 0 auto; }
.budget-timeline .tyear {
  flex: 0 0 210px;
  border-left: 2px solid rgba(255,255,255,0.25);
  padding: 4px 22px;
  position: relative;
}
.budget-timeline .tyear::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wp--preset--color--gold-500);
}
.budget-timeline .tyear .yr { font-family: var(--wp--preset--font-family--display); font-size: 22px; font-weight: 700; color: #fff; }
.budget-timeline .tyear .amt { color: var(--wp--preset--color--gold-200); font-weight: 700; font-size: 15px; }
.budget-timeline .tyear p { font-size: 13px; color: #C6D0E5; }
.budget-timeline .tyear a { color: #fff; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--wp--preset--color--gold-500); text-decoration: none; }

/* Budget archive table-ish rows */
.budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 16px 18px;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 23, 70, 0.02);
}
.budget-row > * {
  flex: 1 1 0;
}
.budget-row a {
  font-weight: 700;
  color: var(--wp--preset--color--navy-900);
  text-decoration: none;
}
.budget-row a:hover {
  color: var(--wp--preset--color--navy-500);
}
.budget-row .wp-block-post-title {
  min-width: 0;
}
.budget-row .wp-block-post-excerpt {
  color: var(--wp--preset--color--ink-600);
  text-align: right;
  max-width: 46%;
  min-width: 180px;
}

.pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wp--preset--color--off-white);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--wp--preset--color--navy-900);
  font-weight: 700;
  font-size: 14px;
}
.pdf-download:hover { border-color: var(--wp--preset--color--navy-500); }

/* Single publication page — one clear download CTA + metadata + related */
.publication-cta {
  margin-top: 8px;
}
.publication-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--wp--preset--color--gold-500);
  color: var(--wp--preset--color--navy-900);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.publication-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 151, 29, 0.3);
}
.publication-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  background: rgba(0, 23, 70, 0.12);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.publication-meta {
  margin-top: 14px !important;
  font-size: 13.5px !important;
  color: var(--wp--preset--color--ink-600) !important;
}
.publication-meta a {
  color: var(--wp--preset--color--navy-700);
  font-weight: 700;
  text-decoration: none;
}
.publication-meta a:hover { text-decoration: underline; }
.publication-related { margin-top: 32px; }

@media (max-width: 782px) {
  .site-header .wp-block-navigation .wp-block-navigation__container { display: none; }
  .site-header .wp-block-navigation.is-menu-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: flex;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open {
    background: #fff !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open a,
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    color: var(--wp--preset--color--navy-900) !important;
  }
  .site-header .wp-block-navigation__responsive-container-close svg,
  .site-header .wp-block-navigation__responsive-container-open svg {
    fill: currentColor;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    color: var(--wp--preset--color--navy-900) !important;
  }
  .topbar .wp-block-navigation { display: none; }
}

/* Our Leaders — three-tier profile tree */
.leaders-tree {
  padding-top: 48px;
}
.leader-tier-label {
  text-align: center;
  color: var(--wp--preset--color--navy-500) !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12.5px !important;
  margin: 0 0 16px 0 !important;
}
.leader-tier {
  display: flex;
  justify-content: center;
}
.leader-connector {
  width: 2px;
  height: 32px;
  background: var(--wp--preset--color--line);
  margin: 20px auto;
}
.leader-card {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 16px;
  padding: 24px 22px;
  width: 240px;
  text-decoration: none !important;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.leader-tier-1 .leader-card, .leader-tier-2 .leader-card {
  width: 280px;
  border-top: 4px solid var(--wp--preset--color--gold-500);
}
.leader-tier-2 .leader-card {
  border-top-color: var(--wp--preset--color--navy-500);
}
.leader-card-link:hover {
  box-shadow: 0 4px 14px rgba(0,23,70,0.10);
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--navy-500);
}
.leader-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px auto;
  border: 3px solid var(--wp--preset--color--navy-100);
  background: var(--wp--preset--color--navy-100);
}
.leader-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--navy-500);
}
.leader-photo-placeholder svg { width: 40px; height: 40px; }
.leader-name {
  font-weight: 800 !important;
  color: var(--wp--preset--color--navy-900) !important;
  margin: 0 0 4px 0 !important;
  font-size: 16px !important;
}
.leader-title {
  color: var(--wp--preset--color--ink-600) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.leader-card-vacant .leader-name { color: var(--wp--preset--color--ink-300) !important; font-style: italic; }
.leader-card-vacant .leader-photo-placeholder { color: var(--wp--preset--color--ink-300); }

/* Tier 3: a fixed 5-column grid keeps all five Deputy Secretaries on one
   row at desktop widths (deliberate — this is "the 3rd level"), stepping
   down to 3 then 1 column as the viewport narrows. The connecting stem
   above each card only shows at the 5-column breakpoint, since it points
   straight up to a shared bar that's only meaningful when every card is
   on the same row. */
.leader-tier-3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 16px;
  border-top: 2px solid var(--wp--preset--color--line);
  padding-top: 28px;
}
.leader-tier-3 .leader-card {
  position: relative;
  width: auto;
  padding: 20px 14px;
}
.leader-tier-3 .leader-card::before {
  content: "";
  display: none;
  position: absolute;
  top: -28px;
  left: 50%;
  width: 2px;
  height: 28px;
  background: var(--wp--preset--color--line);
  transform: translateX(-1px);
}
@media (min-width: 901px) {
  .leader-tier-3 .leader-card::before { display: block; }
}
@media (max-width: 900px) {
  .leader-tier-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .leader-tier-3 { grid-template-columns: 1fr; }
}

.leaders-footnote p { color: var(--wp--preset--color--ink-600) !important; }
.leaders-footnote a { color: var(--wp--preset--color--navy-700); font-weight: 700; text-decoration: none; }
.leaders-footnote a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .leader-card,
  .leader-tier-1 .leader-card,
  .leader-tier-2 .leader-card {
    width: 100%;
    max-width: 280px;
  }
}

/* Division services grid — highlights a division's real services in the
   page body instead of burying them in the sidebar. Card visual language
   matches .budget-archive-card. */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 !important;
}
.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 16px;
  padding: 20px;
  margin-top: 0 !important;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.service-card:hover {
  box-shadow: 0 10px 26px rgba(0, 23, 70, 0.10);
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--navy-500);
}
.service-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 14px 0 !important;
}
.service-card-title {
  font-size: 15px !important;
  margin: 0 0 6px 0 !important;
}
.service-card-title a {
  color: var(--wp--preset--color--navy-900);
  text-decoration: none;
}
.service-card:hover .service-card-title a {
  color: var(--wp--preset--color--gold-600);
}
.service-card-desc {
  font-size: 13.5px !important;
  color: var(--wp--preset--color--ink-600) !important;
  margin: 0 !important;
  line-height: 1.5;
}

/* FMIS Center Point cards are single, obvious actions. The visible core/button
   link is stretched across the card on the front end; the editor stylesheet
   intentionally omits that overlay so staff can still select inner blocks. */
.fmis-page-content .service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.fmis-page-content .service-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--wp--preset--color--navy-100);
  color: var(--wp--preset--color--navy-700);
}
.fmis-page-content .service-card-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.fmis-page-content .service-card .wp-block-buttons {
  margin-top: auto !important;
  padding-top: 18px;
}
.fmis-page-content .service-card .wp-block-button {
  margin: 0;
}
.fmis-page-content .service-card .wp-block-button__link {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
  padding: 11px 15px;
  text-decoration: none;
}
.fmis-page-content .service-card .wp-block-button__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.fmis-page-content .service-card:hover .wp-block-button__link {
  background: var(--wp--preset--color--navy-700);
}
.fmis-page-content .service-card:focus-within {
  outline: 3px solid var(--wp--preset--color--gold-600);
  outline-offset: 3px;
  border-color: var(--wp--preset--color--navy-700);
}

/* Registration workflow steps — a horizontal "what happens next" strip,
   used above a request form (e.g. FMIS registration) so the process is
   visible before someone commits to filling the form in. */
.reg-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reg-step {
  flex: 1 1 180px;
  position: relative;
  padding: 0 18px 0 0;
}
.reg-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(36px + 8px);
  right: 8px;
  height: 2px;
  background: var(--wp--preset--color--line);
}
.reg-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.reg-step-title {
  font-weight: 700 !important;
  color: var(--wp--preset--color--navy-900) !important;
  margin: 0 0 4px 0 !important;
  font-size: 14.5px !important;
}
.reg-step-desc {
  font-size: 13px !important;
  color: var(--wp--preset--color--ink-600) !important;
  margin: 0 !important;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .reg-steps { flex-direction: column; gap: 20px; }
  .reg-step:not(:last-child)::after { display: none; }
}

/* Fluent Forms — theme styling. The plugin's own default stylesheet isn't
   loaded, so forms render with no styling at all unless the theme styles
   them directly. Purely visual/layout — no field names, ids, validation
   rules or integrations are touched by this CSS. */
.frm-fluent-form .ff-el-group {
  margin-bottom: 20px;
}
.frm-fluent-form .ff-el-input--label label {
  display: inline-block;
  font-weight: 700;
  color: var(--wp--preset--color--navy-900);
  font-size: 14px;
  margin-bottom: 6px;
}
.frm-fluent-form .ff-el-is-required label::after {
  content: " *";
  color: var(--wp--preset--color--red-600);
}
.frm-fluent-form .ff-el-tooltip {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  color: var(--wp--preset--color--ink-300);
}
.frm-fluent-form .ff-el-form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--wp--preset--color--ink-900);
  background: #fff;
  transition: border-color .15s ease;
}
.frm-fluent-form .ff-el-form-control:focus {
  outline: none;
  border-color: var(--wp--preset--color--navy-500);
}
.frm-fluent-form .ff-el-form-control::placeholder {
  color: var(--wp--preset--color--ink-300);
}
/* Checkbox / radio groups render as a wrapped horizontal row of chips
   rather than one option per line — reads better for short option labels
   like Access Type, and scales down to wrap naturally on narrow screens. */
.frm-fluent-form .ff-el-input--content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.frm-fluent-form .ff-el-input--content:has(.ff-el-form-control) {
  display: block;
}
.frm-fluent-form .ff-el-form-check {
  margin: 0 !important;
}
.frm-fluent-form .ff-el-form-check-label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--ink-900);
  cursor: pointer;
  margin: 0 !important;
}
.frm-fluent-form .ff-el-form-check-input {
  width: 16px;
  height: 16px;
  accent-color: var(--wp--preset--color--navy-700);
  cursor: pointer;
}
.frm-fluent-form .ff_submit_btn_wrapper {
  margin-top: 8px;
}
.frm-fluent-form .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  background: var(--wp--preset--color--gold-500);
  color: var(--wp--preset--color--navy-900);
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease;
}
.frm-fluent-form .ff-btn-submit:hover {
  background: var(--wp--preset--color--gold-200);
}
