/*
 * Divine Worship Review Africa - editorial design layer for the Varient "magazine" theme.
 *
 * Visual language taken from the printed newsletter (2026, Volume 1 No. 1):
 * slate green #496558, pale sage #d6e6d0, charcoal green #2a3930, ochre gold #ddad67, warm white paper,
 * the "NEWSLETTER" geometric wordmark over the publication name in serif capitals, the segmented issue strip,
 * white serif capitals on green bands, oval author portraits, and the green bar that closes each article.
 *
 * Loaded after style-3.1.min.css and the admin-generated font/colour config, so it takes precedence.
 *
 * Contents: Tokens / Base / Shared components / Top bar / Masthead / Navigation / Mobile header /
 * Section headings / Post cards / Current issue / Contents / Latest / About & masthead / Newsletter /
 * Archive / Article / Author / Static pages / Contact / Profile / Sidebar / Footer / Reveal / Responsive / Print
 */

/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/
:root {
    --dwr-green: #496558;
    --dwr-green-dark: #3b5448;
    --dwr-green-deep: #2a3930;
    --dwr-green-ink: #213029;
    --dwr-sage: #d6e6d0;
    --dwr-sage-soft: #eaf2e6;
    --dwr-sage-mid: #8aa094;
    --dwr-olive: #8c9c78;
    --dwr-gold: #ddad67;
    --dwr-gold-soft: #efd3a6;
    --dwr-gold-text: #8a6429;
    --dwr-gold-ink: #4a3f31;
    --dwr-ink: #2c2e35;
    --dwr-ink-soft: #4a4d55;
    --dwr-muted: #6b706a;
    --dwr-paper: #fbfaf6;
    --dwr-ivory: #f4f0e6;
    --dwr-surface: #ffffff;
    --dwr-rule: #dde3d7;
    --dwr-on-green: #ffffff;
    --dwr-on-green-soft: #d9e6d3;
    /* Pale sage used on green panels; unlike --dwr-sage it stays light in dark mode */
    --dwr-sage-light: #d6e6d0;

    --dwr-font-display: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --dwr-font-text: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --dwr-font-ui: 'Jost', 'Century Gothic', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --dwr-measure: 41rem;
    --dwr-radius: 2px;

    /* Fonts: Varient's --vr-font-* come from Admin › Font Settings and are not overridden here
       (dwr-premium.css maps the DWR font variables onto them) */
    --vr-theme-color: var(--dwr-green);
    --vr-block-color: var(--dwr-green-deep);
    --vr-mega-menu-color: var(--dwr-green);
    --vr-text-main: var(--dwr-ink);
    --vr-text-muted: var(--dwr-muted);
    --vr-body-bg: var(--dwr-paper);
    --vr-footer-bg: var(--dwr-green-deep);
    --vr-subscribe-button-color: var(--dwr-green);
    --vr-fs-content: 1.1875rem;
    --vr-lh-content: 1.75;
}

html[data-bs-theme="dark"] {
    --dwr-green: #7fa08f;
    --dwr-green-dark: #9dbcab;
    --dwr-green-deep: #1b2520;
    --dwr-green-ink: #141c18;
    --dwr-sage: #2f3d35;
    --dwr-sage-soft: #1f2924;
    --dwr-sage-mid: #6f8a7b;
    --dwr-gold: #d9ae6e;
    --dwr-gold-text: #e2bd83;
    --dwr-ink: #e9ebe4;
    --dwr-ink-soft: #c9cdc4;
    --dwr-muted: #9ba396;
    --dwr-paper: #141a17;
    --dwr-ivory: #19211d;
    --dwr-surface: #1b231f;
    --dwr-rule: #2e3a33;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html[data-theme] body {
    background-color: var(--dwr-paper);
    color: var(--dwr-ink);
    font-family: var(--dwr-font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html[data-theme] h1, html[data-theme] h2, html[data-theme] h3,
html[data-theme] h4, html[data-theme] h5, html[data-theme] h6 {
    font-family: var(--dwr-font-display);
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--dwr-ink);
}

/* French and Portuguese run longer: allow hyphenation in narrow columns */
html[lang="fr"] :is(h1, h2, h3, .dwr-toc-title, .dwr-lead-title),
html[lang="pt"] :is(h1, h2, h3, .dwr-toc-title, .dwr-lead-title) {
    -webkit-hyphens: auto;
    hyphens: auto;
}

html[data-theme] a {
    color: inherit;
}

html[data-theme] :is(a, button, input, textarea, select, summary):focus-visible {
    outline: 2px solid var(--dwr-gold) !important;
    outline-offset: 2px;
}

::selection {
    background: var(--dwr-sage);
    color: #1f2622;
}

.dwr-skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    background: var(--dwr-green-deep);
    color: #fff !important;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

html[data-theme] .breadcrumb {
    font-family: var(--dwr-font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

html[data-theme] .breadcrumb a:hover {
    color: var(--dwr-green);
}

html[data-theme] :is(.form-control, .form-input, .form-select) {
    border-radius: var(--dwr-radius);
    border-color: #cfd6c9;
    background-color: var(--dwr-surface);
    color: var(--dwr-ink);
}

html[data-theme] :is(.form-control, .form-input):focus {
    border-color: var(--dwr-green);
    box-shadow: 0 0 0 3px rgba(73, 101, 88, 0.15);
}

/*--------------------------------------------------------------
# Shared components
--------------------------------------------------------------*/
.dwr-kicker {
    display: inline-block;
    font-family: var(--dwr-font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--dwr-green) !important;
    margin-bottom: 0.45rem;
}

a.dwr-kicker:hover {
    color: var(--dwr-green-deep) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dwr-kicker-gold {
    color: var(--dwr-gold-text) !important;
}

.dwr-kicker-muted {
    color: var(--dwr-muted) !important;
}

.dwr-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.1rem;
    margin: 0 0 0.35rem;
}

.dwr-kicker-row .dwr-kicker {
    margin: 0;
}

.dwr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.8rem 1.35rem;
    border-radius: var(--dwr-radius);
    border: 1px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
}

.dwr-btn-green,
html[data-theme] .btn-custom {
    background-color: var(--dwr-green) !important;
    border-color: var(--dwr-green) !important;
    color: #fff !important;
    border-radius: var(--dwr-radius);
    text-shadow: none !important;
}

.dwr-btn-green:hover,
html[data-theme] .btn-custom:hover {
    background-color: var(--dwr-green-deep) !important;
    border-color: var(--dwr-green-deep) !important;
}

.dwr-btn-gold {
    background-color: var(--dwr-gold) !important;
    border-color: var(--dwr-gold) !important;
    color: var(--dwr-gold-ink) !important;
}

.dwr-btn-gold:hover {
    background-color: var(--dwr-gold-soft) !important;
    border-color: var(--dwr-gold-soft) !important;
}

.dwr-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dwr-green) !important;
    white-space: nowrap;
}

.dwr-link-arrow::after {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: currentColor;
    transition: width .25s ease;
}

.dwr-link-arrow:hover::after {
    width: 2.4rem;
}

/* White serif capitals on a green band, as in the newsletter's "ABOUT THE NEWSLETTER" */
.dwr-band-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem 1.25rem;
    background: var(--dwr-green);
    color: var(--dwr-on-green);
    padding: 0.7rem 1.25rem 0.6rem;
    margin-bottom: 2rem;
    text-align: center;
}

