/**
 * Husonemu — slate neutrals + forest green primary (links, buttons, focus, panels)
 * Fonts: Open Sans, Raleway, Poppins
 */

:root {
  /* Primary UI — green family (semantic --green* align with real greens) */
  --green: #15803d;
  --green-hover: #16a34a;
  --green-light: #22c55e;
  --green-dark: #14532d;
  --green-overlay: rgba(20, 83, 45, 0.92);
  --accent: #15803d;
  --accent-hover: #16a34a;
  --accent-soft: #f0fdf4;
  --nav-hover-bg: #f1f5f9;
  --nav-active-bg: #0f172a;
  --nav-active-green: #15803d;
  --nav-active-green-hover: #166534;
  --nav-active-green-bottom: #0f3d26;
  --btn-border-light: #e8ecf1;
  --btn-border-bottom: #94a3b8;
  --btn-border-bottom-strong: #64748b;
  --text: #444444;
  --text-dark: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --section-bg: #f8fafc;
  --topbar-bg: #f8fafc;
  --topbar-classic-bg: #0f172a;
  --topbar-classic-text: rgba(255, 255, 255, 0.92);
  --topbar-classic-muted: rgba(255, 255, 255, 0.65);
  --footer-bg: #0f172a;
  --white: #ffffff;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-heading: "Raleway", system-ui, sans-serif;
  /* Display / hero titles (distinct from Raleway subheads) */
  --font-display: "Poppins", system-ui, sans-serif;
  /* Same as main nav — all buttons / submenus use this */
  --font-buttons: var(--font-body);
  --section-pad: clamp(1.35rem, 3.5vw, 2.25rem);
  /* Horizontal gutter: topbar, header, hero, and panel inset */
  --container-pad: 2rem;
  /* Inset inside content cards (contact panels, CMS shells, home section bodies) */
  --page-shell-pad: clamp(1.5rem, 3.5vw, 2.35rem);
  /* Same width as .container / header bar */
  --content-max-width: 1140px;
  --page-canvas-bg: #e9f2ec;
  --content-frame-glow: 0 0 0 1px rgba(21, 128, 61, 0.1), 0 4px 20px rgba(15, 23, 42, 0.07), 0 12px 48px rgba(15, 23, 42, 0.09), 0 0 56px rgba(21, 128, 61, 0.08);
  --header-h: 88px;
  --nav-pill-h: 2.75rem;
  --nav-gap: 0.375rem;
  --nav-font-size: 13px;
  --topbar-h: 28px;
  --ease: 0.2s ease;
  --radius-sharp: 0;
  /* Semina status: green = Semina Inaendelea, gold = Semina Ijayo (ratiba poster + shared refs) */
  --sem-status-upcoming-gradient: linear-gradient(180deg, #f5e6b8 0%, #d4af37 45%, #c9a227 100%);
  --sem-status-upcoming-ink: #3d2e08;
  --sem-status-upcoming-icon: #7c5a06;
  --sem-status-upcoming-border: rgba(184, 134, 11, 0.42);
  --sem-status-upcoming-shadow: rgba(184, 134, 11, 0.22);
  --sem-status-live-gradient: linear-gradient(180deg, #ecfdf5 0%, #bbf7d0 38%, #4ade80 72%, #22c55e 100%);
  --sem-status-live-ink: #14532d;
  --sem-status-live-icon: #15803d;
  --sem-status-live-border: rgba(21, 128, 61, 0.45);
  --sem-status-live-shadow: rgba(22, 163, 74, 0.35);
  --sem-status-live-pulse: #15803d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

body.navbar-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--nav-active-bg);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-family: var(--font-buttons);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.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;
}

/* ——— Top bar (classic narrow strip) ——— */
.topbar {
  font-size: 12px;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1001;
  flex-shrink: 0;
}

.topbar-classic {
  background: var(--topbar-classic-bg);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.topbar-classic a {
  color: #fff;
}

.topbar-classic a:hover {
  color: #fff;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  min-height: var(--topbar-h);
  padding-block: 0.12rem;
}

.topbar-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  color: #fff;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.topbar-item i {
  color: #fff;
  font-size: 0.95em;
  opacity: 0.95;
  line-height: 1;
}

.topbar-classic .topbar-item a {
  color: #fff;
  text-decoration: none;
}

.topbar-classic .topbar-item a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 1;
}

.topbar-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  max-width: min(36rem, 100%);
}

.topbar-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-left: auto;
}

.topbar-social-classic {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
}

.topbar-social-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sharp);
  line-height: 1;
  font-size: 1.08rem;
  transition: background var(--ease), color var(--ease);
}

.topbar-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.topbar-datetime {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .topbar-contact {
    justify-content: center;
    width: 100%;
  }

  .topbar-end {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  .topbar-datetime {
    font-size: 11px;
  }
}

/* ——— Main nav (shared on all pages): sticky, white bar, logo + pills ——— */
.site-header-green.site-header-nav {
  background: var(--white);
  z-index: 1000;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: var(--topbar-h);
  transition: box-shadow 0.35s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.site-header-green.site-header-nav.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: var(--header-h);
}

.site-brand {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  line-height: 0;
  max-width: min(56vw, 300px);
}

.site-brand__link {
  display: block;
  line-height: 0;
  transition: opacity var(--ease);
}

.site-brand__link:hover {
  opacity: 0.88;
}

.site-brand__logo {
  display: block;
  height: clamp(46px, 9vw, 62px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* ——— Nav ——— */
.navbar-green.navbar-main {
  padding: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar-main__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--nav-gap);
}

.navbar-green li {
  position: relative;
}

.nav-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  height: var(--nav-pill-h);
  min-height: var(--nav-pill-h);
  max-height: var(--nav-pill-h);
  padding: 0 0.95rem !important;
  margin: 0 !important;
  font-family: var(--font-buttons);
  font-size: var(--nav-font-size);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--text-dark) !important;
  white-space: nowrap;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--btn-border-light);
  border-bottom-width: 3px;
  border-bottom-color: var(--btn-border-bottom);
  background: transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.nav-link-pill .bi-chevron-down {
  font-size: 0.85em;
  opacity: 0.85;
  flex-shrink: 0;
}

button.nav-link-pill.nav-dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-buttons);
  cursor: pointer;
  text-align: inherit;
}

button.nav-link-pill.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-link-pill:hover {
  color: var(--text-dark) !important;
  background: var(--nav-hover-bg);
  border-color: var(--btn-border-light);
  border-bottom-color: var(--btn-border-bottom-strong);
}

.nav-link-pill.active {
  color: #fff !important;
  background: var(--nav-active-green);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom-width: 3px;
  border-bottom-color: var(--nav-active-green-bottom);
  box-shadow: none;
}

.nav-link-pill.active:hover {
  background: var(--nav-active-green-hover);
  border-color: rgba(255, 255, 255, 0.28);
  border-bottom-color: #0a2e1c;
  color: #fff !important;
}

.nav-icon-btn.cart-nav-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  width: var(--nav-pill-h);
  height: var(--nav-pill-h);
  min-width: var(--nav-pill-h);
  min-height: var(--nav-pill-h);
  max-height: var(--nav-pill-h);
  padding: 0 !important;
  margin-left: 0 !important;
  font-family: var(--font-buttons);
  font-size: 1.05rem;
  color: var(--text-dark) !important;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--btn-border-light);
  border-bottom-width: 3px;
  border-bottom-color: var(--btn-border-bottom);
  background: #fff;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.nav-icon-btn.cart-nav-link:hover {
  color: var(--accent) !important;
  border-color: var(--btn-border-light);
  border-bottom-color: var(--btn-border-bottom-strong);
  background: var(--nav-hover-bg);
}

.cart-badge-green {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #b91c1c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 4px;
  border-radius: var(--radius-sharp);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  border: 2px solid #fff;
  line-height: 1;
}

/* Dropdown desktop */
.navbar-green .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0 0 30px rgba(127, 137, 161, 0.25);
  transition: var(--ease);
  list-style: none;
  min-width: 200px;
}

.navbar-green .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar-green .dropdown ul a {
  padding: 10px 20px;
  display: block;
  color: var(--text-dark);
  font-family: var(--font-buttons);
  font-size: var(--nav-font-size);
  font-weight: 600;
}

.navbar-green .dropdown ul a:hover {
  color: var(--nav-active-green);
  background: var(--nav-hover-bg);
}

.navbar-green .dropdown ul a.active {
  color: var(--nav-active-green);
  font-weight: 600;
  background: rgba(21, 128, 61, 0.08);
  border-left: 3px solid var(--nav-active-green);
  padding-left: 17px;
}

.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 0;
  transition: 0.5s;
  margin-left: 12px;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar-green .navbar-main__list {
    display: none;
  }
}

.navbar-green.navbar-mobile {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.92);
  z-index: 9999;
  overflow: hidden;
  padding: 15px;
}

.navbar-green.navbar-mobile .navbar-main__list {
  display: block;
  position: absolute;
  top: calc(var(--topbar-h) + var(--header-h) + 10px);
  right: 15px;
  left: 15px;
  bottom: 15px;
  padding: 10px 0;
  background: #fff;
  overflow-y: auto;
  border-radius: var(--radius-sharp);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.navbar-green.navbar-mobile .navbar-main__list > li > a,
.navbar-green.navbar-mobile .navbar-main__list > li > button.nav-link-pill {
  padding: 0 1.15rem !important;
  height: var(--nav-pill-h);
  min-height: var(--nav-pill-h);
  max-height: var(--nav-pill-h);
}

.navbar-green.navbar-mobile .nav-link-pill {
  width: calc(100% - 32px);
  margin-inline: 16px !important;
  border-radius: var(--radius-sharp);
  justify-content: flex-start;
}

.navbar-green.navbar-mobile .nav-icon-btn.cart-nav-link {
  margin: 8px 16px !important;
  width: var(--nav-pill-h);
  height: var(--nav-pill-h);
  min-width: var(--nav-pill-h);
}

.navbar-green.navbar-mobile .dropdown ul {
  position: static;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  display: none;
  margin: 0 12px 8px;
  padding: 0;
  border-left: 3px solid var(--nav-active-green);
}

.navbar-green.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

.navbar-green.navbar-mobile .mobile-nav-toggle {
  position: fixed;
  top: calc(var(--topbar-h) + (var(--header-h) - 1.75rem) * 0.5);
  right: 22px;
  z-index: 10001;
  color: #fff;
}

.navbar-green.navbar-mobile .navbar-main__list > li + li {
  margin-top: var(--nav-gap);
}

.navbar-green.navbar-mobile .mobile-nav-toggle.bi-x {
  color: #fff;
}

/* ——— Breadcrumbs (inside content frame) ——— */
.breadcrumbs {
  padding: 14px 0;
  margin: 0;
  background: transparent;
}

.breadcrumbs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.breadcrumbs h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #0f172a;
  position: relative;
  padding-bottom: 0.65rem;
}

.breadcrumbs h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(8.5rem, 38vw);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(74, 222, 128, 0.55) 100%);
  border-radius: 1px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #3c3c3c;
  content: "/";
}

