/* The shared navigation (3.8.3): live small-caps labels on rain-glass beads.
   ONE blank plate (rain-glass-blank.webp) is drawn behind every label as a nine-slice border image, so its rim and
   beads keep their proportions at any width. The lettering is HTML: it cannot squash, a screen reader reads it,
   and its contrast is measured. The strip no longer wears the old in-masthead class (dpp35-subscriber-module),
   whose translate(7px, 42px) in dpp35.css pushed the strip 7 px past the page on every room. */
.dpp-global-rain-nav.dpp-rain-nav {
    /* the role is taken where the strip stands, so the American edition's small caps apply inside it */
    --type-nav: var(--type-smallcaps);
    --nav-ink: #f3ecda;
    --nav-glass: var(--dpp-page-surround, #1d1d1d);
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 7px 0 10px;
    border: 0;
    /* the strip is the same dark as its beads, so no bead shows as a box (and the glass, which is blended
       lighter-of-two, always has this ground beneath it) */
    background: var(--nav-glass);
}

/* Still rain behind the beads (drawn once by dpp-rain-navigation.js; nothing moves). */
.dpp-global-rain-nav .dpp-rain-nav-weather {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.dpp-rain-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(4px, .7vw, 9px);
    box-sizing: border-box;
    width: var(--sheet-column, min(100% - 20px, 1180px));
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.dpp-rain-nav-list li {
    display: flex;
    flex: 1 1 0;
    min-width: 6.1rem;
    margin: 0;
    padding: 0;
}

.dpp-rain-nav-list a {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 48px;
    padding: 11px 14px;
    background-color: var(--nav-glass);
    color: var(--nav-ink);
    font: 400 clamp(.72rem, .58rem + .4vw, .94rem)/1.12 var(--type-nav);
    letter-spacing: .05em;
    text-align: center;
    text-decoration: none;
    text-wrap: balance;
}

/* The glass: rim and beads only. The photograph's dark ground round the plate is dropped by the lighten blend,
   so no box shows; the plate is set a little outside the link so that its rim meets the link's own edge. */
.dpp-rain-nav-list a::before {
    content: "";
    position: absolute;
    inset: -5px -3px -8px;
    box-sizing: border-box;
    border: solid transparent;
    border-width: 17px 23px 18px;
    /* the plate is 600 x 338 (halved in 3.8.3 with these slices: it was 1200 x 676, sliced 150 200 160) */
    border-image: url("../images/dpp35/rain-beads/rain-glass-blank.webp") 75 100 80 fill / 17px 23px 18px / 0 round stretch;
    filter: brightness(1.05) contrast(1.6);
    mix-blend-mode: lighten;
    pointer-events: none;
}

.dpp-rain-nav-list a:hover,
.dpp-rain-nav-list a:focus-visible { color: #fff; }
.dpp-rain-nav-list a:hover::before,
.dpp-rain-nav-list a:focus-visible::before { filter: brightness(1.3) contrast(1.6); }
.dpp-rain-nav-list a:focus-visible { outline: 2px solid #f6e3a6; outline-offset: 2px; }
/* where the reader stands: gilt lettering and a gilt line under the bead (never colour alone) */
.dpp-rain-nav-list a[aria-current="page"] {
    color: #f6e3a6;
    box-shadow: inset 0 -2px #f6e3a6;
}

/* The New York cousin's strip: its small-caps role has no small capitals of its own, so the labels are set in caps. */
.dpp-edition-american .dpp-rain-nav-list a,
.dpp-rain-nav.dpp-edition-american .dpp-rain-nav-list a {
    font-size: clamp(.6rem, .48rem + .22vw, .66rem);
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* The hover lift (L.D., 3.8.3.1 edit 10, 11 Nov 2026): R19's picture-button lift restored for the live lettering -
   rise 3 px, grow 3.5%, brighten (R19: translateY(-3px) scale(1.035) brightness(1.13)). Mouse only; still under
   reduced motion. Folded in 3.8.5: this replaces the old colour-only link transition. */
.dpp-rain-nav-list a { transition: transform .18s ease, filter .18s ease, color .18s ease; }
@media (prefers-reduced-motion: no-preference) {
    .dpp-rain-nav-list a::before { transition: filter 150ms ease-out; }
}
@media (hover: hover) and (pointer: fine) {
    .dpp-rain-nav-list a:hover { transform: translateY(-3px) scale(1.035); filter: brightness(1.13); }
}
.dpp-rain-nav-list a:focus-visible { transform: translateY(-3px) scale(1.035); }
@media (prefers-reduced-motion: reduce) {
    .dpp-rain-nav-list a { transition: none; }
    .dpp-rain-nav-list a:is(:hover, :focus-visible) { transform: none; }
}
