/*
Theme Name: The Global Envoy
Author: The Global Envoy
Template: twentytwentyfive
Description: Editorial child theme for The Global Envoy.
Version: 3.4.2
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: newsroom-editorial
*/
@font-face {
    font-family: Roboto;
    src: url('assets/fonts/Roboto.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}
body.tge-editorial {
    --paper: #f8f5d7;
    --ink: #1f1d1a;
    --story-hover: #804023;
    --muted: rgba(31, 29, 26, .78);
    --line: rgba(31, 29, 26, .24);
    --shade: rgba(31, 29, 26, .055);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Roboto, Arial, sans-serif;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.55 var(--sans);
}
.tge-editorial *, .tge-editorial *::before, .tge-editorial *::after { box-sizing: border-box; }
.tge-editorial img, .tge-editorial video { max-width: 100%; height: auto; }
.tge-editorial iframe { max-width: 100%; }
.tge-editorial a { color: inherit; }
.tge-editorial a:hover { color: var(--ink); text-decoration: underline; }
.tge-editorial :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tge-editorial h1, .tge-editorial h2, .tge-editorial h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: normal;
    overflow-wrap: break-word;
}
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.tge-editorial main.wrap { padding-block: 36px 54px; }
.skip, .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip:focus {
    clip-path: none;
    z-index: 100000;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: var(--paper);
}
.masthead { border-top: 3px solid var(--ink); }
.brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding-block: 22px;
}
.edition-date { color: var(--muted); font-size: .83rem; }
.brand { min-width: 0; text-align: center; }
.brand > a {
    display: inline-block;
    font: 700 clamp(2.3rem, 4.8vw, 4.1rem)/1 var(--serif);
    letter-spacing: -.045em;
    text-decoration: none;
}
.brand p { margin: 8px 0 0; font-size: .77rem; letter-spacing: .06em; }
.brand img { display: block; width: auto; max-height: 82px; margin-inline: auto; object-fit: contain; }
.header-search { position: relative; justify-self: end; }
.header-search summary { padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: .84rem; }
.header-search .search-form {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    right: 0;
    padding: 12px;
    width: min(370px, calc(100vw - 32px));
    background: var(--paper);
    border: 1px solid var(--line);
}
.tge-editorial summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.section-nav, .site-footer {
    background: var(--ink);
    color: var(--paper);
}
.tge-editorial :is(.section-nav, .site-footer) a:hover,
.tge-editorial .section-nav .current-menu-item > a { color: var(--paper); }
.tge-editorial :is(.section-nav, .site-footer) :focus-visible { outline-color: var(--paper); }
.nav-list, .footer-links, .latest-list { list-style: none; margin: 0; padding: 0; }
.nav-list, .footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.section-nav .nav-list {
    margin-inline: auto;
    justify-content: center;
    gap: 2px 24px;
    padding: 9px 0;
}
.section-nav .nav-list > li > a { display: block; padding: 4px 0; }
.nav-list a { font-size: .88rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.nav-list a:hover, .nav-list a:focus-visible { text-underline-offset: 4px; }
.nav-list .sub-menu { padding-left: 17px; list-style: none; }
.nav-list .current-menu-item > a { color: var(--ink); text-decoration: underline; }
.listing-layout, .article-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(255px, 300px);
    gap: clamp(24px, 4vw, 54px);
    align-items: start;
}
.home-edition {
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(255px, 1fr);
    column-gap: clamp(22px, 3vw, 40px);
    align-items: start;
}
.home-edition .top-news-heading { grid-column: 1 / -1; }
.home-edition > .top-news-stories,
.home-edition > .sidebar { min-width: 0; }
.home-edition .latest-list li { padding-block: 9px; }
.top-news-lead .story-card { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.top-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    margin-top: 18px;
}
.top-news-grid .story-card {
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding-bottom: 14px;
}
.top-news-grid .card-copy { grid-column: 1 / -1; padding: 0; }
.top-news-grid .media + .card-copy { grid-column: auto; }
.top-news-grid .card-title { font-size: clamp(1.08rem, 1.65vw, 1.38rem); margin-top: 0; }
.media { display: block; overflow: hidden; background: var(--shade); }
.media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.top-news-lead .media img { aspect-ratio: 16 / 9; }
.card-copy { min-width: 0; padding-top: 12px; }
.tge-editorial .story-card .card-title { display: block; width: auto; max-width: none; white-space: normal; }
.card-title { font-size: clamp(1.25rem, 2vw, 1.65rem); margin: 7px 0 8px; }
.top-news-lead .card-title { font-size: clamp(1.65rem, 2.6vw, 2.65rem); text-wrap: pretty; }
.card-title a, .latest-list a { text-decoration: none; }
.tge-editorial :is(.card-title, .latest-list, .story-neighbors) a:hover {
    color: var(--story-hover);
    text-decoration: none;
}
.card-copy p { margin: 7px 0 0; color: var(--muted); }
.kicker { color: var(--ink); font-size: .75rem; font-weight: 800; text-decoration: none; }
.meta { color: var(--muted); font-size: .77rem; }