.breadcrumbs a {
  color: var(--text-dark);
  font-weight: 400;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .breadcrumbs-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Main + central content frame (aligns with header / topbar width) ——— */
.main-site,
.main-green {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.content-frame {
  flex: 1;
  width: 100%;
  padding-inline: 0;
  padding-block: 0 0.65rem;
  background: var(--page-canvas-bg);
}

.content-frame__panel {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  background: var(--white);
  box-shadow: var(--content-frame-glow);
  box-sizing: border-box;
  /* Standard inset from the card edge / glow so content does not sit on the shadow */
  padding-inline: var(--container-pad);
  padding-bottom: var(--container-pad);
}

/* Panel supplies horizontal gutter; avoid doubling with nested .container */
.content-frame__panel .container {
  padding-inline: 0;
}

/* Hero/slider sits in breakout — keep normal .container gutters to match header / topbar */
.content-frame__panel .content-frame__breakout .container {
  padding-inline: var(--container-pad);
}

/* Home hero: true viewport full-bleed (panel is max-width centered + padded; margin calc often clips or misaligns) */
.content-frame__panel:has(> .home-hero-slider.content-frame__breakout) {
  overflow-x: visible;
  overflow: visible;
}

.content-frame:has(.content-frame__panel > .home-hero-slider) {
  overflow-x: visible;
}

/* Full-bleed breakout (hero): center 100vw strip on viewport */
.content-frame__panel > .content-frame__breakout.home-hero-slider {
  position: relative;
  left: 50%;
  right: auto;
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  transform: translateX(-50%);
  box-shadow: none;
}

/* Other breakouts (if any): legacy margin trick */
.content-frame__panel > .content-frame__breakout:not(.home-hero-slider) {
  position: relative;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-shadow: none;
}

.content-frame__breadcrumbs {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.content-frame__breadcrumbs + * {
  margin-top: 0;
}

.content-frame:has(.contact-map-bleed) {
  padding-block: 0;
}

.content-frame__panel:has(.contact-map-bleed) {
  padding-bottom: 0;
}

/* ——— Article: main title vs subheadings (distinct typography) ——— */
.entry-content.prose > h2:first-of-type,
.entry-content.prose > h1:first-child {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 0.35rem;
  padding-bottom: 0;
  border-bottom: none;
}

.entry-content.prose > h2:first-of-type::after,
.entry-content.prose > h1:first-child::after {
  content: "";
  display: block;
  width: min(8.5rem, 65%);
  height: 2px;
  margin-top: 0.6rem;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(74, 222, 128, 0.55) 100%);
}

.entry-content.prose h2:not(:first-of-type) {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #14532d;
  margin-top: 2.35rem;
  margin-bottom: 0.5rem;
  padding: 0 0 0.35rem 0.9rem;
  border-bottom: none;
  border-left: 4px solid var(--accent);
  line-height: 1.3;
}

.entry-content.prose h3 {
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 1.35vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-top: 1.9rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(21, 128, 61, 0.22);
  line-height: 1.4;
}

.entry-content.prose h4 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  margin-top: 1.45rem;
  margin-bottom: 0.35rem;
  opacity: 0.92;
}

@media (max-width: 576px) {
  .entry-content.prose h3 {
    letter-spacing: 0.1em;
    font-size: 0.74rem;
  }
}

/* ——— Home hero (slider + overlay) ——— */
.home-hero-slider {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a2e1c;
}

.home-hero-slider__fallback-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #0f3d26 0%, #14532d 40%, #0a2e1c 100%);
}

.home-hero-slider__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-hero-slider__track {
  position: absolute;
  inset: 0;
}

.home-hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
  z-index: 0;
}

.home-hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-hero-slider__slide.is-broken {
  display: none !important;
}

.home-hero-slider__img,
.home-hero-slider__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-hero-slider__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 46, 28, 0.45) 0%,
    rgba(10, 46, 28, 0.35) 40%,
    rgba(10, 46, 28, 0.75) 100%
  );
}

.home-hero-slider__chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.home-hero-slider__btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom-width: 3px;
  border-bottom-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  border-radius: var(--radius-sharp);
  transition: background var(--ease), border-color var(--ease);
}

.home-hero-slider__btn:hover {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.home-hero-slider__btn--prev {
  left: 0.5rem;
}

.home-hero-slider__btn--next {
  right: 0.5rem;
}

.home-hero-slider__dots {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: calc(100% - 2rem);
}

.home-hero-slider__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sharp);
  transition: background var(--ease), transform var(--ease);
}

.home-hero-slider__dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scaleY(1.15);
}

.home-hero-slider__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-block: 3rem;
  /* Edge-to-edge inside 100vw hero; keep gutters modest */
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(0.65rem, 2.5vw, 1.35rem);
  box-sizing: border-box;
}

.home-hero-slider__inner--split {
  max-width: none;
  width: 100%;
  display: grid;
  gap: 1.75rem clamp(1.25rem, 3vw, 2.75rem);
  align-items: stretch;
  text-align: center;
}

.home-hero-slider__col {
  min-width: 0;
}

@media (min-width: 960px) {
  .home-hero-slider__inner--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    text-align: left;
  }

  .home-hero-slider__inner--split .home-hero-slider__col--main {
    text-align: left;
  }

  .home-hero-slider__inner--split .home-hero-slider__col--main h2 {
    margin-right: 0;
  }

  .home-hero-slider__inner--split .home-hero-slider__col--main p {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .home-hero-slider__inner--split .page-hero__actions {
    justify-content: flex-start;
  }

  .home-hero-slider__inner--split .home-hero-slider__col--ratiba {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
  }

  .home-hero-slider__inner--split .home-hero-ratiba {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .home-hero-slider__inner--split .home-hero-ratiba__panel {
    width: 100%;
  }

  .home-hero-slider__inner--split .home-hero-ratiba__head {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem 0.85rem;
  }
}

.home-hero-slider__inner h2 {
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin: 0 0 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.home-hero-slider__inner h2 span {
  color: #86efac;
}

.home-hero-slider__inner p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  max-width: 40rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Semina / tukio la karibu — changanyika na hero bila mpaka mkali */
.home-hero-ratiba {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.home-hero-slider__inner:not(.home-hero-slider__inner--split) .home-hero-ratiba {
  margin-bottom: 1.5rem;
}

.home-hero-slider__inner:not(.home-hero-slider__inner--split) h2 + .home-hero-ratiba {
  margin-top: 0.35rem;
}

.home-hero-slider__inner:not(.home-hero-slider__inner--split) p + .home-hero-ratiba {
  margin-top: -0.35rem;
}

.home-hero-ratiba__panel {
  padding: 1rem 1.2rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-hero-ratiba__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

@media (min-width: 480px) {
  .home-hero-ratiba__head {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem 0.65rem;
  }
}

.home-hero-ratiba__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  flex-shrink: 0;
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: center;
  padding: 0.5em 1em 0.52em 0.85em;
  font-size: clamp(0.7rem, 1.25vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  text-shadow: none;
  line-height: 1.2;
}

.home-hero-ratiba__badge-icon {
  font-size: 1.35em;
  line-height: 1;
  opacity: 0.95;
}

.home-hero-ratiba__badge-text {
  padding-top: 0.04em;
}

.home-hero-ratiba__badge--live {
  background: linear-gradient(
    165deg,
    rgba(236, 253, 245, 0.22) 0%,
    rgba(187, 247, 208, 0.2) 32%,
    rgba(34, 197, 94, 0.3) 58%,
    rgba(21, 128, 61, 0.42) 100%
  );
  border-color: rgba(134, 239, 172, 0.58);
  color: #ecfdf5;
  box-shadow: 0 2px 22px var(--sem-status-live-shadow);
}

.home-hero-ratiba__badge--live .home-hero-ratiba__badge-icon {
  color: #bbf7d0;
}

/* Kituo kimoja na ratiba: dot kinayopiga (heartbeat / miale) */
.home-hero-ratiba__badge-pulse {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--sem-status-live-pulse);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.55);
  animation: home-hero-ratiba-pulse 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-ratiba__badge-pulse {
    animation: none;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.35);
  }
}

@keyframes home-hero-ratiba-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.65);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(134, 239, 172, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0);
  }
}

.home-hero-ratiba__badge--soon {
  background: linear-gradient(
    165deg,
    rgba(245, 230, 184, 0.32) 0%,
    rgba(212, 175, 55, 0.26) 42%,
    rgba(201, 162, 39, 0.34) 100%
  );
  border-color: rgba(232, 196, 71, 0.55);
  color: #fffbeb;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 18px var(--sem-status-upcoming-shadow);
}

.home-hero-ratiba__badge--soon .home-hero-ratiba__badge-icon {
  color: #fde68a;
}

.home-hero-ratiba__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  max-width: 100%;
}

.home-hero-ratiba__meta {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.home-hero-ratiba__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 0.06rem;
  transition: color var(--ease), border-color var(--ease), opacity var(--ease);
}

.home-hero-ratiba__link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.home-hero-ratiba__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
  border-radius: 2px;
}

.home-hero-ratiba__link .bi {
  font-size: 0.75em;
  opacity: 0.85;
}

@media (max-width: 992px) {
  .home-hero-slider {
    min-height: 65vh;
  }
}

.home-hero-slider--empty .home-hero-slider__media,
.home-hero-slider--empty .home-hero-slider__chrome {
  display: none;
}

@media (max-width: 576px) {
  .home-hero-slider__btn {
    width: 2rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }

  .home-hero-slider__btn--prev {
    left: 0.25rem;
  }

  .home-hero-slider__btn--next {
    right: 0.25rem;
  }
}

/* Legacy hero (if used elsewhere) */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f172a;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.92) 45%, rgba(15, 23, 42, 0.98) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(21, 128, 61, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(51, 65, 85, 0.35) 0%, transparent 50%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 3rem;
  padding-inline: 0;
  max-width: 52rem;
  margin-inline: auto;
}

.page-hero h2 {
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin: 0 0 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-hero h2 span {
  color: #86efac;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  max-width: 40rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
}

.btn-get-started {
  font-family: var(--font-buttons);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border-radius: var(--radius-sharp);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  line-height: 1.2;
  color: #fff;
  background: var(--accent);
  border: 1px solid #86efac;
  border-bottom-width: 3px;
  border-bottom-color: #14532d;
}

.btn-get-started:hover {
  background: var(--accent-hover);
  border-color: #bbf7d0;
  border-bottom-color: #052e16;
  color: #fff;
}

.btn-get-started--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom-width: 3px;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-get-started--outline:hover {
  background: #fff;
  color: var(--nav-active-bg);
  border: 1px solid #fff;
  border-bottom-width: 3px;
  border-bottom-color: #cbd5e1;
}

@media (max-width: 992px) {
  .page-hero {
    min-height: 65vh;
  }
}

@media (max-width: 576px) {
  .page-hero h2 {
    font-size: 1.5rem;
  }
}

/* ——— Sections ——— */
.content-stack,
.inner-page,
.shop-section {
  padding: var(--section-pad) 0;
}

.inner-page--document {
  padding-top: clamp(1.1rem, 2.2vw, 1.65rem);
}

/* Generic CMS pages: full width of .container (same lateral bounds as contact / home) */
.cms-page-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
  padding: var(--page-shell-pad);
  background: linear-gradient(165deg, rgba(240, 253, 244, 0.65) 0%, var(--white) 45%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sharp);
  box-shadow:
    0 1px 0 rgba(21, 128, 61, 0.07),
    0 14px 44px rgba(15, 23, 42, 0.07);
}

.cms-page-shell--narrow {
  max-width: min(40rem, 100%);
  margin-inline: auto;
}

.cms-page-shell--center {
  text-align: center;
  max-width: min(34rem, 100%);
  margin-inline: auto;
}

.cms-page-shell--center .empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cms-page-shell__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  font-size: 1.65rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-radius: var(--radius-sharp);
}

.cms-page-shell .entry-content.prose > h2:first-of-type {
  border-bottom-color: rgba(21, 128, 61, 0.22);
}

.inner-page--product {
  padding-top: clamp(1.1rem, 2.2vw, 1.65rem);
}

.cms-product-shell.product-detail {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
  padding: var(--page-shell-pad);
  background: linear-gradient(155deg, rgba(240, 253, 244, 0.6) 0%, var(--white) 40%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sharp);
  box-shadow:
    0 1px 0 rgba(21, 128, 61, 0.07),
    0 14px 44px rgba(15, 23, 42, 0.07);
}

.product-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  padding-bottom: 0;
  border-bottom: none;
  color: #0f172a;
}

.product-detail__title::after {
  content: "";
  display: block;
  width: min(11rem, 65%);
  height: 4px;
  margin-top: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, #4ade80 55%, rgba(74, 222, 128, 0.2) 100%);
}

.product-detail__price {
  margin-bottom: 1rem;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.product-detail__back {
  text-decoration: none;
}

.product-detail__body .entry-content {
  margin-top: 0.5rem;
}

.product-detail__media .product-hero {
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
}

.section-bg {
  background: var(--white);
}

/* ——— Husonemu home: body only (hero unchanged) ——— */
.home-main {
  --home-band-top: #f1f5f9;
  --home-band-mid: #e8eef5;
  background: linear-gradient(180deg, var(--home-band-top) 0%, var(--section-bg) 38%, var(--white) 100%);
  position: relative;
}

.home-main > .container {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* Fragmented CMS sections (split at h2; h3 → spotlight asides) */
.home-fragmented {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3vw, 2rem);
}

.home-section {
  --home-section-accent: var(--accent);
  margin: 0;
}

.home-section__shell {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(21, 128, 61, 0.05),
    0 14px 44px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.home-section--tone-0 .home-section__shell {
  background: var(--white);
}

.home-section--tone-1 .home-section__shell {
  background: linear-gradient(180deg, #f0faf4 0%, var(--white) 55%);
}

.home-section--tone-2 .home-section__shell {
  background: linear-gradient(180deg, #f8fafc 0%, #fefefe 100%);
}

.home-section--theme-family {
  --home-section-accent: #15803d;
}

.home-section--theme-salamu {
  --home-section-accent: #047857;
}

.home-section--theme-join {
  --home-section-accent: #16a34a;
}

.home-section--theme-news {
  --home-section-accent: #b91c1c;
}

.home-section--theme-lead {
  --home-section-accent: var(--accent);
}

.home-section--intro.home-section--theme-lead .home-section__shell {
  border-left: 4px solid var(--accent);
}

.home-section--theme-family .home-section__shell,
.home-section--theme-salamu .home-section__shell,
.home-section--theme-join .home-section__shell,
.home-section--theme-news .home-section__shell {
  border-left: 4px solid var(--home-section-accent);
}

.home-section__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(105deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.4) 100%);
  border-bottom: 1px solid var(--border);
}

.home-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background: var(--white);
  color: var(--home-section-accent);
  border: 1px solid var(--border);
  font-size: 1.45rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.home-section__titles {
  flex: 1;
  min-width: 0;
}

.home-section__titles h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.55vw, 1.62rem);
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.035em;
  border-bottom: none;
  padding-bottom: 0;
}

