/* finesse · product redesign · reference=MiaoSci Research Navigation
 * Shared shell, silver surfaces, dark image bands, existing system typography.
 * Scope: software, Earth Science and presentation lists/readers only.
 * Preserve original article bodies, routes, source images and server permissions. */
.module-shell{
 --ms-paper:#f5f5f7;--ms-surface:#fff;--ms-ink:#1d1d1f;--ms-copy:#515864;
 --ms-line:rgba(29,29,31,.13);--ms-tint:#eef1f5;--ms-glass:rgba(255,255,255,.94);
 --ms-action:#0055b3;--ms-action-ink:#fff;--ms-highlight:rgba(255,255,255,.9);
 --ms-shadow:0 1px 3px #00000004,0 6px 18px #00000005;
 --ms-hero:#000;--ms-hero-ink:#f5f5f7;--ms-hero-copy:#b6b6bd;--ms-hero-line:#38383c;
 --ms-card-ink:#fff;--ms-card-copy:rgba(255,255,255,.92);--ms-card-line:rgba(255,255,255,.24);
 --ms-card-base:#162029;--ms-card-tint:rgba(255,255,255,.1);--ms-saved:#ffd24a;
 --ms-scrim:linear-gradient(100deg,rgba(8,12,18,.91),rgba(8,12,18,.84) 58%,rgba(8,12,18,.68));
 --ms-radius:18px;--ms-control-radius:12px;--ms-ease:cubic-bezier(.23,1,.32,1);
 --bg:var(--ms-paper);--surface:var(--ms-surface);--surface-subtle:var(--ms-tint);
 --ink:var(--ms-ink);--muted:var(--ms-copy);--line:var(--ms-line);--accent:var(--ms-action);--teal:var(--ms-action);
 --shadow:var(--ms-shadow);--radius:var(--ms-radius);
 background:var(--ms-paper);color:var(--ms-ink);font-optical-sizing:auto;min-height:100dvh;display:flex;flex-direction:column;
}
html[data-theme=dark] .module-shell{
 color-scheme:dark;--ms-paper:#151517;--ms-surface:#222225;--ms-ink:#f5f5f7;--ms-copy:#c1c1c8;
 --ms-line:rgba(245,245,247,.17);--ms-tint:#303035;--ms-glass:rgba(34,34,37,.95);
 --ms-action:#91c4ff;--ms-action-ink:#102a46;--ms-highlight:rgba(255,255,255,.07);
 --ms-shadow:0 1px 3px #00000012,0 6px 18px #00000015;
}
.module-shell #main.wrap{padding-top:0;flex:1}
.module-shell .topbar{
 --ink:var(--ms-hero-ink);--muted:var(--ms-hero-copy);--surface:#141416;--surface-subtle:var(--ms-hero-line);--line:var(--ms-hero-line);
 background:var(--ms-hero);color:var(--ms-hero-ink);border:0;box-shadow:none;
}
.module-shell .topbar :is(.logo,.nav a,.header-account a,.header-theme,.menu-control){color:var(--ms-hero-ink)}
.module-shell .header-theme{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--ms-hero-ink)}
.module-shell .header-theme svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.module-shell .header-theme svg path{fill:currentColor;stroke:none}
.module-shell .topbar .cursor-toggle{--trail-toggle-ink:#fff;--trail-toggle-thumb:#000;color:var(--ms-hero-copy)}
.module-shell .topbar :is(a,button):focus-visible{outline:2px solid var(--ms-hero-ink);outline-offset:3px}
.module-shell #main>.module-hero{
 display:block;width:100vw;max-width:none;margin:0 0 24px calc(50% - 50vw);padding:28px 24px;
 background:var(--ms-hero);color:var(--ms-hero-ink);text-align:center;border:0;border-radius:0;
}
body.module-shell .module-hero h1{max-width:52rem;margin:0 auto 10px;color:var(--ms-hero-ink);font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.2;letter-spacing:-.022em;font-weight:650;text-wrap:balance}
body.module-shell .module-hero :is(.lead,.article-language-note){max-width:48rem;margin:0 auto;color:var(--ms-hero-copy);font-size:.875rem;line-height:1.7;text-wrap:balance}
.module-shell .module-hero .eyebrow{font-size:.6875rem;line-height:1.6;letter-spacing:.02em;color:var(--ms-hero-copy);margin:0 0 8px}
.module-shell .software-heading .software-icon{width:40px;height:40px;border-radius:11px;display:block;margin:0 auto 10px}
.module-shell .software-heading .eyebrow{display:none}
.module-shell[data-view=slides] .module-hero>.eyebrow{display:none}
.module-shell .panel{border-radius:var(--ms-radius);border-color:var(--ms-line);box-shadow:inset 0 1px var(--ms-highlight),var(--ms-shadow)}
.module-shell .button{min-height:44px;border-radius:var(--ms-control-radius);font-size:.8125rem;line-height:1.4;transition:background-color .18s var(--ms-ease),border-color .18s var(--ms-ease),transform .18s var(--ms-ease)}
.module-shell .button.primary{background:var(--ms-action);color:var(--ms-action-ink);border-color:transparent}
.module-shell #main :is(a,button,input,select):focus-visible{outline:2px solid var(--ms-action);outline-offset:3px}
.module-shell .footer{margin-top:36px}

