:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #111318;
  --muted: #626a7a;
  --line: #e4e7ee;
  --line-strong: #d3d8e4;
  --primary: #111827;
  --primary-dark: #000000;
  --accent: #2563eb;
  --danger: #b42318;
  --success: #087443;
  --soft: #eef2ff;
  --warning-soft: #fff7ed;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, .06);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 19, 24, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: var(--primary); }
.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 8px; z-index: 3; background: #fff; padding: 8px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(228,231,238,.9);
  backdrop-filter: blur(16px);
}
.brand { color: var(--text); text-decoration: none; font-weight: 950; font-size: 20px; letter-spacing: -.01em; }
.top-nav { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; }
.top-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.top-nav a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.page { width: min(1120px, 100%); margin: 0 auto; padding: 22px 14px 40px; }
.site-footer { padding: 20px 14px 34px; color: var(--muted); text-align: center; font-size: 14px; border-top: 1px solid var(--line); background: var(--surface); }
.hero, .panel {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 120px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    #fff;
  background-size: 18px 18px;
  opacity: .4;
  transform: rotate(-6deg);
}
.hero > *, .panel > * { position: relative; z-index: 1; }
.hero h1, .panel h1 { margin: 0 0 12px; font-size: clamp(34px, 8vw, 56px); line-height: .98; letter-spacing: -.04em; }
.panel h2, .hero h2 { margin: 24px 0 10px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.choice-hero {
  display: grid;
  gap: 18px;
  min-height: calc(100svh - 170px);
  align-content: center;
}
.choice-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 380px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 30px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .12);
  overflow: hidden;
}
.choice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(17,24,39,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,39,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,.85), transparent 74%);
  pointer-events: none;
}
.choice-card > * { position: relative; z-index: 1; }
.choice-card:hover { transform: translateY(-3px); border-color: rgba(17,24,39,.22); }
.choice-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #111827;
  color: #fff;
  font-size: 34px;
  box-shadow: 0 18px 48px rgba(15,23,42,.18);
}
.choice-label {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.choice-content { display: grid; gap: 12px; align-self: end; }
.choice-card strong {
  display: block;
  font-size: clamp(44px, 8vw, 78px);
  line-height: .86;
  letter-spacing: -.075em;
}
.choice-card small { max-width: 420px; color: var(--muted); font-size: 18px; font-weight: 720; line-height: 1.35; }
.choice-cta { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 46px; padding: 0 14px; border-radius: 13px; background: #111827; color: #fff; font-weight: 920; }
.choice-register {
  background:
    radial-gradient(circle at 82% 12%, rgba(37,99,235,.55), transparent 34%),
    linear-gradient(145deg, #111827, #020617);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}
.choice-register::after {
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
}
.choice-register .choice-icon { background: #fff; color: #111827; }
.choice-register .choice-label { background: rgba(255,255,255,.12); color: #fff; }
.choice-register small { color: rgba(255,255,255,.72); }
.choice-register .choice-cta { background: #fff; color: #111827; }
.choice-search {
  background:
    radial-gradient(circle at 82% 12%, rgba(16,185,129,.28), transparent 34%),
    #fff;
}
.choice-search .choice-icon { background: #2563eb; }
.split-hero { display: grid; gap: 18px; min-height: 560px; align-items: center; }
.search-hero {
  background:
    linear-gradient(135deg, rgba(17,24,39,.98), rgba(30,41,59,.94)),
    #111827;
  color: #fff;
  border-color: rgba(255,255,255,.12);
}
.search-hero::after {
  border-color: rgba(255,255,255,.14);
  background:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px),
    rgba(255,255,255,.04);
  opacity: .5;
}
.hero-intro { max-width: 640px; }
.hero-intro > p:not(.eyebrow):not(.notice) { font-size: clamp(19px, 3vw, 24px); color: rgba(255,255,255,.72); font-weight: 640; line-height: 1.35; }
.hero-intro .eyebrow { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); color: #fff; gap: 6px; }
.hero-intro .notice { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); }
.compact-notice { margin-top: 14px; }
.hero-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.hero-quick-links a, .hero-quick-links span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 850; }
.hero-quick-links span { color: #fed7aa; background: rgba(251,146,60,.10); border-color: rgba(251,146,60,.24); }
.hero-decision-grid { display: grid; gap: 14px; }
.decision-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
}
.decision-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,.9), transparent 72%);
  pointer-events: none;
}
.decision-card > * { position: relative; z-index: 1; }
.register-card { background: linear-gradient(145deg, #2563eb, #111827 76%); }
.search-card { background: linear-gradient(145deg, #10b981, #111827 76%); }
.decision-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.decision-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 28px;
}
.decision-card strong { display: block; font-size: clamp(30px, 5vw, 42px); line-height: .95; letter-spacing: -.05em; }
.decision-card p { margin: 0; color: rgba(255,255,255,.74); font-weight: 690; }
.decision-card .card-kicker { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.9); }
.decision-card .card-cta { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111827; }
.hero-actions { display: grid; gap: 12px; }
.hero-action-card { display: grid; gap: 10px; min-height: 190px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow-soft); }
.hero-action-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.hero-action-card strong { display: block; font-size: clamp(26px, 5vw, 36px); line-height: 1; letter-spacing: -.04em; }
.hero-action-card p { margin: 0; color: var(--muted); font-weight: 680; }
.primary-card { background: #111827; border-color: #111827; color: #fff; }
.primary-card p { color: rgba(255,255,255,.74); }
.primary-card .card-kicker { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.16); }
.card-kicker { width: fit-content; padding: 5px 9px; border-radius: 999px; background: var(--soft); border: 1px solid #dbe3ff; color: #1d4ed8; font-size: 12px; font-weight: 950; text-transform: uppercase; }
.card-cta { width: fit-content; margin-top: auto; padding: 9px 12px; border-radius: 10px; background: var(--text); color: #fff; font-weight: 900; }
.primary-card .card-cta { background: #fff; color: #111827; }
.hero-mini-panel { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68); }
.hero-mini-panel div { padding: 11px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.hero-mini-panel span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hero-mini-panel strong { display: block; margin-top: 4px; font-size: 16px; line-height: 1.1; }
.eyebrow { display: inline-flex; margin: 0 0 12px; padding: 6px 10px; border-radius: 999px; background: #111827; color: #fff; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.notice, .alert { border: 1px solid #fed7aa; background: var(--warning-soft); color: #9a3412; border-radius: 12px; padding: 13px 14px; font-weight: 760; }
.muted { color: var(--muted); }
.action-grid, .info-grid, .stats-grid { display: grid; gap: 12px; margin-top: 18px; }
.info-grid { grid-template-columns: 1fr; }
.info-grid article {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.info-grid article h2 { margin-top: 0; }
.stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stats-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stats-grid span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.stats-grid strong { display: block; margin-top: 8px; font-size: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 880;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, var(--shadow-soft);
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.light { background: var(--soft); border-color: #dbe3ff; color: #1e3a8a; }
.form { display: grid; gap: 14px; }
.form.compact { max-width: 620px; }
.form-block { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.form-block h2 { margin: 0; }
.field-help { color: var(--muted); font-size: 13px; font-weight: 700; }
label { display: grid; gap: 7px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(37, 99, 235, .14); border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; font-weight: 700; }
.check input { width: 22px; min-height: 22px; margin-top: 4px; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; }
.two-cols { display: grid; gap: 12px; }
.result, .empty { margin-top: 16px; border-radius: 12px; padding: 14px; background: var(--soft); font-weight: 800; border: 1px solid #dbe3ff; }
.result.possible { background: #fff8e6; color: #7a4d00; }
.result.none { background: #eef8f2; color: var(--success); }
.case-code { margin: 14px 0; padding: 18px; border: 1px dashed var(--primary); border-radius: 14px; font-size: 28px; font-weight: 950; letter-spacing: .04em; text-align: center; background: var(--surface-soft); }
.compact-actions { margin-top: 18px; }
.public-results { display: grid; gap: 12px; margin-top: 18px; }
.person-card { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.person-card img, .person-photo-placeholder { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.person-photo-placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 900; }
.person-card h2 { margin: 8px 0; }
.compact-details { display: grid; gap: 8px; margin: 0; }
.compact-details div { padding: 8px 0; border-top: 1px solid var(--line); }
.compact-details dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.compact-details dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.resource-list { display: grid; gap: 12px; }
.resource-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.emergency-strip { display: grid; gap: 16px; margin: 18px 0; padding: 18px; border-radius: 16px; border: 1px solid #fed7aa; background: #fff7ed; box-shadow: var(--shadow-soft); }
.emergency-strip h2 { margin-top: 0; }
.emergency-strip p { margin-bottom: 0; color: var(--muted); font-weight: 700; }
.phone-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.phone-grid strong { display: grid; gap: 5px; align-content: center; min-height: 84px; padding: 13px; border-radius: 14px; background: #fff; border: 1px solid #fed7aa; color: var(--danger); font-size: 30px; line-height: 1; box-shadow: var(--shadow-soft); }
.phone-grid span { color: var(--muted); font-size: 12px; line-height: 1.25; }
.support-grid { display: grid; gap: 12px; margin: 18px 0; }
.directory-section { margin: 22px 0; }
.section-head { margin-bottom: 12px; }
.section-head h2 { margin: 4px 0 4px; }
.emergency-directory { display: grid; gap: 12px; }
.resource-groups { display: grid; gap: 14px; }
.resource-group { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.group-title { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: start; margin-bottom: 14px; }
.group-title h3 { margin: 0 0 4px; font-size: 22px; line-height: 1.1; letter-spacing: -.03em; }
.group-title p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.group-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #111827; color: #fff; font-weight: 950; line-height: 1; }
.mini-card-grid { display: grid; gap: 10px; }
.mini-card { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); min-width: 0; }
.mini-card span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.mini-card strong { color: var(--text); font-size: 20px; line-height: 1.05; overflow-wrap: anywhere; }
.mini-card small { color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.directory-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.directory-card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.directory-card p { margin: 8px 0; overflow-wrap: anywhere; }
.directory-card strong { color: var(--text); }
.support-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.support-card h2 { margin-top: 10px; }
.support-card ul { margin: 10px 0 0; padding-left: 20px; }
.support-card li + li { margin-top: 7px; }
.link-list { display: grid; gap: 8px; margin-top: 12px; }
.link-list a { padding: 10px 12px; border-radius: 10px; background: var(--soft); font-weight: 800; text-decoration: none; }
.link-grid { margin-top: 0; }
.source-note { margin: 10px 0 22px; color: var(--muted); font-size: 14px; }
.tag { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.admin-head, .toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-head h1 { margin: 0; font-size: 32px; }
.admin-head p { margin: 4px 0 0; color: var(--muted); }
.admin-lists { align-items: start; }
.filter-form { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.detail-list { display: grid; gap: 8px; }
.detail-list div { border-bottom: 1px solid var(--line); padding: 8px 0; }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.detail-list dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.log-line { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.narrow { max-width: 520px; margin: 30px auto; }

@media (min-width: 720px) {
  .page { padding: 28px 22px 48px; }
  .hero, .panel { padding: 24px; }
  .choice-hero { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
  .choice-card { min-height: min(620px, calc(100svh - 190px)); }
  .split-hero { grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); padding: 40px; }
  .hero-decision-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .decision-card { min-height: 390px; align-content: start; }
  .action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .info-grid, .two-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .person-card { grid-template-columns: 220px minmax(0,1fr); }
  .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .filter-form { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .emergency-strip { grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); align-items: center; }
  .emergency-directory { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mini-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .link-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .support-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
