/* ==========================================================================
   TCM Theme -- main.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS custom properties
   -------------------------------------------------------------------------- */
:root {
    --navy:       #142639;
    --gold:       #F0CE7D;
    --gold-dark:  #e2b44c;
    --electric:   #2e8bff;
    --cream:      #faf8f4;
    --white:      #ffffff;
    --muted:      rgba(255,255,255,0.45);
    --navy-light: rgba(20,38,57,0.04);

    --font-head: 'Archivo', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* THE button box — the ONE place the site-wide standard size is defined.
       main.css and funnel.css both reference these (with matching fallbacks),
       so a future resize is a single edit here. */
    --tcm-btn-h:  38px;
    --tcm-btn-w:  152px;
    --tcm-btn-fs: 13px;

    --max-w: 1200px;
    --max-prose: 760px;
    --nav-h: 68px;
    --gap: 2rem;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.mono    { font-family: var(--font-mono); }
.muted   { color: var(--muted); }
.prose   { max-width: var(--max-prose); }

/* Eyebrow label */
.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
/* ONE button size site-wide (matches the funnel .btn): every gold + navy
   button is the same fixed box; .btn.wide fills its container. Long labels
   ellipsize instead of resizing the box. */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: var(--tcm-btn-fs, 13px);
    height: var(--tcm-btn-h, 38px); width: var(--tcm-btn-w, 152px); max-width: 100%;
    padding: 0 12px; box-sizing: border-box;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn.wide { width: 100%; }

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-navy-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-navy-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Size modifiers neutralized — the box is one size site-wide (use .wide for full-width). */
.btn-lg, .btn-sm { font-size: var(--tcm-btn-fs, 13px); height: var(--tcm-btn-h, 38px); width: var(--tcm-btn-w, 152px); padding: 0 12px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    height: var(--nav-h);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.5rem;
    gap: 1rem;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none !important;
    flex-shrink: 0;
}
.shield-mark {
    width: 36px;
    height: 36px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}
.logo-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    color: var(--white);
    letter-spacing: 0.03em;
}

/* Primary nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 0.25rem; align-items: center; }
.nav-list li a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    padding: 0.4rem 0.6rem;
    letter-spacing: 0.005em;
    transition: color 0.15s;
    text-decoration: none !important;
    white-space: nowrap;
}
/* Hover/active = gold (never white-on-navy, never disappear). */
.nav-list li a:hover,
.nav-list li.current-menu-item a { color: var(--gold); }
/* Production dropdown (desktop hover / keyboard focus) */
.nav-list li.has-children { position: relative; }
.nav-list li.has-children > a::after { content: " \25BE"; font-size: 10px; opacity: 0.55; }
.nav-list .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #142639; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
    padding: 6px 0; margin: 0; list-style: none; box-shadow: 0 18px 50px rgba(0,0,0,0.35); z-index: 60;
    /* Opacity/visibility toggle (not display) so we can give a 1/4s grace period
       on close — the cursor can cross the gap to the submenu without it bobbling
       shut. Opens instantly; hide waits .25s then fades. */
    opacity: 0; visibility: hidden;
    transition: opacity .13s ease .25s, visibility 0s linear .38s;
}
.nav-list li.has-children:hover .sub-menu,
.nav-list li.has-children:focus-within .sub-menu {
    opacity: 1; visibility: visible;
    transition: opacity .13s ease, visibility 0s;
}
.nav-list .sub-menu li a { display: block; padding: 8px 16px; font-size: 14.5px; color: rgba(255,255,255,0.82); }
.nav-list .sub-menu li a:hover { background: rgba(255,255,255,0.06); color: var(--gold); }
/* Mobile: submenu shown inline, indented (no hover) */
.mobile-nav-list .sub-menu {
    list-style: none; margin: 0.75rem 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.9rem;
}
.mobile-nav-list .sub-menu li a { font-size: 15px; opacity: 0.82; }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-shrink: 0;
}
.welcome-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}
.nav-text-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--muted);
    text-decoration: none !important;
}
.nav-text-link:hover { color: var(--white); text-decoration: none; }

/* Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    margin-left: auto;
}
.ham-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s, opacity 0.2s;
}

/* Mobile overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.mobile-nav-overlay.is-open { display: flex; }
.mobile-nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--white);
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 1.25rem; text-align: center; }
.mobile-nav-list li a {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none !important;
}
.mobile-nav-actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* --------------------------------------------------------------------------
   Hero bands
   -------------------------------------------------------------------------- */
.archive-hero,
.single-hero,
.hero-band,
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 3.5rem;
}

.archive-hero h1,
.single-hero h1,
.hero-band h1,
.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-top: 0.5rem;
    max-width: 820px;
}

.hero-italic-sub {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gold);
    margin-top: 0.875rem;
}

