/* BPC-157 Get — Estilo Suico Educacional design system */
/* Swiss-rationalist educational LMS palette */

:root {
  --primary:         #003366;
  --primary-50:      #E6EDF5;
  --primary-100:     #CCDBEB;
  --primary-200:     #99B7D6;
  --primary-500:     #003366;
  --primary-700:     #002347;
  --primary-900:     #001A33;
  --secondary:       #6C757D;
  --secondary-50:    #F1F2F3;
  --secondary-500:   #6C757D;
  --secondary-900:   #343A40;
  --accent-green:    #2ECC40;
  --accent-green-50: #E6F9E8;
  --accent-green-700:#1F8F2D;
  --accent-orange:   #FF8C00;
  --accent-orange-50:#FFF1DB;
  --accent-orange-700:#B36300;
  --accent-purple:   #8A2BE2;
  --accent-purple-50:#F1E5FB;
  --neutral-white:   #FFFFFF;
  --neutral-50:      #FAFAFA;
  --neutral-100:     #F5F5F5;
  --neutral-200:     #E5E5E5;
  --neutral-300:     #D1D1D1;
  --neutral-500:     #8A8A8A;
  --neutral-700:     #404040;
  --neutral-900:     #1A1A1A;
  --bg:              #FFFFFF;
  --surface:         #F5F5F5;
  --surface-alt:     #FAFAFA;
  --text:            #1A1A1A;
  --text-muted:      #404040;
  --text-on-navy:    #FFFFFF;
  --rule:            #E5E5E5;
  --rule-strong:     #003366;
  --success:         #2ECC40;
  --warning:         #FF8C00;
  --danger:          #C0392B;
  --info:            #003366;
  --max-width:       72rem;
  --article-max-width: 42rem;
  --container-px:    clamp(1.25rem, 4vw, 2.5rem);
  --font-heading:    'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-body:       'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-button:   4px;
  --radius-card:     4px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ===== BASE TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 500;
}

p { margin-bottom: 1.125rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

small, .text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-muted { color: var(--text-muted); }
.text-navy { color: var(--primary); }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ===== EYEBROW ===== */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.625rem;
}

/* ===== STRUCTURAL BAR ===== */
.structural-bar {
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--primary);
  margin-bottom: 1rem;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--neutral-white);
  border-bottom: 1px solid var(--primary);
  height: 72px;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand-wordmark {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.site-brand-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary-200);
  letter-spacing: 0.01em;
}

/* ===== NAV ===== */
.site-nav { display: none; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  padding: 0.375rem 0.75rem;
  display: block;
  position: relative;
  text-decoration: none;
  transition: color 200ms ease-out;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.site-nav a:hover { color: var(--primary); }
.site-nav a:hover::after { opacity: 1; }
.site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav a[aria-current="page"]::after { opacity: 1; }

.site-nav a:focus-visible {
  outline: 2.5px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== MOBILE NAV ===== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--neutral-white);
  border-bottom: 1px solid var(--primary);
  z-index: 99;
  padding: 1rem var(--container-px);
}

.nav-mobile.is-open { display: block; }

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--neutral-200);
  text-decoration: none;
  transition: color 200ms ease-out;
}

.nav-mobile a:hover { color: var(--primary); }
.nav-mobile li:last-child a { border-bottom: none; }

/* ===== PROGRESS STRIP ===== */
.progress-strip {
  position: relative;
  height: 3px;
  background: var(--neutral-100);
  overflow: hidden;
}

.progress-strip-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 100ms linear;
}

/* ===== HERO ===== */
.hero {
  padding: 4rem 0 3rem;
  background: var(--neutral-white);
  border-bottom: 2px solid var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.hero-content {}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-lede {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ===== SYLLABUS PANEL ===== */
.syllabus-panel {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.syllabus-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.syllabus-list { list-style: none; }

.syllabus-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--neutral-200);
}

.syllabus-item:last-child { border-bottom: none; }

.module-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--text-on-navy);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}

.module-badge.badge-lg {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.syllabus-item-text { flex: 1; }

.syllabus-item-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  display: block;
}

.syllabus-item-time {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--neutral-500);
}

.syllabus-total {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-200);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-button);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2.5px solid var(--accent-orange);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-navy);
  border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-700); border-color: var(--primary-700); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover { border-width: 2px; }

