/* 3.8.3: the old text navigation (.dpp-site-navigation, no template uses it) is gone from this file;
   the shared navigation is set in dpp-shared-rain-nav.css. */
.dpp-publication-directory { scroll-margin-top: .6rem; }
.dpp-publication-directory > p { text-align: center; }
.dpp-directory-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin-block: 1rem; }
.dpp-directory-columns h3 { border-bottom: 2px solid var(--rule); padding-bottom: .35rem; font:700 1.05rem/1.2 var(--type-body); }
.dpp-directory-columns ul { margin: .4rem 0 0; padding-inline-start: 1rem; }
.dpp-directory-columns a { display: inline-block; padding-block: .21rem; text-decoration: underline; text-underline-offset: .15em; }
.dpp-directory-feed { border-top: 3px double var(--rule); padding-block: .65rem .2rem; }

/* Printed folios use the dark part of their original masthead. Text stays on top. */
.dpp-broadsheet .folio.dpp-folio-printed {
    position: relative;
    isolation: isolate;
    color: #efd5a0;
    background: #140c09;
    border-color: #ad8b50;
    padding-inline: .5rem;
}
.dpp-broadsheet .folio.dpp-rail-folio { background: #0d0d0b; }
.dpp-folio-ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Koenig content fits the writable measure. Wide data scrolls within the article. */
:is(.dpp-whole-sheet-copy, .dpp-room-story, .post-content) :is(iframe, video, embed, object) {
    max-inline-size: 100%;
}
:is(.dpp-whole-sheet-copy, .dpp-room-story, .post-content) video {
    block-size: auto;
}
:is(.dpp-whole-sheet-copy, .dpp-room-story, .post-content) :is(pre, table) {
    max-inline-size: 100%;
    overflow-x: auto;
}
:is(.dpp-whole-sheet-copy, .dpp-room-story, .post-content) table {
    display: block;
}
:is(.dpp-whole-sheet-copy, .dpp-room-story, .post-content) :is(a, figcaption, .kg-callout-text, .kg-file-card-title, .kg-product-card-title) {
    overflow-wrap: anywhere;
}
:is(.dpp-whole-sheet-copy, .dpp-room-story, .post-content) :is(.kg-callout-card, .kg-file-card, .kg-product-card) {
    max-inline-size: 100%;
    min-inline-size: 0;
}
:is(.dpp-whole-sheet-copy, .dpp-room-story, .post-content) :is(.kg-file-card-container, .kg-file-card-contents, .kg-callout-text) {
    min-inline-size: 0;
}

/* Membership text on the light Railway and register stock uses dark ink. */
.dpp-room-paper:is(.dpp-room-railway, .dpp-archive) .dpp35-salon-gate :is(.dpp35-salon-gate-title, .dpp35-salon-gate-lede, .dpp35-salon-gate-tag) {
    color: #28190f;
}
.dpp-room-paper:is(.dpp-room-railway, .dpp-archive) .dpp35-salon-gate .dpp35-salon-gate-btn {
    background: #28190f;
    color: #f7e1b5;
    border-color: #78592f;
}
.dpp-room-paper:is(.dpp-room-railway, .dpp-archive) .dpp35-salon-gate .dpp35-salon-gate-btn-alt {
    background: transparent;
    color: #28190f;
}
.dpp-room-paper:is(.dpp-room-railway, .dpp-archive) .dpp35-salon-gate a:focus-visible {
    outline: 2px solid #28190f;
    outline-offset: 3px;
}

/* 3.8.3: every membership button is a 44 px target, in every room. */
.dpp35-salon-gate .dpp35-salon-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
}
