/* =========================================================
   Digital Marketing e-Portfolio — stylesheet extension
   Builds on ../styles.css. Academic-report components.
   ========================================================= */

/* ---------- Sub-nav for DM chapters ---------- */
.subnav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(227, 214, 201, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(31, 34, 33, 0.12);
}
.subnav__inner {
  display: flex;
  gap: 0.25rem;
  align-items: stretch;
  overflow-x: auto;
  padding: 0 var(--page-pad);
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--espresso);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.subnav a:hover { color: var(--red); }
.subnav a.is-active {
  color: var(--near-black);
  border-bottom-color: var(--red);
}
.subnav .n {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 0.72rem;
}

/* ---------- Hero variants for DM pages ---------- */
.hero--dm {
  min-height: auto;
  padding: 8rem var(--page-pad) 4rem;
}
.hero--dm .hero__title {
  font-size: clamp(3rem, 8vw, 7rem);
  margin-bottom: 2rem;
}
.hero--dm .hero__ticker,
.hero--dm .hero__scroll { position: static; }

.hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 2rem;
}
.hero__breadcrumb span { opacity: 0.5; }

/* ---------- Prose (article body) ---------- */
.prose {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--near-black);
}
.prose.prose--wide { max-width: 82ch; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 1rem;
}
.prose .lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.4;
  color: var(--espresso);
  margin-bottom: 2rem;
}
.prose cite {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--coffee-red);
}
.prose--dark {
  color: var(--cream);
}
.prose--dark cite { color: var(--gold); }
.prose--dark .lead { color: var(--beige); }

/* ---------- Two column text grid ---------- */
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1400px;
}
@media (max-width: 880px) { .twocol { grid-template-columns: 1fr; } }

/* ---------- Bordered callout ---------- */
.callout {
  border-left: 3px solid var(--red);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--espresso);
}
.callout--dark { color: var(--gold); border-left-color: var(--gold); }

/* ---------- Stat strip ---------- */
.statstrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(31, 34, 33, 0.2);
  border-top: 1px solid rgba(31, 34, 33, 0.2);
  border-bottom: 1px solid rgba(31, 34, 33, 0.2);
  margin: 2.5rem 0;
}
.stat {
  background: var(--cream);
  padding: 1.75rem 1.25rem;
}
.stat__n {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--coffee-red);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.5rem;
}
.stat__k {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
  font-weight: 600;
}
.section--dark .stat { background: var(--near-black); }
.section--dark .stat__n { color: var(--gold); }
.section--dark .stat__k { color: var(--beige); }
.section--dark .statstrip { background: rgba(227, 214, 201, 0.2); border-color: rgba(227, 214, 201, 0.2); }

