:root {
  --bg: #f5efe6;
  --surface: #fffdf8;
  --surface2: #f8f1e7;
  --surface3: #efe4d2;
  --text: #1a1f22;
  --muted: #63707a;
  --border: #dfd3c2;
  --brand: #b11f24;
  --brand-deep: #7d1118;
  --accent: #0f766e;
  --accent-text: #0b5a54;
  --gold: #c79a2b;
  --score-good: #1f7a1f;
  --score-mid: #9c6b00;
  --score-bad: #a11f24;
  --shadow: 0 18px 45px rgba(32, 18, 8, 0.08);
  --shadow-soft: 0 10px 25px rgba(32, 18, 8, 0.05);
  --radius: 22px;
  --radius-sm: 16px;
  --font-sans: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

.dark {
  --bg: #121416;
  --surface: #171a1d;
  --surface2: #1e2327;
  --surface3: #252b31;
  --text: #edf1f3;
  --muted: #a3adb5;
  --border: #2d353b;
  --brand: #db5358;
  --brand-deep: #ff7c80;
  --accent: #45b6ab;
  --accent-text: #8ae1d9;
  --gold: #e0b24c;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(177,31,36,.12), transparent 18%),
    radial-gradient(circle at 92% 10%, rgba(15,118,110,.12), transparent 19%),
    radial-gradient(circle at 50% 100%, rgba(199,154,43,.10), transparent 20%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, li { color: inherit; }
.container { width: min(calc(100% - 2rem), 1180px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.header-glow {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold), var(--accent));
  opacity: .85;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: .95rem;
  background: linear-gradient(135deg, var(--brand), #da7644);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: .02em;
}
.brand-copy small { color: var(--muted); display: block; }

.nav-desktop, .nav-mobile {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-desktop {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem .9rem;
}
.nav-desktop a, .nav-mobile a {
  color: var(--muted);
  font-weight: 700;
  transition: color .18s ease;
}
.nav-desktop a:hover, .nav-mobile a:hover { color: var(--accent-text); }
.nav-mobile {
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 0 1rem 1rem;
  gap: .8rem;
}
.nav-mobile.open { display: flex; }
.mobile-only { display: none; }
.icon-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.lang-switcher {
  display: flex;
  gap: .35rem;
  align-items: center;
  padding: .25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
}
.lang-switcher a {
  padding: .25rem .58rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
}
.lang-switcher a.is-active {
  background: var(--brand);
  color: #fff;
}

.main-shell {
  padding: 1.6rem 0 4rem;
  min-width: 0;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1rem;
}
.breadcrumbs a:hover { color: var(--accent-text); }

.hero,
.page-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1rem;
  align-items: stretch;
  min-width: 0;
}
.hero-copy,
.hero-visual,
.hero-panel,
.page-hero-copy,
.page-hero-art,
.content-card,
.content-link-card,
.section-card,
.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy,
.page-hero-copy {
  padding: 2rem;
  background:
    linear-gradient(145deg, rgba(177,31,36,.13), transparent 46%),
    linear-gradient(225deg, rgba(15,118,110,.11), transparent 42%),
    linear-gradient(0deg, rgba(199,154,43,.10), transparent 34%),
    var(--surface);
}
.eyebrow,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.hero-copy h1,
.page-hero-copy h1 {
  margin: .7rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero-copy p,
.page-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 58ch;
}

.hero-home .hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-home .hero-copy::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 28%, transparent), transparent 68%);
  pointer-events: none;
}

.hero-side {
  display: grid;
  gap: 1rem;
}
.hero-visual {
  min-height: 260px;
  padding: 1rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.5), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface)));
}
.hero-visual img,
.page-hero-art img {
  width: min(100%, 360px);
  margin: 0 auto;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.08));
}
.hero-panel.stats {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  align-content: start;
}
.stat-card {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-card span { color: var(--muted); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}

.coverage-banner {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface2) 88%, var(--accent) 12%);
}

.coverage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}
.pill-link,
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.pill-link:hover { transform: translateY(-1px); }

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: .55rem;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: .3rem .55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  text-align: right;
  line-height: 1.25;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.featured-grid,
