/* ==========================================================================
   Applied Research Institute (ARI) — Static site design system
   Dark command-center theme. Brand secondary: ARI Navy #1F3655; tertiary:
   ARI Green #279643, on near-black. Type: Plus Jakarta Sans.
   Plain CSS, no build step. All page links are relative.
   ========================================================================== */

:root {
  --black: #030605;
  --deep-black: #050807;
  --navy: #1f3655;
  --blue: #1f3655;        /* brand secondary */
  --blue-dark: #16273d;
  --blue-bright: #a8c9ef;
  --blue-soft: rgba(31, 54, 85, 0.42);
  --tertiary: #279643;    /* ARI green — success and "live" states only */
  --on-blue: #ffffff;     /* text/marks sitting on a --blue fill */
  --wave-dot: rgb(31, 54, 85);
  --wave-dot-alt: rgb(39, 150, 67); /* 20% of wave dots render in ARI green */
  --wave-dot-hi: rgb(64, 104, 158);
  --wave-link: rgba(45, 78, 122, 0.55);
  --white: #f6f8f7;
  --muted: #b9c0c4;
  --subtle: #808285;

  --surface: linear-gradient(180deg, rgba(31, 54, 85, 0.34), rgba(5, 8, 7, 0.92));
  --card-border: rgba(31, 54, 85, 0.18);
  --border-soft: rgba(255, 255, 255, 0.1);
  --border-blue: rgba(31, 54, 85, 0.22);
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.45);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --container: 1280px;
  --header-h: 104px;
  --line: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: #000;
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 24ch;
}

p {
  text-wrap: pretty;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(31, 54, 85, 0.3);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: 820px;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section.tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-body {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.accent {
  color: var(--blue);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.section-head .section-body {
  margin-top: 0.5rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 18px 40px rgba(31, 54, 85, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(31, 54, 85, 0.34);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border-color: rgba(31, 54, 85, 0.45);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: rgba(31, 54, 85, 0.08);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  transition: gap 0.18s ease;
}
.link-arrow:hover {
  gap: 0.7rem;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.36),
    rgba(0, 0, 0, 0)
  );
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled,
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  gap: 16px;
}
.brand-logo {
  height: 50px;
  width: auto;
}
.brand-divider {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.55);
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.18s ease;
}
.main-nav a:not(.btn):hover {
  color: var(--white);
}
.main-nav a.active:not(.btn) {
  color: var(--white);
}
.main-nav a.active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.main-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border-width: 1.5px;
  box-shadow: 0 0 18px rgba(31, 54, 85, 0.16);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 9px 8px;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  padding-top: var(--header-h);
}
.hero-inner {
  position: relative;
  z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) 24px 16rem;
}
.hero-copy { max-width: 80rem; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 6.4vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero h1 .hero-line { display: block; }
.hero h1 .accent { display: block; margin-top: 0.5rem; }
/* The subtitle sits on one line and the CTA below it spans that same width. */
.hero-actions { display: inline-block; }
.hero-sub {
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.95rem 1.6rem;
  border: 1.5px solid #ffffff;
  border-radius: 12px;
  color: #000000;
  background: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 28px rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  background: #eef1f4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 36px rgba(255, 255, 255, 0.22);
}
.hero-cta svg { width: 22px; height: 22px; color: var(--blue); }

/* ============ Hero wave ============ */
.wave-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 150px;
  z-index: 2;
  height: clamp(320px, 39vh, 490px);
  pointer-events: none;
  overflow: hidden;
}
/* Shorter viewports: shrink the wave band so it always stays below the CTA
   (the copy is anchored to the top, the wave to the bottom). */
@media (max-height: 920px) {
  .wave-wrap { height: clamp(190px, 26vh, 320px); }
}
@media (max-height: 800px) {
  .wave-wrap { height: clamp(130px, 19vh, 230px); }
}
.wave-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 66%, rgba(0,0,0,0.26) 100%),
    linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 78%, rgba(0,0,0,0.26));
}

/* ============ Logo rail ============ */
.logo-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: 150px;
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.rail-arrow {
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 3.4rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.rail-arrow:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.logo-window { height: 100%; overflow: hidden; }
.logo-track {
  height: 100%;
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoScroll 36s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: clamp(220px, 22vw, 340px);
  height: 96px;
  padding: 0 3rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.logo-item img {
  max-height: 72px;
  max-width: 280px;
  object-fit: contain;
  opacity: 0.95;
  filter: brightness(0) invert(1);
}
/* Keep these marks at the smaller size for visual balance */
.logo-item img[src*="scitechconnect"],
.logo-item img[src*="silicon-crossroads"],
.logo-item img[src*="tradewinds"],
.logo-item img[src*="darpa-eris"],
.logo-item img[src*="platform-one"] {
  max-height: 54px;
  max-width: 240px;
}
/* OnRamp mark reads small at the shared cap — give it a larger ceiling. */
.logo-item img[src*="onramp"] {
  max-height: 90px;
  max-width: 300px;
}
/* RAM wordmark reads small at the shared cap — give it a larger ceiling. */
.logo-item span {
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
/* DevX Autonomy — white-on-black artwork; screen blend drops the black bg
   (no keying needed), with a taller cap to offset the logo's built-in margins. */
.logo-item img.devx-logo {
  filter: none;
  mix-blend-mode: screen;
  max-height: 130px;
  max-width: 300px;
}
.init-logo-img.devx-logo {
  filter: none;
  mix-blend-mode: screen;
}
@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Cards ============ */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  border-radius: 24px;
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card.hover:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 54, 85, 0.55);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(31, 54, 85, 0.18),
    0 14px 44px rgba(31, 54, 85, 0.12);
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border-blue);
  background: rgba(31, 54, 85, 0.08);
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.icon-badge svg {
  width: 22px;
  height: 22px;
}
.card-index {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-weight: 700;
  color: rgba(31, 54, 85, 0.5);
}

/* Initiative cards — photo background + white logo + one-line description */
.init-card {
  padding: 0;
  overflow: hidden;
}
.init-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fixed, not min-height: an oversized logo used to stretch its own card
     taller than the rest of the row. Logos are capped below to fit inside. */
  height: 232px;
  flex: none;
  padding: 1.5rem;
  overflow: hidden;
  /* grey placeholder shows until a --card-bg image is set */
  background-color: #232826;
  border-bottom: 1px solid var(--card-border);
}
/* Background photo (real <img> so relative paths resolve on any base path):
   grayscale at rest, full color on hover (logo unaffected) */
.init-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
  z-index: 0;
}
/* Darkening so the white logo stays legible over the photo */
.init-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(3, 6, 5, 0.45), rgba(3, 6, 5, 0.62));
  transition: background 0.5s ease;
  z-index: 1;
}
.init-card:hover .init-photo,
.init-card:focus-within .init-photo {
  filter: grayscale(0);
}
/* Lighten the overlay on hover so the color reads more vividly */
.init-card:hover .init-media::after,
.init-card:focus-within .init-media::after {
  background: linear-gradient(rgba(3, 6, 5, 0.28), rgba(3, 6, 5, 0.45));
}
.init-logo-img {
  max-height: 148px;
  max-width: 90%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 2;
}
/* Square badge logos (e.g. the UAS shield) read larger than a wide wordmark
   at the same height, so they cap lower — and inside the media box. */
.init-logo-img--badge {
  max-height: 132px;
  max-width: 72%;
}
.init-logo-img--ari {
  max-height: 96px;
  filter: none;
}
/* Keep the logo perfectly still on hover — only the photo color shifts */
.init-card.hover:hover {
  transform: none;
}
.init-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.6rem 1.6rem;
}
.init-name {
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.init-desc {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  flex: 1;
}
.init-card .init-visit {
  margin-top: 1.1rem;
}

/* Initiative thematic groups */
.init-group {
  margin: clamp(2.75rem, 6vw, 4.5rem) 0 1.75rem;
}
.init-group-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  max-width: none;
}
.init-group-tagline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: none;
  margin: 0;
}

/* Placeholder cards for initiatives still being finalized */
.init-card--soon {
  cursor: default;
}
.init-media--empty::after {
  content: "Logo coming soon";
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.init-visit--soon {
  margin-top: 1.1rem;
  color: var(--subtle);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Featured initiative banner (RAM) */
.ram-feature {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.5s var(--reveal-ease),
    border-color 0.5s var(--reveal-ease),
    box-shadow 0.5s var(--reveal-ease);
}
.ram-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 54, 85, 0.45);
  box-shadow: 0 24px 60px -28px rgba(31, 54, 85, 0.55);
}
.ram-feature-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ram-feature-logo img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.ram-feature-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ari-accent);
  margin-bottom: 0.6rem;
}
.ram-feature-body h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}
.ram-feature-body p {
  color: var(--ari-muted);
  margin: 0 0 1.25rem;
  max-width: 60ch;
}
@media (max-width: 760px) {
  .ram-feature {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .ram-feature-logo {
    justify-content: flex-start;
  }
}
.tag {
  align-self: flex-start;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(31, 54, 85, 0.1);
  border: 1px solid var(--border-blue);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
}
.card .tag-row .tag {
  font-size: 0.66rem;
}

/* Metric cards */
.metric-value {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue);
}
.metric-label {
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--white);
}
.metric-desc {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Capability mini list */
.chip-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}
.chip-card .icon-badge {
  margin: 0;
  width: 40px;
  height: 40px;
}
.chip-card span {
  font-weight: 600;
}

