/*
Theme Name: Moco Inc Theme
Theme URI: https://moco.inc
Author: Moco Inc
Author URI: https://moco.inc
Description: MoCo (Momentum Collective) — embedded business development for independent agencies. Built to MoCo Brand Standards v3.
Version: 3.0.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moco-inc-theme
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   MoCo Brand v3
   --------------------------------------------------------------------------
   Navy is home. 80 navy / 15 cream / 5 signal.
   One signal colour per surface. Everything skews. Nothing is round.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
    /* Palette — do not add to this list */
    --navy:   #0B1530;
    --navy2:  #141F42;
    --navy3:  #1E2A55;
    --navy4:  #2C3A6E;
    --cream:  #EDECE4;
    --cream2: #D6D5CB;
    --red:    #FF2E3E;   /* signal · PROMOTE  */
    --blue:   #2B5CFF;   /* signal · PROSPECT */
    --yellow: #F5E400;   /* signal · PITCH · default CTA */
    --mute:   #9AA3C4;

    --ink-cream-2: #6A6A5E;

    /* Type */
    --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --size-display:  clamp(3.5rem, 7.5vw, 8rem);
    --size-headline: clamp(2.5rem, 5vw, 4rem);
    --size-sub:      clamp(1.5rem, 2.6vw, 2rem);
    --size-body:     clamp(1.0625rem, 0.95rem + 0.35vw, 1.1875rem);
    --size-small:    0.875rem;
    --size-eyebrow:  0.75rem;

    /* Rhythm */
    --gap:          24px;
    --block-gap:    56px;
    --section-pad:  56px 72px;
    --measure:      57ch;

    /* Surface contract — every component reads these, never raw palette.
       Default surface is navy. .on-cream flips the whole contract. */
    --surface:    var(--navy);
    --surface-2:  var(--navy2);
    --ink:        var(--cream);
    --ink-2:      var(--mute);
    --line:       var(--navy3);
    --card:       var(--navy2);
    --card-line:  var(--navy3);
    --signal:     var(--yellow);
    --on-signal:  var(--navy);
    --link-hover: var(--yellow);

    --slash-base: var(--line);
    --slash-live: var(--signal);

    /* Progress slash fill, 0-5. Set per instance: style="--progress:3" */
    --progress: 0;
}

.on-cream {
    --surface:    var(--cream);
    --surface-2:  #F5F4EE;
    --ink:        var(--navy);
    --ink-2:      var(--ink-cream-2);
    --line:       var(--cream2);
    --card:       #F5F4EE;
    --card-line:  var(--cream2);
    --link-hover: var(--blue);
}

/* Signal assignment. One per surface — never combine two on one block. */
.sig-promote  { --signal: var(--red);    --on-signal: var(--navy); }
.sig-prospect { --signal: var(--blue);   --on-signal: var(--cream); }
.sig-pitch    { --signal: var(--yellow); --on-signal: var(--navy); }

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--navy);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: var(--size-body);
    font-weight: 400;
    line-height: 1.5;
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* No radius anywhere. No shadows. No gradients. Scoped to the page so the
   WP admin bar and customizer chrome keep their own styling. */
#page, #page *, #page *::before, #page *::after {
    border-radius: 0 !important;
    box-shadow: none !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
a:hover, a:focus { color: var(--link-hover); }

:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: var(--block-gap) 0;
}

::selection { background: var(--yellow); color: var(--navy); }

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

.site { overflow-x: clip; }

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; color: var(--ink); }

/* Display — Archivo 900 Italic, uppercase. Every headline leans. */
h1, .display {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: var(--size-display);
    line-height: 0.89;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
}

h2, .headline {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: var(--size-headline);
    line-height: 0.95;
    letter-spacing: -0.03em;
    max-width: 16ch;
    overflow-wrap: break-word;
}

h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
}

