/*
Theme Name: ccarico-news
Theme URI: https://news.ccarico.com
Author: Carl &quot;Wes&quot; Carico
Author URI: https://ccarico.com
Description: Custom news/blog theme for news.ccarico.com — Repo Ops Alert Industry Intelligence Brief. Inherits design system from ccarico.com main theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: Proprietary
Text Domain: ccarico-news
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B1421;
  --bg-2: #101C2E;
  --bg-card: #131F31;
  --bg-card-2: #182538;
  --navy: #0E1E35;
  --gold: #B8892A;
  --gold-l: #D4A040;
  --gold-dim: rgba(184,137,42,.12);
  --gold-border: rgba(184,137,42,.25);
  --steel: #3A5472;
  --border: #1A2D42;
  --border-l: #213548;
  --text: #E4E9F0;
  --text-muted: #7A8FA3;
  --text-dim: #3D566E;
  --white: #F4F6F9;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;

  --radius: 3px;
  --radius-l: 6px;
  --max-w: 1160px;
  --nav-h: 72px;
  --pad: clamp(60px, 8vw, 96px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ── Typography ─────────────────────────────────────────── */
.name-display {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300;
  line-height: .9;
  letter-spacing: .01em;
  color: var(--white);
}
.name-display em { font-style: italic; color: var(--gold); }
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .01em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .01em;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}
.label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}
.body-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
}
.body-text p { margin-bottom: 16px; }
.body-text p:last-child { margin-bottom: 0; }
.body-text strong { color: var(--text); font-weight: 600; }
.body-text em { font-style: italic; }

/* ── Rule / divider ─────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--border); }
.rule-gold { border: none; border-top: 1px solid var(--gold-border); }
.accent-line {
  display: block;
  width: 32px; height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius);
  cursor: pointer; border: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-l); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(184,137,42,.25); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-l); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.btn-text {
  background: transparent; padding: 0; border: none;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.btn-text:hover { gap: 10px; }
.btn-text::after { content: '→'; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(11,20,33,.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  letter-spacing: .04em; color: var(--white);
  line-height: 1.1;
}
.nav-name small {
  display: block; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); font-family: var(--font-ui);
  font-weight: 400;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-ui); font-size: 12px;
  font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color .2s; position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; right: 0; height: 1px;
  background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.nav-ops { color: var(--gold); }
.nav-links a.nav-ops:hover { color: var(--gold-l); }
.nav-cta { margin-left: 16px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(11,20,33,.98); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 24px; z-index: 99;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); padding: 12px 0;
  border-bottom: 1px solid var(--border); transition: color .2s;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .btn { margin-top: 16px; justify-content: center; }

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 56px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: radial-gradient(ellipse 80% 100% at 100% 50%, rgba(184,137,42,.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 11px;
  font-weight: 500; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-dim); }

/* ── Sections ───────────────────────────────────────────── */
section { position: relative; padding: var(--pad) 0; }
.section-dark { background: var(--bg); }
.section-mid { background: var(--bg-2); }
.section-card { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: clamp(24px,vw,36px);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--border-l); transform: translateY(-2px); }
.card-gold { border-top: 2px solid var(--gold); }
.card-left { border-left: 3px solid var(--gold); }

/* ── Quote / callout ────────────────────────────────────── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  background: var(--gold-dim);
  border-radius: 0 var(--radius-l) var(--radius-l) 0;
}
.quote-block p {
  font-family: var(--font-display); font-size: clamp(17px,2.2vw,22px);
  font-style: italic; font-weight: 400;
  line-height: 1.55; color: var(--white);
}
.quote-block cite {
  display: block; margin-top: 10px;
  font-family: var(--font-ui); font-size: 11px;
  font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); font-style: normal;
}

/* ── Alert / notice box  ─────────────────────────────────── */
.notice {
  padding: 18px 22px; border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  font-family: var(--font-ui); font-size: 13px;
  color: var(--text-muted); line-height: 1.65;
}
.notice strong { color: var(--text); }

