/* ============================================================
   RabudoInvestor · Editorial financial style
   Inspirado en Capricorn Group, Fundsmith, Baillie Gifford
   ============================================================ */

:root {
  --paper:    #F5F2EA;
  --paper-2:  #EDEAE0;
  --paper-3:  #E4E0D0;

  --ink:      #17170F;
  --ink-2:    #4B4A3E;
  --ink-3:    #8B8875;

  --line:     #DDD8C6;
  --line-2:   #C7C1AB;

  --dark:     #14140D;
  --dark-2:   #1D1D14;
  --dark-line:#37372A;
  --dark-ink: #F5F2EA;

  --brass:    #8C6D2F;
  --brass-2:  #6E5624;

  --pos:      #3E6B45;
  --neg:      #A8433A;
  --warn:     #B8801F;

  --serif:    'Fraunces', 'Playfair Display', Georgia, serif;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:     'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --container-max: 1320px;
  --container-pad: clamp(20px, 5vw, 64px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  background: var(--paper);
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.ed-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
  position: relative;
}

.ed-section {
  padding-block: clamp(96px, 14vw, 168px);
  position: relative;
  border-top: 1px solid var(--line);
}
.ed-section:first-of-type { border-top: 0; }
.ed-section--alt { background: var(--paper-2); }
.ed-section--dark {
  background: var(--dark);
  color: var(--dark-ink);
  border-top-color: var(--dark);
  border-bottom: 1px solid var(--dark);
}
.ed-section--dark ::selection { background: var(--brass); color: var(--dark); }

/* Etiqueta lateral rotada por sección */
.ed-section-label {
  position: absolute;
  left: calc(var(--container-pad) - 12px);
  top: clamp(120px, 14vw, 180px);
  transform: rotate(-90deg);
  transform-origin: left top;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.6;
}
.ed-section--dark .ed-section-label { color: var(--brass); }
/* Ocultar en móvil / tablet para evitar superposición */
@media (max-width: 1100px) {
  .ed-section-label { display: none; }
}

/* Cabecera asimétrica de sección */
.ed-section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: clamp(48px, 8vw, 96px);
}
@media (min-width: 960px) {
  .ed-section-header { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 96px; }
}
.ed-section-header__note {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 40ch;
  padding-top: 12px;
}
.ed-section--dark .ed-section-header__note { color: rgba(245,242,234,0.7); }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
.ed-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ed-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 50%;
}
.ed-section--dark .ed-eyebrow { color: var(--brass); }
.ed-section--dark .ed-eyebrow::before { background: var(--brass); }

.ed-h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.ed-h1 em, .ed-h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}

.ed-h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.ed-h2 em { font-style: italic; color: var(--brass); font-weight: 400; }

.ed-h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.ed-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.ed-body { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.ed-body p + p { margin-top: 1em; }

.ed-mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ed-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ============================================================
   NAV
   ============================================================ */
.ed-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 400ms var(--ease), backdrop-filter 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.ed-nav.is-scrolled {
  background: rgba(245, 242, 234, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.ed-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ed-nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ed-nav__brand-mark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 6px;
}
.ed-nav__brand em {
  font-style: italic;
  color: var(--brass);
  font-weight: 400;
}

.ed-nav__links {
  display: none;
  gap: 40px;
}
@media (min-width: 900px) {
  .ed-nav__links { display: inline-flex; align-items: center; }
}
.ed-nav__link {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink);
  padding-bottom: 3px;
  position: relative;
  transition: color 300ms var(--ease);
}
.ed-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.ed-nav__link:hover { color: var(--brass); }
.ed-nav__link:hover::after { transform: scaleX(1); }

.ed-nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.ed-nav__cta:hover { background: var(--ink); color: var(--paper); }

.ed-nav__burger { display: none; }
@media (max-width: 899px) {
  .ed-nav__burger {
    display: inline-flex;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--ink);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.ed-hero {
  padding-top: clamp(140px, 20vw, 220px);
  padding-bottom: clamp(96px, 14vw, 168px);
  position: relative;
}
.ed-hero__eyebrow-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ed-hero__eyebrow-line::before {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: var(--brass);
}
.ed-hero__title { margin-bottom: clamp(36px, 6vw, 56px); }
.ed-hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 8vw, 80px);
}
@media (min-width: 780px) {
  .ed-hero__meta { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.ed-hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}
.ed-stat { display: flex; flex-direction: column; gap: 6px; }
.ed-stat__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ed-stat__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ed-stat__value.pos { color: var(--pos); }
.ed-stat__value.neg { color: var(--neg); }
.ed-stat__note {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.ed-hero__actions { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.ed-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ed-btn::after {
  content: '↗';
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  transition: transform 300ms var(--ease);
}
.ed-btn:hover { background: var(--ink); color: var(--paper); }
.ed-btn:hover::after { transform: translate(2px, -2px); }
.ed-btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.ed-btn--dark:hover { background: var(--brass); border-color: var(--brass); }
.ed-btn--ghost { border-color: var(--line-2); }

/* Hero scroll cue */
.ed-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: var(--container-pad);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ed-scroll-cue::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--brass);
  animation: cueLine 2.4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes cueLine {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.6); }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.ed-reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(10px);
  transition:
    opacity 700ms cubic-bezier(.22, 1, .36, 1) var(--d, 0s),
    transform 700ms cubic-bezier(.22, 1, .36, 1) var(--d, 0s),
    filter 700ms cubic-bezier(.22, 1, .36, 1) var(--d, 0s);
}
.ed-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .ed-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .ed-scroll-cue::after { animation: none; }
}

