/* =====================================================================
   OnAsylum — design tokens & shared styles
   Direction: "Quiet Ground, Refined" (locked in 17 Aug 2026)
   No build step — plain CSS, loaded directly by every page.
   ===================================================================== */

:root {
  --bg: #eeece5;
  --panel: #e4e8e0;
  --ink: #292722;
  --muted: #837e70;
  --accent: #55654f;
  --accent-ink: #eeece5;
  --line: #d6d1c2;
  --line-strong: #c7c1ae;
  --safety-bg: #f4efe0;
  --safety-line: #e3d6ab;
  --ease: cubic-bezier(.7, 0, .2, 1);

  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, ui-serif, serif;
  --font-body: -apple-system, "Segoe UI", ui-sans-serif, system-ui, Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1a17;
    --panel: #232220;
    --ink: #efece3;
    --muted: #9c968b;
    --accent: #9db191;
    --accent-ink: #1b1a17;
    --line: #38352d;
    --line-strong: #4a4639;
    --safety-bg: #262115;
    --safety-line: #473d20;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1a17;
  --panel: #232220;
  --ink: #efece3;
  --muted: #9c968b;
  --accent: #9db191;
  --accent-ink: #1b1a17;
  --line: #38352d;
  --line-strong: #4a4639;
  --safety-bg: #262115;
  --safety-line: #473d20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* faint paper-grain texture — no network request, inline SVG noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
:root[data-theme="dark"] body::before { mix-blend-mode: overlay; opacity: 0.06; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before { mix-blend-mode: overlay; opacity: 0.06; }
}

a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mono { font-family: var(--font-mono); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); position: relative; z-index: 1; }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.wordmark a {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.wordmark .mark { color: var(--accent); }
.wordmark .logo-icon {
  display: inline-block;
  width: 52px;
  height: 52px;
  background-color: var(--accent);
  -webkit-mask-image: url("../img/logo-mark.svg");
  mask-image: url("../img/logo-mark.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 1.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

/* ---------- quick exit ---------- */
#lang-switcher {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.exit-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.exit-btn:hover { background: var(--panel); }

/* ---------- safety banner (rendered once, near top, on every page) ---------- */
.safety-strip {
  background: var(--safety-bg);
  border-bottom: 1px solid var(--safety-line);
  font-size: 0.82rem;
  color: var(--ink);
}
.safety-strip .wrap {
  padding: 0.55rem clamp(1.2rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.safety-strip strong { font-weight: 600; }
.safety-strip a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-gridlines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
  z-index: 0;
  max-width: 1100px;
  margin: 0 auto;
  left: 0; right: 0;
}
.hero-gridlines span { border-left: 1px solid var(--line); height: 100%; }
.hero-gridlines span:first-child { border-left: none; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  max-width: 16ch;
  text-wrap: balance;
}
.hero p.lede {
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.03rem;
  margin: 0 0 1.8rem;
}
.spec-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  max-width: 640px;
}
.spec-item .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}
.spec-item .v { font-family: var(--font-mono); font-size: 0.86rem; }

/* ---------- section shell ---------- */
.section { padding: clamp(2.2rem, 5vw, 3.2rem) 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.6rem; flex-wrap: wrap; gap: 0.6rem;
}
.section-head .label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.section-head h2 { font-size: 1.15rem; margin: 0; font-weight: 600; }

/* ---------- country tile grid ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px 20px 4px 4px;
  padding: 1.3rem 1.3rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover, .tile:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.25);
}
@media (prefers-reduced-motion: reduce) { .tile:hover, .tile:focus-visible { transform: none; } }
.flag { margin-right: 0.5rem; font-size: 1.05em; }
.tile .region {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.tile .country {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.tile .summary {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}
.see-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  height: 1.2em;
  overflow: hidden;
  position: relative;
}
.see-link span { display: block; transition: transform 0.28s var(--ease); }
.see-link span.dup { position: absolute; top: 100%; left: 0; }
.tile:hover .see-link span, .tile:focus-visible .see-link span { transform: translateY(-100%); }

.filter-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- steps ---------- */
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.step .n {
  font-family: var(--font-display); font-weight: 300; font-size: 2.4rem;
  color: var(--line-strong); line-height: 1; margin-bottom: 0.6rem; display: block;
}
.step h3 { font-size: 1rem; margin: 0 0 0.4rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; max-width: 32ch; }

/* ---------- at-a-glance panel (qol) ---------- */
.qol-section { padding: clamp(2.2rem, 5vw, 3.2rem) 0; border-bottom: 1px solid var(--line); }
.qol-intro { max-width: 60ch; color: var(--muted); font-size: 0.92rem; margin: 0 0 1.8rem; }
.qol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.qol-card {
  background: var(--bg);
  padding: 1.2rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.qol-card .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.qol-card .k svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--accent); opacity: 0.85; }
.qol-card .v { font-size: 0.88rem; line-height: 1.45; flex-grow: 1; }
.tier-meter { display: flex; gap: 0.28rem; margin-top: 0.1rem; }
.tier-meter span {
  width: 16px; height: 6px; border-radius: 3px;
  background: var(--line-strong);
}
.tier-meter span.filled { background: var(--accent); }
.tier-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; }

