:root {
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --card: #fffdf8;
  --ink: #1c1a17;
  --ink-2: #3d3934;
  --muted: #6f685d;
  --rule: #d8d0bf;
  --rule-strong: #1c1a17;

  --salen: #1f3f66;
  --salen-bg: #e3e9f1;
  --udvalg: #1f6360;
  --udvalg-bg: #dfeceb;
  --hearing: #9a5b0b;
  --hearing-bg: #f5e8d2;

  --urgent: #b3261e;
  --urgent-bg: #f8e1de;
  --soon: #9a5b0b;
  --ok: #2f6b3f;
  --ok-bg: #e1eee3;
  --accent: #b3261e;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --radius: 3px;
  --shadow: 0 1px 0 rgba(28, 26, 23, .06), 0 8px 24px -12px rgba(28, 26, 23, .25);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(179, 38, 30, .05), transparent 60%),
    repeating-linear-gradient(0deg, rgba(28, 26, 23, .018) 0 1px, transparent 1px 3px),
    var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration-color: rgba(28, 26, 23, .35); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

button { font: inherit; color: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

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

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 241, 232, .94);
  backdrop-filter: blur(6px);
  border-bottom: 3px double var(--rule-strong);
}

.masthead-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .75rem 1.25rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center;
}

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  font-family: var(--serif); font-size: 2rem; line-height: 1; font-weight: 700;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.search input {
  width: 100%; padding: .6rem .85rem .6rem 2.2rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236f685d' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat .8rem center;
  font: inherit;
}
.search input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(28, 26, 23, .08); }

