/* Language selector temporarily hidden while reading. */
.language-switch { display: none; align-items: center; gap: 10px; font-family: var(--font-sans, sans-serif); font-size: 12px; line-height: 1.3; white-space: nowrap; }
.language-switch a { color: inherit; text-decoration: none; padding: 10px 0; opacity: .65; }
.language-switch a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.language-switch a:hover, .language-switch a:focus-visible { opacity: 1; }
.translation-note { font-family: var(--font-sans, sans-serif); font-size: 13px; line-height: 1.5; opacity: .72; margin: 0 0 24px; max-width: 54ch; }
html[lang="es"] .protocol-panel .protocol-player__title { line-height: 1.5; }
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; row-gap: 2px; }
  .header-meta { margin-left: auto; }
  .language-switch { gap: 8px; font-size: 11px; }
  html[lang="es"] .wordmark { font-size: 14px; }
  html[lang="es"] .essay-listen { white-space: normal; }
}
@media (max-width: 420px) {
  .site-header .wordmark { max-width: calc(100% - 60px); }
  .site-header .wordmark > span:last-child { white-space: normal; line-height: 1.15; }
  .site-header .header-meta { gap: 8px; }
}
@media print { .language-switch { display: none; } }
html[lang="es"] .essay-header h1 { white-space: normal; max-width: 15ch; line-height: .98; text-wrap: balance; }
.language-switch { letter-spacing: normal; }
@media (max-width: 760px) {
  .site-header { flex-wrap: nowrap; }
  .site-header .wordmark { min-width: 0; max-width: calc(100% - 60px); }
  .site-header .wordmark > span:last-child { min-width: 0; white-space: normal; line-height: 1.15; }
  .site-header .header-meta { flex-shrink: 0; gap: 4px; }
}
@media (max-width: 760px) {
  html[lang="es"] .essay-figure--matrix { overflow: clip; }
}
/* English headings have a few deliberate single-line overrides; Spanish needs natural wrapping. */
html[lang="es"] .essay-body h3[id], html[lang="es"] .workshop__meta { white-space: normal !important; }
