:root{--paper:#f1e7d4;--ink:#3c3025;--muted:#776955;--line:#cbbc9f;--accent:#943d30;font-family:var(--site-font-family,Georgia,serif);color:var(--ink);background:transparent;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer;touch-action:manipulation}button svg{pointer-events:none}svg{fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}button:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}::selection{background:#ddc49d}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.sheet{width:min(calc(100% - 64px),940px);margin:auto;padding:24px 0 20px}.masthead{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:12px;font-size:11px;letter-spacing:.09em;text-transform:uppercase}.masthead p{margin:0;white-space:nowrap}.masthead svg{width:24px;height:21px;margin-right:8px;vertical-align:middle}.masthead span{font-size:13px;font-style:italic;letter-spacing:0;text-transform:none;white-space:nowrap;color:var(--muted)}.intro{text-align:center;padding:25px 0 21px}.eyebrow{font-size:10px;letter-spacing:.17em;text-transform:uppercase;color:var(--accent);margin:0 0 9px}.intro p:last-child{font-size:16px;line-height:1.5;color:var(--muted);margin:12px auto 0}.step{font-size:13px;text-transform:uppercase;letter-spacing:.1em;font-weight:400;margin:0}.step span{color:var(--accent);font-size:16px;font-style:italic;letter-spacing:0;margin-right:6px}.gallery-heading{display:flex;justify-content:space-between;align-items:center;padding:0 16px;gap:12px}.gallery-heading>p{margin:0;font-size:14px;color:var(--muted);font-style:italic}.gallery{margin-top:11px}.stage{position:relative;height:282px;overflow:hidden;touch-action:pan-y pinch-zoom;cursor:grab;user-select:none;-webkit-user-select:none;isolation:isolate}.stage.is-dragging{cursor:grabbing}.writer{position:absolute;left:50%;top:13px;width:198px;height:248px;padding:0;background:none;border:0;transform-origin:50% 85%;touch-action:pan-y pinch-zoom}.writer:focus-visible{outline-offset:5px}.writer img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;-webkit-user-drag:none}.random-card{height:100%;position:relative;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #bda77f;background:#eee0c6;box-shadow:inset 0 0 0 5px #f1e8d8,inset 0 0 0 6px #c9b58e;color:#735132;overflow:hidden;padding:15px}.random-card::before,.random-card::after{content:"";position:absolute;width:24px;height:24px;border-color:#9d7747;opacity:.65}.random-card::before{top:12px;left:12px;border-left:1px solid;border-top:1px solid}.random-card::after{bottom:12px;right:12px;border-right:1px solid;border-bottom:1px solid}.random-kicker{font-size:8px;letter-spacing:.17em;text-transform:uppercase;margin-bottom:20px}.random-title{display:block;font-size:26px;font-weight:400;line-height:1.05}.random-title em{display:block;font-size:36px;line-height:1.1;font-weight:400;margin-top:3px}.random-ornament{width:38px;height:30px;margin-top:19px}.random-note{font-size:10px;font-style:italic;margin-top:10px;color:#886d4c}.random-star{position:absolute;top:17px;right:17px;font-size:15px;line-height:1;color:#9d7747}.gallery-controls{max-width:430px;margin:-1px auto 0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px}.author-label{text-align:center;min-width:0}.author-name{font-weight:400;font-size:21px;margin:0;line-height:1.2;color:var(--ink)}.author-name.random-name{font-style:italic}.author-subtitle{font-size:13px;line-height:1.4;color:var(--muted);margin:6px 0 0;min-height:16px}.dots{display:flex;justify-content:center;align-items:center;gap:6px;margin:13px auto 0;height:4px}.dot{height:3px;width:3px;background:#b7a588;border-radius:2px;transition:width .3s,background .3s}.dot.active{width:19px;background:var(--accent)}
.book-section{margin:24px auto 0;max-width:700px}.book-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.book-viewport{position:relative}.books{display:flex;flex-wrap:nowrap;gap:7px;overflow-x:auto;overflow-y:hidden;padding:3px 2px 8px;scrollbar-width:thin;scrollbar-color:#c4b290 transparent;overscroll-behavior-x:contain;scroll-padding-inline:3px;-webkit-overflow-scrolling:touch}.books::-webkit-scrollbar{height:2px}.books::-webkit-scrollbar-thumb{background:#c4b290}.book{flex:0 0 auto;white-space:nowrap;min-height:39px;padding:10px 15px;font-size:13px;line-height:1.2;border:1px solid var(--line);border-radius:2px;background:transparent;transition:background .15s,color .15s}.book:hover{background:#e7dcc7}.book[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff5e6}
@media(max-width:600px){.sheet{width:calc(100% - 36px);padding-top:17px}.masthead{font-size:9px;letter-spacing:.08em;padding:10px 0;gap:9px}.masthead svg{width:20px;height:18px;margin-right:6px}.masthead span{font-size:11px}.intro{padding:22px 0 18px}.eyebrow{font-size:9px;letter-spacing:.14em;margin-bottom:8px}.intro p:last-child{font-size:14px;margin-top:10px}.gallery-heading{padding:0;gap:6px}.step{font-size:11px;letter-spacing:.07em}.step span{font-size:14px;margin-right:4px}.gallery-heading>p{font-size:12px}.gallery{margin-top:8px;margin-left:-18px;margin-right:-18px}.stage{height:227px}.writer{width:164px;height:205px;top:9px}.gallery-controls{padding:0 20px;max-width:390px;gap:8px}.author-name{font-size:19px}.author-subtitle{font-size:12px;min-height:14px;margin-top:5px}.dots{margin-top:11px;gap:6px}.random-card{padding:12px}.random-kicker{font-size:7px;letter-spacing:.13em;margin-bottom:16px}.random-title{font-size:23px}.random-title em{font-size:32px}.random-ornament{width:32px;height:25px;margin-top:14px}.random-note{font-size:9px;margin-top:8px}.random-star{font-size:12px;top:14px;right:14px}.book-section{margin-top:20px}.book-heading{margin-bottom:8px}.books{margin-right:-18px;padding-right:18px;gap:6px}.book{font-size:12px;min-height:37px;padding:10px 12px}}
@media(max-width:350px){.sheet{width:calc(100% - 28px)}.masthead{font-size:8px;letter-spacing:.06em}.masthead span{font-size:10px}.masthead svg{width:18px;margin-right:4px}.intro p:last-child{font-size:13px}.gallery{margin-left:-14px;margin-right:-14px}.gallery-heading>p{font-size:11px}.writer{width:152px;height:190px}.stage{height:213px}.random-title{font-size:21px}.random-title em{font-size:30px}.random-kicker{margin-bottom:13px}.random-ornament{margin-top:11px}.gallery-controls{padding:0 17px}.author-name{font-size:18px}.author-subtitle{font-size:11px}.books{margin-right:-14px;padding-right:14px}}
.gallery-controls{gap:8px}.author-label{flex:1}.nav{display:grid;place-items:center;flex:0 0 48px;width:48px;min-width:48px;height:44px;padding:0;border:0;background:transparent;color:#735b44;touch-action:manipulation;transition:color .15s}.nav .arrow-art{width:24px;height:24px;display:block}.nav#prev .arrow-art{transform:scaleX(-1)}.nav:hover,.nav:focus-visible{color:#382c21}.nav:active{opacity:.65}.nav:focus-visible{outline-offset:1px;border-radius:2px}
.book-heading{margin-bottom:10px}.books{gap:8px;padding-top:4px;padding-bottom:10px;scroll-padding-inline:4px}.book{position:relative;min-height:44px;padding:11px 16px;font-size:13px;line-height:20px;white-space:nowrap;box-shadow:none;transition:background .15s,border-color .15s,color .15s}.book:focus-visible{outline-offset:-3px}
/* Contour: a quiet border, with color indicating the current selection. */



/* Fill: softly rounded labels, with an unambiguous selected state. */



/* Line: a single row of titles, separated by space rather than boxes. */
.books-line .books{gap:20px}
.books-line .book{padding:11px 0;border:0;border-radius:0;background:transparent;color:#76644e}
.books-line .book:hover{background:transparent;color:#433326}
.books-line .book::after{content:"";position:absolute;left:0;right:0;bottom:1px;height:2px;background:transparent;transition:background .15s}
.books-line .book[aria-pressed=true]{background:transparent;color:#813b2c}
.books-line .book[aria-pressed=true]::after{background:#994a38}
.books-line .book:focus-visible{outline-offset:1px}
@media(max-width:600px){.gallery-controls{padding-inline:16px}.author-subtitle{line-height:1.5}.book{min-height:44px;font-size:13px;padding-inline:14px}.books{gap:7px;padding-right:20px}.books-line .books{gap:20px}.books-line .book{padding-inline:0}}
@media(max-width:350px){.gallery-controls{padding-inline:14px;gap:6px}.nav{width:44px;min-width:44px;flex-basis:44px}.books{padding-right:16px}.book{font-size:12px;padding-inline:13px}}


/* The book row remains scrollable; only the browser's scroll bar is hidden. */
.book-viewport{display:flex;align-items:center;min-width:0;gap:0}
.book-viewport .books{flex:1;min-width:0;margin:0;padding:4px 3px 7px;gap:20px;scrollbar-width:none;-ms-overflow-style:none;scroll-padding-inline:8px;overscroll-behavior-x:contain}
.book-viewport .books::-webkit-scrollbar{display:none;width:0;height:0}
.book-viewport .book{flex:0 0 auto;white-space:nowrap}
.book-viewport.can-next .books{mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent)}
.book-viewport.can-prev .books{mask-image:linear-gradient(to right,transparent,#000 22px)}
.book-viewport.can-prev.can-next .books{mask-image:linear-gradient(to right,transparent,#000 22px,#000 calc(100% - 22px),transparent)}
.book-nav{display:none;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;background:transparent;color:#735b44}
.book-nav svg{width:21px;height:21px}.book-nav#books-prev svg{transform:scaleX(-1)}
.book-nav:disabled{opacity:.23;cursor:default}.book-nav:enabled:hover{color:#382c21}.book-nav:focus-visible{outline-offset:-3px}
.browse-controls .book-viewport.has-overflow .book-nav{display:grid}
.books-scroll-hint{display:flex;align-items:center;justify-content:center;gap:7px;margin:3px 0 0;color:#776955;font-size:11px;line-height:20px}
.books-scroll-hint svg{display:block;width:13px;height:13px}.books-scroll-hint span:first-child svg{transform:scaleX(-1)}
.book-viewport.has-overflow .books{cursor:grab;user-select:none;-webkit-user-select:none}
.books.is-dragging,.books.is-dragging .book{cursor:grabbing}
@media(max-width:600px){.book-viewport .books{margin:0;padding:4px 3px 7px;gap:18px}.books-scroll-hint{font-size:10px}}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Step labels are centred; semantic H headings are not used in this module. */
.gallery-heading,.book-heading{justify-content:center}
.step{text-align:center}

/* Question field and theme button copied from Star Oracle; step label stays centred. */
.ask{max-width:600px;margin:22px auto 0;padding-top:19px;border:0;text-align:center}
.ask label{display:block;margin-bottom:14px}
.question-wrap{position:relative}
.ask textarea{
 display:block;box-sizing:border-box;width:100%;height:auto;min-height:32px;max-height:none;margin:0 0 18px;padding:8px 0;
 border:0;border-bottom:1px solid #c9b99a;border-radius:0;background:transparent;box-shadow:none;outline:none;
 font-family:var(--site-font-family,Georgia,serif);font-size:16px;font-weight:400;font-style:normal;line-height:1.5;text-align:center;color:#4a3828;
 resize:none;overflow:hidden;-webkit-appearance:none;appearance:none;transition:border-color .3s,color .3s;
}
.ask textarea::placeholder{color:#76644e;opacity:1;font-style:normal;transition:color .2s}
.ask textarea:focus{border-bottom-color:#8b7355;color:#4a3828}
.ask textarea[aria-invalid=true]{border-bottom-color:#e67e22}
.ask textarea[aria-invalid=true]::placeholder{color:#735b44}
.ask .open-book,#answer-new{
 display:flex;align-items:center;justify-content:center;width:235px;height:65px;min-width:0;min-height:65px;max-width:100%;margin:0 auto;padding:0 0 4px;
 border:0;border-radius:0;outline:none;box-shadow:none;
 background:#f1e7d4 url('images/button-760430f4ce.webp') center / cover;
 font-family:var(--site-font-family,Georgia,serif);font-size:17px;font-weight:400;line-height:1;letter-spacing:normal;color:#4a3828;
 cursor:pointer;transition:transform .2s ease,opacity .3s ease;-webkit-tap-highlight-color:transparent;
}
.ask .open-book:hover,#answer-new:hover{transform:scale(1.03)}
.ask .open-book:active,#answer-new:active{background-image:url('images/button-pressed-16da56b786.webp');transform:translateY(2px)}
.ask .open-book:focus-visible,#answer-new:focus-visible{outline:2px solid #8b7355;outline-offset:2px}
.ask .open-book:disabled,#answer-new:disabled{cursor:default}
.ask .form-help{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:600px){.ask{margin-top:17px;padding-top:16px}}

.ask .open-book,#answer-new{gap:10px;white-space:nowrap}
.ask .open-book svg{width:25px;height:21px;flex:0 0 25px}

/* Only visible portraits need compositor preparation. */
.writer.is-visible{will-change:transform}

/* Book answer, option II: a fine line beside the original excerpt. */
[hidden]{display:none!important}
#choices[aria-busy=true] *{pointer-events:none!important}
#response-flow{display:flow-root}
.answer{max-width:660px;margin:28px auto 0;font-family:var(--site-font-family,Georgia,serif);color:#4a3828;outline:none}
.answer-meta{display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:var(--loader-height,56px);padding-top:var(--loader-top,0px);margin:0 0 24px}
.answer-author{font-size:19px;line-height:1.25;margin:0}
.answer-book{font-size:22px;line-height:1.2;margin:6px 0 0;overflow-wrap:anywhere}
.answer-extract{border-left:2px solid #aa8b5f;padding:4px 0 4px 24px}
.answer-quote{font:italic 400 21px/1.4 var(--site-font-family,Georgia,serif);margin:0;text-align:left;white-space:pre-line;overflow-wrap:anywhere;text-wrap:pretty}
.answer-place{font-size:15px;line-height:1.4;color:#746047;margin:16px 0 0}
.answer-reading{margin-top:28px}
.answer-reading-title{display:flex;align-items:center;gap:16px;color:#746047;font-size:17px;margin:0 0 18px}
.answer-reading-title::after{content:'';width:64px;height:1px;background:#c9b99a}
.answer-meaning{font-size:18px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere;text-wrap:pretty;margin:0}
.answer-actions{display:flex;justify-content:flex-start;gap:12px 24px;flex-wrap:wrap;margin:28px 0 0}
.answer-actions button{font:18px/1.3 var(--site-font-family,Georgia,serif);min-height:44px;padding:10px 0;border:0;border-bottom:1px solid #c9b99a;background:none;border-radius:0;color:#813b2c;white-space:normal}
.answer-actions button:hover{border-color:#813b2c}
.answer-actions button:focus-visible{outline:2px solid #813b2c;outline-offset:5px}
.answer-state{text-align:center;min-height:200px;display:grid;align-content:center;justify-items:center;gap:14px}
.answer-state p{font:22px/1.4 var(--site-font-family,Georgia,serif);margin:0}
.answer-state small{font:16px/1.5 var(--site-font-family,Georgia,serif);color:#746047}
/* Approved loader 02: small bouncing balls, without a visible caption. */
.answer-spinner{display:none;align-items:center;justify-content:center;gap:10px;height:40px;color:#8b7355}
.waiting .answer-spinner{display:flex}
.answer-ball{display:block;flex:none;width:8px;height:8px;border-radius:50%;background:currentColor;transform-origin:center bottom}
.waiting .answer-ball{animation:book-ball-bounce 1.5s infinite}
.waiting .answer-ball:nth-child(2){animation-delay:-1.32s}
.waiting .answer-ball:nth-child(3){animation-delay:-1.14s}
@keyframes book-ball-bounce{0%,56%,100%{transform:translateY(0) scale(1);animation-timing-function:ease-out}8%{transform:translateY(0) scale(1.1,.9);animation-timing-function:cubic-bezier(.2,.6,.35,1)}28%{transform:translateY(-11px) scale(.96,1.04);animation-timing-function:cubic-bezier(.55,0,.8,.5)}48%{transform:translateY(0) scale(1.12,.88);animation-timing-function:ease-out}}
.answer-state.waiting{position:relative;gap:0}
/* Keep the loading status available to screen readers; errors remain visible. */
.waiting #answer-state-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.waiting #answer-state-detail,.waiting .answer-actions{display:none}
.answer-state .answer-actions{justify-content:center;margin-top:0}
@media(max-width:600px){.answer{margin-top:24px}.answer-author{font-size:17px}.answer-book{font-size:20px}.answer-extract{padding-left:16px}.answer-quote{font-size:19px}.answer-meaning{font-size:18px}.answer-reading{margin-top:24px}.answer-actions{gap:8px 20px}.answer-actions button{font-size:17px}}
@media(prefers-reduced-motion:reduce){.waiting .answer-ball{animation:none}}

/* The lower flow replaces author controls in place, without page scrolling. */
.sheet{overflow-anchor:none}
#response-flow{position:relative;display:flow-root;overflow-anchor:none}
#author-details{display:flow-root}
#response-flow.is-reading .answer{margin-top:0}
#response-flow.is-reading .answer-state.waiting{position:absolute;inset-inline:0;top:var(--loader-top,0px);height:var(--loader-height,56px);min-height:0;gap:0}
@media(max-width:600px){#author-details{margin-inline:-18px}}
@media(max-width:350px){#author-details{margin-inline:-14px}}

/* The host page owns vertical scrolling. Hide the iframe scrollbar during
   the asynchronous content-height update; standalone previews keep scrolling. */
html.is-embedded{overflow:hidden}

/* Readable author caption and book step on every viewport. */
#author-subtitle,#book-heading{font-size:16px}
@media(max-width:600px){#author-subtitle,#book-heading{font-size:15px}}

/* Readable book titles in the horizontal selection row. */
#books .book{font-size:16px}
@media(max-width:600px){#books .book{font-size:15px}}

/* Reserve the caption area so changing writers never collapses the controls. */
#author-subtitle{min-height:1.4em}
.author-name.random-name{transform:translateY(8px)}
.author-name.random-name + .author-subtitle{visibility:hidden}
@media(max-width:600px){#author-subtitle{min-height:3em}}

/* All three step labels share a size; keep the existing Roman numeral style. */
#writer-heading,#book-heading,#question-label{font-size:16px}
@media(max-width:600px){#writer-heading,#book-heading,#question-label{font-size:15px}}
/* Same form trap as the other AI modules: excluded from visual and keyboard UI. */
.book-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}

/* Approved gallery edge treatment: option 02, matching the standalone preview.
   Alpha masking reveals the actual background; controls remain outside the mask. */
.stage{--fade:120px;--edge-mask:linear-gradient(to right,transparent,rgba(0,0,0,.08) calc(var(--fade)*.18),rgba(0,0,0,.32) calc(var(--fade)*.4),rgba(0,0,0,.68) calc(var(--fade)*.62),rgba(0,0,0,.92) calc(var(--fade)*.82),#000 var(--fade),#000 calc(100% - var(--fade)),rgba(0,0,0,.92) calc(100% - var(--fade)*.82),rgba(0,0,0,.68) calc(100% - var(--fade)*.62),rgba(0,0,0,.32) calc(100% - var(--fade)*.4),rgba(0,0,0,.08) calc(100% - var(--fade)*.18),transparent);-webkit-mask-image:var(--edge-mask);mask-image:var(--edge-mask);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
@media(max-width:600px){.stage{--fade:54px}}
