/* 07-workbooks.css — Toolkit choice card, emotional terrain callout, compass overlay, journey tools panel, workbook overlay, topbar, tabs, scroll, sections, form fields, rating widget, workbook extended: checklist, two-col, radio groups, callout-warn, ring-meta */

/* ══════════════════════════════════════
   TOOLKIT CHOICE CARD (replaces plain download card)
══════════════════════════════════════ */
.toolkit-choice-card {
  background: var(--cobalt);
  padding: 20px;
  position: relative; overflow: hidden;
  margin-bottom: 16px;
}

.toolkit-choice-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

.toolkit-choice-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 400; color: white; margin-bottom: 6px;
}

.toolkit-choice-desc {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 16px;
}

.toolkit-choice-options {
  display: flex; flex-direction: column; gap: 8px;
}

/* ── Emotional Terrain Callout ─────────────────────────────────── */
.emo-callout {
  border-left: 3px solid var(--gold);
  background: rgba(184,146,74,0.07);
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 0 6px 6px 0;
}
.emo-callout-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-mid);
  margin-bottom: 5px;
}
.emo-callout-phase {
  font-family: 'DM Serif Display', serif;
  font-size: 13px; color: var(--text);
  margin-bottom: 7px; line-height: 1.3;
}
.emo-callout-body {
  font-size: 12px; line-height: 1.65;
  color: var(--text-mid);
}

/* ── Reflection Check-in Modal ─────────────────────────────────── */
#compassOverlay {
  position: fixed; inset: 0;
  background: rgba(28,58,86,0.9);
  backdrop-filter: blur(8px);
  z-index: 200; display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
#compassOverlay.show { display: flex; }
.compass-card {
  background: var(--cobalt);
  max-width: 520px; width: 100%;
  animation: fadeUp 0.4s cubic-bezier(0.4,0,0.2,1);
}
.compass-accent { height: 4px; background: linear-gradient(90deg, var(--gold), var(--terracotta)); }
.compass-inner { padding: 32px 32px 28px; }
.compass-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 8px;
}
.compass-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: #fff; line-height: 1.25;
}
.compass-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 5px;
}
.compass-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.55); font-size: 18px; padding: 2px 0 2px 12px;
  line-height: 1; transition: color 0.2s; flex-shrink: 0;
}
.compass-close:hover { color: #fff; }
/* Progress dots */
.compass-dots {
  display: flex; gap: 6px; margin-bottom: 28px; margin-top: 16px;
}
.compass-dot {
  height: 3px; flex: 1; background: rgba(255,255,255,0.12);
  border-radius: 2px; transition: background 0.3s;
}
.compass-dot.done { background: var(--gold); }
.compass-dot.active { background: rgba(184,146,74,0.55); }
/* Question area */
.compass-question {
  font-family: 'DM Serif Display', serif;
  font-size: 17px; color: #fff; line-height: 1.5;
  margin-bottom: 18px; min-height: 56px;
}
.compass-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 14px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: #fff; line-height: 1.65; resize: none;
  transition: border-color 0.2s;
  min-height: 100px;
}
.compass-textarea::placeholder { color: rgba(255,255,255,0.28); }
.compass-textarea:focus { border-color: rgba(184,146,74,0.6); }
.compass-textarea:focus:not(:focus-visible) { outline: none; }
.compass-hint {
  font-size: 12px; color: rgba(255,255,255,0.5);
  margin-top: 8px; font-style: italic;
}
/* Footer row */
.compass-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.compass-btn-back {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.55); font-size: 14px;
  font-family: 'DM Sans', sans-serif; padding: 0;
  transition: color 0.2s;
}
.compass-btn-back:hover { color: rgba(255,255,255,0.8); }
.compass-btn-next {
  background: var(--terracotta); color: #fff; border: none;
  padding: 11px 28px; border-radius: var(--radius-md); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.compass-btn-next:hover { background: var(--terra-dark); }
/* Completion screen */
.compass-complete {
  text-align: center; padding: 12px 0 4px;
}
.compass-complete-icon {
  font-size: 36px; margin-bottom: 16px;
}
.compass-complete-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: #fff; margin-bottom: 12px;
}
.compass-complete-body {
  font-size: 14px; color: rgba(255,255,255,0.7);
  line-height: 1.7; margin-bottom: 28px;
}

