/* KiKiallus Nation — Pacific Northwest sovereign government identity */
@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root,
[data-theme='light'] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 6.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Deep cedar, saltwater, copper — PNW coastal */
  --color-bg: #f4f1ea;
  --color-surface: #faf8f3;
  --color-surface-2: #fffdf8;
  --color-surface-offset: #ebe6db;
  --color-surface-offset-2: #e2dccf;
  --color-surface-dynamic: #d8d1c2;
  --color-divider: #d0c9ba;
  --color-border: #c4bbab;

  --color-text: #1a2428;
  --color-text-muted: #5c6569;
  --color-text-faint: #8a9296;
  --color-text-inverse: #f4f1ea;

  --color-primary: #1e3a4c;
  --color-primary-hover: #152a38;
  --color-primary-active: #0f1f2a;
  --color-primary-highlight: #d4dde3;

  --color-accent: #c45c26;
  --color-accent-hover: #a34a1c;
  --color-accent-highlight: #f0ddd0;

  --color-success: #2f5d3a;
  --color-success-highlight: #d5e4d8;
  --color-error: #8b2e2e;
  --color-error-highlight: #f0d6d6;
  --color-warning: #8a5a12;
  --color-warning-highlight: #f0e4c8;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 220 / 0.06);
  --shadow-md: 0 4px 16px oklch(0.25 0.02 220 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.25 0.02 220 / 0.14);

  --content-narrow: 680px;
  --content-default: 960px;
  --content-wide: 1180px;
  --header-h: 5.75rem;
  --header-banner: #c45c26;
  --header-banner-text: #fffaf4;
  --header-banner-muted: oklch(0.97 0.02 60 / 0.88);
  --header-banner-hover: oklch(0.28 0.06 40 / 0.22);
  --page-gutter: clamp(1rem, 4vw, 2rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

[data-theme='dark'] {
  --color-bg: #0f1417;
  --color-surface: #161c20;
  --color-surface-2: #1b2227;
  --color-surface-offset: #1a2126;
  --color-surface-offset-2: #222a30;
  --color-surface-dynamic: #2a343b;
  --color-divider: #2a333a;
  --color-border: #3a4650;
  --color-text: #e4e0d8;
  --color-text-muted: #9aa3a9;
  --color-text-faint: #6b747a;
  --color-text-inverse: #0f1417;
  --color-primary: #7ba3bc;
  --color-primary-hover: #9bb8cb;
  --color-primary-active: #b8cfdc;
  --color-primary-highlight: #243038;
  --color-accent: #e07a42;
  --color-accent-hover: #f0905a;
  --color-accent-highlight: #3a2820;
  --color-success: #6aab78;
  --color-success-highlight: #1e3024;
  --color-error: #d47878;
  --color-error-highlight: #3a2222;
  --color-warning: #d4a84b;
  --color-warning-highlight: #332a18;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1417;
    --color-surface: #161c20;
    --color-surface-2: #1b2227;
    --color-surface-offset: #1a2126;
    --color-surface-offset-2: #222a30;
    --color-surface-dynamic: #2a343b;
    --color-divider: #2a333a;
    --color-border: #3a4650;
    --color-text: #e4e0d8;
    --color-text-muted: #9aa3a9;
    --color-text-faint: #6b747a;
    --color-text-inverse: #0f1417;
    --color-primary: #7ba3bc;
    --color-primary-hover: #9bb8cb;
    --color-primary-active: #b8cfdc;
    --color-primary-highlight: #243038;
    --color-accent: #e07a42;
    --color-accent-hover: #f0905a;
    --color-accent-highlight: #3a2820;
    --color-success: #6aab78;
    --color-success-highlight: #1e3024;
    --color-error: #d47878;
    --color-error-highlight: #3a2222;
    --color-warning: #d4a84b;
    --color-warning-highlight: #332a18;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
  }
}

/* Fix typo in dark mode error color */
[data-theme='dark'] {
  --color-error: #d47878;
}

/* ——— Layout ——— */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

