/* ==========================================================================
   Dalmatian Feeding Guide
   No framework: modern CSS with custom properties, light and dark themes.
   ========================================================================== */

:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #17181c;
  --ink-2: #4a4c55;
  --muted: #6b6e78;
  --line: #e4e1da;
  --accent: #c8402a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9e5;
  --focus: #2563eb;

  --low: #1d7a45;      --low-bg: #e2f4e9;
  --medium: #8a5300;   --medium-bg: #fdefd2;
  --high: #b3261e;     --high-bg: #fde3e0;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(20 20 30 / 0.04), 0 4px 16px rgb(20 20 30 / 0.06);
  --shadow-lg: 0 2px 4px rgb(20 20 30 / 0.05), 0 12px 32px rgb(20 20 30 / 0.10);
  --container: 72rem;
  --header-h: 4rem;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #111215;
  --surface: #191a1f;
  --surface-2: #202128;
  --ink: #ecebe8;
  --ink-2: #c3c2bf;
  --muted: #9a9aa2;
  --line: #2c2d35;
  --accent: #ef6a52;
  --accent-ink: #1a0b07;
  --accent-soft: #3a1e19;
  --focus: #7aa2ff;

  --low: #6fd49a;      --low-bg: #16301f;
  --medium: #f2b950;   --medium-bg: #35290f;
  --high: #ff8a7d;     --high-bg: #3d1a17;

  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.4);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111215;
    --surface: #191a1f;
    --surface-2: #202128;
    --ink: #ecebe8;
    --ink-2: #c3c2bf;
    --muted: #9a9aa2;
    --line: #2c2d35;
    --accent: #ef6a52;
    --accent-ink: #1a0b07;
    --accent-soft: #3a1e19;
    --focus: #7aa2ff;
    --low: #6fd49a;      --low-bg: #16301f;
    --medium: #f2b950;   --medium-bg: #35290f;
    --high: #ff8a7d;     --high-bg: #3d1a17;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow > * { max-width: 46rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
}

