/*
Theme Name: Dibey Editorial
Theme URI: https://dibeymedia.us/
Author: Dibey Media
Description: Modern editorial theme for Dibey Media — responsive, accessible, visually striking.
Version: 2.0.0
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dibey-editorial
*/

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Dibey brand */
  --navy:        #1a2540;
  --navy-light:  #2a3a5c;
  --gold:        #c9944a;
  --gold-light:  #e8c992;
  --gold-pale:   #f5e6cf;
  --red:         #c0453a;
  --red-light:   #e88078;
  --cream:       #faf8f4;
  --white:       #ffffff;

  /* Neutrals */
  --text:        #1a1a2e;
  --text-2:      #4a4a5a;
  --text-3:      #7a7a8a;
  --border:      #e8e6e1;
  --border-2:    #d4d2cc;
  --surface:     #f5f3ef;
  --surface-2:   #eeeee8;

  /* Typography */
  --font-sans:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif:  'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --font-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,37,64,.06), 0 1px 2px rgba(26,37,64,.04);
  --shadow-md: 0 4px 12px rgba(26,37,64,.08), 0 2px 4px rgba(26,37,64,.04);
  --shadow-lg: 0 12px 32px rgba(26,37,64,.1), 0 4px 8px rgba(26,37,64,.06);
  --shadow-xl: 0 24px 48px rgba(26,37,64,.12), 0 8px 16px rgba(26,37,64,.08);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --fast: 150ms var(--ease);
  --med: 250ms var(--ease);

  /* Layout */
  --max-w: 1200px;
  --header-h: 72px;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-lg);
}

/* Brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-mark img, .brand-mark .custom-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-text strong {
  font-weight: 700;
}

/* Desktop nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--fast), color var(--fast);
}
.primary-nav a:hover {
  color: var(--navy);
  background: var(--surface);
}
.primary-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  margin-left: 8px;
}
.primary-nav a.nav-cta:hover {
  background: var(--navy-light);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--med), opacity var(--med);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--fast);
}
.mobile-menu a:hover { background: var(--surface); color: var(--navy); }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: all var(--fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--surface);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover {
  background: var(--cream);
  transform: translateY(-1px);
}
.btn-sm {
  font-size: 14px;
  padding: 10px 20px;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1e2d4a 50%, #2a3a5c 100%);
  color: var(--white);
  padding: clamp(60px, 10vw, 120px) 0 clamp(48px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,148,74,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,69,58,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201,148,74,.12);
  border: 1px solid rgba(201,148,74,.25);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.03em;
  max-width: 800px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.hero .btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ─── FEATURED ───────────────────────────────────────────────── */
.featured {
  padding: var(--space-3xl) 0;
  background: var(--white);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.featured-image {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--surface);
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.featured-image:hover img {
  transform: scale(1.03);
}
.tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.topic {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(192,69,58,.08);
  padding: 4px 12px;
  border-radius: 99px;
}
.topic:hover {
  background: rgba(192,69,58,.15);
}
.meta-pill {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.featured-title a {
  transition: color var(--fast);
}
.featured-title a:hover {
  color: var(--navy);
}
.featured-excerpt {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.author-chip::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--red));
  flex-shrink: 0;
}
.read-time {
  font-size: 13px;
  color: var(--text-3);
}

/* ─── ARTICLE CARDS ──────────────────────────────────────────── */
.articles {
  padding: var(--space-3xl) 0;
  background: var(--cream);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -.02em;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--fast);
}
.section-link:hover { color: var(--red); }
.section-title-center {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-xl);
  letter-spacing: -.02em;
}

/* Grid layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--med), box-shadow var(--med);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}
.card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.card-img .topic {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.card-body {
  padding: 20px;
}
.card-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card-body h3 {
  color: var(--navy);
}
.card-body p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.card-meta time {
  font-variant-numeric: tabular-nums;
}

/* List layout (for index/archive) */
.card-grid-list {
  grid-template-columns: 1fr;
  gap: 16px;
}
.card-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
}
.card-img-sm {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  margin: 12px;
}
.card-list .card-body {
  padding: 12px 20px 12px 0;
}
.card-list .card-body h3 {
  font-size: 17px;
  -webkit-line-clamp: 1;
}

/* ─── CATEGORIES ─────────────────────────────────────────────── */
.categories {
  padding: var(--space-3xl) 0;
  background: var(--white);
}
.cat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--border);
  padding: 12px 24px;
  border-radius: 99px;
  transition: all var(--fast);
}
.cat-chip:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201,148,74,.12);
  padding: 2px 8px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
}
.cat-chip:hover .cat-count {
  color: var(--gold-light);
  background: rgba(201,148,74,.25);
}

/* ─── MISSION ────────────────────────────────────────────────── */
.mission {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
}
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.mission .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.mission h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.mission p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
}

/* ─── PAGE HERO (archive, search, 404) ───────────────────────── */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: clamp(40px, 6vw, 64px) 0;
}
.page-hero-inner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.page-hero-inner p {
  font-size: 16px;
  color: var(--text-3);
  max-width: 520px;
}
.page-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.filter-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all var(--fast);
}
.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ─── SINGLE POST ────────────────────────────────────────────── */
.post-header {
  background: var(--white);
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--border);
}
.post-header-inner {
  max-width: 780px;
}
.post-tags {
  margin-bottom: 16px;
}
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar, .author-avatar-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.author-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.post-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.post-date {
  font-size: 13px;
  color: var(--text-3);
}
.read-time-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 99px;
}