.nav { display: flex; gap: .25rem; }
.nav-btn {
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: .45rem .85rem; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.nav-btn:hover { border-color: var(--rule); }
.nav-btn[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-btn-accent { border-color: var(--ink); }
.nav-count {
  display: inline-block; min-width: 1.3em; padding: 0 .35em; margin-left: .15em;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; text-align: center;
}
.nav-count:empty { display: none; }

.masthead-strip { border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.strip-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .35rem; padding-bottom: .35rem; }
.filter-summary strong { color: var(--ink); font-weight: 600; }
.freshness { font-family: var(--mono); font-size: .75rem; white-space: nowrap; }
.freshness.stale { color: var(--urgent); font-weight: 500; }

/* ---------- Banners ---------- */

.banner-slot:empty { display: none; }
.banner {
  max-width: var(--maxw); margin: 1rem auto 0; padding: .75rem 1rem;
  border: 1px solid var(--rule); border-left: 4px solid var(--ink);
  background: var(--card); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.banner.warn { border-left-color: var(--urgent); background: var(--urgent-bg); }
.banner p { margin: 0; flex: 1 1 300px; }
.banner-actions { display: flex; gap: .5rem; }

/* ---------- Layout ---------- */

.main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.main:focus { outline: none; }
.loading { color: var(--muted); font-style: italic; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; margin: 0; letter-spacing: -.015em; }
.page-head .dek { margin: .35rem 0 0; color: var(--muted); max-width: 60ch; }

.toolbar { display: flex; gap: .4rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .8rem; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--card); font-size: .85rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { border-color: var(--rule); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.small { padding: .25rem .55rem; font-size: .78rem; }

.link-btn { background: none; border: none; padding: 0; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; color: inherit; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.overview-side { position: sticky; top: 8.5rem; display: flex; flex-direction: column; gap: 2rem; }

.section { margin-bottom: 2.25rem; animation: rise .45s ease both; }
.section:nth-child(2) { animation-delay: .06s; }
.section:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 2px solid var(--ink); padding-top: .5rem; margin-bottom: .75rem;
}
.section-head h2 {
  margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.section-head .hint { color: var(--muted); font-size: .8rem; }

.empty {
  padding: 1rem; border: 1px dashed var(--rule); color: var(--muted); font-size: .9rem; background: rgba(255, 253, 248, .6);
}

.more { margin-top: .6rem; }

/* ---------- Segmented controls ---------- */

.segmented { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.segmented button { background: var(--card); border: none; border-right: 1px solid var(--ink); padding: .3rem .7rem; font-size: .8rem; font-weight: 600; }
.segmented button:last-child { border-right: none; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.controls { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Rows ---------- */

.rows { list-style: none; margin: 0; padding: 0; }
.week { margin-bottom: 1.25rem; }
.week-head {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: 0 0 .3rem;
  display: flex; gap: .6rem; align-items: baseline;
}
.week-head span { font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 400; }

.row {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: .9rem;
  padding: .75rem .5rem .75rem .65rem; border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent; cursor: pointer; transition: background .15s;
}
.row:hover { background: rgba(255, 253, 248, .9); }
.row.kind-salen { border-left-color: var(--salen); }
.row.kind-udvalg { border-left-color: var(--udvalg); }
.row.kind-hearing { border-left-color: var(--hearing); }
.row.is-cancelled { opacity: .55; }
.row.is-cancelled h3 { text-decoration: line-through; }

.row-date { font-family: var(--mono); font-size: .78rem; line-height: 1.3; color: var(--ink-2); }
.row-date .d { display: block; font-weight: 500; }
.row-date .t { display: block; color: var(--muted); }

.row-body { min-width: 0; }
.row-body h3 { margin: .15rem 0 .1rem; font-family: var(--serif); font-size: 1.06rem; font-weight: 600; line-height: 1.3; }
.row-sub { font-size: .82rem; color: var(--muted); }
.row-side { display: flex; flex-direction: column; align-items: end; gap: .35rem; }

.meta-line { display: flex; flex-wrap: wrap; gap: .3rem .45rem; align-items: center; }

.tag {
  display: inline-flex; align-items: center; gap: .3em;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .1rem .45rem; border-radius: 2px;
}
.tag-salen { color: var(--salen); background: var(--salen-bg); }
.tag-udvalg { color: var(--udvalg); background: var(--udvalg-bg); }
.tag-hearing { color: var(--hearing); background: var(--hearing-bg); }
.tag-plain { color: var(--ink-2); background: var(--paper-2); }

.kind-label { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.case-num { font-family: var(--mono); font-size: .78rem; font-weight: 500; }

.stage {
  font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--card); color: var(--ink-2); cursor: help;
}
.stage.vedtaget { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.stage.forkastet, .stage.bortfaldet { border-color: var(--muted); color: var(--muted); }

.why { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.why span {
  font-size: .7rem; color: var(--ink-2); padding: .02rem .4rem; border-radius: 2px;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 4px, #e6dfcf 4px 8px);
}
.why span.follow { background: var(--ink); color: var(--paper); }

.countdown {
  font-family: var(--mono); font-size: .75rem; font-weight: 500; white-space: nowrap;
  padding: .12rem .45rem; border-radius: 2px; background: var(--paper-2);
}
.countdown.urgent { background: var(--urgent); color: #fff; }
.countdown.soon { background: var(--hearing-bg); color: var(--soon); }
.countdown.past { background: none; color: var(--muted); }

.change {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
}

.planned { font-size: .72rem; font-style: italic; color: var(--muted); }

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

.deadlines { display: grid; gap: .5rem; }
.deadline {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .75rem; align-items: start;
  padding: .7rem .75rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer; box-shadow: var(--shadow);
}
.deadline:hover { border-color: var(--ink); }
.deadline-when { text-align: center; border-right: 1px solid var(--rule); padding-right: .6rem; }
.deadline-when .num { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.deadline-when .unit { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.deadline.urgent .deadline-when .num { color: var(--urgent); }
.deadline h3 { margin: .15rem 0; font-family: var(--serif); font-size: 1rem; line-height: 1.3; font-weight: 600; }

/* ---------- Side column: new items ---------- */

.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: .6rem 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.news li:hover h3 { text-decoration: underline; text-underline-offset: 2px; }
.news h3 { margin: .1rem 0; font-family: var(--serif); font-size: .98rem; font-weight: 600; line-height: 1.3; }
.news .row-sub { font-size: .78rem; }

/* ---------- Followed ---------- */

.follow-list { display: grid; gap: .75rem; }
.follow-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; box-shadow: var(--shadow);
}
.follow-card h3 { margin: .2rem 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; cursor: pointer; }
.follow-card h3:hover { text-decoration: underline; }
.follow-card .next { font-size: .85rem; margin-top: .35rem; }

.progress { display: flex; gap: 3px; margin-top: .6rem; }
.progress .step { flex: 1; min-width: 0; }
.progress .bar { height: 6px; background: var(--paper-2); border-radius: 1px; }
.progress .step.done .bar { background: var(--ink); }
.progress .step.current .bar { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, var(--paper-2) 4px 7px); }
.progress.vedtaget .step .bar { background: var(--ok); }
.progress .label { font-size: .66rem; color: var(--muted); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress .step.done .label { color: var(--ink-2); }

.star {
  background: none; border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .65rem;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.star:hover { border-color: var(--ink); }
.star[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Search results ---------- */

.result-group { margin-bottom: 2rem; }

/* ---------- Detail panel ---------- */

.scrim { position: fixed; inset: 0; background: rgba(28, 26, 23, .25); z-index: 30; }
.detail {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 40;
  background: var(--card); border-left: 1px solid var(--ink); box-shadow: -20px 0 40px -20px rgba(28, 26, 23, .4);
  transform: translateX(100%); transition: transform .25s ease, visibility 0s linear .25s; overflow-y: auto;
  visibility: hidden;
}
.detail.open { transform: none; visibility: visible; transition: transform .25s ease; }
.detail-inner { padding: 1.25rem 1.5rem 3rem; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; position: sticky; top: 0; background: var(--card); padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.detail h2 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; margin: .4rem 0 .5rem; font-weight: 600; letter-spacing: -.01em; }
.detail .lede { color: var(--ink-2); font-size: .92rem; }
.detail h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 1.5rem 0 .5rem; border-top: 1px solid var(--ink); padding-top: .45rem; }
.close-btn { background: none; border: 1px solid var(--rule); border-radius: 999px; width: 2rem; height: 2rem; font-size: 1.1rem; line-height: 1; }
.close-btn:hover { border-color: var(--ink); }

.facts { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .35rem 1rem; font-size: .88rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.next-box { margin-top: 1rem; padding: .75rem .9rem; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); font-size: .9rem; }
.next-box strong { font-family: var(--serif); font-size: 1.05rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 .7rem .75rem; font-size: .88rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.42rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--card);
}
.timeline li.future::before { background: var(--card); border-color: var(--ink); }
.timeline li.future { color: var(--ink-2); }
.timeline .when { font-family: var(--mono); font-size: .75rem; color: var(--muted); display: block; }

.vote { padding: .6rem .75rem; margin-bottom: .5rem; border: 1px solid var(--rule); border-radius: var(--radius); font-size: .85rem; white-space: pre-line; }
.vote.passed { border-left: 3px solid var(--ok); }
.vote.failed { border-left: 3px solid var(--urgent); }
.vote .when { font-family: var(--mono); font-size: .75rem; color: var(--muted); }

.docs { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.docs li { padding: .35rem 0; border-bottom: 1px dotted var(--rule); display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem; }
.docs .when { font-family: var(--mono); font-size: .75rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--card); font-size: .85rem; font-weight: 500;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { font-family: var(--mono); font-size: .7rem; opacity: .65; }
.chip.static { cursor: default; font-size: .78rem; padding: .15rem .55rem; }

.agenda-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.agenda-list li { padding: .45rem 0; border-bottom: 1px dotted var(--rule); font-size: .88rem; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .4rem; }
.agenda-list .n { font-family: var(--mono); color: var(--muted); font-size: .78rem; }
.agenda-list button { background: none; border: none; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 2px; }

.links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ---------- Modal (onboarding / my topics) ---------- */

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgba(28, 26, 23, .45); }
.modal[hidden] { display: none; }
.modal-card {
  width: min(760px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(28, 26, 23, .5); padding: 1.75rem 1.75rem 1.25rem;
  animation: rise .3s ease both;
}
.modal-card .kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.modal-card h2 { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin: .3rem 0 .4rem; font-weight: 600; }
.modal-card > p { color: var(--ink-2); margin-top: 0; }
.modal-card h3 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin: 1.25rem 0 .5rem; }
.modal-card details { margin-top: 1rem; border-top: 1px solid var(--rule); padding-top: .75rem; }
.modal-card summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.modal-card summary .n { font-weight: 400; color: var(--muted); }
.modal-card input[type="text"], .modal-card input[type="search"] {
  width: 100%; padding: .55rem .75rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); font: inherit;
}
.modal-card .filter-input { margin: .6rem 0; }
.modal-card .help { font-size: .8rem; color: var(--muted); margin: .35rem 0 0; }
.modal-actions {
  display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: center;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--ink);
  position: sticky; bottom: -1.25rem; background: var(--paper); padding-bottom: 1.25rem;
}
.modal-actions .count-note { font-size: .82rem; color: var(--muted); }
.scroll-chips { max-height: 220px; overflow-y: auto; padding: .15rem; }

/* ---------- Calendar ---------- */

#calendar {
  background: var(--card); border: 1px solid var(--rule); padding: .75rem; border-radius: var(--radius);
  --fc-border-color: var(--rule);
  --fc-today-bg-color: #fbf3e2;
  --fc-button-bg-color: var(--ink);
  --fc-button-border-color: var(--ink);
  --fc-button-hover-bg-color: var(--accent);
  --fc-button-hover-border-color: var(--accent);
  --fc-button-active-bg-color: var(--accent);
  --fc-button-active-border-color: var(--accent);
  font-size: .82rem;
}
#calendar .fc-toolbar-title { font-family: var(--serif); font-weight: 600; text-transform: capitalize; }
#calendar .fc-event { cursor: pointer; border-radius: 2px; }
.legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); margin: .5rem 0; flex-wrap: wrap; }
.legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }

/* ---------- Toast & footer ---------- */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); z-index: 70;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--radius);
  font-size: .88rem; transition: transform .25s ease, opacity .25s ease; pointer-events: none; opacity: 0;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.footer { border-top: 3px double var(--rule-strong); font-size: .8rem; color: var(--muted); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-side { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .masthead { position: static; }
  .masthead-inner { grid-template-columns: 1fr auto; gap: .6rem; }
  .brand-text small { display: none; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .nav { grid-column: 1 / -1; grid-row: 3; overflow-x: auto; }
  .strip-inner { flex-direction: column; gap: .15rem; }
  .row { grid-template-columns: 4.3rem minmax(0, 1fr); }
  .row-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: start; }
  .detail { width: 100%; border-left: none; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: .5rem; }
  .modal { padding: 0; }
  .modal-card { max-height: 100vh; height: 100%; border-radius: 0; padding: 1.25rem; }
  .page-head .toolbar { width: 100%; }
}

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