/* ==========================================================================
   DAYNIGHTIS — Atelier Components
   --------------------------------------------------------------------------
   atelier.css styles the masthead and the article typography, but the layout
   grid, the sidebar widgets, the article furniture and the whole mobile
   navigation had no rules at all. Without them the sidebar widgets and the
   mobile drawers fell into the normal page flow, which is why "right column"
   content appeared stacked in the middle of the page on desktop.
   Loaded after atelier.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Two-thirds + one-third editorial layout
   -------------------------------------------------------------------------- */
.editorial-twothirds-section,
.article-page-layout-wrapper {
    padding: 48px 0 72px;
}

.editorial-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 348px;
    gap: 56px;
    align-items: start;
}

.editorial-main-content,
.article-main-column {
    min-width: 0;
}

.editorial-sidebar-wrapper {
    min-width: 0;
}

/* The sidebar column tracks the reader down the page on large screens. */
.editorial-sidebar-wrapper,
.atelier-editorial-sidebar {
    position: sticky;
    top: 24px;
}

@media (max-width: 1199px) {
    .editorial-grid-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .editorial-grid-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
    .editorial-sidebar-wrapper,
    .atelier-editorial-sidebar {
        position: static;
    }
}

/* --------------------------------------------------------------------------
   2. Journal feed cards (category / tag / search / author / popular archives)
   -------------------------------------------------------------------------- */
.journal-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
}

@media (max-width: 767px) {
    .journal-feed-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

.journal-feed-card {
    display: flex;
    flex-direction: column;
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.journal-feed-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-refined);
    box-shadow: 0 14px 34px rgba(17, 19, 23, .10);
}

.j-card-media {
    position: relative;
    overflow: hidden;
    background: var(--paper-dark);
    aspect-ratio: 16 / 10;
}

.j-card-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.j-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.journal-feed-card:hover .j-card-media img {
    transform: scale(1.045);
}

.j-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.j-card-cat {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.j-card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.28;
    font-weight: 700;
    margin: 0;
}

.j-card-title a {
    color: var(--ink-black);
    text-decoration: none;
}

.j-card-title a:hover {
    color: var(--terracotta);
}

.j-card-excerpt {
    font-family: var(--font-reading);
    font-size: 15px;
    line-height: 1.62;
    color: var(--ink-muted);
    margin: 0;
}

.j-card-meta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.j-card-meta i {
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   3. Sidebar shell and widget chrome
   -------------------------------------------------------------------------- */
.atelier-editorial-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
    padding: 24px 22px;
}

.widget-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-heavy);
}

.widget-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    color: var(--ink-black);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.widget-title i {
    color: var(--terracotta);
    font-size: 17px;
}

/* Tab controls (Most read: 7 days / 30 days / all time) */
.tab-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1 1 auto;
    padding: 7px 6px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: var(--paper-base);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all .2s ease;
}

.tab-btn:hover {
    color: var(--ink-black);
    border-color: var(--border-refined);
}

.tab-btn.active {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* --------------------------------------------------------------------------
   4. Most-read / category-popular list
   -------------------------------------------------------------------------- */
.most-read-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: mr;
}

.most-read-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-light);
}

.most-read-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.most-read-item:first-child {
    padding-top: 0;
}

.rank-badge {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    color: var(--paper-base);
    background: var(--ink-black);
}

.most-read-item:first-child .rank-badge {
    background: var(--terracotta);
}

.mr-thumb-link {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    overflow: hidden;
    background: var(--paper-dark);
}

.mr-thumb-link img,
.mr-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mr-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mr-cat-tag {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.mr-title {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
}

.mr-title a {
    color: var(--ink-black);
    text-decoration: none;
}

.mr-title a:hover {
    color: var(--terracotta);
}

.mr-meta {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--ink-faint);
}

.mr-meta i {
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   5. Editor's choice
   -------------------------------------------------------------------------- */
.editors-choice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ec-card {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.ec-image-wrap {
    flex: 0 0 auto;
    width: 78px;
    height: 62px;
    overflow: hidden;
    background: var(--paper-dark);
}

.ec-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ec-cat-pill {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 3px;
}

.ec-title {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.34;
    font-weight: 600;
    margin: 0;
}

.ec-title a {
    color: var(--ink-black);
    text-decoration: none;
}

.ec-title a:hover {
    color: var(--terracotta);
}

/* --------------------------------------------------------------------------
   6. Category counts and tag cloud
   -------------------------------------------------------------------------- */
.category-count-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-count-list li {
    border-bottom: 1px dashed var(--border-light);
}

.category-count-list li:last-child {
    border-bottom: 0;
}

.category-count-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    text-decoration: none;
}

.cat-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-charcoal);
}

