@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
  --blue: #194bdf;
  --blue-dark: #1238a3;
  --blue-soft: #e8efff;
  --ink: #142654;
  --muted: #4d5f7d;
  --paper: #f5f8ff;
  --white: #fff;
  --yellow-soft: #fff2b3;
  --yellow: #ffd449;
  --line: #d5def2;
  --success-color: #176e49;
  --success-bg: #e5f5e9;
  --error-color: #ad3045;
  --error-bg: #fff0ef;
  --bg-color: var(--paper);
  --bg-main: var(--paper);
  --card-bg: var(--white);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --heading-color: var(--ink);
  --primary-color: var(--blue);
  --primary-hover: var(--blue-dark);
  --border-color: var(--line);
  --font-heading: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font-body); overflow-x: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.03; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.main-header :focus-visible, .intro-box :focus-visible, .article-header :focus-visible, .cta-banner :focus-visible, .main-footer :focus-visible { outline-color: var(--yellow); }
.container { width: min(100% - 56px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 20px; padding: 12px 20px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.hidden { display: none !important; }

/* Shared navigation */
.main-header { position: relative; z-index: 100; background: var(--blue); color: var(--white); }
.header-container { min-height: 86px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--white); text-decoration: none; font: 900 26px/.76 var(--font-heading); letter-spacing: -.015em; }
.brand-mark { display: block; flex: 0 0 auto; width: 36px; height: 48px; object-fit: contain; }
.brand-sub { display: block; margin-top: 7px; font: 700 9px/1 var(--font-body); letter-spacing: .16em; }
.main-nav { display: flex; align-items: center; gap: 4px; padding: 5px; margin-left: auto; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); border-radius: 100px; }
.nav-link { padding: 9px 13px; border-radius: 99px; text-decoration: none; white-space: nowrap; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.86); transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--white); }
.header-cta { flex: 0 0 auto; background: var(--white); color: var(--ink); border-radius: 100px; text-decoration: none; padding: 12px 17px; font-size: 12px; font-weight: 700; }
.header-cta span { margin-left: 12px; font-size: 18px; line-height: 0; }
.header-cta:hover { background: var(--yellow); }
.nav-toggle, .nav-cta { display: none; }
.header-social { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; margin-left: -18px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.13); color: var(--white); transition: background-color .2s ease, color .2s ease, transform .16s cubic-bezier(.23, 1, .32, 1); }
.header-social:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .header-social:hover { background: var(--white); color: var(--blue); } }