.home-section__titles h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--home-section-accent) 0%, rgba(21, 128, 61, 0.35) 100%);
}

.home-section__block-body {
  padding: clamp(1rem, 2.2vw, 1.5rem) var(--page-shell-pad) clamp(1.25rem, 2.5vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-section__flow.prose > *:first-child {
  margin-top: 0;
}

.home-section__flow.prose > *:last-child {
  margin-bottom: 0;
}

.home-section .prose img {
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  max-width: 100%;
  height: auto;
}

.home-section .prose ul li::marker {
  color: var(--home-section-accent);
}

.home-section .legacy-accordion {
  margin: 0;
}

.home-section .legacy-accordion summary::before {
  background: var(--home-section-accent);
}

/* h3 “spotlight” bands inside a block */
.home-spotlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  margin: 0;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.06) 0%, rgba(241, 245, 249, 0.9) 100%);
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-left: 4px solid var(--accent);
}

.home-spotlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--border);
  font-size: 1.3rem;
}

.home-spotlight__inner {
  flex: 1;
  min-width: 0;
}

.home-spotlight__title h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.home-spotlight__body.prose > *:first-child {
  margin-top: 0;
}

.home-spotlight__body.prose > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .home-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-spotlight {
    flex-direction: column;
  }
}

/* Quick-link icon cards */
.home-explore {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-explore-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-bottom-color: #cbd5e1;
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease),
    border-bottom-color var(--ease);
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.04);
}

.home-explore-card:hover {
  border-color: rgba(21, 128, 61, 0.35);
  border-bottom-color: var(--accent);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  color: inherit;
}

.home-explore-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.4rem;
}

.home-explore-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.home-explore-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.25;
}

.home-explore-card__hint {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}

.home-explore-card__chev {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--muted);
  transition: color var(--ease), transform var(--ease);
}

.home-explore-card:hover .home-explore-card__chev {
  color: var(--accent);
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .home-explore {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-explore-card:hover {
    transform: none;
  }

  .home-explore-card:hover .home-explore-card__chev {
    transform: none;
  }
}

.section-title {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 18px;
  position: relative;
  color: var(--text-dark);
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: var(--border);
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  left: calc(50% - 24px);
}

.section-title p,
.section-lead {
  margin: 0 auto;
  font-size: 15px;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.65;
}

/* ——— Entry / prose ——— */
.entry-panel {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.entry-content {
  max-width: none;
  margin-inline: 0;
}

.flow > * + * {
  margin-top: 1rem;
}

.prose p {
  margin: 0 0 1rem;
  text-align: justify;
}

.prose h2, .prose h3, .prose h4 {
  margin: 1.75rem 0 0.65rem;
  color: var(--text-dark);
}

/* Default prose (e.g. home spotlights); .entry-content overrides main article */
.prose h2 {
  font-size: 1.5rem;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent-hover);
}

.prose ul, .prose ol {
  padding-left: 1.35rem;
}

.prose blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-style: italic;
  color: var(--muted);
}

/* Salamu za mwezi — letter typography (left-aligned; scripture blocks like structured exports) */
.entry-content--salamu.prose p,
.entry-content--salamu.prose li {
  text-align: left;
  hyphens: none;
}

.entry-content--salamu.prose ul,
.entry-content--salamu.prose ol {
  text-align: left;
}

.entry-content--salamu.prose blockquote {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem 1.05rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(92deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.92) 55%, #fff 100%);
  font-style: normal;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.75;
  box-shadow: 0 1px 0 rgba(21, 128, 61, 0.06);
}

.entry-content--salamu.prose blockquote p {
  margin: 0 0 0.6rem;
  text-align: left;
}

.entry-content--salamu.prose blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content--salamu.prose blockquote em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.entry-content--salamu.prose h1 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent-soft);
}

.entry-content--salamu.prose h2 {
  margin: 1.85rem 0 0.7rem;
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--accent-soft);
}

.entry-content--salamu.prose h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #0f172a;
}

.entry-content--salamu.prose h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.entry-content--salamu.prose hr {
  border: none;
  height: 1px;
  margin: 1.65rem 0;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}

.entry-content--salamu.prose strong {
  font-weight: 700;
  color: var(--text-dark);
}

/* Override global .entry-content heading accents for letter-style salamu */
.entry-content--salamu.prose > h2:first-of-type,
.entry-content--salamu.prose > h1:first-child {
  font-weight: 800;
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--accent-soft);
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.entry-content--salamu.prose > h2:first-of-type::after,
.entry-content--salamu.prose > h1:first-child::after {
  display: none;
}

.entry-content--salamu.prose h2:not(:first-of-type) {
  border-left: none;
  padding-left: 0;
  margin-top: 1.85rem;
  margin-bottom: 0.7rem;
  font-weight: 800;
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  color: #0f172a;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--accent-soft);
}

/* Sala ya Toba — repentance prayer (Wokovu hub); red emphasis = deliverance focus */
.sala-ya-toba-card {
  display: block;
  margin: 1.85rem 0;
  padding: clamp(1.35rem, 3.2vw, 2.1rem);
  background: linear-gradient(165deg, #fff1f2 0%, #ffffff 40%, #fef2f2 100%);
  border: 2px solid #b91c1c;
  border-left: 7px solid #991b1b;
  box-shadow:
    0 1px 0 rgba(185, 28, 28, 0.08),
    0 14px 40px rgba(127, 29, 29, 0.12);
}

.prose .sala-ya-toba-card h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(185, 28, 28, 0.28);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.48rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #b91c1c;
  text-align: center;
}

.prose .sala-ya-toba-card p {
  margin: 0;
  color: #991b1b;
  font-size: 1.0625rem;
  line-height: 1.82;
  text-align: center;
  font-style: normal;
  font-weight: 700;
}

.prose .sala-ya-toba-card strong {
  color: #7f1d1d;
  font-weight: 800;
}

.prose .sala-ya-toba-card a {
  color: #b91c1c;
}

.prose .sala-ya-toba-card a:hover {
  color: #991b1b;
}

.prose .sala-ya-toba-card div {
  margin: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.prose th, .prose td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.prose th {
  background: var(--section-bg);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.prose figure {
  margin: 0.75rem 0;
}

.prose figure img {
  display: block;
  margin: 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ——— Shop ——— */
.shop-intro {
  padding-bottom: 0.5rem;
}

.shop-lead {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 0.5rem;
}

@media (min-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* ——— Masomo page (Maktaba grid + hero) ——— */
.masomo-page .masomo-library {
  margin: 1.25rem 0 0.5rem;
}

.masomo-page .masomo-library__grid {
  margin-top: 0.35rem;
}

.masomo-page .masomo-library__shop-bottom {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.masomo-page .masomo-library__shop-bottom-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.masomo-page__hero-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.masomo-njia-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0 1.85rem;
}

@media (max-width: 991px) {
  .masomo-njia-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .masomo-njia-row {
    grid-template-columns: 1fr;
  }
}

.masomo-njia-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, #fff 0%, var(--accent-soft) 120%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sharp);
  padding: 1.2rem 1rem 1.05rem;
  min-height: 100%;
  box-shadow: 0 2px 12px rgba(21, 128, 61, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.masomo-njia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: rgba(21, 128, 61, 0.4);
}

.entry-content.prose a.masomo-njia-card,
.entry-content.prose a.masomo-njia-card:hover {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.masomo-njia-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.masomo-njia-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

.masomo-njia-card:nth-child(3) .masomo-njia-card__icon {
  background: #c00;
}

.entry-content.prose .masomo-njia-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  line-height: 1.38;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text);
}

.masomo-njia-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.masomo-njia-card:hover .masomo-njia-card__cta-text {
  text-decoration: underline;
}

.masomo-njia-card__arrow {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.masomo-njia-card:hover .masomo-njia-card__arrow {
  transform: translateX(4px);
}

/* Masomo: detail cards (single column) */
.masomo-detail-cards {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 1.5rem 0 2rem;
}

.masomo-detail-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 22px rgba(21, 128, 61, 0.09);
}

.masomo-detail-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  background: linear-gradient(118deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.92) 52%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.masomo-detail-card__icon {
  flex-shrink: 0;
  width: 3.35rem;
  height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.28);
}

.masomo-detail-cards .masomo-detail-card:nth-child(3) .masomo-detail-card__icon {
  background: #c00;
  box-shadow: 0 4px 14px rgba(192, 0, 0, 0.3);
}

.masomo-detail-card__head-text {
  min-width: 0;
}

.entry-content.prose .masomo-detail-card__title {
  margin: 0;
  font-size: clamp(1.08rem, 2.4vw, 1.42rem);
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--text-dark);
}

.masomo-detail-card__body {
  flex: 1 1 auto;
  padding: 1.05rem 1.25rem 1.4rem;
}

.entry-content.prose .masomo-detail-card__body > p:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .masomo-detail-card__body {
    overflow: auto;
  }

  .masomo-detail-card__body .legacy-featured-figure {
    float: left;
    margin: 0 1.1rem 0.65rem 0;
  }
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

/* A4 portrait (210 × 297 mm) — same aspect as book covers */
.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-height: 0;
}

