@charset "utf-8";

/* ---- Design tokens: locked to existing bilstein group brand values ---- */
:root {
  --c-primary: #525f6b;      /* brand dark slate */
  --c-secondary: #c8d7e1;    /* brand light blue-grey */
  --c-ink: #23282c;          /* near-black, body text contrast */
  --c-white: #ffffff;
  --c-bg: #f6f8f9;           /* faint neutral tint, not a new brand color */
  --c-bg-alt: #eef2f4;
  --c-border: #dbe3e8;

  --font-base: "Neo Sans W01", Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(35, 40, 44, 0.06);
  --shadow-md: 0 4px 16px rgba(35, 40, 44, 0.08);
  --shadow-lg: 0 12px 32px rgba(35, 40, 44, 0.12);

  --container: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-primary); text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-primary);
  border-bottom: 1px solid var(--c-primary);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header .logo img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-white);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--c-white);
  color: var(--c-primary);
}

.site-nav .nav-disabled {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: default;
  user-select: none;
}

.site-nav .nav-disabled em {
  font-style: normal;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

.overview-card.is-disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.overview-card .soon-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--c-bg-alt);
  color: var(--c-primary);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--c-secondary) 0%, var(--c-bg) 100%);
  overflow: hidden;
  padding: 72px 0 56px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.12;
  pointer-events: none;
  animation: heroBgDrift 24s ease-in-out infinite alternate;
}

/* Homepage: hero + Categories section share one continuous background
   (gradient + textured image) instead of the image stopping at the hero. */
.home-textured-area {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-secondary) 0%, var(--c-bg) 55%, var(--c-bg) 100%);
}

.home-textured-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.12;
  pointer-events: none;
  animation: heroBgDrift 24s ease-in-out infinite alternate;
}

.hero--nobg {
  background: none;
  overflow: visible;
}

.hero--nobg::after {
  content: none;
}

@keyframes heroBgDrift {
  from { background-position: center 20%; }
  to   { background-position: center 80%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .home-textured-area::after {
    animation: none;
  }
}

.hero .container { position: relative; }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--c-ink);
  max-width: 34ch;
}

.hero p.lead {
  font-size: 1.05rem;
  max-width: 100%;
  color: #3d454b;
  margin: 0 0 32px;
}

/* ---- Laptop screens: wide but short viewport — tighten the hero so the
   "Browse by section" cards aren't pushed below the fold ---- */
@media (min-width: 721px) and (max-height: 800px) {
  .hero { padding: 40px 0 28px; }
  .hero-eyebrow { margin-bottom: 8px; }
  .hero h1 { margin-bottom: 10px; }
  .hero p.lead { margin-bottom: 20px; }
}

/* ---- Search ---- */
.search-box {
  position: relative;
  max-width: 640px;
}

.search-box input[type="search"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 16px 20px 16px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  color: var(--c-ink);
}

.search-box input[type="search"]:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

.search-meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #5b6570;
}

/* ---- Overview cards (homepage) ---- */
.section {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 1.5rem;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.overview-card {
  display: block;
  background: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-grid .overview-card:nth-child(1) { animation-delay: 0s; }
.card-grid .overview-card:nth-child(2) { animation-delay: 0.4s; }
.card-grid .overview-card:nth-child(3) { animation-delay: 0.8s; }

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .overview-card { animation: none; }
}

.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-secondary);
}

.overview-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--c-white);
}

.overview-card p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--c-secondary);
}

.overview-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-white);
}

.overview-card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.overview-card:hover .overview-card-cta svg {
  transform: translateX(4px);
}

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

/* ---- Filter chips ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.filters + .filters {
  margin-top: -8px;
}

.filters-category .filter-chip {
  font-size: 0.78rem;
  padding: 6px 14px;
  color: #5b6570;
}

.filters-category .filter-chip.active {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  color: var(--c-primary);
}

.filter-chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover { border-color: var(--c-primary); }

.filter-chip.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* ---- Mobile filter panel ---- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-reset-external {
  display: none;
}

.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

.filter-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 0.72rem;
  font-weight: 700;
}

.filter-badge[hidden] {
  display: none;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--c-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0 0 20px;
}

.filter-reset svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.filter-reset:hover {
  color: var(--c-ink);
  text-decoration: underline;
}

.filter-reset[hidden] {
  display: none;
}

.filter-backdrop {
  display: none;
}

.filter-panel-head {
  display: none;
}

/* ---- Country / category groups ---- */
.country-group {
  margin-bottom: 48px;
}

.country-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-secondary);
}

.country-group-header h2 {
  font-size: 1.35rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.heading-flags {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}

.heading-flag {
  width: 26px;
  height: 19px;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 1px var(--c-border);
}

.heading-flag .flag {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.country-group-header .count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-bg-alt);
  padding: 3px 10px;
  border-radius: 999px;
}

.category-block {
  margin-top: 24px;
}