.dwr-band-heading h1,
.dwr-band-heading h2 {
    margin: 0;
    color: #fff !important;
    font-family: var(--dwr-font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dwr-band-meta {
    margin: 0;
    font-family: var(--dwr-font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dwr-on-green-soft);
}

.dwr-band-heading-start {
    justify-content: flex-start;
    text-align: left;
}

/* Segmented issue strip: Trilingual | Year | Volume No. */
.dwr-issue-strip {
    display: flex;
    align-items: stretch;
    font-family: var(--dwr-font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.dwr-issue-strip > :is(span, a) {
    display: flex;
    align-items: center;
    padding: 0.32rem 0.9rem;
    white-space: nowrap;
}

.dwr-strip-lang {
    flex: 1 1 auto;
    justify-content: flex-end;
    background: var(--dwr-sage);
    color: var(--dwr-green-deep);
}

.dwr-strip-year {
    flex: 0 0 auto;
    min-width: 7.5rem;
    justify-content: center;
    background: var(--dwr-green);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.dwr-strip-issue {
    flex: 0 0 auto;
    min-width: 9rem;
    justify-content: center;
    background: var(--dwr-green-deep);
    color: #fff;
    font-weight: 600;
}

.dwr-issue-strip-compact {
    font-size: 0.72rem;
}

.dwr-issue-strip-compact > :is(span, a) {
    padding: 0.22rem 0.75rem;
}

.dwr-issue-strip-compact .dwr-strip-lang {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 6.5rem;
}

.dwr-issue-strip-compact .dwr-strip-year,
.dwr-issue-strip-compact .dwr-strip-issue {
    min-width: 0;
}

/* Oval portrait frame, as on the newsletter cover */
.dwr-oval-portrait {
    border-radius: 50% / 50%;
    object-fit: cover;
    background: var(--dwr-sage);
    box-shadow: 0 0 0 3px var(--dwr-sage), 0 0 0 4px var(--dwr-green);
}

/* Stacked wordmark: NEWSLETTER / DIVINE WORSHIP REVIEW AFRICA */
.dwr-wordmark-newsletter {
    display: block;
    font-family: var(--dwr-font-ui);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--dwr-green);
}

.dwr-wordmark-name {
    display: block;
    font-family: var(--dwr-font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    color: var(--dwr-ink);
}

/* Honeypot fields must stay invisible */
.dwr-hp,
.dwr-newsletter input[name='url'] {
    display: none !important;
}

/* Category pills become quiet editorial labels (overrides the inline per-category colour) */
html[data-theme] .badge-category {
    background: none !important;
    color: var(--dwr-green) !important;
    font-family: var(--dwr-font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
}

html[data-theme] .post-item .category-link {
    position: static;
    display: inline-block;
    margin-bottom: 0.45rem;
}

html[data-theme] .post-item .category-link .badge-category {
    position: static;
}

html[data-theme] :is(.post-item-vr, .fs-card) .badge-category {
    color: var(--dwr-sage-light) !important;
}

.dwr-badge-preview {
    background-color: var(--dwr-gold);
    color: var(--dwr-gold-ink);
    font-family: var(--dwr-font-ui);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--dwr-radius);
}

.dwr-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--dwr-sage-soft);
    border-top: 3px solid var(--dwr-green);
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--dwr-ink-soft);
}

.dwr-empty-state p {
    margin: 0;
}

/*--------------------------------------------------------------
# Top bar (account, language, dark mode)
--------------------------------------------------------------*/
html[data-theme] .topbar {
    background-color: var(--dwr-green-deep);
    border-bottom: 0;
    font-family: var(--dwr-font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

html[data-theme] .topbar :is(a, button, .nav-link) {
    color: var(--dwr-on-green-soft);
}

html[data-theme] .topbar :is(a, button):hover {
    color: #fff;
}

html[data-theme] .topbar .dropdown-menu a {
    color: var(--dwr-ink);
}

/*--------------------------------------------------------------
# Masthead (desktop): emblem + NEWSLETTER + name, issue strip beneath
--------------------------------------------------------------*/
.dwr-masthead {
    background: var(--dwr-paper);
    padding: 2rem 0 0;
}

.dwr-masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.dwr-masthead-home {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    text-decoration: none;
}

.dwr-masthead-emblem {
    width: 132px;
    height: auto;
    flex-shrink: 0;
}

.dwr-masthead-logo {
    max-height: 110px;
    width: auto;
}

.dwr-masthead .js-logo-dark {
    display: none;
}

html[data-bs-theme="dark"] .dwr-masthead .js-logo-light {
    display: none;
}

html[data-bs-theme="dark"] .dwr-masthead .js-logo-dark {
    display: inline-block;
}

.dwr-masthead-titles {
    display: block;
    min-width: 0;
}

.dwr-masthead .dwr-wordmark-newsletter {
    font-size: clamp(3.4rem, 6.4vw, 5.4rem);
}

.dwr-masthead .dwr-wordmark-name {
    font-size: clamp(1.05rem, 1.9vw, 1.55rem);
    margin-top: 0.4rem;
}

.dwr-masthead-aside {
    flex-shrink: 0;
    max-width: 17rem;
    text-align: right;
}

.dwr-masthead-tagline {
    margin: 0 0 0.35rem;
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--dwr-green-dark);
}

.dwr-masthead-date {
    margin: 0 0 0.9rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dwr-muted);
}

.dwr-masthead .dwr-issue-strip {
    margin-top: 1.25rem;
}

/*--------------------------------------------------------------
# Main navigation (desktop)
--------------------------------------------------------------*/
html[data-theme] .mega-menu-wrapper {
    background-color: var(--dwr-paper);
    border-top: 0;
    border-bottom: 3px solid var(--dwr-green);
    box-shadow: none;
}

@media (min-width: 992px) {
    /* The masthead carries the identity on desktop */
    html[data-theme] .mega-menu-wrapper .navbar-brand {
        display: none;
    }

    html[data-theme] .mega-menu-wrapper .navbar-nav {
        margin-left: -0.6rem !important;
    }
}

html[data-theme] .mega-menu-wrapper .navbar-nav .nav-link {
    font-family: var(--dwr-font-ui);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dwr-ink);
}

html[data-theme] .mega-menu-wrapper .navbar-nav :is(.nav-item.active .nav-link, .nav-link:hover, .nav-item.dropdown:hover .nav-link) {
    color: var(--dwr-green);
    background: none;
}

html[data-theme] .mega-menu-wrapper .navbar-nav .nav-item.active .nav-link {
    box-shadow: inset 0 -3px 0 var(--dwr-gold);
}

html[data-theme] .mega-menu-wrapper .search-icon-btn {
    color: var(--dwr-ink);
}

html[data-theme] .mega-menu-wrapper :is(.megamenu, .dropdown-menu) {
    border-radius: 0;
    border: 1px solid var(--dwr-rule) !important;
    border-top: 3px solid var(--dwr-green) !important;
    background-color: var(--dwr-surface);
    box-shadow: 0 12px 24px -12px rgba(33, 48, 41, 0.25) !important;
}

html[data-theme] .header-search-dropdown {
    border-top: 3px solid var(--dwr-green);
    border-radius: 0;
}

html[data-theme] .btn-nav-subscribe {
    background-color: var(--dwr-green) !important;
    border-radius: var(--dwr-radius);
    font-family: var(--dwr-font-ui);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/*--------------------------------------------------------------
# Mobile header + compact masthead
--------------------------------------------------------------*/
html[data-theme] .mobile-header {
    background-color: var(--dwr-paper);
    border-bottom: 1px solid var(--dwr-rule);
    box-shadow: none !important;
}

html[data-theme] .mobile-header .header-btn {
    color: var(--dwr-ink);
}

/* Newsletter emblem in place of the default logo in Varient's mobile header and menu */
.dwr-brand-emblem .mobile-header .header-logo img,
.dwr-brand-emblem .offcanvas-logo img {
    display: none !important;
}

.dwr-brand-emblem .mobile-header .header-logo,
.dwr-brand-emblem .offcanvas-logo {
    display: block;
    width: 56px;
    height: 46px;
    background: url('../img/dwr-emblem-sm.png') center / contain no-repeat;
}

.dwr-masthead-mobile {
    background: var(--dwr-paper);
    text-align: center;
    padding-top: 0.9rem;
}

.dwr-mm-home {
    display: inline-block;
}

.dwr-masthead-mobile .dwr-wordmark-newsletter {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
}

.dwr-masthead-mobile .dwr-wordmark-name {
    font-size: clamp(0.72rem, 3.4vw, 0.95rem);
    margin-top: 0.3rem;
}

.dwr-masthead-mobile .dwr-masthead-tagline {
    margin: 0.55rem 0 0.8rem;
    font-size: 1rem;
    text-align: center;
}

.dwr-issue-strip-mobile {
    justify-content: center;
}

/* Inner pages: the header already shows the emblem, so the compact masthead keeps only the issue strip */
body:not(.body-index-page) .dwr-masthead-mobile {
    padding-top: 0;
}

body:not(.body-index-page) .dwr-masthead-mobile .container-xl {
    display: none;
}

.dwr-issue-strip-mobile > :is(span, a) {
    flex: 1 1 50%;
    justify-content: center;
    min-width: 0;
}

html[data-theme] .offcanvas {
    background-color: var(--dwr-paper);
}

html[data-theme] .offcanvas :is(.nav-link, a) {
    font-family: var(--dwr-font-ui);
}

/*--------------------------------------------------------------
# Section headings (Varient category blocks, latest posts, related)
--------------------------------------------------------------*/
html[data-theme] .section .section-title {
    border-bottom: 2px solid var(--dwr-green);
    border-top: 0;
    padding: 0 0 0.55rem;
    margin-bottom: 1.75rem;
}

html[data-theme] .section .section-title:after {
    display: none;
}

html[data-theme] .section .section-title .title {
    font-family: var(--dwr-font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--dwr-green-dark);
    margin-bottom: 0;
}

html[data-theme] .section .section-title :is(.view-all, .nav-link) {
    font-family: var(--dwr-font-ui);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dwr-green);
}

html[data-theme] .section .section-title .nav-link.active {
    color: var(--dwr-ink);
    background: none;
}

/*--------------------------------------------------------------
# Post cards (homepage blocks, related posts, AJAX load-more)
--------------------------------------------------------------*/
html[data-theme] :is(.post-item, .post-item-small, .post-item-mid) .title {
    font-family: var(--dwr-font-display);
    font-weight: 600;
    line-height: 1.25;
}

html[data-theme] .post-item .title {
    font-size: 1.3rem;
}

html[data-theme] .post-item-mid .title {
    font-size: 1.12rem;
}

html[data-theme] .post-item-small .title {
    font-size: 1.02rem;
    line-height: 1.3;
}

html[data-theme] :is(.post-item, .post-item-small, .post-item-mid) .title a:hover {
    color: var(--dwr-green);
}

html[data-theme] .post-item .description {
    font-family: var(--dwr-font-text);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--dwr-ink-soft);
}