h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* Emphasis inside headlines takes the signal — yellow on navy, blue on cream. */
h1 em, h2 em, .display em, .headline em {
    font-style: italic;
    font-weight: inherit;
    color: var(--yellow);
}
.on-cream h1 em, .on-cream h2 em,
.on-cream .display em, .on-cream .headline em { color: var(--blue); }

p { margin: 0 0 1.25em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* Body is never italic. */
p em, li em, p i, li i { font-style: italic; }

ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; max-width: var(--measure); }
li { margin-bottom: 0.5em; }

blockquote { margin: 0 0 1.25em; padding: 0; }

.eyebrow, .section-eyebrow, .ed-section-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: normal;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.2;
    color: var(--ink-2);
    margin: 0 0 20px;
    max-width: none;
}

.lead, .lead-text {
    font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
    line-height: 1.45;
    color: var(--ink);
    max-width: var(--measure);
}

.small, .caption {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--size-small);
    color: var(--ink-2);
}

.num, .stat__value {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: normal;
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.num--signal, .stat__value--signal { color: var(--signal); }

/* ==========================================================================
   4. The slash — five bars, skewX(-30deg), always leaning right
   --------------------------------------------------------------------------
   Drawn with a repeating gradient so a single element carries all five bars.
   Bar 6px / gap 5px / height 16px = 50px wide. Scale with --sl-scale.
   ========================================================================== */

.sl {
    --sl-scale: 1;
    display: block;
    flex: none;
    width: calc(50px * var(--sl-scale));
    height: calc(16px * var(--sl-scale));
    transform: skewX(-30deg);
    background-image: repeating-linear-gradient(
        90deg,
        var(--slash-base) 0 calc(6px * var(--sl-scale)),
        transparent      calc(6px * var(--sl-scale)) calc(11px * var(--sl-scale))
    );
}

/* Live stripe: four neutral bars + one signal bar naming the page's P. */
.sl--live {
    background-image:
        linear-gradient(var(--slash-live), var(--slash-live)),
        repeating-linear-gradient(
            90deg,
            var(--slash-base) 0 calc(6px * var(--sl-scale)),
            transparent      calc(6px * var(--sl-scale)) calc(11px * var(--sl-scale))
        );
    background-size: calc(6px * var(--sl-scale)) 100%, auto;
    background-position: 100% 0, 0 0;
    background-repeat: no-repeat, repeat;
}

/* Accelerate: bars grow left to right (10,14,18,24,32 @ 8px gaps). Heroes only. */
.sl--accelerate {
    width: calc(130px * var(--sl-scale));
    height: calc(30px * var(--sl-scale));
    background-image: linear-gradient(
        90deg,
        var(--slash-base) 0 7.69%,  transparent 7.69% 13.85%,
        var(--slash-base) 13.85% 24.62%, transparent 24.62% 30.77%,
        var(--slash-base) 30.77% 44.62%, transparent 44.62% 50.77%,
        var(--slash-base) 50.77% 69.23%, transparent 69.23% 75.38%,
        var(--slash-live) 75.38% 100%
    );
}

.sl--lg { --sl-scale: 1.5; }
.sl--sm { --sl-scale: 0.75; }

/* Slash rule — replaces every hr / divider. Last bar takes the signal. */
.slash-rule, .content-separator, .ed-divider, .error-404-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: var(--block-gap) 0;
    max-width: none;
}
.slash-rule::before, .content-separator::before,
.ed-divider::before, .error-404-divider::before {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--line);
}
.slash-rule::after, .content-separator::after,
.ed-divider::after, .error-404-divider::after {
    content: '';
    flex: none;
    width: 50px;
    height: 16px;
    transform: skewX(-30deg);
    background-image:
        linear-gradient(var(--yellow), var(--yellow)),
        repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px);
    background-size: 6px 100%, auto;
    background-position: 100% 0, 0 0;
    background-repeat: no-repeat, repeat;
}

/* Section header pattern: [number] — slash rule — [section name] */
.section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.section-head__num, .section-head__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-2);
    flex: none;
}
.section-head__rule { flex: 1 1 auto; height: 1px; background: var(--line); }