/* ---------- Academic tables ---------- */
.dm-table-wrap {
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid rgba(31, 34, 33, 0.2);
  border-radius: 14px;
  background: var(--cream);
}
.section--dark .dm-table-wrap {
  background: rgba(227, 214, 201, 0.04);
  border-color: rgba(227, 214, 201, 0.18);
}
.dm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
  min-width: 640px;
}
.dm-table caption {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--espresso);
  border-bottom: 1px solid rgba(31, 34, 33, 0.18);
  background: rgba(255, 222, 61, 0.15);
}
.section--dark .dm-table caption {
  color: var(--gold);
  background: rgba(255, 222, 61, 0.08);
  border-bottom-color: rgba(227, 214, 201, 0.15);
}
.dm-table thead th {
  padding: 0.9rem 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
  background: rgba(31, 34, 33, 0.04);
  border-bottom: 1px solid rgba(31, 34, 33, 0.18);
  vertical-align: bottom;
}
.section--dark .dm-table thead th {
  color: var(--beige);
  background: rgba(227, 214, 201, 0.06);
  border-bottom-color: rgba(227, 214, 201, 0.15);
}
.dm-table tbody td,
.dm-table tbody th {
  padding: 1rem 1.1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(31, 34, 33, 0.12);
  line-height: 1.55;
}
.section--dark .dm-table tbody td,
.section--dark .dm-table tbody th {
  border-bottom-color: rgba(227, 214, 201, 0.1);
  color: var(--cream);
}
.dm-table tbody th {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--coffee-red);
  font-size: 0.98rem;
  white-space: nowrap;
}
.section--dark .dm-table tbody th { color: var(--gold); }
.dm-table tbody tr:last-child td,
.dm-table tbody tr:last-child th { border-bottom: none; }
.dm-table tbody tr:hover td,
.dm-table tbody tr:hover th {
  background: rgba(255, 222, 61, 0.08);
}
.section--dark .dm-table tbody tr:hover td,
.section--dark .dm-table tbody tr:hover th {
  background: rgba(255, 222, 61, 0.05);
}
.dm-table .is-strong { color: var(--leaf-green); font-weight: 600; }
.dm-table .is-weak { color: var(--red); font-weight: 600; }
.section--dark .dm-table .is-strong { color: #9cc07c; }

/* Totals row */
.dm-table tfoot td {
  padding: 1rem 1.1rem;
  background: rgba(237, 50, 55, 0.08);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  border-top: 2px solid var(--red);
}
.section--dark .dm-table tfoot td {
  background: rgba(255, 222, 61, 0.08);
  border-top-color: var(--gold);
  color: var(--gold);
}

/* ---------- Score bar (for website checklist) ---------- */
.score-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
}
.score-bar__track {
  width: 70px;
  height: 6px;
  background: rgba(31, 34, 33, 0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}
.score-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: var(--radius-pill);
  width: var(--pct, 0%);
}
.score-bar__n { color: var(--near-black); font-size: 0.95rem; }
.section--dark .score-bar__track { background: rgba(227, 214, 201, 0.15); }
.section--dark .score-bar__n { color: var(--gold); }

/* ---------- RACE / Ladder cards ---------- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
.stage-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border-top: 6px solid var(--stage-accent, var(--red));
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.stage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -18px rgba(31, 34, 33, 0.25);
}
.stage-card__n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--red);
  font-weight: 600;
}
.stage-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.stage-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--espresso);
  margin: 0;
}
.stage-card__verdict {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--stage-accent, var(--red));
  border-top: 1px dashed rgba(31, 34, 33, 0.25);
}
.section--dark .stage-card {
  background: rgba(227, 214, 201, 0.06);
  color: var(--cream);
}
.section--dark .stage-card p { color: var(--beige); }
.section--dark .stage-card__verdict { border-top-color: rgba(227, 214, 201, 0.2); }
@media (max-width: 960px) { .stage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stage-grid { grid-template-columns: 1fr; } }

/* ---------- Ladder (vertical) ---------- */
.ladder {
  max-width: 900px;
  margin: 3rem 0;
  position: relative;
}
.ladder::before {
  content: "";
  position: absolute;
  left: 2.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gold), var(--red), var(--coffee-red));
}
.ladder__rung {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
}
.ladder__node {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--near-black);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  z-index: 1;
  margin-left: 1rem;
}
.ladder__rung[data-level="5"] .ladder__node { background: var(--red); }
.ladder__rung[data-level="4"] .ladder__node { background: var(--coffee-red); }
.ladder__rung[data-level="3"] .ladder__node { background: var(--espresso); }
.ladder__rung[data-level="2"] .ladder__node { background: var(--leaf-green); }
.ladder__rung[data-level="1"] .ladder__node { background: var(--deep-teal); }
.ladder__body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.ladder__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--espresso);
  max-width: 60ch;
}
.ladder__tag {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(31, 34, 33, 0.08);
  color: var(--near-black);
}
.ladder__tag.is-strong { background: rgba(71, 89, 59, 0.2); color: var(--leaf-green); }
.ladder__tag.is-weak { background: rgba(237, 50, 55, 0.14); color: var(--coffee-red); }
.ladder__tag.is-mid { background: rgba(255, 222, 61, 0.32); color: var(--espresso); }

