
.book-toolbar__actions [data-book-action="sentence-audio"],.book-toolbar__actions [aria-pressed="true"]{background:#1875cf;color:#fff;border-color:#1875cf}
.book-audio-dock[hidden]{display:none!important}
.book-audio-dock{position:fixed;left:0;right:0;margin-inline:auto;width:min(760px,100%);height:auto!important;top:calc(var(--reader-toolbar-height,78px) + 2px)!important;z-index:60;border-radius:12px}
.book-audio-dock__rates{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.book-audio-dock__rates button{min-height:42px;padding:8px 14px;white-space:nowrap}
body.theme-general.is-general-picture-book .book-toolbar__actions{display:flex!important;justify-content:flex-end}
body.theme-general.is-general-picture-book .book-toolbar__actions>button:not([data-book-action="sentence-audio"]):not([data-book-action="word-cover"]):not([data-book-action="translation"]){display:none}
.general-reader-translation{position:fixed;z-index:40;right:24px;top:calc(var(--reader-toolbar-height,78px) + var(--reader-audio-height,0px) + 12px);width:min(340px,calc(100vw - 48px));max-height:45vh;overflow:auto;background:#fff;border:1px solid #c8dbe9;border-radius:12px;padding:14px 18px;box-shadow:0 6px 24px #173d5c24;color:#234661;font-size:15px;line-height:1.7}
.general-reader-translation[hidden]{display:none!important}.general-reader-translation p{margin:0 0 10px}.general-reader-translation p:last-child{margin:0}
.is-word-cover-enabled [data-book-read-word]{cursor:pointer;border-radius:3px}
.general-picture-bubble [data-book-read-word]{pointer-events:auto}
.is-word-cover-enabled [data-book-read-word]:hover{outline:2px solid #1780c4;outline-offset:1px}
[data-book-read-word].is-word-covered,[data-book-read-word].is-word-covered.is-reading{color:transparent!important;background:#395c78!important;text-shadow:none!important;box-shadow:none!important;border-radius:3px}
[data-book-read-word].is-word-covered::selection{color:transparent;background:#395c78}
@media(max-width:650px){.book-audio-dock__rates{gap:5px}.book-audio-dock__rates button{padding:8px;font-size:12px}}
@media(max-width:680px){.general-reader-translation{max-height:28vh}.book-audio-dock{max-width:calc(100vw - 20px)}.book-audio-dock__rates{flex-wrap:wrap}}

/* Keep the next-page control clear of the open annotation toolbar. */
.book-reader-page.is-fw-annotation-panel-open .book-stage__arrow--next{right:96px}

/* Show approved keyword artwork directly on vocabulary cards. */
.book-vocabulary__card--with-image{display:grid;grid-template-columns:clamp(104px,10vw,132px) minmax(0,1fr);gap:16px;align-items:center}
.book-vocabulary__media{display:grid;place-items:center;width:100%;aspect-ratio:1;overflow:hidden;border:1px solid #d5e3ec;border-radius:12px;background:#fff}
.book-vocabulary__media img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.book-vocabulary__content{min-width:0}
@media(max-width:680px){.book-reader-page.is-fw-annotation-panel-open .book-stage__arrow--next{right:96px}.book-vocabulary__card--with-image{grid-template-columns:96px minmax(0,1fr);gap:12px}}


/* Reading actions stay beside the article they operate on. */
.book-inline-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 14px;flex:0 0 auto;max-width:100%;font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif}
.book-inline-tools>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;min-width:0;padding:7px 9px;border:1px solid #d4deec;border-radius:10px;background:#fff;color:#43566f;font-size:12px;line-height:1.2;font-weight:750;letter-spacing:0;white-space:nowrap;cursor:pointer;box-shadow:none}
.book-inline-tools>button:hover{background:#edf4fc;border-color:#a8bedb}
.book-inline-tools>button:focus-visible{outline:3px solid #1875cf;outline-offset:2px}
.book-inline-tools>[data-book-learning-toggle]{color:var(--book-accent,#5d4cce)}
.book-inline-tools>[data-book-action="sentence-audio"],.book-inline-tools>[aria-pressed="true"]{background:#1875cf;color:#fff;border-color:#1875cf}
.book-inline-tools>button:disabled{opacity:.5;cursor:default}
.book-inline-tools+[data-book-paragraphs],.book-inline-tools+.book-spread__paragraphs{margin-top:0}
@media(max-width:420px){.book-inline-tools{gap:5px}.book-inline-tools>button{padding:7px 8px;min-height:40px;font-size:12px}}

/* Consistent global menu; contextual tools always begin the page. */
.book-reader-page .book-spread__visual>figcaption{display:none!important}
.book-reader-page .book-spread__copy:has(> .book-inline-tools){display:flex!important;flex-direction:column!important}
.book-reader-page .book-spread__copy{container-type:inline-size}
.book-reader-page .book-inline-tools{flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;gap:4px}
.book-reader-page .book-inline-tools>button{flex:0 0 auto;white-space:nowrap;font-size:clamp(10px,2.6cqi,12px);padding-inline:clamp(4px,1.2cqi,9px)}
.book-reader-page .book-spread__copy>.book-inline-tools{width:100%;align-self:stretch;margin:0 0 18px;order:-1}
.book-reader-page .book-spread__copy>.book-spread__story{margin-top:auto;margin-bottom:auto;flex-shrink:0}
.book-reader-page .book-spread__copy>.book-spread__keywords{flex-shrink:0}
.book-page.has-page-tools-row{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;align-items:stretch;justify-items:stretch}
.book-inline-tools--page{justify-self:end;margin:0;max-width:100%}
.book-page.has-page-tools-row>.book-cover{justify-self:center}
.book-page.has-page-tools-row>.book-vocabulary{min-height:0}
.book-toolbar__primary>[data-book-learning-toggle],.book-toolbar__actions>[data-book-action="sentence-audio"],.book-toolbar__actions>[data-book-action="word-cover"],.book-toolbar__actions>[data-book-action="translation"],.book-toolbar__actions>[data-book-action="word-meaning"]{display:none!important}
/* Match the expanded word lookup: artwork, meaning and audio are visible. */
.book-vocabulary__card.book-vocabulary__card--expanded{display:grid;grid-template-columns:minmax(100px,42%) minmax(0,1fr);gap:20px;padding:20px;background:#fff;align-items:center}
.book-vocabulary__card--expanded .book-vocabulary__media{border:0;border-radius:0;min-height:150px}
.book-vocabulary__card--expanded .book-vocabulary__word{font-size:clamp(26px,2.8vw,42px);line-height:1.15;margin:0 0 16px;overflow-wrap:anywhere;color:var(--book-accent-dark)}
.book-vocabulary__card--expanded .book-vocabulary__meaning{padding:12px;background:var(--book-soft);border-left:3px solid var(--book-accent);margin:0 0 12px}
.book-vocabulary__meaning small{display:block;font-size:11px;margin-bottom:5px}
.book-vocabulary__card--expanded button.book-vocabulary__audio{display:flex;align-items:center;justify-content:center;min-height:42px;padding:10px;font-size:14px;color:#fff;background:var(--book-accent);border-radius:10px;text-align:center}
.book-vocabulary__card--expanded button.book-vocabulary__audio[data-book-word]{color:#fff!important}
.book-vocabulary__card--expanded:not(:has(.book-vocabulary__media)){grid-template-columns:1fr}
.book-vocabulary__card--expanded .book-vocabulary__example{margin-top:12px}
body.book-reader-page.is-landscape-book .book-stage{width:100%;max-width:none;padding-inline:10px;column-gap:12px}
body.book-reader-page.is-landscape-book .book-pages{width:100%!important}
@media(max-width:900px){.book-vocabulary__grid{grid-template-columns:1fr}.book-toolbar__actions{display:flex;flex-wrap:wrap}}
@media(max-width:680px){.book-reader-page .book-spread__copy>.book-inline-tools{margin-bottom:20px}.book-page.has-page-tools-row{height:auto;min-height:100%}.book-inline-tools--page{justify-self:center}.book-vocabulary__card.book-vocabulary__card--expanded{gap:14px;padding:16px}.book-toolbar__actions{display:flex!important;justify-content:center}.book-toolbar__actions>button{width:auto!important}.book-vocabulary__card--expanded .book-vocabulary__media{min-height:100px}}


/* Use each edition's existing palette for contextual reader controls. */
.book-reader-page .book-inline-tools>button{
  background:var(--book-soft);color:var(--book-accent-dark);
  border-color:rgba(var(--book-accent-rgb),.35);text-align:center;
}
.book-reader-page .book-inline-tools>button:hover{
  background:var(--book-soft);border-color:var(--book-accent);
}
.book-reader-page .book-inline-tools>[data-book-action="sentence-audio"],
.book-reader-page .book-inline-tools>[aria-pressed="true"],
.book-reader-page .book-inline-tools>[aria-expanded="true"]{
  background:var(--book-accent);color:#fff;border-color:var(--book-accent);
}
.book-reader-page .book-inline-tools>[data-book-action="sentence-audio"]:hover,
.book-reader-page .book-inline-tools>[aria-pressed="true"]:hover,
.book-reader-page .book-inline-tools>[aria-expanded="true"]:hover{
  background:var(--book-accent-dark);border-color:var(--book-accent-dark);
}
.book-reader-page .book-inline-tools>button:focus-visible{outline-color:var(--book-accent)}
/* Center the actual text lines across the reading page, including translations. */
.book-reader-page .book-spread__copy>.book-spread__story{
  width:100%!important;max-width:100%;align-self:center;text-align:center!important;
}
.book-reader-page .book-spread__story>header,
.book-reader-page .book-spread__story>header h2,
.book-reader-page .book-spread__story .book-paragraph__english,
.book-reader-page .book-spread__story .book-paragraph__translation{text-align:center!important}
.book-reader-page .book-spread__story .book-paragraph__translation{padding-inline:12px;border-left:0}
