/* Visible home navigation on desktop and while the mobile menu is closed. */
.site-header>.home-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;margin-left:auto;min-height:44px;padding:10px 16px;border:1px solid #b4c5aa;border-radius:24px;font-size:14px;font-weight:700;color:#193e30;background:#edf2e5;white-space:nowrap}
.site-header>.home-link:hover,.site-header>.home-link[aria-current=page]{background:#dce8ce;border-color:#6b8a5f}
.site-header>.home-link:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.site-header>nav{margin-left:0}

/* Give the summary the reading space instead of stacking toolbars above it. */
#tutkimus{gap:14px}
#tutkimus .research-controls{display:flex;align-items:center;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;flex:none}
#tutkimus .research-controls .hub-toolbar{order:0;gap:24px}
#tutkimus .research-controls .hub-subnav{order:1;display:flex;gap:16px;align-items:center}
#tutkimus .hub-toolbar label,#tutkimus .hub-toolbar select,#tutkimus .hub-toolbar-actions button,#tutkimus .hub-subnav a,#tutkimus .hub-subnav button{font-size:14px;line-height:1.4}
#tutkimus .hub-toolbar select{min-height:44px}
#tutkimus .hub-subnav a,#tutkimus .hub-subnav button{display:inline-flex;align-items:center;min-height:36px}
#tutkimus .hub-main{grid-template-columns:280px minmax(0,1fr);gap:22px}
#tutkimus .hub-index{display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#tutkimus .hub-index button{flex:1 0 88px;min-height:88px;padding:14px 16px}
#tutkimus .hub-index button strong{font-size:16px;line-height:1.4;color:#183b2e}
#tutkimus .hub-index button small,#tutkimus .hub-index button span{font-size:13px;color:#3d5949}

/* One scrolling card keeps long summaries and all their limitations reachable.
   The site document itself still stays within the viewport. */
#tutkimus .hub-card{padding:26px 30px;gap:18px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}
#tutkimus .hub-card>*{flex-shrink:0}
#tutkimus .hub-card .hub-place{font-size:14px;line-height:1.5;color:#3d5749}
#tutkimus .hub-card .hub-kind{font-size:13px;line-height:1.4}
#tutkimus .hub-card .study-title{font-size:30px;line-height:1.2;letter-spacing:-.035em;max-width:30ch;margin:0;color:#173a2e}
#tutkimus .hub-tabs{gap:24px}
#tutkimus .hub-tabs button{font-size:15px;min-height:46px;color:#3d5749}
#tutkimus .hub-tabs button[aria-selected=true]{color:#153fbd}
#tutkimus .hub-body{flex:0 0 auto;overflow:visible;min-height:0;padding-bottom:8px}
#tutkimus .study-summary-section{font-size:18px;max-width:65ch;margin:0 0 24px}
#tutkimus .study-summary-section h3{font-size:16px;line-height:1.45;letter-spacing:0;max-width:none;margin:0 0 10px;font-weight:800;color:#204836}
#tutkimus .hub-body .study-summary-section p{font-size:18px;line-height:1.7;font-weight:400;letter-spacing:0;color:#193a2e;margin:0;max-width:65ch;overflow-wrap:break-word}
#tutkimus .study-summary-limit{padding:16px 20px;border-left:4px solid #ab7c24;background:#f4f0e3;border-radius:0 10px 10px 0;margin-bottom:0}
#tutkimus .study-summary-limit h3{color:#624818}
#tutkimus .hub-body .study-summary-limit p{font-size:17px;line-height:1.65;color:#3d392a}
#tutkimus .hub-body .study-reading-note{font-size:16px;line-height:1.65;color:#3e5548;max-width:65ch;margin:0 0 18px}
#tutkimus .hub-body>.hub-inline-link{font-size:15px;line-height:1.5;display:inline-flex;align-items:center;min-height:44px}
#tutkimus .hub-card-bottom{margin-top:auto;padding-top:16px;align-items:center;flex-wrap:wrap;gap:12px 20px}
#tutkimus .hub-citations a,#tutkimus .hub-card-bottom button{font-size:14px;line-height:1.5;min-height:36px;display:inline-flex;align-items:center;color:#28523d}
#tutkimus .hub-bottom p,#tutkimus .hub-bottom a{font-size:12px;line-height:1.5}

@media(max-width:1100px){
 .site-header{gap:12px;position:relative;z-index:20}
 .site-header>.home-link{margin-right:0;padding:8px 12px}
 .site-header>#menu-toggle{display:flex;margin-left:0;flex:none}
 .site-header>nav{display:none;position:absolute;top:65px;left:auto;right:0;width:min(340px,calc(100vw - 36px));padding:13px;max-height:calc(100dvh - 130px);overflow:auto;flex-direction:column;align-items:stretch;gap:2px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 30px #142e3920}
 .site-header>nav.open{display:flex}
 .site-header .nav-group>div{position:static;width:auto;box-shadow:none;background:#e9efdf}
 #tutkimus .hub-main{grid-template-columns:230px minmax(0,1fr);gap:16px}
 #tutkimus .hub-card{padding:22px}
}
@media(max-width:1000px){
 .site-header{gap:12px}
 .site-header>.home-link{margin-right:0;padding:8px 12px}
 .site-header>#menu-toggle{margin-left:0;flex:none}
}
@media(max-width:800px){
 #tutkimus{gap:10px}
 #tutkimus .hub-main{grid-template-columns:minmax(0,1fr)}
 #tutkimus .research-controls{gap:2px 12px}
 #tutkimus .research-controls .hub-toolbar{width:100%;justify-content:space-between;gap:12px}
 #tutkimus .research-controls .hub-subnav{gap:20px}
 #tutkimus .hub-mobile-select select{font-size:15px;min-height:46px}
 #tutkimus .hub-card{padding:20px;gap:16px;border-radius:16px}
 #tutkimus .hub-card .study-title{font-size:26px;max-width:none}
 #tutkimus .hub-card-top{gap:12px;flex-wrap:wrap}
 #tutkimus .hub-card .hub-place{max-width:none;font-size:13px}
 #tutkimus .hub-card .hub-kind{font-size:12px}
 #tutkimus .hub-tabs{gap:18px}
 #tutkimus .hub-tabs button{font-size:14px;min-height:44px}
 #tutkimus .hub-body .study-summary-section p{font-size:18px;line-height:1.65}
 #tutkimus .hub-body .study-summary-limit p{font-size:17px}
 #tutkimus .study-summary-section{margin-bottom:20px}
 #tutkimus .study-summary-limit{padding:14px 16px;margin-bottom:0}
 #tutkimus .hub-bottom{display:none}
}
@media(max-width:360px){
 .site-header{gap:8px}
 .site-header .brand{font-size:16px;gap:8px}
 .site-header .brand img{width:30px;height:30px}
 .site-header>.home-link{font-size:13px;padding:8px 10px;gap:6px}
 #tutkimus .hub-toolbar label,#tutkimus .hub-toolbar select,#tutkimus .hub-toolbar-actions button{font-size:13px}
 #tutkimus .hub-tabs{gap:14px}
 #tutkimus .hub-tabs button{font-size:13px}
}
@media(max-height:700px){
 #tutkimus{gap:8px}
 #tutkimus .section-heading .page-heading{font-size:30px}
 #tutkimus .section-heading .eyebrow{display:none}
 #tutkimus .hub-card{padding:18px 22px;gap:14px}
 #tutkimus .hub-card .study-title{font-size:25px}
}
