/* Fallback design tokens, zero-specificity so any real theme (the public
   brand palette in countryPublicThemeStyles(), or the base tokens from
   src/views/commonStyles/base.js) always wins on source order AND
   specificity. Needed because the authenticated /app/countries/:country/aml
   route renders through canonicalLegacyPage.js -> renderPortalPage, which
   loads the real portal shell CSS (portal.css, professional-theme.css,
   navigation.css) - that shell uses its own --ink/--surface/--line token
   names, not this --bg-card/--text-primary family, so without this fallback
   every var(--bg-card) etc. here resolved to nothing: modals rendered with
   a transparent background, form fields with no border, buttons as plain
   text. Found via the firm-assessment screenshot walkthrough. */
:where(:root) {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #f9fafb;
  --bg-card: #ffffff;
  --bg-hover: #f3f4f6;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --status-positive: #10b981;
  --status-warning: #f59e0b;
  --status-negative: #ef4444;
}
.country-handbook-page { --ch-link: var(--accent-hover); --ch-notice: color-mix(in srgb, var(--status-warning) 9%, var(--bg-card)); --ch-highlight: color-mix(in srgb, var(--status-positive) 8%, var(--bg-card)); }
.country-handbook-page .operational-main { min-width: 0; }
.country-handbook-page :is(.operational-main, .ch-modal) { letter-spacing: 0; overflow-wrap: anywhere; }
.country-handbook-page :is(h1, h2, h3, h4) { color: var(--text-primary); letter-spacing: 0; line-height: 1.3; }
.country-handbook-page h1 { font-size: 28px; margin: 0 0 4px; }
.country-handbook-page h2 { font-size: 18px; margin: 0 0 14px; }
.country-handbook-page h3 { font-size: 15px; margin: 0 0 8px; }
.country-handbook-page h4 { font-size: 14px; margin: 12px 0 6px; }
.country-handbook-page p { margin: 0 0 12px; line-height: 1.65; }
.country-handbook-page a { color: var(--ch-link); text-underline-offset: 3px; }
.country-handbook-page .topbar-login-btn { background: var(--text-primary) !important; color: var(--bg-primary) !important; }
.country-handbook-page .topbar-login-btn:hover { background: var(--text-secondary) !important; }
.country-handbook-page .topbar-search-trigger { background: var(--bg-card) !important; border-color: var(--border-strong) !important; color: var(--text-primary) !important; }
.country-handbook-page .topbar-search-trigger span { color: var(--text-primary) !important; }
.country-handbook-page .nav-standalone-link.active { background: color-mix(in srgb, var(--accent-color) 14%, var(--bg-card)) !important; color: var(--text-primary) !important; border-left-color: var(--accent-color); }
.country-handbook-page .nav-standalone-link.active .nav-text { color: var(--text-primary) !important; }
.country-handbook-page :is(button, input, select, textarea) { font: inherit; color: var(--text-primary); }
.country-handbook-page :is(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--ch-link); outline-offset: 3px; }
.country-handbook-page ul { padding-left: 20px; margin: 8px 0 0; }
.country-handbook-page li + li { margin-top: 8px; }
.country-handbook-page [hidden] { display: none !important; }
.ch-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ch-skip { position: fixed; left: 16px; top: -100px; z-index: 2000; padding: 12px; background: var(--bg-card); }
.ch-skip:focus { top: 10px; }
.ch-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; }
.ch-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.ch-page-head { padding-bottom: 8px; }
.ch-page-head > p:empty { display: none; }
.ch-head-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ch-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ch-identity > div { min-width: 0; }
.ch-identity h2 { margin: 0; }
.ch-flag { display: block; width: 48px; height: 36px; object-fit: contain; flex: 0 0 48px; font-size: 10px; }
.ch-country-symbol { flex: 0 0 40px; }
.ch-selection-line { color: var(--text-secondary); font-size: 13px; margin: 0 !important; }
.ch-country-summary { max-width: 850px; margin-top: 16px !important; margin-bottom: 0 !important; }
.ch-kicker { display: block; color: var(--ch-link); font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.ch-muted { color: var(--text-tertiary); font-size: 13px; }
.ch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ch-button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-card); color: var(--text-primary) !important; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; max-width: 100%; text-align: center; line-height: 1.4; }
.ch-button:hover { background: var(--bg-hover); }
.ch-button:disabled { cursor: wait; opacity: .65; }
.ch-primary { background: var(--text-primary); color: var(--bg-primary) !important; border-color: var(--text-primary); }
.ch-primary:hover { background: var(--text-secondary); }
.ch-icon { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; }
.ch-icon svg { width: 100%; height: 100%; }
.ch-icon-button { width: 44px; height: 44px; padding: 0; font-size: 26px; flex-shrink: 0; }
.ch-selection { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); }
.ch-selection-heading { display: flex; align-items: baseline; gap: 10px; }
.ch-selection-heading .ch-kicker { margin: 0; }
.ch-selection-heading h2 { margin: 0; font-size: 14px; }
.ch-filter-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; padding: 0; align-items: end; }
.ch-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.ch-field :is(input, select, textarea) { min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 10px; background: var(--bg-card); font-size: 14px; font-weight: 400; }
.ch-field textarea { resize: vertical; }
.ch-assessment-form { display: grid; gap: 16px; }
.ch-assessment-form [hidden] { display: none; }
.ch-assessment-form .ch-button { justify-self: start; }
.ch-reassessment-confirmation { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-block: 10px; font-size: 14px; }
.ch-reassessment-confirmation input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; }
.ch-tabs { display: flex; flex-wrap: wrap; gap: 0 16px; border-bottom: 1px solid var(--border-color); padding: 10px 0 0; margin-bottom: 24px; }
.ch-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.ch-tabs a:hover { color: var(--ch-link); }
.ch-tabs a[aria-current] { color: var(--text-primary); border-bottom-color: var(--ch-link); font-weight: 700; }
.ch-reader { display: grid; grid-template-columns: minmax(0, 1fr) 252px; gap: 24px; align-items: start; }
.ch-reader-full { grid-template-columns: minmax(0, 1fr); }
.ch-reading, .ch-rail, .ch-reading > * { min-width: 0; }
.ch-section { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.ch-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ch-overview > div:first-child { max-width: 76ch; }
.ch-prose-evidence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-tertiary); font-size: 12px; margin: -8px 0 12px; }
.ch-prose-evidence .ch-citation { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.ch-takeaways { background: var(--ch-highlight); border-left: 3px solid var(--status-positive); padding: 16px; font-size: 13px; }
.ch-takeaways h3 { margin: 0; }
.ch-takeaways a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-primary); }
.ch-topics { display: grid; gap: 12px; margin-bottom: 28px; }
.ch-topic { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); text-decoration: none; color: var(--text-secondary) !important; }
.ch-topic:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.ch-topic > div { flex: 1; min-width: 0; }
.ch-topic p { margin: 0; font-size: 13px; }
.ch-topic-icon { width: 36px; height: 40px; padding: 8px 6px; background: var(--bg-secondary); color: var(--ch-link); border-radius: 5px; }
.ch-chevron { transform: rotate(-90deg); align-self: center; }
.ch-rail { border-left: 1px solid var(--border-color); padding-left: 20px; font-size: 13px; }
.ch-rail section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.ch-rail h2 { font-size: 15px; margin-bottom: 14px; }
.ch-rail h3 { font-size: 13px; margin-top: 16px; }
.ch-rail-identity { gap: 10px; }
.ch-rail-identity .ch-flag { width: 36px; height: 27px; flex-basis: 36px; }
.ch-rail ul.ch-rail-sources { list-style: none; padding: 0; }
.ch-rail-sources .ch-evidence-link { display: inline-flex; align-items: center; min-height: 44px; }
.ch-rail-sources .ch-muted { display: block; }
.ch-rail-link { display: inline-flex; align-items: center; min-height: 44px; }
.ch-rail .ch-actions { display: grid; }
.ch-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 14px 0; font-size: 13px; }
.ch-facts dt { color: var(--text-tertiary); font-size: 12px; margin-bottom: 3px; }
.ch-facts dd { margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }
.ch-rail .ch-facts { grid-template-columns: minmax(0, 1fr); }
.ch-gap, .ch-empty { padding: 16px; border-left: 3px solid var(--status-warning); background: var(--ch-notice); }
.ch-gap-list { border-left: 3px solid var(--status-warning); padding-left: 24px !important; }
.ch-gap-list strong { font-size: 13px; color: var(--text-primary); }
.ch-gap-list p { font-size: 13px; }
.ch-search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 16px; }
.ch-search-form .ch-field { flex: 1 1 115px; }
.ch-search-form .ch-search { flex-basis: 100%; }
.ch-result-count { font-size: 12px; color: var(--text-tertiary); }
.ch-source-count { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; }
.ch-country-hero { position: relative; min-height: 176px; height: clamp(176px, 15vw, 220px); padding: 0; overflow: hidden; color: #fff; background: var(--text-primary); }
.ch-country-hero picture, .ch-country-hero-image, .ch-country-hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.ch-country-hero-image { display: block; object-fit: cover; object-position: center; }
.ch-country-hero-scrim { z-index: 1; background: rgb(8 20 34 / 50%); }
.ch-country-hero-content { position: relative; z-index: 2; display: flex; align-items: center; height: 100%; min-width: 0; padding: 20px; }
.ch-country-hero .ch-head-row { min-height: 64px; }
.ch-country-hero .ch-hero-identity { gap: 12px; }
.ch-country-hero .ch-hero-identity > .ch-flag { width: 48px; height: 36px; flex-basis: 48px; border: 2px solid #fff; }
/* The hero sits on a photo in both the public and the signed-in shell, which restyles h1. */
.ch-country-hero h1, .ch-country-hero .ch-kicker, .ch-country-hero .ch-selection-line { color: #fff !important; }
.ch-country-hero h1 { font-size: 28px; }
.ch-country-hero .ch-selection-line { color: rgb(255 255 255 / 88%); }
.ch-country-hero .ch-button { background: var(--bg-card); color: var(--text-primary) !important; border-color: var(--bg-card); }
.ch-country-hero .ch-button:hover { background: var(--bg-hover); }
.ch-header-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 12px; padding-top: 8px; }
.ch-header-tools .ch-actions { min-width: 0; max-width: 100%; }
.ch-header-tools .ch-button { flex: 0 1 auto; min-width: 0; }
.ch-source-group { border-top: 1px solid var(--ch-border); }
.ch-coverage-details { border-top: 1px solid var(--ch-border); }
.ch-coverage-details > summary { display: flex; align-items: center; min-height: 44px; padding: 8px 0; cursor: pointer; font-size: 14px; color: var(--text-primary); }
.ch-source-group:last-child { border-bottom: 1px solid var(--ch-border); }
.ch-source-group summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 2px; cursor: pointer; color: var(--text-primary); font-size: 14px; font-weight: 700; list-style: none; }
.ch-source-group summary::-webkit-details-marker { display: none; }
.ch-source-group summary::before { content: '+'; order: 2; color: var(--ch-link); font-size: 18px; font-weight: 400; }
.ch-source-group[open] summary::before { content: '-'; }
.ch-source-group-label { margin-right: auto; }
.ch-source-group-count { color: var(--text-tertiary); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ch-source-group-items { padding: 0 14px; border-top: 1px solid var(--ch-border); }
.country-handbook-page .ch-table { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; overflow: visible; font-size: 12px; }
.ch-table :is(th, td) { border-bottom: 1px solid var(--border-color); padding: 12px 10px; text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.ch-table thead th { background: var(--bg-secondary); color: var(--text-secondary); font-weight: 600; }
.ch-table thead th:first-child { width: 35%; }
.ch-table thead th:nth-child(2) { width: 17%; }
.country-handbook-page .ch-table tbody th { font-weight: 400; text-transform: none; letter-spacing: 0; }
.ch-table p { margin: 4px 0 0; font-size: 12px; }
.ch-table .ch-requirement-link { display: inline-flex; align-items: center; min-height: 44px; }
.ch-evidence-link, .ch-requirement-link, .ch-citation { min-height: 44px; border: 0; padding: 6px 0; background: transparent; color: var(--ch-link); font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.ch-evidence-link, .ch-requirement-link { font-weight: 600; }
.ch-evidence-link:hover, .ch-requirement-link:hover, .ch-citation:hover { text-decoration: underline; }
.ch-badge { display: inline-block; padding: 3px 6px; border-radius: 4px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 11px; }
.ch-pagination { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 16px; font-size: 12px; }
.ch-source, .ch-requirement { padding: 18px 0; border-bottom: 1px solid var(--border-color); }
.ch-source:last-child, .ch-requirement:last-child { border-bottom: 0; }
.ch-source h3 .ch-evidence-link, .ch-requirement h3 .ch-requirement-link { display: inline-flex; align-items: center; min-height: 44px; }
.ch-source p { font-size: 13px; }
.ch-source-detail summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ch-link); font-size: 13px; }
.ch-requirement p { margin-bottom: 8px; }
.ch-answer { margin-top: 24px; }
.ch-answer:empty, #ch-share-status:empty { display: none; }
#ch-save-status:empty, #ch-comparison-status:empty { display: none; }
#ch-question-form .ch-button { margin-top: 12px; }
#ch-question-form :is(textarea, .ch-button) { scroll-margin-block: 112px; }
.ch-answer section { margin-top: 20px; }
.ch-answer a { display: inline-flex; align-items: center; min-height: 44px; }
/* Index page: header, stats, controls, cards, list view (AML country mapping redesign) */
.ch-index-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px 28px; margin-bottom: 20px; box-shadow: 0 3px 12px var(--shadow-color); }
.ch-index-header-copy h1 { font-family: var(--rc-font-display, Georgia, serif); margin: 0 0 6px; font-size: 30px; line-height: 1.15; color: var(--text-primary); }
.ch-index-header-copy p { margin: 0; color: var(--text-secondary); font-size: 14px; max-width: 52ch; }
.ch-index-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.ch-index-stat { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 16px; min-width: 168px; }
.ch-index-stat .ch-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 999px; background: var(--bg-hover); color: var(--ch-link); }
.ch-index-stat strong { display: block; font-size: 15px; color: var(--text-primary); }
.ch-index-stat span { display: block; font-size: 11px; color: var(--text-tertiary); }
.ch-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.ch-controls .ch-search { flex: 1 1 260px; min-width: 220px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); border-radius: 8px; padding: 0 14px; background: var(--bg-card); }
.ch-controls .ch-search .ch-icon { color: var(--text-tertiary); flex: 0 0 auto; }
.ch-controls .ch-search input { flex: 1; border: 0; background: transparent; min-height: 44px; font-size: 14px; color: var(--text-primary); }
.ch-controls .ch-search input:focus { outline: none; }
.ch-controls select { appearance: none; -webkit-appearance: none; height: 44px; min-height: 44px; border: 1px solid var(--border-color); border-radius: 10px; padding: 0 34px 0 14px; background-color: var(--bg-card); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='1.6'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; color: var(--text-primary); font-size: 13px; cursor: pointer; }
.ch-controls .ch-compare-cta { margin-left: auto; }
.ch-view-toggle { display: inline-flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.ch-view-toggle button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--bg-card); color: var(--text-tertiary); cursor: pointer; padding: 0; }
.ch-view-toggle button .ch-icon, .ch-view-toggle button svg { width: 18px; height: 18px; }
.ch-view-toggle button + button { border-left: 1px solid var(--border-color); }
.ch-view-toggle button[aria-pressed="true"] { background: var(--rc-navy, #011530); color: #fff; }
.ch-catalogue-meta { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; flex-wrap: wrap; }
.ch-catalogue-meta h2 { margin: 0; font-size: 18px; }
.ch-catalogue-meta p { margin: 0; color: var(--text-tertiary); font-size: 13px; }
/* auto-fill (not a viewport media query) so the column count tracks the
   available CONTENT width - the portal's fixed 280px sidebar leaves less
   room than the public page has at the same viewport width, and a
   viewport-only breakpoint kept the portal stuck at 4 narrow columns
   where card titles truncated. */
.ch-catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
@media (max-width: 640px) { .ch-catalogue { grid-template-columns: minmax(0, 1fr); } }
/* A country with both a handbook card and a separate register link (currently
   only the UK) wraps the two in one grid cell, stacked, so the link never
   collapses out of the grid flow. */
.ch-country-card-wrap { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ch-country-card-wrap .ch-country-card { flex: 1; }
.ch-country-card-register-link { align-self: flex-start; font-size: 13px; }
.ch-country-card-register-only p { color: var(--text-secondary); font-size: 13px; }
/* A country with both a handbook and a public register (currently uk) renders
   as a plain (non-link) card with two explicit CTAs in its own footer row,
   instead of a floating link below the card or an invalid nested <a>. */
.ch-country-card-dual { cursor: default; }
.ch-country-card-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 20px 18px; }
.ch-country-card-cta { flex: 1 1 auto; justify-content: center; font-size: 12.5px; padding: 8px 10px; }
.ch-country-card-cta.ch-country-card-primary { flex-basis: 100%; color: var(--bg-card) !important; background: var(--text-primary); border-color: var(--text-primary); }
.ch-country-card-cta.ch-country-card-primary:hover { background: var(--text-secondary); }
.ch-country-card-title h2 a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: inherit; text-decoration: none; }
.ch-country-card-title h2 a:hover { text-decoration: underline; }
/* Register-only cards (FI/NL/ES/LU: handbook held, register public). FI reuses
   its existing licensed hero photo; the others have no licensed photo (see
   credits.json), so they get a flag header band at the same height as the
   photo cards, keeping the grid even without an unlicensed image. */
.ch-country-card-flag-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--bg-hover); }
.ch-country-card-flag-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The register band: full-bleed flag (or FI's licensed photo) with a light
   sheen across the top and a dark scrim along the bottom, so the white
   "Obligation register" pill stays legible on any flag colour. */
.ch-register-band { position: relative; border-radius: 12px 12px 0 0; overflow: hidden; }
.ch-register-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 38%), linear-gradient(180deg, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .28) 100%); }
.ch-register-band .ch-country-cover, .ch-register-band .ch-country-card-flag-cover { border-radius: 0; }
.ch-register-band-pill { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(4px); }
.ch-register-band-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.ch-country-card > .ch-country-card-body > p.ch-register-card-sentence { -webkit-line-clamp: 2; margin: 0 0 12px; }
/* Register stat strip: three computed numbers and the instrument chips,
   shared by register-only cards and handbook cards with a public register. */