.product-card__meta {
  padding: 0.85rem 1rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-card-link:not(:has(.product-card__media)) .product-card__meta {
  padding-top: 1rem;
}

.product-card h2 {
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 0 0.35rem;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.product-card .price {
  color: #c0392b;
  font-weight: 700;
  margin: 0 0 0.75rem;
  margin-top: auto;
}

.product-card .btn-block {
  margin: 0 1rem 1rem;
}

.product-single-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

@media (min-width: 768px) {
  .product-single-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-hero {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.price.big {
  font-size: 1.35rem;
  font-weight: 700;
  color: #c0392b;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 12px 28px;
  border-radius: var(--radius-sharp);
  font-family: var(--font-buttons);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--btn-border-light);
  border-bottom-width: 3px;
  border-bottom-color: var(--btn-border-bottom);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  background: #fff;
  color: var(--text-dark);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid #86efac;
  border-bottom-width: 3px;
  border-bottom-color: #14532d;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  border-color: #bbf7d0;
  border-bottom-color: #052e16;
}

.btn-block {
  width: 100%;
}

.link-btn {
  background: none;
  border: none;
  color: #c0392b;
  font-family: var(--font-buttons);
  font-size: var(--nav-font-size);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  line-height: inherit;
}

/* ——— Cart / checkout ——— */
.section-narrow {
  max-width: 40rem;
  margin-inline: auto;
  padding: var(--section-pad) 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.section-narrow > h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Checkout (Tuma agizo): full content width, two-column layout */
.checkout-page {
  width: 100%;
  max-width: none;
  padding-block: clamp(0.65rem, 2vw, 1.05rem);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 268px) minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.35rem);
  align-items: start;
}

.checkout-panel {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(21, 128, 61, 0.05),
    0 10px 32px rgba(15, 23, 42, 0.055);
}

.checkout-panel--summary {
  position: sticky;
  top: calc(var(--header-h, 88px) * 0.35 + 0.75rem);
}

.checkout-panel__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(105deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 1px solid var(--border);
}

.checkout-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.checkout-panel__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.checkout-panel__body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.checkout-summary-items {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.08rem 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.checkout-summary-item:last-child {
  border-bottom: none;
}

.checkout-summary-item__title {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

.checkout-summary-item__meta {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.75rem;
  color: var(--muted);
}

.checkout-summary-item__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-dark);
}

.checkout-summary-total {
  margin: 0 0 0.65rem;
  padding-top: 0.55rem;
  border-top: 2px solid var(--accent-soft);
  font-size: 1rem;
  color: var(--text-dark);
}

.checkout-summary-empty {
  margin: 0 0 0.65rem;
}

.checkout-summary-edit {
  display: block;
  width: 100%;
  text-align: center;
}

.checkout-panel--form {
  padding: clamp(0.55rem, 1.4vw, 0.85rem);
}

.checkout-form.checkout-form {
  margin: 0;
}

.checkout-section {
  margin-bottom: clamp(0.85rem, 1.8vw, 1.15rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1.05rem);
  border-bottom: 1px solid var(--border);
}

.checkout-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.checkout-section__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.checkout-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  background: var(--section-bg);
  color: var(--accent);
  font-size: 0.98rem;
  flex-shrink: 0;
}

.checkout-section__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.checkout-section__hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.checkout-fields {
  display: grid;
  gap: 0.55rem 0.7rem;
}

.checkout-fields--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-fields--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Mkoa / jiji / mtaa one row; anwani + kiashiria full width below */
.checkout-fields--delivery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-fields--delivery .checkout-field--full {
  grid-column: 1 / -1;
}

/* Compact, elegant delivery / address block */
.checkout-section--delivery {
  margin-bottom: clamp(0.7rem, 1.6vw, 0.95rem);
  padding-bottom: clamp(0.65rem, 1.4vw, 0.85rem);
}

.checkout-section--delivery .checkout-section__head {
  margin-bottom: 0.28rem;
  gap: 0.4rem;
}

.checkout-section--delivery .checkout-section__icon {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.92rem;
  background: linear-gradient(145deg, #fff 0%, var(--section-bg) 100%);
  border: 1px solid var(--border);
}

.checkout-section--delivery .checkout-section__title {
  font-size: 0.9rem;
}

.checkout-section--delivery .checkout-section__hint {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  line-height: 1.38;
  max-width: 38rem;
}

.checkout-section--delivery .checkout-fields--delivery {
  gap: 0.42rem 0.55rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(168deg, rgba(239, 246, 255, 0.65) 0%, rgba(248, 250, 252, 0.5) 55%, rgba(255, 255, 255, 0.85) 100%);
  border: 1px solid rgba(21, 128, 61, 0.1);
  border-left: 3px solid var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.checkout-section--delivery .checkout-field {
  gap: 0.18rem;
}

.checkout-section--delivery .checkout-field__label {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.checkout-section--delivery .checkout-field__input {
  padding: 0.4rem 0.52rem;
  font-size: 0.875rem;
  border-bottom-width: 2px;
}

.checkout-section--delivery .checkout-field__input:focus {
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.12);
}

.checkout-section--delivery textarea.checkout-field__input {
  min-height: 3.15rem;
  line-height: 1.4;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0;
}

.checkout-field--full {
  grid-column: 1 / -1;
}

.checkout-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
}

.checkout-field .req {
  color: #b91c1c;
}

.checkout-field .optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.checkout-field__input {
  width: 100%;
  padding: 0.48rem 0.62rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-bottom-color: #cbd5e1;
  border-radius: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.checkout-field__input:hover {
  border-color: #cbd5e1;
}

.checkout-field__input:focus {
  outline: none;
  border-color: var(--accent);
  border-bottom-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.12);
}

.checkout-field textarea.checkout-field__input {
  min-height: 3.85rem;
  resize: vertical;
}

.checkout-option-grid {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: none;
}

.checkout-option-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-option-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Two options on one row (e.g. Tutumie muhtasari kupitia) — not collapsed on small screens */
.checkout-option-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-option-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkout-option-card {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.checkout-option-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.checkout-option-card__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-height: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-bottom-color: #e2e8f0;
  background: var(--white);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    border-bottom-color var(--ease),
    background var(--ease);
}

.checkout-option-card__bi {
  font-size: 1.12rem;
  color: var(--accent);
  margin-bottom: 0.05rem;
}

.checkout-option-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.22;
}

.checkout-option-card__hint {
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}

.checkout-option-card:hover .checkout-option-card__box {
  border-color: rgba(21, 128, 61, 0.35);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.checkout-option-card input:focus-visible + .checkout-option-card__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkout-option-card input:checked + .checkout-option-card__box {
  border-color: var(--accent);
  border-bottom-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--white) 65%);
  box-shadow: 0 2px 10px rgba(21, 128, 61, 0.08);
}

.checkout-option-card--compact .checkout-option-card__box {
  padding: 0.48rem 0.4rem;
  text-align: center;
  align-items: center;
}

.checkout-option-card--compact .checkout-option-card__title {
  font-size: 0.78rem;
}

.checkout-option-card--compact .checkout-option-card__hint {
  font-size: 0.62rem;
}

.checkout-field--notes {
  margin-top: 0.2rem;
  margin-bottom: 0.1rem;
}

.checkout-actions {
  margin-top: clamp(0.65rem, 1.4vw, 0.95rem);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.btn-checkout-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding-inline: 1.25rem;
  font-size: 0.9rem;
  width: 100%;
}

.checkout-actions__note {
  margin: 0.55rem 0 0;
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-panel--summary {
    position: static;
  }

  .checkout-fields--2,
  .checkout-option-grid--2,
  .checkout-option-grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .checkout-option-grid--2 {
    grid-template-columns: 1fr;
  }

  /* Keep “Jinsi ya kupokea” as one row; tighten cards on small screens */
  .checkout-option-grid--3 {
    gap: 0.32rem;
  }

  .checkout-option-grid--3 .checkout-option-card__box {
    padding: 0.42rem 0.32rem;
  }

  .checkout-option-grid--3 .checkout-option-card__bi {
    font-size: 0.98rem;
    margin-bottom: 0.02rem;
  }

  .checkout-option-grid--3 .checkout-option-card__title {
    font-size: 0.74rem;
  }

  .checkout-option-grid--3 .checkout-option-card__hint {
    font-size: 0.62rem;
    line-height: 1.22;
  }

  .checkout-option-grid--pair {
    gap: 0.32rem;
  }

  .checkout-option-grid--pair .checkout-option-card__box {
    padding: 0.45rem 0.38rem;
  }

  .checkout-option-grid--pair .checkout-option-card__bi {
    font-size: 1.02rem;
    margin-bottom: 0.02rem;
  }

  .checkout-option-grid--pair .checkout-option-card__title {
    font-size: 0.76rem;
  }

  .checkout-option-grid--pair .checkout-option-card__hint {
    font-size: 0.64rem;
    line-height: 1.22;
  }

  /* Mawasiliano: one row, tighter on small screens */
  .checkout-fields--3 {
    gap: 0.38rem 0.35rem;
  }

  .checkout-fields--3 .checkout-field__label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .checkout-fields--3 .checkout-field__input {
    padding: 0.42rem 0.42rem;
    font-size: 0.84rem;
  }

  .checkout-section--delivery .checkout-fields--delivery {
    gap: 0.35rem 0.32rem;
    padding: 0.48rem 0.55rem;
  }

  .checkout-section--delivery .checkout-field__label {
    font-size: 0.6rem;
  }

  .checkout-section--delivery .checkout-field__input {
    padding: 0.38rem 0.4rem;
    font-size: 0.82rem;
  }

  .checkout-section--delivery textarea.checkout-field__input {
    min-height: 2.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-option-card__box,
  .checkout-field__input {
    transition: none;
  }
}

/* ——— Cart page (Kikapu): full-width layout ——— */
.cart-page {
  width: 100%;
  max-width: none;
  padding-block: var(--section-pad);
}

.cart-root {
  width: 100%;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.cart-panel {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(21, 128, 61, 0.06),
    0 16px 48px rgba(15, 23, 42, 0.07);
}

.cart-panel--summary {
  position: sticky;
  top: calc(var(--header-h, 88px) * 0.35 + 0.75rem);
}

.cart-panel__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(105deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.5) 100%);
  border-bottom: 1px solid var(--border);
}

.cart-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cart-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-panel__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.cart-panel__body--flush {
  padding: 0;
}

.cart-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--white);
  margin: 0;
}

.cart-table th,
.cart-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.cart-table th {
  background: linear-gradient(180deg, #f8fafc 0%, var(--section-bg) 100%);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.cart-table__col-num,
.cart-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-table__col-qty {
  text-align: center;
  width: 9rem;
}

.cart-table__col-action {
  width: 3.25rem;
  text-align: center;
}

.cart-table__product-name {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.cart-table__row:last-child td {
  border-bottom: none;
}

.cart-table__row:hover td {
  background: rgba(239, 246, 255, 0.35);
}

.cart-table__line {
  font-weight: 700;
  color: var(--text-dark);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-bottom-color: #cbd5e1;
  background: var(--white);
}

.cart-qty__value {
  min-width: 2.25rem;
  padding: 0 0.35rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.qty-btn--dec {
  border-right: 1px solid var(--border);
  border-radius: 0;
}

.qty-btn--inc {
  border-left: 1px solid var(--border);
  border-radius: 0;
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-bottom-color: #e2e8f0;
  background: var(--white);
  color: #94a3b8;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.cart-remove-btn:hover {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.35);
  background: #fef2f2;
}

.cart-summary-dl {
  margin: 0 0 1rem;
}

.cart-summary-dl__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary-dl__row dt {
  margin: 0;
  font-weight: 500;
  color: var(--muted);
}

.cart-summary-dl__row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-summary-dl__row--total {
  border-bottom: none;
  padding-top: 0.85rem;
  margin-top: 0.25rem;
  border-top: 2px solid var(--accent-soft);
}

.cart-summary-dl__row--total dt {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-summary-dl__row--total dd {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.cart-summary-note {
  margin: 0 0 1.15rem;
  line-height: 1.5;
}

.cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.cart-continue-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 1rem;
  font-family: var(--font-buttons);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-bottom-color: #cbd5e1;
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease);
}

.cart-continue-link:hover {
  background: var(--accent-soft);
  border-color: rgba(21, 128, 61, 0.25);
  color: var(--accent-hover);
}

.cart-empty-state {
  max-width: 28rem;
  margin: clamp(1.5rem, 5vw, 3rem) auto;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(21, 128, 61, 0.05),
    0 20px 50px rgba(15, 23, 42, 0.08);
}

.cart-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  font-size: 2rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(21, 128, 61, 0.12);
}

.cart-empty-state__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-empty-state__text {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.cart-empty-state__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.cart-empty-state__actions .btn {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-empty-state__secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-bottom-color: #cbd5e1;
  font-family: var(--font-buttons);
  font-weight: 600;
  font-size: 14px;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  text-align: center;
  transition: background var(--ease), border-color var(--ease);
}

.cart-empty-state__secondary:hover {
  background: var(--section-bg);
  color: var(--text-dark);
}

@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel--summary {
    position: static;
  }

  .cart-table {
    min-width: 0;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: block;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .cart-table__row:hover td {
    background: transparent;
  }

  .cart-table__row:last-child {
    border-bottom: none;
  }

  .cart-table td {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.35rem 0.75rem;
    padding: 0.4rem 0;
    border: none;
    text-align: left;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
  }

  .cart-table__product {
    grid-template-columns: 1fr;
    padding-bottom: 0.65rem;
  }

  .cart-table__product::before {
    display: none;
  }

  .cart-table__qty .cart-qty {
    justify-self: start;
  }

  .cart-table__num {
    text-align: left;
  }

  .cart-table__remove {
    justify-content: start;
    padding-top: 0.5rem;
  }

  .cart-table__remove::before {
    display: none;
  }
}

.form-field {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.2);
}

.qty-btn {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--btn-border-light);
  border-bottom-width: 3px;
  border-bottom-color: var(--btn-border-bottom);
  border-radius: var(--radius-sharp);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-buttons);
  font-weight: 600;
  font-size: var(--nav-font-size);
}

.qty-btn:hover {
  border-bottom-color: var(--btn-border-bottom-strong);
  background: var(--nav-hover-bg);
}

.contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sharp);
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.contact-box h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--text-dark);
}

/* ——— Contact page (Mawasiliano) ——— */
.contact-page {
  padding-bottom: 0;
}

.contact-row-1 {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .contact-row-1 {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

/* Match contact form card: shell, accent bar, depth */
.contact-panel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--page-shell-pad);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 4px 20px rgba(15, 23, 42, 0.05),
    0 16px 48px rgba(21, 128, 61, 0.06);
  overflow: hidden;
}

.contact-panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #22c55e 45%, #86efac 100%);
  pointer-events: none;
}

.contact-panel-card__head {
  margin-bottom: 1rem;
}

.contact-panel-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  font-size: 1.2rem;
}

.contact-panel-card__icon--heart {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  color: #1d4ed8;
}

.contact-panel-card__head--mega {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.contact-panel-card__head--mega .contact-panel-card__head-text {
  flex: 1;
  min-width: 0;
}

.contact-panel-card__mega-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.25rem, 12vw, 5.5rem);
  height: clamp(4.25rem, 12vw, 5.5rem);
  border-radius: 16px;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 8px 28px rgba(21, 128, 61, 0.22);
}

