@import url('/assets/css/bomforge-brand.css?v=20261011t');

/* State Detail Page Styles — /trade-schools/states/:state (52 pages).

   THEME. This file is written against the design-tokens vocabulary
   (--bg-*, --text-*, --border-*, --color-primary), which bomforge-brand.css
   pins DARK at :root:root with no light counterpart. The site's product
   default is light (theme-toggle.js / header-premium.js put [data-theme] on
   <html>), so before the bridge below these pages rendered a light header and
   a light toggle on a permanently black page. The bridge re-points that
   vocabulary onto --paper/--ink/--line/--accent, which ARE theme-aware, so
   every rule in this file follows the toggle without being rewritten.
   Do not reintroduce a dark literal as a var() fallback: the fallback never
   fires (the var is always defined) and it hides which theme a rule assumes.

   COLOR. One chromatic mark on the page: --seg-trade (Old Glory forge red),
   the same hue /trade-schools/ uses for a trade school. Chrome is ink on
   paper. The legacy gold (#aca9a3) is retired; it was not a BOMForge color.
*/
@import url('./design-tokens.css?v=20261011t');
@import url('./header-premium.css?v=20261011t');

/* ---- Theme bridge: legacy vocabulary -> theme-aware tokens ---------------
   Aliases inherit their theme from the source token, so they need stating
   once. Only the tints below (which bake an alpha) need a per-theme value. */
:root:root {
  --bg-void: var(--paper);
  --bg-base: var(--paper);
  --bg-primary: var(--paper);
  --bg-surface: var(--paper-2);
  --bg-secondary: var(--paper-2);
  --bg-card: var(--paper-2);
  --bg-elevated: var(--gray-100);
  --bg-tertiary: var(--gray-100);
  --bg-overlay-subtle: var(--gray-200);
  --bg-hover: var(--gray-100);

  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --text-disabled: var(--gray-400);

  --border-subtle: var(--line);
  --border-default: var(--line-strong);
  --border-strong: var(--line-strong);
  --border-color: var(--line-strong);
  --border-focus: var(--accent);

  --color-primary: var(--accent);
  --color-primary-hover: var(--accent-hover);

  /* Page-local tints. --ts-mark is the trade-school data hue. */
  --ts-mark: var(--seg-trade);
  --ts-on-mark: #fffff8;
  --ts-accent-soft: rgba(10, 10, 10, 0.06);
  --ts-accent-ring: rgba(10, 10, 10, 0.14);
  --ts-mark-soft: rgba(191, 10, 48, 0.09);
  --ts-mark-line: rgba(191, 10, 48, 0.22);
  --ts-scrim: rgba(255, 255, 255, 0.92);
  --ts-shadow: 0 1px 2px rgba(22, 19, 15, 0.05), 0 8px 24px rgba(22, 19, 15, 0.07);
  --ts-shadow-lift: 0 2px 4px rgba(22, 19, 15, 0.06), 0 16px 40px rgba(22, 19, 15, 0.1);
  --ts-hero-glow: radial-gradient(ellipse at center, rgba(191, 10, 48, 0.05) 0%, transparent 70%);
  --ts-marker-ring: #fffff8;
}

:root:root[data-theme='dark'] {
  --ts-accent-soft: rgba(245, 245, 245, 0.08);
  --ts-accent-ring: rgba(245, 245, 245, 0.18);
  --ts-mark-soft: rgba(212, 33, 63, 0.16);
  --ts-mark-line: rgba(212, 33, 63, 0.34);
  --ts-scrim: rgba(10, 10, 10, 0.86);
  --ts-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --ts-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45);
  --ts-hero-glow: radial-gradient(ellipse at center, rgba(212, 33, 63, 0.1) 0%, transparent 70%);
  --ts-marker-ring: #0c0a06;
}

/* No [data-theme] yet (JS blocked, or before the inline theme-init runs on a
   page that predates it) and the OS is dark: follow the OS for the tints, the
   way the aliases already do. A pinned light theme opts out. */
@media (prefers-color-scheme: dark) {
  :root:root:not([data-theme='light']) {
    --ts-accent-soft: rgba(245, 245, 245, 0.08);
    --ts-accent-ring: rgba(245, 245, 245, 0.18);
    --ts-mark-soft: rgba(212, 33, 63, 0.16);
    --ts-mark-line: rgba(212, 33, 63, 0.34);
    --ts-scrim: rgba(10, 10, 10, 0.86);
    --ts-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --ts-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45);
    --ts-hero-glow: radial-gradient(ellipse at center, rgba(212, 33, 63, 0.1) 0%, transparent 70%);
    --ts-marker-ring: #0c0a06;
  }
}

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

html {
  background: var(--paper);
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text-primary);
  line-height: var(--leading-normal, 1.5);
  padding-top: 48px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Reveal — staggered entrance */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}
.breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.4;
}
.breadcrumb-current {
  color: var(--text-primary);
  font-weight: var(--font-medium);
}

/* Hero — premium with animated radial glow */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: var(--ts-hero-glow);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.1);
  }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ts-mark);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--ts-mark-line);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px transparent;
  }
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: var(--font-extrabold, 800);
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons — gradient primary */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 2px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--ts-shadow);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-secondary:hover {
  border-color: var(--line-strong);
  background: var(--bg-overlay-subtle);
  transform: translateY(-1px);
}

/* Stats Row — animated counters */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}
.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-surface);
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ts-mark);
  opacity: 0;
  transition: opacity 0.25s;
}
.stat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--ts-shadow);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-value {
  font-family: var(--font-data, var(--font-mono));
  font-size: 36px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */
.section {
  margin-bottom: 56px;
}
.section-title {
  font-size: var(--text-xl, 20px);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .title-count {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: var(--font-medium);
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 2px;
}

/* Overview */
.overview-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}
.overview-text p {
  margin-bottom: 16px;
}
.overview-text p:last-child {
  margin-bottom: 0;
}

/* Quick Links Bar — cross-link to suppliers/companies */
.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
}
.quick-link:hover {
  border-color: var(--accent);
  background: var(--ts-accent-soft);
  transform: translateY(-1px);
}
.quick-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Map Preview -----------------------------------------------------------
   Basemap tiles are chosen in state-detail.js from [data-theme]; everything
   drawn ON the map is tokenized here so the two halves cannot drift. The
   only hue is --ts-mark: one pin = one school, one cluster = many, and the
   cluster's SIZE carries the count. Leaflet's stock cluster palette
   (green/amber/red by count) is suppressed: it reads as a severity scale
   for what is only "more dots here". */
/* Map + city distribution sit side by side on a wide viewport; the panel is
   built by state-detail.js from SCHOOLS_DATA, so it exists on every state
   page without touching the generated markup. */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 272px;
  }
}
.map-cities {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  min-width: 0;
}
.map-cities-head {
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.map-cities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.map-city {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 7px 8px 9px;
  background: none;
  border: 0;
  border-radius: 2px;
  font: inherit;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
}
.map-city:disabled {
  cursor: default;
}
.map-city:not(:disabled):hover {
  background: var(--bg-elevated);
}
.map-city:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.map-city-name {
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-city-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
/* Hairline bar: the ranking is the point, so it sits under the row rather
   than taking a column of its own. */
.map-city-bar {
  grid-column: 1 / -1;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--ts-mark-soft);
  overflow: hidden;
}
.map-city-bar::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--ts-mark);
  border-radius: 2px;
}
.map-cities-foot {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.map-preview-container {
  position: relative;
  display: flex;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: var(--ts-shadow);
  background: var(--bg-surface);
}
/* The grid stretches this column to the city panel's height, so the canvas
   has to grow with it — otherwise the map ends early and the overlay link
   lands on a bare strip below it. */
.map-preview {
  flex: 1;
  min-height: 460px;
  width: 100%;
  background: var(--bg-surface);
}
.map-preview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Floating chrome. The legend sits top-RIGHT: top-left is Leaflet's zoom
   control, and the two used to overlap. */
.map-overlay-link,
.map-legend,
.map-scroll-hint {
  background: var(--ts-scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  z-index: 1000;
}
.map-overlay-link {
  position: absolute;
  /* clears the attribution strip, which is required and must stay legible */
  bottom: 30px;
  right: 12px;
  padding: 10px 18px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}
.map-overlay-link:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.map-legend {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.map-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ts-mark);
  border: 1.5px solid var(--ts-marker-ring);
  box-shadow: 0 0 0 1px var(--ts-mark-line);
  flex-shrink: 0;
}

/* Wheel-zoom hint. The map ignores a plain scroll so the page keeps
   scrolling under the cursor; the hint appears only when someone tries. */
.map-scroll-hint {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  pointer-events: none;
  z-index: 1200;
}
.map-preview-container.show-hint .map-scroll-hint {
  opacity: 1;
  visibility: visible;
}

/* Markers: a pin, not a blank disc */
.ts-marker {
  background: none;
  border: none;
}
.ts-marker-pin {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ts-mark);
  border: 2px solid var(--ts-marker-ring);
  box-shadow:
    0 0 0 1px var(--ts-mark-line),
    0 2px 6px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.ts-marker:hover .ts-marker-pin,
.ts-marker:focus-visible .ts-marker-pin {
  transform: scale(1.35);
  box-shadow:
    0 0 0 3px var(--ts-mark-soft),
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.ts-marker:focus-visible {
  outline: none;
}

/* Clusters: one hue, size carries the count */
.ts-cluster {
  background: none;
  border: none;
}
.ts-cluster-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--ts-mark);
  color: var(--ts-on-mark);
  border: 2px solid var(--ts-marker-ring);
  box-shadow:
    0 0 0 1px var(--ts-mark-line),
    0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--font-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: transform 0.15s ease;
}
.ts-cluster-sm .ts-cluster-bubble {
  font-size: 11px;
}
.ts-cluster-lg .ts-cluster-bubble {
  font-size: 13px;
}
.ts-cluster:hover .ts-cluster-bubble {
  transform: scale(1.08);
}
/* Suppress the stock markercluster palette loaded from the CDN. */
.marker-cluster,
.marker-cluster div {
  background: none !important;
  color: inherit !important;
}