.ch-register-catalogue-strip { margin: 0 20px; }
.ch-register-catalogue-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 10px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-hover); }
.ch-register-catalogue-stats > div { display: flex; flex-direction: column-reverse; padding: 8px 10px; min-width: 0; }
.ch-register-catalogue-stats > div + div { border-left: 1px solid var(--border-color); }
.ch-register-catalogue-stats dd { margin: 0; font-family: var(--rc-font-display, Georgia, serif); font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ch-register-catalogue-stats dt { margin-top: 2px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-register-catalogue-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 4px; }
.ch-chip-more { background: transparent; border: 1px dashed var(--border-color); }
@media (max-width: 480px) { .ch-register-catalogue-stats dt { text-transform: none; letter-spacing: 0; font-size: 11px; } }
.ch-flag-svg svg { width: 100%; height: 100%; display: block; border-radius: 2px; }
/* The register-only page's compact header: same flag treatment as the
   catalogue card, so a held-handbook country's register page isn't bare
   next to the photo-hero handbook pages. */
.ch-register-only-head { display: flex; align-items: center; gap: 16px; }
.ch-register-only-flag { flex: 0 0 auto; width: 64px; height: 48px; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px var(--shadow-color); display: flex; }
.ch-register-only-flag img, .ch-register-only-flag .ch-flag-svg, .ch-register-only-flag .ch-flag-svg svg { width: 100%; height: 100%; object-fit: cover; }
.ch-country-card { min-width: 0; border: 1px solid var(--border-color); background: var(--bg-card); border-radius: 12px; padding: 0 0 18px; color: var(--text-primary) !important; text-decoration: none; box-shadow: 0 3px 12px var(--shadow-color); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; overflow: hidden; display: flex; flex-direction: column; }
.ch-country-card:hover { border-color: var(--ch-link); box-shadow: 0 9px 24px var(--shadow-color); transform: translateY(-2px); }
.ch-country-cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg-hover); border-radius: 12px 12px 0 0; overflow: hidden; }
.ch-country-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-country-card-body { padding: 16px 20px 0; flex: 1; display: flex; flex-direction: column; }
.ch-country-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ch-country-card .ch-identity { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.ch-country-card-flag { flex: 0 0 auto; display: inline-flex; align-items: center; }
.ch-country-card-flag img, .ch-country-card-flag .ch-flag { width: 26px; height: 19px; }
.ch-country-card-title { min-width: 0; flex: 1 1 auto; }
.ch-country-card h2 { margin: 0; font-family: var(--rc-font-display, Georgia, serif); font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-country-card-subtitle { display: block; margin-top: 2px; font-size: 12px; color: var(--text-tertiary); }
.ch-country-card > .ch-country-card-body > p { color: var(--text-secondary); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ch-country-card-arrow { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--border-color); border-radius: 6px; color: var(--ch-link); font-size: 17px; transition: transform 160ms ease, background 160ms ease; align-self: center; }
.ch-country-card:hover .ch-country-card-arrow { transform: translateX(3px); background: color-mix(in srgb, var(--ch-link) 10%, var(--bg-card)); }
.ch-country-card-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-top: 13px; margin: auto 0 8px; border-top: 1px solid var(--border-color); }
.ch-country-card-facts > div { min-width: 0; padding: 10px 4px 0; border-left: 1px solid var(--border-color); text-align: center; }
.ch-country-card-facts > div:first-child { border-left: 0; padding-left: 0; }
.ch-country-card-facts dd { margin: 0; font-family: var(--rc-font-display, Georgia, serif); font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--text-primary); }
.ch-country-card-facts dt { margin-top: 4px; color: var(--text-tertiary); font-size: 11px; text-transform: none; white-space: nowrap; overflow: visible; }
.ch-gap-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; flex: 0 0 8px; }
.ch-gap-dot.ch-gap-low { background: var(--status-positive, #10b981); }
.ch-gap-dot.ch-gap-medium { background: var(--status-warning, #f59e0b); }
.ch-gap-dot.ch-gap-high { background: #ef4444; }
.ch-country-card-note { color: var(--text-tertiary); font-size: 11px; display: block; margin-top: 14px; }
.ch-empty-state { padding: 48px 24px; text-align: center; color: var(--text-tertiary); border: 1px dashed var(--border-color); border-radius: 12px; grid-column: 1 / -1; }

/* List view */
.ch-catalogue.ch-view-list { display: flex; flex-direction: column; gap: 10px; }
.ch-view-list .ch-country-card { flex-direction: row; align-items: center; padding: 12px 18px; gap: 16px; border-radius: 8px; }
.ch-view-list .ch-country-cover { display: none; }
.ch-view-list .ch-country-card-body { flex-direction: row; align-items: center; padding: 0; gap: 18px; flex: 1; }
.ch-view-list .ch-country-card-head { margin-bottom: 0; flex: 1 1 220px; }
.ch-view-list .ch-country-card-body > p { flex: 1 1 260px; -webkit-line-clamp: 2; margin: 0; }
.ch-view-list .ch-country-card-facts { border-top: 0; margin: 0; padding: 0; flex: 0 0 auto; grid-auto-flow: column; grid-template-columns: none; }
.ch-view-list .ch-country-card-facts > div { border-left: 1px solid var(--border-color); padding: 0 16px; }
.ch-view-list .ch-country-card-facts > div:first-child { border-left: 1px solid var(--border-color); padding-left: 16px; }
.ch-view-list .ch-country-card-note { display: none; }
/* Obligation register */
.ch-register-instruments { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ch-register-instrument { padding: 14px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-card); display: flex; flex-direction: column; }
.ch-register-instrument h3 { font-size: 14px; margin: 0 0 4px; }
.ch-register-instrument-ref { font-weight: 700; }
.ch-register-instrument-title { margin: 0 0 6px; font-size: 12.5px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: help; }
.ch-register-instrument-version { margin: 0 0 6px; font-size: 12px; }
.ch-register-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ch-register-scope { padding: 14px 16px; border-left: 3px solid var(--accent-color); background: var(--bg-hover); border-radius: 0 8px 8px 0; margin-bottom: 18px; }
.ch-register-scope p { margin: 0 0 6px; font-size: 13px; }
.ch-register-scope ul { margin: 0 0 6px; padding-left: 18px; font-size: 13px; }
.ch-register-scope li { margin-bottom: 4px; }
.ch-register-scope-more { margin: 0 0 8px; font-size: 13px; }
.ch-register-scope-more > summary { min-height: 44px; padding-block: 12px; cursor: pointer; color: var(--ch-link); font-weight: 600; margin-bottom: 6px; }
.ch-register-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 901px) {
  .ch-register-filters .ch-field:has(select[name="firmType"]) { grid-column: span 3; }
}
.ch-register-list { display: flex; flex-direction: column; gap: 8px; }

/* Compact row: a <details> element whose <summary> is the scannable line
   (instrument/provision ref, one-line summary, firm-type chips, disposition
   badge, firm decision when signed in) and whose body holds the full
   source -> provision -> original -> translation -> plain English ->
   obligation -> applies to -> firm decision expansion, in that order. */
.ch-register-row { border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.ch-register-row > summary {
  min-height: 44px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.ch-register-row > summary::-webkit-details-marker { display: none; }
.ch-register-row > summary::before { content: '\25B8'; display: inline-block; color: var(--text-tertiary); transition: transform .15s ease; flex: 0 0 auto; }
.ch-register-row[open] > summary::before { transform: rotate(90deg); }
.ch-register-row-ref { font-weight: 600; font-size: 13px; white-space: normal; overflow: visible; overflow-wrap: anywhere; min-width: 0; flex: 0 1 auto; max-width: 42%; }
.ch-register-row-summary { min-width: 0; font-size: 13px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 120px; }
.ch-register-row-trailing { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; justify-content: flex-end; flex: 0 0 auto; margin-left: auto; }
.ch-register-row-chips { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 480px) {
  .ch-register-row > summary { flex-wrap: wrap; }
  .ch-register-row-ref, .ch-register-row-summary { white-space: normal; max-width: 100%; flex: 1 1 100%; }
  .ch-register-row-trailing { flex: 1 1 100%; justify-content: flex-start; margin-left: 0; }
}
.ch-chip { display: inline-block; padding: 2px 7px; border-radius: 999px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 10.5px; white-space: nowrap; }
.ch-register-row-decision { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg-hover); color: var(--text-tertiary); border: 1px solid var(--border-color); white-space: nowrap; }
.ch-register-row-decision[data-decision-status="applies"] { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ch-register-row-decision[data-decision-status="does_not_apply"] { background: var(--bg-secondary); color: var(--text-tertiary); }
.ch-register-row-decision[data-decision-status="needs_assessment"] { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.ch-register-row-decision[data-decision-status="uplift_required"] { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.ch-register-row-decision[data-decision-status="unavailable"] { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.ch-register-summary-facts [data-emphasis="attention"] dd { color: #92400e; font-weight: 700; }
.ch-register-summary-facts [data-emphasis="alert"] dd { color: #b91c1c; font-weight: 700; }
.ch-register-row-body { padding: 0 16px 16px; border-top: 1px solid var(--border-color); }
.ch-register-disposition { background: var(--accent-color); color: var(--text-primary); flex: 0 0 auto; }
.ch-register-original { margin: 12px 0 8px; }
.ch-register-original summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.ch-register :is(.ch-register-source-attribution, .ch-register-original, .ch-register-source-notes, .ch-register-source-evidence) > summary { min-height: 44px; padding-block: 12px; cursor: pointer; }
.ch-register-row-body a[target="_blank"] { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.ch-register-translation { margin: 10px 0; padding: 10px 12px; background: var(--bg-hover); border-radius: 8px; }
.ch-register-translation h4 small { font-weight: 400; color: var(--text-tertiary); }
.ch-register-row-body section { margin: 10px 0; }
.ch-register-row-body h4 { font-size: 13px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .02em; color: var(--text-secondary); }
.ch-register-assessment { border-top: 1px dashed var(--border-color); padding-top: 12px; }
.ch-register-firm-summary { padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 14px; background: var(--bg-card); }
.ch-register-summary-facts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }

/* Mobile instrument strip: the full cards (title/publisher/per-disposition
   counts/source link) are desktop-only; mobile gets a one-line-per-instrument
   compact <details> list so the reader reaches the obligations without
   scrolling past a wall of cards first. */
.ch-register-instruments-mobile { display: none; }
.ch-register-instrument-mobile-row { border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); margin-bottom: 6px; }
.ch-register-instrument-mobile-row summary { display: flex; align-items: center; min-height: 44px; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.ch-register-instrument-mobile-row .ch-register-instrument-ref { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ch-register-instrument-mobile-row .ch-register-instrument-count { flex: 0 0 auto; min-width: max-content; white-space: nowrap; }
.ch-register-instrument-mobile-row > div { padding: 0 12px 12px; font-size: 13px; }

@media (max-width: 900px) {
  .ch-view-list .ch-country-card { flex-wrap: wrap; }
  .ch-view-list .ch-country-card-body { flex-wrap: wrap; }
}
.ch-coverage { font-weight: 600; font-size: 13px; }
.ch-evidence-record { border-top: 1px solid var(--border-color); padding: 12px 0; }
.ch-evidence-record summary { min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--ch-link); }

@media (min-width: 1500px) {
  .ch-filter-form { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
  .ch-overview { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; }
  .ch-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ch-modal { position: fixed; inset: 0; width: min(880px, calc(100vw - 48px)); height: min(85dvh, 860px); max-width: none; max-height: none; margin: auto; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0; background: var(--bg-card); color: var(--text-secondary); overflow: hidden; overscroll-behavior: contain; box-shadow: 0 24px 72px rgb(0 0 0 / 28%); }
.ch-modal::backdrop { background: rgb(8 20 34 / 54%); backdrop-filter: blur(2px); }
.ch-modal-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.ch-modal-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; background: var(--bg-card); border-bottom: 1px solid var(--border-color); }
.ch-modal-bar h2 { grid-column: 2; font-size: 15px; margin: 0; }
.ch-modal-bar .ch-icon-button { grid-column: 3; }
.ch-modal-back { min-width: 84px; }
.ch-modal-content { min-height: 0; overflow-y: auto; padding: 24px 28px; }
.ch-modal-content > section { padding: 18px 0; border-bottom: 1px solid var(--border-color); }
.ch-modal-content > header h2 { font-size: 24px; }
.ch-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border-color); background: var(--bg-card); }
.ch-modal-related ul { padding-left: 18px; }
.ch-evidence-summary { border-left: 3px solid var(--ch-link); padding: 16px !important; background: var(--bg-primary); margin-top: 18px; }
.ch-modal-open { overflow: hidden; }
.ch-comparison-form { margin-bottom: 28px; border-bottom: 1px solid var(--border-color); }
.ch-country-options { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; border: 0; margin-bottom: 16px; }
.ch-country-options legend { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.ch-country-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 13px; }
.ch-country-options input { width: 20px; height: 20px; accent-color: var(--ch-link); }
.ch-country-options .ch-flag { width: 28px; height: 21px; flex-basis: 28px; }
.ch-comparison-grid { display: grid; gap: 20px; }
.ch-compare-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ch-compare-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-compare-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ch-comparison-grid > article { min-width: 0; border-left: 1px solid var(--border-color); padding-left: 16px; font-size: 13px; }
.ch-comparison-grid .ch-identity { flex-wrap: wrap; margin-bottom: 16px; }
.ch-comparison-grid .ch-identity a { display: inline-flex; align-items: center; min-height: 44px; }
.ch-comparison-record { border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 12px; }
.ch-comparison-record summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; color: var(--text-primary); }
.ch-comparison-record section { padding: 12px 0; }
.ch-comparison-record .ch-facts { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1500px) { .ch-overview:has(.ch-takeaways) { grid-template-columns: minmax(0, 1fr) 240px; } }
@media (max-width: 1220px) and (min-width: 1025px), (max-width: 800px) {
  .ch-reader { grid-template-columns: minmax(0, 1fr); }
  .ch-rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ch-rail section { margin: 0; }
  .ch-head-row { flex-wrap: wrap; }
  .ch-comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.country-handbook-page .operational-main { padding-left: 16px; padding-right: 16px; }
  .country-handbook-page h1 { font-size: 24px; }
  .ch-filter-form, .ch-catalogue, .ch-rail { grid-template-columns: minmax(0, 1fr); }
  .ch-comparison-grid { grid-template-columns: minmax(0, 1fr); }
  .ch-head-row > .ch-actions { width: 100%; }
  .ch-tabs { gap: 0 14px; margin-bottom: 20px; }
  .ch-tabs a { font-size: 12px; }
  .ch-topic { padding: 14px; gap: 10px; }
  .ch-country-card { padding: 16px; }
  .ch-search-form .ch-field { flex-basis: calc(50% - 12px); }
  .ch-search-form .ch-search { flex-basis: 100%; }
  .ch-search-form .ch-button { width: 100%; }
  .ch-field :is(input, select, textarea) { font-size: 16px; }
  .country-handbook-page .ch-table, .ch-table tbody { display: block; }
  .ch-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ch-table tr { display: block; border: 1px solid var(--border-color); border-radius: 6px; padding: 14px; margin-bottom: 12px; background: var(--bg-card); }
  .ch-table :is(th, td) { display: block; width: 100%; padding: 6px 0; border: 0; font-size: 13px; }
  .ch-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 4px; }
  .ch-table p { font-size: 13px; }
  .ch-table th a { font-size: 14px; }
  .ch-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .country-handbook-page { scroll-behavior: auto; } }

/* Reader-specific tokens keep the handbook legible in both shared themes. */
.country-handbook-page {
  --ch-surface: var(--bg-card);
  --ch-surface-muted: var(--bg-secondary);
  --ch-border: var(--border-color);
  --ch-body: var(--text-primary);
  --ch-subtle: var(--text-tertiary);
  --ch-review: color-mix(in srgb, var(--status-warning) 12%, var(--ch-surface));
  --ch-review-border: var(--status-warning);
}
.ch-tabs { gap: 4px 14px; align-items: stretch; }
.ch-tabs a { gap: 6px; }
.ch-tab-icon { width: 18px; height: 18px; }
.ch-global-search { display: flex; align-items: end; gap: 10px; padding: 12px; margin: 0 0 24px; border: 1px solid var(--ch-border); border-radius: 6px; background: var(--ch-surface); }
.ch-global-search:not(.ch-search-view) { align-items: end; }
.ch-search-input { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.ch-search-input > .ch-icon { color: var(--ch-link); }
.ch-global-search .ch-field { flex: 1 1 auto; }
.ch-global-search .ch-field input { min-height: 44px; }
.ch-global-search .ch-button { flex: 0 0 auto; }
.ch-search-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 16px; }
.ch-search-filters .ch-field { flex: 1 1 150px; }
.ch-search-filters .ch-button { flex: 0 0 auto; }
.ch-section-head, .ch-source-head, .ch-checklist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ch-topic-header { max-width: 72ch; margin-bottom: 20px; }
.ch-topic-header h2 { margin-bottom: 6px; font-size: 24px; }
.ch-topic-header p { color: var(--text-secondary); font-size: 14px; }
.ch-source-head h3 { min-width: 0; margin-bottom: 0; }
.ch-source-meta { color: var(--ch-subtle); font-size: 12px !important; margin: 4px 0 8px !important; }
.ch-source-filter { max-width: 560px; margin-bottom: 12px; }
.ch-source { padding: 14px 0; }
.ch-source-detail summary { font-weight: 600; }
.ch-source-detail .ch-facts { margin-top: 8px; }
.ch-review-notice { padding: 14px 16px; margin: 14px 0 18px; border-left: 3px solid var(--ch-review-border); background: var(--ch-review); color: var(--ch-body); }
.ch-review-notice strong { display: block; font-size: 13px; line-height: 1.4; }
.ch-review-notice p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.ch-review-notice a { color: var(--ch-body); }
.ch-public-assurance-warning { margin: 14px 0; padding: 14px 18px; border: 1px solid #9b3c2f; border-left: 6px solid #9b3c2f; border-radius: 4px; background: #fff1eb; color: #2b1d19; }
.ch-public-assurance-warning .ch-kicker { color: #76291f; font-weight: 800; }
.ch-public-assurance-warning h2 { margin: 2px 0 6px; font-size: 19px; line-height: 1.25; }
.ch-public-assurance-warning p, .ch-public-assurance-warning li { font-size: 13px; line-height: 1.45; }
.ch-public-assurance-warning p { margin: 4px 0; }
.ch-public-assurance-warning ul { margin: 6px 0; padding-left: 20px; }
.ch-public-assurance-warning li + li { margin-top: 2px; }
.ch-public-assurance-warning-compact { margin: 12px 0; }
.ch-public-assurance-details { margin-top: 8px; }
.ch-public-assurance-details > summary { display: flex; align-items: center; min-height: 44px; padding: 4px 0; cursor: pointer; font-size: 13px; font-weight: 700; color: #76291f; }
.ch-public-assurance-details[open] > summary { margin-bottom: 4px; }
.ch-public-preview-badge { display: inline-block; margin: 10px 0 0; padding: 5px 8px; border: 1px solid #9b3c2f; border-radius: 3px; color: #76291f; background: #fff1eb; font-size: 11px; font-weight: 700; }
.ch-review-label { display: block; margin-top: 4px; color: var(--status-warning); font-size: 11px; font-weight: 600; line-height: 1.4; }
.ch-review-badge { display: inline-flex; align-items: center; width: fit-content; margin: 4px 0 0; padding: 2px 6px; border: 1px solid var(--ch-review-border); border-radius: 4px; color: var(--text-primary); background: var(--ch-review); font-size: 10px; font-weight: 700; line-height: 1.3; }
.ch-retained-row { background: var(--ch-review); }
.ch-retained-item { border-left: 3px solid var(--ch-review-border); padding-left: 14px; }
.ch-checklists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ch-checklist { min-width: 0; padding: 16px; border: 1px solid var(--ch-border); border-radius: 6px; background: var(--ch-surface); }
.ch-checklist h3 { margin: 0; }
.ch-checklist > p { color: var(--ch-subtle); font-size: 12px; }
.ch-checklist ul { list-style: none; padding: 0; margin: 12px 0 0; }
.ch-checklist li { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-top: 1px solid var(--ch-border); }
.ch-checkmark { color: var(--ch-link); width: 18px; height: 18px; flex: 0 0 18px; }
.ch-checkmark svg { width: 100%; height: 100%; }
.ch-checklist li > span:last-child { min-width: 0; }
.ch-checklist .ch-requirement-link { min-height: 44px; align-items: center; }
.ch-checklist small { display: block; margin-top: 3px; }
.ch-tool-actions { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--ch-border); }
.ch-tool-actions h3 { font-size: 13px; }
.ch-change-list { border-top: 1px solid var(--ch-border); }
.ch-change-list article { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ch-border); }
.ch-change-list time { color: var(--ch-subtle); font-size: 12px; }
.ch-change-list h3 { margin-bottom: 4px; }
.ch-change-list p { font-size: 13px; }
.ch-search-results { display: grid; gap: 12px; }
.ch-search-result { padding: 16px; border: 1px solid var(--ch-border); border-radius: 6px; background: var(--ch-surface); }
.ch-search-result h3 { margin-bottom: 0; }
.ch-search-result p { font-size: 13px; }
.ch-search-result > a { display: inline-flex; align-items: center; min-height: 44px; }
.ch-search-result .ch-review-label { margin-top: 4px; }
.ch-search-coverage, .ch-search-availability { padding: 10px 12px; margin: 12px 0; border-left: 3px solid var(--ch-link); background: var(--ch-surface-muted); color: var(--ch-body); font-size: 12px; line-height: 1.5; }
.ch-search-availability { border-left-color: var(--ch-review-border); background: var(--ch-review); }
.ch-information-items { margin-top: 18px; overflow-x: auto; }
.ch-information-items table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 12px; }
.ch-information-items th, .ch-information-items td { padding: 9px 8px; border-bottom: 1px solid var(--ch-border); text-align: left; vertical-align: top; }
.ch-information-items thead th { color: var(--ch-subtle); font-weight: 600; }
.ch-information-items tbody th { color: var(--ch-body); font-weight: 600; }
.ch-checklist-detail { margin-top: 6px; }
.ch-checklist-detail summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ch-link); cursor: pointer; font-size: 12px; font-weight: 600; }
.ch-checklist-detail .ch-information-items { margin-top: 4px; }
.ch-checklist-detail .ch-information-items table { min-width: 460px; font-size: 11px; }
.ch-rail { position: sticky; top: 24px; }
.ch-topic-jump { display: none; }

@media (max-width: 1100px) {
  .ch-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ch-filter-form .ch-button { width: 100%; }
  .ch-checklists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ch-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-global-search { align-items: stretch; flex-wrap: wrap; }
  .ch-search-input { flex-basis: 100%; }
  .ch-global-search .ch-button { width: 100%; }
  .ch-checklists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ch-selection { padding: 14px; }
  .ch-selection-heading { display: block; }
  .ch-selection-heading .ch-kicker { margin-bottom: 4px; }
  .ch-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-filter-form .ch-button { grid-column: 1 / -1; }
  .ch-information-items { overflow-x: visible; }
  .ch-information-items table, .ch-checklist-detail .ch-information-items table { display: block; min-width: 0; width: 100%; }
  .ch-information-items thead { display: none; }
  .ch-information-items tbody, .ch-information-items tr { display: block; width: 100%; }
  .ch-information-items tr { padding: 8px 0; border-bottom: 1px solid var(--ch-border); }
  .ch-information-items th, .ch-information-items td { display: block; border: 0; padding: 5px 0; overflow-wrap: anywhere; }
  .ch-information-items [data-label]::before { content: attr(data-label); display: block; color: var(--ch-subtle); font-size: 11px; font-weight: 600; margin-bottom: 3px; }
  .ch-tabs { display: none; }
  .ch-topic-jump { display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 10px 0; color: var(--text-secondary); font-size: 12px; font-weight: 600; }
  .ch-topic-jump select { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 10px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 16px; font-weight: 400; }
  .ch-search-filters .ch-field { flex-basis: calc(50% - 12px); }
  .ch-search-filters .ch-button { width: 100%; }
  .ch-change-list article { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ch-source-head { flex-wrap: wrap; }
  .ch-modal { inset: 0; width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .ch-modal-bar { padding: 10px 16px; }
  .ch-modal-back { min-width: 44px; width: 44px; padding: 0; overflow: hidden; color: transparent !important; position: relative; }
  .ch-modal-back::before { content: '\2190'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-primary); font-size: 20px; }
  .ch-modal-content { padding: 20px 16px; }
  .ch-modal-content > header h2 { font-size: 21px; }
  .ch-modal-footer { padding: 10px 16px; }
  .ch-modal-footer .ch-button { flex: 1 1 auto; }
}

/* Reader acceptance pass: keep the first viewport task-led and progressively disclose evidence detail. */
.ch-navigation { display: flex; align-items: stretch; gap: 12px; border-bottom: 1px solid var(--ch-border); margin-bottom: 18px; }
.ch-navigation .ch-tabs { flex: 1 1 auto; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; border: 0; }
.ch-navigation .ch-tabs a { font-weight: 600; }
.ch-more-nav { position: relative; flex: 0 0 auto; }
.ch-more-nav summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--text-secondary); font-size: 12px; font-weight: 600; list-style: none; }
.ch-more-nav summary::-webkit-details-marker { display: none; }
.ch-more-nav summary .ch-icon { width: 16px; height: 16px; transition: transform .15s ease; }
.ch-more-nav[open] summary .ch-icon { transform: rotate(180deg); }
.ch-more-nav > div { position: absolute; right: 0; top: 44px; z-index: 5; display: grid; min-width: 210px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-card); box-shadow: 0 8px 24px var(--shadow-color); }
.ch-more-nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; color: var(--text-primary); font-size: 12px; text-decoration: none; }
.ch-more-nav a:hover, .ch-more-nav a[aria-current] { background: var(--bg-hover); }
.ch-global-search { padding: 0 0 18px; margin-bottom: 26px; border: 0; border-bottom: 1px solid var(--ch-border); background: transparent; }
.ch-overview { grid-template-columns: minmax(0, 1fr) minmax(210px, 240px); gap: 24px; }
.ch-overview-copy { max-width: 72ch; }
.ch-overview-copy > p:first-of-type { color: var(--text-primary); font-size: 15px; line-height: 1.6; }
.ch-narrative-more { margin-top: 12px; }
.ch-narrative-more summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ch-link); cursor: pointer; font-size: 13px; font-weight: 700; }
.ch-narrative-more summary::before { content: '+'; margin-right: 7px; font-size: 17px; font-weight: 400; }
.ch-narrative-more[open] summary::before { content: '-'; }
.ch-task-section { padding-top: 2px; }
.ch-section-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 12px; font-weight: 700; }
.ch-task-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ch-task-shortcut { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--ch-border); border-radius: 6px; background: var(--ch-surface); color: var(--text-primary) !important; text-decoration: none; }
.ch-task-shortcut:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.ch-task-icon { width: 32px; height: 32px; padding: 6px; border-radius: 5px; background: var(--ch-surface-muted); color: var(--ch-link); }
.ch-task-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ch-task-copy strong { font-size: 13px; line-height: 1.35; }
.ch-task-copy > span { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.ch-task-copy small { color: var(--ch-subtle); font-size: 11px; }
.ch-task-shortcut .ch-chevron { transform: rotate(-90deg); align-self: center; color: var(--ch-link); }
.ch-rail { position: sticky; top: 24px; padding-left: 20px; border-left: 1px solid var(--ch-border); }
.ch-rail h2 { font-size: 15px; }
.ch-authority-map { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.ch-authority-map h2 { font-size: 15px; margin-bottom: 4px; }
.ch-authority-map ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; list-style: none; padding: 0; }
.ch-authority-map li + li { margin-top: 0; }
.ch-authority-map .ch-evidence-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; }
.ch-authority-map p { font-size: 12px; }
.ch-authority-map summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ch-link); font-size: 12px; font-weight: 600; }
.ch-rail-sources { list-style: none; padding: 0; margin: 0; }
.ch-rail-sources li { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--ch-border); }
.ch-rail-sources li:first-child { border-top: 0; padding-top: 0; }
.ch-rail-source-title .ch-evidence-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--text-primary); font-weight: 600; line-height: 1.4; }
.ch-rail-sources .ch-muted { display: block; font-size: 11px; }
.ch-rail-gap { display: grid; gap: 4px; padding: 10px 12px; margin: 12px 0 0; border-left: 3px solid var(--ch-review-border); background: var(--ch-review); font-size: 12px; line-height: 1.45; }
.ch-rail-gap span { color: var(--text-secondary); }
.ch-source { padding: 14px 0; }
.ch-source-title { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.ch-source-title h3 { min-width: 0; margin-bottom: 0; }
.ch-source-title h3 .ch-evidence-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--text-primary); }
.ch-source-icon { color: var(--ch-link); margin-top: 1px; }
.ch-source-meta { margin: 4px 0 6px !important; color: var(--ch-subtle); font-size: 12px !important; }
.ch-source-detail summary, .ch-evidence-diagnostics summary { min-height: 44px; display: flex; align-items: center; color: var(--ch-link); cursor: pointer; font-size: 12px; font-weight: 700; }
.ch-evidence-lead { padding: 14px 16px 8px; border-left: 3px solid var(--ch-link); background: var(--bg-primary); }
.ch-evidence-lead + section { padding-top: 18px; }
.ch-evidence-summary-copy { color: var(--text-primary); font-weight: 600; }
.ch-evidence-diagnostics { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--ch-border); }
.ch-scenario-suggestion { padding: 14px 16px; margin-bottom: 20px; border-left: 3px solid var(--ch-link); background: var(--ch-surface-muted); }
.ch-scenario-suggestion h3 { margin-bottom: 5px; }
.ch-scenario-suggestion p { font-size: 13px; }