/* Corner mark — slash bleeding off the right edge of a composition. */
.slash-bleed {
    position: absolute;
    right: 0;
    pointer-events: none;
    transform: translateX(18%) skewX(-30deg);
    opacity: 0.9;
}

/* ==========================================================================
   5. Components — everything skews 12°, text stays upright
   --------------------------------------------------------------------------
   The skew lives on a ::before backdrop, so the label needs no counter-skew
   and no extra markup (content authored in the block editor gets it free).
   ========================================================================== */

.btn,
.btn-primary,
.cta-text a,
.wp-block-button__link,
.blog-recent__link,
.ed-pagination a,
.blog-pagination .page-numbers {
    position: relative;
    z-index: 0;
    display: inline-block;
    padding: 16px 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--on-signal);
    background: none;
    border: 0;
    transition: color 0.18s ease;
}

.btn::before,
.btn-primary::before,
.cta-text a::before,
.wp-block-button__link::before,
.blog-recent__link::before,
.ed-pagination a::before,
.blog-pagination .page-numbers::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: skewX(-12deg);
    background: var(--signal);
    transition: background 0.18s ease, outline-color 0.18s ease;
}

.btn:hover, .btn-primary:hover,
.cta-text a:hover,
.wp-block-button__link:hover,
.blog-recent__link:hover,
.ed-pagination a:hover,
.blog-pagination .page-numbers:hover { color: var(--on-signal); }

.btn:hover::before, .btn-primary:hover::before,
.cta-text a:hover::before,
.wp-block-button__link:hover::before,
.blog-recent__link:hover::before,
.ed-pagination a:hover::before,
.blog-pagination .page-numbers:hover::before { background: var(--ink); }

.btn:hover, .btn-primary:hover,
.cta-text a:hover { color: var(--surface); }

/* Ghost — transparent with a 1px outline in the surface ink. */
.btn--ghost { color: var(--ink); }
.btn--ghost::before {
    background: transparent;
    outline: 1px solid var(--ink);
    outline-offset: -1px;
}
.btn--ghost:hover { color: var(--surface); }
.btn--ghost:hover::before { background: var(--ink); outline-color: var(--ink); }

/* Chips */
.chip {
    position: relative;
    z-index: 0;
    display: inline-block;
    padding: 8px 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--ink);
}
.chip::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: skewX(-12deg);
    background: var(--navy3);
}
.on-cream .chip::before { background: var(--cream2); }

.chip--promote  { color: var(--navy); }
.chip--promote::before  { background: var(--red); }
.chip--prospect { color: var(--cream); }
.chip--prospect::before { background: var(--blue); }
.chip--pitch    { color: var(--navy); }
.chip--pitch::before    { background: var(--yellow); }

/* Cards */
.card {
    background: var(--card);
    outline: 1px solid var(--card-line);
    outline-offset: -1px;
    padding: 28px;
}
.card__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--ink);
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.stat__label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-2);
    margin-top: 8px;
}

/* Progress — five-slash scale, 0–5, filled left to right */
.progress { display: flex; align-items: center; gap: 16px; }
.progress__label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
}
.progress__bar {
    --sl-scale: 1.667;   /* 10 x 18px bars */
    flex: none;
    width: 90px;
    height: 18px;
    transform: skewX(-30deg);
    background-image:
        linear-gradient(var(--signal), var(--signal)),
        repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
    background-size: calc(var(--progress, 0) * 18px - 8px) 100%, auto;
    background-position: 0 0, 0 0;
    background-repeat: no-repeat, repeat;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    margin-bottom: var(--block-gap);
}
th {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-2);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
td:not(:first-child), th:not(:first-child) { text-align: right; }

/* ==========================================================================
   6. Site header
   ========================================================================== */

.site-header {
    background: var(--navy);
    border-bottom: 1px solid var(--navy3);
    position: relative;
    z-index: 50;
}

.header-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--gap);
}