.category-count-list a:hover .cat-name {
    color: var(--terracotta);
}

.cat-badge {
    flex: 0 0 auto;
    min-width: 26px;
    padding: 2px 7px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
    background: var(--paper-dark);
}

.tag-cloud,
.sm-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip,
.sm-tag-pill {
    display: inline-block;
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-charcoal);
    background: var(--paper-base);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all .2s ease;
}

.tag-chip:hover,
.sm-tag-pill:hover {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

.sm-tag-title {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   7. Poll widget
   -------------------------------------------------------------------------- */
.poll-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.poll-question {
    font-family: var(--font-reading);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-charcoal);
    margin: 0;
}

.poll-options-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.poll-option-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    background: var(--paper-base);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all .2s ease;
    margin: 0;
}

.poll-option-label:hover {
    border-color: var(--terracotta);
}

.poll-option-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.poll-option-custom {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 2px solid var(--border-refined);
    border-radius: 50%;
    position: relative;
}

.poll-option-label input[type="radio"]:checked + .poll-option-custom {
    border-color: var(--terracotta);
}

.poll-option-label input[type="radio"]:checked + .poll-option-custom::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--terracotta);
}

.poll-option-label input[type="radio"]:focus-visible + .poll-option-custom {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

.poll-option-text {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-charcoal);
}

.btn-poll-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ink-black);
    border: 0;
    cursor: pointer;
    transition: background .2s ease;
}

.btn-poll-vote:hover {
    background: var(--terracotta);
}

.poll-results {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.poll-result-item.user-voted .poll-result-label {
    color: var(--terracotta);
    font-weight: 800;
}

.poll-result-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-charcoal);
    margin-bottom: 6px;
}

.poll-percentage {
    flex: 0 0 auto;
    font-weight: 800;
}

.poll-bar-bg {
    height: 8px;
    background: var(--paper-dark);
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    background: var(--terracotta);
    transition: width .6s ease;
}

.poll-result-item.user-voted .poll-bar-fill {
    background: var(--gold-accent);
}

.poll-footer-meta {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--ink-faint);
    padding-top: 4px;
}

.poll-footer-meta i {
    margin-right: 5px;
}

/* --------------------------------------------------------------------------
   8. Newsletter widget
   -------------------------------------------------------------------------- */
.sidebar-newsletter-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-nl-form {
    margin: 0;
}

.nl-input-wrap {
    display: flex;
    border: 2px solid var(--border-heavy);
    background: var(--paper-surface);
}

.nl-input-wrap input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 13px;
    font-family: var(--font-sans);
    font-size: 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink-black);
}

.btn-nl-submit {
    flex: 0 0 auto;
    width: 46px;
    border: 0;
    background: var(--ink-black);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.btn-nl-submit:hover {
    background: var(--terracotta);
}

.nl-feedback-msg {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.5;
    min-height: 0;
}

.nl-feedback-msg:empty {
    display: none;
}

/* --------------------------------------------------------------------------
   9. Author card, advertisement slot
   -------------------------------------------------------------------------- */
.author-card-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.author-card-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-dark);
    border: 2px solid var(--border-heavy);
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.author-role {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.author-name {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--ink-black);
}

.author-bio {
    font-family: var(--font-reading);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

.author-social-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-refined);
    color: var(--ink-charcoal);
    text-decoration: none;
    transition: all .2s ease;
}

.author-social-link a:hover {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

.ad-card-frame {
    border: 2px solid var(--border-heavy);
    padding: 26px 20px;
    text-align: center;
    background: var(--paper-base);
}

.ad-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 12px;
}

.btn-atelier-outline {
    display: inline-block;
    text-decoration: none;
    color: var(--ink-black);
    background: transparent;
    transition: all .2s ease;
}

.btn-atelier-outline:hover {
    background: var(--ink-black);
    color: #fff;
}

/* --------------------------------------------------------------------------
   10. Table of contents widget
   -------------------------------------------------------------------------- */
.toc-nav-tree {
    max-height: 420px;
    overflow-y: auto;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--border-light);
}

.toc-item a,
.toc-link {
    display: block;
    padding: 7px 0 7px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-muted);
    text-decoration: none;
    transition: all .18s ease;
}

.toc-item a:hover,
.toc-link:hover,
.toc-item.is-active > a {
    color: var(--terracotta);
    border-left-color: var(--terracotta);
}

