/* Cargada únicamente por las páginas del directorio institucional. */
.dir-guide {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    color: var(--ink-700, #263544);
    line-height: 1.6;
}
.dir-guide :is(h1, h2, h3) {
    text-wrap: balance;
    scroll-margin-top: 6.5rem;
    color: var(--ink-900, #172232);
}
.dir-guide h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.dir-guide h2 {
    margin: 2rem 0 .75rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--line, #ddd);
    font-size: clamp(1.3rem, 3vw, 1.55rem);
}
.dir-guide h3 { margin: 1.3rem 0 .45rem; font-size: 1.16rem; }
.dir-breadcrumbs { margin-bottom: 1rem; font-size: .9rem; }
.dir-summary { margin: .65rem 0 1rem; font-size: 1.12rem; }
.dir-guide a {
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: .16em;
    transition: color .15s ease;
}
.dir-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 .65rem; }
.dir-guide .dir-action {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: .45rem .9rem;
    border-radius: .45rem;
    background-color: #205568;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.35;
}
.dir-guide .dir-action:is(:hover, :focus-visible) {
    background-color: #143d4d;
    color: #fff;
    text-decoration: underline;
}
.dir-action small { font-weight: 400; font-size: .86rem; }
.dir-credit { color: #46505b; font-size: .92rem; margin: 0 0 .85rem; }
.dir-topics ul {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dir-topics a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .35rem .65rem;
    border: 1px solid #d8e2e7;
    border-radius: .4rem;
    background: #f5f8fa;
    line-height: 1.35;
}
.dir-topics a:hover { background: #e8f0f4; }
.dir-guide a:focus-visible,
.dir-skip:focus-visible {
    outline: 3px solid #124c81;
    outline-offset: 3px;
}
.dir-skip {
    position: fixed;
    inset: .35rem auto auto .35rem;
    z-index: 1100;
    transform: translateY(-180%);
    padding: .5rem 1rem;
    background: #fff;
}
.dir-skip:focus { transform: none; }
.dir-guide .dir-note {
    margin: 1rem 0;
    padding: .75rem 1rem;
    border-inline-start: 4px solid #205568;
    background: #f5f8fa;
}
.dir-guide .table { margin: .85rem 0 1.2rem; font-variant-numeric: tabular-nums; }
.dir-guide :is(th, td) { overflow-wrap: anywhere; }
.dir-archive summary {
    min-height: 44px;
    padding: .55rem .7rem;
    background: #f5f8fa;
    font-weight: 700;
    cursor: pointer;
}
.dir-archive summary:hover { background: #e8f0f4; }
.dir-archive summary:focus-visible { outline: 3px solid #124c81; outline-offset: 3px; }
.dir-ad { margin-top: 1.5rem; }
@media (max-width: 36rem) {
    .dir-guide { padding-top: 1.05rem; }
    .dir-summary { margin: .45rem 0 .8rem; line-height: 1.48; }
    .dir-guide .dir-action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dir-guide a { transition: none; }
}
