/* AE-FUNAI Design tokens - editorial public site */
:root {
  --color-primary: #0a5c18;
  --color-primary-deep: #063d10;
  --color-mint: #e4efe7;
  --color-gold: #c9a227;
  --color-gold-soft: #e8d48a;
  --color-cream: #f3f2ef;
  --color-cream-deep: #e8e6e1;
  --color-white: #ffffff;
  --color-soft-bg: #f5f5f3;
  --color-ink: #0e0f0e;
  --color-dark-text: #141514;
  --color-muted-text: #5a5e5a;
  --color-border: #e2e3df;
  --color-muted: #5a5e5a;
  --color-success: #1f8b3d;
  --color-warning: #c68a00;
  --color-danger: #c0392b;

  --font-primary: "Outfit", system-ui, sans-serif;
  --font-editorial: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-ui: "Outfit", system-ui, sans-serif;

  --radius-card: 0;
  --radius-button: 2px;
  --radius-input: 8px;
  --btn-h: 2.75rem;

  --section-gap: clamp(4.5rem, 9vw, 7.5rem);
  --content-max-w: 1180px;
  --content-padding: 1.25rem;
  --content-padding-lg: 2.5rem;

  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-soft-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
  --header-h: 4.5rem;
}

/* -- Branded page loader -- */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #f5f5f3 0%, #ffffff 55%, #e4efe7 100%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#site-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  text-align: center;
  padding: 1.5rem;
  max-width: 20rem;
}

.site-loader__logo {
  width: 72px;
  height: auto;
  margin: 0 auto 1rem;
  animation: loader-logo 1.1s ease both;
}

.site-loader__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-deep);
  margin: 0 0 0.35rem;
  animation: loader-fade 0.9s ease 0.15s both;
}

.site-loader__sub {
  font-size: 0.85rem;
  color: var(--color-muted-text);
  margin: 0 0 1.25rem;
  animation: loader-fade 0.9s ease 0.25s both;
}

.site-loader__bar {
  height: 2px;
  width: 7rem;
  margin: 0 auto;
  background: rgba(13, 122, 31, 0.15);
  overflow: hidden;
  border-radius: 1px;
}

.site-loader__bar > span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--color-primary);
  animation: loader-bar 1.1s ease-in-out infinite;
}

body.is-loading {
  overflow: hidden;
}

@keyframes loader-logo {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes loader-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loader-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader__logo,
  .site-loader__title,
  .site-loader__sub,
  .site-loader__bar > span {
    animation: none;
  }
}

button.is-busy,
input.is-busy {
  opacity: 0.72;
  cursor: wait;
}


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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-soft-bg);
  color: var(--color-dark-text);
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

a {
  color: var(--color-primary-deep);
  text-decoration: none;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

.portal-table-wrap,
.table-wrap,
.portal-page,
.portal-main {
  max-width: 100%;
}

.container-narrow {
  margin: 0 auto;
  width: 100%;
  max-width: var(--content-max-w);
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

@media (min-width: 1024px) {
  .container-narrow {
    padding-left: var(--content-padding-lg);
    padding-right: var(--content-padding-lg);
  }
}

.section-spacing {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.bg-white { background: var(--color-white); }
.bg-cream { background: var(--color-cream); }
.bg-soft { background: var(--color-soft-bg); }

.label-ui {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.label-ui--on-dark {
  color: var(--color-gold);
}

.text-hero {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.lead,
.muted {
  color: var(--color-muted-text);
}

.empty-note {
  margin: 1rem 0 0;
}

/* -- Header / nav -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Overlay nav that blends into the hero banner */
body.has-hero-overlay .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(8, 32, 18, 0.55) 0%, rgba(8, 32, 18, 0.18) 70%, transparent 100%);
  border-bottom-color: transparent;
  backdrop-filter: none;
}

body.has-hero-overlay .site-header .brand-text,
body.has-hero-overlay .site-header .site-nav > a:not(.nav-cta) {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.has-hero-overlay .site-header .nav-toggle span {
  background: #fff;
}

body.has-hero-overlay .site-header.is-scrolled,
body.has-hero-overlay .site-header.is-nav-open {
  position: fixed;
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(16, 40, 24, 0.08);
}

body.has-hero-overlay .site-header.is-scrolled .brand-text,
body.has-hero-overlay .site-header.is-nav-open .brand-text,
body.has-hero-overlay .site-header.is-scrolled .site-nav > a:not(.nav-cta),
body.has-hero-overlay .site-header.is-nav-open .site-nav > a:not(.nav-cta) {
  color: var(--color-dark-text);
  text-shadow: none;
}

body.has-hero-overlay .site-header.is-scrolled .nav-toggle span,
body.has-hero-overlay .site-header.is-nav-open .nav-toggle span {
  background: var(--color-dark-text);
}

body.has-hero-overlay .site-header.is-scrolled .site-nav > a:not(.nav-cta):hover,
body.has-hero-overlay .site-header.is-nav-open .site-nav > a:not(.nav-cta):hover {
  color: var(--color-primary-deep);
}

body.has-hero-overlay .site-header .brand-logo {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

body.has-hero-overlay .site-header.is-scrolled .brand-logo,
body.has-hero-overlay .site-header.is-nav-open .brand-logo {
  filter: none;
}

body.has-hero-overlay .hero-slide__content {
  padding-top: calc(var(--header-h) + 1.5rem);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-editorial);
  font-weight: 700;
  color: var(--color-primary-deep);
  text-decoration: none;
  font-size: 1.05rem;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-logo {
  width: auto;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 0.92rem;
  }
}

.footer-brand-link,
.portal-brand-link,
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.footer-brand-link:hover,
.portal-brand-link:hover,
.auth-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.footer-brand-link img,
.portal-brand-link img,
.auth-logo img {
  width: auto;
  height: 2.5rem;
  object-fit: contain;
}

.auth-logo {
  margin-bottom: 1rem;
}

.auth-logo img {
  height: 4rem;
}

.auth-foot {
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--color-dark-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  line-height: 1;
}

.site-nav a:hover {
  color: var(--color-primary-deep);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  padding: 0 1.2rem;
  min-height: 2.4rem;
  line-height: 1;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-button);
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.site-nav .nav-cta:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.nav-inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.site-nav .nav-login,
.site-nav .nav-text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 0.65rem 0.6rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 60;
  border-radius: 0.2rem;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.has-hero-overlay .site-header .nav-toggle {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

body.has-hero-overlay .site-header .nav-toggle span {
  background: #fff;
}

body.has-hero-overlay .site-header.is-scrolled .nav-toggle,
body.has-hero-overlay .site-header.is-nav-open .nav-toggle {
  background: var(--color-white);
  border-color: var(--color-border);
}

body.has-hero-overlay .site-header.is-scrolled .nav-toggle span,
body.has-hero-overlay .site-header.is-nav-open .nav-toggle span {
  background: var(--color-dark-text);
}

.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(0.52rem) rotate(45deg);
}

.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-0.52rem) rotate(-45deg);
}

.site-header--po.is-nav-open .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header--po.is-nav-open .nav-toggle__bars i:nth-child(2) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-header--po .nav-toggle__bars i {
  transition: transform 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    padding-right: 0.5rem;
  }

  .brand-text {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 11.5rem);
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 32px rgba(16, 40, 24, 0.12);
    padding: 0.35rem 0 1rem;
    max-height: min(78vh, calc(100dvh - var(--header-h)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 55;
  }

  .is-nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem var(--content-padding);
    font-size: 1rem;
    color: var(--color-dark-text);
    text-shadow: none;
    border-bottom: 1px solid rgba(16, 40, 24, 0.06);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav .nav-cta {
    margin: 0.75rem var(--content-padding) 0.25rem;
    text-align: center;
    border-bottom: 0;
  }

  body.is-nav-locked {
    overflow: hidden;
  }
}

/* -- Footer -- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 2.5rem 0 1.5rem;
  color: var(--color-muted-text);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.footer-brand-block {
  max-width: 28rem;
}

.footer-brand {
  font-family: var(--font-editorial);
  font-weight: 700;
  color: var(--color-dark-text);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.35rem;
  justify-content: flex-start;
}

@media (min-width: 900px) {
  .footer-links {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
}

.footer-links a {
  color: var(--color-dark-text);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* -- Buttons -- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-text,
.btn-danger,
.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 0 1.35rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.btn-text:focus-visible,
.btn-danger:focus-visible,
.btn-success:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-text:disabled,
.btn-danger:disabled,
.btn-success:disabled,
.btn-primary.is-disabled,
.btn-secondary.is-disabled,
.btn-ghost.is-disabled,
.btn-text.is-disabled,
.btn-danger.is-disabled,
.btn-success.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.28);
  letter-spacing: 0.08em;
}

.btn-primary:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-primary--gold {
  background: var(--color-gold);
  color: var(--color-dark-text);
}

.btn-primary--gold:hover {
  background: var(--color-gold-soft);
  color: var(--color-dark-text);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(28, 28, 28, 0.3);
  color: var(--color-dark-text);
}

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--color-dark-text);
}

.btn-secondary--on-dark {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-secondary--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.btn-text {
  min-height: auto;
  padding: 0.35rem 0;
  background: transparent;
  border-color: transparent;
  color: var(--color-primary-deep);
  letter-spacing: 0.04em;
}

.btn-text:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-danger:hover {
  background: #9b2c20;
  text-decoration: none;
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}

.btn-success:hover {
  background: #176f31;
  text-decoration: none;
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-deep);
}

/* -- Hero slider -- */
.hero-slider {
  position: relative;
  background: #000;
  overflow: hidden;
}

.hero-swiper,
.hero-slide {
  height: min(92vh, 900px);
  min-height: 560px;
}

@media (min-width: 768px) {
  .hero-swiper,
  .hero-slide {
    height: 100vh;
    min-height: 640px;
    max-height: 980px;
  }
}

.hero-slide {
  position: relative;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-ken 18s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 8, 0.35) 0%, rgba(8, 12, 8, 0.15) 35%, rgba(8, 12, 8, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 12, 8, 0.55) 0%, rgba(8, 12, 8, 0.2) 55%, transparent 100%);
}

