:root {
  --ink: #143455;
  --ink-soft: #315574;
  --cream: #f8f5ef;
  --paper: #fffdf9;
  --mist: #edf3fb;
  --line: #d8dfe4;
  --muted: #667588;
  --red: #cf4033;
  --red-pale: #f9e2de;
  --gold: #e3ac36;
  --gold-pale: #fff1d3;
  --blue: #3271bf;
  --blue-pale: #e5effd;
  --green: #30785e;
  --display: Georgia, "Noto Serif SC", "Songti SC", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 18px 45px rgba(20, 52, 85, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.topline { height: 6px; background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 40%, var(--blue) 40% 100%); }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(20,52,85,.1); background: rgba(248,245,239,.93); backdrop-filter: blur(13px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 14px; font-weight: 860; letter-spacing: -.035em; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand em { color: var(--red); font-style: normal; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: #536276; font-size: 12px; font-weight: 780; white-space: nowrap; }
.nav-links a { padding: 8px 0; border-bottom: 2px solid transparent; transition: color .18s ease, border-color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.nav-guestbook { padding: 7px 10px !important; border: 1px solid #cbd8e5 !important; border-radius: 5px; color: var(--ink) !important; }
.nav-guestbook:hover, .nav-guestbook[aria-current="page"] { border-color: var(--red) !important; background: var(--red); color: #fff !important; }
.language-switch { margin-left: 3px; padding: 7px 9px !important; border: 1px solid #cbd8e5 !important; border-radius: 5px; color: var(--blue) !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .04em; }
.language-switch:hover { border-color: var(--blue) !important; background: var(--blue-pale); color: var(--blue) !important; }

.page-hero { padding: 69px 0 48px; }
.page-hero.grid { display: grid; grid-template-columns: 1.13fr .87fr; align-items: stretch; gap: 30px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; color: var(--blue); font-size: 10px; font-weight: 860; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 22px; font-family: var(--display); font-size: clamp(49px, 6.9vw, 78px); line-height: .99; letter-spacing: -.07em; }
h1 em { color: var(--red); font-style: normal; }
.intro { max-width: 620px; margin-bottom: 25px; color: #516074; font-size: 16px; }
.intro strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border: 1px solid transparent; border-radius: 5px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; transition: transform .18s ease, background .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); background: var(--red); }
.button.secondary { border-color: #cbd7e3; background: rgba(255,255,255,.55); color: var(--ink); }
.button.secondary:hover { border-color: var(--red); background: var(--red-pale); color: var(--red); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border: 1px solid #cbd7e3; border-radius: 5px; background: rgba(255,255,255,.55); font-size: 12px; font-weight: 760; }
.pill::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-pale); }

.spotlight { position: relative; display: flex; flex-direction: column; min-height: 390px; padding: 31px; overflow: hidden; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.spotlight::after { content: "B1"; position: absolute; right: -12px; bottom: -52px; color: rgba(255,255,255,.055); font-family: var(--display); font-size: 205px; font-weight: 700; letter-spacing: -.13em; }
.spotlight .mini-label { position: relative; margin: 0; color: #b8d1f2; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.spotlight h2 { position: relative; margin: 18px 0 3px; font-family: var(--display); font-size: 53px; line-height: 1; letter-spacing: -.065em; }
.spotlight .topic { position: relative; margin: 0; font-size: 20px; font-weight: 780; }
.spotlight .topic span { display: block; margin-top: 4px; color: #d7e3f0; font-size: 14px; font-weight: 600; }
.spotlight-footer { position: relative; margin-top: auto; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.18); color: #d6e2ef; font-size: 13px; }
.spotlight-footer strong { display: block; margin-bottom: 3px; color: #fff; }
.mini-progress { position: relative; margin-top: 28px; }
.mini-progress .row { display: flex; justify-content: space-between; margin-bottom: 8px; color: #cddbed; font-size: 12px; }
.mini-progress .row b { color: #fff; }
.bar { height: 8px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.15); }
.bar > span { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #f6d676); }

section { padding: 73px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 27px; }
.section-heading h2 { max-width: 690px; margin: 0; font-family: var(--display); font-size: clamp(31px, 4.1vw, 50px); line-height: 1.07; letter-spacing: -.06em; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; }
.section-heading .eyebrow { margin-bottom: 11px; }

.overview { padding-top: 0; padding-bottom: 76px; }
.overview-grid { display: grid; grid-template-columns: 1.13fr .87fr; gap: 18px; }
.scoreboard, .side-note { border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 8px 28px rgba(20,52,85,.045); }
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.score { min-height: 132px; padding: 22px 19px; border-left: 1px solid var(--line); }
.score:first-child { border-left: 0; }.score:nth-child(2) { background: var(--gold-pale); }.score:nth-child(3) { background: var(--blue-pale); }.score:nth-child(4) { background: var(--red-pale); }
.score b { display: block; font-family: var(--display); font-size: 39px; line-height: 1; letter-spacing: -.065em; }.score b small { font-family: var(--sans); font-size: 14px; letter-spacing: 0; }.score span { display: block; margin-top: 9px; color: #607083; font-size: 11px; font-weight: 700; }
.side-note { display: flex; align-items: center; gap: 15px; padding: 19px 21px; background: #f1f6fc; border-color: #cfe0f3; }.side-note .round { display: grid; width: 41px; height: 41px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-size: 21px; }.side-note p { margin: 0; color: #58687b; font-size: 13px; }.side-note strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }

.category-section { background: var(--mist); border-top: 1px solid #d2ddec; border-bottom: 1px solid #d2ddec; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-card { position: relative; display: flex; min-height: 246px; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid #d5e0ec; border-radius: 9px; background: var(--paper); transition: transform .18s ease, box-shadow .18s ease; }.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }.category-card:nth-child(2) { background: #fffaf1; border-color: #ecdcb9; }.category-card:nth-child(3) { background: #fbf1ef; border-color: #ecd6d2; }.category-card:nth-child(4) { background: #eff6f3; border-color: #cfe4dc; }.category-card:nth-child(5) { background: #f4f2fb; border-color: #ddd8ed; }.category-card:nth-child(6) { background: var(--ink); border-color: var(--ink); color: #fff; }
.category-card .number { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .13em; }.category-card:nth-child(2) .number { color: #a16b15; }.category-card:nth-child(3) .number { color: var(--red); }.category-card:nth-child(4) .number { color: var(--green); }.category-card:nth-child(5) .number { color: #6e58a9; }.category-card:nth-child(6) .number { color: #f4ce75; }
.category-card h3 { margin: 14px 0 8px; font-family: var(--display); font-size: 28px; line-height: 1.05; letter-spacing: -.055em; }.category-card p { margin: 0; color: #637286; font-size: 13px; }.category-card:nth-child(6) p { color: #c8d8ea; }.category-card .go { margin-top: auto; padding-top: 17px; color: var(--ink); font-size: 12px; font-weight: 850; }.category-card:nth-child(6) .go { color: #fff; }

.split-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; }.panel { padding: 27px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }.panel h3 { margin: 0 0 17px; font-family: var(--display); font-size: 27px; letter-spacing: -.045em; }.panel p { color: var(--muted); font-size: 13px; }
.feed-item { display: grid; grid-template-columns: 76px 1fr; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); }.feed-item:first-of-type { padding-top: 0; border-top: 0; }.feed-date { color: var(--red); font-family: var(--display); font-size: 20px; letter-spacing: -.05em; }.feed-item h4 { margin: 0 0 2px; font-size: 14px; }.feed-item p { margin: 0; font-size: 12px; }
.focus-list { display: grid; gap: 10px; }.focus { display: grid; grid-template-columns: 31px 1fr; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }.focus:first-child { padding-top: 0; border-top: 0; }.focus-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 5px; background: var(--blue-pale); color: var(--blue); font-size: 13px; font-weight: 900; }.focus:nth-child(2) .focus-icon { background: var(--gold-pale); color: #9c6712; }.focus:nth-child(3) .focus-icon { background: var(--red-pale); color: var(--red); }.focus b { display: block; margin-bottom: 2px; font-size: 14px; }.focus p { margin: 0; color: var(--muted); font-size: 12px; }

.route-section { background: #fffaf1; border-top: 1px solid #ebddc7; border-bottom: 1px solid #ebddc7; }.route-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; }.timeline { overflow: hidden; border: 1px solid #e4d7c3; border-radius: 9px; background: var(--paper); }.phase { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; min-height: 73px; padding: 14px 18px; border-top: 1px solid #eee4d6; }.phase:first-child { border-top: 0; }.phase.current { background: var(--ink); color: #fff; }.phase-no { color: var(--blue); font-family: var(--display); font-size: 23px; font-weight: 700; }.phase.current .phase-no { color: var(--gold); }.phase h3 { margin: 0; font-size: 14px; }.phase p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }.phase.current p { color: #c7d8eb; }.phase time { color: #718094; font-size: 11px; font-weight: 800; white-space: nowrap; }.phase.current time { color: #e8ca81; }
.red-note { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border-radius: 9px; background: var(--red); color: #fff; }.red-note .eyebrow { color: #ffe5de; }.red-note .eyebrow::before { background: #f4cb75; }.red-note h3 { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1.1; letter-spacing: -.05em; }.red-note p { margin: 14px 0 0; color: #ffe8e2; font-size: 13px; }.red-note footer { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25); color: #fff5f2; font-size: 12px; }

.page-heading { padding: 62px 0 35px; }.page-heading .eyebrow { margin-bottom: 12px; }.page-heading h1 { margin-bottom: 15px; font-size: clamp(44px, 6.4vw, 70px); }.page-heading .intro { max-width: 680px; margin-bottom: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; color: #6f8092; font-size: 12px; font-weight: 720; }.breadcrumbs a:hover { color: var(--red); }.breadcrumbs span { color: #a6b2be; }
.content-section { padding-top: 35px; }.content-section + .content-section { padding-top: 0; }.content-section:last-of-type { padding-bottom: 78px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.content-card { display: flex; min-height: 220px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }.content-card .label { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }.content-card h3 { margin: 12px 0 8px; font-family: var(--display); font-size: 26px; line-height: 1.08; letter-spacing: -.05em; }.content-card p { margin: 0; color: var(--muted); font-size: 13px; }.content-card .go { margin-top: auto; padding-top: 17px; color: var(--ink); font-size: 12px; font-weight: 850; }.content-card:hover { border-color: #b8cfe8; box-shadow: 0 9px 24px rgba(20,52,85,.06); }.content-card.accent-red .label { color: var(--red); }.content-card.accent-gold .label { color: #a16b15; }.content-card.accent-green .label { color: var(--green); }
.guide-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }.guide-table table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }.guide-table th { padding: 12px 15px; background: #edf3fb; color: var(--ink); text-align: left; font-size: 11px; }.guide-table td { padding: 14px 15px; vertical-align: top; border-top: 1px solid var(--line); }.guide-table td p { margin: 0; color: var(--muted); font-size: 12px; }.ru { font-family: Georgia, "Times New Roman", serif; font-size: 1.07em; }.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 99px; background: var(--gold-pale); color: #926112; font-size: 10px; font-weight: 850; letter-spacing: .06em; }.tag.blue { background: var(--blue-pale); color: #245eaa; }.tag.red { background: var(--red-pale); color: #ad392e; }.tag.green { background: #e1f0e9; color: #247259; }
.quote-note { margin-top: 17px; padding: 17px 19px; border-left: 4px solid var(--gold); border-radius: 5px; background: #fff8e9; color: #5c6170; font-size: 13px; }.quote-note strong { color: var(--ink); }
.log-list { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }.log-row { display: grid; grid-template-columns: 106px 1fr auto; align-items: center; gap: 17px; min-height: 80px; padding: 15px 20px; border-top: 1px solid var(--line); }.log-row:first-child { border-top: 0; }.log-week { color: var(--red); font-family: var(--display); font-size: 24px; letter-spacing: -.05em; }.log-row h3 { margin: 0; font-size: 14px; }.log-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }.result { color: var(--ink); font-family: var(--display); font-size: 25px; letter-spacing: -.05em; white-space: nowrap; }
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.library-item { display: flex; min-height: 218px; flex-direction: column; padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.055); color: #fff; transition: transform .18s ease, background .18s ease; }.library-item:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); }.library-item .label { color: #f6ce76; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.library-item h3 { margin: 13px 0 8px; font-family: var(--display); font-size: 25px; line-height: 1.08; letter-spacing: -.045em; }.library-item p { margin: 0; color: #c7d5e5; font-size: 12px; }.library-item .go { margin-top: auto; padding-top: 14px; color: #fff; font-size: 12px; font-weight: 850; }.library-shell { background: var(--ink); color: #fff; }.library-shell .section-heading > p { color: #c7d5e5; }.library-shell .eyebrow { color: #aecbed; }
.library-groups { display:grid; gap:34px; }.library-group-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:13px; }.library-group-head h3 { margin:0; color:#fff; font-family:var(--display); font-size:29px; letter-spacing:-.05em; }.library-group-head p { max-width:420px; margin:0; color:#c7d5e5; font-size:12px; }.library-feature-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }.library-feature-grid .library-item { min-height:252px; background:rgba(255,255,255,.10); }.library-feature-grid .library-item:first-child { background:linear-gradient(135deg,rgba(50,113,191,.40),rgba(255,255,255,.06)); }.library-compact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(206px,1fr)); gap:14px; }.library-compact-grid .library-item { min-height:188px; padding:19px; }.library-compact-grid .library-item h3 { font-size:22px; }

.guestbook-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 20px; padding-bottom: 80px; }.guest-intro { padding: 28px; border-radius: 9px; background: var(--ink); color: #fff; }.guest-intro .eyebrow { color: #b8d1f2; }.guest-intro h2 { margin: 0 0 13px; font-family: var(--display); font-size: 37px; line-height: 1.08; letter-spacing: -.06em; }.guest-intro p { margin: 0; color: #d5e2f0; font-size: 13px; }.guest-intro ul { margin: 22px 0 0; padding: 0; list-style: none; }.guest-intro li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); color: #d5e2f0; font-size: 12px; }.guest-intro li::before { content: "•"; margin-right: 8px; color: #f6ce76; }.guest-form, .guest-comments { padding: 28px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }.guest-form h2, .guest-comments h2 { margin: 0 0 6px; font-family: var(--display); font-size: 31px; letter-spacing: -.05em; }.guest-form > p, .guest-comments > p { margin: 0 0 21px; color: var(--muted); font-size: 13px; }.form-row { display: grid; gap: 7px; margin-bottom: 16px; }.form-row label { color: #425970; font-size: 12px; font-weight: 800; }.form-row input, .form-row textarea { width: 100%; border: 1px solid #cbd7e3; border-radius: 5px; background: #fff; color: var(--ink); outline: none; }.form-row input { height: 43px; padding: 10px 12px; }.form-row textarea { min-height: 136px; padding: 11px 12px; resize: vertical; }.form-row input:focus, .form-row textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,113,191,.12); }.form-extra { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }.form-status { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }.form-status.error { color: var(--red); }.form-status.success { color: var(--green); }.guest-comments { margin-top: 20px; }.comment-list { display: grid; gap: 11px; }.comment { padding: 15px 0; border-top: 1px solid var(--line); }.comment:first-child { padding-top: 0; border-top: 0; }.comment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }.comment-head strong { font-size: 13px; }.comment-head time { color: #8492a0; font-size: 11px; white-space: nowrap; }.comment p { margin: 0; color: #59697d; font-size: 13px; white-space: pre-wrap; word-break: break-word; }.empty-comments { padding: 18px 0; color: var(--muted); font-size: 13px; }.load-comments { color: var(--muted); font-size: 13px; }

.moderation-layout { display: grid; grid-template-columns: .74fr 1.26fr; gap: 20px; padding-bottom: 80px; }.moderation-note { padding: 28px; border-radius: 9px; background: var(--ink); color: #fff; }.moderation-note .eyebrow { color: #b8d1f2; }.moderation-note h2 { margin: 0 0 18px; font-family: var(--display); font-size: 36px; line-height: 1.08; letter-spacing: -.055em; }.moderation-note ol { margin: 0; padding: 0; list-style: none; counter-reset: moderation; }.moderation-note li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.16); color: #d5e2f0; font-size: 13px; counter-increment: moderation; }.moderation-note li::before { content: "0" counter(moderation); display: inline-block; width: 31px; color: #f6ce76; font-family: var(--display); font-size: 16px; }.moderation-note > p:last-child { margin: 21px 0 0; color: #d5e2f0; font-size: 12px; }.moderation-access, .moderation-queue { padding: 28px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }.moderation-access h2, .moderation-queue h2 { margin: 0 0 6px; font-family: var(--display); font-size: 31px; letter-spacing: -.05em; }.moderation-access > p, .moderation-queue p { margin: 0 0 21px; color: var(--muted); font-size: 13px; }.moderation-queue { margin-top: 20px; }.moderation-queue-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }.moderation-queue-head .button { flex: 0 0 auto; }.pending-comments { display: grid; gap: 12px; }.pending-comment { padding: 17px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf9; }.pending-comment .comment-head { margin-bottom: 9px; }.pending-comment > p { margin: 0; color: #4f6074; font-size: 13px; white-space: pre-wrap; word-break: break-word; }.moderation-actions { display: flex; gap: 9px; margin-top: 15px; }.moderation-actions .button { min-height: 36px; padding: 7px 11px; font-size: 12px; }.moderation-actions button:disabled { cursor: wait; opacity: .6; }

.site-footer { padding: 31px 0; background: #0d2842; color: #b9c9dc; font-size: 12px; }.footer-row { display: flex; justify-content: space-between; gap: 20px; }.footer-row strong { color: #fff; }.footer-row a:hover { color: #fff; }

/* Study hub: expandable roadmap, vocabulary bank and error notebook */
.study-hub { margin-top: 30px; }
.hub-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; padding: 28px; border: 1px solid #d0dce9; border-radius: 10px; background: linear-gradient(135deg, #edf4fc, #fffdf9 63%); }.hub-intro.compact { align-items: center; }.hub-intro h2 { max-width: 650px; margin: 0 0 7px; font-family: var(--display); font-size: clamp(31px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -.055em; }.hub-intro p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; }.text-link { flex: 0 0 auto; color: var(--blue); font-size: 12px; font-weight: 850; }.text-link:hover { color: var(--red); }
.hub-metrics { display: grid; min-width: 310px; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #cfdae6; border-radius: 7px; background: #fff; }.hub-metrics div { padding: 13px 11px; border-left: 1px solid #dce5ed; text-align: center; }.hub-metrics div:first-child { border-left: 0; }.hub-metrics strong { display: block; color: var(--ink); font-family: var(--display); font-size: 29px; line-height: 1; letter-spacing: -.06em; }.hub-metrics span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }.filter-chip { min-height: 33px; padding: 6px 11px; border: 1px solid #c9d7e4; border-radius: 99px; background: var(--paper); color: #4a6379; cursor: pointer; font-size: 11px; font-weight: 800; transition: border-color .18s ease, background .18s ease, color .18s ease; }.filter-chip:hover { border-color: var(--blue); color: var(--blue); }.filter-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.phase-stack { display: grid; gap: 10px; margin-top: 14px; }.route-phase-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }.route-phase-card[open] { border-color: #b7cce1; box-shadow: 0 10px 27px rgba(20,52,85,.06); }.route-phase-card summary { display: grid; grid-template-columns: 46px 1fr 24px; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; cursor: pointer; list-style: none; }.route-phase-card summary::-webkit-details-marker { display: none; }.phase-index { color: var(--red); font-family: var(--display); font-size: 25px; font-weight: 700; }.route-phase-card summary b { display: block; font-size: 15px; }.route-phase-card summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }.summary-mark { color: var(--blue); font-size: 22px; text-align: center; transition: transform .18s ease; }.route-phase-card[open] .summary-mark { transform: rotate(45deg); }.phase-body { padding: 2px 18px 18px; border-top: 1px solid var(--line); }.phase-brief { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin: 17px 0; }.phase-brief p { margin: 0; padding: 12px 14px; border-radius: 6px; background: #f4f7fa; color: #5c6b7d; font-size: 12px; }.phase-brief p:last-child { background: #fff7e9; }.week-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 0; padding: 0; list-style: none; }.week-card { display: flex; min-height: 103px; flex-direction: column; padding: 12px; border: 1px solid #dce4eb; border-radius: 6px; background: #fff; }.week-card span { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .06em; }.week-card b { margin: 7px 0 10px; font-size: 12px; line-height: 1.35; }.week-card em { margin-top: auto; color: #76879a; font-size: 10px; font-style: normal; font-weight: 800; }.week-card.done { border-color: #c6e1d5; background: #f1f8f4; }.week-card.done span, .week-card.done em { color: var(--green); }.week-card.next { border-color: #edc8c1; background: #fff3f0; }.week-card.next span, .week-card.next em { color: var(--red); }.study-note { margin-top: 17px; padding: 17px 19px; border-left: 4px solid var(--gold); border-radius: 5px; background: #fff8e9; color: #5c6170; font-size: 13px; }.study-note strong { color: var(--ink); }
.vocab-controls { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfd; }.search-field { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; color: #52697f; font-size: 11px; font-weight: 850; }.search-field input { width: 100%; min-height: 39px; padding: 8px 11px; border: 1px solid #cbd7e3; border-radius: 5px; background: #fff; color: var(--ink); outline: none; }.search-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,113,191,.12); }.result-count { margin: 14px 0 11px; color: var(--muted); font-size: 11px; font-weight: 750; }.vocab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.vocab-card { display: flex; min-height: 245px; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }.vocab-card:hover { border-color: #b7cce1; box-shadow: 0 8px 22px rgba(20,52,85,.055); }.vocab-card-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #8090a0; font-size: 9px; font-weight: 800; }.case-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 99px; background: var(--blue-pale); color: #245eaa; font-size: 9px; letter-spacing: .05em; }.case-badge.gen { background: var(--red-pale); color: #a9362e; }.case-badge.ins { background: var(--gold-pale); color: #936214; }.case-badge.acc { background: #e1f0e9; color: #247259; }.case-badge.prep { background: #ece8f7; color: #635290; }.case-badge.form, .case-badge.fixed { background: #eef1f4; color: #536170; }.vocab-card h3 { margin: 17px 0 4px; font-size: 23px; line-height: 1.08; letter-spacing: -.025em; }.vocab-card .meaning { min-height: 40px; margin: 0; color: #536577; font-size: 13px; }.vocab-card .pattern { margin: 10px 0 14px; color: var(--blue); font-size: 12px; font-weight: 700; }.micro-action { align-self: flex-start; margin-top: auto; padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 850; }.micro-action:hover { color: var(--red); }.answer-panel { margin-top: 12px; padding: 12px; border-radius: 5px; background: #edf3fb; color: #526579; font-size: 12px; }.answer-panel p { margin: 0 0 7px; }.answer-panel p:first-child { color: var(--ink); }.answer-panel small { color: #6d7d8f; font-size: 10px; }.empty-state { grid-column: 1 / -1; margin: 0; padding: 25px 0; color: var(--muted); font-size: 13px; }
.review-archive { display: grid; gap: 12px; margin: 18px 0; }.archive-summary { display: grid; grid-template-columns: auto auto minmax(180px, 1fr); align-items: center; gap: 20px; padding: 18px 20px; border: 1px solid #d9c7a9; border-radius: 8px; background: #fffaf2; }.archive-summary div { display: grid; gap: 1px; }.archive-summary strong { color: var(--blue); font-family: var(--display); font-size: 30px; line-height: 1; }.archive-summary span { color: #6d7883; font-size: 11px; font-weight: 750; }.archive-summary p { margin: 0; color: #53677d; font-size: 13px; line-height: 1.55; }.manual-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.manual-link-card { display: grid; gap: 7px; min-height: 150px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: inherit; text-decoration: none; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }.manual-link-card:hover { border-color: var(--blue); box-shadow: 0 7px 18px rgba(30, 64, 103, .08); transform: translateY(-2px); }.manual-link-card span { color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.manual-link-card b { color: var(--ink); font-family: var(--display); font-size: 19px; line-height: 1.15; letter-spacing: -.03em; }.manual-link-card small { color: #62758a; font-size: 12px; line-height: 1.5; }.manual-link-card em { margin-top: auto; color: var(--blue); font-size: 12px; font-style: normal; font-weight: 800; }.review-filters { display: grid; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfd; }.filter-caption { display: block; margin-bottom: 7px; color: #63778a; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.review-stack { display: grid; gap: 12px; }.error-card { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }.error-card:hover { border-color: #b7cce1; }.error-card-meta { display: flex; gap: 7px; }.error-card-meta span { padding: 3px 7px; border-radius: 99px; background: var(--blue-pale); color: var(--blue); font-size: 9px; font-weight: 850; }.error-card-meta span:nth-child(2) { background: #f4f2fb; color: #6b5998; }.error-card h3 { margin: 10px 0 13px; font-family: var(--display); font-size: 24px; letter-spacing: -.045em; }.error-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.error-pair > div { padding: 11px 12px; border-radius: 5px; background: #fff3f0; }.error-pair > div + div { background: #eff8f3; }.error-pair small { display: block; color: #788899; font-size: 9px; font-weight: 850; letter-spacing: .06em; }.error-pair p { margin: 5px 0 0; font-size: 14px; line-height: 1.45; }.is-wrong { color: #aa3830; text-decoration: line-through; text-decoration-thickness: 1px; }.is-right { color: #247259; font-weight: 700; }.review-answer { background: #f5f8fc; }.review-answer p:last-child { margin-bottom: 0; }

/* Interactive stage explorers and grammar diagnosis */
.interactive-panel { width: 100%; }.stage-explorer { overflow: hidden; border: 1px solid #e4d7c3; border-radius: 9px; background: var(--paper); }.stage-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid #e4d7c3; }.stage-tab { display: grid; min-height: 91px; grid-template-columns: 27px 1fr; align-items: center; gap: 9px; padding: 14px 12px; border: 0; border-left: 1px solid #e9decd; background: #fffdf9; color: var(--ink); cursor: pointer; text-align: left; transition: background .18s ease, color .18s ease; }.stage-tab:first-child { border-left: 0; }.stage-tab:hover { background: #f2f7fc; }.stage-tab.is-active { background: var(--ink); color: #fff; }.stage-tab-number { color: var(--blue); font-family: var(--display); font-size: 20px; font-weight: 700; }.stage-tab.is-active .stage-tab-number { color: var(--gold); }.stage-tab b { display: block; font-size: 12px; line-height: 1.25; }.stage-tab small { display: block; margin-top: 5px; color: #718094; font-size: 10px; font-weight: 800; }.stage-tab.is-active small { color: #e8ca81; }.stage-detail { padding: 22px; background: #fffaf1; }.stage-detail-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }.stage-detail-head .eyebrow { margin-bottom: 6px; }.stage-detail h3 { margin: 0; font-family: var(--display); font-size: 31px; letter-spacing: -.045em; }.stage-range { color: var(--blue); font-size: 12px; font-weight: 850; white-space: nowrap; }.stage-detail-copy { max-width: 760px; margin: 14px 0 12px; color: #526579; font-size: 13px; }.stage-focus-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 17px; padding: 0; list-style: none; }.stage-focus-list li { padding: 6px 9px; border-radius: 99px; background: #eaf2fb; color: #285d9f; font-size: 11px; font-weight: 800; }.small-button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.grammar-lab { overflow: hidden; border: 1px solid #d4e0eb; border-radius: 10px; background: #fff; }.lab-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px 25px 20px; background: linear-gradient(135deg, #edf4fc, #fffdf9); }.lab-header .eyebrow { margin-bottom: 7px; }.lab-header h3 { margin: 0; font-family: var(--display); font-size: 29px; letter-spacing: -.045em; }.lab-header > span { color: #6d7d8e; font-size: 11px; font-weight: 850; white-space: nowrap; }.lab-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dbe5ef; border-bottom: 1px solid #dbe5ef; }.lab-step { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 9px 11px; border: 0; border-left: 1px solid #dbe5ef; background: #fff; color: #577087; cursor: pointer; font-size: 11px; font-weight: 850; }.lab-step:first-child { border-left: 0; }.lab-step:hover { background: #f3f7fb; }.lab-step.is-active { background: var(--ink); color: #fff; }.lab-step span { color: var(--gold); font-family: var(--display); font-size: 17px; }.lab-question { padding: 24px 25px 26px; }.lab-step-title { margin: 0 0 6px; color: var(--ink); font-family: var(--display); font-size: 27px; letter-spacing: -.045em; }.lab-rule { margin: 0; color: #526579; font-size: 13px; }.lab-prompt { margin: 20px 0 10px; font-weight: 800; font-size: 13px; }.lab-choices { display: grid; gap: 8px; }.lab-choice { width: 100%; padding: 11px 13px; border: 1px solid #cdd9e5; border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; font-family: var(--body); font-size: 13px; text-align: left; transition: border-color .18s ease, background .18s ease; }.lab-choice:hover { border-color: var(--blue); background: #f2f7fc; }.lab-choice.is-correct { border-color: #85bda5; background: #eaf7ef; color: #1d6a4f; }.lab-choice.is-wrong { border-color: #e7aaa2; background: #fff1ef; color: #a43a32; text-decoration: none; }.lab-hint { margin: 12px 0 16px; color: #748596; font-size: 11px; }.lab-feedback { display: grid; gap: 3px; margin: 13px 0 16px; padding: 11px 13px; border-radius: 6px; font-size: 12px; }.lab-feedback.is-correct { background: #eaf7ef; color: #1d6a4f; }.lab-feedback.is-wrong { background: #fff1ef; color: #983b33; text-decoration: none; }

@media (max-width: 1000px) { .nav { align-items: flex-start; flex-direction: column; padding: 12px 0; gap: 8px; }.nav-links { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }.page-hero.grid, .overview-grid, .split-layout, .route-layout, .guestbook-layout, .moderation-layout { grid-template-columns: 1fr; }.card-grid, .category-grid, .library-grid { grid-template-columns: repeat(2, 1fr); }.library-feature-grid { grid-template-columns:repeat(2,1fr); }.library-compact-grid { grid-template-columns:repeat(3,1fr); }.manual-link-grid { grid-template-columns: 1fr; }.archive-summary { grid-template-columns: auto auto 1fr; }.page-hero.grid { gap: 18px; }.spotlight { min-height: 305px; }.guest-intro { min-height: 280px; }.stage-tabs { grid-template-columns: repeat(3, 1fr); }.stage-tab:nth-child(4) { border-left: 0; }.stage-tab:nth-child(n + 4) { border-top: 1px solid #e9decd; } }
@media (max-width: 620px) { .shell { width: min(100% - 28px, 1160px); }.nav-links { gap: 17px; font-size: 11px; }.page-hero { padding: 46px 0 31px; }.page-heading { padding: 45px 0 24px; }h1 { font-size: clamp(45px, 14vw, 64px); }.overview { padding-bottom: 53px; }.scoreboard { grid-template-columns: repeat(2, 1fr); }.score { min-height: 110px; padding: 17px 15px; border-top: 1px solid var(--line); }.score:nth-child(1), .score:nth-child(2) { border-top: 0; }.score:nth-child(3) { border-left: 0; }.score b { font-size: 34px; } section { padding: 53px 0; }.section-heading { align-items: start; flex-direction: column; gap: 10px; }.category-grid, .card-grid, .library-grid, .library-feature-grid, .library-compact-grid, .vocab-grid { grid-template-columns: 1fr; }.library-group-head { align-items:flex-start; flex-direction:column; gap:5px; }.category-card { min-height: 198px; }.log-row { grid-template-columns: 72px 1fr; gap: 10px; padding: 14px; }.result { grid-column: 2; }.phase { grid-template-columns: 37px 1fr; gap: 9px; padding: 14px; }.phase time { grid-column: 2; }.guest-form, .guest-comments, .guest-intro, .panel { padding: 22px 19px; }.footer-row { flex-direction: column; }.hub-intro { align-items: start; flex-direction: column; padding: 20px; gap: 18px; }.hub-metrics { width: 100%; min-width: 0; }.phase-brief, .error-pair, .archive-summary { grid-template-columns: 1fr; }.week-grid { grid-template-columns: repeat(2, 1fr); }.route-phase-card summary { grid-template-columns: 37px 1fr 20px; padding: 14px; gap: 10px; }.phase-body { padding: 2px 14px 14px; }.search-field { grid-template-columns: 1fr; gap: 5px; }.vocab-card { min-height: 215px; }.stage-tabs, .lab-steps { grid-template-columns: 1fr; }.stage-tab, .stage-tab:nth-child(4), .stage-tab:first-child { min-height: 64px; border-top: 1px solid #e9decd; border-left: 0; }.stage-tab:first-child { border-top: 0; }.stage-detail, .lab-header, .lab-question { padding: 19px; }.stage-detail-head, .lab-header { align-items: start; flex-direction: column; gap: 9px; }.stage-range { white-space: normal; }.lab-step { justify-content: flex-start; border-top: 1px solid #dbe5ef; border-left: 0; }.lab-step:first-child { border-top: 0; } }

/* 2026 curriculum re-layout: one calmer system across every main route */
.shell { width: min(1240px, calc(100% - 56px)); }
.site-header { background: rgba(248,245,239,.97); box-shadow: 0 6px 24px rgba(20,52,85,.035); }
.nav { min-height: 78px; }
.nav-links { gap: 20px; font-size: 13px; }
.nav-links a { padding: 10px 0; }
.brand { font-size: 15px; letter-spacing: .015em; }
.brand-logo { width: 40px; height: 40px; }
.nav-toggle { display: none; align-items: center; gap: 4px; padding: 8px 10px; border: 1px solid #c8d4df; border-radius: 7px; background: var(--paper); color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.nav-toggle b { margin-left: 5px; font-size: 12px; }
.page-heading { padding: 54px 0 38px; border-bottom: 1px solid rgba(20,52,85,.1); background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0)); }
.page-heading h1 { max-width: 820px; margin-bottom: 18px; font-size: clamp(43px, 5.6vw, 68px); line-height: 1.02; }
.page-heading .intro, .intro { font-size: 16px; line-height: 1.75; }
.section-heading > p, .panel p, .content-card p, .category-card p, .log-row p, .library-item p, .library-group-head p, .guest-intro p, .guest-intro li, .guest-form > p, .guest-comments > p { font-size: 14px; line-height: 1.65; }
.content-card .label, .library-item .label, .category-card .number { font-size: 11px; }
.content-card .go, .library-item .go, .category-card .go { font-size: 13px; }
.content-card { min-height: 245px; padding: 26px; border-radius: 12px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(20,52,85,.09); }
.content-card h3 { font-size: 29px; }
.category-card { min-height: 260px; padding: 27px; border-radius: 12px; }
.panel, .scoreboard, .side-note, .log-list, .guide-table, .guest-intro, .guest-form, .guest-comments { border-radius: 12px; }
.guide-table table { font-size: 14px; }
.guide-table th { font-size: 12px; }
.guide-table td p { font-size: 14px; }
.log-row { min-height: 98px; padding: 19px 23px; }
.log-row h3 { font-size: 16px; }
.library-shell { position: relative; background: #112f4c; }
.library-shell::before { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(49,113,191,.13), transparent 42%); content: ""; }
.library-shell > .shell { position: relative; }
.library-item { min-height: 224px; padding: 23px; border-radius: 11px; }
.library-compact-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.library-compact-grid .library-item { min-height: 220px; padding: 22px; }
.library-compact-grid .library-item h3 { font-size: 23px; }
.library-item-new { border-color: rgba(244,206,118,.48); background: linear-gradient(145deg, rgba(227,172,54,.17), rgba(255,255,255,.07)); }
.library-group-head { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.13); }
.library-group-head h3 { font-size: 32px; }

/* Home: the new foundations sit near the current learning state */
.foundation-strip { padding: 0 0 76px; }
.foundation-strip-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.foundation-strip-head h2 { margin: 0; font-family: var(--display); font-size: clamp(29px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.05em; }
.foundation-strip-head > a { flex: 0 0 auto; color: var(--blue); font-size: 13px; font-weight: 850; }
.foundation-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 34px rgba(20,52,85,.05); }
.foundation-strip-grid a { min-height: 160px; padding: 23px; border-left: 1px solid var(--line); transition: background .18s ease; }
.foundation-strip-grid a:first-child { border-left: 0; }
.foundation-strip-grid a:hover { background: var(--blue-pale); }
.foundation-strip-grid span { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.foundation-strip-grid strong { display: block; margin: 12px 0 7px; font-family: var(--display); font-size: 24px; line-height: 1.12; }
.foundation-strip-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* Grammar/library catalog */
.catalog-heading-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 60px; align-items: end; }
.catalog-heading h1 { margin-bottom: 0; }
.catalog-summary { padding: 24px 0 4px; border-top: 2px solid var(--ink); }
.catalog-summary > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.catalog-jumps { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-jumps a { padding: 8px 11px; border: 1px solid #cbd8e4; border-radius: 999px; background: rgba(255,255,255,.52); color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.catalog-jumps a:hover { border-color: var(--blue); color: var(--blue); }
.catalog-section { padding: 64px 0 72px; scroll-margin-top: 90px; }
.catalog-section-tint { border-top: 1px solid #d5e1ec; border-bottom: 1px solid #d5e1ec; background: #edf3f9; }
.catalog-group-head { display: grid; grid-template-columns:minmax(0,1fr) minmax(280px,420px); align-items: end; gap: 34px; margin-bottom: 25px; }
.catalog-group-head > div { display: flex; align-items: center; gap: 18px; }
.catalog-group-head > div > span { color: var(--red); font: 700 52px/1 var(--display); letter-spacing: -.07em; }
.catalog-group-head .eyebrow { margin-bottom: 5px; }
.catalog-group-head h2 { margin: 0; font-family: var(--display); font-size: clamp(31px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.055em; }
.catalog-group-head > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.catalog-grid .content-card { min-height: 300px; }
.catalog-grid-featured .content-card.is-new { border-top: 5px solid var(--red); }
.catalog-grid-featured .content-card.is-new:nth-child(2) { border-top-color: var(--blue); }
.catalog-grid-featured .content-card.is-new:nth-child(3) { border-top-color: var(--gold); }

@media (max-width: 1050px) {
  .shell { width: min(100% - 40px, 1240px); }
  .nav { min-height: 70px; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links { display: none; width: 100%; flex-wrap: wrap; gap: 4px 18px; padding: 12px 0 16px; border-top: 1px solid var(--line); overflow: visible; }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 7px 0; }
  .catalog-heading-grid { grid-template-columns: 1fr; gap: 28px; }
  .catalog-grid, .library-compact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-group-head { grid-template-columns: 1fr; gap: 12px; }
  .foundation-strip-grid { grid-template-columns: 1fr; }
  .foundation-strip-grid a { min-height: auto; border-top: 1px solid var(--line); border-left: 0; }
  .foundation-strip-grid a:first-child { border-top: 0; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 28px, 1240px); }
  .brand { font-size: 13px; }
  .brand-logo { width: 36px; height: 36px; }
  .page-heading { padding: 38px 0 28px; }
  .page-heading h1 { font-size: clamp(40px, 12.5vw, 56px); }
  .catalog-grid, .library-compact-grid { grid-template-columns: 1fr; }
  .catalog-grid .content-card, .content-card, .library-compact-grid .library-item { min-height: 220px; }
  .catalog-group-head > div > span { font-size: 42px; }
  .foundation-strip { padding-bottom: 55px; }
  .foundation-strip-head { align-items: start; flex-direction: column; gap: 12px; }
  .nav-links { font-size: 13px; }
}