/* Journey Tools inline panel (in each phase sidebar) */
.jt-panel {
  background: var(--cobalt);
  padding: 16px;
  position: relative; overflow: hidden;
  margin-bottom: 16px;
}
.jt-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
}
.jt-panel-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.65);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px;
}
.jt-panel-grid {
  display: flex; flex-direction: column; gap: 6px;
}
.jt-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: none; cursor: pointer; width: 100%;
  font-family: 'DM Sans', sans-serif; text-align: left;
  font-size: 11px; font-weight: 600; color: white;
  transition: opacity 0.2s;
}
.jt-item:hover { opacity: 0.85; }
.jt-item-cobalt { background: rgba(255,255,255,0.08); }
.jt-item-terra { background: var(--terracotta); }
.jt-item-icon { font-size: 13px; flex-shrink: 0; width: 18px; text-align: center; }
.jt-item-label { line-height: 1.3; }
.jt-download-link { margin-left:auto; font-size:15px; opacity:0.75; flex-shrink:0; cursor:pointer; padding:2px 6px; border-radius:3px; }
.jt-download-link:hover { opacity:1; background:rgba(255,255,255,0.15); }

.btn-toolkit-online {
  width: 100%; background: var(--terracotta); color: white;
  border: none; cursor: pointer; padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: background 0.2s; text-align: left;
  display: flex; align-items: center; gap: 8px;
}

.btn-toolkit-online:hover { background: var(--terra-light); }

.btn-toolkit-online .btn-saved-indicator {
  margin-left: auto;
  font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em; text-transform: none;
  font-style: italic;
}

.btn-toolkit-download {
  width: 100%; background: rgba(255,255,255,0.08); color: white;
  border: 1px solid rgba(255,255,255,0.18); cursor: pointer; padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: background 0.2s; text-align: left;
  display: flex; align-items: center; gap: 8px;
}

.btn-toolkit-download:hover { background: rgba(255,255,255,0.15); }

/* ══════════════════════════════════════
   ONLINE WORKBOOK OVERLAY
══════════════════════════════════════ */
.workbook-overlay {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 120;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

/* Toolkit viewers use dark cobalt background */
#tk-consulate, #tk-tracker, #tk-visa, #tk-glossary, #tk-resources {
  background: var(--cobalt);
}
#tk-consulate .wb-scroll,
#tk-tracker .wb-scroll,
#tk-visa .wb-scroll,
#tk-glossary .wb-scroll,
#tk-resources .wb-scroll {
  flex: 1;
  overflow-y: auto;
  background: var(--cobalt);
  color: rgba(255,255,255,0.85);
  padding: 32px 40px;
}
#workbookOverlay .wb-scroll { padding: 0; }

.workbook-overlay.open { display: flex; }


/* Toolkit viewer tab bar on cobalt background */
#tk-consulate .wb-tabs,
#tk-tracker .wb-tabs,
#tk-visa .wb-tabs,
#tk-glossary .wb-tabs,
#tk-resources .wb-tabs {
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
#tk-consulate .wb-tab,
#tk-tracker .wb-tab,
#tk-visa .wb-tab,
#tk-glossary .wb-tab,
#tk-resources .wb-tab {
  color: rgba(255,255,255,0.55);
  border-bottom: 3px solid transparent;
}
#tk-consulate .wb-tab:hover,
#tk-tracker .wb-tab:hover,
#tk-visa .wb-tab:hover,
#tk-glossary .wb-tab:hover,
#tk-resources .wb-tab:hover { color: rgba(255,255,255,0.85); }
#tk-consulate .wb-tab.active,
#tk-tracker .wb-tab.active,
#tk-visa .wb-tab.active,
#tk-glossary .wb-tab.active,
#tk-resources .wb-tab.active {
  color: white;
  border-bottom-color: var(--terracotta);
  background: rgba(255,255,255,0.05);
}

