:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666;
  --border: #e5e5e5;
  --card: #fafafa;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#0b0b0c; --fg:#f4f4f5; --muted:#a1a1aa; --border:#222; --card:#101013; }
}
.dark { --bg:#0b0b0c; --fg:#f4f4f5; --muted:#a1a1aa; --border:#222; --card:#101013; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; background: var(--bg); color: var(--fg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; padding: 0 16px; margin: 0 auto; }
header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(8px); background: var(--bg); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { font-weight: 600; letter-spacing: .2px; }
.navlinks { display: flex; gap: 20px; font-size: 14px; }
@media (min-width: 768px) { .navlinks { display: flex; } }
.navlinks a { position: relative; opacity: .9; }
.navlinks a:hover { opacity: .7; }
.navlinks a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: currentColor; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); box-shadow: none; color: var(--fg); cursor: pointer; }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.hero { padding: 56px 0 32px; }
.title-xl { font-size: clamp(32px, 6vw, 54px); line-height: 1.05; font-weight: 650; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.pill { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--border); border-radius:999px; padding: 6px 10px; font-size:12px; }
.badges { display:flex; flex-wrap:wrap; gap:8px; }
.badge { border:1px solid var(--border); border-radius:999px; padding:4px 10px; font-size:12px; background: var(--card); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.card .content { padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.cta-cards .card { transition: transform .15s ease, box-shadow .15s ease; }
.cta-cards .card:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 14px 44px rgba(0,0,0,.14); }
.footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 14px; color: var(--muted); }
input[type="search"], select.select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--fg); width: 100%; }
.controls { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.list { display:grid; gap:12px; }
.link { font-size: 14px; opacity: .9; }
.kicker { font-size: 12px; color: var(--muted); }
.spacer { height: 8px; }

/* Passport-size photo styles */
.card.photo-card { padding: 12px; display:flex; align-items:center; justify-content:center; }
.portrait { width: 140px; aspect-ratio: 35 / 45; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
@media (min-width: 1024px) { .portrait { width: 160px; } }
.photo-placeholder { border: 1px dashed var(--border); border-radius: 12px; padding: 14px; text-align: center; font-size: 14px; color: var(--muted); background: var(--bg); }

/* utility */
.hidden { display: none !important; }

/* photo box: just the photo, no big card */
.card.photo-card {
  padding: 0;
  display: inline-block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Global spacing for vertical stacks of cards */
.stack {
  display: grid;
  gap: 18px;          /* tweak to taste */
}

/* Avoid double margins when cards are inside .stack */
.stack > .card {
  margin: 0;
}

