/* ==========================================================================
   Box of Whisper — masthead, section bar, footer, category grid, article body
   Prefix: bow-   (boxofwhisper.com only)
   Loaded AFTER /assets/css/main.css. Every rule below is scoped at least two
   levels deep so it beats the Massively theme's id-descendant + bare-type
   rules on specificity, not on source order.
   ========================================================================== */

:root {
    --bow-ink:      #15131b;
    --bow-ink-2:    #1f1c29;
    --bow-ink-3:    #2b2738;
    --bow-brass:    #d8ad51;
    --bow-brass-hi: #f0cd83;
    --bow-ash:      #c3bdd0;
    --bow-ash-dim:  #9a93ab;
    --bow-paper:    #ffffff;
    --bow-body:     #26222f;
    --bow-muted:    #57506a;
    --bow-rule:     #e3e0e9;
}

/* Dead-JS ground: the theme paints #wrapper > .bg from JS. If that never
   runs, body colour is all there is — keep it in the brand's ink. */
body {
    background-color: var(--bow-ink);
}

/* The theme's own JS-injected burger + slide-out panel. We ship a CSS-only
   burger, so make sure the theme's never appears alongside it. */
#navPanelToggle,
#navPanel {
    display: none !important;
}

/* ==========================================================================
   1. MASTHEAD
   ========================================================================== */

.bow-head {
    position: relative;
    z-index: 3;
    margin: 2.5rem auto 0 auto;
    width: calc(100% - 4rem);
    max-width: 72rem;
    background-color: var(--bow-ink);
    background-image: linear-gradient(180deg, #211d2c 0%, var(--bow-ink) 100%);
    border-top: 3px solid var(--bow-brass);
    box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(0, 0, 0, .75);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
}

/* -- main bar: mark + wordmark left, burger right ------------------------ */

.bow-head .bow-head__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: 1.15rem 1.6rem;
}

/* Burger checkbox: hidden at EVERY width, still keyboard reachable.
   Beats the theme's `input[type="checkbox"]` (0,1,1) at (0,2,0). */
.bow-head .bow-cb {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    float: none !important;
    opacity: 0;
    z-index: 0;
    -webkit-appearance: none;
    appearance: none;
}

.bow-head .bow-head__logo {
    order: 1;
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-right: auto;
    border-bottom: 0;
    min-width: 0;
}

.bow-head .bow-head__logo:hover,
.bow-head .bow-head__logo:focus {
    border-bottom: 0;
    color: inherit !important;
}

.bow-head .bow-head__mark {
    display: block;
    flex: 0 0 auto;
    width: 3.1rem;
    height: 3.1rem;
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(216, 173, 81, .55);
}

.bow-head .bow-head__word {
    display: block;
    min-width: 0;
}

.bow-head .bow-head__name {
    display: block;
    color: var(--bow-paper);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.bow-head .bow-head__sub {
    display: block;
    margin-top: .2rem;
    color: var(--bow-brass);
    font-size: .58rem;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: .26em;
    text-transform: uppercase;
}

/* -- burger -------------------------------------------------------------- */

.bow-head .bow-burger {
    order: 2;
    display: none;
    position: relative;
    flex: 0 0 auto;
    width: 2.85rem;
    height: 2.4rem;
    padding: 0 !important;
    margin: 0;
    cursor: pointer;
    border: 1px solid rgba(216, 173, 81, .45);
    background: transparent;
    color: var(--bow-brass);
    font-size: 0;
    line-height: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* Several themes turn a checkbox-adjacent <label> into a fake tickbox via
   ::before / ::after. Massively does exactly that. Kill it on the burger,
   under every sibling shape the markup could ever take. */
.bow-head .bow-burger:before,
.bow-head .bow-burger:after,
.bow-head input[type="checkbox"] + label.bow-burger:before,
.bow-head input[type="checkbox"] + label.bow-burger:after,
.bow-head input + label.bow-burger:before,
.bow-head input + label.bow-burger:after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
}

.bow-head .bow-burger .bow-burger__b,
.bow-head .bow-burger .bow-burger__b:before,
.bow-head .bow-burger .bow-burger__b:after {
    position: absolute;
    left: 50%;
    width: 1.3rem;
    height: 2px;
    margin-left: -.65rem;
    background: currentColor;
    content: "";
}

.bow-head .bow-burger .bow-burger__b {
    top: 50%;
    margin-top: -1px;
}

.bow-head .bow-burger .bow-burger__b:before {
    top: -.42rem;
    margin-left: 0;
    left: 0;
}

.bow-head .bow-burger .bow-burger__b:after {
    top: .42rem;
    margin-left: 0;
    left: 0;
}

.bow-head .bow-cb:focus ~ .bow-burger {
    outline: 2px solid var(--bow-brass-hi);
    outline-offset: 2px;
}

/* -- section bar --------------------------------------------------------- */

.bow-head .bow-head__nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: .9rem 0 0 0;
    padding-top: .7rem;
    border-top: 1px solid rgba(216, 173, 81, .22);
}