.contact-panel-card__mega-icon--channels {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  color: var(--accent);
}

.contact-panel-card__mega-icon--contribute {
  background: linear-gradient(145deg, #16a34a 0%, var(--accent) 48%, #14532d 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 8px 28px rgba(21, 128, 61, 0.35);
}

.contact-panel-card__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.contact-panel-card__subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-channel-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.contact-channel-list__item {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 0.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  align-items: flex-start;
  transition: background 0.2s ease;
}

.contact-channel-list__item:hover {
  background: rgba(239, 246, 255, 0.35);
  border-radius: 10px;
}

.contact-channel-list__item:first-of-type {
  border-top: none;
  padding-top: 0.65rem;
}

.contact-channel-list__item:last-of-type {
  padding-bottom: 0.65rem;
}

.contact-channel-list__icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.05rem;
  background: rgba(239, 246, 255, 0.9);
  border: 1px solid rgba(191, 219, 254, 0.65);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(21, 128, 61, 0.06);
}

.contact-channel-list__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-channel-list__value {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-channel-list__value:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-channel-list__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.contact-panel-card__socials {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.contact-panel-card__socials-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.contact-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-panel-card .contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 11px;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-panel-card .contact-social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel-card .contact-social-btn,
  .contact-panel-card .contact-social-btn:hover {
    transform: none;
    transition-duration: 0.01ms;
  }
}

.contact-contribute-intro {
  margin: 0 0 1.1rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  background: rgba(239, 246, 255, 0.45);
  border: 1.5px solid rgba(191, 219, 254, 0.55);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.contact-contribute-acc__item {
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-contribute-acc__item:last-child {
  margin-bottom: 0;
}

.contact-contribute-acc__item[open] {
  border-color: rgba(21, 128, 61, 0.28);
  box-shadow:
    0 0 0 3px rgba(21, 128, 61, 0.1),
    0 6px 20px rgba(21, 128, 61, 0.1);
}

.contact-contribute-acc__summary {
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  color: var(--text-dark);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.5) 100%);
  transition: background 0.2s ease;
}

.contact-contribute-acc__item[open] .contact-contribute-acc__summary {
  background: rgba(255, 255, 255, 0.92);
}

.contact-contribute-acc__summary::-webkit-details-marker {
  display: none;
}

.contact-contribute-acc__summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1.2;
}

.contact-contribute-acc__item[open] .contact-contribute-acc__summary::after {
  content: "−";
}

.contact-contribute-acc__body {
  padding: 0.15rem 1.1rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: #fff;
}

.contact-form-card {
  margin-bottom: 0;
}

.contact-form-card__shell {
  position: relative;
  padding: var(--page-shell-pad);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 4px 20px rgba(15, 23, 42, 0.05),
    0 16px 48px rgba(21, 128, 61, 0.06);
  overflow: hidden;
}

.contact-form-card__shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #22c55e 45%, #86efac 100%);
  pointer-events: none;
}

.contact-form-card__headrow {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-form-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  background: linear-gradient(145deg, #16a34a 0%, var(--accent) 50%, #14532d 100%);
  color: #fff;
  border-radius: 14px;
  font-size: 1.35rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 24px rgba(21, 128, 61, 0.38);
}

.contact-form-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

.contact-form-card__subtitle {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
}

.contact-form--split .contact-form__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem 1.25rem;
}

.contact-form--split .contact-form__full {
  grid-column: 1 / -1;
}

.contact-form-card .contact-form--split .form-field {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-form-card .contact-form--split .form-field input,
.contact-form-card .contact-form--split .form-field textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.05rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.contact-form-card .contact-form--split .form-field input::placeholder,
.contact-form-card .contact-form--split .form-field textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

.contact-form-card .contact-form--split .form-field input:hover,
.contact-form-card .contact-form--split .form-field textarea:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.contact-form-card .contact-form--split .form-field input:focus,
.contact-form-card .contact-form--split .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(21, 128, 61, 0.14),
    0 6px 20px rgba(21, 128, 61, 0.1);
}

.contact-form-card .contact-form--split .form-field textarea {
  min-height: 9.5rem;
  line-height: 1.6;
  resize: vertical;
}

.contact-form-card .contact-form__actions {
  padding-top: 0.35rem;
}

.contact-form-card .contact-form__actions .btn-primary {
  border-radius: 11px;
  padding: 0.9rem 1.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom-width: 2px;
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.contact-form-card .contact-form__actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(21, 128, 61, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .contact-form-card .contact-form__actions .btn-primary,
  .contact-form-card .contact-form__actions .btn-primary:hover {
    transform: none;
    transition-duration: 0.01ms;
  }
}

@media (max-width: 640px) {
  .contact-form--split .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

.contact-map-bleed {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  line-height: 0;
  border-top: 1px solid var(--border);
}

.contact-map-bleed__iframe {
  width: 100%;
  height: min(52vh, 560px);
  min-height: 260px;
  border: 0;
  display: block;
  vertical-align: top;
}

/* CTA strip (optional) */
.cta-strip {
  background: var(--nav-active-bg);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  margin-top: 2rem;
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-strip h3 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 36rem;
}

.cta-strip .btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom-width: 3px;
  border-bottom-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
  border-radius: var(--radius-sharp);
}

.cta-strip .btn:hover {
  background: #fff;
  color: var(--nav-active-bg);
  border: 1px solid #fff;
  border-bottom-width: 3px;
  border-bottom-color: #cbd5e1;
}

/* ——— Salamu za mwezi (two columns, sticky index) ——— */
/* No transform on .salamu-archive ancestor — it breaks position:sticky for the nav. */
.salamu-archive-section,
.salamu-archive-section .container {
  overflow: visible;
}

.content-frame__panel:has(.salamu-archive-section) {
  overflow: visible;
}

.salamu-archive {
  width: 100%;
  overflow: visible;
}

.salamu-archive__layout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  align-items: start;
  overflow: visible;
}

@media (min-width: 900px) {
  .salamu-archive__layout {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  }
}

.salamu-archive__aside {
  order: -1;
  align-self: start;
  height: fit-content;
}

@media (min-width: 900px) {
  .salamu-archive__aside {
    order: 0;
  }
}

.salamu-archive__nav-sticky {
  border: 1px solid var(--border);
  border-radius: var(--radius-sharp);
  background: var(--white);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  padding: 0.85rem 0;
}

.salamu-archive__nav-toggle {
  display: none;
}

@media (max-width: 899px) {
  .salamu-archive__nav-sticky {
    padding: 0;
  }

  .salamu-archive__nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sharp);
    background: var(--white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    transition: background var(--ease);
  }

  .salamu-archive__nav-toggle:hover {
    background: var(--accent-soft);
  }

  .salamu-archive__nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .salamu-archive__nav-toggle-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sharp);
    background: var(--accent-soft);
    color: var(--accent);
  }

  .salamu-archive__nav-toggle-icon {
    font-size: 1.25rem;
    line-height: 1;
  }

  .salamu-archive__nav-toggle-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
  }

  .salamu-archive__nav-toggle-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .salamu-archive__nav-toggle-current {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .salamu-archive__nav-toggle-chevron {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--muted);
    transition: transform var(--ease);
  }

  .salamu-archive__nav-sticky--open .salamu-archive__nav-toggle-chevron {
    transform: rotate(180deg);
    color: var(--accent);
  }

  .salamu-archive__nav-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .salamu-archive__nav-panel {
    display: none;
    padding-bottom: 0.35rem;
    border-top: 1px solid var(--border);
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .salamu-archive__nav-sticky--open .salamu-archive__nav-panel {
    display: block;
  }

  .salamu-archive__nav-list {
    padding-top: 0.25rem;
  }
}

@media (min-width: 900px) {
  .salamu-archive__nav-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--topbar-h) + var(--header-h) + 0.75rem);
    z-index: 2;
    max-height: calc(100vh - var(--topbar-h) - var(--header-h) - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.salamu-archive__nav-heading {
  margin: 0;
  padding: 0 1rem 0.65rem;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

.salamu-archive__nav-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
}

.salamu-archive__year-group + .salamu-archive__year-group {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.salamu-archive__year-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 1rem 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.salamu-archive__year-icon {
  font-size: 0.95rem;
  color: var(--accent);
  flex-shrink: 0;
}

.salamu-archive__year-label {
  min-width: 0;
}

.salamu-archive__year-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.salamu-archive__nav-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.salamu-archive__nav-icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
  font-size: 1.05rem;
  color: var(--accent);
  opacity: 0.88;
}

.salamu-archive__nav-link:hover .salamu-archive__nav-icon,
.salamu-archive__nav-link.is-active .salamu-archive__nav-icon {
  opacity: 1;
}

.salamu-archive__nav-text {
  min-width: 0;
}

.salamu-archive__nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.salamu-archive__nav-link:hover .salamu-archive__nav-icon {
  color: var(--accent);
}

.salamu-archive__nav-link.is-active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent);
}

.salamu-archive__nav-link.is-active .salamu-archive__nav-icon {
  color: var(--accent);
}

.salamu-archive__article {
  min-width: 0;
}

.salamu-archive__article-header time {
  display: block;
  margin-bottom: 0.35rem;
}

.salamu-archive-empty {
  margin-top: 0.5rem;
}

/* ——— Posts ——— */
.posts-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 600px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.post-card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.post-card-img img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.post-card-fallback {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--nav-active-bg));
}

.post-card-body {
  padding: 1rem 1.1rem;
}

.post-card h2 {
  font-size: 1.05rem;
  margin: 0.35rem 0 0;
}

.post-card a {
  color: var(--text-dark);
}

.post-card a:hover {
  color: var(--accent);
}

.post-single {
  padding: 0;
  margin: 0;
  max-width: none;
  margin-inline: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.cms-page-shell--article .post-header {
  margin-bottom: 0.25rem;
}

.post-single .page-title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.post-single time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: var(--font-heading);
  margin: 0 0 1rem;
  color: #0f172a;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.page-title::after {
  content: "";
  display: block;
  width: min(8.5rem, 50%);
  height: 2px;
  margin-top: 0.55rem;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(74, 222, 128, 0.55) 100%);
}

.back-link {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ——— Footer ——— */
.site-footer-green {
  flex-shrink: 0;
  background: var(--footer-bg);
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: start;
  margin-top: 0;
  padding: 0;
}

.site-footer__main {
  padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(1.75rem, 3vw, 2.75rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(0.85rem, 2vw, 2.25rem);
  align-items: start;
}

.site-footer__grid > .site-footer__col {
  min-width: 0;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.95);
  margin: 0 0 1rem;
  padding: 0;
}

.site-footer__about-lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.site-footer__brand {
  display: inline-block;
  flex-shrink: 0;
  margin-bottom: 0;
  line-height: 0;
}

.site-footer__logo {
  display: block;
  max-width: min(13.5rem, 36vw);
  height: auto;
  max-height: 3.15rem;
  width: auto;
  opacity: 0.95;
  filter: brightness(1.08);
}

.site-footer__tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.88);
  margin: 0;
  line-height: 1.45;
  flex: 1 1 auto;
  min-width: 0;
}

.site-footer__blurb {
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.82);
  margin: 0;
  line-height: 1.6;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-list > li {
  margin-bottom: 0.35rem;
}

.footer-links-list > li > a {
  color: #f8fafc;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.footer-links-list > li > a:hover {
  color: #86efac;
  border-bottom-color: rgba(134, 239, 172, 0.45);
}

.site-footer__micro {
  font-size: 0.8125rem;
  color: rgba(203, 213, 225, 0.78);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.site-footer__micro a {
  color: #bbf7d0;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__micro a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-subscribe-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-subscribe-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-subscribe-form__input {
  flex: 1 1 9rem;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.875rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sharp);
}

.footer-subscribe-form__input::placeholder {
  color: #64748b;
}

.footer-subscribe-form__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.footer-subscribe-form__btn {
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sharp);
  cursor: pointer;
  transition: background var(--ease), transform 0.15s ease;
}

.footer-subscribe-form__btn:hover {
  background: #15803d;
}

.footer-subscribe-form__btn:active {
  transform: translateY(1px);
}

.footer-connect-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.footer-connect-list li {
  margin-bottom: 0.45rem;
}

.footer-connect-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(241, 245, 249, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-connect-list a:hover {
  color: #86efac;
}

.footer-connect-list .bi {
  font-size: 1rem;
  opacity: 0.85;
  color: rgba(134, 239, 172, 0.9);
}

.site-footer__address {
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.95);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sharp);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.footer-social--footer {
  margin-bottom: 0;
}

