/* Country register redesign: header, breadcrumb, tabs, dashboard, journey,
   obligations table + drawer, sources. Uses the public brand tokens
   (--rc-navy / --rc-gold / --rc-cream) and the country reader tokens
   (--bg-card, --text-primary, ...), so the reader's dark theme applies. */

.rg-page, .rg-breadcrumb {
  --rg-navy: var(--rc-navy, #011530);
  --rg-navy-2: #0d2648;
  --rg-gold: var(--rc-gold, #e8b52b);
  --rg-gold-ink: #8a6410;
  --rg-surface: var(--bg-card, #fff);
  --rg-wash: var(--bg-hover, #f6f2e8);
  --rg-ink: var(--text-primary, #011530);
  --rg-muted: var(--text-secondary, #334155);
  --rg-faint: var(--text-tertiary, #5b6675);
  --rg-line: var(--border-color, #e6ddc7);
  --rg-line-strong: var(--border-strong, #cfc4a4);
  --rg-green: #1b7a4b; --rg-green-bg: #e4f4ea;
  --rg-amber: #8a5a00; --rg-amber-bg: #fdf1d3;
  --rg-red: #a3262b; --rg-red-bg: #fbe6e6;
  --rg-blue: #1d4f91; --rg-blue-bg: #e6eefa;
  --rg-grey: #556070; --rg-grey-bg: #eceff3;
  --rg-radius: 10px;
  --rg-shadow: 0 1px 2px rgba(1, 21, 48, .06), 0 6px 18px rgba(1, 21, 48, .05);
}
html[data-theme="dark"] .rg-page, html[data-theme="dark"] .rg-breadcrumb {
  --rg-gold-ink: #f0c654;
  --rg-green: #6fd9a2; --rg-green-bg: #163226;
  --rg-amber: #f2c25b; --rg-amber-bg: #3a2c0d;
  --rg-red: #ff9a9d; --rg-red-bg: #3d1a1c;
  --rg-blue: #9cc3ff; --rg-blue-bg: #14263f;
  --rg-grey: #c2cbd6; --rg-grey-bg: #2a3238;
  --rg-shadow: none;
}

.pub-country-page .operational-main:has([data-rg-page]) { width: min(1360px, 100%); padding: 20px 24px 56px; }
.rg-page { color: var(--rg-ink); min-width: 0; }
.rg-page *, .rg-page *::before, .rg-page *::after { box-sizing: border-box; }
.rg-page :is(h1, h2, h3) { letter-spacing: 0; }
.rg-page :is(p, dl, ul, ol) { margin-top: 0; }

/* ---------------------------------------------------------- breadcrumb */
.rg-breadcrumb { margin: 0 0 12px; font-size: 13px; }
.rg-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.rg-breadcrumb li { display: inline-flex; align-items: center; margin: 0 !important; }
.rg-breadcrumb li + li::before { content: "\203A"; margin: 0 8px; color: var(--rg-faint); }
.rg-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ch-link, var(--rg-gold-ink)); text-decoration: none; }
.rg-breadcrumb a:hover { text-decoration: underline; }
.rg-breadcrumb [aria-current="page"] { color: var(--rg-ink); font-weight: 600; }

/* ---------------------------------------------------------- hero */
.rg-hero { position: relative; overflow: visible; border-radius: var(--rg-radius); background: linear-gradient(135deg, var(--rg-navy) 0%, var(--rg-navy-2) 100%); color: #fff; box-shadow: var(--rg-shadow); isolation: isolate; }
.rg-hero-picture { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: var(--rg-radius); }
.rg-hero-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--rg-navy) 0%, rgba(1, 21, 48, .93) 34%, rgba(1, 21, 48, .35) 70%, rgba(1, 21, 48, .12) 100%); }
.rg-hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
/* Let the nested grid and search tools shrink inside the flex-based header. */
.rg-hero-inner { padding: 22px 28px 20px; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 14px; }
.rg-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rg-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rg-flag { display: block; flex: 0 0 auto; width: 72px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
.rg-flag .ch-flag { width: 72px; height: 54px; flex-basis: auto; object-fit: contain; }
.rg-flag .ch-flag-svg svg, .rg-flag svg { display: block; width: 72px; height: auto; }
.rg-flag .ch-country-symbol { width: 54px; height: 54px; color: #fff; }
.rg-identity-text { min-width: 0; text-align: left; }
.country-handbook-page .rg-page .rg-identity-text :is(h1, p) { text-align: left; }
.rg-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.country-handbook-page .rg-page h1 { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 800; }
.rg-kicker { margin: 4px 0 0; color: #f6d36f; font-size: 18px; font-weight: 700; line-height: 1.3; }
.country-handbook-page .rg-page .rg-desc { max-width: 70ch; margin: 0; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rg-hero-tools { display: flex; align-items: center; gap: 10px; flex: 1 1 420px; min-width: 0; justify-content: flex-end; max-width: 560px; }
.rg-header-search { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; background: #fff; border-radius: 8px; padding: 4px 4px 4px 12px; gap: 8px; }
.rg-header-search input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; color: #011530; font: inherit; font-size: 14px; }
.rg-header-search input::placeholder { color: #566275; }
.rg-header-search:focus-within { outline: 2px solid var(--rg-gold); outline-offset: 2px; }
.rg-search-icon { color: #566275; }
.rg-header-search .rg-btn { min-height: 44px; flex: 0 0 auto; white-space: nowrap; }
.rg-hero .ch-reader-theme-button { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff !important; }
.rg-meta { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.rg-meta > div { padding: 0 24px 0 0; margin-right: 24px; border-right: 1px solid rgba(255, 255, 255, .16); }
.rg-meta > div:last-child { border-right: 0; margin-right: 0; }
.rg-meta dt { font-size: 12px; color: rgba(255, 255, 255, .72); margin: 0; }
.rg-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: #fff; }

/* ---------------------------------------------------------- switcher */
.rg-switcher { position: relative; }
.rg-switcher > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.rg-switcher > summary::-webkit-details-marker { display: none; }
.rg-switcher > summary:hover { background: rgba(255, 255, 255, .2); }
.rg-switcher[open] > summary { background: #fff; color: var(--rg-navy); }
.rg-chevron { display: inline-flex; width: 16px; height: 16px; transition: transform .15s; }
.rg-chevron svg { width: 100%; height: 100%; }
.rg-switcher[open] .rg-chevron { transform: rotate(180deg); }
.rg-switcher-panel { position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); width: min(740px, calc(100vw - 48px)); max-height: min(70vh, 460px); overflow-y: auto; column-width: 170px; column-gap: 24px; padding: 16px 20px 6px; background: var(--rg-surface); color: var(--rg-ink); border: 1px solid var(--rg-line-strong); border-radius: var(--rg-radius); box-shadow: 0 12px 36px rgba(1, 21, 48, .28); }
.rg-switcher-group { break-inside: avoid; margin: 0 0 14px; }
.country-handbook-page .rg-switcher-group h2 { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-faint); }
.rg-page .rg-switcher-group ul { list-style: none; margin: 0; padding: 0; }
.rg-switcher-group li { margin: 0 !important; }
.rg-switcher-group a { display: flex; align-items: center; min-height: 36px; padding: 2px 8px; margin: 0 -8px; border-radius: 6px; color: var(--rg-ink); font-size: 14px; text-decoration: none; }
.rg-switcher-group a:hover { background: var(--rg-wash); }
.rg-switcher-group a[aria-current] { font-weight: 700; background: var(--rg-amber-bg); }

/* ---------------------------------------------------------- KPI strip */
.rg-page .rg-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.rg-kpi { margin: 0 !important; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); min-width: 0; }
.rg-kpi-head { display: flex; align-items: center; gap: 10px; }
.country-handbook-page .rg-page .rg-kpi-head h2 { margin: 0; font-size: 14px; line-height: 1.25; font-weight: 700; }
.rg-kpi-icon { display: inline-flex; width: 32px; height: 32px; padding: 6px; border-radius: 8px; flex: 0 0 auto; }
.rg-kpi-icon svg { width: 100%; height: 100%; }
.rg-tone-blue { background: var(--rg-blue-bg); color: var(--rg-blue); }
.rg-tone-green { background: var(--rg-green-bg); color: var(--rg-green); }
.rg-tone-amber { background: var(--rg-amber-bg); color: var(--rg-amber); }
.rg-tone-red { background: var(--rg-red-bg); color: var(--rg-red); }
.rg-tone-navy { background: var(--rg-grey-bg); color: var(--rg-ink); }
.rg-kpi-body { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.rg-kpi-value { margin: 0 !important; font-size: 30px; line-height: 1; font-weight: 800; color: var(--rg-ink); }
.country-handbook-page .rg-page .rg-kpi-sub { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--rg-muted); }
.rg-ring { width: 64px; height: 64px; flex: 0 0 64px; }
.rg-ring-bg { fill: none; stroke: var(--rg-grey-bg); stroke-width: 4; }
.rg-ring-fg { fill: none; stroke-width: 4; stroke-linecap: round; }
.rg-ring text { font-size: 8.5px; font-weight: 800; fill: var(--rg-ink); }
.rg-ring-blue .rg-ring-fg { stroke: var(--rg-blue); }
.rg-ring-green .rg-ring-fg { stroke: var(--rg-green); }
.rg-ring-amber .rg-ring-fg { stroke: #d99a14; }
.rg-ring-red .rg-ring-fg { stroke: var(--rg-red); }
.rg-kpi-link { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ch-link, var(--rg-gold-ink)); text-decoration: none; min-height: 24px; }
.rg-kpi-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------- tabs */
.rg-tabs { display: flex; gap: 2px; overflow-x: auto; margin: 18px 0 18px; border-bottom: 1px solid var(--rg-line-strong); scrollbar-width: thin; }
.rg-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--rg-muted); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rg-tabs a .ch-icon { width: 18px; height: 18px; }
.rg-tabs a:hover { color: var(--rg-ink); background: var(--rg-wash); }
.rg-tabs a[aria-current] { color: var(--rg-ink); border-bottom-color: var(--rg-gold); font-weight: 800; }
.rg-tabs a[aria-current] .ch-icon { color: var(--rg-gold-ink); }

.rg-held { margin: 14px 0 0; }
.rg-firm-summary { margin: 0 0 18px; padding: 14px 16px; background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); }

/* ---------------------------------------------------------- shared card/grid */
.rg-panel { min-width: 0; }
.rg-grid { display: grid; gap: 16px; align-items: start; }
.rg-grid-3 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .9fr); }
.rg-card { background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); padding: 18px 20px; box-shadow: var(--rg-shadow); min-width: 0; }
.rg-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.country-handbook-page .rg-page .rg-card h2, .country-handbook-page .rg-page .rg-section-head h2, .country-handbook-page .rg-page .rg-panel-intro h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.rg-card-head h2 { margin: 0 !important; }
.rg-card-head a { font-size: 13px; font-weight: 600; text-decoration: none; }
.rg-card-head a:hover { text-decoration: underline; }
.country-handbook-page .rg-page .rg-card-note { font-size: 13px; color: var(--rg-muted); line-height: 1.5; margin: 0 0 10px; }
.country-handbook-page .rg-page .rg-subhead { margin: 18px 0 8px; font-size: 14px; font-weight: 800; }
.country-handbook-page .rg-page .rg-note { margin: 10px 0; padding: 10px 12px; background: var(--rg-amber-bg); color: var(--rg-ink); border-radius: 8px; font-size: 13px; line-height: 1.5; }
.rg-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--rg-grey-bg); color: var(--rg-ink); font-size: 12px; font-weight: 700; vertical-align: middle; }
.rg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--rg-line-strong); border-radius: 8px; background: var(--rg-surface); color: var(--rg-ink) !important; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.rg-btn:hover { background: var(--rg-wash); }
.rg-btn-gold { background: var(--rg-gold); border-color: var(--rg-gold); color: #011530 !important; }
.rg-btn-gold:hover { background: #f2c544; }
.rg-btn-quiet { min-height: 40px; padding: 6px 12px; font-size: 13px; }
.rg-num { text-align: right; font-variant-numeric: tabular-nums; }

/* bar tables */
.rg-bars { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rg-bars th, .rg-bars td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--rg-line); vertical-align: middle; }
.rg-bars thead th { font-size: 11.5px; font-weight: 700; color: var(--rg-faint); text-transform: none; border-bottom-color: var(--rg-line-strong); }
.rg-bars tbody th { font-weight: 600; overflow-wrap: anywhere; }
.rg-card-customers .rg-bars tbody th { overflow-wrap: normal; word-break: normal; hyphens: none; }
.rg-bars tbody th a { color: var(--ch-link, var(--rg-gold-ink)); text-decoration: none; }
.rg-bars tbody th a:hover { text-decoration: underline; }
.rg-bars .rg-num { width: 84px; white-space: nowrap; }
.rg-bar-cell { width: 38%; }
.rg-bar { display: block; height: 10px; border-radius: 999px; background: var(--rg-grey-bg); overflow: hidden; }
.rg-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--rg-blue); }
.rg-bar-green > span { background: var(--rg-green); }
.rg-bar-text { display: block; margin-top: 3px; font-size: 11.5px; color: var(--rg-muted); }
.rg-source-bars .rg-bar-cell { width: 34%; }

/* donut */
.rg-donut-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 12px; }
.rg-donut { width: 170px; height: 170px; flex: 0 0 170px; }
.rg-donut-bg { fill: none; stroke: var(--rg-grey-bg); stroke-width: 5; }
.rg-seg { fill: none; stroke-width: 5; }
.rg-seg-green { stroke: var(--rg-green); } .rg-seg-blue { stroke: var(--rg-blue); } .rg-seg-grey { stroke: #8d98a6; } .rg-seg-amber { stroke: #d99a14; } .rg-seg-red { stroke: var(--rg-red); }
.rg-donut-total { font-size: 7px; font-weight: 800; fill: var(--rg-ink); }
.rg-donut-label { font-size: 2.8px; fill: var(--rg-muted); }
.rg-page .rg-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 160px; }
.rg-legend li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 8px; align-items: center; margin: 0 !important; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--rg-line); }
.rg-legend li:last-child { border-bottom: 0; }
.rg-legend-pct { color: var(--rg-faint); min-width: 38px; text-align: right; }
.rg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rg-dot-green { background: var(--rg-green); } .rg-dot-blue { background: var(--rg-blue); } .rg-dot-grey { background: #8d98a6; } .rg-dot-amber { background: #d99a14; } .rg-dot-red { background: var(--rg-red); }
.rg-gaps { margin-top: 12px; padding: 14px 16px; border-radius: 8px; background: var(--rg-amber-bg); }
.country-handbook-page .rg-page .rg-gaps h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.rg-gaps .ch-icon { width: 18px; height: 18px; color: var(--rg-amber); }
.country-handbook-page .rg-page .rg-gaps p { margin: 0 0 6px; font-size: 13px; }
.rg-gaps ul { margin: 0 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.rg-gaps a { font-size: 13px; font-weight: 700; }

/* ---------------------------------------------------------- journey */
.rg-stepper { margin: 0 0 18px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.rg-page .rg-stepper ol { display: flex; align-items: flex-start; gap: 0; margin: 0; padding: 0; list-style: none; min-width: max-content; width: 100%; }
.rg-step { flex: 1 1 0; min-width: 130px; position: relative; text-align: center; margin: 0 !important; }
.rg-step::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--rg-line-strong); z-index: 0; }
.rg-step:first-child::before { display: none; }
.rg-step a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 8px; color: var(--rg-ink); text-decoration: none; min-height: 44px; }
.rg-step-dot { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--rg-surface); border: 2px solid var(--rg-line-strong); font-weight: 800; font-size: 15px; }
.rg-step.is-current .rg-step-dot { background: var(--rg-navy); border-color: var(--rg-gold); color: #fff; box-shadow: 0 0 0 4px rgba(232, 181, 43, .3); }
.rg-step.is-current::before { background: var(--rg-gold); }
.rg-step-label { font-size: 14px; font-weight: 700; line-height: 1.25; }
.rg-step-count { font-size: 12.5px; color: var(--rg-muted); }
.rg-step.is-empty .rg-step-dot { border-style: dashed; color: var(--rg-faint); }
.rg-journey-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.rg-journey-rail { display: grid; gap: 16px; }
.rg-stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rg-stage-badge { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--rg-navy); color: #fff; border: 3px solid var(--rg-gold); font-weight: 800; font-size: 18px; }
.country-handbook-page .rg-page .rg-stage-head h2 { margin: 0; font-size: 24px; }
.rg-explain { padding: 14px 16px; background: var(--rg-wash); border-radius: 8px; border: 1px solid var(--rg-line); }
.country-handbook-page .rg-page .rg-explain h3 { margin: 0 0 4px; font-size: 14px; }
.country-handbook-page .rg-page .rg-explain p { margin: 0; font-size: 14px; color: var(--rg-muted); line-height: 1.55; max-width: 78ch; }
.rg-steps { display: grid; gap: 8px; }
.rg-step-group { border: 1px solid var(--rg-line); border-radius: 8px; background: var(--rg-surface); }
.rg-step-group > summary { display: grid; grid-template-columns: 34px 1fr auto 18px; gap: 12px; align-items: center; min-height: 52px; padding: 8px 14px; cursor: pointer; list-style: none; }
.rg-step-group > summary::-webkit-details-marker { display: none; }
.rg-step-no { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--rg-grey-bg); font-size: 13px; font-weight: 800; }
.rg-step-title { font-weight: 700; font-size: 15px; }
.rg-step-n { font-size: 13px; color: var(--rg-muted); }
.rg-step-group[open] > summary .rg-chevron { transform: rotate(180deg); }
.rg-page .rg-items { list-style: none; margin: 0 !important; padding: 0 14px 10px !important; }
.rg-items li { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 4px 14px; margin: 0 !important; padding: 8px 0; border-top: 1px solid var(--rg-line); font-size: 13.5px; }
.rg-items .rg-ref { font-weight: 700; }
.rg-item-sum { color: var(--rg-muted); }
.rg-step-group .rg-card-note { padding: 0 14px 10px; }
.rg-page .rg-rail-list { list-style: none; margin: 0 0 10px; padding: 0; }
.rg-rail-list li { margin: 0 !important; padding: 8px 0; border-bottom: 1px solid var(--rg-line); }
.rg-rail-title { display: block; font-weight: 700; font-size: 14px; }
.rg-rail-sub { display: block; font-size: 12.5px; color: var(--rg-muted); }