/* Heroes and common sections */
.view-section { display: none; }
.view-section.active { display: block; }
.intro-box { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 355px; padding: 70px max(28px, calc((100vw - 1280px)/2)); margin-inline: calc(50% - 50vw); margin-bottom: 74px; background: var(--blue); color: var(--white); background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px), radial-gradient(circle at 80% 0%, #2860e6, transparent 50%); background-size: 80px 80px, 80px 80px, auto; }
.intro-box::after { content: '✳'; position: absolute; right: max(50px, calc((100vw - 1280px)/2)); bottom: -85px; color: rgba(255,255,255,.13); font: 900 340px/1 var(--font-heading); transform: rotate(-13deg); z-index: -1; }
.hero-badge, .eyebrow { display: inline-block; font: 700 11px/1.4 var(--font-body); letter-spacing: .15em; text-transform: uppercase; }
.hero-badge { padding: 10px 16px; margin-bottom: 19px; border: 1px solid rgba(255,255,255,.52); border-radius: 100px; color: var(--white); }
.intro-box h1.hero-badge, .hero-title .hero-badge { color: var(--yellow); }
.intro-box h1:not(.hero-badge), .intro-box .hero-display { display: block; max-width: 1100px; margin: 0 0 12px; color: var(--white); font: 900 clamp(64px, 9vw, 132px)/.82 var(--font-heading); letter-spacing: -.02em; text-transform: uppercase; }
.intro-box > p { max-width: 690px; margin: 12px 0 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; color: rgba(255,255,255,.86); }
.home-hero { min-height: 645px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 25px; padding-top: 46px; padding-bottom: 65px; margin-bottom: 0; }
.home-hero::after { display: none; }
.intro-box h1.hero-title { display: flex; flex-direction: column; align-items: flex-start; margin: 0; font: inherit; }
.hero-copy { position: relative; z-index: 2; align-self: center; }
.home-hero .hero-display { font-size: clamp(76px, 9.6vw, 145px); line-height: .78; margin-bottom: 30px; }
.home-hero .hero-display > span { position: relative; color: var(--yellow); }
.home-hero .hero-display > span::after { content: ''; position: absolute; height: 7px; bottom: -7px; left: 0; right: 0; background: var(--yellow); border-radius: 50%; transform: rotate(-1deg); }
.hero-copy > p { max-width: 520px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 30px; }
.hero-text-link { color: var(--white); font-size: 13px; font-weight: 700; text-underline-offset: 5px; }
.hero-text-link span { margin-left: 8px; }
.hero-note { position: absolute; right: 36px; bottom: 0; color: var(--yellow); font: 700 23px/1 var(--font-body); transform: rotate(-8deg); font-family: 'Caveat', cursive; }
.scribble-arrow { display: inline-block; font-size: 45px; transform: rotate(140deg); margin-right: 7px; }
.hero-art { position: relative; min-height: 540px; display: grid; place-items: center; }
.orbit { position: absolute; width: 510px; height: 510px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.orbit-two { width: 380px; height: 380px; }
.study-sheet { position: relative; width: min(90%, 395px); padding: 27px 30px 20px; background: #fffdf7; color: var(--ink); border-radius: 7px; box-shadow: 15px 20px 0 var(--blue-dark), 0 35px 80px rgba(0,0,0,.16); transform: rotate(7deg); }
.study-sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: 60px; border-left: 1px solid #d5def2; }
.sheet-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.sheet-title { position: relative; padding: 33px 0 25px 45px; font: 800 42px/.95 var(--font-heading); text-transform: uppercase; }
.sheet-line { height: 1px; background: var(--line); }
.sheet-row { display: flex; gap: 15px; align-items: center; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.check { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border: 2px solid var(--blue); color: var(--blue); font-size: 17px; line-height: 1; }
.check.empty { border-color: #9aabce; }
.sheet-footer { display: flex; justify-content: space-between; padding: 27px 0 0 45px; font: 800 23px/1 var(--font-heading); color: var(--blue); letter-spacing: .03em; }
.sheet-footer span { font-size: 28px; }
.art-star { position: absolute; top: 16px; right: 45px; width: 80px; height: 80px; color: var(--yellow); transform: rotate(-12deg); }
.art-sticker { position: absolute; left: -5%; bottom: 4px; display: grid; place-items: center; width: 125px; height: 125px; border-radius: 50%; background: var(--yellow); color: var(--blue); font: 900 31px/.8 var(--font-heading); text-align: center; transform: rotate(-17deg); box-shadow: 4px 8px 0 rgba(0,0,0,.13); }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-top: 93px; margin-bottom: 28px; }
.section-heading h2, .dashboard-section-title { margin: 10px 0 0; font: 900 clamp(48px, 6.7vw, 84px)/.87 var(--font-heading); letter-spacing: -.01em; text-transform: uppercase; }
.section-heading h2 span { color: var(--blue); }
.section-heading > p { max-width: 260px; color: var(--muted); margin: 0 0 4px; font-size: 14px; }
.eyebrow { color: var(--blue); }
.dashboard-section-title { margin: 76px 0 28px; font-size: clamp(42px, 5vw, 64px); }

/* Cards */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-wrapper { display: contents; }
.category-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 284px; padding: 25px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); text-align: left; text-decoration: none !important; box-shadow: 6px 6px 0 rgba(20,38,84,.06); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.category-card:hover, .setup-card:hover { transform: translateY(-5px); box-shadow: 9px 11px 0 rgba(25,75,223,.18); border-color: var(--blue); }
.category-card .card-image-box { display: flex; align-items: start; justify-content: space-between; height: 102px; background: transparent; }
.card-icon { display: grid; place-items: center; min-width: 84px; height: 84px; padding-inline: 8px; background: var(--blue); border-radius: 50%; color: var(--white); font: 900 clamp(26px, 3vw, 41px)/1 var(--font-heading); letter-spacing: -.03em; transform: rotate(-8deg); }
.category-card:nth-child(3n + 2) .card-icon { background: var(--yellow-soft); color: var(--ink); }
.category-card:nth-child(3n) .card-icon { background: var(--yellow); color: var(--ink); }
.card-content { margin-top: auto; }
.category-card h3 { margin: 0 0 9px; font: 800 clamp(26px, 2.7vw, 34px)/1 var(--font-heading); text-transform: uppercase; }
.category-card p { margin: 0; max-width: 320px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.subject-grid { counter-reset: subject; }
.subject-grid .category-card { min-height: 312px; }
.subject-grid .category-card::after { counter-increment: subject; content: '0' counter(subject) '  ↗'; position: absolute; top: 29px; right: 25px; font: 700 12px/1 var(--font-body); letter-spacing: .1em; color: var(--blue); }
.subject-grid .category-card:nth-child(4), .subject-grid .category-card:nth-child(5) { grid-column: span 1; }
.exam-grid .category-card { min-height: 245px; }
.exam-card::after { content: 'EXPLORE  ↗'; position: absolute; right: 25px; bottom: 25px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.exam-card .card-content { padding-right: 75px; }
.reviewer-card { cursor: default; min-height: 250px; }
.reviewer-card:hover { transform: none; }
.coming-soon { display: inline-block; margin-top: 17px; padding: 6px 10px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.setup-card { width: 100%; cursor: pointer; }
.setup-card.selected { border-color: var(--blue); }
.setup-card .card-image-box { height: 140px; }
.setup-card p span { display: inline-block; margin-top: 4px; }
.seo-content { margin: 75px 0 0; padding: 36px 42px; background: var(--blue-soft); border-left: 7px solid var(--blue); }
.seo-content h2 { margin-bottom: 12px; font: 800 36px/1 var(--font-heading); text-transform: uppercase; }
.seo-content p { max-width: 900px; color: var(--muted); font-size: 14px; }
.seo-content p:last-child { margin-bottom: 0; }
.home-note { display: grid; grid-template-columns: 220px 1fr; column-gap: 35px; background: var(--yellow-soft); border-left: 0; }
.home-note h2 { grid-row: span 2; color: var(--ink); }
.home-note p { color: var(--ink); }
.reviewer-links { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.reviewer-links a { color: var(--blue); text-underline-offset: 3px; }

/* Buttons and quiz */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 14px 22px; border: 1px solid transparent; border-radius: 100px; text-decoration: none; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.primary-btn { background: var(--blue); color: var(--white); }
.primary-btn:hover { background: var(--blue-dark); }
.secondary-btn { background: transparent; color: var(--blue); border-color: var(--blue); }
.secondary-btn:hover { background: var(--blue-soft); }
.light-btn { background: var(--white); color: var(--blue); }
.light-btn:hover { background: var(--yellow); }
.light-btn span { font-size: 20px; }
.quiz-header, .results-card { max-width: 850px; margin-inline: auto; }
.quiz-header { padding-top: 32px; margin-bottom: 20px; }
.quiz-header .quiz-title { font: 900 clamp(36px, 5vw, 62px)/.9 var(--font-heading); text-transform: uppercase; }
.quiz-header-top { gap: 15px; }
.timer-display { padding: 8px 12px; border: 1px solid var(--blue); border-radius: 100px; background: var(--white); font-variant-numeric: tabular-nums; }
.progress-container { margin: 20px auto 0; }
.progress-text { margin-bottom: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.progress-bar-bg { height: 8px; background: var(--line); overflow: hidden; }
.progress-bar-fill { width: 0; height: 100%; background: var(--blue); transition: width .2s; }
.question-card { display: flex; flex-direction: column; max-width: 850px; margin: 0 auto 24px; padding: clamp(24px, 5vw, 54px); background: var(--white); border: 1px solid var(--line); box-shadow: 8px 8px 0 rgba(25,75,223,.1); }
.question-text { margin-bottom: 30px; font: 700 clamp(22px, 2.8vw, 32px)/1.23 var(--font-body); }
.options-container { order: 2; display: grid; gap: 10px; }
.option-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; font-size: 15px; line-height: 1.4; border-radius: 2px; }
.option-btn:not(:disabled):hover { border-color: var(--blue); background: var(--blue-soft); }
.option-btn.correct { border-color: var(--success-color); background: var(--success-bg); color: var(--success-color); font-weight: 700; }
.option-btn.incorrect { border-color: var(--error-color); background: var(--error-bg); color: var(--error-color); font-weight: 700; }
.option-btn.correct::after { content: '✓'; flex: 0 0 auto; font-size: 22px; line-height: 1; }
.option-btn.incorrect::after { content: '✕'; flex: 0 0 auto; font-size: 20px; line-height: 1; }
.feedback-container { order: 1; margin: 0 0 22px; padding: 16px 20px; border-left: 4px solid; }
.feedback-container.correct { background: var(--success-bg); border-color: var(--success-color); }
.feedback-container.incorrect { background: var(--error-bg); border-color: var(--error-color); }
.feedback-text { margin-bottom: 6px; font-weight: 800; }
.correct-answer { margin: 0 0 8px; color: var(--success-color); font-weight: 800; }
.explanation-text { margin-bottom: 0; }
.quiz-footer { display: none; position: fixed; z-index: 110; bottom: 0; left: 0; right: 0; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; margin: 0; padding: 12px max(20px, calc((100vw - 850px)/2)) max(12px, env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -12px 35px rgba(20,38,84,.12); }
#quiz-view.active { min-height: 100vh; min-height: 100dvh; }
#quiz-view.answered { padding-bottom: 100px; }
#quiz-view.answered .quiz-footer { display: flex; }
.footer-result { color: var(--error-color); font-size: 14px; font-weight: 800; }
#quiz-view.answer-correct .footer-result { color: var(--success-color); }
.quiz-footer .btn { min-width: 180px; }
.results-card { margin-top: 50px; padding: 45px; background: var(--white); text-align: center; border: 1px solid var(--line); box-shadow: 8px 8px 0 rgba(25,75,223,.1); }
.results-card .results-title { font: 900 clamp(42px, 6vw, 72px)/.88 var(--font-heading); text-transform: uppercase; }
.score-display { margin: 25px 0; }
.score-number { color: var(--blue); font: 900 110px/.9 var(--font-heading); }
.score-total { font: 700 38px/1 var(--font-heading); }
.results-message { font-size: 17px; }
#mistakes-list > div { background: var(--paper) !important; }

/* Articles, guides, and information pages */
.resources-section { padding-bottom: 100px; }
.related-articles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.related-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); }
.related-content { padding: 19px; }
.related-content h3 { margin: 0 0 9px; font: 800 24px/1.08 var(--font-heading); text-transform: uppercase; }
.related-content h3 a { text-decoration: none; }
.related-content h3 a:hover { color: var(--blue); }
.related-content p { font-size: 13px !important; color: var(--muted) !important; }
.article-container { max-width: 930px; margin: 0 auto 95px; }
.article-header { position: relative; margin: 0 -10vw 50px; padding: 70px 10vw 75px; background: var(--blue); color: var(--white); background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 80px 80px; }
.article-header::before { content: 'THE READING ROOM / STUDY GUIDES'; display: block; margin-bottom: 16px; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.article-header a { color: inherit; }
.guide-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .9em; }
.guide-table th, .guide-table td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.guide-table th { background: var(--blue-soft); }
@media (max-width: 600px) { .guide-table { display: block; overflow-x: auto; } }
.setup-card .card-content h2 { font: 800 24px/1.05 var(--font-heading); text-transform: uppercase; }
.article-header h1 { max-width: 1000px; color: var(--white); font: 900 clamp(60px, 8vw, 106px)/.86 var(--font-heading); text-transform: uppercase; }
.article-meta { color: rgba(255,255,255,.78); font-size: 13px; }
.article-meta a { color: var(--yellow); }
.article-content { max-width: 780px; margin: 0 auto; font-size: 17px; line-height: 1.78; }
.article-content p, .article-content ul, .article-content ol { margin-bottom: 22px; }
.article-content h2 { margin: 52px 0 16px; padding-top: 16px; border-top: 2px solid var(--ink); font: 800 44px/1 var(--font-heading); text-transform: uppercase; }
.article-content h3 { margin: 34px 0 13px; font: 800 30px/1.1 var(--font-heading); text-transform: uppercase; }
.article-content a { color: var(--blue); text-underline-offset: 3px; }
.article-content li { margin-bottom: 9px; }
.toc-box { margin: 30px 0; padding: 24px; background: var(--blue-soft); border-left: 5px solid var(--blue); }
.toc-box .toc-title { margin: 0 0 13px; font: 800 30px/1.1 var(--font-heading); text-transform: uppercase; }
.toc-box ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.toc-box a { text-decoration: none; }
.cta-banner { margin: 48px 0; padding: 34px; background: var(--blue); color: var(--white); }
.cta-banner .cta-title { margin: 0 0 13px; color: var(--white); font: 800 30px/1.1 var(--font-heading); text-transform: uppercase; }
.cta-banner p { color: rgba(255,255,255,.85); }
.cta-banner .btn { background: var(--white); color: var(--blue); }
.blog-index .related-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-content { max-width: 800px; margin: 60px auto 100px; padding: 45px 0; border-top: 5px solid var(--blue); }
.page-content h1 { font: 900 clamp(52px, 8vw, 96px)/.88 var(--font-heading); text-transform: uppercase; }
.page-content h2 { font: 800 48px/1 var(--font-heading); text-transform: uppercase; }
.page-content h3, .page-content h2.minor { margin-top: 36px; font: 800 31px/1 var(--font-heading); text-transform: uppercase; }
.page-content p, .page-content li { line-height: 1.75; }

/* Shared footer */
.main-footer { margin-top: 90px; padding: 75px 0 24px; background: var(--ink); color: var(--white); }
.footer-invitation { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-bottom: 65px; border-bottom: 1px solid rgba(255,255,255,.24); }
.footer-invitation .eyebrow { color: var(--yellow); }
.footer-invitation .footer-title { margin: 17px 0 0; font: 900 clamp(57px, 8vw, 110px)/.82 var(--font-heading); text-transform: uppercase; }
.outlined-word { color: var(--yellow); }
.footer-details { display: flex; justify-content: space-between; gap: 30px; align-items: start; padding: 40px 0; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 28px 64px; }
.footer-nav h2 { margin: 0 0 14px; font: 700 11px/1.4 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--yellow); }
.footer-nav ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--white); text-decoration: none; font-size: 13px; font-weight: 700; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.24); }
.footer-disclaimer { max-width: 700px; color: rgba(255,255,255,.54); font-size: 11px; }
.footer-copyright { color: rgba(255,255,255,.65); font-size: 11px; white-space: nowrap; }

@media (max-width: 1100px) {
  .header-container { gap: 16px; }
  .nav-link { padding: 8px 10px; font-size: 11px; }
  .header-social { margin-left: -8px; }
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
  .hero-note { display: none; }
  .related-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1280px); }
  .main-header { position: sticky; top: 0; }
  .header-container { min-height: 64px; gap: 8px; }
  .header-cta { display: none; }
  .header-social { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; }
  .brand { font-size: 23px; }
  .brand-mark { width: 30px; height: 40px; }
  .nav-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 15px; background: var(--white); border: 0; border-radius: 100px; color: var(--blue); font-size: 13px; font-weight: 800; transition: transform .16s cubic-bezier(.23, 1, .32, 1); }
  .nav-toggle:active { transform: scale(.97); }
  .menu-symbol { font-size: 20px; line-height: .7; transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
  .nav-toggle[aria-expanded='true'] .menu-symbol { transform: rotate(45deg); }
  .main-nav { display: grid; gap: 4px; position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 12px 16px 16px; border-radius: 0; background: var(--blue-dark); border: 0; box-shadow: 0 20px 30px rgba(0,0,0,.2); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s linear .15s; }
  .main-nav.menu-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s cubic-bezier(.23, 1, .32, 1), transform .2s cubic-bezier(.23, 1, .32, 1); }
  .nav-link { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-size: 16px; }
  .nav-cta { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-top: 8px; padding: 0 18px; border-radius: 100px; background: var(--yellow); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
  .intro-box { min-height: 330px; padding: 58px 22px; margin-bottom: 50px; }
  .intro-box h1:not(.hero-badge), .intro-box .hero-display { font-size: clamp(60px, 12vw, 95px); }
  .intro-box > p { font-size: 15px; }
  .home-hero { display: block; min-height: 0; padding-bottom: 0; margin-bottom: 0; }
  .home-hero .hero-display { font-size: clamp(70px, 13vw, 110px); }
  .hero-copy > p { font-size: 16px; }
  .hero-art { min-height: 410px; margin-top: 25px; }
  .orbit { width: 370px; height: 370px; }
  .orbit-two { width: 280px; height: 280px; }
  .study-sheet { width: min(75%, 330px); padding: 22px; }
  .sheet-title { font-size: 35px; }
  .art-sticker { width: 90px; height: 90px; font-size: 23px; left: 5%; bottom: 30px; }
  .art-star { right: 4%; width: 55px; height: 55px; }
  .section-heading { display: block; padding-top: 67px; }
  .section-heading > p { margin-top: 18px; }
  .category-grid, .blog-index .related-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-note { display: block; padding: 28px; }
  .home-note h2 { margin-bottom: 18px; }
  .article-header { margin-inline: -16px; padding: 52px 20px; }
  .footer-invitation, .footer-details, .footer-bottom { display: block; }
  .footer-invitation .btn { margin-top: 30px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin-top: 30px; }
  .footer-nav ul { gap: 0; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-copyright { margin-top: 23px; }
}

@media (max-width: 520px) {
  .home-hero .hero-display { font-size: clamp(59px, 17vw, 83px); }
  .hero-badge { font-size: 9px; }
  .hero-actions { gap: 18px; }
  .hero-art { min-height: 350px; }
  .study-sheet { width: 74%; }
  .sheet-title { padding-left: 35px; font-size: 29px; }
  .sheet-row { padding-left: 35px; font-size: 10px; }
  .sheet-footer { padding-left: 35px; }
  .category-grid, .related-articles, .blog-index .related-articles { grid-template-columns: 1fr; }
  .category-card, .subject-grid .category-card { min-height: 245px; }
  .section-heading h2 { font-size: 55px; }
  .quiz-header-top { flex-wrap: wrap; }
  .quiz-header .quiz-title { order: -1; flex: 1 0 100%; text-align: left; }
  .quiz-header { padding-top: 20px; margin-bottom: 15px; }
  .question-card { padding: 20px; }
  .question-text { margin-bottom: 20px; font-size: 21px; }
  .option-btn { min-height: 48px; padding: 12px 14px; font-size: 14px; }
  .feedback-container { padding: 13px 15px; }
  .quiz-footer { gap: 8px; padding: 10px 14px max(10px, env(safe-area-inset-bottom)); }
  .quiz-footer .btn { min-width: 0; padding: 12px 16px; white-space: nowrap; }
  .footer-result { font-size: 12px; }
  .results-card { padding: 30px 18px; }
  .article-header h1 { font-size: 58px; }
  .article-content { font-size: 15px; }
  .footer-invitation .footer-title { font-size: 59px; }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-box > * { animation: intro-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .intro-box > :nth-child(2) { animation-delay: .1s; }
  .intro-box > :nth-child(3) { animation-delay: .18s; }
  .will-reveal { opacity: 0; translate: 0 16px; transition: opacity .45s ease, translate .45s cubic-bezier(.2,.7,.2,1); }
  .will-reveal.is-visible { opacity: 1; translate: 0 0; }
  @keyframes intro-rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
}

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

::selection { background: var(--yellow); color: var(--ink); }

/* Home page rhythm: one gap between sections, one from a heading to its content */
.home-page { --section-gap: 128px; --heading-gap: 40px; --block-gap: 40px; }
.home-page .section-heading { padding-top: var(--section-gap); margin-bottom: var(--heading-gap); }
.home-page .home-note { margin-top: var(--block-gap); }
.home-page .related-articles { margin-top: 0; }
.home-page .resources-section { padding-bottom: var(--section-gap); }
.home-blog-link { margin-top: var(--block-gap); text-align: center; }
.home-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--block-gap) 56px; align-items: start; }
.home-split > div > p, .home-faq p { max-width: 68ch; margin: 0 0 16px; font-size: 16px; }
.home-split > div > p:last-child, .home-faq p:last-child { margin-bottom: 0; }
.home-split a, .home-faq a { color: var(--blue); text-underline-offset: 3px; }
.home-split h3, .home-faq h3 { margin: 0 0 10px; font: 800 28px/1.08 var(--font-heading); text-transform: uppercase; }
.home-split .guide-table { margin: 0 0 16px; background: var(--white); }
.home-split .guide-table th:first-child { width: 22%; }
.home-split .guide-table + h3 { margin-top: var(--block-gap); margin-bottom: 14px; }
.home-steps { margin: 0; padding-left: 22px; font-size: 16px; }
.home-steps li { padding: 0 0 16px 4px; }
.home-steps li:last-child { padding-bottom: 0; }
.home-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
@media (max-width: 760px) {
  .home-page { --section-gap: 80px; --heading-gap: 28px; --block-gap: 32px; }
  .home-split, .home-faq { grid-template-columns: minmax(0, 1fr); }
  .home-faq { gap: 32px; }
  .art-sticker { left: 0; bottom: 0; }
}