.hero-slide__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3.5rem;
  color: #fff;
}

.hero-slide__kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1rem;
  animation: hero-rise 0.9s ease both;
}

.hero-slide__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 5.75rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  animation: hero-rise 1s ease 0.08s both;
}

.hero-slide__brand {
  display: block;
}

.hero-slide__brand-sub {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold-soft);
}

.hero-slide__tagline {
  margin: 1.1rem 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  animation: hero-rise 1s ease 0.14s both;
}

.hero-slide__desc {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  animation: hero-rise 1s ease 0.2s both;
}

.hero-slide__content .cta-row {
  animation: hero-rise 1s ease 0.28s both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-pagination {
  position: absolute !important;
  left: var(--content-padding);
  bottom: 1.25rem;
  z-index: 5;
  width: auto !important;
}

@media (min-width: 1024px) {
  .hero-pagination {
    left: var(--content-padding-lg);
  }
}

.hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--color-gold);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

@media (min-width: 900px) {
  .hero-nav {
    display: grid;
    place-items: center;
  }
}

.hero-nav--prev { left: 1rem; }
.hero-nav--next { right: 1rem; }

/* -- Homepage sections -- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.story-grid {
  display: grid;
  gap: 2.5rem;
}

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

.story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-media--portrait {
  overflow: hidden;
  background: var(--color-mint);
}

.story-media--portrait img {
  aspect-ratio: 4 / 5;
  max-height: 34rem;
  object-position: center top;
}

.exec-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.exec-chip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.exec-chip strong,
.exec-chip span {
  display: block;
}

.editorial-list {
  border-top: 1px solid var(--color-border);
}

.editorial-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 700px) {
  .editorial-row {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
  }
}

.editorial-row time {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.editorial-row h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.portrait-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.portrait-card {
  color: inherit;
  text-decoration: none;
}

.portrait-card:hover {
  text-decoration: none;
}

.portrait-card:hover h3 {
  color: var(--color-primary-deep);
}

.portrait-card__media,
.portrait-card__placeholder {
  aspect-ratio: 3 / 4;
  background: var(--color-mint);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.portrait-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.portrait-card__role {
  color: var(--color-muted-text);
  font-size: 0.95rem;
  margin: 0;
}

.portrait-card__bio {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.portrait-card__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.portrait-grid--detail {
  gap: 1.75rem;
}

.portrait-card--detail h3 {
  font-size: 1.1rem;
}

/* Homepage about */
.about-home__values {
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-home__values {
    grid-template-columns: 1fr 1fr;
  }
}

.about-home__values article h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--color-primary-deep);
}

.about-home__values article p {
  margin: 0;
  font-size: 0.95rem;
}

/* Magazine-style news */
.news-magazine {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .news-magazine {
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.news-feature__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-mint);
  margin-bottom: 1rem;
}

.news-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0.35rem 0 0.65rem;
}

.news-feature h3 a {
  color: inherit;
  text-decoration: none;
}

.news-feature h3 a:hover {
  color: var(--color-primary-deep);
}

.news-meta {
  font-size: 0.88rem;
  margin: 0.75rem 0;
}

.news-side-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-side-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.95rem;
  align-items: start;
}

.news-side-card__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-mint);
}

.news-side-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-side-card h3 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.35rem;
}

.news-side-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-side-card h3 a:hover {
  color: var(--color-primary-deep);
}

.news-side-card .muted {
  font-size: 0.9rem;
  margin: 0;
}

.news-index {
  display: grid;
  gap: 2rem;
}

.news-index__feature {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 860px) {
  .news-index__feature {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.news-index__feature-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-mint);
}

.news-index__feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-index__feature h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0.35rem 0 0.65rem;
}

.news-index__feature h2 a {
  color: inherit;
  text-decoration: none;
}

.news-index__feature h2 a:hover {
  color: var(--color-primary-deep);
}

.news-index__grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.news-index-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-index-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-mint);
}

.news-index-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-index-card h3 {
  font-size: 1.15rem;
  margin: 0.2rem 0 0.4rem;
}

.news-index-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-index-card h3 a:hover {
  color: var(--color-primary-deep);
}

.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .news-grid {
    grid-template-columns: 1.35fr 1fr;
  }
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-mint);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: 1.25rem;
}

.news-card h3 {
  font-size: 1.15rem;
}

.news-card--feature h3 {
  font-size: 1.45rem;
}

.admin-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.admin-gallery-card {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  overflow: hidden;
}

.admin-gallery-card__media {
  aspect-ratio: 4 / 3;
  background: var(--color-mint);
  overflow: hidden;
}

.admin-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-card__body {
  padding: 0.75rem 0.85rem 1rem;
}

.admin-gallery-card__body p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.admin-gallery-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.masonry {
  columns: 1;
  column-gap: 0.85rem;
}

@media (min-width: 600px) {
  .masonry { columns: 2; }
}

@media (min-width: 1000px) {
  .masonry { columns: 3; }
}

.masonry__item {
  break-inside: avoid;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  display: block;
}

.masonry__item img {
  width: 100%;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.masonry__item:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.quote-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

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

.quote-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-white);
}

.quote-card p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.quote-card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-card footer img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.quote-card footer strong,
.quote-card footer span {
  display: block;
  font-style: normal;
  font-family: var(--font-ui);
}

