/* A page of readable content, with real next/previous controls. */
.deck-region{display:grid!important;grid-template-rows:minmax(0,1fr) auto;gap:10px;min-width:0;min-height:0;overflow:hidden!important;flex:1}
.deck-region[data-deck-single=true]{row-gap:0}
.deck-viewport{min-width:0;min-height:0;overflow:hidden;position:relative}
.deck-page{display:flow-root;height:100%;min-width:0;overflow:hidden;overflow-wrap:anywhere}
.deck-page[hidden]{display:none!important}
.deck-controls{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:44px;padding-top:5px;border-top:1px solid var(--line,#cad5c3);flex:none}
.deck-controls[hidden]{display:none!important}
.deck-controls button{width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid #bacbb1;border-radius:50%;background:#e6eddc;color:#173a2e;font-size:20px;padding:0}
.deck-controls button:disabled{opacity:.35;cursor:default}
.deck-controls button:focus-visible{outline:3px solid #2147dc;outline-offset:2px}
.deck-status{font-size:13px;line-height:1.35;text-align:center;min-width:85px;max-width:150px;color:#344f3e}
.deck-controls .deck-expand{font-size:23px;margin-left:auto}
.deck-region.deck-expanded{position:fixed!important;inset:12px;z-index:1000;height:calc(100dvh - 24px)!important;width:calc(100vw - 24px)!important;max-height:none!important;max-width:none!important;margin:0!important;padding:22px!important;background:#fffef7;border:1px solid #acbfa1;border-radius:18px;box-shadow:0 0 0 100vmax #152e3980;grid-template-rows:auto minmax(0,1fr) auto}
.deck-region.deck-expanded::before{content:attr(data-reading-label);font-size:17px;font-weight:800;color:#244832}
.deck-expanded>.deck-viewport{grid-row:2}.deck-expanded>.deck-controls{grid-row:3}
.deck-page .guide-diagram{max-height:100%;margin:0;max-width:520px}
.deck-page .guide-diagram svg{max-height:min(36dvh,230px);width:100%;object-fit:contain}
.deck-page p,.deck-page li{overflow-wrap:anywhere}
button:disabled{cursor:default}

/* One action at a time gives its text the available space. */
#kohteet .project-grid{display:flex!important;min-height:0;gap:0}
#kohteet .project-card{width:100%;height:100%;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);min-height:0;flex:1}
#kohteet .project-card[hidden]{display:none!important}
#kohteet .project-visual{height:100%;min-height:0}
#kohteet .project-visual>svg{width:100%;height:100%;object-fit:cover}
#kohteet .project-copy{display:flex;flex-direction:column;overflow:hidden;min-height:0;padding:24px 30px;gap:12px}
#kohteet .restoration-reading{min-height:0;flex:1}
#kohteet .restoration-reading .eyebrow{font-size:12px;margin:0 0 12px}
#kohteet .restoration-reading h3{font-size:clamp(26px,3vw,39px);line-height:1.15;min-height:0;margin:0 0 18px;max-width:25ch}
#kohteet .restoration-reading p:not(.eyebrow){font-size:18px;line-height:1.65;margin:0 0 18px;max-width:55ch}
#kohteet .restoration-reading .restoration-benefit{font-size:16px;font-weight:700;color:#365b40;margin:12px 0 0;padding:0}
#kohteet .project-link{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;flex:none;padding:10px 0 0;font-size:16px;margin:0;border-top:1px solid var(--line)}
#kohteet .project-filters{overflow:visible;flex-wrap:wrap;margin:0 0 10px}
#kohteet .project-pager{display:flex;align-items:center;justify-content:center;gap:24px;min-height:44px;margin:0 0 10px;flex:none;font-size:14px}
#kohteet .project-pager button{width:44px;height:44px;font-size:20px}
#kohteet .section-footnote{overflow:visible;max-height:none;font-size:12px;line-height:1.45;margin-top:10px}
.project-filter-select,.phase-select,.river-topic-select,.section-jump,.join-mobile-heading{display:none}
.project-filter-select select,.phase-select select,.river-topic-select select,.section-jump select{min-height:44px;font-size:15px;background:#fffef7;border:1px solid #b5c7ad;border-radius:12px;color:#193c2f;padding:9px 12px;max-width:100%}

/* Research, plan and personal actions retain fixed headings and a paged body. */
#tutkimus .hub-card,.hub-plan .hub-card{overflow:hidden!important;gap:12px;scrollbar-gutter:auto}
#tutkimus .hub-card>*{flex-shrink:0}
#tutkimus .hub-card>#study-body,.hub-plan .hub-card>#plan-body{flex:1;min-height:0;padding:0}
#tutkimus .hub-card .study-title,.hub-plan .hub-card h3{font-size:28px;line-height:1.2;margin:0}
#tutkimus .hub-tabs{gap:22px}
#tutkimus .hub-tabs button{min-height:44px}
#tutkimus .hub-card-bottom{margin:0;padding-top:8px;gap:8px;flex-wrap:nowrap}
#tutkimus .hub-card-bottom a,#tutkimus .hub-card-bottom button{min-height:32px;font-size:13px}
#tutkimus .hub-index,.hub-plan .hub-index{overflow:hidden;display:grid;grid-auto-rows:minmax(0,1fr);grid-template-rows:none}
#tutkimus .hub-index button,.hub-plan .hub-index button{min-height:0;flex:initial;padding:12px 16px}
.hub-plan .hub-card{min-height:0}
.hub-plan .plan-goal{font-size:15px;line-height:1.5}
.hub-body.deck-region{overflow:hidden}
.hub-body .deck-page>.hub-task-list{margin-bottom:8px}
.hub-body .deck-page h4{font-size:16px}
.hub-actions .actions-grid{display:flex;min-height:0;gap:0}
.hub-actions .action-card{display:flex;width:100%;min-height:0;overflow:hidden;padding:24px 30px;gap:12px}
.hub-actions .action-meta{margin:0;font-size:12px}
.hub-actions .action-card h3{font-size:30px;line-height:1.2;flex:none}
.hub-actions .action-effort{font-size:13px;line-height:1.4;margin:0}
.hub-actions .action-reading{flex:1;min-height:0}
.hub-actions .action-reading p{font-size:18px;line-height:1.6;max-width:65ch;margin:0 0 18px}
.hub-actions .action-reading .action-effect{margin-top:0}
.hub-actions .action-reading .action-effect strong{font-size:16px}
.hub-actions .action-reading .action-effect small{font-size:15px;line-height:1.6}
.hub-actions .action-card .hub-citations{margin:0;font-size:13px}
.hub-actions .action-choice{flex:none;min-height:44px;padding-top:8px;font-size:15px}

.river-content .river-tabs{overflow:visible;flex-wrap:wrap}
.river-content .river-panel{overflow:hidden;padding:24px}
.river-content .river-panel .deck-page p{font-size:17px;line-height:1.65}
.river-panel .deck-page h3{font-size:30px;line-height:1.15;margin-bottom:18px}
.river-panel .deck-page h4{font-size:20px}
.knowledge-content{overflow:hidden!important;display:flex;flex-direction:column}
.knowledge-tabs{flex:none}
#knowledge-panel{min-height:0;flex:1}
#knowledge-panel .deck-page article{padding:14px 0}
.vision-body{overflow:hidden!important}
.vision-body .deck-page p{font-size:17px;line-height:1.65;margin-bottom:18px}
.vision-body .deck-page .vision-lead{font-size:23px;line-height:1.35}
.vision-body .deck-page .vision-metrics{margin-bottom:22px}
.vision-body .deck-page .vision-note{font-size:14px;line-height:1.6}
.progress{display:flex;flex-direction:column;min-height:0}
.progress .section-heading,.progress .phase-list{flex:none}
#phase-detail{margin-top:16px;flex:1;min-height:0;overflow:hidden;padding:22px;display:grid}
#phase-detail .deck-page h3{font-size:28px;line-height:1.2;margin:0 0 12px}
#phase-detail .deck-page p{font-size:18px;line-height:1.65;margin:16px 0 0;max-width:65ch}
.journal-button{flex:none;margin-top:12px}
.join-form-wrap{display:flex;flex-direction:column;min-height:0;overflow:hidden!important;gap:12px}
.join-form-wrap>.eyebrow{flex:none;margin:0}
.role-options{flex:none}
#participation-detail{flex:1;min-height:0;margin:0;padding-top:12px}
#participation-detail .deck-page h3{font-size:28px;line-height:1.2;margin-bottom:14px}
#participation-detail .deck-page p{font-size:17px;line-height:1.65}
.participation-actions{flex:none}

/* Long dialogs and practical instructions use the same reader. */
#dialog-content{display:flex;flex-direction:column;overflow:hidden;padding:20px 26px;gap:12px}
#dialog-content>.eyebrow,#dialog-content>#dialog-title{flex:none;margin:0}
#dialog-content>#dialog-title{font-size:30px;line-height:1.15}
#dialog-content>#dialog-pages{min-height:0;flex:1}
#dialog-content #guide-step-panel{min-height:0;flex:1;padding:0;overflow:hidden}
#dialog-content .deck-page p,#dialog-content .deck-page li{font-size:17px;line-height:1.6}
#dialog-content .deck-page h3{font-size:23px;line-height:1.2;margin:12px 0}
#dialog-content .deck-controls button{font-size:20px}
#dialog-content .deck-controls .deck-status{font-size:13px}
.guide-intro{margin:0;gap:10px}
.guide-step-tabs{margin:0}
.guide-footer{padding-top:8px}
.guide-print{margin-top:0;min-height:40px;font-size:13px}
.work-quantity{padding:10px;margin:14px 0}
.work-quantity-fields{gap:10px}
.work-quantity input{min-height:42px;padding:8px}
.draft-field textarea{resize:none;min-height:100px;height:100px}
.measure-card{padding:0 0 16px;border-bottom:1px solid var(--line)}
.measure-card h3{font-size:24px}
.map-layers-panel{height:calc(100% - 24px);max-height:none;display:flex;flex-direction:column;overflow:hidden!important}
.map-layers-panel[hidden]{display:none!important}
.map-layers-header{position:static;flex:none;top:auto;margin:0;padding:0 0 8px}
#map-layer-pages{flex:1;min-height:0}
#map-layer-pages .map-layer-row{margin-bottom:12px}
#map-layer-pages .deck-controls{gap:6px}
#map-layer-pages .deck-controls button{width:40px;height:40px}
.area-panel{overflow:hidden!important}
.area-panel .area-peats,.area-panel .area-caution,.area-panel .area-code,.area-panel .area-share,.area-panel .focus-area,.area-panel .area-route{display:none}
.area-panel .mobile-area-summary{display:block;font-size:15px;line-height:1.5;margin:14px 0}
.area-panel .area-stats{display:none}
.area-panel .back-basin,.area-panel>.eyebrow{display:none}
.area-panel h3{font-size:26px;line-height:1.2;margin:0 0 12px}
.area-panel .area-details-btn{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.area-panel .route-button,.area-panel .back-basin{min-height:44px;font-size:14px}
.map-caption>span{max-height:none!important;overflow:visible!important}
.map-search ul{overflow:visible!important;max-height:none!important}
.search-paging{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 12px;font-size:12px;list-style:none}
.search-paging button{width:44px!important;min-height:44px;justify-content:center!important;padding:8px!important}

/* The native compact menu cannot grow into a scrolling overlay. */
.section-jump select{font-size:14px;font-weight:700;border-radius:24px;width:110px;background:#e7eddc}
@media(max-width:1100px){
 .site-header>.section-jump{display:block;flex:none}
 .site-header>#menu-toggle,.site-header>nav{display:none!important}
}
@media(max-width:800px){
 #kohteet .project-card{grid-template-columns:1fr}
 #kohteet .project-visual{display:none}
 #kohteet .project-copy{padding:18px 20px;gap:8px}
 #kohteet .restoration-reading h3{font-size:29px;margin-bottom:14px}
 #kohteet .restoration-reading p:not(.eyebrow){font-size:17px;line-height:1.55;margin-bottom:14px}
 #kohteet .restoration-reading .restoration-benefit{font-size:15px;line-height:1.5}
 #kohteet .section-heading{margin-bottom:8px}
 #kohteet .project-filters{display:none}
 .project-filter-select{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin-bottom:8px;font-size:13px}
 .project-filter-select select{min-width:0;max-width:70%;font-size:14px}
 #kohteet .project-pager{margin-bottom:8px}
 #kohteet .section-footnote{font-size:11px;line-height:1.4;margin-top:8px}
 .hub .hub-subnav,.hub .hub-toolbar label,.hub .hub-toolbar select{font-size:13px}
 .hub .hub-bottom{display:none}
 .hub .hub-card,#tutkimus .hub-card{padding:16px;gap:10px}
 #tutkimus .hub-card .study-title,.hub-plan .hub-card h3{font-size:24px;line-height:1.2}
 #tutkimus .hub-card-top{flex-wrap:nowrap;gap:8px}
 #tutkimus .hub-card .hub-place{font-size:12px}
 #tutkimus .hub-card .hub-kind{font-size:11px}
 #tutkimus .hub-tabs{gap:14px}
 #tutkimus .hub-tabs button{font-size:13px}
 #tutkimus .hub-body .study-summary-section p{font-size:17px;line-height:1.6}
 #tutkimus .hub-body .study-summary-limit p{font-size:16px;line-height:1.6}
 #tutkimus .study-summary-limit{padding:12px}
 .hub-actions .action-card{padding:18px;gap:9px}
 .hub-actions .action-card h3{font-size:27px}
 .hub-actions .action-reading p{font-size:17px;line-height:1.6}
 .hub-actions .hub-toolbar{flex-wrap:wrap;gap:8px}
 .hub-actions .hub-toolbar-actions{width:100%;justify-content:space-between;margin:0}
 .hub-actions .hub-note-count{font-size:12px}
 .river-content .river-tabs{display:none}
 .river-topic-select{display:block;padding:8px 14px;border-bottom:1px solid var(--line);flex:none}
 .river-topic-select select{width:100%}
 .river-content .river-panel{padding:18px}
 .knowledge-grid{gap:14px!important}
 .knowledge .page-heading{font-size:31px}
 .knowledge .knowledge-intro{font-size:14px;margin-top:10px}
 .knowledge .evidence-keys{display:none}
 .knowledge-tabs{gap:16px;margin-bottom:8px}
 .knowledge-tabs button{font-size:13px;min-height:44px;white-space:normal}
 .progress .phase-list{display:none}
 .phase-select{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;font-size:13px}
 .phase-select select{max-width:70%;font-size:14px}
 .progress .section-heading{margin-bottom:12px}
 #phase-detail{padding:18px;margin-top:12px}
 .join-mobile-heading{display:block;font-size:29px;line-height:1.1;margin:0 auto 8px;width:calc(100% - 36px);flex:none}
 .join-grid[data-join-panel=form]>div:first-child{display:none}
 .join-grid[data-join-panel=photos]>div:first-child{display:flex}
 .join-grid[data-join-panel=photos] .join-photo{display:block}
 .join-grid[data-join-panel=photos] .join-form-wrap{display:none}
 .join-form-wrap .role-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .join-form-wrap .role-options button{font-size:13px;min-height:44px;padding:9px}
 .participation-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .participation-actions button{font-size:12px;min-height:44px;padding:8px}
 .participation-actions>a{font-size:13px;min-height:44px;display:flex;align-items:center}
 #participation-detail{padding-top:8px}
 #participation-detail .deck-page h3{font-size:26px}
 #dialog-content{padding:16px;gap:10px}
 #dialog-content>#dialog-title{font-size:26px}
 #dialog-content>.eyebrow{font-size:11px}
 #dialog-content .deck-page p,#dialog-content .deck-page li{font-size:16px;line-height:1.6}
 .guide-step-tabs button{font-size:12px}
 .guide-footer .quiet-button{font-size:12px;padding:8px 12px}
 .map-caption>span{display:none!important}
 .map-caption::before{content:'© Syke · MML · Copernicus';font-size:10px;color:#3c5646}
 .map-caption button{min-height:32px}
 .area-panel h3{white-space:normal;font-size:22px}
 .area-panel:not(.basin-summary){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:4px 10px;max-height:180px;padding:10px 14px}
 .area-panel:not(.basin-summary)>.eyebrow,.area-panel .back-basin{display:none}
 .area-panel:not(.basin-summary) h3{grid-column:1;grid-row:1;font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .area-panel:not(.basin-summary) .mobile-area-summary{grid-column:1;grid-row:2;margin:0;font-size:12px;line-height:1.4}
 .area-panel:not(.basin-summary) .area-details-btn{position:static;grid-column:2;grid-row:1 / 3;align-self:center;max-width:110px;font-size:12px}
 .area-panel:not(.basin-summary) .route-button{grid-column:1 / -1;grid-row:3;min-height:40px;font-size:12px;margin:2px 0 0;justify-self:start}
 .map-base-tabs button{font-size:11px!important;padding:8px!important;min-height:40px!important}
}
@media(max-width:600px){
 .site-header .brand>span{display:none}
 .site-header .brand img{width:36px;height:36px}
 .site-header{gap:10px;height:64px}
 body{grid-template-rows:24px 64px minmax(0,1fr) 44px}
 .site-header>.home-link{padding:8px 12px;min-height:44px;font-size:14px}
 .app-footer{height:44px;gap:8px}
 .app-footer>p{max-width:none;white-space:nowrap;font-size:11px}
 .app-footer .footer-site{display:none}
 .app-footer>div{gap:6px}
 .app-footer button{font-size:12px;min-height:40px}
 main>[data-view]{padding-block:10px}
 main .section-heading .page-heading{font-size:29px}
 .section-heading .eyebrow{display:none}
 .hub .hub-mobile-select select{font-size:14px;min-height:44px}
 .hub .hub-pager{min-height:44px}
 .deck-status{font-size:12px}
 .deck-region{gap:8px}
 .deck-controls{gap:8px}
 .deck-region.deck-expanded{inset:8px;width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;padding:16px!important}
}
@media(max-height:700px){
 main>[data-view]{padding-block:10px}
 .section-heading .eyebrow{display:none}
 main .section-heading .page-heading{font-size:29px}
 #kohteet .project-card{grid-template-columns:1fr}
 #kohteet .project-visual{display:none}
 #kohteet .project-copy{padding:16px 22px}
 #kohteet .restoration-reading h3{font-size:28px;margin-bottom:12px}
 #kohteet .restoration-reading .eyebrow{margin-bottom:8px}
 #kohteet .section-footnote{font-size:11px}
 .hub .hub-subnav{display:none!important}
 #tutkimus .hub-card,#suunnitelma .hub-card{padding:16px;gap:8px}
 #tutkimus .hub-card .study-title,#suunnitelma .hub-card h3{font-size:23px}
 .hub .hub-card-top{display:none}
 .knowledge-intro,.knowledge .evidence-keys{display:none}
 #dialog-content>.eyebrow{display:none}
 #dialog-content>#dialog-title{font-size:25px}
 #dialog-content{gap:8px;padding:14px 18px}
 .dialog-topbar{height:48px}
 .guide-print{min-height:36px;font-size:12px}
 .guide-intro{margin:0}
 .guide-intro .stage-label{font-size:11px;padding:6px}
}
/* The print export shows every page, even when only one is shown on screen. */
body:has(#print-content){box-sizing:border-box;height:100dvh;max-width:900px;margin:0 auto;padding:16px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;overflow:hidden}
#print-content{min-height:0}
@media print{
 html,body:has(#print-content){height:auto!important;overflow:visible!important;display:block!important;max-width:none!important;margin:0!important;padding:0!important}
 .deck-region,.deck-viewport,.deck-page{display:block!important;height:auto!important;overflow:visible!important;position:static!important;box-shadow:none!important;border:0!important}
 .deck-page[hidden]{display:block!important}
 .deck-controls,.deck-region::before{display:none!important}
}
