/* ==========================================================================
   Tech-Futures — Community Technology Workshop
   Design tokens + component styles. No build step, no external requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #0b1f3a;
  --navy-700: #143059;
  --navy-500: #1d4278;
  --blue: #1677ff;
  --blue-700: #0f5ed6;
  --blue-800: #0a4bad;
  --blue-050: #e8f1ff;
  --orange: #ff7a1a;
  --orange-050: #fff1e6;
  --teal: #00a6a6;
  --teal-050: #e2f6f6;

  /* Neutrals — warm-shifted so white sections don't feel clinical */
  --white: #fffdf9;
  --gray-050: #f7f5f0;
  --gray-100: #ece9e2;
  --gray-200: #d8d4cc;
  --gray-400: #8d8778;
  --gray-600: #5a5548;
  --gray-800: #2e2a24;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--gray-050);
  --text: var(--gray-800);
  --text-muted: var(--gray-600);
  --heading: var(--navy);
  --border: var(--gray-200);
  --link: var(--blue-700);
  --focus: #0b5bd3;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --success: #0f6b45;
  --success-bg: #e6f4ee;

  /* Type — system stack: no third-party font requests, no privacy leakage */
  --font-heading: "Segoe UI Semibold", "Segoe UI", ui-sans-serif, system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", ui-sans-serif, system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.28vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.28rem + 0.45vw, 1.625rem);
  --step-3: clamp(1.625rem, 1.45rem + 0.85vw, 2.125rem);
  --step-4: clamp(2rem, 1.68rem + 1.6vw, 3rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.08),
    0 2px 8px rgba(11, 31, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.1),
    0 12px 28px rgba(11, 31, 58, 0.08);
  --container: 1200px;
  --measure: 68ch;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 122, 26, 0.03) 0%, transparent 50%),
                     radial-gradient(circle at 80% 20%, rgba(0, 166, 166, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p,
ul,
ol,
dl,
figure,
table {
  margin: 0 0 var(--space-4);
}

p {
  max-width: var(--measure);
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

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

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

strong {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}

.section--tight {
  padding-block: var(--space-7);
}

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

.section--navy {
  background: var(--navy);
  color: #dfe8f4;
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

/* Buttons keep their own colors on dark sections — only body links restyle. */
.section--navy a:not(.btn),
.hero--page a:not(.btn) {
  color: #9fc6ff;
}

.section--navy a:not(.btn):hover,
.hero--page a:not(.btn):hover {
  color: var(--white);
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-6);
}

.section-head p {
  color: var(--text-muted);
  font-size: var(--step-1);
  margin-bottom: 0;
}

.section--navy .section-head p {
  color: #c4d3e6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 var(--space-3);
}

.section--navy .eyebrow {
  color: #7fb2ff;
}

.eyebrow::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  background: currentColor;
  flex: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.lede {
  font-size: var(--step-1);
  color: var(--text-muted);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 200;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* --blue is the brand action color, but white text on it reaches only 4.1:1.
   Filled buttons use the deeper tint (5.9:1) so button labels meet WCAG AA;
   --blue itself stays in use for borders, accents, and focus states. */
.btn--primary {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

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

.btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.link-arrow:hover {
  border-bottom-color: currentColor;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Header + navigation
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--navy);
  color: #cfdcec;
  font-size: var(--step--1);
}

.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}

.utility-bar a {
  color: #cfdcec;
  text-decoration: none;
  font-weight: 600;
}

.utility-bar a:hover {
  color: var(--white);
  text-decoration: underline;
}

.utility-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
}

.site-header .brand__mark {
  width: 50px;
  height: 50px;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
}

.brand__tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--step-0);
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
}

.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}

.primary-nav__link:hover {
  background: var(--blue-050);
  color: var(--navy);
}

.primary-nav__link[aria-current="page"] {
  color: var(--blue-700);
  box-shadow: inset 0 -3px 0 var(--blue);
  border-radius: var(--radius) var(--radius) 0 0;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--step-0);
  font-weight: 600;
  cursor: pointer;
}