.hero-sub,
.hero-subhead {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    margin-top: 1rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Parallax band
   -------------------------------------------------------------------------- */
.plx-band {
    position: relative;
    min-height: 360px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plx-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,18,32,0.72);
}

.plx-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 760px;
    margin-inline: auto;
}

.plx-inner blockquote p {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.plx-inner blockquote footer {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   Homepage layout utilities
   -------------------------------------------------------------------------- */
.aud { display: grid; grid-template-columns: 1fr 1fr; }
.aud-img { background-size: cover; background-position: center; min-height: 380px; }
@media (max-width: 900px) {
    .aud { grid-template-columns: 1fr; }
    .aud-img { order: 0 !important; min-height: 280px !important; }
    .aud-txt { order: 1 !important; }
}

.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr; } }

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
@media (max-width: 720px) { .g2 { grid-template-columns: 1fr; } }

/* 2-col, no gap (framework blocks) */
.g2-flat { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 720px) { .g2-flat { grid-template-columns: 1fr; } }

/* Split image/text block (audience sections) */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }

/* Team training table — horizontal scroll on small screens */
.team-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr 1.2fr; gap: 0; }
.team-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) { .team-grid { min-width: 560px; } }

.plx {
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}
@media (max-width: 768px) { .plx { background-attachment: scroll !important; } }

/* Eyebrow line + label */
.eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.eyebrow-rule { width: 28px; height: 1px; background: #e2b44c; flex-shrink: 0; }
.eyebrow-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e2b44c;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.preview-section,
.dashboard-section,
.related-articles,
.academy-band,
.enroll-section {
    padding: 5rem 0;
}

.preview-section--cream,
.dashboard-section--cream { background: var(--cream); }

.academy-band {
    background: var(--navy);
    color: var(--white);
    text-align: center;
}
.academy-band-inner { max-width: 640px; margin-inline: auto; }
.academy-band h2 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}
.academy-band p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 2rem;
}

.section-heading {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.section-subhead {
    color: rgba(20,38,57,0.65);
    margin-bottom: 2.5rem;
    max-width: 640px;
}
.section-cta { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   Grids and card layouts
   -------------------------------------------------------------------------- */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.article-card,
.dashboard-card,
.preview-card,
.nl-archive-card {
    background: var(--white);
    border: 1px solid rgba(20,38,57,0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-card-title,
.dashboard-card h3,
.preview-card h3,
.nl-archive-card h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin: 0;
}
.article-card-title a,
.dashboard-card h3 a,
.preview-card h3 a,
.nl-archive-card h3 a { color: inherit; text-decoration: none !important; }
.article-card-title a:hover,
.dashboard-card h3 a:hover { text-decoration: underline; }

.card-excerpt {
    font-size: 15px;
    color: rgba(20,38,57,0.72);
    flex: 1;
}

.card-link {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--electric);
    text-decoration: none !important;
    margin-top: 0.5rem;
    align-self: flex-start;
}
.card-link:hover { text-decoration: underline !important; }

.post-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(20,38,57,0.5);
}

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(20,38,57,0.12);
    margin-bottom: 2rem;
}

.filter-bar--stacked { flex-direction: column; gap: 0.75rem; }
.filter-bar--stacked .filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.875rem;
    border: 1px solid rgba(20,38,57,0.2);
    color: rgba(20,38,57,0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* --------------------------------------------------------------------------
   Rules list
   -------------------------------------------------------------------------- */
.rules-list { display: flex; flex-direction: column; }

.rule-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(20,38,57,0.08);
}

.rule-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    flex: 1;
    text-decoration: none !important;
}
.rule-title:hover { text-decoration: underline !important; }

.rule-date, .rule-fr-link {
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: nowrap;
}
.rule-fr-link { color: var(--electric); }

/* Framework tag */
.framework-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--navy);
    color: var(--gold);
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

/* Status chips */
.status-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}
.status-chip--announced  { background: rgba(20,38,57,0.08); color: var(--navy); }
.status-chip--proposed   { background: rgba(46,139,255,0.12); color: #1a5fb8; }
.status-chip--final      { background: rgba(240,206,125,0.25); color: #7a5c00; }
.status-chip--enacted    { background: rgba(20,38,57,0.85); color: var(--white); }

.framework-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    padding: 0.2rem 0.6rem;
}

/* --------------------------------------------------------------------------
   Enforcement list
   -------------------------------------------------------------------------- */
.enforcement-list { display: flex; flex-direction: column; }

.enforcement-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(20,38,57,0.08);
    border-left: 3px solid transparent;
}

