/* =============================================================
   C&P Exam Prep Wizard — Hill & Ponton
   Mobile-first. Screen styles + print/PDF layer at the bottom.
   ============================================================= */

:root {
  --hp-navy:        #093865;
  --hp-navy-light:  #00488d;
  --hp-navy-mid:    #2d5c88;
  --hp-red:         #dd340e;
  --hp-bright-blue: #0a6ec6;
  --hp-link:        #0053b8;
  --hp-cream:       #faf7f3;
  --hp-text:        #212121;
  --hp-muted:       #676A6A;
  --hp-border:      #e4e7ea;
  --hp-bg-soft:     #f3f6fb;
  --hp-white:       #ffffff;

  --hp-font-head: "Montserrat", system-ui, -apple-system, Segoe UI, sans-serif;
  --hp-font-body: "Open Sans", system-ui, -apple-system, Segoe UI, sans-serif;

  --hp-radius:    10px;
  --hp-radius-lg: 16px;

  --hp-shadow-sm: 0 1px 2px rgba(9, 56, 101, 0.06), 0 2px 8px rgba(9, 56, 101, 0.04);
  --hp-shadow-md: 0 4px 12px rgba(9, 56, 101, 0.08), 0 8px 24px rgba(9, 56, 101, 0.06);

  --hp-maxw: 820px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--hp-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--hp-text);
  background: var(--hp-cream);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--hp-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--hp-bright-blue); }

h1, h2, h3, h4 {
  font-family: var(--hp-font-head);
  color: var(--hp-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
.hp-h1 { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem); font-weight: 700; }
.hp-h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }
.hp-h3 { font-size: 1.1rem; font-weight: 700; }

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

/* ---------- header ---------- */
.hp-header {
  background: var(--hp-white);
  border-bottom: 1px solid var(--hp-border);
  position: sticky; top: 0; z-index: 10;
}
.hp-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px;
}
.hp-logo { display: inline-flex; }
.hp-logo img { height: 36px; width: auto; display: block; }

/* ---------- buttons ---------- */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--hp-font-head); font-weight: 700;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 100px;
  border: none; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.05s ease;
  line-height: 1;
}
.hp-btn:active { transform: translateY(1px); }
.hp-btn:focus-visible { outline: 3px solid var(--hp-bright-blue); outline-offset: 2px; }

.hp-btn--red { background: var(--hp-red); color: var(--hp-white); }
.hp-btn--red:hover { background: var(--hp-bright-blue); color: var(--hp-white); }

.hp-btn--navy { background: var(--hp-navy); color: var(--hp-white); }
.hp-btn--navy:hover { background: var(--hp-navy-light); color: var(--hp-white); }

.hp-btn--ghost {
  background: transparent; color: var(--hp-navy);
  border: 2px solid var(--hp-navy); padding: 12px 22px;
}
.hp-btn--ghost:hover { background: var(--hp-navy); color: var(--hp-white); }

.hp-btn--lg { padding: 17px 36px; font-size: 15px; }
.hp-btn--nav { padding: 11px 24px; font-size: 12px; }

.hp-btn[disabled], .hp-btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; pointer-events: none;
}

/* ---------- main ---------- */
.hp-main {
  padding: 28px 20px 56px;
  min-height: calc(100vh - 180px);
}
.hp-screen { display: none; animation: fadeIn 0.25s ease; }
.hp-screen.is-active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- intro ---------- */
.hp-lede { font-size: 1.1rem; color: var(--hp-text); margin: 0 0 20px; max-width: 650px; }
.hp-intro-points {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 8px;
}
.hp-intro-points li {
  padding-left: 28px; position: relative;
}
.hp-intro-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--hp-red); font-weight: 700;
}
.hp-disclaimer-small {
  margin-top: 18px; font-size: 0.82rem; color: var(--hp-muted);
}

