/* Pharm Made Manageable — nclexpharm.foundagent.net
   Hand-written stylesheet. Warm clinical palette, one display serif, system sans body. */

:root {
  --ink: #17302c;
  --ink-soft: #35524d;
  --muted: #5f716d;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #f1efe6;
  --line: #e2ded2;
  --brand: #0d7268;
  --brand-ink: #0a544c;
  --brand-tint: #e5f0ee;
  --accent: #d0603a;
  --accent-ink: #a94a2a;
  --accent-tint: #faece5;
  --report: #b23524;
  --report-tint: #fbeae7;
  --teach: #2f6d3b;
  --teach-tint: #e9f2ea;
  --focus: #b8860b;
  --focus-tint: #f6efdb;

  --maxw: 760px;
  --maxw-wide: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 48, 44, .05), 0 8px 28px rgba(23, 48, 44, .07);
  --shadow-sm: 0 1px 2px rgba(23, 48, 44, .06);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-ink); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5.2vw, 2.9rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin-top: 2.4rem; }
h3 { font-size: 1.28rem; margin-top: 1.8rem; }
h4 { font-size: 1.06rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; margin-bottom: .35em; }

p { margin: 0 0 1.05rem; }
strong { font-weight: 680; color: var(--ink); }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin: 0 0 .5rem; }
li::marker { color: var(--brand); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: var(--maxw-wide); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 245, 239, .88);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: var(--maxw-wide); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
}
.wordmark { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.wordmark .logo { flex: 0 0 auto; }
.wordmark .text { display: flex; flex-direction: column; line-height: 1.12; }
.wordmark b { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink); }
.wordmark .tag { font-size: .72rem; color: var(--muted); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:hover { color: var(--brand-ink); }
.nav .btn { font-size: .9rem; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 640; font-size: 1rem;
  padding: .7em 1.15em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .04s ease, background .15s ease;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--brand-ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); color:#fff; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 20px; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 680; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-ink); background: var(--brand-tint);
  padding: .35em .8em; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: .5em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; align-items: center; }
.byline { color: var(--muted); font-size: .92rem; margin-top: 1.4rem; }

/* ---------- Content blocks ---------- */
main { padding-bottom: 40px; }
section { margin-top: 8px; }
.prose > p:first-of-type { font-size: 1.06rem; }
.section-intro { color: var(--ink-soft); font-size: 1.06rem; max-width: 62ch; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* Cards & panels */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px; box-shadow: var(--shadow);
}

