/* RHLmod v4 audit layer — REGLAMENT 2026-10-05 */
:root{--rhl-h1:clamp(1.5rem,1.1rem + 1.6vw,2.1rem);--rhl-h2:clamp(1.2rem,.95rem + 1vw,1.55rem);--rhl-h3:clamp(1.05rem,.9rem + .6vw,1.3rem)}
h1,.header h1,#pagetitle h1{font-size:var(--rhl-h1)!important;line-height:1.25!important;font-weight:700!important;margin:.6rem 0 1rem!important}
h2{font-size:var(--rhl-h2)!important;line-height:1.3!important}
h3{font-size:var(--rhl-h3)!important;line-height:1.35!important}
/* dead dynamic UI */
.postcontrols,.postfoot,.popupmenu.pagination form,
form.pagination,form[action*="search.php"],form[action*="login.php"],
#search,#search-box,.search-box,.widget_search,
a[href*="newreply.php"],a[href*="newthread.php"],a[href*="register.php"],
a[href*="authorization.php"],a[href*="login.php"],a[href*="usercp.php"],
a[href*="private.php"],a[href*="sendmessage.php"],a[href*="subscription.php"],
a[href*="search.php"],a[href*="memberlist.php"],
img[src*="cron.php"],.navpopupmenu.popupmenu.nohovermenu,
#breadcrumb .popupmenu{display:none!important}
/* TOC */
details.rhl-toc{margin:1rem 0 1.25rem;padding:.75rem 1rem;background:#edf4f9;border:1px solid #d7e1ea;border-radius:12px}
details.rhl-toc > summary{cursor:pointer;font-weight:600;color:#0d2a46;list-style:none}
details.rhl-toc > summary::-webkit-details-marker{display:none}
details.rhl-toc nav ol{margin:.5rem 0 0;padding-left:1.2rem}
details.rhl-toc nav a{color:#1768ac;text-decoration:none}
details.rhl-toc nav a:hover{text-decoration:underline}
/* images */
.rhl-hero,article img, .postcontent img, .content img{max-width:100%;height:auto}
picture.rhl-hero img{width:100%;border-radius:12px}
/* empty lists */
ul:empty,ol:empty,li:empty{display:none!important}
/* no horizontal scroll */
html,body{overflow-x:hidden}

/* a11y gap-closure 2026-10-06 */
a.username, a.username strong, a.username font, a.username b,
.username_container a, .username_container font, .username_container b {
  color:#b00020!important; /* ≥4.5:1 on #f3f7fb / #f7fafc */
}
font[color="#c0c0c0"], font[color="silver"], font[color="#C0C0C0"],
font[color="#999"], font[color="#999999"], .shade, .time, .postdate {
  color:#4a5568!important;
}
/* orphaned postbit li as blocks */
body > li.postbitlegacy, div.body_wrapper > li.postbitlegacy,
#outer > li.postbitlegacy, #inner > li.postbitlegacy {
  display:block; list-style:none; margin:0; padding:0;
}
main#rhl-main { display:block; }
img.postuseravatar, a.postuseravatar img { max-width:85px!important; width:85px!important; height:auto!important; }
