@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root{
  --navy:#070b12;
  --navy2:#0b1020;
  --ink:#0a0b0d;
  --panel:rgba(7,10,16,.72);
  --panel2:rgba(10,14,24,.78);
  --glass:rgba(10,14,24,.55);
  --text:#f3f0e9;
  --muted:rgba(243,240,233,.72);
  --line:rgba(216,181,106,.22);
  --gold:#d8b56a;
  --gold2:#f0d58f;
  --gold3:#b88939;
  --shadow:0 26px 80px rgba(0,0,0,.55);
  --radius:14px;
  --radius2:18px;
  --serif:"Cinzel", ui-serif, Georgia, "Times New Roman", serif;
  --serif2:"Cormorant Garamond", ui-serif, Georgia, serif;
  --sans:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  font-size:18px;
  line-height:1.7;
  color:var(--text);
  /* Higher-contrast, deeper "heavenly" field for readability */
  background:
    radial-gradient(1200px 850px at 18% -12%, rgba(240,213,143,.18), transparent 62%),
    radial-gradient(980px 720px at 88% -6%, rgba(216,181,106,.14), transparent 58%),
    radial-gradient(900px 780px at 52% 10%, rgba(32,68,120,.20), transparent 62%),
    linear-gradient(180deg, rgba(4,6,12,.64), rgba(4,6,12,.92)),
    url("../media/cloud-bg.jpg");
  background-size:auto, auto, auto, auto, cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-position:center top;
}

a{color:var(--gold2); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto}

.skiplink{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skiplink:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; z-index:9999;
  background:rgba(0,0,0,.8);
  border:1px solid var(--line);
  border-radius:10px;
}

/* Layout */
.wrap{max-width:1240px; margin:0 auto; padding:22px}
.shell{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:22px;
  align-items:start;
}

@media (max-width: 980px){
  .wrap{padding:16px}
  .shell{grid-template-columns:1fr}
}

/* Topbar */
.topbar{
  position:sticky;
  top: var(--supernav-h, 56px);
  z-index:50;
  backdrop-filter: blur(10px);
  /* Blend with the global header (avoid a dark strip on wide screens) */
  background: linear-gradient(180deg, rgba(12,28,44,.30), rgba(12,28,44,.12));
  border-bottom:1px solid rgba(216,181,106,.16);
}
.progressbar{height:3px; background:rgba(216,181,106,.10)}
.progressbar-fill{height:3px; width:0%; background:linear-gradient(90deg, var(--gold3), var(--gold2))}
.topbar-inner{
  max-width:1240px; margin:0 auto;
  padding:10px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
@media (max-width:980px){ .topbar-inner{padding:10px 16px} }

.topbrand{display:flex; align-items:center; gap:12px; min-width:260px}
.topbrand .mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px;
}
.topbrand .mark img{width:42px; height:42px; display:block}
.topbrand-title{
  font-family:var(--serif);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:700;
  font-size:18px;
  color:var(--gold2);
  line-height:1.1;
}
.topbrand-sub{
  font-family:var(--serif2);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
  color:rgba(243,240,233,.72);
  margin-top:2px;
}

.topnav{
  display:flex; align-items:center; gap:14px;
  overflow:auto;
  scrollbar-width:none;
}
.topnav::-webkit-scrollbar{display:none}
.topnav a{
  font-family:var(--serif);
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  color:rgba(243,240,233,.82);
  border:1px solid transparent;
}
.topnav a:hover{
  text-decoration:none;
  border-color:rgba(216,181,106,.25);
  background:rgba(0,0,0,.18);
}
.topnav a.active{
  color:var(--gold2);
  border-color:rgba(216,181,106,.35);
  background:rgba(0,0,0,.22);
}

/* Mobile menu */
.menu-toggle{
  display:none;
  border:1px solid rgba(216,181,106,.28);
  background:rgba(0,0,0,.20);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}
.menu-toggle-bars{
  display:block; width:18px; height:12px; position:relative;
}
.menu-toggle-bars:before,
.menu-toggle-bars:after{
  content:""; position:absolute; left:0; right:0; height:2px;
  background:rgba(243,240,233,.85);
  border-radius:2px;
}
.menu-toggle-bars:before{top:1px}
.menu-toggle-bars:after{bottom:1px}
@media (max-width: 980px){
  .menu-toggle{display:inline-flex}
  .topnav{display:none}
}