/* Callouts */
.callout { border-radius: var(--radius); padding: 16px 18px 16px 18px; margin: 1.5rem 0; border: 1px solid var(--line); background: var(--surface-2); }
.callout p:last-child { margin-bottom: 0; }
.callout .tag { display: inline-block; font-size: .74rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem; }
.callout.ngn { background: var(--brand-tint); border-color: #c9e2dd; }
.callout.ngn .tag { color: var(--brand-ink); }
.callout.safety { background: var(--focus-tint); border-color: #ecdcae; }
.callout.safety .tag { color: #8a6608; }
.callout.report { background: var(--report-tint); border-color: #f0cdc6; }
.callout.report .tag { color: var(--report); }
.callout.note { background: var(--surface-2); }
.callout.note .tag { color: var(--muted); }

/* Chips for the 4 question angles */
.chip { display: inline-flex; align-items: center; gap: .4em; font-size: .78rem; font-weight: 680; padding: .22em .6em; border-radius: 6px; letter-spacing: .01em; }
.chip.report { background: var(--report-tint); color: var(--report); }
.chip.priority { background: var(--focus-tint); color: #8a6608; }
.chip.teach { background: var(--teach-tint); color: var(--teach); }
.chip.lab { background: var(--brand-tint); color: var(--brand-ink); }

/* Drug-class explainer */
.drug { margin: 0 0 8px; }
.drug + .drug { border-top: 1px solid var(--line); padding-top: 8px; }
.drug .keydrugs { color: var(--ink-soft); font-size: .98rem; margin-top: -.3rem; }
.drug .keydrugs .suffix { font-family: var(--serif); font-style: italic; color: var(--brand-ink); }
.five { display: grid; gap: 0; margin: .6rem 0 0; }
.five .row { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line); }
.five .row:first-child { border-top: 0; }
.five .k { font-size: .8rem; font-weight: 720; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.five .v { margin: 0; }
.five .v p { margin: 0 0 .4rem; }
.five .v p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
caption { text-align: left; font-size: .85rem; color: var(--muted); padding: 10px 14px 0; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fbfaf6; }
td strong { color: var(--ink); }
.mono { font-variant-numeric: tabular-nums; }

/* Feature grid (link cards) */
.grid { display: grid; gap: 18px; margin: 1.4rem 0; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.linkcard {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .06s, box-shadow .15s;
}
.linkcard:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.linkcard h3 { margin: .2rem 0 .35rem; font-size: 1.16rem; color: var(--ink); }
.linkcard p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.linkcard .more { display: inline-block; margin-top: .7rem; color: var(--brand-ink); font-weight: 640; font-size: .9rem; }

/* Book CTA */
.book {
  display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center;
  background: linear-gradient(180deg, #0e3b37, #0a2e2b);
  color: #eef4f2; border-radius: 16px; padding: 26px 28px; margin: 2rem 0;
}
.book .cover { border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.35); width: 100%; }
.book h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.5rem; }
.book p { color: #cfe0dc; margin: 0 0 1rem; }
.book .soon { display:inline-block; font-size:.74rem; font-weight:720; letter-spacing:.06em; text-transform:uppercase; color:#0a2e2b; background:#e8c76a; padding:.3em .7em; border-radius:999px; margin-bottom:.9rem; }

/* Email capture */
.capture { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow); margin: 2rem 0; }
.capture h2 { margin-top: 0; }
.capture .sub { color: var(--ink-soft); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }
.form-row input[type=email] {
  flex: 1 1 260px; min-width: 0; font: inherit; font-size: 1rem; padding: .75em 1em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
}
.form-row input[type=email]:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.form-msg { margin-top: .8rem; font-weight: 600; display: none; }
.form-msg.ok { display: block; color: var(--teach); }
.form-msg.err { display: block; color: var(--report); }

/* TOC / on-page nav */
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 1.6rem 0; }
.toc strong { display:block; font-size:.8rem; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-bottom:.5rem; }
.toc ul { columns: 2; column-gap: 24px; margin: 0; padding-left: 1.1rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Breadcrumb */
.crumbs { font-size: .86rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

/* Meta line under H1 */
.pagemeta { color: var(--muted); font-size: .9rem; margin: -0.2rem 0 1.4rem; }

/* Footer */
.site-footer { background: #12292660; border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 48px; color: var(--ink-soft); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--ink); }
.site-footer a { color: var(--ink-soft); text-decoration: none; display: block; margin-bottom: .4rem; font-size: .95rem; }
.site-footer a:hover { color: var(--brand-ink); }
.disclaimer { font-size: .82rem; color: var(--muted); line-height: 1.55; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.disclaimer strong { color: var(--ink-soft); }

/* Utility */
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.mt0 { margin-top: 0; }
.hl { background: linear-gradient(180deg, transparent 62%, var(--focus-tint) 62%); padding: 0 .05em; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { gap: 12px; }
  .nav a.navlink { display: none; }
  .book { grid-template-columns: 1fr; text-align: center; }
  .book .cover { max-width: 150px; margin: 0 auto; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .five .row { grid-template-columns: 1fr; gap: 2px; }
  .five .k { padding-top: 6px; }
  .toc ul { columns: 1; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 20px; }
  h2 { margin-top: 2rem; }
}

/* ---------- Print (for the cheat sheet) ---------- */
@media print {
  .site-header, .site-footer, .book, .capture, .no-print, .hero-actions, .crumbs { display: none !important; }
  body { background: #fff; font-size: 11.5px; color: #000; }
  .container { max-width: 100%; padding: 0; }
  h1 { font-size: 1.6rem; }
  h2 { margin-top: 1rem; page-break-after: avoid; }
  .table-wrap { break-inside: avoid; box-shadow: none; }
  table { font-size: 10.5px; }
  a { color: #000; text-decoration: none; }
  .callout { break-inside: avoid; }
}

/* ---------- Buy box (inside the dark .book panel) ---------- */
.book .avail { display:inline-block; font-size:.74rem; font-weight:720; letter-spacing:.06em; text-transform:uppercase; color:#062b24; background:#8fd9c4; padding:.3em .7em; border-radius:999px; margin-bottom:.9rem; }
.btn-buy { background: var(--accent); color:#fff; box-shadow: var(--shadow-sm); font-size:1.08rem; padding:.85em 1.5em; }
.btn-buy:hover { background: var(--accent-ink); color:#fff; }
.book .buy-points { list-style:none; margin:.2rem 0 1.2rem; padding:0; }
.book .buy-points li { position:relative; color:#dbe8e5; padding-left:1.5em; margin:.5em 0; font-size:.96rem; }
.book .buy-points li::before { content:"\2713"; position:absolute; left:0; color:#8fd9c4; font-weight:800; }
.book .buy-points strong { color:#fff; }
.buy-cta { display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; }
.book .buy-trust { color:#bcd3ce; font-size:.86rem; }
.book .buy-trust a { color:#e9f4f1; text-decoration:underline; }
.book .buy-foot { color:#a9c4be; font-size:.82rem; margin:.9rem 0 0; }
.book .buy-foot a { color:#cfe0dc; text-decoration:underline; }

/* ---------- Download / thank-you page ---------- */
.tystate { margin-top:1.4rem; }
.download-list { display:grid; gap:12px; margin:1.3rem 0; }
.dl { display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid var(--line); border-radius:12px; padding:15px 18px; background:var(--surface); box-shadow:var(--shadow-sm); }
.dl .meta b { display:block; font-size:1.02rem; }
.dl .meta span { color:var(--muted); font-size:.85rem; }
.spinner { display:inline-block; width:20px; height:20px; border:3px solid var(--brand-tint); border-top-color:var(--brand); border-radius:50%; animation:spin .8s linear infinite; vertical-align:middle; margin-right:8px; }
@keyframes spin { to { transform:rotate(360deg); } }
.notice { background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:14px 16px; color:var(--ink-soft); font-size:.92rem; }