.submenu-toggle:hover {
  background: var(--blue-050);
}

.submenu-toggle__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.submenu[hidden] {
  display: none;
}

.header-actions {
  display: flex;
  gap: var(--space-3);
}

/* Mobile-first navigation */
@media (max-width: 1023px) {
  .primary-nav {
    display: none;
    flex-basis: 100%;
    padding: var(--space-3) 0 var(--space-5);
    border-top: 1px solid var(--border);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav > ul > li + li {
    border-top: 1px solid var(--gray-100);
  }

  .primary-nav__link,
  .submenu-toggle {
    padding-block: 0.85rem;
    font-size: var(--step-1);
  }

  .submenu {
    padding: 0 0 var(--space-3) var(--space-4);
    border-left: 3px solid var(--blue-050);
    margin-left: 0.75rem;
  }

  .header-actions {
    flex-direction: column;
    margin-top: var(--space-4);
  }

  .header-actions .btn {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-header__inner {
    flex-wrap: nowrap;
  }

  .primary-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .primary-nav > ul {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .primary-nav > ul > li {
    position: relative;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 16rem;
    padding-top: 0.35rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
    z-index: 120;
  }

  .submenu .primary-nav__link {
    white-space: nowrap;
  }

  .header-actions {
    margin-left: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/circuit-motif.svg");
  background-size: 520px;
  background-position: right -60px top -40px;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8);
  align-items: center;
}

.hero__copy h1 {
  margin-bottom: var(--space-4);
}

.hero__copy p {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 46ch;
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}

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

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--navy);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.hero--page {
  background: var(--navy);
  color: #d7e3f3;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
  --hero-accent: var(--blue);
}

.hero--page::before {
  opacity: 0.16;
}

.hero--page .hero__curve {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5rem;
  z-index: 2;
  pointer-events: none;
}

.hero--page .hero__curve::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5rem;
  background: var(--hero-accent);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero--page .hero__curve::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero--page h1 {
  color: var(--white);
}

.hero--page p {
  color: #c4d3e6;
}

.hero--page .eyebrow {
  color: #7fb2ff;
}

.hero--page .hero__inner {
  padding-block: var(--space-7);
  max-width: 62rem;
}

.hero--page .hero__facts {
  color: #d7e3f3;
}

@media (min-width: 900px) {
  .hero__inner--split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-7);
    padding-block: var(--space-9);
  }
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
}

.card p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  max-width: none;
}

.card > :last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: var(--space-4);
  background: var(--blue-050);
  color: var(--blue-700);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card--youth {
  border-top: 4px solid var(--orange);
}
.card--youth.card--intermediate {
  border-top-color: var(--teal);
}
.card__level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

.card__level--beginner {
  background: var(--orange-050);
  color: #a8480a;
}

.card__level--intermediate {
  background: var(--teal-050);
  color: #00615f;
}

.card--youth .card__icon {
  background: var(--orange-050);
  color: #c1560c;
}
.card--youth .link-arrow {
  color: #b4500a;
}

/* Force fixed column grids */
.grid--2-fixed {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-fixed {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid--2-fixed,
  .grid--3-fixed {
    grid-template-columns: 1fr;
  }
}

.card--adult {
  border-top: 4px solid var(--blue);
}

.card--silver {
  border-top: 4px solid var(--teal);
}
.card--silver .card__icon {
  background: var(--teal-050);
  color: #00706f;
}
.card--silver .link-arrow {
  color: #00706f;
}

.card--business {
  border-top: 4px solid var(--navy);
}
.card--business .card__icon {
  background: #e6ebf3;
  color: var(--navy);
}
.card--business .link-arrow {
  color: var(--navy);
}

/* Program cards */
.program-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.program-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-card__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-2);
  font-size: var(--step--1);
}

.program-card__meta div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--space-2);
}

.program-card__meta dt {
  font-weight: 600;
  color: var(--navy);
}