.mobile-menu{position:fixed; inset:0; display:none}
body.menu-open .mobile-menu{display:block}
.mobile-menu-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.55)}
.mobile-menu-panel{
  position:absolute; top:12px; right:12px; left:12px;
  max-height: calc(100vh - 24px);
  overflow:auto;
  background:rgba(5,7,12,.92);
  border:1px solid rgba(216,181,106,.28);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.mobile-menu-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid rgba(216,181,106,.22);
}
.mobile-menu-title{
  font-family:var(--serif);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold2);
}
.mobile-menu-close{
  background:transparent;
  border:1px solid rgba(216,181,106,.28);
  color:var(--text);
  border-radius:12px;
  width:38px; height:38px;
  cursor:pointer;
}
.mobile-menu-links{padding:10px 10px 14px}
.mobile-menu-links a{
  display:flex; gap:10px; align-items:center;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid transparent;
  color:rgba(243,240,233,.88);
}
.mobile-menu-links a:hover{
  text-decoration:none;
  border-color:rgba(216,181,106,.22);
  background:rgba(0,0,0,.18);
}
.mobile-menu-links a.active{
  border-color:rgba(216,181,106,.35);
  background:rgba(0,0,0,.22);
}
.mobile-menu-num{
  min-width:88px;
  font-family:var(--serif);
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
  color:rgba(240,213,143,.82);
}

/* Sidebar */
.side{
  position:sticky;
  top:72px;
}
@media (max-width:980px){ .side{position:relative; top:auto} }

.side-h{
  background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.10));
  border:1px solid rgba(216,181,106,.22);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:16px 16px 14px;
}
.side-h .brand{
  font-family:var(--serif);
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--gold2);
  font-size:18px;
}
.side-h .sub{
  margin-top:8px;
  color:var(--muted);
  font-family:var(--serif2);
  font-size:15px;
}

.side-collapsible{
  margin-top:14px;
  border:1px solid rgba(216,181,106,.18);
  border-radius:var(--radius2);
  background:rgba(0,0,0,.18);
  overflow:hidden;
}
.side-collapsible summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--serif);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:13px;
  color:rgba(243,240,233,.88);
  border-bottom:1px solid rgba(216,181,106,.18);
}
.side-collapsible summary::-webkit-details-marker{display:none}
.side-collapsible .chev{opacity:.75}
.nav{display:flex; flex-direction:column; padding:8px}
.nav a{
  display:flex; align-items:center; gap:10px;
  padding:10px 10px;
  border-radius:14px;
  color:rgba(243,240,233,.84);
  border:1px solid transparent;
}
.nav a:hover{ text-decoration:none; border-color:rgba(216,181,106,.22); background:rgba(0,0,0,.18) }
.nav a.active{ border-color:rgba(216,181,106,.35); background:rgba(0,0,0,.22); color:var(--gold2)}
.nav .dot{
  width:8px; height:8px; border-radius:50%;
  background:rgba(216,181,106,.35);
}
.nav a.active .dot{background:var(--gold2)}

/* Main + hero */
.main{
  background:rgba(0,0,0,.10);
  border:1px solid rgba(216,181,106,.16);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero{
  padding:24px 24px 18px;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(216,181,106,.16), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.12));
  border-bottom:1px solid rgba(216,181,106,.18);
  text-align:center;
}
@media (max-width:980px){ .hero{padding:18px 16px 14px} }

.kicker{
  font-family:var(--serif);
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(240,213,143,.78);
  font-size:12px;
}
.hero h1{
  margin:10px 0 0;
  font-family:var(--serif);
  letter-spacing:.02em;
  font-weight:700;
  font-size:clamp(26px, 3.2vw, 44px);
  color:var(--gold2);
  text-shadow:0 10px 34px rgba(0,0,0,.55);
}
.hero .thesis{
  margin:12px auto 0;
  max-width:980px;
  font-family:var(--serif2);
  font-size:18px;
  color:rgba(243,240,233,.86);
}
.hero-crest{
  margin:10px auto 8px;
  max-width:520px;
}
.hero-crest img{
  width:min(520px, 86vw);
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.55));
}
.hero-ornament{
  margin:14px auto 0;
  width:min(520px, 86vw);
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(216,181,106,.55), transparent);
}

/* Content */
.section{padding:22px 24px}
@media (max-width:980px){ .section{padding:18px 16px} }

.prose{max-width:980px; margin:0 auto}
.prose{ text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.prose p{margin:0 0 1em}
.prose h2,.prose h3{
  font-family:var(--serif);
  color:var(--gold2);
  letter-spacing:.02em;
  margin:1.6em 0 .6em;
}
.prose h2{font-size:26px}
.prose h3{font-size:20px; color:rgba(240,213,143,.92)}
.prose blockquote{
  margin:18px 0;
  padding:14px 16px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(216,181,106,.22);
  border-left:4px solid rgba(216,181,106,.55);
  border-radius:14px;
  color:rgba(243,240,233,.9);
}
.prose code{
  padding:.15em .35em;
  border-radius:8px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(216,181,106,.18);
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.95em;
}
hr{
  border:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(216,181,106,.40), transparent);
  margin:22px 0;
}