@media (max-width: 900px) {
  .qol-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .qol-grid { grid-template-columns: 1fr; }
}

/* key-stat card — an optional 9th qol-card, only shown when a country has
   a cited, credible published figure (e.g. a recognition rate). It's
   always the last item added to the grid, so it spans the full row
   instead of wrapping alone into a lone quarter-width cell with three
   empty (and visually jarring) grid cells beside it. Above 640px it
   splits into two columns via grid-column/row placement on its existing
   flat children (label+icon, value, note, source) — no markup change
   needed since grid placement doesn't depend on DOM order. */
.key-stat-card {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  column-gap: 2rem;
  row-gap: 0.3rem;
  align-items: start;
  padding: 1.4rem 1.6rem;
}
.key-stat-card .k { grid-column: 1; grid-row: 1; }
.key-stat-card .key-stat-value { grid-column: 1; grid-row: 2; }
.key-stat-card .v { grid-column: 2; grid-row: 1; align-self: start; }
.key-stat-card .key-stat-source { grid-column: 2; grid-row: 2; margin-top: 0.3rem; }
@media (max-width: 640px) {
  .key-stat-card { display: flex; flex-direction: column; padding: 1.2rem 1.2rem 1.3rem; }
}
.key-stat-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  margin: 0.1rem 0 0.15rem;
}
.key-stat-source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.key-stat-source:hover { text-decoration: underline; }

/* ---------- region cost-of-living overview (homepage) ---------- */
.infographic-section .qol-intro { margin-bottom: 1.6rem; }
.region-chart {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.region-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) auto minmax(7rem, auto) 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.region-row:last-child { border-bottom: none; }
.region-name { font-family: var(--font-display); font-size: 1rem; }
.region-meter span { width: 20px; }
.region-avg-label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.region-range { font-size: 0.78rem; color: var(--muted); }
.region-count { font-size: 0.72rem; color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 780px) {
  .region-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name count" "meter meter" "avg avg" "range range";
    row-gap: 0.4rem;
  }
  .region-name { grid-area: name; }
  .region-count { grid-area: count; }
  .region-meter { grid-area: meter; }
  .region-avg-label { grid-area: avg; }
  .region-range { grid-area: range; }
}

/* ---------- abstract world-regions graphic (homepage) ---------- */
.geo-section { padding-top: 0; }
.geo-graphic { max-width: 44rem; margin: 0 auto; }
.geo-graphic svg { display: block; width: 100%; height: auto; }
.geo-grid-dot { fill: var(--line-strong); opacity: 0.5; }
.geo-country-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 0.75;
  transition: opacity 0.15s ease;
}
.geo-country-dot:hover { opacity: 0.7; }