/* ============================================================
   COMPONENTES REUTILIZABLES
   ============================================================ */

/* Divisor con etiqueta */
.ed-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: clamp(48px, 8vw, 80px) 0;
  color: var(--ink-3);
}
.ed-divider::before,
.ed-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ed-divider__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Pilar */
.ed-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(48px, 8vw, 80px);
}
@media (min-width: 780px) {
  .ed-pillars { grid-template-columns: repeat(3, 1fr); }
  .ed-pillar + .ed-pillar { border-left: 1px solid var(--line); }
}
.ed-pillar {
  padding: 40px clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
  transition: background 400ms var(--ease);
}
@media (min-width: 780px) { .ed-pillar:first-child { border-top: 1px solid var(--line); } }
.ed-pillar:hover { background: var(--paper-2); }
.ed-pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--brass);
  margin-bottom: 20px;
  display: block;
}
.ed-pillar__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.ed-pillar__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Tabla editorial */
.ed-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}
.ed-table th {
  text-align: left;
  padding: 20px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
.ed-table th.ta-r { text-align: right; }
.ed-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: baseline;
}
.ed-table td.ta-r { text-align: right; font-variant-numeric: tabular-nums; }
.ed-table td.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ed-table tr:last-child td { border-bottom: none; }
.ed-table tr:hover td { color: var(--brass); }
.ed-table__ticker {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ed-table__name { color: var(--ink-2); font-size: 13px; }
.ed-table .pos { color: var(--pos); }
.ed-table .neg { color: var(--neg); }

/* Cifra grande editorial */
.ed-figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ed-figure__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ed-figure__value.pos { color: var(--pos); }
.ed-figure__value.neg { color: var(--neg); }
.ed-figure__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ed-figure__note { font-size: 13px; color: var(--ink-2); }

/* Grid de cifras */
.ed-figures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) {
  .ed-figures-grid { grid-template-columns: repeat(4, 1fr); }
}
.ed-figures-grid .ed-figure {
  padding: 40px clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line);
}
.ed-figures-grid .ed-figure:nth-child(2n) { border-right: 0; }
@media (min-width: 780px) {
  .ed-figures-grid .ed-figure:nth-child(2n) { border-right: 1px solid var(--line); }
  .ed-figures-grid .ed-figure:nth-child(4n) { border-right: 0; }
}
@media (max-width: 779px) {
  .ed-figures-grid .ed-figure { border-bottom: 1px solid var(--line); padding: 28px 20px; }
  .ed-figures-grid .ed-figure:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Cita editorial */
.ed-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
  position: relative;
  padding-left: 40px;
}
.ed-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: -0.4em;
  font-size: 3em;
  color: var(--brass);
  line-height: 1;
}
.ed-quote em { font-style: italic; color: var(--brass); font-weight: 400; }

/* Disclaimer sobrio */
.ed-disclaimer {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}

