:root {
  --bg: #ffffff;
  --bg-subtle: #f4f7fb;
  --text: #10243e;
  --text-light: #445a74;
  --border: #d9e3ef;
  --accent: #0f4c81;
  --accent-light: #1e669f;
  --warning: #c62828;
  --shadow: 0 4px 16px rgba(11, 45, 79, 0.08);
  --radius: 8px;
  --container: min(1200px, calc(100vw - 48px));
}

html[data-theme="dark"] {
  --bg: #0f0f0f;
  --bg-subtle: #1a1a1a;
  --text: #e5e5e5;
  --text-light: #a0a0a0;
  --border: #2a2a2a;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --warning: #ef4444;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: var(--accent);
  text-decoration: none;
  padding: 2px;
  margin: -2px;
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1rem 0;
  color: var(--text-light);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid #d7af38;
  background: linear-gradient(90deg, #0b2d4f 0%, #124e84 100%);
  box-shadow: 0 6px 16px rgba(2, 17, 32, 0.2);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0 0.55rem;
  overflow: visible;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.header-logo img {
  width: auto;
  height: 68px;
  max-width: min(240px, 34vw);
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  flex: 1;
}

.site-nav a {
  padding: 0.42rem 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  transition: all 180ms ease;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: #0b2d4f;
  background: #f5d77b;
  border-color: #f5d77b;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  appearance: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-family: inherit;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.nav-dropdown.active .nav-dropdown-toggle,
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: #0b2d4f;
  background: #f5d77b;
  border-color: #f5d77b;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: none;
  gap: 0.15rem;
  z-index: 25;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  color: var(--text-light);
  background: transparent;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--accent);
  background: var(--bg-subtle);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0.5rem;
  color: #ffffff;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 700;
}

.theme-toggle {
  position: relative;
  width: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  cursor: pointer;
  color: #ffffff;
  transition: all 200ms ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  position: relative;
}

html[data-theme="dark"] .theme-icon {
  background: #ffffff;
}

html[data-theme="light"] .theme-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #124e84;
  top: -1px;
  left: 5px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nav-cta {
  background: #c62828;
  color: white;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: background 200ms ease;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-cta:hover {
  background: #a61f1f;
  color: white;
}

/* Hero section */
.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(3, 14, 29, 0.78) 0%,
    rgba(11, 45, 79, 0.7) 40%,
    rgba(14, 61, 110, 0.58) 65%,
    rgba(11, 45, 79, 0.78) 100%
  );
  z-index: 1;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.page-hero-content > div {
  max-width: 820px;
}

.page-hero .eyebrow {
  color: #f5d77b;
}

h1 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section.alt-surface {
  background: var(--bg-subtle);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--accent-light);
}

.tag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #ffffff 65%);
  background: color-mix(in srgb, var(--accent) 12%, #ffffff 88%);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 180ms ease;
}

.tag-button:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

button.tag-button {
  font-family: inherit;
  cursor: pointer;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.share-button {
  background: color-mix(in srgb, var(--accent) 8%, #ffffff 92%);
}

.article-actions .share-button,
.article-actions .calendar-menu > summary.tag-button {
  width: 1.28rem;
  height: 1.28rem;
  padding: 0;
  min-height: 1.28rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-light);
  text-transform: none;
  font-size: 0;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.article-actions .share-button::before,
.article-actions .calendar-menu > summary.tag-button::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
}

.article-actions .share-button::before {
  width: 0.72rem;
  height: 0.62rem;
  background:
    radial-gradient(circle at 14% 84%, currentColor 2px, transparent 2.4px),
    radial-gradient(circle at 86% 50%, currentColor 2px, transparent 2.4px),
    radial-gradient(circle at 14% 16%, currentColor 2px, transparent 2.4px),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    54% 1.5px,
    54% 1.5px;
  background-position:
    center,
    center,
    center,
    34% 30%,
    34% 70%;
  background-repeat: no-repeat;
}

.article-actions .calendar-menu > summary.tag-button::before {
  width: 0.58rem;
  height: 0.5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: inset 0 2px 0 0 currentColor;
}

.article-actions .share-button:hover,
.article-actions .calendar-menu > summary.tag-button:hover,
.article-actions .calendar-menu[open] > summary.tag-button {
  background: color-mix(in srgb, var(--accent) 9%, #ffffff 91%);
  border-color: transparent;
  color: var(--accent);
  opacity: 1;
}

.calendar-menu {
  position: relative;
}

.calendar-menu summary {
  list-style: none;
}

.calendar-menu summary::-webkit-details-marker {
  display: none;
}

.calendar-menu-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 210px;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(12, 34, 58, 0.18);
  display: grid;
  gap: 0.25rem;
  z-index: 20;
}

.calendar-menu-list a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem;
}