/* ---------- content page (country.html) ---------- */
.review-banner {
  background: var(--safety-bg);
  border: 1px solid var(--safety-line);
  border-radius: 8px;
  padding: 0.95rem 1.2rem;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
.review-banner b { font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
.detail-block h2 { font-size: 1.05rem; margin: 0 0 0.9rem; }
.detail-block ul { margin: 0 0 1.5rem; padding-left: 1.15rem; }
.detail-block li { margin-bottom: 0.5rem; font-size: 0.94rem; }
.detail-block p { font-size: 0.94rem; color: var(--ink); }

.side-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.5rem;
  height: fit-content;
  position: sticky;
  top: 1.5rem;
}
.side-panel .k {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.3rem;
}
.side-panel .v { font-size: 0.92rem; margin-bottom: 1.1rem; }
.side-panel .v:last-of-type { margin-bottom: 0; }

.note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin: 1.2rem 0;
}

.cta-help {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.8rem;
  text-align: center;
}
.cta-help h2 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.cta-help p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.2rem; font-size: 0.94rem; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.92; }

/* ---------- process timeline (country.php, optional depth field) ----------
   Lives as a .detail-block right after "How the process generally works"
   (moved there from a standalone full-width section — a critique pass
   found the step-by-step detail read better as an elaboration of that
   paragraph than as a disconnected section ahead of the eligibility info). */
.timeline-block h2 { display: flex; align-items: center; }
.process-timeline { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.timeline-step {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.timeline-step:first-child { border-top: none; padding-top: 0; }
.timeline-n {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--line-strong);
  line-height: 1.3;
}
.timeline-body h3 { font-size: 0.98rem; margin: 0 0 0.35rem; font-weight: 600; }
.timeline-body p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.4rem;
  white-space: nowrap;
}

/* ---------- pitfalls callout (country.html, optional depth field) ---------- */
.pitfalls-block h2 {
  display: flex;
  align-items: center;
  color: var(--ink);
}
.pitfalls-block ul {
  /* Deliberately not --safety-bg/--safety-line: that amber treatment is
     reserved for genuine trust/accuracy signals (the top safety strip,
     the "pending expert review" banner) — reusing it here for routine
     "watch out for this" content would dilute what amber means on this
     page. A neutral panel with an accent-colored rule reads as "practical
     tip," not "safety warning." */
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.3rem 1rem 2.1rem;
  margin: 0;
}
.pitfalls-block li { font-size: 0.9rem; }
.pitfalls-block li:last-child { margin-bottom: 0; }

/* ---------- sources list (country.html, optional depth field) ---------- */
.sources-section { padding-top: 0; }
.sources-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.sources-list li {
  font-size: 0.86rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.sources-list li:first-child { border-top: none; }
.sources-list a { color: var(--accent); font-weight: 600; text-decoration: none; }
.sources-list a:hover { text-decoration: underline; }
.source-date { color: var(--muted); font-family: var(--font-mono); font-size: 0.76rem; }

/* ---------- year-by-year trend chart (data.php) ---------- */
.trend-chart {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.trend-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.6rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.trend-row:last-child { border-bottom: none; }
.trend-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.trend-bar-track { background: var(--line); border-radius: 3px; height: 8px; overflow: hidden; }
.trend-bar { background: var(--accent); height: 100%; border-radius: 3px; }
.trend-value { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; text-align: right; }

/* ---------- simple data table (data.php) ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table td { padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); }
.data-table tr:first-child td { border-top: none; }
.data-table td:last-child { text-align: right; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

/* ---------- welcome modal ---------- */
.onasylum-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 16, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  z-index: 1000;
}
.onasylum-modal {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 20px 20px 8px 8px;
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 2.4rem);
  overflow-y: auto;
  padding: 1.8rem 1.9rem 1.6rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.35);
}
.onasylum-modal .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.onasylum-modal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 1.3rem;
}
.onasylum-modal .item {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.onasylum-modal .item:first-of-type { border-top: none; padding-top: 0; }
.onasylum-modal .item svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  color: var(--accent);
  margin-top: 0.15rem;
}
.onasylum-modal .item h3 { font-size: 0.94rem; margin: 0 0 0.3rem; }
.onasylum-modal .item p { font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.5; }
.onasylum-modal .item p a { color: var(--accent); font-weight: 600; }
.onasylum-modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.onasylum-modal .actions a.btn-secondary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  align-self: center;
}
.onasylum-modal .actions a.btn-secondary:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 780px) {
  .tile-grid, .step-list { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .nav-links { display: none; }
  .hero-gridlines { grid-template-columns: repeat(2, 1fr); }
}