.program-card__meta dd {
  margin: 0;
  color: var(--text-muted);
}

.program-card__body > :last-child {
  margin-top: auto;
}

.program-card--blue {
  border-top: 4px solid var(--blue);
}

.program-card--teal {
  border-top: 4px solid var(--teal);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--navy);
}

.tag--youth {
  background: var(--orange-050);
  color: #a8480a;
}

.tag--silver {
  background: var(--teal-050);
  color: #00615f;
}

.tag--business {
  background: var(--blue-050);
  color: var(--blue-700);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

/* Promise / values */
.promise {
  display: grid;
  gap: var(--space-5);
}

.promise__word {
  border-left: 4px solid var(--blue);
  padding-left: var(--space-4);
}

.promise__word h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-1);
}

.promise__word p {
  margin: 0;
  color: var(--text-muted);
}

.section--navy .promise__word p {
  color: #c4d3e6;
}

.promise__word:nth-child(1) {
  border-color: var(--blue);
}
.promise__word:nth-child(2) {
  border-color: var(--orange);
}
.promise__word:nth-child(3) {
  border-color: var(--teal);
}
.promise__word:nth-child(4) {
  border-color: #9fc6ff;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.steps li {
  position: relative;
  padding-left: 3.5rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}

.steps h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-1);
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.6rem;
  height: 1rem;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(40deg);
}

/* Callout */
.callout {
  background: var(--blue-050);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-5);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout--teal {
  background: var(--teal-050);
  border-left-color: var(--teal);
}

.callout--orange {
  background: var(--orange-050);
  border-left-color: var(--orange);
}

/* Mission band */
.mission {
  text-align: center;
}

.mission blockquote {
  margin: 0 auto var(--space-5);
  max-width: 34ch;
  font-family: var(--font-heading);
  font-size: var(--step-3);
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.015em;
}

.mission p {
  margin-inline: auto;
  max-width: 58ch;
}

.mission .btn-row {
  justify-content: center;
}

/* Event / notify block */
.event-panel {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 880px) {
  .event-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel--branded {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.panel__logo {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-5);
  object-fit: contain;
  opacity: 0.4;
}

.card--orange {
  border-top: 4px solid var(--orange);
}

/* Card with photo */
.card-img {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-img__photo {
  overflow: hidden;
}

.card-img__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-img:hover .card-img__photo img {
  transform: scale(1.05);
}

.card-img__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-img__body h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
}

.card-img__body p {
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: none;
}

/* Contact detail list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}

.contact-list dt,
.contact-list__label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-list a {
  font-weight: 600;
  font-size: var(--step-1);
}

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--space-5);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field > label,
.fieldset__legend {
  font-weight: 600;
  color: var(--navy);
}

.field__hint {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: var(--step-0);
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--gray-400);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--focus);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: var(--danger);
  background: #fffafa;
}

.field__error {
  display: none;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--danger);
}

.field--invalid .field__error {
  display: block;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  color: var(--text);
}

.choice input {
  width: auto;
  min-height: 0;
  margin: 0.35rem 0 0;
  accent-color: var(--blue-700);
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: var(--space-4);
  font-weight: 600;
  border-left: 4px solid;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.form-status--error {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.form-status p:last-child {
  margin-bottom: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   9a. Homepage — Hero, Lanes, Story, CTA
   -------------------------------------------------------------------------- */

/* Hero — gradient background */
.hero--home {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 40%, #1a3a5c 70%, #2a4a6a 100%);
  color: #d7e3f3;
  border-bottom: 0;
  overflow: hidden;
  position: relative;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hex-pattern.svg");
  background-size: 600px 520px;
  background-repeat: repeat;
  pointer-events: none;
}

.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 122, 26, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(0, 166, 166, 0.1) 0%, transparent 35%);
  pointer-events: none;
}

.hero--home .hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-9);
  max-width: 48rem;
}

/* Hero background photo with dark overlay */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

