
/* PRISM 8.2 — Code PRISM public */
:root{--r-gold:#d4af37;--r-gold2:#f4d97e;--r-text:#f8f2e9;--r-muted:#c9bfad;--r-line:rgba(255,255,255,.09)}
html,body{background:#070709 !important;color:var(--r-text) !important}
body{
  background:
    radial-gradient(circle at 10% -10%, rgba(212,175,55,.15), transparent 28%),
    linear-gradient(155deg,#070709 0%,#111017 54%,#09090d 100%) !important;
}
.noise{display:none !important}
.site-header{
  padding-top:18px !important;
  background:transparent !important;
}
.topbar.wrap{
  width:min(1240px,calc(100% - 28px)) !important;
  max-width:none !important;
  min-height:82px;
  display:flex !important;
  gap:16px;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px 12px 18px !important;
  border:1px solid rgba(255,255,255,.09) !important;
  background:rgba(8,8,11,.78) !important;
  border-radius:28px !important;
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  box-shadow:0 16px 50px rgba(0,0,0,.32) !important;
}
.brand{
  display:flex !important;
  align-items:center;
  gap:16px;
}
.brand-mark{width:44px !important;height:44px !important;object-fit:contain;filter:drop-shadow(0 0 18px rgba(212,175,55,.22))}
.brand span strong{
  font-family:"Avenir Next","Avenir","Manrope","Montserrat","Helvetica Neue","Segoe UI","Inter",sans-serif !important;
  font-size:1.8rem !important;
  font-weight:520 !important;
  letter-spacing:.10em !important;
  color:var(--r-text) !important;
}
.brand span small{
  display:block;
  color:var(--r-muted) !important;
  margin-top:3px;
}
.main-nav a{
  color:var(--r-muted) !important;
  border-radius:14px !important;
  padding:10px 12px !important;
  border:1px solid transparent !important;
}
.main-nav a:hover{
  color:var(--r-gold2) !important;
  background:rgba(212,175,55,.07) !important;
  border-color:rgba(212,175,55,.20) !important;
}
main, .wrap{position:relative}
.hero.wrap,.code-levels-wrap,.footer.wrap{width:min(1240px,calc(100% - 28px)) !important;max-width:none !important}
.official-card,.hero-card,.footer-card{
  background:linear-gradient(145deg,rgba(25,25,32,.78),rgba(14,14,19,.56)) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  box-shadow:0 26px 82px rgba(0,0,0,.36) !important;
  color:var(--r-text) !important;
}
h1,h2,h3,h4,strong,label{color:var(--r-text) !important}
p,li,span,small{color:var(--r-muted) !important}
.lead{color:var(--r-muted) !important}
.btn,.hero-actions .btn{
  border-radius:16px !important;
  border:1px solid rgba(244,217,126,.54) !important;
  color:#111 !important;
  background:linear-gradient(135deg,var(--r-gold),var(--r-gold2)) !important;
  box-shadow:0 12px 34px rgba(212,175,55,.18) !important;
}
.search-panel,.hero-visual-panel{
  background:rgba(255,255,255,.04) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  color:var(--r-text) !important;
}
.search-panel label,.search-panel p{color:var(--r-muted) !important}
input,select,textarea{
  background:rgba(0,0,0,.24) !important;
  color:var(--r-text) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:16px !important;
}
.level-card,.toc-card,.book-card,.article-card,.search-result-card{
  background:rgba(255,255,255,.045) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  color:var(--r-text) !important;
}
.level-card *, .toc-card *, .book-card *, .article-card *, .search-result-card *{color:inherit !important}
.level-card .level-title,.level-card h3,.toc-card h3,.book-card h3{color:var(--r-text) !important}
.footer-card strong{color:var(--r-text) !important}


/* PRISM 8.3 reglement polish */
.topbar.wrap{
  position:sticky;
  top:0;
  z-index:100;
  width:100% !important;
  border-radius:0 !important;
  border-left:none !important;
  border-right:none !important;
  padding:14px 22px !important;
}
.brand,.main-nav a,.btn,.search-panel,input,select,textarea,.official-card,.hero-visual-panel,.search-panel,.level-card,.toc-card,.book-card,.article-card,.search-result-card,.footer-card{
  border-radius:14px !important;
}
.brand span strong{
  font-size:2rem !important;
  font-weight:500 !important;
  letter-spacing:.16em !important;
}


/* PRISM 8.4 — Code PRISM contrast fix */
body{
  color:#f8f2e9 !important;
}
.official-card,
.hero-card,
.footer-card,
.article-layout,
.article-panel,
.article-content,
.article-view,
.article-main,
.reader,
.code-reader,
.search-panel,
.hero-visual-panel,
.toc-grid > *,
.toc-card,
.book-card,
.article-card,
.search-result-card,
.result-card,
.level-scale > *,
.level-card,
.level-item,
.level,
.level-pill,
.sanction-level,
.card,
.panel{
  background:linear-gradient(145deg,rgba(24,24,31,.88),rgba(13,13,18,.78)) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:#f8f2e9 !important;
  box-shadow:0 18px 58px rgba(0,0,0,.34) !important;
}
.level-scale > *,
.level-card,
.level-item,
.level,
.sanction-level{
  min-height:110px;
}
.level-scale > * *,
.level-card *,
.level-item *,
.level *,
.sanction-level *,
.toc-card *,
.book-card *,
.article-card *,
.search-result-card *,
.result-card *{
  color:#f8f2e9 !important;
}
.level-scale > * p,
.level-card p,
.level-item p,
.level small,
.sanction-level p,
.toc-card p,
.book-card p,
.article-card p,
.search-result-card p,
.result-card p{
  color:#c9bfad !important;
}
.badge,
.pill,
.tag,
.status,
.article-status,
.article-version,
.article-update,
.version-pill,
.meta-pill,
.hero-card .pill,
.article-panel .pill,
.article-content .pill,
span[class*="pill"],
span[class*="tag"],
span[class*="badge"]{
  background:rgba(212,175,55,.12) !important;
  border:1px solid rgba(244,217,126,.35) !important;
  color:#ffe8a9 !important;
  box-shadow:none !important;
}
.article-panel h1,
.article-panel h2,
.article-content h1,
.article-content h2,
.article-main h1,
.article-main h2,
.official-card h1,
.official-card h2,
.level-scale h3,
.level-card h3,
.level-item h3{
  color:#f8f2e9 !important;
}
.article-nav,
.article-sidebar,
.sidebar,
.aside,
.left-panel,
.navigation-article,
nav[aria-label*="article"],
.article-list{
  background:rgba(8,8,12,.78) !important;
  border-color:rgba(255,255,255,.10) !important;
  color:#f8f2e9 !important;
}
.article-nav a,
.article-sidebar a,
.sidebar a,
.article-list a{
  color:#c9bfad !important;
  background:transparent !important;
  border-color:transparent !important;
}
.article-nav a.active,
.article-sidebar a.active,
.sidebar a.active,
.article-list a.active,
.article-nav a:hover,
.article-sidebar a:hover,
.sidebar a:hover,
.article-list a:hover{
  background:rgba(212,175,55,.12) !important;
  border-color:rgba(244,217,126,.30) !important;
  color:#ffe8a9 !important;
}
.main-nav .site-return{
  color:#ffe8a9 !important;
  border-color:rgba(244,217,126,.32) !important;
  background:rgba(212,175,55,.10) !important;
}


/* PRISM 8.8 — Code PRISM dark sections/results */
:root{
  --r88-panel:rgba(18,18,24,.94);
  --r88-panel2:linear-gradient(145deg,rgba(25,25,32,.88),rgba(14,14,19,.76));
  --r88-text:#f8f2e9;
  --r88-muted:#c9bfad;
  --r88-gold:#f4d97e;
  --r88-line:rgba(255,255,255,.10);
}
body{
  background:
    radial-gradient(circle at 10% -10%, rgba(212,175,55,.15), transparent 28%),
    linear-gradient(155deg,#070709 0%,#111017 54%,#09090d 100%) !important;
  color:var(--r88-text) !important;
}
.article-card,
.article-full,
.article-content,
.article-sections,
.article-subsection,
.examples,
.article-note,
.search-result-card,
.result-card,
.results,
.search-results,
.toc-card,
.book-card,
.level-card,
.official-card,
.footer-card,
.hero-visual-panel,
.search-panel{
  background:var(--r88-panel2) !important;
  border:1px solid var(--r88-line) !important;
  color:var(--r88-text) !important;
  box-shadow:0 22px 70px rgba(0,0,0,.34) !important;
}
.article-content p,
.article-subsection p,
.examples li,
.article-note,
.search-result-card p,
.result-card p{
  color:var(--r88-muted) !important;
}
.article-subsection h3,
.examples h4,
.search-result-card h3,
.result-card h3{
  color:var(--r88-text) !important;
}
.examples{
  padding:18px 20px !important;
  border-radius:18px !important;
}
.examples ol{
  background:transparent !important;
  color:var(--r88-muted) !important;
}
.examples li{
  margin:8px 0 !important;
}
.article-note{
  padding:16px 18px !important;
  border-radius:16px !important;
}
.search-result-card,
.result-card{
  border-radius:18px !important;
  padding:18px !important;
}
.meta-pill,
.badge,
.pill,
.tag{
  background:rgba(212,175,55,.12) !important;
  color:#ffe8a9 !important;
  border:1px solid rgba(244,217,126,.35) !important;
}
body [style*="background:#fff"],
body [style*="background: #fff"],
body [style*="background:white"],
body [style*="background: white"],
body [style*="background-color:#fff"],
body [style*="background-color: #fff"],
body [style*="background-color:white"],
body [style*="background-color: white"]{
  background:var(--r88-panel) !important;
  color:var(--r88-text) !important;
  border-color:var(--r88-line) !important;
}