/* Workbook topbar */
.wb-topbar {
  background: var(--cobalt);
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 32px; gap: 20px;
  border-bottom: 3px solid var(--terracotta);
}

.wb-topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 400; color: white;
  flex: 1;
}

.wb-topbar-title span {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.2em; text-transform: uppercase;
  display: block; margin-bottom: 2px;
}

.wb-save-status {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.55);
  font-style: italic; flex-shrink: 0;
  transition: color 0.3s;
}

.wb-save-status.saved { color: #6AAF96; }
.wb-save-status.saving { color: var(--gold-light); }

.wb-close-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white; cursor: pointer;
  padding: 8px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: background 0.2s; flex-shrink: 0;
}

.wb-close-btn:hover { background: rgba(255,255,255,0.15); }

/* Workbook nav tabs */
.wb-tabs {
  background: var(--warm-white);
  border-bottom: 1px solid var(--rule);
  display: flex; overflow-x: auto; flex-shrink: 0;
  padding: 0 32px;
}

.wb-tabs::-webkit-scrollbar { height: 2px; }
.wb-tabs::-webkit-scrollbar-thumb { background: var(--rule); }

.wb-tab {
  padding: 12px 18px;
  font-size: 12px; font-weight: 500;
  color: var(--text-light-aa);
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s; letter-spacing: 0.05em;
}

.wb-tab:hover { color: var(--cobalt); }
.wb-tab.active { color: var(--cobalt); border-bottom-color: var(--terracotta); font-weight: 600; }
.wb-tab.tab-ahead { opacity: 0.45; cursor: default; }
.wb-tab.tab-ahead:hover { color: var(--text-light); }

.wb-tab .wb-tab-check {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  position: relative; top: -1px;
  transition: all 0.2s;
}

.wb-tab.section-done .wb-tab-check {
  background: var(--forest);
  border-color: var(--forest);
}

.wb-tab.section-done .wb-tab-check::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 6px; height: 3px;
  border-left: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(-45deg);
}

/* Workbook scroll area */
.wb-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0;
}

.wb-scroll::-webkit-scrollbar { width: 4px; }
.wb-scroll::-webkit-scrollbar-thumb { background: rgba(44,31,20,0.15); border-radius: 2px; }

/* Workbook sections */
.wb-section { display: none; }
.wb-section.active { display: block; }

.wb-section-header {
  background: var(--cobalt); padding: 32px 40px 36px;
  position: relative; overflow: hidden;
}

.wb-section-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 100% 50%, rgba(74,127,168,0.12), transparent 55%);
}

.wb-section-header::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

.wb-section-num {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--terra-light); margin-bottom: 8px;
  position: relative;
}

.wb-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 400; color: white;
  line-height: 1.2; margin-bottom: 10px; position: relative;
}

.wb-section-title em { font-style: italic; color: var(--gold-light); }

.wb-section-desc {
  font-family: 'Spectral', serif;
  font-size: 14px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.7); max-width: 540px;
  line-height: 1.7; position: relative;
}

.wb-body { padding: 36px 40px; max-width: 860px; }

/* Form elements */
.wb-field-group { margin-bottom: 28px; }

.wb-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 8px; display: block;
}

.wb-sublabel {
  font-size: 12px; font-weight: 300; font-style: italic;
  color: var(--text-light-aa); margin-bottom: 10px; display: block;
  line-height: 1.5;
}

