/* ==========================================================================
   LINH HUA — STYLING SYSTEM (Linen & Espresso Brand Theme)
   ========================================================================== */

:root {
  /* 4 Core Colors — Linh Hua Brand */
  --linen: #F4EFE6;         /* 60% Main background */
  --espresso: #2E251F;      /* 25% Main dark text & structures */
  --terra: #B36A4A;         /* 10% Accents & primary CTA */
  --sand: #D4C4A8;          /* 5% Bridges & secondary elements */
  
  --surface: #FFFFFF;       /* Card surfaces */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Dreyfus Rating Levels Solid Colors */
  --lv1: #C94040;           /* Novice - Red */
  --lv2: #D4782A;           /* Advanced Beginner - Orange */
  --lv3: #4C6EF5;           /* Competent - Blue */
  --lv4: #1A9467;           /* Proficient - Green */
  --lv5: #B36A4A;           /* Expert - Terra */
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 12px 32px rgba(46, 37, 31, 0.04);
  --shadow-hover: 0 20px 48px rgba(46, 37, 31, 0.08);
}

/* ─── RESET & DEFAULTS ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--linen);
  color: var(--espresso);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.6;
}

button, input {
  font-family: inherit;
  color: inherit;
  outline: none;
}

/* ─── GLOBAL TOOLTIP ─── */
#g-tooltip {
  position: fixed;
  background: var(--espresso);
  color: var(--linen);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
  width: 260px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(212, 196, 168, 0.1);
}
#g-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}
#g-tooltip .gt-title {
  display: block;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 6px;
}
#g-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--espresso) transparent transparent;
}

/* ─── WIZARD SCREENS MANAGEMENTS ─── */
.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  min-height: 100vh;
  padding: 60px 20px;
}
.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* ─── SCREEN 1: INTRO SCREEN ─── */
#intro {
  padding: 80px 24px;
}
.intro-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(179, 106, 74, 0.07);
  color: var(--terra);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--terra);
  border-radius: 50%;
}
.brand-lh {
  font-weight: 800;
}
.intro-h {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: var(--espresso);
  margin-bottom: 30px;
}
.intro-h span.gold {
  color: var(--terra);
  font-style: italic;
  font-weight: 600;
}
.intro-h span.dim {
  color: var(--sand);
}
.intro-line {
  width: 80px;
  height: 2px;
  background: var(--sand);
  margin: 0 auto 30px;
}
.intro-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(46, 37, 31, 0.7);
  margin-bottom: 40px;
}
.intro-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 480px;
  margin: 0 auto 40px;
}
.meta-item {
  background: var(--surface);
  border: 1px solid rgba(46, 37, 31, 0.06);
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.meta-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--terra);
}
.meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(46, 37, 31, 0.5);
  margin-top: 4px;
}
.name-wrap {
  max-width: 320px;
  margin: 0 auto 24px;
}
.name-field {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--sand);
  color: var(--espresso);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}
.name-field:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 4px rgba(179, 106, 74, 0.1);
}
.name-field::placeholder {
  color: rgba(46, 37, 31, 0.35);
}
.btn-start {
  background: var(--terra);
  color: var(--linen);
  border: 1px solid var(--terra);
  padding: 16px 40px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(179, 106, 74, 0.15);
}
.btn-start:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 37, 31, 0.15);
}
.intro-groups {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  border-top: 1px solid rgba(46, 37, 31, 0.08);
  padding-top: 24px;
}
.ig-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ig-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ig-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(46, 37, 31, 0.55);
}