/* ============ CTA band ============ */
.cta-band .surface-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--border-blue);
  background: var(--surface);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.cta-band h2 {
  margin: 0 auto;
}
.cta-band .section-body {
  margin: 1rem auto 0;
}
.cta-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ============ Forms ============ */
.field {
  display: block;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.95rem;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 54, 85, 0.12);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-confirm {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--border-blue);
  background: rgba(31, 54, 85, 0.08);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--white);
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--deep-black);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 24px 2rem;
}
.footer-brand p {
  margin-top: 1.2rem;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-brand .mission {
  margin-top: 1.2rem;
  border-left: 2px solid var(--blue);
  padding-left: 1rem;
  font-style: italic;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.3rem 0;
  transition: color 0.18s ease;
}
.footer-col a:hover {
  color: var(--blue);
}
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  margin-top: 1rem;
}
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 0.85rem;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal a:hover {
  color: var(--blue);
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.975);
  filter: blur(5px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* =========================================================================
   Premium Motion System
   - data-reveal variants (fade-up | fade | slide-left | slide-right | scale)
   - data-stagger / data-delay drive --reveal-delay from script.js
   - timeline dot pulse-once + rail glow
   - reduced-motion fully neutralizes motion (no layout shift)
   ========================================================================= */
:root {
  --ari-black: #020402;
  --ari-accent: #1f3655;
  --ari-white: #ffffff;
  --ari-muted: rgba(255, 255, 255, 0.72);
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s var(--reveal-ease), transform 0.7s var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal=""],
[data-reveal="fade-up"] {
  transform: translateY(32px);
}
[data-reveal="fade"] {
  transform: none;
}
[data-reveal="slide-left"] {
  transform: translateX(40px);
}
[data-reveal="slide-right"] {
  transform: translateX(-40px);
}
[data-reveal="scale"] {
  transform: scale(0.92);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Card images scale gently on hover (when a card wraps an image) */
.card.hover img,
.leader-card img {
  transition: transform 0.24s ease;
}
.card.hover:hover img {
  transform: scale(1.04);
}

/* Timeline rail glow + one-shot dot pulse when the timeline reveals */
.tl2-item::after {
  box-shadow: 0 0 8px rgba(31, 54, 85, 0.45);
}
.timeline2.visible .tl2-dot,
.timeline2.is-visible .tl2-dot {
  animation: tlDotPulse 0.9s ease-out both;
}
.timeline2 .tl2-item:nth-child(2) .tl2-dot { animation-delay: 0.08s; }
.timeline2 .tl2-item:nth-child(3) .tl2-dot { animation-delay: 0.16s; }
.timeline2 .tl2-item:nth-child(4) .tl2-dot { animation-delay: 0.24s; }
.timeline2 .tl2-item:nth-child(5) .tl2-dot { animation-delay: 0.32s; }
.timeline2 .tl2-item:nth-child(6) .tl2-dot { animation-delay: 0.40s; }
.timeline2 .tl2-item:nth-child(7) .tl2-dot { animation-delay: 0.48s; }
.timeline2 .tl2-item:nth-child(8) .tl2-dot { animation-delay: 0.56s; }
.timeline2 .tl2-item:nth-child(9) .tl2-dot { animation-delay: 0.64s; }
@keyframes tlDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 54, 85, 0.5), 0 0 0 4px rgba(31, 54, 85, 0.14),
      0 0 16px rgba(31, 54, 85, 0.7);
  }
  60% {
    box-shadow: 0 0 0 11px rgba(31, 54, 85, 0), 0 0 0 4px rgba(31, 54, 85, 0.14),
      0 0 24px rgba(31, 54, 85, 0.95);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(31, 54, 85, 0.14), 0 0 16px rgba(31, 54, 85, 0.7);
  }
}

/* Hero wave is parallaxed by JS — hint the compositor */
.wave-wrap {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .timeline2 .tl2-dot {
    animation: none !important;
  }
  .wave-wrap {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ============ Page hero (inner pages) ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
}
.page-hero::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -30%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(31, 54, 85, 0.12), transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin-top: 1.2rem;
}
.page-hero .section-body {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}
.page-hero .hero-ctas {
  margin-top: 2rem;
}

/* ============ Lead line (intro emphasis) ============ */
.lead-line {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  max-width: 40ch;
}

/* ============ Leadership ============ */
.leader-grid {
  display: grid;
  gap: 1.5rem;
}
.leader-grid-top {
  grid-template-columns: repeat(2, 1fr);
}
.leader-grid-bottom {
  grid-template-columns: repeat(3, 1fr);
}
.leader-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
  min-height: 232px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.leader-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 54, 85, 0.38);
}
.leader-photo {
  position: relative;
  background: #11171a;
  min-height: 100%;
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-linkedin {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b0e0d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.leader-linkedin svg {
  width: 19px;
  height: 19px;
}
.leader-linkedin:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: #fff;
}
.leader-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.6rem;
}
.leader-role {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}
.leader-name {
  margin-top: 0.5rem;
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* ============ Our History — timeline + gallery ============ */
.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  margin-top: 2.5rem;
}

/* Vertical timeline (left) */
.timeline2 {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
}
.tl2-item {
  position: relative;
  padding: 0 0 2.6rem 2.4rem;
}
.tl2-item:last-child {
  padding-bottom: 0;
}
.tl2-item::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 1.2rem;
  bottom: -0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(31, 54, 85, 0.2));
}
.tl2-item:last-child::after {
  display: none;
}
.tl2-dot {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 54, 85, 0.14), 0 0 16px rgba(31, 54, 85, 0.7);
}
.tl2-year {
  color: var(--blue);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.tl2-title {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.15;
  margin: 0.15rem 0 0.5rem;
}
.tl2-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 44ch;
}
/* Scrolling photo gallery (right) — stretches to the timeline height */
.history-gallery {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 18px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}
.history-gallery-inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.photo-col {
  display: flex;
  flex-direction: column;
  animation: photoScroll 70s linear infinite;
  will-change: transform;
}
.photo-col.reverse {
  animation-direction: reverse;
}
.photo-col:nth-child(2) {
  animation-duration: 84s;
}
.photo-item {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  margin-bottom: 1rem;
  background: var(--surface);
}
@keyframes photoScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo-col {
    animation: none;
  }
}
@media (max-width: 900px) {
  .history-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .history-gallery {
    height: clamp(460px, 80vh, 680px);
  }
}
@media (max-width: 760px) {
  .history-gallery-inner {
    gap: 0.6rem;
  }
  .photo-item {
    margin-bottom: 0.6rem;
    border-radius: 12px;
  }
}

/* ============ Prose (legal) ============ */
.prose {
  color: var(--muted);
  line-height: 1.75;
}
.prose h2 {
  color: var(--white);
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
}
.prose p {
  margin-bottom: 1rem;
}
.prose ul {
  margin: 0 0 1rem 1.25rem;
}
.prose a {
  color: var(--blue);
  text-decoration: underline;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .leader-grid-top,
  .leader-grid-bottom {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(3, 6, 5, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.5rem 24px 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .main-nav a.active:not(.btn)::after {
    display: none;
  }
  .nav-cta {
    margin-top: 1rem;
    justify-content: center;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ============ Hero / rail — small screens ============ */
@media (max-width: 760px) {
  :root {
    --header-h: 84px;
  }
  .brand-logo { height: 38px; }
  .brand-divider { height: 36px; }
  .brand-wordmark { font-size: 0.7rem; }
  .hero-inner { padding: clamp(2rem, 8vh, 4rem) 22px 13rem; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .hero-actions { display: block; }
  .hero-sub { white-space: normal; max-width: 33rem; }
  .hero-cta { width: 100%; max-width: 22rem; min-width: 0; }
  .wave-wrap { bottom: 120px; height: 260px; }
  .logo-rail {
    height: 120px;
    grid-template-columns: 0 1fr 0;
  }
  .rail-arrow { display: none; }
  .logo-item { min-width: 220px; padding: 0 2rem; }
  .logo-item img { max-height: 44px; }
  .logo-item img[src*="ram.png"] { max-height: 60px; }
  .logo-item img[src*="onramp"] { max-height: 60px; }
  .logo-item span { font-size: 0.95rem; }
  .logo-item img.devx-logo { max-height: 104px; }
}

/* The hero wave is generated entirely in code on <canvas id="heroWave"> — a
   field of accent dots draped from a math height-field, flowing left -> right.
   See the "Hero wave — fully generated dot-flow" block in script.js. */

/* =========================================================================
   Homepage section — Why ARI Works
   A responsive card deck: a single column on narrow screens and a two-column
   grid from 801px up. Cards reveal with the standard on-scroll fade; no scroll
   pinning or hijacking.
   ========================================================================= */
.ari-difference-section {
  padding: clamp(72px, 8vw, 110px) clamp(24px, 6vw, 88px);
  background: #020402;
  color: #fff;
}
.ari-difference-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.ari-difference-header h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 1rem;
}

/* ---- Why ARI Works : base = plain stacked column (mobile / reduced-motion) ---- */
.ari-difference-header {
  max-width: none;
  margin-bottom: clamp(28px, 5vw, 48px);
}
/* Never nowrap this line — between ~920px and the sentence's natural width
   it clipped off the right edge of the screen. Wrap like any paragraph. */
.ari-difference-header .section-body {
  max-width: 70ch;
}
.ari-diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.25rem, 5vw, 4rem);
}
.ari-diff-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(0.9rem, 2.2vw, 2.2rem) 2rem;
}
/* Hairline separators between columns, faded at both ends */
.ari-diff-col + .ari-diff-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(31, 54, 85, 0.32), transparent);
}
.diff-art {
  display: block;
  width: clamp(88px, 10vw, 132px);
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}
.diff-art img {
  display: block;
  width: 100%;
  height: auto;
}
.ari-diff-col h3 {
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  max-width: 12ch;
  margin: 0 0 1rem;
}
.ari-diff-col p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 27ch;
  margin: 0;
}