/* ── Grid helpers ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(24px,3vw,48px); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,2.5vw,36px); }

/* ── Utilities ──────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.italic { font-style: italic; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
  .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-16 { gap: 16px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 320px; }
.footer-col-title { font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-family: var(--font-ui); font-size: 12px; color: var(--text-dim); }
.footer-bottom a { font-family: var(--font-ui); font-size: 12px; color: var(--text-dim); transition: color .2s;
}
.footer-bottom a:hover { color: var(--gold); }
.footer-trademark { font-family: var(--font-ui); font-size: 11px; color: var(--text-dim); }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── News Masthead ──────────────────────────────────────── */
.news-masthead {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 48px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.news-masthead::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(ellipse 80% 100% at 100% 50%, rgba(184,137,42,.05) 0%, transparent 70%);
  pointer-events: none;
}
.news-masthead .container { position: relative; z-index: 1; }
.news-masthead-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-ui); font-size: 10px;
  font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.news-masthead-eyebrow-line { width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }
.news-masthead-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 400; line-height: .95;
  letter-spacing: .01em; color: var(--white);
  margin-bottom: 16px;
}
.news-masthead-tagline {
  font-family: var(--font-ui); font-size: 13px;
  font-weight: 400; letter-spacing: .08em;
  color: var(--text-muted); max-width: 680px;
  line-height: 1.7;
}

/* ── Blog Post Grid ─────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.post-card:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.post-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--navy) 100%);
}
.post-card-thumb-placeholder svg { opacity: .15; }
.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-card-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.post-cat-tag {
  font-family: var(--font-ui); font-size: 10px;
  font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  padding: 3px 8px; border-radius: 2px;
}
.post-date {
  font-family: var(--font-ui); font-size: 11px;
  color: var(--text-dim); letter-spacing: .08em;
}
.post-card-title {
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px);
  font-weight: 400; line-height: 1.2;
  color: var(--white);
  transition: color .2s;
}
.post-card:hover .post-card-title { color: var(--gold); }
.post-card-excerpt {
  font-family: var(--font-ui); font-size: 13px;
  color: var(--text-muted); line-height: 1.7;
  flex: 1;
}
.post-card-link {
  font-family: var(--font-ui); font-size: 11px;
  font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s; margin-top: 4px;
}
.post-card-link::after { content: '→'; }
.post-card:hover .post-card-link { gap: 10px; }

/* ── Featured post (first post, full width) ─────────────── */
.post-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  margin-bottom: 32px;
}
.post-featured:hover { border-color: var(--gold-border); transform: translateY(-2px); }
.post-featured .post-card-thumb {
  aspect-ratio: unset;
  min-height: 300px;
}
.post-featured .post-card-body { padding: 40px; justify-content: center; }
.post-featured .post-card-title {
  font-size: clamp(24px, 3vw, 38px);
  margin: 8px 0 12px;
}
.post-featured .post-card-excerpt { font-size: 14px; }

/* ── Single article ─────────────────────────────────────── */
.article-header {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 48px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
 .article-header::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: radial-gradient(ellipse 80% 100% at 100% 50%, rgba(184,137,42,.05) 0%, transparent 70%);
  pointer-events: none;
}
.article-header .container { position: relative; z-index: 1; }
.article-header-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: .01em; color: var(--white);
  max-width: 880px;
  margin: 16px 0;
}
.article-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-ui); font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}
.article-meta-sep { color: var(--border-l); }
.article-body {
  padding: var(--pad) 0;
}
.article-content {
  max-width: 720px;
  margin: 0 auto;
}
.article-content p { margin-bottom: 20px; color: var(--text-muted); font-size: 17px; line-height: 1.85; }
.article-content h2 {
  font-family: var(--font-display); font-size: clamp(22px,3vw,34px);
  font-weight: 400; color: var(--white); margin: 40px 0 16px;
  letter-spacing: .01em;
}
.article-content h3 {
  font-family: var(--font-display); font-size: clamp(18px,2.5vw,26px);
  font-weight: 400; color: var(--white); margin: 32px 0 12px;
}
.article-content h4 {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin: 28px 0 10px;
}
.article-content ul, .article-content ol {
  color: var(--text-muted); padding-left: 24px; margin-bottom: 20px;
}
.article-content li { margin-bottom: 8px; line-height: 1.75; }
.article-content a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(184,137,42,.4); }
.article-content a:hover { color: var(--gold-l); }
.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px; margin: 28px 0;
  background: var(--gold-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text);
  font-family: var(--font-display); font-size: 19px; line-height: 1.55;
}
.article-content blockquote cite {
  display: block; margin-top: 10px;
  font-family: var(--font-ui); font-size: 11px; font-style: normal;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold);
}
.article-content strong { color: var(--text); font-weight: 600; }
.article-content hr {
  border: none; border-top: 1px solid var(--border); margin: 36px 0;
}
.article-feat-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-l);
  margin-bottom: 40px;
}