html[data-theme] :is(.post-item .image, .post-item .image img, .post-item-mid .image img, .post-item-small .image, .post-item-small img, .post-item-vr, .post-item-vr .image, .post-item-vr img) {
    border-radius: 0 !important;
}

html[data-theme] .post-item .image img,
html[data-theme] .post-item-mid .image img {
    transition: transform .6s ease;
}

html[data-theme] .post-item:hover .image img,
html[data-theme] .post-item-mid:hover .image img {
    transform: scale(1.02);
}

html[data-theme] :is(.post-meta, .post-meta a) {
    font-family: var(--dwr-font-ui);
    font-size: 0.78rem;
    color: var(--dwr-muted);
    letter-spacing: 0.01em;
}

html[data-theme] .post-meta .a-username {
    font-weight: 600;
    color: var(--dwr-ink-soft);
}

html[data-theme] .post-meta .a-username:hover {
    color: var(--dwr-green);
}

/* Category block 1: feature + headline list */
.dwr-feature-image {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--dwr-sage-soft);
}

.dwr-feature-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.dwr-feature-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0 0 0.6rem;
}

.dwr-feature-title a:hover,
.dwr-headline-title a:hover {
    color: var(--dwr-green);
}

.dwr-feature-summary,
.dwr-headline-summary {
    font-family: var(--dwr-font-text);
    color: var(--dwr-ink-soft);
    line-height: 1.6;
}

.dwr-feature-summary {
    font-size: 1.02rem;
    margin-bottom: 0.6rem;
}

.dwr-headline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dwr-headline-list li {
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--dwr-rule);
}

.dwr-headline-list li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.dwr-headline-title {
    font-size: 1.2rem;
    line-height: 1.28;
    margin: 0 0 0.35rem;
}

.dwr-headline-summary {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.dwr-block-small {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dwr-rule);
}

/*--------------------------------------------------------------
# Current issue: lead article + issue panel
--------------------------------------------------------------*/
.dwr-issue {
    padding-top: 2.5rem;
}

.dwr-issue-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 2.75rem;
    align-items: start;
}

.dwr-lead-image {
    display: block;
    position: relative;
    margin: 0 0 1.5rem 1.25rem;
}

/* Sage band behind the photograph, after the cover's sage column */
.dwr-lead-image::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 1.25rem;
    bottom: -1.25rem;
    width: 45%;
    background: var(--dwr-sage);
    z-index: 0;
}

.dwr-lead-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--dwr-sage-soft);
}

.dwr-lead-image .media-badges,
.dwr-lead-image > :not(img) {
    z-index: 2;
}

.dwr-lead-body {
    padding-top: 0.75rem;
}

.dwr-lead-title {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.1;
    font-weight: 600;
    margin: 0.15rem 0 0.9rem;
    color: var(--dwr-green-dark) !important;
}

.dwr-lead-title a:hover {
    color: var(--dwr-green-deep);
}

.dwr-lead-summary {
    font-family: var(--dwr-font-text);
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--dwr-ink-soft);
    margin-bottom: 1.1rem;
    max-width: 44rem;
}

.dwr-lead-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    border-top: 1px solid var(--dwr-rule);
    padding-top: 0.9rem;
}

.dwr-lead-foot .post-meta {
    flex: 0 1 auto;
    width: auto;
    margin: 0;
}

/* No articles yet: the lead space introduces the newsletter */
.dwr-lead-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--dwr-sage-soft);
    border-left: 6px solid var(--dwr-sage);
}

.dwr-lead-empty-emblem {
    width: 150px;
    height: auto;
}

.dwr-lead-empty .dwr-lead-title {
    margin-top: 0.35rem;
}

.dwr-lead-empty-text {
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    color: var(--dwr-ink-soft);
}

.dwr-lead-empty-contact {
    margin: 0;
    font-family: var(--dwr-font-ui);
    font-size: 0.95rem;
    color: var(--dwr-ink-soft);
}

.dwr-lead-empty-contact a {
    font-weight: 600;
    color: var(--dwr-green) !important;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Issue panel, after the cover's dark green masthead column */
.dwr-issue-panel {
    background: var(--dwr-green);
    color: var(--dwr-on-green);
    box-shadow: 1rem 1rem 0 0 var(--dwr-sage);
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    /* Stays beside the lead article while it scrolls (clears the sticky navigation) */
    .dwr-issue-panel {
        position: sticky;
        top: 5.5rem;
    }
}

.dwr-issue-panel-label {
    margin: 0;
    background: var(--dwr-green-deep);
    color: #fff;
    padding: 0.55rem 1.4rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dwr-issue-panel-body {
    padding: 1.6rem 1.4rem 1.75rem;
}

.dwr-issue-year {
    margin: 0;
    font-family: var(--dwr-font-display);
    font-weight: 600;
    font-size: 4.2rem;
    line-height: 0.95;
    color: #fff;
}

.dwr-issue-number {
    margin: 0.5rem 0 0;
    font-family: var(--dwr-font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dwr-sage-light);
}

.dwr-issue-theme {
    margin: 1.25rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(214, 230, 208, 0.35);
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #fff;
}

.dwr-issue-langs {
    margin: 0.9rem 0 0;
    font-family: var(--dwr-font-ui);
    font-size: 0.82rem;
    color: var(--dwr-on-green-soft);
}

.dwr-issue-lang-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.dwr-issue-lang-links a {
    border: 1px solid rgba(214, 230, 208, 0.5);
    padding: 0.2rem 0.6rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.76rem;
    color: #fff !important;
}

.dwr-issue-lang-links a[aria-current],
.dwr-issue-lang-links a:hover {
    background: var(--dwr-sage-light);
    border-color: var(--dwr-sage-light);
    color: #2a3930 !important;
}

.dwr-issue-panel .dwr-btn {
    margin-top: 1.4rem;
    width: 100%;
}

/*--------------------------------------------------------------
# In this edition (table of contents)
--------------------------------------------------------------*/
.dwr-contents {
    padding: 3rem 0 1rem;
    background: var(--dwr-sage-soft);
    margin-top: 1rem;
}

.dwr-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3.5rem;
}

.dwr-toc-item {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(73, 101, 88, 0.25);
}

.dwr-toc-num {
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--dwr-green);
    text-align: right;
}