.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 42rem; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.85em 1.3em; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { border-color: var(--ink-2); }
.button-ghost.on-dark { color: #fff; border-color: rgb(255 255 255 / 0.5); }
.button-ghost.on-dark:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); }
.button-small { font-size: 0.875rem; padding: 0.6em 0.95em; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.icon-button {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer;
}
.icon-button:hover { border-color: var(--ink-2); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.brand-mark { width: 2rem; height: 2rem; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 0.5rem; }
.site-nav > ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav summary {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.75rem; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.97rem; cursor: pointer;
}
.site-nav a:hover, .site-nav summary:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"], .site-nav summary.is-active { color: var(--ink); background: var(--surface-2); font-weight: 600; }

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .icon { transition: transform 0.2s ease; width: 0.9em; }
.menu[open] summary .icon { transform: rotate(180deg); }
.menu ul {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 15rem;
  list-style: none; margin: 0; padding: 0.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.menu ul a { display: flex; border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; }

.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .when-light { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .when-dark { display: inline; }
}

.nav-toggle { display: none; }

@media (max-width: 52rem) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.75rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav a, .site-nav summary { width: 100%; padding: 0.7rem 0.9rem; font-size: 1.05rem; }
  .menu ul { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; }
  .theme-toggle { align-self: flex-start; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(78vh, 44rem); display: flex; align-items: flex-end;
  padding-block: 7rem 4rem;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #222; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(10 10 14 / 0.15) 0%, rgb(10 10 14 / 0.35) 45%, rgb(10 10 14 / 0.82) 100%);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgb(255 255 255 / 0.88); }
.hero .eyebrow { color: #ffb4a6; }

/* Emergency strip under the hero */
.emergency-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem;
  margin-top: -1.75rem; position: relative; z-index: 2;
  padding: 1rem 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--high);
  box-shadow: var(--shadow-lg); color: var(--ink); text-decoration: none;
}
.emergency-strip strong { color: var(--high); }
.emergency-strip span { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-2); font-weight: 500; }
.emergency-strip:hover span { color: var(--ink); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section-tight { padding-top: 1.5rem; }
.section-alt { background: var(--surface-2); }
.section-title { margin-bottom: 1.5rem; }

.page-header { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0.5rem; }
.page-header h1 { max-width: 22ch; }

.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split-media { margin: 0; }

/* ---------- Prose (Markdown output) ---------- */

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1.5em 0; padding: 0.25em 0 0.25em 1.25em; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose > :last-child { margin-bottom: 0; }
.prose-small { font-size: 0.93rem; color: var(--ink-2); }
.notes { margin-top: 2rem; color: var(--ink-2); font-size: 0.97rem; }

/* Three rules: each ## section becomes a numbered card. */
.rules { counter-reset: rule; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.rule-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.rule-card h2 { font-size: 1.45rem; margin-bottom: 0.75rem; counter-increment: rule; }
.rule-card h2::before {
  content: counter(rule, decimal-leading-zero); display: block; margin-bottom: 0.6rem;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent);
}
.rule-card p { color: var(--ink-2); margin-bottom: 0.9em; }
.rule-card p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.card-grid-wide { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-link { padding: 1.5rem; color: inherit; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-link h3 { margin-top: 0.75rem; }
.card-link p { color: var(--ink-2); font-size: 0.97rem; flex: 1; }
.card-number { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.card-cta { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.card-link:hover .card-cta .icon { transform: translateX(3px); }
.card-cta .icon { transition: transform 0.18s ease; }

.card-image { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; background: var(--surface-2); }
.card-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body .eyebrow { margin-bottom: 0.3rem; }
.card-title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-body > p { color: var(--ink-2); font-size: 0.97rem; }

.tag {
  align-self: flex-start; font-size: 0.82rem; font-weight: 700;
  padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}

/* Friends: two large cards side by side, stacked on small screens. */
.two-up, .friends-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.friend .card-image { aspect-ratio: 2 / 1; }
.friend .card-body { padding: 1.75rem 2rem 2rem; }
.friend .card-title { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.85rem); margin-bottom: 0.75rem; }
.friend .prose { color: var(--ink-2); font-size: 1.05rem; }
.food-group { margin-top: 3.5rem; }
.food-group > h2 { margin-bottom: 0.4rem; }
.food-group > p { max-width: 44rem; margin-bottom: 1.5rem; }

.friend .link-row { padding-top: 1.5rem; gap: 0.6rem; }

.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }

/* ---------- Disclosure / FAQ ---------- */

.disclosure { margin-top: auto; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.disclosure summary, .faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  cursor: pointer; list-style: none; font-weight: 600;
}
.disclosure summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.disclosure summary .icon, .faq-item summary .icon { transition: transform 0.2s ease; color: var(--muted); }
.disclosure[open] summary .icon, .faq-item[open] summary .icon { transform: rotate(180deg); }
.disclosure .prose { margin-top: 0.75rem; }

.faq-list { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow); }
.faq-item summary { font-family: var(--font-display); font-size: 1.2rem; }
.faq-item .prose { margin-top: 0.75rem; color: var(--ink-2); }

.alert {
  max-width: 44rem; margin-bottom: 2.25rem; padding: 1.15rem 1.35rem;
  background: var(--high-bg); border-left: 4px solid var(--high); border-radius: var(--radius-sm);
}
.alert-title { font-weight: 700; color: var(--high); margin-bottom: 0.35rem; font-size: 1.05rem; }
.alert p:last-child { margin-bottom: 0; }

.callout {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 2rem;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Purine levels ---------- */

.level {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 0.82rem; font-weight: 700; line-height: 1;
  padding: 0.35em 0.7em; border-radius: 999px; white-space: nowrap;
}
.level::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.level-low { color: var(--low); background: var(--low-bg); }
.level-medium { color: var(--medium); background: var(--medium-bg); }
.level-high { color: var(--high); background: var(--high-bg); }

.key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; color: var(--ink-2); font-size: 0.95rem; }
.key li { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- Tables ---------- */

.table-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  position: sticky; top: var(--header-h); z-index: 5;
  padding-block: 0.75rem; background: var(--paper);
}
.search-field {
  flex: 1 1 16rem; display: flex; align-items: center; gap: 0.5rem;
  padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted);
}
.search-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.search-field input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 0.7rem 0; outline: none; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-low[aria-pressed="true"] { background: var(--low); border-color: var(--low); color: var(--surface); }
.chip-medium[aria-pressed="true"] { background: var(--medium); border-color: var(--medium); color: var(--surface); }
.chip-high[aria-pressed="true"] { background: var(--high); border-color: var(--high); color: var(--surface); }
.table-count { margin: 0 0 0 auto; font-size: 0.9rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table thead th { background: var(--surface-2); position: sticky; top: 0; font-size: 0.85rem; padding: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.data-table tbody tr[data-level="low"] td:first-child { box-shadow: inset 4px 0 0 var(--low); }
.data-table tbody tr[data-level="medium"] td:first-child { box-shadow: inset 4px 0 0 var(--medium); }
.data-table tbody tr[data-level="high"] td:first-child { box-shadow: inset 4px 0 0 var(--high); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table-numeric td:first-child { min-width: 14rem; }
.data-table abbr { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }

.sort {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 0.35rem; width: 100%;
  padding: 0.75rem 1rem; cursor: pointer; font-weight: 700; color: var(--ink);
}
.num .sort { justify-content: flex-end; text-align: right; }
.sort small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.sort .icon { opacity: 0.35; width: 0.9em; }
.sort[aria-sort] .icon { opacity: 1; color: var(--accent); }
.sort:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

.row-note { display: block; margin-top: 0.2rem; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

.empty-state { padding: 2rem; text-align: center; color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */

.form { padding: 1.75rem; gap: 1.1rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.form .button { align-self: flex-start; }
.form-note { font-size: 0.88rem; margin: 0; }
.field.has-error input, .field.has-error textarea { border-color: var(--high); }
.field-error { color: var(--high); font-size: 0.9rem; font-weight: 600; margin: 0; }

.notice { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0 0; font-weight: 500; }
.notice-error { background: var(--high-bg); color: var(--high); }
.notice-success { background: var(--low-bg); color: var(--ink); padding: 1.75rem; border-left: 4px solid var(--low); }
.notice-success h2 { font-size: 1.5rem; }
.notice-success p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 0; border-top: 1px solid var(--line); padding-block: 3rem; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4rem; }
.footer-heading { font-weight: 700; margin-bottom: 0.5rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-credit .heart { color: var(--accent); }
.footer-credit .heart .icon { fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .table-tools, .hero-media { display: none; }
  .table-wrap { box-shadow: none; border: 0; }
  .hero { color: inherit; min-height: 0; padding: 0; }
}