.container {
  width: min(100% - (var(--page-gutter) * 2), var(--content-wide));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - (var(--page-gutter) * 2), var(--content-narrow));
}
.container--default {
  width: min(100% - (var(--page-gutter) * 2), var(--content-default));
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-banner);
  border-bottom: 1px solid oklch(0.28 0.07 40 / 0.35);
  box-shadow: 0 2px 14px oklch(0.25 0.06 40 / 0.22);
  transition: box-shadow var(--transition-interactive);
  padding-top: var(--safe-top);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 18px oklch(0.22 0.06 40 / 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--header-banner-text);
  flex-shrink: 1;
  min-width: 0;
}
.brand img {
  height: 58px;
  width: auto;
  flex-shrink: 0;
  background: transparent;
  mix-blend-mode: normal;
  filter: drop-shadow(0 1px 2px oklch(0.2 0.05 40 / 0.25));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--header-banner-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  font-size: var(--text-xs);
  color: var(--header-banner-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 420px) {
  .brand-text span {
    display: none;
  }
  .brand img {
    height: 48px;
  }
  :root {
    --header-h: 5rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-1);
}
.nav-desktop a {
  text-decoration: none;
  color: var(--header-banner-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current='page'] {
  color: var(--header-banner-text);
  background: var(--header-banner-hover);
}
.nav-desktop a.nav-cta {
  background: oklch(0.22 0.05 40 / 0.35);
  color: var(--header-banner-text);
  margin-left: var(--space-2);
  border: 1px solid oklch(1 0 0 / 0.28);
}
.nav-desktop a.nav-cta:hover {
  background: oklch(0.2 0.05 40 / 0.5);
  color: var(--header-banner-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  color: var(--header-banner-text);
  border: 1px solid oklch(1 0 0 / 0.22);
  background: oklch(0.25 0.05 40 / 0.18);
}
.icon-btn:hover,
.icon-btn:active {
  background: var(--header-banner-hover);
  color: var(--header-banner-text);
}

.nav-mobile-toggle {
  display: inline-flex;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid oklch(1 0 0 / 0.18);
  padding: var(--space-3) var(--page-gutter) calc(var(--space-5) + var(--safe-bottom));
  background: #a34a1c;
  max-height: min(78dvh, calc(100dvh - var(--header-h) - var(--safe-top)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.nav-mobile.is-open {
  display: flex;
}
.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--header-banner-text);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-md);
}
.nav-mobile a:hover,
.nav-mobile a:active,
.nav-mobile a[aria-current='page'] {
  background: var(--header-banner-hover);
}
.nav-mobile a.nav-cta {
  margin-top: var(--space-3);
  background: oklch(0.2 0.05 40 / 0.4);
  color: var(--header-banner-text);
  justify-content: center;
  font-weight: 600;
  border: 1px solid oklch(1 0 0 / 0.28);
}
.nav-mobile a.nav-cta:hover,
.nav-mobile a.nav-cta:active {
  background: oklch(0.18 0.05 40 / 0.55);
  color: var(--header-banner-text);
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .nav-mobile-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
  .brand img {
    height: 64px;
  }
  :root {
    --header-h: 6.25rem;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(72svh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4f1ea;
}
@media (max-width: 640px) {
  .hero {
    min-height: min(68svh, 560px);
  }
  .hero__content {
    padding-block: clamp(var(--space-12), 14vw, var(--space-20)) calc(var(--space-10) + var(--safe-bottom));
  }
  .hero h1 {
    max-width: none;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.15 0.03 230 / 0.35) 0%, oklch(0.12 0.03 230 / 0.75) 55%, oklch(0.1 0.03 230 / 0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32)) var(--space-16);
}
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: var(--space-6);
  color: #faf8f3;
}
.hero__lead {
  font-size: var(--text-lg);
  max-width: 42ch;
  color: oklch(0.92 0.01 90 / 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
}
.btn--secondary {
  background: transparent;
  color: inherit;
  border-color: oklch(from currentColor l c h / 0.35);
}
.btn--secondary:hover {
  background: oklch(from currentColor l c h / 0.08);
}
.btn--solid {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--solid:hover {
  background: var(--color-primary-hover);
}
.btn--ghost {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.btn--ghost:hover {
  background: var(--color-surface-dynamic);
}
.btn--block {
  width: 100%;
}

/* ——— Page chrome ——— */
.page-hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) var(--space-10);
  background:
    linear-gradient(180deg, var(--color-surface-offset) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.4);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  max-width: 18ch;
}
.page-hero .lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  line-height: 1.65;
}

section {
  padding-block: clamp(var(--space-10), 7vw, var(--space-20));
}
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  max-width: 22ch;
}
/* Force specified page/section titles to a single line */
.title-oneline {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.2;
}
.page-hero h1.title-oneline {
  max-width: 100%;
}
.section-title.title-oneline {
  max-width: none;
}
/* Home gateways: two-line centered tagline above intro */
.section-label--center {
  text-align: center;
}
.section-title--gateway {
  max-width: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.gateway-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  text-align: center;
}
.gateway-tagline__line {
  display: block;
  white-space: nowrap;
  line-height: 1.25;
}
.section-intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-intro {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-10);
  line-height: 1.65;
}
.prose {
  max-width: 65ch;
}
.prose p + p {
  margin-top: var(--space-5);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: var(--space-10) 0 var(--space-4);
}
.prose h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-3);
}
.prose ul,
.prose ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}
.prose li + li {
  margin-top: var(--space-2);
}
.prose a {
  color: var(--color-primary);
}

