/* Learning-first refinements. Uses the theme's existing light/dark palette. */
:root { --hl-mint-deep: #146b61; }
.site-brand__name em, .eapd-section__title em, #eapd-paths-heading em { background: none; color: var(--accent); }
.eapd-footer__bottom, .eapd-footer__bottom a { color: var(--text-muted); }
:root:not([data-theme="dark"]) .eapd-path--beginner .eapd-path__cta { color: #146b61; }
:root:not([data-theme="dark"]) .eapd-path--intermediate .eapd-path__cta { color: #8f5311; }
body.home header { margin-bottom: 0; }
.eapd-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.eapd-topbar__market { min-width: 0; }
.eapd-topbar__actions { margin-left: auto; flex-shrink: 0; }
.eapd-market-stats { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.eapd-market-stats li { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-size: .78rem; line-height: 1.5; }
.eapd-market-stats li > span { color: var(--text-muted); }
.eapd-market-stats strong { color: var(--accent); font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 6ch; }
.eapd-topbar ul.header--menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.eapd-topbar ul.header--menu > li { display: flex; align-items: center; float: none; margin: 0; padding: 0; line-height: 1; }
.eapd-topbar ul.header--menu > li > a,
.eapd-topbar ul.header--menu > li > button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 44px; min-width: 44px; padding: 0; line-height: 1; border-radius: 50%; }
.eapd-topbar ul.header--menu > li > a.eapd-social-link,
.eapd-topbar ul.header--menu .theme-toggle { width: 44px; }
.eapd-topbar ul.header--menu > li:hover { background: transparent; }
.eapd-topbar ul.header--menu a.eapd-social-link:hover { transform: none; }
@media (min-width: 768px) and (max-width: 1100px) {
    .eapd-market-stats { gap: 20px; }
    .eapd-market-stats li { flex-direction: column; align-items: flex-start; gap: 0; font-size: .7rem; }
}
@media (max-width: 767px) { .eapd-topbar__market { display: none; } .eapd-topbar { min-height: 48px; } }
.eapd-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    transform: translateY(-180%);
    z-index: 10000;
    padding: 14px 20px;
    background: var(--bg-page);
    color: var(--text-heading);
    border: 2px solid var(--accent);
    border-radius: 8px;
}
.eapd-skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
#main-content:focus { outline: none; }
.eapd-hero { padding: 32px 0 40px; }
.eapd-hero__inner { grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.eapd-hero__title { font-size: clamp(2.3rem, 4.3vw, 3.7rem); line-height: 1.1; }
.eapd-hero__title em { background: none; color: var(--accent); }
.eapd-hero__trust { font-size: .85rem; gap: 12px; }
.eapd-learning, .eapd-learning *, .eapd-mobile-toggle { box-sizing: border-box; }
.eapd-learning {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    padding: clamp(20px, 2.5vw, 32px);
    box-shadow: 0 16px 50px rgba(11, 30, 26, .06);
    min-width: 0;
}
.eapd-learning__heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.eapd-learning__heading h2 { font-size: 1.75rem; letter-spacing: -.04em; color: var(--text-heading); line-height: 1.2; margin: 0 0 6px; }
.eapd-learning__heading p { font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.eapd-learning__pie {
    flex: 0 0 44px;
    height: 44px;
    border: 5px solid #f3c97a;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--bg-card) 0deg 65deg, #50d2c1 65deg 360deg);
    transform: rotate(-18deg);
}
.eapd-learning__path { border-top: 1px solid var(--border); }
.eapd-learning__path summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    padding: 10px 0;
    color: var(--text-heading);
    font-size: .95rem;
    font-weight: 600;
    list-style: none;
}
.eapd-learning__path summary::-webkit-details-marker { display: none; }
.eapd-learning__path summary > span { font-size: 1.25rem; color: var(--accent); flex-shrink: 0; }
.eapd-learning__path[open] summary > span { transform: rotate(45deg); }
.eapd-learning__path[open] summary { color: var(--accent); }
.eapd-learning__description { font-size: .85rem; line-height: 1.5; color: var(--text-muted); margin: 0 0 14px; }
.eapd-learning__steps { counter-reset: lesson; list-style: none; padding: 0; margin: 0 0 20px; }
.eapd-learning__steps li { counter-increment: lesson; display: flex; gap: 12px; align-items: center; margin: 0; }
.eapd-learning__steps li::before { content: '0' counter(lesson); color: var(--accent); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.eapd-learning__steps a { display: flex; justify-content: space-between; align-items: center; flex: 1; gap: 12px; padding: 9px 0; color: var(--text-heading); text-decoration: none; border-bottom: 1px solid var(--border); }
.eapd-learning__steps li:last-child a { border-bottom: 0; }
.eapd-learning__steps a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.eapd-learning__steps strong { display: block; font-size: .94rem; line-height: 1.4; font-weight: 600; }
.eapd-learning__steps small { display: block; font-size: .8rem; line-height: 1.5; color: var(--text-muted); margin-top: 3px; }
.eapd-learning__steps a > span:last-child { color: var(--accent); }
.eapd-mobile-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--text-heading); font-weight: 600; cursor: pointer; list-style: none; }
.eapd-mobile-toggle::-webkit-details-marker { display: none; }
.eapd-mobile-toggle > span { font-size: 1.4rem; }
.eapd-mobile-navigation[open] .eapd-mobile-toggle > span { transform: rotate(45deg); }
.eapd-mobile-links { padding: 8px 0 20px; }
.eapd-mobile-links ul { list-style: none; }
.eapd-mobile-links a { min-height: 44px; }
.eapd-search { min-height: 44px; }
.eapd-search button[type="submit"], .theme-toggle { min-width: 44px; min-height: 44px; }
.eapd-feat__cat { color: var(--accent); }
.eapd-feat__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .76rem; line-height: 1.5; color: var(--text-muted); margin-top: auto; padding-top: 12px; }
.eapd-feat:focus-visible { border-color: var(--accent); }
.eapd-feat__placeholder { height: 100%; display: grid; place-items: center; color: #97fce4; font-size: 2.2rem; }
.eapd-glossary-pill { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1024px) { nav.mobile--menu { display: none; } }
@media (max-width: 900px) {
    .eapd-hero__inner { grid-template-columns: 1fr; gap: 28px; }
    .eapd-hero { padding: 24px 0 28px; }
    .eapd-hero__copy { max-width: 650px; }
}
@media (max-width: 600px) {
    nav.mobile--menu { padding: 4px 0; margin-bottom: 0; }
    .eapd-hero__ctas { gap: 10px; margin-bottom: 20px; }
    .eapd-hero__ctas .eapd-btn { justify-content: center; flex: 1 1 auto; }
    .eapd-hero__sub { margin-bottom: 24px; }
    .eapd-learning { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