.calendar-menu-list a:hover {
  background: var(--bg-subtle);
  color: var(--accent);
}

.share-chooser {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.share-chooser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 35, 0.38);
}

.share-chooser-dialog {
  position: relative;
  width: min(420px, calc(100vw - 2rem));
  margin: 12vh auto 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 18px 44px rgba(10, 30, 55, 0.2);
  display: grid;
  gap: 0.9rem;
}

.share-chooser-dialog h3 {
  margin: 0;
  font-size: 1rem;
}

.share-chooser-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.share-chooser-actions .button-secondary,
.share-chooser-actions .button-secondary:visited {
  text-align: center;
}

.section-body {
  max-width: none;
  width: 100%;
}

.page-feature-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.listing-toolbar label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.listing-toolbar select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  background: #ffffff;
  color: var(--text);
}

.listing-detail-card {
  margin-top: 1.5rem;
}

.emergency-board {
  margin-top: 1.4rem;
  background: transparent;
  border-radius: var(--radius);
  border: 0;
  overflow: hidden;
}

.emergency-board-title {
  margin: 0;
  padding: 0.8rem 1rem;
  background: #bf1b22;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
}

.emergency-grid {
  margin-top: 0;
  padding: 0;
  gap: 1rem;
}

.emergency-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
  min-height: 100%;
  border-color: #d0d6e2;
}

.emergency-card-media {
  width: 66px;
  height: 66px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
}

.emergency-card-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.emergency-card-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.emergency-card-logo-placeholder {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff 88%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.emergency-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.04rem;
  color: #162d63;
}

.emergency-card-number {
  display: block;
  margin-bottom: 0.2rem;
  color: #0a2766;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}

.emergency-card p {
  margin: 0.15rem 0 0;
  color: var(--text-light);
  font-size: 0.86rem;
}

.area-card-doc {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.area-card-embed {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f6f7f9;
}

.area-card-single {
  width: 100%;
}

.area-card-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.area-card-embed-full {
  min-height: 78vh;
}

.area-card-missing {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form-panel {
  max-width: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-form-panel h2 {
  margin-top: 0;
}

.public-contact-form {
  display: grid;
  gap: 1rem;
}

.public-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.public-contact-form label span {
  font-weight: 600;
  font-size: 0.9rem;
}

.donation-card {
  margin-top: 1.4rem;
}

.donation-meta dt {
  min-width: 140px;
}

.donation-meta dd {
  font-weight: 700;
  color: #0a2766;
}

.why-join-accordion {
  display: grid;
  gap: 0.9rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
}

.accordion-item[open] summary::after {
  content: "-";
}

.accordion-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.accordion-content {
  padding: 1rem 1.2rem 1.2rem;
}

.accordion-content p {
  margin: 0 0 0.8rem;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

/* Layouts */
.two-column-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.content-main {
  max-width: none;
  width: 100%;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.booking-info-card h2,
.booking-calendar-card h2 {
  margin-top: 0;
}

.booking-info-block + .booking-info-block {
  margin-top: 1rem;
}

.booking-info-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.booking-info-block p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.5;
}

.booking-note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #dbe6f3;
  background: #f8fbff;
  color: #33506d;
  font-size: 0.92rem;
}

.booking-form {
  display: grid;
  gap: 1rem;
}

.booking-calendar {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  background: var(--bg-subtle);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.calendar-nav {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}

.calendar-empty {
  min-height: 34px;
}

.calendar-day {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  min-height: 34px;
  cursor: pointer;
  color: var(--text);
}

.calendar-day.active,
.calendar-day:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-day:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.selected-slot {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid #dbe6f3;
  color: #33506d;
  font-size: 0.9rem;
}

.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.timeslot-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  min-height: 36px;
  cursor: pointer;
  font-size: 0.85rem;
}

.timeslot-btn.active,
.timeslot-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.timeslot-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.timeslot-btn.taken {
  background: #f4f6f8;
  border-color: #d2d9e2;
  color: #6d7d92;
}

.left-menu {
  display: none;
}

.left-menu-group + .left-menu-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.left-menu-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin: 0 0 0.5rem;
}

.left-menu-group nav {
  display: grid;
  gap: 0.2rem;
}

.left-menu-link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.94rem;
}

.left-menu-link:hover,
.left-menu-link.active {
  background: var(--bg-subtle);
  color: var(--accent);
}

.footer-grid,
.timeline-grid,
.detail-grid {
  display: grid;
  gap: 2rem;
}

.footer-grid {
  grid-template-columns: repeat(2, 1fr);
}

.timeline-grid {
  grid-template-columns: repeat(3, 1fr);
}

.detail-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.four-up {
  grid-template-columns: repeat(4, 1fr);
}

.content-card,
.mini-card,
.timeline-card,
.floating-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 200ms ease;
  box-shadow: var(--shadow);
}

.content-card:hover,
.mini-card:hover,
.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
}