/* ---------- progress ---------- */
.hp-progress {
  margin: 0 0 28px;
}
.hp-progress__steps {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.hp-progress__steps li {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; font-size: 0.75rem; color: var(--hp-muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center;
}
.hp-progress__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--hp-border); transition: background-color 0.25s ease;
}
.hp-progress__steps li[aria-current="step"] .hp-progress__dot,
.hp-progress__steps li.is-done .hp-progress__dot { background: var(--hp-navy); }
.hp-progress__steps li[aria-current="step"] { color: var(--hp-navy); }
.hp-progress__steps li[aria-current="step"] .hp-progress__dot {
  box-shadow: 0 0 0 4px rgba(9, 56, 101, 0.15);
}

.hp-progress__bar {
  height: 4px; background: var(--hp-border); border-radius: 100px; overflow: hidden;
}
.hp-progress__fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--hp-navy), var(--hp-bright-blue));
  transition: width 0.3s ease;
}

@media (max-width: 480px) {
  .hp-progress__label { font-size: 0.68rem; }
}

/* ---------- question screen ---------- */
.hp-question {
  background: var(--hp-white); border-radius: var(--hp-radius-lg);
  padding: 28px; box-shadow: var(--hp-shadow-sm);
  border: 1px solid var(--hp-border);
}
.hp-question__stage {
  font-size: 0.75rem; color: var(--hp-red);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0 0 6px;
}
.hp-question__title {
  font-family: var(--hp-font-head); color: var(--hp-navy);
  font-size: 1.4rem; font-weight: 700; line-height: 1.25; margin: 0 0 6px;
}
.hp-question__help {
  font-size: 0.95rem; color: var(--hp-muted); margin: 0 0 20px;
}

/* option grid */
.hp-options { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hp-options--2col {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .hp-options--2col { grid-template-columns: 1fr; }
}

.hp-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: var(--hp-white); color: var(--hp-text);
  border: 2px solid var(--hp-border); border-radius: var(--hp-radius);
  padding: 16px 18px; cursor: pointer;
  font-family: var(--hp-font-body); font-size: 1rem; font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.hp-option:hover { border-color: var(--hp-navy); background: var(--hp-bg-soft); }
.hp-option:focus-visible { outline: 3px solid var(--hp-bright-blue); outline-offset: 2px; }
.hp-option.is-selected {
  border-color: var(--hp-navy); background: var(--hp-bg-soft);
  box-shadow: var(--hp-shadow-sm);
}
.hp-option__marker {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--hp-border); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.hp-option.is-selected .hp-option__marker {
  border-color: var(--hp-navy); background: var(--hp-navy);
}
.hp-option.is-selected .hp-option__marker::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hp-white);
}
/* square marker for multi-select */
.hp-option--multi .hp-option__marker { border-radius: 4px; }
.hp-option--multi.is-selected .hp-option__marker::after {
  width: 10px; height: 6px; background: transparent;
  border: 2px solid var(--hp-white); border-top: 0; border-right: 0;
  border-radius: 0; transform: rotate(-45deg) translate(1px, -1px);
}
.hp-option__label { flex: 1; }

/* condition multi-select categories (legacy — retained for any fallback paths) */
.hp-category { margin-top: 22px; }
.hp-category:first-of-type { margin-top: 0; }
.hp-category__title {
  font-family: var(--hp-font-head); color: var(--hp-navy);
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 10px;
}

