/* assets/workbook-shell.css
 * Shared base styles for the Succession Thinking Workbook.
 * Tokens duplicated intentionally so each workbook page renders standalone.
 * Visual treatment matches /diagnostic/.
 */

:root {
  --navy:       #30364E;
  --navy-deep:  #1E2235;
  --navy-mid:   #252B40;
  --sage:       #98CC8F;
  --sage-dark:  #7AB870;
  --cream:      #FAF9F5;
  --ink:        #1A1A1A;
  --ink-muted:  #4A4A4A;
  --line:       rgba(48, 54, 78, 0.12);
  --white:      #FFFFFF;
  --adapt:      #F1634C;
  --amber:      #C9956A;
  --radius:     4px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--sage); color: var(--navy-deep);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  z-index: 9999; border-radius: 0 0 4px 0; text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
}
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; line-height: 1.12;
  color: var(--navy-deep);
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
.lead {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300; line-height: 1.7;
  color: var(--ink-muted);
}

.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  min-height: 44px;
}
.btn-sage { background: var(--sage); color: var(--navy-deep); }
.btn-sage:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(152, 204, 143, 0.35); }
.btn-sage:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline-navy {
  background: transparent; color: var(--navy); border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-quiet {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  font-size: 12px;
  padding: 8px 16px;
}
.btn-quiet:hover { color: var(--navy-deep); border-color: var(--navy); }

/* ─── NAV (mirrors site nav) ─── */
nav.wb-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.wb-nav .nav-logo { display: flex; flex-direction: column; gap: 4px; }
.wb-nav .nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--white);
  text-transform: uppercase;
  display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap; cursor: pointer;
}
.wb-nav .nav-wordmark-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400;
  letter-spacing: 0.02em; text-transform: none;
  color: rgba(255,255,255,0.55);
}
.wb-nav .nav-endorser {
  font-family: 'Poppins', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
.wb-nav .nav-adapt-logo img { height: 15px; opacity: 0.65; transition: opacity 0.2s; }
.wb-nav .nav-adapt-logo:hover img { opacity: 1; }
.wb-nav .nav-right { display: flex; align-items: center; gap: 32px; }
.wb-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13px; color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em; transition: color 0.2s;
}
.wb-nav .nav-link:hover { color: var(--white); }
.wb-nav .nav-link.is-active { color: var(--white); font-weight: 500; }
.wb-nav .nav-cta {
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--navy-deep); background: var(--sage);
  padding: 10px 24px; border-radius: var(--radius);
  transition: var(--transition); letter-spacing: 0.04em;
  min-height: 44px; display: inline-flex; align-items: center;
}
.wb-nav .nav-cta:hover { background: var(--sage-dark); }
.wb-nav .nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px; min-height: 44px; min-width: 44px; position: relative; z-index: 201;
}
.wb-nav .nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.wb-nav .nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wb-nav .nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.wb-nav .nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wb-mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--navy-deep);
  z-index: 200;
  flex-direction: column;
  padding: 100px 40px 60px;
  overflow-y: auto;
}
.wb-mobile-nav.is-open { display: flex; }
.wb-mobile-nav .mobile-nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 300; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.7);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block; transition: color 0.2s;
}
.wb-mobile-nav .mobile-nav-link:hover, .wb-mobile-nav .mobile-nav-link:focus { color: var(--sage); outline: none; }
.wb-mobile-nav .mobile-nav-cta {
  display: flex; align-items: center; justify-content: center;
  margin-top: 40px; padding: 18px 40px;
  background: var(--sage); color: var(--navy-deep);
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px; min-height: 56px;
}
.wb-mobile-nav .mobile-nav-cta:hover { background: var(--sage-dark); }

/* ─── PAGE CONTAINER ─── */
.wb-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}
.wb-hero {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 48px;
}
.wb-hero .eyebrow { color: var(--sage-dark); margin-bottom: 12px; display: block; }
.wb-hero h1 { margin-bottom: 16px; }
.wb-hero .lead { max-width: 660px; }

.wb-section { margin: 48px 0; }
.wb-section h2 { margin-bottom: 16px; }
.wb-section .lead { max-width: 720px; margin-bottom: 24px; }