.bow-head .bow-head__nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .1rem .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bow-head .bow-head__nav li {
    padding: 0;
}

.bow-head .bow-head__nav a {
    display: block;
    padding: .45rem .8rem;
    border-bottom: 0;
    color: var(--bow-ash);
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: .15em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease;
}

.bow-head .bow-head__nav a:hover,
.bow-head .bow-head__nav a:focus {
    color: var(--bow-ink) !important;
    background-color: var(--bow-brass);
    border-bottom: 0;
}

.bow-head .bow-head__nav .bow-is-here a {
    color: var(--bow-ink) !important;
    background-color: var(--bow-brass-hi);
}

/* Collapse to the burger. Toggle is `.bow-cb:checked ~ .bow-head__nav` —
   a general sibling selector, so the input stays FIRST in source order and
   only the visual order is flipped with flex `order`. */
@media screen and (max-width: 980px) {

    .bow-head .bow-burger {
        display: block;
    }

    .bow-head .bow-head__nav {
        display: none;
    }

    .bow-head .bow-cb:checked ~ .bow-head__nav {
        display: block;
    }

    .bow-head .bow-head__nav ul {
        display: block;
    }

    .bow-head .bow-head__nav li + li {
        border-top: 1px solid rgba(216, 173, 81, .16);
    }

    .bow-head .bow-head__nav a {
        padding: .6rem .2rem;
        white-space: normal;
    }

}

@media screen and (max-width: 736px) {

    .bow-head {
        margin-top: 1.25rem;
    }

    .bow-head .bow-head__bar {
        padding: .9rem 1rem;
    }

    .bow-head .bow-head__mark {
        width: 2.5rem;
        height: 2.5rem;
    }

    .bow-head .bow-head__name {
        font-size: 1.05rem;
    }

    .bow-head .bow-head__sub {
        letter-spacing: .18em;
    }

}

@media screen and (max-width: 480px) {

    .bow-head {
        width: 100%;
        margin-top: 0;
    }

}

/* ==========================================================================
   2. CATEGORY GRID
   ========================================================================== */

/* `#main > *` sets padding + border-top at (1,0,0). Beat it at (1,0,1). */
#main > .bow-cat {
    padding: 0;
    border-top: 0;
    margin: 0;
}

.bow-cat {
    background: var(--bow-paper);
}

.bow-cat .bow-cat__head {
    padding: 2.6rem 2.2rem 1.6rem 2.2rem;
    border-bottom: 2px solid var(--bow-rule);
}

.bow-cat .bow-cat__kicker {
    display: block;
    margin: 0 0 .5rem 0;
    color: #8a6a12;                 /* 4.9:1 on white */
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: .66rem;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-align: left;
}

.bow-cat .bow-cat__title {
    margin: 0 0 .6rem 0;
    color: var(--bow-ink);
    font-family: "Merriweather", Georgia, serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

/* Wrapping CSS grid — never floats, so an unusually tall card can never
   block a neighbour and punch a hole in the next row. */
.bow-cat .bow-cat__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--bow-rule);
    border-bottom: 2px solid var(--bow-rule);
}

.bow-cat .bow-cat__grid > li {
    padding: 0;
    min-width: 0;                   /* let long words shrink, not overflow */
}

.bow-cat .bow-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;               /* clip, so nothing prints out of the card */
    background: var(--bow-paper);
}

.bow-cat .bow-card__shot {
    display: block;
    position: relative;
    overflow: hidden;
    border-bottom: 0;
    background: #ece9f0;
}

.bow-cat .bow-card__shot:hover,
.bow-cat .bow-card__shot:focus {
    border-bottom: 0;
}

.bow-cat .bow-card__shot img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 10.5rem;
    object-fit: cover;              /* feed images arrive at any aspect ratio */
    object-position: center;
    transition: transform .25s ease;
}