/* searchable combobox for Stage-3 condition picker */
.hp-combo { margin-top: 10px; }
.hp-combo__label {
  display: block; font-size: 0.9rem; color: var(--hp-muted);
  margin: 0 0 6px;
}
.hp-combo__input-wrap { position: relative; }
.hp-combo__input {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--hp-border);
  border-radius: var(--hp-radius);
  background: var(--hp-white); color: var(--hp-text);
  transition: border-color 0.15s ease;
}
.hp-combo__input:focus {
  outline: none; border-color: var(--hp-navy);
}
.hp-combo__results {
  list-style: none; padding: 6px 0; margin: 4px 0 0;
  max-height: 320px; overflow-y: auto;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  background: var(--hp-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hp-combo__group-label {
  font-family: var(--hp-font-head); color: var(--hp-navy);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 8px 14px 4px; margin: 0;
  background: var(--hp-bg-soft);
}
.hp-combo__result {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; cursor: pointer;
  border-left: 3px solid transparent;
}
.hp-combo__result:hover,
.hp-combo__result:focus-visible {
  background: var(--hp-bg-soft);
  border-left-color: var(--hp-red);
}
.hp-combo__result.is-selected {
  background: #eef6ff;
  border-left-color: var(--hp-navy);
}
.hp-combo__result-label { flex: 1; }
.hp-combo__result-check {
  font-size: 0.85rem; color: var(--hp-navy); font-weight: 700;
}
.hp-combo__no-match {
  padding: 14px; font-size: 0.9rem; color: var(--hp-muted); text-align: center;
}
.hp-combo__selected { margin-top: 16px; }
.hp-combo__empty {
  font-size: 0.88rem; color: var(--hp-muted); margin: 0;
}
.hp-chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--hp-navy); color: var(--hp-white);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  font-size: 0.9rem;
}
.hp-chip__remove {
  background: rgba(255,255,255,0.2); color: var(--hp-white);
  border: 0; border-radius: 50%;
  width: 22px; height: 22px; line-height: 1;
  font-size: 1.1rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.hp-chip__remove:hover { background: rgba(255,255,255,0.35); }
.hp-combo__not-sure { margin-top: 18px; }

/* nav row */
.hp-nav-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 22px;
}
.hp-nav-row .hp-btn--navy { margin-left: auto; }

/* ---------- guide output ---------- */
.hp-guide {
  background: var(--hp-white); border-radius: var(--hp-radius-lg);
  padding: 32px 32px 40px; box-shadow: var(--hp-shadow-sm);
  border: 1px solid var(--hp-border);
}
@media (max-width: 600px) { .hp-guide { padding: 24px 20px 32px; } }

.hp-guide__hero {
  border-bottom: 3px solid var(--hp-red);
  padding-bottom: 18px; margin-bottom: 24px;
}
.hp-guide__kicker {
  font-size: 0.75rem; color: var(--hp-red);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0 0 6px;
}
.hp-guide__title {
  font-family: var(--hp-font-head); color: var(--hp-navy);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem); font-weight: 700;
  line-height: 1.15; margin: 0 0 10px;
}
.hp-guide__summary {
  color: var(--hp-muted); font-size: 0.95rem; margin: 0;
}
.hp-guide__summary strong { color: var(--hp-navy); }

.hp-guide h2.hp-guide__h2 {
  font-size: 1.4rem; color: var(--hp-navy);
  margin: 28px 0 10px;
}
.hp-guide h3.hp-guide__h3 {
  font-size: 1.1rem; color: var(--hp-navy);
  margin: 18px 0 8px;
}
.hp-guide h4.hp-guide__h4 {
  font-size: 0.95rem; color: var(--hp-navy);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 16px 0 8px;
}
.hp-guide p { margin: 0 0 12px; }
.hp-guide ul { margin: 0 0 16px; padding-left: 22px; }
.hp-guide ul li { margin-bottom: 6px; }

