/* Občianska stráž SR — public site.
   Institutional, sober, high contrast. No gradients, no decorative animation.
   Mobile-first: every media query widens, never narrows. */

:root {
  color-scheme: light;

  --ink:        #10192b;
  --ink-soft:   #47536b;
  --line:       #d3d9e3;
  --line-soft:  #e7ebf1;
  --surface:    #ffffff;
  --surface-2:  #f4f6f9;

  --primary:      #16345c;
  --primary-dark: #0e2340;
  --primary-tint: #e8eef6;
  --alert:        #96131b;

  --focus: #b45309;

  --wrap: 68rem;
  --gap: 1.5rem;
  --radius: 3px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); margin: 2rem 0 0.75rem; }
h3 { font-size: 1.125rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { color: var(--primary-dark); }

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

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

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--primary);
  color: #fff;
  border-bottom: 4px solid var(--primary-dark);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.04em; }
.brand-text span { font-size: 0.8rem; opacity: 0.85; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  font: inherit;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px currentColor, 0 -5px currentColor;
}

/* Below the breakpoint the menu is a full-screen sheet: large targets, and the
   page underneath is covered rather than pushed down, so nothing shifts under
   a thumb. Above the breakpoint every rule here is overridden and the same
   markup is the ordinary horizontal bar. */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--primary-dark);
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}
.site-nav.is-open { display: block; }
/* The page behind must not scroll while the sheet is over it. */
body.nav-open { overflow: hidden; }

.nav-head { display: flex; align-items: center; justify-content: space-between; }
.nav-head .brand-mark { width: 2.5rem; height: 2.5rem; }
.nav-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.nav-list, .subnav { list-style: none; margin: 0; padding: 0; }
.nav-list { margin-top: 1.25rem; }
.nav-list > li { position: relative; }

.nav-list > li > a,
.subnav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 3rem 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.nav-list > li > a { font-weight: 600; font-size: 1.3rem; }
.subnav a { padding-left: 1rem; font-size: 1.05rem; opacity: 0.9; }
.nav-list a:hover, .subnav a:hover { text-decoration: underline; }

/* The arrow is its own target next to the link, not on top of it. */
.subnav-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 3rem;
  height: 3.4rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.subnav-toggle::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 auto;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.subnav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.has-sub .subnav { display: none; }
.has-sub.is-expanded .subnav { display: block; }

.nav-contact { display: grid; gap: 0.75rem; margin-top: 2rem; }
.nav-contact a {
  display: grid;
  gap: 0.15rem;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
}
.nav-contact strong { font-size: 0.9rem; opacity: 0.85; font-weight: 600; }
.nav-contact span { font-size: 1.25rem; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  /* Back to a plain bar in the header: none of the sheet's rules apply. */
  .site-nav {
    display: block;
    position: static;
    inset: auto;
    flex-basis: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
  }
  .nav-head, .nav-contact, .subnav-toggle { display: none; }
  .nav-list { display: flex; gap: 0.25rem; margin-top: 0; }
  .nav-list > li { position: relative; }
  .nav-list > li > a { border: 0; padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 1rem; }
  .nav-list > li > a:hover { background: var(--primary-dark); text-decoration: none; }

  .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 16rem;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.35rem 0;
    display: none;
    z-index: 20;
  }
  /* A group left expanded on a phone must not stay open after a resize. */
  .has-sub.is-expanded .subnav { display: none; }
  .has-sub:hover .subnav,
  .has-sub:focus-within .subnav { display: block; }
  .subnav a { border: 0; padding: 0.5rem 0.9rem; }
  .subnav a:hover { background: rgba(255, 255, 255, 0.1); }
}

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--primary-dark);
  color: #fff;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  text-align: center;
}

/* Photographic hero: the image sits behind an opaque scrim so the heading keeps
   AA contrast regardless of what the photograph is doing underneath. */
.hero.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Low enough to keep the OBČIANSKA STRÁŽ lettering on the volunteer's back
     inside the crop: it sits at about two thirds of the photo's height, and at
     40% the hero cut it off just above the shoulders. */
  object-position: center 68%;
  z-index: -2;
}
.hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 38, 0.78);
  z-index: -1;
}
.hero-inner { position: relative; }
.hero-logo {
  width: clamp(5rem, 4rem + 5vw, 7.5rem);
  height: auto;
  margin: 0 auto 1.25rem;
}
.hero-eyebrow {
  margin: 0 0 0.25rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.85;
}
.hero h1 { margin: 0; text-transform: uppercase; letter-spacing: 0.02em; }