@media (max-width: 1024px) {
  .ari-diff-grid { grid-template-columns: repeat(2, 1fr); row-gap: clamp(2.5rem, 6vw, 3.5rem); }
  .ari-diff-col:nth-child(odd)::before { display: none; }
}
@media (max-width: 620px) {
  .ari-diff-grid { grid-template-columns: 1fr; }
  .ari-diff-col::before { display: none; }
}
/* ============ Employee Portal ============ */
.portal-body {
  background: #000;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* Same dot-wave as the home hero, anchored to the bottom of the screen */
.portal-body .wave-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(240px, 42vh, 480px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.portal-body.portal-dash .wave-wrap {
  display: none;
}
.portal-main {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(20px, 5vw, 48px) 5rem;
}
/* On the sign-in / not-authorized screens, center the form over the wave */
.portal-body:not(.portal-dash) .portal-main {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(7rem, 22vh, 12rem);
}

/* Auth form — plain on black (no card) for the clean look */
.portal-auth {
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}
.portal-auth h1 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.portal-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

/* Fields */
.portal-field {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.portal-field input,
.portal-field select,
.portal-field textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
}
.portal-field textarea {
  resize: vertical;
}
.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 54, 85, 0.18);
}
.portal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.portal-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  cursor: pointer;
}
.portal-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.portal-wide {
  width: 100%;
  justify-content: center;
}
.portal-msg {
  font-size: 0.88rem;
  color: var(--blue);
  min-height: 1.1em;
  margin-top: 0.6rem;
}
.portal-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-link:hover { color: var(--white); }


/* Forms + lists */
.portal-form {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}
.portal-form-title {
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.portal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.portal-actions .portal-msg { margin-top: 0; }
.portal-list-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--subtle);
  margin-bottom: 0.9rem;
}
.portal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}
.portal-item-title {
  font-weight: 600;
  color: var(--white);
}
.portal-item-meta {
  font-size: 0.82rem;
  color: var(--subtle);
  margin-top: 2px;
}
.portal-item-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.portal-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}
.portal-mini:hover { color: var(--white); border-color: var(--blue); }
.portal-mini--danger:hover {
  color: #ff8b8b;
  border-color: rgba(255, 90, 90, 0.5);
}
.portal-empty {
  color: var(--subtle);
  font-size: 0.92rem;
}
@media (max-width: 560px) {
  .portal-row { grid-template-columns: 1fr; }
}

/* Footer: brand row (logo + LinkedIn icon), employee portal button */
.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
.footer-social:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ============ Newsroom cards (cover image + per-type scheme) ============ */
.post-card {
  padding: 0;
  overflow: hidden;
}
.post-cover {
  display: block;
  height: 168px;
  background-size: cover;
  background-position: center;
  background-color: #1b2422; /* neutral fallback */
  border-bottom: 1px solid var(--card-border);
}
.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.6rem 1.6rem;
}
.post-body h3 {
  margin-top: 0.8rem;
}
.post-body p {
  margin-top: 0.5rem;
}
/* Per-type default color schemes — placeholders; replace with final brand colors
   (these only show when a post has no custom cover image). */
.post-cover--press-release { background-color: #16283f; }
.post-cover--initiative-update { background-color: #0f2e2a; }
.post-cover--report { background-color: #2a2233; }
.post-cover--op-ed { background-color: #2f2417; }
.post-cover--in-the-media { background-color: #1e2937; }

/* ============ Press article (full story) page ============ */
.article-page {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
/* Story header: category, date and headline. Matches the other interior
   page heroes — no cover image. */
.article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.article-hero[hidden] { display: none; }
.article-hero::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -40%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(31, 54, 85, 0.12), transparent 60%);
  pointer-events: none;
}
.article-hero-inner { position: relative; width: 100%; }
.article-hero .article-title { max-width: none; margin-bottom: 0; }
.article-page-body { padding-top: 0; }
.article-back { display: inline-flex; margin-bottom: 1.75rem; }
.article-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.article-date { color: var(--subtle); font-size: 0.9rem; }
.article-title { font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 22ch; margin-bottom: 1.5rem; }
.article-body { color: var(--muted); font-size: 1.08rem; line-height: 1.85; max-width: 72ch; }
.article-body p { margin-bottom: 1.2rem; }
.article-loading { color: var(--subtle); padding: 2rem 0; }
.post-readmore { margin-top: 1.1rem; }

/* ============ Follow-us section ============ */
.follow-section { text-align: center; }
.follow-cta { max-width: 820px; margin: 0 auto; }
.follow-cta h2 { max-width: none; margin-bottom: 0.75rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (min-width: 480px) { .follow-cta h2 { white-space: nowrap; } }
.follow-cta .section-body { max-width: 52ch; margin: 0 auto; }
.follow-links { display: flex; justify-content: center; gap: 14px; margin-top: 1.6rem; flex-wrap: wrap; }
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.follow-btn svg { width: 20px; height: 20px; }
.follow-btn:hover { border-color: var(--blue); background: rgba(31, 54, 85, 0.1); transform: translateY(-2px); }

/* Contact confirmation only appears after the form is submitted */
.form-confirm[hidden] { display: none; }

/* ============ Portal: post search + category filter ============ */
.portal-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.portal-list-head .portal-list-title { margin-bottom: 0; }
.portal-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-search,
.portal-filter {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem;
}
.portal-search { min-width: 220px; }
.portal-search:focus,
.portal-filter:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 54, 85, 0.18);
}

/* ============ Events command center (split-view dashboard) ============ */
.events-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.events-command-section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.events-command-header { margin-bottom: 2.5rem; max-width: 760px; }
.events-command-header h2 { margin: 0.6rem 0 0.8rem; }

.events-command-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: stretch;
}

/* ---- Panels ---- */
.events-list-panel,
.events-calendar-panel {
  background: linear-gradient(180deg, rgba(31, 54, 85, 0.16), rgba(5, 8, 7, 0.6));
  border: 1px solid var(--border-blue);
  border-radius: 20px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

/* ---- Left list panel ---- */
.events-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.1rem;
}
.events-panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.events-panel-header h3 { font-size: 1.4rem; }

.events-clear-filter {
  background: transparent;
  border: 1px solid var(--border-blue);
  color: var(--blue);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.events-clear-filter:hover {
  background: rgba(31, 54, 85, 0.14);
  border-color: var(--blue);
}

.events-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.event-filter {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-soft);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.event-filter:hover { border-color: var(--blue); color: var(--white); }
.event-filter.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--on-blue);
}

.events-selected-date {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.events-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-soft) transparent;
}
.events-scroll-list::-webkit-scrollbar { width: 8px; }
.events-scroll-list::-webkit-scrollbar-track { background: transparent; }
.events-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(31, 54, 85, 0.35);
  border-radius: 999px;
}
.events-scroll-list::-webkit-scrollbar-thumb:hover { background: var(--blue); }
.events-loading { color: var(--subtle); font-size: 0.9rem; padding: 1rem 0; }