.category-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-primary);
  margin: 4px 0 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.entity-hint {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #6b7580;
  font-style: italic;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 10px 8px 10px 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.doc-card:hover {
  border-color: var(--c-primary);
  background: var(--c-bg);
}

.doc-card-open {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.doc-card .icon-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--c-primary);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.doc-card .icon-btn svg {
  width: 18px;
  height: 18px;
}

.doc-card .icon-btn:hover {
  opacity: 1;
  background: var(--c-primary);
  color: var(--c-white);
}

.doc-card:hover .icon-btn {
  opacity: 0.85;
}

.copy-link-btn[hidden],
.copy-link-btn .check-icon[hidden],
.copy-link-btn .copy-icon[hidden] {
  display: none;
}

.doc-card .icon-btn.copy-link-btn.copied,
.doc-detail-actions .icon-btn.copy-link-btn.copied {
  opacity: 1;
  background: #2e8b57;
  color: #fff;
}

.doc-card .flag-wrap {
  flex-shrink: 0;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 1px var(--c-border);
}

.doc-card .flag-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.doc-card .lang-badge {
  flex-shrink: 0;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--c-bg-alt);
  color: var(--c-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-card .doc-meta {
  flex: 1;
  min-width: 0;
}

.doc-card .doc-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-card .doc-brand {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-primary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.doc-card .doc-sub {
  font-size: 0.78rem;
  color: #6b7580;
  display: block;
  margin-top: 2px;
}


.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7580;
  display: none;
}

.search-expand-btn {
  display: inline-block;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--c-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.search-expand-btn:hover {
  color: var(--c-ink);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--c-primary);
  color: var(--c-secondary);
  padding: 40px 0;
  margin-top: 40px;
}

/* Homepage: the textured area should run edge-to-edge into the footer,
   not leave a gap of plain page background before it. */
.home-textured-area + .site-footer {
  margin-top: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.site-footer .brands {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer .brands img {
  height: 34px;
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e9ed;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer p {
  font-size: 0.8rem;
  color: #e2e9ed;
  margin: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--c-white);
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 720px) {
  .hero { padding: 48px 0 40px; }

  .filter-toggle {
    display: inline-flex;
    position: relative;
  }

  .filter-reset-external {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--c-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
  }

  .filter-reset-external svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .filter-reset-external:hover {
    color: var(--c-ink);
    text-decoration: underline;
  }

  .filter-reset-external[hidden] {
    display: none;
  }

  .filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(35, 40, 44, 0.45);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .filter-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .filter-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 41;
    background: var(--c-white);
    border-radius: 16px 16px 0 0;
    padding: 8px 20px 24px;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(35, 40, 44, 0.18);
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  .filter-panel.open {
    transform: translateY(0);
  }

  .filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--c-primary);
    padding: 12px 0 8px;
  }

  .filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--c-primary);
    cursor: pointer;
    padding: 4px 8px;
  }

  .filter-panel .filters {
    margin: 12px 0;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-disabled {
    width: 100%;
    padding: 12px 4px;
    border-radius: 0;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: var(--c-white);
    color: var(--c-primary);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
}

/* ---- Legal prose article pages (Privacy Policy, Legal Notice) ---- */
.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 40px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-toggle a {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-white);
}

.lang-toggle a.active {
  background: var(--c-primary);
  color: var(--c-white);
}

.legal-article {
  max-width: 760px;
  margin: 0 auto 64px;
}

.legal-article h2 {
  font-size: 1.35rem;
  margin: 40px 0 16px;
  color: var(--c-ink);
  border-bottom: 2px solid var(--c-secondary);
  padding-bottom: 10px;
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
  color: var(--c-primary);
}

.legal-article p {
  margin: 0 0 16px;
  color: #3d454b;
  line-height: 1.7;
}

.legal-article a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-article hr {
  display: none;
}

.legal-notice-grid {
  max-width: 900px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.legal-notice-grid h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: var(--c-primary);
  border-bottom: 2px solid var(--c-secondary);
  padding-bottom: 8px;
}

.legal-notice-grid p {
  margin: 0 0 12px;
  color: #3d454b;
  line-height: 1.6;
}

/* ---- Document detail pages (Pagefind search targets) ---- */
.doc-detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  max-width: 760px;
}

.doc-detail-card .flag-wrap {
  flex-shrink: 0;
  width: 34px;
  height: 25px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--c-border);
}

.doc-detail-card .flag-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.doc-detail-info {
  flex: 1;
  min-width: 0;
}

.doc-detail-brand {
  font-weight: 600;
  color: var(--c-ink);
}

.doc-detail-lang {
  font-size: 0.85rem;
  color: #6b7580;
  margin-top: 2px;
}

.doc-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white) !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}

.btn-primary:hover {
  background: #47525c;
}

.doc-detail-actions .icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--c-primary);
  opacity: 0.7;
}

.doc-detail-actions .icon-btn svg { width: 18px; height: 18px; }
.doc-detail-actions .icon-btn:hover { opacity: 1; background: var(--c-primary); color: var(--c-white); }

.doc-detail-text {
  max-width: 760px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 60px;
}

.doc-detail-text summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-primary);
  font-size: 0.9rem;
}

.doc-detail-text-body {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #4a525a;
  max-height: 480px;
  overflow-y: auto;
}

/* ---- Full-text search results (Pagefind) ---- */
.search-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.search-result-card {
  display: block;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.search-result-card:hover {
  border-color: var(--c-primary);
  background: var(--c-bg);
}

.search-result-title {
  display: block;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.search-result-excerpt {
  display: block;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5b6570;
}

.search-result-excerpt mark {
  background: var(--c-secondary);
  color: var(--c-ink);
  border-radius: 2px;
  padding: 0 2px;
}

/* ---- Print (Legal Notice, Privacy Policy — the only pages with real article text) ---- */
@media print {
  .site-header,
  .site-footer,
  .article-toolbar,
  .filter-toggle,
  .filter-backdrop,
  .filter-panel,
  #CookiebotWidget,
  #CybotCookiebotDialog {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    padding: 0 0 8px !important;
    background: none !important;
  }

  .hero::after { display: none; }

  .hero-eyebrow { color: #000; }

  .legal-article {
    max-width: none;
    margin: 0;
    color: #000;
  }

  .legal-article h2,
  .legal-article h3 {
    color: #000;
    border-color: #000;
    break-after: avoid;
  }

  .legal-article p,
  .legal-article li {
    color: #000;
    orphans: 3;
    widows: 3;
  }

  .legal-article a {
    color: #000;
  }

  .legal-article a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}