.enforcement-row--enforcement       { border-left-color: #c0392b; }
.enforcement-row--mitigation        { border-left-color: var(--gold); }
.enforcement-row--structural        { border-left-color: var(--electric); }

.enf-company a {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    text-decoration: none !important;
}
.enf-company a:hover { text-decoration: underline !important; }

.enf-type  { font-size: 12px; color: rgba(20,38,57,0.55); }
.enf-penalty { font-weight: 600; color: var(--navy); }
.enf-date  { font-size: 12px; color: rgba(20,38,57,0.5); }
.enf-source { font-size: 12px; color: var(--electric); }

/* --------------------------------------------------------------------------
   News list
   -------------------------------------------------------------------------- */
.news-list { display: flex; flex-direction: column; }

.news-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(20,38,57,0.08);
}

.news-date { font-size: 12px; color: rgba(20,38,57,0.5); white-space: nowrap; }
.agency-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--navy-light);
    color: var(--navy);
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
}
.news-headline {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--navy);
    font-weight: 500;
    text-decoration: none !important;
    flex: 1;
}
.news-headline:hover { text-decoration: underline !important; }

/* --------------------------------------------------------------------------
   Enrollment section
   -------------------------------------------------------------------------- */
.enroll-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.enroll-form-col h2 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.enroll-sub { color: rgba(20,38,57,0.65); margin-bottom: 1.5rem; }

.tier-cards-col { display: flex; flex-direction: column; gap: 1rem; }

.tier-card {
    border: 1px solid rgba(20,38,57,0.15);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.tier-card--enterprise { border-color: var(--gold); }

.tier-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    min-width: 140px;
}
.tier-price {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy);
    white-space: nowrap;
}
.tier-period {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(20,38,57,0.5);
    font-weight: 400;
}
.tier-card p {
    font-size: 14px;
    color: rgba(20,38,57,0.65);
    flex: 1;
    min-width: 120px;
}

/* --------------------------------------------------------------------------
   Newsletter featured
   -------------------------------------------------------------------------- */
.newsletter-featured {
    border: 1px solid var(--gold);
    padding: 2.5rem;
    margin-bottom: 3rem;
}
.newsletter-featured h2 {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}
.newsletter-featured h2 a { color: var(--navy); text-decoration: none !important; }
.newsletter-featured h2 a:hover { text-decoration: underline !important; }

.nl-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.quarter-bar {
    background: var(--navy);
    padding: 0.875rem 0;
}
.quarter-bar-inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.quarter-label {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}
.quarter-frameworks { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Single post layout
   -------------------------------------------------------------------------- */
.prose-wrap,
.single-layout { padding: 3.5rem 0 4rem; }

.single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.single-body {
    font-size: 17px;
    line-height: 1.65;
    color: var(--navy);
    max-width: var(--max-prose);
}

.single-body h2, .prose h2 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}
.single-body h3, .prose h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}
.single-body p, .prose p { margin-bottom: 1.25rem; }
.single-body a, .prose a { color: var(--electric); text-decoration: underline; }
.single-body ul, .prose ul,
.single-body ol, .prose ol { margin: 1rem 0 1.25rem 1.5rem; }
.single-body ul { list-style: disc; }
.single-body ol { list-style: decimal; }
.single-body li { margin-bottom: 0.4rem; }

.pdf-download { margin-bottom: 2rem; }

/* Meta bar */
.meta-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.25rem;
}
.meta-item { font-size: 14px; color: rgba(255,255,255,0.72); }
.meta-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 0.4rem; color: var(--muted); }
.meta-link { color: var(--gold); font-size: 14px; text-decoration: underline; }

/* Sidebar */
.single-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-block { border-top: 2px solid var(--gold); padding-top: 1rem; }
.sidebar-heading {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.875rem;
}
.sidebar-list li { margin-bottom: 0.5rem; border-bottom: 1px solid var(--navy-light); padding-bottom: 0.5rem; }
.sidebar-list a { font-size: 14px; color: var(--electric); text-decoration: none !important; }
.sidebar-list a:hover { text-decoration: underline !important; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #142639;
    border-top: none;
    padding: 4rem 0 0;
}

.footer-inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-wordmark {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}
.footer-tagline {
    font-family: var(--font-head);
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-top: 20px;
    max-width: 220px;
    line-height: 1.55;
}

.footer-col-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e2b44c;
    margin-bottom: 22px;
    font-weight: 600;
}

