.age-level-page {
  --age-accent: #45566f;
  --age-accent-rgb: 69, 86, 111;
  --age-soft: #eef2f6;
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 18px;
  color: #162238;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

.age-level-page *,
.age-level-page *::before,
.age-level-page *::after { box-sizing: border-box; }

.age-level-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(32, 50, 78, .08);
}

.age-level-hero__copy {
  padding: clamp(34px, 5vw, 68px);
  background: linear-gradient(145deg, #fff 20%, var(--age-soft));
}

.age-level-eyebrow,
.age-panel-heading small,
.age-level-roadmap small,
.age-library-summary small,
.age-level-tabs small {
  margin: 0;
  color: var(--age-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.age-level-hero h1 {
  margin: 17px 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.age-level-hero h1 span { color: #19253b; }
.age-level-hero h1 strong { color: var(--age-accent); font-weight: 950; }
.age-level-hero__copy > p:last-of-type { max-width: 680px; margin: 0; color: #53627a; font-size: 16px; line-height: 1.75; }

.age-level-hero__facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.age-level-hero__facts span { padding: 10px 13px; border: 1px solid rgba(var(--age-accent-rgb), .16); border-radius: 999px; background: rgba(255,255,255,.8); color: #526078; font-size: 12px; }
.age-level-hero__facts b { color: #213049; font-weight: 850; }

.age-level-hero__range {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  color: #fff;
  text-align: center;
  background: var(--age-accent);
}
.age-level-hero__range { display: none; }

.age-level-hero__range::before,
.age-level-hero__range::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.age-level-hero__range::before { width: 260px; height: 260px; }
.age-level-hero__range::after { width: 190px; height: 190px; }
.age-level-hero__range small,
.age-level-hero__range strong,
.age-level-hero__range span { position: relative; z-index: 1; }
.age-level-hero__range small { font-size: 11px; font-weight: 850; letter-spacing: .13em; opacity: .72; }
.age-level-hero__range strong { display: block; margin: 16px 0 11px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.age-level-hero__range span { font-size: 13px; font-weight: 750; opacity: .86; }

.age-level-roadmap {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid #dfe6ef;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(32, 50, 78, .055);
}

.age-level-roadmap > div:first-child { display: grid; gap: 5px; }
.age-level-roadmap > div:first-child { flex: 0 0 220px; }
.age-level-roadmap > div:first-child strong { font-size: 15px; }
.age-level-roadmap__buttons { flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; justify-content: flex-start; gap: 9px; }
.age-level-roadmap__buttons button,
.age-library-levels button {
  min-width: 0;
  min-height: 64px;
  border: 1px solid #dce4ed;
  border-radius: 15px;
  background: #f8fafc;
  color: #24334b;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.age-level-roadmap__buttons button { display: grid; place-content: center; gap: 3px; text-align: center; }
.age-level-roadmap__buttons button { flex: 0 0 118px; max-width: 118px; }
.age-level-roadmap__buttons button small { color: #8591a3; font-size: 9px; }
.age-level-roadmap__buttons button strong { font-size: 20px; }
.age-level-roadmap__buttons button:hover,
.age-level-roadmap__buttons button:focus-visible,
.age-level-roadmap__buttons button.is-active,
.age-library-levels button:hover,
.age-library-levels button:focus-visible,
.age-library-levels button.is-active { transform: translateY(-2px); border-color: var(--age-accent); background: var(--age-soft); box-shadow: 0 8px 20px rgba(var(--age-accent-rgb), .12); outline: none; }
.age-library-levels button.is-active { transform: none; border-width: 2px; }

.age-level-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(32, 50, 78, .065);
}

.age-level-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #dfe6ef; background: #f7f9fc; }
.age-level-tabs button { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; min-height: 102px; padding: 22px 28px; border: 0; background: transparent; color: #213049; font: inherit; text-align: left; cursor: pointer; }
.age-level-tabs button + button { border-left: 1px solid #dfe6ef; }
.age-level-tabs button::after { content: ""; position: absolute; right: 28px; bottom: 0; left: 28px; height: 4px; border-radius: 4px 4px 0 0; background: transparent; }
.age-level-tabs button.is-active { background: #fff; }
.age-level-tabs button.is-active::after { background: var(--age-accent); }
.age-level-tabs button small { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: var(--age-soft); text-align: center; line-height: 1.3; }
.age-level-tabs button strong { align-self: end; font-size: 21px; }
.age-level-tabs button span { align-self: start; margin-top: 5px; color: #778398; font-size: 12px; }

.age-tab-panel { min-width: 0; max-width: 100%; padding: clamp(24px, 3.5vw, 46px); }
.age-tab-panel[hidden] { display: none !important; }
.age-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.age-panel-heading h2 { margin: 7px 0 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; }
.age-panel-heading p { max-width: 540px; margin: 0; color: #69768b; font-size: 13px; line-height: 1.65; text-align: right; }

.age-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: course; }
.age-course-grid li:last-child { grid-column: 1 / -1; }
.age-course-step { min-height: 118px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 26px; align-items: center; gap: 16px; padding: 21px; border: 1px solid #dfe6ef; border-radius: 19px; background: #fff; color: #1d2a40; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.age-course-step:hover,
.age-course-step:focus-visible { transform: translateY(-3px); border-color: rgba(var(--age-accent-rgb), .42); box-shadow: 0 13px 28px rgba(32, 50, 78, .09); outline: none; }
.age-course-step > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--age-soft); color: var(--age-accent); font-size: 14px; font-weight: 900; }
.age-course-step strong { font-size: 17px; }
.age-course-step p { margin: 6px 0 0; color: #738095; font-size: 12px; line-height: 1.55; }
.age-course-step > b { color: var(--age-accent); font-size: 22px; }

.age-library-levels { width: 100%; min-width: 0; max-width: 520px; overflow: visible; display: flex; align-items: stretch; gap: 10px; margin: 0 0 15px; }
.age-library-levels button { flex: 0 0 88px; max-width: 88px; display: grid; place-items: center; padding: 10px; text-align: center; }
.age-library-levels button strong { font-size: 28px; line-height: 1; }

.age-library-summary { display: grid; grid-template-columns: minmax(210px, .62fr) minmax(0, 1fr); gap: 25px; align-items: center; margin-bottom: 19px; padding: 20px 23px; border: 1px solid rgba(var(--age-accent-rgb), .16); border-radius: 20px; background: var(--age-soft); }
.age-library-summary > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 13px; align-items: center; }
.age-library-summary > div small { grid-column: 1 / -1; }
.age-library-summary > div strong { grid-row: 2; font-size: 38px; line-height: 1.1; color: var(--age-accent); }
.age-library-summary > div span { grid-row: 2; color: #4d5b70; font-size: 13px; line-height: 1.45; }
.age-library-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 0; }
.age-library-summary dl div { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.76); }
.age-library-summary dt { color: #78859a; font-size: 10px; font-weight: 750; }
.age-library-summary dd { margin: 6px 0 0; color: #23324a; font-size: 15px; font-weight: 900; }

.age-book-status { margin: 0 0 15px; color: #667489; font-size: 13px; }

.age-production-status {
  margin: 12px 0 18px; padding: 18px 20px; border: 2px solid #2878ef; border-radius: 18px;
  background: #f5f9ff; box-shadow: 0 10px 24px rgba(40, 120, 239, .12); color: #17233a;
}
.age-production-status__heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.age-production-status__heading strong { font-size: 18px; }
.age-production-status__heading time { margin-left: auto; color: #69778d; font-size: 12px; font-weight: 700; }
.age-production-status__badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 11px; border-radius: 999px;
  background: #2878ef; color: #fff; font-size: 13px; font-weight: 900;
  animation: production-pulse 1.8s ease-in-out infinite;
}
.age-production-status__current { margin: 12px 0 10px; color: #263854; font-size: 14px; font-weight: 800; }
.age-production-status__progress { height: 12px; overflow: hidden; border-radius: 999px; background: #dce8fa; }
.age-production-status__progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2878ef, #14a8a0); transition: width .35s ease; }
.age-production-status__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.age-production-status__metrics span { padding: 8px 10px; border-radius: 10px; background: #fff; color: #34455f; font-size: 12px; font-weight: 800; text-align: center; }
.age-production-status__notice { display: block; margin-top: 10px; color: #a14528; font-weight: 750; }
@keyframes production-pulse { 50% { opacity: .72; } }
@media (max-width: 720px) {
  .age-production-status__heading time { width: 100%; margin-left: 0; }
  .age-production-status__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.age-book-grid { width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.age-book-grid.is-depth-one { align-items: start; }
.age-coursebook-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dfe5ed;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(34, 51, 77, .055);
  color: #1b283e;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.age-coursebook-card:hover,
.age-coursebook-card:focus-visible { transform: translateY(-4px); border-color: var(--age-accent); box-shadow: 0 16px 32px rgba(var(--age-accent-rgb), .14); outline: none; }
.age-coursebook-card__cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; background: #edf1f5; }
.age-coursebook-card__cover::before,
.age-coursebook-card__cover::after { content: ""; position: absolute; inset: 12px -7px -7px 12px; z-index: 0; border: 1px solid rgba(var(--age-accent-rgb), .2); border-radius: 13px; background: #fff; }
.age-coursebook-card__cover::after { inset: 6px -3px -3px 6px; }
.age-coursebook-card__cover img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.age-coursebook-card__cover > span { position: relative; z-index: 1; color: #778397; font-size: 13px; font-weight: 800; line-height: 1.55; text-align: center; white-space: pre-line; }
.age-coursebook-card__depth { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--age-accent); font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .06em; }
.age-coursebook-card__body { display: grid; gap: 6px; padding: 16px; }
.age-coursebook-card__body small { color: var(--age-accent); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.age-coursebook-card__body > strong { font-size: 19px; }
.age-coursebook-card__body > span:not(.age-coursebook-card__action) { color: #6f7c90; font-size: 12px; }
.age-coursebook-card__action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 11px; border-top: 1px solid #edf0f4; color: var(--age-accent); font-size: 11px; font-weight: 850; }
.age-coursebook-navigation { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-bottom: 3px; padding: 15px 17px; border: 1px solid rgba(var(--age-accent-rgb), .18); border-radius: 16px; background: var(--age-soft); }
.age-coursebook-navigation__back { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border: 1px solid rgba(var(--age-accent-rgb), .28); border-radius: 11px; background: #fff; color: var(--age-accent); font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.age-coursebook-navigation__back:hover,
.age-coursebook-navigation__back:focus-visible { border-color: var(--age-accent); outline: none; }
.age-coursebook-navigation > div { display: grid; gap: 3px; }
.age-coursebook-navigation strong { font-size: 16px; }
.age-coursebook-navigation span { color: #6b788d; font-size: 11px; }
.age-book-card { min-width: 0; overflow: hidden; border: 1px solid #dfe5ed; border-radius: 19px; background: #fff; box-shadow: 0 8px 22px rgba(34, 51, 77, .055); }
.age-book-card__cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; background: #edf1f5; }
.age-book-card__cover img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; transition: transform .25s ease; }
.age-book-card:hover .age-book-card__cover img { transform: scale(1.025); }
.age-book-card__cover > span { max-width: 120px; color: #778397; font-size: 13px; font-weight: 800; line-height: 1.55; text-align: center; }
.age-book-card__badge { position: absolute; top: 10px; left: 10px; min-width: 42px; padding: 7px 9px; border-radius: 10px; background: rgba(20, 31, 49, .9); color: #fff; font-size: 12px; font-weight: 900; text-align: center; }
.age-book-card__body { padding: 16px; }
.age-book-card__type-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.age-book-card__body small { color: var(--age-accent); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.age-book-card__new { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border-radius: 999px; background: #5542a6; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0; line-height: 1; }
.age-book-card__body h3 { min-height: 2.65em; margin: 7px 0 4px; overflow: hidden; color: #1b283e; font-size: 16px; line-height: 1.32; }
.age-book-card__body > p { min-height: 1.5em; margin: 0; color: #6f7c90; font-size: 12px; line-height: 1.5; }
.age-book-card__metrics { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.age-book-card__metrics span { padding: 5px 7px; border-radius: 8px; background: #f0f3f7; color: #59677c; font-size: 10px; font-weight: 750; }
.age-book-card__progress { display: grid; gap: 5px; margin: 10px 0 2px; padding: 10px; border-radius: 12px; font-size: 10px; font-weight: 800; line-height: 1.35; }
.age-book-card__progress.is-progress { border: 1px solid #8bd3dc; background: #eaf9fb; color: #174d59; }
.age-book-card__progress.is-complete { background: #edf8f2; color: #226645; }
.age-book-card__progress b { width: fit-content; padding: 4px 8px; border-radius: 999px; background: #087f8c; color: #fff; }
.age-book-card__progress.is-complete b { background: #238b57; }
.age-book-card__progress time { color: #4e6870; }
.age-book-card__action { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid #edf0f4; color: var(--age-accent); font-size: 11px; font-weight: 850; text-decoration: none; }
.age-book-card__action.is-disabled { color: #8a94a4; }
.age-book-empty { grid-column: 1 / -1; min-height: 210px; display: grid; place-items: center; padding: 30px; border: 1px dashed #cfd7e2; border-radius: 18px; background: #f8fafc; color: #657287; text-align: center; line-height: 1.7; }
.age-library-note { margin: 20px 0 0; color: #7b8799; font-size: 11px; line-height: 1.65; }

@media (max-width: 1100px) {
  .age-book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .age-level-roadmap { grid-template-columns: 1fr; }
  .age-level-roadmap { display: grid; }
  .age-level-roadmap > div:first-child { flex-basis: auto; }
}

@media (max-width: 780px) {
  .age-level-hero { grid-template-columns: 1fr; }
  .age-level-hero__range { min-height: 210px; }
  .age-level-roadmap__buttons { overflow-x: auto; display: flex; padding-bottom: 3px; }
  .age-level-roadmap__buttons button { flex: 0 0 88px; min-width: 88px; }
  .age-level-tabs { grid-template-columns: 1fr; }
  .age-level-tabs button + button { border-top: 1px solid #dfe6ef; border-left: 0; }
  .age-panel-heading { align-items: start; flex-direction: column; }
  .age-panel-heading p { text-align: left; }
  .age-course-grid { grid-template-columns: 1fr; }
  .age-course-grid li:last-child { grid-column: auto; }
  .age-library-levels { overflow-x: auto; display: flex; padding: 2px 0 4px; }
  .age-library-levels button { flex: 0 0 64px; min-width: 64px; max-width: 64px; }
  .age-library-summary { grid-template-columns: 1fr; }
  .age-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .age-coursebook-navigation { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .age-level-hero__copy { padding: 31px 22px; }
  .age-level-hero h1 { font-size: 38px; }
  .age-level-hero__range { min-height: 180px; }
  .age-level-roadmap { padding: 16px; }
  .age-level-tabs button { padding: 18px; }
  .age-tab-panel { padding: 20px 15px; }
  .age-course-step { grid-template-columns: 46px minmax(0, 1fr); padding: 16px; }
  .age-course-step > span { width: 46px; height: 46px; }
  .age-course-step > b { display: none; }
  .age-library-summary dl { grid-template-columns: 1fr; }
  .age-book-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .age-level-page * { scroll-behavior: auto !important; transition: none !important; }
}

/* Consumer discovery: preserve original cover proportions and five-column desktop shelf. */
.age-coursebook-topics{line-height:1.75!important;min-height:44px;color:#617182!important;font-size:12px!important}
.age-coursebook-card__cover img,.age-book-card__cover img{object-fit:contain!important;background:#f3f5f8}
.age-book-empty a{display:block;margin-top:16px;font-weight:800;color:var(--age-accent)}
.age-level-page a:focus-visible,.age-level-page button:focus-visible{outline:3px solid var(--age-accent);outline-offset:4px}
.has-top-utility #fw-annotation-panel-toggle{display:none!important}
@media(max-width:640px){.has-top-utility .topbar{display:flex!important;position:static!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:0!important;min-height:54px!important;height:auto!important;padding:0!important;scrollbar-width:thin}.has-top-utility .topbar>a{flex:0 0 auto!important;width:auto!important;min-width:92px!important;min-height:50px!important;padding:0 15px!important}.has-top-utility .side--brand-only{display:none!important}}
@media(min-width:1000px){.age-level-page .age-book-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:520px){.age-level-page .age-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.age-book-card__body,.age-coursebook-card__body{padding:13px!important}.age-book-card__body h3,.age-coursebook-card__body strong{font-size:15px!important}.age-library-summary dl{grid-template-columns:1fr!important}.age-coursebook-card__cover,.age-book-card__cover{height:auto!important;aspect-ratio:2/3}}

/* Student and teacher editions are separate actions on every book card. */
html body .age-book-card__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;margin-top:14px;flex-shrink:0}
html body .age-book-card__actions>.age-book-card__action,html body .age-book-card__actions>.age-book-card__teacher-action{box-sizing:border-box;width:auto!important;min-width:0;margin:0!important;padding:12px 8px!important;border-radius:7px;display:flex!important;align-items:center;justify-content:center;text-align:center;gap:5px;font-size:13px;font-weight:700;text-decoration:none;line-height:1.5}
html body .age-book-card__teacher-action{background:#087f83;color:#fff;border:1px solid #087f83}
html body .age-book-card__teacher-action:hover{background:#05666a}
html body .age-book-card__teacher-action.is-disabled{background:#f0f2f5;color:#687788;border-color:#dce2e8}
html body .age-book-card__actions>a:focus-visible{outline:3px solid #147f91;outline-offset:3px}