/* ---------------------------------------------------------- obligations */
.country-handbook-page .rg-page .rg-panel-intro p { max-width: 90ch; color: var(--rg-muted); font-size: 14px; }
.rg-filters.ch-filter-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; margin: 0 0 18px; background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); align-items: end; }
.rg-filters .ch-search { grid-column: 1 / -1; }
.rg-filters .ch-search input { min-height: 48px; font-size: 15px; }
.rg-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; grid-column: 1 / -1; }
.rg-clear { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; }
.rg-filters .ch-primary { background: var(--rg-gold) !important; border-color: var(--rg-gold) !important; color: #011530 !important; font-weight: 800; }
.rg-filters .ch-primary:hover { background: #f2c544 !important; }
.rg-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.country-handbook-page .rg-page .rg-section-head p { margin: 0; font-size: 13px; color: var(--rg-muted); }
.rg-instruments { margin: 0 0 20px; }
.rg-instruments .ch-register-instruments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.rg-inst { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); min-width: 0; }
.rg-inst.is-selected { border-color: var(--rg-gold); box-shadow: 0 0 0 2px var(--rg-gold); background: var(--rg-amber-bg); }
.rg-inst-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.country-handbook-page .rg-page .rg-inst h3 { margin: 0; font-size: 15px; font-weight: 800; }
.country-handbook-page .rg-page .rg-inst p { margin: 0; font-size: 13px; line-height: 1.4; }
.rg-inst .ch-register-instrument-title { font-weight: 700; font-size: 14px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rg-inst .ch-register-instrument-version { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-inst-counts { margin-top: auto !important; padding-top: 6px; }
.rg-inst-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.rg-more-instruments { margin-top: 4px; }
.rg-more-instruments > summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--ch-link, var(--rg-gold-ink)); }
.rg-more-instruments[open] > summary { margin-bottom: 8px; }
.ch-register-instruments-mobile { display: none; }

.rg-results-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; scroll-margin-top: 16px; }
.rg-results-bar .ch-result-count { margin: 0; font-weight: 700; }
.rg-exports { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-results { scroll-margin-top: 16px; }

.rg-table-wrap { overflow-x: auto; background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); }
.rg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rg-table th, .rg-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rg-line); }
.rg-table thead th { position: sticky; top: 0; background: var(--rg-wash); font-size: 12px; font-weight: 800; color: var(--rg-muted); white-space: nowrap; }
.rg-table tbody tr:last-child > * { border-bottom: 0; }
.rg-table .rg-row { cursor: pointer; }
.rg-table .rg-row:hover { background: var(--rg-wash); }
.rg-table .rg-row.is-active { background: var(--rg-amber-bg); box-shadow: inset 4px 0 0 var(--rg-gold); }
.rg-ref { font-weight: 700; min-width: 130px; max-width: 190px; overflow-wrap: anywhere; }
.rg-ref a { color: var(--ch-link, var(--rg-gold-ink)); text-decoration: underline; text-underline-offset: 3px; }
.rg-sum { min-width: 200px; line-height: 1.5; color: var(--rg-ink); }
.rg-table td .rg-chip { margin: 0 4px 4px 0; white-space: normal; }
.rg-table td[data-label="Theme"], .rg-table td[data-label="Applies to"] { min-width: 130px; max-width: 220px; }
.rg-table td[data-label="Status"], .rg-table td[data-label="Instrument"] { min-width: 120px; }
.rg-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 14px; background: var(--rg-grey-bg); color: var(--rg-ink); font-size: 12px; font-weight: 600; line-height: 1.3; }
.rg-chip-more { background: transparent; border: 1px solid var(--rg-line-strong); }
.rg-chip-warn, .rg-chip-amber, .rg-tone-amber-chip { background: var(--rg-amber-bg); color: var(--rg-amber); }
.rg-chip-green, .rg-tone-green-chip { background: var(--rg-green-bg); color: var(--rg-green); }
.rg-tone-blue-chip { background: var(--rg-blue-bg); color: var(--rg-blue); }
.rg-tone-red-chip { background: var(--rg-red-bg); color: var(--rg-red); }
.rg-tone-grey-chip { background: var(--rg-grey-bg); color: var(--rg-grey); }
.rg-chip-policy { background: var(--rg-blue-bg); color: var(--rg-blue); }
.rg-chip-policy[data-policy="excerpt"] { background: var(--rg-amber-bg); color: var(--rg-amber); }
.rg-chip-policy[data-policy="analysis_only"] { background: var(--rg-grey-bg); color: var(--rg-grey); }
.rg-table-compact th, .rg-table-compact td { padding: 10px 12px; font-size: 13.5px; }