.header-left  { display: flex; align-items: center; gap: 28px; justify-self: start; }
.header-right { display: flex; align-items: center; gap: 20px; justify-self: end; }

.header-link,
.main-navigation a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1;
    color: var(--cream);
    white-space: nowrap;
}
.header-link:hover,
.main-navigation a:hover { color: var(--yellow); }

/* Branding — cream/white lockup on navy is the primary lockup. */
.site-branding { justify-self: center; display: flex; align-items: center; }
.site-branding a { display: block; line-height: 0; }

.site-logo,
.custom-logo {
    width: 190px;      /* brand minimum for the full lockup is 180px */
    height: auto;
    display: block;
}

.site-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
    color: var(--cream);
}

/* Mobile toggle — three bars borrowed from the slash mark */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 0;
}
.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 4px;
    background: var(--cream);
    transform: skewX(-30deg);
    transition: background 0.18s ease;
}
.menu-toggle:hover .menu-toggle-icon { background: var(--yellow); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon:last-child { background: var(--yellow); }

/* ==========================================================================
   7. Navigation
   ========================================================================== */

/* The desktop header is left links + centred lockup + CTA. The Primary Menu
   duplicates those, so it only ever appears as the mobile drawer (below). */
.main-navigation { display: none; }
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: none;
}
.main-navigation li { position: relative; margin: 0; }
.main-navigation a { display: block; padding: 6px 0; }

.main-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--yellow);
    transform: skewX(-30deg);
    transition: width 0.22s ease;
}
.main-navigation > ul > li > a:hover::after { width: 100%; }

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--navy2);
    outline: 1px solid var(--navy3);
    outline-offset: -1px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-navigation .sub-menu a { padding: 12px 20px; white-space: nowrap; }
.main-navigation .sub-menu a:hover { background: var(--navy3); color: var(--yellow); }
.main-navigation .sub-menu a::after { display: none; }

/* Work is a stub page — keep it out of every menu. */
#primary-menu a[href*='/work/'],
.main-navigation a[href*='/work/'],
nav a[href*='/work/'],
#primary-menu li:has(a[href*='/work/']),
.main-navigation li:has(a[href*='/work/']),
.menu-item-15,
#menu-item-15,
.header-link[href*='work'] { display: none !important; }

/* ==========================================================================
   8. Content shell
   ========================================================================== */

.site-content { min-height: 60vh; }

.site-main { padding: 0; }

.entry-content > *:first-child { margin-top: 0; }

/* Sections alternate navy / cream. Navy is home. */
.section {
    padding: var(--section-pad);
    background: var(--surface);
    color: var(--ink);
}
.section--cream { background: var(--cream); color: var(--navy); }

/* ==========================================================================
   9. Hero banner
   ========================================================================== */

.hero-banner {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    padding: clamp(64px, 9vw, 128px) 24px clamp(56px, 8vw, 112px);
}

/* Accelerate slash bleeding off the right edge — heroes only, never the left. */
.hero-banner::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: clamp(28px, 5vw, 64px);
    width: clamp(160px, 22vw, 300px);
    height: clamp(36px, 5vw, 68px);
    transform: translateX(14%) skewX(-30deg);
    background-image: linear-gradient(
        90deg,
        var(--navy3) 0 7.69%,     transparent 7.69% 13.85%,
        var(--navy3) 13.85% 24.62%, transparent 24.62% 30.77%,
        var(--navy3) 30.77% 44.62%, transparent 44.62% 50.77%,
        var(--navy3) 50.77% 69.23%, transparent 69.23% 75.38%,
        var(--yellow) 75.38% 100%
    );
    pointer-events: none;
}

.hero-banner__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
}

/* No measure here: `ch` on this element resolves against the inherited body
   font (DM Sans ~18px), not the display size on .hero-quote__text, which
   collapsed the quote to a ~350px column. The measure belongs on the text. */
.hero-quote { margin: 0; max-width: none; }

