:root {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark: #020617;
  --bg-dark-elev: #0f172a;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #475569;
  --border-hair: #e2e8f0;
  --accent: #d97706;
  --accent-bright: #f59e0b;
  --accent-hover: #fbbf24;
  --font-display: "Archivo", system-ui, -apple-system, sans-serif;
  --font-sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.mono-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

.mono-index-light {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fbbf24;
  padding-top: 0.125rem;
  font-variant-numeric: tabular-nums;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border-hair);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .primary-nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--bg-dark);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.125rem;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.services-dropdown-wrap {
  position: relative;
}

.btn-header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.375rem;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

@media (min-width: 768px) {
  .btn-header-cta {
    display: inline-flex;
  }
}

.btn-header-cta:hover,
.btn-header-cta.is-active {
  background: var(--accent-bright);
  color: var(--bg-dark);
}

.services-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 32rem;
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  z-index: 50;
}

.services-dropdown-panel[hidden] {
  display: none;
}

.dropdown-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 0.625rem;
}

.dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-link {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-body);
  text-decoration: none;
}

.dropdown-link:hover,
.dropdown-link.is-active {
  background: #f1f5f9;
  color: var(--bg-dark);
  font-weight: 600;
}

.dropdown-divider {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.dropdown-link-bold {
  display: block;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-dark);
  text-decoration: none;
}

.dropdown-link-bold:hover {
  color: #b45309;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.375rem;
  border: 1px solid var(--border-hair);
  background: #ffffff;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  border-top: 1px solid var(--border-hair);
  background: #ffffff;
  padding: 1.25rem 0;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
}

.mobile-nav-link.is-active {
  background: #f1f5f9;
  color: var(--bg-dark);
  font-weight: 600;
}

.mobile-current-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #b45309;
}

.mobile-drawer-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hair);
}

.mobile-section-label {
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-sublinks {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-sublink {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary,
.btn-dark,
.btn-outline,
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn-primary {
  background: var(--accent-bright);
  color: var(--bg-dark);
  border: 1px solid var(--accent-bright);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
  border: 1px solid var(--bg-dark);
}

.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

.btn-outline {
  background: #ffffff;
  color: var(--bg-dark);
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.btn-outline:hover {
  background: #f8fafc;
}

.btn-ghost-light {
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.65);
  font-weight: 600;
}

.btn-ghost-light:hover {
  border-color: #ffffff;
  background: rgba(15, 23, 42, 0.9);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #ffffff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.8) 52%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .hero-content {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.hero-copy {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fbbf24;
}

.hero-h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Pillars Strip */
.pillars-bar {
  border-bottom: 1px solid var(--border-hair);
  background: #ffffff;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
}

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

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

.pillar-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-hair);
}

.pillar-item:last-child {
  border-bottom: 0;
}

@media (min-width: 1024px) {
  .pillar-item {
    border-bottom: 0;
    border-right: 1px solid var(--border-hair);
    padding: 1.5rem 1.25rem;
  }
  .pillar-item:first-child {
    padding-left: 0;
  }
  .pillar-item:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

.pillar-title {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.pillar-copy {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */
.section-pad {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-band {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: #ffffff;
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
}

.section-intro {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
}

.section-h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
}

.section-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.band-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .band-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Bento Grid */
.bento-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-card-wide {
    grid-column: span 2;
  }
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.5rem;
  transition: border-color 150ms ease;
}

.bento-card:hover {
  border-color: #94a3b8;
}

.bento-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bento-title {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.bento-title a {
  text-decoration: none;
}

.bento-title a:hover {
  color: #b45309;
}

.bento-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.bento-foot,
.corridor-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.inline-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-dark);
  text-decoration: none;
}

.inline-arrow-link:hover {
  color: #b45309;
}

/* Corridors */
.corridor-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.corridor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: var(--bg-canvas);
  padding: 1.5rem;
}

.corridor-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.corridor-title {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.corridor-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Trust & Dark Checklist Split */
.trust-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .trust-split {
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
  }
}

.trust-card {
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.trust-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 0.75rem;
}

.trust-copy {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.text-link-amber {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-dark);
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 6, 0.6);
  text-underline-offset: 4px;
}

.text-link-muted {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-dark);
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 4px;
}

.checklist-card-dark {
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.dark-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.dark-kicker-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

.dark-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.dark-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.dark-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

/* Detail Pages */
.page-main {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  font-weight: 500;
  text-decoration: none;
  color: var(--text-body);
}

.breadcrumb a:hover {
  color: #b45309;
}

.detail-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .detail-header-grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }
  .detail-header-text {
    grid-column: span 7;
  }
  .detail-header-text-wide {
    grid-column: span 9;
  }
  .detail-figure {
    grid-column: span 5;
  }
}

.detail-header-text,
.detail-header-text-wide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-h1 {
  font-size: clamp(1.875rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
}

.detail-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.detail-figure {
  margin: 0;
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
}

.detail-figure-frame {
  aspect-ratio: 4 / 3;
  background: var(--bg-dark-elev);
}

.detail-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-figure figcaption {
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-hair);
}

.highlights-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.highlight-card {
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.25rem;
}

.highlight-title {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.highlight-desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.detail-body-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .detail-body-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.detail-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-block {
  border-bottom: 1px solid var(--border-hair);
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.content-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.content-block p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
}

.detail-bullets {
  list-style: none;
  padding: 0.25rem 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-body);
}

.detail-bullets img {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.notice-card {
  border: 1px solid #fde68a;
  background: rgba(254, 243, 199, 0.55);
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notice-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.notice-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-body);
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.related-card {
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.5rem;
}

.related-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bg-dark);
}

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

.related-list li {
  border-bottom: 1px solid #f1f5f9;
}

.related-list li:last-child {
  border-bottom: 0;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
}

.related-link:hover {
  color: #b45309;
}

/* Site-Wide Sitelinks Directory */
.sitelinks-card {
  margin-top: 3.5rem;
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.5rem;
}

.sitelinks-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 640px) {
  .sitelinks-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sitelinks-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.sitelinks-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.sitelinks-col {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.sitelinks-col a {
  color: var(--text-body);
  text-decoration: none;
}

.sitelinks-col a:hover {
  color: #b45309;
}

/* Gallery */
.gallery-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.25rem;
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: #f1f5f9;
  width: fit-content;
}

.filter-tab {
  border: 0;
  background: transparent;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-tab.is-active {
  background: #ffffff;
  color: var(--bg-dark);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.gallery-card {
  margin: 0;
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
}

.gallery-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-dark-elev);
}

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

.gallery-caption {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gallery-cat {
  font-weight: 600;
  color: #b45309;
}

.gallery-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.gallery-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Dispatch Builder */
.dispatch-card {
  margin-top: 3rem;
  border: 1px solid var(--border-hair);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1.75rem;
}

.dispatch-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-field-full {
    grid-column: span 2;
  }
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.req-mark {
  color: #b45309;
}

.form-field input,
.form-field select {
  margin-top: 0.375rem;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--bg-dark);
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.form-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dispatch-output {
  margin-top: 1.5rem;
  border: 1px solid var(--border-hair);
  border-radius: 0.375rem;
  background: var(--bg-canvas);
  padding: 1rem;
}

.dispatch-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
}

.btn-copy {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 0.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.dispatch-pre {
  margin: 0.75rem 0 0;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* 404 */
.not-found-main {
  max-width: 48rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #1e293b;
  background: var(--bg-dark);
  color: #cbd5e1;
}

.footer-inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 4fr 2fr 3fr 3fr;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-list a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-list a:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