/* Cards / callouts (existing classnames in pages) */
.card{
  background:rgba(0,0,0,.26);
  backdrop-filter: blur(8px);
  border:1px solid rgba(216,181,106,.20);
  border-radius:18px;
  padding:16px;
  box-shadow:0 18px 46px rgba(0,0,0,.35);
}
.card + .card{margin-top:14px}

.grid{display:grid; gap:14px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:980px){ .grid.two{grid-template-columns:1fr} }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(216,181,106,.25);
  background:rgba(0,0,0,.18);
  font-size:13px;
  color:rgba(243,240,233,.82);
  font-family:var(--serif);
  letter-spacing:.10em;
  text-transform:uppercase;
}
.badge .b{color:var(--gold2)}

/* "On this page" (auto-generated by assets/js/layout.js) */
.onpage{
  padding:14px 14px 12px;
}
.onpage-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.onpage-title{
  font-family:var(--serif);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
  color:rgba(240,213,143,.90);
}
.onpage-toggle{
  appearance:none;
  border:1px solid rgba(216,181,106,.30);
  background:rgba(0,0,0,.18);
  color:rgba(243,240,233,.90);
  border-radius:999px;
  padding:8px 12px;
  font-family:var(--serif);
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
  cursor:pointer;
}
.onpage-toggle:hover{
  background:rgba(0,0,0,.26);
  border-color:rgba(216,181,106,.42);
}
.onpage-toggle:focus{outline:2px solid rgba(240,213,143,.35); outline-offset:2px}

.onpage-nav{
  display:grid;
  gap:8px;
}
.onpage-nav a{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(216,181,106,.16);
  background:rgba(0,0,0,.14);
  color:rgba(243,240,233,.86);
  text-decoration:none;
  line-height:1.3;
}
.onpage-nav a:hover{
  border-color:rgba(216,181,106,.26);
  background:rgba(0,0,0,.22);
}
.onpage-nav a.active{
  border-color:rgba(240,213,143,.42);
  background:rgba(240,213,143,.08);
  color:var(--gold2);
}
.onpage-nav a::before{
  content:"";
  width:8px;
  height:8px;
  margin-top:5px;
  border-radius:999px;
  background:rgba(240,213,143,.42);
  flex:0 0 8px;
}
.onpage-nav a.l3{padding-left:20px; font-family:var(--serif2); font-size:16px}
.onpage-nav a.l2{font-family:var(--serif2); font-size:17px}

/* Paragraph mark anchor on headings */
.has-anchor{position:relative}
.has-anchor .anchor{
  margin-left:.45em;
  opacity:.55;
  font-size:.85em;
  color:rgba(240,213,143,.85);
}
.has-anchor:hover .anchor{opacity:1}

/* Images in content */
.figure{
  margin:18px 0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(216,181,106,.18);
  background:rgba(0,0,0,.20);
}
.figure img{display:block; width:100%}
.figcap{
  padding:10px 12px;
  font-family:var(--serif2);
  color:rgba(243,240,233,.72);
  font-size:15px;
  border-top:1px solid rgba(216,181,106,.14);
}

/* Footer */
.site-footer{
  margin-top:8px;
  border-top:1px solid rgba(216,181,106,.18);
  background:linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.30));
}
.sf-wrap{
  max-width:1240px;
  margin:0 auto;
  padding:22px 22px 26px;
}
@media (max-width:980px){ .sf-wrap{padding:18px 16px 22px} }
.sf-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap:16px;
}
@media (max-width:980px){ .sf-grid{grid-template-columns:1fr} }

.sf-title{
  font-family:var(--serif);
  color:var(--gold2);
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:14px;
  margin-bottom:10px;
}
.sf-small{
  font-family:var(--serif2);
  color:rgba(243,240,233,.76);
  font-size:15px;
}
.sf-links a{
  display:block;
  padding:8px 0;
  border-bottom:1px solid rgba(216,181,106,.12);
  color:rgba(243,240,233,.84);
}
.sf-links a:hover{color:var(--gold2); text-decoration:none}
.sf-quote{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(216,181,106,.20);
  background:rgba(0,0,0,.18);
  font-family:var(--serif2);
  color:rgba(243,240,233,.85);
}
.sf-bottom{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(216,181,106,.16);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:rgba(243,240,233,.65);
  font-size:14px;
}
.sf-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-family:var(--serif);
  color:rgba(240,213,143,.78);
}
.sf-badge img{width:28px; height:28px; opacity:.95}

