/* Larger reading sizes and bounded panels keep the page within its viewport. */
:root{--muted:#4e635c;--line:#c9d5c5}
body{grid-template-rows:28px 82px minmax(0,1fr) 48px}
.preview-banner{font-size:12px}
.site-header nav{gap:8px}
.site-header nav>a,.site-header nav summary{font-size:14px;padding:12px;min-height:44px;display:flex;align-items:center}
.site-header nav .nav-cta{padding:12px 20px;gap:14px}
.nav-group{position:relative}
.nav-group summary{cursor:pointer;list-style:none;gap:8px;border-radius:24px}
.nav-group summary::after{content:'⌄'}
.nav-group[open]>summary,.nav-group:has([aria-current=page])>summary{background:#e3ecdb}
.nav-group>div{position:absolute;top:100%;right:0;width:260px;padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 30px #142e3920}
.nav-group a{display:block;font-size:14px;line-height:1.5;padding:12px;border-radius:9px}
.nav-group a:hover{background:#e3ecdb}
.quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #abbca5;border-radius:25px;padding:10px 16px;background:#f7f8f1;font-size:14px;font-weight:600;line-height:1.35}
.quiet-button:hover{background:#e4edda}
.quiet-button:disabled{opacity:.45;cursor:default}
main .eyebrow{font-size:11px;letter-spacing:.09em}
main .section-heading :is(h2,.page-heading){font-size:clamp(30px,3.6vw,46px)}
main .section-heading{gap:30px}
main .section-aside p{font-size:15px;line-height:1.55}
main .section-aside .subtle,main .data-note{font-size:12px}
main>.hero{gap:14px;padding-top:12px}
.hero h1{font-size:clamp(48px,6vw,78px)}
.hero-copy{grid-template-columns:minmax(0,1fr) 370px}
.hero-intro p{font-size:16px;line-height:1.6}
.hero-intro .button,.hero-intro .text-link{font-size:14px;min-height:44px}
.hero-intro .text-link{margin-top:5px}
.hero-copy .eyebrow{font-size:12px;margin-bottom:12px}
.hero-photo figcaption{font-size:11px}
.home-next-copy .eyebrow{font-size:11px}
.home-next-copy :is(h2,.page-heading){font-size:22px}
.home-next-date strong{font-size:27px;font-weight:700}
.home-next-link{font-size:14px;min-height:44px}
.river-facts strong{font-size:30px}
.river-facts strong small{font-size:16px}
.river-facts>div>span,.river-facts>p{font-size:12px}
.river-facts{gap:24px;padding-block:8px}
.river-facts button{font-size:12px;min-height:30px}
.app-footer{height:48px;gap:12px;font-size:12px}
.app-footer>p{max-width:none;font-size:12px}
.app-footer>div{gap:16px}
.app-footer button{font-size:12px;min-height:44px}
.map-presets{display:flex;gap:8px;flex-wrap:wrap}
.map-presets button{font-size:14px;min-height:40px;padding:8px 16px;background:#f6f8ef;border:1px solid #bfd0be;border-radius:24px}
.map-presets button[aria-pressed=true]{background:var(--ink);color:white}
.map-section>.shell{gap:10px;grid-template-rows:auto auto auto minmax(0,1fr) auto}
.map-section .map-base-tabs button,.map-layers-toggle{font-size:13px;min-height:44px}
.map-section .map-search input{font-size:15px;min-height:44px}
.map-search ul{width:min(500px,calc(100vw - 36px));max-height:320px;overflow:auto}
.map-search li button{font-size:14px;display:grid;gap:5px;padding:12px;min-height:66px}
.map-search li small{font-size:12px;white-space:normal}
.map-search .no-result{font-size:14px}
.map-frame{grid-template-columns:minmax(0,1fr) 310px}
.area-panel{padding:20px;overflow:auto;overscroll-behavior:contain}
.area-panel h3{font-size:28px}
.area-panel>.eyebrow{font-size:11px}
.area-panel .area-code,.area-panel .area-caution,.area-panel .area-stats span{font-size:12px;line-height:1.55}
.area-panel .area-peats{font-size:13px;line-height:1.6}
.area-panel .area-peats strong{font-size:15px}
.area-panel .route-button,.area-panel .focus-area,.area-panel .back-basin,.area-panel .area-details-btn{font-size:13px;min-height:40px}
.area-panel .area-stats{gap:16px}
.area-panel .area-stats strong{font-size:26px}
.area-share{width:100%;margin:8px 0 14px}
.mobile-area-summary{display:none}
.map-tools button{width:44px;height:44px}
.map-tools{bottom:64px}
.map-scale{position:absolute;right:16px;bottom:16px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;background:#f5f7eeed;padding:6px 10px;border-radius:9px;pointer-events:none}
.map-scale span{height:6px;border:solid #183a30;border-width:0 2px 2px}
.map-legend{font-size:10px;bottom:16px;max-width:calc(100% - 145px);flex-wrap:wrap;border-radius:12px}
.map-caption,.map-caption button{font-size:11px;line-height:1.5}
.map-layer-row label,.map-layer-help,.map-layer-row output{font-size:13px}
.map-layer-row p,.map-layer-disclosure{font-size:12px;line-height:1.55}
.map-layers-panel{max-width:min(400px,calc(100% - 24px))}
.map-layer-row{padding-block:12px}
#area-layer path{fill-opacity:.35}
#area-layer path.selected{fill-opacity:.85}
#kohteet .project-copy h3{font-size:28px;min-height:0}
#kohteet .project-copy .eyebrow{font-size:11px}
#kohteet .project-copy>p:not(.eyebrow){font-size:16px;line-height:1.55}
#kohteet .project-copy .restoration-benefit{font-size:14px}
#kohteet .project-link{font-size:14px;min-height:44px}
#kohteet .project-filters button{font-size:13px;min-height:40px}
#kohteet .project-pager{font-size:13px}
#kohteet .project-pager button{width:44px;height:44px}
#kohteet .visual-pill{font-size:11px}
#kohteet .section-footnote,#kohteet .restoration-plan-link{font-size:12px}
#kohteet .section-aside p{font-size:15px}
#kohteet .section-aside .subtle{font-size:12px}
#kohteet .project-copy{padding:20px}
.hub .hub-subnav,.hub .hub-subnav button,.hub .hub-toolbar label,.hub .hub-toolbar select,.hub .hub-inline-button{font-size:13px}
.hub .hub-subnav a,.hub .hub-subnav button{min-height:36px}
.hub .hub-tabs button{font-size:14px;min-height:44px}
.hub .hub-body p,.hub .hub-body li,.hub .plan-goal{font-size:16px;line-height:1.6}
.hub .hub-body .hub-muted,.hub .hub-limit p{font-size:14px}
.hub .hub-place,.hub .hub-kind,.hub .hub-bottom p,.hub .hub-bottom a,.hub .hub-citations a{font-size:12px}
.hub .hub-index button{min-height:88px}
.hub .hub-index button strong{font-size:15px}
.hub .hub-index button small,.hub .hub-index button span{font-size:12px}
.hub .hub-card h3{font-size:30px;margin-bottom:14px}
.hub .hub-card{padding:24px}
.hub .hub-pager{font-size:13px}
.hub .hub-pager button{min-width:44px;min-height:44px}
.hub .action-card>p,.hub .action-effect strong{font-size:16px;line-height:1.55}
.hub .action-meta,.hub .action-effect small,.hub .action-choice{font-size:13px}
.hub .action-choice{min-height:44px}
.river-view .river-tabs :is(button,a){font-size:14px;min-height:46px}
.river-tabs{gap:20px}
.river-panel p,.river-panel .river-lead{font-size:16px;line-height:1.65}
.river-panel .river-note,.river-panel .river-detail,.river-links,.river-sources{font-size:13px}
.river-story-section h4{font-size:20px}
.river-identity{font-size:12px}
.river-photo figcaption,.river-photo>div span{font-size:12px}
.river-view .section-aside p{font-size:15px}
.knowledge .knowledge-intro,.knowledge #knowledge-panel p{font-size:16px}
.knowledge .knowledge-tabs button,.knowledge .evidence-keys{font-size:13px}
.knowledge #knowledge-panel .eyebrow,.knowledge #knowledge-panel .source-date{font-size:12px}
.phase-list button{font-size:15px}
.phase-detail p{font-size:16px}
.phase-detail .phase-state,.stage-label{font-size:12px}
.phase-list button>span{font-size:13px}
.join-grid>div>p:not(.eyebrow),#participation-detail>p:not(.eyebrow){font-size:16px;line-height:1.6}
.role-options button[data-way]{font-size:14px;min-height:48px}
#participation-detail{padding:16px 0;margin-top:16px}
#participation-detail h3{font-size:28px;margin-bottom:12px}
#participation-detail .river-links{font-size:14px}
.participation-actions{display:flex;flex-wrap:wrap;gap:10px}
.participation-actions>a{width:100%;font-size:14px;min-height:36px;padding:8px 0}
.join-form-wrap{overflow:auto;min-height:0;padding-right:4px}
.vision-view{display:flex;flex-direction:column;gap:22px}
.vision-view .section-heading{margin:0}
.vision-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:28px;min-height:0;flex:1}
.vision-layout>figure{border-radius:20px;overflow:hidden;min-height:0}
.vision-layout img{width:100%;height:100%;object-fit:cover}
.vision-body{overflow:auto;min-height:0;background:#e6eddc;border:1px solid var(--line);border-radius:20px;padding:26px}
.vision-body p{font-size:16px;line-height:1.65}
.vision-body .vision-lead{font-size:22px;line-height:1.4}
.vision-body h3{font-size:23px;margin:24px 0 15px}
.vision-metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-block:1px solid #bcccb4;padding-block:18px;margin:20px 0}
.vision-metrics dt{font-size:12px}
.vision-metrics dd{font-size:28px;font-weight:700;margin:6px 0 0;letter-spacing:-.04em}
.vision-status{list-style:none;padding:0;font-size:15px}
.vision-status li{margin:10px 0}
.vision-status strong{display:block;font-size:12px;color:#275d3e}
.vision-body .vision-note{font-size:13px}
.vision-actions{display:flex;flex-wrap:wrap;gap:12px}
.vision-actions .button{font-size:14px}
dialog{padding:0;overflow:hidden;max-height:calc(100dvh - 28px);width:min(850px,calc(100% - 28px));height:min(880px,calc(100dvh - 28px))}
dialog[open]{display:flex;flex-direction:column}
.dialog-topbar{height:56px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line);background:var(--paper)}
.dialog-topbar>span{font-size:11px;letter-spacing:.1em;font-weight:700}
.dialog-topbar .dialog-close{position:static;width:44px;height:44px;flex:none}
#dialog-content{overflow:auto;min-height:0;padding:24px 30px;flex:1}
#dialog-content>.eyebrow{font-size:12px}
#dialog-content :is(h2,.page-heading){font-size:34px;max-width:100%;margin-bottom:16px}
#dialog-content h3{font-size:23px;margin:20px 0 12px}
#dialog-content p,#dialog-content li{font-size:16px;line-height:1.65}
#dialog-content .subtle,#dialog-content .dialog-note,#dialog-content .source-list small{font-size:13px}
#dialog-content:has(.guide-step-tabs){display:flex;flex-direction:column;overflow:hidden}
#dialog-content:has(.guide-step-tabs)>:is(h2,.page-heading),#dialog-content:has(.guide-step-tabs)>.eyebrow{flex:none}
.guide-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin-bottom:12px}
.guide-step-tabs{display:flex;gap:6px;flex:none;padding:4px;border:1px solid var(--line);border-radius:12px;margin-bottom:8px}
.guide-step-tabs button{flex:1;min-height:44px;background:transparent;font-size:14px;border-radius:8px}
.guide-step-tabs button[aria-selected=true]{background:var(--ink);color:white}
#guide-step-panel{flex:1;min-height:0;overflow:auto;padding:0 8px 12px 0;overscroll-behavior:contain}
.guide-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--line);flex:none;font-size:14px}
.guide-print{align-self:center;flex:none;margin-top:12px}
.guide-diagram{margin:18px 0 12px;max-width:520px;background:#f0f4e8;border-radius:14px;padding:12px}
.guide-diagram svg{width:100%;height:auto}
.guide-diagram figcaption{font-size:12px;line-height:1.5;margin-top:7px;color:var(--muted)}
.work-quantity label,.work-quantity legend{font-size:14px}
.work-quantity input{font-size:18px;min-height:44px}
.work-quantity output{font-size:16px}
.draft-field{display:grid;gap:8px;margin:18px 0;font-size:15px;font-weight:600}
.draft-field input,.draft-field textarea{padding:12px;border:1px solid #a9bba1;border-radius:10px;font-size:16px;background:#fafbf5;color:var(--ink);width:100%;font-weight:400}
.draft-field textarea{resize:vertical;min-height:130px}
.draft-actions{display:flex;gap:12px;flex-wrap:wrap}
.draft-actions .button{font-size:14px}
@media(min-width:1001px){.site-header .menu-toggle{display:none}.site-header nav{display:flex;position:static;flex-direction:row;align-items:center;width:auto;background:none;border:0;box-shadow:none;max-height:none;overflow:visible;padding:0}}
@media(max-width:1000px){.site-header .menu-toggle{display:flex;width:44px;height:44px}.site-header nav{display:none}.site-header nav.open{display:flex}.site-header nav>a,.site-header nav summary{font-size:16px;padding:12px;min-height:48px}.nav-group>div{position:static;width:auto;box-shadow:none;background:#e9efdf}.map-frame{grid-template-columns:minmax(0,1fr) 270px}.hero-copy{grid-template-columns:1fr 320px}.home-next-link{font-size:13px}.river-layout,.vision-layout{grid-template-columns:.7fr 1.3fr}.river-tabs{gap:14px;padding-inline:18px}}
@media(max-width:800px){
 body{grid-template-rows:24px 68px minmax(0,1fr) 44px}
 .preview-banner{font-size:11px}.app-footer{height:44px;font-size:11px}.app-footer>p{font-size:10px;max-width:145px}.app-footer>div{gap:10px}.app-footer button{font-size:11px}.app-footer button[data-open=overview]{display:none}
 .hero-copy{grid-template-columns:1fr;gap:10px;padding:0}
 main>.hero{gap:10px;padding-top:8px;grid-template-rows:auto minmax(80px,1fr) auto auto}
 .hero h1{font-size:clamp(34px,8.8vw,55px);line-height:1.06}
 .hero-copy .eyebrow{font-size:11px;margin-bottom:6px}
 .hero-intro{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;padding:0}
 .hero-intro p{grid-column:1/-1;font-size:14px;line-height:1.5;margin:0 0 6px;grid-row:auto}
 .hero-intro .button,.hero-intro .text-link{font-size:13px;min-height:44px;padding:10px 14px;margin:0;display:flex;gap:10px;justify-content:center}
 .hero-photo{min-height:0}.hero-photo>img{height:100%;min-height:0}.hero-photo figcaption{font-size:10px;left:12px;bottom:7px}
 .hero-photo .photo-label{display:none}
 .home-next-step{padding:10px 12px;gap:4px 12px}.home-next-date{padding-right:12px}.home-next-date strong{font-size:21px}.home-next-copy .eyebrow{font-size:10px}.home-next-copy :is(h2,.page-heading){font-size:17px}.home-next-link{min-height:32px;font-size:13px;padding:4px 0}
 .river-facts{gap:10px;padding:6px 0}.river-facts strong{font-size:24px}.river-facts strong small{font-size:12px}.river-facts>div>span{font-size:11px;line-height:1.4}.river-facts>p{display:none}
 main .section-heading :is(h2,.page-heading){font-size:31px}.map-section .section-aside{display:none}
 .map-section>.shell{gap:8px}.map-presets{gap:5px}.map-presets button{font-size:13px;min-height:36px;padding:7px 12px}
 .map-toolbar{gap:8px}.map-base-tabs button{font-size:12px!important;padding-inline:10px;min-height:40px!important}.map-layers-toggle{font-size:12px;min-height:40px;padding:8px 12px}.map-search input{font-size:14px!important;min-height:40px!important}
 .map-frame{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
 .area-panel{padding:12px 14px;display:flex;flex-direction:column;gap:5px;max-height:185px}
 .area-panel h3{font-size:23px;max-width:none;margin:0}
 .area-panel>.eyebrow{font-size:10px;margin:0}.area-panel .area-details-btn{position:absolute;right:12px;top:12px;font-size:12px;max-width:110px;min-height:32px}
 .area-panel .area-stats,.area-panel .area-code,.area-panel .area-peats,.area-panel .area-caution,.area-panel .focus-area,.area-panel .back-basin,.area-panel .area-share{display:none}
 .area-panel .mobile-area-summary{display:block;margin:0;font-size:13px;line-height:1.4}
 .area-panel .route-button{align-self:start;min-height:36px;font-size:12px;margin:2px 0 0;padding:8px 14px}
 .area-panel.basin-summary{max-height:80px}.area-panel.basin-summary h3{font-size:22px}
 .map-caption>span{display:block;max-height:30px;overflow:auto;font-size:10px}.map-caption button{font-size:11px}
 .map-tools{left:9px;bottom:55px}.map-tools button{width:40px;height:40px}
 .map-legend{font-size:9px;left:9px;bottom:10px;padding:7px;max-width:calc(100% - 115px)}.map-scale{font-size:11px;right:9px;bottom:10px;padding:5px 7px}
 #kohteet .section-heading .eyebrow{font-size:11px}#kohteet .section-aside .subtle{font-size:12px}#kohteet .restoration-plan-link{font-size:12px}
 #kohteet .project-filters{flex-wrap:nowrap;overflow:auto;min-height:42px;gap:6px}#kohteet .project-filters button{font-size:12px;white-space:nowrap;min-height:38px;flex:none}
 #kohteet .project-copy{padding:17px}#kohteet .project-copy h3{font-size:26px}#kohteet .project-copy>p:not(.eyebrow){font-size:15px}#kohteet .project-copy .restoration-benefit{font-size:13px}
 #kohteet .project-copy .eyebrow{font-size:11px}#kohteet .project-link{font-size:14px;min-height:44px}#kohteet .section-footnote{font-size:11px;max-height:34px;overflow:auto}
 #kohteet .project-visual{height:90px}#kohteet .visual-pill{font-size:10px}#kohteet .project-pager{margin-bottom:6px}
 .hub .section-aside{display:none}.hub .hub-card{padding:18px}.hub .hub-card h3{font-size:26px}.hub .hub-body p,.hub .hub-body li,.hub .plan-goal{font-size:15px}.hub .hub-tabs{gap:14px}.hub .hub-tabs button{font-size:13px}.hub .hub-bottom p,.hub .hub-bottom a{font-size:11px}.hub .hub-card-bottom{gap:8px}
 .river-layout,.vision-layout{grid-template-columns:1fr}.vision-layout>figure{display:none}
 .river-tabs{padding-inline:14px;gap:18px}.river-view .river-tabs :is(button,a){font-size:13px}.river-panel{padding:20px}.river-panel p,.river-panel .river-lead{font-size:15px}.river-story-section h4{font-size:20px}.river-identity{font-size:11px}.river-panel .river-note{font-size:13px}
 .vision-view{gap:15px}.vision-body{padding:20px}.vision-body .vision-lead{font-size:20px}.vision-metrics{gap:12px}.vision-metrics dd{font-size:25px}.vision-body p{font-size:15px}
 .join-grid :is(h2,.page-heading){font-size:32px}.join-grid>div>p:not(.eyebrow){font-size:15px}.role-options button[data-way]{font-size:13px}.join-grid{gap:16px}.join-photo{display:none}.join-grid>div:first-child{display:none}
 .join-form-wrap{padding-right:3px}.join-form-wrap>.eyebrow{font-size:11px}
 #participation-detail h3{font-size:26px}#participation-detail>p:not(.eyebrow){font-size:15px}.participation-actions .quiet-button{font-size:13px}
 dialog{width:calc(100% - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);border-radius:18px}
 #dialog-content{padding:18px}#dialog-content :is(h2,.page-heading){font-size:28px;margin-bottom:12px}#dialog-content>.eyebrow{font-size:11px;margin-bottom:12px}
 #dialog-content p,#dialog-content li{font-size:15px}#dialog-content h3{font-size:21px}
 .dialog-topbar{height:52px;padding-inline:14px}.guide-intro{margin-bottom:8px}.guide-intro .stage-label{font-size:11px;padding:8px}
 .guide-intro .quiet-button{font-size:12px;padding:8px 12px}.guide-step-tabs{gap:2px;padding:3px}.guide-step-tabs button{font-size:12px;min-height:44px}
 .guide-footer{padding-top:8px}.guide-footer .quiet-button{font-size:13px;padding:10px 13px}.guide-print{font-size:13px;min-height:40px;margin-top:8px}
 .guide-diagram{padding:8px}.guide-diagram figcaption{font-size:12px}.work-quantity{padding:12px}.work-quantity-fields{grid-template-columns:1fr}
}
@media(max-height:700px){
 .hero h1{font-size:clamp(32px,6.3vw,55px)}main>.hero{gap:8px}.hero-copy .eyebrow{display:none}
 .home-next-copy :is(h2,.page-heading){font-size:17px}.home-next-copy .eyebrow{font-size:10px}
 main .section-heading :is(h2,.page-heading){font-size:29px}
 #kohteet .section-heading .eyebrow{display:none}#kohteet .project-visual{height:70px}#kohteet .project-copy h3{font-size:24px}
 .hub .hub-card h3{font-size:25px}.hub .hub-card{padding:18px}
 .guide-intro .stage-label{display:none}#dialog-content>.eyebrow{margin-bottom:6px}.guide-print{margin-top:5px}
}
@media(max-width:800px){
 .map-section .map-base-tabs{display:none}
 .map-section .map-toolbar{flex-wrap:nowrap;align-items:center}
 .map-section .map-search{order:0;flex:1;width:auto;margin:0;min-width:0}
 .map-section .map-layers-toggle{order:1;flex:none}
 .map-section .map-search input{min-width:0}
 .area-panel h3{text-align:left}
}
.site-header{position:relative;z-index:40}
@media(max-height:700px) and (min-width:801px){
 #kohteet .section-heading{align-items:center;gap:20px;margin-bottom:10px}
 #kohteet .section-aside{padding:0;max-width:420px}
 #kohteet .section-aside>p{display:none}
 #kohteet .project-grid{grid-template-columns:1fr}
 #kohteet .project-card{display:grid;grid-template-columns:28% minmax(0,1fr);min-height:0}
 #kohteet .project-visual{height:100%;min-height:0}
 #kohteet .project-copy{padding:18px 22px}
 #kohteet .project-copy h3{font-size:27px}
 #kohteet .project-copy>p:not(.eyebrow){font-size:15px;margin-bottom:10px}
}
