/*
Theme Name: ZHP Newsroom
Description: An original editorial theme for Zero Hour Patriots.
Version: 1.0.2
Requires at least: 6.3
Requires PHP: 7.4
Author: Zero Hour Patriots
Text Domain: zhp-newsroom
*/

@font-face {
    font-family: Barlow Condensed;
    src: url(assets/fonts/barlow-condensed-700.woff2) format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Barlow Condensed;
    src: url(assets/fonts/barlow-condensed-800.woff2) format("woff2");
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: Source Sans 3;
    src: url(assets/fonts/source-sans-3.woff2) format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: Source Serif 4;
    src: url(assets/fonts/source-serif-4.woff2) format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: Source Serif 4;
    src: url(assets/fonts/source-serif-4-italic.woff2) format("woff2");
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f6f3ed;
    --surface: #fffdf9;
    --ink: #101a2a;
    --muted: #535b69;
    --line: #d9d5ca;
    --navy: #0e192b;
    --red: #ae272d;
    --signal: #ff665f;
    --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: "Source Sans 3", system-ui, sans-serif;
    --serif: "Source Serif 4", Georgia, serif;
    --gutter: clamp(16px, 4.2vw, 60px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.5 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1; font-family: var(--heading); text-wrap: pretty; }
:focus-visible { outline: 2px solid #2469c3; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.screen-reader-text:not(:focus) {
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

.zhp-wrap { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; }
.zhp-skip {
    position: fixed;
    inset: 12px auto auto 12px;
    padding: 10px 16px;
    z-index: 1000;
    background: var(--surface);
    color: var(--ink);
}

.zhp-masthead {
    background: radial-gradient(ellipse at 50% 120%, #243c5e 0%, #101e34 49%, #0a1322 90%);
    color: #fff;
}
.zhp-masthead-inner {
    min-height: 126px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}
.zhp-edition {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
    color: #c0ccdc;
}
.zhp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-self: center;
    text-decoration: none;
}
.zhp-brand-icon {
    display: block;
    width: clamp(44px, 6vw, 68px);
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px #080f20);
}
.zhp-brand-type { display: grid; justify-items: start; gap: 7px; }
.zhp-brand-name {
    font: 800 clamp(32px, 4.4vw, 63px)/.85 var(--heading);
    letter-spacing: -.016em;
    text-transform: uppercase;
    white-space: nowrap;
}
.zhp-brand-name strong { color: var(--signal); font-weight: inherit; }
.zhp-brand-tag {
    color: #c0ccdc;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .23em;
    text-transform: uppercase;
}
.zhp-tip {
    justify-self: end;
    color: #f8f9ff;
    border: 1px solid #52637b;
    padding: 9px 14px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    font-size: 14px;
    white-space: nowrap;
}
.zhp-tip span { color: var(--signal); margin-inline-start: 4px; }
.zhp-tip:hover { background: #263857; }
.zhp-masthead :focus-visible { outline-color: var(--signal); }

.zhp-nav-shell { position: relative; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
.zhp-nav-inner { display: flex; align-items: stretch; justify-content: space-between; }
.zhp-navigation { min-width: 0; }
.zhp-menu {
    display: flex;
    gap: clamp(16px, 2.9vw, 40px);
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}
.zhp-menu a, .zhp-search summary {
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
}
.zhp-menu a::after {
    position: absolute;
    inset: auto 0 -1px;
    background: var(--red);
    height: 3px;
    content: "";
    opacity: 0;
}
.zhp-menu a:hover, .zhp-menu .current-menu-item > a, .zhp-menu .current-menu-ancestor > a { color: var(--red); }
.zhp-menu .current-menu-item > a::after, .zhp-menu .current-menu-ancestor > a::after { opacity: 1; }
.zhp-menu a:focus-visible, .zhp-search summary:focus-visible { outline-offset: -3px; }
.zhp-search { flex: 0 0 auto; position: relative; }
.zhp-search summary { padding-inline: 17px 4px; gap: 9px; list-style: none; cursor: pointer; }
.zhp-search summary::-webkit-details-marker { display: none; }
.zhp-search summary:hover, .zhp-search[open] summary { color: var(--red); }
.zhp-search-icon {
    display: inline-block;
    position: relative;
    width: 13px;
    height: 13px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
    margin-inline-end: 3px;
}
.zhp-search-icon::after {
    position: absolute;
    width: 7px;
    height: 1.7px;
    background: currentColor;
    bottom: -2px;
    right: -5px;
    transform: rotate(45deg);
    content: "";
}
.zhp-search-panel {
    position: absolute;
    inset: calc(100% + 1px) 0 auto auto;
    width: min(360px, calc(100vw - var(--gutter) * 2));
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px #131d3026;
}
.zhp-search-form { display: flex; width: min(100%, 420px); }
.zhp-search-form label { flex: 1 1 auto; min-width: 0; }
.zhp-search-form input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #8d929a;
    border-inline-end: 0;
    background: #fff;
    color: var(--ink);
}
.zhp-search-form button { border: 1px solid var(--navy); background: var(--navy); color: #fff; padding-inline: 14px; font-weight: 700; }
.zhp-search-form button:hover { background: #233958; }

.zhp-home, .zhp-listing, .zhp-single { padding-block-start: 34px; padding-block-end: 24px; }
.zhp-front-head, .zhp-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 19px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}
.zhp-front-head h1, .zhp-section-heading h2, .zhp-listing-head h1 {
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.015em;
}
.zhp-front-head h1 { font-size: clamp(37px, 4.1vw, 57px); }
.zhp-front-head h1::before, .zhp-section-heading h2::before {
    display: inline-block;
    vertical-align: .105em;
    width: .11em;
    height: .64em;
    margin-inline-end: .21em;
    background: var(--red);
    content: "";
}
.zhp-inline-link {
    color: var(--red);
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
}
.zhp-inline-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.zhp-inline-link span { margin-inline-start: .2em; }

.zhp-front-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 20px; }
.zhp-front-grid-single { grid-template-columns: minmax(0, 830px); }
.zhp-lead {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(475px, 42vw, 560px);
    align-items: end;
    overflow: hidden;
    color: #fff;
    background: var(--navy);
}
.zhp-lead > .zhp-story-image, .zhp-lead > .zhp-story-image::after {
    position: absolute;
    z-index: -1;
    inset: 0;
}
.zhp-lead > .zhp-story-image::after {
    z-index: 0;
    background: linear-gradient(180deg, #09122100 22%, #09122139 40%, #091221ea 73%, #0a1322 100%);
    content: "";
}
.zhp-lead .zhp-story-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.zhp-lead-text {
    width: min(100%, 760px);
    padding: clamp(23px, 3.15vw, 47px);
}
.zhp-category {
    display: inline-block;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.15;
    text-decoration: none;
    text-transform: uppercase;
}
.zhp-category:hover { text-decoration: underline; text-underline-offset: .18em; }
.zhp-lead .zhp-category { color: #fff; background: #a32329; padding: 6px 9px 5px; }
.zhp-lead h2 {
    margin: 9px 0 10px;
    font-size: clamp(40px, 4.06vw, 60px);
    font-weight: 800;
    line-height: .98;
}
.zhp-lead h2 a, .zhp-latest h3 a, .zhp-card :is(h2,h3) a { text-decoration: none; }
.zhp-lead h2 a:hover { text-decoration: underline; text-decoration-thickness: .035em; text-underline-offset: .09em; }
.zhp-lead p { margin: 0 0 14px; color: #e5e8ef; line-height: 1.37; max-width: 62ch; }
.zhp-lead-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; color: #d1d8e3; font-size: 14px; }
.zhp-lead-link { border-inline-start: 1px solid #a8afc27a; padding-inline-start: 15px; color: #fff; font-weight: 750; text-decoration: none; }
.zhp-lead-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.zhp-lead-link span { color: var(--signal); margin-inline-start: .25em; }
.zhp-lead :focus-visible { outline-color: var(--signal); }

.zhp-latest {
    display: flex;
    flex-direction: column;
    padding: 20px clamp(19px, 2.25vw, 32px) 10px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    background: var(--surface);
}
.zhp-latest h2 {
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(34px, 3.5vw, 44px);
    letter-spacing: -.015em;
}
.zhp-latest-list { flex: 1 1 auto; display: grid; grid-auto-rows: 1fr; list-style: none; margin: 14px 0 0; padding: 0; }
.zhp-latest-list li { display: flex; flex-direction: column; justify-content: center; padding-block: 11px; border-top: 1px solid var(--line); }
.zhp-latest-meta, .zhp-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; }
.zhp-latest-meta time, .zhp-card-meta time { color: var(--muted); font-size: 13px; line-height: 1.1; }
.zhp-latest h3 { margin: 5px 0 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.02; font-weight: 700; }
.zhp-latest h3 a:hover, .zhp-card :is(h2,h3) a:hover { color: var(--red); }

.zhp-coverage { margin-top: clamp(34px, 5vw, 66px); }
.zhp-section-heading h2 { font-size: clamp(33px, 3.6vw, 47px); }
.zhp-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.zhp-card { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.zhp-card > .zhp-story-image { display: block; aspect-ratio: 16 / 9; background: #22324a; overflow: hidden; }
.zhp-card > .zhp-story-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zhp-card-body { padding: 14px 17px 19px; }
.zhp-card :is(h2,h3) { margin: 7px 0 0; font-size: clamp(25px, 2.7vw, 36px); line-height: 1.02; font-weight: 700; }

.zhp-listing { min-height: 55vh; }
.zhp-listing-head { border-bottom: 1px solid var(--line); padding-block: 11px 20px; margin-bottom: 20px; }
.zhp-listing-head h1 { font-size: clamp(40px, 7vw, 76px); overflow-wrap: anywhere; }
.zhp-listing-head .zhp-search-form { margin-top: 18px; }
.zhp-archive-description { max-width: 70ch; }
.zhp-not-found .zhp-listing-head { border: 0; }
.zhp-wrap .pagination { margin-top: 28px; }
.zhp-wrap .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.zhp-wrap .page-numbers {
    min-width: 42px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    font-weight: 700;
}
.zhp-wrap .page-numbers.current, .zhp-wrap a.page-numbers:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.zhp-single { --story-width: 850px; --body-width: 690px; }
.zhp-article, .zhp-comments, .zhp-related { width: min(100%, var(--story-width)); margin-inline: auto; }
.zhp-article-head { margin-block: 4px 28px; }
.zhp-article-head .zhp-category {
    border-inline-start: 3px solid currentColor;
    padding-inline-start: 8px;
    font-size: 14px;
}
.zhp-article-head h1 {
    margin: 9px 0 16px;
    font-size: clamp(44px, 5.8vw, 82px);
    letter-spacing: -.015em;
    line-height: .99;
    font-weight: 800;
}
.zhp-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 15px; color: var(--muted); }
.zhp-article-meta span a { color: var(--ink); font-weight: 700; text-decoration: none; }
.zhp-article-meta span a:hover { text-decoration: underline; }
.zhp-article-meta time { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.zhp-article-meta .zhp-inline-link { margin-inline-start: auto; }
.zhp-prose, .zhp-story-tags { width: min(100%, var(--body-width)); margin-inline: auto; }
.zhp-prose { font: 400 clamp(17px, 1.55vw, 20px)/1.68 var(--serif); overflow-wrap: anywhere; }
.zhp-prose > :first-child { margin-top: 0; }
.zhp-prose :is(h2,h3,h4) { color: var(--ink); font-family: var(--heading); line-height: 1.08; }
.zhp-prose h2 { font-size: 1.9em; }
.zhp-prose h3 { font-size: 1.55em; }
.zhp-prose a { color: var(--red); text-underline-offset: .16em; }
.zhp-prose :is(iframe, video) { max-width: 100%; }
.zhp-prose table { display: block; overflow-x: auto; }
.zhp-prose blockquote { margin-inline: 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--red); }
.zhp-story-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.zhp-story-tags a { padding: 3px 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; }
.zhp-story-tags a:hover { color: var(--red); }
.zhp-related, .zhp-comments { margin-top: clamp(34px, 5vw, 56px); border-top: 1px solid var(--line); }
.zhp-related h2, .zhp-native-comments h2 { margin: 13px 0; font-size: 36px; font-weight: 800; }
.zhp-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.zhp-related li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.zhp-related a { font: 700 24px/1.08 var(--heading); text-decoration: none; }
.zhp-related a:hover { color: var(--red); }
.zhp-related time { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.zhp-comments { padding-block-start: 18px; }
.zhp-native-comments label { display: block; }
.zhp-native-comments textarea { width: 100%; }

.zhp-theme .fzf {
    --fzf-bg: var(--navy);
    --fzf-bg2: #0a1322;
    --fzf-accent: #be333a;
    --fzf-accent2: #85a9ed;
    background: var(--fzf-bg);
    font-family: var(--body);
}
.zhp-theme .fzf-accent { height: 4px; background: var(--fzf-accent); }
.zhp-theme .fzf-wrap { width: min(100% - var(--gutter) * 2, 1280px); max-width: none; padding-inline: 0; }
.zhp-theme .fzf-cta { border-radius: 0; font-family: var(--body); font-size: 15px; }
.zhp-theme .fzf .fzf-h { font-family: var(--body) !important; }
.zhp-footer { margin-top: 48px; padding-block: 32px; background: var(--navy); color: #fff; }
.zhp-footer-title { font: 800 32px var(--heading); text-decoration: none; }
.zhp-footer ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0; padding: 0; list-style: none; }

@media (max-width: 1040px) {
    .zhp-masthead-inner { grid-template-columns: 1fr auto 1fr; min-height: 108px; gap: 15px; }
    .zhp-edition { font-size: 11px; }
}

@media (max-width: 800px) {
    .zhp-masthead-inner { display: flex; justify-content: center; min-height: 93px; }
    .zhp-edition, .zhp-tip { display: none; }
    .zhp-nav-inner { width: 100%; padding-inline-end: var(--gutter); }
    .zhp-navigation { overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter) 10px; }
    .zhp-navigation::-webkit-scrollbar { display: none; }
    .zhp-menu a::after { bottom: 0; }
    .zhp-search::before { position: absolute; inset: 10px auto 10px 0; border-inline-start: 1px solid var(--line); content: ""; pointer-events: none; }
    .zhp-front-grid { grid-template-columns: minmax(0, 1fr); }
    .zhp-latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
    .zhp-latest-list li { justify-content: start; }
    .zhp-latest h3 { font-size: 28px; }
    .zhp-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .zhp-brand { gap: 8px; }
    .zhp-brand-type { gap: 6px; }
    .zhp-brand-tag { font-size: 8.5px; letter-spacing: .18em; }
    .zhp-menu { gap: 18px; }
    .zhp-menu a { font-size: 14px; min-height: 46px; }
    .zhp-search summary { min-height: 46px; padding-inline: 16px 6px; }
    .zhp-search-label { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }
    .zhp-home, .zhp-listing, .zhp-single { padding-block-start: 22px; }
    .zhp-front-head { align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; }
    .zhp-front-head .zhp-inline-link { font-size: 13px; white-space: nowrap; }
    .zhp-front-head h1 { font-size: clamp(32px, 9.7vw, 43px); }
    .zhp-lead { min-height: 0; display: block; }
    .zhp-lead > .zhp-story-image { display: block; position: relative; z-index: 0; aspect-ratio: 4 / 2.65; }
    .zhp-lead > .zhp-story-image::after { background: linear-gradient(180deg, transparent 65%, var(--navy)); }
    .zhp-lead-text { position: relative; padding: 19px 17px 20px; }
    .zhp-lead > .zhp-story-image + .zhp-lead-text { margin-top: -24px; padding-top: 0; }
    .zhp-lead h2 { font-size: clamp(36px, 10vw, 47px); }
    .zhp-lead p { font-size: 15.5px; }
    .zhp-latest-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
    .zhp-latest-list li { padding-block: 12px; }
    .zhp-latest h3 { font-size: 27px; }
    .zhp-card-grid { gap: 12px; }
    .zhp-card-body { padding: 10px 9px 13px; }
    .zhp-card-meta { gap: 4px 7px; }
    .zhp-card-meta .zhp-category, .zhp-card-meta time { font-size: 11px; }
    .zhp-card :is(h2,h3) { font-size: 23px; }
    .zhp-article-head { margin-bottom: 18px; }
    .zhp-article-head h1 { font-size: clamp(39px, 10.5vw, 58px); }
    .zhp-article-meta { column-gap: 9px; }
    .zhp-article-meta time { padding-inline-start: 9px; }
    .zhp-article-meta .zhp-inline-link { margin-inline-start: 0; }
    .zhp-related ul { grid-template-columns: minmax(0, 1fr); }
}
