/* Editorial layer preserving the site's palette and typefaces. */
.editorial-home {
    padding: 2.8rem 0 3rem;
}

.editorial-home .section-heading {
    max-width: 42rem;
    margin: 0 auto 1.6rem;
    padding: 0;
}

.editorial-home .section-heading h2 {
    max-width: 32ch;
    margin-inline: auto;
}

.editorial-home .guide-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.editorial-home .guide-card {
    position: relative;
    padding: 1.4rem;
    border: 1px solid transparent;
    transition: border-color .2s;
}

.guide-card-title {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 1rem;
    align-items: start;
    gap: .75rem;
    margin-bottom: .8rem;
}

.editorial-home .guide-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.22;
    min-height: 2.44em;
}

.editorial-home .guide-card h3 a {
    text-decoration: none;
}

.guide-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: .43rem;
}

.guide-card-title svg {
    width: 1rem;
    height: 1rem;
    margin-top: .2rem;
    color: var(--rust);
}

.editorial-home .guide-card p {
    font-size: .8rem;
    line-height: 1.65;
}

.editorial-home .guide-card:hover {
    border-color: var(--sage);
}

.guide-card h3 a:focus-visible::after {
    outline: 3px solid var(--rust);
    outline-offset: 4px;
}

.editorial-home .service-note {
    display: grid;
    grid-template-columns:13rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.6rem;
    padding: 1.35rem 1.6rem;
    border-left: 2px solid var(--sage);
    border-radius: 0 .43rem .43rem 0;
}

.editorial-home .service-note h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.editorial-home .service-note p {
    font-size: .8rem;
    line-height: 1.7;
}

.editorial-home + .closing-cta .closing-inner {
    padding-block: 2rem;
}

.editorial-home + .closing-cta .button {
    margin-right: 0;
    flex-shrink: 0;
}

.editorial-home p {
    color: var(--text);
}

.editorial-home a, .editorial-note a, .process .section-heading a {
    text-decoration: underline;
    text-underline-offset: .16em;
}

.editorial-note {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--sage);
    background: var(--surface);
}

.footer-contact a {
    display: block;
    overflow-wrap: anywhere;
    margin-bottom: .5rem;
}

.footer-helper a {
    display: block;
    margin-bottom: .6rem;
}

.footer-bottom nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-card .text-link {
    line-height: 1.4;
    text-align: left;
}

.editorial-page {
    font-size: 1rem;
}

.breadcrumbs {
    padding: 1.4rem 0;
    font-size: .75rem;
    color: var(--text);
}

.breadcrumbs a {
    text-decoration: underline;
}

.reading-shell {
    width: min(100% - 2.5rem, 52rem);
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
}

.article-heading h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.7rem);
    font-weight: 400;
    line-height: 1.08;
    margin: .6rem 0 1.2rem;
    max-width: 22ch;
}

.article-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text);
    max-width: 70ch;
}

.editorial-date {
    color: var(--text);
    font-size: .72rem;
    margin-top: 1.3rem;
}

.contents-nav {
    margin: 2rem 0;
    padding: 1.3rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
}

.contents-nav ol {
    columns: 2;
    column-gap: 2rem;
    padding-left: 1.3rem;
    margin: .5rem 0 0;
}

.contents-nav li {
    break-inside: avoid;
    padding: .3rem 0;
    font-size: .85rem;
}

.reading-shell a:not(.button) {
    text-decoration: underline;
    text-underline-offset: .15em;
    text-decoration-thickness: 1px;
}

.article-content {
    max-width: 75ch;
}

.article-content section {
    margin-top: 2.4rem;
}

.article-content h2 {
    font-family: var(--serif);
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1rem;
    scroll-margin-top: 2rem;
}

.article-content h3 {
    font-size: 1.1rem;
    margin: 1.7rem 0 .7rem;
}

.article-content p, .article-content li, .article-content dd {
    font-size: .94rem;
    line-height: 1.75;
    color: var(--text);
}