.hero-quote__text {
    font-family: var(--font-display);
    font-weight: 900;
    /* Italic like every other headline — emphasis is carried by colour. */
    font-style: italic;
    /* Quotes are full sentences, not three-word display lines — they get
       their own scale so the hero stays one screen. */
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 0.9;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: var(--cream);
    margin: 0 0 28px;
    max-width: min(920px, 100%);
    text-wrap: balance;
}

/* Emphasis in the quote is authored as <em>. Brand: yellow on navy. */
.hero-quote__text em { font-style: italic; color: var(--yellow); }

/* Fallback classes for hero-quote.js, which is not currently enqueued. */
.quote-word-italic  { font-style: italic; }
.quote-word-regular { font-style: normal; }

.hero-quote__author {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-style: normal;
    font-size: var(--size-small);
    letter-spacing: 0.02em;
    color: var(--mute);
}

.hero-banner__logo { width: 190px; margin-bottom: 32px; }

.hero-banner__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: var(--size-display);
    line-height: 0.89;
    letter-spacing: -0.035em;
    color: var(--cream);
    margin: 0 0 20px;
}

.hero-banner__tagline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
}

/* ==========================================================================
   10. Site footer
   ========================================================================== */

.site-footer {
    background: var(--navy);
    border-top: 1px solid var(--navy3);
    padding: 56px 0 40px;
    color: var(--cream);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--gap);
    margin-bottom: 40px;
}
.footer-widgets .widget-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
    margin-bottom: 16px;
}
.footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.footer-widgets a:hover { color: var(--yellow); }

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo { width: 190px; }

.footer-tagline {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 0;
    max-width: 18ch;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--size-small);
    color: var(--mute);
}
.footer-contact a { color: var(--cream); }
.footer-contact a:hover { color: var(--yellow); }

.site-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--navy3);
}
.site-info p {
    margin: 0;
    max-width: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
}
.site-info a:hover { color: var(--yellow); }

/* Slash mark sits in the footer, per brand. */
.footer-mark { width: 44px; opacity: 0.9; }

/* ==========================================================================
   11. Blog index — template-blog.php
   ========================================================================== */

.blog-page { padding: var(--block-gap) 0 calc(var(--block-gap) * 1.5); }

.blog-hero-section {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    padding-bottom: var(--block-gap);
    margin-bottom: var(--block-gap);
    border-bottom: 1px solid var(--navy3);
}

.blog-hero { position: relative; display: block; }
.blog-hero__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-hero__content { padding-top: 24px; }

.blog-hero__category,
.blog-card__category,
.cnn-link__label,
.news-tag {
    position: relative;
    z-index: 0;
    display: inline-block;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--on-signal);
}
.blog-hero__category::before,
.blog-card__category::before,
.cnn-link__label::before,
.news-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: skewX(-12deg);
    background: var(--signal);
}

.blog-hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 0;
    max-width: 18ch;
}
.blog-hero:hover .blog-hero__title { color: var(--yellow); }

/* Sidebar */
.blog-sidebar { border-left: 1px solid var(--navy3); padding-left: 32px; }
.blog-sidebar__title,
.blog-recent__title,
.news-section-title,
.cnn-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
    margin: 0 0 24px;
    max-width: none;
}
.blog-sidebar__posts { display: flex; flex-direction: column; gap: 20px; }
.blog-sidebar__item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--navy3);
}
.blog-sidebar__item:last-child { border-bottom: 0; padding-bottom: 0; }
.blog-sidebar__item-image { width: 84px; aspect-ratio: 1; object-fit: cover; }
.blog-sidebar__item-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.9375rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin: 0;
}
.blog-sidebar__item:hover .blog-sidebar__item-title { color: var(--yellow); }

/* Recent header */
.blog-recent { padding-top: 8px; }
.blog-recent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    margin-bottom: 32px;
}
.blog-recent__header .blog-recent__title { margin: 0; }

