/* Lectura guiada. Sólo componentes er-am; no modifica tokens globales. */
.er-am {
    --am-red: #c0271b;
    --am-ink: #1a1a1a;
    --am-paper: #f5f1e8;
    color: var(--am-ink);
    font-family: ERAutonomiaReading, 'Source Serif 4', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-align: left;
}
.er-am, .er-am * { box-sizing: border-box; }
.er-am h1, .er-am h2, .er-am h3 {
    color: var(--am-ink);
    font-family: ERAutonomiaTitle, 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
    margin: 0 0 .7rem;
}
.er-am p { margin: 0 0 1rem; }
.er-am a { color: var(--am-red); text-decoration: underline; text-underline-offset: .2em; }
.er-am a:hover { text-decoration-thickness: .15em; }
.er-am a:focus-visible, .er-am [tabindex='-1']:focus-visible, .er-am:focus-visible {
    outline: 3px solid var(--am-ink); outline-offset: 4px;
}
.er-am-special { max-width: 50rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 3vw, 2rem) 3rem; background: white; }
.er-am-breadcrumb { font-size: 1rem; margin-bottom: 1.25rem; }
.er-am .er-am-kicker, .er-am .er-am-bar {
    background: var(--am-paper); color: var(--am-red); padding: .45rem .65rem;
    font-size: 1.1rem; line-height: 1.35; letter-spacing: .03em; text-transform: uppercase;
}
.er-am-special h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
.er-am .er-am-deck { font-size: 1.25rem; line-height: 1.4; }
.er-am-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 1rem 0; }
.er-am-paths a { display: flex; justify-content: space-between; gap: .4rem; min-height: 44px; padding: .65rem; font-weight: 700; border-bottom: 1px solid #aaa; }
.er-am-paths a:nth-child(odd) { border-right: 1px solid #aaa; }
.er-am .er-am-context { background: var(--am-paper); padding: .65rem; font-style: italic; }
.er-am-group { border-top: 1px solid #777; margin-top: 1.8rem; padding-top: .8rem; scroll-margin-top: 1rem; }
.er-am-story { padding: .8rem 0 1rem; border-bottom: 1px solid #aaa; }
.er-am-story h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.er-am-story h3 a { color: inherit; text-decoration: none; }
.er-am-story h3 a:hover, .er-am-story h3 a:focus-visible { text-decoration: underline; }
.er-am-read { display: inline-block; min-height: 44px; padding-top: .3rem; font-weight: 700; }
.er-am-context-box { margin: 2rem 0; padding: 1rem; background: var(--am-paper); }
.er-am-context-box h2 { font-size: 1.5rem; }
.er-am-documents { margin-top: 2rem; scroll-margin-top: 1rem; }
.er-am-document { padding: 1rem; margin: 1rem 0; background: var(--am-paper); border-left: 3px solid var(--am-red); }
.er-am-document h3 { font-size: 1.5rem; }
.er-am .er-am-kind, .er-am .er-am-status { font-family: ERAutonomiaUI, Inter, Arial, sans-serif; font-size: .875rem; }
.er-am .er-am-status { font-weight: 700; }
.er-am-note, .er-am-updated { font-size: 1rem; }
.er-am-return { display: inline-block; padding: .75rem 0; min-height: 44px; border-top: 1px solid #777; font-weight: 700; }
.er-am-teaser { padding: 1.25rem; margin: 1.5rem 0; border-top: 2px solid var(--am-red); border-bottom: 1px solid #aaa; background: white; }
.er-am-teaser h2 { font-size: clamp(1.75rem,3vw,2.5rem); }
.er-am .er-am-button { display: inline-block; color: white; background: var(--am-red); border-radius: 2px; padding: .7rem 1rem; font-weight: 700; min-height: 44px; }
.er-am-back { margin: 2rem 0; padding: 1rem 0; border-top: 1px solid #aaa; }
@media (max-width: 20rem) {
    .er-am-paths { grid-template-columns: minmax(0,1fr); }
    .er-am-paths a:nth-child(odd) { border-right: 0; }
}

.er-am-special .er-am-kicker {
    font-family: ERAutonomiaTitle, Georgia, serif;
    font-size: clamp(1.1rem, calc(.75rem + 4.5vw), 1.65rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
}