.story-rail > section { border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.story-rail h2 { margin: 0; padding: 11px 13px; font-size: 1.3rem; }
.rail-latest h2 { background: var(--ink); color: var(--paper); }
.latest-list li + li { border-top: 1px solid var(--line); }
.rail-story {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding-inline: 10px;
}
.story-rail .latest-list li { padding-block: 10px; }
.rail-story img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: cover; }
.rail-story-copy { min-width: 0; }
.rail-story strong { display: block; font: 700 1rem/1.2 var(--serif); overflow-wrap: anywhere; }
.rail-story time { display: block; margin-top: 5px; font-size: .72rem; color: var(--muted); }
.rail-search .search-form { padding: 0 10px 12px; }
.category-desk { margin-top: 30px; }
.section-heading {
    border-top: 2px solid var(--ink);
    padding: 8px 0;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}
.section-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 2rem); }
.section-heading > a { color: var(--ink); white-space: nowrap; }
.desk-edition {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}
.desk-feature { grid-area: 1 / 1; min-width: 0; }
.desk-digest { grid-area: 1 / 2; min-width: 0; }
.desk-edition--single { grid-template-columns: minmax(0, 1fr); }
.desk-edition--single .desk-feature { grid-area: auto; max-width: 640px; }
.desk-feature .media img { aspect-ratio: 16 / 9; }
.desk-feature .card-title { font-size: clamp(1.4rem, 2.2vw, 1.95rem); }
.desk-digest .story-card {
    display: grid;
    grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.desk-digest .story-card + .story-card {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
}
.desk-digest .card-copy { grid-column: 1 / -1; padding-top: 0; }
.desk-digest .media + .card-copy { grid-column: auto; }
.desk-digest .card-title { margin-top: 0; font-size: clamp(1.05rem, 1.65vw, 1.45rem); }
.category-main { min-width: 0; }

.category-masthead {
    padding: 10px 0 13px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.category-masthead h1 { font-size: clamp(1.85rem, 3.5vw, 3.1rem); margin: .12em 0 0; }
.category-masthead .archive-description { max-width: 72ch; }
.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(235px, 27%);
    align-items: start;
    gap: clamp(20px, 3vw, 40px);
}
.category-feature .story-card {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.category-feature .card-copy { grid-column: 1 / -1; padding-top: 0; }
.category-feature .media + .card-copy { grid-column: auto; }
.category-feature .card-title { font-size: clamp(1.45rem, 2.5vw, 2.2rem); margin-top: 0; }
.category-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-block: 24px;
}
.category-feed .story-card { border-bottom: 1px solid var(--line); padding-bottom: 14px; }

.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.listing-layout .story-card {
    display: grid;
    grid-template-columns: minmax(0, 31%) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
}
.listing-layout .card-copy { padding-top: 0; grid-column: 1 / -1; }
.listing-layout .media + .card-copy { grid-column: auto; }
.archive-heading {
    background: var(--shade);
    border-left: 4px solid var(--ink);
    padding: 18px clamp(16px, 3vw, 32px);
    margin-bottom: 24px;
}
.archive-heading .search-form { max-width: 520px; }
.archive-heading h1, .page-main h1, .error-page h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: .2em 0; }
.tge-editorial .single-main .story-intro {
    position: static;
    display: block;
    height: auto;
    max-height: none;
    margin: 0 0 22px;
    text-align: left;
}
.tge-editorial .single-main .story-intro h1 {
    position: static;
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
    white-space: normal;
    font-size: clamp(1.95rem, 3.7vw, 3.3rem);
    margin: .18em 0 .3em;
    max-width: none;
}
.standfirst { font: 1.22rem/1.45 var(--serif); margin: 0 0 16px; color: var(--muted); }
.story-byline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 20px;
    padding-block: 12px;
    border-block: 1px solid var(--line);
}
.share { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; }
.article-body, .entry-content { min-width: 0; overflow-wrap: anywhere; }
.tge-editorial .single-main .article-image { position: static; margin: 0 auto 1.75rem; max-width: 100%; }
.article-image img { display: block; width: auto; height: auto; max-height: 680px; margin-inline: 0; object-fit: contain; }
.article-image figcaption { margin-top: 6px; color: var(--muted); font-size: .8rem; font-style: italic; text-align: left; }
.entry-content { font: clamp(1.07rem, 2vw, 1.2rem)/1.68 var(--serif); }