/* ── DLM Download CTA Block ─────────────────────────────── */
.dlm-cta-block {
  margin: 44px 0;
  padding: 28px 32px;
  background: #0D1A2E;
  border: 1px solid #B8892A;
  border-left: 4px solid #D4A040;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dlm-cta-eyebrow {
  font-family: var(--font-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #B8892A;
}
.dlm-cta-block .download-link {
  display: inline-block;
  background: #D4A040;
  color: #0B1421 !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background .18s;
  width: fit-content;
}
.dlm-cta-block .download-link:hover {
  background: #B8892A;
  color: #fff !important;
}
.dlm-cta-note {
  font-size: 12px;
  color: var(--text-muted, #8899aa);
  letter-spacing: .02em;
}
.dlm-cta-note a { color: #B8892A; text-decoration: underline; }
.dlm-cta-note a:hover { color: #D4A040; }

/* ── Article navigation (prev/next) ─────────────────────── */
.article-nav {
  border-top: 1px solid var(--border);
  margin-top: 48px; padding-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.article-nav-item { display: flex; flex-direction: column; gap: 6px; }
.article-nav-item.next { text-align: right; }
.article-nav-label {
  font-family: var(--font-ui); font-size: 10px;
  font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-dim);
}
.article-nav-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 400; color: var(--text-muted);
  line-height: 1.3; transition: color .2s;
}
.article-nav-item a:hover .article-nav-title { color: var(--gold); }

/* ── Archive header ─────────────────────────────────────── */
.archive-header {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 40px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.archive-header-type {
  font-family: var(--font-ui); font-size: 10px;
  font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.archive-header-title {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 52px);
  font-weight: 400; color: var(--white);
  line-height: 1;
}
.archive-header-desc {
  font-family: var(--font-ui); font-size: 14px;
  color: var(--text-muted); margin-top: 12px;
  line-height: 1.7; max-width: 600px;
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 48px;
  font-family: var(--font-ui); font-size: 13px;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all .2s;
}
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.pagination .dots { border: none; color: var(--text-dim); }

/* ── No posts placeholder ───────────────────────────────── */
.no-posts {
  text-align: center; padding: 80px 0;
  font-family: var(--font-ui); color: var(--text-muted);
}
.no-posts p { margin-top: 12px; font-size: 15px; }

/* ── Responsive ─────────────────────────────────────────── */
@media(max-width:1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-card-thumb { min-height: 220px; }
  .post-featured .post-card-body { padding: 28px; }
}
@media(max-width:760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .post-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item.next { text-align: left; }
}
@media(max-width:520px) {
  :root { --pad: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media print {
  .nav, footer .footer-bottom { display: none; }
  body { background: #fff; color: #000; font-family: Georgia, serif; }
  .card, .post-card { border: 1px solid #ccc; }
  a[href]::after { content: &quot; (&quot; attr(href) &quot;)&quot;; font-size: 11px; color: #666; }
}

/* ── WordPress Admin Bar — push fixed nav down ─────────────── */
.admin-bar .nav { top: 32px; }
@media(max-width:782px) { .admin-bar .nav { top: 46px; } }


/* ============================================
   AUTH PAGES — Login / Register
   ============================================ */

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-auth-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-auth-link:hover { color: var(--gold-l); }

.section-auth {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--bg);
}

.auth-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  overflow: hidden;
}

.auth-card__header {
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--gold-border);
  padding: 32px 36px 28px;
  text-align: center;
}

.auth-card__header .eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.auth-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.auth-card__body {
  padding: 32px 36px 36px;
}

.auth-card__body .login-form,
.auth-card__body .register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card__body label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.auth-card__body input[type="text"],
.auth-card__body input[type="email"],
.auth-card__body input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.auth-card__body input[type="text"]:focus,
.auth-card__body input[type="email"]:focus,
.auth-card__body input[type="password"]:focus {
  border-color: var(--gold);
}

.auth-card__body .button,
.auth-card__body input[type="submit"],
.auth-card__body button[type="submit"] {
  width: 100%;
  background: var(--gold);
  color: #0B1421;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.auth-card__body .button:hover,
.auth-card__body input[type="submit"]:hover,
.auth-card__body button[type="submit"]:hover {
  background: var(--gold-l);
}

.auth-footer-links {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-footer-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-footer-links a:hover { color: var(--gold-l); }

.auth-card__body .auth-error {
  background: rgba(180,60,60,0.12);
  border: 1px solid rgba(180,60,60,0.35);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #e07070;
}

.auth-card__body .auth-success {
  background: rgba(60,140,60,0.12);
  border: 1px solid rgba(60,140,60,0.35);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #7ec87e;
}

@media (max-width: 600px) {
  .auth-card__header { padding: 24px 20px 20px; }
  .auth-card__body { padding: 24px 20px 28px; }
  .auth-title { font-size: 1.5rem; }
}

/* ── Downloads Page ─────────────────────────────────────────────────────── */
.downloads-gate-notice{background:rgba(184,137,42,.12);border-left:3px solid var(--gold);padding:1rem 1.25rem;margin-bottom:2.5rem;border-radius:2px}
.downloads-gate-notice p{margin:0;font-size:.9rem;color:var(--text-muted)}
.downloads-gate-notice a{color:var(--gold);text-decoration:underline}
.downloads-list{display:flex;flex-direction:column}
.download-entry{padding:2.25rem 0;border-bottom:1px solid rgba(255,255,255,.07)}
.download-entry:last-child{border-bottom:none}
.download-entry__meta{margin-bottom:.5rem}
.download-entry__meta .eyebrow{font-size:.7rem;letter-spacing:.12em;color:var(--gold);text-transform:uppercase}
.download-entry__title{font-family:var(--font-display);font-size:1.65rem;font-weight:600;line-height:1.25;margin:0 0 .85rem}
.download-entry__title a{color:var(--text);text-decoration:none;transition:color .2s}
.download-entry__title a:hover{color:var(--gold)}
.download-entry__excerpt{color:var(--text-muted);font-size:.95rem;line-height:1.65;margin:0 0 1.1rem;max-width:680px}
.download-entry__cta{display:inline-block;font-family:var(--font-ui);font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);text-decoration:none;border-bottom:1px solid var(--gold);padding-bottom:1px;transition:opacity .2s}
.download-entry__cta:hover{opacity:.75}
.downloads-empty{color:var(--text-muted);font-style:italic;padding:2rem 0}


/* ── Home: Recent header + category filter bar ─────────────────────── */
.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
}
.recent-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.post-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.post-filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.post-filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.post-filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B1421;
}
@media (max-width: 600px) {
  .recent-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
\n/* -- Featured card: 16:9 image left-anchored ----------------------- */\n.post-featured .post-card-thumb { aspect-ratio: 16 / 9; overflow: hidden; }\n.post-featured .post-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }\n.post-featured .post-card-thumb-placeholder { aspect-ratio: 16 / 9; }\n
/* ── Incident Tracker subnav link ──────────────────────── */
.roa-subnav-tracker {
  color: #B8892A;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 18px;
}
.roa-subnav-tracker:hover { color: #e8bc5a; text-decoration: underline; }
#roa-subnav-bar .roa-subnav-tracker { color: #B8892A !important; }
#roa-subnav-bar .roa-subnav-tracker:hover { color: #D4A040 !important; text-decoration: underline; }

/* ── Incident Tracker page layout ──────────────────────── */
body.page-template-page-incident-tracker #incident-dashboard {
  background: #0B1421;
  padding-top: 150px;
}