:root {
  --ink: #172a33;
  --muted: #52666f;
  --line: #ccd6da;
  --blue: #2d5fa8;
  --blue-soft: #f1f4f9;
  --green: #26765e;
  --green-soft: #eef6f2;
  --purple: #6e52a3;
  --purple-soft: #f4f1f8;
  --amber: #a9650e;
  --amber-soft: #fbf6ec;
  --paper: #f7f8f7;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: #edf1f1; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); }
a, button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 13px; background: #fff; color: var(--blue); font-weight: 700; }
.skip-link:focus { transform: none; }

.guide-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: clamp(28px, 4vw, 58px) clamp(22px, 5vw, 76px) clamp(26px, 3.3vw, 48px); border-top: 5px solid; border-image: linear-gradient(90deg, var(--green), var(--blue)) 1; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #f5faf7, #f4f7fb); }
.guide-header-copy > p, .section-eyebrow, .sidebar-label { margin: 0; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-header h1 { margin: 9px 0 0; font-size: clamp(38px, 4vw, 62px); font-weight: 680; letter-spacing: -.048em; line-height: .98; }
.guide-header-copy > span { display: block; max-width: 860px; margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.2vw, 19px); line-height: 1.45; }
.guide-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-self: center; max-width: 520px; }
.guide-header-actions a, .guide-header-actions button, .practice-actions a { min-height: 42px; padding: 11px 15px; border: 1px solid var(--blue); background: #fff; color: var(--blue); font-size: 13px; font-weight: 760; text-decoration: none; cursor: pointer; }
.guide-header-actions .primary { background: var(--blue); color: #fff; }
.guide-header-actions a:hover, .guide-header-actions button:hover, .practice-actions a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.guide-shell { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 920px); gap: clamp(28px, 4vw, 64px); justify-content: center; width: min(1420px, 100%); margin: 0 auto; padding: clamp(30px, 4.5vw, 68px) clamp(22px, 5vw, 76px); }
.guide-sidebar { position: sticky; top: 24px; align-self: start; display: grid; gap: 14px; }
.guide-sidebar > strong { font-size: 21px; letter-spacing: -.02em; }
.guide-sidebar > nav { display: grid; border-top: 2px solid var(--ink); }
.guide-sidebar > nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 660; text-decoration: none; }
.guide-sidebar > nav a:hover { padding-left: 9px; color: var(--blue); }
.shortcut-card { margin-top: 5px; padding: 16px; border-left: 4px solid var(--green); background: var(--green-soft); }
.shortcut-card h2 { margin: 0 0 10px; font-size: 14px; }
.shortcut-card dl { display: grid; gap: 7px; margin: 0; }
.shortcut-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.shortcut-card dt { color: var(--muted); }
.shortcut-card dd { margin: 0; color: var(--ink); font-weight: 760; }