.wb-textarea {
  width: 100%; min-height: 100px;
  background: var(--warm-white);
  border: 1.5px solid var(--rule);
  padding: 14px 16px;
  font-family: 'Spectral', serif;
  font-size: 15px; font-weight: 300;
  color: var(--text); line-height: 1.7;
  resize: vertical; transition: border-color 0.2s;
}

.wb-textarea:focus { border-color: var(--cobalt-light); }
.wb-textarea:focus:not(:focus-visible) { outline: none; }
.wb-textarea::placeholder { color: var(--text-light); opacity: 0.6; font-style: italic; }

.wb-input {
  width: 100%; height: 42px;
  background: var(--warm-white);
  border: 1.5px solid var(--rule);
  padding: 0 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 300;
  color: var(--text); transition: border-color 0.2s;
}

.wb-input:focus { border-color: var(--cobalt-light); }
.wb-input:focus:not(:focus-visible) { outline: none; }
.wb-input::placeholder { color: var(--text-light); opacity: 0.6; }

/* Rating widget */
.wb-rating-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.wb-rating-row:first-of-type { border-top: 1px solid var(--rule); }

.wb-rating-label { font-size: 13px; font-weight: 500; color: var(--text); }
.wb-rating-sublabel { font-size: 12px; font-weight: 300; color: var(--text-light-aa); margin-top: 2px; }

.wb-rating-pips {
  display: flex; gap: 8px;
}

.wb-pip {
  width: 36px; height: 36px;
  border: 1.5px solid var(--rule);
  background: var(--warm-white);
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--text-light);
}

.wb-pip:hover { border-color: var(--cobalt-light); color: var(--cobalt); }
.wb-pip.active { background: var(--cobalt); border-color: var(--cobalt); color: white; font-weight: 600; }

.wb-rating-score {
  font-size: 11px; font-weight: 300;
  color: var(--text-light); white-space: nowrap;
  min-width: 60px; text-align: right;
}

/* Table inputs */
.wb-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.wb-table th {
  background: var(--cobalt); color: white;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 10px 12px; text-align: left;
}

.wb-table td {
  border: 1px solid var(--rule);
  padding: 0; vertical-align: middle;
}

.wb-table tr:nth-child(even) td { background: rgba(249,244,237,0.5); }

.wb-table .td-label {
  padding: 10px 12px;
  font-size: 12px; font-weight: 400; color: var(--text-mid);
  background: var(--cobalt-pale) !important;
  white-space: nowrap;
}

.wb-table input[type="text"], .wb-table select {
  width: 100%; height: 38px;
  background: transparent; border: none;
  padding: 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 300; color: var(--text);
  transition: background 0.15s;
}

.wb-table input[type="text"]:focus, .wb-table select:focus {
  background: rgba(74,127,168,0.06);
}
.wb-table input[type="text"]:focus:not(:focus-visible),
.wb-table select:focus:not(:focus-visible) { outline: none; }

/* Dollar-prefix cell wrapper */
.td-currency {
  display: flex; align-items: center;
  padding: 0; height: 38px;
}
.td-currency .currency-sym {
  padding: 0 0 0 10px;
  font-size: 13px; font-weight: 400; color: var(--text-mid);
  user-select: none; flex-shrink: 0;
}
.td-currency input[type="text"] {
  flex: 1; padding-left: 4px !important;
}

/* ERV notes textarea */
.wb-req-notes-ta {
  width: 100%; min-height: 38px;
  background: transparent; border: none;
  padding: 8px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 300; color: var(--text);
  resize: vertical; line-height: 1.4;
  transition: background 0.15s;
}
.wb-req-notes-ta:focus { background: rgba(74,127,168,0.06); }
.wb-req-notes-ta:focus:not(:focus-visible) { outline: none; }
.wb-table td.notes-cell { vertical-align: top; padding: 0; }