.bow-cat .bow-card__shot:hover img {
    transform: scale(1.04);
}

.bow-cat .bow-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.15rem 1.25rem 1.35rem 1.25rem;
}

.bow-cat .bow-card__meta {
    display: block;
    margin: 0 0 .5rem 0;
    color: #8a6a12;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: .58rem;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: left;
}

.bow-cat .bow-card__title {
    margin: 0 0 .55rem 0;
    color: var(--bow-ink);
    font-family: "Merriweather", Georgia, serif;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    /* a 250-character headline stops at four lines instead of escaping */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bow-cat .bow-card__title a {
    border-bottom: 0;
    color: inherit;
}

.bow-cat .bow-card__title a:hover,
.bow-cat .bow-card__title a:focus {
    color: #7a5c0a !important;
    border-bottom: 0;
}

.bow-cat .bow-card__dek {
    margin: 0 0 1rem 0;
    color: var(--bow-muted);
    font-size: .76rem;
    line-height: 1.85;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.bow-cat .bow-card__more {
    margin-top: auto;
    align-self: flex-start;
    padding: .4rem .85rem;
    border: 1px solid var(--bow-ink);
    border-bottom: 1px solid var(--bow-ink);
    color: var(--bow-ink);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: .6rem;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: background-color .18s ease, color .18s ease;
}

.bow-cat .bow-card__more:hover,
.bow-cat .bow-card__more:focus {
    background: var(--bow-ink);
    color: var(--bow-paper) !important;
    border-color: var(--bow-ink);
}

@media screen and (max-width: 736px) {

    .bow-cat .bow-cat__head {
        padding: 1.8rem 1.35rem 1.2rem 1.35rem;
    }

    .bow-cat .bow-cat__title {
        font-size: 1.55rem;
    }

    .bow-cat .bow-cat__grid {
        grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    }

    .bow-cat .bow-card__shot img {
        height: 9.5rem;
    }

}

@media screen and (max-width: 480px) {

    .bow-cat .bow-cat__grid {
        grid-template-columns: 1fr;
    }

}

/* ==========================================================================
   3. HOME FEED — keep arbitrary feed images from stretching the page
   ========================================================================== */

#main > .posts > article .image img,
#main > .post .image img {
    max-width: 100%;
    height: auto;
}

#main > .posts > article .image.fit img {
    height: 14rem;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 736px) {
    #main > .posts > article .image.fit img {
        height: 11rem;
    }
}

/* Reserve matching text tracks so varied feed items keep photos and CTAs aligned. */
#main > .posts.bow-home {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    background: var(--bow-rule);
}

#main > .posts.bow-home > article {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 28px;
    border: 0;
    background: var(--bow-paper);
    text-align: left;
}

#main > .posts.bow-home > article header { margin: 0; }
#main > .posts.bow-home > article .date {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 20px;
}

#main > .posts.bow-home > article h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height: 96px;
    overflow: hidden;
    margin: 0;
    font-size: 24px;
    line-height: 32px;
}

#main > .posts.bow-home > article .image.fit {
    flex-shrink: 0;
    max-width: none;
    margin: 0;
}

#main > .posts.bow-home > article .image.fit img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

#main > .posts.bow-home > article p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height: 78px;
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    line-height: 26px;
}

#main > .posts.bow-home > article .actions {
    justify-content: flex-start;
    margin: auto 0 0;
}

#main > .posts.bow-home > article .button {
    height: 44px;
    line-height: 44px;
}

@media screen and (max-width: 736px) {
    #main > .posts.bow-home { grid-template-columns: minmax(0, 1fr); }
    #main > .posts.bow-home > article { padding: 24px; }
    #main > .posts.bow-home > article p { height: auto; }
    #main > .posts.bow-home > article h2 {
        height: auto;
        font-size: 20px;
        line-height: 28px;
    }
}

/* ==========================================================================
   4. ARTICLE BODY — arbitrary rich HTML out of the feed
   ========================================================================== */

#main > .bow-post {
    overflow-wrap: anywhere;
}