/* ---- Event card ---- */
.event-card {
  display: flex;
  gap: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.event-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.event-date-block {
  flex: 0 0 auto;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(31, 54, 85, 0.18), rgba(31, 54, 85, 0.04));
  border: 1px solid var(--border-blue);
  border-radius: 12px;
  padding: 0.5rem 0;
}
.event-date-month {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.event-date-day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.event-card-content { flex: 1 1 auto; min-width: 0; }
.event-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.5rem;
}
.event-type-pill,
.event-platform-pill,
.event-access-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}
.event-type-pill { background: rgba(31, 54, 85, 0.14); border-color: var(--border-blue); color: var(--blue); }
.event-platform-pill { background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.event-access-pill { background: rgba(31, 54, 85, 0.4); color: var(--muted); }
.event-card-title { font-size: 1.08rem; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.event-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.event-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  border: 1px solid var(--border-blue);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.event-cta::after { content: "\2192"; font-size: 0.9em; }
.event-cta:hover { background: var(--blue); color: var(--on-blue); }
.event-cta.is-disabled {
  color: var(--subtle);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  cursor: not-allowed;
  pointer-events: none;
}
.event-cta.is-disabled::after { content: ""; }

/* ---- Right calendar panel ---- */
.events-calendar-panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
}
/* Fill the stretched panel: day rows share the leftover height equally
   (first row = weekday names, natural height). */
.events-calendar-panel .calendar-grid {
  flex: 1;
  grid-template-rows: auto;
  grid-auto-rows: 1fr;
}
.events-calendar-panel .calendar-day,
.events-calendar-panel .calendar-day-empty {
  aspect-ratio: auto;
  min-height: 44px;
}
.events-calendar-panel .calendar-helper { margin-top: 1rem; }
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.calendar-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.calendar-arrow:hover { background: rgba(31, 54, 85, 0.16); }
.calendar-month-label {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar-day-name {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  padding-bottom: 0.4rem;
}
.calendar-day-empty { aspect-ratio: 1 / 1; }
.calendar-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.calendar-day:hover { background: rgba(31, 54, 85, 0.1); color: var(--white); }
.calendar-day-number { position: relative; z-index: 3; font-size: 0.9rem; font-weight: 600; line-height: 1; }
.calendar-day.has-event { color: var(--white); }
.calendar-day.is-today { border-color: var(--border-blue); }
.calendar-day.is-today .calendar-day-number { color: var(--blue); }
.calendar-day.is-selected { background: var(--blue); border-color: var(--blue); }
.calendar-day.is-selected .calendar-day-number { color: var(--on-blue); }
/* Single-day events: dots pinned to the bottom of the cell. */
.calendar-event-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 3px; height: 5px; z-index: 2; }
.calendar-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.calendar-day.is-selected .calendar-dot { background: var(--on-blue); }
/* Multi-day events: thin range bars stacked above the dots, bridging cells. */
.calendar-range { position: absolute; height: 4px; background: var(--blue); z-index: 2; pointer-events: none; }
.calendar-day.is-selected .calendar-range { background: var(--on-blue); }
.calendar-helper {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--subtle);
  line-height: 1.5;
}

/* ---- Empty state ---- */
.events-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--border-blue);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
}
.events-empty-title { font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.events-empty-state p:not(.events-empty-title) {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 auto 1rem;
  max-width: 38ch;
}

/* ---- Past events ---- */
.past-events-section .event-cta { margin-top: 1.25rem; }

/* ---- Responsive stacking ---- */
@media (max-width: 900px) {
  .events-command-grid { grid-template-columns: 1fr; }
  .events-calendar-panel { position: static; }
  .events-scroll-list { max-height: none; overflow: visible; padding-right: 0; }
}

/* ============ Portal CSV import ============ */
.portal-import {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  margin: 0 0 1.5rem;
  overflow: hidden;
}
.portal-import > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.portal-import > summary::-webkit-details-marker { display: none; }
.portal-import > summary::before {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.2s ease;
}
.portal-import[open] > summary::before { content: "−"; }
.portal-import > summary:hover { background: rgba(31, 54, 85, 0.08); }
.portal-import-body {
  padding: 0 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid var(--border-soft);
}
.portal-import-body code {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 0.05rem 0.35rem;
  font-size: 0.85em;
}
.portal-map-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.2rem;
}
.portal-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
}
.portal-map-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.portal-map-label { color: var(--white); }
.portal-import-preview { font-size: 0.85rem; }
.portal-import-preview .portal-sub { margin: 0; }
.portal-skip {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 120, 120, 0.25);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ============ Portal cover upload status ============ */
.portal-cover-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: -0.4rem;
}
.portal-cover-status.ok { color: var(--tertiary); }
.portal-cover-status.err { color: #ff8585; }

/* ============ Portal modals (post + calendar preview) ============ */
.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.portal-modal[hidden] { display: none; }
.portal-modal-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(31, 54, 85, 0.22), rgba(5, 8, 7, 0.96));
  border: 1px solid var(--border-blue);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.portal-modal-card--cal { max-width: 560px; }
.portal-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.portal-modal-close:hover { background: rgba(255, 255, 255, 0.12); }
.portal-modal-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.portal-preview-article .article-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0.4rem 0 1rem; max-width: none; }
.portal-preview-article .article-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; }
.portal-preview-article .article-body { color: var(--muted); }
.portal-preview-article .article-body p { margin-bottom: 0.9rem; }
.portal-preview-lead { color: var(--white) !important; font-size: 1.05rem; font-weight: 600; }

/* ---- Calendar preview detail ---- */
.portal-cal-detail { margin-top: 1rem; }
.portal-cal-detail-head { font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.portal-cal-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.88rem;
}
.portal-cal-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.portal-cal-badge.tentative { background: rgba(31, 54, 85, 0.18); color: var(--blue); }