/* Footer */
.ed-footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 96px 0 48px;
  border-top: 1px solid var(--dark);
}
.ed-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--dark-line);
  margin-bottom: 32px;
}
@media (min-width: 780px) {
  .ed-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }
}
.ed-footer__col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 20px;
}
.ed-footer__col a {
  display: block;
  padding: 8px 0;
  color: rgba(245, 242, 234, 0.75);
  font-size: 14px;
  transition: color 300ms var(--ease);
}
.ed-footer__col a:hover { color: var(--brass); }
.ed-footer__brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 12px;
}
.ed-footer__brand em { font-style: italic; color: var(--brass); font-weight: 400; }
.ed-footer__desc {
  font-size: 13px;
  color: rgba(245, 242, 234, 0.6);
  line-height: 1.6;
  max-width: 30ch;
}
.ed-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.5);
}

/* ============================================================
   OVERRIDES CHART / TABLE / LEGACY UI para adaptarse al editorial
   ============================================================ */

/* Bench pills → mono minimal */
.bench-pills { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.bench-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 300ms var(--ease);
}
.bench-pill:hover { color: var(--ink); border-color: var(--ink); }
.bench-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Date inputs minimal */
.date-input {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
}
.date-reset {
  background: none; border: 0; color: var(--ink-3);
  cursor: pointer; font-size: 14px;
  padding: 4px 8px;
}
.date-reset:hover { color: var(--brass); }

/* Chart SVG en fondo transparente */
.perf-chart { width: 100%; min-height: 380px; }
.perf-chart svg { width: 100%; height: auto; display: block; }
.pc-grid { stroke: var(--line); stroke-width: 0.5; }
.pc-zero { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.4; }
.pc-ylabel, .pc-xlabel {
  fill: var(--ink-3); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
}
.pc-line { stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pc-line--port { stroke: var(--ink); stroke-width: 2; }
.pc-area { fill: url(#pcFill); opacity: 0.4; }
.pc-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.pc-ptlbl {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; fill: var(--ink);
}
.pc-bench { stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pc-benchlbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; fill: var(--brass);
}

/* Monthly bar chart */
.monthly-bars { width: 100%; min-height: 320px; }
.monthly-bars svg { width: 100%; height: auto; display: block; }
.mb-bar--cartera { fill: var(--ink); }
.mb-bar--sp500 { fill: var(--ink-3); opacity: 0.6; }
.mb-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
  fill: var(--ink); font-variant-numeric: tabular-nums;
}
.mb-label--sp500 { fill: var(--ink-3); }

/* KPIs → ed-figures-grid style */
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  padding: 32px clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.kpi:nth-child(2n) { border-right: 0; }
@media (min-width: 780px) {
  .kpi:nth-child(2n) { border-right: 1px solid var(--line); }
  .kpi:nth-child(4n) { border-right: 0; }
}
.kpi__head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.kpi__l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.kpi__tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px 8px;
  border: 1px solid var(--line);
}
.kpi__tag.pos { color: var(--pos); border-color: var(--pos); }
.kpi__tag.neg { color: var(--neg); border-color: var(--neg); }
.kpi__v {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: block;
  margin: 4px 0 8px;
}
.kpi__v.pos { color: var(--pos); }
.kpi__v.neg { color: var(--neg); }
.kpi__d { font-size: 12px; color: var(--ink-3); line-height: 1.5; display: block; }
.info { display: none; }

/* Donuts + legend */
.donut { width: 100%; max-width: 280px; margin: 0 auto; }
.donut svg { width: 100%; height: auto; }
.legend { list-style: none; padding: 24px 0 0; margin: 0; display: grid; gap: 8px; }
.legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.legend li:last-child { border-bottom: 0; }
.legend-sw { width: 10px; height: 10px; background: var(--c); }
.legend-val { font-family: var(--mono); font-size: 12px; color: var(--ink); }

/* Holdings table (usar ed-table style) */
#holdings-table.ed-table td { padding: 14px 12px 14px 0; }
#holdings-table.ed-table td:last-child, #holdings-table.ed-table th:last-child { padding-right: 0; }
#holdings-table.ed-table th:not(:first-child), #holdings-table.ed-table td:not(:first-child) { padding-left: 12px; }
.h-name { color: var(--ink); font-weight: 400; }
.h-ticker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-2); }
.pos, td.pos { color: var(--pos); }
.neg, td.neg { color: var(--neg); }