.bow-post .bow-post__kicker {
    display: block;
    margin: 0 0 .5rem 0;
    color: #8a6a12;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: .66rem;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.bow-post .bow-rich {
    color: var(--bow-body);         /* 13:1 on the white #main panel */
    font-size: .95rem;
    line-height: 2.05;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bow-post .bow-rich > :first-child {
    margin-top: 0;
}

.bow-post .bow-rich > :last-child {
    margin-bottom: 0;
}

.bow-post .bow-rich p {
    margin: 0 0 1.5rem 0;
    color: var(--bow-body);
    text-align: left;
}

.bow-post .bow-rich h1,
.bow-post .bow-rich h2,
.bow-post .bow-rich h3,
.bow-post .bow-rich h4,
.bow-post .bow-rich h5,
.bow-post .bow-rich h6 {
    color: var(--bow-ink);
    font-family: "Merriweather", Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    margin: 2.2rem 0 .9rem 0;
}

.bow-post .bow-rich h1 { font-size: 1.8rem; }
.bow-post .bow-rich h2 { font-size: 1.5rem; }
.bow-post .bow-rich h3 { font-size: 1.25rem; }
.bow-post .bow-rich h4 { font-size: 1.08rem; }
.bow-post .bow-rich h5,
.bow-post .bow-rich h6 {
    font-size: .95rem;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bow-post .bow-rich h2:before {
    content: "";
    display: block;
    width: 2.6rem;
    height: 3px;
    margin-bottom: .7rem;
    background: var(--bow-brass);
}

.bow-post .bow-rich a {
    color: #6b4bb0;
    border-bottom: 1px solid rgba(107, 75, 176, .45);
}

.bow-post .bow-rich a:hover,
.bow-post .bow-rich a:focus {
    color: #4a2f86 !important;
    border-bottom-color: #4a2f86;
}

.bow-post .bow-rich ul,
.bow-post .bow-rich ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.35rem;
    color: var(--bow-body);
}

.bow-post .bow-rich ul { list-style: disc; }
.bow-post .bow-rich ol { list-style: decimal; }

.bow-post .bow-rich li {
    margin: 0 0 .45rem 0;
    padding-left: .35rem;
    line-height: 1.95;
}

.bow-post .bow-rich li::marker {
    color: var(--bow-brass);
}

.bow-post .bow-rich blockquote {
    margin: 2rem 0;
    padding: .9rem 0 .9rem 1.6rem;
    border-left: 4px solid var(--bow-brass);
    color: var(--bow-ink);
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.85;
}

.bow-post .bow-rich blockquote p {
    text-align: left;
    color: inherit;
}

.bow-post .bow-rich img,
.bow-post .bow-rich video,
.bow-post .bow-rich svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6rem auto;
}

/* An iframe has no intrinsic ratio: height:auto squashed players to the
   150px default (a 600x338 JW player became 600x150). Video players get a
   16:9 box at full width; other embeds keep the height they were given. */
.bow-post .bow-rich iframe {
    display: block;
    max-width: 100%;
    margin: 1.6rem auto;
}