.site-footer__colophon {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.site-footer__developer {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.9);
  white-space: nowrap;
}

.site-footer__developer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.site-footer__developer a:hover {
  color: #e2e8f0;
  border-bottom-color: rgba(134, 239, 172, 0.4);
}

/* Low-contrast gear: admin entry for staff; not emphasized to casual visitors */
.site-footer__admin-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  font-size: 1rem;
  color: rgba(148, 163, 184, 0.42);
  text-decoration: none;
  border-radius: var(--radius-sharp);
  border: 1px solid transparent;
  transition:
    color var(--ease),
    background var(--ease),
    border-color var(--ease),
    opacity var(--ease);
}

.site-footer__admin-gear:hover {
  color: rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.site-footer__bottom {
  width: 100%;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(0, 0, 0, 0.22);
  padding: 1rem 0 1.25rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  text-align: left;
}

.copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(203, 213, 225, 0.82);
  flex: 1 1 auto;
  min-width: 0;
}

.copyright strong {
  color: #f1f5f9;
  font-weight: 600;
}

@media (max-width: 576px) {
  .site-footer-green {
    font-size: 0.8125rem;
  }

  .site-footer__logo {
    max-height: 2.75rem;
  }

  .site-footer__developer {
    font-size: 0.6875rem;
  }

  .footer-subscribe-form__row {
    flex-direction: column;
  }

  .footer-subscribe-form__btn {
    width: 100%;
  }
}

/* ——— Back to top ——— */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 18px;
  bottom: 18px;
  z-index: 996;
  background: var(--nav-active-bg);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sharp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 3px;
  border-bottom-color: rgba(0, 0, 0, 0.35);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.back-to-top:hover {
  background: #1e293b;
  color: #fff;
  border-bottom-color: rgba(0, 0, 0, 0.5);
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
}

/* ——— Accordion (legacy shortcodes → details) ——— */
.legacy-accordion {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sharp);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(21, 128, 61, 0.04);
}

.legacy-accordion summary {
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--white) 100%);
}

.legacy-accordion summary::before {
  content: "";
  width: 0.35rem;
  height: 1.35rem;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.legacy-accordion summary::-webkit-details-marker {
  display: none;
}

.legacy-accordion > div {
  padding: 0.9rem 1rem 1.1rem 1.85rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.entry-content.prose .legacy-featured-figure {
  margin: 0 0 1rem;
  max-width: 11.5rem;
}

.entry-content.prose .legacy-featured-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .legacy-accordion > div {
    overflow: auto;
  }

  .legacy-accordion > div .legacy-featured-figure {
    float: left;
    margin: 0 1.1rem 0.65rem 0;
  }
}

/* ——— Utilities ——— */
.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: #c0392b; font-weight: 600; }

.empty-state { text-align: center; }

.empty-state-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
}

.archive-intro {
  margin-bottom: 1.25rem;
  max-width: none;
  margin-inline: 0;
}

.cms-page-shell .archive-intro:last-child {
  margin-bottom: 0;
}

.cms-page-shell .posts-grid {
  margin-top: 0;
}
.empty-state-actions { margin-top: 1.25rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  margin: 1rem 0;
}

.admin-table th, .admin-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

/* ——— Ratiba za semina ——— */
.ratiba-page-section {
  padding-block: 0 1.5rem;
}

.ratiba-page__intro {
  margin-bottom: 1.25rem;
}

.ratiba-page__intro p:last-child {
  margin-bottom: 0;
}

/* ——— Ratiba featured: congregation poster / social-share aesthetic ——— */
.ratiba-hero {
  --poster-gold: #b8860b;
  --poster-gold-bright: #d4af37;
  --poster-green-ink: #0c1f14;
  --poster-green: #14532d;
  --poster-green-mid: #166534;
  --poster-cream: #faf6ef;
  --poster-cream-deep: #f0e8d8;
  --poster-ink: #1a1612;
  --poster-muted: #5c5346;
  --poster-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --poster-font-caps: "Cinzel", "Times New Roman", serif;

  margin: 0 auto 2.5rem;
}

/* Full content width; landscape poster = former portrait proportions swapped (w:h :: 17:13 target) */
.ratiba-hero--full.ratiba-hero--landscape {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.ratiba-hero__shell {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 3px solid var(--poster-gold-bright);
  box-shadow:
    0 0 0 1px var(--poster-green),
    0 0 0 5px var(--poster-cream-deep),
    0 22px 50px -12px rgba(12, 31, 20, 0.35),
    0 8px 24px rgba(15, 23, 42, 0.12);
  background: var(--poster-cream);
  width: 100%;
}

/* Fixed-ratio shell when not full-bleed (portrait ~13:17 w×h → landscape 17:13 w×h) */
.ratiba-hero--landscape:not(.ratiba-hero--full) .ratiba-hero__shell {
  aspect-ratio: 17 / 13;
  max-width: min(100%, 52rem);
  margin-inline: auto;
}

.ratiba-hero__logo-wheel {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: radial-gradient(circle at 35% 25%, #fffef8 0%, #f5f0e6 55%, #e8dfc8 100%);
  border: 3px solid var(--poster-gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 20px rgba(0, 0, 0, 0.35);
}

.ratiba-hero--landscape .ratiba-hero__logo-wheel {
  width: auto;
  max-width: 11.5rem;
  height: auto;
  min-height: 0;
  aspect-ratio: unset;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}

.ratiba-hero__logo {
  width: 100%;
  height: 100%;
  max-height: 4.85rem;
  width: auto;
  object-fit: contain;
}

.ratiba-hero--landscape .ratiba-hero__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(2.5rem, 4.5vw, 3.65rem);
}

.ratiba-hero__masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem 1.15rem;
  align-items: center;
  margin: -1.1rem -1.25rem 0.65rem;
  padding: 0.85rem 1.25rem 0.95rem;
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.99) 0%, rgba(252, 248, 240, 0.96) 55%, rgba(248, 242, 232, 0.94) 100%);
  border-bottom: 2px solid rgba(184, 134, 11, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ratiba-hero__masthead-brand {
  flex-shrink: 0;
}

.ratiba-hero__masthead-main {
  min-width: 0;
  text-align: center;
}

.ratiba-hero__masthead-main .ratiba-hero__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--poster-muted);
  text-shadow: none;
}

.ratiba-hero__masthead-main .ratiba-hero__heading {
  margin: 0;
  color: var(--poster-ink);
  text-shadow: none;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.ratiba-hero__masthead-status {
  flex-shrink: 0;
  align-self: center;
}

.ratiba-hero__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.52rem 1.05rem;
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--sem-status-upcoming-ink);
  background: var(--sem-status-upcoming-gradient);
  border: 1px solid var(--sem-status-upcoming-border);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08), 0 2px 14px var(--sem-status-upcoming-shadow);
  text-align: center;
  line-height: 1.25;
}

.ratiba-hero__status-icon {
  font-size: 1.28rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.95;
}

.ratiba-hero__status--upcoming {
  color: var(--sem-status-upcoming-ink);
  border-color: var(--sem-status-upcoming-border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08), 0 3px 16px var(--sem-status-upcoming-shadow);
}

.ratiba-hero__status--upcoming .ratiba-hero__status-icon {
  color: var(--sem-status-upcoming-icon);
}

.ratiba-hero__status--live {
  background: var(--sem-status-live-gradient);
  color: var(--sem-status-live-ink);
  border-color: var(--sem-status-live-border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06), 0 3px 20px var(--sem-status-live-shadow);
}

.ratiba-hero__status--live .ratiba-hero__status-icon {
  color: var(--sem-status-live-icon);
}

.ratiba-hero__status-pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sem-status-live-pulse);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5);
  animation: ratiba-pulse 1.8s ease-out infinite;
}

@keyframes ratiba-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.45);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(21, 128, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0);
  }
}

.ratiba-hero--landscape .ratiba-hero__sheet {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ratiba-hero__sheet {
  position: relative;
  z-index: 0;
  padding: 1.1rem 1.25rem 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 28%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(184, 134, 11, 0.06) 23px,
      rgba(184, 134, 11, 0.06) 24px
    ),
    linear-gradient(165deg, #fffef9 0%, var(--poster-cream) 38%, var(--poster-cream-deep) 100%);
}

.ratiba-hero__sheet::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  z-index: 0;
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

.ratiba-hero__sheet > * {
  position: relative;
  z-index: 1;
}

.ratiba-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--poster-font-caps);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--poster-gold);
}

.ratiba-hero__heading {
  margin: 0;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-family: var(--poster-font-display);
  font-weight: 700;
  font-style: normal;
  color: var(--poster-ink);
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.ratiba-hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.95rem 0 1rem;
  color: var(--poster-gold);
}

.ratiba-hero--landscape .ratiba-hero__ornament {
  margin: 0.35rem 0 0.5rem;
}

.ratiba-hero--landscape .ratiba-hero__ornament::before,
.ratiba-hero--landscape .ratiba-hero__ornament::after {
  max-width: none;
}

.ratiba-hero__ornament::before,
.ratiba-hero__ornament::after {
  content: "";
  flex: 1;
  max-width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--poster-gold), transparent);
  opacity: 0.85;
}

.ratiba-hero__ornament-dot {
  display: block;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--poster-gold-bright);
  border: 1px solid var(--poster-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.ratiba-hero__blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ratiba-hero--landscape .ratiba-hero__blocks {
  flex: 1;
}

.ratiba-hero__blocks--cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.45rem 1.25rem;
  align-items: stretch;
}

@media (min-width: 721px) {
  .ratiba-hero__blocks--cols {
    /* When slightly narrow, Where compact, Wahusika wider — reduces squeeze + dead space */
    grid-template-columns: minmax(12rem, 1fr) minmax(10.5rem, 0.82fr) minmax(15.5rem, 1.35fr);
  }
}

.ratiba-hero__blocks--cols .ratiba-hero__panel {
  margin: 0;
  padding: 0.2rem 0 0.35rem;
  border-radius: 0;
  border: none;
  border-top: none;
  border-inline-start: 1px solid rgba(184, 134, 11, 0.42);
  padding-inline-start: 1rem;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel:first-child {
  border-inline-start: none;
  padding-inline-start: 0;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel--span-full {
  grid-column: 1 / -1;
  border-inline-start: none;
  padding-inline-start: 0;
  border-top: 1px solid rgba(184, 134, 11, 0.38);
  padding-top: 0.55rem;
  margin-top: 0.15rem;
}

.ratiba-hero__panel {
  margin: 0;
  padding: 0.85rem 0 0.95rem;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(184, 134, 11, 0.38);
  background: transparent;
  box-shadow: none;
}

.ratiba-hero__panel:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ratiba-hero__panel--when {
  border-top: none;
  padding-top: 0;
  padding-bottom: 0.35rem;
  text-align: center;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel--when {
  text-align: start;
}

.ratiba-hero__panel--where,
.ratiba-hero__panel--who,
.ratiba-hero__panel--message {
  background: transparent;
}

.ratiba-hero__panel--message {
  border-left: none;
  padding-left: 0;
}

.ratiba-hero__message-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.65rem 1.35rem;
  width: 100%;
  min-width: 0;
}

.ratiba-hero__panel--message .ratiba-hero__panel-title--message {
  margin: 0;
  flex: 0 0 auto;
  max-width: 10.5rem;
  text-align: start;
  align-self: flex-start;
}

.ratiba-hero__panel-title {
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  font-weight: 700;
  font-family: var(--poster-font-caps);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--poster-gold);
}

.ratiba-hero__blocks--cols .ratiba-hero__panel-title {
  justify-content: flex-start;
}

.ratiba-hero__panel--when .ratiba-hero__panel-title {
  color: var(--poster-muted);
  letter-spacing: 0.16em;
}

.ratiba-hero__panel-title i {
  font-size: 0.85rem;
  color: var(--poster-gold);
  opacity: 0.9;
}

.ratiba-hero__panel--where .ratiba-hero__panel-title i {
  color: var(--poster-gold);
}

.ratiba-hero__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
}

.ratiba-hero__when-compact {
  display: flex;
  align-items: stretch;
  gap: 0.55rem 0.85rem;
  flex: 0 0 auto;
}

.ratiba-hero__when-block {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ratiba-hero__field-k--when-block {
  margin: 0 0 0.4rem;
}

.ratiba-hero__when-split {
  width: 1px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 4.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(184, 134, 11, 0.45) 12%,
    rgba(184, 134, 11, 0.55) 50%,
    rgba(184, 134, 11, 0.45) 88%,
    transparent 100%
  );
}

.ratiba-hero__when-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.ratiba-hero__when-stack .ratiba-hero__who-label:not(:first-child) {
  margin-top: 0.42rem;
}