@media (max-width: 1220px) and (min-width: 1025px), (max-width: 800px) {
  .ch-reader { grid-template-columns: minmax(0, 1fr); }
  .ch-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--ch-border); }
  .ch-rail section { margin: 0; }
  .ch-rail-actions { grid-column: 1 / -1; display: flex !important; }
  .ch-task-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ch-navigation { display: none; }
  .ch-topic-jump { display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 10px 0; color: var(--text-secondary); font-size: 12px; font-weight: 600; }
  .ch-topic-jump select { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 10px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 16px; font-weight: 400; }
}
@media (max-width: 600px) {
  .ch-overview { grid-template-columns: minmax(0, 1fr); }
  .ch-country-hero { min-height: 176px; height: 176px; }
  .ch-country-hero-content { padding: 16px; align-items: flex-end; }
  .ch-country-hero .ch-head-row { min-height: 0; gap: 6px; }
  .ch-country-hero .ch-head-row { flex-direction: column; }
  .ch-country-hero .ch-hero-actions { width: 100%; }
  .ch-country-hero .ch-hero-actions .ch-button { flex: 1 1 140px; }
  .ch-country-hero h1 { font-size: 24px; }
  .ch-overview-copy > p:first-of-type { font-size: 16px; }
  .ch-public-assurance-warning { margin: 10px 0; padding: 10px 14px; }
  .ch-public-assurance-warning h2 { font-size: 17px; }
  .ch-task-shortcuts { grid-template-columns: minmax(0, 1fr); }
  .ch-head-row > .ch-actions { width: 100%; }
  .ch-head-row > .ch-actions .ch-button { flex: 1 1 150px; }
  .ch-source-head { flex-wrap: wrap; }
  .ch-source-head .ch-badge { margin-left: 29px; }
  .ch-rail { grid-template-columns: minmax(0, 1fr); }
  .ch-rail-actions { display: grid !important; }
}