.footer-nav-list { display: flex; flex-direction: column; gap: 13px; list-style: none; padding: 0; margin: 0; }
.footer-nav-list li a {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255,255,255,0.72);
    text-decoration: none !important;
    transition: color 0.16s;
    display: block;
}
.footer-nav-list li a:hover { color: #5aa6ff; }

.footer-bar {
    border-top: 1px solid #2a4264;
    padding: 26px 40px 40px;
    max-width: var(--max-w);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
}
.footer-bar span {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: rgba(255,255,255,0.4);
}
.footer-bar-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-bar-links a {
    color: rgba(255,255,255,0.5);
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.16s;
}
.footer-bar-links a:hover { color: #5aa6ff; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination-wrap { padding: 2.5rem 0; }
.pagination-wrap .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination-wrap .page-numbers {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 0.4rem 0.875rem;
    border: 1px solid rgba(20,38,57,0.2);
    color: var(--navy);
    text-decoration: none !important;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.free-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(240,206,125,0.25);
    color: #7a5c00;
    padding: 0.2rem 0.6rem;
}

.preview-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-wrap { padding: 3rem 0; }
.post-row { padding: 1.5rem 0; border-bottom: 1px solid var(--navy-light); }
.post-row h2 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }

.no-results { color: rgba(20,38,57,0.55); padding: 2rem 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media ( max-width: 1024px ) {
    .enroll-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: span 3; }
    .single-layout { grid-template-columns: 1fr; }
    .single-sidebar { position: static; }
}

@media ( max-width: 768px ) {
    :root { --nav-h: 60px; }

    .primary-nav,
    .header-actions { display: none; }

    .mobile-menu-toggle { display: flex; }

    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: span 2; }

    .three-col-grid { grid-template-columns: 1fr; }
    .nl-archive-grid { grid-template-columns: 1fr; }
    .preview-card-grid { grid-template-columns: 1fr; }
    .tier-card { flex-direction: column; align-items: flex-start; }

    .rule-row,
    .enforcement-row,
    .news-row { flex-direction: column; align-items: flex-start; }
}

@media ( max-width: 480px ) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .quarter-bar-inner { flex-direction: column; align-items: flex-start; }
    .newsletter-featured { padding: 1.5rem; }
}

/* --------------------------------------------------------------------------
   WooCommerce buttons → the TCM standard box (navy button, gold letters,
   square). Kills the stock purple. Sizes come from the :root --tcm-btn-* vars.
   -------------------------------------------------------------------------- */
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce #place_order, .woocommerce button[name="update_cart"], .woocommerce button[name="apply_coupon"] {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy) !important; color: var(--gold-dark) !important;
    border: 2px solid var(--navy) !important; border-radius: 0 !important;
    font-family: var(--font-head) !important; font-weight: 700 !important;
    font-size: var(--tcm-btn-fs, 13px) !important;
    height: var(--tcm-btn-h, 38px); width: var(--tcm-btn-w, 152px); max-width: 100%;
    padding: 0 12px !important; box-sizing: border-box;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .15s, border-color .15s;
}
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input.button:hover,
.woocommerce #place_order:hover { background: #1f3a57 !important; border-color: #1f3a57 !important; color: var(--gold-dark) !important; }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { background: var(--navy) !important; color: var(--gold-dark) !important; opacity: .55; }

/* ============================================================
   Case-study visual layer (Code-emitted; spec: Case-Study-Visual-Layer-Spec.md)
   Components: .cs-quote-break, .cs-def-card, .cs-figure
   ============================================================ */
.cs-quote-break{
    margin:3rem 0;
    padding:2.75rem 2rem;
    background:var(--navy);
    border-top:3px solid var(--gold-dark);
    border-radius:8px;
    text-align:center;
}
.cs-quote-break .cs-quote-exhibit{
    display:block; width:100%; height:auto;
    border-radius:6px; margin:0 0 1.75rem;
}
.cs-quote-break blockquote{
    margin:0 auto; max-width:46rem;
    font-size:clamp(1.4rem,2.6vw,2rem); line-height:1.4;
    font-weight:600; color:#eef2f7; border:0; padding:0;
}
.cs-quote-break figcaption{
    margin-top:1.25rem; font-size:.85rem; letter-spacing:.02em;
    color:#8ba0b8; font-style:normal;
}
.cs-def-card{
    margin:2rem 0;
    padding:1.25rem 1.5rem;
    background:var(--cream);
    border-left:4px solid var(--gold-dark);
    border-radius:6px;
}
.cs-def-card .cs-def-term{
    margin:0 0 .4rem; font-size:1.05rem; font-weight:700;
    color:var(--navy); letter-spacing:.01em;
}
.cs-def-card .cs-def-def{ margin:0; font-size:.95rem; line-height:1.5; color:#33465a; }
body.portal-dark .cs-def-card{ background:rgba(255,255,255,.04); }
body.portal-dark .cs-def-card .cs-def-term{ color:#fff; }
body.portal-dark .cs-def-card .cs-def-def{ color:#c8d3df; }
.cs-figure{ margin:2.25rem 0; }
.cs-figure img{ display:block; width:100%; height:auto; border-radius:8px; }
.cs-figure figcaption{
    margin-top:.6rem; font-size:.85rem; color:#6b7a8d;
    font-style:italic; text-align:center;
}