.timeline-date {
  padding-right: 1.5rem;
  border-right: 1px solid var(--border);
}

.timeline-date strong {
  display: block;
  font-size: 1.2rem;
}

.timeline-date span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}

.compact-cards .mini-card {
  padding: 1rem;
}

.quick-link-card {
  border-top: 3px solid #d7af38;
}

.home-welcome-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
  align-items: start;
}

.home-banner {
  padding: 1.25rem 0 0.75rem;
  background: #f4f7fb;
}

.home-banner-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-banner-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.home-info-card {
  border-top: 3px solid #d7af38;
}

.sector-overview-list {
  display: grid;
  gap: 1rem;
}

.sector-overview-card {
  padding: 1.25rem;
}

.sector-overview-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.sector-overview-head h3 {
  margin: 0;
}

.sector-overview-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.sector-overview-meta div {
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-subtle);
}

.sector-overview-meta strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.sector-overview-meta span {
  color: var(--text);
}

.home-emergency-card strong {
  display: block;
  color: #c62828;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.home-call-centers {
  background: #0b2d4f;
  color: #ffffff;
  border-top: 3px solid #d7af38;
  border-bottom: 3px solid #d7af38;
}

.home-call-centers h2 {
  margin-top: 0;
  color: #f5d77b;
}

.home-call-centers p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.95);
}

/* Home hero banner */
.home-hero {
  width: 100%;
  min-height: 360px;
  background-image:
    linear-gradient(
      160deg,
      rgba(3, 14, 29, 0.78) 0%,
      rgba(11, 45, 79, 0.7) 40%,
      rgba(14, 61, 110, 0.58) 65%,
      rgba(11, 45, 79, 0.78) 100%
    ),
    url("../images/bannerexample.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.home-hero-logo {
  width: min(420px, 70vw);
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.42));
}

/* Home welcome section */
.home-welcome-section {
  text-align: center;
}

.home-welcome-section .container {
  max-width: 860px;
}

.home-welcome-intro {
  font-size: 1.15rem;
  color: var(--text-light);
  margin: 0 0 0.2rem;
}

.home-welcome-title {
  color: var(--text);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.home-welcome-body {
  text-align: left;
}

/* Home sector cards */
.home-sectors-section {
  padding: 2rem 0 2.5rem;
}

.home-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-sector-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0d3a6b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.06);
  transition: all 200ms ease;
}

.home-sector-card:hover {
  background: #124e84;
  border-color: #d7af38;
  color: white;
}

.home-sector-badge {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #d7af38;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f5d77b;
  letter-spacing: 0.02em;
}