.dwr-toc-title {
    font-size: 1.32rem;
    line-height: 1.25;
    margin: 0 0 0.45rem;
}

.dwr-toc-title a:hover {
    color: var(--dwr-green);
}

.dwr-toc-summary {
    font-family: var(--dwr-font-text);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--dwr-ink-soft);
    margin: 0 0 0.45rem;
}


/*--------------------------------------------------------------
# Latest articles
--------------------------------------------------------------*/
.dwr-latest {
    padding-top: 3rem;
}

.dwr-latest-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--dwr-rule);
}

.dwr-latest-feature-text {
    grid-template-columns: minmax(0, 1fr);
}

.dwr-latest-feature-text .dwr-latest-feature-body {
    max-width: 48rem;
}

.dwr-latest-feature-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--dwr-sage-soft);
}

.dwr-latest-feature-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s ease;
}

.dwr-latest-feature:hover .dwr-latest-feature-image img {
    transform: scale(1.02);
}

.dwr-latest-feature-title {
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.dwr-latest-feature-title a:hover {
    color: var(--dwr-green);
}

.dwr-latest-feature-summary {
    font-family: var(--dwr-font-text);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--dwr-ink-soft);
}

/*--------------------------------------------------------------
# About the newsletter + publication masthead
--------------------------------------------------------------*/
.dwr-about {
    padding-top: 2rem;
}

.dwr-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.dwr-about-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dwr-about-emblem {
    width: 84px;
    height: auto;
}

.dwr-about-name {
    margin: 0;
    font-family: var(--dwr-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dwr-ink);
}

.dwr-about-tagline {
    margin: 0.15rem 0 0;
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dwr-green);
}

.dwr-about-text {
    font-family: var(--dwr-font-text);
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--dwr-ink);
    margin-bottom: 1.25rem;
}

.dwr-about-contact {
    font-family: var(--dwr-font-ui);
    font-size: 0.95rem;
    color: var(--dwr-ink-soft);
    padding: 0.9rem 1.1rem;
    background: var(--dwr-sage-soft);
    border-left: 3px solid var(--dwr-green);
    margin-bottom: 1.25rem;
}

.dwr-about-contact a {
    font-weight: 600;
    color: var(--dwr-green) !important;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Masthead panel: dark green with charcoal heading bars, as on the cover */
.dwr-board {
    background: var(--dwr-green);
    color: #fff;
    padding: 0 0 0.5rem;
    box-shadow: -1rem 1rem 0 0 var(--dwr-sage);
}

.dwr-board-group + .dwr-board-group {
    margin-top: 0.4rem;
}

.dwr-board-heading {
    margin: 0;
    background: var(--dwr-green-deep);
    color: #fff !important;
    padding: 0.5rem 1.35rem;
    font-family: var(--dwr-font-ui) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dwr-board ul {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1.35rem 0.5rem;
}

.dwr-board li {
    padding: 0.28rem 0;
    line-height: 1.3;
    break-inside: avoid;
}

/* Longer lists flow in two columns so the panel keeps pace with the text beside it */
@media (min-width: 576px) {
    .dwr-board-group:not(:first-child) ul {
        columns: 2;
        column-gap: 1.5rem;
    }
}

.dwr-board-name {
    display: block;
    font-family: var(--dwr-font-ui);
    font-weight: 600;
    font-size: 0.95rem;
}

.dwr-board-role {
    display: block;
    font-family: var(--dwr-font-ui);
    font-size: 0.82rem;
    color: var(--dwr-on-green-soft);
}

/*--------------------------------------------------------------
# Newsletter subscription (ochre panel, as in the newsletter)
--------------------------------------------------------------*/
.dwr-newsletter {
    padding-top: 1.5rem;
}

.dwr-newsletter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: center;
    background: var(--dwr-gold);
    color: var(--dwr-gold-ink);
    padding: 2.75rem 3rem;
    border-radius: 18px;
}

.dwr-newsletter-kicker {
    margin: 0 0 0.5rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dwr-gold-ink);
}

.dwr-newsletter-title {
    color: #2f281e !important;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    line-height: 1.18;
    margin: 0 0 0.6rem;
}

.dwr-newsletter-desc {
    font-family: var(--dwr-font-text);
    font-size: 1.02rem;
    margin: 0;
    color: #3e3528;
}

.dwr-newsletter-form .newsletter-inputs {
    display: flex;
    gap: 0.5rem;
}

.dwr-newsletter-form .newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 50px;
    border: 1px solid rgba(74, 63, 49, 0.25);
    background-color: #fffdf8;
    color: #2c2e35;
}

.dwr-newsletter-form .newsletter-button {
    flex: 0 0 auto;
    min-height: 50px;
}

.dwr-newsletter-note {
    margin: 0.7rem 0 0;
    font-family: var(--dwr-font-ui);
    font-size: 0.8rem;
    color: var(--dwr-gold-ink);
}

/*--------------------------------------------------------------
# Archive: category, tag, search, all posts
--------------------------------------------------------------*/
.dwr-archive-header {
    border-bottom: 3px solid var(--dwr-green);
    padding: 0.5rem 0 1.5rem;
    margin-bottom: 1.75rem;
}

html[data-theme] :is(.dwr-archive-title, .dwr-page-title) {
    font-family: var(--dwr-font-display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    color: var(--dwr-green-dark);
}

.dwr-archive-description {
    font-family: var(--dwr-font-text);
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--dwr-ink-soft);
    max-width: var(--dwr-measure);
    margin: 0.9rem 0 0;
}

.dwr-archive-search {
    display: flex;
    gap: 0.5rem;
    max-width: 38rem;
    margin-top: 1.25rem;
}

.dwr-archive-search .form-control {
    min-height: 50px;
}

.dwr-archive-search .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.dwr-archive-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 1.75rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--dwr-rule);
}

.dwr-archive-item:first-child {
    padding-top: 0;
}

.dwr-archive-item-no-image {
    grid-template-columns: minmax(0, 1fr);
}

.dwr-archive-item-title {
    font-size: 1.45rem !important;
    line-height: 1.22;
    margin: 0 0 0.5rem;
}

.dwr-archive-item-title a:hover {
    color: var(--dwr-green);
}

.dwr-archive-item-summary {
    font-family: var(--dwr-font-text);
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--dwr-ink-soft);
    margin-bottom: 0.6rem;
}

.dwr-archive-item-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--dwr-sage-soft);
    align-self: start;
}

.dwr-archive-item-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

html[data-theme] .subcategory-pill {
    border-radius: var(--dwr-radius);
    border: 1px solid #cfd6c9;
    background: transparent;
    font-family: var(--dwr-font-ui);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dwr-ink-soft);
}

html[data-theme] :is(.subcategory-pill:hover, .subcategory-pill.active) {
    border-color: var(--dwr-green);
    color: var(--dwr-green);
    background: var(--dwr-sage-soft);
}

