/* Hello Pharma | Pharma Learning Modules stylesheet
   Self-hosted Poppins (SIL Open Font License). No framework, no JavaScript required. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-bold.woff2") format("woff2"); }

:root {
  --ink: #1b2b34;
  --muted: #53646d;
  --paper: #ffffff;
  --wash: #f4f8f9;
  --line: #d3dde1;
  --accent: #0b5f66;
  --accent-2: #138089;
  --accent-soft: #e3eff0;
  --caution: #8a4b06;
  --caution-soft: #fbf1e4;
  --focus: #1a73c9;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 70ch;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.7; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 20; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__inner, .section-nav__inner, .site-footer__inner, .page { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.85rem; padding-bottom: 0.85rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand__mark { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 700; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.9rem; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

.section-nav { background: var(--wash); border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.section-nav ul { list-style: none; margin: 0; padding: 0.6rem 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-weight: 500; }
.section-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Module table of contents (no JavaScript) */
.module-toc { padding: 0 0 0.6rem; }
.module-toc > summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0; }
.module-toc > summary::-webkit-details-marker { display: none; }
.module-toc > summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; line-height: 1; }
.module-toc[open] > summary::before { content: "\2212"; }
.module-toc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.4rem 1.6rem; padding: 0.8rem 0 0.4rem; }
.module-toc h2 { font-size: 0.8rem; margin: 0.8rem 0 0.2rem; padding: 0; border: 0; color: var(--accent); font-weight: 700; }
.module-toc h3 { font-size: 0.78rem; margin: 0.5rem 0 0.1rem; color: var(--muted); font-weight: 600; }
.module-toc ul { display: block; padding: 0; margin: 0; }
.module-toc li { padding: 0.12rem 0; font-size: 0.84rem; line-height: 1.4; }
.module-toc a { color: var(--ink); text-decoration: none; }
.module-toc a:hover { color: var(--accent); text-decoration: underline; }
.module-toc a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Breadcrumb */
.breadcrumb ol { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 0.5rem; color: var(--line); }

/* Layout */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 1020px) { .page { grid-template-columns: minmax(0, 1fr) 270px; } }
article { min-width: 0; }
article > * { max-width: var(--measure); }
article > section, article > figure, article > .pager { max-width: none; }
article section > p, article section > ul, article section > ol, article section > h2, article section > h3 { max-width: var(--measure); }

h1, h2, h3 { font-family: var(--font); line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; margin: 1.1rem 0 1rem; letter-spacing: -0.015em; }
h2 { font-size: 1.4rem; font-weight: 600; margin: 2.6rem 0 0.75rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.08rem; font-weight: 600; margin: 1.6rem 0 0.5rem; }
strong { font-weight: 600; }

/* Direct answer: the signature element */
.direct-answer { border-left: 5px solid var(--accent); background: var(--accent-soft); padding: 1.1rem 1.35rem; margin: 1.5rem 0; max-width: var(--measure); border-radius: 0 var(--radius) var(--radius) 0; }
.direct-answer h2 { border: 0; padding: 0; margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--accent); }
.direct-answer p { margin: 0; font-size: 1.05rem; }

.definition { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: var(--measure); background: var(--paper); }
.definition p { margin: 0.25rem 0; }
dfn { font-style: normal; font-weight: 600; color: var(--accent); }