/* ─── FORM PRIMITIVES ─── */
.wb-form-row { margin-bottom: 28px; }
.wb-label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--navy-deep);
  display: block; margin-bottom: 8px;
}
.wb-hint {
  font-size: 13px; color: var(--ink-muted);
  margin-bottom: 12px; line-height: 1.6;
}
.wb-input, .wb-textarea, .wb-select {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.wb-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.wb-input:focus, .wb-textarea:focus, .wb-select:focus {
  outline: none;
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(152, 204, 143, 0.18);
}
.wb-input[type="number"] { -moz-appearance: textfield; }
.wb-input[type="number"]::-webkit-outer-spin-button,
.wb-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wb-meta { font-size: 12px; color: var(--ink-muted); margin-top: 8px; }
.wb-error { color: #B5523A; font-size: 13px; margin-top: 8px; }

.wb-honeypot {
  position: absolute; left: -9999px; top: -9999px;
  height: 0; width: 0; opacity: 0; pointer-events: none;
}

/* ─── RESULTS / SUMMARY ─── */
.wb-results-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 56px 48px;
  border-radius: 6px;
  margin: 0 0 32px;
}
.wb-results-hero .eyebrow { color: var(--sage); display: block; margin-bottom: 12px; }
.wb-results-hero h2 { color: var(--white); margin-bottom: 16px; }
.wb-results-hero p { color: rgba(255,255,255,0.78); line-height: 1.7; max-width: 720px; }

.wb-bar-row {
  display: flex; align-items: center; gap: 16px;
  margin: 12px 0;
}
.wb-bar-label { flex: 0 0 200px; font-size: 14px; color: var(--navy-deep); }
.wb-bar-track {
  flex: 1; height: 10px;
  background: rgba(48, 54, 78, 0.08);
  border-radius: 6px; overflow: hidden;
}
.wb-bar-fill {
  height: 100%; background: var(--sage);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wb-bar-value { flex: 0 0 60px; text-align: right; font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ─── SAVE MODAL ─── */
.wb-save-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(30, 34, 53, 0.78);
  z-index: 300;
  align-items: center; justify-content: center;
  padding: 24px;
}
.wb-save-modal.is-open { display: flex; }
.wb-save-modal__panel {
  background: var(--cream);
  border-radius: 6px;
  max-width: 480px;
  width: 100%;
  padding: 36px;
  max-height: 90vh;
  overflow-y: auto;
}
.wb-save-modal__panel h3 { margin-bottom: 12px; }
.wb-save-modal__panel p { font-size: 14px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 16px; }
.wb-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0; font-size: 13px; color: var(--ink-muted); line-height: 1.5;
}
.wb-checkbox-row input { margin-top: 3px; }
.wb-save-modal__close {
  background: none; border: none; color: var(--ink-muted);
  font-size: 22px; cursor: pointer; float: right;
  margin-top: -20px; margin-right: -16px;
  min-height: 44px; min-width: 44px;
}
.wb-save-modal__success {
  display: none; text-align: center; padding: 16px 0;
}
.wb-save-modal__success.is-visible { display: block; }
.wb-save-modal__check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage); color: var(--navy-deep);
  font-size: 28px; line-height: 56px;
  margin: 0 auto 16px;
}

/* ─── HUB ─── */
.wb-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.wb-hub-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.wb-hub-card:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(48, 54, 78, 0.06); }
.wb-hub-card[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.wb-hub-card .wb-card-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--sage-dark); text-transform: uppercase;
}
.wb-hub-card h3 {
  font-size: 22px; font-weight: 400; color: var(--navy-deep);
  font-family: 'Cormorant Garamond', serif;
}
.wb-hub-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
.wb-hub-card .wb-status {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
  margin-top: 8px;
}
.wb-hub-card .wb-status.is-completed { color: var(--sage-dark); }
.wb-hub-card .wb-status.is-progress { color: var(--amber); }

.wb-chapter-band {
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
}
.wb-chapter-band h2 { font-size: clamp(22px, 2.4vw, 30px); }
.wb-chapter-band .wb-chapter-meta { font-size: 13px; color: var(--ink-muted); }

.wb-cta-band {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 6px;
  padding: 40px;
  margin: 48px 0;
  text-align: center;
}
.wb-cta-band h3 { color: var(--white); margin-bottom: 12px; }
.wb-cta-band p { color: rgba(255,255,255,0.75); max-width: 540px; margin: 0 auto 20px; line-height: 1.6; }

/* ─── FOOTER ─── */
footer.wb-footer {
  background: var(--navy-deep);
  padding: 48px 72px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  margin-top: 80px;
}
.wb-footer .footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 500;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.5);
  text-transform: uppercase; margin-bottom: 6px;
}
.wb-footer .footer-endorser { font-size: 11px; color: rgba(255,255,255,0.3); }
.wb-footer .footer-center { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.4); text-align: center; }
.wb-footer .footer-center a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.wb-footer .footer-center a:hover { color: var(--white); }
.wb-footer .footer-right { text-align: right; }
.wb-footer .footer-contact { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.wb-footer .footer-email { font-size: 14px; color: var(--sage); transition: color 0.2s; }
.wb-footer .footer-email:hover { color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  nav.wb-nav { padding: 16px 20px; }
  nav.wb-nav .nav-link { display: none; }
  nav.wb-nav .nav-wordmark-sub { display: none; }
  nav.wb-nav .nav-endorser { display: none; }
  nav.wb-nav .nav-cta { display: none; }
  nav.wb-nav .nav-hamburger { display: flex; }
  .wb-page { padding: 100px 20px 60px; }
  .wb-results-hero { padding: 36px 24px; }
  .wb-bar-label { flex: 0 0 140px; font-size: 13px; }
  .wb-bar-value { flex: 0 0 44px; }
  footer.wb-footer { padding: 40px 20px; flex-direction: column; text-align: center; }
  .wb-footer .footer-right { text-align: center; }
  .wb-cta-band { padding: 28px; }
  .wb-save-modal__panel { padding: 24px; }
}
