/* Sektorenlotse — montan-factoring.it.com
   Self-contained stylesheet. System fonts only, no remote resources.
   Palette: Slate-Basis + gedaempftes Petrol-Akzent, off-white surfaces, zinc-900 text.
   Layout: CSS Grid multi-column module cards, 8px spacing rhythm. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #eef1f3;
  --border: #d6dade;
  --text: #1c2024;          /* zinc-900-ish, not pure black */
  --text-muted: #4a545c;
  --accent: #0f5a5e;        /* gedaempftes Petrol, <80% sat */
  --accent-dark: #0b4246;
  --accent-soft: #e4eeee;
  --accent-contrast: #ffffff;
  --focus: #0f5a5e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, .08);
  --maxw: 1120px;
  --measure: 68ch;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.65rem); margin-top: var(--sp-5); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.3rem); margin-top: var(--sp-4); }
h4 { font-size: 1.05rem; margin-top: var(--sp-3); }

p { margin: 0 0 var(--sp-2); }

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 4px;
}

strong { font-weight: 700; }

ul, ol { padding-left: 1.4em; margin: 0 0 var(--sp-2); }
li { margin-bottom: 6px; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-4) 0;
}

/* ---------- Skip link & layout primitives ---------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1200;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 16px;
}

.section {
  padding-block: var(--sp-6);
}
.section--tight { padding-block: var(--sp-5); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--sp-1);
}

.lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: var(--measure);
}

.muted { color: var(--text-muted); }

/* ---------- Header / main nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  flex: none;
}
.brand__name { font-size: 1.05rem; line-height: 1.1; }
.brand__sub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 12px 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.main-nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

@media (max-width: 767px) {
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-bottom: var(--sp-1);
  }
  .main-nav.is-open {
    display: block;
    max-height: var(--mobile-nav-max-height, 100dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header__inner { flex-wrap: wrap; }
  body.mobile-nav-open { overflow: hidden; }
  body.mobile-nav-open .cmp:not([hidden]) { display: none; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  .main-nav a { padding: 10px 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #f5f8f8;
  background-color: var(--accent-dark); /* fallback if image missing */
  background-image:
    linear-gradient(180deg, rgba(9, 40, 43, 0.82), rgba(9, 40, 43, 0.88)),
    url("../img/home-hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero__inner {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--sp-8);
}
.hero .eyebrow { color: #9fd4d4; }
.hero h1 { color: #ffffff; max-width: 18ch; }
.hero__lede {
  font-size: 1.15rem;
  color: #dbeceb;
  max-width: 60ch;
  margin-bottom: var(--sp-3);
}
.hero__modules {
  display: grid;
  gap: var(--sp-1);
  grid-template-columns: 1fr;
  margin-top: var(--sp-3);
}
@media (min-width: 640px) {
  .hero__modules { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hero__modules { grid-template-columns: repeat(3, 1fr); }
}
.hero__module {
  display: block;
  padding: 14px 16px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  color: #eef7f6;
  text-decoration: none;
  font-weight: 600;
}
.hero__module:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.hero__module span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #c4dedd;
  margin-top: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { flex: 0 0 auto; }
@media (min-width: 768px) { .btn { white-space: nowrap; } }
.btn--solid {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.btn--solid:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-alt); }
.btn--onhero {
  background: #ffffff;
  color: var(--accent-dark);
  border-color: #ffffff;
}
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Cards / grids ---------- */
.grid-cards {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-cards--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__media {
  aspect-ratio: 16 / 9;
  background-color: var(--accent-soft); /* fallback */
  background-size: cover;
  background-position: center;
}
.card__body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.card__title {
  margin: 4px 0;
  font-size: 1.16rem;
}
.card__title a { text-decoration: none; color: var(--text); }
.card__title a:hover { color: var(--accent-dark); }
.card__summary { color: var(--text-muted); margin: 0; flex: 1; }
.card__foot {
  margin-top: var(--sp-1);
  font-weight: 600;
  color: var(--accent-dark);
}

/* Chips / tags */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid #cfe2e2;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Module cluster panels ---------- */
.module-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.module-panel h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.module-panel__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex: none;
}
.module-panel ul { list-style: none; padding: 0; margin: 0; }
.module-panel li { margin-bottom: 8px; }
.module-panel li a { text-decoration: none; font-weight: 600; color: var(--text); }
.module-panel li a:hover { color: var(--accent-dark); }

/* ---------- Filter bar (lernpfad) ---------- */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-3);
  align-items: center;
}
.filterbar__label { font-weight: 600; margin-right: 4px; }
.filter-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn:hover { background: var(--surface-alt); }
.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.filter-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lesson-card.is-hidden { display: none; }
.filter-empty {
  display: none;
  padding: var(--sp-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.filter-empty.is-visible { display: block; }

/* ---------- Article layout ---------- */
.article-shell {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  padding-block: var(--sp-5);
}
@media (min-width: 1024px) {
  .article-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.article-body {
  max-width: var(--measure);
}
.article-body h2 { scroll-margin-top: 80px; }
.article-body h3 { scroll-margin-top: 80px; }
.article-body p,
.article-body ul,
.article-body ol { font-size: 1.03rem; }

.article-header .eyebrow { color: var(--accent-dark); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: var(--sp-2) 0 var(--sp-1);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.byline {
  margin: var(--sp-1) 0 var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.byline strong { color: var(--text); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-block: var(--sp-2);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumb li::after { content: "/"; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

figure {
  margin: var(--sp-3) 0;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--accent-soft);
}
figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Aside notes */
aside[role="note"] {
  background: var(--accent-soft);
  border: 1px solid #cfe2e2;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  margin: var(--sp-3) 0;
  font-size: 0.95rem;
}
aside[role="note"] p { margin-bottom: 0; }
aside[role="note"] strong { color: var(--accent-dark); }

.legal-aside {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-2);
  margin: var(--sp-3) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* TOC (sidebar) */
.toc {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.92rem;
}
.toc h2 {
  margin: 0 0 var(--sp-1);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin-bottom: 6px; counter-increment: toc; }
.toc li::before {
  content: counter(toc) ". ";
  color: var(--accent-dark);
  font-weight: 700;
}
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 1023px) {
  .toc { position: static; }
}

/* Related reading */
.related {
  margin-top: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
.related h2 { margin-top: 0; font-size: 1.15rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 10px; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* Prev/Next */
.pager {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: 1fr;
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .pager { grid-template-columns: 1fr 1fr; }
}
.pager a {
  display: block;
  padding: var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--surface);
}
.pager a:hover { background: var(--surface-alt); }
.pager__dir { font-size: 0.8rem; color: var(--text-muted); display: block; }
.pager__title { font-weight: 600; color: var(--text); }
.pager .pager--next { text-align: right; }
.pager__back {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: var(--sp-1);
}

/* ---------- Panels / prose blocks ---------- */
.prose { max-width: var(--measure); }
.prose h2, .prose h3 { }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: var(--sp-3); }

.callout {
  background: var(--accent-soft);
  border: 1px solid #cfe2e2;
  border-radius: var(--radius);
  padding: var(--sp-3);
}

.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.source-list li:last-child { border-bottom: none; }
.source-list a { font-weight: 600; }
.source-list p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.92rem; }

/* Definition/feature lists */
.deflist { margin: var(--sp-2) 0; }
.deflist dt { font-weight: 700; margin-top: var(--sp-2); }
.deflist dd { margin: 0 0 var(--sp-1); color: var(--text-muted); }

/* Data table */
.table-wrap { overflow-x: auto; margin: var(--sp-3) 0; border: 1px solid var(--border); border-radius: var(--radius); }
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.95rem;
}
table.data th,
table.data td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
table.data th { background: var(--surface-alt); font-weight: 700; }
table.data tr:last-child td { border-bottom: none; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-channel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
}
.contact-channel:last-child { border-bottom: none; }
.contact-channel__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex: none;
}
.contact-channel__label { font-size: 0.82rem; color: var(--text-muted); }
.contact-channel a { font-weight: 600; }

.form-field { margin-bottom: var(--sp-2); }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 44px;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.map-embed {
  margin-top: var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.map-placeholder {
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
}

/* ---------- Editorial / policy pages ---------- */
.policy-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  margin: var(--sp-3) 0;
}
.policy-toc ol { margin: 0; padding-left: 1.2em; }
.policy-toc a { text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; }

.page-head {
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-head .wrap { padding-block: var(--sp-6) var(--sp-5); }

/* ---------- Footer ---------- */
.site-footer {
  background: #10171b;
  color: #c7d0d4;
  border-top: 4px solid var(--accent);
}
.site-footer a { color: #e5edf0; }
.site-footer a:hover { color: #ffffff; }
.footer-cols {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  padding-block: var(--sp-6) var(--sp-3);
}
@media (min-width: 700px) {
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-col h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8fa0a7;
  margin: 0 0 var(--sp-1);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-brand__name { font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #9fadb3;
  margin: var(--sp-1) 0 0;
  max-width: 46ch;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--sp-2) var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 0;
}
.cmp-reopen {
  background: none;
  border: none;
  color: #e5edf0;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  font: inherit;
  padding: 0;
}
.cmp-reopen:hover { color: #fff; }
.cmp-reopen:focus-visible { outline: 3px solid #6fb7b9; outline-offset: 2px; }

/* ---------- Icons ---------- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }

/* ---------- CMP ---------- */
.cmp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, .12);
  padding: 16px;
  max-height: 85dvh;
  overflow: auto;
}
.cmp__bar { display: grid; gap: 12px; max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 768px) {
  .cmp__bar { grid-template-columns: 1fr auto; align-items: center; }
}
.cmp__text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--text); }
.cmp__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp__panel { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 12px; }
.cmp__bar[hidden], .cmp__panel[hidden] { display: none; }
.cmp__title { margin: 0; font-size: 1.15rem; }
.cmp__row { border-top: 1px solid var(--border); padding-top: 10px; }
.cmp__rowhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cmp__cat { font-weight: 700; }
.cmp__state { color: var(--text-muted); font-size: 0.9rem; }
.cmp__toggle { width: 44px; height: 26px; flex: none; }
.cmp__more { margin-top: 8px; }
.cmp__more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.cmp__more p { margin: 6px 0 0; font-size: 0.9rem; color: var(--text-muted); }

/* footer heading compliance (audit: footer allows only simple tags) */
.site-footer .footer-title{font-weight:700;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;margin:0 0 .6rem;line-height:1.3;opacity:.9}
.site-footer .footer-strong{font-weight:700}
.site-footer p{margin:.25rem 0}

/* No-JS fallback: keep mobile navigation reachable without JavaScript */
html:not(.js-enabled) .main-nav,
html:not(.js-enabled) .primary-nav{display:block !important}
html:not(.js-enabled) .nav-toggle{display:none !important}