/* Earth Science keeps a reading list, with image bands matching resource cards. */
.module-shell[data-view=geonews] .module-hero .page-head{padding:0;margin:0 auto;max-width:52rem}
.module-shell[data-view=geonews] .module-hero .news-account{display:flex;width:fit-content;max-width:100%;justify-content:center;margin:16px auto 0;padding:10px 14px;gap:12px;text-align:left;background:transparent;border:1px solid var(--ms-hero-line);border-radius:var(--ms-control-radius);box-shadow:none}
.module-shell[data-view=geonews] .module-hero .news-account .qr{width:56px;height:56px;background:var(--ms-card-ink);border:3px solid var(--ms-card-ink)}
.module-shell[data-view=geonews] .module-hero .news-account h2{font-size:.875rem;margin:0 0 2px;color:var(--ms-hero-ink)}
.module-shell[data-view=geonews] .module-hero .news-account p{font-size:.6875rem;line-height:1.65;color:var(--ms-hero-copy)}
.module-shell[data-view=geonews] .news-toolbar{display:grid;grid-template-columns:190px minmax(0,1fr) auto;gap:12px;margin:0 0 16px;padding:12px;border:1px solid var(--ms-line);border-radius:var(--ms-radius);background:var(--ms-glass);box-shadow:inset 0 1px var(--ms-highlight),var(--ms-shadow)}
.module-shell[data-view=geonews] .news-toolbar>label:not(.news-search){font-size:0;gap:0;min-width:0}
.module-shell[data-view=geonews] .news-toolbar :is(select,input){width:100%;max-width:none;min-height:44px;height:44px;margin:0;border:1px solid var(--ms-line);border-radius:var(--ms-control-radius);background:var(--ms-surface);color:var(--ms-ink);font-size:.875rem}
.module-shell[data-view=geonews] .news-toolbar .news-search{min-width:0;max-width:none;width:100%;margin:0}
.module-shell[data-view=geonews] .news-toolbar #news-count{font-size:.75rem;white-space:nowrap;margin:0 4px;font-variant-numeric:tabular-nums}
.module-shell[data-view=geonews] #articles{gap:12px}
.module-shell[data-view=geonews] #articles .news-row{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:center;gap:24px;min-height:150px;padding:20px;border:1px solid var(--ms-line);border-radius:var(--ms-radius);background:var(--ms-card-base);color:var(--ms-card-ink);box-shadow:var(--ms-shadow);transition:transform .18s var(--ms-ease),border-color .18s var(--ms-ease),box-shadow .18s var(--ms-ease)}
.module-shell[data-view=geonews] .news-row::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--ms-scrim);pointer-events:none}
.module-shell[data-view=geonews] #articles .news-thumbnail{position:absolute;grid-area:auto;inset:0;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:inherit;z-index:-2;background:var(--ms-card-base)}
.module-shell[data-view=geonews] .news-thumbnail img{display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;border:0;border-radius:0;opacity:1}
.module-shell[data-view=geonews] .news-no-cover{display:none}
.module-shell[data-view=geonews] #articles .news-copy{display:block;grid-column:1;grid-row:1;min-width:0}
.module-shell[data-view=geonews] #articles .news-copy h2{font-size:1rem;font-weight:600;line-height:1.55;letter-spacing:-.012em;margin:0 0 8px}
.module-shell[data-view=geonews] #articles .news-copy h2 a{color:var(--ms-card-ink);text-shadow:0 1px 2px #0006}
.module-shell[data-view=geonews] #articles :is(.article-meta,.news-summary,.news-no-source){color:var(--ms-card-copy)}
.module-shell[data-view=geonews] #articles .article-meta{font-size:.75rem;line-height:1.6;gap:10px;margin:0}
.module-shell[data-view=geonews] #articles .news-category{color:var(--ms-card-copy);background:var(--ms-card-tint);border:1px solid var(--ms-card-line);border-radius:6px;padding:1px 7px}
.module-shell[data-view=geonews] #articles .news-summary{font-size:.8125rem;line-height:1.7;margin:8px 0 0}
.module-shell[data-view=geonews] #articles .news-actions{grid-column:2;grid-row:1;grid-template-columns:80px 100px 44px;align-items:center;gap:8px;width:240px;justify-self:end;border-top:0;padding-top:0}
.module-shell[data-view=geonews] #articles .news-actions .button{background:transparent;border:1px solid var(--ms-card-line);color:var(--ms-card-ink);box-shadow:none;white-space:normal;font-size:.75rem;line-height:1.3;padding:8px}
.module-shell[data-view=geonews] #articles .news-actions .primary{background:var(--ms-card-ink);color:var(--ms-hero);border-color:transparent}
.module-shell[data-view=geonews] #articles .news-actions .news-save{width:44px;height:44px;padding:10px;border:0;background:transparent;color:var(--ms-card-ink)}
.module-shell[data-view=geonews] #articles .news-save svg{width:24px;height:24px}
.module-shell[data-view=geonews] #articles .news-save[aria-pressed=true]{color:var(--ms-saved)}
.module-shell[data-view=geonews] #articles .news-save[aria-pressed=true] svg{fill:currentColor}
.module-shell[data-view=geonews] #articles .news-row :is(a,button):focus-visible{outline-color:var(--ms-card-ink)}