.article-content ul, .article-content ol {
    padding-left: 1.4rem;
}

.article-content li {
    margin: .5rem 0;
}

.article-content dt {
    font-weight: 700;
    margin-top: 1rem;
}

.article-content dd {
    margin: .3rem 0 1rem;
}

.article-content code {
    overflow-wrap: anywhere;
    font-size: .85em;
}

.article-content details {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.article-content summary {
    cursor: pointer;
    font-weight: 700;
    line-height: 1.5;
}

.article-content table {
    border-collapse: collapse;
    width: 100%;
    font-size: .88rem;
    line-height: 1.55;
}

.article-content th, .article-content td {
    padding: .8rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--border);
}

.article-content th {
    background: var(--surface);
}

.table-wrap {
    overflow-x: auto;
}

.source-list {
    border-top: 1px solid var(--border);
    padding-top: 1.8rem;
}

.source-list a {
    overflow-wrap: anywhere;
}

.source-list li, .source-list p, .article-content .editorial-note p {
    font-size: .8rem;
}

.reading-cta {
    background: var(--green);
    color: var(--paper);
    padding: 1.8rem;
    margin-top: 2.5rem;
}

.reading-cta p {
    color: var(--paper);
}

.reading-cta .button {
    background: var(--paper);
    color: var(--green);
}

.article-content .button {
    white-space: normal;
    text-align: center;
}

:focus-visible {
    outline: 3px solid var(--rust);
    outline-offset: 4px;
}

/* Content pages share the landing page's container, typography and spacing. */
.reading-page .reading-shell {
    width: calc(100% - 7rem);
    max-width: 1060px;
    padding: 1.1rem 0 3.5rem;
}

.reading-page .breadcrumbs {
    padding: 1.2rem 0 .5rem;
    font-size: .7rem;
    line-height: 1.5;
}