.toc-item.level-3 a {
    padding-left: 28px;
    font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   11. Article detail furniture
   -------------------------------------------------------------------------- */
.article-breadcrumb-strip {
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.breadcrumb-list a {
    color: var(--ink-muted);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--terracotta);
}

.breadcrumb-list .separator {
    color: var(--ink-faint);
}

.breadcrumb-list .current {
    color: var(--ink-black);
    font-weight: 700;
}

.article-header-deck {
    margin-bottom: 30px;
}

.article-cat-tag {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 14px;
}

.article-cat-tag a {
    color: inherit;
    text-decoration: none;
}

.article-headline {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.14;
    font-weight: 700;
    color: var(--ink-black);
    margin: 0 0 20px;
    letter-spacing: -0.015em;
}

.article-byline-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.byline-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.author-circle-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-dark);
    flex: 0 0 auto;
}

.author-circle-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-name-text {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-black);
}

.author-name-text a {
    color: inherit;
    text-decoration: none;
}

.author-meta-date {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: var(--ink-faint);
}

.byline-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: var(--paper-dark);
}

.article-featured-media {
    margin: 30px 0;
}

.article-featured-media img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--paper-dark);
}

.media-caption {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--ink-faint);
    padding-top: 9px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 9px;
}

.article-share-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 28px;
}

.share-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-refined);
    background: transparent;
    color: var(--ink-charcoal);
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.share-btn:hover {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

.share-btn.twitter:hover  { background: #111317; border-color: #111317; }
.share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.share-btn.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; }

.article-prose-body {
    font-family: var(--font-reading);
    font-size: 18px;
    line-height: 1.78;
    color: var(--ink-charcoal);
}

.article-prose-body p { margin: 0 0 22px; }
.article-prose-body a { color: var(--terracotta); }
.article-prose-body img { max-width: 100%; height: auto; }

.article-prose-body h2,
.article-prose-body h3 {
    font-family: var(--font-serif);
    color: var(--ink-black);
    line-height: 1.24;
    margin: 40px 0 16px;
}

.article-prose-body h2 { font-size: 30px; font-weight: 700; }
.article-prose-body h3 { font-size: 23px; font-weight: 600; }

.article-structured-sections {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.prose-section-block {
    scroll-margin-top: 24px;
}

.section-block-title {
    font-family: var(--font-serif);
    font-size: 29px;
    line-height: 1.24;
    font-weight: 700;
    color: var(--ink-black);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-heavy);
}

.section-image-wrap {
    margin: 0 0 22px;
}

.section-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--paper-dark);
}

.section-prose {
    font-family: var(--font-reading);
    font-size: 18px;
    line-height: 1.78;
    color: var(--ink-charcoal);
}

.section-pull-quote {
    margin: 26px 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--terracotta);
    font-family: var(--font-serif);
    font-size: 22px;
    font-style: italic;
    line-height: 1.45;
    color: var(--ink-black);
}

.section-bullet-points {
    list-style: none;
    margin: 22px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.section-bullet-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-family: var(--font-reading);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-charcoal);
}

.section-bullet-points i {
    color: var(--terracotta);
    font-size: 9px;
    margin-top: 8px;
    flex: 0 0 auto;
}

/* Author sign-off */
.article-author-signoff {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 46px 0;
    padding: 26px;
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--terracotta);
}

.signoff-avatar {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-dark);
}

.signoff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.signoff-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.signoff-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.signoff-name {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    margin: 0;
    color: var(--ink-black);
}

.signoff-bio {
    font-family: var(--font-reading);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-muted);
    margin: 0;
}

/* Previous / next navigation */
.article-prev-next-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 575px) {
    .article-prev-next-nav { grid-template-columns: minmax(0, 1fr); }
}

.prev-card,
.next-card,
.pn-card {
    display: block;
    padding: 20px 22px;
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all .22s ease;
}

.prev-card:hover,
.next-card:hover {
    border-color: var(--border-heavy);
    transform: translateY(-2px);
}

.next-card { text-align: right; }

.pn-card.empty {
    background: transparent;
    border-style: dashed;
    pointer-events: none;
}

.pn-direction {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.pn-title {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.34;
    font-weight: 600;
    color: var(--ink-black);
    margin: 0;
}

/* Related essays */
.related-essays-section {
    margin: 52px 0 0;
    padding-top: 34px;
    border-top: 2px solid var(--border-heavy);
}

.related-essays-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 22px;
}

@media (max-width: 767px) {
    .related-essays-grid { grid-template-columns: minmax(0, 1fr); }
}

