/* Shared visual language for discovery, practice and the generated guide library. */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-editorial: 'Outfit', sans-serif;
  --ink: #20352c;
  --paper: #f7f7f0;
  --lime: #d4ec87;
  --primary: #284b3b;
  --primary-hover: #183325;
  --primary-glow: rgba(40,75,59,.10);
  --bg-main: var(--paper);
  --bg-card: #fffef9;
  --text-primary: var(--ink);
  --text-secondary: #56625a;
  --text-muted: #657168;
  --border-color: #20352c20;
  --max-width: 1600px;
}
.hero-copy h1,.catalogue-heading h2,.home-guides h3,.study-story-copy h2,.community-invite h2,.feedback-dialog h2 { font-family: var(--font-display); }
body { background: var(--paper); color: var(--ink); }
.container { padding-inline: clamp(24px, 4.5vw, 80px); }
header.site-header { height: 92px; background: #f7f7f0ed; border-bottom: 1px solid var(--border-color); }
.brand { gap: 10px; letter-spacing: -.055em; color: var(--ink); }
.brand span.logo-mark { width: 32px; height: 32px; border-radius: 8px; font-size: 1.1rem; font-weight: 900; }
.brand .brand-name { font-size: 25px; font-weight: 800; white-space: nowrap; }
.brand-name > span { font-weight: 500; }
.brand-name .brand-period { color: #55754a; font-weight: 800; }
.primary-nav { display: flex; gap: 32px; margin-left: auto; align-items: center; }
.primary-nav a { color: #56625a; text-decoration: none; font-size: .8rem; font-weight: 600; padding: 8px 0; }
.primary-nav a:hover { color: var(--ink); box-shadow: 0 1px var(--ink); }
.primary-nav a[aria-current='page'] { color: var(--ink); box-shadow: 0 1px var(--ink); }
.auth-area { margin-left: 40px; }
.auth-btn { background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 7px; padding: 11px 20px; font-size: .75rem; box-shadow: none; }
.auth-btn:hover { background: var(--primary); color: white; }
main.main-content { align-items: flex-start; padding: 0 0 72px; }
.section-eyebrow { display: flex; align-items: center; gap: 10px; font-size: .65rem; letter-spacing: .14em; font-weight: 700; color: #56625a; line-height: 1.6; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #55754a; box-shadow: 0 0 0 4px #55754a12; }
.discovery-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 12px; align-items: center; padding: 36px 0 30px; min-height: 595px; }
.hero-copy { position: relative; z-index: 1; padding-block: 24px; }
.hero-copy h1 { margin: 25px 0; font-size: clamp(2rem, 1.17rem + 3.7vw, 4.5rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.05; }
em { font-family: var(--font-display); font-weight: 600; font-style: normal; letter-spacing: -.035em; }
.hero-copy h1 em { font-size: 1em; line-height: 1; }
.hero-description { margin-top: 28px; font-size: .95rem; line-height: 1.9; color: var(--text-secondary); max-width: 470px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 28px; }
.btn { border-radius: 6px; font-size: .82rem; padding: 14px 23px; }
.btn-primary { box-shadow: none; background: var(--ink); }
.btn-primary:hover { box-shadow: 0 8px 16px #20352c18; }
.hero-actions .btn { gap: 25px; }
.hero-actions .btn span { font-size: 1.2rem; font-weight: 400; }
.hero-secondary { color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 600; border-bottom: 1px solid #20352c40; padding-bottom: 4px; }
.hero-secondary span { margin-left: 10px; }
.hero-footnote { display: flex; align-items: center; gap: 10px; margin-top: 32px; color: #657168; font-size: .65rem; }
.footnote-line { width: 24px; height: 1px; background: #839578; flex-shrink: 0; }
.hero-art { position: relative; align-self: stretch; display: grid; place-items: center; min-width: 0; background: radial-gradient(ellipse at center, #e6ebdb 0, #f7f7f000 66%); }
.hero-art img { width: 100%; height: auto; display: block; max-height: 560px; }
.art-caption { position: absolute; top: 18px; right: 0; font-size: .55rem; color: #687363; letter-spacing: .15em; }
.art-label { position: absolute; display: flex; align-items: center; border: 1px solid #20352c18; box-shadow: 0 12px 24px #20352c0a; background: #fffef9f5; }
.art-label-top { top: 23%; right: 0; border-radius: 40px; padding: 12px 19px 12px 12px; gap: 10px; font-size: .7rem; font-weight: 600; transform: rotate(5deg); }
.mini-spark { font-size: 1.4rem; background: var(--lime); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.art-label-bottom { left: 1%; bottom: 14%; flex-direction: column; align-items: flex-start; gap: 8px; padding: 17px 21px; border-radius: 8px; transform: rotate(-5deg); font-size: .75rem; }
.art-small { color: #657168; font-size: .5rem; letter-spacing: .13em; }
.art-label-bottom > span:last-child > span { margin-left: 18px; }
.art-coordinate { position: absolute; bottom: 6px; right: 0; font-size: .5rem; letter-spacing: .12em; color: #657168; }
.method-strip { display: grid; grid-template-columns: 1.1fr repeat(3,1fr); border-block: 1px solid var(--border-color); margin-block: 0 72px; padding: 26px 0; gap: 28px; align-items: center; }
.method-intro { font-size: .72rem; line-height: 1.8; color: #657168; }
.method-intro strong { font-weight: 600; color: var(--ink); }
.method-strip > div { display: flex; align-items: center; gap: 12px; border-left: 1px solid var(--border-color); padding-left: 26px; font-size: .74rem; font-weight: 600; }
.method-number { color: #64725e; font-family: var(--font-editorial); font-size: 1.5rem; font-style: italic; }
.method-arrow { margin-left: auto; font-size: 1rem; color: #657168; }
.exam-catalogue { scroll-margin-top: 116px; }
.catalogue-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.catalogue-heading h2 { font-size: clamp(2.5rem,3.8vw,4rem); line-height: 1.1; letter-spacing: -.06em; font-weight: 500; margin: 12px 0; }
.catalogue-heading h2 em { font-size: 1.2em; }
.catalogue-heading p:not(.section-eyebrow) { color: var(--text-secondary); font-size: .83rem; }
.exam-search { width: 360px; max-width: 100%; }
.exam-search label { display: block; font-size: .65rem; color: #657168; margin-bottom: 8px; }
.exam-search input { width: 100%; font: inherit; font-size: .75rem; border: 1px solid #20352c35; background: transparent; border-radius: 6px; padding: 15px 16px; color: var(--ink); }
.catalogue-status { margin: 30px 0 12px; color: #657168; font-size: .65rem; }
.catalogue-body { display: block; }
#home-cert-grid { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 20px; }
#home-cert-grid .hub-card { position: relative; padding: 32px; background: #ebece3; border: 1px solid #20352c15; border-radius: 10px; gap: 20px; box-shadow: none; overflow: hidden; }
#home-cert-grid .hub-card::after { content: '↗'; position: absolute; right: 32px; top: 80px; color: #20352c0d; font-size: 150px; line-height: 1; font-weight: 400; pointer-events: none; }
#home-cert-grid .hub-card:hover { transform: translateY(-4px); background: #e5e9d9; border-color: #20352c50; }
.cert-card-top,.cert-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.cert-provider { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: #a44431; }
.cert-availability { font-size: .6rem; border: 1px solid #20352c25; border-radius: 40px; padding: 4px 10px; color: #284b3b; }
#home-cert-grid .hub-card-title { font-size: clamp(1.4rem,2.1vw,2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.25; max-width: 520px; position: relative; z-index: 1; }
.cert-card-bottom { border-top: 1px solid #20352c25; padding-top: 18px; margin-top: 4px; }
.cert-level { color: #56625a; font-size: .65rem; }
.cert-card-bottom .hub-card-cta { font-size: .75rem; margin: 0; }
.catalogue-note { position: relative; padding: 28px 32px; background: var(--ink); color: #f6f8ef; border-radius: 10px; overflow: hidden; }
.note-mark { position: absolute; right: 25px; top: 12px; font-size: 4rem; font-weight: 400; line-height: 1; color: var(--lime); }
.catalogue-note .section-eyebrow { color: #c5d4ba; font-size: .52rem; max-width: 65%; }
.catalogue-note h3 { font-family: var(--font-editorial); font-weight: 400; font-size: 2.8rem; line-height: 1; letter-spacing: -.02em; margin: 16px 0; }
.catalogue-note p { font-size: .73rem; color: #c7d2c9; max-width: 360px; line-height: 1.8; }
.catalogue-note > span:last-child { display: block; font-size: .6rem; color: #c5d4ba; margin-top: 16px; }
.search-empty { padding: 20px; margin-top: 15px; border: 1px solid #a6b18b; border-radius: 6px; }
.home-guides { display: grid; grid-template-columns: 1fr 1.45fr; column-gap: 60px; margin-top: 80px; padding-block: 54px 20px; text-align: left; border-top: 1px solid var(--border-color); }
.home-guides > .section-eyebrow,.home-guides > h3,.home-guides-sub,.home-guides-all { grid-column: 1; }
.home-guides h3 { font-size: clamp(2rem,3vw,3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.14; margin: 16px 0; }
.home-guides h3 em { font-size: 1.2em; }
.home-guides-sub { max-width: 330px; font-size: .8rem; line-height: 1.8; }
.home-guides-list { grid-column: 2; grid-row: 1 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; max-width: none; counter-reset: domain; align-self: start; }
.home-guides-list li { counter-increment: domain; }
.home-guides-list a { display: flex; align-items: center; gap: 12px; min-height: 77px; height: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; font-size: .73rem; line-height: 1.5; }
.home-guides-list a::before { content: counter(domain,decimal-leading-zero); font-family: var(--font-editorial); color: #748062; font-size: 1.4rem; }
.home-guides-list a:hover { color: var(--ink); border-color: var(--ink); }
.home-guides-all { font-size: .74rem; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; align-self: start; }
.hub-header { text-align: left; margin: 50px 0 35px; }
.hub-header h2 { font-size: clamp(2rem,3.5vw,3.5rem); font-weight: 500; letter-spacing: -.06em; max-width: 1000px; line-height: 1.15; margin-top: 25px; }
.hub-sub { margin-top: 16px; font-size: .86rem; }
.hub-grid,.topics-grid,#view-cert-hub .hub-grid { max-width: none; }
#view-cert-hub .hub-card { flex: 1 1 300px; }
.hub-card { padding: 32px; box-shadow: none; border-radius: 10px; border-color: var(--border-color); }
.hub-card:hover { border-color: #536d42; box-shadow: 0 14px 26px #20352c0a; transform: translateY(-4px); }
.hub-card-title { font-weight: 600; letter-spacing: -.025em; }
.hub-card-icon { display: grid; place-items: center; width: 50px; height: 50px; background: #eaf0dc; border-radius: 12px; font-size: 1.4rem; }
.hub-card-icon svg { width: 24px; height: 24px; }
#view-exam-prep .hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.topics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.topic-card { box-shadow: none; border-left: 1px solid var(--border-color); border-top: 3px solid var(--topic-color,#829063); padding: 26px; }
.topic-card:hover { box-shadow: 0 12px 24px #20352c0a; }
#view-quiz { max-width: 980px; margin: 40px auto 0; }
#view-results { max-width: 1120px; margin: 40px auto 0; }
.glass-card { box-shadow: 0 8px 30px #20352c06; border: 1px solid var(--border-color); border-radius: 12px; }
.question-card { padding: clamp(24px,4vw,48px); }
.site-footer { background: #eef0e6; border-top: 1px solid var(--border-color); padding-block: 32px; }
.site-footer p { color: #56625a; }
.site-footer .footer-disclaimer { max-width: 1000px; margin: 14px auto 0; font-size: .63rem; line-height: 1.7; }
.skip-link { position: fixed; left: 20px; top: -100px; background: var(--ink); color: white; padding: 14px; z-index: 1000; }
.skip-link:focus { top: 10px; }
:where(a,button,input,summary):focus-visible { outline: 3px solid #577b37; outline-offset: 4px; }
@media (min-width:1400px) { #view-topics .topics-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width:1100px) {
  .discovery-hero { min-height: 520px; }
  .art-label-top { font-size: .6rem; padding: 9px 12px; }
  .art-label-bottom { font-size: .65rem; left: -8px; padding: 12px; }
  .method-strip { gap: 16px; }
  .method-strip > div { padding-left: 16px; gap: 8px; font-size: .68rem; }
  .method-arrow { display: none; }
  .home-guides { gap: 30px; }
}
@media (max-width:800px) {
  header.site-header { height: 78px; }
  .primary-nav { gap: 20px; }
  .auth-area { margin-left: 22px; }
  .desktop-break { display: none; }
  .art-label-top { right: -10px; }
  .art-caption { font-size: .43rem; }
  .hero-footnote { font-size: .57rem; }
  .method-strip { grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 50px; }
  .method-strip > div { font-size: .74rem; }
  .catalogue-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .exam-search { width: 100%; }
  .catalogue-body { grid-template-columns: 1.3fr 1fr; gap: 16px; }
  #home-cert-grid .hub-card { padding: 24px; }
  .catalogue-note { padding: 24px; }
  .catalogue-note h3 { font-size: 2.3rem; }
  .home-guides { grid-template-columns: 1fr; }
  .home-guides-list { grid-column: 1; grid-row: auto; }
  .home-guides-all { margin-top: 24px; }
  .topics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  header.site-header { height: auto; min-height: 80px; padding-block: 15px; }
  .header-content { flex-wrap: wrap; row-gap: 18px; }
  .primary-nav { order: 3; width: 100%; gap: 24px; flex-wrap: wrap; row-gap: 10px; }
  .primary-nav a { font-size: .73rem; }
  .auth-area { margin-left: auto; }
  .brand-wordmark { height: 22px; }
  .auth-btn { padding: 9px 14px; }
  .discovery-hero { grid-template-columns: 1fr; padding-top: 25px; gap: 0; }
  .hero-description { font-size: 1rem; }
  .hero-art { margin-top: 12px; min-height: 350px; }
  .hero-art img { max-height: 420px; }
  .art-label-top { right: 0; top: 22%; }
  .art-label-bottom { left: 0; bottom: 15%; }
  .art-caption { top: 0; }
  .method-strip { gap: 20px 12px; }
  .method-strip > div { font-size: .67rem; padding-left: 12px; }
  .method-number { font-size: 1.2rem; }
  .catalogue-body { grid-template-columns: 1fr; }
  .catalogue-note h3 br { display: none; }
  .catalogue-note h3 { font-size: 2.5rem; }
  .catalogue-note p { max-width: none; }
  .home-guides { margin-top: 50px; padding-top: 34px; }
  .home-guides-list { gap: 0 14px; }
  .home-guides-list a { font-size: .68rem; gap: 8px; }
  .topics-grid,#view-exam-prep .hub-grid { grid-template-columns: 1fr; }
  .cert-card-bottom .hub-card-cta { font-size: .69rem; }
  .hub-header { margin-top: 32px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Motion, editorial photography and learner feedback. */
.study-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px,5vw,75px); align-items: center; margin: 70px 0 20px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.study-story-photo { margin: 0; position: relative; }
.study-story-photo img { display: block; width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
.study-story-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; width: fit-content; padding: 10px 16px; color: #fff; background: #20352ccf; border: 1px solid #ffffff30; border-radius: 5px; font-size: .67rem; backdrop-filter: blur(12px); }
.study-story-copy h2,.guide-article .study-story-copy h2 { padding: 0; border: 0; margin: 18px 0 24px; font-size: clamp(2rem,3vw,3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.study-story-copy h2 em { font-size: 1.13em; }
.study-story-copy > p:not(.section-eyebrow) { color: var(--text-secondary); font-size: .86rem; line-height: 1.9; max-width: 440px; }
.study-habits { display: flex; flex-direction: column; gap: 12px; padding-block: 24px; }
.study-habits span { font-size: .75rem; }
.study-habits b { color: #647655; margin-right: 15px; font-family: var(--font-editorial); font-style: italic; font-weight: 400; font-size: 1.15rem; }
.story-feedback { cursor: pointer; padding: 8px 0; border: 0; border-bottom: 1px solid #20352c60; background: transparent; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 600; }
.story-feedback span { margin-left: 20px; }
.community-bar { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border-color); text-align: left; }
.community-invite { display: flex; align-items: center; gap: 24px; padding-block: 14px 30px; }
.community-spark { color: #536d42; font-size: 3.5rem; line-height: 1; }
.community-invite h2 { font-weight: 500; font-size: 1.45rem; letter-spacing: -.04em; margin-bottom: 6px; }
.community-invite p { font-size: .75rem; margin: 0; }
.community-invite .btn { margin-left: auto; flex-shrink: 0; }
.share-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.share-row > span:first-child { color: #657168; font-size: .72rem; }
.social-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.social-controls a,.social-controls button { border: 1px solid #20352c30; border-radius: 30px; padding: 8px 14px; color: var(--ink); background: transparent; font: inherit; font-size: .65rem; cursor: pointer; text-decoration: none; transition: background .2s,transform .2s; }
.social-controls a:hover,.social-controls button:hover { background: var(--lime); transform: translateY(-2px); }
.share-status { color: #284b3b; font-size: .7rem; }
.feedback-dialog { position: fixed; inset: 0; margin: auto; max-height: calc(100dvh - 40px); overflow-y: auto; width: min(520px,calc(100% - 32px)); border: 1px solid #20352c30; border-radius: 16px; padding: 36px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px #0004; }
.feedback-dialog::backdrop { background: #13261dd0; backdrop-filter: blur(5px); }
.feedback-dialog[open] { animation: feedback-enter .25s ease-out; }
.feedback-close { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; color: var(--ink); font-size: 1.8rem; cursor: pointer; width: 36px; height: 36px; }
.feedback-dialog h2 { font-size: 2.8rem; font-weight: 500; letter-spacing: -.05em; margin: 12px 0; }
.feedback-intro { font-size: .82rem; line-height: 1.8; color: #56625a; margin-bottom: 24px; }
.feedback-form { display: grid; gap: 10px; }
.feedback-form label { font-size: .75rem; font-weight: 600; margin-top: 6px; }
.feedback-form select,.feedback-form textarea { width: 100%; padding: 12px; font: inherit; font-size: .82rem; border: 1px solid #20352c40; border-radius: 6px; color: var(--ink); background: #fffef9; }
.feedback-form textarea { resize: vertical; min-height: 110px; }
.feedback-privacy { font-size: .68rem; color: #657168; line-height: 1.7; margin-block: 4px 10px; }
.feedback-ready p { font-size: .82rem; line-height: 1.8; margin-bottom: 20px; }
.feedback-edit { display: block; cursor: pointer; color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font: inherit; font-size: .75rem; margin-top: 18px; }
.feedback-dialog [hidden] { display: none; }
.reveal-ready { opacity: 0; transform: translateY(20px); transition: opacity .7s ease var(--reveal-delay,0ms),transform .7s cubic-bezier(.2,.65,.3,1) var(--reveal-delay,0ms); }
.reveal-ready.is-revealed { opacity: 1; transform: translateY(0); }
.hero-art img { animation: gateway-enter 1.4s cubic-bezier(.2,.65,.3,1) both; }
.hero-copy h1,.library-hero h1 { animation: headline-enter .9s ease both; }
.book-four { animation: book-arrive 1s .25s both; }
.book-three { animation: book-arrive 1s .15s both; }
.reading-progress { position: fixed; height: 3px; background: #92b75c; top: 0; left: 0; right: 0; transform-origin: left; z-index: 200; pointer-events: none; }
@keyframes gateway-enter { from { opacity: 0; transform: translateY(24px) rotate(-3deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes headline-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes book-arrive { from { opacity: 0; translate: 0 -22px; } to { opacity: 1; translate: 0 0; } }
@keyframes feedback-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width:800px) { .study-story { gap: 30px; } .study-story-photo img { height: 400px; } .community-invite { gap: 16px; flex-wrap: wrap; } .community-invite .btn { margin-left: 0; } }
@media (max-width:620px) { .study-story { grid-template-columns: 1fr; margin-top: 45px; } .study-story-photo img { height: 300px; } .community-spark { font-size: 2.5rem; } .community-invite h2 { font-size: 1.25rem; } .community-invite > div { flex: 1; } .community-invite .btn { width: 100%; } .feedback-dialog { padding: 28px 22px; } .share-row { gap: 12px; } }
@media (prefers-reduced-motion:reduce) { .reveal-ready { opacity: 1; transform: none; } *,*::before,*::after { animation: none !important; transition: none !important; } }

/* Original Exaamnxt palette: light neutral surfaces, indigo and purple accents. */
:root {
  --ink: #111827;
  --paper: #f9fafb;
  --lime: #c7d2fe;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79,70,229,.15);
  --bg-main: #f9fafb;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-color: rgba(17,24,39,.10);
}
body { background: radial-gradient(circle at 48% -15%,rgba(99,102,241,.09),transparent 48%),#f9fafb; color: var(--text-primary); }
header.site-header { background: rgba(255,255,255,.88); border-color: rgba(17,24,39,.08); }
.brand { color: #111827; }
.brand span.logo-mark { background: linear-gradient(135deg,#4f46e5,#a855f7); color: #fff; box-shadow: 0 7px 18px rgba(79,70,229,.22); }
.brand-name .brand-period,.primary-nav a:hover,.primary-nav a[aria-current='page'] { color: #4f46e5; }
.primary-nav a:hover,.primary-nav a[aria-current='page'] { box-shadow: 0 1px #4f46e5; }
.auth-btn,.btn-primary { background: linear-gradient(135deg,#4f46e5,#6d5de7); border-color: #4f46e5; color: #fff; }
.auth-btn:hover,.btn-primary:hover { background: linear-gradient(135deg,#4338ca,#7e45d8); }
/* The G sits on its own white circle (background set in style.css), so it
   must not inherit the button's white text. Google blue is also the mark
   people recognise. */
.auth-btn .google-g { color: #4285F4; }
.section-eyebrow,.hero-footnote,.art-caption,.art-coordinate,.method-intro,.catalogue-status,.catalogue-note > span:last-child,.guide-library .guide-card-meta { color: #6b7280; }
.status-dot { background: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.hero-copy h1 em,.catalogue-heading h2 em,.home-guides h3 em,.study-story-copy h2 em { color: #4f46e5; }
.hero-art { background: radial-gradient(ellipse at center,rgba(199,210,254,.72),rgba(249,250,251,0) 67%); }
.art-label { border-color: rgba(79,70,229,.18); box-shadow: 0 14px 30px rgba(79,70,229,.09); background: rgba(255,255,255,.94); }
.mini-spark { background: linear-gradient(135deg,#c7d2fe,#e9d5ff); color: #4338ca; }
.footnote-line { background: #818cf8; }
.method-number,.home-guides-list a::before,.study-habits b { color: #6366f1; }
.exam-search input { background: #fff; border-color: rgba(79,70,229,.24); }
#home-cert-grid .hub-card { background: linear-gradient(145deg,#fff,#f5f3ff); border-color: rgba(79,70,229,.14); }
#home-cert-grid .hub-card::after { color: rgba(79,70,229,.06); }
#home-cert-grid .hub-card:hover { background: linear-gradient(145deg,#fff,#eef2ff); border-color: rgba(79,70,229,.42); }
.cert-availability { color: #4338ca; border-color: rgba(79,70,229,.24); background: #eef2ff; }
.cert-provider { color: #c74634; }
.catalogue-note { background: linear-gradient(145deg,#27265f,#312e81 58%,#4c1d95); color: #fff; }
.catalogue-note .note-mark { color: #c4b5fd; }
.catalogue-note .section-eyebrow,.catalogue-note p,.catalogue-note > span:last-child { color: #ddd6fe; }
.home-guides-list a:hover,.story-feedback { color: #4f46e5; border-color: #6366f1; }
.hub-card-icon { background: linear-gradient(135deg,#eef2ff,#f3e8ff); color: #4f46e5; }
.hub-card:hover { border-color: rgba(79,70,229,.42); box-shadow: 0 14px 28px rgba(79,70,229,.09); }
.topic-card { border-top-color: var(--topic-color,#6366f1); }
.site-footer { background: #f3f4f6; }
.guide-cta { background: linear-gradient(135deg,#eef2ff,#f3e8ff); border: 1px solid rgba(79,70,229,.14); }
.library-hero { background: radial-gradient(circle at 82% 18%,rgba(168,85,247,.23),transparent 33%),linear-gradient(140deg,#171742,#312e81 64%,#4c1d95); }
.library-hero .section-eyebrow,.library-art-label,.library-art-bottom,.library-hero p.library-intro { color: #ddd6fe; }
.library-hero .status-dot { background: #c4b5fd; box-shadow: 0 0 0 4px rgba(196,181,253,.12); }
.library-hero h1 em,.library-hero-link span { color: #c4b5fd; }
.library-hero-link { border-color: rgba(221,214,254,.65); }
.library-hero-art::before { border-color: rgba(196,181,253,.16); box-shadow: 0 0 0 38px rgba(196,181,253,.05),0 0 0 76px rgba(196,181,253,.025); }
.book-layer { border-color: rgba(255,255,255,.35); box-shadow: 14px 18px 0 -1px #171742,14px 18px 0 0 rgba(196,181,253,.28); }
.book-one { background: #6366f1; color: #fff; }
.book-two { background: #a5b4fc; color: #1e1b4b; }
.book-three { background: #ede9fe; color: #312e81; }
.book-four { background: #c4b5fd; color: #312e81; }
.track-dot { background: #a855f7; }
.domain-card-visual { background: #eef2ff; }
.domain-card-visual svg { color: #4f46e5; }
.tone-1 { background: #f3e8ff; }.tone-1 svg { color: #9333ea; }
.tone-2 { background: #e0e7ff; }.tone-2 svg { color: #4f46e5; }
.tone-3 { background: #ede9fe; }.tone-3 svg { color: #7c3aed; }
.domain-number { color: #6366f1; }
.guide-library .guide-scope,.guide-reading .guide-scope,.reading-side-note { background: linear-gradient(135deg,#eef2ff,#f5f3ff); }
.reading-sidebar nav a:hover { background: #f3f4ff; }
.reading-sidebar nav a[aria-current='page'] { background: #e0e7ff; color: #312e81; }
.study-story-photo::after { content: ''; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(135deg,rgba(79,70,229,.12),transparent 48%,rgba(168,85,247,.09)); pointer-events: none; }
.study-story-photo figcaption { z-index: 1; background: rgba(30,27,75,.84); }
.community-spark,.feedback-dialog h2 em { color: #7c3aed; }
.social-controls a:hover,.social-controls button:hover { background: #e0e7ff; }
.feedback-dialog { background: #f9fafb; }
.feedback-dialog::backdrop { background: rgba(30,27,75,.78); }
.feedback-form select,.feedback-form textarea { background: #fff; border-color: rgba(79,70,229,.28); }
.reading-progress { background: linear-gradient(90deg,#4f46e5,#a855f7); }
:where(a,button,input,summary):focus-visible { outline-color: #6366f1; }

/* ---------------------------------------------------------------------------
   Responsive corrections — typography, touch and mobile rhythm.

   Measured before this block, across 1440/1280/1024/768/375:
     h1        72 / 64 / 72 / 61 / 48 px   (grew as the screen narrowed)
     body      15 / 15 / 15 / 13.4 / 14.1  (dropped below a readable floor)
     hero      2 columns all the way down to 620px
     4 tap targets under 32px, the smallest 19px tall

   The h1 and body sizes are fixed above by replacing four competing
   declarations with one curve. This block covers layout and touch.
--------------------------------------------------------------------------- */

/* The hero held two columns to 620px, so at 768px it was two ~350px columns
   squeezed together. Stack it as soon as the columns stop earning their space. */
@media (max-width: 900px) {
  .discovery-hero { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-bottom: 20px; }
  .hero-description { max-width: 60ch; }
  .hero-art { margin-top: 18px; }
}

/* Touch targets. Applied only below 900px, where a finger is the likely input —
   desktop pointer targets can safely be smaller and the design depends on it.
   44px is Apple's minimum; Google asks 48. Inline links inside prose are
   deliberately excluded: padding them out would wreck the line rhythm. */
@media (max-width: 900px) {
  .btn,
  .auth-btn,
  .brand,
  .primary-nav a,
  .hero-secondary,
  .home-guides-all,
  .catalogue-cta,
  .exam-catalogue a,
  .community-invite .btn,
  .site-footer .footer-guides a,
  .story-feedback,
  .social-controls a,
  .copy-page-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Standalone CTAs get horizontal room to match. */
  .btn, .auth-btn, .community-invite .btn { padding-inline: 22px; }

  /* The search field is a touch target too. */
  .exam-search input { min-height: 48px; }
}

/* Vertical rhythm. The mobile page ran to 3605px at 375 wide for ~250 words,
   because desktop section spacing was never reduced. */
@media (max-width: 620px) {
  .discovery-hero { padding-top: 18px; }
  .hero-copy h1 { margin: 18px 0; }
  .hero-description { margin-top: 20px; }
  .hero-footnote { margin-top: 22px; }
  .method-strip { margin-block: 0 34px; padding: 20px 0; }
  .home-guides { margin-top: 36px; padding-block: 26px 12px; }
  .exam-catalogue { margin-top: 8px; }
}

/* Very narrow phones. 320px is still a real width and the layout should not
   start compromising until it has to. */
@media (max-width: 360px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .home-guides-list { grid-template-columns: 1fr; }
}

/* Support link in the header. Visible on every page by design, but styled as an
   outline chip rather than a filled button: present and findable, never
   competing with the primary action. */
.primary-nav .nav-support {
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 15px;
  font-weight: 700;
  transition: var(--transition);
}

.primary-nav .nav-support:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}