.btn-tertiary {
  background: none;
  border: none;
  color: var(--primary);
  padding: 0;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.btn-tertiary:hover { text-decoration-thickness: 2px; }

.btn-module {
  background: var(--primary);
  color: var(--text-on-navy);
  border-color: var(--primary);
}

.btn-module:hover { background: var(--primary-700); border-color: var(--primary-700); }

/* ===== MAIN CONTENT LAYOUT ===== */
main {
  padding: 3rem 0 4rem;
}

.content-with-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.article-column {
  max-width: var(--article-max-width);
}

.course-rail { display: none; }

/* ===== SECTION OPENERS ===== */
.section-block {
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.section-block h2 {
  margin-bottom: 1.125rem;
}

.section-intro {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

/* ===== OBJECTIVES PANEL ===== */
.objectives-panel {
  background: var(--neutral-white);
  border: 1px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.objectives-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.objectives-header .eyebrow { margin-bottom: 0; }

.objectives-list { list-style: none; }

.objectives-list li {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.objectives-list li:last-child { margin-bottom: 0; }

.obj-num {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 2rem;
}

.obj-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
}

/* ===== CALLOUTS ===== */
.callout {
  border-left: 4px solid var(--primary);
  background: var(--neutral-100);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.callout-header .eyebrow { margin-bottom: 0; }

.callout-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

.callout-warning {
  border-left-color: var(--accent-orange);
  background: var(--surface-alt);
}

.callout-warning .callout-icon,
.callout-warning .eyebrow { color: var(--accent-orange-700); }

.callout-success {
  border-left-color: var(--accent-green);
  background: var(--accent-green-50);
}

.callout-success .callout-icon,
.callout-success .eyebrow { color: var(--accent-green-700); }

.callout-regulatory {
  border-left-color: var(--accent-purple);
  background: var(--accent-purple-50);
}

.callout-regulatory .callout-icon,
.callout-regulatory .eyebrow { color: var(--accent-purple); }

.callout-danger {
  border-left-color: var(--danger);
  background: var(--neutral-white);
}

.callout-danger .callout-icon,
.callout-danger .eyebrow { color: var(--danger); }

.callout-icon {
  flex-shrink: 0;
  color: var(--primary);
}

/* ===== MODULE CARDS (index) ===== */
.module-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.module-card {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  transition: border-color 200ms ease-out;
}

.module-card:hover { border-color: var(--primary); border-width: 2px; }

.module-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.module-card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--text-on-navy);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
}

.module-card-time {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--neutral-500);
}

.module-card h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.module-card p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== STATUS CHIPS ===== */
.chip {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid;
  letter-spacing: 0.02em;
}

.chip-preclinical {
  color: var(--accent-orange-700);
  background: var(--accent-orange-50);
  border-color: var(--accent-orange);
}

.chip-invitro {
  color: var(--primary);
  background: var(--primary-50);
  border-color: var(--primary-200);
}

.chip-human {
  color: var(--accent-green-700);
  background: var(--accent-green-50);
  border-color: var(--accent-green);
}

.chip-review {
  color: var(--secondary-900);
  background: var(--secondary-50);
  border-color: var(--secondary-500);
}

.chip-pk {
  color: var(--primary);
  background: var(--primary-50);
  border-color: var(--primary);
}

.chip-wada {
  color: var(--accent-purple);
  background: var(--accent-purple-50);
  border-color: var(--accent-purple);
}

.chip-peer {
  color: var(--accent-green-700);
  background: var(--accent-green-50);
  border-color: var(--accent-green);
}

/* ===== DOSE CHIP ===== */
.dose-chip {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  background: transparent;
  transition: background 200ms ease-out;
}

.dose-chip:hover { background: var(--primary-50); }

/* ===== CITATION SUPERSCRIPT ===== */
sup a {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

sup a:hover { text-decoration: underline; }

/* ===== RESEARCH FINDING CARDS ===== */
.finding-card {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.finding-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.finding-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--text-on-navy);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}

.finding-card p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.finding-card-footer {
  text-align: right;
}

/* ===== FIGURE BLOCK ===== */
.figure-block {
  margin: 2rem 0;
}

.figure-block figure {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}

.figure-block img {
  width: 100%;
  height: auto;
}

.figure-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--text-on-navy);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figure-caption {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.625rem;
}

.figure-caption strong {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ===== TABLE ===== */
.table-anchor {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.table-wrapper { overflow-x: auto; margin: 1rem 0 2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

thead {
  background: var(--neutral-100);
  border-bottom: 1px solid var(--primary);
}

thead th {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.75rem 1rem;
  text-align: left;
  border-top: 2px solid var(--primary);
}

tbody tr {
  border-bottom: 1px solid var(--neutral-200);
}

tbody tr:last-child { border-bottom: none; }

tbody td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  color: var(--text);
}

.td-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== FAQ ACCORDION ===== */
.faq-list { margin: 0; }

details.faq-item {
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 0;
}

details.faq-item:first-child { border-top: 1px solid var(--neutral-200); }

summary.faq-question {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  padding: 1.125rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  transition: color 200ms ease-out;
}

summary.faq-question::-webkit-details-marker { display: none; }

summary.faq-question:hover { color: var(--primary); }

summary.faq-question::after {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 200ms ease-out;
}

details[open] summary.faq-question::after { transform: rotate(180deg); }

.faq-answer {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  padding: 0 0 1.5rem;
  line-height: 1.65;
}

.faq-answer p { margin-bottom: 0.875rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ===== REFERENCES LIST ===== */
.references-list { list-style: none; margin: 0; }

.reference-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: flex-start;
}

.reference-item:last-child { border-bottom: none; }

.ref-num {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  min-width: 2rem;
  flex-shrink: 0;
}

.ref-body {
  flex: 1;
}

.ref-citation {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.ref-meta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ref-identifier {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
  display: inline;
}

/* ===== MODULE COMPLETE PILL ===== */
.module-complete {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-200);
}

.module-complete-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-green);
  color: var(--neutral-white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--neutral-white);
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-button);
  padding: 0.75rem 1rem;
  transition: border-color 200ms ease-out;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea { resize: vertical; min-height: 9rem; }

/* ===== SITE FOOTER ===== */
.site-footer {}

.footer-top {
  background: var(--neutral-100);
  padding: 2.5rem 0;
  border-top: 1px solid var(--neutral-200);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-col-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 0.375rem;
}

.footer-col a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms ease-out;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  background: var(--primary);
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== 404 PAGE ===== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5rem 0;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 900;
  color: var(--neutral-200);
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* ===== INLINE LINK ===== */
a.inline-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a.inline-link:hover { text-decoration-thickness: 2px; }

/* ===== SECTION SEPARATOR ===== */
hr.section-sep {
  border: none;
  border-top: 1px solid var(--neutral-200);
  margin: 2rem 0;
}

hr.faq-sep {
  border: none;
  border-top: 1px solid var(--neutral-200);
  margin: 1rem 0;
}

/* ===== HERO SUPPORTING FIGURE ===== */
.hero-figure {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-200);
}