/* ============ Portal import: per-row types + rundown ============ */
.portal-import-rows-hint { margin-top: 0.8rem !important; color: var(--white) !important; font-weight: 600; }
.portal-import-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 0.5rem;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-soft) transparent;
}
.portal-import-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.5rem 0.7rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
}
.portal-import-row-info { display: flex; flex-direction: column; min-width: 0; }
.portal-import-row-title { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
.portal-import-row-date { font-size: 0.78rem; color: var(--subtle); }
.portal-import-row-type { flex: 0 0 auto; min-width: 160px; }
.portal-import-done { display: flex; flex-direction: column; gap: 0.6rem; }
.portal-import-done-head { font-size: 1.05rem; font-weight: 800; color: var(--tertiary); }
.portal-done-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.8rem;
  background: rgba(31, 54, 85, 0.06);
  border: 1px solid var(--border-blue);
  border-radius: 10px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.portal-done-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.portal-done-title { color: var(--white); font-weight: 600; }
.portal-done-date { color: var(--subtle); font-size: 0.8rem; white-space: nowrap; }
.portal-import-done .btn { align-self: flex-start; }

/* ---- Events calendar: Today button ---- */
.calendar-toolbar { display: flex; justify-content: center; margin-bottom: 0.7rem; }
.calendar-today {
  background: rgba(31, 54, 85, 0.1);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.calendar-today:hover { background: var(--blue); color: var(--on-blue); }

/* ============ Portal bulk select / delete ============ */
.portal-bulk {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}
.portal-bulk-all {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.portal-bulk-all input,
.portal-item-check {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  flex: 0 0 auto;
}
.portal-bulk #postBulkDelete[disabled],
.portal-bulk #eventBulkDelete[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ Contact form: honeypot + error ============ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffb3b3;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-error[hidden] { display: none; }

/* ============ Portal: contact messages ============ */
.portal-message { align-items: flex-start; }
.portal-message-info { flex: 1; min-width: 0; }
.portal-message-body {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-line;
}

/* ============ Initiatives: text wordmark + inquiry line ============ */
.init-wordmark {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 5vw, 2.6rem);
  text-align: center;
  padding: 0 1rem;
}
.init-inquiry {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}
.init-inquiry a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.init-inquiry a:hover { text-decoration: underline; }

/* ============ Newsroom: coverage archive ============ */
.coverage-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}
.coverage-actions[hidden] { display: none; }
.all-coverage { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.all-coverage[hidden] { display: none; }

/* ==========================================================================
   Light theme — activated by data-theme="light" on <html>.
   Every section re-themes, hero and "Why ARI Works" included. The wave stays
   navy; navy display text stays legible on the light surfaces.
   ========================================================================== */
:root { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }


:root[data-theme="light"] {
  --black: #f2f5f3;
  --deep-black: #e9efec;
  --blue-bright: #1f3655;
  --blue-soft: rgba(31, 54, 85, 0.45);
  --white: #13201a;
  --muted: #3e4c46;
  --subtle: #5d6a64;
  --surface: linear-gradient(180deg, rgba(31, 54, 85, 0.05), rgba(255, 255, 255, 0.92));
  --card-border: rgba(31, 54, 85, 0.2);
  --border-soft: rgba(6, 26, 16, 0.14);
  --border-blue: rgba(31, 54, 85, 0.26);
  --shadow-card: 0 24px 60px rgba(10, 35, 22, 0.1);
  --line: rgba(6, 26, 16, 0.16);
  /* AA-contrast accent for text on light backgrounds */
  --blue-strong: #1f3655;
}

:root[data-theme="light"] body { background: #f7faf8; }
:root[data-theme="light"] .site-header {
  background: rgba(247, 250, 248, 0.86);
  border-bottom: 1px solid rgba(6, 26, 16, 0.08);
}
:root[data-theme="light"] .menu-toggle span { background: var(--white); }

/* Accent text darkens for AA contrast on light surfaces */
:root[data-theme="light"] .section-label,
:root[data-theme="light"] .accent,
:root[data-theme="light"] .link-arrow,
:root[data-theme="light"] .tl2-year { color: var(--blue-strong); }
/* The Employee Portal link dresses like every other footer link — it used to
   take the accent color, which made it stick out on recolored footers. */

/* RAM feature banner variables (eyebrow + body copy) */
:root[data-theme="light"] { --ari-accent: #1f3655; --ari-muted: #3e4c46; }

/* ---- Hero: light background, accent wave kept, navy headline ---- */
:root[data-theme="light"] .hero { background: var(--black); }
:root[data-theme="light"] .hero h1 .accent { color: var(--blue); }
:root[data-theme="light"] .hero-cta {
  background: #13201a;
  border-color: #13201a;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(6, 26, 16, 0.12), 0 14px 34px rgba(10, 35, 22, 0.18);
}
:root[data-theme="light"] .hero-cta:hover {
  background: #1d2f26;
  box-shadow: 0 0 0 1px rgba(6, 26, 16, 0.2), 0 18px 40px rgba(10, 35, 22, 0.24);
}
/* The fade tints must be mixed from the hero's own background — fixed
   rgba(247,250,248) tints drew a visible band when the hero was recolored. */
:root[data-theme="light"] .wave-fade {
  background:
    linear-gradient(to bottom, transparent 0%, transparent 66%, color-mix(in srgb, var(--black) 45%, transparent) 100%),
    linear-gradient(to right, color-mix(in srgb, var(--black) 50%, transparent), transparent 18%, transparent 78%, color-mix(in srgb, var(--black) 45%, transparent));
}

/* ---- Logo rail: light glass bar, partner logos flip to black */
:root[data-theme="light"] .logo-rail {
  background: color-mix(in srgb, var(--black) 82%, transparent);
}
:root[data-theme="light"] .logo-item img { filter: brightness(0); }
:root[data-theme="light"] .logo-item span { color: rgba(11, 20, 16, 0.88); }
:root[data-theme="light"] .rail-arrow { color: rgba(11, 20, 16, 0.65); }
:root[data-theme="light"] .rail-arrow:hover {
  background: rgba(6, 26, 16, 0.05);
  color: #0b1410;
}
/* DevX art lives on a black plate: invert it and drop the (now white) plate */
:root[data-theme="light"] .logo-item img.devx-logo {
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: multiply;
}

/* ---- Why ARI Works: light band, white cards w/ navy outline + black text */
:root[data-theme="light"] .ari-difference-section {
  background: #f2f5f3;
  color: var(--white);
}
:root[data-theme="light"] .ari-difference-header .accent { color: var(--blue); }
:root[data-theme="light"] .ari-diff-col h3 { color: #0b1410; }
:root[data-theme="light"] .ari-diff-col p { color: #303b36; }
/* Deepen the supplied artwork a touch so it holds up on a light background */
:root[data-theme="light"] .diff-art img { filter: brightness(0.78) saturate(1.25); }
:root[data-theme="light"] .ari-diff-col + .ari-diff-col::before {
  background: linear-gradient(180deg, transparent, rgba(6, 26, 16, 0.16), transparent);
}

/* ---- RAM feature banner (Initiatives page): logo + text invert */
:root[data-theme="light"] .ram-feature-logo img { filter: brightness(0); }

/* ---- Events calendar: white panels, black + navy accents */
:root[data-theme="light"] .events-list-panel,
:root[data-theme="light"] .events-calendar-panel {
  background: #ffffff;
  border-color: rgba(31, 54, 85, 0.3);
  box-shadow: 0 18px 50px rgba(10, 35, 22, 0.08);
}
:root[data-theme="light"] .calendar-day {
  background: transparent;
  color: #303b36;
}
:root[data-theme="light"] .calendar-day:hover {
  background: rgba(31, 54, 85, 0.12);
  color: #0b1410;
}
:root[data-theme="light"] .calendar-day.has-event { color: #0b1410; }
:root[data-theme="light"] .calendar-day.is-today .calendar-day-number { color: var(--blue-strong); }

/* Form controls (contact + portal) */
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .portal-field input,
:root[data-theme="light"] .portal-field select,
:root[data-theme="light"] .portal-field textarea,
:root[data-theme="light"] .portal-search,
:root[data-theme="light"] .portal-filter,
:root[data-theme="light"] .event-filter { background: #ffffff; }
/* The white base above outranks .is-active alone, which left the selected
   chip white-on-white. Selected chips are navy everywhere; the events page
   overrides this to green with a more specific rule below. */
:root[data-theme="light"] .event-filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}
:root[data-theme="light"] .event-type-pill { background: #ffffff; color: var(--blue-strong); }
:root[data-theme="light"] .event-platform-pill,
:root[data-theme="light"] .event-access-pill {
  background: #ffffff;
  color: #3e4c46;
  border-color: rgba(6, 26, 16, 0.18);
}

/* Panels that were translucent-black */
:root[data-theme="light"] .event-card { background: rgba(255, 255, 255, 0.8); }
:root[data-theme="light"] .events-empty-state,
:root[data-theme="light"] .portal-import { background: rgba(6, 26, 16, 0.03); }
:root[data-theme="light"] .portal-import-row { background: rgba(6, 26, 16, 0.05); }
:root[data-theme="light"] .calendar-arrow { background: rgba(6, 26, 16, 0.05); }
:root[data-theme="light"] .calendar-arrow:hover { background: rgba(31, 54, 85, 0.14); }
:root[data-theme="light"] .portal-item { background: rgba(6, 26, 16, 0.02); }
:root[data-theme="light"] .portal-modal-close:hover { background: rgba(6, 26, 16, 0.1); }

/* Portal shell */
:root[data-theme="light"] .portal-body { background: #f7faf8; }
:root[data-theme="light"] .portal-body .wave-fade {
  background: linear-gradient(180deg, rgba(247, 250, 248, 0), #f7faf8);
}

/* ==========================================================================
   Employee portal application shell (sidebar + workspace)
   Scoped design tokens: dark defaults, light overrides below.
   ========================================================================== */
.portal-app {
  --pa-bg: #0a0f0d;
  --pa-surface: #101613;
  --pa-surface-muted: #151d19;
  --pa-sidebar: #0d1210;
  --pa-border: rgba(255, 255, 255, 0.09);
  --pa-border-strong: rgba(255, 255, 255, 0.16);
  --pa-text: #eef3f0;
  --pa-text-2: #a7b3ac;
  --pa-text-3: #79857e;
  --pa-blue-soft: rgba(31, 54, 85, 0.14);
  --pa-danger: #e05d5d;
  --pa-sidebar-w: 264px;
  --pa-sidebar-w-collapsed: 120px;
  position: fixed;
  inset: 0;
  display: flex;
  background: var(--pa-bg);
  color: var(--pa-text);
  z-index: 50;
}
.portal-app[hidden] { display: none; }
:root[data-theme="light"] .portal-app {
  --pa-bg: #f5f8f6;
  --pa-surface: #ffffff;
  --pa-surface-muted: #f0f4f1;
  --pa-sidebar: #f8faf8;
  --pa-border: #d8e1db;
  --pa-border-strong: #c7d3cb;
  --pa-text: #101612;
  --pa-text-2: #5f6c63;
  --pa-text-3: #7d8980;
  --pa-blue-soft: #e9eef7;
  --pa-danger: #c93f3f;
}

/* ---- Sidebar ---- */
.pshell-sidebar {
  width: var(--pa-sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--pa-sidebar);
  border-right: 1px solid var(--pa-border);
  transition: width 0.2s ease;
  overflow: hidden;
}
.psidebar-collapsed .pshell-sidebar { width: var(--pa-sidebar-w-collapsed); }
.pshell-sidebar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--pa-border);
}
.pshell-brand { display: inline-flex; flex: none; padding: 2px 0; order: 1; }
.pshell-brand .brand-logo { height: 30px; width: auto; }
.pshell-brand-text { display: flex; flex-direction: column; min-width: 0; order: 3; flex-basis: 100%; }
.pshell-brand-title { font-size: 0.92rem; font-weight: 700; color: var(--pa-text); white-space: nowrap; }
.pshell-brand-sub { font-size: 0.72rem; color: var(--pa-text-3); white-space: nowrap; }
.pshell-collapse {
  order: 2;
  margin-left: auto;
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pa-border);
  border-radius: 8px;
  background: transparent;
  color: var(--pa-text-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
.pshell-collapse svg { width: 16px; height: 16px; }
.pshell-collapse:hover { background: var(--pa-surface-muted); color: var(--pa-text); }
.psidebar-collapsed .pshell-collapse { transform: rotate(180deg); }
.psidebar-collapsed .pshell-brand-text,
.psidebar-collapsed .pnav-label,
.psidebar-collapsed .pshell-account-info,
.psidebar-collapsed .pshell-logout { display: none; }
.psidebar-collapsed .pshell-sidebar-head { flex-direction: column; gap: 10px; padding: 16px 10px 12px; }
.psidebar-collapsed .pshell-collapse { margin-left: 0; }
.psidebar-collapsed .pshell-brand .brand-logo { height: 30px; }

.pshell-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pnav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  min-height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--pa-text-2);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pnav-item svg { width: 19px; height: 19px; flex: none; }
.pnav-item:hover { background: var(--pa-surface-muted); color: var(--pa-text); }
.pnav-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pnav-item.is-active {
  background: var(--pa-blue-soft);
  color: var(--pa-text);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--blue);
}
.pnav-item.is-active svg { color: var(--blue); }
.pnav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnav-badge {
  margin-left: auto;
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 0.7rem;
  font-weight: 700;
}
.pnav-badge[hidden],
.pform-imgpreview[hidden],
.pshell-scrim[hidden] { display: none; }
.psidebar-collapsed .pnav-item { justify-content: center; padding: 10px 0; }
.psidebar-collapsed .pnav-badge { position: absolute; transform: translate(12px, -10px); }
.psidebar-collapsed .pnav-item { position: relative; }

.pshell-foot {
  border-top: 1px solid var(--pa-border);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pshell-account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pshell-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pa-blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
}
.pshell-account-info { display: flex; flex-direction: column; min-width: 0; }
.pshell-account-email { font-size: 0.8rem; font-weight: 600; color: var(--pa-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pshell-account-role { font-size: 0.72rem; color: var(--pa-text-3); }
.psidebar-collapsed .pshell-account { justify-content: center; }
.pshell-exit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.pshell-exit svg { width: 17px; height: 17px; flex: none; }
.pshell-exit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31, 54, 85, 0.28); }
.pshell-exit:active { transform: translateY(0); }
.pshell-exit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.pshell-exit.has-changes { box-shadow: 0 0 0 2px var(--pa-bg), 0 0 0 4px rgba(31, 54, 85, 0.5); }
.psidebar-collapsed .pshell-exit { padding: 0; }
.pshell-logout {
  border: none;
  background: transparent;
  color: var(--pa-text-3);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.pshell-logout:hover { color: var(--pa-danger); background: var(--pa-surface-muted); }

/* ---- Main workspace ---- */
.pshell-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pshell-mobilebar { display: none; }
.pshell-content {
  flex: 1;
  overflow-y: auto;
  padding: clamp(20px, 3.5vw, 40px) clamp(16px, 3.5vw, 44px) 90px;
}
.pshell-content > .portal-panel { max-width: 1180px; margin: 0 auto; }

.ppage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 1.6rem;
}
.ppage-title { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--pa-text); }
.ppage-desc { margin: 0.35rem 0 0; color: var(--pa-text-2); font-size: 0.95rem; max-width: 62ch; }
.ppage-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.psection-title { font-size: 1.05rem; font-weight: 700; color: var(--pa-text); margin: 2rem 0 0.9rem; }

/* ---- Dashboard ---- */
.pstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pstat:hover { border-color: var(--blue); transform: translateY(-1px); }
.pstat-value { font-size: 1.7rem; font-weight: 800; color: var(--pa-text); line-height: 1.1; }
.pstat-label { font-size: 0.82rem; color: var(--pa-text-2); }
.pquick { display: flex; flex-wrap: wrap; gap: 10px; }
.pquick-btn {
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--pa-border-strong);
  border-radius: 10px;
  background: var(--pa-surface);
  color: var(--pa-text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pquick-btn:hover { border-color: var(--blue); background: var(--pa-blue-soft); }
.pactivity { display: flex; flex-direction: column; gap: 6px; }
.pact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--pa-border);
  border-radius: 10px;
  background: var(--pa-surface);
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}
.pact-row:hover { border-color: var(--blue); }
.pact-text { font-size: 0.88rem; color: var(--pa-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pact-date { flex: none; font-size: 0.78rem; color: var(--pa-text-3); }

/* ---- Forms in the shell ---- */
.portal-app .portal-form {
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  box-shadow: none;
}
.pform-group {
  border: none;
  border-top: 1px solid var(--pa-border);
  padding: 1.1rem 0 0.35rem;
  margin: 1.1rem 0 0;
}
.pform-group:first-of-type { border-top: none; margin-top: 0.4rem; padding-top: 0.4rem; }
.pform-group { min-width: 0; }
.pform-group > legend {
  float: left;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pa-text-3);
  padding: 0 0 2px;
}
.pform-group > legend + * { clear: both; }
.pform-help { display: block; font-size: 0.78rem; font-weight: 400; color: var(--pa-text-3); margin-top: 4px; line-height: 1.45; }
.pform-error { color: var(--pa-danger); font-size: 0.82rem; font-weight: 600; margin: 0.4rem 0 0; }
.req { color: var(--blue); font-weight: 700; }
.pform-imgpreview {
  display: block;
  max-width: 340px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--pa-border);
  margin-top: 0.6rem;
}
.pform-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.pform-colside { position: sticky; top: 0; display: flex; flex-direction: column; }
.pform-colside .pform-group:first-of-type { border-top: none; }
.pform-preview-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pa-text-3); margin: 0 0 8px; }
.pinit-preview { pointer-events: none; max-width: 320px; }
.pinit-preview .init-media { height: 150px; }
.pform-side-actions { margin-top: 1rem; flex-wrap: wrap; }

/* ---- Status badges ---- */
.pstatus {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.pstatus--new { background: var(--pa-blue-soft); color: var(--blue); border-color: rgba(31, 54, 85, 0.35); }
.pstatus--read { background: var(--pa-surface-muted); color: var(--pa-text-2); border-color: var(--pa-border-strong); }
.pstatus--resolved { background: rgba(39, 150, 67, 0.18); color: var(--tertiary); border-color: rgba(39, 150, 67, 0.35); }
.pstatus--archived { background: var(--pa-surface-muted); color: var(--pa-text-3); }

/* ---- Destructive buttons ---- */
.pbtn-danger {
  background: transparent;
  border: 1px solid rgba(201, 63, 63, 0.55);
  color: var(--pa-danger);
}
.pbtn-danger:hover { background: rgba(201, 63, 63, 0.1); border-color: var(--pa-danger); transform: translateY(-1px); }
.portal-modal-card--confirm {
  max-width: 460px;
  background: #101613;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.portal-modal-card--confirm .portal-modal-kicker { color: var(--blue); }
.pconfirm-title { margin: 0.4rem 0 0.5rem; font-size: 1.15rem; color: #eef3f0; }
.portal-modal-card--confirm .portal-sub { color: #a7b3ac; }
.portal-modal-card--confirm .btn-secondary { color: #eef3f0; background: rgba(255, 255, 255, 0.06); }
:root[data-theme="light"] .portal-modal-card--confirm {
  background: #ffffff;
  border-color: #c7d3cb;
  box-shadow: 0 30px 90px rgba(10, 35, 22, 0.25);
}
:root[data-theme="light"] .pconfirm-title { color: #101612; }
:root[data-theme="light"] .portal-modal-card--confirm .portal-sub { color: #5f6c63; }
:root[data-theme="light"] .portal-modal-card--confirm .btn-secondary { color: #101612; background: #f0f4f1; }
:root[data-theme="light"] .portal-modal-card--confirm .pbtn-danger { color: #b03535; border-color: #b03535; }
.pconfirm-actions { margin-top: 1.2rem; }

/* ---- Empty states ---- */
.pempty { text-align: center; padding: 2.5rem 1rem; color: var(--pa-text-3); }
.pempty svg { width: 40px; height: 40px; margin-bottom: 0.6rem; color: var(--pa-text-3); }
.pempty-title { font-weight: 700; color: var(--pa-text); margin: 0 0 0.3rem; }

/* ---- Messages inbox ---- */
.pmsg-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.pmsg-layout { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pmsg-list { display: flex; flex-direction: column; gap: 8px; max-height: 68vh; overflow-y: auto; padding-right: 2px; }
.pmsg-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--pa-border);
  border-radius: 12px;
  background: var(--pa-surface);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pmsg-row:hover { border-color: var(--blue); }
.pmsg-row.is-open { border-color: var(--blue); background: var(--pa-blue-soft); }
.pmsg-row.is-new { box-shadow: inset 3px 0 0 var(--blue); }
.pmsg-row-top { display: flex; justify-content: space-between; gap: 10px; }
.pmsg-row-name { font-weight: 700; font-size: 0.9rem; color: var(--pa-text); }
.pmsg-row-date { font-size: 0.75rem; color: var(--pa-text-3); flex: none; }
.pmsg-row-snippet { font-size: 0.8rem; color: var(--pa-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmsg-row .pstatus { align-self: flex-start; margin-top: 2px; }
.pmsg-detail {
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  min-height: 260px;
}
.pmsg-d-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0.4rem; }
.pmsg-d-name { margin: 0; font-size: 1.15rem; color: var(--pa-text); }
.pmsg-d-body { margin: 1rem 0 1.4rem; white-space: pre-line; color: var(--pa-text); line-height: 1.65; }
.pmsg-d-actions { flex-wrap: wrap; }

/* ---- Home page manager ---- */
/* Logos and icons are artwork, not portraits — show them whole on a plate
   rather than cropped into the circular avatar used for people. */
.phome-thumb {
  width: 52px;
  height: 40px;
  border-radius: 8px;
  background: var(--pa-surface-muted);
  border: 1px solid var(--pa-border);
  padding: 4px;
}
.phome-thumb img { object-fit: contain; border-radius: 0; }
.pcount {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pa-text-3);
}
.phome-addhead { margin: 1.2rem 0 0.5rem; }
.phome-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.phome-add { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pform-imgpreview--logo {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  background: var(--pa-surface-muted);
  padding: 8px 12px;
}
.portal-link--inline {
  display: inline;
  padding: 0;
  font: inherit;
  border: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}
.portal-link--inline:hover { color: var(--pa-text); }

/* ---- Updates: revision history + undo ---- */
.pupd-row { gap: 6px; }
.pupd-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pupd-section {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pa-text-3);
}
.pupd-diff {
  width: 100%;
  border-collapse: collapse;
  margin: 0.9rem 0 1.2rem;
  font-size: 0.85rem;
  table-layout: fixed;
}
.pupd-diff th,
.pupd-diff td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--pa-border);
  overflow-wrap: anywhere;
}
.pupd-diff tr:first-child th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pa-text-3);
  border-bottom-color: var(--pa-border-strong);
}
.pupd-diff th[scope="row"] { width: 26%; color: var(--pa-text); font-weight: 600; }
.pupd-diff--single th[scope="row"] { width: 34%; }
.pupd-before { color: var(--pa-text-3); text-decoration: line-through; }
.pupd-after { color: var(--pa-text); font-weight: 600; }
.pupd-note {
  margin: 0 0 1rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--pa-border-strong);
  background: var(--pa-surface-muted);
  color: var(--pa-text-2);
  font-size: 0.82rem;
  line-height: 1.5;
}
.pupd-history { margin-top: 1.3rem; border-top: 1px solid var(--pa-border); padding-top: 0.9rem; }
.pupd-history > summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pa-text-2);
}
.pupd-history > summary:hover { color: var(--blue); }
.pupd-hrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pa-border);
  font-size: 0.8rem;
  color: var(--pa-text-2);
}
.pupd-hrow:last-child { border-bottom: 0; }

/* ---- About carousel grid ---- */
.pgallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 1rem; }
.pgal-tile {
  position: relative;
  border: 1px solid var(--pa-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pa-surface);
  cursor: grab;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pgal-tile.is-dragging { opacity: 0.55; }
.pgal-tile.is-dragover { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(31, 54, 85, 0.4); }
.pgal-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pgal-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; }
.pgal-pos { font-size: 0.78rem; font-weight: 700; color: var(--pa-text-2); }
.pgal-acts { display: flex; gap: 4px; }

/* ---- Team ---- */
.pteam-row { align-items: center; }
.pteam-avatar { width: 38px; height: 38px; }
.pteam-row > div:nth-child(2) { flex: 1; min-width: 0; }

/* ---- Auth screens keep the classic centered look ---- */
.portal-dash .portal-auth-wave { display: none; }

/* ---- Responsive: tablet collapses, mobile gets a drawer ---- */
@media (max-width: 1024px) and (min-width: 769px) {
  .portal-app { --pa-sidebar-w: 236px; }
  .pform-cols { grid-template-columns: 1fr; }
  .pform-colside { position: static; }
}
@media (max-width: 768px) {
  .pshell-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 84vw) !important;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    z-index: 60;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
  }
  .pdrawer-open .pshell-sidebar { transform: translateX(0); }
  .psidebar-collapsed .pshell-brand-text,
  .psidebar-collapsed .pnav-label,
  .psidebar-collapsed .pshell-account-info,
  .psidebar-collapsed .pshell-logout { display: flex; }
  .psidebar-collapsed .pnav-item { justify-content: flex-start; padding: 10px 12px; }
  .pshell-collapse { display: none; }
  .pshell-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
  }
  .pshell-scrim[hidden] { display: none; }
  .pshell-mobilebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pa-border);
    background: var(--pa-sidebar);
  }
  .pshell-mobile-logo { height: 24px; width: auto; }
  .pshell-mobile-title { font-weight: 700; font-size: 0.95rem; color: var(--pa-text); }
  .pshell-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--pa-border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }
  .pshell-menu span { display: block; height: 2px; border-radius: 2px; background: var(--pa-text); }
  .pshell-content { padding: 18px 14px 110px; }
  .ppage-actions { width: 100%; }
  .ppage-actions .btn { flex: 1; justify-content: center; }
  .pform-cols { grid-template-columns: 1fr; }
  .pform-colside { position: static; }
  .pmsg-layout { grid-template-columns: 1fr; }
  .pmsg-list { max-height: 40vh; }
  .pstats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pshell-sidebar, .pshell-collapse, .pstat, .pact-row, .pshell-exit { transition: none; }
}