/* Veteran badge — used in trust section */
.veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--orange-050);
  border: 1px solid var(--orange);
  color: #a8480a;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* Header contact link */
.header-contact {
  display: none;
}

.header-contact a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--step--1);
}

.header-contact a:hover {
  color: var(--blue-700);
}

@media (min-width: 1024px) {
  .header-contact {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: var(--space-3);
  }
}

.hero--home h1 {
  color: var(--white);
  font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.hero--home p {
  color: #e0e8f2;
  font-size: var(--step-1);
  max-width: 48ch;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero--home strong {
  color: var(--white);
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.hero__list li {
  position: relative;
  padding-left: 1.6rem;
  color: #e0e8f2;
  font-size: var(--step-0);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero--home .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.hero--home .btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* Hero accent colors per page */
.hero--orange { --hero-accent: #ff7a1a; }
.hero--blue { --hero-accent: #1677ff; }
.hero--teal { --hero-accent: #00a6a6; }
.hero--navy-accent { --hero-accent: #1d4278; }

/* Section photos — inline images for breaking up text */
.section-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.section-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.section-photo--tall img {
  aspect-ratio: 3 / 4;
  object-position: 30% center;
}

/* Sub-page hero with photo background */
.hero--photo {
  position: relative;
  overflow: hidden;
}

.hero--photo .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--photo .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.35;
}

.hero--photo .hero__inner {
  position: relative;
  z-index: 1;
}

.btn--lg {
  padding: 0.9rem 1.8rem;
  font-size: var(--step-1);
  min-height: 54px;
}

/* Audience lanes */
.section--lanes {
  padding-block: var(--space-9);
  padding-top: calc(var(--space-9) + 2.5rem);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(11, 31, 58, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(11, 31, 58, 0.05) 0%, transparent 45%),
    #f5f0e8;
  position: relative;
  overflow: hidden;
}

.section--lanes::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 40%, #1a3a5c 70%, #2a4a6a 100%);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 2;
}

.section--lanes .container {
  position: relative;
  z-index: 1;
}

/* Section head with logo watermark */
/* Stat blocks — programs page */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.stat-block {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border-left: 4px solid var(--blue);
  background: var(--blue-050);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.stat-block--orange {
  border-left-color: var(--orange);
  background: var(--orange-050);
}

.stat-block--teal {
  border-left-color: var(--teal);
  background: var(--teal-050);
}

.stat-block__number {
  font-family: var(--font-heading);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-block__label {
  font-size: var(--step--1);
  color: var(--text);
  margin-top: var(--space-2);
}

.stat-block__source {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-style: italic;
}

.section--lanes .section-head {
  margin-bottom: var(--space-7);
}

.section--lanes .section-head p {
  margin-inline: auto;
}

.lanes {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.lane {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.lane:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.lane__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.lane__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lane:hover .lane__img img {
  transform: scale(1.05);
}

.lane__body {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  flex: 1;
}

.lane--orange .lane__body {
  background: linear-gradient(160deg, #e86a10 0%, #c1560c 100%);
}

.lane--blue .lane__body {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 100%);
}

.lane--teal .lane__body {
  background: linear-gradient(160deg, #00b8b8 0%, #008585 100%);
}

.lane--navy .lane__body {
  background: linear-gradient(160deg, var(--navy-500) 0%, var(--navy) 100%);
}

.lane h3 {
  color: var(--white);
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
}

.lane p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3);
  max-width: none;
  font-size: var(--step--1);
  flex: 1;
}

.lane__action {
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: auto;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.lane:hover .lane__action {
  opacity: 1;
}

/* Story / trust section */
.section--story {
  background: linear-gradient(180deg, var(--gray-050) 0%, var(--white) 100%);
  padding-block: var(--space-9);
}

.story-grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
  }
}

.story-content .lede {
  margin-bottom: var(--space-6);
}

.story-values {
  display: grid;
  gap: var(--space-4);
}

.story-value {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: var(--space-4);
  border-left: 3px solid var(--orange);
}

.story-value:nth-child(2) {
  border-color: var(--teal);
}

.story-value:nth-child(3) {
  border-color: var(--blue);
}

.story-value:nth-child(4) {
  border-color: var(--navy);
}

.story-value strong {
  font-size: var(--step-0);
}

.story-value span {
  color: var(--text-muted);
  font-size: var(--step--1);
}

.story-proof {
  display: grid;
  gap: var(--space-5);
}

.proof-card {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.proof-card--quote {
  background: linear-gradient(145deg, #008585 0%, #006868 100%);
  color: var(--white);
}

.proof-card--quote blockquote {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--white);
}

.proof-card__attr {
  margin: 0;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.7);
}

.proof-card--combined {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.proof-card--combined .proof-card__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.proof-card--combined .proof-card__text {
  background: linear-gradient(145deg, #008585 0%, #006868 100%);
  padding: var(--space-5) var(--space-6);
}

.proof-card--combined blockquote {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--white);
}

.proof-card--combined .proof-card__attr {
  margin: 0;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.7);
}
  margin-top: var(--space-2);
}

/* Final CTA band */
.section--cta {
  background: linear-gradient(135deg, #e86a10 0%, #c1560c 60%, #a84808 100%);
  color: #fff;
  padding-block: var(--space-8);
  padding-top: calc(var(--space-8) + 3rem);
  position: relative;
  margin-top: 3rem;
}

.section--cta::before {
  content: "";
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(135deg, #e86a10 0%, #c1560c 60%, #a84808 100%);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.section--cta h2 {
  color: var(--white);
  font-size: var(--step-3);
}

.section--cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--step-1);
  margin-inline: auto;
  max-width: 42ch;
}

.section--cta .btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.section--cta .btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.section--cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.section--cta .btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: #c1560c;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #c4d3e6;
  padding-block: var(--space-7) var(--space-5);
  font-size: var(--step--1);
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: var(--step-0);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.site-footer a {
  color: #cfdcec;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.footer-brand p {
  max-width: 34ch;
}

.footer-brand .brand__name,
.footer-brand .brand__tag {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Utilities & motion
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.h-sm {
  font-size: var(--step-1);
}

.u-mt-6 {
  margin-top: var(--space-6);
}

.u-mt-7 {
  margin-top: var(--space-7);
}

.u-mb-0 {
  margin-bottom: 0;
}

.field--narrow {
  max-width: 22rem;
}

.stack > * + * {
  margin-top: var(--space-4);
}

.note {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--navy);
  background: var(--gray-050);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .utility-bar,
  .site-footer,
  .btn-row {
    display: none;
  }
}

/* ==========================================================================
   14. Inquiry manager (admin.html)
   Internal tool. Reuses the site tokens so it never looks like a bolt-on.
   ========================================================================== */

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Button sizes and the destructive variants the manager needs. */
.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: var(--step--1);
  min-height: 40px;
}

.btn--xs {
  padding: 0.35rem 0.6rem;
  font-size: var(--step--1);
  min-height: 34px;
}

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

.btn--danger:hover {
  background: #8f1e17;
  border-color: #8f1e17;
}

.btn--danger-ghost {
  background: transparent;
  color: var(--danger);
  border-color: var(--border);
}

.btn--danger-ghost:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.btn-row--tight {
  gap: var(--space-2);
  flex-wrap: wrap;
}

.utility-bar--admin {
  background: var(--navy);
}

.header-actions--admin {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.site-footer--slim {
  padding-block: var(--space-5);
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
}

.grid--tight {
  gap: var(--space-3);
}

/* --- Status tiles ------------------------------------------------------- */
.stat-row {
  list-style: none;
  margin: var(--space-5) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: var(--space-3);
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gray-400);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--step-2);
  color: var(--navy);
  line-height: 1.1;
}

.stat__label {
  display: block;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.stat--all { border-left-color: var(--navy); }
.stat--new { border-left-color: var(--blue); }
.stat--in-progress { border-left-color: var(--orange); }
.stat--waiting { border-left-color: var(--teal); }
.stat--closed { border-left-color: var(--success); }
.stat--spam { border-left-color: var(--gray-400); }

/* --- Filter toolbar ----------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.field--inline {
  margin: 0;
  flex: 1 1 11rem;
  min-width: 9rem;
}

.field--inline > label {
  font-size: var(--step--1);
  margin-bottom: var(--space-1);
}

.toolbar .btn {
  flex: 0 0 auto;
}

/* --- Bulk action bar ---------------------------------------------------- */
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  background: var(--blue-050);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
}

.bulk-bar p {
  margin: 0;
}

.bulk-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.bulk-bar select {
  min-height: 40px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font: inherit;
  font-size: var(--step--1);
}

/* --- Table -------------------------------------------------------------- */
.data-table {
  min-width: 60rem;
}

.data-table tbody tr:hover {
  background: var(--gray-050);
}

.data-table tbody tr.is-selected {
  background: var(--blue-050);
}

.data-table td {
  font-size: var(--step--1);
}

.cell-check {
  width: 2.5rem;
}

.cell-check input {
  width: 1.15rem;
  height: 1.15rem;
}

.cell-ref {
  white-space: nowrap;
}

.cell-date {
  white-space: nowrap;
  color: var(--text-muted);
}

.cell-name {
  font-weight: 600;
  color: var(--navy);
}

.cell-contact a {
  word-break: break-word;
}

.cell-message {
  max-width: 22rem;
}

.cell-message__note {
  display: block;
  margin-top: var(--space-1);
  color: var(--text-muted);
  font-style: italic;
}

.cell-actions {
  white-space: nowrap;
}

.cell-actions .btn + .btn {
  margin-left: var(--space-1);
}

.ref {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy);
}

/* --- Tags --------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.5;
  background: var(--gray-100);
  color: var(--gray-800);
  white-space: nowrap;
}

.tag--muted {
  background: transparent;
  color: var(--text-muted);
  padding-left: 0;
  font-size: 0.7rem;
}

.tag--youth { background: var(--orange-050); color: #8a3c00; }
.tag--adult { background: var(--blue-050); color: var(--blue-800); }
.tag--silverclicks { background: var(--teal-050); color: #005c5c; }
.tag--business { background: #ece9e2; color: var(--navy); }
.tag--partnership { background: #efe6f7; color: #4b2a6b; }
.tag--events { background: var(--teal-050); color: #005c5c; }
.tag--other { background: var(--gray-100); color: var(--gray-800); }

/* --- Inline status control ---------------------------------------------- */
.status-select {
  font: inherit;
  font-size: var(--step--1);
  padding: 0.3rem 0.5rem;
  min-height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.status-select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.status-select--new { border-color: var(--blue); background: var(--blue-050); }
.status-select--in-progress { border-color: var(--orange); background: var(--orange-050); }
.status-select--waiting { border-color: var(--teal); background: var(--teal-050); }
.status-select--closed { border-color: var(--success); background: var(--success-bg); }
.status-select--spam { border-color: var(--gray-400); background: var(--gray-100); }

.empty-state {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* --- Dialogs ------------------------------------------------------------ */
.modal {
  width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg);
  color: var(--text);
}

.modal--sm {
  width: min(28rem, calc(100vw - 2rem));
}

.modal::backdrop {
  background: rgba(11, 31, 58, 0.55);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.modal__head h2 {
  margin: 0;
  font-size: var(--step-1);
}

.modal__close {
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius);
}

.modal__close:hover {
  background: var(--gray-100);
  color: var(--text);
}

.modal__body {
  padding: var(--space-5);
  overflow-y: auto;
  max-height: min(60vh, 34rem);
}

.modal__body > .field:first-of-type {
  margin-top: var(--space-3);
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (max-width: 640px) {
  .section-head--row,
  .modal__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .modal__foot .btn {
    width: 100%;
  }
}