/* CodeIgniter pager markup */
.dwr-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dwr-pagination .pagination li :is(a, span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    border: 1px solid #cfd6c9;
    border-radius: var(--dwr-radius);
    background: transparent;
    font-family: var(--dwr-font-ui);
    font-size: 0.9rem;
    color: var(--dwr-ink);
}

.dwr-pagination .pagination li a:hover {
    border-color: var(--dwr-green);
    color: var(--dwr-green);
}

.dwr-pagination .pagination li.active :is(a, span) {
    background: var(--dwr-green);
    border-color: var(--dwr-green);
    color: #fff;
}

/*--------------------------------------------------------------
# Article page
--------------------------------------------------------------*/
.dwr-article-page {
    padding-top: 0;
}

/* Running head, as on the newsletter's inner pages */
.dwr-running-head {
    border-bottom: 1px solid var(--dwr-rule);
    padding: 0.9rem 0;
    margin-bottom: 1.25rem;
}

.dwr-running-head-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.dwr-running-head-title .dwr-wordmark-newsletter {
    font-size: 1.55rem;
}

.dwr-running-head-title .dwr-wordmark-name {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
}

.dwr-article-header {
    text-align: center;
    max-width: 48rem;
    margin: 1rem auto 2rem;
}

.dwr-article-kickers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 1.1rem;
    margin-bottom: 0.9rem;
}

.dwr-article-kickers .dwr-kicker {
    margin: 0;
}

.dwr-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dwr-gold-text) !important;
}

html[data-theme] .dwr-article .post-title {
    font-family: var(--dwr-font-display);
    font-size: clamp(2.1rem, 4.2vw, 3.3rem);
    line-height: 1.1;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--dwr-green-dark);
    text-wrap: balance;
}

html[data-theme] .dwr-article .post-summary {
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.18rem, 1.9vw, 1.4rem);
    line-height: 1.5;
    color: var(--dwr-ink-soft);
    margin: 0 auto 1.6rem;
    max-width: 40rem;
    text-wrap: pretty;
}

html[data-theme] .dwr-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    border-top: 1px solid var(--dwr-rule);
    border-bottom: 1px solid var(--dwr-rule);
    padding: 1rem 0;
    margin: 0;
    font-family: var(--dwr-font-ui);
}

.dwr-byline-author {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
}

.dwr-byline-author .dwr-oval-portrait {
    width: 44px;
    height: 52px;
}

.dwr-byline-by {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dwr-muted);
}

.dwr-byline-name {
    display: block;
    font-family: var(--dwr-font-display);
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--dwr-ink);
}

.dwr-byline-author:hover .dwr-byline-name {
    color: var(--dwr-green);
}

.dwr-byline-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--dwr-muted);
}

.dwr-byline-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dwr-byline-meta li + li::before {
    content: '·';
    margin: 0 0.6rem;
    color: var(--dwr-sage-mid);
}

.dwr-byline-reading {
    color: var(--dwr-green);
    font-weight: 500;
}

/* Share buttons: quiet outlined squares instead of brand-coloured blocks */
html[data-theme] .post-share-buttons {
    justify-content: center;
}

html[data-theme] .post-share-buttons .btn-social-share {
    background-color: transparent !important;
    border: 1px solid #cfd6c9;
    border-radius: var(--dwr-radius);
    color: var(--dwr-ink-soft);
}

/* Varient forces these icons white (common.css: .btn-social-share svg { fill: white !important }), which is
   invisible on the outlined buttons, so the icon colour is taken back from the button */
html[data-theme] .post-share-buttons .btn-social-share svg {
    color: currentColor !important;
    fill: currentColor !important;
}

html[data-theme] .post-share-buttons .btn-social-share {
    color: var(--dwr-green-dark) !important;
}

html[data-theme] .post-share-buttons .btn-social-share:hover {
    border-color: var(--dwr-green);
    background-color: var(--dwr-sage-soft) !important;
    color: var(--dwr-green) !important;
    box-shadow: none !important;
    opacity: 1;
}

html[data-theme] .post-share-buttons .btn-reading-list.active {
    border-color: var(--dwr-green);
    background-color: var(--dwr-green) !important;
    color: #fff !important;
}

/* Featured image with caption */
html[data-theme] .dwr-article :is(.show-on-feed img, .post-image, .post-image img) {
    border-radius: 0 !important;
}

html[data-theme] :is(.post-image-description, .entry-content figure figcaption, .entry-content .image-caption) {
    font-family: var(--dwr-font-ui);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--dwr-muted);
    margin-top: 0.6rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--dwr-sage);
}

/* Reading column */
html[data-theme] .entry-content {
    font-family: var(--dwr-font-text) !important;
    font-size: var(--vr-fs-content);
    line-height: var(--vr-lh-content);
    color: var(--dwr-ink);
}

html[data-theme] .dwr-article .entry-content {
    max-width: var(--dwr-measure);
    margin-left: auto;
    margin-right: auto;
}

html[data-theme] .dwr-article .entry-content :is(figure, .image, table, iframe, img) {
    max-width: 100%;
}

html[data-theme] .entry-content p {
    margin-bottom: 1.35em;
}

/* Drop cap on the opening paragraph of articles */
html[data-theme] .dwr-article > .entry-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--dwr-font-display);
    font-size: 4.3em;
    line-height: 0.8;
    font-weight: 600;
    padding: 0.07em 0.1em 0 0;
    color: var(--dwr-green);
}

/* End mark on the last paragraph, a printed-journal convention */
html[data-theme] .dwr-article > .entry-content > p:last-of-type::after {
    content: '';
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    margin-left: 0.4em;
    background: var(--dwr-green);
    vertical-align: baseline;
}

/* Section headings inside articles: bold serif, as in the newsletter */
html[data-theme] .entry-content :is(h2, h3, h4) {
    margin: 1.9em 0 0.55em;
    line-height: 1.25;
    font-weight: 700;
    color: var(--dwr-green-dark);
}

html[data-theme] .entry-content h2 {
    font-size: 1.6rem;
}

html[data-theme] .entry-content h3 {
    font-size: 1.3rem;
}

html[data-theme] .entry-content h4 {
    font-size: 1.1rem;
}

html[data-theme] .entry-content a {
    color: var(--dwr-green);
    text-decoration: underline;
    text-decoration-color: var(--dwr-sage-mid);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html[data-theme] .entry-content a:hover {
    text-decoration-color: var(--dwr-green);
}

/* Quotations: Scripture, Magisterium, liturgical texts */
html[data-theme] .entry-content blockquote {
    position: relative;
    margin: 2em 0;
    padding: 1.1em 1.4em 1.1em 1.5em;
    border-left: 3px solid var(--dwr-gold);
    background: var(--dwr-sage-soft);
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-size: 1.14em;
    line-height: 1.6;
    color: var(--dwr-ink);
}

html[data-theme] .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

html[data-theme] .entry-content blockquote :is(cite, footer) {
    display: block;
    margin-top: 0.6em;
    font-family: var(--dwr-font-ui);
    font-style: normal;
    font-size: 0.68em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dwr-green);
}

/* Pull quote: a blockquote given the "pullquote" class in the editor's source view */
html[data-theme] .entry-content :is(blockquote.pullquote, .pullquote) {
    background: none;
    border-left: 0;
    border-top: 2px solid var(--dwr-green);
    border-bottom: 2px solid var(--dwr-green);
    padding: 1em 0;
    text-align: center;
    font-size: 1.45em;
    line-height: 1.4;
    color: var(--dwr-green-dark);
}

html[data-theme] .entry-content hr {
    border: 0;
    height: auto;
    text-align: center;
    margin: 2.5em 0;
    opacity: 1;
    background: none;
}

html[data-theme] .entry-content hr::before {
    content: '';
    display: inline-block;
    width: 4rem;
    height: 3px;
    background: linear-gradient(to right, var(--dwr-sage) 0 33%, var(--dwr-green) 33% 66%, var(--dwr-green-deep) 66%);
}

html[data-theme] .entry-content :is(ol, ul) {
    padding-left: 1.4em;
    margin-bottom: 1.35em;
}