/* ——— Grids & cards ——— */
.gate-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .gate-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .gate-grid .gate-card:first-child {
    grid-row: span 2;
  }
}
.gate-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.55);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.gate-card:first-child {
  min-height: 280px;
  background:
    linear-gradient(160deg, oklch(from var(--color-primary) l c h / 0.92), oklch(from var(--color-primary) l c h / 0.78)),
    url('./assets/government-chamber.jpg') center/cover;
  color: #faf8f3;
  border: none;
}
.gate-card:first-child .gate-card__label,
.gate-card:first-child p {
  color: oklch(0.92 0.01 90 / 0.85);
}
.gate-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.gate-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 36ch;
}
.gate-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.gate-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.gate-card:first-child:hover {
  border-color: transparent;
}

.split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-16);
  }
  .split--reverse > :first-child {
    order: 2;
  }
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-surface-offset);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  aspect-ratio: 4/3;
}

.stat-row {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
@media (min-width: 700px) {
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  border-radius: var(--radius-lg);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.stat span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.branch-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 800px) {
  .branch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .branch-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .branch-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.branch-card {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  border-radius: var(--radius-lg);
}
.branch-card__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.branch-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.branch-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.branch-card ul {
  margin-top: var(--space-4);
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.branch-card li + li {
  margin-top: var(--space-2);
}
.seat-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}
@media (min-width: 640px) {
  .seat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .seat-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.seat-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.55);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.seat-card__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.seat-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin: 0 0 0.4rem;
}
.seat-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
}
.plain-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}
.plain-list li + li {
  margin-top: 0.4rem;
}
.fact-list {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.65rem;
}
.fact-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  font-size: var(--text-sm);
}
.fact-list dt {
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 500;
}
.fact-list dd {
  margin: 0;
  color: var(--color-text);
}