/* Grid + cards */
.blog-grid,
.cnn-more__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.blog-card {
    background: var(--navy2);
    outline: 1px solid var(--navy3);
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    transition: outline-color 0.18s ease;
}
.blog-card:hover { outline-color: var(--navy4); }
.blog-card__link { display: flex; flex-direction: column; height: 100%; }
.blog-card__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card__content { padding: 28px; display: flex; flex-direction: column; flex: 1; }

.blog-card__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin: 0 0 12px;
}
.blog-card:hover .blog-card__title { color: var(--yellow); }

.blog-card__excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--mute);
    margin: 0 0 20px;
    max-width: none;
}

.blog-card__meta,
.entry-meta,
.ed-meta,
.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--navy3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mute);
}
.blog-card__author { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.blog-card__avatar { width: 26px; height: 26px; object-fit: cover; }
.blog-card__date, .blog-card__reading-time { color: var(--navy4); }

/* Pagination */
.blog-pagination,
.ed-pagination,
.news-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: calc(var(--block-gap) * 1.2);
}
.blog-pagination .page-numbers.current { color: var(--navy); }
.blog-pagination .page-numbers.current::before { background: var(--cream); }
.blog-pagination .page-numbers.dots { padding: 16px 6px; color: var(--navy4); }
.blog-pagination .page-numbers.dots::before { display: none; }

.no-posts {
    padding: var(--block-gap) 0;
    color: var(--mute);
    text-align: center;
}

/* ==========================================================================
   12. Editorial index — template-blog-editorial.php
   --------------------------------------------------------------------------
   Three columns: lead story (widest), secondary card + text links, rail.
   The __img wrappers are <div>s around the thumbnail, so the crop has to
   live on the wrapper and the <img> fills it.
   ========================================================================== */

.cnn-exact { padding: var(--block-gap) 0 calc(var(--block-gap) * 1.5); }
.cnn-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

.cnn-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 2.2fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;
}

/* Shared crop for the three image wrappers */
.cnn-main-hero__img,
.cnn-mid-card__img,
.cnn-right-card__img {
    width: 100%;
    overflow: hidden;
    background: var(--navy2);
}
.cnn-main-hero__img  { aspect-ratio: 16 / 9;  margin-bottom: 20px; }
.cnn-mid-card__img   { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.cnn-right-card__img { aspect-ratio: 16 / 10; margin-bottom: 14px; }

.cnn-main-hero__img img,
.cnn-mid-card__img img,
.cnn-right-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left column — the lead story, then labelled links */
.cnn-left { border-right: 1px solid var(--navy3); padding-right: 32px; }

.cnn-main-hero { display: block; margin-bottom: 36px; }
.cnn-main-hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(1.625rem, 2.4vw, 2.375rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 0;
    max-width: none;
    overflow-wrap: break-word;
}
.cnn-main-hero:hover .cnn-main-hero__title { color: var(--yellow); }

.cnn-left-links { display: flex; flex-direction: column; gap: 0; }
.cnn-link {
    display: block;
    padding: 20px 0;
    border-top: 1px solid var(--navy3);
}
.cnn-link__label { margin-bottom: 12px; }
.cnn-link__text {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.9375rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--cream);
    overflow-wrap: break-word;
}
.cnn-link:hover .cnn-link__text { color: var(--yellow); }

/* Middle column — one card, then a two-up list of headlines */
.cnn-mid-card { display: block; margin-bottom: 32px; }
.cnn-mid-card__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin: 0;
    max-width: none;
}
.cnn-mid-card:hover .cnn-mid-card__title { color: var(--yellow); }

.cnn-mid-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--gap);
    padding-top: 8px;
}
/* .cnn-text-only is the anchor itself, not a wrapper. */
.cnn-text-only {
    display: block;
    padding: 18px 0;
    border-top: 1px solid var(--navy3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--mute);
    overflow-wrap: break-word;
}
.cnn-text-only:hover { color: var(--yellow); }