html[data-theme] .entry-content li {
    margin-bottom: 0.4em;
}

html[data-theme] .entry-content li::marker {
    color: var(--dwr-green);
}

html[data-theme] .entry-content sup {
    font-family: var(--dwr-font-ui);
    font-size: 0.65em;
    color: var(--dwr-green);
}

html[data-theme] .entry-content table {
    font-family: var(--dwr-font-ui);
    font-size: 0.92rem;
}

html[data-theme] .entry-content :is(th, td) {
    border-color: var(--dwr-rule);
}

html[data-theme] .post-tags .title {
    font-family: var(--dwr-font-ui);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html[data-theme] .post-content .post-tags ul li a {
    border-radius: var(--dwr-radius);
    background: transparent;
    border: 1px solid #cfd6c9;
    font-family: var(--dwr-font-ui);
    font-size: 0.78rem;
    color: var(--dwr-ink-soft);
}

html[data-theme] .post-content .post-tags ul li a:hover {
    background: var(--dwr-green);
    border-color: var(--dwr-green);
    color: #fff;
}

/* Closing bar, as at the foot of each newsletter article */
.dwr-article-end {
    height: 12px;
    background: var(--dwr-green);
    margin: 2.75rem 0 0;
}

/* Previous / next */
html[data-theme] .post-next-prev {
    border-top: 0;
    border-bottom: 1px solid var(--dwr-rule);
    padding: 0 0 1.5rem;
}

html[data-theme] .post-next-prev .head-title a {
    font-family: var(--dwr-font-ui);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dwr-green);
}

html[data-theme] .post-next-prev .title {
    font-family: var(--dwr-font-display);
    font-size: 1.18rem;
    line-height: 1.3;
}

/* Reading progress */
.dwr-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
}

.dwr-progress span {
    display: block;
    height: 100%;
    background: var(--dwr-gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* Comments */
html[data-theme] :is(#comments .title, .comments-title) {
    font-family: var(--dwr-font-display);
}

/*--------------------------------------------------------------
# Author note (end of article)
--------------------------------------------------------------*/
html[data-theme] .dwr-author-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    max-width: var(--dwr-measure);
    margin: 2.5rem auto 0;
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--dwr-sage-soft);
    border: 0;
    border-radius: 0;
}

.dwr-author-portrait .dwr-oval-portrait {
    width: 96px;
    height: 116px;
    border-radius: 50% !important;
}

/* Tags, attachments and FAQ line up with the reading column */
html[data-theme] .dwr-article :is(.post-tags, .post-attachments, .faq-accordion) {
    max-width: var(--dwr-measure);
    margin-left: auto;
    margin-right: auto;
}

.dwr-author-name {
    margin: 0 0 0.4rem;
    font-family: var(--dwr-font-display) !important;
    font-weight: 600;
    font-size: 1.35rem !important;
}

.dwr-author-name a:hover {
    color: var(--dwr-green);
}

.dwr-author-bio {
    position: relative;
    margin: 0;
    padding-left: 1rem;
    font-family: var(--dwr-font-text);
    font-style: italic;
    font-size: 1.02rem !important;
    line-height: 1.65 !important;
    color: var(--dwr-ink-soft) !important;
}

/* The small square that opens the biography in the newsletter */
.dwr-author-bio::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4em;
    height: 0.4em;
    background: var(--dwr-green);
}

/*--------------------------------------------------------------
# Static pages
--------------------------------------------------------------*/
.dwr-page-band {
    margin-top: 0.5rem;
}

/* The contact template places its heading directly in a Bootstrap row: keep it inside the gutters */
.row > .dwr-page-band {
    width: auto;
    margin-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: calc(var(--bs-gutter-x) * 0.5);
}

html[data-theme] .dwr-page-band .dwr-page-title {
    color: #fff;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dwr-page-content {
    max-width: var(--dwr-measure);
    margin: 0 auto;
}

.dwr-page-content > p:first-child {
    font-size: 1.12em;
    color: var(--dwr-ink-soft);
}

/*--------------------------------------------------------------
# Contact page
--------------------------------------------------------------*/
.dwr-contact-intro {
    max-width: var(--dwr-measure);
    margin: 0 auto;
    text-align: center;
}

.dwr-contact-panel {
    background: var(--dwr-green);
    color: #fff;
    padding: 2rem;
    box-shadow: 1rem 1rem 0 0 var(--dwr-sage);
    margin-right: 1rem;
}

.dwr-contact-panel a {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dwr-contact-panel-title {
    color: #fff !important;
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.dwr-contact-panel-note {
    font-family: var(--dwr-font-ui);
    font-size: 0.88rem;
    color: var(--dwr-on-green-soft);
    margin-bottom: 0.5rem;
}

.dwr-contact-panel .contact-icon {
    color: var(--dwr-sage-light);
    background: transparent !important;
}

html[data-theme] .title-send-message {
    font-family: var(--dwr-font-display);
    font-size: 1.55rem;
    color: var(--dwr-green-dark);
}

/*--------------------------------------------------------------
# Author profile pages
--------------------------------------------------------------*/
html[data-theme] .profile-page-top,
html[data-theme] .profile-details {
    font-family: var(--dwr-font-ui);
}

html[data-theme] :is(.profile-page-top .username, .profile-details .username, .profile-page .username) {
    font-family: var(--dwr-font-display);
    color: var(--dwr-green-dark);
}

html[data-theme] .body-profile-page .mega-menu-wrapper {
    border-bottom-color: var(--dwr-green);
}

/*--------------------------------------------------------------
# Sidebar widgets
--------------------------------------------------------------*/
html[data-theme] .sidebar-widget .widget-head {
    border-bottom: 0;
    border-top: 0;
    background: var(--dwr-green);
    padding: 0.5rem 0.9rem;
    margin-bottom: 1rem;
}

html[data-theme] .sidebar-widget .widget-head:after {
    display: none;
}

html[data-theme] .sidebar-widget .widget-head .title {
    font-family: var(--dwr-font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

html[data-theme] .sidebar-widget .tag-list li a {
    border-radius: var(--dwr-radius);
    font-family: var(--dwr-font-ui);
    font-size: 0.78rem;
}

html[data-theme] .sidebar-widget .tag-list li a:hover {
    background: var(--dwr-green);
    border-color: var(--dwr-green);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
html[data-theme] #footer {
    background-color: var(--dwr-green-deep);
    border-top: 0;
    color: var(--dwr-on-green-soft);
    margin-top: 4.5rem;
    box-shadow: inset 0 12px 0 var(--dwr-green);
}

html[data-theme] #footer .footer-inner {
    padding: 4.25rem 0 3rem;
}

.dwr-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(214, 230, 208, 0.18);
}

.dwr-footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dwr-footer-emblem {
    width: 88px;
    height: auto;
}

.dwr-footer-titles .dwr-wordmark-newsletter {
    font-size: 2.2rem;
    color: var(--dwr-sage-light);
}

.dwr-footer-titles .dwr-wordmark-name {
    font-size: 0.82rem;
    color: #fff;
    margin-top: 0.3rem;
}

.dwr-footer-tagline {
    margin: 0;
    font-family: var(--dwr-font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--dwr-gold);
}

html[data-theme] #footer .footer-widget .widget-title {
    font-family: var(--dwr-font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dwr-gold);
    margin-bottom: 1rem;
}

html[data-theme] #footer .footer-about {
    font-family: var(--dwr-font-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.dwr-footer-contact {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.dwr-footer-contact span {
    display: block;
    color: var(--dwr-sage-mid);
    font-size: 0.8rem;
}

.dwr-footer-contact a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dwr-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dwr-footer-links li {
    margin-bottom: 0.55rem;
}

.dwr-footer-links a {
    font-size: 0.95rem;
}

html[data-theme] #footer a {
    color: #fff;
}

html[data-theme] #footer a:hover {
    color: var(--dwr-gold);
}

html[data-theme] #footer .post-item-small .title {
    font-size: 0.98rem;
}