.final-cta {
  background:
    linear-gradient(135deg, rgba(7, 94, 23, 0.92), rgba(13, 122, 31, 0.88)),
    url("../../img/Home-Image-01.png") center/cover;
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.final-cta__inner {
  max-width: 40rem;
}

.final-cta__title {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.final-cta__desc {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

/* -- Inner pages -- */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.page-hero--mint {
  background:
    linear-gradient(135deg, rgba(13, 122, 31, 0.08), rgba(255, 204, 51, 0.18)),
    var(--color-cream);
}

.page-hero--photo {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.page-hero__panel {
  position: relative;
  z-index: 1;
  margin: 2.5rem auto;
  max-width: 28rem;
  margin-left: var(--content-padding);
  padding: 2rem 1.75rem;
}

@media (min-width: 768px) {
  .page-hero--photo {
    min-height: 440px;
  }

  .page-hero__panel {
    margin-left: var(--content-padding-lg);
    padding: 2.5rem 2.25rem;
  }
}

.page-hero__panel--gold {
  background: var(--color-gold);
  color: var(--color-dark-text);
}

.page-hero__panel--gold .label-ui {
  color: rgba(28, 28, 28, 0.7);
}

.split-12 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .split-12 {
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
  }

  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
}

.prose p {
  margin: 0 0 1rem;
}

.value-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

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

@media (min-width: 1100px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-grid article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--color-border);
  background: #fff;
}

.value-grid h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--color-primary-deep);
  min-height: 1.35em;
}

.value-grid p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.content-stack {
  display: grid;
  gap: 2rem;
}

.content-block {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 800px) {
  .content-block {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }
}

.content-block__media {
  background: var(--color-mint);
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.content-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-list {
  display: grid;
  gap: 2.5rem;
}

.leadership-row {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 700px) {
  .leadership-row {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }
}

.leadership-row__media {
  aspect-ratio: 3 / 4;
  background: var(--color-mint);
  overflow: hidden;
}

.leadership-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-stack {
  display: grid;
  gap: 1.5rem;
}

.info-stack h3 {
  margin-bottom: 0.35rem;
}

.info-stack p {
  margin: 0.15rem 0;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.faq-list details {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 1rem 1.15rem;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  margin: 0.75rem 0 0;
  color: var(--color-muted-text);
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.steps-list li {
  counter-increment: step;
  display: grid;
  gap: 0.25rem;
  padding-left: 3rem;
  position: relative;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--color-gold);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.875rem;
}

.join-cta-panel {
  max-width: 40rem;
}

.article {
  max-width: 46rem;
}

.article-cover {
  margin: 1.5rem 0;
  background: var(--color-mint);
}

.article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-video {
  margin: 1.25rem 0 1.75rem;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}

.article-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-body {
  margin-top: 1.5rem;
}

.leadership-detail__grid {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 800px) {
  .leadership-detail__grid {
    grid-template-columns: 240px 1fr;
  }
}

.leadership-detail__media {
  aspect-ratio: 3 / 4;
  background: var(--color-mint);
  overflow: hidden;
}

.leadership-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.directory-card {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 1rem;
}

.directory-card img,
.directory-card__placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-mint);
  margin-bottom: 0.85rem;
}

.directory-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.directory-card p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
}

/* -- Lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 4rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-height: min(80vh, 900px);
  max-width: min(92vw, 1100px);
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.875rem;
  max-width: 90vw;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 1.35rem;
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.85;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: #fff;
  opacity: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* -- Motion -- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  html {
    scroll-behavior: auto;
  }
}

/* -- Auth / portal (existing) -- */
.auth-section {
  min-height: 70vh;
  display: grid;
  place-items: center;
  justify-items: center;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 51, 0.25), transparent 40%),
    var(--color-cream);
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft-lg);
  padding: 2rem;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.auth-card h1 {
  overflow-wrap: normal;
  word-break: normal;
}

.auth-foot {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .auth-section {
    padding: 1rem 0.75rem 1.5rem;
    min-height: auto;
  }

  .auth-card {
    padding: 1.25rem 1rem;
    max-width: 100%;
  }
}

.stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

input:not([type]),
input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: var(--color-white);
  color: var(--color-dark-text);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.alert {
  padding: 0.75rem 1rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.auth-section--wide {
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.auth-card--lg {
  max-width: 40rem;
}

.join-panel {
  width: 100%;
  max-width: 960px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.join-panel__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.path-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .path-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.path-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-soft-bg);
  padding: 1.5rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.path-card:hover {
  background: var(--color-white);
  border-color: rgba(13, 122, 31, 0.3);
  box-shadow: var(--shadow-soft);
}

.path-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.path-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.path-card__badge {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(13, 122, 31, 0.25);
  background: var(--color-mint);
  color: var(--color-primary-deep);
  padding: 0.35rem 0.7rem;
  align-self: flex-start;
}

.path-card > .label-ui {
  margin: 0 0 0.35rem;
}

.path-card h2 {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  min-height: 2.4em;
}

.path-card__desc {
  margin: 0;
  flex: 0 0 auto;
  min-height: 4.5em;
  line-height: 1.5;
}

.path-card__points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.65rem;
  flex: 1 1 auto;
  align-content: start;
}

.path-card__points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.925rem;
  line-height: 1.35;
}

.path-card__points span {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-mint);
  color: var(--color-primary-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.path-card__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  margin-top: auto;
  min-height: 3.5rem;
  padding: 0.85rem 1.25rem;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.path-card__cta-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.82;
  line-height: 1.2;
}

.path-card__cta-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.join-panel__foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.join-panel__foot .muted {
  margin: 0;
}