/* Section total bar */
.wb-score-bar {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  padding: 16px 20px;
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.wb-score-label {
  font-size: 12px; font-weight: 500; color: var(--cobalt);
}

.wb-score-value {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 400; color: var(--cobalt);
}

.wb-score-interp {
  font-size: 12px; font-weight: 300; font-style: italic;
  color: var(--text-light-aa);
}

/* Callout */
.wb-callout {
  border-left: 3px solid var(--gold);
  padding: 14px 18px; background: var(--gold-pale);
  margin-bottom: 24px;
}

.wb-callout-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}

.wb-callout-text {
  font-family: 'Spectral', serif;
  font-size: 15px; font-weight: 400; font-style: italic;
  color: var(--text-mid); line-height: 1.65;
}

.wb-callout.warn { border-left-color: var(--terracotta); background: var(--terra-pale); }
.wb-callout.warn .wb-callout-label { color: var(--terracotta); }

/* Section nav buttons */
.wb-nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid var(--rule);
  background: var(--warm-white);
  flex-shrink: 0;
}

.wb-nav-prev, .wb-nav-next {
  padding: 12px 28px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: all 0.2s; border: 1.5px solid;
}

.wb-nav-prev { background: none; border-color: var(--rule); color: var(--text-light); }
.wb-nav-prev:hover { border-color: var(--cobalt); color: var(--cobalt); }
.wb-nav-prev:disabled { opacity: 0.3; cursor: default; border-color: var(--rule); color: var(--text-light); }
.wb-nav-prev:disabled:hover { border-color: var(--rule); color: var(--text-light); }
.wb-nav-next { background: var(--cobalt); border-color: var(--cobalt); color: white; }
.wb-nav-next:hover { background: var(--cobalt-mid); }
.wb-nav-next:disabled { background: var(--rule); border-color: var(--rule); color: white; cursor: default; }

.wb-progress-label {
  font-size: 12px; font-weight: 300;
  color: var(--text-light-aa); letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════
   MISSING WORKBOOK & TOOL CSS — Bug Fix
══════════════════════════════════════════════════════ */

/* Workbook checklist */
.wb-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.wb-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.wb-check-item:last-child { border-bottom: none; }
.wb-check-item input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--cobalt);
  width: 15px; height: 15px; cursor: pointer;
}
.wb-check-item span { flex: 1; }

/* Workbook two-column layout (label + input pairs) */
.wb-two-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.wb-two-col-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.wb-two-col-row:last-child { border-bottom: none; }
.wb-two-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--warm-white);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--rule);
}

/* Workbook section nav bar (prev / next) */
.wb-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px 40px;
  border-top: 1px solid var(--rule);
  background: var(--warm-white);
  flex-shrink: 0;
}
.wb-nav-btn {
  background: var(--cobalt);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.15s;
}
.wb-nav-btn:hover { background: var(--cobalt-dark); }
.wb-nav-btn.secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--rule);
}
.wb-nav-btn.secondary:hover { background: var(--warm-white); color: var(--cobalt); }

/* Workbook radio group */
.wb-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.wb-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
  cursor: pointer;
  padding: 8px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
}
.wb-radio-option:hover { border-color: var(--cobalt); background: var(--warm-white); }
.wb-radio-option input[type="radio"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--cobalt);
  cursor: pointer;
}

/* Workbook callout — warning modifier */
.wb-callout-warn {
  border-left-color: var(--terracotta);
  background: rgba(196, 98, 45, 0.06);
}
.wb-callout-warn .wb-callout-label { color: var(--terracotta); }

/* Workbook requirements check input */
.wb-req-check {
  width: 100%;
  height: 38px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-mid);
  text-align: center;
}
.wb-req-check:focus { border-bottom-color: var(--cobalt); }
.wb-req-check:focus:not(:focus-visible) { outline: none; }

/* Progress ring meta text (next to ring SVG) */
.ring-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Calculator pathway content panels */
.calc-pathway-content {
  display: none;
}
.calc-pathway-content:first-of-type,
#calc-erv {
  display: block;
}