/* Manual monday sync status line in the portal Events page */
.psync-msg { display: block; margin: -0.6rem 0 1.1rem; min-height: 1.2em; }
.psync-msg.ok { color: var(--blue); }
.psync-msg.err { color: var(--pa-danger, #e05d5d); }

/* Leadership list: drag-to-reorder rows with an arrow fallback */
.pleader-row { cursor: grab; }
.pleader-row.is-dragging { opacity: 0.55; }
.pleader-row.is-dragover {
  border-color: var(--blue);
  box-shadow: inset 0 2px 0 var(--blue);
}
.pdrag-grip {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: var(--pa-text-3);
}
.pdrag-grip svg { width: 18px; height: 18px; }
.pleader-row > div:nth-of-type(1) { flex: 1; min-width: 0; }
.pteam-avatar { overflow: hidden; }
.pleader-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Post preview: live story rendering beside an editor for spacing */
.portal-modal-card--preview {
  max-width: 1180px;
  /* Solid, like the confirm dialog — the shared modal surface is translucent
     and the portal behind it bled through. */
  background: #101613;
  border-color: rgba(255, 255, 255, 0.16);
  color: #eef3f0;
}
:root[data-theme="light"] .portal-modal-card--preview {
  background: #ffffff;
  border-color: #c7d3cb;
  color: #101612;
}
.portal-modal-card--preview .article-title { color: inherit; }
.portal-modal-card--preview .article-body { color: inherit; opacity: 0.86; }
.ppreview-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  margin-top: 1rem;
}
.ppreview-split .portal-preview-article {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 6px;
}
.ppreview-head { margin-bottom: 1.5rem; }
.ppreview-head .article-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0; }
.ppreview-edit textarea {
  min-height: 340px;
  font-size: 0.9rem;
  line-height: 1.55;
  resize: vertical;
}
.ppreview-tools { flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.ppreview-tools .btn { font-size: 0.82rem; padding: 0.6rem 0.9rem; }
@media (max-width: 900px) {
  .ppreview-split { grid-template-columns: 1fr; }
  .ppreview-split .portal-preview-article { max-height: 40vh; }
}
.ppreview-save {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pa-border, rgba(255, 255, 255, 0.12));
  flex-wrap: wrap;
  gap: 8px;
}


