/* ── CHAPTER ACCENT ── */
:root {
  --chapter-accent: var(--accent-crimson);
  --chapter-accent-fill: var(--accent-crimson-fill);
}

/* ── PAGE WATERMARKS ── */
header::before {
  content: "Seek Help";
}

.reminder-box::before {
  content: "Limits";
}

/* ─────────────────────────────────────────
       THREE-SKILL FRAMEWORK
    ───────────────────────────────────────── */
.three-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.skill-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--bs-medium);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  background: var(--paper);
}
.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-heavy);
}
.skill-card-top {
  padding: var(--space-5) var(--space-5);
}
.sk-num {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-1);
}
.skill-card .sk-num {
  color: var(--text-primary);
  font-weight: 600;
}
.skill-card-top h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 500;
  font-size: var(--fs-md);
  margin-bottom: var(--space-1);
}

.skill-card-top .sk-sub {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
}
.skill-card .sk-sub {
  color: var(--text-primary);
}
.skill-card-body {
  background: var(--paper);
  padding: var(--space-4) var(--space-5);
}
.skill-criteria {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}
.skill-criteria li {
  font-size: var(--fs-sm);
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.skill-card:nth-child(1) .skill-criteria li::before {
  font-family: bootstrap-icons;
  content: "\F270";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.skill-card:nth-child(2) .skill-criteria li::before {
  content: "⚠";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.skill-card:nth-child(3) .skill-criteria li::before {
  content: "→";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.skill-examples {
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
}
.skill-examples .se-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-1);
}
.skill-examples p {
  font-size: var(--fs-xs);
  color: var(--primary);
  font-style: italic;
  line-height: 1.5;
}

/* ─────────────────────────────────────────
       COMPETENCY LADDER
    ───────────────────────────────────────── */
.ladder-block {
  margin-bottom: var(--space-12);
  position: relative;
}

.lc-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.lc-tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: var(--space-half) var(--space-2);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.ladder-item .lc-tag {
  color: var(--primary);
}
.lc-header h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}

.ladder-item .lc-header h3 {
  color: var(--text-primary);
}
.lc-who {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  padding: var(--space-half) var(--space-2);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
}
.ladder-item .lc-who {
  color: var(--primary);
}
.ladder-content p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.65;
}
.ladder-content p strong {
  color: var(--primary);
}
.ladder-example {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--primary);
  font-style: italic;
  padding: var(--space-2) var(--space-3);
  background: var(--background);
  border-radius: var(--radius-xs);
  box-shadow: var(--bs-medium);
  line-height: 1.5;
}

/* Ladder rungs read as one accent (navy) intensifying with each level
   of autonomy — a tint at Level 1 building to a solid fill at Level 5
   — rather than the mild/moderate/severe traffic-light logic used for
   risk elsewhere in the book. This is a progression, not a warning,
   so it stays in one hue instead of shifting through amber/red.
   Scoped to .ladder-item / .ladder-circle only — the shared
   .step-circle / .steps-flow classes these reuse are unstyled
   elsewhere in the book, so this doesn't bleed into other numbered
   sequences. */
.ladder-item:nth-of-type(1) .ladder-circle,
.ladder-item:nth-of-type(1) .lc-tag {
  background: color-mix(in srgb, var(--accent-navy) 18%, var(--paper));
  color: var(--primary);
}
.ladder-item:nth-of-type(2) .ladder-circle,
.ladder-item:nth-of-type(2) .lc-tag {
  background: color-mix(in srgb, var(--accent-navy) 38%, var(--paper));
  color: var(--primary);
}
.ladder-item:nth-of-type(3) .ladder-circle,
.ladder-item:nth-of-type(3) .lc-tag {
  background: color-mix(in srgb, var(--accent-navy) 60%, var(--paper));
  color: var(--text-on-dark);
}
.ladder-item:nth-of-type(4) .ladder-circle,
.ladder-item:nth-of-type(4) .lc-tag {
  background: color-mix(in srgb, var(--accent-navy) 80%, var(--paper));
  color: var(--text-on-dark);
}
.ladder-item:nth-of-type(5) .ladder-circle,
.ladder-item:nth-of-type(5) .lc-tag {
  background: var(--accent-navy);
  color: var(--text-on-dark);
}
.ladder-item .ladder-content {
  border-left: 4px solid transparent;
  transition: border-color 0.15s;
}
.ladder-item:nth-of-type(1) .ladder-content {
  border-left-color: color-mix(in srgb, var(--accent-navy) 18%, var(--paper));
}
.ladder-item:nth-of-type(2) .ladder-content {
  border-left-color: color-mix(in srgb, var(--accent-navy) 38%, var(--paper));
}
.ladder-item:nth-of-type(3) .ladder-content {
  border-left-color: color-mix(in srgb, var(--accent-navy) 60%, var(--paper));
}
.ladder-item:nth-of-type(4) .ladder-content {
  border-left-color: color-mix(in srgb, var(--accent-navy) 80%, var(--paper));
}
.ladder-item:nth-of-type(5) .ladder-content {
  border-left-color: var(--accent-navy);
}