@media (max-width: 640px) {
  .path-card h2,
  .path-card__desc {
    min-height: 0;
  }

  .join-panel__foot {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

.stepper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  padding-bottom: 0.25rem;
}

.stepper__item {
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  color: var(--color-muted-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
}

.stepper__item.is-active {
  border-color: var(--color-primary);
  background: rgba(13, 122, 31, 0.08);
  color: var(--color-primary-deep);
}

.notice-box {
  border: 1px solid var(--color-border);
  background: var(--color-soft-bg);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.notice-box--primary {
  border-color: rgba(13, 122, 31, 0.25);
  background: rgba(221, 238, 227, 0.55);
}

.identity-card {
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.identity-card h2 {
  margin-bottom: 1rem;
}

.identity-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.identity-dl div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.identity-dl dt {
  margin: 0;
  color: var(--color-muted-text);
  font-weight: 600;
}

.identity-dl dd {
  margin: 0;
}

.form-grid-2 {
  display: grid;
  gap: 1rem 1.25rem;
  align-items: start;
}

.form-grid-3 {
  display: grid;
  gap: 1rem 1.25rem;
  align-items: start;
}

.form-grid-2 > .field,
.form-grid-2 > div {
  min-width: 0;
}

.form-grid-2 input,
.form-grid-2 select,
.form-grid-2 textarea {
  width: 100%;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-2 .span-2 {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.success-box {
  border: 1px solid rgba(31, 139, 61, 0.3);
  background: rgba(31, 139, 61, 0.08);
  padding: 1.25rem;
  text-align: center;
}

.reg-step[hidden] {
  display: none !important;
}

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.wizard-nav__hint {
  font-size: 0.8rem;
}

.req {
  color: var(--color-danger, #c0392b);
  font-weight: 700;
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--color-danger, #c0392b);
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--color-danger, #c0392b) !important;
  box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.25);
}

.notice-box--muted {
  margin-top: 1rem;
  background: #f7f7f4;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: rgba(13, 122, 31, 0.15);
  color: var(--color-primary-deep, #0a5c18);
  font-size: 1.35rem;
  font-weight: 700;
}

.alert-success {
  background: rgba(13, 122, 31, 0.1);
  color: var(--color-primary-deep, #0a5c18);
}

.alert {
  padding: 0.75rem 1rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.alert-danger {
  background: rgba(192, 57, 43, 0.1);
  color: var(--color-danger);
}

.portal-body {
  background:
    radial-gradient(ellipse 70% 45% at 100% -10%, rgba(10, 92, 24, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(201, 162, 39, 0.05), transparent 50%),
    linear-gradient(180deg, #f7f6f3 0%, #f0efeb 100%);
  font-family: var(--font-ui);
  color: var(--color-dark-text);
  -webkit-font-smoothing: antialiased;
}

.portal {
  --portal-sidebar-w: 232px;
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--portal-sidebar-w) minmax(0, 1fr);
}

.portal-sidebar {
  color: #fff;
  padding: 1.25rem 0.95rem 1.5rem;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 40;
}

.portal-main {
  padding: clamp(1.35rem, 2.8vw, 2.25rem);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  color: var(--color-dark-text);
  position: relative;
  z-index: 1;
}

.portal-nav {
  display: grid;
  gap: 0.2rem;
}

.portal-nav-group {
  margin: 0.35rem 0;
  border: 0;
  padding: 0;
}

.portal-nav-group > summary {
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem 0.35rem;
  user-select: none;
}

.portal-nav-group > summary::-webkit-details-marker {
  display: none;
}

.portal-nav-group > summary::after {
  content: "+";
  float: right;
  opacity: 0.7;
}

.portal-nav-group[open] > summary::after {
  content: "-";
}

.portal-nav-group > a {
  margin-left: 0.15rem;
}

.portal-page {
  background: var(--color-white);
  border: 1px solid rgba(226, 227, 223, 0.95);
  border-radius: 18px;
  padding: clamp(1.35rem, 2.2vw, 2rem);
  box-shadow:
    0 1px 2px rgba(14, 15, 14, 0.04),
    0 12px 40px rgba(14, 15, 14, 0.05);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.portal-page--editorial {
  border-radius: 20px;
}

.portal-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.portal-form-wide,
.portal-page form.stack.portal-form-wide,
.portal-page form.portal-form-wide {
  width: 100%;
  max-width: none !important;
}

.portal-sidebar--member {
  background: linear-gradient(180deg, var(--color-primary-deep) 0%, #054a12 100%);
}

.portal-sidebar--admin {
  background: linear-gradient(180deg, #075e17 0%, #053f10 100%);
}

.portal-brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  color: #fff;
  text-decoration: none;
}

.portal-brand-link:hover {
  text-decoration: none;
  color: #fff;
}

.portal-brand-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.25rem;
  border-radius: 10px;
}

.portal-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}

.portal-sidebar nav {
  display: grid;
  gap: 0.3rem;
}

.portal-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.62rem 0.8rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-ui);
}

.portal-sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.portal-logout-form {
  margin: 0;
}

.portal-logout-form button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.62rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  text-align: left;
}

.portal-logout-form button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-text-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.portal-page h1,
.portal-page h2,
.portal-page h3,
.portal-page .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-dark-text);
}

.portal-page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  line-height: 0.95;
}

.portal-page > .muted {
  margin: 0 0 1.25rem;
  color: var(--color-muted-text);
  max-width: 42rem;
}

.portal-panel {
  background: var(--color-soft-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.portal-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.portal-section-title {
  margin: 2rem 0 0.75rem;
  font-size: 1rem;
}

.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 1.35rem;
}

.portal-toolbar h1 {
  margin: 0;
}

.portal-toolbar .stack-inline,
.portal-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.portal-toolbar .portal-search {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
}

.portal-toolbar .portal-search input,
.portal-toolbar .portal-search input[type="search"],
.portal-toolbar .portal-search input[type="text"] {
  width: 14rem;
  min-width: 10rem;
  max-width: 18rem;
  display: inline-block;
}

.portal-toolbar .portal-search .btn-sm,
.portal-toolbar .portal-search button {
  flex-shrink: 0;
  white-space: nowrap;
}

.portal-stats,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.stat-card {
  background: var(--color-soft-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
}

.stat-card__label,
.stat-label {
  margin: 0;
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  font-weight: 600;
}

.stat-card__value,
.stat-value {
  margin: 0.35rem 0 0;
  display: block;
  font-family: var(--font-ui);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary-deep);
}

.portal-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.portal-table-wrap--sleek {
  margin-top: 0;
  border-color: #e8e9e4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  table-layout: auto;
}

.portal-table th,
.portal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eceee9;
  text-align: left;
  vertical-align: middle;
}

.portal-table tr:last-child td {
  border-bottom: none;
}

.portal-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a6e68;
  font-weight: 650;
  background: linear-gradient(180deg, #f7f7f4 0%, #f2f3ef 100%);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.portal-table tr:hover td {
  background: rgba(10, 92, 24, 0.035);
}

.portal-table--sleek td {
  color: #1c1e1b;
}

.portal-table--matric {
  min-width: 920px;
}

.portal-table--matric .portal-table__sn {
  width: 3rem;
  white-space: nowrap;
  color: var(--color-muted-text);
  font-variant-numeric: tabular-nums;
}

.portal-table--matric .portal-table__matric {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 600;
}

.portal-table--matric .portal-table__matric a {
  color: inherit;
  text-decoration: none;
}

.portal-table--matric .portal-table__matric a:hover {
  color: var(--color-primary-deep);
  text-decoration: underline;
}

.portal-table--matric .portal-table__name {
  min-width: 10rem;
  white-space: nowrap;
}

.portal-table--matric .portal-table__faculty,
.portal-table--matric .portal-table__dept {
  min-width: 9rem;
  max-width: 14rem;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.35;
}

.portal-table--matric .portal-table__year,
.portal-table--matric .portal-table__status,
.portal-table--matric .portal-table__actions {
  white-space: nowrap;
}

.portal-table--matric .portal-table__linked {
  min-width: 11rem;
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-table--matric .portal-table__linked a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.portal-table--matric .portal-table__actions .btn-sm {
  white-space: nowrap;
  min-width: 4.25rem;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
}

.portal-table--clearance {
  min-width: 1100px;
}

.portal-table--clearance .portal-table__applicant {
  min-width: 11rem;
  max-width: 16rem;
}

.portal-table--clearance .portal-table__applicant strong {
  display: block;
  font-weight: 650;
  white-space: nowrap;
}

.portal-table--clearance .portal-table__sub {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-table--clearance .portal-table__matric {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.portal-table--clearance .portal-table__academic {
  min-width: 10rem;
  max-width: 15rem;
  line-height: 1.35;
}

.portal-table--clearance .portal-table__year,
.portal-table--clearance .portal-table__docs,
.portal-table--clearance .portal-table__pay,
.portal-table--clearance .portal-table__actions {
  white-space: nowrap;
}

.portal-table--clearance .portal-table__date {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--color-muted-text, #6a6e68);
}

.portal-table--clearance .portal-table__actions .btn-sm {
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
}

.clearance-passport-preview {
  margin: 0 0 1rem;
}

.clearance-passport-preview img {
  display: block;
  width: 7.5rem;
  height: 8.75rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e8e9e4;
  background: #f7f7f4;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid #eceee9;
}

.pagination__meta {
  margin: 0;
  font-size: 0.86rem;
}

.pagination__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9px;
  border: 1px solid #d9ddd4;
  background: #fff;
  color: #1c1e1b;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.pagination__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-deep);
  text-decoration: none;
}

.pagination__btn.is-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination__btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pagination__ellipsis {
  padding: 0 0.25rem;
  color: #8a8f88;
}

.notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 42rem;
}

.notify-list__item {
  padding: 1rem 0;
  border-bottom: 1px solid #eceee9;
}

.notify-list__item.is-unread {
  background: linear-gradient(90deg, rgba(10, 92, 24, 0.04), transparent 60%);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 10px;
}

.notify-list__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination__list {
    justify-content: center;
  }
}

.portal-table__member {
  color: var(--color-primary-deep);
  font-weight: 550;
  text-decoration: none;
}

.portal-table__member:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-table__type {
  display: inline-block;
  font-weight: 500;
  color: #2a2e28;
}

.portal-table__amount {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
  color: var(--color-ink);
}

.portal-table__currency {
  font-weight: 500;
  color: var(--color-muted);
  margin-right: 0.2rem;
  font-size: 0.8rem;
}

.portal-table__ref {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 450;
  color: #6b7168;
  background: #f4f5f1;
  border: 1px solid #e6e8e2;
  border-radius: 8px;
  padding: 0.28rem 0.5rem;
  vertical-align: middle;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: #e8eee9;
  color: #234;
  line-height: 1.2;
}

.badge--ok { background: #daf3e1; color: #0a5c18; }
.badge--warn { background: #fff0d4; color: #8a5a00; }
.badge--danger { background: #fde4e2; color: #9b1c1c; }
.badge--muted { background: #eceff1; color: #455a64; }

/* Shared filter / search bar (payments + list pages) */
.portal-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, #f8f8f5 0%, #f3f3ef 100%);
  border: 1px solid #e6e8e2;
  border-radius: 14px;
}

.portal-filter-bar__search {
  position: relative;
  flex: 1 1 16rem;
  min-width: 12rem;
  margin: 0;
}

.portal-filter-bar__icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8078;
  display: inline-flex;
  pointer-events: none;
}

.portal-filter-bar__search input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.95rem 0.7rem 2.55rem !important;
  border: 1px solid #d9ddd4 !important;
  border-radius: 11px !important;
  background: #fff !important;
  font: inherit;
  font-size: 0.92rem;
  box-shadow: 0 1px 2px rgba(14, 15, 14, 0.03);
}

.portal-filter-bar__select {
  flex: 0 1 11rem;
  margin: 0;
  min-width: 9.5rem;
}

.portal-filter-bar__select select {
  width: 100%;
  min-height: 46px;
  border-radius: 11px !important;
  border-color: #d9ddd4 !important;
  background-color: #fff !important;
  font-weight: 500;
}

.portal-filter-bar .btn-primary {
  flex: 0 0 auto;
  min-height: 46px;
  padding-inline: 1.25rem;
  align-self: stretch;
}

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

.member-directory-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.member-directory-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.95rem;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.member-directory-card__media img,
.member-directory-card__initials {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.member-directory-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mint);
  color: var(--color-primary-deep);
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  font-weight: 700;
}

.member-directory-card__body h2 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.member-directory-card__role {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary-deep);
  font-size: 0.92rem;
}

.member-directory-card__body .muted {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
}

.member-directory-card__bio {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-muted-text);
}

.portal-sidebar a.is-active {
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  color: #fff;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-sm {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.detail-item {
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.85rem;
  background: var(--color-soft-bg);
  min-width: 0;
}

.detail-item.span-2 {
  grid-column: 1 / -1;
}

.detail-item dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.detail-item dd {
  margin: 0.3rem 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.text-break {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.doc-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.portal-section {
  margin: 1.75rem 0;
  padding-top: 0.25rem;
}

.portal-section > .h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.workflow-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
  color: var(--color-muted-text);
  line-height: 1.45;
}

.workflow-list li {
  padding-left: 0.15rem;
}

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

.portal-table td,
.portal-table th {
  overflow-wrap: normal;
  word-break: normal;
}

.portal-table .text-break,
.portal-table td.is-wrap {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 16rem;
}

.id-card-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.id-card-preview {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.id-card-preview figcaption {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.id-card-preview img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #f7f7f7;
}

.id-card-preview p {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
}

.alert-success {
  background: #e8f7ec;
  color: #0b5c1d;
  border: 1px solid #b7e4c2;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.portal-empty {
  margin: 0.25rem 0 0;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--color-muted);
  background: #f8f8f5;
  border: 1px dashed #d9ddd4;
  border-radius: 14px;
  font-size: 0.95rem;
}

.portal-search {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.portal-page .stack {
  margin-top: 0;
}

.portal-page form.stack {
  gap: 1.1rem;
}

.portal-search input,
.portal-page select,
.portal-page textarea,
.portal-page input:not([type]),
.portal-page input[type="text"],
.portal-page input[type="email"],
.portal-page input[type="url"],
.portal-page input[type="tel"],
.portal-page input[type="number"],
.portal-page input[type="search"],
.portal-page input[type="date"],
.portal-page input[type="datetime-local"],
.portal-page input[type="password"],
.portal-page input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d8d4cc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-dark-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-page input[type="file"] {
  padding: 0.55rem 0.75rem;
}

.portal-page select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c5c5c' d='M1.4 0.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

.portal-page select:focus,
.portal-page textarea:focus,
.portal-page input:not([type]):focus,
.portal-page input[type="text"]:focus,
.portal-page input[type="email"]:focus,
.portal-page input[type="url"]:focus,
.portal-page input[type="tel"]:focus,
.portal-page input[type="number"]:focus,
.portal-page input[type="search"]:focus,
.portal-page input[type="date"]:focus,
.portal-page input[type="datetime-local"]:focus,
.portal-page input[type="password"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 122, 31, 0.15);
}

.portal-page label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--color-dark-text);
}

.portal-page .field {
  margin: 0;
  min-width: 0;
}

.portal-page .btn-primary,
.portal-page .btn-secondary {
  border-radius: 10px;
  width: auto;
  max-width: 100%;
}

.portal-page form > .btn-primary:not(.btn-sm) {
  min-height: 48px;
  padding-inline: 1.35rem;
  justify-self: start;
}

.portal-panel .btn-primary {
  width: 100%;
}

/* -- Portal mobile top bar (hidden on desktop) -- */
.portal-topbar {
  display: none;
}

.portal-backdrop {
  display: none;
}

.portal-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.portal-menu-btn__bars {
  display: inline-grid;
  gap: 4px;
  width: 1.05rem;
}

.portal-menu-btn__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.portal.is-sidebar-open .portal-menu-btn__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.portal.is-sidebar-open .portal-menu-btn__bars i:nth-child(2) {
  opacity: 0;
}

.portal.is-sidebar-open .portal-menu-btn__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.portal-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  min-width: 0;
}