.entry-content a { color: var(--ink); text-decoration: underline; }
.entry-content .alignwide, .entry-content .alignfull { width: 100%; max-width: 100%; margin-inline: 0; }
.entry-content .wp-block-table, .entry-content pre { overflow-x: auto; }
.entry-content figure { max-width: 100%; }
.entry-content blockquote { margin-inline: 0; border-left: 3px solid var(--ink); padding-left: 1em; }
.page-main .article, .error-page {
    border-top: 2px solid var(--ink);
}
.page-main .article { max-width: 840px; margin-inline: auto; padding-top: 20px; }
.error-page { margin-top: 28px; }
.error-page .search-form { max-width: 500px; }
.error-sections { margin-top: 18px; }
.sidebar > section + section { margin-top: 20px; }
.latest-list h3 { font-size: 1.1rem; margin: 4px 0; }
.section-directory .nav-list { display: grid; gap: 6px; }
.tge-ad { margin: 28px auto; text-align: center; }
.masthead-ad .tge-ad { margin: 16px 0 0; }
.home-main > .tge-ad--wide .tge-ad-image, .masthead-ad .tge-ad--wide .tge-ad-image { max-width: 1120px; }
.tge-ad-label { font-size: .64rem; letter-spacing: .12em; color: var(--muted); margin-bottom: 5px; }
.tge-ad-image { margin-inline: auto; }
.tge-ad--wide .tge-ad-image { max-width: 1800px; }
.tge-ad--rectangle .tge-ad-image { max-width: 300px; }
.tge-ad img { display: block; margin-inline: auto; max-width: 100%; height: auto; }
.search-form { display: flex; align-items: stretch; gap: 6px; }
.search-form label { flex: 1; min-width: 0; }
.tge-editorial input, .tge-editorial textarea { max-width: 100%; font: inherit; }
.search-form input { width: 100%; padding: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.tge-editorial button, .tge-editorial .button {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}
.tge-editorial .button { display: inline-block; margin-block: 12px; text-decoration: none; }
.navigation, .comments, .tags { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.navigation h2 { font-size: 1.3rem; }
.error-number { color: var(--ink); font-weight: 700; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { font: 700 1.35rem var(--serif); text-decoration: none; }
.footer-inner p { margin: 4px 0 0; }
.footer-inner p, .footer-inner nav { font-size: .85rem; }
.story-topics, .story-neighbors { margin-top: 26px; border-top: 2px solid var(--ink); }
.story-topics h2, .story-neighbors h2 { margin: 12px 0; font-size: 1.4rem; }
.story-topics ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.story-topics a { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; text-decoration: none; }
.tge-editorial .story-topics a:hover { color: var(--paper); background: var(--ink); text-decoration: none; }
.story-neighbors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 12px; }
.story-neighbor { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 12px; text-decoration: none; }
.story-neighbor img { width: 68px; height: 54px; object-fit: cover; }
.story-neighbor-copy { min-width: 0; }
.story-neighbor-label { display: block; font-size: .74rem; color: var(--muted); }
.story-neighbor strong { display: block; font: 700 1.05rem/1.2 var(--serif); overflow-wrap: anywhere; }

@media (max-width: 1050px) {
    .top-news-grid .story-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 850px) {
    .wrap { width: calc(100% - 40px); }
    .listing-layout, .article-columns { grid-template-columns: minmax(0, 1fr); }
    .brand-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
    .edition-date { grid-column: 1 / -1; }
    .brand { text-align: left; }
    .brand img { margin-inline: 0; }
    .home-edition { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
    .section-nav { overflow-x: auto; scrollbar-width: thin; }
    .section-nav .nav-list { width: max-content; padding-inline: 16px; flex-wrap: nowrap; }
    .section-nav .nav-list > li { flex: 0 0 auto; white-space: nowrap; }
    .category-layout { grid-template-columns: minmax(0, 1fr); }

}
@media (max-width: 620px) {
    .wrap { width: calc(100% - 32px); }
    .tge-editorial main.wrap { padding-block: 24px 36px; }
    .brand-row { padding-block: 14px; }
    .brand > a { font-size: clamp(1.65rem, 6vw, 2.3rem); overflow-wrap: break-word; }
    .brand img { max-height: 56px; }
    .header-search summary { padding-inline: 7px; }
    .listing-grid, .category-feed, .category-feature .story-card, .desk-edition {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-edition .top-news-heading { margin-bottom: 0; }
    .desk-feature, .desk-digest { grid-area: auto; }
    .desk-edition { gap: 16px; }
    .top-news-lead .card-title { font-size: clamp(1.75rem, 6vw, 2.35rem); }
    .listing-layout .story-card { gap: 12px; }
}

/* Match the breakpoint where the sidebar moves below the main content. */
.tge-mobile-sidebar-ad {
    display: none;
}

@media (max-width: 850px) {
    .tge-mobile-sidebar-ad {
        display: block;
    }

    .tge-desktop-sidebar-ad {
        display: none;
    }
}
