/*
Theme Name: VDEM
Theme URI: https://www.vaemergency.gov/
Author: Virginia Department of Emergency Management
Author URI: https://www.vaemergency.gov/
Description: Virginia Department of Emergency Management theme — ports the as-built static site (header, mega menu, pre-footer, full base styles) into WordPress.
Version: 1.2.15
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Public Domain
License URI: https://creativecommons.org/publicdomain/zero/1.0/
Text Domain: vdem
*/

/* =========================================================================
   1. base.css  — verbatim from html/static/styles/base.css
   ========================================================================= */

* { box-sizing: border-box; border-radius: 0 !important; }
html, body { margin: 0; padding: 0; }

/* Reserve scrollbar gutter so the horizontal layout doesn't shift when a
   page becomes long enough to need a scrollbar. */
html { scrollbar-gutter: stable; }

html, body { min-height: 100%; }
body {
  background: #fff; color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body > main,
body > .layout {
  flex: 1 0 auto;
  width: 100%;
}
body > .site-header,
body > .mega-menu,
body > .site-footer { width: 100%; }
body > .site-footer { flex: 0 0 auto; margin-top: auto; }
a { color: #0033cc; text-decoration: underline; }

a.a--external::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  vertical-align: -0.08em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path d='M36 24c-1.2 0-2 0.8-2 2v12c0 1.2-0.8 2-2 2h-22c-1.2 0-2-0.8-2-2v-22c0-1.2 0.8-2 2-2h12c1.2 0 2-0.8 2-2s-0.8-2-2-2h-12c-3.4 0-6 2.6-6 6v22c0 3.4 2.6 6 6 6h22c3.4 0 6-2.6 6-6v-12c0-1.2-0.8-2-2-2z'/><path d='M43.8 5.2c-0.2-0.4-0.6-0.8-1-1-0.2-0.2-0.6-0.2-0.8-0.2h-12c-1.2 0-2 0.8-2 2s0.8 2 2 2h7.2l-18.6 18.6c-0.8 0.8-0.8 2 0 2.8 0.4 0.4 0.8 0.6 1.4 0.6s1-0.2 1.4-0.6l18.6-18.6v7.2c0 1.2 0.8 2 2 2s2-0.8 2-2v-12c0-0.2 0-0.6-0.2-0.8z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path d='M36 24c-1.2 0-2 0.8-2 2v12c0 1.2-0.8 2-2 2h-22c-1.2 0-2-0.8-2-2v-22c0-1.2 0.8-2 2-2h12c1.2 0 2-0.8 2-2s-0.8-2-2-2h-12c-3.4 0-6 2.6-6 6v22c0 3.4 2.6 6 6 6h22c3.4 0 6-2.6 6-6v-12c0-1.2-0.8-2-2-2z'/><path d='M43.8 5.2c-0.2-0.4-0.6-0.8-1-1-0.2-0.2-0.6-0.2-0.8-0.2h-12c-1.2 0-2 0.8-2 2s0.8 2 2 2h7.2l-18.6 18.6c-0.8 0.8-0.8 2 0 2.8 0.4 0.4 0.8 0.6 1.4 0.6s1-0.2 1.4-0.6l18.6-18.6v7.2c0 1.2 0.8 2 2 2s2-0.8 2-2v-12c0-0.2 0-0.6-0.2-0.8z'/></svg>") no-repeat center / contain;
}
.wrap { max-width: 1300px; margin: 0 auto; padding: 16px 24px; }
main.wrap { padding: 24px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 24px 0 12px; }
p { margin: 10px 0; }

.site-header { border-bottom: 1px solid #000; background: #fff; position: relative; z-index: 101; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand a { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 900px) {
  .brand__logo { height: 36px; }
}
.primary-nav { display: flex; align-items: center; gap: 20px; }
.primary-nav .nav-link {
  color: #000; text-decoration: none; padding: 6px 2px;
  border: 0; background: none; font: inherit;
}
.primary-nav .nav-link:hover { color: #0033cc; text-decoration: underline; }
.menu-toggle {
  border: 1px solid #000; background: #fff; color: #000;
  padding: 8px 14px; font: inherit; cursor: pointer;
}
.menu-toggle:hover { background: #000; color: #fff; }
/* Hide the inline desktop nav links at the same breakpoint where the mobile
   menu takes over (see below) so we never show both at once. */
@media (max-width: 900px) {
  .primary-nav .nav-link { display: none; }
}
.menu-toggle .menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

/* Mega menu panel */
.mega-menu {
  display: none;
  border-bottom: 1px solid #000;
  background: #fff;
  position: relative;
  z-index: 100;
}
.mega-menu[aria-hidden="false"] { display: block; }
.mega-menu__wrap { max-width: 1300px; margin: 0 auto; padding: 24px; }
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
}
.mega-menu__col { min-width: 0; }
.mega-menu__heading {
  margin: 0 0 8px;
  font-size: 1.02em;
  border-bottom: 1px solid #000;
  padding-bottom: 6px;
}
.mega-menu__heading a { color: #000; text-decoration: none; font-weight: 700; }
.mega-menu__heading a:hover { color: #0033cc; text-decoration: underline; }
.mega-menu__links { list-style: none; margin: 0; padding: 0; }
.mega-menu__links li { padding: 4px 0; }
.mega-menu__links a { color: #000; text-decoration: none; display: block; padding: 2px 0; }
.mega-menu__links a:hover { color: #0033cc; text-decoration: underline; }

@media (max-width: 980px) {
  .mega-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mega-menu__grid { grid-template-columns: 1fr; }
}
section.block { margin: 24px 0; }
.block-hero { padding: 32px 0; border-bottom: 1px solid #000; }
.block-hero p { font-size: 1.1em; }
.block-cta { border: 1px solid #000; padding: 16px; }
.block-highlight { border-left: 4px solid #0033cc; padding: 12px 16px; background: #f6f8ff; }
.block-highlight.v-green { border-left-color: #0a0; background: #f2fff2; }
.block-highlight.v-yellow { border-left-color: #cc0; background: #fffef2; }
.block-highlight.v-orange { border-left-color: #f60; background: #fff7f0; }
.block-highlight.v-red { border-left-color: #c00; background: #fff2f2; }
.block-columns .cols { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 24px; }
.block-columns { --cols: 2; }
.block-cards .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.block-cards .card { border: 1px solid #000; padding: 12px; }
.block-accordion details { border: 1px solid #000; padding: 8px 12px; margin: 6px 0; }
.block-accordion summary { cursor: pointer; font-weight: 600; }
.block-content-list ul { padding-left: 20px; }
.block-social-links { display: flex; gap: 8px; flex-wrap: wrap; }

hr.section-break { border: 0; border-top: 1px solid #000; margin: 32px 0; }

.site-footer { border-top: 1px solid #000; margin-top: 48px; font-size: 0.9em; }

.layout {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 32px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px;
}
.layout > * { min-width: 0; }
.sidebar { border-right: 1px solid #000; padding-right: 16px; font-size: 0.95em; }
.sidebar .sb-parent { margin-bottom: 12px; }
.sidebar .sb-parent a { color: #000; text-decoration: none; }
.sidebar .sb-parent a:hover { text-decoration: underline; color: #0033cc; }
.sidebar .sb-self { font-weight: 700; padding: 6px 0; border-top: 1px solid #000; border-bottom: 1px solid #000; margin-bottom: 8px; }
.sidebar .sb-children { list-style: none; padding: 0; margin: 0; }
.sidebar .sb-children li { padding: 4px 0; }
.sidebar .sb-children a { color: #000; text-decoration: none; }
.sidebar .sb-children a:hover { text-decoration: underline; color: #0033cc; }
.content { min-width: 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid #000; padding: 0 0 16px 0; }
}

.block-banner {
  border-bottom: 1px solid #000;
  padding: 32px 0 16px;
  margin: 0 0 24px;
}
.block-banner h1 { margin: 0; font-size: 2.2em; line-height: 1.15; }
@media (max-width: 560px) { .block-banner h1 { font-size: 1.6em; } }

.block-contacts { margin: 16px 0 24px; }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-card {
  border: 1px solid #000;
  padding: 14px 16px;
  background: #fff;
}
.contact-card p { margin: 4px 0; }
.contact-card p:first-child { font-weight: 600; }
@media (max-width: 700px) { .contacts-grid { grid-template-columns: 1fr; } }

.block-fragment-inlined {
  border: 1px solid #000;
  padding: 16px 20px;
  margin: 24px 0;
  background: #fafafa;
}
.block-fragment-inlined section.block { margin: 12px 0; }
.block-fragment-inlined .block-hero { padding: 0; border: 0; }

/* -------- Homepage -------- */
.home-hero {
  background: #0033cc;
  color: #fff;
  padding: 64px 0;
  border-bottom: 1px solid #000;
  margin: -24px -24px 32px;
}
.home-hero__inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.home-hero h1 { margin: 0 0 12px; font-size: 2.6em; line-height: 1.1; color: #fff; }
.home-hero__tagline { font-size: 1.15em; max-width: 700px; margin: 0 0 24px; }
.home-hero__cta {
  display: inline-block; background: #fff; color: #0033cc;
  padding: 12px 20px; border: 1px solid #fff; font-weight: 700; text-decoration: none;
}
.home-hero__cta:hover { background: #000; color: #fff; border-color: #000; }
.home-hero a { color: #fff; }
@media (max-width: 560px) {
  .home-hero { padding: 40px 0; }
  .home-hero h1 { font-size: 1.8em; }
}

.home-section-head { margin: 0 0 16px; }
.home-section-head h2 { margin: 0 0 4px; font-size: 1.5em; }
.home-section-head p { margin: 0; color: #333; }

.home-top-resources { margin: 40px 0; }
.home-resource-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.home-resource {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; border: 1px solid #000; padding: 16px;
  color: #000; text-decoration: none; background: #fff; min-height: 72px;
}
.home-resource:hover { background: #000; color: #fff; }
.home-resource__label { font-weight: 600; line-height: 1.3; }
.home-resource__arrow { font-size: 1.2em; }
@media (max-width: 980px) { .home-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-resource-grid { grid-template-columns: 1fr; } }

.home-news-teaser { margin: 40px 0; }
.home-cta__link { color: #0033cc; text-decoration: underline; font-weight: 600; }

.home-cta-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; margin: 40px 0 24px;
}
.home-cta {
  border: 1px solid #000; padding: 20px 24px; background: #fff;
}
.home-cta h3 { margin: 0 0 8px; font-size: 1.2em; }
.home-cta p { margin: 8px 0; }
.home-cta section.block { margin: 8px 0; }
@media (max-width: 700px) { .home-cta-row { grid-template-columns: 1fr; } }

.sh-hero {
  background: #0033cc; color: #fff;
  padding: 36px 28px; margin: 0 0 28px;
  border: 1px solid #000;
}
.sh-hero h1 { margin: 0 0 8px; color: #fff; font-size: 2.0em; line-height: 1.15; }
.sh-hero__tagline { font-size: 1.1em; margin: 0; max-width: 640px; }
@media (max-width: 560px) {
  .sh-hero { padding: 28px 20px; }
  .sh-hero h1 { font-size: 1.6em; }
}

.sh-section { margin: 32px 0; }
.sh-section-head { margin: 0 0 12px; }
.sh-section-head h2 { margin: 0 0 4px; font-size: 1.35em; }
.sh-section-head p { margin: 0; color: #333; }

.sh-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.sh-step {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 12px; border: 1px solid #000; padding: 16px;
  color: #000; text-decoration: none; background: #fff; min-height: 120px;
}
.sh-step:hover { background: #000; color: #fff; }
.sh-step__num {
  display: inline-block; font-size: 0.85em; font-weight: 700;
  letter-spacing: 1px; color: #0033cc;
}
.sh-step:hover .sh-step__num { color: #fff; }
.sh-step__title { font-weight: 700; font-size: 1.1em; line-height: 1.2; }
.sh-step__arrow { font-size: 1.1em; align-self: flex-end; }
@media (max-width: 900px) { .sh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .sh-steps { grid-template-columns: 1fr; } }

.sh-audiences {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.sh-audience {
  display: block; border: 1px solid #000; background: #fff;
  color: #000; text-decoration: none; padding: 14px 16px; min-height: 88px;
}
.sh-audience:hover { background: #f6f8ff; }
.sh-audience__title { font-weight: 700; line-height: 1.2; }
.sh-audience__blurb { font-size: 0.92em; color: #333; margin-top: 6px; }
@media (max-width: 900px) { .sh-audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .sh-audiences { grid-template-columns: 1fr; } }

.sh-spotlight {
  border: 1px solid #000; padding: 20px 24px;
  background: #f6f8ff; border-left: 4px solid #0033cc;
}
.sh-spotlight h3 { margin: 0 0 6px; font-size: 1.15em; }
.sh-spotlight p { margin: 6px 0; }
a.sh-spotlight__cta {
  display: inline-block; background: #0033cc; color: #fff;
  padding: 8px 14px; text-decoration: none; font-weight: 600; margin-top: 4px;
}
a.sh-spotlight__cta:hover { background: #000; color: #fff; }

.sh-cta-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.sh-cta { border: 1px solid #000; padding: 18px 20px; background: #fff; }
.sh-cta h3 { margin: 0 0 6px; font-size: 1.1em; }
.sh-cta p { margin: 6px 0; }
.sh-cta__link { color: #0033cc; text-decoration: underline; font-weight: 600; }
@media (max-width: 700px) { .sh-cta-row { grid-template-columns: 1fr; } }

.sh-spotlight__cta {
  display: inline-block; background: #0033cc; color: #fff;
  padding: 8px 14px; text-decoration: none; font-weight: 600; margin-top: 4px;
}
.sh-spotlight__cta:hover { background: #000; }

.notices-panel {
  border: 1px solid #d7dcea; border-left: 4px solid #0033cc;
  background: #f6f8ff; padding: 12px 16px 14px; margin: 16px 0 20px;
}
.notices-panel__title {
  margin: 0 0 8px; font-size: 0.78em; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #0a2a66;
}
.notices-panel__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.notices-panel__grid.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notice {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fff; border: 1px solid #e2e8f0;
  padding: 8px 10px; font-size: 0.9em; line-height: 1.35;
}
.notice__tag {
  flex: 0 0 auto; align-self: flex-start;
  padding: 2px 6px; margin-top: 1px;
  font-size: 0.68em; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; background: #0033cc;
  white-space: nowrap; text-transform: uppercase;
}
.notice__tag--new       { background: #0a7a3b; }
.notice__tag--subscribe { background: #0033cc; }
.notice__tag--deadline  { background: #a8410f; }
.notice__body { margin: 0; min-width: 0; }
.notice__body a { font-weight: 600; }
@media (max-width: 980px) { .notices-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .notices-panel__grid,
  .notices-panel__grid.n-2 { grid-template-columns: 1fr; }
}

.block-table { margin: 16px 0 24px; }
.block-table table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.block-table th, .block-table td {
  border: 1px solid #ccc; padding: 4px 8px; text-align: left;
  vertical-align: top; font-weight: 400; font-style: normal;
}
.block-table th {
  background: #f2f2f2; font-weight: 600; border-color: #000; white-space: nowrap;
}
.block-table td em, .block-table td strong,
.block-table td b,  .block-table td i,
.block-table th em, .block-table th strong,
.block-table th b,  .block-table th i {
  font-weight: 400; font-style: normal;
}
.block-table td p, .block-table th p { margin: 0; }
.block-table tbody tr:nth-child(even) { background: #fafafa; }
.block-table tbody tr:hover { background: #f0f4ff; }

.cta-card {
  position: relative;
  padding: 30px 26px 26px;
  margin: 16px 0 24px;
  color: #fff;
  background: #0033cc;
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 110%, rgba(0, 0, 0, 0.25), transparent 50%),
    linear-gradient(180deg, #0033cc 0%, #001f7a 100%);
  border: 1px solid #000;
  overflow: hidden;
  display: block;
  max-width: 540px;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
  background-size: 14px 14px;
}
.cta-card__eyebrow {
  position: relative; margin: 0 0 8px;
  font-size: 0.78em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: #b9c4e3;
}
.cta-card__title {
  position: relative; margin: 0 0 12px;
  font-size: 1.45em; font-weight: 700; color: #fff; line-height: 1.2;
}
.cta-card__copy {
  position: relative; margin: 0 0 20px;
  font-size: 0.96em; line-height: 1.55; color: #dbe4f7;
}
.cta-card__btn {
  position: relative; display: inline-block;
  padding: 12px 18px; background: #fff; color: #0033cc !important;
  font-weight: 700; font-size: 0.98em;
  text-decoration: none; border: 1px solid #fff;
  transition: background 0.15s ease, color 0.15s ease;
}
.cta-card__btn:hover,
.cta-card__btn:focus {
  background: #f3f6fc; color: #001f7a !important;
}
.cta-card__btn::after { content: none !important; }

/* Sticky site chrome */
.site-chrome { position: sticky; top: 0; z-index: 200; background: #fff; }
.site-header { z-index: auto; }
.mega-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1;
}
.mega-menu[aria-hidden="false"] {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
body.mega-open .site-chrome { z-index: 300; }

figure.region-map { margin: 16px 0 24px; padding: 0; text-align: left; }
figure.region-map img {
  display: block; width: 100%; max-width: 720px; height: auto;
  border: 1px solid #d0d4dc; background: #fff;
}

/* =========================================================================
   2. Sidebar styling — from per-page <style id="sidebar-css">
   ========================================================================= */
nav.sidebar { font-size: 0.95em; }
.sb-section { margin: 0; }
.sb-title {
  margin: 0 0 10px; padding: 6px 0;
  font-size: 1em; font-weight: 700; color: #000;
  border-top: 1px solid #000; border-bottom: 1px solid #000;
}
.sb-title a.sb-title-link { color: #000; text-decoration: none; }
.sb-title a.sb-title-link:hover,
.sb-title a.sb-title-link:focus { text-decoration: underline; color: #0033cc; }
.sb-list { list-style: none; margin: 0; padding: 0; }
.sb-list--lvl1 { padding-left: 16px; margin: 2px 0; }
.sb-list--lvl2 { padding-left: 16px; margin: 2px 0; }
.sb-list--lvl3 { padding-left: 16px; margin: 2px 0; }
.sb-item { padding: 4px 0; line-height: 1.4; }
.sb-link { display: inline-block; color: #000; text-decoration: none; }
.sb-link:hover, .sb-link:focus { text-decoration: underline; color: #0033cc; }
.sb-link--header {
  color: #555; font-weight: 700; font-size: 0.85em;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: default; padding-top: 4px;
}
.sb-link--header:hover { text-decoration: none; color: #555; }
.sb-item.is-current > .sb-link { font-weight: 700; color: #000; text-decoration: none; }
.sb-item.is-current > .sb-link:hover { color: #0033cc; }

/* =========================================================================
   3. Mobile menu / mobile sidebar — from header.html inline styles
   ========================================================================= */
@media (max-width: 900px) {
  .mega-menu { display: none !important; }
  .vest-status-bar { font-size: 11.5px; }
  .vest-status-bar > div { padding: 4px 16px !important; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: #fff; flex-direction: column; overflow-y: auto;
}
.mobile-menu[aria-hidden="false"] { display: flex; }
.mobile-menu__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #000;
  min-height: 60px; background: #fff;
  position: sticky; top: 0; z-index: 1;
}
.mobile-menu__back,
.mobile-menu__close {
  border: 1px solid #000; background: #fff; color: #000;
  padding: 8px 14px; font: inherit; font-size: 1em; font-weight: 600;
  cursor: pointer; min-height: 40px; min-width: 44px;
}
.mobile-menu__back:hover,
.mobile-menu__close:hover { background: #000; color: #fff; }
.mobile-menu__back { visibility: hidden; }
.mobile-menu[data-view="divisions"] .mobile-menu__back { visibility: visible; }
.mobile-menu__nav { flex: 1; padding: 8px 16px 32px; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list[hidden] { display: none; }
.mobile-menu__list li { border-bottom: 1px solid #e3e6ec; }
.mobile-menu__list a,
.mobile-menu__category {
  display: block; width: 100%; text-align: left;
  padding: 18px 4px; font-size: 1.15em; font-weight: 600;
  color: #000; text-decoration: none;
  border: 0; background: none; cursor: pointer; font-family: inherit;
}
.mobile-menu__list a:hover,
.mobile-menu__list a:focus,
.mobile-menu__category:hover,
.mobile-menu__category:focus { color: #0033cc; outline: none; }
.mobile-menu__category {
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu__category::after {
  content: "›"; color: #999; font-size: 1.4em; font-weight: 400; margin-left: 8px;
}

.menu-toggle.menu-toggle--mobile { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: none; }
  .menu-toggle.menu-toggle--mobile { display: inline-flex; align-items: center; gap: 6px; }
}

@media (max-width: 900px) {
  nav.sidebar {
    border-right: none; padding-right: 0;
    border-bottom: 1px solid #000;
    margin-bottom: 16px; padding: 0 0 4px;
  }
  .sb-section .sb-title {
    cursor: pointer; user-select: none;
    margin: 0; padding: 16px 18px;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid #000; border-bottom: none;
  }
  /* On the collapsed mobile widget, swap the per-page title link for a
     generic "Section Navigation" label so it's obvious what the panel is. */
  .sb-section .sb-title .sb-title-link { display: none; }
  .sb-section .sb-title::before {
    content: "Section Navigation";
    font-weight: 700; font-size: 1em; color: #000;
  }
  .sb-section .sb-title::after {
    content: "▾"; color: #0033cc;
    font-size: 3.4em; line-height: 0.6;
    align-self: center;
    transition: transform 0.15s;
    /* Let the glyph overflow the text row vertically without forcing the
       title bar to grow taller than its text would. */
    margin-block: -0.4em;
  }
  .sb-section--open .sb-title::after { transform: rotate(180deg); }
  .sb-section .sb-list { display: none; padding-bottom: 8px; }
  .sb-section--open .sb-list { display: block; }
  .layout { display: block; }
}

/* =========================================================================
   4. Pre-footer — from config/components/pre-footer.html
   ========================================================================= */
.site-prefooter {
  position: relative; width: 100%; box-sizing: border-box;
  margin-top: 48px; padding: 48px 24px 32px;
  color: #e7ecf8; background-color: #0a1a3d;
  background-image:
    radial-gradient(ellipse at 12% -10%, rgba(59, 98, 255, 0.28), transparent 55%),
    radial-gradient(ellipse at 88% 110%, rgba(0, 51, 204, 0.22), transparent 50%),
    linear-gradient(180deg, #0a1a3d 0%, #06122a 100%);
  border-top: 4px solid #0033cc;
  overflow: hidden;
}
.site-prefooter::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px);
  background-size: 14px 14px; opacity: 0.7;
}
.site-prefooter__wrap { position: relative; max-width: 1300px; margin: 0 auto; }
.site-prefooter__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
}
@media (max-width: 960px) {
  .site-prefooter__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .site-prefooter__grid { grid-template-columns: 1fr; gap: 24px; }
}
.site-prefooter__brand {
  margin: 0 0 10px; font-size: 1.15em; font-weight: 700;
  letter-spacing: 0.01em; color: #ffffff; line-height: 1.25;
}
.site-prefooter__tagline {
  margin: 0 0 18px; font-size: 0.95em; line-height: 1.5;
  color: #b9c4e3; max-width: 38ch;
}
.site-prefooter h4 {
  margin: 0 0 14px; padding: 0 0 8px;
  font-size: 0.78em; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.site-prefooter ul { list-style: none; margin: 0; padding: 0; }
.site-prefooter li { margin: 0 0 8px; }
.site-prefooter a {
  color: #dbe4f7; text-decoration: none;
  font-size: 0.94em; line-height: 1.35;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-prefooter a:hover,
.site-prefooter a:focus {
  color: #ffffff; border-bottom-color: #7d98ff; outline: none;
}
.site-prefooter__social { display: flex; gap: 10px; margin-top: 4px; }
.site-prefooter__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%; background: transparent; color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.site-prefooter__social a:hover,
.site-prefooter__social a:focus {
  background: #0033cc; border-color: #0033cc;
  transform: translateY(-1px);
}
.site-prefooter__social svg { width: 18px; height: 18px; fill: currentColor; }
.site-prefooter__bar {
  position: relative; margin-top: 32px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #b9c4e3; font-size: 0.88em; line-height: 1.55;
}
.site-prefooter__bar p { margin: 0; }
.site-prefooter__bar a { color: #dbe4f7; }
.site-prefooter__bar a:hover,
.site-prefooter__bar a:focus { color: #ffffff; border-bottom-color: #7d98ff; }
.site-prefooter__sep { margin: 0 8px; color: rgba(255,255,255,0.35); }

/* =========================================================================
   5. Grant Opportunity meta panel + attachments — populated by the SCF
      field group registered in inc/grant-opportunity-fields.php
   ========================================================================= */

.grant-meta {
  border: 1px solid #000;
  background: #f6f8ff;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.grant-meta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 28px;
}
.grant-meta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.grant-meta__label {
  font-size: 0.74em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}
.grant-meta__value {
  font-size: 1em;
  color: #000;
  word-break: break-word;
}
.grant-meta__value--status {
  display: inline-block;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.06em;
  color: #fff;
  align-self: flex-start;
  background: #555;
}
.grant-meta__value--status-NOTICE { background: #a8410f; }
.grant-meta__value--status-OPEN   { background: #0a7a3b; }
.grant-meta__value--status-CLOSED { background: #555; }

.grant-attachments ul { margin: 0; padding: 0; list-style: none; }
.grant-attachments li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #d7dcea;
}
.grant-attachments li:last-child { border-bottom: 0; }
.grant-attachments li p { margin: 0; }
.grant-attachments li p:last-child a {
  display: inline-block;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #0033cc;
  color: #0033cc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92em;
}
.grant-attachments li p:last-child a:hover {
  background: #0033cc;
  color: #fff;
}

/* =========================================================================
   6. Grant Opportunities table — verbatim from the static
      html/divisions/finance/grants.html <style id="go-style"> block.
   ========================================================================= */

#grant-opportunities-app { margin: 16px 0 32px; }
#grant-opportunities-app .go-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 10px; padding: 10px 12px; border: 1px solid #000; background: #f6f8ff; }
#grant-opportunities-app .go-field { display: flex; flex-direction: column; font-size: 0.9em; }
#grant-opportunities-app .go-field label { font-weight: 600; margin-bottom: 2px; }
#grant-opportunities-app .go-field input, #grant-opportunities-app .go-field select { padding: 4px 6px; border: 1px solid #000; font: inherit; background: #fff; }
#grant-opportunities-app .go-reset { padding: 6px 10px; border: 1px solid #000; background: #fff; font: inherit; cursor: pointer; }
#grant-opportunities-app .go-reset:hover { background: #000; color: #fff; }
#grant-opportunities-app .go-count { margin-left: auto; font-size: 0.9em; color: #333; }
#grant-opportunities-app table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
#grant-opportunities-app th, #grant-opportunities-app td { border: 1px solid #ccc; padding: 4px 8px; text-align: left; vertical-align: top; font-weight: 400; font-style: normal; }
#grant-opportunities-app th { background: #f2f2f2; font-weight: 600; border-color: #000; cursor: pointer; user-select: none; white-space: nowrap; }
#grant-opportunities-app th:hover { background: #e6ebf9; }
#grant-opportunities-app td em, #grant-opportunities-app td strong, #grant-opportunities-app td b, #grant-opportunities-app td i { font-weight: 400; font-style: normal; }
#grant-opportunities-app tbody tr:nth-child(even) { background: #fafafa; }
#grant-opportunities-app tbody tr:hover { background: #f0f4ff; }
#grant-opportunities-app .go-col-title { min-width: 220px; }
#grant-opportunities-app .go-col-prog { white-space: nowrap; width: 120px; }
#grant-opportunities-app .go-col-fy { white-space: nowrap; width: 100px; }
#grant-opportunities-app .go-col-status { white-space: nowrap; width: 90px; }
#grant-opportunities-app .go-col-deadline { white-space: nowrap; width: 140px; }
#grant-opportunities-app .go-col-elig { color: #444; }
#grant-opportunities-app .go-sort-ind::before { content: " "; opacity: 0.4; }
#grant-opportunities-app th[aria-sort="ascending"] .go-sort-ind::before { content: " ▲"; opacity: 1; }
#grant-opportunities-app th[aria-sort="descending"] .go-sort-ind::before { content: " ▼"; opacity: 1; }
#grant-opportunities-app .go-tag { display: inline-block; padding: 1px 8px; border: 1px solid #000; border-radius: 999px; font-size: 0.85em; white-space: nowrap; background: #fff; }
#grant-opportunities-app .go-tag--preparedness { background: #e6f2ff; border-color: #0052a3; }
#grant-opportunities-app .go-tag--mitigation { background: #eaf7ea; border-color: #2e7d32; }
#grant-opportunities-app .go-tag--recovery { background: #fff3e0; border-color: #b34d00; }
#grant-opportunities-app .go-tag--other { background: #f5f5f5; border-color: #555; }
#grant-opportunities-app .go-pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 10px; font-size: 0.9em; }
#grant-opportunities-app .go-pager button { padding: 4px 10px; border: 1px solid #000; background: #fff; font: inherit; cursor: pointer; }
#grant-opportunities-app .go-pager button:disabled { color: #999; border-color: #999; cursor: default; }
#grant-opportunities-app .go-pager button[aria-current="page"] { background: #000; color: #fff; }
#grant-opportunities-app .go-pager button:hover:not(:disabled):not([aria-current="page"]) { background: #eee; }
#grant-opportunities-app .go-empty { padding: 16px; text-align: center; color: #666; }

/* =========================================================================
   7. Disaster Events table — verbatim from the static
      html/disaster-events.html <style id="vt-style"> block.
   ========================================================================= */

#disaster-events-app { margin: 16px 0 32px; }
#disaster-events-app .de-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 10px; padding: 10px 12px; border: 1px solid #000; background: #f6f8ff; }
#disaster-events-app .de-field { display: flex; flex-direction: column; font-size: 0.9em; }
#disaster-events-app .de-field label { font-weight: 600; margin-bottom: 2px; }
#disaster-events-app .de-field input, #disaster-events-app .de-field select { padding: 4px 6px; border: 1px solid #000; font: inherit; background: #fff; }
#disaster-events-app .de-count { margin-left: auto; font-size: 0.9em; color: #333; }
#disaster-events-app table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
#disaster-events-app th, #disaster-events-app td { border: 1px solid #ccc; padding: 4px 8px; text-align: left; vertical-align: top; font-weight: 400; font-style: normal; }
#disaster-events-app th { background: #f2f2f2; font-weight: 600; border-color: #000; cursor: pointer; user-select: none; white-space: nowrap; }
#disaster-events-app th:hover { background: #e6ebf9; }
#disaster-events-app tbody tr:nth-child(even) { background: #fafafa; }
#disaster-events-app tbody tr:hover { background: #f0f4ff; }
#disaster-events-app .de-col-date { white-space: nowrap; width: 90px; }
#disaster-events-app .de-col-dr { white-space: nowrap; width: 80px; text-align: center; }
#disaster-events-app .de-col-type { white-space: nowrap; width: 130px; }
#disaster-events-app .de-col-vest { white-space: nowrap; width: 70px; text-align: center; }
#disaster-events-app .de-col-link { width: 110px; }
#disaster-events-app .de-sort-ind::before { content: " "; opacity: 0.4; }
#disaster-events-app th[aria-sort="ascending"] .de-sort-ind::before { content: " ▲"; opacity: 1; }
#disaster-events-app th[aria-sort="descending"] .de-sort-ind::before { content: " ▼"; opacity: 1; }
#disaster-events-app .de-empty { padding: 16px; text-align: center; color: #666; }

/* =========================================================================
   8. Training Schedule table — verbatim from the static
      html/divisions/training/resources/training-schedule.html.
   ========================================================================= */

#training-schedule-app { margin: 16px 0 32px; }
#training-schedule-app .ts-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 10px; padding: 10px 12px; border: 1px solid #000; background: #f6f8ff; }
#training-schedule-app .ts-field { display: flex; flex-direction: column; font-size: 0.9em; }
#training-schedule-app .ts-field label { font-weight: 600; margin-bottom: 2px; }
#training-schedule-app .ts-field input { padding: 4px 6px; border: 1px solid #000; font: inherit; background: #fff; }
#training-schedule-app .ts-reset { padding: 6px 10px; border: 1px solid #000; background: #fff; font: inherit; cursor: pointer; }
#training-schedule-app .ts-reset:hover { background: #000; color: #fff; }
#training-schedule-app .ts-count { margin-left: auto; font-size: 0.9em; color: #333; }
#training-schedule-app table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
#training-schedule-app th, #training-schedule-app td { border: 1px solid #ccc; padding: 4px 8px; text-align: left; vertical-align: top; font-weight: 400; font-style: normal; }
#training-schedule-app th { background: #f2f2f2; font-weight: 600; border-color: #000; cursor: pointer; user-select: none; white-space: nowrap; }
#training-schedule-app th:hover { background: #e6ebf9; }
#training-schedule-app td em, #training-schedule-app td strong, #training-schedule-app td b, #training-schedule-app td i { font-weight: 400; font-style: normal; }
#training-schedule-app tbody tr:nth-child(even) { background: #fafafa; }
#training-schedule-app tbody tr:hover { background: #f0f4ff; }
#training-schedule-app .ts-col-date { white-space: nowrap; width: 150px; }
#training-schedule-app .ts-col-time { white-space: nowrap; width: 110px; }
#training-schedule-app .ts-col-loc { width: 160px; }
#training-schedule-app .ts-col-notes { color: #444; }
#training-schedule-app .ts-sort-ind::before { content: " "; opacity: 0.4; }
#training-schedule-app th[aria-sort="ascending"] .ts-sort-ind::before { content: " ▲"; opacity: 1; }
#training-schedule-app th[aria-sort="descending"] .ts-sort-ind::before { content: " ▼"; opacity: 1; }
#training-schedule-app .ts-pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 10px; font-size: 0.9em; }
#training-schedule-app .ts-pager button { padding: 4px 10px; border: 1px solid #000; background: #fff; font: inherit; cursor: pointer; }
#training-schedule-app .ts-pager button:disabled { color: #999; border-color: #999; cursor: default; }
#training-schedule-app .ts-pager button[aria-current="page"] { background: #000; color: #fff; }
#training-schedule-app .ts-pager button:hover:not(:disabled):not([aria-current="page"]) { background: #eee; }
#training-schedule-app .ts-empty { padding: 16px; text-align: center; color: #666; }

/* =========================================================================
   9. News index (home.php / Posts page) — ported from html/news.html
   ========================================================================= */

.news-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 20px; }
.news-featured { border: 1px solid #000; border-left: 6px solid #0033cc; background: #f6f8ff; padding: 18px 20px 20px; margin: 0 0 28px; }
.news-featured__date { margin: 0 0 10px; color: #333; font-size: 0.92em; }
.news-featured__excerpt { margin: 0 0 12px; color: #000; font-size: 1em; line-height: 1.5; }
.news-featured__label { margin: 0 0 6px; font-size: 0.78em; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #0033cc; }
.news-featured__title { margin: 0 0 6px; font-size: 1.35em; line-height: 1.25; }
.news-featured__title a { color: #0033cc; text-decoration: underline; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #000; }
.news-list__item { padding: 22px 4px; border-bottom: 1px solid #000; }
.news-list__title { display: block; color: #0033cc; text-decoration: none; font-size: 1.32em; line-height: 1.28; font-weight: 600; }
.news-list__title:hover, .news-list__title:focus { text-decoration: underline; color: #001f7a; }
.news-list__date { margin-top: 6px; color: #555; font-size: 0.92em; }
/* Back-compat for the old inline layout — kept in case any imported markup still uses it. */
.news-list li { padding: 14px 4px; border-bottom: 1px solid #000; }
.news-list li .d { color: #333; font-size: 0.9em; white-space: nowrap; }
.news-list li > a { color: #0033cc; text-decoration: underline; }
.news-pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 20px 0 0; }
.news-pager .info { margin-left: 8px; color: #333; font-size: 0.9em; }
.news-pager button { border: 1px solid #000; background: #fff; color: #000; padding: 6px 10px; cursor: pointer; font: inherit; }
.news-pager button.active { background: #000; color: #fff; }
.news-pager button[disabled] { opacity: 0.4; cursor: default; }
a.news-featured__cta { display: inline-block; background: #0033cc; color: #fff; padding: 8px 14px; text-decoration: none; font-weight: 600; }
a.news-featured__cta:hover { background: #000; color: #fff; }
.news .empty, #news-empty { color: #666; font-style: italic; padding: 16px 0; }

/* =========================================================================
  10. Sitemap tree ([vdem_sitemap] / template-sitemap.php) — from html/sitemap.html
   ========================================================================= */

main.content.sitemap { min-width: 0; max-width: 960px; }
.sm-intro { color: #333; margin: 0 0 20px; }
.sm-controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 0 0 20px;
}
#sm-search {
  flex: 1 1 260px; min-width: 220px; padding: 10px 12px;
  border: 1px solid #000; background: #fff; color: #000; font: inherit;
}
.sm-actions button {
  border: 1px solid #000; background: #fff; color: #000; padding: 8px 12px;
  cursor: pointer; font: inherit;
}
.sm-actions button:hover { background: #000; color: #fff; }

.sm-list { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px dashed #d0d4dc; }
.sm-list > li { padding: 2px 0; }
.sm-page a {
  color: #0033cc; text-decoration: none; border-bottom: 1px solid transparent;
  line-height: 1.5;
}
.sm-page a:hover, .sm-page a:focus { border-bottom-color: #0033cc; }

.sm-dir { margin-top: 6px; }
.sm-dir-head {
  font-weight: 700; color: #111; padding: 4px 0 2px;
  border-bottom: 1px solid #e3e6ec; margin-bottom: 6px;
}
.sm-dir-label { font-weight: 700; color: #111; }
.sm-count { color: #666; font-weight: 400; font-size: 0.9em; margin-left: 6px; }

.sm-details > summary {
  list-style: none; cursor: pointer; padding: 6px 8px; margin: 4px 0;
  background: #f3f6fc; border: 1px solid #d9def0; border-left: 4px solid #0033cc;
  font-weight: 700; color: #111;
  display: flex; align-items: baseline; gap: 6px;
}
.sm-details > summary::-webkit-details-marker { display: none; }
.sm-details > summary::before {
  content: "▶"; color: #0033cc; font-size: 0.7em;
  transition: transform 0.15s;
  display: inline-block;
}
.sm-details[open] > summary::before { transform: rotate(90deg); }
.sm-details > summary:hover { background: #e7edf9; }

/* Top-level directory blocks — give them a bit of breathing room */
main.content.sitemap > .sm-list > .sm-dir {
  margin: 20px 0 0;
  padding: 0;
}
main.content.sitemap > .sm-list { padding-left: 0; border-left: none; }
main.content.sitemap > .sm-list > .sm-dir > .sm-dir-head {
  font-size: 1.1em; padding: 8px 10px;
  background: #e8ecf5; border: 1px solid #c9d1e4; border-left: 4px solid #0033cc;
}

.sm-empty { color: #666; font-style: italic; padding: 24px; text-align: center; }
.sm-hit .sm-dir-label { background: #fff3a8; }
.sm-hit a { background: #fff3a8; }

/* =========================================================================
   11. Home page — News & Updates, Hiring, and Stay-Informed (signup)
       Ported from html/index.html's per-page <style data-page-custom>.
       (Hero, top-resources, resource-grid and section-head live in the
       base.css section above; these are the current home redesign's
       additions.)
   ========================================================================= */

.home-hero a.home-hero__cta { display: inline-block; background: #fff; color: #0033cc; padding: 12px 20px; border: 1px solid #fff; font-weight: 700; text-decoration: none; }
.home-hero a.home-hero__cta:hover { background: #000; color: #fff; border-color: #000; }

/* VDEM is hiring */
.home-hiring { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #000; border-left: 4px solid #0033cc; background: #f6f8ff; padding: 20px 24px; margin: 40px 0; }
.home-hiring__cta { display: inline-block; background: #0033cc; color: #fff; padding: 10px 18px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.home-hiring__cta:hover { background: #000; color: #fff; }
.home-hiring__text h2 { margin: 0 0 4px; font-size: 1.3em; }
.home-hiring__text p { margin: 0; color: #333; }
@media (max-width: 560px) {
  .home-hiring { flex-direction: column; align-items: flex-start; }
}

/* News & Updates + Email signup row */
.home-news-block {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  margin: 48px 0 24px;
}
@media (max-width: 880px) {
  .home-news-block { grid-template-columns: 1fr; gap: 28px; }
}

.home-news-block__feed { min-width: 0; }
.home-news-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 2px solid #000;
}
.home-news-item { padding: 18px 0; border-bottom: 1px solid #d0d4dc; }
.home-news-item:last-child { border-bottom: none; }
.home-news-item__date {
  display: block; font-size: 0.78em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #555; margin-bottom: 6px;
}
.home-news-item__title { margin: 0 0 8px; font-size: 1.08em; font-weight: 700; line-height: 1.3; }
.home-news-item__title a { color: #0033cc; text-decoration: none; }
.home-news-item__title a:hover, .home-news-item__title a:focus {
  text-decoration: underline; text-underline-offset: 3px;
}
.home-news-item__excerpt { margin: 0; font-size: 0.95em; color: #444; line-height: 1.55; }
.home-news-more { margin: 22px 0 0; }
.home-news-more a {
  display: inline-block; color: #0033cc; text-decoration: none;
  font-weight: 700; border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.home-news-more a:hover, .home-news-more a:focus { border-bottom-color: #0033cc; }

/* Email signup card (Stay informed) */
.home-signup { display: flex; }
.home-signup__card {
  position: relative; width: 100%;
  padding: 30px 26px 24px;
  color: #fff;
  background: #0033cc;
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 110%, rgba(0, 0, 0, 0.25), transparent 50%),
    linear-gradient(180deg, #0033cc 0%, #001f7a 100%);
  border: 1px solid #000; overflow: hidden;
  display: flex; flex-direction: column;
}
.home-signup__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
  background-size: 14px 14px;
}
.home-signup__eyebrow {
  position: relative; margin: 0 0 8px;
  font-size: 0.78em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #b9c4e3;
}
.home-signup__title {
  position: relative; margin: 0 0 12px;
  font-size: 1.6em; font-weight: 700; color: #fff; line-height: 1.2;
}
.home-signup__copy {
  position: relative; margin: 0 0 20px;
  font-size: 0.96em; line-height: 1.55; color: #dbe4f7;
}
.home-signup__btn {
  position: relative; display: inline-block; align-self: flex-start;
  padding: 12px 18px;
  background: #fff; color: #0033cc !important;
  font-weight: 700; font-size: 0.98em; text-decoration: none;
  border: 1px solid #fff;
  transition: background 0.15s ease, color 0.15s ease;
}
.home-signup__btn:hover, .home-signup__btn:focus {
  background: #f3f6fc; color: #001f7a !important;
}
.home-signup__btn::after { content: none !important; }
.home-signup__hint { position: relative; margin: 14px 0 0; font-size: 0.82em; color: #b9c4e3; }

/* =========================================================================
   Single post (news release) — centered, sidebar-less briefing layout.
   Triggered by single.php; uses theme fonts/colors.
   ========================================================================= */

.post-page {
  width: 100%;
  padding: 40px 16px 56px;
}
.post-page__article { max-width: 760px; margin: 0 auto; }
.post-page__header { text-align: center; margin: 0 0 36px; }
.post-page__breadcrumb {
  margin: 0 0 24px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0033cc;
}
.post-page__breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.post-page__breadcrumb a:hover,
.post-page__breadcrumb a:focus { text-decoration: underline; color: #001f7a; }
.post-page__breadcrumb-icon {
  width: 13px;
  height: 13px;
  display: inline-block;
  color: currentColor;
}
.post-page__title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.18;
  font-weight: 700;
  color: #000;
}
.post-page__date { margin: 0; color: #555; font-size: 0.95em; }
.post-page__content { text-align: left; font-size: 1.04rem; line-height: 1.7; color: #000; }
.post-page__content > * { max-width: 100%; }
.post-page__content p { margin: 0 0 1.15em; }
.post-page__content h2 { margin: 1.6em 0 0.5em; font-size: 1.45em; line-height: 1.25; }
.post-page__content h3 { margin: 1.4em 0 0.4em; font-size: 1.2em; line-height: 1.3; }
.post-page__content ul,
.post-page__content ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.post-page__content li { margin: 0.25em 0; }
.post-page__content blockquote {
  margin: 1.2em 0;
  padding: 0.4em 1em;
  border-left: 3px solid #0033cc;
  color: #333;
}
.post-page__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

@media (max-width: 720px) {
  .post-page { padding: 28px 16px 44px; }
  .post-page__header { margin-bottom: 26px; }
  .post-page__breadcrumb { margin-bottom: 18px; }
}

/* =========================================================================
   News index (home.php) — centered, sidebar-less briefing layout.
   Shares the .post-page reading column width; titles in the list are
   bumped vs the old inline-date variant.
   ========================================================================= */

.news-page { width: 100%; padding: 40px 16px 56px; max-width: 760px; margin: 0 auto; }
.news-page__header { text-align: center; margin: 0 0 36px; }
.news-page__title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
  color: #000;
}
.news-page .news-featured { margin-bottom: 32px; }

@media (max-width: 720px) {
  .news-page { padding: 28px 16px 44px; }
  .news-page__header { margin-bottom: 24px; }
  .news-list__title { font-size: 1.2em; }
}

