/* when-the-ear-is-not-enough.html — essay styles (site tokens) */

.prose-essay h2 {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.4);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.prose-essay p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgb(var(--ink) / 0.72);
  margin-bottom: 1.25rem;
}
.prose-essay blockquote {
  border-left: 1px solid rgb(var(--ink) / 0.2);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: rgb(var(--ink) / 0.68);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
}
.prose-essay strong {
  color: rgb(var(--ink) / 0.9);
  font-weight: 550;
}
.prose-essay em { font-style: italic; }
.prose-essay a {
  color: rgb(var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(var(--accent) / 0.3);
}
.prose-essay a:hover {
  text-decoration-color: rgb(var(--accent));
}
.prose-essay ol.footnotes {
  margin-top: 3.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgb(var(--ink) / 0.1);
  list-style: decimal;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgb(var(--ink) / 0.45);
}
.prose-essay ol.footnotes li { margin-bottom: 0.55rem; }
.prose-essay ol.footnotes a {
  color: rgb(var(--accent));
  text-decoration: none;
}
.prose-essay sup a {
  color: rgb(var(--accent));
  text-decoration: none;
  font-size: 0.7em;
  margin-left: 0.1em;
}

/*
  Figure type scale — clearly below essay body (1.0625rem):
  caption 0.6875 · legend 0.75 · diagram labels 0.8125 · KPI number stays display
*/
.fig {
  margin: 2rem 0 2.35rem;
  max-width: 100%;
}
.fig-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.65rem;
  padding: 0 0.05rem;
  font-size: 0.6875rem; /* ~11px — caption, not body */
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgb(var(--ink) / 0.38);
}
.fig-cap .num {
  color: rgb(var(--accent) / 0.9);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.fig-cap .sep {
  opacity: 0.4;
  font-weight: 400;
  letter-spacing: 0;
}
.fig-cap > span:last-child {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgb(var(--ink) / 0.42);
  text-transform: uppercase;
}
.fig-body {
  border: 1px solid rgb(var(--ink) / 0.12);
  border-radius: 0;
  background: rgb(var(--ink) / 0.015);
  padding: 1.05rem 1rem 0.95rem;
  /* Diagram body: one step below essay prose */
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--ink) / 0.62);
}
/* Media mix bars */
.mix-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.mix-row {
  display: grid;
  grid-template-columns: 7.25rem 1fr 2.35rem;
  gap: 0.5rem 0.55rem;
  align-items: center;
}
.mix-name {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgb(var(--ink) / 0.5);
  text-align: right;
  line-height: 1.25;
}
.mix-track {
  height: 0.55rem;
  border-radius: 2px;
  background: rgb(var(--ink) / 0.06);
  border: 1px solid rgb(var(--ink) / 0.08);
  overflow: hidden;
}
.mix-fill {
  height: 100%;
  border-radius: 1px;
  background: rgb(var(--ink) / 0.28);
}
.mix-fill.is-accent { background: rgb(var(--accent) / 0.85); }
.mix-fill.is-ink { background: rgb(var(--ink) / 0.78); }
.mix-pct {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgb(var(--ink) / 0.52);
  text-align: right;
  line-height: 1.2;
}
.mix-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.08);
}
.mix-kpi .n {
  display: block;
  font-size: 1.35rem; /* display figure — intentional larger than body */
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgb(var(--accent));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mix-kpi .n.muted { color: rgb(var(--ink) / 0.82); }
.mix-kpi .l {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.38);
  line-height: 1.3;
}

/* Gap table — diagram type, not essay */
.gap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.gap-table th {
  text-align: left;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgb(var(--ink) / 0.38);
  padding: 0 0.45rem 0.5rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.12);
}
.gap-table td {
  padding: 0.5rem 0.45rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.07);
  vertical-align: top;
  line-height: 1.4;
  color: rgb(var(--ink) / 0.62);
  font-size: 0.8125rem;
}
.gap-table tr:last-child td { border-bottom: none; }
.gap-table .dim {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgb(var(--ink) / 0.78);
  width: 22%;
}
.gap-table .was {
  color: rgb(var(--ink) / 0.42);
  width: 36%;
  font-size: 0.8125rem;
}
.gap-table .now {
  color: rgb(var(--ink) / 0.72);
  width: 42%;
  font-size: 0.8125rem;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 !important;
}
@media (min-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr 1fr; }
}
.pillar {
  padding: 0.95rem 1rem 1.05rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.1);
}
@media (min-width: 640px) {
  .pillar {
    border-bottom: none;
    border-right: 1px solid rgb(var(--ink) / 0.1);
  }
  .pillar:last-child { border-right: none; }
}
.pillar .code {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--accent) / 0.9);
  font-weight: 500;
  line-height: 1.3;
}
.pillar h3 {
  margin: 0.35rem 0 0.3rem;
  font-size: 0.875rem; /* diagram title, not essay h2 */
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: rgb(var(--ink) / 0.88);
}
.pillar p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgb(var(--ink) / 0.48);
}

/* Questions — diagram list, smaller than body */
.q-list { list-style: none; padding: 0; margin: 0; }
.q-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.55rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgb(var(--ink) / 0.08);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(var(--ink) / 0.62);
}
.q-list li:last-child { border-bottom: none; }
.q-list li strong {
  font-weight: 550;
  color: rgb(var(--ink) / 0.82);
  font-size: inherit;
}
.q-list .qn {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: rgb(var(--accent));
  font-weight: 600;
  padding-top: 0.18rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .mix-row {
    grid-template-columns: 5.5rem 1fr 2.1rem;
    gap: 0.35rem 0.4rem;
  }
  .mix-name { font-size: 0.6875rem; }
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-top: 1.25rem;
}
.session-chip {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  border: 1px solid rgb(var(--accent) / 0.25);
  background: rgb(var(--accent) / 0.06);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
}