.related-card {
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
}

.rel-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--paper-dark);
}

.related-card .rel-title {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.32;
    font-weight: 600;
    margin: 0;
    padding: 14px 16px 6px;
}

.rel-title a {
    color: var(--ink-black);
    text-decoration: none;
}

.rel-title a:hover { color: var(--terracotta); }

.rel-meta {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--ink-faint);
    padding: 0 16px 16px;
}

/* --------------------------------------------------------------------------
   12. Comments
   -------------------------------------------------------------------------- */
.article-comments-section {
    margin: 52px 0 0;
    padding-top: 34px;
    border-top: 2px solid var(--border-heavy);
}

.comments-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0 36px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 18px 20px;
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
}

.comment-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-dark);
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--ink-charcoal);
    overflow: hidden;
}

.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-body { min-width: 0; flex: 1 1 auto; }

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-black);
}

.comment-date {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: var(--ink-faint);
}

.comment-text {
    font-family: var(--font-reading);
    font-size: 15.5px;
    line-height: 1.68;
    color: var(--ink-charcoal);
    margin: 0;
}

.comment-curator-reply {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--paper-base);
    border-left: 3px solid var(--terracotta);
}

.reply-header {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 6px;
}

.no-comments-prompt {
    padding: 30px;
    text-align: center;
    font-family: var(--font-reading);
    font-size: 16px;
    color: var(--ink-muted);
    background: var(--paper-surface);
    border: 1px dashed var(--border-refined);
}

.comment-form-card,
.comment-post-form {
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
    padding: 26px;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ink-black);
}

.form-subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 18px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 575px) {
    .form-row-2 { grid-template-columns: minmax(0, 1fr); }
}

.comment-form-card input[type="text"],
.comment-form-card input[type="email"],
.comment-form-card textarea,
.comment-post-form input[type="text"],
.comment-post-form input[type="email"],
.comment-post-form textarea {
    width: 100%;
    padding: 11px 13px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink-black);
    background: var(--paper-base);
    border: 1px solid var(--border-refined);
    outline: 0;
}

.comment-form-card textarea,
.comment-post-form textarea {
    min-height: 130px;
    resize: vertical;
    font-family: var(--font-reading);
    font-size: 16px;
    line-height: 1.6;
}

.comment-form-card input:focus,
.comment-form-card textarea:focus,
.comment-post-form input:focus,
.comment-post-form textarea:focus {
    border-color: var(--terracotta);
}

.form-row-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-badge {
    padding: 9px 15px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--ink-black);
    background: var(--paper-dark);
    border: 1px dashed var(--border-refined);
}

.captcha-box input {
    max-width: 130px;
}

.btn-submit-comment {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ink-black);
    border: 0;
    cursor: pointer;
    transition: background .2s ease;
}

.btn-submit-comment:hover { background: var(--terracotta); }

/* --------------------------------------------------------------------------
   13. Pagination, empty states, search page
   -------------------------------------------------------------------------- */
.pagination-wrapper,
.pagination-atelier {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.pagination-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pagination-wrapper a,
.pagination-list a,
.pagination-atelier a,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-charcoal);
    background: var(--paper-surface);
    border: 1px solid var(--border-refined);
    text-decoration: none;
    transition: all .2s ease;
}

