
/* /library/css/reader-tools-20261001.css */

.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}


/* /library/css/reader-vocabulary-fit-20261005.css */
/* The story frame remains the size reference; vocabulary changes only its contents. */
.book-reader-page,.book-reader-page .book-stage{background:#fff}
body.is-vocabulary-fit .book-stage{height:var(--vocab-stage-height)!important;min-height:0!important;box-sizing:border-box;overflow:hidden}
body.is-vocabulary-fit .book-pages{height:100%!important;min-height:0!important}
html:has(body.is-vocabulary-fit),body.is-vocabulary-fit{overflow:hidden}
.book-page.book-page--vocabulary{position:relative;display:grid!important;grid-template-rows:minmax(0,1fr)!important;place-items:center!important;gap:0!important;height:100%!important;min-height:0!important}
.book-page--vocabulary>.book-inline-tools{display:none!important}
.book-page--vocabulary .book-vocabulary{--book-accent:inherit;--book-accent-dark:inherit;--book-accent-rgb:inherit;--book-soft:inherit;position:relative;display:block;width:var(--vocab-frame-width,100%);height:var(--vocab-frame-height,100%);min-height:0;overflow:hidden;padding:0;margin:0;box-sizing:border-box;background:transparent;color:#111}
.book-page--vocabulary .book-vocabulary>header{display:none}
.book-page--vocabulary .book-vocabulary__grid{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);width:100%;height:100%;min-height:0;margin:0;gap:0;border-radius:3px;box-shadow:0 3px 12px #00000014}
.book-page--vocabulary .book-vocabulary__grid::after{content:'';position:absolute;inset:0 auto 0 calc(50% - 12px);width:24px;pointer-events:none;background:linear-gradient(90deg,transparent,#0000000a 42%,#00000020 50%,#ffffff40 58%,transparent);z-index:1}
.vocabulary-book__sheet{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px;padding:18px 18px 14px;box-sizing:border-box;background:var(--book-soft);border:1px solid rgba(var(--book-accent-rgb),.18)}
.vocabulary-book__sheet:first-child{border-right:0;border-radius:3px 0 0 3px}
.vocabulary-book__sheet:nth-child(2){border-left:0;border-radius:0 3px 3px 0}
.book-page--vocabulary .vocabulary-book__heading{flex:none;min-height:57px;box-sizing:border-box;border-bottom:1px solid rgba(0,0,0,.15);padding:0 0 10px;display:flex;flex-direction:column;justify-content:center}
.book-page--vocabulary .vocabulary-book__heading h2{color:#111!important;font-size:23px;line-height:1.2;margin:0 0 5px}
.book-page--vocabulary .vocabulary-book__heading p{color:#444;font-size:11px;line-height:1.4;margin:0}
.vocabulary-book__words{display:flex;flex-direction:column;justify-content:space-evenly;flex:1;min-height:0;gap:10px}
.vocabulary-book__page-number{flex:none;line-height:14px;text-align:center;font-size:11px;color:#555}
.book-page--vocabulary .book-vocabulary__card.book-vocabulary__card--expanded{flex:none;display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;padding:10px;align-items:center;box-sizing:border-box;min-width:0;min-height:0;border:1px solid #222!important;border-radius:8px;background:#fff!important;color:#111}
.book-page--vocabulary .book-vocabulary__card--expanded:not(:has(.book-vocabulary__media)){grid-template-columns:1fr}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__media{width:96px;height:96px;max-height:96px;min-height:0;border:0;border-radius:0;aspect-ratio:1;background:#fff}
.book-page--vocabulary .book-vocabulary__media img{width:100%;height:100%;min-height:0;object-fit:contain}
.book-page--vocabulary .book-vocabulary__content{min-width:0;min-height:0}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__word{font-size:clamp(24px,2vw,30px);line-height:1.12;margin:0 0 5px;color:#111;overflow-wrap:anywhere}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__meaning{padding:0;margin:0 0 7px;border:0;background:#fff;color:#222;font-size:15px;line-height:1.35}
.book-page--vocabulary .book-vocabulary__meaning small{display:none}
.book-page--vocabulary .book-vocabulary__card--expanded button.book-vocabulary__audio[data-book-word]{display:flex;align-items:center;justify-content:center;background:var(--book-accent);color:#fff!important;border:0;border-radius:6px;padding:6px 8px;min-height:32px;max-width:180px;font-size:12px;line-height:1.25}
.book-page--vocabulary .book-vocabulary__card--expanded button.book-vocabulary__audio:hover{background:var(--book-accent-dark)}
.book-page--vocabulary .book-vocabulary__content>small{display:block;margin-top:5px;font-size:10px;line-height:1.3;color:#555}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__example{font-size:13px;line-height:1.4;margin:6px 0;color:#333;overflow-wrap:anywhere}
.vocabulary-fit-pager{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);z-index:2;display:flex;align-items:center;gap:9px;padding:3px 7px;border:1px solid #d0d0d0;border-radius:8px;background:#fff;color:#111;font-size:11px;white-space:nowrap}
.vocabulary-fit-pager button{padding:4px 6px;min-height:28px;border:0;border-radius:4px;background:#fff;color:#111;font:inherit;cursor:pointer}
.vocabulary-fit-pager button:disabled{opacity:.35;cursor:default}
.book-page--vocabulary .book-vocabulary__card[hidden],.vocabulary-book__sheet[hidden],.vocabulary-fit-pager[hidden]{display:none!important}
.book-page--vocabulary .book-vocabulary__grid.is-single-page{grid-template-columns:1fr}
.book-page--vocabulary .book-vocabulary__grid.is-single-page::after{display:none}
@media(max-width:680px){body.is-vocabulary-fit .book-stage{height:var(--vocab-stage-height)!important;min-height:0!important;box-sizing:border-box;overflow:hidden}body.is-vocabulary-fit .book-pages{height:100%!important;min-height:0!important}.vocabulary-book__sheet{padding:14px 12px;border:1px solid rgba(var(--book-accent-rgb),.18)!important;border-radius:3px!important}.book-page--vocabulary .book-vocabulary__card.book-vocabulary__card--expanded{grid-template-columns:82px minmax(0,1fr)}.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__media{width:82px;height:82px}.book-page--vocabulary .vocabulary-book__heading h2{font-size:22px}.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__word{font-size:26px}}

.book-page.book-page--vocabulary[hidden]{display:none!important}

/* Front matter uses the same two 2:3 pages, without a separate tools row. */
.book-page.book-page--guide,.book-page.book-page--cover{display:grid!important;grid-template-rows:minmax(0,1fr)!important;place-items:center!important;gap:0!important}
.book-page.book-page--guide[hidden],.book-page.book-page--cover[hidden]{display:none!important}
.book-page--guide>.book-inline-tools,.book-page--cover>.book-inline-tools{display:none!important}
.book-page--guide .book-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;max-width:100%;margin:0 auto;box-sizing:border-box}
.book-page--guide .book-guide>div{min-width:0;min-height:0;box-sizing:border-box;padding:clamp(18px,2.1vw,30px)}
.book-page--guide .book-guide__title-page h2{font-size:clamp(30px,3.4vw,52px);line-height:1.08;overflow-wrap:anywhere}
.book-page--guide .book-guide__info-page h2{font-size:28px;margin:8px 0}
.book-page--guide .book-guide__info-page>p{font-size:14px;line-height:1.5}
.book-page--guide .book-guide dl div{padding:10px 8px}
.book-page--guide .book-guide__focus{padding:14px;margin-top:20px}
@media(max-width:680px){.book-page.book-page--guide{height:auto!important}.book-page--guide .book-guide{grid-template-columns:1fr;grid-template-rows:auto auto}.book-page--guide .book-guide__info-page{overflow:auto}}

/* White editorial word pages: aligned rows instead of boxed dashboard cards. */
.vocabulary-book__sheet{background:#fff;border-color:#dce1e7;padding:22px 24px 16px}
.book-page--vocabulary .vocabulary-book__heading{border-bottom-color:#dce1e7;min-height:62px}
.book-page--vocabulary .vocabulary-book__heading h2{font-size:24px;letter-spacing:-.03em}
.book-page--vocabulary .vocabulary-book__heading p{font-size:11px;color:#68717b}
.vocabulary-book__words{display:grid;grid-template-rows:repeat(var(--word-rows,3),minmax(0,1fr));gap:0}
.book-page--vocabulary .book-vocabulary__card.book-vocabulary__card--expanded{grid-template-columns:112px minmax(0,1fr);gap:18px;padding:12px 0;border:0!important;border-bottom:1px solid #e3e7eb!important;border-radius:0;box-shadow:none;align-items:center}
.book-page--vocabulary .book-vocabulary__card--expanded:not(:has(.book-vocabulary__media)){grid-template-columns:1fr}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__media{width:112px;height:112px;max-height:112px}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__word{font-size:clamp(26px,2.3vw,34px);font-weight:800;line-height:1.15;letter-spacing:-.025em;margin-bottom:7px}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__meaning{font-size:15px;margin-bottom:10px;color:#424951}
.book-page--vocabulary .book-vocabulary__card--expanded button.book-vocabulary__audio[data-book-word]{width:auto;max-width:none;min-height:32px;padding:6px 12px;border-radius:16px;display:inline-flex;font-size:12px}
.book-page--vocabulary .book-vocabulary__content>small{font-size:10px;color:#737c85;margin-top:7px}
.book-page--guide .book-guide__info-page{background:#fff}
@media(max-width:1100px){.vocabulary-book__sheet{padding-inline:16px}.book-page--vocabulary .book-vocabulary__card.book-vocabulary__card--expanded{grid-template-columns:86px minmax(0,1fr);gap:12px}.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__media{width:86px;height:86px}.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__word{font-size:26px}}
@media(max-width:680px){.vocabulary-book__sheet{background:#fff;border-color:#dce1e7!important;padding:18px}.book-page--vocabulary .book-vocabulary__card.book-vocabulary__card--expanded{grid-template-columns:88px minmax(0,1fr);gap:14px}.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__media{width:88px;height:88px}}

.vocabulary-book__words{grid-template-columns:minmax(0,1fr);justify-content:stretch;align-content:stretch}

/* Shared front-matter type hierarchy: the book guide is the typography reference. */
.book-page--vocabulary .book-vocabulary{font-family:inherit;color:var(--book-muted)}
.book-page--vocabulary .vocabulary-book__heading h2{font-size:28px;font-weight:700!important;line-height:1.2;letter-spacing:-.055em;color:var(--book-accent-dark)!important}
.book-page--vocabulary .vocabulary-book__heading p{font-size:14px;font-weight:800;line-height:1.5;color:var(--book-muted)}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__word{font-weight:700;color:var(--book-accent-dark);letter-spacing:-.035em}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__meaning{font-size:17px;font-weight:800;line-height:1.4;color:var(--book-muted)}
.book-page--vocabulary .book-vocabulary__card--expanded .book-vocabulary__example{font-size:14px;font-weight:700;line-height:1.5;color:var(--book-muted)}
.book-page--vocabulary .book-vocabulary__content>small,.book-page--vocabulary .vocabulary-book__page-number{color:var(--book-muted);font-weight:700}
.book-page--vocabulary .book-vocabulary__card--expanded button.book-vocabulary__audio[data-book-word]{font-family:inherit;font-weight:800}
.vocabulary-fit-pager,.vocabulary-fit-pager button{font-family:inherit;color:var(--book-muted);font-weight:700}

