/* 1xbet8c.lol — 1xBet / 1хБет · концепт «Икс-Скрипторий». Палитра: пергамент + сусальное золото + лазурит + киноварь */

:root {
  --bg: #120f0a;
  --bg-2: #1c1810;
  --bg-3: #262017;
  --line: #372e1f;
  --line-2: #564730;
  --txt: #f1ead9;
  --txt-d: #c8b99a;
  --txt-dd: #8a7a5a;
  --gold: #d8b24a;
  --gold-2: #e0bd55;
  --lapis: #3a6ea5;
  --verm: #9c3b34;
  --minium: #c2562f;
  --r: 12px;
  --r-s: 8px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font: 16px/1.66 "STIX Two Text", ui-serif, Georgia, "Times New Roman", serif;
  color: var(--txt);
  background:
    radial-gradient(1000px 560px at 90% -12%, rgba(216, 178, 74, .13) 0%, transparent 62%),
    radial-gradient(820px 560px at -10% 58%, rgba(58, 110, 165, .10) 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto }
a { color: var(--gold); text-decoration: none }
a:hover { text-decoration: underline }

.skipquill {
  position: absolute; top: -44px; left: 8px;
  padding: 8px 12px; background: var(--gold); color: #160f04;
  border-radius: 6px; z-index: 100; font-weight: 700;
}
.skipquill:focus { top: 8px }

/* ===== HEADER BAR ===== */
.scriptbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 15, 10, .85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.scriptbar__mark { display: flex; align-items: center; gap: 11px; color: var(--txt) }
.scriptbar__mark:hover { text-decoration: none }
.scriptbar__glyph {
  width: 30px; height: 30px; flex: none;
  filter: drop-shadow(0 0 9px rgba(216, 178, 74, .5));
}
.scriptbar__name {
  font-family: "Pirata One", "STIX Two Text", serif;
  font-weight: 400; line-height: 1; letter-spacing: .3px; font-size: 22px;
}
.scriptbar__sub {
  display: block; font-size: 10px; color: var(--txt-d);
  letter-spacing: 2.2px; font-weight: 600; margin-top: 5px;
  text-transform: uppercase; font-family: "STIX Two Text", serif;
}
.scriptbar__nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap }
.scriptbar__nav a {
  color: var(--txt-d); font-size: 14px; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.scriptbar__nav a:hover { color: var(--gold); border-bottom-color: var(--gold); text-decoration: none }

/* ===== BUTTONS (scribebtn) ===== */
.scribebtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 8px;
  font-family: "STIX Two Text", serif;
  font-weight: 700; font-size: 14px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer; letter-spacing: .1px;
}
.scribebtn:hover { text-decoration: none; transform: translateY(-1px) }
.scribebtn--small { background: var(--bg-3); color: var(--txt); border-color: var(--line) }
.scribebtn--small:hover { background: var(--bg-2); border-color: var(--gold) }
.scribebtn--big { padding: 15px 28px; font-size: 15px; border-radius: 10px }
.scribebtn--hot {
  background: linear-gradient(120deg, var(--gold-2) 0%, var(--lapis) 100%);
  color: #160f04; border: 0;
  box-shadow: 0 12px 30px -10px rgba(216, 178, 74, .6);
  font-weight: 700;
}
.scribebtn--hot:hover { box-shadow: 0 16px 38px -8px rgba(216, 178, 74, .85) }
.scribebtn--ghost { background: transparent; color: var(--txt); border-color: var(--line) }
.scribebtn--ghost:hover { border-color: var(--gold); color: var(--gold) }

/* ===== AGGREGATE STRIP (vellumstrip) ===== */
.vellumstrip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(216, 178, 74, .05), rgba(58, 110, 165, .04));
  font-size: 13px;
}
.vellumstrip__cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 14px;
  border-right: 1px solid var(--line);
  align-items: flex-start;
}
.vellumstrip__cell:last-child { border-right: 0 }
.vellumstrip__num {
  font-family: "Pirata One", serif;
  font-weight: 400; font-size: 18px; color: var(--gold);
  letter-spacing: .3px;
}
.vellumstrip__lbl { font-size: 11px; color: var(--txt-d); letter-spacing: .6px; text-transform: uppercase }