.timeline {
  position: relative;
  border-left: 2px solid oklch(from var(--color-border) l c h / 0.7);
  padding-left: var(--space-8);
  display: grid;
  gap: var(--space-8);
}
.timeline__item {
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-bg);
}
.timeline__year {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.timeline__item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.timeline__item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ——— Courts / verify ——— */
.panel {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.55);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.panel + .panel {
  margin-top: var(--space-5);
}
.panel h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.panel p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-list {
  display: grid;
  gap: 0;
  border: 1px solid oklch(from var(--color-border) l c h / 0.55);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.4);
  align-items: baseline;
}
.service-row:last-child {
  border-bottom: none;
}
.service-row span {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.service-row strong {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
  white-space: nowrap;
}
.service-row--head {
  background: var(--color-surface-offset);
  font-weight: 600;
}
.service-row--head span,
.service-row--head strong {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.verify-form {
  display: grid;
  gap: var(--space-4);
}
.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-border) l c h / 0.8);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1rem; /* iOS: avoid focus zoom */
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.field-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.result {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  display: none;
}
.result.is-visible {
  display: block;
}
.result--valid {
  background: var(--color-success-highlight);
  border: 1px solid oklch(from var(--color-success) l c h / 0.35);
}
.result--invalid {
  background: var(--color-error-highlight);
  border: 1px solid oklch(from var(--color-error) l c h / 0.35);
}
.result--warn {
  background: var(--color-warning-highlight);
  border: 1px solid oklch(from var(--color-warning) l c h / 0.35);
}
.result__status {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.result--valid .result__status {
  color: var(--color-success);
}
.result--invalid .result__status {
  color: var(--color-error);
}
.result--warn .result__status {
  color: var(--color-warning);
}
.result h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.result dl {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.result dt {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.result dd {
  margin: 0 0 var(--space-2);
  font-weight: 500;
}

.two-col {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 860px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
  .two-col--aside {
    grid-template-columns: 1.4fr 0.9fr;
  }
}

.notice {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-accent-highlight);
  border: 1px solid oklch(from var(--color-accent) l c h / 0.25);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.notice strong {
  color: var(--color-accent-hover);
}

.doc-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) {
  .doc-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.doc-link {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
}
.doc-link:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}
.doc-link__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
}
.doc-link strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}
.doc-link span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.portal-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 700px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.portal-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  border-radius: var(--radius-lg);
}
.portal-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.portal-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.login-box {
  max-width: 420px;
  margin-inline: auto;
}

/* ——— Mission band ——— */
.mission-band {
  background: var(--color-primary);
  color: #f4f1ea;
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
}
.mission-band .section-label {
  color: var(--color-accent);
}
.mission-band blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.35;
  max-width: 28ch;
  margin-bottom: var(--space-6);
}
.mission-band p {
  max-width: 58ch;
  color: oklch(0.9 0.01 90 / 0.85);
  margin-bottom: var(--space-8);
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}
.contact-meta dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}
.contact-meta dd {
  font-weight: 500;
  margin: var(--space-1) 0 0;
}
.contact-meta a {
  color: var(--color-text);
  font-weight: 400;
  text-decoration: none;
}
.contact-meta a:hover {
  border-bottom: 1px solid oklch(from var(--color-text-muted) l c h / 0.5);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid oklch(from var(--color-border) l c h / 0.5);
  padding-block: var(--space-12) calc(var(--space-8) + var(--safe-bottom));
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-4);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32ch;
}
.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  padding-block: var(--space-1);
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-border) l c h / 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.footer-credit {
  text-align: center;
  flex: 1 1 auto;
  letter-spacing: 0.02em;
}
.footer-credit strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Mission hero — orca backdrop */
.page-hero--mission {
  position: relative;
  overflow: hidden;
  min-height: clamp(28rem, 62vw, 38rem);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(var(--space-16), 12vw, var(--space-24)) var(--space-12);
  background: #0b1820;
  border-bottom: none;
  color: #f4f1ea;
}
.page-hero--mission .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero--mission .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  transform: scale(1.06);
}
.page-hero--mission .page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(8, 18, 26, 0.88) 0%, rgba(8, 18, 26, 0.55) 42%, rgba(8, 18, 26, 0.28) 70%, rgba(8, 18, 26, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 18, 26, 0.35) 0%, rgba(8, 18, 26, 0.15) 40%, rgba(8, 18, 26, 0.82) 100%);
}
.page-hero--mission .page-hero__content {
  position: relative;
  z-index: 2;
}
.page-hero--mission .section-label {
  color: #e8a06a;
}
.page-hero--mission h1 {
  color: #f7f3eb;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.page-hero--mission .lead {
  color: rgba(244, 241, 234, 0.9);
  max-width: 48ch;
}
.page-hero--mission .mission-audio-btn {
  margin-top: var(--space-6);
  border-color: rgba(244, 241, 234, 0.35);
  color: #f4f1ea;
  background: rgba(8, 18, 26, 0.35);
  backdrop-filter: blur(6px);
}
.page-hero--mission .mission-audio-btn:hover,
.page-hero--mission .mission-audio-btn[aria-pressed="true"] {
  background: rgba(196, 92, 38, 0.85);
  border-color: transparent;
  color: #fff;
}
.page-mission .mission-band {
  position: relative;
}