/* Accordion editorial */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item__q {
  width: 100%;
  padding: 28px 0;
  background: none; border: 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--ink);
  text-align: left;
  transition: color 300ms var(--ease);
}
.acc-item__q:hover { color: var(--brass); }
.acc-item__icon::before {
  content: '+';
  font-family: var(--mono);
  font-size: 22px;
  color: var(--brass);
  transition: transform 400ms var(--ease);
  display: inline-block;
}
/* Icono + que rota 45° al abrir (se convierte en ×) — más elegante que cambiar el glyph */
.acc-item__icon::before { content: '+'; }
.acc-item.is-open .acc-item__icon::before {
  content: '+';
  transform: rotate(45deg);
}
/* Grid-template-rows para altura fluida sin max-height mágica.
   !important porque styles.css (v90, se carga después) fija max-height:0. */
.acc-item__a {
  display: grid !important;
  grid-template-rows: 0fr;
  max-height: none !important;
  overflow: hidden;
  transition: grid-template-rows 450ms cubic-bezier(.22, 1, .36, 1) !important;
}
.acc-item__a > * { min-height: 0; overflow: hidden; }
.acc-item.is-open .acc-item__a { grid-template-rows: 1fr; padding-bottom: 24px; }
.acc-item__a p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
  max-width: 65ch;
  transition: opacity 400ms cubic-bezier(.22, 1, .36, 1) 60ms;
  opacity: 0;
}
.acc-item.is-open .acc-item__a p { opacity: 1; }

/* Monthly table override */
.monthly-table-wrap { margin: 0; border: 0; border-radius: 0; }
.monthly-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
}
.monthly-table th, .monthly-table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  background: transparent;
}
.monthly-table th {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); text-align: left;
  border-bottom: 1px solid var(--ink);
}
.monthly-table th.ta-r, .monthly-table td.ta-r { text-align: right; font-variant-numeric: tabular-nums; }
.monthly-table__total td { background: var(--paper-3); font-weight: 500; }

/* ============================================================
   OVERRIDES sobre estilos legacy que quedan
   ============================================================ */

/* Ocultar site-bg (era del old design) */
.site-bg { display: none !important; }

/* Body con paper background */
body { background: var(--paper) !important; }

/* Nav antiguo escondido si aparece */
header.nav { display: none !important; }

/* Contenedor legacy con ajustes cuando esté dentro de ed-section */
.ed-section .container { padding: 0; max-width: none; }

/* ============================================================
   NUEVOS ELEMENTOS EDITORIAL v2
   ============================================================ */

/* Header single (sin split note derecha) */
.ed-section-header--single { grid-template-columns: 1fr !important; }

/* Título en horizontal */
.ed-h1--horizontal,
.ed-h2--horizontal {
  max-width: none;
  text-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.ed-h1--horizontal::-webkit-scrollbar,
.ed-h2--horizontal::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .ed-h1--horizontal,
  .ed-h2--horizontal {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Hero blockquote destacado — sin fondo oscuro, sólo tipografía + regla latón */
.ed-hero__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  padding: 8px 0 8px 28px;
  margin: 40px 0 32px;
  max-width: 780px;
  position: relative;
  border-left: 2px solid var(--brass);
}
.ed-hero__quote::before { content: none; }

/* Preface encima de KPIs */
.ed-hero__preface {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-2);
  margin: clamp(48px, 8vw, 72px) 0 24px;
  max-width: 52ch;
}