/* ===== HERO (quirebox) ===== */
.quirebox {
  display: grid; grid-template-columns: 1.18fr 1fr; gap: 36px;
  padding: 48px 22px 32px;
  max-width: 1240px; margin: 0 auto;
  align-items: center;
}
.gildtag {
  display: inline-block;
  font-size: 11px; letter-spacing: 1.4px; color: var(--gold);
  background: rgba(216, 178, 74, .09);
  border: 1px solid rgba(216, 178, 74, .28);
  padding: 6px 12px; border-radius: 4px;
  margin: 0 0 18px;
  text-transform: uppercase; font-weight: 700;
}
.gildtag--alt { color: var(--lapis); border-color: rgba(58, 110, 165, .35); background: rgba(58, 110, 165, .08) }
h1 {
  font-family: "Pirata One", "STIX Two Text", serif;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1;
  margin: 0 0 18px; letter-spacing: .2px; font-weight: 400;
}
.initialtag { color: var(--gold) }
.quirebox__sub {
  color: var(--txt-d); font-size: 16px; margin: 0 0 14px; line-height: 1.68;
}
.quirebox__btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px }
.quirebox__pic { margin: 0 }
.quirebox__svg {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1px solid var(--line);
  background:
    radial-gradient(420px 320px at 28% 30%, rgba(216, 178, 74, .2), transparent 60%),
    radial-gradient(360px 280px at 78% 78%, rgba(58, 110, 165, .16), transparent 65%),
    linear-gradient(135deg, #161109 0%, #201a10 100%);
  aspect-ratio: 16 / 11;
  box-shadow: 0 24px 64px -22px rgba(216, 178, 74, .38);
}
.quirebox__pic figcaption {
  margin-top: 12px; font-size: 12px; color: var(--txt-dd);
  font-style: italic; text-align: right;
}

/* hero KPI */
.quirebox__kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 18px 0 0; border-top: 1px solid var(--line);
}
.quirebox__kitem { display: flex; flex-direction: column; gap: 2px }
.quirebox__knum {
  font-family: "Pirata One", serif;
  font-size: 28px; font-weight: 400;
  color: var(--gold); letter-spacing: .3px;
}
.quirebox__klbl { font-size: 11px; color: var(--txt-d); text-transform: uppercase; letter-spacing: 1.1px }

/* ===== SECTIONS GENERAL ===== */
section {
  max-width: 1240px; margin: 0 auto;
  padding: 56px 22px;
}
section.quirebox, section.rubricbox { padding-top: 36px }
h2 {
  font-family: "Pirata One", "STIX Two Text", serif;
  font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2;
  margin: 0 0 16px; letter-spacing: .2px; font-weight: 400;
}
h3 {
  font-family: "Pirata One", "STIX Two Text", serif;
  font-size: clamp(17px, 2vw, 22px); line-height: 1.34;
  margin: 26px 0 10px; color: var(--gold); font-weight: 400; letter-spacing: .2px;
}
p { margin: 0 0 14px; color: var(--txt) }
.quirebox__lead { color: var(--txt-d); font-size: 16px; margin-bottom: 24px; max-width: 800px }

/* ===== WELCOME (rubricbox / psalterbox) ===== */
.rubricbox {
  background:
    radial-gradient(720px 360px at 82% 28%, rgba(216, 178, 74, .07) 0%, transparent 70%),
    rgba(28, 24, 16, .55);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 32px 22px;
  max-width: none;
}
.rubricbox__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 22px 0 24px;
}
.psalterbox {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.psalterbox:hover { border-color: var(--gold); transform: translateY(-2px) }
.psalterbox::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(216, 178, 74, .07), transparent 60%);
  pointer-events: none;
}
.psalterbox__step {
  font-family: "Pirata One", serif;
  font-size: 13px; color: var(--lapis); font-weight: 400;
  letter-spacing: 1.6px; margin-bottom: 8px; text-transform: uppercase;
}
.psalterbox__pct {
  font-family: "Pirata One", serif;
  font-size: 32px; font-weight: 400; line-height: 1;
  color: var(--gold); letter-spacing: .3px;
  margin-bottom: 8px;
}
.psalterbox__title { font-weight: 700; font-size: 15px; margin-bottom: 6px }
.psalterbox__sub { font-size: 13px; color: var(--txt-d); line-height: 1.55 }
.psalterbox--note { background: rgba(28, 24, 16, .5); border: 1px solid var(--line); border-radius: var(--r); margin: 0 22px 8px; padding: 28px 26px }
.psalterbox--note .quirebox__lead { margin-bottom: 0; max-width: none }