/* ─── SCREEN 2: ASSESS SCREEN ─── */
#assess {
  padding-top: 88px;
  padding-bottom: 120px;
  align-items: center;
  justify-content: flex-start;
}
.assess-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(46, 37, 31, 0.06);
  z-index: 100;
}
.nav-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-progress {
  font-size: 12px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.progress-track {
  position: fixed;
  top: 53px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(46, 37, 31, 0.04);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  background: var(--terra);
  width: 0%;
  transition: width 0.4s ease;
}
.assess-body {
  max-width: 780px;
  width: 100%;
  margin-top: 30px;
}
.steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.step-pip {
  width: 32px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(46, 37, 31, 0.06);
  transition: var(--transition);
}
.step-pip.active {
  background: var(--terra);
  width: 48px;
}
.step-pip.done {
  background: var(--espresso);
}

/* Group Hero Card */
.group-hero {
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 36px;
  border: 1px solid rgba(46, 37, 31, 0.06);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.group-hero.gh1 {
  background: linear-gradient(135deg, #FFFFFF, rgba(74, 63, 200, 0.04));
  border-color: rgba(74, 63, 200, 0.15);
}
.group-hero.gh2 {
  background: linear-gradient(135deg, #FFFFFF, rgba(15, 110, 86, 0.04));
  border-color: rgba(15, 110, 86, 0.15);
}
.group-hero.gh3 {
  background: linear-gradient(135deg, #FFFFFF, rgba(179, 106, 74, 0.04));
  border-color: rgba(179, 106, 74, 0.15);
}
.gh-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.gh-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--espresso);
  line-height: 1.2;
  margin-bottom: 8px;
}
.gh-sub {
  font-size: 14px;
  color: rgba(46, 37, 31, 0.65);
  margin-bottom: 24px;
}
.gh-prog {
  display: flex;
  align-items: center;
  gap: 16px;
}
.gh-bar {
  flex: 1;
  height: 6px;
  background: rgba(46, 37, 31, 0.05);
  border-radius: 9999px;
  overflow: hidden;
}
.gh-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
  background: var(--terra);
}
.gh-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--espresso);
  min-width: 48px;
  text-align: right;
}

/* Skill Cards */
.skill-card {
  background: var(--surface);
  border: 1px solid rgba(46, 37, 31, 0.06);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border-left: 4px solid var(--sand);
}
.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Highlights rated cards left-borders dynamically */
.skill-card.rated.rv1 { border-left-color: var(--lv1); }
.skill-card.rated.rv2 { border-left-color: var(--lv2); }
.skill-card.rated.rv3 { border-left-color: var(--lv3); }
.skill-card.rated.rv4 { border-left-color: var(--lv4); }
.skill-card.rated.rv5 { border-left-color: var(--lv5); }

.skill-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.skill-num-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 4px;
}
.skill-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--espresso);
}
.info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--sand);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.info-btn:hover, .info-btn.active {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--linen);
}
.score-badge {
  font-size: 16px;
  font-weight: 800;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 37, 31, 0.03);
  color: rgba(46, 37, 31, 0.3);
  flex-shrink: 0;
  transition: var(--transition);
}
.score-badge.sv1 { background: rgba(201, 64, 64, 0.08); color: var(--lv1); }
.score-badge.sv2 { background: rgba(212, 120, 42, 0.08); color: var(--lv2); }
.score-badge.sv3 { background: rgba(76, 110, 245, 0.08); color: var(--lv3); }
.score-badge.sv4 { background: rgba(26, 148, 103, 0.08); color: var(--lv4); }
.score-badge.sv5 { background: rgba(179, 106, 74, 0.08); color: var(--lv5); }

.rating-row {
  display: flex;
  gap: 12px;
}
.r-pill {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--sand);
  color: var(--espresso);
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.r-pill:hover {
  background: rgba(46, 37, 31, 0.03);
}

.r-pill.a1 { background: rgba(201, 64, 64, 0.08); color: var(--lv1); border-color: var(--lv1); }
.r-pill.a2 { background: rgba(212, 120, 42, 0.08); color: var(--lv2); border-color: var(--lv2); }
.r-pill.a3 { background: rgba(76, 110, 245, 0.08); color: var(--lv3); border-color: var(--lv3); }
.r-pill.a4 { background: rgba(26, 148, 103, 0.08); color: var(--lv4); border-color: var(--lv4); }
.r-pill.a5 { background: rgba(179, 106, 74, 0.08); color: var(--lv5); border-color: var(--lv5); }