/* Meta grid 3 KPIs (sin lead a la izquierda) */
.ed-hero__meta--3 {
  grid-template-columns: 1fr !important;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
@media (min-width: 780px) {
  .ed-hero__meta--3 { grid-template-columns: repeat(3, 1fr) !important; gap: 48px !important; }
}

/* ============================================================
   KPIs EDITORIALES — grupos de 3 en horizontal, sin cajas
   ============================================================ */
.kpis {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 48px 40px !important;
  padding: 40px 0 !important;
  border-top: 1px solid var(--rule) !important;
  border-bottom: 1px solid var(--rule) !important;
  background: transparent !important;
}
@media (min-width: 640px) {
  .kpis { grid-template-columns: repeat(3, 1fr) !important; gap: 56px 32px !important; }
}
@media (min-width: 1100px) {
  .kpis { gap: 64px 64px !important; padding: 56px 0 !important; }
}

.kpi {
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  position: relative;
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
.kpi:hover { transform: translateY(-2px); }

.kpi__head {
  display: block !important;
  margin: 0 !important;
}
.kpi__l {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--ink-3) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kpi__v {
  font-family: var(--serif) !important;
  font-weight: 300 !important;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.015em !important;
  margin: 0 !important;
  font-variant-numeric: tabular-nums;
  color: var(--ink) !important;
}
.kpi__v.pos { color: var(--pos) !important; }
.kpi__v.neg { color: var(--neg) !important; }
.kpi__d {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  color: var(--ink-3) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.kpi__tag { display: none !important; }

/* El icono 'i' de tooltip discreto */
.kpi__l .info {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 9px;
  font-style: italic;
  color: var(--ink-3);
  cursor: help;
  opacity: 0.5;
  transition: opacity 160ms ease;
}
.kpi__l .info:hover { opacity: 1; }

/* Cartera actualizada nota */
.ed-updated-inline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Donuts grid 2 columnas con fondo paper-2 */
.ed-donuts-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
@media (min-width: 780px) {
  .ed-donuts-wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.ed-donut-card {
  background: var(--paper-2);
  padding: 40px clamp(24px, 3vw, 40px);
  margin: 0;
  border: 1px solid var(--line);
}
.ed-donut-card figcaption { margin-bottom: 24px; }
.ed-donut-card .donut { max-width: 260px; margin: 0 auto 20px; }
.ed-donut-card .legend { padding-top: 12px; }

/* Quitar fondo blanco heredado de styles.css en las leyendas */
.ed-donut-card .legend--dense {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.ed-donut-card .legend .legend__row {
  border-bottom: 1px solid var(--rule);
  border-radius: 0 !important;
}
.ed-donut-card .legend .legend__row:last-child { border-bottom: 0; }
.ed-donut-card .legend .legend__head {
  padding: 12px 4px !important;
  border-radius: 0 !important;
}
.ed-donut-card .legend .legend__row:hover .legend__head,
.ed-donut-card .legend .legend__row.is-hi .legend__head {
  background: rgba(140, 109, 47, 0.06) !important;
}
.ed-donut-card .legend .l-name { color: var(--ink-2); }
.ed-donut-card .legend .l-val { color: var(--ink); font-weight: 600; }

/* Track record CTA */
.ed-track-cta { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ed-track-cta__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0;
  transition: color 300ms var(--ease);
}
.ed-track-cta__link:hover { color: var(--brass); }
.ed-track-cta__link:hover .ed-h3 em { color: var(--brass); }
.ed-track-cta__link .ed-h3 em { font-style: italic; color: var(--brass); font-weight: 400; transition: transform 300ms var(--ease); display: inline-block; }
.ed-track-cta__link:hover .ed-h3 em { transform: translateX(6px); }
.ed-track-cta__arrow {
  font-size: 32px;
  color: var(--brass);
  transition: transform 300ms var(--ease);
}
.ed-track-cta__link:hover .ed-track-cta__arrow { transform: translate(6px, -6px); }

/* Dividendos - grid 2 columnas KPIs | tablas */
.ed-dividends-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (min-width: 980px) {
  .ed-dividends-grid { grid-template-columns: 320px 1fr; gap: 64px; }
}
.ed-dividends-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  align-content: start;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ed-figure--compact {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.ed-figure--compact .ed-figure__value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}
.ed-figure--compact .ed-figure__label {
  font-size: 9px;
  letter-spacing: 0.22em;
  margin-top: 4px;
}
.ed-table--compact th { padding: 12px 0; font-size: 9px; }
.ed-table--compact td { padding: 12px 0; font-size: 13px; }
.ed-table--compact th:not(:first-child),
.ed-table--compact td:not(:first-child) { padding-left: 12px; }

/* Encaje 2 columnas */
.ed-fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (min-width: 780px) {
  .ed-fit-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.ed-fit-col {}
.ed-fit-col__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.ed-fit-col__label--no { color: var(--neg); border-bottom-color: var(--neg); }
.ed-fit-col__label--yes { color: var(--pos); border-bottom-color: var(--pos); }
.ed-fit-list { list-style: none; padding: 0; }
.ed-fit-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ed-fit-list li:last-child { border-bottom: 0; }

/* Dark section fix — pilares con hover conservan tono claro */
.ed-section--dark .ed-pillar {
  border-top-color: var(--dark-line) !important;
  transition: background 300ms var(--ease);
}
.ed-section--dark .ed-pillar:hover {
  background: rgba(140, 109, 47, 0.08); /* latón suave */
}
.ed-section--dark .ed-pillar:hover .ed-pillar__title { color: var(--paper) !important; }
.ed-section--dark .ed-pillar:hover .ed-pillar__desc { color: rgba(245,242,234,.9) !important; }
@media (min-width: 780px) {
  .ed-section--dark .ed-pillar + .ed-pillar { border-left: 1px solid var(--dark-line) !important; }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.ed-mt-0 { margin-top: 0 !important; }
.ed-hidden { display: none !important; }
.ed-visible-md { display: none; }
@media (min-width: 780px) { .ed-visible-md { display: initial; } }

/* ============================================================
   MOTION SYSTEM — CSS complementario al motion.js
   ============================================================ */

/* Nav activa: subrayado latón permanente en el link de la sección actual */
.ed-nav__link.is-active { color: var(--brass); }
.ed-nav__link.is-active::after { transform: scaleX(1); }

/* Área bajo la línea del chart: fade-in tras el trazo */
.perf-chart .pc-area {
  opacity: 0;
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1) 1.4s;
}
.perf-chart.chart-in .pc-area { opacity: 1; }

/* Línea benchmark también hace draw-in con dashoffset (JS podría fijarlo, pero fallback CSS) */
.perf-chart .pc-bench {
  opacity: 0;
  transition: opacity 800ms cubic-bezier(.22, 1, .36, 1) 1.9s;
}
.perf-chart.chart-in .pc-bench { opacity: 1; }

/* Puntos del chart: aparecen tras el trazo */
.perf-chart .pc-dot {
  opacity: 0;
  transition: opacity 600ms cubic-bezier(.22, 1, .36, 1) 2s;
}
.perf-chart.chart-in .pc-dot { opacity: 1; }

/* Barras mensuales: crecen desde el eje con cascada */
.monthly-bars svg .mb-bar {
  transform: scaleY(0);
  transform-origin: center bottom;
  transform-box: fill-box;
  transition: transform 900ms cubic-bezier(.22, 1, .36, 1);
}
.monthly-bars svg.mb-svg.bars-in .mb-bar { transform: scaleY(1); }
/* Cascada — se aplican hasta 60 barras con delay incremental */
.monthly-bars svg .mb-bar:nth-child(1)  { transition-delay: 0.00s; }
.monthly-bars svg .mb-bar:nth-child(2)  { transition-delay: 0.03s; }
.monthly-bars svg .mb-bar:nth-child(3)  { transition-delay: 0.06s; }
.monthly-bars svg .mb-bar:nth-child(4)  { transition-delay: 0.09s; }
.monthly-bars svg .mb-bar:nth-child(5)  { transition-delay: 0.12s; }
.monthly-bars svg .mb-bar:nth-child(6)  { transition-delay: 0.15s; }
.monthly-bars svg .mb-bar:nth-child(7)  { transition-delay: 0.18s; }
.monthly-bars svg .mb-bar:nth-child(8)  { transition-delay: 0.21s; }
.monthly-bars svg .mb-bar:nth-child(9)  { transition-delay: 0.24s; }
.monthly-bars svg .mb-bar:nth-child(10) { transition-delay: 0.27s; }
.monthly-bars svg .mb-bar:nth-child(11) { transition-delay: 0.30s; }
.monthly-bars svg .mb-bar:nth-child(12) { transition-delay: 0.33s; }
.monthly-bars svg .mb-bar:nth-child(13) { transition-delay: 0.36s; }
.monthly-bars svg .mb-bar:nth-child(14) { transition-delay: 0.39s; }
.monthly-bars svg .mb-bar:nth-child(15) { transition-delay: 0.42s; }
.monthly-bars svg .mb-bar:nth-child(16) { transition-delay: 0.45s; }
.monthly-bars svg .mb-bar:nth-child(17) { transition-delay: 0.48s; }
.monthly-bars svg .mb-bar:nth-child(18) { transition-delay: 0.51s; }
.monthly-bars svg .mb-bar:nth-child(19) { transition-delay: 0.54s; }
.monthly-bars svg .mb-bar:nth-child(20) { transition-delay: 0.57s; }

/* Punto EN VIVO — pulso infinito */
.ed-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2E7D5B;
  margin-right: 8px;
  vertical-align: middle;
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* Hero desvanece con parallax vía JS (--hero-progress: 0→1) */
.ed-hero > .ed-container {
  transition: opacity 200ms linear;
}

/* prefers-reduced-motion: desactivar todo lo animado */
@media (prefers-reduced-motion: reduce) {
  .perf-chart .pc-area,
  .perf-chart .pc-bench,
  .perf-chart .pc-dot,
  .monthly-bars svg .mb-bar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ed-live-dot { animation: none; opacity: 1; }
  .ed-scroll-cue::after { animation: none; }
}

/* ============================================================
   TOP STRIP — Sígueme en X (arriba del todo)
   ============================================================ */
.ed-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  display: block;
  background: var(--dark);
  color: var(--dark-ink);
  padding: 8px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 300ms var(--ease);
}
.ed-topbar:hover { background: var(--brass-2); }
.ed-topbar__inner {
  display: inline-flex; align-items: center; gap: 12px;
}
.ed-topbar__label { color: rgba(245,242,234,0.6); }
.ed-topbar__handle { color: var(--brass); font-weight: 500; letter-spacing: 0.08em; text-transform: none; font-size: 12px; }
.ed-topbar__arrow { color: var(--brass); transition: transform 300ms var(--ease); }
.ed-topbar:hover .ed-topbar__arrow { transform: translate(2px, -2px); color: var(--dark-ink); }
.ed-topbar:hover .ed-topbar__label,
.ed-topbar:hover .ed-topbar__handle { color: var(--dark-ink); }

/* Nav baja para dejar espacio al topbar */
.ed-nav { top: 34px; }
/* Hero también baja para que el título no quede pegado al topbar */
body { padding-top: 34px; }

/* ============================================================
   QUIÉN SOY — bio 2 columnas
   ============================================================ */
.ed-bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .ed-bio-grid { grid-template-columns: 320px 1fr; gap: 80px; }
}
.ed-bio-side { position: relative; }
@media (min-width: 900px) {
  .ed-bio-side { position: sticky; top: 120px; align-self: start; }
}
.ed-bio-card {
  background: var(--paper-2);
  padding: clamp(24px, 3vw, 32px);
  border-top: 2px solid var(--brass);
}
.ed-bio-dl {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 0;
}
.ed-bio-dl dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.ed-bio-dl dd {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ed-bio-dl dd:last-child { border-bottom: 0; padding-bottom: 0; }
.ed-bio-body p + p { margin-top: 20px; }
.ed-bio-body strong {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(transparent 60%, rgba(140,109,47,0.15) 60%);
  padding: 0 2px;
}

/* ============================================================
   MANIFESTO — sección "Cómo pienso"
   ============================================================ */
.ed-section--manifesto {
  background: var(--paper-2);
  padding-block: clamp(120px, 16vw, 180px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ed-manifesto {
  max-width: 68ch;
  text-align: left;
}
.ed-manifesto__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 40px 0;
  padding: 0;
  border: 0;
  text-wrap: balance;
}
.ed-manifesto__quote span {
  color: var(--brass);
  font-style: italic;
  display: inline;
}
.ed-manifesto__quote + .ed-manifesto__quote {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.ed-manifesto__sig {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 56px;
}

/* Nota editorial dentro de sección con datos */
.ed-note {
  max-width: 68ch;
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 2px solid var(--brass);
  background: transparent;
}
.ed-note p:not(.ed-eyebrow) {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.ed-note .ed-eyebrow { margin-bottom: 12px; }

/* ============================================================
   ENSAYO — página /tesis.html
   ============================================================ */
.ed-essay {
  max-width: 900px;
  margin: 0 auto;
}
.ed-essay__chapter { margin-bottom: 56px; }
.ed-essay__body { max-width: 68ch; }
.ed-essay__body p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.65; color: var(--ink); margin-bottom: 24px; }
.ed-essay__body p em { color: var(--brass); font-style: italic; }
.ed-essay__body p strong { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 62%, rgba(140,109,47,0.15) 62%); padding: 0 2px; }

.ed-essay__pull {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--brass);
  padding: 12px 0 12px 28px;
  margin: 48px 0;
  text-wrap: balance;
}

.ed-essay__error {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.ed-essay__error-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neg);
  margin-bottom: 8px;
}
.ed-essay__error h3 { margin-bottom: 12px; }
.ed-essay__error p { margin: 0; }

.ed-essay__list {
  list-style: none;
  counter-reset: essay-list;
  margin: 32px 0;
  padding: 0;
}
.ed-essay__list li {
  counter-increment: essay-list;
  position: relative;
  padding-left: 56px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink);
}
.ed-essay__list li:last-child { border-bottom: 0; }
.ed-essay__list li::before {
  content: counter(essay-list, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brass);
  letter-spacing: 0.1em;
}