/* Post cover */
.post-cover {
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.post-cover .container {
  max-width: 1100px;
}
.post-cover img {
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
}

/* Post body */
.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) 20px;
}
.post-body .prose {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
}
.post-body .prose p {
  margin-bottom: 1.5em;
}
.post-body .prose h2 {
  font-size: 28px;
  font-weight: 400;
  margin: 2em 0 0.75em;
  letter-spacing: -.02em;
}
.post-body .prose h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 1.75em 0 0.5em;
}
.post-body .prose h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 1.5em 0 0.5em;
}
.post-body .prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--fast);
}
.post-body .prose a:hover {
  color: var(--navy);
}
.post-body .prose blockquote {
  margin: 2em 0;
  padding: 24px 32px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}
.post-body .prose blockquote p {
  margin-bottom: 0;
}
.post-body .prose ul, .post-body .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.post-body .prose ul { list-style: disc; }
.post-body .prose ol { list-style: decimal; }
.post-body .prose li {
  margin-bottom: .5em;
}
.post-body .prose img {
  border-radius: var(--radius-md);
  margin: 2em 0;
}
.post-body .prose figure {
  margin: 2.5em 0;
}
.post-body .prose figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
}
.post-body .prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
  margin: 2em 0;
  display: block;
  overflow-x: auto;
}
.post-body .prose th, .post-body .prose td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.post-body .prose th {
  background: var(--surface);
  font-weight: 600;
}
.post-body .prose code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}
.post-body .prose pre {
  background: var(--navy);
  color: #e8e6e1;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2em 0;
  font-size: 14px;
  line-height: 1.6;
}
.post-body .prose pre code {
  background: none;
  padding: 0;
}

/* Post footer */
.post-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.post-tags-row .topic {
  background: var(--surface);
  color: var(--navy);
}
.post-author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
}
.post-author-box strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.post-author-box p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}

/* ─── PAGES ──────────────────────────────────────────────────── */
.page-section {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--white);
}
.page-header {
  margin-bottom: 40px;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.page-cover {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.prose {
  max-width: 740px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.85;
}
.prose p { margin-bottom: 1.5em; }
.prose h2 {
  font-size: 28px;
  font-weight: 400;
  margin: 2em 0 0.75em;
}
.prose h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 1.75em 0 0.5em;
}
.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose img {
  border-radius: var(--radius-md);
  margin: 2em 0;
}
.prose blockquote {
  margin: 2em 0;
  padding: 24px 32px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}
.prose blockquote p { margin-bottom: 0; }

/* ─── SEARCH ─────────────────────────────────────────────────── */
.wp-block-search, .search-form {
  max-width: 480px;
  margin: 0 0 32px;
  display: flex;
  gap: 8px;
}
.search-form .wp-block-search__input, .search-form input[type="search"] {
  flex: 1;
  font-size: 15px;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--fast);
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--navy);
}
.search-form .wp-block-search__button, .search-form button[type="submit"] {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  transition: background var(--fast);
}
.search-form button[type="submit"]:hover {
  background: var(--navy-light);
}

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 0;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all var(--fast);
}
.pagination .page-numbers:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.pagination .page-numbers.prev, .pagination .page-numbers.next {
  font-weight: 500;
}

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-3);
}
.empty-state a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── 404 ────────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 80px 20px;
}
.error-code {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.error-page h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}
.error-page p {
  color: var(--text-3);
  margin-bottom: 24px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: clamp(48px, 6vw, 64px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
}
.footer-logo img, .footer-logo .custom-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,.6);
  transition: color var(--fast);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-mail {
  font-weight: 500 !important;
  color: var(--gold-light) !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ─── SKIP LINK ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  transition: top var(--fast);
}
.skip-link:focus {
  top: 12px;
}

/* ─── ACCESSIBILITY ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── PRINT ──────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .hero-actions, .btn, .nav-toggle, .mobile-menu, .pagination {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
  .post-body { max-width: 100%; }
  a { color: #000; text-decoration: underline; }
}

/* ═══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .featured-image {
    aspect-ratio: 16/9;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    padding: 48px 0 40px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero .btn {
    justify-content: center;
  }

  .featured {
    padding: 48px 0;
  }
  .featured-title {
    font-size: 1.5rem;
  }

  .articles {
    padding: 48px 0;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-list {
    grid-template-columns: 80px 1fr;
  }
  .card-img-sm {
    width: 80px;
    height: 80px;
    margin: 8px;
  }
  .card-list .card-body {
    padding: 8px 16px 8px 0;
  }

  .categories {
    padding: 48px 0;
  }
  .cat-row {
    justify-content: flex-start;
  }

  .mission {
    padding: 48px 0;
  }
  .mission-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post-header {
    padding: 32px 0;
  }
  .post-title {
    font-size: 1.6rem;
  }
  .post-body {
    padding: 32px 16px;
    font-size: 16px;
  }
  .post-body .prose {
    font-size: 16px;
    line-height: 1.8;
  }

  .post-cover .container {
    max-width: 100%;
  }
  .post-cover img {
    max-height: 50vh;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pagination {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
  .brand-text {
    font-size: 16px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-mark img, .brand-mark .custom-logo {
    width: 34px;
    height: 34px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .featured-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .card-body {
    padding: 16px;
  }
  .card-body h3 {
    font-size: 16px;
  }
  .post-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