.reading-page .article-heading {
    text-align: center;
    padding: 1rem 0 2.3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.reading-page .article-heading h1 {
    font-size: 2.65rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.06rem;
    max-width: 28ch;
    margin: .6rem auto 1rem;
    text-wrap: balance;
}

.reading-page .article-lead {
    font-size: .94rem;
    line-height: 1.65;
    max-width: 70ch;
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.reading-page .editorial-date {
    font-size: .65rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.reading-page .reading-layout {
    display: grid;
    grid-template-columns:11.5rem minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
}

.reading-page .contents-nav {
    position: sticky;
    top: 1.25rem;
    margin: 0;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: .43rem;
}

.reading-page .contents-nav .eyebrow {
    margin-bottom: .85rem;
}

.reading-page .contents-nav ol {
    display: grid;
    columns: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: .7rem;
}

.reading-page .contents-nav li {
    margin: 0;
    padding: 0;
    font-size: .76rem;
    line-height: 1.45;
}

.reading-page .contents-nav a {
    display: block;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: .55rem;
}

.reading-page .contents-nav a:hover {
    color: var(--rust);
    border-color: var(--rust);
}

.reading-page .article-content {
    max-width: none;
    min-width: 0;
}

.reading-page .article-content > section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.reading-page .article-content > section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.reading-page .article-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.03rem;
    margin: 0 0 1rem;
}

.reading-page .article-content h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.reading-page .article-content p, .reading-page .article-content li, .reading-page .article-content dd {
    font-size: .86rem;
    line-height: 1.75;
}

.reading-page .article-content p + p {
    margin-top: .9rem;
}

.reading-page .article-content p + ul, .reading-page .article-content p + ol {
    margin-top: 1rem;
}

.reading-page .article-content ul + p, .reading-page .article-content ol + p {
    margin-top: 1rem;
}

.reading-page .article-content a {
    overflow-wrap: anywhere;
}

.reading-page .article-content .button {
    display: inline-flex;
    font-size: .78rem;
    margin: .15rem 0 .35rem;
}

.reading-page .article-content table {
    margin: 1.2rem 0;
    table-layout: fixed;
    font-size: .82rem;
    line-height: 1.6;
    border: 1px solid var(--border);
    background: var(--paper);
}

.reading-page .article-content th, .reading-page .article-content td {
    padding: .8rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
}

.reading-page .article-content th {
    color: var(--green);
    font-weight: 600;
}

.reading-page .article-content th:first-child, .reading-page .article-content td:first-child {
    width: 40%;
}

.reading-page .article-content tbody tr:last-child th, .reading-page .article-content tbody tr:last-child td {
    border-bottom: 0;
}

.reading-page .article-content caption {
    padding: 0 0 .65rem;
    text-align: left;
    font-size: .74rem;
    color: var(--text);
}

.reading-page .article-content dl {
    display: grid;
    grid-template-columns:minmax(0, .85fr) minmax(0, 1.15fr);
    margin: 1rem 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .43rem;
    overflow: hidden;
}

.reading-page .article-content dt, .reading-page .article-content dd {
    margin: 0;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
}

.reading-page .article-content dt {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.6;
}

.reading-page .article-content dt:last-of-type, .reading-page .article-content dd:last-of-type {
    border-bottom: 0;
}

.reading-page .article-content .editorial-note {
    margin-top: 2rem;
    padding: 1.1rem 1.25rem;
    border-radius: 0 .43rem .43rem 0;
}

.reading-page .article-content .editorial-note p, .reading-page .source-list li, .reading-page .source-list p {
    font-size: .74rem;
    line-height: 1.65;
}

.reading-page .source-list ul, .reading-page .related-reading ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.reading-page .source-list li, .reading-page .related-reading li {
    margin: 0;
    padding: .55rem 0;
}

.reading-page .source-list li + li, .reading-page .related-reading li + li {
    border-top: 1px solid var(--border);
}

.reading-page .reading-cta {
    border-radius: .43rem;
    padding: 1.6rem;
}

.reading-page .reading-cta p {
    font-size: .84rem;
    line-height: 1.65;
    margin: .7rem 0 1rem;
}

.reading-page .reading-cta h2 {
    margin-bottom: 0;
}

.service-page--equipo .article-content > section:first-child,
.service-page--contacto .article-content > section:first-child {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: .43rem;
}

.not-found-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.not-found-page .site-footer {
    margin-top: auto;
}

.not-found-content {
    max-width: 38rem;
    padding: 4rem 0 4.5rem;
    text-align: center;
}

.not-found-content h1 {
    font-family: var(--serif);
    font-size: 2.65rem;
    font-weight: 700;
    line-height: 1.1;
    max-width: 20ch;
    margin: 0 auto 1.2rem;
    text-wrap: balance;
}

.not-found-content p {
    font-size: .94rem;
    line-height: 1.7;
    color: var(--text);
}

.not-found-content p + p {
    margin-top: 1.3rem;
}

.not-found-content .button {
    font-size: .82rem;
    margin: .3rem 0;
}

@media (min-width: 700px) and (max-width: 1000px) {
    .editorial-home .service-note {
        grid-template-columns:11rem minmax(0, 1fr);
        gap: 1rem;
    }

    .reading-page .reading-layout {
        grid-template-columns:10.5rem minmax(0, 1fr);
        gap: 1.5rem;
    }

    .reading-page .contents-nav {
        padding: 1rem;
    }
}

@media (max-width: 699px) {
    .editorial-home {
        padding: 2.3rem 0;
    }

    .editorial-home > .container {
        width: calc(100% - 2.5rem);
    }

    .editorial-home .section-heading {
        margin-bottom: 1.35rem;
    }

    .editorial-home .section-heading h2 {
        font-size: 1.9rem;
        text-wrap: balance;
    }

    .editorial-home .guide-grid {
        grid-template-columns:1fr;
    }

    .editorial-home .guide-card {
        padding: 1.25rem;
    }

    .editorial-home .guide-card h3 {
        font-size: 1.35rem;
        min-height: 0;
    }

    .editorial-home .guide-card p {
        font-size: .9rem;
        line-height: 1.6;
    }

    .editorial-home .service-note {
        grid-template-columns:1fr;
        gap: .7rem;
        margin-top: 1.35rem;
        padding: 1.25rem;
    }

    .editorial-home .service-note h3 {
        font-size: 1.3rem;
    }

    .editorial-home .service-note p {
        font-size: .9rem;
        line-height: 1.65;
    }

    .editorial-home + .closing-cta .closing-inner {
        padding-block: 1.8rem;
    }

    .reading-shell {
        width: calc(100% - 2rem);
    }

    .article-heading h1 {
        font-size: 2.5rem;
    }

    .article-content p, .article-content li, .article-content dd {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.9rem;
    }

    .contents-nav ol {
        columns: 1;
    }

    .breadcrumbs {
        font-size: .85rem;
    }

    .editorial-date {
        font-size: .85rem;
    }

    .source-list li, .source-list p, .article-content .editorial-note p {
        font-size: .9rem;
    }

    .contents-nav li {
        font-size: .95rem;
    }

    .article-content th, .article-content td {
        padding: .55rem;
    }

    .reading-page .reading-shell, .reading-page #contenido > .container {
        width: calc(100% - 2.5rem);
    }

    .reading-page .reading-shell {
        padding: .5rem 0 2.5rem;
    }

    .reading-page .breadcrumbs {
        padding: 1rem 0 .5rem;
        font-size: .76rem;
    }

    .reading-page .article-heading {
        padding: .85rem 0 1.65rem;
        margin-bottom: 1.4rem;
    }

    .reading-page .article-heading h1 {
        font-size: 2.15rem;
        line-height: 1.1;
        letter-spacing: -.045rem;
    }

    .reading-page .article-lead {
        font-size: .96rem;
        line-height: 1.6;
    }

    .reading-page .editorial-date {
        font-size: .74rem;
    }

    .reading-page .reading-layout {
        grid-template-columns:1fr;
        gap: 1.6rem;
    }

    .reading-page .contents-nav {
        position: static;
        padding: 1.1rem;
    }

    .reading-page .contents-nav ol {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        row-gap: .8rem;
    }

    .reading-page .contents-nav li {
        font-size: .82rem;
    }

    .reading-page .article-content h2 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .reading-page .article-content p, .reading-page .article-content li, .reading-page .article-content dd {
        font-size: .94rem;
        line-height: 1.7;
    }

    .reading-page .article-content > section {
        margin-top: 1.65rem;
        padding-top: 1.65rem;
    }

    .reading-page .article-content .editorial-note p, .reading-page .source-list li, .reading-page .source-list p {
        font-size: .84rem;
    }

    .reading-page .article-content .button {
        font-size: .88rem;
        max-width: 100%;
    }

    .reading-page .article-content table {
        font-size: .84rem;
    }

    .reading-page .article-content th, .reading-page .article-content td {
        padding: .7rem .6rem;
    }

    .reading-page .article-content caption {
        font-size: .8rem;
    }

    .reading-page .article-content dl {
        grid-template-columns:1fr;
    }

    .reading-page .article-content dt {
        padding: .8rem .9rem .25rem;
        border-bottom: 0;
        font-size: .9rem;
    }

    .reading-page .article-content dd {
        padding: 0 .9rem .8rem;
    }

    .not-found-content {
        width: calc(100% - 2.5rem);
        padding: 3rem 0;
    }

    .not-found-content h1 {
        font-size: 2.15rem;
    }

    .not-found-content p {
        font-size: .94rem;
    }

    .not-found-content .button {
        font-size: .88rem;
    }

    .service-page--equipo .article-content > section:first-child,
    .service-page--contacto .article-content > section:first-child {
        padding: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .editorial-home .guide-card {
        transition: none;
    }
}