/* Country reader visual system: country-led, task-first and evidence-dense. */
.country-handbook-page .operational-main { max-width: 1600px; padding-top: 18px; }
/* The portal shell's fixed 48px .topbar (src/routes/templates/sidebar/styles.js)
   sits over .operational-main, and the base 80px padding-top it needs is what
   the public-page override above drops to 18px. Restore it for /app/* only. */
body.operational-page.country-handbook-page .operational-main { padding-top: 64px; }
.ch-breadcrumb { margin-bottom: 8px; color: var(--text-tertiary); }
.ch-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.ch-page-head { padding-bottom: 0; }
.ch-country-hero {
  min-height: 260px;
  height: auto;
  aspect-ratio: 3 / 1;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
  box-shadow: 0 12px 28px rgb(8 20 34 / 14%);
}
.ch-country-hero-image { object-position: center; }
.ch-country-hero-scrim { background: linear-gradient(90deg, rgb(6 20 39 / 88%) 0%, rgb(6 20 39 / 66%) 48%, rgb(6 20 39 / 18%) 100%); }
.ch-country-hero-content { flex-direction: column; justify-content: space-between; align-items: stretch; padding: 26px 28px 22px; }
.ch-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.ch-country-hero .ch-hero-identity { align-items: flex-start; }
.ch-country-hero .ch-hero-identity > .ch-flag { width: 56px; height: 42px; flex-basis: 56px; margin-top: 4px; }
.ch-country-hero h1 { margin: 0 0 6px; font-size: clamp(32px, 3vw, 48px); line-height: 1.05; letter-spacing: 0; }
.ch-country-hero .ch-kicker { margin-bottom: 8px; color: #f7c84b !important; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.ch-country-hero .ch-selection-line { max-width: 66ch; font-size: 14px; line-height: 1.5; }
.ch-hero-actions { justify-content: flex-end; flex: 0 0 auto; }
.ch-country-hero .ch-button { border-color: rgb(255 255 255 / 55%); background: rgb(255 255 255 / 94%); box-shadow: 0 4px 14px rgb(0 0 0 / 12%); }
.country-handbook-page .ch-country-hero .ch-button { color: #10213b !important; }
.ch-hero-facts { display: flex; align-items: stretch; width: fit-content; max-width: 100%; margin: 0; border: 1px solid rgb(255 255 255 / 24%); border-radius: 6px; background: rgb(3 16 31 / 54%); backdrop-filter: blur(8px); }
.ch-hero-facts > div { min-width: 132px; padding: 10px 14px; border-left: 1px solid rgb(255 255 255 / 20%); }
.ch-hero-facts > div:first-child { border-left: 0; }
.ch-hero-facts dt { color: rgb(255 255 255 / 68%); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.ch-hero-facts dd { margin: 3px 0 0; color: #fff; font-size: 14px; font-weight: 700; }

.ch-selection { grid-template-columns: 150px minmax(0, 1fr); align-items: end; gap: 16px; padding: 14px 16px 15px; margin-top: 12px; margin-bottom: 12px; border-color: var(--border-strong); box-shadow: 0 4px 14px var(--shadow-color); }
.ch-selection-heading { display: block; align-self: center; }
.ch-selection-heading .ch-kicker { margin-bottom: 3px; }
.ch-selection-heading h2 { font-size: 15px; line-height: 1.25; }
.ch-filter-form { gap: 9px; }
.ch-field { gap: 5px; }
.ch-field :is(input, select, textarea) { border-radius: 6px; }
.ch-navigation { margin-bottom: 10px; }
.ch-navigation .ch-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ch-navigation .ch-tabs::-webkit-scrollbar { display: none; }
.ch-global-search { align-items: center; min-height: 54px; padding: 0 0 10px; margin-bottom: 20px; }
.ch-global-search:not(.ch-search-view) .ch-field-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ch-global-search:not(.ch-search-view) .ch-field { gap: 0; }
.ch-global-search .ch-search-input > .ch-icon { width: 18px; height: 18px; }
.ch-global-search .ch-field input { min-height: 44px; background: var(--bg-secondary); }
.ch-global-search .ch-button { min-height: 44px; }

.ch-reader { grid-template-columns: minmax(0, 1fr) 284px; gap: 28px; }
.ch-reader-full { grid-template-columns: minmax(0, 1fr); }
.ch-section { padding-bottom: 28px; margin-bottom: 28px; }
.ch-overview { padding: 24px; border: 1px solid var(--ch-border); border-radius: 7px; background: var(--ch-surface); box-shadow: 0 7px 22px var(--shadow-color); }
.ch-overview-copy .ch-kicker, .ch-topic-header .ch-kicker { text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.ch-overview-copy h2 { margin: 0 0 14px; font-size: 25px; }
.ch-overview-copy > p:first-of-type { font-size: 16px; line-height: 1.7; }
.ch-takeaways { border: 1px solid color-mix(in srgb, var(--status-positive) 28%, var(--ch-border)); border-left: 3px solid var(--status-positive); border-radius: 6px; background: color-mix(in srgb, var(--status-positive) 8%, var(--ch-surface)); }
.ch-takeaways h3 { font-size: 14px; }
.ch-takeaways ul { padding-left: 18px; }
.ch-task-shortcuts { gap: 12px; }
.ch-task-shortcut { min-height: 122px; padding: 16px; border-radius: 7px; box-shadow: 0 3px 12px var(--shadow-color); }
.ch-task-icon { width: 40px; height: 40px; padding: 9px; }

.ch-rail { padding-left: 0; border-left: 0; }
.ch-rail > section, .ch-rail > .ch-actions { padding: 17px; margin-bottom: 14px; border: 1px solid var(--ch-border); border-radius: 7px; background: var(--ch-surface); box-shadow: 0 4px 14px var(--shadow-color); }
.ch-rail > section { padding-bottom: 17px; }
.ch-rail-selection { border-top: 3px solid var(--ch-link) !important; }
.ch-rail section:last-of-type { margin-bottom: 14px; }
.ch-rail .ch-facts { gap: 10px; margin-bottom: 0; }
.ch-authority-map { padding-bottom: 17px; }
.ch-authority-map ul { gap: 4px; margin: 0; }
.ch-authority-map li { padding: 0; }
.ch-authority-map p { margin-top: -3px; }
.ch-authority-link { width: 100%; gap: 9px; color: var(--text-primary); text-decoration: none; }
.ch-authority-link:hover { color: var(--ch-link); text-decoration: none; }
.ch-authority-icon { width: 32px; height: 32px; padding: 7px; border-radius: 6px; background: color-mix(in srgb, var(--ch-link) 10%, var(--ch-surface)); color: var(--ch-link); }
.ch-authority-map li > p { margin-left: 41px; }
.ch-rail-actions { padding: 12px !important; }
.ch-rail-mapping { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; }
.ch-rail-feature-icon { width: 38px; height: 38px; padding: 9px; border-radius: 7px; background: color-mix(in srgb, var(--ch-link) 10%, var(--ch-surface)); color: var(--ch-link); }
.ch-rail-mapping .ch-kicker { margin-bottom: 2px; }
.ch-rail-mapping h2 { margin-bottom: 5px; }
.ch-rail-mapping p { margin-bottom: 5px; font-size: 12px; }

.ch-mapping-preview { padding: 20px; border: 1px solid var(--ch-border); border-radius: 7px; background: var(--ch-surface); box-shadow: 0 4px 14px var(--shadow-color); }
.ch-mapping-preview .ch-section-head { align-items: flex-start; }
.ch-mapping-preview .ch-section-head p { max-width: 66ch; margin: 0; color: var(--text-secondary); font-size: 13px; }
.ch-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--ch-border); border-radius: 6px; }
.ch-table-wrap .ch-table :is(th, td) { border-color: var(--ch-border); }
.ch-table-wrap .ch-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.ch-retained-overview { max-width: 76ch; padding: 20px; border: 1px solid var(--ch-border); border-left: 4px solid var(--ch-review-border); border-radius: 7px; background: var(--ch-surface); box-shadow: 0 4px 14px var(--shadow-color); }
.ch-retained-overview > h2 { margin-bottom: 12px; }
.ch-retained-overview > p { max-width: 72ch; }

.ch-topic-header { max-width: 76ch; margin-bottom: 18px; }
.ch-topic-header h2 { margin: 2px 0 7px; font-size: 28px; }
.ch-topic-header p { margin: 0; font-size: 15px; line-height: 1.55; }
.ch-coverage-matrix { display: grid; gap: 12px; }
.ch-coverage-domain { border: 1px solid var(--ch-border); border-radius: 7px; background: var(--ch-surface); box-shadow: 0 3px 12px var(--shadow-color); overflow: hidden; }
.ch-coverage-domain > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--ch-border); background: var(--ch-surface-muted); }
.ch-coverage-domain > header h3 { margin: 0; font-size: 16px; }
.ch-coverage-domain > header p { margin: 3px 0 0; color: var(--text-tertiary); font-size: 12px; }
.ch-coverage-domain > header > .ch-badge { flex: 0 0 auto; }
.ch-coverage-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.ch-coverage-dimensions > div { min-width: 0; padding: 14px 18px; border-bottom: 1px solid var(--ch-border); }
.ch-coverage-dimensions > div:nth-child(odd) { border-right: 1px solid var(--ch-border); }
.ch-coverage-dimensions > div:last-child { border-bottom: 0; }
.ch-coverage-dimensions dt { margin-bottom: 7px; color: var(--text-secondary); font-size: 11px; font-weight: 700; }
.ch-coverage-dimensions dd { margin: 0; }
.ch-coverage-dimensions dd p { margin: 7px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.ch-requirement-list { display: grid; gap: 10px; }
.ch-requirement { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--ch-border); border-radius: 7px; background: var(--ch-surface); box-shadow: 0 3px 12px var(--shadow-color); }
.ch-requirement:last-child { border-bottom: 1px solid var(--ch-border); }
.ch-requirement:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.ch-requirement-icon { width: 42px; height: 42px; padding: 10px; border-radius: 7px; background: color-mix(in srgb, var(--ch-link) 10%, var(--ch-surface)); color: var(--ch-link); }
.ch-requirement-copy { min-width: 0; }
.ch-requirement-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.ch-requirement h3 { margin: 0; font-size: 15px; }
.ch-requirement h3 .ch-requirement-link { min-height: 36px; padding: 4px 0; color: var(--text-primary); font-weight: 700; text-decoration: none; }
.ch-requirement h3 .ch-requirement-link:hover { color: var(--ch-link); }
.ch-requirement p { margin: 3px 0 0; font-size: 13px; line-height: 1.55; }
.ch-requirement .ch-requirement-provision { color: var(--text-tertiary); font-size: 11px; }
.ch-requirement-open { align-self: center; color: var(--ch-link); font-size: 18px; }
.ch-retained-item { border-left: 3px solid var(--ch-review-border); padding-left: 14px; }

.ch-modal { width: min(940px, calc(100vw - 48px)); border-radius: 10px; }
.ch-modal-bar { min-height: 64px; padding: 10px 20px; }
.ch-modal-bar h2 { font-size: 13px; text-transform: uppercase; color: var(--text-tertiary); letter-spacing: .05em; }
.ch-modal-content { padding: 28px 34px 36px; }
.ch-modal-content > header { padding: 2px 0 18px; border-bottom: 1px solid var(--ch-border); }
.ch-modal-content > header h2 { max-width: 28ch; margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.ch-modal-content > section { padding: 20px 0; }
.ch-modal-content > section h3 { margin-bottom: 10px; font-size: 15px; }
.ch-evidence-lead { margin-top: 20px; padding: 18px 20px !important; border: 1px solid color-mix(in srgb, var(--ch-link) 24%, var(--ch-border)); border-left: 4px solid var(--ch-link); border-radius: 6px; background: color-mix(in srgb, var(--ch-link) 6%, var(--ch-surface)); }
.ch-evidence-summary-copy { font-size: 16px; line-height: 1.6; }
.ch-evidence-explanation > p { max-width: 76ch; font-size: 14px; line-height: 1.72; }
.ch-modal-content .ch-source { padding: 14px 16px; margin-top: 10px; border: 1px solid var(--ch-border); border-radius: 6px; background: var(--ch-surface-muted); }
.ch-modal-content .ch-facts { padding: 2px 0; }
.ch-modal-footer { min-height: 68px; padding: 11px 20px; }

@media (max-width: 1100px) {
  .ch-country-hero { min-height: 250px; }
  .ch-selection { grid-template-columns: minmax(0, 1fr); }
  .ch-selection-heading { display: flex; }
  .ch-reader { grid-template-columns: minmax(0, 1fr); }
  .ch-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 22px; border-top: 1px solid var(--ch-border); }
  .ch-rail > section, .ch-rail > .ch-actions { margin-bottom: 0; }
  .ch-navigation { display: none; }
  .ch-topic-jump { display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 8px 0 12px; color: var(--text-secondary); font-size: 12px; font-weight: 600; }
  .ch-topic-jump select { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 10px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 16px; font-weight: 400; }
}

@media (max-width: 800px) {
  .ch-country-hero { min-height: 250px; aspect-ratio: 3 / 1.35; }
  .ch-country-hero-content { padding: 20px; }
  .ch-hero-facts > div { min-width: 112px; }
  .ch-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-filter-form .ch-button { grid-column: 1 / -1; }
  .ch-global-search { margin-top: 2px; }
}

@media (max-width: 600px) {
  body.country-handbook-page .operational-main { padding: 12px 16px 28px; }
  .ch-breadcrumb { margin-bottom: 6px; }
  .ch-country-hero { min-height: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; }
  .ch-country-hero-scrim { background: linear-gradient(180deg, rgb(5 18 34 / 50%) 0%, rgb(5 18 34 / 40%) 38%, rgb(5 18 34 / 92%) 100%); }
  .ch-country-hero-content { justify-content: flex-end; gap: 14px; padding: 18px; }
  .ch-hero-top { display: contents; }
  .ch-country-hero .ch-hero-identity > .ch-flag { width: 44px; height: 33px; flex-basis: 44px; }
  .ch-country-hero h1 { font-size: 29px; }
  .ch-country-hero .ch-kicker { margin-bottom: 5px; font-size: 9px; }
  .ch-country-hero .ch-selection-line { font-size: 12px; }
  .ch-hero-actions { order: 3; width: 100%; justify-content: stretch; }
  .ch-hero-actions .ch-button { flex: 1 1 120px; }
  .ch-hero-facts { display: none; }
  .ch-coverage-dimensions { grid-template-columns: minmax(0, 1fr); }
  .ch-coverage-dimensions > div, .ch-coverage-dimensions > div:nth-child(odd) { border-right: 0; }
  .ch-coverage-dimensions > div:last-child { border-bottom: 0; }
  .ch-selection { padding: 14px; margin-top: 10px; box-shadow: none; }
  .ch-selection-heading { display: block; }
  .ch-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-filter-form .ch-field:nth-of-type(-n + 3) { grid-column: 1 / -1; }
  .ch-filter-form .ch-button { grid-column: 1 / -1; }
  .ch-register-filters { grid-template-columns: minmax(0, 1fr); }
  .ch-register-instruments { display: none; }
  .ch-register-instruments-mobile { display: block; margin-bottom: 14px; }
  .ch-register-row-summary { white-space: normal; flex-basis: 100%; order: 3; }
  /* A long official instrument title (e.g. LU's consolidated-law citations) must
     wrap on mobile - base .ch-register-row-ref is nowrap for the desktop single
     line, which overflows the viewport instead of wrapping when it goes full-width. */
  .ch-register-row-ref { flex-basis: 100%; white-space: normal; overflow-wrap: break-word; }
  .ch-global-search { flex-wrap: nowrap; gap: 8px; min-height: 52px; }
  .ch-global-search .ch-search-input { flex-basis: auto; }
  .ch-global-search .ch-search-input > .ch-icon { display: none; }
  .ch-global-search .ch-button { width: 44px; flex-basis: 44px; padding: 0; overflow: hidden; color: transparent !important; gap: 0; }
  .ch-global-search .ch-button .ch-icon { color: var(--bg-primary); }
  .ch-overview { padding: 18px; box-shadow: none; }
  .ch-overview-copy h2 { font-size: 22px; }
  .ch-overview-copy > p:first-of-type { font-size: 15px; }
  .ch-task-shortcut { min-height: 0; box-shadow: none; }
  .ch-requirement { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; box-shadow: none; }
  .ch-requirement-icon { width: 36px; height: 36px; padding: 8px; }
  .ch-requirement-open { display: none; }
  .ch-rail { grid-template-columns: minmax(0, 1fr); }
  .ch-modal { width: 100vw; }
  .ch-modal-content { padding: 20px 16px 28px; }
  .ch-modal-content > header h2 { font-size: 24px; }
  .ch-evidence-lead { padding: 16px !important; }
}
