:root {
  --book-accent: #3f65d8;
  --book-accent-rgb: 63, 101, 216;
  --book-accent-dark: #27489f;
  --book-soft: #edf3ff;
  --book-ink: #17233b;
  --book-muted: #65728a;
  --book-line: #d8e1ef;
  --book-page: #f4f7fb;
  --book-paper: #ffffff;
  --book-shadow: 0 24px 70px rgba(34, 55, 94, 0.14);
  --book-font-scale: 1;
  --book-spread-padding: clamp(26px, 2.45vw, 38px);
  --book-heading-size: clamp(25px, 2vw, 32px);
  --book-body-size: clamp(21px, 1.8vw, 29px);
  --book-body-leading: 1.5;
  --book-body-tracking: -.014em;
  --book-paragraph-gap: clamp(13px, 1.5vh, 18px);
  --book-paragraph-padding: clamp(12px, 1.4vh, 17px);
  --book-translation-size: 14px;
}

.theme-kinder { --book-accent:#E05A47; --book-accent-rgb:224,90,71; --book-accent-dark:#B84435; --book-soft:#FFF1ED; --book-heading-size:clamp(27px,2.05vw,33px); --book-body-size:clamp(25px,1.95vw,31px); --book-body-leading:1.52; }
.theme-kids { --book-accent:#1387B8; --book-accent-rgb:19,135,184; --book-accent-dark:#0C678D; --book-soft:#EAF7FC; --book-heading-size:clamp(26px,2vw,32px); --book-body-size:clamp(24px,1.85vw,30px); --book-body-leading:1.5; }
.theme-junior { --book-accent:#238A68; --book-accent-rgb:35,138,104; --book-accent-dark:#17684E; --book-soft:#EAF7F2; --book-heading-size:clamp(25px,1.9vw,31px); --book-body-size:clamp(22px,1.7vw,27px); --book-body-leading:1.5; }
.theme-teens { --book-accent:#6F5AD7; --book-accent-rgb:111,90,215; --book-accent-dark:#5340B4; --book-soft:#F1EEFF; --book-heading-size:clamp(24px,1.7vw,29px); --book-body-size:clamp(15px,.96vw,15.5px); --book-body-leading:1.42; --book-body-tracking:-.004em; --book-translation-size:12.5px; }
.theme-general { --book-accent:#3E7185; --book-accent-rgb:62,113,133; --book-accent-dark:#2E596A; --book-soft:#EDF5F7; --book-heading-size:clamp(23px,1.55vw,27px); --book-body-size:clamp(14px,.92vw,15px); --book-body-leading:1.4; --book-body-tracking:0; --book-translation-size:12px; }

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--book-accent-rgb), 0.10), transparent 30%),
    linear-gradient(180deg, #f8faff 0%, var(--book-page) 100%);
  color: var(--book-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

button,
a { font: inherit; }

button { color: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(var(--book-accent-rgb), 0.32);
  outline-offset: 3px;
}

.book-reader-page.is-comfort {
  --book-page: #edf2f1;
  --book-paper: #f5f7f3;
  --book-ink: #263832;
  --book-muted: #68776f;
  background: #edf2f1;
}

.book-reader-page--missing {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: auto;
}

.book-missing {
  width: min(560px, calc(100% - 32px));
  padding: 50px;
  border: 1px solid var(--book-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--book-shadow);
  text-align: center;
}

.book-missing span { color: var(--book-accent); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.book-missing h1 { margin: 14px 0 10px; font-size: 34px; }
.book-missing p { color: var(--book-muted); line-height: 1.7; }
.book-missing a { display: inline-flex; margin-top: 16px; padding: 12px 18px; border-radius: 12px; background: var(--book-accent); color: #fff; font-weight: 850; text-decoration: none; }

.book-toolbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(350px, auto) minmax(180px, 1fr) auto;
  min-height: 78px;
  align-items: center;
  gap: 20px;
  padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(205, 216, 232, .82);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(40, 59, 94, .07);
  backdrop-filter: blur(18px);
}

.book-toolbar__primary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.book-toolbar__back {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--book-line);
  border-radius: 13px;
  background: #fff;
  color: var(--book-accent-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.book-toolbar__back span:first-child { font-size: 19px; }

.book-toolbar__shortcut {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--book-line);
  border-radius: 13px;
  background: #fff;
  color: var(--book-accent-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.book-toolbar__shortcut:hover,
.book-toolbar__shortcut[aria-expanded="true"] {
  border-color: rgba(var(--book-accent-rgb), .34);
  background: var(--book-soft);
}

.book-toolbar .fw-annotation-panel-toggle,
.book-toolbar .fw-annotation-panel-toggle.is-open {
  position: static;
  z-index: auto;
  right: auto;
  top: auto;
  width: fit-content;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-template: none;
  place-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--book-line);
  border-radius: 13px;
  background: #fff;
  color: var(--book-accent-dark);
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  transform: none;
}

.book-toolbar .fw-annotation-panel-toggle > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.book-toolbar .fw-annotation-panel-toggle.is-open {
  border-color: rgba(var(--book-accent-rgb), .34);
  background: var(--book-soft);
}

.book-toolbar .fw-annotation-panel-toggle__label {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  color: inherit;
  font-size: 13px;
  letter-spacing: 0;
}

.book-toolbar .fw-annotation-panel-toggle > .fw-annotation-panel-toggle__arrow { display: none; }

.book-reader-page.is-fw-annotation-panel-open .book-toolbar {
  z-index: 1030;
}

.book-toolbar__identity {
  display: grid;
  min-width: 0;
  justify-items: center;
  line-height: 1.1;
  text-align: center;
}

.book-toolbar__identity span {
  color: var(--book-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.book-toolbar__identity strong {
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.book-toolbar__actions button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--book-line);
  border-radius: 13px;
  background: #fff;
  color: #4f5f77;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.book-toolbar__actions button:hover,
.book-toolbar__actions button[aria-pressed="true"] {
  border-color: rgba(var(--book-accent-rgb), .34);
  background: var(--book-soft);
  color: var(--book-accent-dark);
}

.book-toolbar__actions button:disabled {
  opacity: .38;
  cursor: default;
}

.book-stage {
  position: relative;
  height: calc(100vh - 78px - 76px);
  min-height: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  padding: 18px 10px;
  transition: height .2s ease;
}

.book-reader-page.is-sentence-audio-active .book-stage {
  height: calc(100vh - 78px - 76px - 52px);
}

.book-pages {
  width: min(1320px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}

.book-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  animation: book-page-enter .24s ease both;
}

.book-page--spread {
  display: grid;
  place-items: center;
}

.book-page[hidden] { display: none !important; }

.book-page--cover {
  display: grid;
  place-items: center;
}

@keyframes book-page-enter {
  from { opacity: 0; transform: translateX(12px) scale(.995); }
  to { opacity: 1; transform: none; }
}

.book-stage__arrow {
  position: relative;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 82px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(199, 211, 229, .95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  color: var(--book-accent-dark);
  box-shadow: 0 12px 26px rgba(35, 54, 91, .10);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.book-stage__arrow:hover:not(:disabled) {
  background: var(--book-soft);
  transform: translateY(-2px);
}

.book-stage__arrow:disabled { opacity: .25; cursor: default; }

.book-cover {
  position: relative;
  width: auto;
  height: 100%;
  aspect-ratio: var(--book-cover-aspect, 23 / 32);
  max-height: 860px;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 0;
  background: transparent;
  box-shadow:
    3px 4px 0 rgba(247, 249, 252, .98),
    7px 8px 0 rgba(202, 212, 227, .78),
    0 24px 54px rgba(34, 55, 94, .22);
  overflow: hidden;
}

.book-cover::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 4px;
  background: linear-gradient(90deg, rgba(19, 38, 69, .18), rgba(255, 255, 255, .12));
  content: "";
  pointer-events: none;
}

.book-cover__meta {
  position: absolute;
  z-index: 5;
  inset: 16px 15px auto 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* R2 coursebooks 6-10 carry their approved stage badge inside the cover art.
   Scope the duplicate-badge suppression to those exact book families so other
   2:3 covers, including R1 coursebook 5, keep the reader stage badge. */
body[data-library-book-id^="r2-text-cb06-"] .book-cover__meta,
body[data-library-book-id^="r2-text-cb07-"] .book-cover__meta,
body[data-library-book-id^="r2-text-cb08-"] .book-cover__meta,
body[data-library-book-id^="r2-text-cb09-"] .book-cover__meta,
body[data-library-book-id^="r2-text-cb10-"] .book-cover__meta {
  justify-content: flex-end;
}

body[data-library-book-id^="r2-text-cb06-"] .book-cover__meta span,
body[data-library-book-id^="r2-text-cb07-"] .book-cover__meta span,
body[data-library-book-id^="r2-text-cb08-"] .book-cover__meta span,
body[data-library-book-id^="r2-text-cb09-"] .book-cover__meta span,
body[data-library-book-id^="r2-text-cb10-"] .book-cover__meta span {
  display: none;
}

.book-cover__meta span {
  display: grid;
  min-width: 46px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .68);
  background: rgba(var(--book-accent-rgb), .9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 42, 73, .22);
  font-size: 13px;
  font-weight: 950;
}

.book-cover__meta small {
  max-width: 72%;
  overflow: hidden;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  background: rgba(17, 36, 64, .58);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 42, 73, .18);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(7px);
}

.book-cover__image-wrap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.book-cover__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover__open {
  position: absolute;
  z-index: 6;
  right: 50%;
  bottom: 20px;
  transform: translateX(50%);
  display: inline-flex;
  min-width: 154px;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: rgba(18, 48, 87, .78);
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 34, 65, .28);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.book-guide,
.book-finish {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  height: 100%;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d9e2ef;
  border-radius: 0;
  background: var(--book-paper);
  box-shadow: var(--book-shadow);
}

.book-guide::after,
.book-finish::after {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, #d6dfec 12%, #d6dfec 88%, transparent);
  box-shadow: 8px 0 20px rgba(38, 57, 86, .07);
  content: "";
}

.book-guide__title-page,
.book-guide__info-page,
.book-finish__complete,
.book-finish__next {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 72px);
}

.book-guide__title-page { align-items: center; text-align: center; }
.book-guide__title-page > span { color: var(--book-accent); font-size: 11px; font-weight: 950; letter-spacing: .16em; }
.book-guide__title-page h2 { max-width: 9em; margin: 18px 0 0; color: var(--book-accent-dark); font-size: clamp(44px, 6vw, 86px); line-height: .96; letter-spacing: -.07em; text-wrap: balance; }
.book-guide__title-page p { margin: 18px 0 0; color: var(--book-muted); font-size: 17px; font-weight: 800; }
.book-guide__title-page h2.book-guide__title-lockup { width: 100%; max-width: none; margin: 0; }
.book-guide__title-image { display: block; width: min(430px, 100%); height: auto; margin: 0 auto; object-fit: contain; }
.book-guide__info-page { background: #f8fbff; }
.book-guide__info-page > span,
.book-finish__complete > span,
.book-finish__next > span { color: var(--book-accent); font-size: 11px; font-weight: 950; letter-spacing: .14em; }
.book-guide__info-page h2 { margin: 14px 0 0; color: var(--book-accent-dark); font-size: clamp(32px, 4vw, 52px); letter-spacing: -.055em; }
.book-guide__info-page > p { margin: 8px 0 0; color: var(--book-muted); font-size: 15px; font-weight: 800; }
.book-guide dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 0; }
.book-guide dl div { padding: 17px 10px; border-radius: 14px; background: var(--book-soft); text-align: center; }
.book-guide dt { color: var(--book-muted); font-size: 11px; font-weight: 850; }
.book-guide dd { margin: 6px 0 0; color: var(--book-accent-dark); font-size: 23px; font-weight: 950; }
.book-guide__focus { margin-top: 18px; padding: 18px; border: 1px solid rgba(var(--book-accent-rgb), .19); border-radius: 15px; background: #fff; }
.book-guide__focus span { color: var(--book-accent); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.book-guide__focus p { margin: 8px 0 0; color: #536178; font-size: 14px; font-weight: 700; line-height: 1.65; }

.book-spread {
  position: relative;
  width: min(1080px, 100%);
  height: min(780px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d9e2ef;
  border-radius: 0;
  background: var(--book-paper);
  box-shadow: var(--book-shadow);
  overflow: hidden;
}

.book-spread::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(42, 61, 96, .15) 18%, rgba(42, 61, 96, .15) 82%, transparent);
  box-shadow: 8px 0 14px rgba(35, 52, 84, .05), -8px 0 14px rgba(35, 52, 84, .05);
  content: "";
  pointer-events: none;
}

.book-spread--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.book-spread--text-only::after {
  display: none;
}

.book-spread--text-only .book-spread__copy {
  width: min(920px, 100%);
  justify-self: center;
  padding-inline: clamp(34px, 7vw, 96px);
}

.book-spread--text-only .book-spread__story {
  width: 100%;
}

.book-spread__visual {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  padding: var(--book-spread-padding);
  background: var(--book-paper);
}

.book-spread__visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.book-spread__visual--photo img,
.book-spread__visual--soft img {
  border-radius: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.book-spread__visual figcaption {
  min-height: 34px;
  display: flex;
  align-items: flex-end;
  padding: 10px 2px 0;
  color: var(--book-accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

/* Kids 2:3 generated scenes: fill the complete left-hand page edge to edge. */
.theme-kids .book-spread__visual--kids-portrait-full-bleed {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.theme-kids .book-spread__visual--kids-portrait-full-bleed img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.theme-kids .book-spread__visual--kids-portrait-full-bleed figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  min-height: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 50, 80, .78);
}

/* R7 Photo & Article: one full page of photography plus one white text page. */
.theme-junior.is-r7-photo-article .book-spread__visual {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #102a43;
}

.theme-junior.is-r7-photo-article .book-spread__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #102a43;
}

.theme-junior.is-r7-photo-article .book-spread__visual figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  min-height: 0;
  padding: 8px 12px;
  color: #fff;
  background: rgba(8, 38, 55, .72);
  border-radius: 999px;
  z-index: 2;
}

.book-spread__copy {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 30px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--book-paper);
  scrollbar-width: thin;
}

.book-spread--roomy .book-spread__copy {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
}

.book-spread__story {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  align-self: center;
  margin-top: auto;
  text-align: left;
}

.book-spread--roomy .book-spread__story {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  margin: 0;
}

.book-spread--dense .book-spread__story,
.book-spread--compact .book-spread__story {
  width: 100%;
  align-self: stretch;
  margin-top: 0;
}

.book-spread__copy header > span {
  color: var(--book-accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
}

.book-spread__copy h2 {
  margin: 0;
  font-size: var(--book-heading-size);
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}

.book-spread__paragraphs {
  display: grid;
  gap: var(--book-paragraph-gap);
  margin-top: clamp(20px, 2.5vh, 30px);
}

.book-spread__story--no-heading .book-spread__paragraphs { margin-top: 0; }

.book-paragraph {
  min-width: 0;
  padding: 0;
  border-bottom: 0;
}

.book-paragraph__english {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(var(--book-body-size) * var(--book-font-scale));
  line-height: var(--book-body-leading);
  letter-spacing: var(--book-body-tracking);
  overflow-wrap: break-word;
  hyphens: none;
}

.book-paragraph__translation {
  margin: 9px 0 0;
  padding-left: 12px;
  border-left: 3px solid rgba(var(--book-accent-rgb), .38);
  color: #526078;
  font-size: calc(var(--book-translation-size) * var(--book-font-scale));
  font-weight: 700;
  line-height: 1.65;
}

.book-reader__word {
  display: inline;
  margin: 0;
  padding: 0 .03em;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  border-radius: .18em;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.book-spread__keywords {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.book-spread--roomy .book-spread__keywords {
  grid-row: 3;
  align-self: end;
}

.book-spread__keywords > span {
  color: var(--book-muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .13em;
}

.book-spread__keyword-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.book-spread__keyword-list button {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(var(--book-accent-rgb), .24);
  border-radius: 999px;
  background: var(--book-soft);
  color: var(--book-accent-dark);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.book-spread__keyword-list button:hover,
.book-spread__keyword-list button:focus-visible {
  border-color: rgba(var(--book-accent-rgb), .56);
  background: #fff;
}

.book-reader__word.is-reading {
  background: rgba(var(--book-accent-rgb), .12);
  color: var(--book-accent-dark);
  box-shadow: inset 0 -.28em 0 rgba(var(--book-accent-rgb), .16);
}

.book-spread--extended {
  --book-paragraph-gap: 11px;
  --book-paragraph-padding: 12px;
}

.book-spread--dense {
  --book-spread-padding: clamp(22px, 1.9vw, 30px);
  --book-paragraph-gap: 8px;
  --book-paragraph-padding: 8px;
}

.book-spread--dense .book-spread__paragraphs,
.book-spread--compact .book-spread__paragraphs { margin-top: 16px; }

.book-spread--compact {
  --book-spread-padding: clamp(20px, 1.7vw, 27px);
  --book-paragraph-gap: 7px;
  --book-paragraph-padding: 7px;
  --book-body-leading: 1.4;
}

.book-spread--dense .book-spread__copy header > span,
.book-spread--compact .book-spread__copy header > span { font-size: 10px; }

.book-finish__complete { align-items: center; text-align: center; }
.book-finish__complete h2 { margin: 16px 0 22px; color: var(--book-accent-dark); font-size: clamp(32px, 3.2vw, 46px); line-height: 1; letter-spacing: -.065em; }
.book-finish__complete > strong { color: #25334a; font-size: 18px; }
.book-finish__complete > p { margin: 7px 0 0; color: var(--book-muted); font-size: 14px; font-weight: 750; }
.book-finish__words { width: min(360px, 100%); margin-top: 26px; padding: 17px; border: 1px solid rgba(var(--book-accent-rgb), .18); background: #fbfdff; }
.book-finish__words > span { color: var(--book-accent); font-size: 10px; font-weight: 950; letter-spacing: .11em; }
.book-finish__words div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.book-finish__words b { padding: 5px 10px; border-radius: 999px; background: var(--book-soft); color: var(--book-accent-dark); font-size: 11px; }
.book-finish__complete > button { min-height: 46px; margin-top: 24px; padding: 0 18px; border: 1px solid var(--book-line); border-radius: 13px; background: #fff; color: var(--book-accent-dark); font-size: 13px; font-weight: 900; cursor: pointer; }
.book-finish__next { align-items: center; background: #f8fbff; text-align: center; }
.book-finish__queue { width: min(390px, 100%); padding: 28px; border: 1px solid rgba(var(--book-accent-rgb), .18); background: #fff; box-shadow: 0 18px 44px rgba(43, 68, 108, .08); text-align: left; }
.book-finish__queue > span { color: var(--book-accent); font-size: 10px; font-weight: 950; letter-spacing: .16em; }
.book-finish__queue h3 { margin: 8px 0 0; color: var(--book-ink); font-size: 25px; letter-spacing: -.04em; }
.book-finish__queue ol { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.book-finish__queue li { min-width: 0; }
.book-finish__queue a { min-height: 68px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e3eaf4; background: #fbfdff; color: var(--book-ink); text-decoration: none; }
.book-finish__queue a:hover { border-color: rgba(var(--book-accent-rgb), .42); background: var(--book-soft); }
.book-finish__queue b { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--book-soft); color: var(--book-accent-dark); font-size: 13px; }
.book-finish__queue strong { min-width: 0; font-size: 15px; line-height: 1.25; }
.book-finish__queue i { color: var(--book-accent); font-size: 22px; font-style: normal; text-align: right; }

.book-footer {
  position: relative;
  z-index: 20;
  height: 76px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 8px max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
  border-top: 1px solid rgba(205, 216, 232, .86);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.book-footer__neighbor { min-width: 0; }
.book-footer__neighbor--next { text-align: right; }
.book-footer__neighbor a { display: inline-grid; max-width: 100%; color: var(--book-accent-dark); text-decoration: none; }
.book-footer__neighbor--next a { justify-items: end; }
.book-footer__neighbor a span { color: var(--book-muted); font-size: 10px; font-weight: 850; }
.book-footer__neighbor a strong { max-width: 100%; margin-top: 3px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.book-footer__neighbor .is-empty { color: #9aa5b6; font-size: 12px; font-weight: 750; }

.book-footer__position { display: grid; justify-items: center; gap: 8px; }
.book-footer__position > strong { color: #485871; font-size: 12px; }
.book-footer__dots { display: flex; gap: 6px; }
.book-footer__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c8d1df; cursor: pointer; }
.book-footer__dots button.is-active { width: 24px; border-radius: 999px; background: var(--book-accent); }

.book-audio-dock {
  position: relative;
  z-index: 19;
  width: 100%;
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: var(--book-paper);
}

.book-audio-dock[hidden] { display: none; }
.book-audio-dock__label { min-width: 0; display: grid; gap: 3px; }
.book-audio-dock__label span { color: var(--book-accent); font-size: 8px; font-weight: 950; letter-spacing: .16em; }
.book-audio-dock__label strong { overflow: hidden; color: var(--book-ink); font-family: Georgia, "Times New Roman", serif; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.book-audio-dock > button,
.book-audio-dock__rates button {
  min-height: 36px;
  border: 1px solid rgba(var(--book-accent-rgb), .18);
  border-radius: 11px;
  background: #fff;
  color: var(--book-accent-dark);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.book-audio-dock > button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 11px; }
.book-audio-dock > button:hover,
.book-audio-dock > button[aria-pressed="true"] { border-color: rgba(var(--book-accent-rgb), .42); background: var(--book-soft); }
.book-audio-dock__play { min-width: 92px; border-color: var(--book-accent) !important; background: var(--book-accent) !important; color: #fff !important; }
.book-audio-dock__rates { display: inline-grid; grid-template-columns: repeat(3, auto); padding: 3px; border: 1px solid rgba(var(--book-accent-rgb), .16); border-radius: 12px; background: #f5f8fd; }
.book-audio-dock__rates button { min-height: 29px; padding: 0 8px; border: 0; background: transparent; color: var(--book-muted); }
.book-audio-dock__rates button.is-active { background: #fff; color: var(--book-accent-dark); box-shadow: 0 3px 10px rgba(37, 67, 108, .10); }
.book-audio-dock__close { width: 36px; padding: 0 !important; font-size: 20px !important; }

.book-word-dialog {
  width: min(380px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--book-line);
  border-radius: 20px;
  background: #fff;
  color: var(--book-ink);
  box-shadow: 0 30px 90px rgba(25, 42, 73, .25);
  text-align: center;
}

.book-word-dialog::backdrop { background: rgba(20, 33, 57, .35); backdrop-filter: blur(5px); }
.book-word-dialog__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f0f3f8; color: #516078; font-size: 22px; cursor: pointer; }
.book-word-dialog > span { color: var(--book-accent); font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.book-word-dialog__image { display: block; width: min(240px, 70vw); max-height: 210px; margin: 14px auto; object-fit: contain; background: #f4f7fb; }
.book-word-dialog__image[hidden] { display: none; }
.book-word-dialog h2 { margin: 12px 0 7px; color: var(--book-accent-dark); font-family: Georgia, serif; font-size: 36px; }
.book-word-dialog p { margin: 0; color: #55637a; font-size: 16px; font-weight: 750; line-height: 1.6; }
.book-word-dialog__audio { min-height: 40px; margin-top: 18px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--book-accent); color: #fff; font-weight: 900; cursor: pointer; }
.book-word-dialog__audio[hidden] { display: none; }

.book-reader-status { position: fixed; left: 50%; bottom: 88px; z-index: 40; max-width: min(520px, calc(100% - 32px)); transform: translateX(-50%); padding: 9px 14px; border-radius: 999px; background: rgba(29, 44, 70, .92); color: #fff; font-size: 12px; font-weight: 750; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.book-reader-status.is-visible { opacity: 1; }
.book-reader-page.is-sentence-audio-active .book-reader-status { bottom: 158px; }

.book-learning-scrim {
  position: fixed;
  z-index: 240;
  inset: 0;
  background: rgba(18, 29, 51, .28);
  backdrop-filter: blur(2px);
}

.book-learning-drawer {
  position: fixed;
  z-index: 250;
  inset: 0 auto 0 0;
  width: min(336px, calc(100vw - 24px));
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1.1dvh, 11px);
  padding: max(20px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(var(--book-accent-rgb), .24);
  background: linear-gradient(180deg, color-mix(in srgb, var(--book-soft) 76%, #fff) 0%, #fff 46%);
  color: var(--book-ink);
  box-shadow: 20px 0 50px rgba(24, 41, 70, .18);
  outline: 0;
  transform: translateX(-104%);
  transition: transform .28s ease;
}

.book-reader-page.is-book-learning-menu-open .book-learning-drawer { transform: translateX(0); }

.book-learning-drawer__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
  padding: 0 4px;
}

.book-learning-drawer__header span { color: var(--book-accent); font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.book-learning-drawer__header h2 { margin: 5px 0 0; color: var(--book-ink); font-size: 23px; letter-spacing: -.035em; }
.book-learning-drawer__header p { margin: 5px 0 0; color: var(--book-muted); font-size: 10px; font-weight: 700; line-height: 1.45; }
.book-learning-drawer__header button { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid rgba(var(--book-accent-rgb),.2); border-radius: 12px; background: rgba(255,255,255,.86); color: var(--book-accent-dark); font-size: 25px; cursor: pointer; }
.book-learning-drawer__header button:hover { background: var(--book-soft); }

.book-learning-drawer__reading,
.book-learning-drawer__stages button {
  width: 100%;
  min-width: 0;
  display: grid;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #42516a;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.book-learning-drawer__reading {
  flex: 0 0 auto;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border-color: rgba(var(--book-accent-rgb), .16);
  background: rgba(255,255,255,.72);
}

.book-learning-drawer__reading > span,
.book-learning-drawer__stages button > span {
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--book-soft);
  color: var(--book-accent-dark);
  font-weight: 950;
}

.book-learning-drawer__reading > span { width: 40px; height: 40px; }
.book-learning-drawer__reading div,
.book-learning-drawer__stages button div { min-width: 0; display: grid; gap: 3px; }
.book-learning-drawer__reading b,
.book-learning-drawer__stages button b { color: var(--book-ink); font-size: 14px; }
.book-learning-drawer__reading small,
.book-learning-drawer__stages button small { overflow: hidden; color: var(--book-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.book-learning-drawer__stages {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(7, minmax(58px, 1fr));
  gap: clamp(3px, .75dvh, 7px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.book-learning-drawer__stages button {
  min-height: 58px;
  grid-template-columns: 42px minmax(0, 1fr) 14px;
  gap: 11px;
  padding: 8px 11px;
}

.book-learning-drawer__stages button > span { width: 40px; height: 40px; font-size: 11px; }
.book-learning-drawer__stages button > i { color: color-mix(in srgb, var(--book-accent) 68%, #8390a4); font-size: 20px; font-style: normal; }
.book-learning-drawer__reading.is-active,
.book-learning-drawer__stages button.is-active,
.book-learning-drawer__stages button:hover { border-color: rgba(var(--book-accent-rgb), .22); background: var(--book-soft); color: var(--book-accent-dark); box-shadow: inset 3px 0 0 var(--book-accent); transform: none; }

/* Kids: larger, literal cards and the gentlest visual rhythm. */
.theme-kids .book-learning-drawer {
  border-right-width: 3px;
  background:
    radial-gradient(circle at 92% 5%, rgba(var(--book-accent-rgb), .14), transparent 28%),
    linear-gradient(180deg, #f1f7fd 0%, #fff 48%);
}
.theme-kids .book-learning-drawer__stages { gap: clamp(5px, .8dvh, 8px); }
.theme-kids .book-learning-drawer__stages button { border-color: rgba(var(--book-accent-rgb), .12); border-radius: 17px; background: rgba(255,255,255,.82); box-shadow: 0 4px 12px rgba(44,79,118,.045); }
.theme-kids .book-learning-drawer__reading { border-radius: 18px; background: rgba(var(--book-accent-rgb), .09); }
.theme-kids .book-learning-drawer__reading > span,
.theme-kids .book-learning-drawer__stages button > span { border-radius: 50%; }

/* Junior: a visible learning path, with each activity as an independent step. */
.theme-junior .book-learning-drawer {
  background: linear-gradient(180deg, #f5f1fc 0%, #fbf9ff 30%, #fff 70%);
}
.theme-junior .book-learning-drawer__header { padding-left: 10px; border-left: 4px solid var(--book-accent); }
.theme-junior .book-learning-drawer__stages button { border-color: rgba(var(--book-accent-rgb), .13); border-left-width: 3px; border-radius: 11px; background: rgba(255,255,255,.74); }
.theme-junior .book-learning-drawer__stages button:nth-child(even) { background: rgba(var(--book-accent-rgb), .045); }

/* Teens: quieter editorial navigation without a childlike stack of cards. */
.theme-teens .book-learning-drawer {
  background: linear-gradient(180deg, #fbf4f7 0%, #fff 35%);
}
.theme-teens .book-learning-drawer__header { padding: 0 2px 14px; border-bottom: 1px solid rgba(var(--book-accent-rgb), .2); }
.theme-teens .book-learning-drawer__reading { border-radius: 7px; background: rgba(var(--book-accent-rgb), .07); }
.theme-teens .book-learning-drawer__stages { gap: 0; }
.theme-teens .book-learning-drawer__stages button { border: 0; border-bottom: 1px solid #e8e2e6; border-radius: 0; }
.theme-teens .book-learning-drawer__stages button:hover,
.theme-teens .book-learning-drawer__stages button.is-active { box-shadow: inset 3px 0 0 var(--book-accent); }

/* General: the most compact and task-oriented path. */
.theme-general .book-learning-drawer {
  background: linear-gradient(180deg, #f3f5f7 0%, #fff 32%);
}
.theme-general .book-learning-drawer__header { padding: 0 0 13px; border-bottom: 1px solid #dce2e8; }
.theme-general .book-learning-drawer__header h2 { font-size: 21px; }
.theme-general .book-learning-drawer__reading { border-radius: 5px; }
.theme-general .book-learning-drawer__stages { gap: 0; }
.theme-general .book-learning-drawer__stages button { border: 0; border-bottom: 1px solid #e2e7ec; border-radius: 0; }
.theme-general .book-learning-drawer__stages button > span { border-radius: 4px; }
.theme-general .book-learning-drawer__stages button:hover,
.theme-general .book-learning-drawer__stages button.is-active { box-shadow: inset 3px 0 0 var(--book-accent); }

.book-learning-drawer.has-live-mission .book-learning-drawer__stages {
  grid-template-rows: repeat(8, minmax(52px, 1fr));
}
.theme-general .book-learning-drawer__stages .book-learning-drawer__live-mission {
  margin-top: 5px;
  border: 1px solid rgba(42, 135, 188, .28);
  border-radius: 10px;
  background: linear-gradient(135deg, #0a2545 0%, #0b4f79 58%, #087b87 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(9, 54, 87, .16);
}
.theme-general .book-learning-drawer__stages .book-learning-drawer__live-mission > span {
  border-radius: 7px;
  background: #e9fbff;
  color: #07526d;
}
.theme-general .book-learning-drawer__stages .book-learning-drawer__live-mission b,
.theme-general .book-learning-drawer__stages .book-learning-drawer__live-mission small,
.theme-general .book-learning-drawer__stages .book-learning-drawer__live-mission i { color: #fff; }
.theme-general .book-learning-drawer__stages .book-learning-drawer__live-mission small { opacity: .78; }
.theme-general .book-learning-drawer__stages .book-learning-drawer__live-mission:hover,
.theme-general .book-learning-drawer__stages .book-learning-drawer__live-mission.is-active {
  border-color: rgba(117, 226, 239, .72);
  background: linear-gradient(135deg, #071d38 0%, #075d87 58%, #07909a 100%);
  color: #fff;
  box-shadow: inset 3px 0 0 #7fe9f2, 0 12px 28px rgba(9, 54, 87, .22);
}

.book-learning-player {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}

.book-learning-player[hidden] { display: none; }
.book-learning-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.book-learning-player__close { position: fixed; z-index: 2010; top: 14px; right: 18px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid rgba(16, 22, 47, .25); border-radius: 10px; background: #17233b; color: #fff; box-shadow: 0 8px 24px rgba(17, 25, 42, .2); font-size: 13px; font-weight: 900; cursor: pointer; }
.book-learning-player__close:hover { background: var(--book-accent); }

.book-reader-page .fw-annotation-panel-toggle,
.book-reader-page .fw-annotation-toolbar {
  --annotation-accent: var(--book-accent);
  --annotation-accent-rgb: var(--book-accent-rgb);
}

.book-reader-page.is-book-learning-active .book-learning-drawer,
.book-reader-page.is-book-learning-active .book-learning-scrim,
.book-reader-page.is-book-learning-active .fw-annotation-panel-toggle,
.book-reader-page.is-book-learning-active .fw-annotation-toolbar,
.book-reader-page.is-book-learning-active .fw-annotation-canvas { display: none !important; }

@media (max-height: 720px) {
  .book-learning-drawer { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .book-learning-drawer__header { margin-bottom: 0; }
  .book-learning-drawer__header h2 { margin-top: 2px; font-size: 20px; }
  .book-learning-drawer__reading { padding: 7px 10px; }
  .book-learning-drawer__stages { grid-template-rows: repeat(7, minmax(48px, 1fr)); gap: 2px; }
  .book-learning-drawer.has-live-mission .book-learning-drawer__stages { grid-template-rows: repeat(8, minmax(44px, 1fr)); }
  .book-learning-drawer__stages button { min-height: 48px; padding: 5px 10px; }
  .book-learning-drawer.has-live-mission .book-learning-drawer__stages button { min-height: 44px; }
}

@media (max-width: 1040px) {
  .book-toolbar { grid-template-columns: minmax(330px, auto) 1fr; }
  .book-toolbar__identity { justify-items: start; text-align: left; }
  .book-toolbar__actions { grid-column: 1 / -1; justify-content: center; padding-top: 8px; border-top: 1px solid #edf0f5; }
  .book-stage { height: calc(100vh - 139px - 68px); grid-template-columns: 52px minmax(0, 1fr) 52px; padding: 12px 4px; }
  .book-reader-page.is-sentence-audio-active .book-stage { height: calc(100vh - 139px - 68px - 52px); }
  .book-cover { width: auto; }
  .book-footer { height: 68px; }
  .book-spread { grid-template-columns: 1fr; grid-template-rows: minmax(210px, .9fr) minmax(0, 1.1fr); }
  .book-spread::after { display: none; }
  .book-spread { --book-spread-padding: clamp(18px, 3vw, 24px); }
  .book-spread__visual,
  .book-spread__copy { padding: var(--book-spread-padding); }
  .book-spread__paragraphs { margin-top: 16px; }
}

@media (max-width: 680px) {
  body { overflow: auto; }
  .book-toolbar { position: sticky; top: 0; min-height: 64px; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 8px 10px; }
  .book-toolbar__primary { width: 100%; justify-content: center; gap: 5px; overflow-x: auto; }
  .book-toolbar__back,
  .book-toolbar__shortcut,
  .book-toolbar .fw-annotation-panel-toggle,
  .book-toolbar .fw-annotation-panel-toggle.is-open { min-height: 40px; height: 40px; padding: 0 10px; gap: 5px; border-radius: 11px; font-size: 11px; }
  .book-toolbar__back span:last-child { display: inline; }
  .book-toolbar .fw-annotation-panel-toggle__label { display: inline; font-size: 11px; }
  .book-toolbar__identity { justify-items: center; text-align: center; }
  .book-toolbar__identity span { font-size: 8px; }
  .book-toolbar__identity strong { margin-top: 3px; font-size: 14px; }
  .book-toolbar__actions { grid-column: 1 / -1; gap: 5px; padding-top: 6px; overflow-x: auto; justify-content: flex-start; }
  .book-toolbar__actions button { min-width: 40px; min-height: 38px; padding: 0 9px; font-size: 11px; white-space: nowrap; }
  .book-stage { height: auto; min-height: calc(100vh - 132px); grid-template-columns: 1fr; padding: 10px; }
  .book-pages { height: auto; min-height: calc(100vh - 156px); }
  .book-page { height: auto; min-height: calc(100vh - 156px); }
  .book-stage__arrow { position: fixed; z-index: 30; top: 50%; width: 38px; height: 64px; border-radius: 12px; font-size: 34px; }
  .book-stage__arrow--previous { left: 4px; }
  .book-stage__arrow--next { right: 4px; }
  .book-page--cover { min-height: 0; padding: 8px 30px 18px; }
  .book-cover {
    width: min(430px, 100%);
    height: auto;
    aspect-ratio: var(--book-cover-aspect, 23 / 32);
    min-height: 0;
    border-radius: 0;
  }
  .book-cover__meta { inset: 12px 11px auto 13px; }
  .book-cover__meta small { max-width: 68%; padding: 6px 8px; font-size: 9px; }
  .book-cover__image-wrap { width: 100%; }
  .book-cover__image-wrap img { width: 100%; height: 100%; }
  .book-cover__open { bottom: 14px; width: min(210px, 74%); min-height: 44px; }
  .book-spread { min-height: calc(100vh - 156px); border-radius: 0; grid-template-rows: 42vh auto; }
  .book-spread { --book-spread-padding: 16px; }
  .book-spread__visual,
  .book-spread__copy { padding: var(--book-spread-padding); }
  .book-spread__visual figcaption { padding-top: 7px; }
  .book-spread__copy { overflow: visible; }
  .book-spread--roomy .book-spread__copy { grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); }
  .book-spread__copy h2 { font-size: min(var(--book-heading-size), 24px); }
  .book-guide,
  .book-finish { height: auto; min-height: calc(100vh - 156px); grid-template-columns: 1fr; border-radius: 0; }
  .book-guide::after,
  .book-finish::after { display: none; }
  .book-guide__title-page,
  .book-guide__info-page,
  .book-finish__complete,
  .book-finish__next { min-height: 52vh; padding: 34px 28px; }
  .book-guide__title-page h2 { font-size: clamp(42px, 15vw, 68px); }
  .book-guide__title-page h2.book-guide__title-lockup { font-size: 0; }
  .book-footer { position: sticky; bottom: 0; height: 62px; grid-template-columns: 1fr; padding: 7px 12px; }
  .book-footer__neighbor { display: none; }
  .book-footer__position { gap: 6px; }
  .book-audio-dock {
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 6px 10px;
  }
  .book-audio-dock__rates { overflow-x: auto; }
  .book-audio-dock__rates button { padding: 0 7px; }
  .book-reader-page.is-sentence-audio-active .book-stage { height: auto; }
  .book-reader-page.is-sentence-audio-active .book-reader-status { bottom: 72px; }
  .book-reader-status { bottom: 72px; }
  .book-learning-drawer { width: min(336px, calc(100vw - 20px)); }
  .book-learning-player__close { top: 9px; right: 10px; min-height: 40px; padding: 0 12px; font-size: 12px; }
  .book-reader-page .fw-annotation-toolbar { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .book-word-dialog { padding: 24px 18px; }
}

@media (max-width: 680px) {
  .theme-kids .book-spread:has(> .book-spread__visual--kids-portrait-full-bleed) {
    grid-template-rows: auto auto;
  }

  .theme-kids .book-spread__visual--kids-portrait-full-bleed {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .theme-kids .book-spread__visual--kids-portrait-full-bleed.book-spread__visual--kids-portrait-9x16 {
    aspect-ratio: 9 / 16;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  body { overflow: visible; background: #fff; }
  .book-toolbar,
  .book-stage__arrow,
  .book-footer,
  .book-learning-drawer,
  .book-learning-scrim,
  .book-learning-player,
  .fw-annotation-panel-toggle,
  .fw-annotation-toolbar,
  .fw-annotation-canvas,
  .book-audio-dock,
  .book-reader-status { display: none !important; }
  .book-stage,
  .book-pages,
  .book-page { display: block !important; width: 100%; height: auto; min-height: 0; padding: 0; }
  .book-page { break-after: page; }
  .book-page[hidden] { display: block !important; }
  .book-cover,
  .book-guide,
  .book-spread,
  .book-finish { width: 100%; height: auto; max-height: none; min-height: 92vh; border: 0; box-shadow: none; }
}

/* GENERAL_TRAVEL_PICTURE_BOOK_V1_START */
.theme-general.is-general-picture-book {
  --book-accent:#286c9f;
  --book-accent-rgb:40,108,159;
  --book-accent-dark:#143e61;
  --book-soft:#eaf4fa;
  background:linear-gradient(180deg,#f7fbfe 0%,#edf4f8 100%);
}
.theme-general.is-general-picture-book .book-toolbar {
  grid-template-columns:minmax(270px,auto) minmax(180px,1fr) minmax(270px,auto);
}
.theme-general.is-general-picture-book .book-toolbar__actions,
.theme-general.is-general-picture-book .fw-annotation-panel-toggle { display:none !important; }
.theme-general.is-general-picture-book .book-toolbar__primary { grid-column:1; }
.theme-general.is-general-picture-book .book-toolbar__identity { grid-column:2; }
.theme-general.is-general-picture-book .general-picture-practice-toggle { position:relative; }
.theme-general.is-general-picture-book .general-picture-practice-toggle input {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}
.theme-general.is-general-picture-book .general-picture-practice-toggle__answer { display:none; }
.theme-general.is-general-picture-book:has([data-general-picture-blank-bubbles]:checked) .general-picture-practice-toggle {
  border-color:var(--book-accent);
  background:var(--book-soft);
}
.theme-general.is-general-picture-book:has([data-general-picture-blank-bubbles]:checked) .general-picture-practice-toggle__blank { display:none; }
.theme-general.is-general-picture-book:has([data-general-picture-blank-bubbles]:checked) .general-picture-practice-toggle__answer { display:inline; }
.theme-general.is-general-picture-book .book-stage { padding-block:10px; }
.theme-general.is-general-picture-book .book-pages { width:min(980px,100%); }
.theme-general.is-general-picture-book .book-cover {
  aspect-ratio:2 / 3;
  max-height:100%;
  border:0;
  border-radius:18px;
  box-shadow:0 24px 58px rgba(24,55,82,.2);
}
.theme-general.is-general-picture-book .book-cover::before,
.theme-general.is-general-picture-book .book-cover__meta { display:none; }
.theme-general.is-general-picture-book .book-cover__open {
  bottom:18px;
  min-width:132px;
  background:rgba(12,44,69,.84);
  letter-spacing:.08em;
}
.theme-general.is-general-picture-book .book-spread {
  width:auto;
  height:100%;
  aspect-ratio:var(--general-picture-aspect,9 / 16);
  grid-template-columns:1fr;
  grid-template-rows:1fr;
  border:0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 58px rgba(24,55,82,.18);
}
.theme-general.is-general-picture-book .book-spread::after,
.theme-general.is-general-picture-book .book-spread__copy,
.theme-general.is-general-picture-book .book-spread__visual figcaption { display:none; }
.theme-general.is-general-picture-book .book-spread__visual {
  position:relative;
  display:block;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  background:#fff;
}
.theme-general.is-general-picture-book .book-spread__visual img {
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  background:#fff;
}
.theme-general.is-general-picture-book .general-picture-dialogue {
  position:absolute;
  z-index:3;
  inset:0;
  pointer-events:none;
}
.theme-general.is-general-picture-book .general-picture-bubble {
  position:absolute;
  z-index:1;
  top:var(--bubble-y,8%);
  left:var(--bubble-x,5%);
  bottom:auto;
  width:var(--bubble-w,44%);
  min-width:0;
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:11px 18px;
  border:2px solid rgba(16,42,76,.82);
  border-radius:28px;
  background:rgba(255,255,255,.96);
  color:#102a4c;
  box-shadow:0 12px 28px rgba(13,35,61,.18);
  font-size:clamp(15px,1.2vw,20px);
  font-weight:900;
  line-height:1.25;
  text-align:center;
  transform:translateZ(0);
}
.theme-general.is-general-picture-book .general-picture-bubble {
  --bubble-tail-color:rgba(255,255,255,.96);
  --bubble-tail-outline:#102a4c;
}
.theme-general.is-general-picture-book .general-picture-bubble::before,
.theme-general.is-general-picture-book .general-picture-bubble::after {
  position:absolute;
  left:var(--bubble-tail-x,50%);
  width:0;
  height:0;
  transform:translateX(-50%);
  content:"";
  pointer-events:none;
}
.theme-general.is-general-picture-book .general-picture-bubble::before {
  bottom:-20px;
  border-top:21px solid var(--bubble-tail-outline,#102a4c);
  border-right:14px solid transparent;
  border-left:14px solid transparent;
}
.theme-general.is-general-picture-book .general-picture-bubble::after {
  bottom:-17px;
  border-top:18px solid var(--bubble-tail-color,rgba(255,255,255,.96));
  border-right:12px solid transparent;
  border-left:12px solid transparent;
}
.theme-general.is-general-picture-book .general-picture-bubble--tail-up::before {
  top:-20px;
  bottom:auto;
  border-top:0;
  border-right:14px solid transparent;
  border-bottom:21px solid var(--bubble-tail-outline,#102a4c);
  border-left:14px solid transparent;
}
.theme-general.is-general-picture-book .general-picture-bubble--tail-up::after {
  top:-17px;
  bottom:auto;
  border-top:0;
  border-right:12px solid transparent;
  border-bottom:18px solid var(--bubble-tail-color,rgba(255,255,255,.96));
  border-left:12px solid transparent;
}
.theme-general.is-general-picture-book .general-picture-bubble--tail-edge-left::before {
  top:50%;
  left:-21px;
  bottom:auto;
  border-top:14px solid transparent;
  border-right:21px solid var(--bubble-tail-outline,#102a4c);
  border-bottom:14px solid transparent;
  border-left:0;
  transform:translateY(-50%);
}
.theme-general.is-general-picture-book .general-picture-bubble--tail-edge-left::after {
  top:50%;
  left:-18px;
  bottom:auto;
  border-top:12px solid transparent;
  border-right:19px solid var(--bubble-tail-color,rgba(16,42,76,.96));
  border-bottom:12px solid transparent;
  border-left:0;
  transform:translateY(-50%);
}
.theme-general.is-general-picture-book .general-picture-bubble--tail-edge-right::before {
  top:50%;
  right:-21px;
  left:auto;
  bottom:auto;
  border-top:14px solid transparent;
  border-right:0;
  border-bottom:14px solid transparent;
  border-left:21px solid var(--bubble-tail-outline,#102a4c);
  transform:translateY(-50%);
}
.theme-general.is-general-picture-book .general-picture-bubble--tail-edge-right::after {
  top:50%;
  right:-18px;
  left:auto;
  bottom:auto;
  border-top:12px solid transparent;
  border-right:0;
  border-bottom:12px solid transparent;
  border-left:19px solid var(--bubble-tail-color,rgba(16,42,76,.96));
  transform:translateY(-50%);
}
.theme-general.is-general-picture-book .general-picture-bubble--reply {
  --bubble-tail-color:rgba(226,244,251,.97);
  --bubble-tail-outline:#2670a7;
  border-color:#2670a7;
  border-radius:18px 28px 28px 24px;
  background:rgba(226,244,251,.97);
  box-shadow:0 10px 24px rgba(25,81,120,.18);
}
.theme-general.is-general-picture-book .general-picture-bubble--counterpart {
  --bubble-tail-color:rgba(16,42,76,.97);
  --bubble-tail-outline:#102a4c;
  border-color:#102a4c;
  border-radius:18px 28px 28px 24px;
  background:rgba(16,42,76,.97);
  color:#fff;
  box-shadow:0 12px 26px rgba(9,27,48,.28);
}
.theme-general.is-general-picture-book .general-picture-bubble--offscreen {
  --bubble-tail-color:rgba(16,42,76,.96);
  --bubble-tail-outline:#102a4c;
  min-height:52px;
  border-color:rgba(255,255,255,.84);
  border-radius:11px 27px 27px 11px;
  background:rgba(16,42,76,.96);
  color:#fff;
  box-shadow:0 12px 26px rgba(9,27,48,.28);
}
.theme-general.is-general-picture-book .general-picture-bubble--exclaim {
  min-height:72px;
  padding:15px 24px;
  border:0;
  border-radius:8px;
  background:#102a4c;
  color:#fff;
  clip-path:polygon(4% 20%,14% 17%,10% 7%,25% 13%,32% 2%,40% 13%,52% 4%,58% 15%,73% 7%,77% 18%,94% 16%,88% 31%,98% 42%,88% 52%,96% 69%,80% 70%,77% 92%,63% 82%,52% 98%,43% 84%,27% 94%,25% 78%,8% 84%,14% 66%,1% 57%,12% 45%);
  filter:drop-shadow(0 10px 18px rgba(9,27,48,.28));
  transform:rotate(-1.5deg);
}
.theme-general.is-general-picture-book .general-picture-bubble--exclaim::before,
.theme-general.is-general-picture-book .general-picture-bubble--exclaim::after { display:none; }
.theme-general.is-general-picture-book .general-picture-bubble--thought {
  --bubble-tail-color:rgba(255,255,255,.97);
  min-height:74px;
  border:2px solid rgba(16,42,76,.78);
  border-radius:48%;
  background:rgba(255,255,255,.97);
  font-style:italic;
}
.theme-general.is-general-picture-book .general-picture-bubble--tail-thought-down::before { display:none; }
.theme-general.is-general-picture-book .general-picture-bubble--tail-thought-down::after {
  width:12px;
  height:12px;
  bottom:-20px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.97);
  box-shadow:12px 12px 0 -3px rgba(255,255,255,.94),20px 22px 0 -5px rgba(255,255,255,.9);
}
.theme-general.is-general-picture-book:has([data-general-picture-blank-bubbles]:checked) .general-picture-bubble span { opacity:0; }

.theme-general.is-general-picture-book .book-spread--general-pattern {
  width:min(820px,100%);
  height:100%;
  aspect-ratio:9 / 16;
  border:1px solid #d7e4ec;
  background:
    radial-gradient(circle at 92% 8%,rgba(40,108,159,.12),transparent 25%),
    linear-gradient(180deg,#fff 0%,#f6fafc 100%);
}
.theme-general.is-general-picture-book .book-spread--general-pattern .book-spread__copy {
  width:100%;
  display:flex;
  padding:clamp(30px,4vh,52px) clamp(34px,4.6vw,62px);
  overflow:auto;
  background:transparent;
}
.theme-general.is-general-picture-book .book-spread--general-pattern .book-spread__story {
  width:100%;
  max-width:none;
  align-self:flex-start;
  margin:0;
}
.theme-general.is-general-picture-book .general-pattern-kicker {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--book-accent);
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
}
.theme-general.is-general-picture-book .general-pattern-kicker b {
  display:grid;
  width:42px;
  height:42px;
  place-items:center;
  border-radius:50%;
  background:var(--book-accent-dark);
  color:#fff;
  letter-spacing:0;
}
.theme-general.is-general-picture-book .book-spread--general-pattern .book-spread__copy h2 {
  margin:18px 0 0;
  color:#102a4c;
  font-size:clamp(34px,4vw,56px);
  line-height:1;
  letter-spacing:-.045em;
}
.theme-general.is-general-picture-book .general-pattern-note {
  margin:12px 0 0;
  color:#60758a;
  font-size:14px;
  font-weight:750;
}
.theme-general.is-general-picture-book .general-pattern-intro {
  margin:12px 0 0;
  padding:11px 14px 10px;
  border:1px solid #d8e6ee;
  border-radius:14px;
  background:#f4f9fc;
}
.theme-general.is-general-picture-book .general-pattern-intro__body {
  margin:0;
  color:#476178;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}
.theme-general.is-general-picture-book .general-pattern-intro__rule {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px 10px;
  margin-top:6px;
}
.theme-general.is-general-picture-book .general-pattern-intro__rule strong {
  color:#155f93;
  font-size:14px;
  font-weight:950;
}
.theme-general.is-general-picture-book .general-pattern-intro__rule span {
  color:#667d90;
  font-size:12px;
  font-weight:750;
}
.theme-general.is-general-picture-book .general-pattern-intro__steps {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  margin:8px 0 0;
  padding:0;
  list-style:none;
  color:#6b7f91;
  font-size:10px;
  font-weight:850;
}
.theme-general.is-general-picture-book .general-pattern-intro__steps li {
  display:flex;
  align-items:center;
  gap:5px;
}
.theme-general.is-general-picture-book .general-pattern-intro__steps li:not(:last-child)::after {
  color:#9bb0bf;
  content:'→';
}
.theme-general.is-general-picture-book .general-pattern-intro__steps .is-current {
  color:#155f93;
}
.theme-general.is-general-picture-book .general-pattern-intro + .book-spread__paragraphs {
  margin-top:14px;
}
.theme-general.is-general-picture-book .book-spread--general-pattern .book-spread__paragraphs {
  display:grid;
  gap:10px;
  margin-top:24px;
  counter-reset:general-pattern-example;
}
.theme-general.is-general-picture-book .book-spread--general-pattern .book-paragraph {
  position:relative;
  min-height:76px;
  display:grid;
  align-content:center;
  padding:12px 18px 12px 58px;
  border:1px solid #dce7ee;
  border-radius:16px;
  background:rgba(255,255,255,.9);
  counter-increment:general-pattern-example;
}
.theme-general.is-general-picture-book .book-spread--general-pattern .book-paragraph::before {
  position:absolute;
  left:15px;
  top:50%;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eaf4fa;
  color:var(--book-accent);
  font-size:11px;
  font-weight:950;
  transform:translateY(-50%);
  content:counter(general-pattern-example,decimal-leading-zero);
}
.theme-general.is-general-picture-book .book-spread--general-pattern .book-paragraph__english {
  margin:0;
  color:#102a4c;
  font-family:inherit;
  font-size:clamp(17px,1.5vw,22px);
  font-weight:900;
  line-height:1.2;
}
.theme-general.is-general-picture-book .general-pattern-reveal {
  display:block;
  margin:0;
  color:#102a4c;
  cursor:pointer;
}
.theme-general.is-general-picture-book .general-pattern-reveal > input {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.theme-general.is-general-picture-book .general-pattern-reveal__line {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.32em;
  font-family:inherit;
  font-size:clamp(17px,1.5vw,22px);
  font-weight:900;
  line-height:1.25;
}
.theme-general.is-general-picture-book .general-pattern-reveal__lead,
.theme-general.is-general-picture-book .general-pattern-reveal__tail,
.theme-general.is-general-picture-book .general-pattern-reveal__full {
  display:inline-block;
  border-radius:7px;
  transition:color .2s ease,background-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.theme-general.is-general-picture-book .general-pattern-reveal .is-concealed {
  padding:.08em .28em;
  color:transparent;
  background:#d2d8de;
  box-shadow:inset 0 -2px 0 rgba(70,83,96,.12);
  user-select:none;
}
.theme-general.is-general-picture-book .general-pattern-reveal:hover .is-concealed {
  background:#c3cbd3;
  transform:translateY(-1px);
}
.theme-general.is-general-picture-book .general-pattern-reveal > input:focus-visible + .general-pattern-reveal__line .is-concealed {
  outline:3px solid rgba(38,112,167,.3);
  outline-offset:3px;
}
.theme-general.is-general-picture-book .general-pattern-reveal > input:checked + .general-pattern-reveal__line .is-concealed {
  color:#102a4c;
  background:#eaf4fa;
  box-shadow:inset 0 -2px 0 rgba(38,112,167,.18);
  transform:none;
  user-select:text;
}
.theme-general.is-general-picture-book .book-spread--general-pattern .book-paragraph__translation[hidden] {
  display:block !important;
  margin:5px 0 0;
  color:#718396;
  font-size:12px;
  font-weight:700;
}
.theme-general.is-general-picture-book .book-footer__neighbor .is-empty { opacity:0; }

@media (max-width:1040px) {
  .theme-general.is-general-picture-book .book-toolbar {
    grid-template-columns:minmax(270px,auto) minmax(180px,1fr);
  }
  .theme-general.is-general-picture-book .book-stage {
    height:calc(100vh - 78px - 68px);
  }
}

@media (max-width:680px) {
  body.theme-general.is-general-picture-book { overflow:hidden; }
  .theme-general.is-general-picture-book .book-toolbar {
    position:relative;
    min-height:64px;
    grid-template-columns:minmax(0,auto) minmax(0,1fr);
    gap:8px;
  }
  .theme-general.is-general-picture-book .book-toolbar__primary {
    width:auto;
    justify-content:flex-start;
    overflow:visible;
  }
  .theme-general.is-general-picture-book .book-toolbar__identity {
    grid-column:2;
    justify-items:end;
    text-align:right;
  }
  .theme-general.is-general-picture-book .book-toolbar__identity span {
    display:none;
  }
  .theme-general.is-general-picture-book .book-toolbar__identity strong {
    display:block;
    max-width:132px;
    margin-top:0;
    overflow:visible;
    font-size:12px;
    line-height:1.15;
    text-overflow:clip;
    white-space:normal;
  }
  .theme-general.is-general-picture-book .book-stage {
    height:calc(100dvh - 64px - 62px);
    min-height:0;
    grid-template-columns:1fr;
    padding:8px 38px;
  }
  .theme-general.is-general-picture-book .book-pages,
  .theme-general.is-general-picture-book .book-page {
    height:100%;
    min-height:0;
  }
  .theme-general.is-general-picture-book .book-page--cover { padding:0; }
  .theme-general.is-general-picture-book .book-cover,
  .theme-general.is-general-picture-book .book-spread {
    width:auto;
    height:100%;
    min-height:0;
    border-radius:12px;
  }
  .theme-general.is-general-picture-book .book-spread:not(.book-spread--general-pattern) {
    width:100%;
    height:auto;
    max-width:100%;
    max-height:100%;
  }
  .theme-general.is-general-picture-book .book-spread--general-pattern {
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    aspect-ratio:auto;
  }
  .theme-general.is-general-picture-book .book-page--cover .book-cover {
    width:100%;
    height:auto;
    max-height:100%;
    aspect-ratio:2 / 3;
  }
  .theme-general.is-general-picture-book .book-cover__image-wrap img {
    object-fit:cover;
  }
  .theme-general.is-general-picture-book .book-stage:has(.book-page--cover.is-active) {
    padding-inline:12px;
  }
  .theme-general.is-general-picture-book .book-stage:has(.book-page--cover.is-active) .book-stage__arrow {
    display:none;
  }
  .theme-general.is-general-picture-book .general-picture-bubble {
    min-height:46px;
    padding:8px 12px;
    border-width:1.5px;
    font-size:13px;
  }
  .theme-general.is-general-picture-book .general-picture-bubble--exclaim { min-height:56px; padding:11px 16px; }
  .theme-general.is-general-picture-book .general-picture-bubble--thought { min-height:58px; }
  .theme-general.is-general-picture-book .book-spread--general-pattern .book-spread__copy { padding:24px 22px; }
  .theme-general.is-general-picture-book .book-spread--general-pattern .book-spread__copy h2 { font-size:31px; }
  .theme-general.is-general-picture-book .book-spread--general-pattern .book-spread__paragraphs { margin-top:18px; }
  .theme-general.is-general-picture-book .general-pattern-intro { padding:9px 11px; }
  .theme-general.is-general-picture-book .general-pattern-intro + .book-spread__paragraphs { margin-top:10px; }
  .theme-general.is-general-picture-book .book-spread--general-pattern .book-paragraph { min-height:68px; padding-left:50px; }
  .theme-general.is-general-picture-book .book-stage__arrow { top:46%; }
}
/* GENERAL_TRAVEL_PICTURE_BOOK_V1_END */

/* NATIONAL_FIELD_GUIDE_V2_START */
.theme-junior.is-junior-commercial {
  --book-accent:#0e7c8d;
  --book-accent-rgb:14,124,141;
  --book-accent-dark:#102a43;
  --book-soft:#eef7f8;
  --book-heading-size:clamp(30px,2.25vw,38px);
  --book-body-size:clamp(17.5px,1.14vw,19.5px);
  --book-body-leading:1.56;
  --book-body-tracking:-.004em;
  --book-paragraph-gap:clamp(13px,1.25vh,17px);
}
.theme-junior.is-junior-commercial .book-spread {
  width:auto;
  height:min(724px,100%);
  max-width:100%;
  aspect-ratio:2720 / 1659;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border:0;
  outline:0;
  background:#fff;
  box-shadow:none;
}
.theme-junior.is-junior-commercial .book-page--spread,
.theme-junior.is-junior-commercial .book-pages,
.theme-junior.is-junior-commercial .fw-annotation-canvas {
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.theme-junior.is-junior-commercial .book-spread::after {
  background:linear-gradient(90deg,rgba(16,42,67,.08),rgba(16,42,67,.015) 45%,rgba(255,255,255,.75));
}
.theme-junior.is-junior-commercial .book-spread__visual {
  position:relative;
  display:block;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#102a43;
}
.theme-junior.is-junior-commercial .book-spread__visual img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  background:#102a43;
}
.theme-junior.is-junior-commercial .book-spread__visual figcaption { display:none; }
.theme-junior.is-junior-commercial .book-spread__copy {
  padding:clamp(36px,3vw,50px) clamp(40px,3.3vw,56px) clamp(28px,2.4vw,40px);
  overflow:hidden;
  background:#fff;
}
.theme-junior.is-junior-commercial .book-spread__story {
  width:100%;
  max-width:100%;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  margin-top:0;
}
.theme-junior.is-junior-commercial .book-spread__commercial-kicker {
  display:block;
  margin:0 0 17px;
  color:var(--book-accent);
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
}
.theme-junior.is-junior-commercial .book-spread__commercial-kicker i { display:none; }
.theme-junior.is-junior-commercial .book-spread__copy h2 {
  margin:0;
  color:#102a43;
  font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif;
  font-weight:900;
  letter-spacing:-.045em;
  line-height:1.04;
}
.theme-junior.is-junior-commercial .book-spread__paragraphs { margin-top:22px; }
.theme-junior.is-junior-commercial .book-paragraph__english {
  color:#152b40;
  font-family:Georgia,"Times New Roman",serif;
  font-size:var(--book-body-size);
  line-height:var(--book-body-leading);
  letter-spacing:var(--book-body-tracking);
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.theme-junior.is-junior-commercial .book-spread--junior-discovery .book-paragraph:first-child .book-paragraph__english::first-letter,
.theme-junior.is-junior-commercial .book-spread--junior-explanation .book-paragraph:first-child .book-paragraph__english::first-letter,
.theme-junior.is-junior-commercial .book-spread--junior-application .book-paragraph:first-child .book-paragraph__english::first-letter {
  float:left;
  margin:0 8px 0 0;
  color:var(--book-accent);
  font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif;
  font-size:2.85em;
  font-weight:900;
  line-height:.82;
}
.theme-junior.is-junior-commercial .book-spread__keywords {
  margin-top:auto;
  padding-top:18px;
  gap:8px;
  border:0;
}
.theme-junior.is-junior-commercial .book-spread__keywords > span {
  color:#53687c;
  font-size:9px;
  font-weight:950;
  letter-spacing:.12em;
}
.theme-junior.is-junior-commercial .book-spread__keyword-list button {
  min-height:27px;
  padding:3px 10px;
  border:1px solid rgba(var(--book-accent-rgb),.22);
  border-radius:999px;
  background:#eef7f8;
  color:#164f73;
  font-size:10px;
  font-weight:850;
}
.theme-junior.is-junior-commercial .book-spread--junior-opening .book-spread__copy {
  padding-top:clamp(40px,3.4vw,58px);
}
.theme-junior.is-junior-commercial .book-spread--junior-opening .book-spread__copy h2 {
  max-width:95%;
  font-size:clamp(34px,2.65vw,44px);
}
.theme-junior.is-junior-commercial .book-spread--junior-opening .book-paragraph__english {
  font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif;
  font-size:17px;
  line-height:1.62;
}
.theme-junior.is-junior-commercial .book-spread--junior-opening .book-spread__story::after {
  content:"01  SEE IT     02  EXPLAIN IT     03  USE IT";
  display:block;
  margin-top:30px;
  color:#ef4f70;
  font-size:11px;
  font-weight:950;
  letter-spacing:.07em;
  word-spacing:.12em;
}
.theme-junior.is-junior-commercial .book-spread--junior-discovery { --book-accent:#0e7c8d; --book-accent-rgb:14,124,141; }
.theme-junior.is-junior-commercial .book-spread--junior-explanation { --book-accent:#d64272; --book-accent-rgb:214,66,114; }
.theme-junior.is-junior-commercial .book-spread--junior-application { --book-accent:#128c89; --book-accent-rgb:18,140,137; }
.theme-junior.is-junior-commercial .book-spread--junior-synthesis { --book-accent:#e14c69; --book-accent-rgb:225,76,105; }
.theme-junior.is-junior-commercial .book-spread--junior-discovery .book-spread__story::after,
.theme-junior.is-junior-commercial .book-spread--junior-explanation .book-spread__story::after,
.theme-junior.is-junior-commercial .book-spread--junior-application .book-spread__story::after {
  display:block;
  margin-top:auto;
  padding-top:14px;
  color:#0d5870;
  font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif;
  font-size:10px;
  font-weight:950;
  letter-spacing:.065em;
}
.theme-junior.is-junior-commercial .book-spread--junior-discovery .book-spread__story::after { content:"FOLLOW THE CLUE     LIGHT CHANGES  →  BODY NOTICES"; }
.theme-junior.is-junior-commercial .book-spread--junior-explanation .book-spread__story::after { content:"FOLLOW THE CLUE     SIGNAL TRAVELS  →  MUSCLES RESPOND"; }
.theme-junior.is-junior-commercial .book-spread--junior-application .book-spread__story::after { content:"FOLLOW THE CLUE     TRACK  →  TEST  →  ADJUST"; }
.theme-junior.is-junior-commercial[data-library-book-id="r7-course-cb01-b02"] .book-spread--junior-discovery .book-spread__story::after { content:"FOLLOW THE CLUE     SOURCE  →  TREATMENT  →  SAFETY"; }
.theme-junior.is-junior-commercial[data-library-book-id="r7-course-cb01-b02"] .book-spread--junior-explanation .book-spread__story::after { content:"FOLLOW THE CLUE     LAYER  →  PARTICLE  →  LIMIT"; }
.theme-junior.is-junior-commercial[data-library-book-id="r7-course-cb01-b02"] .book-spread--junior-application .book-spread__story::after { content:"FOLLOW THE CLUE     HEAT  →  BREAK  →  BODY SIGNAL"; }
@media (max-width:1040px) {
  .theme-junior.is-junior-commercial .book-spread {
    width:min(760px,100%);
    height:auto;
    min-height:calc(100vh - 210px);
    grid-template-columns:1fr;
    grid-template-rows:minmax(42vh,52vh) auto;
  }
  .theme-junior.is-junior-commercial .book-spread__copy { padding:26px 24px 30px; }
}
@media (max-height:760px) and (min-width:1041px) {
  .theme-junior.is-junior-commercial {
    --book-heading-size:27px;
    --book-body-size:15px;
    --book-body-leading:1.42;
    --book-paragraph-gap:8px;
  }
  .theme-junior.is-junior-commercial .book-spread__copy {
    padding:24px 34px 18px;
  }
  .theme-junior.is-junior-commercial .book-spread__commercial-kicker {
    margin-bottom:10px;
    font-size:9px;
  }
  .theme-junior.is-junior-commercial .book-spread__paragraphs { margin-top:12px; }
  .theme-junior.is-junior-commercial .book-spread--junior-opening .book-spread__copy {
    padding-top:25px;
  }
  .theme-junior.is-junior-commercial .book-spread--junior-opening .book-spread__copy h2 {
    font-size:31px;
  }
  .theme-junior.is-junior-commercial .book-spread--junior-opening .book-paragraph__english {
    font-size:15px;
    line-height:1.5;
  }
  .theme-junior.is-junior-commercial .book-spread--junior-opening .book-spread__story::after {
    margin-top:18px;
    font-size:9px;
  }
  .theme-junior.is-junior-commercial .book-spread--junior-discovery .book-spread__story::after,
  .theme-junior.is-junior-commercial .book-spread--junior-explanation .book-spread__story::after,
  .theme-junior.is-junior-commercial .book-spread--junior-application .book-spread__story::after {
    padding-top:8px;
    font-size:8px;
  }
  .theme-junior.is-junior-commercial .book-spread__keywords {
    padding-top:7px;
    gap:5px;
  }
  .theme-junior.is-junior-commercial .book-spread__keywords > span { font-size:8px; }
  .theme-junior.is-junior-commercial .book-spread__keyword-list { gap:4px; }
  .theme-junior.is-junior-commercial .book-spread__keyword-list button {
    min-height:22px;
    padding:2px 8px;
    font-size:8px;
  }
}
@media (max-width:680px) {
  .theme-junior.is-junior-commercial .book-spread { box-shadow:none; }
  .theme-junior.is-junior-commercial .book-spread__copy h2 { font-size:min(var(--book-heading-size),27px); }
  .theme-junior.is-junior-commercial .book-paragraph__english { font-size:17px; }
}
/* NATIONAL_FIELD_GUIDE_V2_END */

/* FULL_BLEED_ARTICLE_V1_START
   Content-admin visualPolicy drives this shared Junior / Teens / General rule. */
.book-reader-page.is-full-bleed-article .book-spread__visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #102a43;
}
.book-reader-page.is-full-bleed-article .book-spread__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: #102a43;
}
.book-reader-page.is-full-bleed-article .book-spread__visual figcaption {
  display: none;
}
/* FULL_BLEED_ARTICLE_V1_END */

/* TEEN_NATIONAL_FIELD_NOTES_V2_START */
.theme-teens.is-junior-commercial {
  --book-accent:#9b3f75;
  --book-accent-rgb:155,63,117;
  --book-accent-dark:#102a43;
  --book-soft:#f8f0f5;
  --book-heading-size:clamp(28px,2.05vw,35px);
  --book-body-size:clamp(16.2px,1.02vw,18px);
  --book-body-leading:1.56;
  --book-body-tracking:-.004em;
  --book-paragraph-gap:clamp(13px,1.25vh,17px);
}
.theme-teens.is-junior-commercial .book-spread {
  width:auto;
  height:min(724px,100%);
  max-width:100%;
  aspect-ratio:2720 / 1659;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border:0;
  outline:0;
  background:#fff;
  box-shadow:none;
}
.theme-teens.is-junior-commercial .book-page--spread,
.theme-teens.is-junior-commercial .book-pages,
.theme-teens.is-junior-commercial .fw-annotation-canvas {
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.theme-teens.is-junior-commercial .book-spread::after {
  background:linear-gradient(90deg,rgba(16,42,67,.08),rgba(16,42,67,.015) 45%,rgba(255,255,255,.75));
}
.theme-teens.is-junior-commercial .book-spread__visual {
  position:relative;
  display:block;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#102a43;
}
.theme-teens.is-junior-commercial .book-spread__visual img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  background:#102a43;
}
.theme-teens.is-junior-commercial .book-spread__visual figcaption { display:none; }
.theme-teens.is-junior-commercial .book-spread__copy {
  padding:clamp(36px,3vw,50px) clamp(40px,3.3vw,56px) clamp(28px,2.4vw,40px);
  overflow:hidden;
  background:#fff;
}
.theme-teens.is-junior-commercial .book-spread__story {
  width:100%;
  max-width:100%;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  margin-top:0;
}
.theme-teens.is-junior-commercial .book-spread__commercial-kicker {
  display:block;
  margin:0 0 17px;
  color:var(--book-accent);
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
}
.theme-teens.is-junior-commercial .book-spread__commercial-kicker i { display:none; }
.theme-teens.is-junior-commercial .book-spread__copy h2 {
  margin:0;
  color:#102a43;
  font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif;
  font-weight:900;
  letter-spacing:-.045em;
  line-height:1.04;
}
.theme-teens.is-junior-commercial .book-spread__paragraphs { margin-top:22px; }
.theme-teens.is-junior-commercial .book-paragraph__english {
  color:#152b40;
  font-family:Georgia,"Times New Roman",serif;
  font-size:var(--book-body-size);
  line-height:var(--book-body-leading);
  letter-spacing:var(--book-body-tracking);
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.theme-teens.is-junior-commercial .book-spread--junior-discovery .book-paragraph:first-child .book-paragraph__english::first-letter,
.theme-teens.is-junior-commercial .book-spread--junior-explanation .book-paragraph:first-child .book-paragraph__english::first-letter,
.theme-teens.is-junior-commercial .book-spread--junior-application .book-paragraph:first-child .book-paragraph__english::first-letter {
  float:left;
  margin:0 8px 0 0;
  color:var(--book-accent);
  font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif;
  font-size:2.85em;
  font-weight:900;
  line-height:.82;
}
.theme-teens.is-junior-commercial .book-spread__keywords {
  margin-top:auto;
  padding-top:18px;
  gap:8px;
  border:0;
}
.theme-teens.is-junior-commercial .book-spread__keywords > span {
  color:#53687c;
  font-size:9px;
  font-weight:950;
  letter-spacing:.12em;
}
.theme-teens.is-junior-commercial .book-spread__keyword-list button {
  min-height:27px;
  padding:3px 10px;
  border:1px solid rgba(var(--book-accent-rgb),.22);
  border-radius:999px;
  background:#eef7f8;
  color:#164f73;
  font-size:10px;
  font-weight:850;
}
.theme-teens.is-junior-commercial .book-spread--junior-opening .book-spread__copy {
  padding-top:clamp(40px,3.4vw,58px);
}
.theme-teens.is-junior-commercial .book-spread--junior-opening .book-spread__copy h2 {
  max-width:95%;
  font-size:clamp(34px,2.65vw,44px);
}
.theme-teens.is-junior-commercial .book-spread--junior-opening .book-paragraph__english {
  font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif;
  font-size:17px;
  line-height:1.62;
}
.theme-teens.is-junior-commercial .book-spread--junior-opening .book-spread__story::after {
  content:"01  SEE IT     02  EXPLAIN IT     03  USE IT";
  display:block;
  margin-top:30px;
  color:#ef4f70;
  font-size:11px;
  font-weight:950;
  letter-spacing:.07em;
  word-spacing:.12em;
}
.theme-teens.is-junior-commercial .book-spread--junior-discovery { --book-accent:#9b3f75; --book-accent-rgb:155,63,117; }
.theme-teens.is-junior-commercial .book-spread--junior-explanation { --book-accent:#d64272; --book-accent-rgb:214,66,114; }
.theme-teens.is-junior-commercial .book-spread--junior-application { --book-accent:#128c89; --book-accent-rgb:18,140,137; }
.theme-teens.is-junior-commercial .book-spread--junior-synthesis { --book-accent:#e14c69; --book-accent-rgb:225,76,105; }
.theme-teens.is-junior-commercial .book-spread--junior-discovery .book-spread__story::after,
.theme-teens.is-junior-commercial .book-spread--junior-explanation .book-spread__story::after,
.theme-teens.is-junior-commercial .book-spread--junior-application .book-spread__story::after {
  display:block;
  margin-top:auto;
  padding-top:14px;
  color:#0d5870;
  font-family:"Segoe UI","Noto Sans KR",Arial,sans-serif;
  font-size:10px;
  font-weight:950;
  letter-spacing:.065em;
}
.theme-teens.is-junior-commercial .book-spread--junior-discovery .book-spread__story::after { content:"FOLLOW THE CLUE     LIGHT CHANGES  →  BODY NOTICES"; }
.theme-teens.is-junior-commercial .book-spread--junior-explanation .book-spread__story::after { content:"FOLLOW THE CLUE     SIGNAL TRAVELS  →  MUSCLES RESPOND"; }
.theme-teens.is-junior-commercial .book-spread--junior-application .book-spread__story::after { content:"FOLLOW THE CLUE     TRACK  →  TEST  →  ADJUST"; }
.theme-teens.is-junior-commercial[data-library-book-id="r7-course-cb01-b02"] .book-spread--junior-discovery .book-spread__story::after { content:"FOLLOW THE CLUE     SOURCE  →  TREATMENT  →  SAFETY"; }
.theme-teens.is-junior-commercial[data-library-book-id="r7-course-cb01-b02"] .book-spread--junior-explanation .book-spread__story::after { content:"FOLLOW THE CLUE     LAYER  →  PARTICLE  →  LIMIT"; }
.theme-teens.is-junior-commercial[data-library-book-id="r7-course-cb01-b02"] .book-spread--junior-application .book-spread__story::after { content:"FOLLOW THE CLUE     HEAT  →  BREAK  →  BODY SIGNAL"; }
@media (max-width:1040px) {
  .theme-teens.is-junior-commercial .book-spread {
    width:min(760px,100%);
    height:auto;
    min-height:calc(100vh - 210px);
    grid-template-columns:1fr;
    grid-template-rows:minmax(42vh,52vh) auto;
  }
  .theme-teens.is-junior-commercial .book-spread__copy { padding:26px 24px 30px; }
}
@media (max-height:760px) and (min-width:1041px) {
  .theme-teens.is-junior-commercial {
    --book-heading-size:clamp(28px,2.05vw,35px);
    --book-body-size:clamp(16.2px,1.02vw,18px);
    --book-body-leading:1.42;
    --book-paragraph-gap:8px;
  }
  .theme-teens.is-junior-commercial .book-spread__copy {
    padding:24px 34px 18px;
  }
  .theme-teens.is-junior-commercial .book-spread__commercial-kicker {
    margin-bottom:10px;
    font-size:9px;
  }
  .theme-teens.is-junior-commercial .book-spread__paragraphs { margin-top:12px; }
  .theme-teens.is-junior-commercial .book-spread--junior-opening .book-spread__copy {
    padding-top:25px;
  }
  .theme-teens.is-junior-commercial .book-spread--junior-opening .book-spread__copy h2 {
    font-size:31px;
  }
  .theme-teens.is-junior-commercial .book-spread--junior-opening .book-paragraph__english {
    font-size:15px;
    line-height:1.5;
  }
  .theme-teens.is-junior-commercial .book-spread--junior-opening .book-spread__story::after {
    margin-top:18px;
    font-size:9px;
  }
  .theme-teens.is-junior-commercial .book-spread--junior-discovery .book-spread__story::after,
  .theme-teens.is-junior-commercial .book-spread--junior-explanation .book-spread__story::after,
  .theme-teens.is-junior-commercial .book-spread--junior-application .book-spread__story::after {
    padding-top:8px;
    font-size:8px;
  }
  .theme-teens.is-junior-commercial .book-spread__keywords {
    padding-top:7px;
    gap:5px;
  }
  .theme-teens.is-junior-commercial .book-spread__keywords > span { font-size:8px; }
  .theme-teens.is-junior-commercial .book-spread__keyword-list { gap:4px; }
  .theme-teens.is-junior-commercial .book-spread__keyword-list button {
    min-height:22px;
    padding:2px 8px;
    font-size:8px;
  }
}
@media (max-width:680px) {
  .theme-teens.is-junior-commercial .book-spread { box-shadow:none; }
  .theme-teens.is-junior-commercial .book-spread__copy h2 { font-size:min(var(--book-heading-size),27px); }
  .theme-teens.is-junior-commercial .book-paragraph__english { font-size:17px; }
}
/* TEEN_NATIONAL_FIELD_NOTES_V2_END */

/* R6_CB08_10_PORTRAIT_FRAME: preserve complete 2:3 artwork. */
@media (min-width: 981px) {
  .theme-kids:is([data-library-book-id^="r6-course-cb08-"], [data-library-book-id^="r6-course-cb09-"], [data-library-book-id^="r6-course-cb10-"]) .book-spread:has(> .book-spread__visual--kids-portrait-full-bleed) {
    width: auto;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }
}
@media (min-width: 681px) and (max-width: 980px) {
  .theme-kids:is([data-library-book-id^="r6-course-cb08-"], [data-library-book-id^="r6-course-cb09-"], [data-library-book-id^="r6-course-cb10-"]) .book-spread__visual--kids-portrait-full-bleed img {
    object-fit: contain;
  }
}

/* General picture-book pages already show progress below the reader. */
.book-reader-page.theme-general.is-general-picture-book figure.book-spread__visual > figcaption { display:none !important; }

/* R12_CB01_REVIEWED_PORTRAITS: match the 1080x1920 image, never crop it. */
.book-reader-page.theme-teens[data-library-book-id^="r12-course-cb01-"] .book-spread {
  aspect-ratio:18 / 16;height:min(724px,100%);width:auto;max-width:100%;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.book-reader-page.theme-teens[data-library-book-id^="r12-course-cb01-"] .book-spread__visual {
  width:100%;height:100%;padding:0;margin:0;aspect-ratio:9 / 16;
}
.book-reader-page.theme-teens[data-library-book-id^="r12-course-cb01-"] .book-spread__visual img {
  width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;
}
.book-reader-page.theme-teens[data-library-book-id^="r12-course-cb01-"] .book-spread__copy {
  padding:26px;overflow:auto;--book-heading-size:26px;--book-body-size:15.5px;--book-body-leading:1.45;
}
@media(max-width:680px) {
 .book-reader-page.theme-teens[data-library-book-id^="r12-course-cb01-"] .book-spread {
   width:100%;height:auto;aspect-ratio:auto;grid-template-columns:1fr;
 }
 .book-reader-page.theme-teens[data-library-book-id^="r12-course-cb01-"] .book-spread__visual {
   height:auto;min-height:0;aspect-ratio:9 / 16;
 }
 .book-reader-page.theme-teens[data-library-book-id^="r12-course-cb01-"] .book-spread__visual img {
   height:auto;aspect-ratio:9 / 16;
 }
 .book-reader-page.theme-teens[data-library-book-id^="r12-course-cb01-"] .book-spread__copy {overflow:visible;}
}

/* Keep reading words intact and tools reachable on narrow screens. */
@media (max-width: 680px) {
  .book-toolbar__primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }
  .book-toolbar__primary > a,
  .book-toolbar__primary > button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    justify-content: center;
    white-space: nowrap;
  }
  .book-page--spread { align-items: start; }
  .book-spread { height: auto; }
}
/* 20261001-AGE-COLOR-SYSTEM-V1: one age identity from catalog to reader and keywords. */
.theme-kinder { --book-accent:#E05A47 !important; --book-accent-rgb:224,90,71 !important; --book-accent-dark:#B84435 !important; --book-soft:#FFF1ED !important; }
.theme-kinder .book-spread { --book-accent:#E05A47 !important; --book-accent-rgb:224,90,71 !important; --book-accent-dark:#B84435 !important; --book-soft:#FFF1ED !important; }
.theme-kids { --book-accent:#1387B8 !important; --book-accent-rgb:19,135,184 !important; --book-accent-dark:#0C678D !important; --book-soft:#EAF7FC !important; }
.theme-kids .book-spread { --book-accent:#1387B8 !important; --book-accent-rgb:19,135,184 !important; --book-accent-dark:#0C678D !important; --book-soft:#EAF7FC !important; }
.theme-junior { --book-accent:#238A68 !important; --book-accent-rgb:35,138,104 !important; --book-accent-dark:#17684E !important; --book-soft:#EAF7F2 !important; }
.theme-junior .book-spread { --book-accent:#238A68 !important; --book-accent-rgb:35,138,104 !important; --book-accent-dark:#17684E !important; --book-soft:#EAF7F2 !important; }
.theme-teens { --book-accent:#6F5AD7 !important; --book-accent-rgb:111,90,215 !important; --book-accent-dark:#5340B4 !important; --book-soft:#F1EEFF !important; }
.theme-teens .book-spread { --book-accent:#6F5AD7 !important; --book-accent-rgb:111,90,215 !important; --book-accent-dark:#5340B4 !important; --book-soft:#F1EEFF !important; }
.theme-general { --book-accent:#3E7185 !important; --book-accent-rgb:62,113,133 !important; --book-accent-dark:#2E596A !important; --book-soft:#EDF5F7 !important; }
.theme-general .book-spread { --book-accent:#3E7185 !important; --book-accent-rgb:62,113,133 !important; --book-accent-dark:#2E596A !important; --book-soft:#EDF5F7 !important; }
.book-toolbar__identity strong { color:var(--book-accent-dark); font-weight:900; }
.book-spread__copy h2 { color:var(--book-accent-dark); font-weight:900; }
.book-spread__keywords > span { color:var(--book-accent); font-weight:950; }
.book-spread__keyword-list button { border-color:rgba(var(--book-accent-rgb),.30); background:var(--book-soft); color:var(--book-accent-dark); font-weight:900; }
.book-vocabulary header span { color:var(--book-accent) !important; font-weight:950 !important; }
.book-vocabulary h2 { color:var(--book-accent-dark) !important; font-weight:950 !important; }
.book-vocabulary__card { border-color:rgba(var(--book-accent-rgb),.24) !important; background:var(--book-soft) !important; }
.book-vocabulary__card button { color:var(--book-accent-dark) !important; font-weight:950 !important; }
.book-vocabulary:focus-visible,.book-vocabulary__card button:focus-visible { outline-color:var(--book-accent) !important; }
.book-reader__word.is-reading { color:var(--book-accent-dark); font-weight:800; }

/* Student-book navigation: leave a 16px gap beside the shared 48px Draw tab. */
@media screen and (min-width:1025px){
  .book-reader-page .book-stage > .book-stage__arrow--next { position:fixed; top:50%; right:60px; margin-top:-41px; }
}

/* Reader drawing controls: right edge, clear of the story. */
@media screen and (min-width:1025px) {
 html:root body.book-reader-page #fw-annotation-toolbar:not([hidden]) {
  inset:76px 12px auto auto!important;
  transform:none!important;
  z-index:1040;
  max-height:calc(100dvh - 92px)!important;
 }
 .book-reader-page .book-stage > .book-stage__arrow {
  position:fixed;top:50%;margin-top:-41px;z-index:1020;
 }
 .book-reader-page .book-stage > .book-stage__arrow--previous {left:12px;}
 .book-reader-page .book-stage > .book-stage__arrow--next {right:60px;}
 .book-reader-page.is-fw-annotation-panel-open .book-stage > .book-stage__arrow--next {right:188px;}
}

/* Keep pages in the center track when navigation arrows are fixed. */
@media screen and (min-width:1025px) {
 .book-reader-page .book-stage > .book-pages { grid-column:2; grid-row:1; }
}

/* Reader explanation: transparent pointer layer; real words remain clickable. */
#reader-guide-start{border:1px solid #cdbde9;border-radius:12px;background:#f6f0ff;color:#5732a4;padding:9px 13px;font:700 14px/1.3 sans-serif;cursor:pointer;white-space:nowrap;min-height:44px}
#reader-guide-card{position:fixed;z-index:1081;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;background:white;border:2px solid #7b50d5;border-radius:18px;padding:16px;box-shadow:0 8px 30px #36215a25;color:#27354a;font:15px/1.65 sans-serif;text-align:left}
#reader-guide-card[hidden],#reader-guide-ring[hidden]{display:none!important}
#reader-guide-card .rg-top{display:flex;justify-content:space-between;align-items:center;color:#7041bd;font-size:12px;font-weight:700}
#reader-guide-card h2{font:800 18px/1.4 sans-serif;margin:10px 0 8px;color:#39235a}
#reader-guide-card p{margin:0 0 14px;font:400 15px/1.65 sans-serif}
#reader-guide-card button{min-height:40px;padding:7px 12px;border:1px solid #d9cbea;border-radius:9px;background:white;color:#583497;font:700 13px/1.3 sans-serif;cursor:pointer}
#reader-guide-card .rg-top button{border:0;font-size:22px;padding:0 8px}
#reader-guide-card .rg-actions{display:flex;gap:7px;justify-content:flex-end}
#reader-guide-card [data-rg-next]{background:#6d3fd1;color:white;border-color:#6d3fd1}
#reader-guide-card button:disabled{opacity:.45;cursor:default}
#reader-guide-card button[hidden]{display:none}
#reader-guide-ring{position:fixed;z-index:1080;pointer-events:none;border:3px solid #8651dd;border-radius:9px;box-sizing:border-box;box-shadow:0 0 0 4px #9156df16}
#reader-guide-arrow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1080;display:none}
.reader-guide-result{padding:12px;border-radius:10px;background:#f4edff;color:#5732a4;font:600 14px/1.6 sans-serif}
@media(max-width:600px){#reader-guide-start{padding:6px 9px;font-size:12px}#reader-guide-card{width:280px;padding:12px}#reader-guide-card h2{font-size:16px}#reader-guide-card p{font-size:14px}}
@media print{#reader-guide-start,#reader-guide-card,#reader-guide-ring,#reader-guide-arrow{display:none!important}}