.motto {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 1.75rem 0 0;
  padding: 0;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
}
.motto li { border-top: 2px solid rgba(255, 255, 255, 0.55); padding-top: 0.5rem; }

/* --------------------------------------------------------------- content */

.band { padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.band + .band { border-top: 1px solid var(--line-soft); }

.section-title {
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* Measure-limited so the introduction stays readable on wide screens. */
.intro { max-width: 46rem; }
.intro .lead { color: var(--ink); }

.prose { padding-block: 2rem 3.5rem; max-width: 46rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }

.bullets { padding-left: 1.15rem; margin: 0 0 1rem; }
.bullets li { margin-bottom: 0.4rem; }

.signature { margin-top: 2rem; color: var(--ink-soft); }

.breadcrumbs { padding-top: 1rem; font-size: 0.875rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

.notice {
  border-left: 4px solid var(--focus);
  background: #fdf6ec;
  padding: 0.75rem 1rem;
}

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

/* ------------------------------------------------------- legal documents */

.doc-meta { color: var(--ink-soft); font-size: 0.9rem; }

.toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.25rem; }

.article { margin-top: 3rem; scroll-margin-top: 1rem; }
.article > h2 {
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  scroll-margin-top: 1rem;
}
.article-no {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.15rem;
}
.article h3 { margin: 1.75rem 0 0.5rem; font-size: 1.05rem; }

.definitions { margin: 0 0 1rem; }
.definitions dt { font-weight: 700; margin-top: 0.75rem; }
.definitions dd { margin: 0.15rem 0 0; }

.numbered { padding-left: 1.3rem; margin: 0 0 1rem; }
.numbered li { margin-bottom: 0.6rem; }

/* Wide tables scroll inside their own box; the page never scrolls sideways. */
.table-scroll { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 44rem; }
.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}
.data-table thead th {
  background: var(--surface-2);
  border-bottom: 2px solid var(--line);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.data-table tbody th { font-weight: 700; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------------- cards */

.cards { display: grid; gap: var(--gap); }
@media (min-width: 40rem) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--surface);
}
.card h2, .card h3 { margin-top: 0; }
.card.emphasis { border-top: 4px solid var(--primary); background: var(--surface-2); }

/* Card whose photograph runs edge to edge above the text. */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo > a { display: block; }
.card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 1.25rem; }
.card-body h2 { font-size: 1.15rem; margin-top: 0; }
.card-body h2 a { text-decoration: none; }
.card-body h2 a:hover { text-decoration: underline; }

.page-photo { margin: 1.5rem 0 2rem; }
.page-photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

.gallery {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 46rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.phone { font-size: 1.4rem; font-weight: 700; margin: 0.25rem 0; }
.phone a { text-decoration: none; }
.phone a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary-dark);
  border-radius: var(--radius);
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0.35rem 0.35rem 0;
}

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.75rem 0 0; padding: 0; }
.tags li {
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.1rem 0.5rem;
  color: var(--ink-soft);
}

.iban { font-weight: 700; letter-spacing: 0.03em; }

.tel-cta { font-size: 1.25rem; font-weight: 700; }

.link-more::after { content: " →"; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-tint); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.25rem; }

/* ----------------------------------------------------------------- flash */

.flash {
  border-left: 4px solid;
  padding: 0.75rem 1rem;
  margin-top: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.flash-success { border-color: #1a7f4b; background: #eaf6ef; }
.flash-error { border-color: var(--alert); background: #fbecec; }

/* ----------------------------------------------------------------- forms */

.form { max-width: 34rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field .req { color: var(--alert); margin-left: 0.15rem; }

.field input[type="text"],
.field input[type="search"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid #9aa5b6;
  border-radius: var(--radius);
  background: var(--surface);
}
.field textarea { min-height: 9rem; resize: vertical; }

.field-error input, .field-error select, .field-error textarea { border-color: var(--alert); }
.field .error { color: var(--alert); font-size: 0.875rem; margin: 0.3rem 0 0; }
.field .hint { color: var(--ink-soft); font-size: 0.875rem; margin: 0.3rem 0 0; }

.field-check label { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 400; }
.field-check input { margin-top: 0.3rem; flex: none; }

.field-row { display: grid; gap: 0 var(--gap); }
@media (min-width: 34rem) { .field-row { grid-template-columns: 2fr 1fr; } }

/* Honeypot: reachable by bots, gone for everyone else. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- listings */

.filters {
  display: grid;
  gap: 0 var(--gap);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 46rem) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .filters { grid-template-columns: repeat(4, 1fr); } }
.filter-actions { display: flex; gap: 0.75rem; align-items: end; padding-bottom: 1.1rem; }

.result-count { font-weight: 600; }

.listing-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
}
@media (min-width: 40rem) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 58rem) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }

.listing-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.listing-card a { display: block; color: inherit; text-decoration: none; height: 100%; }
.listing-card a:hover { background: var(--surface-2); }
.listing-card a:hover h3 { text-decoration: underline; }

.listing-thumb { aspect-ratio: 4 / 3; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--line-soft) 0 8px, transparent 8px 16px);
}

.listing-body { padding: 0.9rem 1rem 1.1rem; }
.listing-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.3rem;
}
.listing-body h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.listing-date { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }

/* List view: same markup, wider rows. */
@media (min-width: 40rem) {
  .listing-grid.as-list { grid-template-columns: 1fr; }
  .listing-grid.as-list .listing-card a { display: grid; grid-template-columns: 12rem 1fr; }
  .listing-grid.as-list .listing-thumb { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
}

.meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0 0 1.5rem; }
.meta dt { font-weight: 700; color: var(--ink-soft); }
.meta dd { margin: 0; }

.listing-text { white-space: normal; }

.photo-grid { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

.empty { padding: 2rem; text-align: center; background: var(--surface-2); border: 1px solid var(--line); }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 2rem 0 0; }
.pagination a, .pagination span {
  display: block;
  min-width: 2.4rem;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.pagination [aria-current] { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

/* --------------------------------------------------------------- documents */

.doc-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.75rem; }
.doc-list a {
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}
.doc-list a:hover { background: var(--surface-2); }
.doc-list a span span { display: block; }
.doc-icon {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--alert);
  color: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 3rem;
  background: var(--primary-dark);
  color: #e8edf5;
  padding-block: 2.5rem 1.5rem;
}
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.5rem; }
.site-footer .muted { color: #b9c4d6; }

.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-phone { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.25rem; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

@media print {
  .site-header, .site-footer, .filters, .actions { display: none; }
}

/* --------------------------------------------------- one person's page */

/* Reached only from a notification, so it is a single card rather than a
   section of the site: no breadcrumbs, no siblings, nothing to browse to. */
.person-page { padding-block: clamp(1.5rem, 1rem + 3vw, 3rem); }

.person-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.person-head { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) {
  .person-head { grid-template-columns: 15rem 1fr; align-items: start; }
}

.person-photo {
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.person-photo-missing {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
}
.person-photo-missing img { width: 4rem; height: 4rem; opacity: 0.5; }

.person-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.person-card h1 { margin: 0.2rem 0 0.5rem; }

.person-key { display: grid; gap: 0.5rem 1.5rem; margin: 1rem 0 0; }
@media (min-width: 30rem) { .person-key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person-key dt { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }
.person-key dd { margin: 0; font-weight: 600; }

.person-card section { margin-top: 2rem; }
.person-help {
  background: var(--primary-tint);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.person-source { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: 0.9rem; }

/* ------------------------------------------------ missing persons list */

.missing-filters {
  display: grid;
  gap: 0 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 0.1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 46rem) { .missing-filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .missing-filters { grid-template-columns: repeat(3, 1fr); } }
.missing-filters .field { margin-bottom: 1rem; }
.missing-filters input, .missing-filters select { width: 100%; font: inherit; padding: 0.5rem 0.6rem; }

.missing-section h2 .count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  vertical-align: middle;
}

.missing-grid { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 34rem) { .missing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .missing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem) { .missing-grid { grid-template-columns: repeat(4, 1fr); } }

.missing-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
}
.missing-card:hover { border-color: var(--primary); }
.missing-card img { width: 100%; height: 100%; object-fit: cover; }
.missing-photo-missing {
  display: grid;
  place-items: center;
  background: var(--surface-2);
}
.missing-photo-missing img { width: 2.5rem; height: 2.5rem; opacity: 0.45; }

.missing-body { display: grid; align-content: start; gap: 0.15rem; padding: 0.75rem 0.85rem; }
.missing-body .muted { font-size: 0.9rem; }
.missing-flag {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--alert);
}