/* ─────────────────────────────────────────
       EMOTIONAL vs CLINICAL — TWO COLUMN
    ───────────────────────────────────────── */
.barrier-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-12);
}
.barrier-head {
  background: var(--surface);
  padding: var(--space-5) var(--space-7);
}
.barrier-head .bh-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-1);
}
.barrier-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}
.barrier-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.barrier-col {
  padding: var(--space-6) var(--space-7);
}
.barrier-col .bc-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--border);
  display: block;
}
.barrier-col:first-child .bc-label {
  color: var(--primary);
}
.barrier-col:last-child .bc-label {
  color: var(--primary);
}
.barrier-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.barrier-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.barrier-col:first-child .barrier-item {
  background: var(--tint-false);
}
.barrier-col:last-child .barrier-item {
  background: var(--tint-true);
}

/* ─────────────────────────────────────────
       GOLDEN RULE — ELEVATED
    ───────────────────────────────────────── */
.golden-rule {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: var(--space-9) var(--space-10);
  margin-bottom: var(--space-12);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  box-shadow: var(--bs-medium);
}

.gr-text {
  flex: 1;
  min-width: 200px;
}
.gr-text .grt-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}
.gr-text h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: var(--primary);
}
.gr-text p {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  line-height: 1.7;
}
.gr-text p strong {
  color: var(--primary);
  font-weight: 400;
}

/* ─────────────────────────────────────────
       KNOWLEDGE vs AUTHORITY
    ───────────────────────────────────────── */
.authority-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-12);
}
.authority-head {
  background: var(--surface);
  padding: var(--space-5) var(--space-7);
}
.authority-head .ah-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-1);
}
.authority-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}
.authority-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.auth-col {
  padding: var(--space-6) var(--space-7);
}
.auth-col .ac-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--border);
  display: block;
}
.auth-col .ac-label {
  color: var(--primary);
}
.auth-col h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
}
.auth-col:first-child h4 {
  color: var(--primary);
}
.auth-col:last-child h4 {
  color: var(--primary);
}
.auth-col p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.7;
}
.auth-col p strong {
  color: var(--primary);
}
.auth-col .auth-example {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.5;
}
.auth-col .auth-example {
  background: var(--background);
  color: var(--primary);
}

/* ─────────────────────────────────────────
       CALIBRATED CONFIDENCE
    ───────────────────────────────────────── */
.confidence-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-12);
}
.confidence-block .cb-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}
.confidence-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  margin-bottom: var(--space-5);
}
.confidence-spectrum {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.conf-pole {
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.conf-pole.under {
  background: var(--background);
  box-shadow: var(--bs-medium);
}
.conf-pole.over {
  background: var(--background);
  box-shadow: var(--bs-medium);
}
.conf-pole.ideal {
  background: var(--background);
}
.conf-pole .cp-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}
.conf-pole.under .cp-label {
  color: var(--primary);
}
.conf-pole.over .cp-label {
  color: var(--primary);
}
.conf-pole.ideal .cp-label {
  color: var(--primary);
}
.conf-pole h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  margin-bottom: var(--space-1);
}
.conf-pole.under h4 {
  color: var(--primary);
}
.conf-pole.over h4 {
  color: var(--primary);
}
.conf-pole.ideal h4 {
  color: var(--primary);
}
.conf-pole p {
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.conf-pole.under p {
  color: var(--primary);
}
.conf-pole.over p {
  color: var(--primary);
}
.conf-pole.ideal p {
  color: var(--text-primary);
}
.conf-arrow {
  font-size: var(--fs-lg);
  color: var(--border);
  text-align: center;
  padding: 0 var(--space-2);
}

/* ─────────────────────────────────────────
         RESPONSIVE OVERRIDES
         Inline styles come after linked CSS in source order, so
         responsive-sm.css rules are overridden by the multi-column
         grid definitions earlier in this block. These @media queries
         restore the correct collapsed layout on small screens.
      ───────────────────────────────────────── */
@media (max-width: 700px) {
  .three-skills {
    grid-template-columns: 1fr;
  }

  .barrier-compare,
  .authority-compare {
    grid-template-columns: 1fr;
  }
  .barrier-col:first-child,
  .auth-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  /* ladder-item: keep the narrow number column on mobile — it works fine */

  .confidence-spectrum {
    grid-template-columns: 1fr;
  }
  .conf-arrow {
    transform: rotate(90deg);
  }
  /* MOBILE SPACING TIGHTEN — trim this page's generous desktop-sized
     block gaps/padding so a long page scrolls less on a phone. */
  .three-skills,
  .ladder-block,
  .barrier-block,
  .golden-rule,
  .authority-block,
  .confidence-block {
    margin-bottom: var(--space-7);
  }
  .golden-rule {
    padding: var(--space-6) var(--space-6);
  }
}