/* ==========================================================================
   Page-specific fixes (2026-08-10 batch)
   ========================================================================== */

/* ---- Non-home page hero: navy header is the default theme ---- */
.page-hero {
  background: var(--navy);
  color: #ffffff;
  --black: var(--navy);
  --deep-black: var(--navy);
  --white: #ffffff;
  --muted: #c3cddb;
  --subtle: #94a3b8;
  --blue: var(--tertiary);
  --blue-strong: var(--tertiary);
  --blue-bright: var(--tertiary);
}
/* Buttons inside a page hero: white with navy text, navy shadow on hover */
.page-hero .btn,
.page-hero .btn-primary,
.page-hero .btn-secondary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
  box-shadow: none;
}
.page-hero .btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(31, 54, 85, 0.45);
  transform: translateY(-2px);
}

/* ---- Home: "View All Initiatives" — white, blue text, navy hover shadow */
[data-section="featured"] .section-head .btn-secondary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
}
[data-section="featured"] .section-head .btn-secondary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(31, 54, 85, 0.5);
}

/* ---- Initiatives: RAM feature banner reads white on its navy plate ---- */
.ram-feature-eyebrow,
.ram-feature-body h3,
.ram-feature-body p,
.ram-feature .link-arrow { color: #ffffff; }
:root[data-theme="light"] .ram-feature-logo img { filter: brightness(0) invert(1); }

/* ---- Newsroom: coverage + follow buttons in brand navy ---- */
#viewAllCoverage,
.follow-btn {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #ffffff;
}
#viewAllCoverage:hover,
.follow-btn:hover {
  background: #2a4a75;
  border-color: #2a4a75;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 54, 85, 0.4);
}

/* ---- Events: selected filter is green with white text ---- */
:root[data-theme="light"] .events-command-section .event-filter.is-active,
:root[data-theme="light"] .past-events-section .event-filter.is-active {
  background: var(--tertiary);
  border-color: var(--tertiary);
  color: #ffffff;
}

/* ---- About: leadership photo framing ---- */
.leader-photo { overflow: hidden; }
/* Jess — tighter crop so her head reads the same size as the top row */
.leader-photo img[src*="qf4rfb"] {
  transform: scale(1.45);
  transform-origin: 50% 22%;
}
/* Sana — keep her face centered in the crop */
.leader-photo img[src*="wej96v"] { object-position: 50% 30%; }

/* ==========================================================================
   Final page colors — baked from the retired Appearance editor (2026-08-10).
   These reproduce the exact values (and derived inks) that were live when
   the palette was finalized. The per-section DB overrides no longer load.
   ========================================================================== */

.hero[data-section="hero"] {
  background: #e6e6e7;
  --black: #e6e6e7;
  --deep-black: #e6e6e7;
  --blue: #279643;
  --blue-bright: #279643;
  --blue-strong: #279643;
  --border-blue: rgb(177, 208, 185);
  --on-blue: #ffffff;
}

[data-section="difference"] {
  --blue: #279643;
  --blue-bright: #279643;
  --blue-strong: #279643;
  --border-blue: rgb(185, 218, 194);
  --on-blue: #ffffff;
}

[data-section="featured"] {
  background: #153655;
  color: #ffffff;
  --black: #153655;
  --deep-black: #153655;
  --white: #ffffff;
  --muted: rgb(189, 199, 207);
  --subtle: rgb(150, 165, 178);
  --surface: linear-gradient(180deg, #ffffff, #e6e6e7);
  --blue: #279643;
  --blue-bright: #279643;
  --blue-strong: #279643;
  --border-blue: rgb(26, 81, 80);
  --on-blue: #ffffff;
}
[data-section="featured"] .card {
  color: #000000;
  --white: #000000;
  --muted: rgb(64, 64, 65);
  --subtle: rgb(104, 104, 104);
  --blue: #000000;
  --blue-bright: #000000;
  --blue-strong: #000000;
  --border-blue: rgb(166, 166, 166);
  --on-blue: #ffffff;
}
[data-section="featured"] .init-logo-img:not(.devx-logo) { filter: brightness(0) invert(1) !important; }

[data-section="leadership"] {
  --blue: #279643;
  --blue-bright: #279643;
  --blue-strong: #279643;
  --border-blue: rgb(185, 218, 194);
  --on-blue: #ffffff;
}
[data-section="leadership"] .card,
[data-section="leadership"] .leader-card {
  color: #000000;
  --white: #000000;
  --muted: rgb(71, 71, 71);
  --subtle: rgb(115, 115, 115);
}

[data-section="form"] {
  --surface: linear-gradient(180deg, #1f3655, #ffffff);
}

[data-section="hub"],
[data-section="past"] {
  --blue: #279643;
  --blue-bright: #279643;
  --blue-strong: #279643;
  --border-blue: rgb(185, 218, 194);
  --on-blue: #ffffff;
}

[data-section="coverage"] {
  --blue: #279643;
  --blue-bright: #279643;
  --blue-strong: #279643;
  --border-blue: rgb(185, 218, 194);
  --on-blue: #ffffff;
}

[data-section="list"] {
  color: #000000;
  --white: #000000;
  --muted: #000000;
  --subtle: #000000;
  --surface: #1f3655;
}
[data-section="list"] .card,
[data-section="list"] .ram-feature {
  color: #ffffff;
  --white: #ffffff;
  --muted: rgb(192, 199, 207);
  --subtle: rgb(154, 165, 178);
}
[data-section="list"] .init-logo-img:not(.devx-logo) { filter: brightness(0) invert(1) !important; }

.site-footer[data-section="footer"] {
  background: #000000;
  color: #ffffff;
  --black: #000000;
  --deep-black: #000000;
  --white: #ffffff;
  --muted: rgb(184, 184, 184);
  --subtle: rgb(140, 140, 140);
  --blue: #279643;
  --blue-bright: #279643;
  --blue-strong: #279643;
  --border-blue: rgb(11, 42, 19);
  --on-blue: #ffffff;
}
.site-footer[data-section="footer"] .brand-logo { filter: brightness(0) invert(1) !important; }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 420px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-card {
  background: var(--navy);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 24px 60px rgba(6, 16, 28, 0.38);
}
.cookie-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}
.cookie-text {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #c3cddb;
}
.cookie-text a { color: #ffffff; text-decoration: underline; }
.cookie-text a:hover { color: var(--tertiary); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 0.6rem 1.35rem; font-size: 0.86rem; }
.cookie-btn.btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
}
.cookie-btn.btn-primary:hover {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(6, 16, 28, 0.4);
}
.cookie-btn.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.cookie-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}
/* Footer entry point for changing the choice later */
.cookie-prefs {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.18s ease;
}
.cookie-prefs:hover { color: var(--blue); }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---- Legal pages ---- */
.legal-updated {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--subtle);
}
.prose h2:first-of-type { margin-top: 1.5rem; }