/* Descriptive Accordion grids */
.desc-toggle {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
  margin-top: 16px;
  border-top: 1px dashed rgba(46, 37, 31, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(46, 37, 31, 0.45);
  cursor: pointer;
  transition: var(--transition);
}
.desc-toggle:hover {
  color: var(--terra);
}
.dt-arrow {
  font-size: 8px;
  transition: transform 0.4s ease;
}
.skill-card.open .dt-arrow {
  transform: rotate(180deg);
}
.desc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-card.open .desc-panel {
  max-height: 500px;
}
.desc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding-top: 16px;
}
.desc-cell {
  background: rgba(46, 37, 31, 0.02);
  border: 1px solid rgba(46, 37, 31, 0.05);
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(46, 37, 31, 0.6);
  cursor: pointer;
  transition: var(--transition);
}
.desc-cell:hover {
  background: rgba(46, 37, 31, 0.04);
}
.dc-level {
  display: block;
  font-weight: 800;
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.desc-cell.dsel1 { background: rgba(201, 64, 64, 0.06); color: var(--lv1); border-color: rgba(201, 64, 64, 0.25); }
.desc-cell.dsel2 { background: rgba(212, 120, 42, 0.06); color: var(--lv2); border-color: rgba(212, 120, 42, 0.25); }
.desc-cell.dsel3 { background: rgba(76, 110, 245, 0.06); color: var(--lv3); border-color: rgba(76, 110, 245, 0.25); }
.desc-cell.dsel4 { background: rgba(26, 148, 103, 0.06); color: var(--lv4); border-color: rgba(26, 148, 103, 0.25); }
.desc-cell.dsel5 { background: rgba(179, 106, 74, 0.06); color: var(--lv5); border-color: rgba(179, 106, 74, 0.25); }

/* Assessment sticky bottom navbar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(46, 37, 31, 0.06);
  z-index: 100;
}
.btn-back {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(46, 37, 31, 0.5);
  cursor: pointer;
  transition: var(--transition);
}
.btn-back:hover {
  color: var(--espresso);
}
.btn-next {
  background: var(--terra);
  color: var(--linen);
  border: 1px solid var(--terra);
  padding: 14px 32px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.btn-next:disabled {
  background: rgba(46, 37, 31, 0.05);
  border-color: transparent;
  color: rgba(46, 37, 31, 0.25);
  cursor: not-allowed;
}
.btn-next:not(:disabled):hover {
  background: var(--espresso);
  border-color: var(--espresso);
}

/* ─── SCREEN 3: RESULTS SCREEN ─── */
#results {
  padding-top: 60px;
  padding-bottom: 80px;
}
.results-header {
  max-width: 680px;
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
}
.rh-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
}
.rh-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--espresso);
  text-transform: uppercase;
}
.rh-name span {
  color: var(--terra);
}
.rh-date {
  font-size: 12px;
  color: rgba(46, 37, 31, 0.4);
  margin-top: 6px;
}
.results-body {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Overall Level Card */
.level-card {
  background: var(--surface);
  border: 1px solid rgba(46, 37, 31, 0.08);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--terra);
}
.lc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terra);
}
.lc-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--espresso);
  line-height: 1.2;
}
.lc-desc {
  font-size: 14px;
  color: rgba(46, 37, 31, 0.65);
  line-height: 1.6;
  margin-bottom: 10px;
}
.lc-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.lc-big {
  font-size: 48px;
  font-weight: 800;
  color: var(--terra);
  line-height: 1;
}
.lc-denom {
  font-size: 16px;
  font-weight: 600;
  color: rgba(46, 37, 31, 0.35);
}

/* Radar Chart Container */
.radar-card {
  background: var(--surface);
  border: 1px solid rgba(46, 37, 31, 0.06);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 24px;
}

