/* 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}
