
/* /library/css/home-shell-common.css */
:root {
  --accent: #3156d8;
  --accent-rgb: 49, 86, 216;
  --soft: #eaf0ff;
  --ink: #101c33;
  --muted: #738096;
  --line: #dfe5ee;
  --page: #f4f7fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif; }

.shell { max-width: 1500px; min-height: 100vh; margin: auto; display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 22px; padding: 22px; }
.side { position: sticky; top: 22px; align-self: start; display: grid; gap: 15px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 17px 15px; color: #21418f; font-weight: 900; letter-spacing: -.5px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px 4px 10px 4px; background: linear-gradient(145deg, #3156d8, #54a5ff); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 13px; height: 5px; border: 3px solid white; border-left: 0; border-bottom: 0; transform: rotate(-8deg); left: 7px; top: 10px; }
.side-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px rgba(28, 53, 88, .06); }
.side-label { margin: 0 0 10px; color: #7a8799; font-size: 12px; font-weight: 800; }
.account-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiny-btn { min-height: 38px; border: 1px solid #d8e0eb; border-radius: 12px; background: #fff; color: #26354b; font-weight: 800; }
.side-topic { font-size: 14px; font-weight: 850; line-height: 1.45; }
.side-topic span { display: block; margin-top: 5px; color: var(--accent); font-size: 12px; }
.sample { display: block; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #4c86ef); color: #fff; text-decoration: none; font-weight: 850; line-height: 1.45; }
.sample small { display: block; margin-top: 5px; opacity: .82; font-weight: 650; }
.workspace { min-width: 0; }
.topbar { position: sticky; z-index: 15; top: 14px; display: grid; grid-template-columns: repeat(8, minmax(78px, 1fr)); gap: 9px; padding: 10px; margin-bottom: 18px; border: 1px solid rgba(217, 225, 236, .9); border-radius: 20px; background: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px rgba(28, 53, 88, .07); backdrop-filter: blur(14px); }
.topbar a { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid #e2e7ef; border-radius: 14px; color: #28364c; text-decoration: none; font-size: 14px; font-weight: 850; white-space: nowrap; }
.topbar a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #8c99a9); }
.topbar a.active { border-color: transparent; background: linear-gradient(135deg, var(--accent), #5c87f3); color: #fff; box-shadow: 0 8px 18px rgba(var(--accent-rgb), .24); }
.topbar a.active::before { background: #fff; }
.hero { position: relative; overflow: hidden; min-height: 390px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 28px; padding: 54px 58px; border: 1px solid #e4eaf2; border-radius: 30px; background: radial-gradient(circle at 84% 32%, rgba(var(--accent-rgb), .19), transparent 34%), linear-gradient(135deg, #fff 5%, var(--soft)); box-shadow: 0 15px 42px rgba(28, 53, 88, .07); }
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; border: 36px solid rgba(var(--accent-rgb), .07); border-radius: 50%; right: -105px; bottom: -120px; }
.eyebrow { display: inline-flex; padding: 8px 13px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .5px; }
.hero h1 { max-width: 740px; margin: 19px 0 16px; font-size: clamp(36px, 4.2vw, 62px); line-height: 1.08; letter-spacing: -2.8px; }
.hero p { max-width: 690px; margin: 0; color: #516078; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; margin-top: 25px; }
.hero-actions a { padding: 13px 20px; border-radius: 14px; text-decoration: none; font-size: 14px; font-weight: 850; }
.primary { background: var(--accent); color: #fff; box-shadow: 0 9px 22px rgba(var(--accent-rgb), .22); }
.secondary { border: 1px solid #d7dfeb; background: #fff; color: #28364c; }
.home-visual { position: relative; min-height: 270px; }
.paper { position: absolute; left: 10%; top: 5%; width: 62%; height: 79%; padding: 22px; border: 8px solid white; border-radius: 18px; background: #fff; box-shadow: 0 24px 46px rgba(28, 53, 88, .16); transform: rotate(-7deg); }
.paper strong { display: block; color: var(--accent); font-size: 24px; }
.paper-line { height: 8px; margin-top: 14px; border-radius: 10px; background: #dfe7f4; }
.paper-line.short { width: 60%; }
.learn-bubble { position: absolute; right: 4%; bottom: 7%; width: 150px; padding: 19px; border-radius: 22px; background: var(--accent); color: #fff; box-shadow: 0 18px 35px rgba(var(--accent-rgb), .27); transform: rotate(4deg); }
.learn-bubble b { display: block; font-size: 17px; }
.learn-bubble span { display: block; margin-top: 5px; font-size: 12px; opacity: .82; }
.footer { padding: 24px 8px 10px; color: #8994a5; font-size: 12px; text-align: center; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: auto 1fr 1fr; }
  .brand { padding: 10px; }
  .topbar { top: 8px; }
}

@media (max-width: 820px) {
  .shell { padding: 12px; }
  .side { grid-template-columns: 1fr; }
  .side-card:not(:first-of-type) { display: none; }
  .topbar { position: static; display: flex; overflow-x: auto; }
  .topbar a { min-width: 108px; }
  .hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .home-visual { min-height: 230px; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .home-visual { display: none; }
}


/* /library/css/top-utility-menu.css */
.top-utility-wrap {
  width: 100%;
  max-width: 1500px;
  min-height: 52px;
  margin: 0 auto;
  padding: 6px 22px 0;
}

.top-utility-menu {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 8px 6px;
}

.top-utility-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.top-utility-menu button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5f6d82;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.top-utility-language {
  flex: 0 0 auto;
  padding-inline: 14px !important;
  background: rgba(49, 86, 216, .08) !important;
  color: #3156d8 !important;
}

.top-utility-language svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-utility-language:hover {
  background: rgba(49, 86, 216, .15) !important;
}

.top-utility-menu button:hover {
  background: #eaf0ff;
  color: #2e5bff;
}

.top-utility-menu button:active {
  transform: translateY(1px);
}

.top-utility-menu button:focus-visible {
  outline: 3px solid rgba(46, 91, 255, .28);
  outline-offset: 1px;
}

.top-utility-menu button[data-utility-action="free-sample"] {
  margin-left: 4px;
  padding-inline: 13px;
  background: #3156d8;
  color: #fff;
  box-shadow: 0 5px 13px rgba(49, 86, 216, .2);
}

.top-utility-menu button[data-utility-action="free-sample"]:hover {
  background: #2449c7;
  color: #fff;
}

body.has-top-utility .shell {
  padding-top: 12px;
}

@media (max-width: 640px) {
  .top-utility-wrap {
    min-height: 0;
    padding: 8px 12px 0;
  }

  .top-utility-menu {
    min-height: 0;
    display: block;
    overflow: visible;
    padding: 0 0 8px;
  }

  .top-utility-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-left: 0;
  }

  .top-utility-language-picker,
  .top-utility-language {
    width: 100%;
  }

  .top-utility-menu button {
    min-height: 33px;
    min-width: 0;
    padding: 7px 4px;
    font-size: 11px;
  }

  .top-utility-menu button[data-utility-action="free-sample"] {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-utility-menu button {
    transition: none;
  }
}

.top-utility-language-picker {
  position: relative;
  z-index: 220;
}

.top-utility-language > b {
  margin-left: 2px;
  font-size: 10px;
  transition: transform .18s ease;
}

.top-utility-language[aria-expanded="true"] > b {
  transform: rotate(180deg);
}

.top-utility-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 230;
  width: 220px;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid #dce4f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 45px rgba(28, 53, 88, .18);
  backdrop-filter: blur(16px);
}

.top-utility-language-menu[hidden] {
  display: none !important;
}

.top-utility-menu .top-utility-language-menu button {
  width: 100%;
  min-height: 40px;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: transparent;
  color: #34435a;
  font-size: 13px;
  text-align: left;
}

.top-utility-menu .top-utility-language-menu button b {
  color: #3156d8;
  opacity: 0;
}

.top-utility-menu .top-utility-language-menu button:hover {
  background: #eef3ff;
}

.top-utility-menu .top-utility-language-menu button.is-active {
  background: #eaf0ff;
  color: #2449c7;
}

.top-utility-menu .top-utility-language-menu button.is-active b {
  opacity: 1;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .brand {
  direction: ltr;
}

html[dir="rtl"] .top-utility-actions {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .top-utility-language-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .top-utility-menu .top-utility-language-menu button {
  text-align: right;
}

html[dir="rtl"] :where(.section-head, .category-news-intro, .video-curriculum-head) {
  direction: rtl;
}

/* Keep the age banner artwork on the right while Arabic copy reads RTL on the
   colored left side. Inheriting RTL on the flex container swapped both zones. */
html[dir="rtl"] .common-news-banner {
  direction: ltr;
}

html[dir="rtl"] .common-news-banner__copy {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .common-news-banner__copy > * {
  direction: rtl;
  text-align: right;
}

@media (max-width: 640px) {
  .top-utility-language-menu {
    position: fixed;
    top: 48px;
    right: 12px;
    left: auto;
    width: min(260px, calc(100vw - 24px));
  }

  html[dir="rtl"] .top-utility-language-menu {
    right: auto;
    left: 12px;
  }
}


/* /library/css/site-shell.css */


body:is(.theme-teens, .teens-unified) {
  --accent: #6F5AD7;
  --accent-rgb: 111, 90, 215;
  --soft: #F1EEFF;
  --ink: #172133;
  --muted: #667085;
  --line: #d8dde5;
  --page: #f4f5f7;
  background: var(--page);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
}

/* The Teens layout is the shared site frame; only the age color changes. */
body.teens-unified.theme-phonics-sky {
  --accent: #2e5bff;
  --accent-rgb: 46, 91, 255;
  --soft: #eaf0ff;
}

html[lang="ko"] body.teens-unified.theme-phonics-sky {
  --page: #f4f5f7 !important;
  background: var(--page) !important;
}

html[lang="ko"] body.teens-unified.theme-phonics-sky .topbar {
  border: 0;
  border-radius: 0;
  background: rgba(244, 245, 247, .97);
  box-shadow: none;
}

html[lang="ko"] body.teens-unified.theme-phonics-sky .topbar a {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4c5565;
  box-shadow: none;
}

html[lang="ko"] body.teens-unified.theme-phonics-sky .topbar a.active[href^="phonics.php"] {
  border: 0;
  background: var(--soft);
  color: var(--accent);
  box-shadow: none;
}

html[lang="ko"] body.teens-unified.theme-phonics-sky .topbar a::before {
  display: none !important;
}

body.teens-unified.theme-kinder:not(.theme-phonics-sky) {
  --accent: #E05A47;
  --accent-rgb: 224, 90, 71;
  --soft: #FFF1ED;
}

body.teens-unified.theme-kids {
  --accent: #1387B8;
  --accent-rgb: 19, 135, 184;
  --soft: #EAF7FC;
}

body.teens-unified.theme-junior {
  --accent: #238A68;
  --accent-rgb: 35, 138, 104;
  --soft: #EAF7F2;
}

body.teens-unified.theme-general {
  --accent: #3E7185;
  --accent-rgb: 62, 113, 133;
  --soft: #EDF5F7;
}

body.teens-unified.theme-video {
  --accent: #087f8c;
  --accent-rgb: 8, 127, 140;
  --soft: #e7f6f7;
}

body.teens-unified.theme-home {
  --accent: #334155;
  --accent-rgb: 51, 65, 85;
  --soft: #f1f5f9;
}

body.teens-unified.theme-reading-test {
  --accent: #b23a48;
  --accent-rgb: 178, 58, 72;
  --soft: #fbecef;
}

body.teens-unified.theme-mypage {
  --accent: #4a4fa3;
  --accent-rgb: 74, 79, 163;
  --soft: #eff0fa;
}

body:is(.theme-teens, .teens-unified) a,
body:is(.theme-teens, .teens-unified) button {
  -webkit-tap-highlight-color: transparent;
}

body:is(.theme-teens, .teens-unified) a:focus-visible,
body:is(.theme-teens, .teens-unified) button:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), .25);
  outline-offset: 3px;
}

body:is(.theme-teens, .teens-unified) .top-utility-wrap {
  max-width: 1400px;
  min-height: 64px;
  padding: 10px 24px 6px;
  border-bottom: 0;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu {
  min-height: 48px;
  padding: 0;
}

body:is(.theme-teens, .teens-unified) .top-utility-actions {
  gap: 4px;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #475467;
  font-size: 12.5px;
  font-weight: 750;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu button:hover {
  background: #f1f3f6;
  color: var(--ink);
}

body:is(.theme-teens, .teens-unified) .top-utility-priority-links {
  display: flex;
  align-items: center;
  padding: 3px 4px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #f7f8fa;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-priority-links button {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  font-size: 11.5px;
  font-weight: 750;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-priority-links button + button {
  margin-left: 1px;
  border-left: 1px solid #d8dde5;
  border-radius: 0 6px 6px 0;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-account {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-account--signup {
  color: var(--accent);
}

body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-account--login {
  margin-left: 2px;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-account:hover,
body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-account:focus-visible {
  background: var(--soft);
  color: var(--accent);
}

body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-account.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu button[data-utility-action="free-sample"] {
  margin-left: 4px;
  padding-inline: 15px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: none;
  color: #fff;
}

body:is(.theme-teens, .teens-unified) .top-utility-menu button[data-utility-action="free-sample"]:hover {
  background: #b9245c;
}

body:is(.theme-teens, .teens-unified) .top-utility-language {
  margin-left: 2px;
  border: 0 !important;
  background: #f5f6f8 !important;
  color: #434c5d !important;
}

body:is(.theme-teens, .teens-unified) .top-utility-language:hover {
  background: #ebeef2 !important;
}

body:is(.theme-teens, .teens-unified) .top-utility-language-menu {
  border: 1px solid #cfd4dc;
  border-radius: 2px;
  background-color: #fff;
  background-image: none;
  box-shadow: 0 18px 40px rgba(23, 33, 51, .13);
  backdrop-filter: none;
}

body:is(.theme-teens, .teens-unified) .shell {
  max-width: 1400px;
  display: block;
  padding: 18px 24px 64px;
}

body:is(.theme-teens, .teens-unified).has-top-utility .shell {
  padding-top: 18px;
}

body:is(.theme-teens, .teens-unified) .side {
  gap: 18px;
}

body.teens-unified .side--brand-only > :not(.brand) {
  display: none !important;
}

@media (min-width: 1181px) {
  body:is(.theme-teens, .teens-unified) .side--brand-only {
    width: 100%;
    height: 0;
    min-height: 0;
    margin: 0;
  }
}

body:is(.theme-teens, .teens-unified) .side-card {
  padding: 12px 4px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:is(.theme-teens, .teens-unified) .side-label {
  margin-bottom: 8px;
  color: #7b8494;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified).has-top-utility .side > .side-card--account,
body:is(.theme-teens, .teens-unified) .side-card--account {
  display: block !important;
}

body:is(.theme-teens, .teens-unified) .side-card--account .account-row {
  width: 100%;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified).has-top-utility .side .side-label--group,
body:is(.theme-teens, .teens-unified) .side-label--group {
  min-height: 18px;
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #30394a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
}

body:is(.theme-teens, .teens-unified) .side-label--group::before {
  width: 3px;
  height: 16px;
  flex: 0 0 auto;
  background: var(--accent);
  content: "";
}

body:is(.theme-teens, .teens-unified) .side-label--group > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
}

body:is(.theme-teens, .teens-unified) .side-topic-kicker {
  display: block;
  margin-bottom: 5px;
  color: #7b8494;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

body:is(.theme-teens, .teens-unified) .side-card--topic {
  padding: 14px;
}

body:is(.theme-teens, .teens-unified) .side-card--topic + .sample {
  margin-top: 0;
}

body:is(.theme-teens, .teens-unified) .side-card--account,
body:is(.theme-teens, .teens-unified) .side-card--topic {
  border: 1px solid #d6dbe3;
  background: #fff;
}

body:is(.theme-teens, .teens-unified) .side-card--account {
  padding: 14px;
}

body:is(.theme-teens, .teens-unified) .account-row {
  gap: 8px;
}

body:is(.theme-teens, .teens-unified) .tiny-btn {
  min-height: 46px;
  border: 1px solid #aeb6c2;
  border-radius: 2px;
  background: #fff;
  color: #30394a;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

body:is(.theme-teens, .teens-unified) .tiny-btn:hover,
body:is(.theme-teens, .teens-unified) .tiny-btn:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

body:is(.theme-teens, .teens-unified) .tiny-btn:last-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

body:is(.theme-teens, .teens-unified) .tiny-btn:last-child:hover,
body:is(.theme-teens, .teens-unified) .tiny-btn:last-child:focus-visible {
  border-color: #b9245c;
  background: #b9245c;
  color: #fff;
}

body:is(.theme-teens, .teens-unified) .tiny-btn.is-selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

body:is(.theme-teens, .teens-unified) .side-topic {
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.03em;
}

body:is(.theme-teens, .teens-unified) .side-topic span {
  margin-top: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

body:is(.theme-teens, .teens-unified) .sample {
  position: relative;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 46px 14px 18px;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease;
}

body:is(.theme-teens, .teens-unified) .sample::after {
  position: absolute;
  top: 50%;
  right: 18px;
  font-size: 18px;
  line-height: 1;
  content: "→";
  transform: translateY(-50%);
}

body:is(.theme-teens, .teens-unified) .sample:hover,
body:is(.theme-teens, .teens-unified) .sample:focus-visible {
  background: #b9245c;
  transform: translateY(-1px);
}

body:is(.theme-teens, .teens-unified) .sample small {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  opacity: .82;
}

body:is(.theme-teens, .teens-unified) .topbar {
  position: sticky;
  top: 8px;
  z-index: 30;
  min-height: 82px;
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(244, 245, 247, .97);
  box-shadow: none;
  backdrop-filter: none;
}

body:is(.theme-teens, .teens-unified) .topbar a {
  position: relative;
  min-width: 0;
  min-height: 81px;
  flex: 1 1 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4c5565;
  font-size: 16px;
  font-weight: 780;
  box-shadow: none;
  transition: color .16s ease, background .16s ease;
}

body:is(.theme-teens, .teens-unified) .topbar a::before {
  display: none;
}

body:is(.theme-teens, .teens-unified) .topbar a::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 3px;
  background: var(--accent);
  content: "";
  opacity: 0;
}

body:is(.theme-teens, .teens-unified) .topbar a:hover,
body:is(.theme-teens, .teens-unified) .topbar a:focus-visible {
  background: #eceef2;
  color: var(--ink);
}

body:is(.theme-teens, .teens-unified) .topbar a.active {
  background: var(--soft);
  color: var(--accent);
  box-shadow: none;
}

body:is(.theme-teens, .teens-unified) .topbar a.active::after {
  opacity: 1;
}

body.teens-unified .home-compact-banner {
  height: 244px;
  min-height: 244px;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: 28px 38px;
  border: 0;
  border-top: 4px solid var(--accent);
  border-radius: 0;
  background: linear-gradient(
    96deg,
    #b41950 0%,
    #c02661 64%,
    #dd6e9a 78%,
    #f1b8cd 88%,
    #fae8ef 95%,
    #fff 100%
  );
  box-shadow: none;
  color: #fff;
}

body.teens-unified .home-compact-banner::after {
  display: none;
}

body.teens-unified .home-compact-banner__copy {
  gap: 7px;
}

body.teens-unified .home-compact-banner__copy > span {
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

body.teens-unified .home-compact-banner__copy strong {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.1vw, 46px);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.05em;
}

body.teens-unified .home-compact-banner__copy p {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  line-height: 1.6;
}

body:is(.theme-teens, .teens-unified) .common-news-area {
  gap: 18px;
}

body:is(.theme-teens, .teens-unified) .common-news-banner--teens {
  --banner-from: #b41950;
  --banner-mid: #bd1f5d;
}

body:is(.theme-teens, .teens-unified) .common-news-banner {
  height: 244px;
  min-height: 244px;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  padding: 28px 38px;
  border: 0;
  border-top: 4px solid var(--accent);
  border-radius: 0;
  background: linear-gradient(
    96deg,
    var(--banner-from) 0%,
    var(--banner-mid) 65%,
    color-mix(in srgb, var(--banner-mid) 72%, #fff) 78%,
    color-mix(in srgb, var(--banner-mid) 52%, #fff) 86%,
    color-mix(in srgb, var(--banner-mid) 30%, #fff) 92%,
    color-mix(in srgb, var(--banner-mid) 12%, #fff) 97%,
    #fff 100%
  );
  box-shadow: none;
  color: #fff;
}

body:is(.theme-teens, .teens-unified) .common-news-banner::after {
  display: none;
}

body:is(.theme-teens, .teens-unified) .common-news-banner__copy {
  gap: 7px;
}

body:is(.theme-teens, .teens-unified) .common-news-banner__copy > span {
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

body:is(.theme-teens, .teens-unified) .common-news-banner__copy strong,
body:is(.theme-teens, .teens-unified) .common-news-banner__copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 3.1vw, 46px);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.05em;
}

body:is(.theme-teens, .teens-unified) .common-news-banner__copy p {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  line-height: 1.6;
  opacity: 1;
}

body:is(.theme-teens, .teens-unified) .common-news-banner__link {
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 2px;
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

body:is(.theme-teens, .teens-unified) .common-news-banner__link:hover,
body:is(.theme-teens, .teens-unified) .common-news-banner__link:focus-visible {
  background: var(--ink);
  color: #fff;
}

body:is(.theme-teens, .teens-unified) .edition-cover-deck {
  width: 280px;
  height: 212px;
  justify-self: center;
}

body:is(.theme-teens, .teens-unified) .edition-cover-deck--single::before,
body:is(.theme-teens, .teens-unified) .edition-cover-deck--single::after {
  display: none;
}

body:is(.theme-teens, .teens-unified) .edition-cover-deck--single .edition-cover--single[data-cover-index] {
  top: 4px;
  left: 62px;
  width: 150px;
  height: 202px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(29px);
  transition: none;
}

body:is(.theme-teens, .teens-unified) .edition-cover-deck--single .edition-cover--single.is-current {
  opacity: 1;
  transform: translateY(29px);
  animation: teens-cover-rise 3.6s cubic-bezier(.22, .68, .18, 1) both;
}

@keyframes teens-cover-rise {
  0% {
    opacity: 0;
    transform: translateY(118px);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(29px);
  }
}

@keyframes teens-cover-rise-mobile {
  0% {
    opacity: 0;
    transform: translateY(72px);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body:is(.theme-teens, .teens-unified) .common-reader-services {
  min-height: 88px;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: #eceff3;
  box-shadow: none;
}

body:is(.theme-teens, .teens-unified) .common-reader-services__heading {
  padding: 12px 18px 12px 0;
}

body:is(.theme-teens, .teens-unified) .common-reader-services__heading > span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .13em;
}

body:is(.theme-teens, .teens-unified) .common-reader-services__heading h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

body:is(.theme-teens, .teens-unified) .common-reader-services__links {
  height: 100%;
  gap: 8px;
}

body:is(.theme-teens, .teens-unified) .common-reader-services__links button {
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  background: #fff;
  color: #414a5a;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

body:is(.theme-teens, .teens-unified) .common-reader-services__links button:hover,
body:is(.theme-teens, .teens-unified) .common-reader-services__links button:focus-visible {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
  transform: translateY(-1px);
}

body:is(.theme-teens, .teens-unified) .common-reader-services__links button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: none;
}

body:is(.theme-teens, .teens-unified) #learning-menu.category-newspaper-section {
  min-height: 720px;
  margin-top: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:is(.theme-teens, .teens-unified) #learning-menu.category-newspaper-section:not(:has(.category-news-panel))::after {
  display: block;
  padding: 42px 0;
  color: #747d8c;
  font-size: 14px;
  content: "이번 주 기사를 불러오는 중입니다.";
}

body:is(.theme-teens, .teens-unified) #learning-menu.category-newspaper-section .section-head {
  display: none;
}

body:is(.theme-teens, .teens-unified) #learning-menu.category-newspaper-section .section-copy {
  color: #667085;
  font-size: 15px;
  text-align: left;
}

body:is(.theme-teens, .teens-unified) .category-news-panel {
  padding-bottom: 24px;
}

body:is(.theme-teens, .teens-unified) .category-news-intro {
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 18px 0 24px;
  border-top: 0;
  border-bottom: 0;
}

body:is(.theme-teens, .teens-unified) .category-news-intro div {
  gap: 4px;
}

body:is(.theme-teens, .teens-unified) .category-news-intro span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

body:is(.theme-teens, .teens-unified) .category-news-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -.055em;
}

body:is(.theme-teens, .teens-unified) .category-news-intro > b {
  margin-left: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #596273;
  font-size: 14px;
  font-weight: 700;
}

body:is(.theme-teens, .teens-unified) .category-news-resources {
  gap: 6px !important;
  margin-left: auto;
}

body:is(.theme-teens, .teens-unified) .category-news-resource-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #3e4757;
  font-size: 14px;
  font-weight: 780;
  text-shadow: none;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

body:is(.theme-teens, .teens-unified) .category-news-resource-button:nth-child(n) {
  border: 1px solid #cfd4dc;
  background: transparent;
  box-shadow: none;
  color: #3e4757;
  text-shadow: none;
}

body:is(.theme-teens, .teens-unified) .category-news-resource-button:hover,
body:is(.theme-teens, .teens-unified) .category-news-resource-button:focus-visible,
body:is(.theme-teens, .teens-unified) .category-news-resource-button.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: none;
  color: #fff;
  filter: none;
  transform: none;
}

body:is(.theme-teens, .teens-unified) .category-news-grid {
  gap: 44px 24px;
  padding-top: 28px;
}

body:is(.theme-teens, .teens-unified) .category-news-card {
  overflow: visible;
  padding: 14px;
  border: 1px solid #d6dbe3;
  border-radius: 0;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body:is(.theme-teens, .teens-unified) .category-news-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(23, 33, 51, .08);
  transform: translateY(-2px);
}

body:is(.theme-teens, .teens-unified) .category-news-card.is-lead {
  min-height: 380px;
  padding: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

body:is(.theme-teens, .teens-unified) .category-news-card.is-wide {
  grid-template-columns: minmax(210px, .9fr) minmax(0, 1.1fr);
}

body:is(.theme-teens, .teens-unified) .category-news-image {
  position: relative;
  overflow: hidden;
  height: 210px;
  background: #e4e7ec;
}

body:is(.theme-teens, .teens-unified) .category-news-card.is-lead .category-news-image,
body:is(.theme-teens, .teens-unified) .category-news-card.is-wide .category-news-image {
  min-height: 260px;
}

body:is(.theme-teens, .teens-unified) .category-news-image img {
  filter: saturate(.9) contrast(1.02);
}

body:is(.theme-teens, .teens-unified) .category-news-card:hover .category-news-image img {
  transform: scale(1.012);
}

body:is(.theme-teens, .teens-unified) .category-news-copy {
  padding: 18px 4px 4px;
}

body:is(.theme-teens, .teens-unified) .category-news-card.is-lead .category-news-copy {
  justify-content: center;
  padding: 26px 2px 26px 28px;
}

body:is(.theme-teens, .teens-unified) .category-news-card.is-wide .category-news-copy {
  padding: 18px 4px 18px 22px;
}

body:is(.theme-teens, .teens-unified) .category-news-meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

body:is(.theme-teens, .teens-unified) .category-news-copy h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.02em;
}

body:is(.theme-teens, .teens-unified) .category-news-copy h3 {
  font-size: 22px;
  line-height: 1.13;
}

body:is(.theme-teens, .teens-unified) .category-news-card.is-lead .category-news-copy h3 {
  font-size: clamp(30px, 2.5vw, 38px);
  line-height: 1.05;
}

body:is(.theme-teens, .teens-unified) .category-news-copy h3 a {
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  overflow-wrap: normal;
  word-break: normal;
}

body:is(.theme-teens, .teens-unified) .category-news-copy h3 a:hover,
body:is(.theme-teens, .teens-unified) .category-news-copy h3 a:focus-visible {
  color: var(--accent);
}

body:is(.theme-teens, .teens-unified) .category-news-excerpt {
  margin: 13px 0 18px;
  color: #5f6878;
  font-size: 14px;
  line-height: 1.7;
}

body:is(.theme-teens, .teens-unified) .category-news-action {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  transition: color .16s ease;
}

body:is(.theme-teens, .teens-unified) .category-news-action:hover,
body:is(.theme-teens, .teens-unified) .category-news-action:focus-visible {
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  transform: none;
}

body:is(.theme-teens, .teens-unified) .footer {
  margin-top: 42px;
  padding: 18px 0 0;
  border-top: 1px solid #cfd4dc;
  color: #737c8b;
  text-align: left;
}

body.teens-unified .footer {
  display: none;
}

body:is(.theme-teens, .teens-unified) .commercial-footer {
  max-width: 1400px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 14px 36px;
  margin: 0 auto;
  padding: 34px 24px 42px;
  border-top: 1px solid #cfd4dc;
  background-color: inherit;
  background-image: none;
  color: #596273;
}

body:is(.theme-teens, .teens-unified) .commercial-footer__brand,
body:is(.theme-teens, .teens-unified) .commercial-footer__links {
  background-color: transparent;
  background-image: none;
}

body:is(.theme-teens, .teens-unified) .commercial-footer__brand strong {
  display: block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
}

body:is(.theme-teens, .teens-unified) .brand__common-logo {
  display: block;
  width: 164px;
  height: 42px;
  max-width: 100%;
  object-fit: contain;
  transform: translateY(4px);
}

.site-mobile-brand { display: none; }

@media (min-width: 761px) {
  html[lang="ko"] body .site-mobile-brand { display: none !important; }
}

body:is(.theme-teens, .teens-unified) .commercial-footer__logo {
  display: block;
  width: 164px;
  height: 42px;
  max-width: 100%;
  margin: 0 0 2px;
  object-fit: contain;
  background: transparent;
}

body:is(.theme-teens, .teens-unified) .commercial-footer__brand p,
body:is(.theme-teens, .teens-unified) .commercial-footer__notice,
body:is(.theme-teens, .teens-unified) .commercial-footer__copyright {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

body:is(.theme-teens, .teens-unified) .commercial-footer__links {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

body:is(.theme-teens, .teens-unified) .commercial-footer__links button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  background: #fff;
  color: #3e4757;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body:is(.theme-teens, .teens-unified) .commercial-footer__links button:hover,
body:is(.theme-teens, .teens-unified) .commercial-footer__links button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

body:is(.theme-teens, .teens-unified) .commercial-footer__notice,
body:is(.theme-teens, .teens-unified) .commercial-footer__copyright {
  grid-column: 1 / -1;
}

body:is(.theme-teens, .teens-unified) .commercial-footer__copyright {
  margin-top: -6px;
  color: #7a8290;
}

body:is(.theme-teens, .teens-unified) .commercial-action-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border-left: 4px solid var(--accent);
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(23, 33, 51, .2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .16s ease, transform .16s ease;
}

body:is(.theme-teens, .teens-unified) .commercial-action-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1181px) {
  body:is(.theme-teens, .teens-unified) .edition-cover-deck {
    transform: translate(-138px, -22px) scale(1.58);
    transform-origin: center center;
  }

  body:is(.theme-teens, .teens-unified) .side {
    gap: 0;
  }

  html[lang="ko"] body:is(.theme-teens, .teens-unified).has-top-utility .side > .brand {
    top: -75px;
    left: 0;
    width: 210px;
    height: 50px;
    background-position: left center;
    background-size: 164px auto;
    margin-bottom: 18px;
  }

  html[lang="ko"] body:is(.theme-teens, .teens-unified).has-top-utility .side > .side-card:first-of-type {
    min-height: 108px;
    padding: 14px;
    border: 1px solid #d6dbe3;
    border-bottom: 0;
    border-radius: 0;
  }

  body:is(.theme-teens, .teens-unified) .side-card--topic {
    border-top: 1px solid #e3e6eb;
    border-bottom: 0;
  }

  body:is(.theme-teens, .teens-unified) .side-card--topic + .sample {
    min-height: 84px;
    border-radius: 0;
  }

  html[lang="ko"] body:is(.theme-teens, .teens-unified).has-top-utility .side > .side-card:first-of-type .tiny-btn {
    min-height: 44px;
    border-radius: 0;
  }
}

@media (min-width: 901px) and (max-width: 1450px) {
  body:is(.theme-teens, .teens-unified) .category-news-card.is-lead {
    grid-column: span 12;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  }

  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(2),
  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(3) {
    grid-column: span 6;
  }

  body:is(.theme-teens, .teens-unified) .category-news-copy h3 {
    font-size: clamp(32px, 3.4vw, 42px);
  }
}

@media (max-width: 1180px) {
  body:is(.theme-teens, .teens-unified) .shell {
    display: block;
    padding-top: 12px;
  }

  body:is(.theme-teens, .teens-unified) .side {
    position: static;
    display: grid;
    grid-template-columns: 220px minmax(220px, 1fr) 220px;
    gap: 0 18px;
    margin-bottom: 18px;
    border-bottom: 0;
  }

  html[lang="ko"] body:is(.theme-teens, .teens-unified) .side > .brand {
    position: static;
    width: 210px;
    min-width: 0;
    height: 64px;
    background-position: left center;
    background-size: 164px auto;
  }

  body:is(.theme-teens, .teens-unified) .side > .side-card:first-of-type {
    min-height: 64px;
    padding: 8px 0;
    border-top: 0;
    border-bottom: 0;
  }

  body:is(.theme-teens, .teens-unified) .side > .side-card:nth-of-type(2) {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  body:is(.theme-teens, .teens-unified) .side > .sample {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
  }

  body:is(.theme-teens, .teens-unified) .topbar {
    top: 0;
  }
}

@media (max-width: 900px) {
  body:is(.theme-teens, .teens-unified) .topbar {
    overflow-x: auto;
    padding: 0 10px;
    scrollbar-width: none;
  }

  body:is(.theme-teens, .teens-unified) .topbar a {
    min-width: 104px;
  }

  body:is(.theme-teens, .teens-unified) .common-news-banner {
    height: auto;
    min-height: 260px;
    grid-template-columns: minmax(0, 1fr) 210px;
    padding: 32px;
  }

  body:is(.theme-teens, .teens-unified) .common-news-banner::after {
    right: 226px;
  }

  body:is(.theme-teens, .teens-unified) .edition-cover-deck {
    width: 190px;
  }

  body:is(.theme-teens, .teens-unified) .edition-cover-deck--single .edition-cover--single[data-cover-index] {
    left: 30px;
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services {
    grid-template-columns: 1fr;
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services__heading {
    padding: 15px 0;
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services__links button:first-child {
    border-left: 0;
  }

  body:is(.theme-teens, .teens-unified) .category-news-intro {
    flex-wrap: wrap;
  }

  body:is(.theme-teens, .teens-unified) .category-news-resources {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card,
  body:is(.theme-teens, .teens-unified) .category-news-card.is-wide {
    grid-column: span 6;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card.is-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body:is(.theme-teens, .teens-unified) .top-utility-wrap {
    padding-inline: 16px;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-menu {
    min-height: 0;
    overflow: visible;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-actions {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-priority-links {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-priority-links button,
  body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-priority-links button + button {
    width: 100%;
    margin-left: 0;
    border-left: 0;
    border-radius: 6px;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-menu button[data-utility-action="free-sample"] {
    grid-column: span 2;
    width: 100%;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-language-picker {
    grid-column: span 2;
    width: 100%;
    min-width: 0;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-account {
    grid-column: span 2;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-menu button {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
  }

  body:is(.theme-teens, .teens-unified) .top-utility-menu .top-utility-account--login,
  body:is(.theme-teens, .teens-unified) .top-utility-menu button[data-utility-action="free-sample"] {
    margin-left: 0;
  }

  body:is(.theme-teens, .teens-unified) .shell,
  body:is(.theme-teens, .teens-unified).has-top-utility .shell {
    padding: 8px 16px 40px;
  }

  body:is(.theme-teens, .teens-unified) .side {
    grid-template-columns: 1fr 160px;
    gap: 0 12px;
  }

  html[lang="ko"] body:is(.theme-teens, .teens-unified) .side > .brand {
    width: 100%;
    height: 54px;
    background-size: 150px auto;
  }

  body:is(.theme-teens, .teens-unified) .side > .side-card:first-of-type {
    grid-column: 2;
    grid-row: 1;
  }

  body:is(.theme-teens, .teens-unified) .side > .side-card:nth-of-type(2) {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 14px 0;
  }

  body:is(.theme-teens, .teens-unified) .side > .sample {
    min-height: 60px;
    grid-column: 1 / -1;
    grid-row: 3;
    margin-bottom: 16px;
  }

  body:is(.theme-teens, .teens-unified) .topbar {
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px;
    background: #fff;
    scroll-snap-type: x proximity;
  }

  body:is(.theme-teens, .teens-unified) .topbar a {
    min-height: 60px;
    font-size: 14px;
    scroll-snap-align: center;
  }

  body:is(.theme-teens, .teens-unified) .topbar {
    min-height: 60px;
  }

  body:is(.theme-teens, .teens-unified) .common-news-banner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 24px 26px;
  }

  body.teens-unified .home-compact-banner {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 24px 26px;
  }

  body.teens-unified .home-compact-banner__copy strong {
    font-size: 36px;
  }

  body:is(.theme-teens, .teens-unified) .common-news-banner::after {
    display: none;
  }

  body:is(.theme-teens, .teens-unified) .common-news-banner__copy strong,
  body:is(.theme-teens, .teens-unified) .common-news-banner__copy h1 {
    font-size: 36px;
  }

  body:is(.theme-teens, .teens-unified) .edition-cover-deck {
    width: 140px;
    height: 182px;
    justify-self: end;
    margin-right: 6px;
    transform: none !important;
  }

  body:is(.theme-teens, .teens-unified) .edition-cover-deck--single .edition-cover--single[data-cover-index] {
    top: 0;
    left: 0;
    width: 135px;
    height: 182px;
    box-shadow: none;
    transform: translateY(0);
  }

  body:is(.theme-teens, .teens-unified) .edition-cover-deck--single .edition-cover--single.is-current {
    transform: translateY(0);
    animation-name: teens-cover-rise-mobile;
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services__links button {
    min-height: 58px;
    border-top: 0;
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services__links button:nth-child(odd) {
    border-left: 0;
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services__links button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  body:is(.theme-teens, .teens-unified) #learning-menu.category-newspaper-section {
    min-height: 520px;
    margin-top: 28px;
  }

  body:is(.theme-teens, .teens-unified) .category-news-intro {
    align-items: flex-start;
  }

  body:is(.theme-teens, .teens-unified) .category-news-resources {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:is(.theme-teens, .teens-unified) .category-news-resource-button {
    width: 100%;
  }

  body:is(.theme-teens, .teens-unified) .category-news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card,
  body:is(.theme-teens, .teens-unified) .category-news-card.is-lead,
  body:is(.theme-teens, .teens-unified) .category-news-card.is-wide {
    grid-column: auto;
    display: block;
    min-height: 0;
  }

  body:is(.theme-teens, .teens-unified) .category-news-image,
  body:is(.theme-teens, .teens-unified) .category-news-card.is-lead .category-news-image,
  body:is(.theme-teens, .teens-unified) .category-news-card.is-wide .category-news-image {
    height: 210px;
    min-height: 0;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card.is-lead .category-news-copy,
  body:is(.theme-teens, .teens-unified) .category-news-card.is-wide .category-news-copy,
  body:is(.theme-teens, .teens-unified) .category-news-copy {
    padding: 18px 0 0;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card.is-lead .category-news-copy h3 {
    font-size: 31px;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(n+4) {
    min-height: 176px;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0;
    padding: 10px;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(n+4) .category-news-image {
    width: 132px;
    height: 100%;
    min-height: 156px;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(n+4) .category-news-copy {
    min-width: 0;
    justify-content: center;
    padding: 4px 2px 4px 14px;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(n+4) .category-news-meta {
    margin-bottom: 6px;
    font-size: 10px;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(n+4) .category-news-copy h3 {
    font-size: 19px;
    line-height: 1.15;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(n+4) .category-news-excerpt {
    margin: 8px 0 10px;
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  body:is(.theme-teens, .teens-unified) .category-news-card:nth-child(n+4) .category-news-action {
    min-height: 0;
    padding: 0;
    font-size: 13px;
  }

  body:is(.theme-teens, .teens-unified) .category-news-copy h3 a {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  body:is(.theme-teens, .teens-unified) .footer {
    margin-top: 30px;
  }

  body:is(.theme-teens, .teens-unified) .commercial-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 16px 34px;
  }

  body:is(.theme-teens, .teens-unified) .commercial-footer__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:is(.theme-teens, .teens-unified) .commercial-footer__links button {
    min-height: 44px;
    padding: 0 8px;
  }

  body:is(.theme-teens, .teens-unified) .commercial-action-toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 430px) {
  body:is(.theme-teens, .teens-unified) .side {
    grid-template-columns: 1fr;
  }

  html[lang="ko"] body:is(.theme-teens, .teens-unified) .side > .brand,
  body:is(.theme-teens, .teens-unified) .side > .side-card:first-of-type,
  body:is(.theme-teens, .teens-unified) .side > .side-card:nth-of-type(2),
  body:is(.theme-teens, .teens-unified) .side > .sample {
    grid-column: 1;
  }

  body:is(.theme-teens, .teens-unified) .side > .side-card:first-of-type {
    grid-row: 2;
  }

  body:is(.theme-teens, .teens-unified) .side > .side-card:nth-of-type(2) {
    grid-row: 3;
  }

  body:is(.theme-teens, .teens-unified) .side > .sample {
    grid-row: 4;
  }

  body:is(.theme-teens, .teens-unified) .common-news-banner__copy strong,
  body:is(.theme-teens, .teens-unified) .common-news-banner__copy h1 {
    font-size: 32px;
  }

  body.teens-unified .home-compact-banner__copy strong {
    font-size: 32px;
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services__links,
  body:is(.theme-teens, .teens-unified) .category-news-resources {
    grid-template-columns: 1fr;
  }

  body:is(.theme-teens, .teens-unified) .commercial-footer__links {
    grid-template-columns: 1fr;
  }

  body:is(.theme-teens, .teens-unified) .common-reader-services__links button {
    border-left: 0;
  }
}

.topbar a[href^="index.php"]:not(.active)::before {
  background: #21418f;
}

body:is(.theme-teens, .teens-unified) .topbar a.active[href^="index.php"] {
  background: #eaf0ff;
  color: #21418f;
}

body:is(.theme-teens, .teens-unified) .topbar a.active[href^="index.php"]::after {
  background: #21418f;
}

body.theme-home {
  --accent: #21418f;
  --accent-rgb: 33, 65, 143;
  --soft: #eaf0ff;
}

body.theme-home.teens-unified .home-compact-banner {
  border-top-color: #21418f;
  background: linear-gradient(
    96deg,
    #17356b 0%,
    #21418f 64%,
    #3156d8 78%,
    #9eb4e6 88%,
    #eaf0ff 95%,
    #fff 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  body:is(.theme-teens, .teens-unified) *,
  body:is(.theme-teens, .teens-unified) *::before,
  body:is(.theme-teens, .teens-unified) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 20261001-BYKIDS-NAV-COLORS-V1: each top-level service keeps its own configured identity colour. */
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger {
  color: var(--accent) !important;
  font-weight: 850;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a:hover,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a:focus-visible,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger:hover,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger:focus-visible {
  background: var(--soft) !important;
  color: var(--accent) !important;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a.active,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger.active {
  background: var(--soft) !important;
  color: var(--accent) !important;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a.active::after,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger.active::after {
  background: var(--accent) !important;
  opacity: 1;
}

/* 20261001-BYKIDS-NAV-INTERACTION-V1: neutral at rest; age/service colour on hover, focus, and selection. */
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger {
  color: #4c5565 !important;
  font-weight: 780;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a:hover,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a:focus-visible,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger:hover,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger:focus-visible {
  background: var(--soft) !important;
  color: var(--accent) !important;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a.active,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger.active {
  background: var(--soft) !important;
  color: var(--accent) !important;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a.active::after,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger.active::after {
  background: var(--accent) !important;
  opacity: 1;
}

/* 20261001-BYKIDS-NAV-INTERACTION-V2: neutral at rest; age/service colour on hover, focus, and selection. */
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger {
  color: #4c5565 !important;
  font-weight: 780;
}

html[lang="ko"] body:has(.consumer-header):is(.theme-teens, .teens-unified) .topbar > a:hover:not(.active),
html[lang="ko"] body:has(.consumer-header):is(.theme-teens, .teens-unified) .topbar > a:focus-visible:not(.active),
html[lang="ko"] body:has(.consumer-header):is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger:hover:not(.active),
html[lang="ko"] body:has(.consumer-header):is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger:focus-visible:not(.active) {
  background: var(--soft) !important;
  color: var(--accent) !important;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a.active,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger.active {
  background: var(--soft) !important;
  color: var(--accent) !important;
}

html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > a.active::after,
html[lang="ko"] body:is(.theme-teens, .teens-unified) .topbar > .topbar__group > .topbar__trigger.active::after {
  background: var(--accent) !important;
  opacity: 1;
}



/* /library/css/materials.css */


body.theme-materials {
  background: #f3f6f8;
}

/* Student / Teacher resource workspace */
.materials-audience-tabs{display:grid;grid-template-columns:1fr 1fr;margin-top:14px;border:1px solid #d2e0eb;background:#fff;box-shadow:0 8px 24px rgba(13,47,79,.06)}
.materials-audience-tabs a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:70px;border-right:1px solid #d2e0eb;color:#50677b;text-decoration:none;position:relative}
.materials-audience-tabs a:last-child{border-right:0}.materials-audience-tabs a span{font-size:1rem;font-weight:950}.materials-audience-tabs a small{font-size:.72rem;color:#7a8fa1}.materials-audience-tabs a:hover{background:#f4f9fd}.materials-audience-tabs a.is-active{color:#fff;background:linear-gradient(135deg,#0d725f,#12a878)}.materials-audience-tabs a.is-active small{color:#d8fff2}.materials-audience-tabs a.is-active:after{content:"";position:absolute;left:20%;right:20%;bottom:0;height:4px;border-radius:999px 999px 0 0;background:#fff}
.materials-audience-teacher .materials-hero{background:linear-gradient(125deg,#10334f,#0e6a63 55%,#179b70)}.materials-audience-teacher .materials-hero__actions>a{background:rgba(255,255,255,.12)}.materials-audience-teacher .materials-hero__actions>a:first-child{color:#0b644f;background:#fff}
.microsip-dialer{display:grid;grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);gap:28px;margin-top:14px;padding:30px;border:1px solid #cfe0eb;background:linear-gradient(135deg,#f7fbfd,#eef8f5);box-shadow:0 12px 35px rgba(13,47,79,.07)}
.microsip-dialer__intro{align-self:center}.microsip-dialer__eyebrow{display:block;color:#16866b;font-size:.67rem;font-weight:950;letter-spacing:.14em}.microsip-dialer__intro h2{margin:8px 0 8px;color:#10324e;font-size:clamp(1.65rem,2.3vw,2.35rem);letter-spacing:-.04em}.microsip-dialer__intro p{margin:0;color:#60788a;line-height:1.65}.microsip-dialer__intro ul{display:grid;gap:7px;margin:17px 0 0;padding:0;list-style:none;color:#567083;font-size:.75rem}.microsip-dialer__intro li{display:flex;gap:8px;align-items:flex-start}.microsip-dialer__intro li:before{content:"✓";display:grid;place-items:center;flex:0 0 19px;height:19px;border-radius:50%;background:#dff8ed;color:#087154;font-size:.65rem;font-weight:950}
.microsip-dialer__panel{padding:22px;border:1px solid #cbdde8;border-radius:18px;background:#fff;box-shadow:0 12px 26px rgba(15,57,88,.08)}.microsip-dialer__badge{display:flex;align-items:center;gap:9px;margin-bottom:16px;color:#2b526e;font-size:.72rem}.microsip-dialer__badge span{display:grid;place-items:center;width:34px;height:25px;border-radius:7px;background:#eaf5ff;color:#1767c7;font-size:.62rem;font-weight:950}.microsip-dialer form{display:grid;gap:8px}.microsip-dialer label{color:#173f59;font-size:.78rem;font-weight:950}.microsip-dialer__controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.microsip-dialer input{min-width:0;min-height:50px;padding:0 14px;border:1px solid #bdcfdd;border-radius:12px;background:#fbfdfe;color:#14344d;font:inherit;font-size:1rem;font-weight:800;letter-spacing:.02em;outline:0}.microsip-dialer input:focus{border-color:#2f80ed;box-shadow:0 0 0 3px rgba(47,128,237,.12)}.microsip-dialer input[aria-invalid="true"]{border-color:#c34d5d;box-shadow:0 0 0 3px rgba(195,77,93,.1)}.microsip-dialer__controls button{min-height:50px;padding:0 18px;border:0;border-radius:12px;background:linear-gradient(135deg,#0d725f,#12a878);color:#fff;font:inherit;font-size:.83rem;font-weight:950;box-shadow:0 9px 18px rgba(18,168,120,.2)}.microsip-dialer__controls button span{margin-right:5px}.microsip-dialer__controls button:disabled{cursor:not-allowed;background:#aab8c2;box-shadow:none}.microsip-dialer form small{color:#748a9a;font-size:.66rem;line-height:1.45}.microsip-dialer__status{min-height:39px;margin:14px 0 0;padding:10px 12px;border-radius:10px;background:#edf6fb;color:#315873;font-size:.72rem;font-weight:800;line-height:1.5}.microsip-dialer details{margin-top:12px;border-top:1px solid #e2eaf0;padding-top:12px;color:#5d7486;font-size:.7rem}.microsip-dialer summary{cursor:pointer;color:#385a71;font-weight:900}.microsip-dialer details ol{display:grid;gap:5px;margin:10px 0 0;padding-left:20px;line-height:1.5}
.microsip-bridge-state{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 0 15px;padding:12px 13px;border:1px solid #d6e2ea;border-radius:13px;background:#f5f8fa;color:#36566c}.microsip-bridge-state__dot{width:11px;height:11px;border-radius:50%;background:#8194a1;box-shadow:0 0 0 4px rgba(129,148,161,.14)}.microsip-bridge-state div{display:grid;gap:2px;min-width:0}.microsip-bridge-state b{font-size:.76rem}.microsip-bridge-state small{color:#6c8290;font-size:.65rem;line-height:1.35}.microsip-bridge-state button{min-height:34px;padding:0 11px;border:1px solid #b9cad6;border-radius:9px;background:#fff;color:#36566c;font:inherit;font-size:.65rem;font-weight:900;box-shadow:none}.microsip-bridge-state.is-checking .microsip-bridge-state__dot{background:#357fc5;animation:microsip-pulse 1.2s ease-in-out infinite}.microsip-bridge-state.is-ready{border-color:#bce4d5;background:#eefaf5;color:#0a684f}.microsip-bridge-state.is-ready .microsip-bridge-state__dot{background:#0a9d70;box-shadow:0 0 0 4px rgba(10,157,112,.14)}.microsip-bridge-state.is-missing,.microsip-bridge-state.is-error{border-color:#ead8c8;background:#fff8f2;color:#854a22}.microsip-bridge-state.is-missing .microsip-bridge-state__dot,.microsip-bridge-state.is-error .microsip-bridge-state__dot{background:#d27836;box-shadow:0 0 0 4px rgba(210,120,54,.14)}
.microsip-installer{margin:0 0 17px;padding:16px;border:1px solid #cbdde8;border-radius:14px;background:#f7fbfd}.microsip-installer[hidden]{display:none}.microsip-installer__eyebrow{display:block;margin-bottom:5px;color:#16866b;font-size:.62rem;font-weight:950;letter-spacing:.1em}.microsip-installer>strong{display:block;color:#173f59;font-size:.9rem}.microsip-installer>p{margin:6px 0 12px;color:#61798a;font-size:.7rem;line-height:1.5}.microsip-installer ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;counter-reset:install-step;list-style:none}.microsip-installer li{position:relative;min-height:76px;padding:12px 10px 10px 36px;border:1px solid #dce7ed;border-radius:11px;background:#fff;counter-increment:install-step}.microsip-installer li:before{content:counter(install-step);position:absolute;top:11px;left:10px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#e4f4ee;color:#087154;font-size:.62rem;font-weight:950}.microsip-installer li b{display:block;color:#244a63;font-size:.68rem}.microsip-installer li small{display:block;margin-top:4px;color:#758a98;font-size:.6rem;line-height:1.4}.microsip-installer__actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:12px}.microsip-installer__actions a,.microsip-installer__actions button{display:flex;align-items:center;justify-content:center;min-height:43px;padding:0 15px;border-radius:11px;font:inherit;font-size:.72rem;font-weight:950;text-decoration:none}.microsip-installer__actions a{border:0;background:linear-gradient(135deg,#0d725f,#12a878);color:#fff;box-shadow:0 8px 16px rgba(18,168,120,.18)}.microsip-installer__actions button{border:1px solid #b9cad6;background:#fff;color:#36566c;box-shadow:none}.microsip-installer__note{display:block;margin-top:9px;color:#718794;font-size:.61rem;line-height:1.4}@keyframes microsip-pulse{0%,100%{opacity:.45}50%{opacity:1}}
.microsip-installer__legal{display:flex;flex-wrap:wrap;gap:5px 10px;margin-top:7px}.microsip-installer__legal a{color:#486a7f;font-size:.61rem;font-weight:800;text-decoration:underline;text-underline-offset:2px}.microsip-reset{margin-top:10px;padding:7px 10px;border:1px solid #c8d6df;border-radius:8px;background:#fff;color:#486477;font:inherit;font-size:.64rem;font-weight:850;box-shadow:none}
.teacher-library{margin-top:14px;padding:30px;border:1px solid #d3e1ec;background:#f7fafc;box-shadow:0 12px 35px rgba(13,47,79,.07)}
.teacher-library__head{display:flex;align-items:flex-end;justify-content:space-between;gap:25px}.teacher-library__head>div>span,.teacher-coursebooks header span,.teacher-books-panel>header span{display:block;color:#16866b;font-size:.67rem;font-weight:950;letter-spacing:.14em}.teacher-library__head h2{margin:7px 0 6px;color:#10324e;font-size:clamp(1.7rem,2.4vw,2.5rem);letter-spacing:-.04em}.teacher-library__head p{margin:0;color:#6b8192;line-height:1.55}.teacher-search{display:grid;gap:7px;flex:0 0 min(360px,34vw);color:#50677b;font-size:.72rem;font-weight:900}.teacher-search input{min-height:46px;border:1px solid #ccdce8;border-radius:13px;background:#fff;padding:0 14px;color:#15344d;font:inherit;outline:0}.teacher-search input:focus{border-color:#2f80ed;box-shadow:0 0 0 3px rgba(47,128,237,.12)}
.teacher-levels{display:flex;gap:8px;margin-top:25px;padding:8px;border:1px solid #d5e2ec;border-radius:16px;background:#fff;overflow:auto}.teacher-levels button{flex:1 0 76px;min-height:56px;border:0;border-radius:11px;background:transparent;color:#637b8f}.teacher-levels strong,.teacher-levels small{display:block}.teacher-levels strong{font-size:.95rem}.teacher-levels small{margin-top:3px;font-size:.62rem}.teacher-levels button:hover{background:#edf6fb}.teacher-levels button.is-active{color:#fff;background:linear-gradient(145deg,#1f6eb2,#2f80ed);box-shadow:0 9px 18px rgba(47,128,237,.22)}
.teacher-course-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.teacher-course-tabs button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:65px;border:1px solid #d3e1eb;border-radius:15px;background:#fff;color:#526b7e}.teacher-course-tabs b,.teacher-course-tabs small{display:block}.teacher-course-tabs b{font-size:.92rem}.teacher-course-tabs small{font-size:.68rem}.teacher-course-tabs button.is-active{border-color:#13a37b;color:#0a7058;background:#eafaf5;box-shadow:inset 0 -3px #18a999}.teacher-course-tabs button:disabled{cursor:not-allowed;opacity:.42}
.teacher-browser{display:grid;grid-template-columns:230px minmax(0,1fr) 320px;gap:14px;min-height:650px;margin-top:14px}.teacher-coursebooks,.teacher-books-panel,.teacher-selection{min-width:0;border:1px solid #d3e1eb;border-radius:18px;background:#fff;overflow:hidden}.teacher-coursebooks{padding:15px}.teacher-coursebooks header{padding:4px 4px 13px;border-bottom:1px solid #e1eaf1}.teacher-coursebooks header strong{display:block;margin-top:5px;color:#123652}.teacher-coursebooks>button{display:grid;width:100%;gap:4px;margin-top:9px;padding:13px;border:1px solid #d8e4ed;border-radius:13px;background:#fff;color:#15344d;text-align:left}.teacher-coursebooks>button:hover{border-color:#91bfe2;background:#f2f8fc}.teacher-coursebooks>button.is-active{border-color:#2f80ed;background:#eaf5ff;box-shadow:0 8px 18px rgba(47,128,237,.12)}.teacher-coursebooks>button b{font-size:.79rem}.teacher-coursebooks>button span{color:#2f80ed;font-size:.68rem;font-weight:900}.teacher-coursebooks>button small{color:#7b90a0;font-size:.62rem}.teacher-books-panel{padding:17px}.teacher-books-panel>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:2px 2px 14px}.teacher-books-panel>header h3{margin:5px 0 0;color:#10324e;font-size:1.2rem}.teacher-books-panel>header>b{padding:7px 10px;border-radius:999px;background:#edf4f8;color:#567083;font-size:.7rem}.teacher-book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.teacher-book-card{position:relative;border:1px solid #d7e3ec;border-radius:15px;background:#fff;overflow:hidden;transition:.18s}.teacher-book-card:hover,.teacher-book-card.is-selected{border-color:#2f80ed;box-shadow:0 10px 24px rgba(47,128,237,.12);transform:translateY(-2px)}.teacher-book-card__select{display:grid;grid-template-columns:86px minmax(0,1fr);gap:11px;width:100%;min-height:135px;padding:10px;border:0;background:#fff;color:#17344c;text-align:left}.teacher-book-card__select img,.teacher-book-card__placeholder{width:86px;height:115px;border-radius:9px;object-fit:cover;background:#edf3f7}.teacher-book-card__placeholder{display:grid;place-items:center;color:#8093a2;font-size:.58rem;font-weight:900}.teacher-book-card__select div{min-width:0;padding-top:3px}.teacher-book-card__select small,.teacher-book-card__select strong,.teacher-book-card__select span,.teacher-book-card__select b{display:block}.teacher-book-card__select small{color:#2f80ed;font-size:.58rem;font-weight:950;letter-spacing:.04em}.teacher-book-card__select strong{margin-top:7px;font-size:.85rem;line-height:1.25}.teacher-book-card__select span{margin-top:4px;color:#6c8192;font-size:.68rem}.teacher-book-card__select b{width:max-content;margin-top:10px;padding:5px 7px;border-radius:999px;font-size:.58rem}.teacher-book-card__select b.is-ready{color:#087154;background:#dff8ed}.teacher-book-card__select b.is-waiting{color:#7a6370;background:#f1ecef}.teacher-book-card__copy{position:absolute;right:8px;bottom:8px;border:1px solid #b8d3e6;border-radius:8px;background:#fff;color:#1767c7;padding:6px 8px;font-size:.6rem;font-weight:900}.teacher-empty{grid-column:1/-1;display:grid;place-content:center;min-height:360px;text-align:center;color:#6a8193}.teacher-empty strong{color:#17344c}.teacher-empty p{margin:7px 0 0}
.teacher-selection{position:sticky;top:15px;align-self:start;padding:18px}.teacher-selection__cover{display:grid;place-items:center;width:100%;height:230px;border-radius:14px;background:linear-gradient(145deg,#eaf5ff,#f8fbfd);overflow:hidden}.teacher-selection__cover img{width:100%;height:100%;object-fit:contain}.teacher-selection__eyebrow{display:block;margin-top:15px;color:#16866b;font-size:.62rem;font-weight:950;letter-spacing:.08em}.teacher-selection h3{margin:7px 0 0;color:#10324e;font-size:1.25rem;line-height:1.2}.teacher-selection>p{margin:5px 0 0;color:#6a8192}.teacher-selection dl{display:grid;gap:7px;margin:14px 0}.teacher-selection dl div{display:grid;grid-template-columns:74px minmax(0,1fr);gap:8px;padding:8px 0;border-bottom:1px solid #e5edf3;font-size:.68rem}.teacher-selection dt{color:#7a8e9f}.teacher-selection dd{margin:0;color:#17344c;font-weight:850;overflow-wrap:anywhere}.teacher-selection dd.is-ready{color:#087154}.teacher-selection dd.is-waiting{color:#7a6370}.teacher-action{display:flex;align-items:center;justify-content:space-between;min-height:46px;margin-top:8px;padding:0 13px;border-radius:11px;text-decoration:none;font-size:.75rem;font-weight:900}.teacher-action--student{border:1px solid #cbdde9;color:#173e5e;background:#fff}.teacher-action--guide{color:#fff;background:linear-gradient(135deg,#1767c7,#2f80ed);box-shadow:0 9px 20px rgba(47,128,237,.22)}.teacher-copy-main{display:block;width:100%;margin-top:8px;padding:10px 12px;border:1px solid #9cd8c5;border-radius:11px;background:#eafaf5;color:#087154;text-align:left}.teacher-copy-main span,.teacher-copy-main small{display:block}.teacher-copy-main span{font-weight:950}.teacher-copy-main small{margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.teacher-guide-wait,.teacher-selection__empty{padding:16px;border-radius:13px;background:#f2f5f7;color:#718696}.teacher-guide-wait strong,.teacher-selection__empty strong{color:#365166}.teacher-guide-wait p,.teacher-selection__empty p{margin:6px 0 0;font-size:.68rem;line-height:1.5}.teacher-library.is-extension .teacher-browser{grid-template-columns:minmax(0,1fr) 320px}.teacher-library.is-extension .teacher-books-panel{grid-column:1}.teacher-library.is-extension .teacher-selection{grid-column:2}
@media(max-width:1180px){.teacher-browser{grid-template-columns:210px minmax(0,1fr)}.teacher-selection{position:relative;top:auto;grid-column:1/-1;display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px}.teacher-selection__cover{height:220px}.teacher-library.is-extension .teacher-browser{grid-template-columns:1fr}.teacher-library.is-extension .teacher-selection{grid-column:1}}
@media(max-width:820px){.microsip-dialer{grid-template-columns:1fr;padding:22px}.teacher-library{padding:18px}.teacher-library__head{display:block}.teacher-search{margin-top:14px}.teacher-browser{grid-template-columns:1fr}.teacher-coursebooks{display:flex;gap:8px;overflow:auto}.teacher-coursebooks header{flex:0 0 160px}.teacher-coursebooks>button{flex:0 0 180px}.teacher-book-grid{grid-template-columns:1fr}.teacher-selection{grid-column:1;grid-template-columns:140px minmax(0,1fr)}.teacher-selection__cover{height:190px}.materials-audience-tabs a{flex-direction:column;gap:3px}}
@media(max-width:560px){.materials-audience-tabs{grid-template-columns:1fr 1fr}.materials-audience-tabs a{min-height:64px}.materials-audience-tabs a small{font-size:.58rem}.microsip-dialer{margin-left:-16px;margin-right:-16px;padding:20px 16px}.microsip-dialer__panel{padding:17px;border-radius:14px}.microsip-bridge-state{grid-template-columns:auto minmax(0,1fr)}.microsip-bridge-state button{grid-column:1/-1;width:100%}.microsip-installer ol,.microsip-installer__actions{grid-template-columns:1fr}.microsip-dialer__controls{grid-template-columns:1fr}.microsip-dialer__controls button,.microsip-installer__actions>*{width:100%}.teacher-library{margin-left:-16px;margin-right:-16px;border-radius:0}.teacher-course-tabs button{display:grid;gap:3px}.teacher-levels button{flex-basis:66px}.teacher-selection{display:block}.teacher-selection__cover{height:240px}.teacher-book-card__select{grid-template-columns:78px minmax(0,1fr)}.teacher-book-card__select img,.teacher-book-card__placeholder{width:78px;height:105px}}

.materials-page {
  width: 100%;
  margin: 0 0 72px;
  color: #15283e;
}

.materials-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 32px;
  min-height: 244px;
  padding: 28px 38px;
  border: 0;
  border-top: 4px solid var(--accent);
  border-radius: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, .12), transparent 22%),
    linear-gradient(132deg, #102a43 4%, color-mix(in srgb, var(--accent) 72%, #12334c));
  color: #fff;
  box-shadow: none;
}

.materials-hero::after {
  content: "89";
  position: absolute;
  right: 3%;
  top: -28px;
  color: rgba(255, 255, 255, .055);
  font-size: 220px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.materials-hero__copy,
.materials-hero__actions {
  position: relative;
  z-index: 1;
}

.materials-hero__copy > p,
.materials-section-head > div > span {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
}

.materials-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 3.1vw, 46px);
  letter-spacing: -.055em;
}

.materials-hero__copy > span {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.7;
}

.materials-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.materials-hero__stats b {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(0, 0, 0, .12);
  color: rgba(255, 255, 255, .77);
  font-size: 11px;
}

.materials-hero__stats strong {
  color: #fff;
  font-size: 18px;
}

.materials-hero__actions {
  display: grid;
  gap: 11px;
  width: 290px;
  max-width: 100%;
}

.materials-issue-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  background: rgba(7, 28, 45, .38);
  backdrop-filter: blur(8px);
}

.materials-issue-form label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.materials-issue-form select,
.materials-issue-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.materials-issue-form select {
  min-width: 0;
  padding: 0 12px;
  background: #fff;
  color: #15324b;
}

.materials-issue-form button {
  padding: 0 13px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.materials-hero__actions > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.materials-editions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 0;
  background: #dce3e9;
}

.materials-editions a {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #fff;
  color: #41556a;
  text-decoration: none;
}

.materials-editions a.is-active {
  background: var(--accent);
  color: #fff;
}

.materials-editions span {
  font-size: 14px;
  font-weight: 900;
}

.materials-editions small {
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  opacity: .7;
}

.materials-issues {
  display: flex;
  min-height: 76px;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0;
  border: 1px solid #dce3e9;
  border-radius: 0;
  background: #fff;
}

.materials-issues > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}

.materials-issues > div span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .05em;
}

.materials-issues > div strong {
  color: #516276;
  font-size: 13px;
}

.materials-issues > a {
  display: flex;
  min-width: 210px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.materials-issues > a b {
  font-size: 18px;
}

.materials-issues > a small {
  font-size: 11px;
  font-weight: 850;
  opacity: .82;
}

.materials-downloads,
.materials-unit-downloads {
  padding: 34px 38px;
  border: 1px solid #dfe6eb;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.materials-unit-downloads {
  margin-top: 14px;
  scroll-margin-top: 100px;
}

.materials-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.materials-section-head > div > span {
  color: var(--accent);
}

.materials-section-head h2 {
  margin: 0 0 8px;
  color: #142b42;
  font-size: clamp(25px, 3.5vw, 36px);
  letter-spacing: -.04em;
}

.materials-section-head p {
  margin: 0;
  color: #708092;
  font-size: 13px;
  line-height: 1.65;
}

.materials-section-head > b {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .09);
  color: var(--accent);
  font-size: 11px;
}

.materials-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.materials-resource-card {
  --resource-color: #34556f;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dce4ea;
  border-radius: 16px;
  background: linear-gradient(150deg, #fff, #f7f9fa);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.materials-resource-card.is-primary {
  min-height: 292px;
  border-top: 5px solid var(--resource-color);
}

.materials-resource-card.is-audio { --resource-color: #087f8c; }
.materials-resource-card.is-song { --resource-color: #6547b9; }
.materials-resource-card.is-document { --resource-color: #41617e; }
.materials-resource-card.is-answer { --resource-color: #16845b; }

.materials-resource-card.is-selected,
.materials-resource-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--resource-color) 65%, #dce4ea);
  box-shadow: 0 14px 28px rgba(26, 52, 74, .09);
}

.materials-resource-card.is-unavailable {
  opacity: .66;
  filter: grayscale(.55);
}

.materials-resource-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.materials-resource-card__top > span {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--resource-color);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .07em;
}

.materials-resource-card__top small {
  color: #8996a4;
  font-size: 9px;
  font-weight: 850;
}

.materials-resource-card h3 {
  margin: 0 0 10px;
  color: #142b42;
  font-size: 21px;
  letter-spacing: -.035em;
}

.materials-resource-card > p {
  margin: 0;
  color: #6b7b8c;
  font-size: 12px;
  line-height: 1.65;
}

.materials-resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.materials-resource-card__meta span {
  padding: 5px 7px;
  border-radius: 6px;
  background: #edf2f5;
  color: #4a5e72;
  font-size: 10px;
  font-weight: 850;
}

.materials-resource-card > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--resource-color);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.materials-resource-card > a b {
  font-size: 18px;
}

.materials-resource-card__empty {
  margin-top: auto;
  padding: 12px;
  border-radius: 8px;
  background: #edf0f2;
  color: #687786;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.materials-article-list {
  overflow: hidden;
  border: 1px solid #dfe6eb;
  border-radius: 0;
}

.materials-article-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 92px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5eaee;
  background: #fff;
}

.materials-article-row:nth-child(even) {
  background: #f8fafb;
}

.materials-article-row:last-child {
  border-bottom: 0;
}

.materials-article-row > b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
  font-size: 14px;
}

.materials-article-row > div:nth-child(2) {
  min-width: 0;
}

.materials-article-row > div > span {
  display: block;
  margin-bottom: 4px;
  color: #8492a0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.materials-article-row h3 {
  overflow: hidden;
  margin: 0;
  color: #1b3148;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.materials-article-row__actions {
  display: flex;
  gap: 8px;
}

.materials-article-row__actions a {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 8px;
  min-width: 126px;
  min-height: 52px;
  align-content: center;
  padding: 7px 11px;
  border: 1px solid #d7e0e6;
  border-radius: 9px;
  background: #fff;
  color: #244058;
  text-decoration: none;
}

.materials-article-row__actions small {
  grid-row: 1 / 3;
  align-self: center;
  padding: 5px;
  border-radius: 5px;
  background: #087f8c;
  color: #fff;
  font-size: 7px;
  font-weight: 950;
}

.materials-article-row__actions a:nth-child(2) small {
  background: #6547b9;
}

.materials-article-row__actions span {
  font-size: 10px;
  font-weight: 900;
}

.materials-article-row__actions b {
  color: #8492a0;
  font-size: 8px;
}

.materials-source-note {
  margin: 16px 4px 0;
  color: #778696;
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .materials-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-article-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .materials-article-row__actions {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .materials-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    min-height: 0;
    padding: 32px;
    border-radius: 0;
  }

  .materials-hero__actions {
    width: 100%;
  }

  .materials-editions {
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
  }

  .materials-editions a {
    flex-direction: column;
    gap: 4px;
  }

  .materials-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .materials-issues {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .materials-issues > a {
    min-height: 54px;
  }
}

@media (max-width: 560px) {
  .materials-hero {
    padding: 30px 22px;
  }

  .materials-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .materials-resource-grid {
    grid-template-columns: 1fr;
  }

  .materials-downloads,
  .materials-unit-downloads {
    padding: 18px;
    border-radius: 0;
  }

  .materials-article-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 10px;
  }

  .materials-article-row > b {
    width: 36px;
    height: 36px;
  }

  .materials-article-row__actions {
    grid-column: 1 / -1;
  }

  .materials-article-row__actions a {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Published page previews preserve the original image and distinguish it from a cover. */
.teacher-book-card__select .teacher-book-preview{display:grid;grid-template-rows:minmax(0,1fr) auto;width:86px;height:115px;margin:0;overflow:hidden;border:1px solid #d7e3ec;border-radius:9px;background:#edf3f7;box-sizing:border-box}
.teacher-book-card__select .teacher-book-preview img{width:100%;height:100%;min-height:0;object-fit:contain;border-radius:0}
.teacher-book-card__select .teacher-book-preview__label,.teacher-selection__cover .teacher-book-preview__label{display:block;margin:0;padding:5px 2px;color:#37536a;background:#f3f7fa;font-size:10px;line-height:1.35;font-weight:700;letter-spacing:0;text-align:center}
.teacher-selection__cover .teacher-book-preview{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;min-height:0;overflow:hidden}
.teacher-selection__cover .teacher-book-preview img{width:100%;height:100%;min-height:0;object-fit:contain}
.teacher-selection__cover .teacher-book-preview__label{font-size:12px;padding:6px}
@media(max-width:560px){.teacher-book-card__select .teacher-book-preview{width:78px;height:105px}}

/* Shrink the grid image itself so portrait covers cannot overflow the preview row. */
.teacher-selection__cover{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.teacher-selection__cover>img{min-width:0;min-height:0;max-height:100%;align-self:stretch;object-fit:contain}

/* General conversation courses are selected below the main audience menu. */
.teacher-general-courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px;background:#f1f7fd;border-color:#c8dbed}
.teacher-general-courses[hidden]{display:none}
.teacher-general-courses button{min-width:0;padding:10px 8px;word-break:keep-all}