.rg-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin: 14px 0 0; }
.country-handbook-page .rg-page .rg-range { margin: 0; font-size: 13px; color: var(--rg-muted); }
.rg-page .rg-pages { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rg-page-link, .rg-pages .rg-page { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid var(--rg-line-strong); border-radius: 8px; color: var(--rg-ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; background: var(--rg-surface); }
.rg-pages .rg-page.is-current { background: var(--rg-navy); border-color: var(--rg-navy); color: #fff !important; }
.rg-page-gap { padding: 0 4px; color: var(--rg-faint); }
.rg-pagesize label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rg-muted); }
.rg-pagesize select { min-height: 40px; border: 1px solid var(--rg-line-strong); border-radius: 8px; padding: 0 10px; background: var(--rg-surface); color: var(--rg-ink); }

/* provision detail store: the accessible, no-script view of every provision */
.rg-detail-store { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rg-line); }
.rg-js .rg-detail-store { display: none; }
.country-handbook-page .rg-page .rg-store-title { margin: 0 0 4px; font-size: 16px; }
.rg-store-note { margin: 0 0 12px !important; }
.rg-detail-store .ch-register-row:target { outline: 3px solid var(--rg-gold); outline-offset: 2px; }

/* ---------------------------------------------------------- drawer */
.rg-drawer-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(1, 21, 48, .38); }
.rg-drawer { position: fixed; z-index: 910; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--rg-surface); color: var(--rg-ink); border-left: 1px solid var(--rg-line-strong); box-shadow: -12px 0 40px rgba(1, 21, 48, .25); outline: 0; animation: rg-slide .18s ease-out; }
@keyframes rg-slide { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.rg-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px 12px; }
.rg-drawer-heading { min-width: 0; }
.country-handbook-page .rg-drawer .rg-drawer-instrument { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--rg-muted); }
.country-handbook-page .rg-drawer h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.country-handbook-page .rg-drawer .rg-drawer-chips { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.rg-drawer-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--rg-line-strong); border-radius: 8px; background: var(--rg-surface); color: var(--rg-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.rg-drawer-close:hover { background: var(--rg-wash); }
.rg-drawer-tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--rg-line-strong); }
.rg-drawer-tabs [role="tab"] { min-height: 46px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: transparent; color: var(--rg-muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rg-drawer-tabs [role="tab"][aria-selected="true"] { color: var(--rg-ink); border-bottom-color: var(--rg-gold); }
.rg-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px 24px; }
.rg-drawer-body [data-rg-dpanel]:focus-visible { outline-offset: 4px; }
.rg-drawer-body .ch-register-original { margin: 10px 0; }
.rg-drawer-body section { margin-bottom: 18px; }
.country-handbook-page .rg-drawer-body p { font-size: 14.5px; }
.country-handbook-page .rg-drawer-body h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.rg-quick { padding: 14px 16px; background: var(--rg-wash); border: 1px solid var(--rg-line); border-radius: 8px; }
.rg-qf { margin: 0; display: grid; gap: 0; }
.rg-qf > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rg-line); font-size: 13.5px; }
.rg-qf > div:last-child { border-bottom: 0; }
.rg-qf dt { color: var(--rg-muted); font-weight: 600; }
.rg-qf dd { margin: 0; overflow-wrap: anywhere; }
.rg-policy { padding: 10px 12px; background: var(--rg-blue-bg); color: var(--rg-ink); border-radius: 8px; font-size: 13px; line-height: 1.5; }
.rg-drawer-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--rg-line-strong); background: var(--rg-wash); }
.rg-drawer-foot .rg-btn[data-rg-d="official"] { background: var(--rg-gold); border-color: var(--rg-gold); color: #011530 !important; }
html.rg-drawer-open { overflow: hidden; }
.rg-drawer[hidden], .rg-drawer-backdrop[hidden] { display: none !important; }

/* detail rows in no-script store and in the drawer reuse the legacy markup */
.rg-page .ch-register-list { display: grid; gap: 8px; }
.rg-tabgroup { display: block; }

/* ---------------------------------------------------------- sources */
.rg-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.rg-source { padding: 16px 18px; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); background: var(--rg-surface); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rg-source > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.country-handbook-page .rg-page .rg-source h3 { margin: 0; font-size: 16px; font-weight: 800; }
.rg-source-title { margin: 0 !important; font-size: 14px; font-weight: 600; }
.rg-facts { margin: 0; display: grid; gap: 0; }
.rg-facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rg-line); font-size: 13px; }
.rg-facts dt { color: var(--rg-muted); font-weight: 600; }
.rg-facts dd { margin: 0; overflow-wrap: anywhere; }
.rg-source-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-source .rg-btn { align-self: flex-start; margin-top: auto; }