/* ---- Newsletter embed modal ---- */
.portal-modal-card--embed {
  max-width: 1100px;
  background: #ffffff;
  border-color: var(--pa-border-strong);
  color: var(--pa-text);
}
.pembed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 1rem 0 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pa-border);
}
.pembed-count { margin: 0; min-width: 170px; }
.pembed-stepper { display: flex; align-items: center; gap: 6px; }
.pembed-stepper .portal-mini {
  width: 30px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.pembed-stepper input {
  width: 68px;
  text-align: center;
  padding: 7px 6px;
  border: 1px solid var(--pa-border-strong);
  border-radius: 8px;
  background: var(--pa-surface-muted);
  color: var(--pa-text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
}
.pembed-stepper input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.pembed-avail { margin: 0; align-self: flex-end; padding-bottom: 8px; font-size: 0.82rem; color: var(--pa-text-3); }
.pembed-toolbar--alt { margin: 0.6rem 0 0; padding-bottom: 0; border-bottom: 0; }
.pembed-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.pembed-pane { min-width: 0; }
.pembed-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pa-text-3);
}
.pembed-hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pembed-canvaswrap {
  border: 1px solid var(--pa-border-strong);
  border-radius: 12px;
  padding: 10px;
  background: var(--pa-surface-muted);
  max-height: 56vh;
  overflow: auto;
}
.pembed-canvaswrap canvas { display: block; width: 100%; height: auto; border-radius: 6px; }
.pembed-frame {
  width: 100%;
  min-height: 220px;
  max-height: 56vh;
  border: 1px solid var(--pa-border-strong);
  border-radius: 12px;
  background: #ffffff;
}
.pembed-alt { margin-top: 1rem; border-top: 1px solid var(--pa-border); padding-top: 0.9rem; }
.pembed-alt > summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--pa-text-2); }
.pembed-alt > summary:hover { color: var(--blue); }
.pembed-code--iframe { height: auto; min-height: 96px; white-space: pre-wrap; }
.pembed-code--alt { height: 200px; margin-top: 10px; }
.pembed-code {
  width: 100%;
  height: 52vh;
  padding: 12px;
  border: 1px solid var(--pa-border-strong);
  border-radius: 12px;
  background: var(--pa-surface-muted);
  color: var(--pa-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  resize: vertical;
  white-space: pre;
}
.pembed-code:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
@media (max-width: 900px) {
  .pembed-split { grid-template-columns: 1fr; }
  .pembed-code { height: auto; max-height: 40vh; }
  .pembed-frame { max-height: 46vh; }
}

/* ============ Events: filter by type and by program ============ */
/* Two chip rows share the panel, so each gets a small caption — without one
   it isn't obvious that the rows filter on different things, or that they
   combine. */
.events-filter-group { margin-bottom: 1rem; }
.events-filter-group[hidden] { display: none; }
.events-filter-group .events-filter-row { margin-bottom: 0; }
.events-filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.event-program-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-blue);
  background: rgba(39, 150, 67, 0.12);
  color: var(--tertiary);
  border-color: rgba(39, 150, 67, 0.35);
}
:root[data-theme="light"] .event-program-pill {
  background: #ffffff;
  color: #1d7233;
  border-color: rgba(39, 150, 67, 0.45);
}

/* Program filter became a dropdown: every initiative is offered, so a chip row
   would run to fourteen chips. Styled to sit with the chips above it. */
.events-program-wrap { position: relative; }
.events-program-wrap::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.events-program-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 2.4rem 0.55rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.events-program-select:hover { border-color: var(--blue); }
.events-program-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 54, 85, 0.12);
}