.portal-topbar__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
}

.portal-topbar__brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-topbar__link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.portal-topbar__link:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
}

body.is-portal-locked {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 900px) {
  .portal {
    --portal-sidebar-w: min(18.5rem, 86vw);
    display: block;
  }

  .portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 0.7rem 0.85rem;
    background: linear-gradient(180deg, #075e17 0%, #053f10 100%);
    box-shadow: 0 8px 24px rgba(5, 63, 16, 0.28);
  }

  .portal-body:has(.portal-sidebar--member) .portal-topbar {
    background: linear-gradient(180deg, var(--color-primary-deep) 0%, #054a12 100%);
  }

  .portal-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(8, 12, 8, 0.48);
    backdrop-filter: blur(2px);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .portal-backdrop[hidden] {
    display: none !important;
  }

  .portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--portal-sidebar-w);
    height: 100dvh;
    max-height: 100dvh;
    z-index: 80;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .portal.is-sidebar-open .portal-sidebar {
    transform: translateX(0);
  }

  .portal-main {
    padding: 0.9rem 0.75rem 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .portal-page {
    border-radius: 14px;
    padding: 1rem 0.9rem 1.25rem;
    box-shadow: 0 8px 24px rgba(14, 15, 14, 0.05);
  }

  .portal-page h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1;
  }

  .portal-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .portal-toolbar .stack-inline,
  .portal-toolbar__actions,
  .portal-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .portal-toolbar .portal-search,
  .portal-toolbar .portal-search input,
  .portal-toolbar .portal-search input[type="search"],
  .portal-toolbar .portal-search input[type="text"] {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .portal-toolbar .portal-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .portal-toolbar .btn-sm,
  .portal-toolbar__actions > .btn-primary,
  .portal-toolbar__actions > .btn-secondary,
  .portal-actions > a,
  .portal-actions > .btn-primary,
  .portal-actions > .btn-secondary {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .portal-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    gap: 0.55rem;
  }

  .portal-filter-bar__search,
  .portal-filter-bar__select,
  .portal-filter-bar .btn-primary {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .portal-filter-bar .btn-primary {
    min-height: 46px;
  }

  .portal-table-wrap,
  .table-wrap {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .portal-table th,
  .portal-table td,
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.7rem;
    font-size: 0.86rem;
  }

  .portal-table__ref {
    max-width: 8.5rem;
  }

  .portal-table__date {
    white-space: normal;
  }

  .form-grid-2,
  .form-grid-3,
  .detail-grid,
  .stats-grid,
  .stat-grid,
  .portal-stats {
    grid-template-columns: 1fr !important;
  }

  .form-grid-2 .span-2 {
    grid-column: auto;
  }

  .upload-steps {
    padding-left: 1.15rem;
  }

  .upload-card,
  .portal-panel {
    padding: 1rem;
  }

  .admin-gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .election-page .portal-toolbar,
  .election-page .stack-inline {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .portal-menu-btn__label {
    display: none;
  }

  .portal-main {
    padding: 0.7rem 0.55rem 1.25rem;
  }

  .portal-page {
    padding: 0.9rem 0.75rem 1.1rem;
    border-radius: 12px;
  }

  .portal-table__ref {
    max-width: 6.5rem;
  }

  .badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
  }
}

/* -- Portal nav icons -- */
.nav-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: currentColor;
  opacity: 0.92;
}

.file-upload__sample .nav-icon,
.file-dropzone__icon .nav-icon {
  width: 1.35rem;
  height: 1.35rem;
}

/* -- Professional file upload -- */
.file-upload {
  display: grid;
  gap: 0.65rem;
}

.file-upload__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.file-upload__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark-text);
}