.pagination-wrapper a:hover,
.pagination-list a:hover,
.pagination-atelier a:hover,
.page-link:hover {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

.pagination-list .active a,
.page-link.is-active,
.page-link.active {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

.no-content-card,
.zero-result-suggestions {
    font-family: var(--font-reading);
}

.static-page-card {
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
    padding: 34px 36px;
    font-family: var(--font-reading);
    font-size: 17.5px;
    line-height: 1.76;
    color: var(--ink-charcoal);
}

.static-page-card img { max-width: 100%; height: auto; }

.search-page-bar-wrap {
    margin-bottom: 30px;
}

.search-page-bar-wrap form {
    display: flex;
    border: 2px solid var(--border-heavy);
    background: var(--paper-surface);
}

.search-page-bar-wrap input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 0;
    outline: 0;
    background: transparent;
}

.search-page-bar-wrap button {
    flex: 0 0 auto;
    padding: 0 22px;
    border: 0;
    background: var(--ink-black);
    color: #fff;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   14. Header language switch
   -------------------------------------------------------------------------- */
.header-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.lang-toggle-link {
    color: var(--ink-faint);
    text-decoration: none;
    transition: color .2s ease;
}

.lang-toggle-link:hover { color: var(--terracotta); }

.lang-active { color: var(--ink-black); }

.lang-divider { color: var(--ink-faint); opacity: .6; }

/* --------------------------------------------------------------------------
   15. Mobile bottom navigation, drawers and search modal
   --------------------------------------------------------------------------
   These are hidden outright above 991px. Without these rules the drawer and
   modal markup rendered as ordinary page content on desktop.
   -------------------------------------------------------------------------- */
.mobile-bottom-nav,
.mobile-drawer,
.mobile-overlay,
.mobile-search-modal {
    display: none;
}

.mb-nav-container {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
}

.mb-nav-container > a,
.mb-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    background: transparent;
    border: 0;
    text-decoration: none;
    color: var(--ink-muted);
    cursor: pointer;
    font-family: var(--font-sans);
}

.mb-icon { font-size: 17px; line-height: 1; }

.mb-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mb-search-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -20px;
    border-radius: 50%;
    background: var(--terracotta);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 5px 16px rgba(192, 74, 38, .4);
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: var(--paper-surface);
        border-top: 1px solid var(--border-refined);
        box-shadow: 0 -3px 18px rgba(17, 19, 23, .08);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    /* Keep the fixed bar from covering the end of the page. */
    body { padding-bottom: 64px; }

    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(17, 19, 23, .55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .28s ease, visibility .28s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        max-height: 82vh;
        background: var(--paper-surface);
        border-top: 3px solid var(--ink-black);
        transform: translateY(101%);
        transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    }

    .mobile-drawer.open { transform: translateY(0); }

    .mobile-search-modal {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index: 1060;
        background: var(--paper-surface);
        border-bottom: 3px solid var(--ink-black);
        transform: translateY(-101%);
        transition: transform .3s ease;
    }

    .mobile-search-modal.open { transform: translateY(0); }
}

.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-light);
}

.drawer-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 3px;
}

.drawer-title h2,
.drawer-title h3,
.drawer-title > span:last-child,
.drawer-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-black);
    margin: 0;
}

.btn-drawer-close,
.btn-search-modal-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-refined);
    background: transparent;
    color: var(--ink-charcoal);
    font-size: 15px;
    cursor: pointer;
}

.drawer-body {
    padding: 16px 20px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.drawer-section + .drawer-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.drawer-section-title {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 12px;
}

.drawer-cat-list,
.drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-cat-list li,
.drawer-nav-list li {
    border-bottom: 1px solid var(--border-light);
}

.drawer-cat-list li:last-child,
.drawer-nav-list li:last-child { border-bottom: 0; }

.drawer-cat-list a,
.drawer-nav-list a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 2px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-charcoal);
    text-decoration: none;
}

.drawer-cat-list a {
    justify-content: space-between;
}

.d-cat-name {
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: 13px;
}

.d-cat-count {
    min-width: 26px;
    padding: 2px 7px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
    background: var(--paper-dark);
}

.drawer-lang-toggle {
    display: flex;
    gap: 10px;
}

.drawer-lang-toggle a,
.drawer-lang-toggle strong {
    flex: 1 1 0;
    text-align: center;
    padding: 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-charcoal);
    border: 1px solid var(--border-refined);
}

.drawer-lang-toggle strong,
.drawer-lang-toggle .lang-active {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

.drawer-insta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-black);
    border: 2px solid var(--border-heavy);
    text-decoration: none;
}

.drawer-insta-btn:hover {
    background: var(--ink-black);
    color: #fff;
}

/* Search modal */
.search-modal-inner { padding: 18px 20px 26px; }

.search-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.search-modal-title {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.search-input-group {
    display: flex;
    border: 2px solid var(--border-heavy);
    background: var(--paper-base);
}

.search-input-group input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 0;
    outline: 0;
    background: transparent;
}

.btn-search-go {
    flex: 0 0 auto;
    padding: 0 20px;
    border: 0;
    background: var(--ink-black);
    color: #fff;
    cursor: pointer;
}

.search-modal-tags { margin-top: 16px; }

/* --------------------------------------------------------------------------
   16. Small shared utilities the templates reference
   -------------------------------------------------------------------------- */
.dispFlex { display: flex; }
.flexend { justify-content: flex-end; }
.mt10 { margin-top: 10px; }
.mb10 { margin-bottom: 10px; }
.pb18 { padding-bottom: 18px; }
.maxw { max-width: 100%; }
.noneBorder { border: 0 !important; }
.noneShadow { box-shadow: none !important; }
.text-small { font-size: 13px; }
.text-extra-dark-gray { color: var(--ink-charcoal); }
.margin-100px-top { margin-top: 100px; }
.margin-5px-left { margin-left: 5px; }
.margin-5px-right { margin-right: 5px; }

