.site-header{height:auto;min-height:94px;flex-wrap:wrap}
.site-header .site-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.site-header .site-tools a,footer a{font-size:14px;color:#375b44;text-underline-offset:3px}
.site-header .draft-note{font-size:12px;display:block;color:#65695b}
.site-header .site-tools a[aria-current=page]{font-weight:bold}
.site-map .map-branches{list-style:disc;padding-left:22px}
.site-map .map-branches li{border:0;margin:8px 0}
.site-map .map-branches a{display:inline;padding:0;border:0;font-size:16px;text-decoration:underline}
footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
.topic-reading h3,.topic-reading details{scroll-margin-top:100px}
@media(max-width:740px){.site-header{padding:10px 16px;gap:4px 12px}.site-header .site-tools{gap:8px 14px}.site-header .draft-note{max-width:none;font-size:12px;flex-basis:100%}.site-header .site-tools a{font-size:14px}.site-map summary{font-size:16px}}

.site-header .site-brand {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
}

.site-header .site-brand img {
  display: block;
  width: clamp(215px, 28vw, 270px);
  max-width: 100%;
  height: auto;
}

body:not(.inside) {
  background: #FAF8F5;
  color: #24292F;
}

.consultorio-portada {
  border: 1px solid #DED8CF;
  background: #FAF8F5;
}

.consultorio-portada img {
  border-radius: 0;
}

.consultorio-portada figcaption {
  position: static;
  padding: 0.8em 1em;
  border-top: 1px solid #DED8CF;
  border-radius: 0;
  background: #FAF8F5;
  color: #24292F;
  font: clamp(18px, 2vw, 24px)/1.3 Baskerville, Georgia, serif;
}

/* Editorial entrance, shared with the channel’s visual identity. */
.site-header .site-brand img {
  width: clamp(156px, 25vw, 214px);
  mix-blend-mode: multiply;
}

.layout > aside h2 {
  font: 600 clamp(22px, 2.5vw, 30px)/1.15 Baskerville, Georgia, serif;
  margin: 6px 0 10px;
}

.portada-intro, .portada-nota {
  display: none;
}

.portada-inicio .portada-intro, .portada-inicio .portada-nota {
  display: block;
}

.portada-inicio .consulta-resumen, .portada-inicio .consultorio-portada figcaption {
  display: none;
}

.portada-intro h1 {
  color: #214737;
  font: 600 clamp(34px, 5vw, 65px)/1.02 Baskerville, Georgia, serif;
  max-width: 16ch;
  margin: 0 0 16px;
  text-wrap: balance;
}

.portada-intro p {
  font-size: 17px;
  line-height: 1.5;
  max-width: 50ch;
  margin: 0 0 18px;
}

.portada-preguntas {
  border: 1px solid #214737;
  border-radius: 4px;
  background: #214737;
  color: #FAF8F5;
  padding: 12px 18px;
  min-height: 44px;
  font: 600 15px/1.3 Arial, sans-serif;
  cursor: pointer;
}

.portada-preguntas:hover { background: #2F5B47; }
.portada-inicio .consultorio-portada { margin-top: 20px; }
.portada-inicio .consultorio-portada img {
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
  object-position: center 57%;
}
.portada-nota { font-size: 14px; line-height: 1.5; color: #545951; margin: 12px 0 0; }

@media (max-width: 740px) {
  .portada-inicio:not(.questions-open) .mobile-navigation { display: none; }
  .portada-inicio .layout { padding-top: 22px; }
  .site-header .site-brand img { width: 161px; }
  .portada-inicio .consultorio-portada img { aspect-ratio: 4 / 3; }
}

.lectura-breve {
  margin: 18px 0;
  padding: 0 16px;
  border: 1px solid #d5d6cd;
  border-left: 4px solid #214737;
  border-radius: 4px;
  background: #faf8f5;
  color: #24292f;
  line-height: 1.55;
}
.lectura-breve summary {
  padding: 12px 0;
  color: #214737;
  font-weight: 700;
  cursor: pointer;
}
.lectura-breve h3 { margin: 12px 0 4px; font: 600 22px/1.25 Baskerville, Georgia, serif; }
.lectura-breve p { margin: 8px 0 14px; }
.lectura-breve ul { padding-left: 20px; }
.lectura-breve a { color: #214737; text-underline-offset: 3px; }
.lectura-breve { scroll-margin-top: 72px; }
.lectura-breve .fuentes-lectura-breve li { display: list-item; margin: 5px 0; border: 0; }
.lectura-breve .fuentes-lectura-breve a { display: inline; padding: 0; border: 0; }

/* Match the first question’s reading index to the editorial home. */
body.inside {
  background: #faf8f5;
  color: #24292f;
}

.pregunta-editorial {
  --tinta-verde: #214737;
  --linea-papel: #ded8cf;
}

.pregunta-editorial .eyebrow { color: var(--tinta-verde); }

.pregunta-editorial .question-heading h2 {
  max-width: 20ch;
  color: var(--tinta-verde);
  font: 600 clamp(36px, 5vw, 61px)/1.02 Baskerville, Georgia, serif;
  text-wrap: balance;
  margin: 10px 0 12px;
}

.pregunta-editorial .question-answer {
  padding-left: 0;
  border-left: 0;
  max-width: 62ch;
  color: #24292f;
}

.pregunta-editorial .lectura-breve {
  margin: 22px 0 28px;
  border: 1px solid var(--linea-papel);
  border-radius: 3px;
  background: #f2f0e8;
}

.pregunta-editorial .topic-heading h3 {
  color: var(--tinta-verde);
  font: 600 26px/1.15 Baskerville, Georgia, serif;
}
.pregunta-editorial .topic-list,
.pregunta-editorial .topic-list > a { border-color: var(--linea-papel); }
.pregunta-editorial .topic-list > a {
  grid-template-columns: minmax(0, 1fr) 1.25em;
  padding: 13px 5px;
}
.pregunta-editorial .topic-list strong { color: var(--tinta-verde); }
.pregunta-editorial .topic-list small { color: #545951; }

.pregunta-editorial .question-resources .case-entry {
  border: 1px solid var(--linea-papel);
  border-radius: 3px;
  background: transparent;
}
.pregunta-editorial .question-resources .case-entry:hover { background: #f2f0e8; }
.pregunta-editorial .case-entry strong,
.pregunta-editorial .case-entry-label { color: var(--tinta-verde); }

@media (max-width: 740px) {
  .inside .mobile-navigation { background: #faf8f5; border-color: #ded8cf; }
  .inside .mobile-navigation button,
  .inside .mobile-navigation a {
    background: #faf8f5;
    border-color: #bdc6b9;
    color: #214737;
  }
}

@media (max-width: 740px) {
  #consulta:has(.pregunta-editorial) > .trail { display: none; }
}

/* The reading pages use the same paper, serif headings, and green as the cover. */
body.inside .topic-reading h2,
body.inside .chapter-reading h2,
body.inside .example-reading h2 {
  color: #214737;
  font: 600 clamp(32px, 4vw, 48px)/1.08 Baskerville, Georgia, serif;
  text-wrap: balance;
}
body.inside .topic-reading h3 {
  color: #214737;
  font-family: Baskerville, Georgia, serif;
}
body.inside .reading-location { background: #faf8f5; }
body.inside .example-scene {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 57%;
}