/* End-of-exam ad: nothing shows unless an ad actually fills */
.results-ad { max-width: 850px; margin: 40px auto 0; }
.results-ad-label { display: none; margin: 0 0 8px; color: var(--muted); font-size: 13px; text-align: center; }
.results-ad:has(ins[data-ad-status="filled"]) .results-ad-label { display: block; }
.results-ad ins[data-ad-status="unfilled"] { display: none !important; }

/* 404: the way out is an exam question, and choosing an answer shades its bubble */
.intro-box.notfound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: 48px 64px; min-height: calc(100svh - 86px); padding-block: 64px; margin-bottom: 0; background-image: none; }
.intro-box.notfound::after { display: none; }
body:has(.notfound) .main-footer { margin-top: 0; }
.intro-box.notfound > * { animation: none; }
.intro-box.notfound h1:not(.hero-badge) { margin: 0 0 18px; font: inherit; text-transform: none; letter-spacing: 0; }
.notfound-code { display: block; color: var(--yellow); font: 900 clamp(150px, 25vw, 360px)/.78 var(--font-heading); letter-spacing: -.02em; }
.notfound-title { display: block; margin-top: 22px; color: var(--white); font: 900 clamp(44px, 5.6vw, 84px)/.9 var(--font-heading); letter-spacing: -.01em; text-transform: uppercase; }
.notfound-copy > p { max-width: 460px; margin: 0; color: var(--white); font-size: 18px; line-height: 1.5; }
.notfound-sheet { position: relative; padding: 32px; background: #fffdf7; color: var(--ink); border-radius: 7px; }
.notfound-sheet h2 { max-width: 320px; margin: 0 0 18px; font: 800 38px/1 var(--font-heading); text-transform: uppercase; text-wrap: balance; }
.notfound-star { position: absolute; top: -26px; right: -18px; width: 72px; height: 72px; color: var(--yellow); transform: rotate(-12deg); }
.notfound-sheet ul { margin: 0; padding: 0; list-style: none; }
.notfound-sheet li + li { border-top: 1px solid var(--line); }
.notfound-sheet a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; }
.notfound-sheet a:focus-visible { outline-color: var(--blue); outline-offset: 2px; }
.answer-bubble { display: grid; flex: 0 0 34px; place-items: center; height: 34px; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 14px; font-weight: 700; transition: background-color .12s ease, color .12s ease, transform .16s cubic-bezier(.23, 1, .32, 1); }
.notfound-sheet a:focus-visible .answer-bubble, .notfound-sheet a:active .answer-bubble { background: var(--blue); color: var(--white); }
.notfound-sheet a:active .answer-bubble { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .notfound-sheet a:hover { color: var(--blue); }
  .notfound-sheet a:hover .answer-bubble { background: var(--blue); color: var(--white); }
}
@media (max-width: 900px) {
  .intro-box.notfound { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 48px; }
  .notfound-star { right: -6px; }
}
@media (max-width: 760px) {
  .intro-box.notfound { padding: 40px 16px 48px; gap: 40px; }
  .notfound-code { font-size: clamp(130px, 44vw, 200px); }
  .notfound-sheet { padding: 26px 20px 14px; }
  .notfound-sheet h2 { font-size: 32px; padding-right: 40px; }
  .notfound-copy > p { font-size: 16px; }
}