.home-sector-info strong {
  display: block;
  color: #f5d77b;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.home-sector-info span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

/* Home CTA strip */
.home-cta-section {
  background: linear-gradient(90deg, #0b2d4f 0%, #124e84 100%);
  border-top: 3px solid #d7af38;
  border-bottom: 3px solid #d7af38;
  padding: 3rem 0;
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-cta-heading {
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.home-cta-sub {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 1rem;
}

.home-cta-btn {
  flex-shrink: 0;
  display: inline-block;
  background: #d7af38;
  color: #0b2d4f;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms ease;
}

.home-cta-btn:hover {
  background: #f5d77b;
  color: #0b2d4f;
}

/* Home leadership */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.leadership-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
}

.leadership-card h3 {
  font-size: 1.02rem;
  margin: 0 0 0.9rem;
}

.leadership-image {
  width: min(180px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #eaf1fb 0%, #dbe7f7 100%);
  color: #546d8a;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leadership-image-photo {
  width: min(180px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}

.leadership-name {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

/* Footer nav links */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

.footer-nav a:hover {
  color: #f5d77b;
}

/* Newsletter */
.newsletter-section {
  padding: 2rem 0;
}

.newsletter-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-panel h2 {
  margin-top: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form label span {
  font-weight: 500;
  font-size: 0.9rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.button-primary,
.button-secondary,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  min-height: 44px;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-light);
}

.button-secondary {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--border);
}

.button-danger {
  background: transparent;
  border: 1px solid var(--warning);
  color: var(--warning);
}

.button-danger:hover {
  background: rgba(220, 38, 38, 0.1);
}

/* Forms */
.admin-form {
  display: grid;
  gap: 1.5rem;
}

.admin-form.two-column {
  grid-template-columns: repeat(2, 1fr);
}

.single-column {
  grid-template-columns: 1fr;
}

.span-2 {
  grid-column: 1 / -1;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-form label span {
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-form-intro {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #dbe6f3;
  background: #f8fbff;
  border-radius: 10px;
  color: #33506d;
  font-size: 0.92rem;
}

.admin-collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.admin-collection-toolbar p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.admin-collection-toolbar .listing-toolbar {
  margin: 0;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-collection-toolbar > .listing-toolbar > .button-secondary {
  font-weight: 700;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border) 70%);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-subtle) 90%);
}

.admin-collection-toolbar > .listing-toolbar > .button-secondary:hover {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-subtle) 84%);
}

.admin-collection-toolbar .listing-toolbar form.listing-toolbar {
  margin: 0;
}

.admin-panel + .admin-panel {
  margin-top: 1.25rem;
}

.field-help {
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 0.25rem;
}

.quill-editor {
  border: 1px solid #d8dee7;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.quill-editor .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 8px;
}

.quill-editor .ql-container.ql-snow {
  border: 0;
  font-size: 0.95rem;
}

.quill-editor .ql-editor {
  line-height: 1.5;
}

.quill-editor.compact .ql-editor {
  min-height: 160px !important;
}

.quill-editor .ql-editor p {
  margin: 0 0 0.65rem;
}

.admin-form-sections {
  display: grid;
  gap: 1rem;
}

.admin-form-section {
  background: #f8fafc;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  padding: 1rem;
}

.admin-form-section-header {
  margin-bottom: 0.8rem;
}

.admin-form-section-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--heading);
}

.admin-form-section-header p {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--text-light);
}

.admin-form-section-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-section-grid label {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.8rem;
}

.admin-form-section-grid .span-2 {
  grid-column: 1 / -1;
}

.settings-form {
  gap: 1.25rem;
}

.settings-group {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.2rem;
}

.settings-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.settings-group h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--heading);
}

.settings-group p {
  margin: 0 0 0.9rem;
  color: var(--text-light);
  font-size: 0.88rem;
}

.settings-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}

.settings-group-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-group-grid label {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
}

.settings-group-grid .span-2 {
  grid-column: 1 / -1;
}

.settings-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.settings-savebar p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

input,
textarea,
select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  min-height: 44px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-success,
.form-error {
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.form-error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--warning);
}

/* Footer */
.site-footer {
  background: #0b2d4f;
  border-top: 3px solid #d7af38;
  margin-top: auto;
}

.site-footer > .container {
  padding: 2rem 0;
}

.footer-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-credit {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-credit a {
  color: #f5d77b;
  text-decoration: none;
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.site-footer h3 {
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.site-footer h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #f5d77b;
}

.site-footer p,
.site-footer a,
.site-footer li,
.site-footer small,
.site-footer span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
}

.site-footer h3 {
  font-size: 1rem;
}

.site-footer h4 {
  font-size: 0.9rem;
}

/* Admin */
.admin-body {
  background: var(--bg);
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  min-height: 100vh;
  padding: 2rem;
  overflow-x: hidden;
}

.admin-sidebar {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  align-self: start;
  position: sticky;
  top: 2rem;
}

.admin-sidebar .brand {
  color: var(--text);
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.admin-sidebar .brand:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border) 72%);
}

.admin-sidebar .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

.admin-sidebar .brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.15;
}

.admin-sidebar .brand strong {
  color: var(--text);
  font-size: 0.96rem;
}

.admin-sidebar .brand small {
  color: var(--text-light);
  font-size: 0.78rem;
}