/* Software: a compact product card and an equal-height preview panel. */
.module-shell .software-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:18px;align-items:stretch}
.module-shell .software-layout>.panel{padding:24px;border-radius:var(--ms-radius);box-shadow:inset 0 1px var(--ms-highlight),var(--ms-shadow)}
.module-shell .software-layout .software-info{background:linear-gradient(145deg,var(--ms-card-base),#080c12);color:var(--ms-card-ink);border-color:var(--ms-card-line)}
.module-shell .software-info :is(h2,h3){color:var(--ms-card-ink)}
.module-shell .software-info :is(p,ol){color:var(--ms-card-copy)}
.module-shell .software-description h2{font-size:1.25rem;line-height:1.4;margin:0 0 14px;letter-spacing:-.014em}
.module-shell .software-description p{font-size:.9375rem;line-height:1.85;margin:0}
.module-shell .software-record{display:flex;flex-direction:column;gap:22px;justify-content:flex-start}
.module-shell .software-record>.actions{margin:0;gap:10px}
.module-shell .software-info .button{background:var(--ms-card-tint);color:var(--ms-card-ink);border-color:var(--ms-card-line)}
.module-shell .software-info .actions .button:first-child{background:var(--ms-card-ink);color:var(--ms-hero);border-color:transparent}
.module-shell .software-info a:focus-visible{outline-color:var(--ms-card-ink)!important}
.module-shell .software-start{margin:0}
.module-shell :is(.software-start,.software-versions) h3{font-size:1rem;line-height:1.5;margin:0 0 10px;letter-spacing:-.01em}
.module-shell .software-start ol{font-size:.875rem;line-height:1.8}
.module-shell .software-versions{margin-top:0;padding-top:20px;border-color:var(--ms-card-line)}
.module-shell .software-versions p{font-size:.8125rem;line-height:1.8;margin:0 0 12px}
.module-shell .software-gallery>h2{font-size:1rem;font-weight:600;line-height:1.5;margin:0 0 18px}
.module-shell .software-appearances{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.module-shell .software-gallery .software-appearances img{max-width:190px;border-radius:14px;box-shadow:var(--ms-shadow)}
.module-shell .software-gallery .software-tray{margin-top:18px;padding-top:18px}
.module-shell .software-gallery figcaption{font-size:.75rem;margin-top:9px}
.module-shell .software-image-note{font-size:.6875rem;line-height:1.7;margin-top:14px}

/* Files remain horizontal bands, including when no public cover is provided. */
.module-shell[data-view=slides] #slides{margin-top:0;gap:12px}
.module-shell[data-view=slides] #slides .slide-band{min-height:138px;padding:22px 24px;gap:24px;border:1px solid var(--ms-card-line);border-radius:var(--ms-radius);background:linear-gradient(110deg,var(--ms-card-base),#080c12);color:var(--ms-card-ink);box-shadow:var(--ms-shadow)}
.module-shell .slide-band::before{display:none}
.module-shell .slide-band-copy{gap:18px}
.module-shell .slide-document-icon{display:grid;place-items:center;flex-shrink:0;width:52px;height:60px;border:1px solid var(--ms-card-line);border-radius:var(--ms-control-radius);background:var(--ms-card-tint);color:var(--ms-card-ink)}
.module-shell .slide-document-icon svg{width:28px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.module-shell[data-view=slides] #slides .slide-band h2{font-size:1rem;line-height:1.6;font-weight:600;letter-spacing:0;margin:0 0 8px}
.module-shell[data-view=slides] #slides .slide-band h2 a{color:var(--ms-card-ink)}
.module-shell .slide-band :is(.slide-summary,.slide-file-meta){color:var(--ms-card-copy)}
.module-shell .slide-band .slide-file-meta span{border-color:var(--ms-card-line);background:var(--ms-card-tint)}
.module-shell .slide-band .slide-summary{font-size:.8125rem;line-height:1.75;margin-top:8px}
.module-shell .slide-band .slide-band-open{border:1px solid var(--ms-card-line);background:var(--ms-card-tint);color:var(--ms-card-ink);box-shadow:none}
.module-shell #slides .slide-band a:focus-visible{outline-color:var(--ms-card-ink)}
.module-shell[data-view=slide] #slide{padding:24px;max-width:100%;border-radius:var(--ms-radius)}
.module-shell[data-view=slide] .module-hero h1{max-width:52rem;font-size:clamp(22px,2.2vw,28px);line-height:1.65;letter-spacing:0;text-align:justify;text-align-last:left;text-wrap:wrap;overflow-wrap:anywhere}
.module-shell .slide-access-panel{background:var(--ms-tint);border:1px solid var(--ms-line);border-radius:var(--ms-control-radius);padding:22px}
.module-shell .slide-file-meta{font-size:.75rem}
.module-shell .slide-pdf-frame{background:var(--ms-surface);border-color:var(--ms-line);border-radius:var(--ms-control-radius)}

/* Reader chrome only; imported article text, figures and section styles survive. */
.module-shell #main>.breadcrumb{width:100vw;max-width:none;margin:0 0 0 calc(50% - 50vw);padding:14px max(18px,calc((100vw - 1160px)/2)) 0;background:var(--ms-hero);color:var(--ms-hero-copy);font-size:.75rem}
.module-shell #main>.breadcrumb a{color:var(--ms-hero-copy);min-height:32px;display:inline-flex;align-items:center}
.module-shell[data-view=article] #main>.module-hero{padding-top:20px}
.module-shell[data-view=article] .module-hero h1{max-width:760px;font-size:clamp(22px,2.1vw,28px);line-height:1.6;letter-spacing:0}
.module-shell[data-view=article] .module-hero .article-title-subtitle{color:var(--ms-hero-copy)}
.module-shell[data-view=article] #article{margin-top:0;border-radius:var(--ms-radius)}
.module-shell .notice,.module-shell .empty{border-radius:var(--ms-control-radius);line-height:1.7}

@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.module-shell .news-toolbar{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}
@media(hover:hover) and (pointer:fine){
 .module-shell[data-view=geonews] #articles .news-row:hover,.module-shell[data-view=slides] #slides .slide-band:hover{transform:translateY(-2px);border-color:var(--ms-action);box-shadow:0 6px 20px #0000000c}
 .module-shell :is(.button,.news-save):active{transform:translateY(1px)}
}
@media(max-width:900px){
 .module-shell .software-layout{grid-template-columns:minmax(0,1fr)}
 .module-shell[data-view=geonews] #articles .news-row{grid-template-columns:minmax(0,1fr);gap:14px}
 .module-shell[data-view=geonews] #articles .news-actions{grid-column:1;grid-row:2;justify-self:end}
}
@media(max-width:700px){
 .module-shell #main>.module-hero{padding:24px 18px;margin-bottom:18px}
 .module-shell .module-hero h1{font-size:1.75rem;line-height:1.25}
 .module-shell .module-hero :is(.lead,.article-language-note){font-size:.8125rem;line-height:1.75}
 .module-shell[data-view=geonews] .module-hero .page-head h1{font-size:1.75rem}
 .module-shell[data-view=geonews] .news-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px}
 .module-shell[data-view=geonews] .news-toolbar .news-search{grid-column:1/-1;grid-row:1}
 .module-shell[data-view=geonews] .news-toolbar>label:not(.news-search){grid-column:1;grid-row:2}
 .module-shell[data-view=geonews] .news-toolbar #news-count{grid-column:2;grid-row:2;font-size:.75rem}
 .module-shell[data-view=geonews] .news-toolbar :is(input,select){font-size:1rem}
 .module-shell[data-view=geonews] #articles .news-row{padding:18px;gap:14px;min-height:170px}
 .module-shell[data-view=geonews] #articles .news-copy h2{font-size:1rem;line-height:1.6}
 .module-shell[data-view=geonews] #articles .news-actions{justify-self:end;width:240px}
 .module-shell[data-view=geonews] #articles .news-summary{display:none}
 .module-shell .software-layout>.panel{padding:22px}
 .module-shell .software-gallery .software-appearances img{max-width:190px}
 .module-shell[data-view=slides] #slides .slide-band{padding:20px;gap:16px}
 .module-shell .slide-band-copy{gap:14px}
 .module-shell .slide-document-icon{width:42px;height:52px}
 .module-shell[data-view=slide] .module-hero h1{font-size:22px;text-align:left}
 .module-shell[data-view=slide] #slide{padding:20px}
 .module-shell #main>.breadcrumb{padding-top:10px}
}
@media(max-width:360px){.module-shell .software-appearances{grid-template-columns:minmax(0,1fr)}.module-shell .software-gallery .software-appearances img{max-width:210px}.module-shell[data-view=geonews] #articles .news-row{padding:15px}.module-shell[data-view=slides] #slides .slide-band{padding:18px}}
@media(prefers-reduced-transparency:reduce){.module-shell .news-toolbar{background:var(--ms-surface);-webkit-backdrop-filter:none;backdrop-filter:none}.module-shell .news-row::before{background:var(--ms-card-base)}}
@media(prefers-contrast:more){.module-shell :is(.panel,.button,input,select){border-color:currentColor}}
@media(prefers-reduced-motion:reduce){.module-shell :is(.news-row,.slide-band,.button){transition:none!important;transform:none!important}}
