/* Dexamethasone Suppression Test (node 4611). Everything is scoped to
   .dst-page so nothing leaks into the site header, menus or footer. */

.dst-page {
  --dst-blue: #00629b;
  --dst-navy: #1a3a5c;
  --dst-teal: #007a87;
  --dst-teal-soft: #e6f4f5;
  --dst-amber: #b85c0f;
  --dst-amber-soft: #fff4ec;
  --dst-ink: #2c3340;
  --dst-muted: #555f6b;
  --dst-line: #dde3ea;
  --dst-panel: #f5f7f9;
  --dst-radius: 12px;

  color: var(--dst-ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 auto 64px;
}

.dst-page p { margin: 0 0 1em; }
.dst-page p:last-child { margin-bottom: 0; }
.dst-page h2,
.dst-page h3 { color: var(--dst-navy); font-weight: 700; line-height: 1.3; }

/* HERO */
.dst-hero {
  background: linear-gradient(135deg, var(--dst-navy) 0%, var(--dst-blue) 70%, var(--dst-teal) 100%);
  color: #fff;
  border-radius: var(--dst-radius);
  padding: 40px 44px;
  margin: 8px 0 28px;
}
.dst-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fd8dc;
  margin-bottom: 10px !important;
}
.dst-hero .dst-kicker {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}
.dst-hero .dst-lede {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);

}

/* AUDIENCE CARDS */
.dst-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.dst-audience-card {
  border: 1px solid var(--dst-line);
  border-top: 4px solid var(--dst-blue);
  border-radius: var(--dst-radius);
  padding: 20px 22px;
  background: #fff;
}
.dst-audience-card.is-patient { border-top-color: var(--dst-teal); }
.dst-audience-card h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dst-blue);
  margin: 0 0 8px;
}
.dst-audience-card.is-patient h3 { color: var(--dst-teal); }
.dst-audience-card p { font-size: 0.98rem; color: var(--dst-muted); }

/* SECTIONS */
.dst-section > h2 {
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dst-line);
}
.dst-section-lede { font-size: 1.12rem; margin-bottom: 36px !important; }

.dst-block { margin-bottom: 44px; }
.dst-block > h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dst-step-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dst-teal-soft);
  color: var(--dst-teal);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dst-figure {
  background: var(--dst-panel);
  border-radius: var(--dst-radius);
  padding: 24px;
  margin: 20px 0 0;
}
.dst-figure-caption {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dst-muted);
  margin-bottom: 16px !important;
}

/* FEEDBACK LOOP: pituitary -> ACTH -> adrenals -> cortisol, with return arrow */
.dst-loop {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.dst-loop-node {
  flex: 1 1 0;
  background: #fff;
  border: 1px solid var(--dst-line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.dst-loop-node strong { display: block; color: var(--dst-navy); font-size: 1rem; }
.dst-loop-node span { display: block; font-size: 0.86rem; color: var(--dst-muted); line-height: 1.45; margin-top: 4px; }
.dst-loop-arrow {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dst-blue);
  text-align: center;
}
.dst-loop-arrow .dst-glyph {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 400;
}
.dst-loop-arrow .dst-glyph-down { display: none; }
.dst-loop-return {
  margin-top: 14px;
  border: 2px dashed var(--dst-teal);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--dst-teal);
  font-weight: 600;
}

/* DAILY RHYTHM BAR */
.dst-rhythm-bar {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #f2a65a 0%, #f6c98f 30%, #9fc3dd 70%, var(--dst-navy) 100%);
}
.dst-rhythm-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.88rem;
}
.dst-rhythm-labels span:last-child { text-align: right; }
.dst-rhythm-labels strong { display: block; color: var(--dst-navy); }
.dst-rhythm-labels em { font-style: normal; color: var(--dst-muted); }

/* TEST TIMELINE */
.dst-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: dst-tl;
}
.dst-timeline li {
  background: #fff;
  border: 1px solid var(--dst-line);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  counter-increment: dst-tl;
}
.dst-timeline li::before {
  content: counter(dst-tl);
  position: absolute;
  top: -12px;
  left: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dst-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dst-timeline .dst-when {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dst-teal);
  margin: 4px 0 4px;
}
.dst-timeline strong { display: block; color: var(--dst-navy); line-height: 1.35; }
.dst-timeline p { font-size: 0.9rem; color: var(--dst-muted); margin-top: 6px; line-height: 1.5; }

.dst-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.dst-outcome {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 4px solid var(--dst-teal);
  background: var(--dst-teal-soft);
}
.dst-outcome strong { display: block; color: var(--dst-teal); margin-bottom: 2px; }
.dst-outcome.is-high { border-left-color: var(--dst-amber); background: var(--dst-amber-soft); }
.dst-outcome.is-high strong { color: var(--dst-amber); }

/* REASONS GRID */
.dst-reasons {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dst-reasons li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--dst-line);
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.5;
}
.dst-reasons li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--dst-blue);
}
.dst-reasons li.is-wide { grid-column: 1 / -1; }

/* REASSURANCE CALLOUT */
.dst-reassure {
  background: var(--dst-teal-soft);
  border-radius: var(--dst-radius);
  padding: 26px 28px;
  border-left: 6px solid var(--dst-teal);
}
.dst-reassure .dst-reassure-head {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dst-navy);
  margin-bottom: 8px;
}

/* DOWNLOAD CARD */
.dst-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--dst-radius);
  background: linear-gradient(135deg, var(--dst-navy) 0%, var(--dst-blue) 100%);
  color: #fff;
}
.dst-cta-text { flex: 1 1 auto; }
.dst-cta .dst-eyebrow { color: #9fd8dc; margin-bottom: 6px !important; }
.dst-cta-head {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px !important;
}
.dst-cta-text p:last-child { color: rgba(255, 255, 255, 0.88); }
.dst-page a.dst-cta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  background: #fff;
  color: var(--dst-blue);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.dst-page a.dst-cta-btn::before {
  content: "\2193";
  font-size: 1.15rem;
  line-height: 1;
}
.dst-page a.dst-cta-btn:hover,
.dst-page a.dst-cta-btn:focus {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
}
.dst-page a.dst-cta-btn:focus { outline: 3px solid #9fd8dc; outline-offset: 2px; }
.dst-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .dst-cta { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; }
  .dst-page a.dst-cta-btn { white-space: normal; }
  .dst-hero { padding: 28px 22px; }
  .dst-audience,
  .dst-outcomes,
  .dst-reasons,
  .dst-timeline { grid-template-columns: 1fr; }
  .dst-timeline { gap: 20px; }
  .dst-loop { flex-direction: column; }
  .dst-loop-arrow { flex-basis: auto; padding: 8px 0; }
  .dst-loop-arrow .dst-glyph-right { display: none; }
  .dst-loop-arrow .dst-glyph-down { display: block; }
  .dst-figure { padding: 18px; }
}

/* PRINT: patients print this to bring to the lab */
@media print {
  .dst-cta { background: none; color: var(--dst-ink); border: 2px solid var(--dst-navy); }
  .dst-cta-text p:last-child { color: var(--dst-ink); }
  .dst-page { max-width: none; font-size: 11pt; }
  .dst-hero { background: none; color: var(--dst-ink); border: 2px solid var(--dst-navy); padding: 16px 20px; }
  .dst-hero .dst-lede { color: var(--dst-ink); }
  .dst-eyebrow { color: var(--dst-teal); }
  .dst-block, .dst-figure, .dst-reassure, .dst-timeline li, .dst-reasons li { break-inside: avoid; }
}
