/* 9700 Biology — readable notes that win over site-ui / apple-bold. */
html[data-wgo-theme="light"] body.biology-notes-page.subject-biology,
body.biology-notes-page.subject-biology{
  --bg:#f3f6f2;
  --surface:#ffffff;
  --card:#ffffff;
  --card-soft:#f6f8f4;
  --ink-strong:#16301f;
  --ink:#314338;
  --ink-soft:#5b6b60;
  --ink-faint:#7d8c82;
  --rule:rgba(28,56,38,.10);
  --rule-strong:rgba(28,56,38,.16);
  --accent:#1f8a4c;
  --accent-strong:#176b3b;
  --accent-soft:#1a7a43;
  --accent-fade:rgba(31,138,76,.10);
  --blue:#2a6f97;
  --amber:#b7791f;
  --red:#b42318;
}
html[data-wgo-theme="dark"] body.biology-notes-page.subject-biology{
  --bg:#0b110e;
  --surface:#121a15;
  --card:#162019;
  --card-soft:#1b2620;
  --ink-strong:#eef6ef;
  --ink:#c9d6cc;
  --ink-soft:#93a497;
  --ink-faint:#6e7d72;
  --rule:rgba(186,214,190,.12);
  --rule-strong:rgba(186,214,190,.2);
  --accent:#3dba73;
  --accent-strong:#2f9a5d;
  --accent-soft:#7ad19d;
  --accent-fade:rgba(61,186,115,.12);
}

html[data-wgo-edition="bold"] body.biology-notes-page.subject-biology,
html[data-wgo-design="apple"] body.biology-notes-page.subject-biology{
  background:var(--bg) !important;
}

html[data-wgo-edition="bold"] body.biology-notes-page #topnav{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:8px 16px !important;
  border:0 !important;
  border-bottom:1px solid var(--rule) !important;
  border-radius:0 !important;
  background:color-mix(in srgb,var(--surface) 92%,transparent) !important;
  box-shadow:none !important;
  backdrop-filter:blur(16px) !important;
}

html[data-wgo-edition="bold"] body.biology-notes-page .page:has(.notes-main){
  gap:0 !important;
  padding:0 !important;
  background:var(--bg) !important;
}

html[data-wgo-edition="bold"] body.biology-notes-page .toc,
html[data-wgo-design="apple"] body.biology-notes-page .toc{
  margin:0 !important;
  padding:22px 14px 48px !important;
  border:0 !important;
  border-right:1px solid var(--rule) !important;
  border-radius:0 !important;
  background:var(--surface) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}

body.biology-notes-page .notes-shell{
  width:min(860px,100%);
}

body.biology-notes-page .hero{
  padding:28px 0 22px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.biology-notes-page .hero:after{display:none}
body.biology-notes-page .hero h1{
  max-width:16ch;
  margin:8px 0 10px;
  font-size:clamp(32px,4.4vw,46px);
  letter-spacing:-.04em;
}
body.biology-notes-page .hero .lead{max-width:46ch;font-size:15px}

body.biology-notes-page .ai-note{
  margin-bottom:10px;
  padding:10px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--ink-faint);
  font-size:12px;
}

body.biology-notes-page .topic,
html[data-wgo-design="apple"] body.biology-notes-page.subject-biology .topic,
html[data-wgo-edition="bold"] body.biology-notes-page.subject-biology:not(.home-page) section.topic{
  margin:0 0 42px;
  padding:0 0 28px;
  border:0;
  border-bottom:1px solid var(--rule);
  border-radius:0;
  background:transparent !important;
  box-shadow:none !important;
}
html[data-wgo-edition="bold"] body.biology-notes-page section.topic::before{display:none !important}

body.biology-notes-page .topic>h2,
html[data-wgo-edition="bold"] body.biology-notes-page section.topic>h2:first-child{
  align-items:center;
  gap:12px;
  margin:0 0 8px !important;
  font-size:clamp(24px,3vw,32px) !important;
  line-height:1.15 !important;
}
body.biology-notes-page .num,
html[data-wgo-edition="bold"] body.biology-notes-page section.topic h2 .num,
html[data-wgo-edition="bold"] body.biology-notes-page section.topic>h2:first-child>span:first-child{
  min-width:2.15em !important;
  width:auto !important;
  height:auto !important;
  padding:.28em .5em !important;
  border-radius:8px !important;
  background:var(--accent-strong) !important;
  box-shadow:none !important;
  font-size:12px !important;
}

body.biology-notes-page .topic-sub{
  max-width:62ch;
  margin:0 0 18px;
  padding-bottom:0;
  border:0;
  font-size:15px;
}
body.biology-notes-page .topic-focus{display:none}

body.biology-notes-page .topic h3{
  margin:28px 0 8px;
  padding-left:10px;
  border-left:3px solid var(--accent);
  font-size:17px;
  letter-spacing:-.015em;
}
body.biology-notes-page .topic p,
body.biology-notes-page .topic li{
  max-width:68ch;
  font-size:15.5px;
  line-height:1.7;
}
body.biology-notes-page .topic table{
  display:block;
  overflow-x:auto;
  margin:14px 0 18px;
  border-radius:10px;
  white-space:normal;
  font-size:13.5px;
}
body.biology-notes-page .topic th,
body.biology-notes-page .topic td{
  padding:9px 11px;
  line-height:1.45;
  white-space:normal;
}

body.biology-notes-page .equation,
body.biology-notes-page .formula,
body.biology-notes-page .warning,
body.biology-notes-page .tip,
body.biology-notes-page .method{
  max-width:68ch;
  margin:14px 0;
  padding:12px 14px;
  border-radius:0 10px 10px 0;
}
body.biology-notes-page .concept-grid{max-width:68ch;gap:10px}
body.biology-notes-page .process{max-width:68ch}
body.biology-notes-page .recall{
  max-width:68ch;
  border-color:color-mix(in srgb,var(--accent) 28%,var(--rule));
  background:var(--accent-fade);
}
body.biology-notes-page .recall summary{color:var(--accent-soft)}

body.biology-notes-page .toc h2{
  margin:0 6px 10px;
  color:var(--accent-soft);
}
body.biology-notes-page .toc h2.subhead{
  margin:18px 6px 6px;
  padding:0 0 4px;
  border:0;
  color:var(--ink-faint);
  font-size:10px;
  letter-spacing:.12em;
}
body.biology-notes-page .toc a{
  padding:7px 10px 7px 32px;
  font-size:13px;
}

@media(max-width:780px){
  body.biology-notes-page .notes-shell{width:100%}
  body.biology-notes-page .topic{margin-bottom:28px;padding-bottom:18px}
  body.biology-notes-page .hero{padding:8px 0 16px}
}