/* Compact footer variant (used site-wide) */
.site-footer--compact{ padding:12px 0 12px; }
.site-footer--compact .sf-grid,
.site-footer--compact .sf-bottom{ display:none !important; }

.site-footer--compact .sf-wrap{
  padding:18px 22px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
@media (max-width:980px){ .site-footer--compact .sf-wrap{ padding:14px 16px 12px; } }

.site-footer--compact .sf-left{
  opacity:.78;
  font-size:13px;
  white-space:nowrap;
}
.site-footer--compact .sf-left--center{ text-align:center; }

.site-footer--compact .sf-right{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:center;
  font-size:13px;
  text-align:center;
}
.site-footer--compact .sf-right--center{ justify-content:center; }

.site-footer--compact .sf-dot{ opacity:.35; }

.site-footer--compact .sf-seal{
  width:56px; height:56px;
  border-radius:999px;
  border:1px solid rgba(240,213,143,.55);
  box-shadow:0 10px 30px rgba(0,0,0,.45);
  overflow:hidden;
  flex:0 0 auto;
  background:rgba(0,0,0,.18);
}

.site-footer--compact .sf-seal--lg{
  width:160px;
  height:160px;
  border:1px solid rgba(240,213,143,.65);
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(0,0,0,.35);
  background: radial-gradient(closest-side, rgba(255,255,255,.08), rgba(0,0,0,.22));
}

.site-footer--compact .sf-seal img{
  width:100%; height:100%;
  object-fit:cover;
  transform:scale(1.06);
  filter:saturate(1.1) contrast(1.05);
}

.site-footer--compact .sf-tagline{
  text-align:center;
  margin-top:8px;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.75;
  font-family:var(--serif);
  color:rgba(240,213,143,.78);
}

@media (max-width:560px){
  .site-footer--compact .sf-seal--lg{ width:128px; height:128px; }
}

@media (max-width:720px){
  .site-footer--compact .sf-compact{ flex-direction:column; }
  .site-footer--compact .sf-right{ justify-content:center; }
}

/* --- Reference pills + verse preview popover (restored) --- */
a.ref-pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.18rem .60rem;
  border-radius:999px;
  text-decoration:none;
  border:1px solid rgba(216,181,106,.35);
  background:rgba(0,0,0,.18);
  line-height:1.2;
  white-space:nowrap;
  font-size:14px;
  color:var(--gold2);
  box-shadow:0 10px 28px rgba(0,0,0,.25);
}
a.ref-pill:hover{ background:rgba(0,0,0,.28); text-decoration:none; }
a.ref-pill:focus{ outline:2px solid rgba(240,213,143,.35); outline-offset:2px; }

.verse-pop{
  position:absolute;
  z-index:9999;
  display:none;
  width:min(520px, calc(100vw - 20px));
}
.verse-pop.is-open{ display:block; }
.verse-pop__card{
  border-radius:16px;
  border:1px solid rgba(216,181,106,.28);
  background:rgba(7,10,16,.96);
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  overflow:hidden;
  backdrop-filter: blur(10px);
}
.verse-pop__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid rgba(216,181,106,.18);
}
.verse-pop__title{
  font-weight:700;
  font-size:14px;
  color:rgba(243,240,233,.95);
}
.verse-pop__close{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  opacity:.85;
}
.verse-pop__close:hover{ opacity:1; }
.verse-pop__body{
  padding:10px 12px 12px;
  max-height:420px;
  overflow:auto;
  font-family:var(--serif2);
}
.verse-pop__loading{ opacity:.85; font-size:13px; }
.verse-pop__error{ font-size:13px; opacity:.95; }
.verse-pop__meta{
  display:flex;
  gap:8px;
  align-items:baseline;
  font-size:12px;
  opacity:.85;
  margin-bottom:8px;
}
.verse-pop__meta-label{ opacity:.75; }
.verse-pop__verses{ display:flex; flex-direction:column; gap:8px; }
.verse-line{
  display:flex;
  gap:10px;
  font-size:13px;
  line-height:1.35;
}
.verse-line.is-dim{ opacity:.50; }
.verse-line.is-hi{ opacity:1; font-weight:700; }
.verse-line.is-hi .verse-text{
  background:rgba(216,181,106,.10);
  border:1px solid rgba(216,181,106,.18);
  border-radius:12px;
  padding:6px 8px;
  display:inline;
}
.verse-num{
  width:2.2rem;
  flex:0 0 2.2rem;
  text-align:right;
  opacity:.75;
}
.verse-pop__actions{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
}
.verse-pop__open{
  font-size:12px;
  text-decoration:none;
  border:1px solid rgba(216,181,106,.28);
  border-radius:999px;
  padding:.25rem .65rem;
  background:rgba(0,0,0,.18);
  color:rgba(243,240,233,.88);
}
.verse-pop__open:hover{ background:rgba(0,0,0,.28); text-decoration:none; }