/* ===== THREE STEPS (steproom / minimbox) ===== */
.steproom__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 22px;
}
.minimbox--step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  position: relative;
}
.minimbox__num {
  font-family: "Pirata One", serif;
  position: absolute; top: 12px; right: 22px;
  font-size: 58px; font-weight: 400; line-height: 1;
  color: var(--bg-3);
}
.minimbox__head {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
  color: var(--gold); font-family: "Pirata One", serif; letter-spacing: .3px;
}
.minimbox--step p { color: var(--txt-d); font-size: 14px; margin: 0 }

/* ===== SLOT GRID (gallrow / foliocard) ===== */
.gallrow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin: 24px 0;
}
.foliocard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .15s, border-color .2s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.foliocard:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px -14px rgba(216, 178, 74, .4);
}
.foliocard__cover {
  width: 100%; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-family: "Pirata One", serif;
  font-weight: 400; font-size: 24px; color: rgba(241, 234, 217, .92);
  text-align: center; padding: 14px;
  letter-spacing: .4px; line-height: 1.15;
  position: relative; overflow: hidden;
}
.foliocard__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
}
.foliocard h3 { font-size: 15px; margin: 12px 14px 4px; color: var(--txt); font-weight: 700; font-family: "STIX Two Text", serif }
.foliocard p { font-size: 12px; color: var(--txt-d); margin: 0 14px 12px; line-height: 1.4 }
.foliocard__btn {
  display: block; padding: 10px;
  margin: auto 12px 12px;
  background: var(--bg-3); color: var(--txt);
  text-align: center; border-radius: 6px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); transition: all .15s;
}
.foliocard__btn:hover { background: var(--gold); border-color: var(--gold); color: #160f04; text-decoration: none }

/* gradient utility for slot covers — palette recoloured */
.cv-1 { background: linear-gradient(135deg, #2a1f06 0%, #d8b24a 100%); color: #160f04 }
.cv-2 { background: linear-gradient(135deg, #0e2236 0%, #3a6ea5 100%) }
.cv-3 { background: linear-gradient(135deg, #2e110d 0%, #9c3b34 100%) }
.cv-4 { background: linear-gradient(135deg, #2a1407 0%, #c2562f 100%) }
.cv-5 { background: linear-gradient(135deg, #2a2008 0%, #e0bd55 100%); color: #160f04 }
.cv-6 { background: linear-gradient(135deg, #102232 0%, #5d8fc0 100%) }
.cv-7 { background: linear-gradient(135deg, #261d09 0%, #b89236 100%); color: #160f04 }
.cv-8 { background: linear-gradient(135deg, #0c1c2e 0%, #4a7fb2 100%) }
.cv-9 { background: linear-gradient(135deg, #2c130e 0%, #b14a40 100%) }
.cv-10 { background: linear-gradient(135deg, #2a1808 0%, #d6913f 100%) }
.cv-11 { background: linear-gradient(135deg, #2a2109 0%, #d8b24a 100%); color: #160f04 }
.cv-12 { background: linear-gradient(135deg, #14283c 0%, #3a6ea5 100%) }

/* provider/mechanic chips (glossrow) */
.glossrow { margin: 22px 0 0 }
.glossrow__title { font-size: 12px; color: var(--lapis); margin-bottom: 10px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 700 }
.glossrow__list { display: flex; flex-wrap: wrap; gap: 8px }
.glossrow__list span {
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px; color: var(--txt-d);
}

/* ===== LOYALTY (loyaltysec / colophonbox / minimladder) ===== */
.loyaltysec__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 22px;
}
.colophonbox {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  transition: border-color .2s;
}
.colophonbox:hover { border-color: var(--lapis) }
.colophonbox__h { font-weight: 700; font-size: 17px; margin-bottom: 10px; color: var(--gold); font-family: "Pirata One", serif; letter-spacing: .3px }
.colophonbox p { color: var(--txt-d); font-size: 14px; margin: 0; line-height: 1.62 }

/* VIP ladder staircase — offsets 0/-5/-12/-18/-26/-36 */
.minimladder {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px; margin-top: 14px;
}
.minimladder__step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  position: relative;
}
.minimladder__step:nth-child(1) { transform: translateY(0) }
.minimladder__step:nth-child(2) { transform: translateY(-5px) }
.minimladder__step:nth-child(3) { transform: translateY(-12px) }
.minimladder__step:nth-child(4) { transform: translateY(-18px); border-color: var(--gold); background: var(--bg-2) }
.minimladder__step:nth-child(5) { transform: translateY(-26px); border-color: var(--gold); background: var(--bg-2) }
.minimladder__step:nth-child(6) { transform: translateY(-36px); border-color: var(--lapis); background: linear-gradient(135deg, var(--bg-2), rgba(58, 110, 165, .12)) }
.minimladder__name {
  font-family: "Pirata One", serif;
  font-size: 13px; font-weight: 400; color: var(--txt);
  display: block; line-height: 1.05; margin-bottom: 5px; letter-spacing: .2px;
}
.minimladder__cb { font-size: 11px; color: var(--txt-d) }
.minimladder__step:nth-child(6) .minimladder__name { color: var(--lapis) }

/* ===== TOURNAMENT (toursec / marginalcard) ===== */
.toursec {
  background:
    radial-gradient(640px 360px at 50% 50%, rgba(216, 178, 74, .1) 0%, transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 32px 22px; max-width: none;
  text-align: center;
}
.toursec__btns { margin: 22px 0 28px }
.marginrow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 22px;
}
.marginalcard {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.marginalcard span {
  font-family: "Pirata One", serif;
  font-size: 24px; font-weight: 400; color: var(--gold);
  margin-bottom: 4px; letter-spacing: .3px;
}
.marginalcard em { font-size: 14px; font-weight: 700; color: var(--txt); font-style: normal }
.marginalcard i { font-size: 12px; color: var(--txt-d); font-style: normal; line-height: 1.4 }

/* ===== LIVE GALLERY (livesec / illumcard) ===== */
.illumrow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin-top: 22px;
}
.illumcard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  transition: transform .15s, border-color .2s, box-shadow .25s;
}
.illumcard:hover {
  transform: translateY(-3px);
  border-color: var(--verm);
  box-shadow: 0 18px 36px -14px rgba(156, 59, 52, .42);
}
.illumcard__cover {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-family: "Pirata One", serif;
  font-weight: 400; font-size: 19px; color: rgba(241, 234, 217, .93);
  padding: 12px; text-align: center; letter-spacing: .3px;
  position: relative; overflow: hidden;
}
.lv-1 { background: linear-gradient(135deg, #0e2236 0%, #3a6ea5 100%) }
.lv-2 { background: linear-gradient(135deg, #2e110d 0%, #9c3b34 100%) }
.lv-3 { background: linear-gradient(135deg, #2a1f06 0%, #d8b24a 100%); color: #160f04 }
.lv-4 { background: linear-gradient(135deg, #2a1407 0%, #c2562f 100%) }
.lv-5 { background: linear-gradient(135deg, #102232 0%, #5d8fc0 100%) }
.lv-6 { background: linear-gradient(135deg, #2a2109 0%, #e0bd55 100%); color: #160f04 }

.illumcard__b { padding: 14px 16px 16px; position: relative }
.illumcard__t { font-weight: 700; font-size: 16px; margin-bottom: 4px }
.illumcard__s { font-size: 12px; color: var(--txt-d); margin-bottom: 10px }
.illumcard__m { font-size: 13px; color: var(--lapis); font-weight: 700; margin-bottom: 4px }
.illumcard__p { font-size: 12px; color: var(--txt-dd) }
.illumcard__live {
  position: absolute; top: 12px; right: 16px;
  background: var(--verm); color: #fff;
  padding: 3px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}

/* ===== BRAND OVERVIEW (codexbar / goldleafrow) ===== */
.codexbar h3 {
  border-left: 3px solid var(--gold);
  padding-left: 14px; margin-top: 30px;
}
.codexbar p { color: var(--txt); line-height: 1.72 }
.goldleafrow {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.initialtag-chip {
  padding: 7px 13px;
  background: var(--bg-2);
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: 12px; color: var(--txt);
  letter-spacing: .4px;
}

/* ===== REVIEWS (reviewssec / rubricbox--rev) ===== */
.reviewssec__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 22px;
}
.rubricbox--rev {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: visible;
}
.rubricbox--rev::before { display: none }
.rubricbox--rev:hover { transform: none; border-color: var(--line-2) }
.rubricbox__stars { color: var(--gold); font-size: 16px; letter-spacing: 4px }
.rubricbox__stars--four .star-off { color: var(--line-2) }
.rubricbox__q { font-size: 14px; line-height: 1.62; color: var(--txt); margin: 0 }
.rubricbox__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--txt-d);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.rubricbox__a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--lapis));
  border-radius: 50%; color: #160f04; font-weight: 700; font-size: 14px;
  flex: none; font-family: "Pirata One", serif;
}

/* ===== PAYMENTS (colophonsec / versorow / scriprow) ===== */
.colophonsec__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin: 22px 0 22px;
}
.versorow {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 18px 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.versorow__rail { font-size: 15px; color: var(--txt); font-weight: 700; font-family: "Pirata One", serif; letter-spacing: .3px }
.versorow i { font-size: 11px; color: var(--txt-d); font-style: normal; text-transform: uppercase; letter-spacing: 1px }

.scriprow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 8px;
}
.scriprow > div {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.scriprow__num {
  font-family: "Pirata One", serif;
  font-size: 17px; color: var(--gold); font-weight: 400; letter-spacing: .3px;
}
.scriprow i { font-size: 12px; color: var(--txt-d); font-style: normal }

/* ===== FINAL CTA (finalsec) ===== */
.finalsec {
  text-align: center; padding: 56px 22px;
  background:
    radial-gradient(620px 320px at 50% 50%, rgba(216, 178, 74, .14) 0%, transparent 70%),
    var(--bg-2);
  border-radius: var(--r);
  margin: 32px 22px;
  border: 1px solid var(--line);
  max-width: none;
}
.finalsec h2 { margin-bottom: 10px }
.finalsec p { color: var(--txt-d); margin-bottom: 24px }

/* ===== FAQ (quillrow) ===== */
.quillrow h2 { margin-bottom: 22px }
details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 16px 20px;
  margin: 0 0 10px;
  transition: border-color .2s;
}
details[open] { border-color: var(--gold) }
summary {
  cursor: pointer; font-weight: 700; list-style: none;
  position: relative; padding-right: 32px;
  display: flex; align-items: center; min-height: 24px;
}
summary::-webkit-details-marker { display: none }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gold); font-size: 16px;
  transition: transform .25s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); border-color: var(--gold) }
details p { margin: 12px 0 0; color: var(--txt-d); font-size: 15px; line-height: 1.66 }

/* ===== FOOTER (scriptofoot) ===== */
.scriptofoot {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(18, 15, 10, .6);
}
.scriptofoot__top {
  max-width: 1240px; margin: 0 auto;
  padding: 42px 22px 26px;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 36px;
}
.scriptofoot__brand { font-size: 14px; color: var(--txt-d); line-height: 1.65 }
.scriptofoot__logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.scriptofoot__title { display: flex; flex-direction: column; line-height: 1.1 }
.scriptofoot__brandname { color: var(--txt); font-size: 17px; font-weight: 400; margin-bottom: 2px; font-family: "Pirata One", serif; letter-spacing: .3px }
.scriptofoot__legal { font-size: 12px; color: var(--txt-dd); margin: 0; line-height: 1.65 }
.scriptofoot__op { color: var(--gold); font-weight: 600 }
.scriptofoot__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.scriptofoot__col h4 {
  font-family: "Pirata One", serif;
  font-size: 13px; color: var(--lapis); font-weight: 400;
  text-transform: uppercase; letter-spacing: 1.4px;
  margin: 0 0 12px;
}
.scriptofoot__col ul { list-style: none; padding: 0; margin: 0 }
.scriptofoot__col li {
  font-size: 13px; color: var(--txt-d);
  padding: 4px 0; cursor: default;
  transition: color .15s;
}
.scriptofoot__col li:hover { color: var(--txt) }
.scriptofoot__bottom {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--txt-dd);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .rubricbox__grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 1024px) {
  .colophonsec__grid { grid-template-columns: repeat(3, 1fr) }
  .marginrow { grid-template-columns: repeat(2, 1fr) }
  .reviewssec__grid { grid-template-columns: 1fr }
  .scriptofoot__top { grid-template-columns: 1fr }
  .vellumstrip { grid-template-columns: repeat(3, 1fr) }
  .vellumstrip__cell:nth-child(4), .vellumstrip__cell:nth-child(5) { border-top: 1px solid var(--line); padding-top: 8px }
  .minimladder { grid-template-columns: repeat(3, 1fr) }
  .minimladder__step { transform: none !important }
}

@media (max-width: 880px) {
  .quirebox { grid-template-columns: 1fr; gap: 24px; padding-top: 32px }
  .quirebox__pic { order: -1 }
  .scriptbar__nav { display: none }
  .scriptbar { padding: 11px 14px }
  section { padding: 36px 16px }
  .rubricbox, .toursec, .finalsec { padding: 36px 18px; margin: 22px 14px }
  .psalterbox--note { margin: 0 14px 8px }
  .steproom__grid { grid-template-columns: 1fr }
  .loyaltysec__grid { grid-template-columns: 1fr }
  .scriptofoot__top { padding: 30px 16px 22px; gap: 22px }
  .scriptofoot__cols { grid-template-columns: repeat(2, 1fr); gap: 18px }
  .vellumstrip { padding: 8px 14px; grid-template-columns: repeat(2, 1fr); font-size: 12px }
  .vellumstrip__cell { padding: 4px 10px }
  .scriprow { grid-template-columns: 1fr }
  .quirebox__kpi { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 480px) {
  .gallrow { grid-template-columns: repeat(2, 1fr); gap: 10px }
  .rubricbox__grid { grid-template-columns: 1fr }
  .illumrow { grid-template-columns: 1fr }
  .foliocard h3 { font-size: 13px }
  .foliocard p { font-size: 11px }
  .foliocard__cover { font-size: 18px }
  .quirebox__btns { flex-direction: column; align-items: stretch }
  .scribebtn--big { width: 100% }
  .colophonsec__grid { grid-template-columns: repeat(2, 1fr) }
  .marginrow { grid-template-columns: 1fr }
  .scriptofoot__cols { grid-template-columns: 1fr }
  .minimladder { grid-template-columns: repeat(2, 1fr) }
}

/* ===== HEADING FONT OVERRIDE (body serif must not leak into display headings) ===== */
h1, h2, h3,
.scriptbar__name, .scriptbar__brandname, .scriptofoot__brandname,
.vellumstrip__num, .quirebox__knum, .psalterbox__step, .psalterbox__pct,
.minimbox__num, .minimbox__head, .colophonbox__h, .foliocard__cover,
.illumcard__cover, .minimladder__name, .marginalcard span, .scriprow__num,
.versorow__rail, .scriptofoot__col h4, .rubricbox__a {
  font-family: "Pirata One", "STIX Two Text", ui-serif, Georgia, serif;
}