/* Mobile menu: no travel when motion is reduced */
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .main-nav, .main-nav.menu-open { transform: none; }
}

/* Footer social */
.footer-social { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; color: var(--white); font-size: 13px; font-weight: 700; text-decoration: none; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
@media (hover: hover) and (pointer: fine) { .footer-social:hover { color: var(--yellow); } }

/* Home Facebook band */
.fb-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px 64px; margin: var(--section-gap) calc(50% - 50vw) 0; padding: 88px max(28px, calc((100vw - 1280px)/2)); background: var(--blue); color: var(--white); }
.fb-band h2 { margin: 0 0 18px; font: 900 clamp(46px, 6.4vw, 84px)/.92 var(--font-heading); letter-spacing: -.01em; text-transform: uppercase; }
.fb-band h2 span { display: block; color: var(--yellow); }
.fb-band > div > p { max-width: 540px; margin: 0 0 26px; font-size: 18px; line-height: 1.5; }
.fb-follow { min-height: 52px; gap: 10px; background: var(--yellow); color: var(--ink); }
.fb-follow:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .fb-follow:hover { background: var(--white); } }
.fb-sample { padding: 30px 32px; border-radius: 7px; background: #fffdf7; color: var(--ink); }
.fb-sample h3 { margin: 0 0 10px; font: 800 30px/1.05 var(--font-heading); text-transform: uppercase; }
.fb-question { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.fb-sample ul { margin: 0 0 8px; padding: 0; list-style: none; }
.fb-sample li { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; }
.fb-sample li + li { border-top: 1px solid var(--line); }
.fb-sample .answer-bubble { flex-basis: 30px; height: 30px; }
.fb-sample summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue); font-size: 15px; font-weight: 700; cursor: pointer; }
.fb-sample summary::before { content: '+'; font-size: 20px; line-height: 1; }
.fb-sample details[open] summary::before { content: '–'; }
.fb-sample details p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) {
  .fb-band { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 56px 16px; }
  .fb-band > div > p { font-size: 16px; }
  .fb-follow { width: 100%; }
  .fb-sample { padding: 24px 20px 16px; }
}

