/* premedtools.com — single stylesheet */
:root {
  --navy: #1F3A5F; --teal: #2A7F8E; --teal-dark: #1F6572; --offwhite: #F3F6F8;
  --bg: #F3F6F8; --surface: #FFFFFF; --surface-2: #E9EEF2; --line: #D6DEE5;
  --text: #1B2430; --muted: #5B6773; --link: #1F6572; --accent: #2A7F8E; --accent-ink: #FFFFFF;
  --ok: #1E7B4F; --ok-bg: #E4F3EA; --warn: #8A5A00; --warn-bg: #FBF1DC; --bad: #A33A3A; --bad-bg: #F9E5E5;
  --shadow: 0 1px 2px rgba(20, 35, 55, .06), 0 6px 20px rgba(20, 35, 55, .06);
  --radius: 10px; --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1926; --surface: #172538; --surface-2: #1F3049; --line: #2B3F59; --text: #E6ECF2; --muted: #9FB0C1;
    --link: #6CC5D3; --accent: #3A9BAA; --navy: #22406A; --offwhite: #172538;
    --ok: #6FD39A; --ok-bg: #163B2A; --warn: #F0C36B; --warn-bg: #3D2E10; --bad: #F08C8C; --bad-bg: #4A1F1F;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0F1926; --surface: #172538; --surface-2: #1F3049; --line: #2B3F59; --text: #E6ECF2; --muted: #9FB0C1;
  --link: #6CC5D3; --accent: #3A9BAA; --navy: #22406A; --offwhite: #172538;
  --ok: #6FD39A; --ok-bg: #163B2A; --warn: #F0C36B; --warn-bg: #3D2E10; --bad: #F08C8C; --bad-bg: #4A1F1F;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 700; margin-top: 2em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.5em; }
p, ul, ol, table { margin: 0 0 1em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: var(--font-mono); font-size: .92em; background: var(--surface-2); padding: .05em .3em; border-radius: 4px; }
small, .muted { color: var(--muted); }
.container { width: min(100% - 2rem, 1080px); margin: 0 auto; }
.prose { max-width: 72ch; }
.prose img { border-radius: var(--radius); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand svg { width: 26px; height: 26px; }
.brand span b { color: #7CD0DB; }
.nav { margin-left: auto; display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a { color: #E6EEF6; text-decoration: none; padding: .45rem .7rem; border-radius: 6px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: .4rem .6rem; border-radius: 6px; font: inherit; }
@media (max-width: 760px) {
  .site-header { position: static; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: .6rem; }
  .nav.open { display: flex; }
  .nav a { padding: .6rem .5rem; }
}

/* footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .25rem 0; }
.site-footer .fine { margin-top: 1.5rem; font-size: .85rem; }

/* layout blocks */
main { padding: 2rem 0 0; }
.hero { padding: 3rem 0 1rem; }
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 60ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .cta { margin-top: auto; }
.card.big { padding: 1.8rem; border-top: 4px solid var(--accent); }
.card.big h2 { font-size: 1.5rem; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .5rem; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; padding: .6rem 1.05rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-size: .95rem; line-height: 1.3; }
.btn:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--link); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--line); }
.strip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 2.5rem 0; }
.strip .items { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.strip .item { display: flex; gap: .8rem; align-items: flex-start; }
.strip .item img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; border: 1px solid var(--line); }
.strip .item b { display: block; font-family: var(--font-head); }
.price { font-family: var(--font-head); font-weight: 700; color: var(--accent); white-space: nowrap; }
.note { background: var(--surface-2); border-left: 4px solid var(--accent); padding: .8rem 1rem; border-radius: 6px; margin: 1rem 0; font-size: .95rem; }
.note.warn { border-color: var(--warn); background: var(--warn-bg); }
.note.bad { border-color: var(--bad); background: var(--bad-bg); }
.disclaimer { font-size: .92rem; color: var(--muted); border: 1px dashed var(--line); padding: .8rem 1rem; border-radius: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { font-family: var(--font-head); font-weight: 700; background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose table td, .prose table th { white-space: normal; }

/* forms */
label { font-size: .9rem; color: var(--muted); display: block; margin-bottom: .2rem; }
input[type="text"], input[type="number"], select { font: inherit; font-size: .95rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .5rem; width: 100%; min-width: 0; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--teal); }
.calc table { min-width: 800px; }
.calc table input, .calc table select { width: 100%; }
.calc table td { padding: .3rem .35rem; }
.calc td.w-year { width: 7rem; } .calc td.w-term { width: 8.5rem; } .calc td.w-course { min-width: 11rem; }
.calc td.w-weight { width: 6rem; } .calc td.w-grade { width: 6rem; } .calc td.w-scale { width: 10rem; } .calc td.w-status { width: 13rem; }
.calc td.w-hours { width: 6rem; } .calc td.w-system { width: 13rem; } .calc td.w-check { width: 4.5rem; text-align: center; }
.calc td.conv { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .9rem; width: 5rem; }
.calc td.conv.bad { color: var(--bad); font-family: var(--font-body); font-size: .8rem; white-space: normal; min-width: 9rem; }
.calc .rowbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.05rem; padding: .2rem .4rem; }
.calc .rowbtn:hover { color: var(--bad); }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.toolbar .spacer { flex: 1; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }

/* results */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.stat.primary { border-top: 4px solid var(--accent); }
.stat .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.stat .value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1.1; margin: .25rem 0; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .85rem; color: var(--muted); }
.stat .sub.ok { color: var(--ok); } .stat .sub.bad { color: var(--bad); } .stat .sub.warn { color: var(--warn); }
.years-panel .yr { display: grid; grid-template-columns: 5rem 1fr auto auto; gap: .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.years-panel .yr:last-child { border-bottom: 0; }
.years-panel .yr label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; white-space: nowrap; }
@media (max-width: 600px) { .years-panel .yr { grid-template-columns: 1fr 1fr; } }
.pill { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.status { font-size: .85rem; color: var(--muted); min-height: 1.2em; }

/* articles */
.article-list { list-style: none; padding: 0; }
.article-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.article-list li:last-child { border-bottom: 0; }
.article-list a { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.article-list a:hover { text-decoration: underline; }
.article-list p { margin: .3rem 0 0; color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0; font-size: .95rem; }
.ba > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; }
.ba .before { border-left: 4px solid var(--bad); } .ba .after { border-left: 4px solid var(--ok); }
.ba b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; font-family: var(--font-head); }
.ba .count { display: block; font-size: .8rem; color: var(--muted); margin-top: .35rem; font-family: var(--font-mono); }
@media (max-width: 600px) { .ba { grid-template-columns: 1fr; } }
.product-cta { margin-top: 2.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .95rem; }
pre.email { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; white-space: pre-wrap; font-family: var(--font-body); font-size: .93rem; }

/* products */
.product { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 1.5rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.product img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.product h2 { margin-top: 0; font-size: 1.35rem; }
.product .links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
@media (max-width: 640px) { .product { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media print { .site-header, .site-footer, .toolbar { display: none; } }
