/* Design tokens (Phase 1b-V). Pure realm colors are for icons, borders and fills only; text uses the -ink
   tokens (each AA >= 4.5:1 on white and on its own -tint, checked by tests/test_design_tokens.php). */
:root{
--realm-body:#0013FF;--realm-heart:#FF0000;--realm-mind:#086B03;--realm-soul:#FFF200;
--realm-body-ink:#0010C4;--realm-heart-ink:#B00008;--realm-mind-ink:#086B03;--realm-soul-ink:#6B5E00;
--realm-body-tint:#EEF0FF;--realm-heart-tint:#FDEEEE;--realm-mind-tint:#ECF6EA;--realm-soul-tint:#FFFBD6;
--cube-red:#B01116;--cube-blue:#203484;--cube-green:#007F38;--cube-yellow:#C8BD00;
--surface-light:#E9EAEC;--surface:#FFFFFF;--paper:#F7F7F8;
--mark-purple:#A893B7;--mark-ink:#5A3F78;
--display-ink:#1D2433;--ink:#1d2433;--accent:#2b5d8a;--muted:#5b6475;--line:#d9dade;--focus:#0010C4;
--font-display:"Bebas Neue","Oswald","League Gothic",Impact,"Arial Narrow",sans-serif;
--font-body:Georgia,"Times New Roman",serif;
--radius:10px;--shadow:0 1px 2px rgba(29,36,51,.06),0 4px 16px rgba(29,36,51,.06)}
*{box-sizing:border-box}
body{margin:0;font:17px/1.6 var(--font-body);color:var(--ink);background:var(--paper)}
.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:10}
a{color:var(--accent)}a:focus-visible,.btn:focus-visible,.brand:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
h1,.display{font-family:var(--font-display);font-weight:400;text-transform:uppercase;letter-spacing:.04em;line-height:1.05;color:var(--display-ink)}
h1{font-size:2.6rem;margin:.2em 0 .35em}
.wrap{max-width:960px;margin:0 auto;padding:32px 20px 48px}

/* Header: purple mark + wordmark on the cover's silver light-space */
/* iPad/iPhone Safari 26 blurs whatever is drawn under the status bar and ignores theme-color; a sticky, solid top bar is what
   it tints the strip from, and the safe-area padding keeps the logo and nav below the clock (haze fix 2026-11-22). */
html{background:var(--surface-light);scroll-padding-top:96px}
.site-head{position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;padding:12px max(20px,calc((100% - 1100px)/2));padding-top:calc(12px + env(safe-area-inset-top,0px));background:var(--surface-light)}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--display-ink)}
.brand-mark{display:block;width:40px;height:40px;flex:none}
.brand-name{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.06em;font-size:1.55rem;line-height:1}
.site-nav{display:flex;flex-wrap:wrap;gap:6px 22px}
.site-nav a{text-decoration:none;color:var(--ink);padding:4px 0;border-bottom:2px solid transparent}
.site-nav a:hover{border-bottom-color:var(--mark-purple)}.site-nav a[aria-current=page]{border-bottom-color:var(--mark-ink);color:var(--mark-ink)}
/* Mobile menu (1b-F Task 7): the button exists only with JS (nav.js adds .js-nav) and only at <=768px, so no-JS keeps the wrapped nav. */
.nav-toggle{display:none;align-items:center;gap:10px;min-height:44px;min-width:44px;padding:0 12px;background:transparent;color:var(--ink);border:1px solid var(--mark-ink);border-radius:var(--radius);font:inherit;cursor:pointer}
.nav-toggle:hover{background:var(--surface)}.nav-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nav-toggle__bars{display:inline-flex;flex-direction:column;gap:4px;width:20px}.nav-toggle__bars span{display:block;height:2px;background:var(--mark-ink);border-radius:1px}

/* Realm rule: thin four-segment bar (body|heart|mind|soul), under the header and above the footer */
.realm-rule{display:flex;height:4px}.realm-rule span{flex:1}
.realm-rule__body{background:var(--realm-body)}.realm-rule__heart{background:var(--realm-heart)}
.realm-rule__mind{background:var(--realm-mind)}.realm-rule__soul{background:var(--realm-soul)}