/* ---------------------------------------------------------- legacy bits inside new panels */
.rg-page .ch-register-scope { margin: 14px 0; padding: 14px 16px; background: var(--rg-wash); border: 1px solid var(--rg-line); border-radius: 8px; }
.rg-page .ch-register-topics { margin: 0 0 14px; gap: 6px; }
.rg-page .ch-register-topics a { min-height: 40px; padding: 6px 14px; border: 1px solid var(--rg-line-strong); border-radius: 999px; background: var(--rg-surface); font-size: 13px; font-weight: 600; text-decoration: none; }
.rg-page .ch-register-topics a:hover { background: var(--rg-amber-bg); border-color: var(--rg-gold); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .rg-page .rg-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rg-grid-3 { grid-template-columns: 1fr 1fr; }
  .rg-grid-3 > :last-child { grid-column: 1 / -1; }
  .rg-instruments .ch-register-instruments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-journey-layout { grid-template-columns: 1fr; }
  .rg-filters.ch-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pub-country-page .operational-main:has([data-rg-page]) { padding: 12px 16px 40px; }
  .rg-hero-inner { padding: 16px 16px 14px; }
  .rg-hero-art .rg-hero-picture::after { background: linear-gradient(180deg, rgba(1, 21, 48, .55) 0%, rgba(1, 21, 48, .92) 70%); }
  .rg-identity { gap: 12px; flex-wrap: nowrap; width: 100%; }
  .rg-flag, .rg-flag .ch-flag, .rg-flag svg, .rg-flag .ch-flag-svg svg { width: 54px; }
  .country-handbook-page .rg-page h1 { font-size: 28px; }
  .rg-kicker { font-size: 16px; }
  .rg-flag .ch-flag { height: 40px; }
  .rg-meta > div { padding-right: 14px; margin-right: 14px; }
  .rg-hero-tools { flex-basis: 100%; max-width: none; justify-content: stretch; }
  .rg-switcher-panel { position: fixed; left: 12px; right: 12px; top: 80px; width: auto; max-height: calc(100vh - 100px); column-width: auto; column-count: 1; }
  .rg-page .rg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rg-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rg-kpi { padding: 12px; }
  .rg-kpi-value { font-size: 26px; }
  .rg-ring { width: 52px; height: 52px; flex-basis: 52px; }
  .rg-kpi-body { gap: 10px; }
  .rg-grid-3 { grid-template-columns: 1fr; }
  .rg-card { padding: 14px; }
  .rg-donut { width: 140px; height: 140px; flex-basis: 140px; }
  .rg-sources { grid-template-columns: 1fr; }
  .rg-instruments .ch-register-instruments { display: none; }
  .ch-register-instruments-mobile { display: block; }
  .rg-more-instruments { display: none; }
  .rg-more-instruments.rg-more-instruments-mobile { display: block; }
  .rg-filters.ch-filter-form { grid-template-columns: 1fr; padding: 12px; }
  .rg-filter-actions { justify-content: space-between; }
  .rg-items li { grid-template-columns: 1fr; }
  .rg-facts > div, .rg-qf > div { grid-template-columns: 1fr; gap: 2px; }
  .rg-table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .rg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rg-table, .rg-table tbody, .rg-table tr, .rg-table th, .rg-table td { display: block; width: 100%; }
  .rg-table tr { margin: 0 0 10px; padding: 12px 14px; background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); }
  .rg-table th, .rg-table td { padding: 4px 0; border: 0 !important; }
  .rg-table td[data-label]::before { content: attr(data-label); display: block; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--rg-faint); }
  .rg-table .rg-ref, .rg-sum { min-width: 0; max-width: none; }
  .rg-pager { flex-direction: column; align-items: flex-start; }
  .rg-drawer { width: 100vw; border-left: 0; animation: none; }
  .rg-drawer-head, .rg-drawer-body, .rg-drawer-foot { padding-inline: 16px; }
  .rg-drawer-tabs { padding-inline: 12px; overflow-x: auto; }
  .rg-stepper ol { width: max-content; }
  .rg-step { min-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-drawer { animation: none; }
  .rg-chevron { transition: none; }
}
@media print {
  .rg-switcher, .rg-header-search, .rg-tabs, .rg-drawer, .rg-drawer-backdrop { display: none !important; }
}