.guide-content { min-width: 0; border-top: 4px solid var(--blue); background: #fff; box-shadow: 0 18px 50px rgba(31, 50, 59, .08); }
.guide-section { scroll-margin-top: 18px; padding: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.guide-section:last-child { border-bottom: 0; }
.guide-section h2 { margin: 8px 0 20px; font-size: clamp(27px, 3vw, 39px); font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
.guide-section h3, .guide-section p { margin-top: 0; }
.hero-section { background: linear-gradient(135deg, #fff, #f6f8fb); }
.orientation-section { background: linear-gradient(135deg, #f3f8f5, #f5f2fa); }
.objective-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.objective-grid article { min-height: 190px; padding: 22px; border-top: 5px solid var(--green); background: #fff; box-shadow: 0 10px 28px rgba(31, 50, 59, .06); }
.objective-grid article:nth-child(2) { border-top-color: var(--purple); }
.objective-grid span, .worked-framework > div > span { color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.objective-grid article:nth-child(2) span { color: var(--purple); }
.objective-grid h3 { margin: 11px 0 9px; font-size: 21px; letter-spacing: -.02em; line-height: 1.15; }
.objective-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.quick-start-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.quick-start-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.quick-start-list li:last-child { border-bottom: 0; }
.quick-start-list li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; }
.quick-start-list strong { font-size: 16px; }
.quick-start-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.guide-callout { margin-top: 22px; padding: 15px 17px; border-left: 5px solid var(--purple); background: var(--purple-soft); }
.guide-callout strong { display: block; margin-bottom: 5px; font-size: 14px; }
.guide-callout p { margin: 0; color: #5f5572; font-size: 13px; line-height: 1.45; }
.progress-callout { border-left-color: var(--green); background: var(--green-soft); }
.progress-callout p { color: #405f54; }

.learning-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.learning-loop article { min-height: 175px; padding: 17px; border-top: 4px solid var(--blue); background: var(--blue-soft); }
.learning-loop article:nth-child(2), .learning-loop article:nth-child(5) { border-top-color: var(--green); background: var(--green-soft); }
.learning-loop article:nth-child(3), .learning-loop article:nth-child(6) { border-top-color: var(--purple); background: var(--purple-soft); }
.learning-loop span { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.learning-loop h3 { margin: 9px 0 8px; font-size: 18px; }
.learning-loop p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.42; }

.framework-guide-section { background: #fcfcfb; }
.framework-intro { max-width: 760px; margin: -7px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.framework-guide-chain { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.framework-guide-chain article { min-width: 0; min-height: 188px; padding: 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.framework-guide-chain article:nth-child(3n + 1) { border-top: 4px solid var(--blue); }
.framework-guide-chain article:nth-child(3n + 2) { border-top: 4px solid var(--green); }
.framework-guide-chain article:nth-child(3n) { border-top: 4px solid var(--purple); }
.framework-guide-chain span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.framework-guide-chain h3 { margin: 10px 0 8px; font-size: 15px; line-height: 1.12; }
.framework-guide-chain p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.worked-framework { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.6fr); gap: 24px; margin-top: 22px; padding: 22px; border-left: 5px solid var(--purple); background: var(--purple-soft); }
.worked-framework > div h3 { margin: 8px 0; font-size: 22px; letter-spacing: -.025em; }
.worked-framework > div p { margin: 0; color: #5f5572; font-size: 13px; line-height: 1.45; }
.worked-framework ol { display: grid; gap: 7px; margin: 0; padding-left: 22px; color: #4e465f; font-size: 13px; line-height: 1.4; }
.worked-framework li::marker { color: var(--purple); font-weight: 800; }
.worked-framework b { color: var(--ink); }
.framework-rule { border-left-color: var(--green); background: var(--green-soft); }
.framework-rule p { color: #405f54; }

.control-grid, .notes-anatomy, .practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.control-grid article, .notes-anatomy article { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.control-grid b, .notes-anatomy span { display: inline-block; margin-bottom: 7px; color: var(--blue); font-size: 14px; font-weight: 800; }
.control-grid p, .notes-anatomy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.status-grid article { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--line); }
.status-grid article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 850; }
.status-grid .viewed > span { background: var(--green); }
.status-grid .flagged > span { background: var(--amber); }
.status-grid .complete > span { background: var(--purple); }
.status-grid h3 { margin: 1px 0 5px; font-size: 15px; }
.status-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.reading-tip, .schedule-note { margin: 18px 0 0; padding: 14px 16px; background: var(--amber-soft); color: #695b46; font-size: 13px; line-height: 1.48; }

.practice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-grid article { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.practice-grid span { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.practice-grid h3 { margin: 8px 0; font-size: 17px; line-height: 1.18; }
.practice-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.practice-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

.schedule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.schedule-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 78px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schedule-list b { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; }
.schedule-list strong, .schedule-list span { display: block; }
.schedule-list strong { font-size: 13px; line-height: 1.25; }
.schedule-list span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.troubleshooting-list { display: grid; gap: 10px; margin: 0; padding-left: 25px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.support-callout { border-left-color: var(--amber); background: var(--amber-soft); }
.support-callout p { color: #695b46; }
.clinical-scope { background: #faf8f4; }
.clinical-scope > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.guide-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px clamp(22px, 5vw, 76px) 28px; border-top: 1px solid var(--line); background: #edf1f1; color: var(--muted); font-size: 12px; }
.guide-footer p { margin: 0; }
.guide-footer a { color: var(--blue); font-weight: 700; }

@media (max-width: 1000px) {
  .guide-header { grid-template-columns: 1fr; align-items: start; }
  .guide-header-actions { justify-content: flex-start; max-width: none; }
  .guide-shell { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .guide-sidebar > nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-sidebar > nav a:nth-child(odd) { border-right: 1px solid var(--line); }
  .shortcut-card { display: none; }
  .framework-guide-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .guide-header { padding: 26px 18px; }
  .guide-header h1 { font-size: 38px; }
  .guide-shell { padding: 24px 14px; }
  .guide-section { padding: 28px 20px; }
  .objective-grid, .learning-loop, .status-grid, .practice-grid, .schedule-list, .control-grid, .notes-anatomy, .framework-guide-chain, .worked-framework { grid-template-columns: 1fr; }
  .framework-guide-chain article { min-height: 0; }
  .learning-loop article { min-height: 0; }
  .guide-sidebar > nav { grid-template-columns: 1fr; }
  .guide-sidebar > nav a:nth-child(odd) { border-right: 0; }
  .guide-header-actions a, .guide-header-actions button { flex: 1 1 145px; text-align: center; }
  .guide-footer { flex-direction: column; }
}

@media print {
  @page { margin: .55in; }
  html, body { background: #fff; }
  .skip-link, .guide-header-actions, .guide-sidebar, .practice-actions, .guide-footer { display: none !important; }
  .guide-header { display: block; padding: 0 0 22px; border-top: 0; background: #fff; }
  .guide-header h1 { font-size: 34px; }
  .guide-shell { display: block; width: auto; padding: 0; }
  .guide-content { border-top: 2px solid #000; box-shadow: none; }
  .guide-section { padding: 24px 0; break-inside: avoid; }
  .learning-loop, .status-grid, .practice-grid { grid-template-columns: repeat(3, 1fr); }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
