:root {
    --navy: #071d49;
    --navy-2: #0d2e63;
    --blue: #0872bd;
    --blue-2: #0b83d5;
    --teal: #087b83;
    --teal-soft: #e9f7f6;
    --red: #d92d45;
    --green: #0a8278;
    --ink: #15223a;
    --muted: #5d6b80;
    --line: #dce4ee;
    --line-strong: #c7d3e1;
    --surface: #ffffff;
    --surface-soft: #f5f8fc;
    --surface-blue: #eef7ff;
    --shadow: 0 14px 44px rgba(11, 31, 68, .08);
    --shadow-small: 0 6px 22px rgba(11, 31, 68, .07);
    --radius: 18px;
    --radius-small: 11px;
    --container: 1240px;
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
    --font-cjk: "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Heiti SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.025em; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: -70px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 90; height: 76px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(211,221,233,.85); backdrop-filter: saturate(160%) blur(18px); }
.header-inner { height: 100%; display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand img { display: block; width: 188px; }
.main-nav { display: flex; align-items: stretch; justify-content: center; height: 100%; gap: 16px; }
.main-nav a { position: relative; display: grid; place-items: center; min-width: 112px; padding: 0 16px; color: #24334d; font-weight: 570; }
.main-nav a::after { content: ""; position: absolute; height: 3px; border-radius: 3px 3px 0 0; left: 18px; right: 18px; bottom: 0; background: var(--navy); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.mobile-menu-button { display: none; background: none; border: 0; padding: 9px; }
.mobile-menu-button span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px; border-radius: 2px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-panel { position: absolute; right: 0; top: 54px; width: 235px; padding: 14px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.user-menu-panel strong { color: var(--navy); }
.user-menu-panel small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.user-menu-panel a, .user-menu-panel button { display: block; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; color: #314058; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--surface-soft); color: var(--navy); }

.button { min-height: 48px; padding: 11px 22px; border-radius: 9px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 680; line-height: 1; transition: transform .16s, box-shadow .16s, background .16s, border-color .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--navy), #0b68b4); color: #fff; box-shadow: 0 7px 18px rgba(8,77,146,.18); }
.button-primary:hover { box-shadow: 0 10px 24px rgba(8,77,146,.25); }
.button-outline { color: var(--navy); background: #fff; border-color: #9fb2cb; }
.button-outline:hover { border-color: var(--navy); }
.button-small { min-height: 42px; padding-inline: 19px; }
.button-block { width: 100%; }
.text-link { color: var(--blue); font-weight: 650; }
.text-link span { transition: margin .2s; }
.text-link:hover span { margin-left: 4px; }

.hero { position: relative; overflow: hidden; min-height: 470px; background: radial-gradient(circle at 50% 36%, #fff 0, #f5faff 45%, #edf7ff 100%); border-bottom: 1px solid #e4edf7; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(38,110,177,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(38,110,177,.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 78%); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 66px 20px 54px; }
.eyebrow { display: inline-block; color: var(--teal); font-weight: 760; font-size: 12px; letter-spacing: .14em; margin-bottom: 13px; }
.hero h1 { max-width: 980px; margin: 0 auto 15px; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.045em; }
.hero h1 span { color: var(--blue); }
.hero-inner > p { max-width: 680px; margin: 0 auto 27px; color: #425169; font-size: 19px; }
.hero-art { position: absolute; z-index: 1; color: rgba(20,116,191,.09); font-family: var(--font-cjk); line-height: 1; user-select: none; }
.hero-art-left { font-size: 190px; left: 2.5%; bottom: 10px; transform: rotate(-7deg); }
.hero-art-right { font-size: 165px; right: 5%; top: 75px; transform: rotate(8deg); }
.lookup-form { max-width: 760px; min-height: 68px; margin: 0 auto 15px; padding: 5px 5px 5px 21px; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #8eb4d8; border-radius: 13px; box-shadow: 0 12px 36px rgba(27,95,157,.11); }
.lookup-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,114,189,.1), 0 12px 36px rgba(27,95,157,.11); }
.lookup-form input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; color: var(--navy); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.lookup-form input::placeholder { color: #929fb0; text-transform: none; letter-spacing: 0; }
.lookup-form .button { min-width: 140px; min-height: 56px; }
.search-icon { width: 23px; height: 23px; border: 2px solid #455a74; border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; position: absolute; width: 9px; height: 2px; right: -7px; bottom: 0; background: #455a74; transform: rotate(48deg); }
.lookup-help { display: block; color: #66768c; }

.section { padding: 48px 0; }
.section-soft { background: linear-gradient(#fbfdff, #f5f8fc); border-top: 1px solid #edf1f6; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { min-height: 150px; padding: 28px; display: flex; align-items: flex-start; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; box-shadow: 0 3px 12px rgba(12,39,78,.025); }
.feature-card h2 { font-size: 20px; margin-bottom: 7px; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-icon { width: 58px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; color: var(--teal); border: 2px solid currentColor; border-radius: 10px; font-size: 29px; background: linear-gradient(150deg, #fff, var(--teal-soft)); }
.section-heading { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin: 0; font-size: 30px; }
.book-list { display: grid; gap: 16px; }
.book-row { min-height: 160px; padding: 20px 26px; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-small); }
.book-cover { position: relative; width: 92px; height: 126px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; color: #fff; overflow: hidden; background: linear-gradient(145deg, #0b525e, #087f85 58%, #0b5562); border-radius: 3px 8px 8px 3px; box-shadow: 5px 6px 16px rgba(7,37,69,.18); text-align: center; }
.book-cover::before { content: ""; position: absolute; width: 150%; height: 65px; bottom: -25px; left: -23%; border-radius: 50% 50% 0 0; background: rgba(255,255,255,.94); transform: rotate(-7deg); }
.book-cover::after { content: "学"; position: absolute; right: -4px; bottom: 3px; color: rgba(7,81,94,.18); font-family: var(--font-cjk); font-size: 37px; }
.book-cover small { font-size: 6px; letter-spacing: .04em; }
.book-cover strong { margin-top: 13px; font-size: 21px; line-height: 1.1; }
.book-cover > span { font-size: 32px; font-weight: 760; line-height: 1; }
.book-cover.large { width: 125px; height: 172px; padding-top: 18px; }
.book-cover.large strong { font-size: 26px; }
.book-cover.large > span { font-size: 40px; }
.book-cover.xlarge { width: 160px; height: 220px; padding-top: 22px; border-radius: 4px 12px 12px 4px; }
.book-cover.xlarge small { font-size: 8px; }
.book-cover.xlarge strong { font-size: 32px; margin-top: 22px; }
.book-cover.xlarge > span { font-size: 52px; }
.book-info h3 { margin: 3px 0 7px; font-size: 23px; }
.book-info p { margin-bottom: 10px; color: var(--muted); }
.book-kicker { color: var(--teal); font-size: 12px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.book-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #51627a; font-size: 14px; }
.book-stats span { position: relative; }
.book-stats span + span::before { content: "·"; position: absolute; left: -13px; color: #a0adbc; }
.platform-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.platform-stats span { padding: 18px; color: var(--muted); text-align: center; border-right: 1px solid var(--line); }
.platform-stats span:last-child { border: 0; }
.platform-stats strong { display: block; color: var(--navy); font-size: 25px; }

.ad-unit { position: relative; min-height: 100px; margin: 28px 0 0; display: grid; place-items: center; overflow: hidden; border: 1px solid #d8e0e9; border-radius: 10px; background: #f7f9fb; }
.ad-label { position: absolute; left: 10px; top: 5px; color: #8793a3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ad-preview { color: #7d8998; font-size: 13px; background: repeating-linear-gradient(135deg,#f7f9fb,#f7f9fb 12px,#f2f5f8 12px,#f2f5f8 24px); }

.page-section { padding: 26px 0 48px; background: #f8fafc; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #596b83; font-size: 13px; }
.breadcrumbs a { color: var(--blue); }
.answer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.answer-main { display: grid; gap: 14px; }
.answer-sidebar { display: grid; gap: 16px; position: sticky; top: 96px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 4px 18px rgba(11,35,70,.035); }
.question-header-card { padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.code-panel { align-self: start; position: relative; padding-right: 18px; border-right: 1px solid var(--line); }
.code-panel small { display: block; margin-bottom: 7px; color: #5c6c82; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.code-panel strong { display: inline-block; padding: 9px 12px; color: var(--navy); background: #edf8fa; border: 1px solid #c5e1e5; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; letter-spacing: .04em; }
.copy-code { padding: 5px; border: 0; background: none; color: #60748c; }
.content-type { color: var(--teal); font-size: 11px; font-weight: 760; letter-spacing: .1em; }
.question-heading h1 { margin: 2px 0 10px; font-size: clamp(25px, 3vw, 34px); }
.target-script { font-family: var(--font-cjk); color: var(--navy); font-size: 31px; font-weight: 620; letter-spacing: .02em; }
.target-large { font-size: 55px !important; }
.pronunciation { margin: 2px 0 14px; color: #4d5d73; font-style: italic; }
.pronunciation-large { font-size: 20px; }
.lead { color: #495b72; font-size: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; padding: 4px 12px; align-items: center; border-radius: 6px; background: #eef8f8; border: 1px solid #c9e5e5; color: #176b74; font-size: 12px; font-weight: 650; }
.tag-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.answer-main > .content-card:not(.question-header-card):not(.action-row) { padding: 22px 24px; }
.content-card > h2, .card-title h2 { margin: 0; font-size: 20px; }
.card-title { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.verified-badge { padding: 5px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); border: 1px solid #bee3df; font-size: 11px; font-weight: 750; }
.option-list { display: grid; gap: 8px; margin-top: 15px; }
.answer-option { min-height: 48px; padding: 9px 13px; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 9px; }
.answer-option > span { width: 29px; height: 29px; display: grid; place-items: center; color: var(--navy); background: #f1f5f9; border-radius: 50%; font-weight: 700; }
.answer-option p { margin: 0; }
.answer-option > strong { color: var(--teal); font-size: 12px; }
.answer-option.is-correct { background: #f1fbf9; border-color: #8bcfc6; }
.solution-grid { display: grid; grid-template-columns: minmax(210px, .75fr) 1.55fr; }
.correct-answer { padding: 5px 28px 5px 0; border-right: 1px solid var(--line); }
.correct-answer small, .vocab-detail small, .knowledge-box small, .lesson-summary small { display: block; margin-bottom: 8px; color: var(--teal); font-size: 11px; font-weight: 760; letter-spacing: .08em; }
.correct-answer strong { display: block; color: var(--teal); font-family: var(--font-cjk); font-size: 26px; line-height: 1.55; }
.explanation { padding-left: 32px; }
.explanation > p { margin: 0 0 14px; white-space: normal; }
.knowledge-box { width: fit-content; padding: 11px 16px; border: 1px solid #cbe5e6; border-radius: 8px; background: #f0f9fa; }
.knowledge-box small { margin-bottom: 3px; }
.knowledge-box strong { color: #0a6973; font-family: var(--font-cjk); font-size: 18px; }
.mistake-note { margin-top: 18px; padding: 13px 16px; display: flex; gap: 13px; border-left: 3px solid #e3a52f; border-radius: 0 8px 8px 0; background: #fff9eb; }
.mistake-note > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dca12c; border-radius: 50%; color: #a26a00; font-weight: 750; }
.mistake-note strong { color: #704b08; }
.mistake-note p { margin: 2px 0 0; color: #695b40; }
.survey-card { display: grid; grid-template-columns: 1fr .9fr; gap: 28px; }
.survey-card h2 { margin-bottom: 4px; }
.survey-card > div > p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.survey-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.survey-button { min-height: 46px; border-radius: 7px; background: #fff; font-weight: 650; }
.survey-button.correct { border: 1px solid var(--teal); color: var(--teal); }
.survey-button.incorrect { border: 1px solid var(--red); color: var(--red); }
.survey-button.correct:hover, .survey-button.correct.active { background: var(--teal); color: #fff; }
.survey-button.incorrect:hover, .survey-button.incorrect.active { background: var(--red); color: #fff; }
.community-data { padding-left: 26px; border-left: 1px solid var(--line); }
.community-data h3 { margin: 0 0 11px; font-size: 15px; }
.community-data small { color: var(--muted); }
.ratio-bar { height: 9px; margin-bottom: 6px; background: var(--red); border-radius: 99px; overflow: hidden; }
.ratio-bar span { display: block; height: 100%; background: var(--teal); transition: width .35s; }
.ratio-labels { display: flex; justify-content: space-between; font-size: 13px; }
.ratio-labels span:first-child { color: var(--teal); }
.ratio-labels span:last-child { color: var(--red); }
.is-hidden { display: none !important; }
.muted { color: var(--muted); }
.action-row { padding: 9px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.action-button { min-height: 44px; border: 1px solid #9eb0c6; border-radius: 7px; background: #fff; color: var(--navy); font-weight: 640; }
.action-button:hover, .action-button.active { background: #eef6ff; border-color: var(--blue); color: var(--blue); }
.action-button.report { color: #68788d; }
.info-card { padding: 22px; }
.info-card h2, .continue-card h2 { font-size: 20px; }
.info-card dl { margin: 0; }
.info-card dl div { padding: 13px 0; display: grid; grid-template-columns: 90px 1fr; gap: 12px; border-bottom: 1px solid var(--line); }
.info-card dl div:last-child { border: 0; }
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; color: var(--navy); font-weight: 600; text-align: right; }
.continue-card { padding: 22px; border: 1px solid #a9dbe0; border-radius: 13px; background: linear-gradient(145deg,#fbffff,#f0fbfb); }
.continue-card p { color: #4c6075; }
.continue-icon { width: 48px; height: 48px; margin-bottom: 12px; display: grid; place-items: center; color: var(--teal); background: #dff5f1; border-radius: 50%; font-size: 24px; }
.vocab-detail > div:first-child strong { display: block; color: var(--navy); font-size: 24px; }
.example-box { margin-top: 18px; padding: 18px; background: var(--surface-soft); border-radius: 9px; }
.example-box .target-script { margin: 0; font-size: 25px; }
.example-box .pronunciation { margin: 4px 0 0; font-style: normal; }
.lesson-summary { display: grid; gap: 18px; margin-top: 18px; }
.lesson-summary strong { color: var(--navy); font-size: 18px; }
.lesson-summary p { margin: 0; }
.mini-stats { display: flex; gap: 14px; }
.mini-stats span { padding: 12px 18px; background: var(--surface-soft); border-radius: 8px; }
.mini-stats strong { display: block; color: var(--blue); font-size: 24px; }
.privacy-note { margin-top: 18px; padding: 12px 16px; border-radius: 8px; color: #54657b; background: #f2f6fa; border: 1px solid #dde6ef; font-size: 13px; }
.privacy-note.centered { text-align: center; }

.report-dialog { width: min(560px, calc(100% - 28px)); padding: 28px; border: 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(5,24,57,.3); color: var(--ink); }
.report-dialog::backdrop { background: rgba(5,19,44,.55); backdrop-filter: blur(3px); }
.report-dialog h2 { margin-bottom: 5px; }
.report-dialog > form:not(.dialog-close-form) { display: grid; gap: 14px; }
.report-dialog label { display: grid; gap: 6px; color: var(--navy); font-weight: 650; }
.report-dialog input, .report-dialog select, .report-dialog textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; }
.dialog-close-form { position: absolute; right: 13px; top: 10px; }
.dialog-close-form button { border: 0; background: none; color: #718096; font-size: 27px; }

.page-hero { padding: 72px 0; background: linear-gradient(135deg,#f2f8ff,#f9fcff); border-bottom: 1px solid var(--line); }
.page-hero.compact { padding: 54px 0; }
.page-hero h1 { max-width: 820px; margin: 0 0 8px; font-size: clamp(35px, 5vw, 51px); }
.page-hero p { max-width: 720px; margin: 0; color: #4d5d73; font-size: 18px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.catalog-card { padding: 26px; display: grid; grid-template-columns: 125px 1fr; gap: 25px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-small); }
.catalog-card h2 { margin: 4px 0 7px; }
.catalog-card p { color: var(--muted); }
.catalog-card .button { margin-top: 18px; }
.course-heading { display: flex; align-items: center; gap: 42px; }
.course-heading h1 { margin-bottom: 10px; }
.module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.module-card { padding: 21px; display: flex; align-items: flex-start; gap: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow-small); }
.module-card > span { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-size: 23px; }
.module-card small { color: var(--teal); font-weight: 760; letter-spacing: .08em; }
.module-card h3 { margin: 2px 0 4px; font-size: 19px; }
.module-card p { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.module-card strong { color: var(--blue); font-size: 13px; }
.lesson-heading { margin-top: 42px; }
.lesson-list { display: grid; gap: 12px; }
.lesson-row { min-height: 115px; padding: 19px 22px; display: grid; grid-template-columns: 58px 1fr auto; gap: 22px; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.lesson-number { width: 52px; height: 52px; display: grid; place-items: center; color: var(--navy); background: #eef6ff; border-radius: 50%; font-weight: 760; }
.lesson-row h3 { margin: 0 0 2px; font-family: var(--font-cjk); font-size: 22px; }
.lesson-row p { margin: 3px 0 0; color: var(--muted); }
.lesson-counts { display: flex; gap: 8px; }
.lesson-counts span { padding: 5px 10px; border-radius: 6px; background: #eef8f8; color: var(--teal); font-size: 12px; font-weight: 650; }

.library-toolbar { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.segmented { padding: 4px; display: flex; background: #eef2f6; border-radius: 9px; }
.segmented button { padding: 7px 14px; border: 0; border-radius: 6px; background: transparent; color: #53647b; }
.segmented button.active { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(13,35,68,.1); }
.saved-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.saved-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-small); }
.saved-card h2 { margin: 13px 0 8px; font-size: 19px; }
.saved-card p { color: var(--muted); }
.saved-card > a { color: var(--blue); font-weight: 650; }
.saved-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.metric-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.metric-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.metric-grid small { display: block; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
.metric-grid strong { color: var(--navy); font-size: 35px; }
.success-text { color: var(--green) !important; }
.danger-text { color: var(--red) !important; }
.table-card { padding: 0; overflow: hidden; }
.table-card .card-title { padding: 20px 22px 0; }
.responsive-table { overflow-x: auto; }
.responsive-table table { width: 100%; border-collapse: collapse; }
.responsive-table th, .responsive-table td { padding: 13px 17px; border-top: 1px solid var(--line); text-align: left; }
.responsive-table th { color: var(--muted); background: #f8fafc; font-size: 12px; }
.responsive-table td small { display: block; color: var(--muted); }
.responsive-table td a { color: var(--blue); font-weight: 650; white-space: nowrap; }
.status { padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.status-correct, .status-mastered { color: var(--green); background: #e7f8f4; }
.status-incorrect { color: var(--red); background: #fff0f2; }
.empty-state { padding: 65px 25px; text-align: center; border: 1px dashed #b8c7d8; border-radius: 14px; background: #fafcfe; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 540px; margin: 0 auto 18px; color: var(--muted); }
.empty-icon { width: 65px; height: 65px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: #eaf5ff; color: var(--blue); font-size: 30px; }

.prose { padding: 38px 42px; }
.prose h2 { margin-top: 30px; font-size: 23px; }
.prose p, .prose li { color: #384861; }
.prose a { color: var(--blue); text-decoration: underline; }
.error-page { min-height: 62vh; padding: 80px 0; display: grid; place-items: center; background: linear-gradient(#f7fbff,#fff); }
.error-card { max-width: 680px; margin: auto; padding: 50px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.error-code { color: #b8c8d9; font-size: 64px; font-weight: 800; line-height: 1; }
.error-card h1 { margin: 14px 0 9px; }
.error-card p { color: var(--muted); }
.error-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

.flash-stack { position: fixed; z-index: 150; top: 91px; right: 20px; width: min(420px, calc(100% - 40px)); display: grid; gap: 9px; }
.flash { padding: 13px 42px 13px 16px; position: relative; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.flash-success { border-left: 4px solid var(--green); }
.flash-error { border-left: 4px solid var(--red); }
.flash button { position: absolute; right: 11px; top: 7px; border: 0; background: none; color: #748397; font-size: 22px; }
.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 24px; display: grid; gap: 9px; }
.toast { max-width: 380px; padding: 12px 16px; color: #fff; border-radius: 9px; background: var(--navy); box-shadow: var(--shadow); animation: toast-in .25s ease; }
.toast.error { background: #9e1c32; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.site-footer { padding: 45px 0 calc(35px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 48px; }
.footer-about img { width: 180px; }
.footer-about p { max-width: 310px; margin: 13px 0 16px; color: var(--muted); }
.footer-about small { color: #6d7d91; }
.footer-grid h2 { margin: 4px 0 13px; font-size: 15px; }
.footer-grid > div:not(.footer-about) { display: flex; flex-direction: column; gap: 7px; }
.footer-grid a { width: fit-content; color: #475872; font-size: 14px; }
.footer-grid a:hover { color: var(--blue); }
.external-mark { margin-left: 4px; color: #8a99aa; }

.brand { gap: 11px; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 11px; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { color: var(--navy); font-size: 15px; letter-spacing: -.01em; }
.brand small { margin-top: 4px; color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: var(--navy); }
.footer-brand img { width: 46px; height: 46px; border-radius: 11px; }
.footer-brand strong { font-size: 17px; }
.book-cover-image { width: 92px; height: 126px; object-fit: cover; border-radius: 4px 9px 9px 4px; border: 1px solid #d5dfeb; box-shadow: 5px 7px 18px rgba(7,37,69,.16); background: #eef3f8; }
.book-cover-image.large { width: 125px; height: 172px; }
.book-cover-image.xlarge { width: 160px; height: 220px; flex: 0 0 auto; }
.book-actions, .catalog-actions { display: flex; flex-direction: column; gap: 9px; align-items: stretch; }
.catalog-actions { margin-top: 18px; flex-direction: row; flex-wrap: wrap; }
.catalog-card .catalog-actions .button { margin-top: 0; }
.course-download { margin-top: 20px; }

.login-page { min-height: calc(100vh - 76px); padding: 70px 0; display: grid; align-items: center; background: radial-gradient(circle at 15% 20%, #e9f7ff 0, transparent 36%), linear-gradient(135deg,#f7faff,#eef5fb); }
.login-shell { display: grid; grid-template-columns: 1.08fr .92fr; gap: 78px; align-items: center; max-width: 1080px; }
.login-intro h1 { max-width: 630px; margin-bottom: 18px; font-size: clamp(39px,5vw,59px); letter-spacing: -.045em; }
.login-intro > p { max-width: 600px; color: #52617a; font-size: 18px; }
.login-benefits { margin-top: 34px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.login-benefits span { padding: 16px; display: grid; gap: 5px; color: #4d5f77; border: 1px solid #d6e2ee; border-radius: 12px; background: rgba(255,255,255,.7); font-size: 13px; }
.login-benefits strong { color: var(--teal); font-size: 12px; letter-spacing: .09em; }
.login-card { padding: 34px; border: 1px solid #d8e3ef; border-radius: 20px; background: #fff; box-shadow: 0 22px 65px rgba(8,41,82,.12); }
.login-card-heading { margin-bottom: 26px; display: flex; gap: 15px; align-items: center; }
.login-card-heading img { border-radius: 13px; }
.login-card-heading h2 { margin: 0 0 3px; font-size: 27px; }
.login-card-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.login-form { display: grid; gap: 17px; }
.login-form > label:not(.login-remember) { display: grid; gap: 7px; color: var(--navy); font-size: 14px; font-weight: 650; }
.login-form input[type="text"], .login-form input[type="password"] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,114,189,.09); }
.login-remember { display: flex; align-items: center; gap: 8px; color: #52617a; font-size: 14px; }
.login-remember input { width: 17px; height: 17px; accent-color: var(--blue); }
.login-links { margin-top: 18px; display: flex; justify-content: space-between; gap: 20px; color: var(--blue); font-size: 14px; }
.login-connect-warning { margin: 18px 0 0; padding: 14px 15px; border: 1px solid #f0cf9a; border-radius: 10px; background: #fff8e9; color: #7a5114; font-size: 13px; line-height: 1.55; }

.download-dialog { width: min(620px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 28px 90px rgba(5,24,57,.34); }
.download-dialog::backdrop { background: rgba(5,19,44,.58); backdrop-filter: blur(5px); }
.download-dialog > .dialog-close-form { z-index: 3; }
.download-dialog-heading { min-height: 142px; padding: 26px 58px 24px 28px; display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 20px; background: linear-gradient(135deg,#eef7ff,#f7fbff); border-bottom: 1px solid #dce7f2; }
.download-dialog-heading .eyebrow { margin-bottom: 3px; }
.download-dialog-heading h2 { margin: 0 0 5px; font-size: 25px; }
.download-dialog-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.download-dialog-cover { width: 76px; height: 102px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg,var(--navy),var(--teal)); border-radius: 5px 10px 10px 5px; box-shadow: 4px 7px 16px rgba(7,37,69,.18); font-weight: 800; }
.download-dialog-cover img { width: 76px; height: 102px; object-fit: cover; }
.download-dialog [data-download-form-state] { padding: 26px 28px 30px; }
.download-notice { margin-bottom: 20px; color: #475a73; line-height: 1.7; }
.download-dialog form[data-download-form] { display: grid; gap: 15px; }
.download-dialog form[data-download-form] > label:first-child { display: grid; gap: 7px; color: var(--navy); font-weight: 650; }
.download-dialog input[type="email"] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; }
.download-dialog input[type="email"]:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,114,189,.09); }
.consent-row { display: grid; grid-template-columns: 19px 1fr; align-items: start; gap: 10px; color: #56677d; font-size: 13px; line-height: 1.55; }
.consent-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); }
.consent-row a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.required-consent { padding: 12px; border: 1px solid #dce5ef; border-radius: 9px; background: #f8fafc; }
.download-success { padding: 42px 30px; text-align: center; }
.download-success .success-mark { width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 30px; }
.download-success h3 { margin-bottom: 8px; font-size: 25px; }
.download-success p { max-width: 420px; margin: 0 auto 22px; color: var(--muted); }

.assessment-overview p { margin: 10px 0 0; color: var(--muted); }
.assessment-answer-list { display: grid; gap: 14px; }
.assessment-question { padding: 0 !important; display: grid; grid-template-columns: 86px 1fr; overflow: hidden; }
.assessment-question-number { padding: 23px 15px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #f0f7ff; border-right: 1px solid #dbe6f1; }
.assessment-question-number span { color: #687991; font-size: 10px; font-weight: 760; letter-spacing: .12em; }
.assessment-question-number strong { color: var(--navy); font-size: 34px; line-height: 1.1; }
.assessment-question-number small { margin-top: 6px; color: var(--teal); font-size: 10px; text-align: center; }
.assessment-question-body { min-width: 0; padding: 23px 24px; }
.assessment-question-body > h2 { margin-bottom: 8px; font-size: 20px; }
.assessment-question-body > .target-script { margin: 4px 0; font-size: 25px; }
.assessment-options { margin: 15px 0; display: grid; gap: 7px; }
.assessment-option { min-height: 42px; padding: 8px 11px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; }
.assessment-option > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #eef3f8; color: var(--navy); font-weight: 700; }
.assessment-option p { margin: 0; }
.assessment-option > strong { color: var(--green); font-size: 11px; }
.assessment-option.is-correct { border-color: #87cabf; background: #f0fbf8; }
.assessment-solution { margin-top: 15px; padding: 16px 18px; border-radius: 9px; background: #f2faf9; border-left: 3px solid var(--teal); }
.assessment-solution small { display: block; color: var(--teal); font-size: 10px; font-weight: 760; letter-spacing: .09em; }
.assessment-solution > strong { display: block; margin-top: 4px; color: var(--navy); font-size: 17px; }
.assessment-solution p { margin: 10px 0 0; color: #44556d; }
.assessment-solution > span { margin-top: 10px; display: inline-block; color: var(--teal); font-size: 12px; font-weight: 650; }

.download-library-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 42px; }
.download-library-card { padding: 19px; display: grid; grid-template-columns: 105px 1fr; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-small); }
.download-library-card > img { width: 105px; height: 140px; object-fit: cover; border-radius: 4px 9px 9px 4px; box-shadow: 4px 6px 15px rgba(7,37,69,.14); }
.download-library-card .book-cover { width: 96px; height: 132px; }
.download-library-card h2 { margin: 4px 0 6px; font-size: 19px; }
.download-library-card p { margin-bottom: 13px; color: var(--muted); font-size: 13px; }
.download-library-card .button { min-height: 42px; }
.saved-heading { margin-top: 12px; }

@media (max-width: 1050px) {
    .header-inner { grid-template-columns: 205px 1fr auto; gap: 10px; }
    .main-nav { gap: 0; }
    .main-nav a { min-width: auto; padding: 0 13px; }
    .answer-layout { grid-template-columns: minmax(0,1fr) 285px; }
    .question-header-card { grid-template-columns: 190px 1fr; }
    .footer-grid { grid-template-columns: 1.3fr repeat(3,1fr); gap: 25px; }
}

@media (max-width: 850px) {
    .site-header { height: 68px; }
    .header-inner { grid-template-columns: 1fr auto auto; }
    .brand img { width: 42px; height: 42px; }
    .brand strong { font-size: 14px; }
    .mobile-menu-button { display: block; order: 2; }
    .main-nav { position: fixed; inset: 68px 0 auto; height: auto; padding: 10px 20px 18px; display: none; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { min-height: 46px; justify-content: start; }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--blue); background: #f0f7ff; border-radius: 8px; }
    .header-actions { order: 3; }
    .header-actions > .button { min-height: 38px; padding-inline: 14px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
    .answer-layout { grid-template-columns: 1fr; }
    .answer-sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .solution-grid { grid-template-columns: 1fr; }
    .correct-answer { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
    .explanation { padding: 18px 0 0; }
    .catalog-grid { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .platform-stats { grid-template-columns: 1fr 1fr; }
    .platform-stats span:nth-child(2) { border-right: 0; }
    .platform-stats span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .login-shell { grid-template-columns: 1fr; gap: 36px; }
    .login-intro { text-align: center; }
    .login-intro > p { margin-inline: auto; }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .hero { min-height: 455px; }
    .hero-inner { padding: 50px 0 42px; }
    .hero h1 { font-size: 39px; }
    .hero-inner > p { font-size: 17px; }
    .hero-art { display: none; }
    .lookup-form { padding: 8px; gap: 8px; flex-wrap: wrap; background: transparent; border: 0; box-shadow: none; }
    .lookup-form:focus-within { border: 0; box-shadow: none; }
    .lookup-form .search-icon { position: absolute; margin-left: 15px; }
    .lookup-form input { flex-basis: 100%; width: 100%; height: 59px; padding: 0 15px 0 54px; border: 1px solid #8eb4d8; border-radius: 11px; background: #fff; box-shadow: 0 8px 24px rgba(27,95,157,.1); font-size: 16px; }
    .lookup-form .button { width: 100%; }
    .section { padding: 36px 0; }
    .feature-card { padding: 22px; }
    .book-row { grid-template-columns: 82px 1fr; gap: 18px; padding: 18px; }
    .book-row .book-cover { width: 80px; height: 110px; }
    .book-row .book-cover-image { width: 80px; height: 110px; }
    .book-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .book-info h3 { font-size: 19px; }
    .book-stats { gap: 4px 13px; font-size: 12px; }
    .book-stats span + span::before { left: -8px; }
    .question-header-card { grid-template-columns: 1fr; gap: 17px; }
    .code-panel { padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); }
    .answer-main > .content-card:not(.question-header-card):not(.action-row), .question-header-card { padding: 18px; }
    .target-script { font-size: 28px; }
    .survey-card { grid-template-columns: 1fr; }
    .community-data { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .action-row { grid-template-columns: 1fr; }
    .answer-sidebar { grid-template-columns: 1fr; }
    .card-title { align-items: flex-start; flex-direction: column; }
    .catalog-card { grid-template-columns: 95px 1fr; padding: 20px; gap: 18px; }
    .catalog-card .book-cover.large { width: 95px; height: 132px; }
    .course-heading { align-items: flex-start; gap: 20px; }
    .course-heading .book-cover { width: 100px; height: 138px; flex: 0 0 auto; }
    .course-heading .book-cover-image { width: 100px; height: 138px; }
    .course-heading .book-cover strong { font-size: 22px; }
    .course-heading .book-cover > span { font-size: 34px; }
    .page-hero { padding: 45px 0; }
    .page-hero h1 { font-size: 36px; }
    .lesson-row { grid-template-columns: 48px 1fr; gap: 14px; }
    .lesson-number { width: 44px; height: 44px; }
    .lesson-counts { grid-column: 2; }
    .library-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
    .saved-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .metric-grid article { padding: 16px; }
    .metric-grid strong { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-about { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .prose { padding: 24px; }
    .error-card { padding: 35px 22px; }
    .error-actions { flex-direction: column; }
    .brand span { display: none; }
    .login-page { padding: 42px 0; }
    .login-intro h1 { font-size: 38px; }
    .login-benefits { grid-template-columns: 1fr; }
    .login-card { padding: 25px 20px; }
    .download-dialog-heading { padding: 22px 48px 20px 20px; grid-template-columns: 64px 1fr; gap: 14px; }
    .download-dialog-cover, .download-dialog-cover img { width: 62px; height: 84px; }
    .download-dialog [data-download-form-state] { padding: 22px 20px 25px; }
    .assessment-question { grid-template-columns: 62px 1fr; }
    .assessment-question-number { padding: 19px 8px; }
    .assessment-question-number strong { font-size: 28px; }
    .assessment-question-body { padding: 19px 16px; }
    .assessment-option { grid-template-columns: 27px 1fr; }
    .assessment-option > strong { grid-column: 2; }
    .download-library-grid { grid-template-columns: 1fr; }
    .download-library-card { grid-template-columns: 88px 1fr; gap: 15px; }
    .download-library-card > img { width: 88px; height: 118px; }
    .download-library-card .book-cover { width: 84px; height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Public catalog and learning experience */
:focus-visible { outline: 3px solid rgba(8,114,189,.34); outline-offset: 3px; }
.button:disabled { cursor: default; transform: none; box-shadow: none; opacity: .72; }
.button.is-delivered { color: #176b63; border-color: #9bd2ca; background: #eaf8f5; }
.home-hero { min-height: 486px; }
.home-stat-band { position: relative; z-index: 4; margin-top: -26px; }
.home-stat-band .platform-stats { margin-top: 0; box-shadow: 0 16px 44px rgba(9,40,82,.1); }
.lookup-help { width: fit-content; margin: 0 auto; color: #526d8b; font-weight: 620; text-decoration: underline; text-decoration-color: #b8cadc; text-underline-offset: 4px; }
.lookup-help:hover { color: var(--blue); }
.signin-banner, .member-panel { padding: 30px 34px; border: 1px solid #cadbeb; border-radius: 18px; background: radial-gradient(circle at 90% 10%,rgba(8,123,131,.1),transparent 34%),linear-gradient(135deg,#f8fbff,#eef7ff); box-shadow: var(--shadow-small); }
.signin-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.signin-banner h2, .member-panel h2 { margin: 0 0 7px; font-size: 28px; }
.signin-banner p, .member-panel p { margin: 0; color: var(--muted); }
.member-panel { display: grid; grid-template-columns: 1.25fr 1fr .9fr; align-items: center; gap: 34px; }
.member-metrics { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid #d5e2ef; border-radius: 12px; background: rgba(255,255,255,.8); }
.member-metrics a { padding: 15px 11px; text-align: center; border-right: 1px solid #dce6ef; }
.member-metrics a:last-child { border: 0; }
.member-metrics strong { display: block; color: var(--navy); font-size: 24px; }
.member-metrics span { display: block; color: var(--muted); font-size: 11px; }
.recent-lookup-list { display: grid; gap: 6px; }
.recent-lookup-list > small { color: var(--teal); font-weight: 740; text-transform: uppercase; letter-spacing: .08em; }
.recent-lookup-list a { padding: 4px 0; display: flex; justify-content: space-between; gap: 10px; color: var(--blue); border-bottom: 1px solid rgba(198,214,228,.8); }
.recent-lookup-list code { color: var(--navy); font-size: 12px; }
.resource-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.resource-card { min-width: 0; padding: 22px; display: grid; grid-template-columns: 108px 1fr; grid-template-rows: 1fr auto; gap: 18px 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-small); transition: transform .2s ease, box-shadow .2s ease; }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.resource-card .book-cover-image.large, .resource-card .book-cover.large { width: 108px; height: 148px; }
.resource-card .book-cover.large strong { font-size: 22px; }
.resource-card-body { min-width: 0; }
.resource-card-body h3 { margin: 5px 0 7px; font-size: 20px; }
.resource-card-body p { display: -webkit-box; overflow: hidden; margin-bottom: 10px; color: var(--muted); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.resource-card .book-stats { gap: 3px 14px; font-size: 11px; }
.resource-card .book-stats span + span::before { left: -9px; }
.resource-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.resource-actions > :only-child { grid-column: 1 / -1; }
.resource-actions .button { min-height: 43px; padding-inline: 13px; font-size: 13px; }
.centered-heading { justify-content: center; text-align: center; }
.clean-features .feature-card { position: relative; overflow: hidden; }
.feature-step { flex: 0 0 auto; color: #b8cbdc; font-size: 38px; font-weight: 820; line-height: 1; letter-spacing: -.06em; }
.ecosystem-section { border-top: 1px solid #e3eaf2; background: #071d49; }
.ecosystem-section .eyebrow { color: #6dd7d4; }
.ecosystem-section h2 { color: #fff; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ecosystem-grid > a { min-height: 142px; padding: 23px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; color: #fff; background: rgba(255,255,255,.055); transition: background .18s, transform .18s; }
.ecosystem-grid > a:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.ecosystem-grid > a > span { color: #6dd7d4; font-size: 12px; font-weight: 740; }
.ecosystem-grid h3 { margin: 0 0 6px; color: #fff; font-size: 18px; }
.ecosystem-grid p { margin: 0; color: #b9c8dd; font-size: 13px; }
.ecosystem-grid > a > strong { color: #6dd7d4; font-size: 18px; }
.catalog-hero { position: relative; overflow: hidden; padding: 82px 0; color: #fff; background: radial-gradient(circle at 86% 20%,rgba(24,150,188,.34),transparent 30%),linear-gradient(135deg,#06183d,#0b3d70); }
.catalog-hero-inner { display: grid; grid-template-columns: 1fr 190px; align-items: center; }
.catalog-hero .eyebrow { color: #76d8d6; }
.catalog-hero h1 { max-width: 790px; margin: 0 0 14px; color: #fff; font-size: clamp(40px,5vw,60px); }
.catalog-hero p { max-width: 710px; margin: 0; color: #c6d6e9; font-size: 18px; }
.catalog-hero-mark { color: rgba(255,255,255,.1); font-family: var(--font-cjk); font-size: 170px; line-height: 1; text-align: right; }
.catalog-toolbar { margin-bottom: 24px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfe; }
.catalog-toolbar > div { display: flex; align-items: baseline; gap: 9px; }
.catalog-toolbar strong { color: var(--navy); font-size: 28px; }
.catalog-toolbar span, .catalog-toolbar p { color: var(--muted); }
.catalog-toolbar p { margin: 0; font-size: 13px; }
.modern-catalog .catalog-card { align-items: start; }
.catalog-card-body { min-width: 0; }
.catalog-card-body > p { min-height: 48px; }
.course-showcase { overflow: hidden; padding: 28px 0 66px; color: #fff; background: radial-gradient(circle at 14% 80%,rgba(17,145,155,.25),transparent 26%),linear-gradient(130deg,#06183c,#0a3769 65%,#075f70); }
.light-breadcrumbs { margin-bottom: 34px; color: #afc4db; }
.light-breadcrumbs a { color: #d8e9f8; }
.course-showcase-grid { display: grid; grid-template-columns: 270px 1fr; align-items: center; gap: 58px; }
.course-cover-stage { display: grid; place-items: center; }
.book-cover-image.course-cover, .book-cover.course-cover { width: 220px; height: 294px; transform: perspective(900px) rotateY(6deg); box-shadow: -9px 18px 46px rgba(0,0,0,.34); }
.book-cover.course-cover strong { margin-top: 32px; font-size: 36px; }
.book-cover.course-cover > span { font-size: 58px; }
.course-showcase-copy .eyebrow { color: #74d8d4; }
.course-showcase h1 { max-width: 850px; margin: 0 0 12px; color: #fff; font-size: clamp(40px,5vw,60px); }
.course-subtitle { max-width: 790px; margin-bottom: 24px; color: #c7d7e8; font-size: 18px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.course-meta > span { min-width: 112px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.06); }
.course-meta small { display: block; color: #a9bed5; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.course-meta strong { display: block; color: #fff; font-size: 15px; }
.course-primary-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 11px; }
.course-primary-actions .button-primary { background: linear-gradient(135deg,#0b82c8,#0a9a91); }
.button-ghost-light { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.05); }
.course-overview { background: #f6f9fc; }
.refined-modules .module-card { padding: 26px; border-radius: 15px; }
.refined-modules .module-card > span { color: #7ba1bd; background: #edf4fa; font-size: 14px; font-weight: 760; }
.course-curriculum { background: #fff; }
.course-curriculum .section-heading p { margin: 5px 0 0; color: var(--muted); }
.modern-lessons .lesson-row { transition: border-color .18s, transform .18s, box-shadow .18s; }
.modern-lessons .lesson-row:hover { transform: translateX(3px); border-color: #9fc2df; box-shadow: var(--shadow-small); }
.lesson-counts b { margin-left: 5px; color: var(--blue); font-size: 18px; }
.lesson-detail-hero { padding: 28px 0 42px; border-bottom: 1px solid #dbe6f0; background: radial-gradient(circle at 90% 5%,rgba(8,123,131,.1),transparent 25%),linear-gradient(145deg,#f4f9ff,#fff); }
.lesson-detail-heading { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 30px; }
.lesson-index { width: 105px; height: 105px; display: grid; place-items: center; align-content: center; border: 1px solid #b8d1e5; border-radius: 24px; background: #fff; box-shadow: var(--shadow-small); }
.lesson-index small { color: var(--teal); font-size: 10px; font-weight: 760; letter-spacing: .15em; }
.lesson-index strong { color: var(--navy); font-size: 43px; line-height: 1; }
.lesson-detail-heading h1 { margin: 0 0 3px; font-family: var(--font-cjk); font-size: clamp(38px,5vw,58px); }
.lesson-detail-heading h2 { margin: 0 0 8px; color: var(--teal); font-size: 24px; font-weight: 620; }
.lesson-detail-heading p { margin: 0; color: var(--muted); }
.lesson-detail-metrics { margin-top: 27px; display: flex; gap: 10px; }
.lesson-detail-metrics span { padding: 8px 13px; border: 1px solid #d3e0ec; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.75); font-size: 12px; }
.lesson-detail-metrics strong { margin-right: 4px; color: var(--navy); }
.lesson-detail-body { background: #f7f9fc; }
.lesson-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 22px; }
.lesson-reading { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-small); }
.objective-panel { padding: 20px 22px; border: 1px solid #bfe0df; border-radius: 12px; background: #f0faf9; }
.objective-panel .eyebrow { margin-bottom: 4px; }
.objective-panel p { margin: 0; color: #365765; }
.lesson-vocabulary-heading { margin: 30px 0 15px; }
.vocabulary-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.vocabulary-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.vocabulary-table th { padding: 11px 14px; color: #586b82; background: #f4f7fa; font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.vocabulary-table td { padding: 14px; vertical-align: top; border-top: 1px solid var(--line); color: #34455c; }
.vocabulary-table td:first-child strong { display: block; color: var(--navy); font-family: var(--font-cjk); font-size: 21px; }
.vocabulary-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.vocabulary-table td span { display: block; color: var(--navy); font-family: var(--font-cjk); }
.pronunciation-cell { color: var(--teal) !important; }
.lesson-side-panel { position: sticky; top: 96px; padding: 26px; border: 1px solid #bfd8e5; border-radius: 16px; background: linear-gradient(145deg,#fff,#eef8fb); box-shadow: var(--shadow-small); }
.lesson-side-panel h2 { margin: 0 0 9px; font-size: 23px; }
.lesson-side-panel p { color: var(--muted); }
.lesson-side-panel .button + .button { margin-top: 9px; }
.compact-empty { padding: 38px 20px; }
.lesson-navigation { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lesson-navigation a { padding: 16px 18px; display: grid; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.lesson-navigation a.next { text-align: right; }
.lesson-navigation small { color: var(--muted); }
.lesson-navigation strong { color: var(--navy); }
.ad-unit { min-height: 180px; contain: layout paint; }

@media (max-width: 1120px) {
    .resource-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .member-panel { grid-template-columns: 1fr 1fr; }
    .recent-lookup-list { grid-column: 1 / -1; grid-template-columns: repeat(5,1fr); }
    .recent-lookup-list > small { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
    .home-stat-band { margin-top: 0; padding: 18px 0 0; }
    .signin-banner { align-items: flex-start; flex-direction: column; }
    .member-panel { grid-template-columns: 1fr; }
    .recent-lookup-list { grid-template-columns: 1fr 1fr; }
    .ecosystem-grid { grid-template-columns: 1fr; }
    .catalog-hero-inner { grid-template-columns: 1fr; }
    .catalog-hero-mark { display: none; }
    .course-showcase-grid { grid-template-columns: 180px 1fr; gap: 32px; }
    .book-cover-image.course-cover, .book-cover.course-cover { width: 170px; height: 228px; }
    .lesson-content-grid { grid-template-columns: 1fr; }
    .lesson-side-panel { position: static; }
}
@media (max-width: 620px) {
    .resource-card-grid { grid-template-columns: 1fr; }
    .resource-card { grid-template-columns: 90px 1fr; padding: 17px; gap: 14px; }
    .resource-card .book-cover-image.large, .resource-card .book-cover.large { width: 90px; height: 124px; }
    .resource-actions { grid-template-columns: 1fr; }
    .signin-banner, .member-panel { padding: 23px 20px; }
    .member-metrics { grid-template-columns: 1fr 1fr 1fr; }
    .recent-lookup-list { grid-template-columns: 1fr; }
    .catalog-hero { padding: 56px 0; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .modern-catalog .catalog-card { grid-template-columns: 92px 1fr; }
    .modern-catalog .book-cover-image.large, .modern-catalog .book-cover.large { width: 92px; height: 126px; }
    .modern-catalog .catalog-actions { grid-column: 1 / -1; }
    .course-showcase { padding-bottom: 46px; }
    .course-showcase-grid { grid-template-columns: 1fr; text-align: center; }
    .course-cover-stage { display: none; }
    .course-meta, .course-primary-actions { justify-content: center; }
    .course-primary-actions .button { width: 100%; }
    .modern-lessons .lesson-row { grid-template-columns: 48px 1fr; }
    .modern-lessons .lesson-counts { grid-column: 2; }
    .lesson-detail-heading { grid-template-columns: 72px 1fr; gap: 16px; }
    .lesson-index { width: 70px; height: 70px; border-radius: 16px; }
    .lesson-index strong { font-size: 30px; }
    .lesson-detail-heading h1 { font-size: 34px; }
    .lesson-detail-heading h2 { font-size: 19px; }
    .lesson-detail-metrics { flex-wrap: wrap; }
    .lesson-reading { padding: 18px; }
    .lesson-navigation { grid-template-columns: 1fr; }
}

/* VSH Study 1.3 — catalog search, related resources and corrected brand assets */
.brand img,
.footer-brand img { object-fit: contain; border-radius: 0; }

.catalog-hero-inner > div:first-child { max-width: 760px; }
.catalog-search { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: min(760px, 100%); margin-top: 25px; padding: 7px; border: 1px solid rgba(185,201,221,.9); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 16px 38px rgba(9,42,86,.1); }
.catalog-search .search-icon { position: absolute; left: 22px; width: 16px; height: 16px; border: 2px solid #6a7d98; border-radius: 50%; pointer-events: none; }
.catalog-search .search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -5px; bottom: -2px; border-radius: 2px; background: #6a7d98; transform: rotate(45deg); }
.catalog-search input { min-width: 0; width: 100%; height: 48px; padding: 0 16px 0 45px; border: 0; outline: 0; color: var(--navy); background: transparent; font: inherit; }
.catalog-search input::placeholder { color: #7d8da3; }
.catalog-search .button { min-height: 48px; white-space: nowrap; }
.catalog-search-clear { padding: 0 10px; color: var(--blue); font-size: 14px; font-weight: 700; white-space: nowrap; }

.related-resources { padding-top: 72px; padding-bottom: 84px; border-top: 1px solid #e3ebf4; background: linear-gradient(180deg,#f8fbff 0%,#fff 100%); }
.related-heading { align-items: end; }
.related-heading p { margin-top: 8px; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 750; white-space: nowrap; }
.related-resource-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.related-resource-card { min-width: 0; overflow: hidden; border: 1px solid #dfe8f2; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(17,51,91,.07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.related-resource-card:hover { transform: translateY(-4px); border-color: #b9cce2; box-shadow: 0 18px 44px rgba(17,51,91,.12); }
.related-resource-cover { display: grid; place-items: center; min-height: 230px; padding: 20px; background: linear-gradient(145deg,#eef5fd,#f9fbfe); }
.related-resource-cover img { display: block; width: auto; max-width: 150px; height: 204px; object-fit: cover; border-radius: 7px; box-shadow: 0 12px 25px rgba(10,32,68,.18); }
.related-cover-placeholder { width: 150px; height: 204px; }
.related-resource-copy { padding: 18px; }
.related-resource-copy > span { display: block; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.related-resource-copy h3 { margin: 8px 0 7px; font-size: 18px; line-height: 1.28; }
.related-resource-copy h3 a { color: var(--navy); }
.related-resource-copy p { min-height: 54px; margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.related-resource-copy div { display: flex; flex-wrap: wrap; gap: 8px 13px; padding-top: 12px; border-top: 1px solid #edf2f7; color: #65758c; }
.related-resource-copy small { font-weight: 650; }

@media (max-width: 1040px) {
    .related-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .catalog-search { grid-template-columns: 1fr auto; }
    .catalog-search-clear { grid-column: 1 / -1; padding: 2px 10px 7px; text-align: center; }
    .related-resources { padding-top: 52px; padding-bottom: 62px; }
    .related-heading { align-items: start; }
    .related-resource-grid { grid-template-columns: 1fr; }
    .related-resource-card { display: grid; grid-template-columns: 118px minmax(0,1fr); }
    .related-resource-cover { min-height: 190px; padding: 14px; }
    .related-resource-cover img { width: 90px; height: 132px; }
    .related-cover-placeholder { width: 90px; height: 132px; }
    .related-resource-copy p { min-height: 0; }
}
@media (max-width: 480px) {
    .catalog-search { grid-template-columns: 1fr; }
    .catalog-search .button { width: 100%; }
    .catalog-search-clear { grid-column: auto; }
}
.dynamic-modules{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.catalog-hero-mark{font-family:Georgia,serif}
