/* New learning pages extend the original EvoCat design. */
:root { --text-muted: #9494a3; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
button { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 5px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 300; padding: 12px 20px; background: var(--text-primary); color: #000; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.hero-phone-img { object-fit: contain; }
.lessons-link { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; }
.lessons-link a { color: var(--text-primary); text-underline-offset: 5px; }
.blog-card { justify-content: space-between; gap: 0; padding: 0; overflow: hidden; }
.blog-card h3 { font-size: 1.35rem; line-height: 1.35; }
.blog-card-link { font-size: 1rem; color: var(--text-secondary); letter-spacing: 0; }
.cat-detail-panel { scroll-margin-top: 90px; }
html:not(.cats-enhanced) .cat-detail-panel { display: flex; margin-bottom: 3rem; }
.cat-tab { min-height: 44px; }
.mobile-menu-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.footer-links a, .footer-copy, .trust-strip p { font-size: .95rem; }
.footer-brand-name { color: var(--text-primary); }
.text-link, .back-link { display: inline-block; color: var(--text-primary); font-size: 1rem; text-underline-offset: 5px; }
.btn-outline { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-strong); }
.small, .eyebrow { color: var(--text-muted); font: 400 .95rem/1.65 var(--font); letter-spacing: 0; text-transform: none; }
em { font-family: inherit; font-style: normal; color: inherit; }
.page-header, .about-page, .reset-page { padding-top: 145px; padding-bottom: 65px; }
.page-header h1, .about-page h1, .reset-page h1 { max-width: 780px; margin: 0 0 1.5rem; }
.page-header > p:not(.eyebrow) { max-width: 650px; font-size: 1.15rem; margin-bottom: 2rem; }
.page-header .eyebrow, .about-page > .eyebrow, .reset-page > .eyebrow { margin-bottom: 1rem; }
.library { padding-bottom: 5rem; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 2rem; }
.library-heading h2 { font-size: 1.6rem; }
.library-heading .eyebrow { display: none; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.lesson-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-card); text-decoration: none; }
.lesson-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #1a1a1c; }
.lesson-card-content { display: flex; flex: 1; flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
.lesson-card-content > p { font-size: 1rem; }
.blog-card .blog-card-link { margin-top: auto; }
.article-cover { margin: 2rem 0 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); }
.article-cover .lesson-cover { aspect-ratio: 3 / 2; }
.lesson-card:hover { border-color: var(--border-strong); }
.lesson-card { transition: border-color .2s, background .2s; }
.lesson-card:hover, .lesson-card:focus-visible { background: #141416; border-color: #696971; }
.line-icon { width: 24px; height: 24px; flex-shrink: 0; filter: invert(1); opacity: .85; }
.lesson-card > .line-icon, .blog-card > .line-icon { width: 28px; height: 28px; }
.card-bottom .line-icon { width: 20px; height: 20px; }
.library-controls { display: flex; gap: 1rem; margin-bottom: 2rem; }
.lesson-search { display: flex; align-items: center; flex: 1; gap: 1rem; padding-left: 1.25rem; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg-card); }
.lesson-search:focus-within { outline: 2px solid var(--text-primary); outline-offset: 3px; }
.lesson-search input { min-width: 0; width: 100%; padding: 1rem 1.25rem 1rem 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; outline: none; }
.lesson-search input::placeholder { color: var(--text-muted); opacity: 1; }
.topic-select select { width: 100%; height: 100%; min-height: 56px; padding: 1rem; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg-card); color: var(--text-primary); font: inherit; color-scheme: dark; }
.empty-lessons { padding: 3rem 1.5rem; text-align: center; border: 1px solid var(--border); border-radius: var(--r); }
.empty-lessons p { margin: 1rem 0 2rem; }
.guide-start { padding-bottom: 5rem; }
.guide-start > h2 { margin-bottom: 2rem; font-size: 2rem; }
.guide-body { padding-bottom: 4rem; }
.guide-steps li { margin-bottom: 2rem; padding-left: .5rem; }
.guide-steps h3 { font-size: 1.35rem; color: var(--text-primary); margin-bottom: .75rem; }
.guide-body .faq-body p { margin-bottom: 0; }
.lesson-card h3 { font-size: 1.4rem; line-height: 1.3; }
.lesson-card > p { font-size: 1rem; }
.card-bottom { display: flex; justify-content: space-between; gap: 15px; color: var(--text-secondary); margin-top: auto; font-size: 1rem; }
.editorial-note { padding-top: 3rem; padding-bottom: 5rem; border-top: 1px solid var(--border); }
.editorial-note h2 { font-size: 2rem; margin: .8rem 0 1.5rem; }
.editorial-note > p:not(.eyebrow) { max-width: 740px; margin-bottom: 1.5rem; font-size: 1.1rem; }
.article-shell { padding-top: 105px; }
.breadcrumbs { display: flex; gap: 12px; flex-wrap: wrap; font-size: .95rem; color: var(--text-secondary); }
.breadcrumbs a { text-decoration: none; }
.article-header { max-width: 760px; margin: 3rem 0 3rem auto; }
.article-header h1 { font-size: clamp(2.3rem,4vw,3.3rem); margin: 1rem 0 1.5rem; }
.article-intro { font-size: 1.2rem; line-height: 1.75; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 1.75rem; font-size: .95rem; color: var(--text-secondary); }
.article-meta a { text-underline-offset: 4px; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 30px; }
.article-toc { position: sticky; top: 100px; align-self: start; padding-right: 20px; }
.article-toc > p { margin-bottom: 1rem; }
.article-toc a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 1rem; line-height: 1.5; margin-bottom: 1rem; }
.article-toc a:hover { color: var(--text-primary); }
.article-body { max-width: 760px; }
.article-body section { margin-bottom: 3rem; }
.article-body h2 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 1.25rem; }
.article-body p, .article-body li { font-size: 1.1rem; line-height: 1.85; color: #aaaab8; margin-bottom: 1.25rem; }
.article-body a { text-underline-offset: 4px; }
.article-body strong { color: var(--text-primary); }
.article-body ul, .article-body ol { padding-left: 1.5rem; }
.exercise { padding: 2rem; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg-card); }
.exercise p:last-child { margin-bottom: 0; }
.article-body .eyebrow { font-size: .95rem; }
.article-body .takeaway { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3rem; }
.sources { border-top: 1px solid var(--border); padding-top: 2rem; }
.sources li, .sources li p, .article-body .small { font-size: 1rem; }
.article-app { padding: 2rem; border-radius: var(--r); background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 2rem; }
.article-app h2 { font-size: 1.6rem; }
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section > .section-heading { margin-bottom: 2rem; }
.section-heading .eyebrow { display: none; }
.section-heading h2 { font-size: 2rem; }
.about-page { max-width: 850px; }
.about-page .article-body { margin-top: 3rem; }
.about-page .article-body > h2 { margin-top: 2.5rem; }
.reset-page { max-width: 850px; text-align: center; }
.reset-page h1 { margin-inline: auto; }
.reset-intro { font-size: 1.1rem; }
.timer-face { width: 230px; height: 230px; border: 2px solid var(--border-strong); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 3rem auto 2rem; background: var(--bg-surface); }
.timer-face > span:first-child { font-size: 5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.timer-controls { display: flex; justify-content: center; align-items: center; gap: 25px; margin-top: 1.5rem; }
.timer-controls .text-link { background: transparent; border: 0; cursor: pointer; text-decoration: underline; }
.reset-next { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 3rem; }
.reset-next h2 { font-size: 2rem; margin: 1rem 0 2rem; }
.reset-choices { display: flex; flex-direction: column; gap: 1rem; }
.reset-choices a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; font-size: 1.1rem; }
.reset-choices span { color: var(--text-secondary); font-size: 1rem; }
.reset-next > .small { margin-top: 2rem; }
@media(max-width: 900px) {
  .nav-links { position: absolute; top: 64px; left: 0; width: 100%; flex-direction: column; padding: .5rem 0; gap: 0; background: var(--bg-base); text-align: center; border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
  .nav-links a { display: block; padding: .9rem 1rem; }
  html:not(.nav-enhanced) .main-nav { position: relative; }
  html:not(.nav-enhanced) .nav-container { height: auto; flex-wrap: wrap; padding-block: 1rem; }
  html:not(.nav-enhanced) .nav-links { display: flex; position: static; }
  .hero-phone-img { max-width: 100%; height: auto; max-height: 300px; }
  .hero-visual, .hero-phone-wrap { max-width: 100%; }
  html:not(.cats-enhanced) .cat-detail-panel { flex-direction: column; }
  .lesson-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-header { margin-left: 0; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; padding: 1.5rem 0; border-block: 1px solid var(--border); }
  .article-toc a { margin-bottom: .65rem; }
}
@media(max-width: 560px) {
  .hero-phone-img { max-height: 240px; }
  .hero-actions .btn { white-space: normal; }
  .lesson-grid { grid-template-columns: 1fr; }
  .page-header, .about-page, .reset-page { padding-top: 110px; }
  .page-header h1, .about-page h1, .reset-page h1 { font-size: 2.6rem; }
  .library-heading { display: block; }
  .library-heading h2 { margin-bottom: 1rem; }
  .library-controls { flex-direction: column; }
  .topic-select { width: 100%; }
  .article-header h1 { font-size: 2.25rem; }
  .article-intro { font-size: 1.1rem; }
  .exercise, .article-app { padding: 1.5rem; }
  .article-app .btn { white-space: normal; }
  .reset-intro br { display: none; }
  .reset-choices a { flex-direction: column; align-items: start; }
  .timer-controls { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
