:root, .theme-sins {
  --bg: #edd3a2;
  --surface: #f5e5c2;
  --text: #302016;
  --muted: #614934;
  --primary: #672923;
  --accent: #672923;
  --line: rgb(99 63 28 / .26);
  --radius: 10px;
  --title-font: "Cormorant Garamond", Georgia, serif;
  --body-font: Inter, system-ui, sans-serif;
  --edge: #a27a43;
  --gold-light: #81541e;
  --theme-border: #9b6748;
  --theme-ink: #642923;
  --theme-fill: #ead2aa;
  --theme-art: #87502e;
  --quiz-ground: #f5e5c2;
  --quiz-banner: #59231f;
  --quiz-rule: #b18a5d;
  --quiz-rail: #97634e;
  --quiz-active: #6d2926;
  --quiz-ornament: #ba7b73;
  --quiz-mark-radius: 2px;
  --quiz-crest-inset: #77463a;
  --dark-panel: #51221e;
  --dark-line: #ae7751;
  --dark-accent: #f1cd94;
  --dark-muted: #e9d3b2;
  --dark-track: #91624e;
}
.theme-virtues {
  --theme-border: #987b43;
  --theme-ink: #72501c;
  --theme-fill: #e8d5a5;
  --theme-art: #9c6c28;
  --quiz-ground: #f5e5c2;
  --quiz-banner: #55401d;
  --quiz-rule: #b69a61;
  --quiz-rail: #947448;
  --quiz-active: #76501d;
  --quiz-ornament: #bfaa6e;
  --quiz-mark-radius: 50%;
  --quiz-crest-inset: #775d31;
  --dark-panel: #3e321d;
  --dark-line: #a78a51;
  --dark-accent: #f3d89b;
  --dark-muted: #e9d3b2;
  --dark-track: #917342;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body-font); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--title-font); line-height: 1.04; font-weight: 700; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.site-width, .reading-width { width: calc(100% - 32px); margin-inline: auto; }
.site-width { max-width: 1120px; }
.reading-width { max-width: 744px; }
.skip-link { position: absolute; z-index: 2; inset: 8px auto auto 8px; transform: translateY(-150%); background: var(--text); color: var(--bg); padding: 8px 12px; }
.skip-link:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; }
.masthead-inner { min-height: 56px; }
.wordmark { color: var(--text); font: 700 23px/1 var(--title-font); white-space: nowrap; text-decoration: none; }
.wordmark span { color: var(--primary); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: 13px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold-light); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.intro { display: flex; align-items: end; gap: 16px; justify-content: space-between; padding: 24px 0 20px; }
.intro h1 { font-size: clamp(32px, 6.8vw, 68px); letter-spacing: -.025em; }
.edition, .result-kicker { color: var(--gold-light); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.edition { margin-bottom: 8px; }
.edition span { color: var(--primary); }
.intro-description { margin-top: 8px; max-width: 58ch; color: var(--muted); font-size: 14px; }
.intro-emblem { display: none; }
.quiz-panel { border: 1px solid var(--theme-border); border-radius: var(--radius); position: relative; background: var(--quiz-ground); scroll-margin-top: 16px; overflow: hidden; }

.quiz-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--quiz-rule); background: var(--quiz-banner); }
.quiz-progress p { color: var(--theme-ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quiz-progress progress { width: min(29%, 108px); height: 5px; appearance: none; background: var(--quiz-ground); color: var(--quiz-active); border: 0; border-radius: 20px; }
.quiz-progress progress::-webkit-progress-bar { background: var(--quiz-ground); border-radius: 20px; }
.quiz-progress progress::-webkit-progress-value { background: var(--quiz-active); border-radius: 20px; }
.quiz-progress progress::-moz-progress-bar { background: var(--quiz-active); border-radius: 20px; }
.quiz-questions { padding: 16px; }
.quiz-questions fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-questions legend { display: block; width: 100%; margin: 0 0 14px; padding: 0; color: var(--text); font: 600 27px/1.12 var(--title-font); }
.question-slot, .question-measure { display: grid; }
.question-slot > *, .question-measure > * { grid-area: 1 / 1; }
.question-measure { visibility: hidden; }
[data-prompt] { align-self: start; }
.quiz-ornament { position: absolute; inset: 46px 7px auto auto; width: clamp(108px, 32%, 202px); color: var(--quiz-ornament); opacity: .31; pointer-events: none; }
.quiz-panel:has([data-quiz][hidden]) .quiz-ornament { display: none; }
.quiz { position: relative; }
.likert { --thumb-size: 26px; --level: 2; }
.scale-value { min-height: 24px; color: var(--theme-ink); font-size: 14px; font-weight: 600; }
.likert:not([data-answered]) .scale-value { color: var(--muted); }
.scale-control { position: relative; height: 54px; }
.scale-rail { display: flex; align-items: center; justify-content: space-between; position: absolute; inset: 0 calc(var(--thumb-size) / 2); pointer-events: none; }
.scale-rail::before, .scale-rail::after { position: absolute; inset: calc(50% - 2px) 0 auto; height: 4px; border-radius: 4px; content: ""; }
.scale-rail::before { background: var(--quiz-rail); }
[data-answered] .scale-rail::after { right: auto; width: calc(var(--level) * 25%); background: var(--quiz-active); }
.scale-rail > span { z-index: 1; display: grid; place-items: center; width: 0; height: 0; }
.scale-rail > span::before { width: 8px; height: 8px; border: 1px solid var(--theme-ink); border-radius: var(--quiz-mark-radius); background: var(--quiz-ground); transform: translate(-50%, -50%); content: ""; }
.scale-input { appearance: none; position: relative; z-index: 2; display: block; width: 100%; height: 54px; margin: 0; padding: 0; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; touch-action: pan-y; }
.scale-input::-webkit-slider-runnable-track { height: var(--thumb-size); background: transparent; }
.scale-input::-moz-range-track { height: var(--thumb-size); background: transparent; }
.scale-input::-webkit-slider-thumb { appearance: none; width: var(--thumb-size); height: var(--thumb-size); border: 2px solid var(--quiz-active); border-radius: 50%; background: var(--quiz-ground); }
.scale-input::-moz-range-thumb { width: calc(var(--thumb-size) - 4px); height: calc(var(--thumb-size) - 4px); border: 2px solid var(--quiz-active); border-radius: 50%; background: var(--quiz-ground); }
[data-answered] .scale-input::-webkit-slider-thumb { background: var(--quiz-active); box-shadow: inset 0 0 0 4px var(--quiz-ground); }
[data-answered] .scale-input::-moz-range-thumb { background: var(--quiz-active); box-shadow: inset 0 0 0 4px var(--quiz-ground); }
.scale-ends { display: flex; justify-content: space-between; gap: 8px; margin-top: -3px; color: var(--muted); font-size: 12px; }
.scale-ends span:last-child { text-align: right; }
.quiz-controls { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
.quiz-controls button { min-height: 44px; padding: 6px 12px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--theme-ink); font-size: 13px; font-weight: 600; }
.quiz-controls [data-back] { padding-left: 0; }
.quiz-controls [data-back]:hover:not(:disabled), .related-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.quiz-controls [data-next] { min-width: 122px; border-color: var(--quiz-active); background: var(--quiz-active); color: #fff0d2; }
.quiz-controls [data-next]:hover:not(:disabled) { filter: brightness(1.08); }
.quiz-controls button:disabled { color: var(--muted); cursor: default; }
.quiz-controls [data-next]:disabled { border-color: var(--quiz-rule); background: var(--theme-fill); color: #65472f; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (forced-colors: active) {
  .scale-rail { display: none; }
  .scale-input, .scale-input::-webkit-slider-thumb { appearance: auto; }
  .quiz-controls [data-next]:disabled { color: GrayText; border-color: GrayText; }
}
.noscript-note { padding: 12px 16px; }
.result-inner { padding: 0 16px 20px; }
.result-crest { display: grid; justify-items: center; position: relative; gap: 6px; margin: 0 -16px; padding: 24px 16px 20px; color: var(--text); background: var(--theme-fill); border-bottom: 1px solid var(--theme-border); text-align: center; }
.result-crest { box-shadow: inset 0 0 0 5px var(--quiz-crest-inset); }
.result-crest::before, .result-crest::after { position: absolute; top: 17px; width: 8px; height: 8px; border: 1px solid var(--theme-art); border-radius: var(--quiz-mark-radius); content: ""; }
.result-crest::before { left: 18px; }
.result-crest::after { right: 18px; }
.theme-sins .result-crest::before, .theme-sins .result-crest::after { transform: rotate(45deg); }
.result-crest h2 { max-width: 20ch; font-size: clamp(37px, 8vw, 62px); }
.result-art { width: 112px; color: var(--theme-art); }
.result-art svg, .related-art svg, .intro-emblem svg, .sample-art svg { display: block; width: 100%; height: auto; }
.result-summary { max-width: 45ch; color: #e0d3c4; font-size: 14px; }
.result-scores { padding-top: 20px; }
.result-scores .dimension-scores-heading { display: block; margin: 0 0 12px; font-family: var(--title-font); line-height: 1.04; font-weight: 700; font-size: 27px; }
.score-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.score-line { display: grid; grid-template-columns: minmax(75px, 1fr) minmax(45px, 2fr) 3.5em; gap: 8px; align-items: center; font-size: 13px; }
.score-meter { display: block; height: 6px; background: var(--quiz-rail); border-radius: 20px; overflow: hidden; }
.score-fill { display: block; height: 100%; background: var(--quiz-active); border-radius: inherit; }
.score-number { text-align: right; font-variant-numeric: tabular-nums; color: var(--theme-ink); font-weight: 600; }
.result-context { margin: 16px 0; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 13px; }
.result-context p + p { margin-top: 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-actions button { min-height: 44px; border: 1px solid var(--edge); border-radius: var(--radius); background: transparent; color: var(--text); padding: 8px 12px; font-size: 13px; font-weight: 600; }
.result-actions button:hover { border-color: var(--gold-light); background: #30271b; }
.result-actions .primary-action { background: var(--quiz-active); border-color: var(--quiz-active); color: #fff0d2; }
.result-actions .primary-action:hover { background: var(--gold-light); }
.result-actions button:disabled { cursor: wait; opacity: .7; }
.feedback { margin-top: 8px; color: var(--muted); font-size: 13px; }
.feedback:empty { display: none; }
.share-url { width: 100%; margin-top: 8px; padding: 8px; border: 1px solid var(--edge); border-radius: var(--radius); color: var(--text); background: var(--bg); }
.export-preview { display:block; width:min(100%, 360px); height:auto; margin:12px auto; border-radius:4px; }
.sample-details { margin-top: 16px; border-top: 1px solid var(--line); }
.sample-details summary { padding-top: 10px; color: var(--gold-light); }
.sample-card { width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 12px auto 0; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; align-items: stretch; overflow: hidden; text-align: center; background: var(--theme-fill); border: 1px solid var(--theme-border); outline: 1px solid var(--theme-border); outline-offset: -6px; }
.sample-brand { color: var(--gold-light); font: 700 22px/1 var(--title-font); }
.sample-subtitle { color: var(--muted); font-size: 12px; }

.sample-card h3 { font-size: 31px; }
.sample-art { align-self: center; width: min(100%, 104px); color: var(--theme-art); }
.sample-scores { text-align: left; gap: 4px; }
.sample-scores .score-line { gap: 5px; font-size: 12px; grid-template-columns: minmax(69px, 1fr) minmax(20px, 1.4fr) 3.2em; }
.sample-summary { color: #e0d3c4; font-size: 12px; }
.sample-domain { color: var(--gold-light); font-weight: 600; font-size: 12px; }
.related-test { display: grid; grid-template-columns: 47px 1fr; align-items: center; gap: 0 12px; margin-top: 24px; border-block: 1px solid var(--line); padding-block: 12px; }
.related-art { grid-row: span 2; color: var(--gold-light); }
.theme-virtues .related-art { color: #d99b71; }
.related-test h2 { font-size: 26px; }
.related-test p { margin-top: 2px; color: var(--muted); font-size: 13px; }
.related-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; width: fit-content; color: var(--gold-light); text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 600; }
.editorial { margin: 40px 0 48px; }
.editorial-section { display: grid; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.editorial-section h2 { font-size: 29px; }
.editorial-section p, .dimension-list dd { color: var(--muted); font-size: 14px; }
.dimension-list { margin: 8px 0 0; }
.dimension-list div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.dimension-list dt { font-weight: 600; }
.dimension-list dd { margin: 0; }
summary { min-height: 44px; cursor: pointer; padding: 8px 0; font-size: 14px; font-weight: 600; }
.questions details + details { border-top: 1px solid var(--line); }
.questions details p { padding-bottom: 12px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 12px; }
@media (min-width: 640px) {
  .site-width, .reading-width { width: calc(100% - 48px); }
  .masthead-inner { min-height: 64px; }
  .wordmark { font-size: 28px; }
  .site-nav { gap: 0 26px; font-size: 14px; }
  .intro { padding-block: 34px 24px; }
  .intro-description { max-width: 56ch; font-size: 16px; }
  .intro-emblem { display: block; width: 100px; flex: 0 0 100px; color: var(--theme-art); opacity: .87; }
  .quiz-progress { padding-inline: 28px; }
  .quiz-questions { padding: 22px 28px 16px; }
  .quiz-questions legend { font-size: 34px; }
  .quiz-ornament { right: 12px; }
  .result-inner { padding: 0 28px 24px; }
  .result-crest { margin-inline: -28px; padding-block: 24px; }
  .result-art { width: 138px; }
  .related-test { grid-template-columns: 58px 1fr auto; gap: 0 16px; padding-block: 16px; }
  .related-art { grid-row: auto; }
  .editorial-section { grid-template-columns: 208px 1fr; gap: 16px; padding-block: 24px; }
}
@media (max-width: 350px) {
  .masthead-inner { flex-wrap: wrap; padding-top: 8px; }
  .quiz-controls { gap: 0 8px; }
  .sample-card { padding-inline: 11px; }
}


/* T05: spacing for the complete editorial text, scoped below the quiz. */
.editorial-copy h3 { margin-top: 1.35em; margin-bottom: .45em; font-size: 23px; color: var(--text); line-height: 1.18; }
.editorial-copy p + p { margin-top: .8em; }
.editorial-copy a { color: var(--gold-light); text-underline-offset: .15em; overflow-wrap: anywhere; }


/* T06: shared brand and original engraved art. */
.brand-wordmark { display:inline-flex; align-items:center; gap:8px; }
.brand-wordmark .brand-name {color:var(--text);}
.brand-wordmark .gf-site-icon {width:28px;height:28px;flex:0 0 28px;}
.result-art img, .related-art img, .intro-emblem img, .sample-art img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;}
@media(max-width:420px){.brand-wordmark{gap:5px;font-size:20px}.brand-wordmark .gf-site-icon{width:23px;height:23px;flex-basis:23px}.masthead-inner{gap:6px}.site-nav{gap:0 10px}}


/* Fixed-order result radar; share-card sample retains its original score layout. */
.dimension-radar-layout {display:grid;gap:16px;align-items:center;}
.dimension-radar {min-width:0;width:100%;max-width:420px;margin-inline:auto;}
.radar-chart {display:block;width:100%;height:auto;overflow:visible;}
.radar-grid,.radar-axis {fill:none;stroke:var(--theme-border);stroke-width:1;opacity:.55;}
.radar-grid-outer {opacity:.9;}
.radar-value {fill:var(--quiz-active);fill-opacity:.23;stroke:var(--quiz-active);stroke-width:2.4;stroke-linejoin:round;}
.radar-point {fill:var(--quiz-active);stroke:var(--quiz-ground);stroke-width:1.4;}
.radar-label {font-family:var(--body-font);font-size:15px;fill:var(--text);font-weight:600;}
.dimension-score-list {gap:0;}
.dimension-score-line {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px;}
.dimension-score-line:last-child {border-bottom:0;}
@media(min-width:640px){.dimension-radar-layout{grid-template-columns:minmax(0,1.8fr) minmax(115px,1fr);gap:20px;}}


/* T08: compact editorial legal pages, preserving existing quiz layouts. */
.legal-document { max-width:760px; margin:0 auto; padding:40px 16px 48px; }
.legal-heading { padding-bottom:24px; border-bottom:1px solid var(--line); }
.legal-heading h1 { font-family:var(--title-font); font-size:clamp(36px,6vw,56px); line-height:1.1; margin:0 0 12px; }
.legal-heading p { color:var(--muted); }
.legal-copy { line-height:1.75; font-size:15px; overflow-wrap:anywhere; }
.legal-copy h2 { font:700 27px/1.2 var(--title-font); color:var(--text); margin:28px 0 10px; }
.legal-copy p,.legal-copy ul { margin:0 0 12px; }
.legal-copy ul { padding-left:22px; }
.legal-copy a,.legal-return a { color:var(--gold-light); text-decoration:underline; text-underline-offset:3px; }
.legal-return { display:flex; flex-wrap:wrap; gap:12px 22px; border-top:1px solid var(--line); margin-top:30px; padding-top:18px; font-size:14px; }


/* T09 editorial refinement — existing collection tokens, below the quiz only. */
.related-test { margin-top:28px; padding:18px; border:1px solid var(--theme-border); border-radius:var(--radius); background:var(--quiz-ground); grid-template-columns:72px minmax(0,1fr); gap:8px 16px; }
.related-test .related-art { grid-row:1 / 3; width:72px; }
.related-test h2 { font-size:clamp(26px,4vw,34px); line-height:1.08; }
.related-test p:not(.section-kicker) { margin-top:7px; font-size:14px; line-height:1.55; }
.section-kicker, .related-test .section-kicker, .editorial-section .section-kicker { margin:0 0 7px; color:var(--theme-ink); font:600 11px/1.4 var(--body-font); letter-spacing:.12em; text-transform:uppercase; }
.related-link { white-space:normal; border:1px solid var(--theme-border); border-radius:var(--radius); padding:8px 14px; justify-content:center; background:var(--theme-fill); }
.editorial { margin:44px 0 54px; }
.editorial .editorial-section { display:block; padding:28px 0 32px; border-top:1px solid var(--line); }
.editorial-heading { margin-bottom:22px; }
.editorial-heading h2 { font-size:clamp(32px,5vw,43px); line-height:1.08; }
.editorial-heading::after { content:""; display:block; width:40px; height:2px; margin-top:14px; background:var(--theme-art); }
.editorial-section p, .editorial-section .dimension-list dd { font-size:15px; line-height:1.75; }
.editorial-copy { max-width:68ch; min-width:0; }
.editorial-copy .editorial-lead { margin-bottom:26px; padding:3px 0 3px 16px; border-left:2px solid var(--theme-art); font:600 clamp(21px,3vw,25px)/1.38 var(--title-font); color:var(--text); }
.editorial-copy h3 { font-size:27px; line-height:1.2; margin-top:30px; margin-bottom:10px; }
.editorial-copy p+p { margin-top:12px; }
.illustrated-dimensions { display:grid; gap:0; margin:0; }
.dimension-list .dimension-entry { position:relative; min-width:0; min-height:90px; padding:13px 0 13px 78px; }
.dimension-emblem { position:absolute; top:13px; left:0; width:64px; height:64px; object-fit:contain; }
.dimension-list .dimension-entry dt { font:700 25px/1.1 var(--title-font); color:var(--text); align-self:end; }
.dimension-list .dimension-entry dd { align-self:start; margin:3px 0 0; }
.dimension-list .dimension-entry:last-child { border-bottom:0; }


.scoring-panel { background:var(--quiz-ground); border:1px solid var(--theme-border); border-radius:var(--radius); padding:18px; }
.scoring-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); text-align:center; gap:6px; padding-bottom:20px; }
.scoring-facts>div { display:grid; align-content:start; gap:4px; padding-inline:5px; }
.scoring-facts>div+div { border-left:1px solid var(--quiz-rule); }
.scoring-facts strong { font:700 clamp(30px,5vw,42px)/1 var(--title-font); color:var(--theme-ink); }
.scoring-facts span { font-size:12px; color:var(--muted); line-height:1.4; }
.scoring-equation { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 10px; border-block:1px solid var(--quiz-rule); padding:13px 0; margin-bottom:20px; color:var(--theme-ink); font-weight:600; font-size:14px; }
.scoring-panel p { color:var(--text); }
.editorial-faq .questions { border:1px solid var(--theme-border); border-radius:var(--radius); overflow:hidden; }
.editorial-faq details { padding:0 16px; }
.editorial-faq details+details { border-color:var(--quiz-rule); }
.editorial-faq summary { display:flex; gap:16px; justify-content:space-between; align-items:center; padding:15px 0; color:var(--text); font-size:15px; line-height:1.45; list-style:none; }
.editorial-faq summary::-webkit-details-marker { display:none; }
.editorial-faq summary::after { content:"+"; color:var(--theme-ink); font:600 22px/1 var(--title-font); flex:none; }
.editorial-faq details[open] { background:var(--quiz-ground); }
.editorial-faq details[open] summary::after { content:"−"; }
.editorial-faq details p { padding-bottom:18px; }
@media(min-width:640px){
 .related-test { grid-template-columns:88px minmax(0,1fr) auto; padding:20px; gap:16px; }
 .related-test .related-art { grid-row:auto; width:88px; }
 .editorial .editorial-section { padding-block:36px; }
 .illustrated-dimensions { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
 .dimension-list .dimension-entry { min-height:104px; padding:16px 0 16px 86px; }
 .dimension-emblem { top:16px; width:72px; height:72px; }
 .scoring-panel { padding:24px; }
 .editorial-faq details { padding-inline:22px; }
}
@media(max-width:380px){.related-test { grid-template-columns:56px minmax(0,1fr); padding:12px; gap:8px 10px; }.related-test .related-art { width:56px; }.scoring-panel{padding:14px;}.dimension-list .dimension-entry{min-height:78px;padding-left:66px}.dimension-emblem{width:52px;height:52px}}


/* T09 second visual review: target-themed companion, illustrated editorial chapters. */
.related-test h2 { color:var(--theme-ink); }
.related-test .related-link { color:var(--theme-ink); }
.editorial-copy:has(.editorial-visual) { max-width:none; }
.editorial-visual { display:grid; gap:26px; }
.editorial-visual h3 { margin:0 0 12px; font-size:clamp(26px,4vw,32px); }
.editorial-visual p { color:var(--text); line-height:1.72; }
.editorial-visual p+p { margin-top:12px; }
.editorial-feature { display:grid; gap:20px; align-items:center; padding:20px; border:1px solid var(--theme-border); border-radius:var(--radius); background:var(--quiz-ground); }
.feature-illustration { display:grid; justify-items:center; gap:8px; align-content:center; }
.feature-badge { display:block; width:min(100%,156px); height:auto; aspect-ratio:1; object-fit:contain; }
.feature-illustration span { color:var(--theme-ink); font-size:12px; letter-spacing:.09em; text-transform:uppercase; }
.editorial-note { border-left:2px solid var(--theme-art); padding:14px 16px; background:var(--surface); border-radius:0 var(--radius) var(--radius) 0; }
.editorial-note .section-kicker { display:block; }
.editorial-chapter { display:grid; gap:16px; min-width:0; border-top:1px solid var(--line); padding-top:24px; }
.editorial-chapter h3 { margin:0; }
.reading-steps { display:grid; gap:0; list-style:none; margin:0; padding:0; border-block:1px solid var(--theme-border); }
.reading-steps li { display:flex; align-items:center; gap:12px; padding:12px 4px; }
.reading-steps li+li { border-top:1px solid var(--line); }
.step-number { font:700 30px/1 var(--title-font); color:var(--theme-ink); }
.reading-steps strong { font-size:14px; line-height:1.45; }
.chapter-columns { display:grid; gap:14px; }
.editorial-visual .chapter-columns p { margin:0; }
.result-reading { display:grid; gap:16px; align-items:center; padding:16px; background:var(--quiz-ground); border:1px solid var(--theme-border); border-radius:var(--radius); }
.reading-symbol { display:grid; justify-items:center; gap:8px; text-align:center; }
.reading-badge { display:block; width:104px; height:104px; object-fit:contain; }
.counterpart-map { border:1px solid var(--theme-border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.counterpart-head,.counterpart-row { display:grid; grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr); align-items:center; text-align:center; }
.counterpart-head { font:600 11px/1.4 var(--body-font); letter-spacing:.12em; text-transform:uppercase; }
.counterpart-head span,.counterpart-row span { padding:9px 5px; }
.counterpart-head span:first-child,.counterpart-row span:first-child { color:#efb7ab; background:#24191b; }
.counterpart-head span:last-child,.counterpart-row span:last-child { color:#f0d99f; background:#29251b; }
.counterpart-row { font:700 22px/1.15 var(--title-font); border-top:1px solid var(--line); }
.counterpart-row span:nth-child(2) { color:var(--muted); font:400 16px/1 var(--body-font); }
.editorial-limits { padding:18px; border:1px solid var(--edge); border-radius:var(--radius); background:var(--surface); }
.editorial-limits h3 { font-size:25px; }
.editorial-visual a { text-decoration:underline; }
@media(min-width:640px){
 .editorial-feature { grid-template-columns:160px minmax(0,1fr); gap:24px; padding:24px; }
 .reading-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .reading-steps li { align-items:flex-start; padding:16px 12px; gap:8px; }
 .reading-steps li+li { border-top:0; border-left:1px solid var(--line); }
 .chapter-columns { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
 .result-reading { grid-template-columns:150px minmax(0,1fr); gap:20px; padding:20px; }
}

/* Parchment skin — bitmap texture sampled from owner-approved reference. */
:root {
  --paper-grain: url("https://img.moralize.me/s_726l2j0q2i2a6w/moralize-parchment-texture.cca9087bcb.webp");
}
/* Full-width parchment; never stretch the image or leave side gutters.
   A fixed viewport layer also avoids mobile background-attachment quirks. */
body {
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  isolation:isolate;
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:url("https://img.moralize.me/s_726l2j0q2i2a6w/moralize-parchment-hd.ef9ed0faf6.webp") center top / 100% auto no-repeat;
}
/* Tall screens need proportional height-fit to avoid an uncovered bottom. */
@media (max-aspect-ratio:561/701) {
  body::before { background-size:auto 100%; }
}
.masthead,.site-footer { background:rgba(249,231,193,.30); border-color:var(--edge); }
.site-nav a {color:var(--text);}
.site-nav a:hover,.site-nav a[aria-current] {color:var(--theme-ink);}
.intro h1,.editorial-heading h2,.legal-heading h1 {color:var(--theme-ink);}
.edition,.section-kicker,.editorial-section .section-kicker {color:var(--theme-ink);}
.quiz-panel {background-color:var(--quiz-ground);background-image:linear-gradient(rgba(250,239,211,.58),rgba(250,239,211,.58)),var(--paper-grain);background-size:100% 100%,200px 480px;box-shadow:0 4px 12px rgba(86,45,18,.13);}
.quiz-progress {background:var(--quiz-banner);border-bottom-color:var(--dark-line);}
.quiz-progress p {color:#fff0d2;}
.quiz-progress progress,.quiz-progress progress::-webkit-progress-bar {background:var(--dark-track);}
.quiz-progress progress::-webkit-progress-value {background:#f4dcae;}
.quiz-progress progress::-moz-progress-bar {background:#f4dcae;}


.quiz-controls [data-back]:disabled {color:#795b41;}
.quiz-ornament {display:none!important;}

/* Retain the reference's dark accents against light manuscript pages. */
.related-test,.result-crest,.scoring-panel {
  --text:#fff0d2; --muted:var(--dark-muted); --theme-ink:var(--dark-accent);
  --gold-light:var(--dark-accent); --quiz-rule:var(--dark-line);
  background-color:var(--dark-panel);background-image:var(--paper-grain);background-size:200px 480px;background-blend-mode:multiply;
  color:var(--text);border-color:var(--dark-line);
}
.related-test {box-shadow:inset 0 0 0 3px rgba(222,179,111,.14),0 3px 8px rgba(86,45,18,.12);}
.related-test .related-link {background:transparent;border-color:var(--dark-line);color:var(--dark-accent);}
.related-test .related-link:hover {background:rgba(245,219,160,.10);}
.related-test h2,.related-test .section-kicker {color:var(--dark-accent);}
.result-crest {box-shadow:inset 0 0 0 4px rgba(222,179,111,.18);}
.result-kicker,.result-summary {color:var(--dark-muted);}
.result-actions button {color:var(--theme-ink);border-color:var(--theme-border);}
.result-actions button:hover {background:var(--theme-fill);border-color:var(--theme-ink);}

.result-actions .primary-action:hover {background:var(--quiz-banner);}
.radar-grid,.radar-axis {opacity:.75;}
.radar-label {fill:var(--text);}
.editorial-section {border-color:var(--line);}
.editorial-heading::after {background:var(--theme-art);}
.editorial-copy .editorial-lead {color:var(--text);}
.editorial-copy a,.legal-copy a,.legal-return a {color:#77491c;}
.editorial-feature,.result-reading,.editorial-limits,.editorial-note,.editorial-faq details[open] {
  background-color:var(--surface);background-image:linear-gradient(rgba(250,239,211,.62),rgba(250,239,211,.62)),var(--paper-grain);background-size:100% 100%,200px 480px;
}
.editorial-faq .questions {background:rgba(249,231,193,.35);}
.editorial-faq summary {color:var(--theme-ink);}
.scoring-panel .scoring-facts span {color:var(--dark-muted);}
.scoring-panel .scoring-equation,.scoring-panel .scoring-facts strong {color:var(--dark-accent);}
.scoring-panel p {color:var(--text);}
.counterpart-map {background:var(--surface);}
.counterpart-head span:first-child,.counterpart-row span:first-child {color:#6b2925;background:#e9c9aa;}
.counterpart-head span:last-child,.counterpart-row span:last-child {color:#68491a;background:#ead7a5;}
.legal-document {color:var(--text);}
@media(max-width:640px){
  .quiz-panel {box-shadow:0 2px 6px rgba(86,45,18,.10);}
}


/* Adsterra banners: fixed native dimensions, centered between editorial sections. */
.moralize-ad { margin:24px 0; text-align:center; }
.moralize-ad[hidden] { display:none; }
.moralize-ad-label { color:var(--muted); font-size:12px; line-height:1.4; margin-bottom:6px; }
.moralize-ad-frame { margin-inline:auto; max-width:100%; overflow:hidden; }
.moralize-ad-wide .moralize-ad-frame { width:728px; height:90px; }
.moralize-ad-rectangle .moralize-ad-frame { width:300px; height:250px; }
@media(max-width:775px){.moralize-ad-wide .moralize-ad-frame{width:320px;height:50px}}
@media(max-width:351px){.moralize-ad-wide{display:none}}
@media(max-width:331px){.moralize-ad-rectangle{display:none}}