/* Tablet hero: keep the sticker and asterisk clear of the study sheet's text */
@media (min-width: 761px) and (max-width: 1100px) {
  .art-sticker { left: -5%; bottom: -4px; width: 92px; height: 92px; font-size: 23px; }
  .art-star { top: 2px; right: 0; width: 56px; height: 56px; }
}

/* Answer sheet practice */
.shade-rules { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; margin-bottom: var(--block-gap); padding: 24px 28px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); }
.shade-rules h3, .sheet-booklet h3, .answer-sheet h3 { margin: 0 0 12px; font: 800 28px/1.08 var(--font-heading); text-transform: uppercase; }
.shade-samples { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.shade-samples figure { display: grid; justify-items: center; gap: 4px; margin: 0; color: var(--ink); }
.shade-samples svg { display: block; width: 40px; height: 40px; overflow: visible; }
.shade-samples figcaption { color: var(--error-color); font-size: 12px; font-weight: 700; }
.shade-samples figcaption.is-good { color: var(--success-color); }
.shade-change { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.shade-change p { flex: 1 1 180px; margin: 0; font-size: 15px; line-height: 1.45; }
.shade-source { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.sheet-practice { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; gap: var(--block-gap) 56px; }
.sheet-booklet > ol { margin: 0; padding-left: 24px; font-size: 16px; }
.sheet-booklet > ol > li + li { margin-top: 24px; }
.sheet-booklet p { max-width: 62ch; margin: 0 0 8px; font-weight: 600; line-height: 1.45; }
.sheet-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin: 0; padding-left: 22px; font-size: 15px; list-style: upper-alpha; }
.answer-sheet { position: sticky; top: 24px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 7px; background: #fffdf7; }
.answer-sheet h3 { margin-bottom: 8px; }
.answer-sheet-note { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sheet-tools { display: flex; gap: 4px; width: fit-content; margin: 0 0 12px; padding: 4px; border: 1px solid var(--line); border-radius: 100px; }
.sheet-tools input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sheet-tools span { display: flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 100px; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.sheet-tools input:checked + span { background: var(--ink); color: var(--white); }
.sheet-tools input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.answer-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 0 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.sheet-item { font-size: 15px; font-weight: 700; }
.sheet-circles { display: flex; }
.sheet-bubble { position: relative; flex: 0 0 56px; width: 56px; height: 56px; padding: 0; border: 0; background: transparent; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sheet-bubble::before { content: ''; position: absolute; inset: 8px; border: 2px solid var(--ink); border-radius: 50%; }
.sheet-letter { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.sheet-bubble canvas { position: absolute; inset: 0; width: 56px; height: 56px; }
.sheet-cross { display: none; position: absolute; inset: 2px; pointer-events: none; }
.sheet-cross::before, .sheet-cross::after { content: ''; position: absolute; top: 50%; left: 50%; width: 68px; height: 3px; margin: -1.5px 0 0 -34px; background: var(--error-color); box-shadow: 0 0 0 1px #fffdf7; transform: rotate(45deg); }
.sheet-cross::after { transform: rotate(-45deg); }
.sheet-bubble.is-crossed .sheet-cross { display: block; }
.sheet-bubble:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 50%; }
.sheet-result { grid-column: 2; min-height: 20px; margin: 0; font-size: 14px; font-weight: 700; line-height: 20px; }
.answer-row.is-good .sheet-result, .answer-row.is-correct .sheet-result { color: var(--success-color); }
.answer-row.is-fix .sheet-result, .answer-row.is-wrong .sheet-result { color: var(--error-color); }
.answer-row.is-blank .sheet-result { color: var(--muted); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheet-actions .btn { min-height: 48px; }
.sheet-actions .btn:active { transform: scale(.97); }
.sheet-status { margin: 12px 0 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.sheet-status:empty { display: none; }
@media (hover: hover) and (pointer: fine) {
  .sheet-bubble:hover::before { border-color: var(--blue); }
}
@media (max-width: 900px) {
  .shade-rules, .sheet-practice { grid-template-columns: minmax(0, 1fr); }
  .answer-sheet { position: static; }
}
@media (max-width: 760px) {
  .shade-rules { padding: 20px 16px; }
  .shade-samples { gap: 10px; }
  .shade-samples svg { width: 36px; height: 36px; }
  .sheet-options { grid-template-columns: minmax(0, 1fr); }
  .answer-sheet { padding: 22px 16px; }
  .answer-row { grid-template-columns: 50px minmax(0, 1fr); gap: 0 2px; }
  .sheet-item { font-size: 14px; }
  .sheet-actions .btn { flex: 1 1 140px; }
}

.mistakes-title { margin: 0 0 15px; font: 800 26px/1.1 var(--font-heading); text-transform: uppercase; }

/* Descriptive home headings need the full width on smaller screens */
@media (max-width: 900px) {
  .home-page .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .home-page .section-heading > p { max-width: 520px; }
}
@media (max-width: 760px) {
  .home-page .section-heading h2 { font-size: clamp(38px, 11vw, 55px); }
}
@media (max-width: 1100px) {
  .article-header { margin-inline: calc(50% - 50vw); padding-inline: 28px; }
}

/* Static practice-question pages (/<subject>/practice-questions, /civil-service-exam-questions) */
.pq-list { padding-left: 1.6em; }
.pq-item { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--border-color); }
.pq-question { margin-bottom: 10px; font-weight: 700; white-space: pre-line; }
.article-content .pq-options { margin-bottom: 10px; }
.pq-options li { margin-bottom: 4px; }
.pq-answer summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; cursor: pointer; }
.pq-answer[open] summary { margin-bottom: 6px; }
.article-content .pq-answer p { margin-bottom: 8px; padding-left: 14px; border-left: 3px solid var(--blue); }
.pq-cta { padding: 16px 20px; background: var(--blue-soft); font-weight: 700; }
.article-content table { width: 100%; margin-bottom: 22px; border-collapse: collapse; font-size: 15px; }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--border-color); text-align: left; vertical-align: top; }

/* Five nav links leave no room for the CTA on small laptops/tablets; "Practice" covers it. */
@media (max-width: 960px) { .header-cta { display: none; } }

/* Standalone answer sheet page */
.intro-box.sheet-hero { min-height: 0; padding-block: 48px 40px; margin-bottom: 0; background-image: none; }
.intro-box.sheet-hero::after { display: none; }
.intro-box.sheet-hero > * { animation: none; }
.intro-box.sheet-hero h1:not(.hero-badge) { margin-bottom: 12px; font-size: clamp(44px, 5.6vw, 84px); line-height: .92; text-wrap: balance; }
@media (max-width: 760px) { .intro-box.sheet-hero { padding: 32px 16px 28px; } }
.answer-sheet-intro { max-width: 820px; margin: 64px 0 40px; }
.answer-sheet-intro h2 { margin: 0 0 12px; font: 900 clamp(34px, 4.4vw, 52px)/.95 var(--font-heading); letter-spacing: -.01em; text-transform: uppercase; }
.answer-sheet-intro p { margin: 0 0 14px; font-size: 17px; line-height: 1.55; }
.answer-sheet-intro a { color: var(--blue); text-underline-offset: 3px; }
.home-note-link { margin: 24px 0 0; font-size: 15px; }
.home-note-link a { color: var(--blue); text-underline-offset: 3px; }