.lead{font-size:1.5rem;margin:0}
.muted{color:var(--muted)}
.btn{display:inline-block;background:var(--accent);color:#fff;padding:10px 22px;border-radius:6px;text-decoration:none}
.empty{text-align:center;padding:48px 0}
.flash{padding:10px 14px;border-radius:6px;margin-bottom:12px;background:#eef3f8}
.flash--error{background:#fbeaea}.flash--success{background:#eaf6ee}
.site-foot{margin-top:0;padding:24px 20px 32px;color:var(--muted);font-size:.9rem;background:var(--surface-light)}
.site-foot-inner{max-width:960px;margin:0 auto;display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between}

/* Realm card: <section class="realm-card realm-card--body"><img ...><div class="realm-card__body">...</div></section>
   The colored edge + icon carry the realm; headings use the realm's AA ink. */
.realm-card{--rc:var(--realm-body);--rc-ink:var(--realm-body-ink);--rc-tint:var(--realm-body-tint);display:flex;gap:16px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-left:6px solid var(--rc);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow)}
.realm-card__body{min-width:0}.realm-card h2,.realm-card h3{margin:0 0 .25rem;color:var(--rc-ink)}
.realm-card--body{--rc:var(--realm-body);--rc-ink:var(--realm-body-ink);--rc-tint:var(--realm-body-tint)}
.realm-card--heart{--rc:var(--realm-heart);--rc-ink:var(--realm-heart-ink);--rc-tint:var(--realm-heart-tint)}
.realm-card--mind{--rc:var(--realm-mind);--rc-ink:var(--realm-mind-ink);--rc-tint:var(--realm-mind-tint)}
.realm-card--soul{--rc:var(--realm-soul);--rc-ink:var(--realm-soul-ink);--rc-tint:var(--realm-soul-tint)}


/* Result panel: tinted by the type's realm (cube color); neutral for a draft a non-admin views. Text stays --ink on the tint. */
.result-panel{--rp:var(--mark-ink);--rp-tint:var(--surface);display:flex;gap:24px;align-items:center;background:var(--rp-tint);border:1px solid var(--line);border-left:6px solid var(--rp);border-radius:var(--radius);padding:20px 24px;margin-bottom:16px}
.result-panel__cube,.result-panel__mark{display:block;flex:none;max-width:100%;height:auto}
.result-panel__text{min-width:0}.result-panel__text h1{margin:0 0 .25rem}.result-panel__text p{margin:.25rem 0}
.result-panel--heart{--rp:var(--realm-heart);--rp-tint:var(--realm-heart-tint)}
.result-panel--body{--rp:var(--realm-body);--rp-tint:var(--realm-body-tint)}
.result-panel--mind{--rp:var(--realm-mind);--rp-tint:var(--realm-mind-tint)}
.result-panel--soul{--rp:var(--realm-soul);--rp-tint:var(--realm-soul-tint)}
.result-list li{align-items:center}.result-list__cube{display:block;width:48px;height:48px}
@media (max-width:480px){.result-panel{flex-direction:column;align-items:flex-start}.result-panel__cube{width:112px;height:112px}}

@media (max-width:900px){.wrap{padding:24px 16px 40px}}
@media (max-width:768px){h1{font-size:2.2rem}.site-head{padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top,0px))}.brand-name{font-size:1.35rem}
.site-head.js-nav .nav-toggle{display:inline-flex}
.site-head.js-nav .site-nav{display:none;flex-basis:100%;flex-direction:column;gap:0;border-top:1px solid var(--line)}
.site-head.js-nav.is-open .site-nav{display:flex}
.site-head.js-nav .site-nav a{display:flex;align-items:center;min-height:44px;padding:8px 4px;border-bottom:1px solid var(--line)}
.site-head.js-nav .site-nav a:last-child{border-bottom:0}
.site-head.js-nav .site-nav a[aria-current=page]{font-weight:700;border-bottom-color:var(--line);box-shadow:inset 4px 0 0 var(--mark-ink);padding-left:12px}}
@media (prefers-reduced-motion:no-preference){@media (max-width:768px){.site-head.js-nav.is-open .site-nav{animation:nav-open .15s ease-out}}}
@keyframes nav-open{from{opacity:0}to{opacity:1}}
/* Keep the Menu button on the brand row on phones (wrapped under the logo at 390px before 0.5.1). */
@media (max-width:480px){.site-head{column-gap:12px}.brand{gap:8px}.brand-mark{width:32px;height:32px}.brand-name{font-size:1.15rem;letter-spacing:.04em}.nav-toggle{padding:0 10px}}
@media (max-width:380px){.nav-toggle__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}
@media (max-width:480px){body{font-size:16px}h1{font-size:2rem}.lead{font-size:1.25rem}.site-nav{gap:4px 16px}.realm-card{flex-direction:column}}
.form-card{max-width:460px;margin:24px auto}.field{margin-bottom:14px}.field label{display:block;font-weight:600;margin-bottom:4px}
.field input{width:100%;padding:10px;border:1px solid #8a94a0;border-radius:6px;font:inherit}
.pw-wrap{display:flex;gap:6px}.pw-wrap input{flex:1;min-width:0}
.pw-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border:1px solid #8a94a0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.pw-toggle[hidden]{display:none}.pw-toggle[aria-pressed=true]{border-width:2px;border-color:currentColor}
.btn--danger{background:#a12626}.small{font-size:.9rem}
.test{max-width:720px}.test progress{width:100%;height:10px}
.item{border:1px solid var(--line);border-radius:8px;margin:0 0 16px;padding:12px 16px}
.item legend{font-weight:600;padding:0 6px}.item--missing{border-color:#a12626;border-width:2px}
.choices{display:flex;flex-wrap:wrap;gap:8px 20px}.choices label{cursor:pointer}
.test-nav{display:flex;justify-content:space-between;align-items:center;gap:16px}
@media (max-width:480px){.choices{flex-direction:column}}

/* Results + dashboard */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: .25rem; font-size: .85rem; font-weight: 600; }
.badge--draft { background: #fff3cd; color: #5c4400; border: 1px solid #5c4400; }
.result-list { list-style: none; padding: 0; }
.result-list li { display: flex; flex-wrap: wrap; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid #ddd; }
.affirmation{margin:1rem 0 1.75rem;padding:12px 18px;border-left:4px solid var(--accent);background:#f1efe9;border-radius:0 8px 8px 0}
.affirmation h2{font-size:1.1rem;margin:0 0 .35rem}.affirmation__text{font-size:1.2rem;line-height:1.5;margin:.25rem 0}

/* Info pages (Task 9) */
.prose{max-width:720px}.prose h2{margin-top:2rem}.prose blockquote{margin:1.25rem 0;padding:.25rem 1rem;border-left:4px solid var(--accent);font-style:italic}
.prose blockquote p{margin:.5rem 0}.prose cite{font-style:normal;color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;color:var(--muted);margin:0}
.steps-list{list-style:none;padding:0;margin:1.5rem 0}
.steps-list li{border-top:1px solid var(--line);padding:1rem 0}.steps-list li:last-child{border-bottom:1px solid var(--line)}
.steps-list h2{font-size:1.15rem;margin:.1rem 0 .3rem}.steps-list p{margin:.25rem 0}
.tag{display:inline-block;font-size:.8rem;padding:.05rem .45rem;border-radius:.25rem;border:1px solid var(--muted);color:var(--ink);margin-left:.4rem;vertical-align:middle}
.chapter-nav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:2rem;padding-top:1rem;border-top:1px solid var(--line)}
.teaser{background:#f1efe9;border:1px solid var(--line);border-radius:8px;padding:16px 20px;margin:1.5rem 0}
.glossary dt{font-weight:700;margin-top:1.1rem}.glossary dd{margin:.25rem 0 0}
.field textarea{width:100%;padding:10px;border:1px solid #8a94a0;border-radius:6px;font:inherit;min-height:160px}
.field-error{color:#a12626;font-size:.9rem;margin:.25rem 0 0}
.linklike{background:none;border:0;padding:0;font:inherit;color:var(--accent);text-decoration:underline;cursor:pointer}
.linklike:focus-visible,.cookie-btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* Cookie consent banner (fleet consent standard) */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:#fff;box-shadow:0 -4px 20px rgba(0,0,0,.15);z-index:1000;padding:1rem 1.25rem;font-size:.95rem}
.cookie-banner[hidden],.cookie-customize[hidden]{display:none}
.cookie-banner-content{max-width:960px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:1.25rem;flex-wrap:wrap}
.cookie-banner-text{flex:1;min-width:260px}.cookie-banner-title{font-size:1rem;margin:0 0 .35rem}
.cookie-banner-text p{margin:0;color:var(--ink);line-height:1.5}
.cookie-banner-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.cookie-btn{border:1px solid var(--accent);padding:.55rem 1rem;border-radius:6px;font:inherit;font-size:.9rem;cursor:pointer;background:#fff;color:var(--accent)}
.cookie-btn-accept{background:var(--accent);color:#fff}
.cookie-customize{max-width:960px;margin:1rem auto 0;border-top:1px solid var(--line);padding-top:.75rem}
.cookie-category{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem 0}
.cookie-category-info{flex:1}.cookie-category-info strong{display:block}.cookie-category-info span{color:var(--muted);font-size:.85rem}
.cookie-category input[type=checkbox]{width:22px;height:22px}
.cookie-customize-actions{display:flex;justify-content:flex-end;margin-top:.5rem}
@media (max-width:480px){.cookie-banner-actions{width:100%}.cookie-btn{flex:1}}
.prose table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.95rem}.prose th,.prose td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:8px 10px 8px 0}

/* Honeypot (botFields()): off-screen, never display:none (some bots skip hidden fields); the wrapper is
   aria-hidden and the input has tabindex=-1, so screen-reader and keyboard users never meet it. No inline style:
   the CSP is style-src 'self'. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- Public pages (Phase 1b-V Task 3) ---- */
.btn--lg{padding:13px 30px;font-size:1.1rem}
.section-title{font-family:var(--font-display);font-weight:400;text-transform:uppercase;letter-spacing:.05em;font-size:2rem;line-height:1.1;margin:0 0 .3rem;color:var(--display-ink)}

/* Home hero: the page's text sits on the cover's own light space; the cover art bleeds in from the right. */
.home-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:center;background:var(--surface-light);border-radius:14px;overflow:hidden;margin:4px 0 48px}
.home-hero__text{padding:40px 8px 40px 44px;position:relative;z-index:1}
.home-hero h1{font-size:3.6rem;margin:0 0 .3em}
.home-hero__text p{margin:0 0 .9rem}
.home-hero .lead{font-size:1.45rem}
.home-hero__art{display:block;position:relative;align-self:stretch}
.home-hero__art img{display:block;width:100%;height:100%;min-height:380px;object-fit:cover;object-position:40% 0}
.home-hero__art::before{content:"";position:absolute;inset:0 auto 0 0;width:16%;background:linear-gradient(90deg,var(--surface-light),rgba(233,234,236,0));z-index:1}

/* Home realm row: four tiles, the realm color on the top edge, linking to /realms#realm-<slug> */
.home-realms{margin:0 0 40px}
.home-realms__intro{margin:0 0 18px;color:var(--muted)}
.realm-row{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.realm-row li{display:flex}
.realm-tile{flex:1;flex-direction:column;align-items:center;text-align:center;gap:8px;text-decoration:none;color:var(--ink);border-left:1px solid var(--line);border-top:6px solid var(--rc);padding:22px 16px 18px}
.realm-tile:hover{background:var(--rc-tint)}
.realm-tile__icon{display:block;width:auto;height:84px;max-width:100%;object-fit:contain}
.realm-tile__name{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.06em;font-size:1.7rem;line-height:1;color:var(--rc-ink)}
.realm-tile__line{font-size:.95rem;line-height:1.45}

.home-prose{margin:0 0 40px}

/* Book plate: the cover as an object, with a spine shadow on the left edge */
.book-plate{display:block;position:relative;border-radius:3px 10px 10px 3px;overflow:hidden;box-shadow:0 2px 4px rgba(29,36,51,.12),0 14px 32px rgba(29,36,51,.18)}
.book-plate img{display:block;width:100%;height:auto}
.book-plate::after{content:"";position:absolute;inset:0 auto 0 0;width:14px;background:linear-gradient(90deg,rgba(29,36,51,.28),rgba(29,36,51,0))}
.book-teaser{display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px 28px;max-width:860px}
.book-teaser h2{margin:0 0 .4rem}.book-teaser p{margin:0 0 .6rem}

/* The Four Realms page */
.prose--wide{max-width:860px}
.realm-features{display:grid;gap:22px;margin:2rem 0}
.realm-feature{display:grid;grid-template-columns:180px minmax(0,1fr);gap:28px;align-items:start;padding:24px 28px 24px 22px;scroll-margin-top:16px}
.realm-feature__art{display:flex;align-items:center;justify-content:center;background:var(--rc-tint);border-radius:var(--radius);padding:20px;min-height:200px}
.realm-feature__logo{display:block;width:100%;height:160px;object-fit:contain}
.realm-feature__step{margin:0;font-size:.85rem;color:var(--muted)}
.realm-feature h2{font-family:var(--font-display);font-weight:400;text-transform:uppercase;letter-spacing:.05em;font-size:2.4rem;line-height:1;margin:.1rem 0 .2rem}
.realm-feature__runs{margin:0 0 .8rem;font-size:.95rem;color:var(--muted)}
.realm-feature__question{font-size:1.3rem;font-style:italic;line-height:1.4;margin:0 0 .8rem;color:var(--rc-ink)}
.realm-feature__reward{border-top:1px solid var(--line);padding-top:.7rem;margin-bottom:0}
.realm-feature__reward strong{color:var(--rc-ink)}

/* The Steps index: numbered cards (a real sequence). Neutral chapters carry the purple mark; Ch. 4 the four realms. */
.steps-list .step-card{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:18px;align-items:start;background:var(--surface);border:1px solid var(--line);border-left:6px solid var(--mark-purple);border-radius:var(--radius);padding:16px 20px 16px 14px;margin:0 0 12px}
.steps-list .step-card:last-child{border-bottom:1px solid var(--line)}
.step-card__num{font-family:var(--font-display);font-size:2.8rem;line-height:1;color:var(--mark-ink);text-align:center}
.step-card__meta{margin:0;font-size:.85rem;color:var(--muted)}
.steps-list .step-card h2{font-size:1.2rem;margin:.15rem 0 .3rem}
.step-card__mark{display:block;width:32px;height:32px;margin-top:4px}
.step-card--teased{background:var(--paper)}
.steps-list .step-card--all{border-left-color:transparent}
.step-card--all::before{content:"";position:absolute;left:-6px;top:-1px;bottom:-1px;width:6px;border-radius:var(--radius) 0 0 var(--radius);background:linear-gradient(180deg,var(--realm-body) 0 25%,var(--realm-heart) 25% 50%,var(--realm-mind) 50% 75%,var(--realm-soul) 75% 100%)}
.step-card--all .step-card__num{color:var(--display-ink)}
.step-card__realms{display:flex;gap:6px;align-items:center;margin-top:4px}
.step-card__realm{display:block;width:auto;height:30px}

/* A chapter: the mark (neutral) or the realm quartet (Ch. 4) */
.chapter__mark{display:block;width:44px;height:44px;margin:0 0 10px}
.realm-quartet{list-style:none;padding:0;margin:1.5rem 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.realm-quartet__item--body{--rc:var(--realm-body);--rc-ink:var(--realm-body-ink);--rc-tint:var(--realm-body-tint)}
.realm-quartet__item--heart{--rc:var(--realm-heart);--rc-ink:var(--realm-heart-ink);--rc-tint:var(--realm-heart-tint)}
.realm-quartet__item--mind{--rc:var(--realm-mind);--rc-ink:var(--realm-mind-ink);--rc-tint:var(--realm-mind-tint)}
.realm-quartet__item--soul{--rc:var(--realm-soul);--rc-ink:var(--realm-soul-ink);--rc-tint:var(--realm-soul-tint)}
.realm-quartet a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 8px 10px;background:var(--rc-tint);border-top:4px solid var(--rc);border-radius:0 0 8px 8px;text-decoration:none}
.realm-quartet__logo{display:block;width:auto;height:64px;max-width:100%}
.realm-quartet span{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.06em;font-size:1.3rem;line-height:1;color:var(--rc-ink)}
.teaser{border-left:6px solid var(--mark-purple)}

/* The book page */
.book-page__head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center;margin:0 0 2.5rem}
.book-page h1{font-size:3rem;margin:.1em 0 .25em}
.book-status{background:var(--surface);border:1px solid var(--line);border-left:6px solid var(--mark-purple);border-radius:var(--radius);padding:16px 20px;margin-top:1.4rem}
.book-status p{margin:0 0 .6rem}.book-status p:last-child{margin-bottom:0}
.book-status__title{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.05em;font-size:1.45rem;line-height:1.15;color:var(--mark-ink)}
.book-status h2.book-status__title{font-weight:400;margin:0 0 .6rem}
.waitlist-form{margin-top:.8rem}.waitlist-form .field{margin-bottom:.6rem}.waitlist-form .field input{max-width:360px}

/* About: the mark as a section ornament between two hairlines */
.ornament{display:flex;align-items:center;gap:18px;margin:2.5rem 0 .5rem}
.ornament::before,.ornament::after{content:"";flex:1;height:1px;background:var(--line)}
.ornament__mark{display:block;width:56px;height:56px}

/* Basisophy: the realm-logo floor band */
.band{display:block;margin:1.75rem 0 .5rem}
.band img{display:block;width:100%;height:auto;border-radius:var(--radius)}

@media (max-width:900px){.home-hero h1{font-size:3rem}.home-hero__text{padding:32px 4px 32px 32px}.realm-feature{grid-template-columns:140px minmax(0,1fr);gap:22px}.realm-feature__logo{height:120px}.realm-feature__art{min-height:160px}}
@media (max-width:768px){
.home-hero{grid-template-columns:1fr}.home-hero__art::before{inset:0 0 auto 0;width:auto;height:22%;background:linear-gradient(180deg,var(--surface-light),rgba(233,234,236,0))}.home-hero__art img{min-height:0;height:260px}.home-hero__text{padding:24px 24px 28px}
.realm-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.book-page__head{grid-template-columns:1fr;gap:24px}.book-page__head .book-plate{max-width:440px}
.realm-quartet{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){
.home-hero h1{font-size:2.4rem}.home-hero__text{padding:20px 16px 24px}.realm-tile{padding:16px 10px 14px}.realm-tile__icon{height:64px}.realm-tile__name{font-size:1.4rem}
.book-teaser{grid-template-columns:1fr;padding:18px}.book-teaser .book-plate{max-width:280px}
.realm-feature{grid-template-columns:1fr;padding:18px}.realm-feature__art{min-height:0;padding:16px}.realm-feature__logo{height:96px}.realm-feature h2{font-size:2rem}
.steps-list .step-card{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:14px 14px 14px 10px}.step-card__num{font-size:2.2rem}.step-card__mark{display:none}.step-card__realms{grid-column:2}
.book-page h1{font-size:2.3rem}}

/* Dig-deeper prompts + private journal (Phase 1b-F Task 3) */
.prompts{margin:1rem 0 1.75rem;padding:12px 18px;border-left:4px solid var(--mark-ink);background:var(--surface);border-radius:0 8px 8px 0}
.prompts h2{font-size:1.1rem;margin:0 0 .35rem}
.prompt-list{margin:.5rem 0;padding-left:1.2rem}.prompt-list li{margin:.45rem 0}
.journal-prompt{margin:1rem 0;padding:8px 16px;border-left:4px solid var(--mark-ink);background:var(--surface);font-style:italic}
.journal-prompt p{margin:.25rem 0}
.journal-body{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 18px;overflow-wrap:anywhere}
.journal-list{list-style:none;padding:0}.journal-list li{border-top:1px solid var(--line);padding:.8rem 0}
.journal-list__prompt{font-style:italic;color:var(--muted);margin:.2rem 0}.journal-list__excerpt{margin:.2rem 0;overflow-wrap:anywhere}
.journal-actions{display:flex;flex-wrap:wrap;gap:8px 20px}
/* Admin (Phase 1b-F Task 4): plain tables and forms. */
.btn--secondary{background:var(--surface);color:var(--accent);border:1px solid var(--accent)}.btn--small{padding:4px 12px;font-size:.9rem}
button.btn{font:inherit;cursor:pointer;border:0}button.btn.btn--secondary{border:1px solid var(--accent)}
.admin-nav{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 1.2rem;padding:.5rem 0;border-bottom:1px solid var(--line)}
.admin-nav a[aria-current="page"]{font-weight:700;color:var(--ink)}
.admin-table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.95rem}.admin-table--narrow{max-width:480px}
.admin-table th,.admin-table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:6px 8px}
.admin-table caption{text-align:left;font-weight:600;margin-bottom:.4rem}
.admin-table input[type="text"],.admin-table input:not([type]){width:100%;min-width:12rem;padding:4px 6px;border:1px solid #8a94a0;border-radius:4px;font:inherit}
.admin-retired td{color:var(--muted)}
.admin-form{max-width:760px;margin:1rem 0}.admin-form select,.admin-filter select{padding:8px;border:1px solid #8a94a0;border-radius:6px;font:inherit}
.admin-inline{display:inline-block;margin:.4rem 0}
.admin-filter{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 1rem}
.admin-actions{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:10px 14px}
.admin-box{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 18px;margin:1rem 0}
.admin-rules fieldset{border:1px solid var(--line);border-radius:8px;margin:0 0 1rem}
.admin-rules .field input{max-width:10rem}
.admin-json{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px;overflow-x:auto}
.admin-preview-note{background:#fff3cd;border:1px solid #5c4400;color:#3d2d00;border-radius:8px;padding:10px 16px;margin:0 0 1rem}
.admin-preview{border:1px dashed var(--muted);border-radius:8px;padding:16px;margin:0 0 1.5rem}
.admin-summary li{margin:.3rem 0}.admin-pager{display:flex;gap:20px}
.share-type{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:0 0 1rem}.share-copy[hidden]{display:none}