.card-grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sections-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rich-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.featured-grid > *,
.card-grid > *,
.sections-grid > *,
.rich-grid > * {
  min-width: 0;
  max-width: 100%;
}

.section-block { margin-top: 1.35rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: .95rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
}
.section-head a,
.section-note {
  color: var(--muted);
  font-weight: 700;
}

.featured-card,
.section-card,
.content-link-card {
  padding: 1.15rem;
  min-width: 0;
  max-width: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.featured-card:hover,
.section-card:hover,
.content-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.10);
  border-color: color-mix(in srgb, var(--brand) 36%, var(--border));
}
.featured-card small,
.content-link-card small {
  display: block;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .55rem;
  font-size: .74rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.featured-card strong,
.content-link-card strong,
.section-card strong {
  display: block;
  margin-bottom: .4rem;
  font-size: 1.08rem;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.featured-card span,
.content-link-card span,
.section-card small {
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.featured-card em,
.content-link-card em {
  display: block;
  margin-top: .8rem;
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}
.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.coverage-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
}
.section-card {
  border-left: 6px solid var(--accent);
  min-height: 154px;
  position: relative;
  overflow: hidden;
}
.section-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -18px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.section-letter {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .8rem;
  background: var(--surface2);
  font-weight: 900;
  margin-bottom: .85rem;
  position: relative;
  z-index: 1;
}

.search-box { position: relative; }
.search-box input {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface2);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  font-size: 1rem;
}
.search-box input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 12;
}
.search-results.open { display: block; }
.search-item {
  display: flex;
  gap: .85rem;
  padding: .9rem 1rem;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}
.search-item:first-child { border-top: 0; }
.search-item:hover,
.search-item.is-active { background: var(--surface2); }
.search-item strong { display: block; margin-bottom: .12rem; }
.search-item small { color: var(--muted); }
.search-item.is-empty { color: var(--muted); }
.search-code {
  min-width: 4.25rem;
  font-weight: 900;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
}
mark {
  background: color-mix(in srgb, var(--gold) 28%, transparent);
  color: inherit;
  border-radius: .2rem;
  padding: 0 .1rem;
}

.page-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.section-block {
  min-width: 0;
}
.page-hero {
  position: relative;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.page-hero-copy h1,
.hero-copy h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-hero-lead {
  margin-top: .1rem;
  margin-bottom: 1rem;
}
.page-hero-art {
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 28% 25%, rgba(255,255,255,.45), transparent 18%),
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--gold) 10%, var(--surface)));
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.content-card {
  padding: 1.6rem;
  overflow: hidden;
  min-width: 0;
}

.trust-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.2rem;
}

.trust-note {
  margin-top: 1.25rem;
  padding: .95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface2) 82%, transparent);
  color: var(--muted);
}

.faq-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .7rem;
}

.faq-list li {
  padding-left: .1rem;
}
.prose-shell {
  font-size: 1rem;
  color: var(--text);
}
.prose-shell > :first-child { margin-top: 0; }
.prose-shell h2,
.prose-shell h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-top: 1.8rem;
  margin-bottom: .8rem;
}
.prose-shell h2 { font-size: clamp(1.5rem, 2vw, 2rem); }
.prose-shell h3 { font-size: 1.2rem; }
.prose-shell p,
.prose-shell li { color: var(--text); }
.prose-shell ul,
.prose-shell ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.prose-shell li + li { margin-top: .35rem; }
.prose-shell blockquote {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand);
  background: var(--surface2);
  border-radius: 0 1rem 1rem 0;
}
.prose-shell a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 2px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  -webkit-overflow-scrolling: touch;
}
.prose-shell table {
  width: max-content;
  min-width: 100%;
  display: table;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.prose-shell th,
.prose-shell td {
  border-bottom: 1px solid var(--border);
  padding: .9rem 1rem;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  min-width: 10rem;
}
.prose-shell td + td,
.prose-shell th + th {
  border-left: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}
.prose-shell tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface2) 52%, var(--surface));
}
.prose-shell tr:last-child td { border-bottom: 0; }
.prose-shell th {
  background: var(--surface3);
  font-weight: 800;
}
.prose-shell th:first-child { border-top-left-radius: .95rem; }
.prose-shell th:last-child { border-top-right-radius: .95rem; }