/* ---------- Spacing upgrades ---------- */
.main .content{
  padding: 44px 44px 34px;
}
@media (max-width: 980px){
  .main .content{ padding: 32px 22px 28px; }
}

/* ---------- Series map (restore “old way” tile look) ---------- */
.series-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top: 18px;
}
@media (max-width: 980px){ .series-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .series-grid{ grid-template-columns: 1fr; } }

.series-card{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(216,181,106,.22);
  min-height: 168px;
  text-decoration:none;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow: 0 18px 60px rgba(0,0,0,.42);
  transform: translateZ(0);
}
.series-card::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(255,210,120,.26), transparent 58%),
    linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.78));
  opacity:.92;
}
.series-card:hover{
  border-color: rgba(216,181,106,.38);
  transform: translateY(-2px);
}
.series-card:hover::before{ opacity:.86; }

.series-card__content{ position:relative; padding:16px 16px 18px; }
.series-card__num{ font-weight:800; letter-spacing:.14em; opacity:.95; }
.series-card__title{ font-size:18px; font-weight:800; margin-top:6px; line-height:1.2; }
.series-card__sub{ opacity:.86; margin-top:8px; max-width: 42ch; }

/* ---------- Footer seal (75% width) ---------- */
.site-footer--compact .sf-seal.sf-seal--lg,
.site-footer--compact .sf-seal.sf-seal--xl{
  width:100%;
  height:auto;
  border-radius: 24px;
  border:1px solid rgba(216,181,106,.28);
  background: rgba(0,0,0,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  overflow:hidden;
  padding: 18px 14px;
}
.site-footer--compact .sf-seal.sf-seal--lg img,
.site-footer--compact .sf-seal.sf-seal--xl img{
  display:block;
  width:75%;
  max-width: 900px;
  height:auto;
  margin: 0 auto;
  filter:saturate(1.08) contrast(1.06);
}


.callout{padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(0,0,0,.18)}



/* --- Readability pass (layout + typography) --- */
:root{
  --dd-text-size: 1.06rem;
  --dd-line: 1.75;
  --dd-card-pad: 26px;
  --dd-card-gap: 18px;
}

/* Global text rhythm */
body{
  line-height: var(--dd-line);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep paragraphs comfortable */
p, li{
  font-size: var(--dd-text-size);
  line-height: var(--dd-line);
}

/* Headings: add breathing room */
h1{ margin: 0 0 14px 0; line-height: 1.15; }
h2{ margin: 0 0 12px 0; line-height: 1.2; }
h3{ margin: 0 0 10px 0; line-height: 1.25; }

/* Cards and section spacing */
.card{
  padding: var(--dd-card-pad) !important;
}
.card + .card{
  margin-top: var(--dd-card-gap) !important;
}
.dd-section{
  padding-top: 26px !important;
  padding-bottom: 26px !important;
}

/* Content width: prevent overly wide lines on desktop */
.main, main, .container, .wrap{
  max-width: 1100px;
}
.card p, .card li{
  max-width: 75ch;
}

/* Lists: a touch more space */
ul, ol{
  margin: 10px 0 14px 22px;
}
li{ margin: 6px 0; }

/* Buttons/CTA rows: align with bigger padding */
.cta-row{
  margin-top: 14px;
}

/* Callouts and refs spacing */
.callout{
  margin-top: 14px;
  padding: 14px 16px;
}
.refs{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ref-pill{
  padding: 8px 12px;
}

/* "On This Page" / TOC readability if present */
.toc, .on-this-page, .page-nav{
  margin-top: 14px;
}
.toc a, .on-this-page a, .page-nav a{
  display: inline-block;
  margin: 6px 10px 0 0;
}

/* Menu opacity tweak: reduce transparency a bit for readability */
nav, .nav, .top-nav, header nav{
  background-color: rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(10px);
}

/* If links are too faint, bump opacity slightly */
nav a, header nav a{
  opacity: 0.92;
}
nav a:hover, header nav a:hover{
  opacity: 1;
}
