/*
Theme Name: YNOT WAR HAPPENS
Theme URI: https://warhappens.org/
Author: YNOT
Description: WAR HAPPENS military/defense editorial theme converted from the YNOT WAR HAPPENS Redesign plugin. Preserves the original redesign layout, navigation, breaking strip, story cards, archives, and single-post presentation.
Version: 2026.10.02.15.18
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: ynot-war-happens
*/
:root {
    --wh-black: #0b0d0d;
    --wh-charcoal: #151918;
    --wh-panel: #1d2220;
    --wh-paper: #f1f0eb;
    --wh-card: #ffffff;
    --wh-ink: #111412;
    --wh-muted: #6c726d;
    --wh-line: #d6d9d3;
    --wh-steel: #939b96;
    --wh-olive: #596b46;
    --wh-olive-dark: #39462f;
    --wh-red: #b52025;
    --wh-shell: 1380px;
}

html { scroll-behavior: smooth; }
body.ynot-war-happens {
    margin: 0;
    background: var(--wh-paper);
    color: var(--wh-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
}
body.ynot-war-happens *, body.ynot-war-happens *::before, body.ynot-war-happens *::after { box-sizing: border-box; }
body.ynot-war-happens a { color: inherit; text-decoration: none; }
body.ynot-war-happens img { max-width: 100%; height: auto; }
body.ynot-war-happens button, body.ynot-war-happens input { font: inherit; }
.wh-shell { width: min(calc(100% - 40px), var(--wh-shell)); margin-inline: auto; }
.wh-main { min-height: 70vh; }

.wh-site-header { background: var(--wh-black); color: #fff; border-bottom: 1px solid #303632; }
.wh-masthead { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 18px; }
.wh-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 220px; }
.wh-logo { display: block; width: auto; max-width: min(430px, 70vw); max-height: 68px; object-fit: contain; object-position: left center; }
.wh-wordmark { font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(34px, 5vw, 58px); line-height: .9; letter-spacing: .035em; }
.wh-tagline { font-size: 11px; letter-spacing: .18em; color: #9ea5a0; font-weight: 800; }
.wh-header-tools { display: flex; align-items: center; gap: 12px; }
.wh-tool-link, .wh-search-toggle { border: 1px solid #59605c; background: transparent; color: #e5e7e5; padding: 10px 13px; font-size: 12px; font-weight: 850; letter-spacing: .11em; cursor: pointer; }
.wh-tool-link:hover, .wh-search-toggle:hover { background: #222825; border-color: #8d9690; }
.wh-search-panel { background: #111513; border-top: 1px solid #2d332f; padding: 14px 0; }
.wh-search-form { display: flex; gap: 10px; }
.wh-search-form input { flex: 1; min-width: 0; background: #fff; color: #111; border: 0; padding: 13px 14px; }
.wh-search-form button { border: 0; background: var(--wh-olive); color: #fff; font-weight: 900; letter-spacing: .08em; padding: 0 20px; cursor: pointer; }

.wh-nav { border-top: 1px solid #272c29; background: #101311; }
.wh-nav__inner { display: flex; align-items: stretch; gap: 0; overflow: visible; }
.wh-nav a, .wh-nav__drop > button { display: flex; align-items: center; min-height: 46px; border: 0; background: transparent; color: #c9ceca; padding: 0 14px; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 11px; font-style: normal; font-weight: 900; letter-spacing: .09em; white-space: nowrap; cursor: pointer; }
.wh-nav__drop > button { -webkit-appearance: none; appearance: none; text-transform: none; }
.wh-nav a:hover, .wh-nav__drop > button:hover { background: #202522; color: #fff; }
.wh-nav__drop { position: relative; }
.wh-nav__drop > button span { margin-left: 6px; color: #818a84; }
.wh-nav__menu { display: none; position: absolute; z-index: 40; left: 0; top: 100%; min-width: 190px; background: #171b19; border: 1px solid #333a36; box-shadow: 0 15px 30px rgba(0,0,0,.35); }
.wh-nav__drop:hover .wh-nav__menu, .wh-nav__drop.is-open .wh-nav__menu { display: block; }
.wh-nav__menu a { min-height: 40px; border-bottom: 1px solid #282e2a; }

.wh-breaking { background: #232725; color: #fff; border-bottom: 1px solid #353b37; }
.wh-breaking__inner { min-height: 43px; display: flex; align-items: stretch; overflow: hidden; }
.wh-breaking__label { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding-right: 18px; font-size: 11px; font-weight: 950; letter-spacing: .13em; color: #fff; }
.wh-breaking__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wh-red); box-shadow: 0 0 0 4px rgba(181,32,37,.18); }
.wh-breaking__track { flex: 1; min-width: 0; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.wh-breaking__track::-webkit-scrollbar { display: none; }
.wh-breaking__track a { position: relative; flex: 0 0 auto; padding: 0 19px; color: #dfe2e0; font-size: 12px; white-space: nowrap; }
.wh-breaking__track a::after { content: ""; position: absolute; right: 0; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #6c746f; transform: translateY(-50%); }
.wh-breaking__track a:hover { color: #fff; text-decoration: underline; }

.wh-home-intro { padding-top: 26px; }
.wh-home-intro h1 { margin: 0; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -.015em; font-weight: 950; }

.wh-lead { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); gap: 22px; padding-block: 18px 6px; }
.wh-lead__main, .wh-lead__side { min-width: 0; }
.wh-lead__side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.wh-section-label { display: inline-block; margin-bottom: 10px; padding: 5px 9px; background: var(--wh-olive-dark); color: #fff; font-size: 10px; font-weight: 950; letter-spacing: .16em; }

.wh-card { min-width: 0; }
.wh-card__media { position: relative; display: block; overflow: hidden; background: #252a27; aspect-ratio: 16/9; }
.wh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s ease, opacity .28s ease; }
.wh-card:hover .wh-card__media img { transform: scale(1.025); opacity: .93; }
.wh-card__media--empty { background: linear-gradient(135deg, #1a1f1c, #4c554f); }
.wh-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #9fa69f; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(20px, 4vw, 42px); letter-spacing: .08em; }
.wh-play { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(11,13,13,.88); color: #fff; font-size: 16px; text-indent: 2px; border: 1px solid rgba(255,255,255,.55); }
.wh-card__shade { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.76)); }
.wh-card__body { padding-top: 11px; }
.wh-kicker { color: var(--wh-olive-dark); font-size: 10px; line-height: 1.35; font-weight: 950; letter-spacing: .105em; text-transform: uppercase; }
.wh-kicker span { padding-inline: 4px; color: #9ba09c; }
.wh-card__title { margin: 6px 0 0; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-size: clamp(18px, 1.65vw, 25px); line-height: 1.08; letter-spacing: -.015em; font-weight: 900; }
.wh-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wh-card__summary { margin: 9px 0 0; color: #5f665f; font-size: 14px; line-height: 1.5; }

.wh-card--hero { position: relative; background: #0c0f0d; color: #fff; }
.wh-card--hero .wh-card__media { aspect-ratio: 16/8.3; }
.wh-card--hero .wh-card__body { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 26px 28px 24px; pointer-events: none; }
.wh-card--hero .wh-card__title { max-width: 900px; margin-top: 7px; font-size: clamp(32px, 4.1vw, 62px); line-height: .98; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.wh-card--hero .wh-card__title a { pointer-events: auto; }
.wh-card--hero .wh-card__summary { max-width: 820px; color: #e2e6e3; font-size: 15px; text-shadow: 0 1px 6px #000; }
.wh-card--hero .wh-kicker { color: #e2e7e3; }
.wh-card--hero .wh-play { top: 18px; right: 18px; bottom: auto; left: auto; width: 48px; height: 48px; }

.wh-card--side { border-bottom: 1px solid var(--wh-line); padding-bottom: 14px; }
.wh-card--side .wh-card__title { font-size: clamp(16px, 1.25vw, 20px); }
.wh-card--side .wh-play { width: 32px; height: 32px; left: 10px; bottom: 10px; font-size: 12px; }

.wh-section { padding-block: 34px 8px; }
.wh-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 4px solid var(--wh-charcoal); padding-top: 10px; margin-bottom: 17px; }
.wh-section__head h2 { margin: 0; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-size: clamp(24px, 2.3vw, 34px); line-height: 1; letter-spacing: .025em; font-weight: 950; }
.wh-section__head > a, .wh-section__head > span { color: #6d746f; font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.wh-section__head > a:hover { color: var(--wh-olive-dark); }
.wh-grid { display: grid; gap: 24px 18px; }
.wh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wh-grid .wh-card { border-bottom: 1px solid var(--wh-line); padding-bottom: 19px; }
.wh-grid--4 .wh-card__title { font-size: clamp(17px, 1.45vw, 22px); }
.wh-more { padding-top: 21px; text-align: right; }
.wh-more a { display: inline-block; border: 1px solid #aab0ac; padding: 10px 13px; color: #343a36; font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.wh-more a:hover { color: #fff; background: var(--wh-olive-dark); border-color: var(--wh-olive-dark); }

.wh-archive-head { padding-top: 36px; padding-bottom: 7px; }
.wh-archive-head h1 { margin: 0; max-width: 1000px; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-size: clamp(44px, 7vw, 88px); line-height: .92; letter-spacing: -.025em; }
.wh-archive-description { max-width: 780px; margin-top: 15px; color: #5c645d; font-size: 16px; }
.wh-section--archive { padding-top: 20px; }
.wh-pagination { margin: 40px 0; }
.wh-pagination ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.wh-pagination a, .wh-pagination span { display: grid; min-width: 38px; min-height: 38px; place-items: center; padding: 5px 10px; background: #fff; border: 1px solid #ccd0cc; font-size: 11px; font-weight: 900; }
.wh-pagination .current { background: var(--wh-olive-dark); border-color: var(--wh-olive-dark); color: #fff; }
.wh-empty { padding: 70px 0; text-align: center; }

.wh-article { max-width: 1120px; padding-top: 42px; }
.wh-article__header { max-width: 1020px; margin-bottom: 25px; }
.wh-article__header h1 { margin: 7px 0 0; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-size: clamp(42px, 6.6vw, 82px); line-height: .96; letter-spacing: -.027em; font-weight: 950; }
.wh-article__content { max-width: 980px; font-size: 17px; line-height: 1.68; }
.wh-article__content > p, .wh-article__content > blockquote, .wh-article__content > ul, .wh-article__content > ol { max-width: 790px; }
.wh-article__content iframe, .wh-article__content .wp-block-embed, .wh-article__content .wp-block-video { width: 100%; max-width: 980px; }
.wh-article__content iframe { aspect-ratio: 16/9; height: auto; background: #000; border: 0; }
.wh-article__content .wp-block-embed__wrapper { position: relative; }
.wh-article__content hr { border: 0; border-top: 1px solid #cdd1cd; margin: 28px 0; }
.wh-article__content blockquote { margin-left: 0; padding: 16px 20px; border-left: 4px solid var(--wh-olive); background: #e7e7e0; color: #343a36; }
.wh-article__content a { color: #344b27; text-decoration: underline; text-underline-offset: 2px; }
.wh-article__footer { max-width: 980px; margin-top: 34px; padding-top: 18px; border-top: 1px solid #c9cdc9; }
.wh-topic-list { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 10px; letter-spacing: .09em; }
.wh-topic-list strong { margin-right: 4px; }
.wh-topic-list a { padding: 6px 8px; background: #dfe2dd; }
.wh-topic-list a:hover { background: var(--wh-olive-dark); color: #fff; }
.wh-related, .wh-discussion { margin-top: 48px; }
.wh-discussion { max-width: 980px; }
.wh-discussion input[type="text"], .wh-discussion input[type="email"], .wh-discussion input[type="url"], .wh-discussion textarea { width: 100%; max-width: 700px; padding: 11px; border: 1px solid #bfc4bf; background: #fff; }
.wh-discussion input[type="submit"] { border: 0; background: var(--wh-olive-dark); color: #fff; padding: 11px 16px; font-weight: 900; cursor: pointer; }

.wh-footer { margin-top: 60px; background: #0c0f0d; color: #fff; border-top: 5px solid var(--wh-olive-dark); }
.wh-footer__inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wh-footer strong { display: block; font-family: Impact, "Arial Narrow", sans-serif; font-size: 28px; letter-spacing: .04em; }
.wh-footer span, .wh-footer__meta { color: #8d9690; font-size: 10px; letter-spacing: .11em; }

@media (max-width: 1100px) {
    .wh-nav__inner { overflow-x: auto; scrollbar-width: thin; }
    .wh-lead { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); }
    .wh-lead__side { grid-template-columns: 1fr; }
    .wh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .wh-shell { width: min(calc(100% - 24px), var(--wh-shell)); }
    .wh-masthead { min-height: 88px; gap: 12px; }
    .wh-logo { max-height: 52px; }
    .wh-tagline { font-size: 8px; letter-spacing: .12em; }
    .wh-header-tools { gap: 6px; }
    .wh-tool-link, .wh-search-toggle { padding: 8px; font-size: 9px; }
    .wh-nav a, .wh-nav__drop > button { min-height: 41px; padding-inline: 11px; font-size: 9px; }
    .wh-breaking__label { padding-right: 10px; font-size: 9px; }
    .wh-breaking__track a { padding-inline: 12px; font-size: 11px; }
    .wh-home-intro { padding-top: 18px; }
    .wh-home-intro h1 { font-size: clamp(27px, 8vw, 36px); }
    .wh-lead { grid-template-columns: 1fr; padding-top: 14px; }
    .wh-lead__side { grid-template-columns: 1fr 1fr; }
    .wh-card--hero .wh-card__media { aspect-ratio: 4/3; }
    .wh-card--hero .wh-card__body { padding: 18px; }
    .wh-card--hero .wh-card__title { font-size: clamp(29px, 9vw, 45px); }
    .wh-card--hero .wh-card__summary { display: none; }
    .wh-grid--3, .wh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wh-section { padding-top: 27px; }
    .wh-section__head { align-items: center; }
    .wh-section__head > span { display: none; }
    .wh-article { padding-top: 28px; }
    .wh-article__header h1 { font-size: clamp(38px, 12vw, 60px); }
    .wh-footer__inner { flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 520px) {
    .wh-header-tools .wh-tool-link { display: none; }
    .wh-search-form { flex-direction: column; }
    .wh-search-form button { padding: 11px; }
    .wh-lead__side, .wh-grid--3, .wh-grid--4 { grid-template-columns: 1fr; }
    .wh-card--side { display: grid; grid-template-columns: 42% 1fr; gap: 12px; }
    .wh-card--side .wh-card__body { padding-top: 0; }
    .wh-card--side .wh-card__title { font-size: 17px; }
    .wh-section__head h2 { font-size: 24px; }
    .wh-archive-head h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wh-card__media img { transition: none; }
}

/* Native theme comments support (the redesign plugin previously inherited this from its host theme). */
.wh-discussion .comment-list { list-style: none; margin: 20px 0; padding: 0; }
.wh-discussion .comment-list .comment { margin: 0 0 18px; padding: 16px; border: 1px solid var(--wh-line); background: #fff; }
.wh-discussion .comment-meta { font-size: 12px; color: var(--wh-muted); }
.wh-discussion .comment-content { margin-top: 10px; }
