/* finesse · register=product · A=inherited silver/teal · B=existing font families
 * C=compact reading and touch layouts · D=feedback only · E=quiet bordered surfaces
 * SOUL=5 SPECTACLE=2 DENSITY=6. Preserve content, routes, imagery and permissions. */
:root{--ui-focus:#247b7e;--ui-ease:cubic-bezier(.2,.7,.3,1)}
.topbar :is(a,button){transition:background-color .18s var(--ui-ease),border-color .18s var(--ui-ease),color .18s var(--ui-ease)}
.topbar :is(a,button):focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
.menu-control{border-radius:12px}
.button{transition:background-color .18s var(--ui-ease),border-color .18s var(--ui-ease),box-shadow .18s var(--ui-ease)}
.button:disabled{cursor:not-allowed}
.button[aria-busy=true]{cursor:wait}
body:not(.academic-shell) :is(input,textarea)::placeholder{color:#707b89;opacity:1;font-weight:400}
body:not(.academic-shell) :is(input,textarea,select):focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px;border-color:var(--teal)}
body:not(.academic-shell) :is(input,textarea,select){transition:border-color .15s var(--ui-ease),background-color .15s var(--ui-ease)}
.page-head .lead,.software-description p,.empty p{text-wrap:pretty}
.breadcrumb{row-gap:0}
.footer nav a{white-space:nowrap}
.footer-credit-row{width:100%}
.metric strong,.cat-metric strong,.status-metrics{font-variant-numeric:tabular-nums}
.admin-sidebar nav{max-height:calc(100dvh - 250px);overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;padding-right:4px}
.admin-sidebar nav a:focus-visible{outline-offset:-2px}
.admin-body :is(.panel,.data-row){scroll-margin-top:96px}
.admin-sidebar nav a[aria-current]{font-weight:650}
.admin-body .edit-grid label:has(>input[type=checkbox]){display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;margin-top:7px;border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle);font-weight:500;line-height:1.6}
.admin-body .edit-grid label>input[type=checkbox]{order:-1;flex-shrink:0;margin:0}
.profile-links-editor{border:1px solid var(--line);border-radius:12px;padding:16px;margin:6px 0 18px;min-width:0}
.profile-links-editor legend{font-weight:600;font-size:15px;padding-inline:6px}
.profile-links-editor label{margin-bottom:10px}
.profile-save-status{min-height:1.8em;font-size:14px;overflow-wrap:anywhere}
.profile-save-status[data-state=success]{color:var(--teal)}
.profile-save-status[data-state=error]{color:#a14541}
.academic-profile-editor .actions{margin-bottom:0}
body[data-view=tools] .page-head{padding-block:36px 24px}
body[data-view=tools] .page-head h1{font-size:clamp(30px,3.5vw,42px);line-height:1.3;letter-spacing:-.025em}
body[data-view=tools] .page-head .eyebrow{margin-bottom:12px}
.tool-filters{padding:22px 24px}
.tool-group{margin-block:28px}
.tool-group h2{font-size:18px;margin-bottom:12px;letter-spacing:0}
.tool-link{grid-template-rows:30px minmax(0,1fr) auto;min-height:128px;box-shadow:none}
.tool-link .tool-open{align-self:end}
.tool-link:focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px;border-color:var(--teal)}
.software-gallery figure>a:focus-visible{outline:2px solid var(--ui-focus);outline-offset:5px}
.auth-panel .notice{font-size:13px}
.auth-panel .small{font-size:13px;line-height:1.8;margin-top:16px;margin-bottom:0}
body[data-view=slides] .page-head h1{font-size:clamp(30px,3.3vw,44px);max-width:900px;line-height:1.35}
.academic-shell .site-header .icon-button{border-radius:10px}
.academic-shell .site-header .nav-actions{margin-left:auto;gap:4px}
.academic-shell :is(.publication-card,.timeline-item){scroll-margin-top:150px}
html[data-theme=dark] .academic-shell .topbar{--surface:#17292f;--surface-subtle:#21353d;--ui-focus:#8ec6c3}
@media(hover:hover){
 .menu-control:hover{background:var(--surface-subtle)}
 .academic-shell .site-header .icon-button:hover{background:var(--surface)}
 .tool-link:hover{box-shadow:0 5px 18px rgba(31,51,75,.05)}
}
@media(max-width:980px){
 .topbar #portal-nav{left:0;right:0;top:calc(100% + 8px);padding:10px;gap:4px;border-radius:18px;background:var(--surface,#fcfdfe);max-height:calc(100dvh - 88px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;box-shadow:0 16px 42px rgba(31,51,75,.12)}
 html[data-nav-open] .topbar #portal-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .topbar #portal-nav a{font-size:14px;min-height:48px;padding:10px 12px;white-space:nowrap;border-radius:10px}
 .topbar #portal-nav a[aria-current]{background:var(--surface-subtle);color:var(--teal)}
 .topbar #portal-nav #cursorMotion{grid-column:1/-1;justify-self:stretch;align-self:auto;justify-content:flex-start;margin:4px 0 0;border-top:1px solid var(--line);border-radius:0 0 10px 10px;padding:10px 12px;min-height:48px}
 #portal-nav .cursor-toggle .switch-track{margin-left:auto}
 .academic-shell .site-header .nav-links{border-radius:14px;box-shadow:0 12px 32px rgba(31,51,75,.09)}
}
@media(max-width:700px){
 .admin-sidebar nav{max-height:none;overflow-y:hidden;padding-right:0;scroll-padding-inline:8px;scrollbar-width:thin}
 .admin-body :is(.panel,.data-row){scroll-margin-top:84px}
 body[data-view=tools] .page-head{padding-block:28px 20px}
 .tool-filters{padding:20px;gap:16px}
 .tool-group{margin-block:24px}
 .tool-link{min-height:114px}
 .software-record>.actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .software-record>.actions .button{width:100%;font-size:13px}
 .software-heading>div{min-width:0}
 body[data-view=slides] .page-head h1{font-size:30px;line-height:1.4}
 :is(body[data-view=geonews],.news-library) .news-row{grid-template-columns:56px minmax(0,1fr);gap:14px;padding:18px}
 :is(body[data-view=geonews],.news-library) .news-thumbnail{width:56px;height:48px;grid-column:1;grid-row:1;margin:0;border-radius:8px}
 :is(body[data-view=geonews],.news-library) .news-copy{display:contents}
 :is(body[data-view=geonews],.news-library) .news-copy h2{grid-column:1/-1;grid-row:2;font-size:17px;line-height:1.6;margin:0;text-wrap:pretty}
 :is(body[data-view=geonews],.news-library) .news-copy .article-meta{grid-column:2;grid-row:1;gap:6px 10px;font-size:12px;align-self:center}
 :is(body[data-view=geonews],.news-library) .news-actions{grid-column:1/-1;grid-row:3;border-top:1px solid var(--line);padding-top:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:8px;width:100%;justify-self:stretch}
 :is(body[data-view=geonews],.news-library) .news-actions .button{padding-inline:6px;font-size:12px;min-width:0}
 :is(body[data-view=geonews],.news-library) .news-actions .news-no-source{font-size:10px}
 .news-row .news-save-error{grid-row:4}
 .academic-onepage .hero-bio p{line-height:1.85}
 .academic-shell .site-header .nav-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:10px}
 .academic-shell .site-header .nav-links>a{min-height:44px;padding:10px 8px;justify-content:center;border-radius:8px;white-space:nowrap}
 .academic-shell .hero-profiles{gap:8px}
 .academic-shell .profile-button{padding:9px 12px}
}
@media(max-width:500px){
 .cat-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px}
 .cat-filters .cat-search{grid-column:1/-1}
 .cat-filters :is(input,select){font-size:16px}
 .cat-filters .cat-reset{grid-column:1/-1;justify-self:end;min-width:88px}
 .cat-directory :is(input,select):focus-visible{outline-color:var(--cat-focus);border-color:var(--cat-focus)}
 .cat-directory input::placeholder{color:var(--cat-muted)}
 .avatar-dialog{padding:20px;max-height:calc(100dvh - 32px)}
}
@media(max-width:360px){.cat-filters{grid-template-columns:minmax(0,1fr)}.topbar #portal-nav a{font-size:13px;padding-inline:10px}}
@media(prefers-reduced-motion:reduce){.topbar :is(a,button),.button,.tool-link,body:not(.academic-shell) :is(input,textarea,select){transition:none}}