.ratiba-hero__when-stack .ratiba-hero__who-value {
  word-break: break-word;
  margin-bottom: 0.08rem;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel--who {
  flex: 1 1 auto;
}

.ratiba-hero__who-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 0.85rem;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
}

.ratiba-hero__who-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.2rem 0.35rem 0.25rem 0.55rem;
  border-inline-start: 1px solid rgba(184, 134, 11, 0.38);
}

.ratiba-hero__who-col:first-child {
  border-inline-start: none;
  padding-inline-start: 0;
}

.ratiba-hero__who-label {
  font-family: var(--poster-font-caps);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--poster-muted);
}

.ratiba-hero__who-value {
  font-family: var(--poster-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--poster-ink);
}

.ratiba-hero__field {
  min-width: 0;
}

.ratiba-hero__field-k {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  font-family: var(--poster-font-caps);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--poster-muted);
  margin-bottom: 0.35rem;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel-fill {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel-fill--center {
  justify-content: center;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel-fill--start {
  justify-content: flex-start;
}

.ratiba-hero__field-v {
  display: block;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-family: var(--poster-font-display);
  font-weight: 600;
  color: var(--poster-ink);
  line-height: 1.35;
}

.ratiba-hero__pair-divider {
  width: 1px;
  align-self: stretch;
  min-height: 2.75rem;
  margin: 1.15rem 0 0;
  background: linear-gradient(180deg, transparent, var(--poster-gold) 20%, var(--poster-gold) 80%, transparent);
  opacity: 0.55;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel--where .ratiba-hero__where-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 0;
}

.ratiba-hero__blocks--cols .ratiba-hero__panel--where-venue-only .ratiba-hero__where-body {
  justify-content: center;
}

.ratiba-hero__where-body {
  min-width: 0;
}

.ratiba-hero__where-primary {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-family: var(--poster-font-display);
  font-weight: 600;
  line-height: 1.4;
  color: var(--poster-ink);
  text-align: center;
}

.ratiba-hero__blocks--cols .ratiba-hero__where-primary {
  text-align: start;
}

.ratiba-hero__where-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  padding-top: 0.35rem;
  border-top: none;
}

.ratiba-hero__blocks--cols .ratiba-hero__where-row {
  justify-content: flex-start;
}

.ratiba-hero__panel--where-venue-only .ratiba-hero__where-row {
  padding-top: 0;
}

.ratiba-hero__where-k {
  font-size: 0.55rem;
  font-weight: 600;
  font-family: var(--poster-font-caps);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--poster-muted);
}

.ratiba-hero__where-v {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--poster-font-display);
  color: var(--poster-ink);
}

.ratiba-hero__dl {
  margin: 0;
}

.ratiba-hero__dl-row {
  display: grid;
  grid-template-columns: minmax(5rem, 6.5rem) minmax(0, 1fr);
  gap: 0.25rem 0.65rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.ratiba-hero__dl-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ratiba-hero__dl-row:first-child {
  padding-top: 0;
}

.ratiba-hero__dl-row dt {
  margin: 0;
  font-size: 0.55rem;
  font-weight: 600;
  font-family: var(--poster-font-caps);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--poster-muted);
}

.ratiba-hero__dl-row dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--poster-font-display);
  line-height: 1.45;
  color: var(--poster-ink);
}

.ratiba-hero__message-body {
  margin: 0;
  font-size: 0.88rem;
  font-style: italic;
  font-family: var(--poster-font-display);
  line-height: 1.5;
  color: var(--poster-ink);
  text-align: start;
}

.ratiba-hero__message-row .ratiba-hero__message-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ratiba-hero__poster-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(184, 134, 11, 0.35);
}

.ratiba-hero--landscape .ratiba-hero__poster-foot {
  margin-top: 0.5rem;
}

.ratiba-hero__poster-foot-rule {
  flex: 1;
  max-width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--poster-gold), transparent);
}

.ratiba-hero__poster-foot-name {
  font-family: var(--poster-font-caps);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--poster-muted);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ratiba-hero--landscape:not(.ratiba-hero--full) {
    max-width: none;
  }

  .ratiba-hero--landscape .ratiba-hero__masthead {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
    margin: -1.1rem -1.25rem 0.55rem;
    padding: 1rem 1.1rem 1rem;
  }

  .ratiba-hero--landscape .ratiba-hero__masthead-main {
    order: 2;
  }

  .ratiba-hero--landscape .ratiba-hero__masthead-brand {
    order: 1;
  }

  .ratiba-hero--landscape .ratiba-hero__masthead-status {
    order: 3;
  }

  .ratiba-hero--landscape .ratiba-hero__logo-wheel {
    max-width: 10.5rem;
  }

  .ratiba-hero--landscape .ratiba-hero__logo {
    max-height: 3.5rem;
  }

  .ratiba-hero--landscape .ratiba-hero__ornament::before,
  .ratiba-hero--landscape .ratiba-hero__ornament::after {
    max-width: 5rem;
  }

  .ratiba-hero__blocks--cols {
    grid-template-columns: 1fr;
  }

  .ratiba-hero__blocks--cols .ratiba-hero__panel {
    border-inline-start: none;
    padding-inline-start: 0;
    border-top: 1px solid rgba(184, 134, 11, 0.38);
    padding-top: 0.55rem;
  }

  .ratiba-hero__blocks--cols .ratiba-hero__panel:first-child {
    border-top: none;
    padding-top: 0.15rem;
  }

  .ratiba-hero__blocks--cols .ratiba-hero__panel--span-full {
    margin-top: 0;
  }

  .ratiba-hero__who-cols {
    grid-template-columns: 1fr;
  }

  .ratiba-hero__who-col {
    min-height: 0;
    border-inline-start: none;
    border-top: 1px solid rgba(184, 134, 11, 0.32);
    padding-inline-start: 0;
    padding-top: 0.45rem;
  }

  .ratiba-hero__who-col:first-child {
    border-top: none;
    padding-top: 0.2rem;
  }

  .ratiba-hero__message-row {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .ratiba-hero__panel--message .ratiba-hero__panel-title--message {
    max-width: none;
  }

  .ratiba-hero__message-row .ratiba-hero__message-body {
    width: 100%;
  }

  .ratiba-hero__when-compact {
    flex-direction: column;
    align-items: stretch;
  }

  .ratiba-hero__when-split {
    width: 100%;
    height: 1px;
    min-height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(184, 134, 11, 0.45) 15%,
      rgba(184, 134, 11, 0.55) 50%,
      rgba(184, 134, 11, 0.45) 85%,
      transparent 100%
    );
  }

  .ratiba-hero__blocks--cols .ratiba-hero__panel--where .ratiba-hero__where-body {
    justify-content: flex-start;
  }

  .ratiba-hero__pair {
    grid-template-columns: 1fr;
  }

  .ratiba-hero__pair-divider {
    display: none;
  }

  .ratiba-hero__panel--when .ratiba-hero__field-v {
    font-size: 1.08rem;
  }

  .ratiba-hero__dl-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ratiba-hero__status-pulse {
    animation: none;
  }
}

.ratiba-block {
  margin-bottom: 2rem;
}

.ratiba-block--archive {
  margin-bottom: 0.5rem;
}

.ratiba-block__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--text-dark);
}

.ratiba-block--archive .ratiba-block__title {
  color: var(--muted);
  font-size: 1rem;
}

.ratiba-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sharp);
  border: 1px solid var(--border);
  background: var(--white);
}

.ratiba-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ratiba-table th,
.ratiba-table td {
  padding: 0.55rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ratiba-table th {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--section-bg);
}

.ratiba-table tbody tr:last-child td {
  border-bottom: none;
}

.ratiba-table tbody tr:hover td {
  background: var(--accent-soft);
}

.ratiba-table--muted tbody tr:hover td {
  background: rgba(248, 250, 252, 0.8);
}

.ratiba-table--muted td,
.ratiba-table--muted th {
  color: var(--muted);
}

.ratiba-table--muted tbody tr.ratiba-table__row--past td {
  color: #b91c1c;
  text-decoration: line-through;
}

.ratiba-table--muted tbody tr.ratiba-table__row--past:hover td {
  background: rgba(185, 28, 28, 0.07);
}

.ratiba-page__empty {
  margin: 0.5rem 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Admin portal — inside main site layout (light theme, site tokens)
   -------------------------------------------------------------------------- */

/* Bleed to the white panel edges (must match .content-frame__padding-inline) */
.content-frame__panel:has(.admin-portal) {
  overflow-x: visible;
}

.admin-portal {
  --ap-sidebar-w: 14rem;
  --ap-radius: 12px;
  --ap-radius-sm: 8px;
  --ap-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 24px rgba(15, 23, 42, 0.06);
  --ap-shadow-hover: 0 8px 28px rgba(21, 128, 61, 0.1);
  font-size: 0.9375rem;
  color: var(--text);
  box-sizing: border-box;
  margin-inline: calc(-1 * var(--container-pad));
  width: calc(100% + 2 * var(--container-pad));
  max-width: none;
}

.admin-portal--login {
  margin: 0;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.admin-portal__login-card {
  width: min(100%, 26.5rem);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
}

.admin-portal--login .admin-login-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.admin-portal--login .admin-hint {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.admin-portal--login .admin-hint code {
  font-size: 0.82em;
  background: var(--section-bg);
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.admin-portal--login .admin-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--ap-radius-sm);
}

.admin-portal--login .admin-login-footer {
  margin: 1.35rem 0 0;
  font-size: 0.9rem;
}

.admin-portal--login .admin-login-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.admin-portal__grid {
  display: grid;
  grid-template-columns: var(--ap-sidebar-w) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: min(55vh, 36rem);
  min-width: 0;
}

.admin-portal__sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--white) 0%, var(--accent-soft) 120%);
  border-right: 1px solid var(--border);
  padding: 0.5rem 0 0.75rem;
  min-width: 0;
  z-index: 1;
}

.admin-portal__sidebar-head {
  padding: 1rem 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.admin-portal__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--ease);
}

.admin-portal__brand:hover {
  opacity: 0.88;
}

.admin-portal__brand-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(21, 128, 61, 0.12);
}

.admin-portal__brand-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.admin-portal__brand-muted {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.admin-portal__sidebar-user {
  margin: 0.55rem 0 0;
  padding: 0.28rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--section-bg);
  border-radius: var(--ap-radius-sm);
  border: 1px solid var(--border);
  word-break: break-word;
}

.admin-portal__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.65rem;
  overflow-y: auto;
}