/* ---------- Loop diagram (trend analysis) ---------- */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  margin: 3rem 0;
}
.loop__step {
  background: var(--cream);
  border: 1px solid rgba(31, 34, 33, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: left;
  position: relative;
  transition: transform 0.4s var(--ease-out);
}
.loop__step:hover { transform: translateY(-6px); background: var(--gold); }
.loop__step + .loop__step::before {
  content: "→";
  position: absolute;
  left: -0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--red);
  font-weight: 600;
}
.loop__n {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}
.loop__step h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.loop__step p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--espresso);
  margin: 0;
}
@media (max-width: 840px) {
  .loop { grid-template-columns: 1fr 1fr; }
  .loop__step + .loop__step::before { display: none; }
}
@media (max-width: 460px) { .loop { grid-template-columns: 1fr; } }

/* ---------- Opportunity / risk split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.split__card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border-top: 6px solid var(--leaf-green);
}
.split__card--risk { border-top-color: var(--red); }
.split__card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.split__card ul { padding-left: 1.1rem; margin: 0; }
.split__card li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--espresso);
}
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ---------- Page pagination ---------- */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(31, 34, 33, 0.2);
}
.page-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid rgba(31, 34, 33, 0.12);
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s;
}
.page-nav a:hover {
  background: var(--near-black);
  color: var(--cream);
  transform: translateY(-4px);
}
.page-nav a:hover .page-nav__k { color: var(--gold); }
.page-nav__k {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
}
.page-nav__v {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.page-nav .prev { text-align: left; }
.page-nav .next { text-align: right; }
.page-nav .prev::before { content: "← "; color: var(--red); }
.page-nav .next::after { content: " →"; color: var(--red); }
@media (max-width: 640px) { .page-nav { grid-template-columns: 1fr; } }

/* ---------- Reference list ---------- */
.reflist {
  max-width: 90ch;
  list-style: none;
  padding: 0;
  margin: 3rem 0;
  counter-reset: ref;
}
.reflist li {
  position: relative;
  display: block;
  padding: 1.1rem 0 1.1rem 4rem;
  border-bottom: 1px solid rgba(31, 34, 33, 0.12);
  font-size: 0.98rem;
  line-height: 1.6;
  counter-increment: ref;
}
.reflist li::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 1.1rem;
}
.reflist li a {
  color: var(--coffee-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.reflist li a:hover { color: var(--red); }
.reflist em,
.reflist cite {
  font-family: var(--font-serif);
  font-style: italic;
}

@media (max-width: 640px) {
  .reflist li {
    padding-left: 3.2rem;
  }

  .reflist li::before {
    font-size: 1rem;
  }
}

.dm-page--references .hero--dm {
  padding: 6.75rem var(--page-pad) 2.25rem;
}

.dm-page--references .hero--dm .hero__title {
  margin-bottom: 0.75rem;
}

.dm-page--references #list {
  padding-top: 2.5rem;
}

.dm-page--references #list .prose--wide {
  max-width: 90ch;
}

.dm-page--references .reflist {
  margin-top: 1.5rem;
}

.reflist__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.chip {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(31, 34, 33, 0.2);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--near-black);
  cursor: none;
  transition: all 0.25s;
}
.chip:hover { background: var(--near-black); color: var(--gold); border-color: var(--near-black); }
.chip.is-active { background: var(--red); color: var(--gold); border-color: var(--red); }

/* ---------- TOC for long pages ---------- */
.toc {
  padding: 1.5rem 1.75rem;
  background: rgba(31, 34, 33, 0.04);
  border: 1px dashed rgba(31, 34, 33, 0.25);
  border-radius: var(--radius-lg);
  margin: 2rem 0 3rem;
}
.toc__k {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 1.5rem;
}
.toc li {
  counter-increment: toc;
  font-family: var(--font-serif);
  font-size: 1.02rem;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-style: italic;
  color: var(--red);
  margin-right: 0.3rem;
}
.toc a { transition: color 0.25s; }
.toc a:hover { color: var(--red); }