.hp-condition-block {
  background: var(--hp-white);
  border-top: 1px solid var(--hp-border);
  margin-top: 28px; padding-top: 22px;
  page-break-inside: avoid;
}
.hp-condition-block__title {
  font-family: var(--hp-font-head); color: var(--hp-navy);
  font-size: 1.35rem; font-weight: 700; margin: 0 0 4px;
  padding-left: 14px; border-left: 5px solid var(--hp-red);
}
.hp-condition-block__kicker {
  font-size: 0.75rem; color: var(--hp-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 16px; padding-left: 19px;
}

/* DBQ preview ("What the Examiner Will Fill Out") */
.hp-dbq-form {
  font-size: 0.9rem; color: var(--hp-muted);
  background: var(--hp-bg-soft);
  border-radius: var(--hp-radius);
  padding: 10px 14px; margin: 0 0 10px;
}
.hp-dbq-caveat {
  font-size: 0.88rem; color: #6a4a00;
  background: #fff8e1;
  border-left: 3px solid #e6b800;
  border-radius: 0 var(--hp-radius) var(--hp-radius) 0;
  padding: 10px 14px; margin: 0 0 10px;
}
.hp-dbq-intro {
  font-size: 0.95rem; color: var(--hp-text);
  margin: 0 0 14px;
}
.hp-dbq-sections {
  list-style: none; padding: 0; margin: 0 0 20px;
  counter-reset: dbq;
}
.hp-dbq-section {
  border-left: 3px solid var(--hp-navy);
  background: #fafbfc;
  padding: 12px 14px;
  margin: 0 0 10px;
  border-radius: 0 var(--hp-radius) var(--hp-radius) 0;
  page-break-inside: avoid;
}
.hp-dbq-section__title {
  font-family: var(--hp-font-head);
  color: var(--hp-navy);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.hp-dbq-section__body {
  font-size: 0.95rem;
  color: var(--hp-text);
  margin: 0;
  line-height: 1.55;
}

/* callout boxes for personalization */
.hp-callout {
  border-radius: var(--hp-radius);
  padding: 16px 18px; margin: 16px 0;
  border-left: 4px solid var(--hp-red);
  background: #fff6f2;
}
.hp-callout--info {
  border-left-color: var(--hp-navy);
  background: var(--hp-bg-soft);
}
.hp-callout--timeline {
  border-left-color: var(--hp-bright-blue);
  background: #eef6ff;
}
.hp-callout--iu {
  border-left-color: #b48a00;
  background: #fffbea;
}
.hp-condition-block--iu .hp-condition-block__title {
  border-left-color: #b48a00;
}
.hp-callout__title {
  font-family: var(--hp-font-head); color: var(--hp-navy);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin: 0 0 6px;
}
.hp-callout p:last-child { margin-bottom: 0; }

/* red-flag bridge block */
.hp-bridge {
  background: var(--hp-navy); color: var(--hp-white);
  border-radius: var(--hp-radius);
  padding: 22px 24px; margin: 24px 0 0;
  text-align: center;
}
.hp-bridge h3 {
  color: var(--hp-white); font-family: var(--hp-font-head);
  font-weight: 700; margin: 0 0 8px;
}
.hp-bridge p { color: rgba(255,255,255,0.92); margin: 0 0 16px; }
.hp-bridge .hp-btn { margin: 0; }

/* ---------- CTA block ---------- */
.hp-cta-block { margin-top: 32px; }
.hp-cta-block--top { margin-top: 0; margin-bottom: 24px; }
.hp-cta {
  background: var(--hp-white); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); padding: 24px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 14px;
  box-shadow: var(--hp-shadow-sm);
}
.hp-cta__text { flex: 1; }
.hp-cta__text h3 { font-family: var(--hp-font-head); color: var(--hp-navy); margin: 0 0 4px; font-size: 1.1rem; }
.hp-cta__text p { color: var(--hp-muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 620px) {
  .hp-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .hp-cta .hp-btn { width: 100%; }
}
.hp-cta--form { flex-direction: column; align-items: stretch; }
.hp-cta--form form {
  display: grid; gap: 12px; margin-top: 14px;
}
.hp-label {
  font-family: var(--hp-font-head); font-size: 0.8rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--hp-navy);
}
.hp-cta input[type="email"] {
  font-family: var(--hp-font-body); font-size: 1rem;
  padding: 14px 16px; border-radius: var(--hp-radius);
  border: 2px solid var(--hp-border); background: var(--hp-white);
}
.hp-cta input[type="email"]:focus {
  outline: none; border-color: var(--hp-navy);
}
.hp-checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; color: var(--hp-text); cursor: pointer;
}
.hp-checkbox input { margin-top: 4px; }
.hp-form-status { margin: 4px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.hp-form-status.is-success { color: #0b7a3e; }
.hp-form-status.is-error { color: var(--hp-red); }

.hp-restart-row { margin-top: 28px; text-align: center; }

/* ---------- footer ---------- */
.hp-footer {
  background: var(--hp-navy); color: var(--hp-white);
  margin-top: 24px;
}
.hp-footer a { color: #bbd3f5; }
.hp-footer a:hover { color: var(--hp-white); }
.hp-footer__inner {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  padding: 24px 20px; font-size: 0.92rem;
}
.hp-footer__brand strong { font-family: var(--hp-font-head); font-size: 1rem; }
.hp-footer__brand p { margin: 4px 0 0; color: #bbd3f5; }
.hp-footer__contact p { margin: 2px 0; }

/* =============================================================
   PDF / PRINT LAYER
   Triggered by window.print() → browser Save-as-PDF. All rules live
   inside @media print so they never affect the on-screen experience.
   ============================================================= */

.hp-pdf-header,
.hp-pdf-footer {
  display: none;
}
.hp-pdf-header {
  border-bottom: 2px solid var(--hp-navy);
  padding-bottom: 10px; margin-bottom: 20px;
  align-items: center; justify-content: space-between;
}
.hp-pdf-header img { height: 32px; }
.hp-pdf-header__right {
  text-align: right; font-size: 10pt; color: var(--hp-muted);
}
.hp-pdf-footer {
  border-top: 1px solid var(--hp-border);
  margin-top: 24pt; padding-top: 10pt;
  font-size: 9pt; color: var(--hp-muted);
  text-align: center;
}
.hp-pdf-footer strong { color: var(--hp-navy); }

@media print {
  /* ----- page setup ----- */
  @page {
    size: letter;
    margin: 0.6in 0.55in 0.7in 0.55in;
  }

  /* Force background colors and borders to render in PDF */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ----- hide everything except the guide ----- */
  .hp-header,
  .hp-footer,
  .hp-nav-row,
  .hp-progress,
  .hp-cta-block,
  .hp-restart-row,
  .hp-screen:not([data-screen="guide"]),
  .hp-bridge .hp-btn {
    display: none !important;
  }
  .hp-screen[data-screen="guide"] { display: block !important; }

  /* ----- body / container reset ----- */
  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.45;
  }
  .hp-main { padding: 0 !important; max-width: none !important; }
  .hp-guide {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    max-width: none !important;
  }

  /* ----- show PDF header/footer ----- */
  .hp-pdf-header { display: flex !important; }
  .hp-pdf-footer { display: block !important; }

  /* ----- typography tuned for print ----- */
  .hp-guide__hero { margin-bottom: 18pt; }
  .hp-guide__kicker {
    font-size: 9pt; letter-spacing: 0.1em;
    color: var(--hp-red) !important; margin: 0 0 4pt;
  }
  .hp-guide__title {
    font-size: 22pt; line-height: 1.2;
    color: var(--hp-navy) !important; margin: 0 0 6pt;
  }
  .hp-guide__summary { font-size: 10.5pt; color: #333 !important; margin: 0; }

  .hp-guide__h2 {
    font-size: 15pt; color: var(--hp-navy) !important;
    margin: 18pt 0 6pt; padding-bottom: 3pt;
    border-bottom: 1pt solid var(--hp-border);
  }
  .hp-guide__h3 {
    font-size: 12pt; color: var(--hp-navy) !important;
    margin: 14pt 0 4pt;
  }
  .hp-guide__h4 {
    font-size: 10.5pt; color: var(--hp-navy) !important;
    margin: 10pt 0 4pt; letter-spacing: 0.04em;
  }
  .hp-guide p { margin: 0 0 6pt; }
  .hp-guide ul { margin: 0 0 10pt; padding-left: 16pt; }
  .hp-guide ul li { margin-bottom: 3pt; }

  /* ----- per-condition blocks ----- */
  .hp-condition-block {
    page-break-inside: avoid;
    break-inside: avoid;
    border-top: 1pt solid var(--hp-border);
    padding-top: 14pt; margin-top: 18pt;
  }
  .hp-condition-block__title {
    font-size: 14pt; color: var(--hp-navy) !important;
    padding-left: 10pt; border-left: 3pt solid var(--hp-red);
    margin: 0 0 3pt;
  }
  .hp-condition-block__kicker {
    font-size: 8pt; color: var(--hp-muted) !important;
    padding-left: 13pt; margin: 0 0 10pt;
  }

  /* ----- DBQ preview sections (numbered blocks) ----- */
  .hp-dbq-form {
    font-size: 9.5pt; background: var(--hp-bg-soft) !important;
    border: 0.5pt solid var(--hp-border);
    padding: 6pt 10pt; margin: 0 0 6pt;
  }
  .hp-dbq-caveat {
    font-size: 9pt; background: #fff8e1 !important;
    border-left: 2pt solid #e6b800;
    padding: 6pt 10pt; margin: 0 0 6pt;
  }
  .hp-dbq-intro { font-size: 10pt; margin: 0 0 8pt; }
  .hp-dbq-sections { list-style: none; padding: 0; margin: 0 0 12pt; }
  .hp-dbq-section {
    page-break-inside: avoid;
    break-inside: avoid;
    border-left: 2pt solid var(--hp-navy);
    background: #fafbfc !important;
    padding: 7pt 10pt; margin: 0 0 6pt;
  }
  .hp-dbq-section__title {
    font-size: 10pt; color: var(--hp-navy) !important;
    margin: 0 0 2pt;
  }
  .hp-dbq-section__body {
    font-size: 9.5pt; line-height: 1.45;
    margin: 0;
  }

  /* ----- callouts (era / timeline) ----- */
  .hp-callout {
    page-break-inside: avoid;
    break-inside: avoid;
    border-left: 3pt solid var(--hp-red);
    background: #fff6f2 !important;
    padding: 8pt 10pt; margin: 10pt 0;
  }
  .hp-callout--info {
    border-left-color: var(--hp-navy);
    background: var(--hp-bg-soft) !important;
  }
  .hp-callout--timeline {
    border-left-color: var(--hp-bright-blue);
    background: #eef6ff !important;
  }
  .hp-callout--iu {
    border-left-color: #b48a00;
    background: #fffbea !important;
  }
  .hp-condition-block--iu .hp-condition-block__title {
    border-left-color: #b48a00;
  }
  .hp-callout__title {
    font-size: 10pt; color: var(--hp-navy) !important;
    margin: 0 0 3pt;
  }

  /* ----- bridge (free review CTA) ----- */
  .hp-bridge {
    page-break-inside: avoid;
    break-inside: avoid;
    background: var(--hp-bg-soft) !important;
    border: 0.75pt solid var(--hp-navy);
    padding: 10pt 12pt; margin-top: 16pt;
  }
  .hp-bridge h3 { color: var(--hp-navy) !important; font-size: 11.5pt; margin: 0 0 4pt; }
  .hp-bridge p  { color: #333 !important; font-size: 10pt; margin: 0 0 4pt; }

  /* ----- prevent orphan headings ----- */
  h2, h3, h4 {
    page-break-after: avoid;
    break-after: avoid;
  }

  /* ----- widow / orphan control ----- */
  p, li {
    orphans: 3;
    widows: 3;
  }

  /* ----- ensure links don't print in distracting colors ----- */
  a { color: inherit !important; text-decoration: none !important; }
}