.admin-portal__nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.85rem;
  border-radius: var(--ap-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  border: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.admin-portal__nav-link i {
  font-size: 1.15rem;
  opacity: 0.88;
  color: var(--muted);
}

.admin-portal__nav-link:hover {
  background: var(--white);
  border-color: var(--border);
}

.admin-portal__nav-link:hover i {
  color: var(--accent);
}

.admin-portal__nav-link.is-active {
  background: var(--white);
  border-color: rgba(21, 128, 61, 0.22);
  color: var(--green-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.admin-portal__nav-link.is-active i {
  color: var(--accent);
  opacity: 1;
}

.admin-portal__nav-link--ghost {
  color: var(--muted);
}

.admin-portal__nav-link--danger {
  color: #b91c1c;
}

.admin-portal__nav-link--danger i {
  color: #b91c1c;
}

.admin-portal__nav-link--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.admin-portal__sidebar-foot {
  padding: 0.75rem 0.65rem 0.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-portal__workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 12rem;
  background: var(--section-bg);
}

.admin-portal__topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.admin-portal__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--ap-radius-sm);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.admin-portal__menu-btn i {
  font-size: 1.35rem;
}

.admin-portal__menu-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.admin-portal__page-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.admin-portal__body {
  flex: 1;
  padding: 0.65rem 0.85rem 1.5rem;
  min-width: 0;
  min-height: 10rem;
}

.admin-portal__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.admin-portal__backdrop:not([hidden]) {
  display: block;
  animation: adminPortalBackdropIn 0.22s ease forwards;
}

@keyframes adminPortalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ——— Panels, forms, tables (light) ——— */

.admin-portal .admin-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: clamp(0.85rem, 1.8vw, 1.1rem) clamp(0.9rem, 2vw, 1.2rem);
  max-width: min(56rem, 100%);
}

.admin-portal .admin-panel-wide {
  max-width: min(44rem, 100%);
}

.admin-portal .admin-panel-narrow {
  max-width: min(28rem, 100%);
}

.admin-portal .admin-panel--settings-full {
  max-width: none;
  width: 100%;
}

.admin-portal .admin-panel-list {
  max-width: min(72rem, 100%);
}

.admin-portal .admin-inline-edit-card {
  margin: 0.65rem 0 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 2px solid var(--accent);
  border-radius: var(--ap-radius);
  background: linear-gradient(180deg, rgba(21, 128, 61, 0.06) 0%, var(--white) 38%);
  box-shadow:
    0 0 0 1px rgba(21, 128, 61, 0.2),
    0 0 28px rgba(21, 128, 61, 0.22),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.admin-portal .admin-table-row-form td {
  background: var(--section-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.55rem 0.85rem;
  vertical-align: top;
}

.admin-portal .admin-table-row-form .admin-inline-edit-card {
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.admin-portal .admin-btn-sm {
  padding: 0.38rem 0.72rem;
  font-size: 0.8125rem;
  gap: 0.35rem;
}

.admin-portal .admin-toolbar--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.admin-portal .admin-posts-by-year {
  margin-top: 0.85rem;
}

.admin-portal .admin-posts-by-year__title {
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.admin-portal .admin-posts-by-year__title i {
  color: var(--accent);
}

.admin-portal .admin-posts-by-year__hint {
  margin: 0 0 1rem;
}

.admin-portal .admin-ratiba-cards {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-portal .admin-ratiba-card {
  border: 1px solid var(--border);
  border-radius: var(--ap-radius);
  background: var(--white);
  box-shadow: var(--ap-shadow);
  overflow: hidden;
}

.admin-portal .admin-ratiba-card--past {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, var(--white) 3rem);
}

.admin-portal .admin-ratiba-card__head {
  padding: 0.75rem 1rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: var(--section-bg);
}

.admin-portal .admin-ratiba-card--active .admin-ratiba-card__head {
  border-bottom-color: rgba(21, 128, 61, 0.18);
}

.admin-portal .admin-ratiba-card__title {
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.admin-portal .admin-ratiba-card__title i {
  color: var(--accent);
}

.admin-portal .admin-ratiba-card--past .admin-ratiba-card__title i {
  color: var(--muted);
}

.admin-portal .admin-ratiba-card__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-portal .admin-ratiba-card__body {
  padding: 0 0.35rem 0.65rem;
}

.admin-portal .admin-ratiba-card__body > .admin-table-wrap {
  margin: 0 -0.35rem;
}

.admin-portal .admin-ratiba-card__empty {
  margin: 0.75rem 0.65rem 0.85rem;
}

.admin-portal tr.admin-ratiba-row--past td:not(.admin-ratiba-row__actions) {
  color: #b91c1c;
  text-decoration: line-through;
}

.admin-portal tr.admin-ratiba-row--past td.admin-ratiba-row__actions .admin-btn {
  color: var(--accent);
  text-decoration: none;
}

.admin-portal .admin-ratiba-row__edit-off {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 0;
  padding: 0.14rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
  cursor: not-allowed;
  user-select: none;
  opacity: 0.72;
  border: 1px dashed var(--border);
  border-radius: 4px;
  background: var(--section-bg);
}

.admin-portal .admin-ratiba-row__edit-off i {
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.85;
}

.admin-portal .admin-year-block {
  border: 1px solid var(--border);
  border-radius: var(--ap-radius-sm);
  margin-bottom: 0.5rem;
  background: var(--white);
  overflow: hidden;
}

.admin-portal .admin-year-block__summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--section-bg);
}

.admin-portal .admin-year-block__summary::-webkit-details-marker {
  display: none;
}

.admin-portal .admin-year-block__count {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9em;
}

.admin-portal .admin-year-block > .admin-table-wrap {
  padding: 0 0.35rem 0.65rem;
}

.admin-portal .admin-table td .admin-btn {
  text-decoration: none;
  white-space: nowrap;
}

.admin-portal .admin-table td .admin-btn:hover {
  text-decoration: none;
}

.admin-portal .admin-lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.admin-portal .admin-section {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-portal .admin-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

.admin-portal .admin-section__title {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.admin-portal .admin-section__title i {
  color: var(--accent);
  font-size: 1.15rem;
}

.admin-portal .admin-section__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-portal .admin-hint--section {
  margin: -0.35rem 0 0.85rem;
}

.admin-portal .admin-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.admin-portal .admin-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--ap-radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ap-shadow);
  transition: border-color var(--ease), box-shadow var(--ease), transform 0.22s ease;
}

.admin-portal .admin-tile:hover {
  border-color: rgba(21, 128, 61, 0.28);
  box-shadow: var(--ap-shadow-hover);
  transform: translateY(-2px);
}

.admin-portal .admin-tile-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

.admin-portal .admin-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-portal .admin-tile-stat {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.admin-portal .admin-toolbar {
  margin-bottom: 0.65rem;
}

.admin-portal .admin-actions-row {
  margin: 0;
}

.admin-portal .admin-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.admin-portal .admin-field-hint {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.admin-portal .admin-field-hint code {
  font-size: 0.88em;
  background: var(--section-bg);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.admin-portal .admin-field-hint--block {
  display: block;
  width: 100%;
  margin-bottom: 0.35rem;
}

.admin-portal .tox-tinymce {
  border-radius: var(--ap-radius-sm) !important;
  border-color: var(--border) !important;
  margin-top: 0.25rem;
}

.admin-portal .tox .tox-edit-area__iframe {
  background-color: var(--white);
}

.admin-portal .admin-field-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.admin-portal .admin-field--upload {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-portal .admin-field--inline-gap {
  margin-top: 0.15rem;
}

.admin-portal .admin-media-preview {
  display: inline-block;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--section-bg);
  max-width: 100%;
}

.admin-portal .admin-media-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.admin-portal .admin-input--file {
  padding: 0.4rem 0.45rem;
  font-size: 0.82rem;
  line-height: 1.3;
}

.admin-portal label.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.admin-portal .admin-input {
  width: 100%;
  padding: 0.5rem 0.72rem;
  border: 1.5px solid var(--border);
  border-radius: var(--ap-radius-sm);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.admin-portal .admin-input::placeholder {
  color: #94a3b8;
}

.admin-portal .admin-input:hover {
  border-color: #cbd5e1;
}

.admin-portal .admin-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);
}

.admin-portal select.admin-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.admin-portal textarea.admin-input {
  resize: vertical;
  min-height: 4.5rem;
}

.admin-portal .admin-code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-portal .admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.admin-portal .admin-post-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.admin-portal .admin-post-form-footer .admin-form-actions {
  margin-top: 0;
}

.admin-portal .admin-post-delete-form {
  margin: 0;
}

.admin-portal .admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.15rem;
  border-radius: var(--ap-radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.admin-portal .admin-btn-block {
  width: 100%;
}

.admin-portal .admin-btn-primary {
  background: linear-gradient(165deg, var(--accent-hover) 0%, var(--accent) 45%, var(--green-dark) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.25);
}

.admin-portal .admin-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
}

.admin-portal .admin-btn-ghost {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-dark);
}

.admin-portal .admin-btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--green-dark);
}

.admin-portal .admin-btn-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: var(--white);
}

.admin-portal .admin-btn-danger:hover {
  background: #fef2f2;
  border-color: #f87171;
}

/* Jedwali: Hariri / Funga — vidogo lakini visomeke (specificity juu ya .admin-btn) */
.admin-portal .admin-btn.admin-btn-table {
  min-height: 0;
  padding: 0.14rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  gap: 0.2rem;
  border-width: 1px;
  border-radius: 4px;
}

.admin-portal .admin-btn.admin-btn-table i {
  font-size: 0.78rem;
  line-height: 1;
}

.admin-portal .admin-btn.admin-btn-edit.admin-btn-table {
  background: linear-gradient(165deg, var(--accent-hover) 0%, var(--accent) 45%, var(--green-dark) 100%);
  color: var(--white) !important;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(21, 128, 61, 0.2);
}

.admin-portal .admin-btn.admin-btn-edit.admin-btn-table:hover {
  filter: brightness(1.05);
  color: var(--white) !important;
  box-shadow: 0 1px 5px rgba(21, 128, 61, 0.26);
}

.admin-portal .admin-table td .admin-btn-ghost.admin-btn-table {
  color: var(--text-dark);
  border-color: var(--border);
  background: var(--white);
}

.admin-portal .admin-table td .admin-btn-ghost.admin-btn-table:hover {
  color: var(--green-dark);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.admin-portal .admin-table-wrap {
  overflow-x: auto;
  margin: 0 -0.35rem;
  padding: 0 0.35rem;
  border-radius: var(--ap-radius-sm);
}

.admin-portal .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-portal .admin-table th,
.admin-portal .admin-table td {
  padding: 0.28rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-portal .admin-table th {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--section-bg);
}

.admin-portal .admin-table tbody tr:hover td {
  background: var(--accent-soft);
}

.admin-portal .admin-table a {
  font-weight: 600;
  color: var(--accent);
}

.admin-portal .admin-table a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.admin-portal .admin-table code {
  font-size: 0.82em;
  background: var(--section-bg);
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.admin-portal .admin-table-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem !important;
}

.admin-portal .admin-ratiba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-portal .admin-ratiba-import {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--ap-radius-sm);
  background: var(--section-bg);
}

.admin-portal .admin-ratiba-import__summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-portal .admin-ratiba-import__summary i {
  color: var(--accent);
  font-size: 1.15rem;
}

.admin-portal .admin-ratiba-import__form {
  margin-top: 1rem;
}

.admin-portal .admin-hint {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.admin-portal .admin-hint code {
  font-size: 0.88em;
  background: var(--section-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.admin-portal .admin-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--ap-radius-sm);
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-portal .admin-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 700px) {
  .admin-portal .admin-ratiba-grid {
    grid-template-columns: 1fr;
  }
}

/* Phones: drawer nav (sidebar above site chrome). Tablets/desktop: two columns. */
@media (max-width: 767px) {
  .admin-portal {
    margin-inline: calc(-1 * var(--container-pad));
    width: calc(100% + 2 * var(--container-pad));
  }

  .admin-portal__grid {
    grid-template-columns: 1fr;
  }

  .admin-portal__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(17.5rem, 88vw);
    max-width: 100%;
    z-index: 10050;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
    padding-top: env(safe-area-inset-top, 0);
    border-right: 1px solid var(--border);
  }

  .admin-portal__sidebar.is-open {
    transform: translateX(0);
  }

  .admin-portal__menu-btn {
    display: inline-flex;
  }

  body.admin-sidebar-open {
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .admin-portal__sidebar {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: auto;
    transform: none;
    z-index: 1;
    box-shadow: none;
  }

  .admin-portal__menu-btn {
    display: none;
  }

  .admin-portal__grid {
    grid-template-columns: var(--ap-sidebar-w) minmax(0, 1fr);
  }
}

/* ——— Admin: modal (thibitisha) na toast (mafanikio) ——— */
body.admin-modal-open {
  overflow: hidden;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0));
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
  animation: admin-modal-fade-in 0.18s ease;
}

@keyframes admin-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.admin-modal {
  width: min(100%, 26rem);
  max-height: min(88vh, 32rem);
  overflow: auto;
  background: var(--white);
  border-radius: var(--ap-radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
  padding: 1.35rem 1.35rem 1.2rem;
  animation: admin-modal-pop-in 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes admin-modal-pop-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.admin-modal__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.admin-modal__message {
  margin: 0 0 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
}

.admin-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.admin-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--ap-radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.admin-modal__btn--ghost {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-dark);
}

.admin-modal__btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--green-dark);
}

.admin-modal__btn--primary {
  background: linear-gradient(165deg, var(--accent-hover) 0%, var(--accent) 45%, var(--green-dark) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.25);
}

.admin-modal__btn--primary:hover {
  filter: brightness(1.05);
}

.admin-modal__btn--danger {
  background: var(--white);
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-modal__btn--danger:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.admin-toast-host {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0));
  right: max(1rem, env(safe-area-inset-right, 0));
  left: auto;
  z-index: 10200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.admin-toast-host .admin-toast {
  pointer-events: auto;
}

.admin-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.78rem 0.6rem 0.78rem 0.85rem;
  border-radius: var(--ap-radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.admin-toast--in {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast--out {
  opacity: 0;
  transform: translateY(6px);
}

.admin-toast--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.admin-toast--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.admin-toast--info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.admin-toast__icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  margin-top: 0.06rem;
}

.admin-toast--success .admin-toast__icon {
  color: var(--accent);
}

.admin-toast--error .admin-toast__icon {
  color: #dc2626;
}

.admin-toast--info .admin-toast__icon {
  color: #2563eb;
}

.admin-toast__text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  padding-top: 0.05rem;
}

.admin-toast__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.2rem -0.15rem -0.2rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  border-radius: 6px;
  transition: opacity var(--ease), background var(--ease);
}

.admin-toast__close:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.06);
}