.file-upload__sample {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  text-decoration: none;
}

.file-upload__sample:hover {
  text-decoration: underline;
}

.file-upload__hint,
.file-upload__hint code {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted-text);
  line-height: 1.45;
}

.file-upload__hint code {
  font-size: 0.78rem;
  background: var(--color-soft-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.file-upload__current {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--color-soft-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.file-upload__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.file-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem;
  border: 1.5px dashed #c9c4b8;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(13, 122, 31, 0.04), transparent 60%),
    #fbfaf7;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.file-dropzone:hover,
.file-dropzone.is-dragover {
  border-color: var(--color-primary);
  background: rgba(13, 122, 31, 0.06);
  box-shadow: 0 0 0 3px rgba(13, 122, 31, 0.1);
}

.file-dropzone.has-file {
  border-style: solid;
  border-color: rgba(13, 122, 31, 0.45);
}

.file-dropzone__input {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  opacity: 0;
  cursor: pointer;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.file-dropzone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(13, 122, 31, 0.1);
  color: var(--color-primary-deep);
  margin-bottom: 0.25rem;
}

.file-dropzone__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark-text);
}

.file-dropzone__meta {
  font-size: 0.85rem;
  color: var(--color-muted-text);
}

.file-dropzone__meta em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary-deep);
}

.file-dropzone__name {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-deep);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload__preview {
  margin-top: 0.25rem;
}

.file-upload__preview img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  object-fit: cover;
}

.portal-page input[type="file"]:not(.file-dropzone__input) {
  padding: 0.85rem;
  border-style: dashed;
}

.upload-card {
  max-width: 40rem;
  display: grid;
  gap: 1.15rem;
}

.upload-steps {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--color-muted-text);
  font-size: 0.9rem;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  width: auto !important;
  min-height: 0 !important;
  margin: 0;
}

/* ============================================================
   Editorial homepage - peterobi-inspired public surface
   ============================================================ */

.site-public {
  background: var(--color-soft-bg);
}

.ed-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin: 0.35rem 0 0;
}

.ed-display--sm {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.ed-section-deck {
  max-width: 34rem;
  margin-top: 0.75rem;
}

.ed-lead {
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-dark-text);
  margin: 0 0 1rem;
}

.ed-about {
  background:
    radial-gradient(ellipse at top right, rgba(10, 92, 24, 0.06), transparent 45%),
    var(--color-white);
}

.ed-about__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .ed-about__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: end;
  }
}