.admin-nav {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.admin-nav a,
.admin-list-item {
  padding: 0.75rem;
  border-radius: var(--radius);
  color: var(--text-light);
  transition: all 200ms ease;
}

.admin-nav a:hover,
.admin-nav a.active,
.admin-list-item:hover,
.admin-list-item.active {
  background: var(--accent);
  color: white;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.8rem;
}

.admin-split {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.admin-list {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.admin-list-item {
  padding: 0.75rem;
  border-radius: var(--radius);
}

.admin-list-item strong,
.admin-list-item small {
  display: block;
}

.admin-list-item small {
  font-size: 0.75rem;
  color: var(--text-light);
}

.admin-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.admin-login-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.admin-login-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.admin-login-card h1 {
  margin-top: 1rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.delete-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.button-row {
  display: flex;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Utility classes */
.rich-text {
  line-height: 1.8;
}

.rich-text h2,
.rich-text h3 {
  margin-top: 1.5rem;
}

.rich-text ul,
.rich-text ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.rich-text li {
  margin-bottom: 0.5rem;
}

.feature-list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-light);
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list div {
  padding: 0.75rem 0;
}

.meta-list dt {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

.meta-list dd {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-weight: 500;
}

.stacked div + div {
  margin-top: 0.5rem;
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.item-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.75rem;
}

.item-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #ffffff 78%);
  background: color-mix(in srgb, var(--accent) 6%, #ffffff 94%);
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 600;
}

.icon-pill {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.whatsapp-group-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* Stats */
.admin-stats-section {
  margin-top: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.stat-box h3 {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
}

.stats-tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stats-table {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stats-table h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
}

.stats-table.full-width {
  grid-column: 1 / -1;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.stats-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table thead {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.data-table td:last-child,
.data-table th:last-child {
  white-space: nowrap;
}

.stats-table .data-table td .row-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0.9;
}

.stats-table .data-table td .row-action-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border) 70%);
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg) 92%);
}

.stats-table .data-table td .row-action-link:hover {
  opacity: 1;
}

.data-table tbody tr:hover {
  background: var(--bg);
}

/* Responsive */
@media (max-width: 1024px) {
  .two-column-layout,
  .content-with-sidebar,
  .newsletter-panel,
  .timeline-grid,
  .footer-grid,
  .detail-grid,
  .admin-grid,
  .three-up,
  .four-up {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-split {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: var(--container);
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .header-top {
    gap: 0.75rem;
    padding: 0.5rem 0;
  }

  .header-bottom {
    padding: 0.4rem 0;
  }

  .header-logo img {
    height: 52px;
    max-width: min(180px, 45vw);
  }

  .header-actions {
    gap: 0.45rem;
  }

  .theme-toggle {
    min-height: 38px;
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  .nav-cta {
    padding: 0.45rem 0.65rem;
  }

  .site-nav a {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav.open a {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #0b2d4f;
    border-bottom: 2px solid #d7af38;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    margin-left: 0;
    margin-right: 0;
    display: none;
    z-index: 30;
  }

  .site-nav a,
  .nav-dropdown-toggle,
  .site-nav a:hover,
  .nav-dropdown-toggle:hover,
  .site-nav a.active,
  .nav-dropdown.active .nav-dropdown-toggle {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    margin-top: 0.35rem;
    display: none;
    pointer-events: none;
  }

  .nav-dropdown-menu a,
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a.active {
    color: #ffffff;
    background: transparent;
    pointer-events: none;
  }

  .nav-dropdown:not(.open) .nav-dropdown-menu {
    display: none !important;
    pointer-events: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: grid !important;
    pointer-events: auto;
  }

  .nav-dropdown.open .nav-dropdown-menu a,
  .nav-dropdown.open .nav-dropdown-menu a:hover,
  .nav-dropdown.open .nav-dropdown-menu a.active {
    pointer-events: auto;
  }

  .site-nav.open {
    display: flex;
  }

  .page-hero {
    min-height: 280px;
  }

  .page-hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .home-sector-grid {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .timeslot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-date {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .admin-form.two-column {
    grid-template-columns: 1fr;
  }

  .settings-group-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-section-grid {
    grid-template-columns: 1fr;
  }

  .admin-collection-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-collection-toolbar .listing-toolbar {
    justify-content: flex-start;
  }

  .settings-savebar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .timeline-grid,
  .three-up,
  .four-up {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .stats-tables {
    grid-template-columns: 1fr;
  }

  .sector-overview-meta {
    grid-template-columns: 1fr;
  }

  .left-menu {
    position: static;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }

  .newsletter-form input {
    min-height: 44px;
  }

  .share-chooser-actions {
    grid-template-columns: 1fr;
  }

  .calendar-menu-list {
    right: auto;
    left: 0;
    min-width: 190px;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row button,
  .button-row a {
    width: 100%;
    text-align: center;
  }
}

/* Extra-small screens */
@media (max-width: 480px) {
  :root {
    --container: min(100%, calc(100vw - 24px));
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .header-actions .theme-toggle {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .header-actions .nav-cta {
    font-size: 0.8rem;
  }

  .admin-shell {
    padding: 1rem;
    gap: 1rem;
  }

  .section {
    padding: 1.5rem 0;
  }

  .hero-stat {
    padding: 0.75rem 0;
  }

  .newsletter-panel {
    padding: 1.5rem;
  }

  .stat-box {
    padding: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .button-primary,
  .button-secondary,
  .button-danger {
    width: 100%;
    text-align: center;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-topbar h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}