@media (max-width: 767px) {
    .margin-100px-top { margin-top: 48px; }
}

/* --------------------------------------------------------------------------
   17. Issue badge (date + issue number in one pill) and header search
   -------------------------------------------------------------------------- */
.strip-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.strip-badge-sep { opacity: .55; }

.strip-badge-issue {
    font-weight: 800;
    letter-spacing: .06em;
}

.nav-search-item { display: flex; align-items: center; }

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-refined);
    background: var(--paper-surface);
    height: 34px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.header-search:focus-within {
    border-color: var(--ink-black);
    box-shadow: 0 0 0 3px rgba(17, 19, 23, .07);
}

.header-search-input {
    width: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--ink-black);
    transition: width .28s ease, padding .28s ease;
}

.header-search:hover .header-search-input,
.header-search:focus-within .header-search-input,
.header-search-input:not(:placeholder-shown) {
    width: 172px;
    padding: 0 10px;
}

.header-search-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--ink-charcoal);
    font-size: 13px;
    cursor: pointer;
}

.header-search-btn:hover { color: var(--terracotta); }

@media (max-width: 1199px) {
    .header-search:hover .header-search-input,
    .header-search:focus-within .header-search-input,
    .header-search-input:not(:placeholder-shown) { width: 130px; }
}

@media (max-width: 991px) {
    /* The mobile bar already carries a dedicated search action. */
    .nav-search-item { display: none; }
}

/* --------------------------------------------------------------------------
   18. Contact form
   -------------------------------------------------------------------------- */
.contact-form-section {
    margin-top: 40px;
    padding-top: 34px;
    border-top: 2px solid var(--border-heavy);
}

.contact-form-head { margin-bottom: 24px; }

.contact-form-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 6px;
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    color: var(--ink-black);
    margin: 0 0 10px;
}

.contact-form-lead {
    font-family: var(--font-reading);
    font-size: 16.5px;
    line-height: 1.66;
    color: var(--ink-muted);
    margin: 0;
}

.contact-flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    border: 2px solid;
}

.contact-flash p { margin: 0 0 4px; }
.contact-flash p:last-child { margin-bottom: 0; }
.contact-flash i { font-size: 17px; margin-top: 1px; }

.contact-flash--success {
    border-color: #1E5128;
    background: #F1FBF3;
    color: #1E5128;
}

.contact-flash--error {
    border-color: #8A0000;
    background: #FFF4F4;
    color: #8A0000;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.contact-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 575px) {
    .contact-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

.contact-field { display: flex; flex-direction: column; gap: 7px; }

.contact-field label {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-charcoal);
    margin: 0;
}

.contact-field .req { color: var(--terracotta); }
.contact-field .opt { font-weight: 600; color: var(--ink-faint); text-transform: none; letter-spacing: 0; }

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink-black);
    background: var(--paper-base);
    border: 1px solid var(--border-refined);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-field textarea {
    font-family: var(--font-reading);
    font-size: 16.5px;
    line-height: 1.65;
    resize: vertical;
    min-height: 160px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--ink-black);
    box-shadow: 0 0 0 3px rgba(17, 19, 23, .07);
}

.contact-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 18px;
}

.contact-captcha-display {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: var(--ink-black);
    user-select: none;
}

.captcha-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 38px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--paper-base);
    background: rgba(255, 255, 255, .07);
    border-bottom: 2px solid var(--gold-accent);
}

.captcha-digit:nth-child(2) { transform: translateY(-2px) rotate(-3deg); }
.captcha-digit:nth-child(3) { transform: translateY(2px) rotate(2.5deg); }
.captcha-digit:nth-child(4) { transform: translateY(-1px) rotate(-1.5deg); }

.contact-captcha-input { flex: 0 0 auto; width: 190px; }
.contact-captcha-input input { letter-spacing: .5em; text-align: center; font-weight: 700; }

.btn-contact-send {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ink-black);
    border: 0;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.btn-contact-send:hover { background: var(--terracotta); transform: translateY(-1px); }

.contact-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--ink-faint);
    margin: 0;
}

@media (max-width: 575px) {
    .contact-captcha-row { align-items: stretch; }
    .contact-captcha-input { width: 100%; }
    .btn-contact-send { width: 100%; justify-content: center; }
}