.ed-about__body .muted {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.ed-feature {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  color: #fff;
  overflow: hidden;
  background: #0a0c0a;
}

@media (min-width: 900px) {
  .ed-feature {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.ed-feature__media {
  min-height: 420px;
}

.ed-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}

.ed-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(8, 14, 8, 0.2), rgba(8, 14, 8, 0.92)),
    linear-gradient(135deg, #0d3a16, #0a0c0a 60%);
}

@media (min-width: 900px) {
  .ed-feature__copy {
    background: linear-gradient(160deg, #0d3a16 0%, #0a0c0a 70%);
  }
}

.ed-feature__title {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.ed-feature__excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.ed-feature__byline {
  display: grid;
  gap: 0.15rem;
  margin: 1.5rem 0 1.75rem;
}

.ed-feature__byline strong {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
}

.ed-feature__byline span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.ed-leaders {
  background: var(--color-soft-bg);
}

.ed-leader-slider {
  position: relative;
}

.ed-leader-swiper {
  overflow: hidden;
  margin: 0;
  padding: 0 0 0.25rem;
}

.ed-leader-swiper .swiper-slide {
  height: auto;
}

.ed-leader {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.ed-leader:hover {
  text-decoration: none;
}

.ed-leader__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1f1a;
  margin-bottom: 0.85rem;
}

.ed-leader__media img,
.ed-leader__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.ed-leader__ph {
  background: linear-gradient(160deg, #24412b, #101410);
}

.ed-leader:hover .ed-leader__media img {
  transform: scale(1.05);
}

.ed-leader__index {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  font-family: var(--font-editorial);
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.08em;
}

.ed-leader h3 {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.ed-leader p {
  margin: 0;
  color: var(--color-muted-text);
  font-size: 0.9rem;
}

.ed-leader-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.ed-leader-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(14, 15, 14, 0.18);
  background: transparent;
  color: var(--color-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ed-leader-nav:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.ed-leader-nav:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.ed-leader-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto !important;
}

.ed-leader-pagination .swiper-pagination-bullet {
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 !important;
  background: rgba(14, 15, 14, 0.28);
  opacity: 1;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ed-leader-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.ed-events {
  background: var(--color-white);
}

.ed-list {
  border-top: 1px solid var(--color-border);
}

.ed-list__row {
  display: grid;
  gap: 0.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 720px) {
  .ed-list__row {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.ed-list__row time {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-muted-text);
}

.ed-list__row h3 {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.ed-list__row h3 a {
  color: inherit;
}

.ed-gallery {
  padding: var(--section-gap) 0;
  background: #0e0f0e;
  color: #fff;
}

.ed-gallery__head {
  margin-bottom: 1.75rem;
}

.ed-gallery .ed-display,
.ed-gallery .label-ui {
  color: #fff;
}

.ed-gallery .label-ui {
  opacity: 0.7;
}

.ed-gallery__stage {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ed-gallery__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(70vw, 420px);
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 var(--content-padding) 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ed-gallery__rail::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .ed-gallery__rail {
    grid-auto-columns: minmax(340px, 28vw);
    padding-left: max(var(--content-padding-lg), calc((100vw - var(--content-max-w)) / 2));
  }
}

.ed-gallery__shot {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.ed-gallery__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(0.15);
}

.ed-gallery__shot:hover img {
  transform: scale(1.03);
  filter: grayscale(0);
}

.ed-gallery__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0 var(--content-padding);
}

.ed-gallery__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ed-gallery__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.ed-gallery__dot:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.ed-lately {
  background: var(--color-white);
}

.ed-lately__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.ed-lately__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.ed-lately__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-text);
  margin-bottom: 0.45rem;
}

.ed-lately__item h3 {
  font-family: var(--font-editorial);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.ed-lately__item h3 a {
  color: inherit;
}

.ed-voices {
  background:
    linear-gradient(180deg, var(--color-soft-bg), #ebece8);
}

.ed-voices__intro {
  max-width: 38rem;
  margin-bottom: 0.5rem;
}

.ed-voices__lede {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

.ed-voices__grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .ed-voices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 3rem;
  }
}

.ed-quote {
  position: relative;
  margin: 0;
  padding: 1.75rem 0 0;
  border: 0;
  background: transparent;
  border-top: 1px solid rgba(14, 15, 14, 0.12);
}

.ed-quote__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.7;
  color: var(--color-primary);
  opacity: 0.55;
  margin-bottom: 0.85rem;
}

.ed-quote__text,
.ed-quote p {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  margin: 0 0 1.5rem;
  color: var(--color-ink);
}

.ed-quote__byline,
.ed-quote footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ed-quote__byline img,
.ed-quote footer img,
.ed-quote__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ed-quote__avatar {
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
}

.ed-quote__byline strong,
.ed-quote footer strong {
  display: block;
  font-size: 0.95rem;
}

.ed-quote__byline span,
.ed-quote footer span {
  display: block;
  font-size: 0.85rem;
}

.final-cta--editorial {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.18), transparent 40%),
    linear-gradient(160deg, #0a5c18 0%, #061a0b 55%, #050705 100%);
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.final-cta--editorial .final-cta__title {
  font-family: var(--font-editorial);
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.final-cta--editorial .final-cta__desc {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.site-footer--editorial {
  background: #0e0f0e;
  color: rgba(255, 255, 255, 0.68);
  border-top: 0;
}

.site-footer--editorial .footer-brand,
.site-footer--editorial .footer-links a {
  color: #fff;
}

.site-footer--editorial .footer-links a:hover {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer--editorial .muted,
.site-footer--editorial .footer-tagline {
  color: rgba(255, 255, 255, 0.58);
}

.site-footer--editorial .footer-meta {
  border-top-color: rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-text,
.btn-danger,
.btn-success {
  border-radius: var(--radius-button);
}

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

  .hero-slide__img,
  .ed-leader__media img,
  .ed-gallery__shot img,
  .hero-slide__kicker,
  .hero-slide__title,
  .hero-slide__tagline,
  .hero-slide__desc,
  .hero-slide__content .cta-row,
  .hero-slide__links,
  .ed-gallery__dot,
  .ed-leader-nav,
  .reveal,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .ed-gallery__rail {
    scroll-behavior: auto;
  }
}

/* ============================================================
   PO-style solid banner + black chrome
   ============================================================ */

.site-public--po {
  --header-h: 3.75rem;
}

.site-header--po {
  background: #000;
  border-bottom: 0;
  backdrop-filter: none;
}

.site-header--po .brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.site-header--po .brand-text {
  letter-spacing: 0.1em;
}

.site-header--po .brand-logo {
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.site-header--po .site-nav > a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header--po .site-nav > a:not(.nav-cta):hover {
  color: #fff;
}

.site-header--po .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000 !important;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-button);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 2.4rem;
  height: 2.4rem;
  padding: 0 1.2rem;
  line-height: 1;
  margin: 0;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.site-header--po .nav-cta:hover {
  background: var(--color-gold) !important;
  border-color: var(--color-gold);
  color: #000 !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
}

.site-header--po .nav-login,
.site-header--po .nav-text-btn {
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  font: inherit;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.site-header--po .nav-text-btn {
  color: rgba(255, 255, 255, 0.88);
}

/* Overlay mode on homepage: keep solid black bar (PO), not transparent blend */
body.has-hero-overlay .site-header--po {
  position: absolute;
  background: #000;
  border-bottom: 0;
  backdrop-filter: none;
}

body.has-hero-overlay .site-header--po .brand-text,
body.has-hero-overlay .site-header--po .site-nav > a:not(.nav-cta) {
  color: #fff;
  text-shadow: none;
}

body.has-hero-overlay .site-header--po.is-scrolled,
body.has-hero-overlay .site-header--po.is-nav-open {
  position: fixed;
  background: #000;
  box-shadow: none;
  border-bottom: 0;
}

body.has-hero-overlay .site-header--po.is-scrolled .brand-text,
body.has-hero-overlay .site-header--po.is-nav-open .brand-text,
body.has-hero-overlay .site-header--po.is-scrolled .site-nav > a:not(.nav-cta),
body.has-hero-overlay .site-header--po.is-nav-open .site-nav > a:not(.nav-cta) {
  color: #fff;
}

.site-header--po .nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0.35rem 0;
  min-height: auto;
}

.site-header--po .nav-toggle__label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header--po .nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 1.35rem;
}

.site-header--po .nav-toggle__bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  background: #fff;
}

body.has-hero-overlay .site-header--po .nav-toggle,
body.has-hero-overlay .site-header--po.is-scrolled .nav-toggle,
body.has-hero-overlay .site-header--po.is-nav-open .nav-toggle {
  background: transparent;
  border: 0;
}

body.has-hero-overlay .site-header--po .nav-toggle span,
body.has-hero-overlay .site-header--po.is-scrolled .nav-toggle span,
body.has-hero-overlay .site-header--po.is-nav-open .nav-toggle span {
  background: transparent;
}

@media (max-width: 900px) {
  .site-header--po .nav-toggle {
    display: inline-flex;
  }

  .site-header--po .site-nav {
    background: #000;
  }

  .site-header--po .site-nav a {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .site-header--po .site-nav .nav-cta {
    margin-left: var(--content-padding);
    margin-right: var(--content-padding);
  }
}

.hero-slider--po,
.hero-slide--po {
  background: #050505;
}

.hero-slider--po .hero-swiper,
.hero-slider--po .hero-slide {
  height: min(94vh, 920px);
  min-height: 580px;
}

/* Fade mode: keep inactive slides from stacking readable text/CTAs */
.hero-slider--po .swiper-wrapper {
  position: relative;
}
.hero-slider--po .swiper-slide {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 1.1s ease;
}
.hero-slider--po .swiper-slide-active,
.hero-slider--po .swiper-slide-duplicate-active {
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 2;
}
.hero-slider--po .swiper-slide-prev,
.hero-slider--po .swiper-slide-next {
  z-index: 1;
}

.hero-slide--po .hero-slide__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: grayscale(0.12) contrast(1.06) brightness(0.88);
  animation: none;
  transform: scale(1.01);
}

.hero-slide--po .hero-slide__overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, calc(var(--hero-overlay, 0.55) + 0.22)) 0%,
      rgba(0, 0, 0, calc(var(--hero-overlay, 0.55) * 0.75)) 42%,
      rgba(0, 0, 0, calc(var(--hero-overlay, 0.55) * 0.4)) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 32%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-slide--po .hero-slide__content {
  justify-content: center;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4rem;
  max-width: var(--content-max-w);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: var(--hero-align, left);
  z-index: 3;
}

.hero-slide--po .hero-slide__content--center {
  text-align: center;
}

.hero-slide--po .hero-slide__content--center .hero-slide__title,
.hero-slide--po .hero-slide__content--center .hero-slide__tagline,
.hero-slide--po .hero-slide__content--center .hero-slide__links {
  margin-left: auto;
  margin-right: auto;
}

.hero-slide--po .hero-slide__content--right {
  text-align: right;
}

.hero-slide--po .hero-slide__content--right .hero-slide__title,
.hero-slide--po .hero-slide__content--right .hero-slide__tagline,
.hero-slide--po .hero-slide__content--right .hero-slide__links {
  margin-left: auto;
}

.hero-slide--po .hero-slide__content--wide {
  max-width: var(--content-max-w);
}

.hero-slide--po .hero-slide__title,
.hero-slide--po .hero-slide__tagline,
.hero-slide--po .hero-slide__links {
  max-width: 36rem;
}

.hero-slide--po .hero-slide__kicker,
.hero-slide--po .hero-slide__brand-mark {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 1.15rem;
}

.hero-slide--po .hero-slide__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 100%;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-slide--po .hero-slide__title--lg {
  font-size: clamp(3.6rem, 10vw, 7.25rem);
  line-height: 0.88;
}

.hero-slide--po .hero-slide__title--md {
  font-size: clamp(2.85rem, 6.5vw, 5rem);
  line-height: 0.94;
}

.hero-slide--po .hero-slide__title--sm {
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
}

.hero-slide--po .hero-slide__brand {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.hero-slide--po .hero-slide__tagline {
  margin: 1.35rem 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
}

.hero-slide--po .hero-slide__slide-title {
  margin: 0.85rem 0 0;
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-slide--po .hero-slide__desc {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-slide__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: hero-rise 1s ease 0.28s both;
}

.hero-slide__links .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.4);
}

.hero-slide__links .btn-primary:hover {
  background: var(--color-gold);
  color: var(--color-ink);
  border-color: var(--color-gold);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}

.hero-slider--po .hero-nav {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.5rem;
  width: auto;
  height: auto;
  min-height: 0;
  box-shadow: none;
  opacity: 0.65;
}

.hero-slider--po .hero-nav:hover {
  color: #fff;
  opacity: 1;
}

.hero-slider--po .hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  width: 0.4rem;
  height: 0.4rem;
}

.hero-slider--po .hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

.hero-scroll-mark {
  position: absolute;
  right: 1.25rem;
  bottom: 1.5rem;
  width: 1px;
  height: 1.35rem;
  background: rgba(255, 255, 255, 0.35);
  z-index: 4;
}

@media (max-width: 640px) {
  .hero-slider--po .hero-swiper,
  .hero-slider--po .hero-slide {
    height: min(88vh, 720px);
    min-height: 460px;
  }

  .hero-slide--po .hero-slide__content {
    padding-top: calc(var(--header-h) + 1.35rem);
    padding-bottom: 3rem;
    max-width: 100%;
  }

  .hero-slide--po .hero-slide__title--lg {
    font-size: clamp(2.45rem, 12.5vw, 3.6rem);
  }

  .hero-slide--po .hero-slide__title--md,
  .hero-slide--po .hero-slide__title--sm {
    font-size: clamp(1.95rem, 9vw, 2.85rem);
  }

  .hero-slide--po .hero-slide__brand {
    white-space: normal;
  }

  .hero-slide--po .hero-slide__tagline {
    font-size: 0.95rem;
    max-width: 22rem;
  }

  .hero-slide__links {
    gap: 0.75rem;
    margin-top: 1.35rem;
  }

  .hero-slide__links .btn-primary,
  .hero-slide__links .btn-secondary {
    min-height: 2.55rem;
    padding: 0 1.1rem;
  }

  .hero-slider--po .hero-nav {
    display: none;
  }

  .hero-scroll-mark {
    display: none;
  }

  :root {
    --section-gap: clamp(3rem, 12vw, 4.5rem);
    --content-padding: 1rem;
    --header-h: 3.5rem;
  }

  .site-header--po .brand-text {
    max-width: min(48vw, 9.5rem);
    font-size: 0.88rem;
  }

  .footer-links {
    gap: 0.65rem 1rem;
  }

  .footer-tagline {
    font-size: 0.85rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn-primary,
  .cta-row .btn-ghost,
  .cta-row a.btn-primary,
  .cta-row a.btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .final-cta--editorial .final-cta__title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .ed-about .ed-display,
  .site-public--po .ed-about .ed-display {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .ed-about__grid {
    gap: 1.25rem;
  }

  .article-cover img {
    max-height: 260px;
  }

  .auth-card,
  .join-card,
  .stack.portal-form-wide {
    max-width: 100%;
  }
}

/* Solid caps also for the about display line */
.site-public--po .ed-about .ed-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5rem);
}

/* ============================================================
   Elections - admin + member portal surfaces
   ============================================================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.data-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-text);
  background: var(--color-soft-bg);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr:hover td {
  background: rgba(7, 94, 23, 0.03);
}

.detail-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.election-page .portal-toolbar {
  align-items: flex-start;
  gap: 1rem;
}

.election-page .portal-toolbar h1 {
  margin-bottom: 0.35rem;
}

.election-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
}

.election-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.election-nav a {
  text-decoration: none;
}

.election-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  margin: 0 0 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 122, 31, 0.22);
  background: linear-gradient(135deg, rgba(221, 238, 227, 0.65), rgba(255, 255, 255, 0.9));
}

.election-status p {
  margin: 0;
  flex: 1 1 14rem;
}

.election-actions-bar {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-soft-bg);
}

.election-actions-bar label {
  margin: 0;
}

.election-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.election-actions-row select {
  flex: 1 1 16rem;
  max-width: 28rem;
}

.election-section {
  margin: 1.75rem 0 0;
}

.election-section > h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.election-office-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.election-office-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.election-office-list .muted {
  margin: 0;
  font-size: 0.85rem;
}

.election-card-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.election-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.election-card:hover {
  border-color: rgba(13, 122, 31, 0.35);
  box-shadow: var(--shadow-soft);
}

.election-card__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}

.election-card__title a {
  color: var(--color-dark-text);
  text-decoration: none;
}

.election-card__title a:hover {
  color: var(--color-primary-deep);
  text-decoration: underline;
}

.election-card__meta {
  margin: 0;
  color: var(--color-muted-text);
  font-size: 0.9rem;
}

.election-card__actions {
  margin-top: 0.35rem;
}

.election-candidate-grid {
  display: grid;
  gap: 0.7rem;
  margin: 0.65rem 0 1.5rem;
}

@media (min-width: 720px) {
  .election-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.election-candidate {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fafaf8);
}

.election-candidate__name {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.election-candidate__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(13, 122, 31, 0.12);
  color: var(--color-primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.election-ballot {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.election-ballot__office {
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.election-ballot__office legend {
  width: 100%;
  float: left;
  padding: 0.95rem 1.15rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-dark-text);
}

.election-ballot__hint {
  margin: 0;
  padding: 0 1.15rem 0.75rem;
  color: var(--color-muted-text);
  font-size: 0.88rem;
  clear: both;
}

.election-ballot__options {
  display: grid;
  gap: 0.45rem;
  padding: 0 1.15rem 1.15rem;
}

.election-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 !important;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-soft-bg);
  cursor: pointer;
  font-weight: 500 !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.election-choice:hover {
  border-color: rgba(13, 122, 31, 0.4);
  background: rgba(13, 122, 31, 0.06);
}

.election-choice:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(13, 122, 31, 0.1);
  box-shadow: inset 0 0 0 1px rgba(13, 122, 31, 0.15);
}

.election-choice input {
  width: auto !important;
  min-height: 0 !important;
  margin: 0.15rem 0 0 !important;
  flex: 0 0 auto;
}

.election-choice span {
  line-height: 1.4;
}

.election-receipt {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(13, 122, 31, 0.25);
  background: linear-gradient(160deg, rgba(221, 238, 227, 0.55), #fff);
}

.election-receipt code {
  display: block;
  margin: 0.65rem 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #0f1a12;
  color: #d8f5df;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.election-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  margin: 0 0 1.15rem;
  max-width: 28rem;
}

.election-filter label {
  flex: 1 1 100%;
}

.election-inline-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.portal-page .election-card__title,
.portal-page .election-candidate__name,
.portal-page .election-ballot__office legend {
  text-transform: none;
}

.portal-page .election-ballot__office legend {
  text-transform: uppercase;
}