.claim { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.claim--potential { color: var(--caution); background: var(--caution-soft); }
.claim--usecase { color: var(--accent); background: var(--accent-soft); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
caption { text-align: left; font-weight: 600; padding: 0.75rem 0.9rem; background: var(--wash); border-bottom: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; border-bottom: 2px solid var(--accent); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
tbody tr:hover { background: #fafcfc; }

/* Figures, workflows and illustrations */
figure { margin: 1.6rem 0; }
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.flow { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0.4rem; max-width: var(--measure); }
.flow li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; align-items: baseline; padding: 0.45rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.flow li::before { content: counter(step); font-weight: 700; color: var(--accent); }
.illus-figure { background: var(--wash); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.illus-scroll { overflow-x: auto; }
.illus { display: block; width: 100%; min-width: 640px; height: auto; }
.illus-hero { margin-top: 0.5rem; }

/* Notes */
.note { background: var(--caution-soft); border-left: 4px solid var(--caution); padding: 0.9rem 1.2rem; margin: 1.5rem 0; max-width: var(--measure); font-size: 0.93rem; border-radius: 0 var(--radius) var(--radius) 0; }
.reg-note { font-size: 0.86rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 0.8rem; }
.review-note { border: 1px solid var(--line); background: var(--wash); padding: 1rem 1.25rem; margin: 1.5rem 0 0; font-size: 0.86rem; max-width: var(--measure); border-radius: var(--radius); color: var(--muted); }

/* Pager */
.pager { margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pager__progress { display: flex; align-items: center; gap: 0.8rem; font-size: 0.82rem; color: var(--muted); font-weight: 500; margin: 0 0 0.9rem; }
.pager__bar { flex: 1; max-width: 260px; height: 6px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; }
.pager__bar span { display: block; height: 100%; background: var(--accent); }
.pager__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.pager__links a { display: block; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; line-height: 1.4; }
.pager__links a:hover { border-color: var(--accent); background: var(--accent-soft); }
.pager__links a span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); margin-bottom: 0.15rem; }
.pager__next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager__links { grid-template-columns: 1fr; } .pager__next { grid-column: 1; text-align: left; } }

/* Sidebar */
.related { align-self: start; }
@media (min-width: 1020px) { .related { position: sticky; top: 1rem; } }
.related h2 { font-size: 0.95rem; margin-top: 1.5rem; padding-top: 0; border: 0; color: var(--accent); }
.related ul { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.related li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); line-height: 1.45; }

/* FAQ */
.faq h3 { margin-top: 1.4rem; }
.faq p { margin-top: 0.3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--wash); font-size: 0.86rem; color: var(--muted); }
.site-footer__inner { padding-top: 1.5rem; padding-bottom: 2rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; }

/* Learning modules landing page */
.landing-hero { background: linear-gradient(180deg, var(--accent-soft), var(--paper)); border-bottom: 1px solid var(--line); }
.landing-hero__inner { max-width: 1180px; margin: 0 auto; padding: 3rem 1.25rem 2.5rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .landing-hero__inner { grid-template-columns: 1.1fr 1fr; } }
.landing-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.2rem 0 1rem; }
.landing-hero p { font-size: 1.05rem; max-width: 56ch; }
.eyebrow { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin: 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; padding: 0.75rem 1.3rem; border-radius: 10px; text-decoration: none; }
.btn:hover { background: var(--accent-2); color: #fff; }
.landing-main { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.module-card { border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; display: grid; gap: 1.2rem; background: var(--paper); }
@media (min-width: 900px) { .module-card { grid-template-columns: 1fr 1.2fr; } }
.module-card h2 { border: 0; padding: 0; margin: 0 0 0.5rem; font-size: 1.6rem; }
.stats { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0; padding: 0; list-style: none; }
.stats li { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.stats strong { display: block; font-size: 1.3rem; color: var(--accent); }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.pillars a { display: block; height: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 0.95rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.pillars a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 0.2rem; }
.pillars a:hover { border-color: var(--accent); background: var(--accent-soft); }

@media print {
  .section-nav, .site-nav, .related, .pager, .module-toc { display: none; }
  a { color: inherit; }
  .illus { min-width: 0; }
}

/* Small screens: illustrations scroll sideways rather than shrinking text */
@media (max-width: 700px) {
  .illus-figure figcaption::before { content: "Swipe sideways to see the full illustration. "; font-weight: 600; color: var(--accent); }
  .site-nav ul { gap: 0.2rem 1rem; }
}


.custom-logo {
  width: 107px;
  height: auto;
}

@media (max-width:480px)  {
.custom-logo {
  width: 73px;
  height: auto;
}

}