/* Right rail */
.cnn-right-col {
    border-left: 1px solid var(--navy3);
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.cnn-right-card { display: block; padding-bottom: 24px; border-bottom: 1px solid var(--navy3); }
.cnn-right-card:last-child { border-bottom: 0; padding-bottom: 0; }
.cnn-right-card__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.9375rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin: 0;
    max-width: none;
}
.cnn-right-card:hover .cnn-right-card__title { color: var(--yellow); }

/* ==========================================================================
   13. Single post / default page — index.php
   ========================================================================== */

.content-area { padding: var(--block-gap) 0 calc(var(--block-gap) * 1.5); }

.page-header, .entry-header { margin-bottom: 40px; }

.page-title, .entry-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 0 0 20px;
    max-width: 20ch;
}

.entry-meta { margin: 0 0 32px; border-top: 0; padding-top: 0; }
.entry-meta a:hover { color: var(--yellow); }

.post-thumbnail { margin-bottom: 40px; }
.post-thumbnail img { width: 100%; object-fit: cover; }

.entry-content { color: var(--cream); }
/* :where() keeps this at single-class specificity so the skewed button rules
   in §5 (.cta-text a, .btn, .wp-block-button__link) still win inside content. */
.entry-content :where(a) { color: var(--cream); border-bottom: 2px solid var(--yellow); }
.entry-content :where(a):hover { color: var(--yellow); border-bottom-color: var(--cream); }
.entry-content h2 {
    font-size: clamp(1.625rem, 2.6vw, 2.25rem);
    line-height: 1.0;
    max-width: 22ch;
    margin: var(--block-gap) 0 20px;
}
.entry-content h3 {
    font-size: 1.375rem;
    margin: 40px 0 16px;
}
.entry-content img { margin-block: 32px; }

.entry-content blockquote {
    padding-left: 28px;
    border-left: 4px solid var(--yellow);
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: clamp(1.375rem, 2.4vw, 1.875rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--cream);
    margin-block: 40px;
}
.entry-content blockquote p { max-width: none; }

.entry-footer {
    margin-top: var(--block-gap);
    padding-top: 24px;
    border-top: 1px solid var(--navy3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mute);
}
.cat-links a:hover, .tags-links a:hover { color: var(--yellow); }

.read-more { color: var(--yellow); font-weight: 700; }
.read-more:hover { color: var(--cream); }

.page-links {
    margin-top: 32px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
}

.no-results, .not-found { padding: var(--block-gap) 0; }

/* ==========================================================================
   14. 404
   ========================================================================== */

.error-404-page {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: var(--navy);
    padding: clamp(64px, 9vw, 120px) 24px clamp(56px, 8vw, 104px);
}

/* Oversized watermark, barely there. */
.error-404-page::before {
    content: '404';
    position: absolute;
    top: 50%;
    right: -2%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: clamp(14rem, 34vw, 32rem);
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: var(--navy2);
    pointer-events: none;
    z-index: 0;
}

.error-404-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1192px;
    margin-inline: auto;
}

.error-404-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
    margin-bottom: 20px;
}

.error-404-headline {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: var(--size-display);
    line-height: 0.89;
    letter-spacing: -0.035em;
    color: var(--cream);
    margin: 0 0 12px;
    max-width: 14ch;
}

.error-404-subtitle {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: var(--size-sub);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--yellow);
    margin: 0 0 32px;
    max-width: 22ch;
}

.error-404-message { color: var(--mute); max-width: var(--measure); }
.error-404-message p { margin-bottom: 1em; }
.error-404-message .quote {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 24px 0;
    max-width: 24ch;
}

/* Three routes back — cards, not buttons. */
.error-404-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    margin: 48px 0 0;
    max-width: 900px;
}
.error-404-nav-item {
    display: block;
    background: var(--navy2);
    outline: 1px solid var(--navy3);
    outline-offset: -1px;
    padding: 28px;
    transition: outline-color 0.18s ease;
}
.error-404-nav-item:hover { outline-color: var(--yellow); }
.error-404-nav-item h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--cream);
    margin: 0 0 10px;
}
.error-404-nav-item:hover h3 { color: var(--yellow); }
.error-404-nav-item p {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
    margin: 0;
    max-width: none;
}