.bow-post .bow-rich iframe[src*="youtube"],
.bow-post .bow-rich iframe[src*="vimeo"],
.bow-post .bow-rich iframe[src*="jwplayer"],
.bow-post .bow-rich iframe[src*="jwplatform"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.bow-post .bow-rich figure {
    margin: 1.6rem 0;
    max-width: 100%;
}

.bow-post .bow-rich figcaption {
    margin-top: .5rem;
    color: var(--bow-muted);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: .7rem;
    line-height: 1.7;
    text-align: left;
}

.bow-post .bow-rich pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bow-post .bow-rich table {
    display: block;
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.bow-post .bow-rich td,
.bow-post .bow-rich th {
    min-width: 7em;
    overflow-wrap: normal;
    word-break: normal;
    padding: .5rem .75rem;
    border: 1px solid var(--bow-rule);
    text-align: left;
}

.bow-post .bow-rich hr {
    margin: 2.4rem 0;
    border: 0;
    border-bottom: 2px solid var(--bow-rule);
}

/* Tail block under the article body */
.bow-post .bow-post__tail {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 2px solid var(--bow-rule);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
}

.bow-post .bow-post__tailnote {
    margin: 0;
    max-width: 32rem;
    color: var(--bow-muted);
    font-size: .72rem;
    line-height: 1.85;
    text-align: left;
}

.bow-post .bow-post__back {
    flex: 0 0 auto;
    padding: .45rem .95rem;
    border: 1px solid var(--bow-ink);
    color: var(--bow-ink);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: .62rem;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.bow-post .bow-post__back:hover,
.bow-post .bow-post__back:focus {
    background: var(--bow-ink);
    color: var(--bow-paper) !important;
    border-color: var(--bow-ink);
}

/* ==========================================================================
   5. FOOTER  —  minimal centred: one link row, a hairline, a copyright line.
   Deliberately the quietest thing on the page; the photography carries it.
   Target: under 120px tall on desktop.
   ========================================================================== */

.bow-foot {
    position: relative;
    z-index: 3;
    margin: 0 auto 3.5rem auto;
    width: calc(100% - 4rem);
    max-width: 72rem;
    padding: 1rem 1.5rem 1.1rem 1.5rem;
    background-color: var(--bow-ink);
    border-top: 1px solid rgba(216, 173, 81, .45);
    color: var(--bow-ash);
    text-align: center;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
}

.bow-foot .bow-foot__nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .2rem 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bow-foot .bow-foot__nav li {
    padding: 0;
}

.bow-foot .bow-foot__nav a {
    display: block;
    border-bottom: 0;
    color: var(--bow-ash);          /* #c3bdd0 on #15131b ~ 11:1 */
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.7;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: color .18s ease;
}

.bow-foot .bow-foot__nav a:hover,
.bow-foot .bow-foot__nav a:focus {
    color: var(--bow-brass-hi) !important;
    border-bottom: 0;
}

.bow-foot .bow-foot__legal {
    margin: .75rem 0 0 0;
    padding-top: .75rem;
    border-top: 1px solid rgba(216, 173, 81, .22);
    color: var(--bow-ash-dim);      /* #9a93ab on #15131b ~ 6.7:1 */
    font-size: .62rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: .1em;
    text-align: center;
}

/* The theme scales the root to 16pt above 1680px. Trim the rhythm there so
   the footer keeps its sub-120px footprint on very large screens too. */
@media screen and (min-width: 1681px) {

    .bow-foot {
        padding: .75rem 1.5rem .8rem 1.5rem;
    }

    .bow-foot .bow-foot__legal {
        margin-top: .5rem;
        padding-top: .5rem;
    }

}

@media screen and (max-width: 736px) {

    .bow-foot {
        padding: 1rem 1.35rem 1.1rem 1.35rem;
    }

    .bow-foot .bow-foot__nav ul {
        gap: .2rem 1.1rem;
    }

}

@media screen and (max-width: 480px) {

    .bow-foot {
        width: 100%;
        margin-bottom: 2rem;
    }

}

/* ==========================================================================
   6. ODDS AND ENDS
   ========================================================================== */

/* Accessible name for the burger, never painted. */
.bow-head .bow-head__hid {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The theme yanks `.date` up by 2rem, which would land it on top of our
   kicker. Same specificity as the theme rule plus one class, so it wins
   outright rather than on source order. */
#main > .post.bow-post header.major > .date {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.bow-post .bow-post__kicker {
    margin: 0 0 .75rem 0;
}

#main > .post.bow-post header.major > h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Home feed: a 250-character headline with no spaces must not widen #main. */
#main > .posts > article h2,
#main > .posts > article p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

#main > .posts > article h2 {
    text-transform: none;
    letter-spacing: 0;
    font-family: "Merriweather", Georgia, serif;
    font-weight: 700;
    line-height: 1.35;
}

/* ==========================================================================
   REVIEW FIXES
   ========================================================================== */
/* Justified excerpts in a ~330px column opened rivers of space between words. */
#main > .posts > article p { text-align: left; }
/* On a phone the four footer links wrapped 3 + 1, leaving "Archive" alone on a line. A 2 x 2
   grid is deliberate and holds when Google Translate changes the label lengths. */
@media screen and (max-width: 480px) {
    .bow-foot .bow-foot__nav ul {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: .3rem 1.4rem;
    }
}

/* CRVS-LAYOUT.md whole rows on /category: auto-fill gave 4 columns on a wide window but 3 between
   ~900 and ~1200px, where 20 stories ended in a short row. Fixed counts 4 / 2 / 1 divide 20. */
.bow-cat .bow-cat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .bow-cat .bow-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .bow-cat .bow-cat__grid { grid-template-columns: minmax(0, 1fr); } }

/* The article follows an advertising section; it does not need a second page divider. */
#main > .post.bow-post { border-top: 0; }

/* Keep the floating language control readable over both paper and the footer. */
#translate-wrapper { max-width: calc(100vw - 40px); }
#translate-wrapper:has(select) { padding: 5px 8px; background: #191623; }
#translate-wrapper select { max-width: 100%; color: #f6f3eb; }
@media (max-width: 736px) {
    .bow-foot { padding-bottom: 84px; }
}