/* ——— Utilities ——— */
.full-bleed-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
}
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media-frame img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.mt-0 { margin-top: 0; }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.text-muted { color: var(--color-text-muted); }
.seal-img {
  max-width: 180px;
  margin-inline: auto;
}
.court-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-10);
}
.court-banner img {
  width: 120px;
  height: auto;
}
.court-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.court-banner p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 50ch;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Registry */
.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  word-break: break-all;
}
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.badge--active {
  background: color-mix(in oklab, #2f6b4f 18%, var(--color-surface));
  color: #1f5c3f;
}
[data-theme='dark'] .badge--active {
  background: color-mix(in oklab, #6fcf97 22%, var(--color-surface));
  color: #9be7b5;
}
.match-list {
  display: grid;
  gap: var(--space-2);
}
.match-row {
  display: grid;
  gap: var(--space-1);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(from var(--color-border) l c h / 0.55);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  width: 100%;
}
.match-row:hover {
  border-color: var(--color-primary);
}
.registry-controls {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
@media (min-width: 700px) {
  .registry-controls {
    grid-template-columns: 1.4fr 0.8fr auto;
    align-items: end;
  }
}
.registry-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.stat-chip {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.stat-chip strong {
  color: var(--color-text);
  margin-right: 0.25rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid oklch(from var(--color-border) l c h / 0.55);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.registry-table {
  width: 100%;
  min-width: 720px;
  font-size: var(--text-sm);
}
.registry-table th,
.registry-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.4);
  vertical-align: top;
}
.registry-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
}
.registry-table tr:last-child td {
  border-bottom: none;
}
.linkish {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.linkish:hover {
  color: var(--color-primary-hover);
}

.source-list {
  list-style: none;
  margin-top: 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: var(--text-sm);
}
.source-list a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.35;
}
.source-list a:hover {
  color: var(--color-primary-hover);
}
.source-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .source-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .source-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.source-card {
  display: grid;
  gap: 0.35rem;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.55);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.source-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.source-card strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
}
.source-card span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}
.prose ul {
  margin: 1rem 0 1.25rem;
  padding-left: 1.15rem;
  max-width: 72ch;
}
.prose li {
  margin-top: 0.75rem;
}
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: var(--color-primary-hover);
}

/* ——— Contact email lists (bland addresses only) ——— */
.contact-emails,
.contact-phones {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.contact-emails a,
.contact-phones a,
.contact-meta a {
  color: var(--color-text);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-emails a:hover,
.contact-phones a:hover,
.contact-meta a:hover {
  border-bottom-color: oklch(from var(--color-text-muted) l c h / 0.5);
  color: var(--color-text);
}

/* ——— Directed mail triggers — office labels only; never publish addresses ——— */
.mail-to-btn {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid oklch(from currentColor l c h / 0.35);
  cursor: pointer;
  text-decoration: none;
  line-height: inherit;
  vertical-align: baseline;
  box-shadow: none;
}
.mail-to-btn:hover,
.mail-to-btn:focus-visible {
  background: none;
  border-bottom-color: currentColor;
  color: inherit;
  outline: none;
}
/* Keep real .btn mail triggers as buttons (e.g. Submit a matter) */
.mail-to-btn.btn {
  display: inline-flex;
  border-bottom: 0;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.office-mail-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}
.office-mail-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
body.mail-form-open {
  overflow: hidden;
}
.mail-form-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 640px) {
  .mail-form-modal {
    align-items: center;
    padding: var(--space-4);
  }
}
.mail-form-modal[hidden] {
  display: none !important;
}
.mail-form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0% 0 0 / 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mail-form-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: min(92dvh, 40rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-bottom: calc(var(--space-6) + var(--safe-bottom));
  box-shadow: 0 18px 48px oklch(0% 0 0 / 0.28);
}
@media (min-width: 640px) {
  .mail-form-modal__dialog {
    border-radius: var(--radius-lg);
    padding-bottom: var(--space-6);
  }
}
.mail-form-modal__x {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm, 4px);
}
.mail-form-modal__x:hover {
  color: var(--color-text);
  background: var(--color-surface-offset, transparent);
}
.mail-form-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.mail-form-modal__actions .btn {
  min-width: 7.5rem;
}