/* Leaflet chrome */
.map-preview .leaflet-control-zoom a {
  background: var(--ts-scrim);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.map-preview .leaflet-control-zoom a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.map-preview .leaflet-control-attribution {
  background: var(--ts-scrim);
  color: var(--text-muted);
  font-size: 10px;
}
.map-preview .leaflet-control-attribution a {
  color: var(--text-secondary);
}

/* Map Popups */
.leaflet-popup-content-wrapper {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: 2px !important;
  box-shadow: var(--ts-shadow-lift) !important;
  color: var(--text-primary) !important;
}
.leaflet-popup-tip {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-default) !important;
}
.leaflet-popup-content {
  margin: 12px 14px !important;
  font-size: 13px !important;
  font-family: var(--font-sans);
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--text-muted);
}
.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--text-primary);
}
.ts-popup-name {
  display: block;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}
.ts-popup-city {
  display: block;
  color: var(--text-secondary);
}
.ts-popup-programs {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}
.ts-popup-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: var(--font-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ts-popup-link:hover {
  color: var(--ts-mark);
}

/* Programs Grid — wider cards with proper icons */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.program-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}
.program-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--ts-shadow);
}
.program-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ts-mark-soft);
  border: 1px solid var(--ts-mark-line);
  border-radius: 2px;
  flex-shrink: 0;
  color: var(--ts-mark);
}
.program-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.program-info {
  flex: 1;
  min-width: 0;
}
.program-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.program-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Cities */
.cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all 0.2s;
}
.city-badge:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.city-count {
  background: var(--bg-overlay-subtle);
  color: var(--text-secondary);
  padding: 1px 7px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: var(--font-semibold);
}

/* Certifications */
.certs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}
/* Featured Schools — richer cards */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.school-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 24px;
  transition: all 0.25s cubic-bezier(0, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.school-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ts-mark);
  opacity: 0;
  transition: opacity 0.25s;
}
.school-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--ts-shadow-lift);
}
.school-card:hover::before {
  opacity: 1;
}
.school-card-name {
  font-size: var(--text-base, 15px);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.school-card-location {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.school-card-location::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.school-card-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.school-program-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 2px;
  font-size: 11px;
  font-weight: var(--font-medium);
}
.school-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: gap 0.2s;
}
.school-card:hover .school-card-link {
  gap: 8px;
}

/* Schools Table */
.schools-table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.table-search {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.table-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-family);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.table-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ts-accent-ring);
}
.table-search-input::placeholder {
  color: var(--text-muted);
}
.table-search-wrap {
  position: relative;
}
.table-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.schools-table {
  width: 100%;
  border-collapse: collapse;
}
.schools-table th,
.schools-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.schools-table th {
  background: var(--bg-elevated);
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.schools-table tbody tr {
  transition: background 0.15s;
}
.schools-table tbody tr:hover {
  background: var(--bg-elevated);
}
.schools-table tbody tr:last-child td {
  border-bottom: none;
}
.schools-table td {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.table-school-name {
  font-weight: var(--font-medium);
}
.table-school-name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.table-school-name a:hover {
  color: var(--ts-mark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.table-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.table-program-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 2px;
  font-size: 11px;
}
.table-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.table-link:hover {
  text-decoration: underline;
}
.no-results {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* CTA — premium gradient border */
.cta-section {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 56px 32px;
  text-align: center;
  margin-bottom: 48px;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: var(--ts-hero-glow);
  pointer-events: none;
}
.cta-title {
  font-size: var(--text-2xl, 24px);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
}
.cta-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  margin-top: 56px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  text-decoration: none;
}
.footer-logo span {
  color: var(--forge-red);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: var(--text-primary);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 36px 0;
  }
  .hero h1 {
    font-size: 24px;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 24px;
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .map-preview {
    min-height: 320px;
  }
  .schools-table .hide-mobile {
    display: none;
  }
  .cta-section {
    padding: 32px 20px;
  }
  .quick-links {
    gap: 8px;
    padding: 16px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 22px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
}