.route-scope-note {
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface));
}
.route-scope-note p {
  margin: 0;
  color: var(--text);
}

.faq-accordion {
  display: grid;
  gap: .85rem;
  margin: 1rem 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface2);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 800;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--brand);
}
.faq-item[open] summary::after { content: "-"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer {
  padding: 1rem 1.1rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, var(--surface2));
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.calc-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}
.calc-card input {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: .9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.calc-card button {
  margin-top: .8rem;
  width: 100%;
  padding: .9rem 1rem;
  border: 0;
  border-radius: .9rem;
  background: linear-gradient(135deg, var(--brand), #d35d2f);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.calc-results { margin-top: 1rem; display: grid; gap: .6rem; }
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .95rem;
  background: var(--surface);
  border-radius: .9rem;
  border: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 3rem;
  margin-top: 3rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.footer-brand p {
  margin: .45rem 0 0;
  max-width: 64ch;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.footer-nav h3 {
  margin: 0 0 .7rem;
  font-size: .95rem;
  color: var(--text);
}
.footer-nav a {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
  font-weight: 700;
}
.footer-nav a:hover {
  color: var(--brand);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: none;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.back-to-top.show { display: inline-grid; place-items: center; }

.node-copy p {
  margin: 0 0 1rem;
}

.node-copy p:last-child {
  margin-bottom: 0;
}

.breadcrumbs {
  overflow-x: auto;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  scrollbar-width: thin;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
  box-shadow: var(--shadow-soft);
}

.action-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}

.action-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.action-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.action-button:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  transform: translateY(-1px);
}

.action-button:focus-visible,
.icon-button:focus-visible,
.nav-desktop a:focus-visible,
.nav-mobile a:focus-visible,
.content-link-card:focus-visible,
.role-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.action-status {
  align-self: center;
  color: var(--muted);
  font-weight: 700;
}

.risk-score-block,
.role-block {
  padding: 1.25rem;
}

.risk-score-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.risk-score-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.score-good .risk-score-value { color: var(--score-good); }
.score-mid .risk-score-value { color: var(--score-mid); }
.score-bad .risk-score-value { color: var(--score-bad); }

.risk-score-factors {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: .7rem;
}

.risk-score-factors li {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: baseline;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: var(--surface2);
}

.risk-factor-icon {
  width: 1.3rem;
  display: inline-block;
  font-weight: 900;
  color: currentColor;
}

.risk-factor-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.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;
}

.risk-score-method-link {
  margin: 1rem 0 0;
  font-weight: 700;
}

.role-intro,
.role-subhead {
  margin: 0 0 .8rem;
}

.role-subhead {
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.role-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: .6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: .2rem;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  padding: .5rem .8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  font-weight: 700;
}

.role-chip-secondary {
  background: var(--surface);
  color: var(--muted);
}

.role-block .trust-note {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .featured-grid,
  .card-grid,
  .sections-grid,
  .calc-grid,
  .rich-grid,
  .hero,
  .page-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-desktop { display: none; }
  .mobile-only { display: inline-grid; place-items: center; }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero,
  .page-hero,
  .featured-grid,
  .card-grid,
  .sections-grid,
  .calc-grid,
  .rich-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .page-hero-copy,
  .content-card,
  .hero-visual,
  .page-hero-art {
    padding: 1.15rem;
  }
  .hero-copy h1,
  .page-hero-copy h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-panel.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-switcher { justify-content: center; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; width: 100%; }
  .card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
  .count-chip {
    text-align: left;
  }
  .action-bar {
    position: sticky;
    bottom: .5rem;
    z-index: 30;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
    margin-bottom: .5rem;
  }
  .action-status { display: none; }
  .action-button { flex: 0 0 auto; }
  .back-to-top {
    bottom: 4.5rem;
  }
  .prose-shell th,
  .prose-shell td {
    min-width: 8.6rem;
    padding: .8rem .85rem;
  }
}