/* Group breakdown metrics */
.group-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gs-card {
  background: var(--surface);
  border: 1px solid rgba(46, 37, 31, 0.06);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.gs-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.gs-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.gs-denom {
  font-size: 11px;
  font-weight: 600;
  color: rgba(46, 37, 31, 0.35);
  margin-bottom: 14px;
}
.gs-bar {
  width: 100%;
  height: 4px;
  background: rgba(46, 37, 31, 0.04);
  border-radius: 9999px;
  overflow: hidden;
}
.gs-fill {
  height: 100%;
  border-radius: 9999px;
}

/* Detailed List Rows */
.breakdown {
  background: var(--surface);
  border: 1px solid rgba(46, 37, 31, 0.06);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.bd-head {
  margin-bottom: 20px;
}
.bd-row {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(46, 37, 31, 0.05);
}
.bd-row:last-child {
  border-bottom: none;
}
.bd-num {
  font-size: 12px;
  font-weight: 800;
  width: 32px;
  flex-shrink: 0;
}
.bd-name {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  padding-right: 20px;
  color: rgba(46, 37, 31, 0.85);
}
.bd-bar {
  width: 120px;
  height: 5px;
  background: rgba(46, 37, 31, 0.04);
  border-radius: 9999px;
  overflow: hidden;
  margin-right: 20px;
}
.bd-bar-fill {
  height: 100%;
  border-radius: 9999px;
}
.bd-score {
  font-size: 14px;
  font-weight: 800;
  width: 20px;
  text-align: right;
}

.divider {
  height: 1px;
  background: rgba(46, 37, 31, 0.08);
}

/* Recommended practice list card */
.actions-card {
  background: var(--surface);
  border: 1px solid rgba(46, 37, 31, 0.06);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(46, 37, 31, 0.06);
}
.action-item:last-child {
  border-bottom: none;
}
.action-arrow {
  color: var(--terra);
  font-weight: 700;
  margin-top: 2px;
}
.action-text {
  font-size: 13.5px;
  color: rgba(46, 37, 31, 0.75);
  line-height: 1.75;
  text-align: justify;
}

/* Result Buttons */
.result-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--sand);
  color: var(--espresso);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover {
  background: rgba(46, 37, 31, 0.03);
}
.btn-gold {
  grid-column: span 2;
  background: var(--terra);
  color: var(--linen);
  border: 1px solid var(--terra);
  padding: 16px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(179, 106, 74, 0.1);
  text-align: center;
}
.btn-gold:hover {
  background: var(--espresso);
  border-color: var(--espresso);
}

/* ═══════════════════════════════════
   RESPONSIVES
   ═══════════════════════════════════ */
@media (max-width: 768px) {
  .assess-nav {
    padding: 18px 24px;
  }
  .bottom-nav {
    padding: 20px 24px;
  }
  .desc-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .skill-card.open .desc-panel {
    max-height: 1000px;
  }
  .group-scores {
    grid-template-columns: 1fr;
  }
  .result-btns {
    grid-template-columns: 1fr;
  }
  .btn-gold {
    grid-column: span 1;
  }
}

/* ═══════════════════════════════════
   A4 PRINT STYLES OVERRIDES
   ═══════════════════════════════════ */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 12px;
  }
  .assess-nav, .progress-track, .bottom-nav, .result-btns, footer, .divider, .info-btn {
    display: none !important;
  }
  .screen {
    padding: 0 !important;
    min-height: auto !important;
    display: block !important;
  }
  .results-body {
    max-width: 100% !important;
  }
  .level-card, .radar-card, .group-scores, .breakdown, .actions-card {
    border: 1px solid #CCCCCC !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
    page-break-inside: avoid;
  }
  .lc-score .lc-big {
    color: #000000 !important;
  }
}

/* ─── GLOBAL FRAMEWORK HEADER & HOME LINKS ─── */
.framework-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  display: flex;
  justify-content: center;
  z-index: 99;
}
.header-container {
  max-width: 1180px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--espresso);
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition);
}
.header-logo:hover {
  color: var(--terra);
}
.btn-back-home {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(46, 37, 31, 0.6);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.btn-back-home:hover {
  color: var(--terra);
  transform: translateX(-2px);
}

/* Hide global header when assessment screen is active */
#assess.active ~ #globalHeader {
  display: none !important;
}

/* Style the Home link in assess-nav */
.nav-home-link {
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(46, 37, 31, 0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.nav-home-link:hover {
  color: var(--terra);
}

@media (max-width: 768px) {
  .framework-header {
    padding: 16px 20px;
  }
  .header-logo {
    font-size: 14px;
    letter-spacing: 2px;
  }
}