/* ---------- Figure placeholder ---------- */
.figure {
  margin: 2.5rem 0;
}
.figure__canvas {
  background: linear-gradient(135deg, rgba(255, 222, 61, 0.12), rgba(237, 50, 55, 0.08));
  border: 1px dashed rgba(31, 34, 33, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: grid;
  place-items: center;
  min-height: 200px;
  text-align: center;
}
.figure__canvas p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--espresso);
  margin: 0;
  font-size: 1.05rem;
}
.figure__canvas--image {
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: rgba(255, 255, 255, 0.68);
}
.figure__canvas--image img {
  display: block;
  width: 100%;
  height: auto;
}
.figure__caption {
  font-size: 0.82rem;
  color: var(--espresso);
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
}
.section--dark .figure__canvas {
  background: linear-gradient(135deg, rgba(255, 222, 61, 0.08), rgba(237, 50, 55, 0.05));
  border-color: rgba(227, 214, 201, 0.2);
}
.section--dark .figure__canvas p,
.section--dark .figure__caption { color: var(--beige); }
.section--dark .figure__canvas--image {
  background: rgba(227, 214, 201, 0.04);
}

.doc-shotlist {
  margin: 1.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--espresso);
}
.doc-shotlist li {
  margin-bottom: 0.55rem;
}
.doc-shotlist strong {
  font-family: var(--font-serif);
  font-weight: 600;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.chapter-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(31, 34, 33, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.35);
}
.chapter-card span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coffee-red);
  font-weight: 700;
}
.chapter-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.12;
}
.chapter-card p {
  margin: 0;
}
.chapter-card a {
  justify-self: start;
  font-family: var(--font-serif);
  font-style: italic;
}

@media (max-width: 820px) {
  .chapter-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Credibility pills (intro) ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2.5rem;
}
.pill {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(31, 34, 33, 0.06);
  border: 1px solid rgba(31, 34, 33, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--near-black);
}

/* ---------- Citation inline style ---------- */
.cite {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92em;
  color: var(--coffee-red);
  white-space: nowrap;
}
.section--dark .cite { color: var(--gold); }

/* ---------- Profile card (home page) ---------- */
.profile {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin: 3rem 0;
  align-items: start;
}
.profile__card {
  padding: 2rem 1.75rem;
  background: var(--near-black);
  color: var(--cream);
  border-radius: var(--radius-lg);
}
.profile__card dt {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 1.25rem;
}
.profile__card dt:first-child { margin-top: 0; }
.profile__card dd {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0.35rem 0 0;
}
.profile__card dd.big {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
@media (max-width: 880px) { .profile { grid-template-columns: 1fr; } }

/* ---------- Framework meta (race / ladder summary) ---------- */
.framework-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0;
  margin: 2.5rem 0;
  border-top: 1px solid rgba(31, 34, 33, 0.2);
  border-bottom: 1px solid rgba(31, 34, 33, 0.2);
  font-size: 0.95rem;
}
.framework-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
  font-weight: 600;
  padding-top: 0.1rem;
}
.framework-meta dd {
  margin: 0;
  font-family: var(--font-serif);
}
.section--dark .framework-meta {
  border-color: rgba(227, 214, 201, 0.18);
}
.section--dark .framework-meta dt { color: var(--beige); }

/* ---------- Gauge (overall score) ---------- */
.gauge {
  display: inline-grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    conic-gradient(var(--red) 0% var(--pct, 74%), rgba(31, 34, 33, 0.12) var(--pct, 74%) 100%);
  position: relative;
}
.gauge::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--cream);
}
.gauge__inner {
  position: relative;
  text-align: center;
}
.gauge__n {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--coffee-red);
}
.gauge__d {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--espresso);
  font-size: 1rem;
}
.gauge__k {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--espresso);
  margin-top: 0.4rem;
}
.section--dark .gauge::before { background: var(--near-black); }
.section--dark .gauge__n { color: var(--gold); }
.section--dark .gauge__d,
.section--dark .gauge__k { color: var(--beige); }

/* ---------- Score overview row ---------- */
.score-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin: 3rem 0;
}
@media (max-width: 720px) { .score-overview { grid-template-columns: 1fr; justify-items: center; } }