/* ——— Mobile-native polish ——— */
@media (max-width: 860px) {
  .page-hero {
    padding-block: clamp(var(--space-10), 10vw, var(--space-16)) var(--space-8);
  }
  .page-hero h1 {
    max-width: none;
  }
  /* Keep mandated one-line titles on one line; scale type on narrow screens */
  .title-oneline {
    white-space: nowrap;
    font-size: clamp(1.05rem, 4.2vw, var(--text-xl));
  }
  .page-hero h1.title-oneline {
    font-size: clamp(1.15rem, 5vw, var(--text-2xl, 2rem));
  }
  .gateway-tagline__line {
    white-space: nowrap;
    font-size: clamp(1.05rem, 4.6vw, 1em);
  }
  .panel {
    padding: var(--space-5);
  }
  .branch-card {
    padding: var(--space-6) var(--space-5);
  }
  .fact-list > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .fact-list dt {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  section {
    padding-block: clamp(var(--space-8), 6vw, var(--space-12));
  }
  .hero__actions,
  .page-hero .lead + .btn,
  p .btn + .btn {
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    text-align: left;
  }
  .timeline {
    padding-left: var(--space-6);
  }
  .timeline__item::before {
    left: calc(-1 * var(--space-6) - 5px);
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .service-row strong {
    white-space: normal;
  }
  .mail-to-btn:not(.btn) {
    min-height: 0;
    padding: 0;
    font-size: inherit;
  }
  .mail-form-modal__actions {
    flex-direction: column-reverse;
  }
  .mail-form-modal__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .btn--block,
  .hero__actions .btn,
  .portal-card .btn,
  .panel > .btn {
    width: 100%;
  }
  .two-col,
  .contact-grid {
    gap: var(--space-6);
  }
  .footer-col a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Sticky safe-area for fixed UI chrome */
main {
  overflow-x: clip;
}

/* Prevent horizontal scroll from long mono IDs / URLs */
.mono,
code,
pre {
  overflow-wrap: anywhere;
  word-break: break-word;
}

img,
iframe,
video,
embed,
object {
  max-width: 100%;
}

iframe {
  width: 100%;
  border: 0;
}

/* ——— Confederation intake CIS form ——— */
.intake-form {
  max-width: 52rem;
  margin: 0 auto;
}
.intake-section {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-5) var(--space-5) var(--space-4);
  margin: 0 0 var(--space-6);
}
.intake-section legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md, 1.05rem);
  padding: 0 var(--space-2);
  color: var(--color-text);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
}
.field-grid .field--full {
  grid-column: 1 / -1;
}
.intake-form .field {
  margin-bottom: 0;
}
.intake-form .field + .field {
  margin-top: 0;
}
.intake-form .check-row label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.intake-form .check-row input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.intake-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  background: var(--color-surface, #faf9f6);
  font-size: var(--text-sm, 0.95rem);
  cursor: pointer;
}
.intake-form input[type="file"]:focus {
  outline: 2px solid var(--color-accent, #c45c26);
  outline-offset: 2px;
}
.intake-form .optional {
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.9em;
}
@media (max-width: 700px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}
