/* Sólo se carga en las guías editoriales del IMSS. */
.guia-editorial > h1,
.guia-editorial > h2 {
    text-wrap: balance;
    scroll-margin-top: 5rem;
}
.guia-editorial > h1 + p {
    font-size: 1.12rem;
    line-height: 1.55;
}
.guia-editorial a {
    text-decoration: underline;
    text-underline-offset: .15em;
    overflow-wrap: anywhere;
    transition: color .15s ease;
}
.guia-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1rem 0 .6rem;
}
.guia-editorial .guia-action {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    min-height: 48px;
    padding: .5rem 1rem;
    border-radius: .45rem;
    background: #15563e;
    color: #fff;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;
}
.guia-editorial .guia-action:hover,
.guia-editorial .guia-action:focus-visible {
    background: #0d402d;
    color: #fff;
    text-decoration: underline;
}
.guia-action small {
    font-size: .84rem;
    font-weight: 400;
}
.guia-editorial .guia-credito {
    color: #46505b;
    font-size: .92rem;
}
.guia-editorial a:focus-visible,
.guia-saltar:focus-visible {
    outline: 3px solid #124c81;
    outline-offset: 3px;
}
.guia-saltar {
    position: fixed;
    inset: .35rem auto auto .35rem;
    z-index: 1100;
    transform: translateY(-180%);
    padding: .5rem 1rem;
    background: white;
}
.guia-saltar:focus {
    transform: none;
}
@media (max-width: 36rem) {
    .guia-editorial .guia-action { width: 100%; }
    .guia-editorial th, .guia-editorial td { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .guia-editorial a { transition: none; }
}
