/* Regime pages (tools/build_pages.py): compact navy hero, article + "at a glance" card, error cards, FAQ, related pages. */
.rp-hero { position:relative; padding:56px 0 64px; color:#ecf1fa;
  background:radial-gradient(900px 480px at 85% -20%, #1e3c82 0%, transparent 60%), linear-gradient(#090e1a, #10203a); }
.rp-hero::after { content:""; position:absolute; left:0; right:0; bottom:-90px; height:90px; pointer-events:none;
  background:linear-gradient(180deg, #10203a 0%, rgba(30,48,110,.6) 35%, rgba(255,255,255,0) 100%); }
.rp-crumb { font-size:14px; color:#96a5be; margin-bottom:18px; }
.rp-crumb a { color:#b9c8e6; text-decoration:none; }
.rp-hero h1 { color:#fff; font-size:clamp(32px, 4.4vw, 52px); max-width:860px; }
.rp-hero .lead { color:#b9c8e6; max-width:760px; }
.rp-chips { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.rp-chips span { display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(120,170,255,.45); background:rgba(26,40,70,.7); border-radius:999px; padding:6px 14px; font-size:14px; font-weight:600; }
.rp-chips svg.i { width:16px; height:16px; color:#78aaff; }
.rp-hero .cta-row .btn.outline-light { border-color:rgba(120,170,255,.55); }
.rp-body { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:56px; padding-top:56px; padding-bottom:40px; }
.rp-body article h2 { font-size:26px; margin:44px 0 12px; }
.rp-body article h2:first-child { margin-top:0; }
.rp-body article p, .rp-body article li { color:var(--text); }
.rp-author { display:flex; align-items:center; gap:12px; margin:0 0 28px; color:var(--muted); font-size:14px; }
.rp-author b { color:var(--ink); }
.rp-author .av { width:36px; height:36px; border-radius:50%; background:linear-gradient(140deg,#10203a,#090e1a); display:grid; place-items:center; color:#ecf1fa; font-family:var(--head); font-weight:800; font-size:14px; }
.rp-dates { list-style:none; padding:0; margin:0; border-left:2px solid var(--line); }
.rp-dates li { position:relative; padding:0 0 16px 22px; }
.rp-dates li::before { content:""; position:absolute; left:-7px; top:6px; width:12px; height:12px; border-radius:50%; background:#fff; border:2px solid var(--accent); }
.rp-dates b { font-family:var(--head); color:var(--ink); display:block; }
.rp-errs { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:8px; }
.rp-err { border:1px solid var(--line); border-radius:12px; padding:16px; background:#fff; }
.rp-err .t { display:flex; gap:10px; align-items:center; font-family:var(--head); font-weight:700; color:var(--ink); margin-bottom:6px; }
.rp-err .t span { width:28px; height:28px; border-radius:8px; display:grid; place-items:center; background:var(--bad-soft); color:var(--bad); flex:none; }
.rp-err .t svg.i { width:16px; height:16px; }
.rp-err p { margin:0; font-size:15px; color:var(--muted) !important; }
.rp-how { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.rp-how li { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:12px; background:var(--soft); }
.rp-how li span { width:30px; height:30px; border-radius:8px; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; flex:none; }
.rp-how li svg.i { width:17px; height:17px; }
.rp-how b { color:var(--ink); }
.rp-faq details { border-bottom:1px solid var(--line); padding:14px 0; }
.rp-faq summary { cursor:pointer; font-family:var(--head); font-weight:700; color:var(--ink); font-size:17px; }
.rp-faq details p { margin:10px 0 0; }
.rp-src { font-size:14px; color:var(--muted); }
.rp-side { position:sticky; top:92px; align-self:start; border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); background:#fff; }
.rp-side h3 { font-size:15px; text-transform:uppercase; letter-spacing:.08em; color:var(--accent); margin-bottom:12px; }
.rp-side dl { margin:0; display:grid; gap:12px; }
.rp-side dt { font-size:13px; color:var(--faint); }
.rp-side dd { margin:2px 0 0; font-weight:600; color:var(--ink); font-size:15px; }
.rp-side .btn { width:100%; justify-content:center; margin-top:18px; }
.rp-related { padding:24px 0 96px; }
.rp-related h2 { font-size:26px; margin-bottom:18px; }
.rp-rel-grid { display:grid; grid-template-columns:repeat(5, 1fr); gap:14px; }
.rp-rel-grid a { display:block; border:1px solid var(--line); border-radius:12px; padding:16px; text-decoration:none; color:var(--ink); font-family:var(--head); font-weight:700; background:#fff; }
.rp-rel-grid a span { display:block; font-family:var(--body); font-weight:400; color:var(--muted); font-size:14px; margin-top:4px; }
.rp-rel-grid a:hover { border-color:var(--lilac); box-shadow:var(--shadow); }
@media (max-width: 960px) { .rp-body { grid-template-columns:1fr; gap:32px; } .rp-side { position:static; } .rp-rel-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 600px) { .rp-errs, .rp-rel-grid { grid-template-columns:1fr; } .rp-hero { padding-top:36px; } }

/* Colour accents across the regime pages */
.rp-chips span:nth-child(1) { border-color:rgba(242,201,76,.55); color:#f2c94c; }
.rp-chips span:nth-child(2) { border-color:rgba(111,207,151,.55); color:#6fcf97; }
.rp-chips span:nth-child(3) { border-color:rgba(187,107,217,.55); color:#bb6bd9; }
.rp-chips span:nth-child(4) { border-color:rgba(86,204,242,.55); color:#56ccf2; }
.rp-chips span svg.i { color:inherit; }
.rp-how li:nth-child(1) span { background:rgba(242,201,76,.18); color:#f2c94c; }
.rp-how li:nth-child(2) span { background:rgba(111,207,151,.18); color:#6fcf97; }
.rp-how li:nth-child(3) span { background:rgba(187,107,217,.18); color:#bb6bd9; }
.rp-how li:nth-child(4) span { background:rgba(86,204,242,.18); color:#56ccf2; }
.rp-how li:nth-child(5) span { background:rgba(242,153,74,.18); color:#f2994a; }
.rp-err { border-left:3px solid #f2994a; }
.rp-side { border-top:3px solid var(--accent); }

.glossary { margin:0; }
.glossary dt { font-family:var(--head); font-weight:700; font-size:16px; color:var(--ink); margin-top:18px; }
.glossary dd { margin:4px 0 0; color:var(--muted); font-size:15.5px; line-height:1.55; }
.dates { width:100%; border-collapse:collapse; font-size:15px; }
.dates th, .dates td { padding:10px 12px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
.dates th { font-family:var(--head); font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.dates td:nth-child(2) { color:var(--ink); font-weight:600; }