.error-404-recent { margin-top: calc(var(--block-gap) * 1.3); }
.error-404-recent h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mute);
    margin: 0 0 20px;
    max-width: none;
}
.error-404-recent-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.error-404-recent-list li { border-top: 1px solid var(--navy3); margin: 0; }
.error-404-recent-list li:last-child { border-bottom: 1px solid var(--navy3); }
.error-404-recent-list a {
    display: block;
    padding: 18px 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.0625rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--cream);
}
.error-404-recent-list a:hover { color: var(--yellow); }

@media (max-width: 900px) {
    .error-404-nav { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   15. WordPress core classes
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
}
.screen-reader-text:focus {
    clip-path: none;
    height: auto;
    width: auto;
    padding: 16px 22px;
    background: var(--yellow);
    color: var(--navy);
    z-index: 1000;
    top: 8px;
    left: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.alignleft  { float: left;  margin: 0 32px 24px 0; }
.alignright { float: right; margin: 0 0 24px 32px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }

.wp-caption { margin-bottom: 24px; }
.wp-caption-text, figcaption {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--size-small);
    color: var(--mute);
    margin-top: 10px;
}

.sticky, .gallery-caption, .bypostauthor { display: block; }

/* Social sharing plugin — flattened to brand */
.simplesocialbuttons, .simplesocialbuttons_inline { margin: 32px 0 !important; }
.simplesocialbuttons .simplesocial-round-icon,
.simplesocialbuttons a { border-radius: 0 !important; box-shadow: none !important; }

/* ==========================================================================
   16. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    :root { --section-pad: 48px 40px; }

    .blog-hero-section { grid-template-columns: minmax(0, 1fr); }
    .blog-sidebar { border-left: 0; border-top: 1px solid var(--navy3); padding-left: 0; padding-top: 32px; }

    .blog-grid, .cnn-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .cnn-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .cnn-left { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--navy3); padding-bottom: 32px; }
    .cnn-right-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--navy3); padding-top: 32px; }
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .header-container { grid-template-columns: auto 1fr auto; padding: 16px 24px; }
    .header-left { display: none; }
    .site-branding { justify-self: start; }

    /* Mobile drawer. navigation.js toggles .active; .show kept for safety. */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy2);
        border-top: 1px solid var(--navy3);
        border-bottom: 1px solid var(--navy3);
        padding: 12px 24px 20px;
    }
    .main-navigation.active,
    .main-navigation.show { display: block; }
    .main-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-navigation li { border-bottom: 1px solid var(--navy3); }
    .main-navigation li:last-child { border-bottom: 0; }
    .main-navigation a { padding: 16px 0; }
    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        outline: 0;
        padding: 0 0 8px 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 40px 24px;
        --block-gap: 40px;
        /* Display type steps down on phones — still display-scale, but a
           128px cap leaves ~6 characters a line at 390px. */
        --size-display:  clamp(2.75rem, 10vw, 3.75rem);
        --size-headline: clamp(2rem, 8vw, 2.75rem);
        --size-sub:      clamp(1.375rem, 5.5vw, 1.625rem);
    }

    .site-logo, .custom-logo, .hero-banner__logo, .footer-logo { width: 180px; }

    /* The lockup's 180px brand minimum takes half a phone's width, so the
       header CTA has no room to sit on one line. It fits without overflow,
       but it wraps and crowds the bar — and "Contact Us" is already the
       last item in the drawer, one tap away. */
    .site-header .btn-primary { display: none; }

    .hero-quote__text { font-size: clamp(1.875rem, 7.5vw, 2.5rem); max-width: 100%; }

    .blog-grid, .cnn-more__grid, .cnn-mid-links { grid-template-columns: minmax(0, 1fr); }

    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-contact { text-align: left; }

    .site-info { flex-direction: column; align-items: flex-start; }

    .alignleft, .alignright { float: none; margin: 0 0 24px; }

    .entry-content blockquote { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