html[data-theme] #footer :is(.post-meta, .post-meta a) {
    color: var(--dwr-sage-mid);
}

html[data-theme] #footer .newsletter .description {
    font-size: 0.92rem;
}

html[data-theme] #footer .newsletter .form-input {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(214, 230, 208, 0.3);
    color: #fff;
    border-radius: var(--dwr-radius) 0 0 var(--dwr-radius);
}

html[data-theme] #footer .newsletter .newsletter-inputs button {
    border-radius: 0 var(--dwr-radius) var(--dwr-radius) 0;
    background-color: var(--dwr-gold) !important;
    border-color: var(--dwr-gold) !important;
    color: var(--dwr-gold-ink) !important;
}

.dwr-footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.dwr-footer-langs a {
    border: 1px solid rgba(214, 230, 208, 0.35);
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
}

.dwr-footer-langs a.active {
    background: var(--dwr-sage-light);
    color: #2a3930 !important;
}

html[data-theme] #footer .footer-copyright {
    background-color: var(--dwr-green-ink);
    border-top: 0;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 1rem 0;
}

.dwr-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
}

.dwr-issue-strip-footer .dwr-strip-lang {
    background: rgba(214, 230, 208, 0.9);
}

/*--------------------------------------------------------------
# Content-driven pieces (editions, languages line, admin-managed editorial board)
--------------------------------------------------------------*/
/* Strip segments link to the edition's page when the edition comes from Admin > Categories */
html[data-theme] a:is(.dwr-strip-year, .dwr-strip-issue) {
    color: #fff;
    text-decoration: none;
}

html[data-theme] a:is(.dwr-strip-year, .dwr-strip-issue):hover {
    background: var(--dwr-green-ink);
    color: #fff;
}

/* Phones: an empty languages segment is dropped; the blank strip (no edition yet) keeps the sage band */
.dwr-issue-strip-mobile .dwr-strip-lang:empty {
    display: none;
}

.dwr-issue-strip-blank .dwr-strip-lang:empty {
    display: block;
    flex: 1 1 100%;
    min-height: 0.5rem;
}

.dwr-issue-theme-name {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-style: normal;
}

.dwr-issue-edition-link {
    display: inline-block;
    margin-top: 1.1rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff !important;
    border-bottom: 1px solid rgba(214, 230, 208, 0.6);
    padding-bottom: 0.15rem;
}

.dwr-issue-edition-link:hover {
    border-bottom-color: #fff;
}

.dwr-contents-more {
    margin: 1.5rem 0 0;
    text-align: right;
}

.dwr-about-grid-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 52rem;
}

/* Editorial board written as a page in Admin > Pages: headings become the panel's charcoal bars,
   list items become names (a line break or an <em> inside an item reads as the role) */
.dwr-board-page {
    padding-bottom: 0.5rem;
    font-family: var(--dwr-font-ui);
}

.dwr-board-page :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 0.25rem;
    background: var(--dwr-green-deep);
    color: #fff !important;
    padding: 0.5rem 1.35rem;
    font-family: var(--dwr-font-ui) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.dwr-board-page :is(h1, h2, h3, h4, h5, h6):not(:first-child) {
    margin-top: 0.6rem;
}

.dwr-board-page :is(ul, ol) {
    list-style: none;
    margin: 0;
    padding: 0.6rem 1.35rem 0.4rem;
}

.dwr-board-page li {
    padding: 0.28rem 0;
    line-height: 1.35;
    font-weight: 600;
    font-size: 0.95rem;
    break-inside: avoid;
}

.dwr-board-page li :is(em, i, small, span) {
    display: block;
    font-style: normal;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--dwr-on-green-soft);
}

.dwr-board-page p {
    margin: 0;
    padding: 0.5rem 1.35rem;
    font-size: 0.92rem;
    color: var(--dwr-on-green-soft);
}

.dwr-board-page a {
    color: #fff !important;
}

@media (min-width: 576px) {
    .dwr-board-page :is(h1, h2, h3, h4, h5, h6) ~ :is(ul, ol) {
        columns: 2;
        column-gap: 1.5rem;
    }
}

.dwr-board-more {
    display: block;
    margin: 0.25rem 1.35rem 0.75rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dwr-sage-light) !important;
}

/*--------------------------------------------------------------
# Premium membership (Varient: Admin > Premium Membership; per post: Premium / Exclusive)
--------------------------------------------------------------*/
/* Text label for listings without a picture (dwrAccessLabel), following Varient's badge rules */
.dwr-access {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--dwr-font-ui);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem 0.28rem;
    border-radius: var(--dwr-radius);
    background: var(--dwr-gold);
    color: var(--dwr-gold-ink);
    vertical-align: middle;
    margin-bottom: 0.45rem;
}

.dwr-kicker-row .dwr-access {
    margin-bottom: 0;
}

.dwr-access-exclusive {
    background: var(--dwr-green-deep);
    color: var(--dwr-gold-soft);
}