.rg-pageof { margin-left: 10px; font-size: 13px; color: var(--rg-muted); white-space: nowrap; }
.rg-page .ch-pagination.rg-pages { display: flex; margin: 0; }

.ch-za-register-identity .rg-switcher > summary { color: var(--rg-ink, var(--text-primary)); border-color: var(--border-strong); background: var(--bg-card); }

/* ---------------------------------------------------------- country brief (AML radar) */
.crb-page .crb-header { display: block; position: relative; min-height: 270px; padding: 0; margin: 0 0 4px; border-radius: 10px; overflow: hidden; background: var(--rc-navy, #011530); }
.crb-page .crb-country-visual { position: absolute; inset: 0; }
.crb-page .crb-country-photo { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center 45%; }
.crb-page .crb-country-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 21, 48, .78) 0%, rgba(1, 21, 48, .45) 42%, rgba(1, 21, 48, .05) 75%); }
.crb-page .crb-country-heading { position: absolute; z-index: 2; left: 0; right: 0; top: 0; bottom: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 24px 32px; border: 0; }
.crb-page .crb-country-heading > div { flex: 0 0 auto; }
.crb-page .crb-country-heading :is(h1, .crb-caption, .crb-dated-label) { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.crb-page .crb-caption { text-transform: uppercase; letter-spacing: .1em; font-size: 12px !important; }
.crb-page .crb-country-heading h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.crb-page .crb-country-heading .ch-reader-theme-button { position: absolute; right: 16px; top: 16px; background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .5); color: #fff !important; }
.crb-page .crb-country-heading .rg-switcher { margin: 6px 0; }
.crb-page .crb-register-overview { position: absolute; z-index: 3; right: 24px; bottom: 0; transform: translateY(0); width: min(560px, calc(100% - 48px)); padding: 12px 18px; background: var(--bg-card, #fff); border: 1px solid var(--border-color); border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: 0 -4px 18px rgba(1, 21, 48, .15); }
.crb-page .crb-register-overview h2 { display: none; }
.crb-page .crb-register-overview dl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.crb-page .crb-register-overview dd { font-size: 24px; font-weight: 800; }
.crb-page .crb-register-overview > p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; }
.crb-page .crb-journey { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border-strong); margin: 0 0 14px; }
.crb-page .crb-journey a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--text-secondary); }
.crb-page .crb-journey a[aria-current] { color: var(--text-primary); }
.crb-page .crb-journey .ch-icon { width: 18px; height: 18px; }
.crb-page .crb-reading-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
.crb-page .crb-sidebar { grid-column: 1 / -1; position: static; padding: 12px 0 16px; border-bottom: 1px solid var(--border-color); }
.crb-page .crb-sidebar-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.crb-page .crb-sidebar-title .ch-icon { width: 20px; height: 20px; }
.crb-page .crb-sidebar .crb-selection { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; padding: 0; border: 0; margin: 0; }
.crb-page .crb-sidebar .crb-selection > button[type="submit"] { background: var(--rc-gold, #e8b52b); border-color: var(--rc-gold, #e8b52b); color: #011530 !important; font-weight: 800; justify-self: stretch !important; }
.crb-page .crb-result-row { position: relative; align-items: flex-start; padding: 16px 18px; margin: 0 0 12px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-card, #fff); box-shadow: var(--rg-shadow, none); }
.crb-page .crb-result-icon { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: #fdf1d3; color: #8a5a00; }
.crb-page .crb-result-icon svg { width: 100%; height: 100%; }
.crb-page .crb-result-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.crb-page .crb-chip { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eceff3; color: #3d4756; }
.crb-page .crb-chip-match { background: #e6eefa; color: #1d4f91; }
.crb-page .crb-chip-conditional { background: #fdf1d3; color: #8a5a00; }
.crb-page .crb-chip-review { background: #eceff3; color: #3d4756; }
.crb-page .crb-chip-type { background: #fdf1d3; color: #6e4a00; }
.crb-page .crb-result-row > .ch-button { align-self: center; }
@media (max-width: 1180px) {
  .crb-page .crb-reading-layout { grid-template-columns: 1fr; }
  .crb-page .crb-sidebar { position: static; }
}
@media (max-width: 760px) {
  .crb-page .crb-header { min-height: 0; display: flex; flex-direction: column; }
  .crb-page .crb-country-visual { position: relative; height: 150px; inset: auto; }
  .crb-page .crb-country-heading { position: relative; padding: 16px; background: var(--rc-navy, #011530); }
  .crb-page .crb-register-overview { position: static; width: auto; border-radius: 0; box-shadow: none; border: 0; }
  .crb-page .crb-register-overview dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crb-page .crb-result-row { flex-wrap: wrap; }
}
.crb-page .crb-header .crb-country-visual { width: 100%; max-width: none; min-width: 0; }
.crb-page .crb-header .crb-country-photo { width: 100%; max-width: none; height: 100%; }
.crb-page .crb-header .crb-country-visual .crb-country-heading { background: none; align-items: flex-start; inset: 0; }
.crb-page .crb-header .crb-country-identity { flex: 0 0 auto; }
@media (max-width: 760px) { .crb-page .crb-header .crb-country-visual .crb-country-heading { position: relative; background: var(--rc-navy, #011530); } }
.crb-page .crb-journey a { flex: 0 0 auto; }
@media (max-width: 760px) {
  .crb-page .crb-header .crb-country-visual { height: auto; min-height: 210px; }
  .crb-page .crb-header .crb-country-visual .crb-country-heading { position: absolute; inset: 0; justify-content: flex-end; background: linear-gradient(transparent 10%, rgba(1, 21, 48, .88)); }
  .crb-page .crb-header .crb-country-photo { position: absolute; }
}
.crb-page .crb-journey { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; }
.crb-page .crb-sidebar .crb-selection select { font-size: 14px; padding-inline: 10px 28px; text-overflow: clip; }
@media (max-width: 1180px) { .crb-page .crb-reading-layout { grid-template-columns: minmax(0, 1fr); } }
.rg-drawer a[target="_blank"]:not(.rg-btn) { display: inline-flex; align-items: center; min-height: 44px; }

/* Long national labels (e.g. India's firm types) must wrap or truncate, never widen the page. */
.rg-chip, .rg-page .ch-badge, .rg-pill { max-width: 100%; min-width: 0; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.rg-table td .rg-chip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; border-radius: 12px; }
.rg-qf dd .ch-badge { display: inline-block; margin: 0 4px 4px 0; }
.rg-table td, .rg-table th { min-width: 0; overflow-wrap: anywhere; }
.rg-table td[data-label="Theme"], .rg-table td[data-label="Applies to"] { max-width: 200px; }
.rg-step-label, .rg-step-title, .rg-ref, .rg-sum, .rg-item-sum { overflow-wrap: anywhere; }
.rg-inst, .rg-source, .rg-card, .rg-drawer-heading { min-width: 0; }
.rg-drawer-head, .rg-drawer-tabs, .rg-drawer-foot { flex: 0 0 auto; }
.rg-drawer-tabs [role="tab"] { flex: 0 0 auto; white-space: nowrap; }
.rg-none { font-size: 12px; font-weight: 400; color: var(--rg-faint); white-space: nowrap; }
.rg-items .rg-ref a { color: var(--ch-link, var(--rg-gold-ink)); }
@media (max-width: 760px) {
  .rg-table td[data-label="Theme"], .rg-table td[data-label="Applies to"] { display: none; }
  .rg-table td.rg-inst-cell { display: block; padding: 0 0 2px; font-size: 12px; color: var(--rg-faint); }
  .rg-table td[data-label]::before { display: none; }
  .rg-table tr { margin-bottom: 8px; padding: 10px 12px; }
  .rg-table td.rg-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.4; padding: 2px 0 6px; }
  .rg-table td[data-label="Status"] { display: inline-block; width: auto; margin-right: 10px; padding: 0; vertical-align: middle; }
  .rg-table td[data-label="Status"] .rg-chip { margin: 0 4px 0 0; -webkit-line-clamp: 1; }
  .rg-table .rg-ref a { font-size: 14px; }
}
@media (max-width: 760px) { .rg-table td.rg-sum { padding: 0; margin: 2px 0 8px; max-height: 2.8em; } }
/* Source cautions must remain readable even when ordinary mobile summaries are clamped. */
@media (max-width: 760px) {
  .rg-table td.rg-sum:has(.ch-register-review-notices) { display: block; -webkit-line-clamp: unset; max-height: none; overflow: visible; }
}
.rg-intro { margin: 12px 0 0; }
.country-handbook-page .rg-page .rg-scope-note { margin: 8px 0 0; max-width: 100ch; font-size: 13px; line-height: 1.5; color: var(--rg-muted); }

/* ---------- UX rehearsal fixes ---------- */
.rg-tabs, .rg-tabs { scroll-margin-top: 12px; }
.rg-intro { display: block; margin: 14px 0 0; }
.country-handbook-page .rg-page .rg-lead { margin: 0 0 4px; font-size: 14.5px; color: var(--rg-ink); max-width: 90ch; }
.rg-disclosure > summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ch-link, var(--rg-gold-ink)); }
.rg-disclosure[open] > summary { margin-bottom: 6px; }
.rg-disclosure .rg-held { margin: 6px 0; }
.country-handbook-page .rg-page .rg-desc { -webkit-line-clamp: 2; }
@media (max-width: 760px) {
  .rg-page .rg-kpis { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; margin-inline: -4px; padding-inline: 4px; }
  .rg-kpi { flex: 0 0 150px; padding: 10px 12px; gap: 6px; scroll-snap-align: start; }
  .rg-kpi-sub, .rg-kpi-link { display: none; }
  .country-handbook-page .rg-page .rg-kpi-head h2 { font-size: 12.5px; }
  .rg-kpi-icon { width: 26px; height: 26px; padding: 5px; }
  .rg-kpi-value { font-size: 24px; }
  .rg-ring { width: 44px; height: 44px; flex-basis: 44px; }
  .rg-meta > div:nth-child(n+3) { display: none; }
  .rg-tabs { margin-top: 10px; }
}
.rg-drawer .rg-qf-source { display: none; }
.rg-obl-grid { display: block; }

/* ---------- wide screens ---------- */
@media (min-width: 1920px) {
  .rg-page .rg-kpis { gap: 16px; }
  .rg-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .9fr); gap: 20px; }
  .rg-journey-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .rg-instruments .ch-register-instruments { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rg-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  .rg-obl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
  .rg-obl-grid:has(.rg-drawer:not([hidden])) { grid-template-columns: minmax(0, 1fr) 520px; }
  .rg-drawer { position: sticky; top: 12px; right: auto; bottom: auto; width: auto; height: calc(100vh - 24px); border: 1px solid var(--rg-line-strong); border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); animation: none; }
  .rg-drawer-backdrop { display: none !important; }
  html.rg-drawer-open { overflow: auto; }
  .rg-obl-grid:has(.rg-drawer:not([hidden])) .rg-instruments .ch-register-instruments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 2400px) {
  .rg-page, .crb-page { font-size: 17px; }
}
@media (min-width: 2560px) {
  .rg-obl-grid:has(.rg-drawer:not([hidden])) { grid-template-columns: minmax(0, 1fr) 600px; }
}


/* ---------- round 2 ---------- */
/* Page container and the shared header row use the same width (the header has 7vw side padding),
   capped at 2400px, so logo/nav and page content line up on every screen size. */
@media (min-width: 1100px) {
  .pub-country-page .operational-main:has([data-rg-page]),
  .pub-country-page .operational-main:has([data-country-research-brief]),
  .pub-country-page .operational-main:has(.ch-catalogue) { width: min(86vw, 2400px) !important; max-width: none !important; padding-inline: 0 !important; }
  .pub-country-page .crb-page { max-width: none; }
  .pub-country-page .pub-hero-bar { padding: 0; }
  .pub-country-page .pub-hero-bar .nav { width: min(86vw, 2400px); margin: 0 auto; padding: 0; }
}
.rg-tabs:focus, .rg-tabs:focus-visible { outline: none; }
.rg-tab-target:focus { outline: none; }

/* compact filter row */
.rg-filters.ch-filter-form { grid-template-columns: minmax(240px, 2.4fr) repeat(3, minmax(140px, 1fr)) auto; padding: 14px 16px; margin-bottom: 14px; gap: 10px 12px; }
.rg-filters .ch-search { grid-column: auto; }
.rg-filters .ch-search input { min-height: 44px; font-size: 14px; }
.rg-filters .rg-filter-actions { grid-column: auto; align-self: end; justify-content: flex-end; flex-wrap: nowrap; }
.rg-more-filters { grid-column: 1 / -1; }
.rg-more-filters > summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ch-link, var(--rg-gold-ink)); }
.rg-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; padding: 6px 0 2px; }
.rg-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 13px; color: var(--rg-muted); }
.rg-active-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 12px; border-radius: 999px; background: var(--rg-amber-bg); color: var(--rg-ink) !important; font-weight: 600; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.rg-active-chip:hover { background: var(--rg-line); }

/* compact instrument cards */
.rg-instruments { margin-bottom: 14px; }
.rg-instruments .ch-register-instruments { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 8px; }
.rg-inst { padding: 10px 12px; gap: 2px; }
.country-handbook-page .rg-page .rg-inst h3 { font-size: 14px; }
.country-handbook-page .rg-page .rg-inst .rg-inst-counts { margin: 4px 0 0 !important; padding: 0; font-size: 12.5px; line-height: 1.35; color: var(--rg-muted); }
.rg-inst-actions { padding-top: 6px; }
.rg-inst .rg-btn-quiet { min-height: 34px; padding: 4px 10px; font-size: 12.5px; }
.country-handbook-page .rg-page .rg-section-head { margin-bottom: 8px; }
.country-handbook-page .rg-page .rg-section-head p { display: none; }
.country-handbook-page .rg-page .rg-panel-intro h2 { margin-bottom: 8px; }
.rg-desc-short { display: none; }

@media (max-width: 1180px) {
  .rg-filters.ch-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rg-filters .ch-search { grid-column: 1 / -1; }
  .rg-filters .rg-filter-actions { grid-column: 1 / -1; }
  .rg-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rg-filters.ch-filter-form { grid-template-columns: 1fr; }
  .rg-more-grid { grid-template-columns: 1fr; }
  .rg-desc-full { display: none; }
  .rg-desc-short { display: inline; }
  .rg-t-full { display: none; }
  .rg-t-short { display: inline; }
  .country-handbook-page .rg-page .rg-kpi-head h2 { overflow-wrap: normal; word-break: normal; hyphens: none; }
}
@media (min-width: 761px) { .rg-t-short { display: none; } }

/* Overview and wide layouts */
@media (min-width: 1181px) { .rg-grid-3 > .rg-card-stages { grid-column: 1 / -1; } }
@media (min-width: 2200px) {
  .rg-grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rg-grid-3 > .rg-card-stages { grid-column: auto; }
  .rg-instruments .ch-register-instruments { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .rg-obl-grid:has(.rg-drawer:not([hidden])) { grid-template-columns: minmax(0, 1fr) 640px; }
}
@media (min-width: 1800px) and (max-width: 2199px) { .rg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rg-filters.ch-filter-form > .ch-field { grid-column: auto !important; }
.rg-filters.ch-filter-form > .ch-field.ch-search { grid-column: auto !important; }
@media (max-width: 1180px) { .rg-filters.ch-filter-form > .ch-field.ch-search { grid-column: 1 / -1 !important; } }
.rg-instruments .ch-register-instruments { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }

/* ---------------------------------------------------------- journey: "What applies to me" */
.rg-journey-main { display: grid; gap: 16px; min-width: 0; }
.rg-scenario { margin: 0 0 16px; }
.rg-scn-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.rg-scn-field { display: grid; gap: 4px; min-width: 0; }
.rg-scn-field label { font-size: 12.5px; font-weight: 700; color: var(--rg-muted); }
.rg-scn-field select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--rg-line-strong); border-radius: 8px; background: var(--rg-surface); color: var(--rg-ink); font: inherit; font-size: 14px; }
.rg-scn-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rg-scn-active { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--rg-muted); }
.rg-scn-summary { margin: 0 0 12px; }
.rg-scn-facts { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.rg-scn-facts li { margin: 0; }
.rg-duty-group { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--rg-line); border-left: 4px solid var(--rg-grey); border-radius: 8px; background: var(--rg-surface); min-width: 0; }
.rg-group-specific-specific, .rg-group-specific-scenario { border-left-color: var(--rg-blue); }
.rg-group-every-every { border-left-color: var(--rg-green); }
.rg-group-firm-firm { border-left-color: var(--rg-grey); }
.rg-group-untagged-untagged { border-left-color: var(--rg-amber); }
.country-handbook-page .rg-page .rg-duty-group h4, .country-handbook-page .rg-page .rg-changes h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.rg-page .rg-checklist { margin: 8px 0 0; padding: 0 0 0 28px; display: grid; gap: 10px; }
.rg-checklist > li { margin: 0; padding: 0 0 10px 4px; border-bottom: 1px solid var(--rg-line); overflow-wrap: anywhere; }
.rg-checklist > li:last-child { border-bottom: 0; padding-bottom: 0; }
.rg-checklist > li::marker { font-weight: 800; color: var(--rg-muted); }
.country-handbook-page .rg-page .rg-duty-text { margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
.country-handbook-page .rg-page .rg-duty-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--rg-muted); }
.rg-duty-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ch-link, var(--rg-gold-ink)); }
.rg-more-duties { margin-top: 10px; }
.rg-more-duties > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ch-link, var(--rg-gold-ink)); }
.rg-change-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rg-change-col { min-width: 0; }
.rg-checklist-download .rg-exports { margin: 8px 0; }
.country-handbook-page .rg-page .rg-checklist-download h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }

/* stacked horizontal bars: duties per stage */
.rg-chart { margin: 0; }
.rg-chart figcaption { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.rg-chart-legend { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.rg-chart-legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.rg-seg-key { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.rg-hbars { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.rg-hbar { display: grid; grid-template-columns: minmax(84px, 150px) minmax(0, 1fr) 36px; gap: 10px; align-items: center; margin: 0; font-size: 13.5px; }
.rg-hbar-label { font-weight: 700; overflow-wrap: anywhere; }
.rg-hbar-track { display: flex; height: 18px; border-radius: 4px; background: var(--rg-grey-bg); overflow: hidden; min-width: 0; }
.rg-hseg { display: block; height: 100%; min-width: 3px; }
.rg-hbar-total { font-weight: 800; text-align: right; }
.rg-seg-specific-specific, .rg-seg-specific-scenario { background: var(--rg-blue); }
.rg-seg-every-every { background: var(--rg-green); }
.rg-seg-firm-firm { background: var(--rg-grey); }
.rg-seg-untagged-untagged { background: repeating-linear-gradient(135deg, var(--rg-amber) 0 4px, var(--rg-amber-bg) 4px 8px); border: 1px solid var(--rg-amber); box-sizing: border-box; }

/* South Africa guided walkthrough (curated steps on the standard Journey tab) */
.rg-guided { margin: 0 0 16px; }
.rg-guided-steps { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.rg-guided-steps > li { margin: 0; }
.rg-guided-body { padding: 4px 16px 14px; font-size: 14px; line-height: 1.55; }
.rg-guided-body p { margin: 8px 0; }
.rg-guided-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rg-guided-links li { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.rg-guided-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.za-reporting-map table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.za-reporting-map th, .za-reporting-map td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--rg-line); overflow-wrap: anywhere; }

/* the Journey drawer is always an overlay, even where the Obligations drawer docks */
@media (min-width: 1800px) {
  .rg-drawer.rg-overlay { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); height: auto; border: 0; border-left: 1px solid var(--rg-line-strong); border-radius: 0; box-shadow: -12px 0 40px rgba(1, 21, 48, .25); }
  .rg-drawer-backdrop.rg-overlay:not([hidden]) { display: block !important; }
}

@media (max-width: 900px) {
  .rg-scn-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-scn-actions { grid-column: 1 / -1; }
  .rg-change-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rg-scn-form { grid-template-columns: 1fr; }
  .rg-scn-actions .rg-btn { flex: 1 1 auto; }
  .rg-hbar { grid-template-columns: minmax(70px, 96px) minmax(0, 1fr) 30px; gap: 8px; }
  .rg-page .rg-checklist { padding-left: 22px; }
  .rg-duty-group { padding: 10px; }
  .za-reporting-map thead { display: none; }
  .za-reporting-map table, .za-reporting-map tbody, .za-reporting-map tr, .za-reporting-map td, .za-reporting-map th { display: block; width: 100%; }
  .za-reporting-map td::before { content: attr(data-label) ": "; font-weight: 700; }
}
.rg-page .rg-chart-legend { margin: 0 0 14px; padding: 0; }
.rg-page .rg-hbars, .rg-page .rg-scn-facts { padding: 0; }
.rg-page .rg-scn-facts { margin: 0 0 8px; }

/* Sortable table headers, status tabs, in-review tag and instrument card context. */
.rg-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.rg-sort:hover, .rg-sort:focus-visible { color: var(--rg-ink); text-decoration: underline; text-underline-offset: 3px; }
.rg-sort.is-active { color: var(--rg-ink); }
.rg-sort-ind { font-size: 10px; opacity: .55; }
.rg-sort.is-active .rg-sort-ind { opacity: 1; }
.rg-ref-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rg-table td .rg-ref-tags .rg-chip, .rg-ref-tags .rg-chip { margin: 0; font-size: 11px; padding: 1px 8px; display: inline-flex; }
.rg-chip-review { background: var(--rg-amber-bg); color: var(--rg-amber); }
.rg-inst-cell { font-size: 13px; color: var(--rg-muted); }
.rg-dtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; border-bottom: 1px solid var(--rg-line); }
.rg-dtab { padding: 9px 14px; margin-bottom: -1px; font-size: 14px; font-weight: 700; color: var(--rg-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.rg-dtab:hover { color: var(--rg-ink); }
.rg-dtab.is-current { color: var(--rg-ink); border-bottom-color: var(--rg-gold); }
.rg-tab-count { font-weight: 600; color: var(--rg-faint); }
.rg-inst-type { margin: 0; font-size: 11.5px !important; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--rg-faint); }
.country-handbook-page .rg-page .rg-inst .rg-inst-topic { font-size: 13px; font-weight: 600; color: var(--rg-ink); }
.rg-inst.is-zero { opacity: .62; background: var(--rg-wash); box-shadow: none; }
.rg-inst.is-zero:hover, .rg-inst.is-zero:focus-within { opacity: 1; }
.ch-register-instrument-mobile-row.is-zero { opacity: .62; }
@media (max-width: 760px) { .rg-dtabs { flex-wrap: nowrap; overflow-x: auto; } .rg-dtab { white-space: nowrap; padding: 9px 12px; } }
.rg-ref-inst { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--rg-faint); text-decoration: none; }
.rg-inst-top .rg-chip-policy { flex: 0 0 auto; white-space: nowrap; }
.rg-table thead th a.rg-sort { color: var(--rg-muted); }
.rg-table thead th a.rg-sort:hover, .rg-table thead th a.rg-sort.is-active { color: var(--rg-ink); }
.rg-dtabs a.rg-dtab { color: var(--rg-muted); text-decoration: none; }
.rg-dtabs a.rg-dtab:hover, .rg-dtabs a.rg-dtab.is-current { color: var(--rg-ink); }
/* Long instrument names must wrap between words: the title takes the card's width and the text-policy chip drops below it when they don't fit side by side. */
.rg-inst-top { flex-wrap: wrap; }
.country-handbook-page .rg-page .rg-inst h3 { flex: 1 1 150px; min-width: 150px; overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 760px) { .rg-dtabs { flex-wrap: wrap; overflow-x: visible; } }
/* Topic answer: the grouped law → Regulations → Directives → guidance list shown for a topic search. */
.rg-topic-answer { margin: 0 0 14px; padding: 14px 16px; background: var(--rg-surface); border: 1px solid var(--rg-line); border-left: 4px solid var(--rg-gold); border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); }
.country-handbook-page .rg-page .rg-topic-answer .rg-topic-eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rg-muted); }
.country-handbook-page .rg-page .rg-topic-answer h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 800; }
.country-handbook-page .rg-page .rg-topic-answer > p.ch-muted { margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.rg-topic-layer { border-top: 1px solid var(--rg-line); }
.rg-topic-layer > summary { min-height: 40px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 700; }
.rg-topic-layer > ul { list-style: none; margin: 0 0 8px; padding: 0; }
.rg-topic-layer li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 0; font-size: 13px; line-height: 1.4; border-top: 1px dashed var(--rg-line); }
.rg-topic-layer li:first-child { border-top: 0; }
.rg-topic-layer li > a { font-weight: 700; }
.rg-topic-heading { flex: 1 1 260px; color: var(--rg-ink); }
.rg-topic-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.rg-topic-state .ch-badge { font-size: 11px; }
.rg-topic-layer > summary::after { content: 'Show'; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ch-link, var(--rg-gold-ink)); }
.rg-topic-layer[open] > summary::after { content: 'Hide'; }
