:root {
  color: #17202a;
  background: #ffffff;
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #17202a; background: #ffffff; }
img { max-width: 100%; }
a { color: #0b6680; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #f0a33a; outline-offset: 3px; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #fff; background: #101923; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.public-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #d9e0e5; background: rgba(255,255,255,.98); }
.public-nav { display: flex; width: min(1180px, calc(100% - 48px)); min-height: 72px; align-items: center; gap: 26px; margin: 0 auto; }
.public-logo { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin-right: auto; color: #17202a; font-weight: 900; text-decoration: none; }
.public-logo span { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: #153f76; font-size: 13px; }
.public-links { display: flex; align-items: center; gap: 22px; }
.public-links a, .public-action { color: #42515e; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.public-links a[aria-current='page'] { color: #153f76; text-decoration: underline; text-decoration-color: #f0a33a; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.public-action, .button-primary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; color: #fff; background: #153f76; font-weight: 800; text-decoration: none; }
.public-action:hover, .button-primary:hover { background: #0e315e; }
.button-secondary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid #b8c3cb; color: #17202a; background: #fff; font-weight: 800; text-decoration: none; }
.button-secondary:hover { border-color: #153f76; color: #153f76; }
.public-android-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 15px; color: #fff; background: #16843f; font-size: 13px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.public-android-action:hover { background: #116d34; }

.article-main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 80px; }
.article-heading { max-width: 820px; margin-bottom: 38px; }
.article-heading h1 { max-width: 800px; margin: 0 0 22px; color: #101923; font: 700 58px/1.04 Georgia, serif; letter-spacing: 0; }
.article-heading .intro { margin: 0 0 20px; color: #40505f; font-size: 20px; line-height: 1.65; }
.eyebrow, .kicker { margin: 0 0 12px; color: #137b8f; font-size: 12px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; color: #687784; font-size: 14px; line-height: 1.6; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 1fr); gap: 72px; align-items: start; }
.article-content { min-width: 0; }
.article-content h2, .article-content h3 { color: #101923; font-family: Georgia, serif; letter-spacing: 0; }
.article-content h2 { margin: 52px 0 18px; padding-top: 18px; border-top: 3px solid #137b8f; font-size: 30px; line-height: 1.2; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 30px 0 12px; font-size: 22px; line-height: 1.3; }
.article-content p, .article-content li { color: #40505f; font-size: 17px; line-height: 1.75; }
.article-content li + li { margin-top: 8px; }
.article-content a { font-weight: 750; }
.article-content h2, .article-content h3 { scroll-margin-top: 150px; }
.course-grid { margin: 36px 0 48px; }
.worked-question { margin: 28px 0; padding: 22px; border: 1px solid #ccd7df; border-radius: 8px; background: #fff; }
.worked-question h3 { margin-top: 0; }
.answer-explanation { padding: 16px 20px; border-left: 4px solid #137b8f; background: #eef6f5; }
.answer-explanation h4 { margin: 0 0 12px; color: #154e50; font-size: 17px; }
.answer-explanation ul { margin-bottom: 0; padding-left: 18px; }
.article-content { overflow-wrap: break-word; }
@media (max-width: 700px) { .worked-question { padding: 16px; } .answer-explanation { padding: 14px; } }
.notice { margin: 28px 0; padding: 18px 20px; border-left: 4px solid #137b8f; color: #24404a; background: #e8f4f6; line-height: 1.65; }
.key-points { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0; border-top: 1px solid #d9e0e5; border-bottom: 1px solid #d9e0e5; }
.key-points div { min-height: 118px; padding: 22px; border-right: 1px solid #d9e0e5; }
.key-points div:last-child { border-right: 0; }
.key-points strong { display: block; margin-bottom: 7px; color: #153f76; font: 700 29px/1 Georgia, serif; }
.key-points span { color: #586674; font-size: 14px; line-height: 1.45; }
.article-aside { position: sticky; top: 104px; padding-left: 24px; border-left: 1px solid #d9e0e5; }
.article-aside strong { display: block; margin-bottom: 10px; color: #101923; }
.article-aside a { display: block; padding: 10px 0; border-bottom: 1px solid #e4e9ed; color: #4a5966; font-size: 14px; font-weight: 700; line-height: 1.45; text-decoration: none; }
.article-aside p { margin-top: 26px; color: #687784; font-size: 13px; line-height: 1.6; }
.source-list { margin: 22px 0 0; padding: 20px 24px; border: 1px solid #d9e0e5; background: #f7f9fa; }
.source-list li { font-size: 15px; }
.article-ad { min-height: 132px; margin: 44px 0; padding: 22px 0; border-top: 1px solid #d9e0e5; border-bottom: 1px solid #d9e0e5; text-align: center; }
.article-ad > span { display: block; margin-bottom: 10px; color: #77828c; font-size: 11px; text-transform: uppercase; }
.article-ad .adsbygoogle { min-height: 90px; }

.related-band { margin-top: 72px; padding: 46px 0; border-top: 1px solid #d9e0e5; border-bottom: 1px solid #d9e0e5; }
.related-band h2 { margin: 0 0 24px; color: #101923; font: 700 30px/1.2 Georgia, serif; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-grid a { display: block; min-height: 132px; padding: 22px; border: 1px solid #d9e0e5; border-radius: 6px; color: #17202a; font-weight: 800; line-height: 1.45; text-decoration: none; }
.related-grid span { display: block; margin-top: 10px; color: #64727e; font-size: 14px; font-weight: 500; }

.public-footer { border-top: 1px solid #d9e0e5; background: #f5f7f8; }
.footer-inner { display: grid; width: min(1180px, calc(100% - 48px)); grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin: 0 auto; padding: 44px 0 48px; }
.footer-inner strong { color: #17202a; }
.footer-inner p { max-width: 420px; color: #66737f; font-size: 14px; line-height: 1.65; }
.footer-inner nav { display: grid; align-content: start; gap: 10px; }
.footer-inner nav strong { margin-bottom: 4px; font-size: 14px; }
.footer-inner nav a { color: #52616d; font-size: 14px; font-weight: 650; text-decoration: none; }
.footer-legal { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 30px; border-top: 1px solid #d9e0e5; color: #77828c; font-size: 12px; line-height: 1.6; }

/* Public editorial homepage. The training application lives separately at /app.html. */
.home-page { background: #f7f4ee; }
.home-page main { overflow: hidden; }
.home-hero { display: grid; width: min(1180px, calc(100% - 48px)); grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr); gap: 64px; align-items: center; margin: 0 auto; padding: 86px 0 72px; }
.home-hero-copy h1 { max-width: 780px; margin: 0; color: #101923; font: 700 clamp(48px, 6vw, 82px)/.98 Georgia, serif; letter-spacing: -.035em; text-wrap: balance; }
.home-lead { max-width: 690px; margin: 26px 0 0; color: #40505f; font-size: 20px; line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-actions .button-primary, .home-actions .button-secondary { min-height: 52px; padding-inline: 24px; }
.independence-note { margin: 18px 0 0; color: #687784; font-size: 13px; }
.home-hero-visual { position: relative; margin: 0; }
.home-hero-visual::before { content: ''; position: absolute; z-index: -1; top: -32px; right: -34px; width: 72%; height: 58%; background: #f0a33a; }
.home-hero-visual img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.02); }
.home-hero-visual figcaption { position: absolute; right: -18px; bottom: 24px; width: min(330px, 84%); padding: 16px 20px; color: #fff; background: #153f76; font-size: 14px; font-weight: 750; line-height: 1.5; }
.fact-strip { display: grid; width: min(1180px, calc(100% - 48px)); grid-template-columns: repeat(4, 1fr); margin: 0 auto; border-top: 1px solid #cfd6da; border-bottom: 1px solid #cfd6da; background: rgba(255,255,255,.42); }
.fact-strip div { padding: 24px 28px; border-right: 1px solid #cfd6da; }
.fact-strip div:last-child { border-right: 0; }
.fact-strip strong { display: block; margin-bottom: 6px; color: #153f76; font: 700 32px/1 Georgia, serif; }
.fact-strip span { color: #5a6873; font-size: 13px; }
.home-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 92px 0; border-bottom: 1px solid #cfd6da; }
.section-heading { max-width: 780px; margin-bottom: 38px; }
.section-heading h2, .home-cta h2, .source-section h2 { margin: 0 0 16px; color: #101923; font: 700 clamp(36px, 4.5vw, 58px)/1.04 Georgia, serif; letter-spacing: -.025em; text-wrap: balance; }
.section-heading > p:last-child, .source-section > div > p:last-child { color: #52616d; font-size: 18px; line-height: 1.7; }
.prose-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 54px; }
.prose-columns p { margin: 0; color: #40505f; font-size: 18px; line-height: 1.8; }
.editorial-note { display: grid; grid-template-columns: 150px 1fr; gap: 24px; margin-top: 38px; padding: 24px 28px; border-left: 5px solid #137b8f; background: #e8f4f6; }
.editorial-note strong { color: #153f76; font: 700 20px/1.4 Georgia, serif; }
.editorial-note p { margin: 0; color: #24404a; line-height: 1.65; }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.journey-grid article { display: grid; min-height: 330px; align-content: start; padding: 30px; border: 1px solid #cad2d8; background: #fff; }
.journey-code { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 34px; color: #fff; background: #153f76; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.journey-grid h3 { margin: 0 0 14px; color: #101923; font: 700 27px/1.15 Georgia, serif; }
.journey-grid p { margin: 0 0 24px; color: #586674; line-height: 1.7; }
.journey-grid a { margin-top: auto; color: #0b6680; font-weight: 850; }
.method-section { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 76px; }
.method-section .section-heading { margin: 0; }
.method-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.method-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 0 0 24px; }
.method-steps li + li { padding-top: 24px; border-top: 1px solid #cfd6da; }
.method-steps span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #153f76; border-radius: 50%; color: #153f76; font-weight: 900; }
.method-steps strong { color: #101923; font-size: 18px; }
.method-steps p { margin: 7px 0 0; color: #586674; line-height: 1.65; }
.text-link { grid-column: 2; width: fit-content; color: #0b6680; font-weight: 850; }
.themes-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 50px; }
.themes-list article { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid #cfd6da; }
.themes-list article:last-child { grid-column: 1 / -1; }
.themes-list > article > span { color: #137b8f; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.themes-list h3 { margin: 0 0 8px; color: #101923; font: 700 21px/1.3 Georgia, serif; }
.themes-list p { margin: 0; color: #586674; line-height: 1.6; }
.source-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 76px; align-items: start; }
.source-section ul { margin: 0; padding: 24px 28px; border: 1px solid #cad2d8; background: #fff; }
.source-section li { color: #52616d; line-height: 1.55; }
.source-section li + li { margin-top: 15px; }
.source-section a { font-weight: 750; }
.home-cta { display: flex; width: min(1180px, calc(100% - 48px)); align-items: center; justify-content: space-between; gap: 54px; margin: 0 auto; padding: 72px 0 82px; }
.home-cta h2 { max-width: 760px; margin-bottom: 0; font-size: clamp(34px, 4vw, 52px); }
.home-cta .button-primary { flex: 0 0 auto; min-height: 54px; padding-inline: 26px; }

@media (max-width: 900px) {
  .public-nav { flex-wrap: wrap; gap: 0 16px; padding: 12px 0 10px; }
  .public-logo { min-height: 44px; }
  .public-links { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding: 9px 0 3px; border-top: 1px solid #e6eaed; scrollbar-width: thin; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-aside { position: static; order: -1; padding: 18px 0; border-top: 1px solid #d9e0e5; border-bottom: 1px solid #d9e0e5; border-left: 0; }
  .article-aside p { margin-bottom: 0; }
  .public-android-action { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-visual { max-width: 700px; }
  .home-hero-visual img { aspect-ratio: 16 / 10; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-grid article { min-height: 0; }
  .method-section, .source-section { grid-template-columns: 1fr; gap: 34px; }
  .text-link { grid-column: auto; }
}

@media (max-width: 700px) {
  .public-nav, .footer-inner, .footer-legal, .article-main { width: calc(100% - 36px); }
  .public-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .public-logo { margin-right: 0; }
  .public-logo strong { font-size: 13px; }
  .public-action { min-height: 38px; padding: 0 9px; font-size: 11px; }
  .public-links { grid-column: 1 / -1; }
  .article-main { padding-top: 38px; }
  .article-heading h1 { font-size: 40px; }
  .article-heading .intro { font-size: 18px; }
  .article-content h2 { font-size: 26px; }
  .article-content p, .article-content li { font-size: 16px; }
  .key-points, .related-grid, .footer-inner { grid-template-columns: 1fr; }
  .key-points div { min-height: 0; border-right: 0; border-bottom: 1px solid #d9e0e5; }
  .key-points div:last-child { border-bottom: 0; }
  .footer-inner { gap: 28px; }
  .home-hero, .home-section, .home-cta, .fact-strip { width: calc(100% - 36px); }
  .home-hero { gap: 36px; padding: 54px 0 48px; }
  .home-hero-copy h1 { font-size: clamp(42px, 13vw, 58px); }
  .home-lead { font-size: 18px; }
  .home-hero-visual::before { top: -16px; right: -16px; }
  .home-hero-visual figcaption { right: -10px; bottom: 14px; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .fact-strip div:nth-child(-n+2) { border-bottom: 1px solid #cfd6da; }
  .fact-strip strong { font-size: 27px; }
  .home-section { padding: 64px 0; }
  .prose-columns, .themes-list { grid-template-columns: 1fr; gap: 0; }
  .editorial-note { grid-template-columns: 1fr; gap: 8px; }
  .themes-list article:last-child { grid-column: auto; }
  .home-cta { display: grid; padding: 58px 0 66px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; }
.study-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.study-table caption { padding: 12px 0; text-align: left; font-weight: 700; }
.study-table th, .study-table td { padding: 12px; border: 1px solid #ccd7df; text-align: left; }
.study-table thead { color: #fff; background: #153f76; }
.study-table tbody th { font-weight: 600; }
.study-table tbody tr:nth-child(even) { background: #eef6f5; }
.error-actions dt { margin-top: 22px; font-weight: 800; color: #153f76; }
.error-actions dd { margin: 8px 0 0; color: #40505f; line-height: 1.75; }
.study-sheet { padding: 12px 24px; border: 2px solid #137b8f; background: #f7f9fa; }
.study-sheet p { padding-bottom: 12px; border-bottom: 1px solid #ccd7df; }
.table-scroll:focus-visible { outline: 3px solid #f0a33a; outline-offset: 3px; }
@media print {
  .public-header, .public-footer, .article-aside, .related-band, .skip-link { display: none; }
  .article-main { width: 100%; padding: 0; }
  .article-layout { display: block; }
  .article-heading h1 { font-size: 30px; }
  .article-content p, .article-content li { font-size: 11pt; }
  .table-scroll { overflow: visible; }
  .study-sheet, .study-table tr { break-inside: avoid; }
}