/* Varient's crown badge on article pictures, in the publication's gold */
html[data-theme] .access-badge {
    background-color: var(--dwr-gold);
    border: 0;
    color: var(--dwr-gold-ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 3px rgba(33, 48, 41, 0.3);
}

html[data-theme] .access-badge .badge-icon {
    color: var(--dwr-gold-ink);
    fill: currentColor;
}

/* Masthead: membership "Subscribe" next to the newsletter button when membership is enabled */
.dwr-masthead-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dwr-btn-outline-light {
    background: transparent !important;
    border: 1px solid rgba(214, 230, 208, 0.6) !important;
    color: #fff !important;
}

.dwr-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.dwr-issue-panel .dwr-btn + .dwr-btn {
    margin-top: 0.5rem;
}

/* Paywall card (common/premium/_paywall): the issue-panel look instead of Varient's glass card */
html[data-theme] .paywall {
    margin: 2.5rem 0;
}

html[data-theme] .paywall .paywall-card {
    width: 100%;
    max-width: var(--dwr-measure);
    background: var(--dwr-sage-soft);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-top: 6px solid var(--dwr-green);
    border-radius: 0;
    box-shadow: 1rem 1rem 0 0 var(--dwr-sage);
    padding: 2.25rem 2.25rem 2rem;
}

html[data-theme] .paywall .paywall-badge {
    border-radius: var(--dwr-radius);
    background: var(--dwr-gold);
    color: var(--dwr-gold-ink);
    font-family: var(--dwr-font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

html[data-theme] .paywall .paywall-card .paywall-badge {
    display: inline-flex;
    margin: 0 auto 1rem;
}

html[data-theme] .paywall .paywall-card .paywall-badge + h3 {
    margin-top: 0;
}

html[data-theme] .paywall .paywall-badge.badge-exclusive {
    background: var(--dwr-green-deep);
    color: var(--dwr-gold-soft);
}

html[data-theme] .paywall .paywall-card h3 {
    font-family: var(--dwr-font-display);
    font-weight: 600;
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    letter-spacing: 0;
    color: var(--dwr-green-dark);
}

html[data-theme] .paywall .paywall-card p {
    font-family: var(--dwr-font-text);
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--dwr-ink-soft);
}

html[data-theme] .paywall .benefit-list {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

html[data-theme] .paywall .benefit-list li {
    font-family: var(--dwr-font-ui);
    font-size: 0.95rem;
    color: var(--dwr-ink);
}

html[data-theme] .paywall .benefit-list li svg {
    color: var(--dwr-green);
}

html[data-theme] .paywall .btn-paywall {
    border-radius: var(--dwr-radius);
    box-shadow: none;
    font-family: var(--dwr-font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.95rem 1.5rem;
}

html[data-theme] .paywall .btn-paywall.btn-premium {
    background-color: var(--dwr-green);
    color: #fff;
}

html[data-theme] .paywall .btn-paywall.btn-exclusive {
    background-color: var(--dwr-gold);
    color: var(--dwr-gold-ink) !important;
}

html[data-theme] .paywall .btn-paywall:hover,
html[data-theme] .paywall .btn-paywall:focus {
    transform: none;
    box-shadow: none;
    background-color: var(--dwr-green-deep);
    color: #fff !important;
}

html[data-theme] .paywall .btn-login {
    font-family: var(--dwr-font-ui);
    color: var(--dwr-green);
}

/* A truncated preview is not the end of the article: no end mark before the paywall */
html[data-theme] .dwr-article > .entry-content:has(.paywall) > p:last-of-type::after {
    display: none;
}

html[data-bs-theme="dark"] .paywall .paywall-card {
    box-shadow: 1rem 1rem 0 0 #2f3d35;
}

@media (max-width: 767.98px) {
    html[data-theme] .paywall .paywall-card {
        padding: 1.75rem 1.25rem 1.5rem;
        box-shadow: 0.75rem 0.75rem 0 0 var(--dwr-sage);
        margin-right: 0.75rem;
    }

    .dwr-masthead-actions {
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Reveal (added by a small script in the footer; without JS everything is simply visible)
--------------------------------------------------------------*/
html.dwr-reveal-ready [data-dwr-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
}

html.dwr-reveal-ready [data-dwr-reveal].is-in {
    opacity: 1;
    transform: none;
}

/*--------------------------------------------------------------
# Dark mode touches
--------------------------------------------------------------*/
html[data-bs-theme="dark"] .dwr-masthead .dwr-wordmark-name,
html[data-bs-theme="dark"] .dwr-masthead-mobile .dwr-wordmark-name {
    color: var(--dwr-ink);
}

html[data-bs-theme="dark"] :is(.dwr-issue-panel, .dwr-board, .dwr-contact-panel, .dwr-band-heading) {
    background: #34493f;
}

html[data-bs-theme="dark"] .dwr-newsletter-panel {
    background: #c89a57;
}

html[data-bs-theme="dark"] .dwr-strip-year {
    background: #34493f;
}

html[data-bs-theme="dark"] .dwr-strip-lang {
    background: #2f3d35;
    color: var(--dwr-ink);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (min-width: 992px) and (max-width: 1199.98px) {
    .dwr-issue-grid {
        grid-template-columns: minmax(0, 1fr) 18.5rem;
        gap: 2rem;
    }

    .dwr-masthead-emblem {
        width: 112px;
    }
}

@media (max-width: 991.98px) {
    .dwr-issue {
        padding-top: 1.5rem;
    }

    .dwr-issue-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.25rem;
    }

    .dwr-issue-panel {
        box-shadow: 0.75rem 0.75rem 0 0 var(--dwr-sage);
        margin-right: 0.75rem;
    }

    .dwr-issue-panel-body {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 1.5rem;
        align-items: end;
    }

    .dwr-issue-panel-body > :not(.dwr-issue-year, .dwr-issue-number) {
        grid-column: 1 / -1;
    }

    .dwr-toc {
        column-gap: 2rem;
    }

    .dwr-about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .dwr-board {
        margin-left: 1rem;
    }

    .dwr-newsletter-panel {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.25rem 2rem;
    }

    .dwr-latest-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    html[data-theme] .section {
        margin-bottom: 2.25rem;
    }

    html[data-theme] .section .section-title .title {
        font-size: 1.45rem;
    }

    .dwr-lead-image {
        margin: 0 0 1.25rem 0.75rem;
    }

    .dwr-lead-image::before {
        left: -0.75rem;
        top: 0.75rem;
        bottom: -0.75rem;
    }

    .dwr-lead-title {
        font-size: clamp(1.75rem, 7.4vw, 2.3rem);
    }

    .dwr-lead-summary {
        font-size: 1.06rem;
    }

    .dwr-lead-empty {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        padding: 2rem 1.25rem;
        gap: 1.25rem;
    }

    .dwr-lead-empty-emblem {
        width: 120px;
        margin: 0 auto;
    }

    .dwr-issue-year {
        font-size: 3.3rem;
    }

    .dwr-contents {
        padding-top: 2.25rem;
    }

    .dwr-toc {
        grid-template-columns: minmax(0, 1fr);
    }

    .dwr-toc-item {
        grid-template-columns: 2.6rem minmax(0, 1fr);
        gap: 0.75rem;
        padding: 1.15rem 0;
    }

    .dwr-toc-num {
        font-size: 1.7rem;
    }

    .dwr-toc-title {
        font-size: 1.18rem;
    }

    .dwr-band-heading {
        padding: 0.6rem 0.9rem 0.5rem;
        margin-bottom: 1.5rem;
    }

    .dwr-newsletter .container-xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .dwr-newsletter-panel {
        padding: 2rem 1.25rem;
        border-radius: 14px;
    }

    .dwr-newsletter-form .newsletter-inputs,
    .dwr-archive-search {
        flex-direction: column;
    }

    .dwr-board {
        margin-left: 0.75rem;
        box-shadow: -0.75rem 0.75rem 0 0 var(--dwr-sage);
    }

    .dwr-archive-item {
        grid-template-columns: minmax(0, 1fr) 6.5rem;
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .dwr-archive-item-title {
        font-size: 1.15rem !important;
    }

    .dwr-archive-item-summary {
        display: none;
    }

    .dwr-archive-item-image img {
        aspect-ratio: 1 / 1;
    }

    /* The compact masthead strip already carries the issue on phones */
    .dwr-running-head {
        display: none;
    }

    html[data-theme] .dwr-byline {
        gap: 0.6rem;
    }

    html[data-theme] .entry-content {
        --vr-fs-content: 1.1rem;
        --vr-lh-content: 1.72;
    }

    html[data-theme] .entry-content blockquote {
        font-size: 1.06em;
        padding: 0.9em 1em;
    }

    html[data-theme] .dwr-article > .entry-content > p:first-of-type::first-letter {
        font-size: 3.5em;
    }

    html[data-theme] .dwr-author-note {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1.25rem;
    }

    .dwr-author-portrait {
        justify-self: center;
    }

    .dwr-author-bio {
        text-align: left;
    }

    .dwr-contact-panel {
        margin-top: 2rem;
        padding: 1.5rem;
        box-shadow: 0.75rem 0.75rem 0 0 var(--dwr-sage);
    }

    html[data-theme] #footer {
        margin-top: 3rem;
    }

    html[data-theme] #footer .footer-inner {
        padding: 3rem 0 2rem;
    }

    .dwr-footer-top {
        justify-content: center;
        text-align: center;
    }

    .dwr-footer-brand {
        flex-direction: column;
    }

    .dwr-footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .dwr-issue-strip-footer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dwr-issue-strip-footer .dwr-strip-lang {
        flex: 1 1 100%;
    }
}

@media (max-width: 399.98px) {
    .dwr-issue-panel-body {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme] *,
    html[data-theme] *::before,
    html[data-theme] *::after {
        transition: none !important;
        animation: none !important;
    }
}

/*--------------------------------------------------------------
# Print: articles print as clean pages
--------------------------------------------------------------*/
@media print {
    .topbar, .dwr-masthead, .dwr-masthead-mobile, #sticky-menu-wrapper, .mobile-nav-wrapper, #footer,
    .post-share-buttons, .post-next-prev, .section-related-posts, #comments, .col-sidebar,
    .btn-scroll-up, .dwr-newsletter, .dwr-about, .cookies-warning, .dwr-skip-link, .breadcrumb, .dwr-progress {
        display: none !important;
    }

    html[data-theme] body {
        background: #fff;
        color: #000;
    }

    #postDetailsPage :is(.col-lg-8, .col-lg-9) {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #postDetailsPage .col-lg-4 {
        display: none !important;
    }

    html[data-theme] .entry-content {
        font-size: 12pt;
        line-height: 1.6;
        max-width: none !important;
    }

    html[data-theme] .entry-content a {
        text-decoration: none;
        color: #000;
    }

    [data-dwr-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