.hero-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-sep { color: var(--neutral-300); }

/* ===== IDENTIFIER (DOI/PMID) ===== */
.identifier {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
  color: var(--primary);
}

/* ===== GLOSSARY ===== */
.glossary-list {}

.glossary-term {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--neutral-200);
}

.glossary-term:last-child { border-bottom: none; }

.glossary-term dt {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.glossary-term dd {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
}

/* ===== RESPONSIVE: 768px ===== */
@media (min-width: 768px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .module-cards {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===== RESPONSIVE: 1024px ===== */
@media (min-width: 1024px) {
  .content-with-rail {
    grid-template-columns: 1fr 20rem;
  }

  .course-rail {
    display: block;
    position: sticky;
    top: calc(72px + 2rem);
    align-self: start;
    height: fit-content;
  }

  .module-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== RAIL STYLES ===== */
.rail-section {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.rail-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.875rem;
}

.rail-modules { list-style: none; }

.rail-module {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--neutral-200);
}

.rail-module:last-child { border-bottom: none; }
.rail-module.active { font-weight: 700; color: var(--primary); }

.rail-module a {
  color: inherit;
  text-decoration: none;
}

.rail-module a:hover { color: var(--primary); }

.rail-progress-bar {
  height: 4px;
  background: var(--neutral-200);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.rail-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 150ms linear;
  border-radius: 2px;
}

.rail-objectives { list-style: none; }

.rail-objectives li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.rail-obj-num {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== DATATABLES OVERRIDES ===== */
.dataTables_wrapper .dataTables_filter input {
  font-family: var(--font-heading) !important;
  font-size: 0.875rem !important;
  border: none !important;
  border-bottom: 1.5px solid var(--primary) !important;
  background: transparent !important;
  padding: 0.25rem 0 !important;
  outline: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  font-family: var(--font-heading) !important;
  font-size: 0.875rem !important;
  color: var(--primary) !important;
  background: none !important;
  border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  font-weight: 700 !important;
  background: none !important;
  border: none !important;
}

.dataTables_wrapper .dataTables_info {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  color: var(--text-muted) !important;
}

table.dataTable thead th {
  border-bottom: 1px solid var(--primary) !important;
}

table.dataTable.no-footer { border-bottom: 1px solid var(--neutral-200) !important; }

/* ===== TIPPY OVERRIDES ===== */
.tippy-box[data-theme~='edu-swiss'] {
  background: var(--neutral-white);
  color: var(--text);
  border: 1px solid var(--primary);
  border-radius: 4px;
  box-shadow: none;
}

.tippy-box[data-theme~='edu-swiss'] .tippy-arrow::before {
  border-top-color: var(--primary);
}

.tippy-box[data-theme~='edu-swiss'] .tippy-content {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  padding: 0.75rem 1rem;
  max-width: 280px;
}
