.guided-check { border-color: #3d8063; }
.guided-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.guided-heading h1 { max-width: 16ch; font-size: clamp(2rem, 6vw, 4rem); }
#guided-progress { flex: 0 0 auto; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: 1.1rem; font-weight: 900; }
.guided-lead { max-width: 50rem; color: #d7e1dc; line-height: 1.55; }
.guided-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.guided-steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.55rem; min-width: 0; padding: 0.8rem; border: 1px solid var(--line); border-radius: 0.8rem; color: var(--muted); }
.guided-steps li > span { grid-row: 1 / 3; display: grid; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #20322c; color: #fff; font-weight: 800; place-items: center; }
.guided-steps strong, .guided-steps small { overflow-wrap: anywhere; }
.guided-steps li[data-state="current"], .guided-steps li[data-state="in_progress"] { border-color: var(--accent); color: #fff; }
.guided-steps li[data-state="complete"] { border-color: #3d8063; color: #fff; }
.guided-steps li[data-state="complete"] > span { background: #3d8063; }
.guided-steps li[data-outcome="has_risks"], .guided-steps li[data-outcome="could_not_check"] { border-color: #b68a36; }
.guided-steps li[data-outcome="not_ready"] { border-color: #b95757; }
.guided-continue { min-height: 3rem; padding: 0.75rem 1.2rem; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
.guided-continue:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.guided-summary { margin-top: 1rem; padding: 1rem; border: 1px solid #3d8063; border-radius: 0.9rem; }
.guided-summary[data-outcome="has_risks"], .guided-summary[data-outcome="could_not_check"] { border-color: #b68a36; }
.guided-summary[data-outcome="not_ready"] { border-color: #b95757; }
.guided-summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.guided-summary h2 { margin-bottom: 0.6rem; }
.guided-summary-limitation { color: var(--muted); line-height: 1.5; }
#guided-summary-recommendations { display: grid; gap: 0.7rem; margin: 1rem 0 0; padding: 0; list-style: none; }
#guided-summary-recommendations li { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.guided-return { flex: 0 0 auto; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.guided-return:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.guided-print-button { margin-top: 1rem; min-height: 3rem; padding: 0.75rem 1.1rem; border: 0; border-radius: 999px; background: var(--accent); color: #062118; font: inherit; font-weight: 800; cursor: pointer; }
.guided-print-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.guided-print-report { display: none; }
@media (max-width: 50rem) { .guided-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 42rem) {
  .guided-heading { flex-direction: column; }
  .guided-steps { grid-template-columns: 1fr; }
  #guided-summary-recommendations li { align-items: stretch; flex-direction: column; }
}
@media print {
  body.guided-print-active { background: #fff; color: #111; }
  body.guided-print-active .site-header,
  body.guided-print-active > footer,
  body.guided-print-active main > :not(#guided-check),
  body.guided-print-active #guided-check > :not(#guided-print-report) { display: none !important; }
  body.guided-print-active main { display: block; width: 100%; padding: 0; }
  body.guided-print-active #guided-check { display: block; padding: 0; border: 0; background: #fff; color: #111; }
  body.guided-print-active #guided-print-report[data-ready="true"] { display: block !important; }
  .guided-print-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #111; }
  .guided-print-header strong { font-size: 1.5rem; }
  .guided-print-header span { color: #176b49; }
  .guided-print-checks { margin: 1rem 0; padding: 0; list-style: none; }
  .guided-print-checks li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid #bbb; }
  .guided-print-engineering { margin-top: 1.5rem; }
  .guided-print-engineering article { break-inside: avoid; margin-top: 0.8rem; padding: 0.7rem; border: 1px solid #aaa; }
  .guided-print-engineering h4 { margin: 0 0 0.5rem; }
  .guided-print-engineering dl { margin: 0; }
  .guided-print-engineering dl div { display: grid; grid-template-columns: 12rem 1fr; gap: 0.8rem; padding: 0.25rem 0; }
  .guided-print-engineering dt { color: #444; }
  .guided-print-engineering dd { margin: 0; font-weight: 600; }
  .guided-print-limitation { margin-top: 1.5rem; color: #333; }
  .guided-print-footer { width: 100%; margin-top: 2rem; padding-top: 0.75rem; border-top: 1px solid #777; }
  .guided-print-footer a { color: #111; }
}