/* Source: scripts/website/mic.edumiclabs.com/V4 _ MIC Research Option A _ eduMIC.html
   FILE: static/pwa_shell/css/public/public-base.css */
/* Base CSS (shared reset). Only rules that leave layout, spacing, navigation and structure unchanged.
   Shared variable names are mapped to this page's existing values, so nothing new is introduced. */
:root{
  --font-sans:var(--body); --color-text:var(--ink); --color-bg:var(--bg); --color-text-muted:var(--muted);
  --text-sm:.92rem; --text-xs:.8rem; --weight-bold:600; --weight-medium:500;
}
*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
input,button,select,textarea{font:inherit}
h1,h2,h3,h4,h5,h6{line-height:1.2}
/* Utility classes */
.text-muted{color:var(--color-text-muted)}
.text-sm{font-size:var(--text-sm)}
.text-xs{font-size:var(--text-xs)}
.text-bold{font-weight:var(--weight-bold)}
.text-medium{font-weight:var(--weight-medium)}
.text-center{text-align:center}
/* Brand logo; callers set height */
.brand-logo{height:40px;width:auto;max-width:100%}


*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.6;margin:0}
.wrap{max-width:1040px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.narrow{max-width:640px}
h1,h2,h3{font-family:var(--display);font-weight:650;line-height:1.15;text-wrap:balance;margin:0}
h1{font-size:clamp(2rem,6.5vw,3.1rem);letter-spacing:-.02em}
h2{font-size:clamp(1.5rem,4.6vw,2.1rem);letter-spacing:-.01em}
h3{font-size:1.15rem;font-weight:500}
p{margin:0}
.kicker{font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.lede{color:var(--muted);font-size:1.08rem;max-width:58ch}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}

/* header */
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:12px}
.logo{font-family:var(--display);font-weight:650;font-size:1.15rem;text-decoration:none}
.logo b{color:var(--accent);font-weight:650}
.logo .brand-logo{height:30px}  /* image logo (pwa_shell/shared/components/_brand_logo.html, compact) */
.navlinks{display:flex;gap:18px;align-items:center;font-size:.95rem}
.navlinks a{text-decoration:none;color:var(--muted)}
.navlinks .desk{display:none}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:999px;font:600 1rem/1 var(--body);text-decoration:none;border:1.5px solid transparent;cursor:pointer}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.btn.ghost{border-color:var(--line);background:var(--surface);color:var(--ink)}
.textlink{font-weight:600;text-underline-offset:4px}
.actions{display:flex;flex-wrap:wrap;gap:10px}

section{padding-block:56px}
/* alternate section backgrounds so each section reads as its own block */
main > section{background:var(--band-a)}
main > section:nth-of-type(even){background:var(--band-b)}
.stack{display:flex;flex-direction:column;gap:16px}


footer{padding-block:28px 110px;color:var(--muted);font-size:.92rem;border-top:1px solid var(--line)}
footer .wrap{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between}

/* sticky bottom bar, phones only */
.sticky{position:fixed;left:0;right:0;bottom:0;z-index:6;background:var(--surface);border-top:1px solid var(--line);
  padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.sticky .btn{width:100%}


@media (min-width:820px){
  body{font-size:18px}
  .navlinks .desk{display:inline-flex}
  .sticky{display:none}
  footer{padding-block:28px}
}

@media (prefers-reduced-motion:no-preference){.btn,.poster{transition:transform .15s ease}.btn:active,.poster:active{transform:scale(.98)}}
