/* Final shared layer: deliberate navigation, readable text, touch-friendly controls. */
html{scroll-padding-top:20px}
body{font-size:18px}
.site-header{position:relative;top:auto;width:min(1160px,calc(100% - 40px));min-height:76px;margin:12px auto 0;padding:12px 20px;border-radius:12px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--white);gap:24px;flex-wrap:nowrap}
.site-header .brand{font-size:20px;gap:10px;min-height:48px;min-width:0;flex-shrink:1}
.site-header .brand-mark{width:38px;height:38px;flex-shrink:0}
.site-header #main-nav{display:flex;position:static;flex-direction:row;align-items:center;gap:8px;padding:0;border:0;box-shadow:none;max-height:none;overflow:visible;background:transparent}
.site-header #main-nav>a{display:flex;align-items:center;min-height:48px;padding:10px 13px;font-size:16px;white-space:nowrap;line-height:1.3;border-radius:6px}
.site-header #main-nav>a:hover{background:#f1e8df;color:var(--berry-dark)}
.site-header .menu-button{display:none;align-items:center;justify-content:center;gap:9px;min-width:88px;min-height:48px;border-radius:8px;font-size:16px;color:var(--berry-dark)}
.site-header #main-nav .section-current{background:#f1e8df;text-decoration:underline;text-underline-offset:5px}
:is(a,button,input,select,summary):focus-visible{outline:3px solid #783d4d;outline-offset:4px}
.navigation-rail{width:min(1120px,calc(100% - 40px));font-size:15px;line-height:1.5;gap:8px;margin:18px auto 10px}
.navigation-rail a{min-height:44px}.navigation-rail span{max-width:100%}
:is(.article-body,.hero-lead,.resource-item p,.article-teaser p,.about-copy p,.tool-section>p,.material-body>p){font-size:18px;line-height:1.75}
.article-body{max-width:70ch}.article-body :is(p,li){overflow-wrap:anywhere}
.article-body h2{line-height:1.3}
.article-aside{top:20px;max-height:none}
:is(.button,.mirror-download,.material-download,.back-to-top){min-height:48px}
.back-to-top{width:48px;height:48px;bottom:max(18px,env(safe-area-inset-bottom));right:max(18px,env(safe-area-inset-right))}
:is(.catalog-controls input,.catalog-controls select,.activity-form select,.problem-picker select){min-height:48px;font-size:18px}
:is(.resource-details summary,.materials-guidance summary,.material-body summary,.collection-intro summary){min-height:48px;padding-block:12px;line-height:1.5}
.resources-redesign .category-pills button{min-height:48px;font-size:14px}
.site-footer{font-size:16px;line-height:1.65;margin-top:20px}
.site-footer a{min-height:44px;display:inline-flex;align-items:center;overflow-wrap:anywhere;max-width:100%}
.site-footer .footer-contact{min-width:0}.site-footer .footer-contact a{word-break:break-word}
.simple-home{width:min(1120px,calc(100% - 48px));margin:0 auto}
.home-intro{padding:52px 0 28px;max-width:800px}
.home-intro .section-kicker{font-size:13px;letter-spacing:.1em;margin:0 0 12px}
.home-intro h1{font-size:clamp(32px,3.8vw,48px);line-height:1.15;margin:0 0 18px;max-width:800px;letter-spacing:-.025em}
.home-intro>p:last-child{font-size:19px;line-height:1.65;color:var(--ink-soft);max-width:620px;margin:0}
.home-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-bottom:44px}
.choice-card{display:flex;flex-direction:column;min-width:0;padding:26px 24px 22px;border:1px solid #d6caba;border-top:4px solid var(--berry-dark);border-radius:12px;background:var(--white);text-decoration:none;transition:border-color .15s,background .15s}
.choice-help{border-top-color:#aa7883;background:#f5eae6}.choice-activity{border-top-color:#68704a;background:#f0f0e5}
.choice-card:hover{border-color:var(--berry-dark);background:#f2e8dd}
.choice-label{color:var(--berry-dark);font-size:13px;font-weight:700;margin-bottom:16px;letter-spacing:.025em}
.choice-card h2{font-family:'DM Sans',sans-serif;font-size:23px;line-height:1.3;letter-spacing:-.02em;margin:0 0 13px;max-width:15ch}
.choice-card>p{font-size:17px;line-height:1.6;color:var(--ink-soft);margin:0 0 24px}
.choice-action{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #dacebf;padding-top:15px;margin-top:auto;min-height:48px;font-size:15px;font-weight:700;color:var(--berry-dark)}
.choice-action>span{font-size:22px}
.home-author{display:grid;grid-template-columns:1fr 1.35fr;gap:50px;border-top:1px solid var(--line);padding:32px 0 36px;align-items:start}
.home-author .section-kicker{font-size:12px;margin:0 0 10px}.home-author h2{font-size:29px;margin:0 0 10px}.home-author p{font-size:17px;line-height:1.7;color:var(--ink-soft);margin-bottom:12px}.home-author .home-qualifications{font-size:15px;color:#59623f;max-width:32ch}
.quiet-link{display:inline-flex;align-items:center;gap:12px;min-height:48px;font-size:16px;font-weight:700;color:var(--berry-dark);text-decoration:underline;text-underline-offset:5px}
.hub-intro,.hub-grid,.hub-secondary{width:min(1000px,calc(100% - 48px));margin-inline:auto}
.hub-intro{padding:28px 0 28px}.hub-intro .section-kicker{font-size:13px;margin-bottom:12px}.hub-intro h1{font-size:clamp(30px,3.6vw,43px);max-width:780px;margin:0 0 16px;line-height:1.2}.hub-intro>p:last-child{font-size:19px;color:var(--ink-soft);max-width:65ch;margin:0;line-height:1.7}
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-bottom:32px}
.hub-card{display:flex;flex-direction:column;padding:26px;background:var(--white);border:1px solid var(--line);border-radius:12px;text-decoration:none;min-width:0}.hub-card:hover{border-color:var(--berry-dark);background:#f4ece3}.hub-card h2{font-family:'DM Sans',sans-serif;font-size:23px;line-height:1.3;margin:0 0 12px;letter-spacing:-.02em}.hub-card p{font-size:18px;line-height:1.7;color:var(--ink-soft);margin:0 0 20px}.hub-card>span{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;min-height:44px;font-size:16px;font-weight:700;color:var(--berry-dark)}
.hub-secondary{padding:0 0 36px}.hub-secondary details{padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.hub-secondary summary{min-height:48px;padding:12px 0;font-weight:600;color:var(--berry-dark)}.hub-secondary p{font-size:18px;margin-top:10px;max-width:65ch}
@media(max-width:900px){
 .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;width:calc(100% - 28px);min-height:72px;padding:9px 12px;margin-top:8px}
 .site-header .menu-button{display:inline-flex}.site-header #main-nav{display:none;grid-column:1/-1;position:static;flex-direction:column;align-items:stretch;gap:0;padding-top:10px;margin-top:8px;border-top:1px solid var(--line);border-radius:0;max-height:none;overflow:visible;width:100%;box-shadow:none}
 .site-header #main-nav.open{display:flex}.site-header #main-nav>a{font-size:18px;min-height:50px;padding:12px;border-radius:6px}
 .home-intro{padding:34px 0 24px}.home-choices{gap:12px}.choice-card{padding:20px 17px}.choice-card h2{font-size:21px}.choice-card>p{font-size:17px}.choice-action{font-size:14px}.home-author{gap:28px}
 .site-footer{grid-template-columns:1fr 1fr}.site-footer>div:first-child{grid-column:1/-1}.site-footer .footer-contact{text-align:left}
}
@media(max-width:700px){
 .simple-home,.hub-intro,.hub-grid,.hub-secondary{width:calc(100% - 36px)}
 .home-intro{padding:25px 0 20px}.home-intro h1{font-size:32px;margin-bottom:12px}.home-intro .section-kicker{display:none}.home-intro>p:last-child{font-size:18px;line-height:1.55}
 .home-choices{grid-template-columns:1fr;gap:12px;padding-bottom:28px}.choice-card{padding:18px 20px 13px;border-top-width:3px}.choice-label{display:none}.choice-card h2{font-size:22px;line-height:1.3;max-width:none;margin-bottom:7px}.choice-card>p{font-size:18px;line-height:1.5;margin-bottom:10px}.choice-action{font-size:15px;padding-top:9px;min-height:42px}
 .home-author{grid-template-columns:1fr;gap:12px;padding:25px 0}.home-author h2{font-size:28px}.home-author p{font-size:18px}.home-author .home-qualifications{font-size:16px;max-width:none}
 .hub-grid{grid-template-columns:1fr;gap:12px}.hub-intro{padding-top:18px}.hub-intro h1{font-size:31px}.hub-intro>p:last-child{font-size:18px}.hub-card{padding:20px}.hub-card h2{font-size:22px}.hub-card p{margin-bottom:12px}
 .navigation-rail{margin-top:12px;margin-bottom:6px;font-size:14px}
 .page-hero h1,.tool-hero h1{font-size:30px;line-height:1.25}.page-hero .hero-lead{font-size:18px;line-height:1.7}
 .about,.for-whom{width:calc(100% - 36px)}.about h2{font-size:29px}
 .article-teaser p,.resource-item p,.article-body,.article-body p,.article-body li,.tool-section>p,.material-body>p,.resources-redesign .material-body .material-skills,.resources-redesign .material-body .material-level{font-size:18px;line-height:1.7}
 .material-body details p{font-size:17px;line-height:1.7}
 .site-footer{width:calc(100% - 36px);grid-template-columns:1fr;gap:16px;font-size:16px;padding-top:24px}.site-footer>*{grid-column:1!important}.site-footer .footer-links{gap:4px 18px}.site-footer .footer-contact{margin:0}
}
@media(max-width:360px){.site-header .brand{font-size:18px}.site-header .brand-mark{width:30px;height:30px}.site-header .menu-button{min-width:78px;padding:8px}.home-intro h1{font-size:29px}.choice-card h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
@media print{.site-header,.home-choices,.home-author,.hub-secondary,.navigation-rail{display:none!important}.hub-grid{display:block}.hub-card{break-inside:avoid}.simple-home{width:100%}}