/* ==========================================================================
   19. MOBILE — compact corporate masthead + refined bottom bar
   --------------------------------------------------------------------------
   Below 992px the desktop masthead (two nav columns around a centred logo)
   collapsed into a stack of wrapped links. It is replaced here by a fixed
   single-line bar: brand on the left, language / search / menu on the right.
   ========================================================================== */

.mobile-masthead { display: none; }

@media (max-width: 991px) {

    /* ---- hide desktop chrome ---- */
    .master-header { display: none !important; }

    .mobile-masthead {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 1030;
        padding: 8px 16px;
        background: var(--paper-surface);
        border-bottom: 1px solid var(--border-refined);
        box-shadow: 0 2px 14px rgba(17, 19, 23, .06);
    }

    .mm-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        text-decoration: none;
    }

    /* The wordmark file is 168x75 but only 153x52 of that is ink - roughly a
       third is transparent padding. Sizing the box by its nominal height made
       the logo read far smaller than it is, so the box is enlarged to bring the
       visible mark up to a normal masthead size. */
    .mm-brand img {
        width: auto;
        height: 52px;
        max-width: 190px;
        flex: 0 0 auto;
        object-fit: contain;
    }

    .mm-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .mm-lang {
        font-family: var(--font-sans);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
        color: var(--ink-charcoal);
        text-decoration: none;
        padding: 8px 10px;
        border: 1px solid var(--border-refined);
        border-radius: 8px;
    }

    .mm-icon-btn {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-refined);
        border-radius: 8px;
        background: var(--paper-base);
        color: var(--ink-charcoal);
        font-size: 15px;
        cursor: pointer;
        transition: background .18s ease, color .18s ease;
    }

    .mm-icon-btn:active { background: var(--ink-black); color: #fff; }

    .mm-burger { background: var(--ink-black); border-color: var(--ink-black); color: #fff; }

    /* ---- top issue strip: one tidy line ---- */
    .top-issue-strip {
        padding: 7px 0;
        font-size: 9.5px;
        letter-spacing: .09em;
    }

    .top-issue-strip .container { padding: 0 16px; }

    .strip-flex {
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
    }

    .strip-flex > div:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* The curator credit and the TR/EN pair live in the masthead on mobile. */
    .strip-flex > div:last-child { display: none !important; }

    .strip-badge { padding: 3px 8px; }

    /* ---- ticker ---- */
    .headline-ticker-bar { padding: 8px 0; }
    .headline-ticker-bar .container { padding: 0 16px; gap: 10px; }
    .ticker-tag { flex: 0 0 auto; font-size: 9.5px; }
    .ticker-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

    /* ---- generous touch targets, calmer rhythm ---- */
    .container { padding: 0 16px; }

    .editorial-twothirds-section,
    .article-page-layout-wrapper { padding: 26px 0 40px; }

    .category-page-masthead { padding: 26px 0; }

    .sidebar-widget { padding: 20px 18px; }

    /* ---- refined bottom bar (corporate, not cramped) ---- */
    .mobile-bottom-nav {
        background: var(--ink-black);
        border-top: 0;
        box-shadow: 0 -6px 24px rgba(17, 19, 23, .28);
    }

    .mb-nav-container > a,
    .mb-nav-item { color: rgba(255, 255, 255, .72); padding: 9px 4px 8px; }

    .mb-nav-container > a:active,
    .mb-nav-item:active { color: #fff; }

    .mb-icon { font-size: 16px; }
    .mb-label { font-size: 9px; letter-spacing: .05em; }

    .mb-search-circle {
        margin-top: -22px;
        width: 46px;
        height: 46px;
        border: 3px solid var(--paper-base);
        box-shadow: 0 6px 18px rgba(192, 74, 38, .45);
    }

    body { padding-bottom: 70px; }

    /* ---- drawers get a rounded, modern sheet look ---- */
    .mobile-drawer {
        border-top: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 40px rgba(17, 19, 23, .3);
    }

    .mobile-drawer::before {
        content: "";
        display: block;
        width: 44px;
        height: 4px;
        border-radius: 4px;
        background: var(--border-refined);
        margin: 10px auto 0;
    }

    .mobile-search-modal { border-bottom: 0; box-shadow: 0 10px 34px rgba(17, 19, 23, .25); }

    .drawer-cat-list a,
    .drawer-nav-list a { padding: 15px 2px; font-size: 15px; }

    /* ---- typography breathing room ---- */
    .hero-main-title, .article-headline { font-size: clamp(27px, 8vw, 38px) !important; line-height: 1.16; }
    .j-card-title { font-size: 20px; }
    .article-prose-body, .section-prose { font-size: 17px; line-height: 1.75; }
}

@media (max-width: 575px) {
    .mm-brand img { height: 46px; max-width: 168px; }
    .top-issue-strip .strip-flex > div:first-child { font-size: 9px; }
    .journal-feed-card { border-width: 1px; }
    .static-page-card { padding: 24px 20px !important; box-shadow: 5px 5px 0 var(--border-heavy) !important; }
}

/* --------------------------------------------------------------------------
   20. Mobile section headers and hero polish
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* The "see the whole archive" link used to be squeezed against a 44px
       serif heading and wrapped into three lines. */
    .section-roof {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
        padding-bottom: 14px;
    }

    .roof-title { font-size: clamp(26px, 8vw, 34px); line-height: 1.14; }
    .roof-sub { font-size: 11px; letter-spacing: .14em; margin-bottom: 4px; }

    .section-roof > a,
    .section-roof .roof-link {
        font-size: 11px;
        letter-spacing: .1em;
        white-space: nowrap;
    }

    .hero-cover-section { padding: 22px 0 8px; }
    .hero-headline-deck { margin-bottom: 18px; }

    .cover-art-frame { box-shadow: 6px 6px 0 var(--border-heavy) !important; }

    .audio-player-pill { flex-wrap: wrap; gap: 10px; }

    .btn-atelier-primary { width: 100%; justify-content: center; text-align: center; }

    .essay-lead-quote { font-size: 18px; line-height: 1.45; }

    .article-byline-bar { gap: 12px; }
    .byline-metrics { width: 100%; }

    .article-share-strip { gap: 10px; }
    .share-btn { width: 40px; height: 40px; }

    .footer-four-col { gap: 26px; }
}

/* --------------------------------------------------------------------------
   21. Human-readable site map
   -------------------------------------------------------------------------- */
.sitemap-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--border-heavy);
}

.sitemap-quick a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-black);
    background: var(--paper-surface);
    border: 1px solid var(--border-refined);
    text-decoration: none;
    transition: all .2s ease;
}

.sitemap-quick a:hover { background: var(--ink-black); border-color: var(--ink-black); color: #fff; }

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

@media (max-width: 1199px) { .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .sitemap-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.sitemap-block {
    background: var(--paper-surface);
    border: 1px solid var(--border-light);
    padding: 22px 22px 20px;
}

.sitemap-block-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-heavy);
}

.sitemap-block-title a { color: var(--ink-black); text-decoration: none; }
.sitemap-block-title a:hover { color: var(--terracotta); }

.sitemap-count {
    flex: 0 0 auto;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    color: var(--ink-muted);
    background: var(--paper-dark);
    padding: 3px 9px;
}

.sitemap-list { list-style: none; margin: 0; padding: 0; }

.sitemap-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-light);
}

.sitemap-list li:last-child { border-bottom: 0; }

.sitemap-list a {
    font-family: var(--font-reading);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink-charcoal);
    text-decoration: none;
}

.sitemap-list a:hover { color: var(--terracotta); }

.sitemap-list time {
    flex: 0 0 auto;
    font-family: var(--font-sans);
    font-size: 10.5px;
    color: var(--ink-faint);
}

.sitemap-empty { font-size: 14px; color: var(--ink-faint); margin: 0; }

/* --------------------------------------------------------------------------
   22. Narration player ("Listen to the monograph")
   -------------------------------------------------------------------------- */
.dn-tts { position: relative; }

.dn-tts .dn-tts-btn {
    border: 0;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform .15s ease, background .2s ease;
}

.dn-tts .dn-tts-btn:hover { transform: scale(1.06); }
.dn-tts .dn-tts-btn:active { transform: scale(.96); }

.dn-tts .dn-tts-title { transition: color .2s ease; }

.dn-tts[data-state="playing"] .dn-tts-title,
.dn-tts[data-state="loading"] .dn-tts-title { color: var(--terracotta); }

.dn-tts[data-state="error"] .dn-tts-title { color: #8A0000; }

.dn-tts-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(17, 19, 23, .10);
    overflow: hidden;
}

.dn-tts-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--terracotta);
    transition: width .25s linear;
}

/* On static pages the pill sits above the prose and needs its own spacing. */
.static-page-card .dn-tts { margin-bottom: 30px; }

/* And inside an article, above the share strip. */
.article-main-column .dn-tts { margin: 26px 0; }

@media (max-width: 575px) {
    .dn-tts { flex-wrap: wrap; gap: 10px; }
    .dn-tts .dn-tts-sub { font-size: 12px; }
}
