/*!
Theme Name: The Militarist
Theme URI: https://themilitarist.in
Author: The Militarist
Author URI: https://themilitarist.in
Description: A premium editorial WordPress theme for The Militarist — India's foremost publication on defence strategy, geopolitics, and national security. Clean, authoritative, typographically strong.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: militarist-theme
Tags: news, magazine, editorial, responsive, gutenberg, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */

:root {
  /* Brand Colors */
  --color-navy:  #0D1B2A;
  --color-brass: #C9A84C;
  --color-ink:   #1A1A2E;
  --color-steel: #4A5568;
  --color-fog:   #F4F4F0;
  --color-white: #FFFFFF;
  --color-alert: #C0392B;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-content-width: 720px;
  --max-site-width:    1200px;

  /* Spacing */
  --space-xs:  0.375rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-xxl: 5rem;

  /* Transitions */
  --ease:       0.2s ease;
  --ease-hover: 0.3s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--color-white);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  min-width: 320px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  line-height: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}

p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -120%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1.25rem;
  background: var(--color-brass);
  color: var(--color-navy);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   READING PROGRESS BAR
   ========================================================= */

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-brass);
  z-index: 250;
  transition: width 0.1s linear;
  transform-origin: left;
  pointer-events: none;
}

/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
  transition: none;
  overflow: visible;
}

/* --- Ticker Bar --- */
.ticker-bar {
  background: var(--color-brass);
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 0 20px;
}

.ticker-track .dot {
  color: var(--color-navy);
  opacity: 0.35;
  padding: 0;
  letter-spacing: 0;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Date Bar --- */
.datebar {
  background: #0a1520;
  padding: 8px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.datebar-date {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-steel);
}

.datebar-tagline {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--color-steel);
  font-style: italic;
}

/* --- Masthead --- */
.header-masthead {
  background: var(--color-navy);
  padding: 28px 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.masthead-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--ease);
}

.masthead-link:hover { opacity: 0.85; }

.logo-top-rule {
  width: 560px;
  max-width: 90vw;
  height: 1px;
  background: var(--color-brass);
  opacity: 0.4;
  margin-bottom: 12px;
}

.logo-the {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 2px;
  display: block;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 8px;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

.logo-bottom-rule {
  width: 560px;
  max-width: 90vw;
  height: 3px;
  background: var(--color-brass);
  margin-top: 10px;
}

/* --- Header Nav --- */
.header-nav {
  background: var(--color-navy);
  padding: 0 48px 22px;
  display: none;
  justify-content: center;
  gap: 36px;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-fog);
  text-decoration: none;
  opacity: 0.6;
  transition: color var(--ease), opacity var(--ease);
}

.header-nav a:hover,
.header-nav .current-menu-item > a,
.header-nav .current-menu-ancestor > a {
  opacity: 1;
  color: var(--color-brass);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 210;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--color-navy);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul {
  max-width: var(--max-site-width);
  margin: 0 auto;
  padding: 0.5rem 1.5rem 1rem;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav li:last-child { border-bottom: none; }

.mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--ease);
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item > a {
  color: var(--color-brass);
}

/* =========================================================
   UTILITY / SHARED COMPONENTS
   ========================================================= */

.container {
  max-width: var(--max-site-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-divider__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-steel);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--ease);
}

a.section-divider__label:hover { color: var(--color-brass); }

.section-divider__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-brass), transparent);
  opacity: 0.6;
}

/* Category Tag */
.category-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brass);
  text-decoration: none;
  transition: opacity var(--ease);
}

.category-tag:hover { opacity: 0.75; }

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-steel);
  line-height: 1.4;
}

.article-meta .sep {
  color: var(--color-brass);
  opacity: 0.4;
  font-weight: 300;
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */

#main-content {
  background: var(--color-white);
  width: 100%;
  max-width: none;
}

/* No Articles Message */
.no-articles-message {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-steel);
  text-align: center;
  padding: 3rem 1rem;
}

/* =========================================================
   HOMEPAGE — HERO SECTION
   ========================================================= */

.hero-section {
  background: var(--color-fog);
  padding: var(--space-xl) 0;
}

.hero-inner {
  max-width: var(--max-site-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-text { order: 2; }

.hero-image {
  order: 1;
  overflow: hidden;
  border-radius: 2px;
}

.hero-image a { display: block; overflow: hidden; }

.hero-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--ease-hover);
}

.hero-image:hover img { transform: scale(1.02); }

.hero-category { margin-bottom: 0.875rem; }

.hero-headline {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-headline a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}

.hero-headline a:hover { color: var(--color-navy); }

.hero-excerpt {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-steel);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-read-more {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brass);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-read-more:hover { opacity: 0.7; }

/* =========================================================
   HOMEPAGE — LATEST ARTICLES GRID
   ========================================================= */

.latest-section { padding: var(--space-xl) 0; }

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

/* =========================================================
   ARTICLE CARD
   ========================================================= */

.article-card {
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(13, 27, 42, 0.06), 0 4px 16px rgba(13, 27, 42, 0.04);
  transition: transform var(--ease), box-shadow var(--ease);
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.10), 0 12px 32px rgba(13, 27, 42, 0.08);
}

.article-card__image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.article-card__image a { display: block; height: 100%; overflow: hidden; }

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-hover);
}

.article-card:hover .article-card__image img {
  transform: scale(1.03);
}

.article-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__category { margin-bottom: 0.5rem; }

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.3;
  margin-bottom: 0.625rem;
  flex: 1;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}

.article-card__title a:hover { color: var(--color-navy); }

.article-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-steel);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-steel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

/* =========================================================
   HOMEPAGE — CATEGORY SECTIONS
   ========================================================= */

.category-section {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(74, 85, 104, 0.1);
}

.category-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* =========================================================
   NEWSLETTER BLOCK
   ========================================================= */

.newsletter-block {
  background: var(--color-navy);
  padding: 4rem 1.5rem;
  text-align: center;
}

.newsletter-block__inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-block__headline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 0.875rem;
}

.newsletter-block__subtext {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.newsletter-form__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 2px;
  color: var(--color-white);
  outline: none;
  transition: border-color var(--ease), background var(--ease);
  min-width: 0;
}

.newsletter-form__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form__input:focus {
  border-color: var(--color-brass);
  background: rgba(255, 255, 255, 0.10);
}

.newsletter-form__btn {
  padding: 0.875rem 1.75rem;
  background: var(--color-brass);
  color: var(--color-navy);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter-form__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.newsletter-privacy {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}

/* =========================================================
   ARTICLE PAGE — SINGLE POST
   ========================================================= */

.single-article-wrap {
  padding: 3rem 0 0;
}

.article-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.article-header { margin-bottom: 2rem; }

.article-header__category { margin-bottom: 1rem; }

.article-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.article-deck {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-steel);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-steel);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
}

.article-byline .sep {
  color: var(--color-brass);
  opacity: 0.4;
}

.article-byline__author {
  font-weight: 500;
  color: var(--color-ink);
}

.article-featured-image {
  width: 100%;
  margin-bottom: 2.5rem;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.article-featured-image figcaption {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-steel);
  font-style: italic;
  margin-top: 0.625rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* Article Body */
.article-body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-ink);
}

.article-body p { margin-bottom: 1.5em; }
.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-navy);
  margin-top: 2.25em;
  margin-bottom: 0.75em;
  line-height: 1.2;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-ink);
  margin-top: 1.875em;
  margin-bottom: 0.625em;
  line-height: 1.25;
}

.article-body h4 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-body blockquote {
  border-left: 4px solid var(--color-brass);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2em 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-steel);
  line-height: 1.65;
}

.article-body blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  font-family: var(--font-ui);
  margin-top: 0.625rem;
  color: var(--color-steel);
  opacity: 0.7;
}

.article-body a {
  color: var(--color-brass);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.article-body a:hover {
  border-bottom-color: var(--color-brass);
}

.article-body img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1.5em 0;
}

.article-body figure { margin: 2.5em 0; }

.article-body figcaption {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-steel);
  font-style: italic;
  margin-top: 0.625rem;
  line-height: 1.5;
  opacity: 0.8;
}

.article-body ul,
.article-body ol {
  padding-left: 1.625rem;
  margin-bottom: 1.5em;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }

.article-body hr {
  border: none;
  border-top: 1px solid rgba(74, 85, 104, 0.15);
  margin: 2.5em 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.article-body th {
  background: var(--color-fog);
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  text-align: left;
  border-bottom: 2px solid var(--color-brass);
}

.article-body td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid rgba(74, 85, 104, 0.12);
  vertical-align: top;
}

.article-body tr:last-child td { border-bottom: none; }

/* Article Tags */
.article-tags {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(74, 85, 104, 0.12);
}

.article-tags__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin-bottom: 0.875rem;
}

.article-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-tag {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: var(--color-fog);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-steel);
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.article-tag:hover {
  background: var(--color-brass);
  color: var(--color-navy);
}

/* Related Articles */
.related-articles {
  padding: var(--space-xl) 1.5rem;
  max-width: var(--max-site-width);
  margin: 0 auto;
  border-top: 1px solid rgba(74, 85, 104, 0.1);
}

.related-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* =========================================================
   ARCHIVE / CATEGORY PAGE
   ========================================================= */

.archive-header {
  background: var(--color-fog);
  padding: 3rem 1.5rem 2.5rem;
}

.archive-header__inner {
  max-width: var(--max-site-width);
  margin: 0 auto;
}

.archive-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  margin-bottom: 0.875rem;
}

.archive-title-rule {
  width: 56px;
  height: 3px;
  background: var(--color-brass);
  margin-bottom: 0.875rem;
}

.archive-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-steel);
  line-height: 1.65;
  max-width: 580px;
}

.archive-content {
  max-width: var(--max-site-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Archive Item */
.archive-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(74, 85, 104, 0.1);
}

.archive-item:last-child { border-bottom: none; }

.archive-item__image {
  overflow: hidden;
  border-radius: 2px;
  flex-shrink: 0;
}

.archive-item__image a { display: block; overflow: hidden; }

.archive-item__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--ease-hover);
}

.archive-item:hover .archive-item__image img {
  transform: scale(1.03);
}

.archive-item__category { margin-bottom: 0.5rem; }

.archive-item__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.3;
  margin-bottom: 0.625rem;
}

.archive-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}

.archive-item__title a:hover { color: var(--color-navy); }

.archive-item__excerpt {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-steel);
  line-height: 1.65;
  margin-bottom: 0.875rem;
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */

.search-header {
  background: var(--color-fog);
  padding: 3rem 1.5rem;
}

.search-header__inner {
  max-width: 640px;
  margin: 0 auto;
}

.search-header__title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-ink);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.search-form-large {
  display: flex;
  gap: 0.625rem;
}

.search-form-large input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 15px;
  border: 1.5px solid rgba(74, 85, 104, 0.2);
  border-radius: 2px;
  background: var(--color-white);
  color: var(--color-ink);
  outline: none;
  transition: border-color var(--ease);
  -webkit-appearance: none;
}

.search-form-large input[type="search"]:focus {
  border-color: var(--color-brass);
}

.search-form-large button {
  padding: 0.875rem 1.375rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--ease);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-form-large button:hover {
  background: var(--color-brass);
  color: var(--color-navy);
}

.search-results {
  max-width: var(--max-site-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.search-results__count {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-steel);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(74, 85, 104, 0.1);
}

.no-results {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.no-results__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-ink);
  margin-bottom: 0.875rem;
}

.no-results__text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-steel);
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* =========================================================
   404 PAGE
   ========================================================= */

.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  text-align: center;
}

.not-found__inner {
  max-width: 500px;
}

.not-found__number {
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0;
  opacity: 0.1;
  user-select: none;
}

.not-found__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--color-ink);
  margin-bottom: 1rem;
  margin-top: -1.5rem;
  line-height: 1.3;
}

.not-found__text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-steel);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.not-found__home-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brass);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: opacity var(--ease);
}

.not-found__home-link:hover { opacity: 0.7; }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--color-navy);
}

.footer-top-border {
  height: 3px;
  background: var(--color-brass);
  width: 100%;
}

/* Footer Columns Grid */
.footer-cols {
  max-width: var(--max-site-width);
  margin: 0 auto;
  padding: 56px 48px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Col 1 — Brand */
.footer-brand__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity var(--ease);
}

.footer-brand__link:hover { opacity: 0.8; }

.logo-small-the {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-brass);
}

.logo-small-word {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
}

.logo-small-rule {
  width: 100px;
  height: 2px;
  background: var(--color-brass);
  margin-top: 6px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-steel);
  line-height: 1.9;
  max-width: 240px;
}

/* Col 2 & 3 — Links */
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-steel);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-col ul li a:hover { color: var(--color-fog); }

/* Col 4 — Newsletter */
.footer-newsletter h4 {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 14px;
}

.footer-newsletter p {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-steel);
  line-height: 1.8;
  margin-bottom: 18px;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.footer-newsletter-form input[type="email"] {
  background: #0a1520;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-bottom: none;
  padding: 11px 14px;
  color: var(--color-fog);
  font-family: var(--font-ui);
  font-size: 12px;
  outline: none;
  width: 100%;
  border-radius: 0;
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: var(--color-steel);
}

.footer-newsletter-form input[type="email"]:focus {
  border-color: var(--color-brass);
}

.footer-newsletter-form button {
  background: var(--color-brass);
  border: none;
  padding: 11px 14px;
  color: var(--color-navy);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  text-align: center;
  border-radius: 0;
  transition: background var(--ease);
}

.footer-newsletter-form button:hover {
  background: #b8943a;
}

.footer-newsletter .consent {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--color-steel);
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 0;
  opacity: 0.8;
}

/* Footer Bottom Bar */
.footer-bottom {
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--color-steel);
  letter-spacing: 0.3px;
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--color-steel);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-bottom-links a:hover { color: var(--color-brass); }

/* =========================================================
   PAGE TEMPLATE
   ========================================================= */

.page-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.page-header { margin-bottom: 2.5rem; }

.page-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-ink);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.page-title-rule {
  width: 50px;
  height: 3px;
  background: var(--color-brass);
}

.page-body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-ink);
}

.page-body p { margin-bottom: 1.5em; }

.page-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-navy);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.page-body h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-ink);
  margin-top: 1.75em;
  margin-bottom: 0.625em;
}

.page-body a {
  color: var(--color-brass);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.page-body a:hover { border-bottom-color: var(--color-brass); }

.page-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5em;
}

.page-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5em;
}

.page-body li { margin-bottom: 0.5em; }

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(74, 85, 104, 0.1);
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-numbers {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-steel);
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(74, 85, 104, 0.2);
  border-radius: 2px;
  text-decoration: none;
  transition: all var(--ease);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
  cursor: default;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.article-sidebar {
  padding: 2rem 1.5rem;
}

.widget { margin-bottom: 2rem; }

.widget-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(74, 85, 104, 0.15);
}

/* =========================================================
   GUTENBERG BLOCK OVERRIDES
   ========================================================= */

.wp-block-image figcaption {
  font-family: var(--font-ui) !important;
  font-size: 12px !important;
  color: var(--color-steel) !important;
  font-style: italic !important;
  text-align: left !important;
}

.wp-block-quote {
  border-left: 4px solid var(--color-brass) !important;
  padding: 0.25rem 0 0.25rem 1.5rem !important;
  font-style: italic !important;
  color: var(--color-steel) !important;
  margin: 2em 0 !important;
}

.wp-block-quote p {
  font-size: 1.25rem !important;
  line-height: 1.65 !important;
}

.wp-block-separator {
  border: none !important;
  border-top: 1px solid rgba(74, 85, 104, 0.15) !important;
  margin: 2.5em 0 !important;
}

.wp-block-pullquote {
  border-top: 3px solid var(--color-brass) !important;
  border-bottom: 3px solid var(--color-brass) !important;
  padding: 2rem 0 !important;
  margin: 2.5em 0 !important;
}

.wp-block-pullquote blockquote {
  border: none !important;
  padding: 0 !important;
}

.wp-block-pullquote blockquote p {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  color: var(--color-navy) !important;
  font-style: normal !important;
}

.wp-block-button__link {
  background: var(--color-navy) !important;
  border-radius: 2px !important;
  font-family: var(--font-ui) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

.is-style-outline .wp-block-button__link {
  border-color: var(--color-brass) !important;
  color: var(--color-brass) !important;
  background: transparent !important;
}

.wp-block-code {
  background: var(--color-fog) !important;
  border: 1px solid rgba(74, 85, 104, 0.15) !important;
  border-radius: 2px !important;
  font-size: 0.9em !important;
}

/* =========================================================
   RESPONSIVE — TABLET (768px+)
   ========================================================= */

@media (min-width: 768px) {

  /* Header — show desktop nav, hide hamburger */
  .header-nav { display: flex; }
  .hamburger { display: none; }

  /* Hero */
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hero-text { order: 1; flex: 1; min-width: 0; }
  .hero-image {
    order: 2;
    flex: 0 0 360px;
    max-width: 360px;
  }
  .hero-image img { height: 280px; }
  .hero-headline { font-size: 2.25rem; }

  /* Articles Grid */
  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  /* Category scroll */
  .category-scroll { grid-template-columns: repeat(2, 1fr); }

  /* Newsletter form row */
  .newsletter-form { flex-direction: row; }
  .newsletter-block__headline { font-size: 2rem; }

  /* Archive items alternating layout */
  .archive-item {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }
  .archive-item__image {
    flex: 0 0 260px;
    height: 180px;
  }
  .archive-item__image img {
    width: 100%;
    height: 100%;
  }
  .archive-item:nth-child(even) .archive-item__image { order: 2; }
  .archive-item:nth-child(even) .archive-item__body { order: 1; }

  /* Article title */
  .article-title { font-size: 2.25rem; }
  .article-deck { font-size: 1.25rem; }

  /* Related articles */
  .related-articles__grid { grid-template-columns: repeat(3, 1fr); }

  /* Footer — 4 column grid */
  .footer-cols { grid-template-columns: 1.8fr 1fr 1fr 1.6fr; gap: 48px; }
}

/* =========================================================
   RESPONSIVE — DESKTOP (1024px+)
   ========================================================= */

@media (min-width: 1024px) {

  /* Hero */
  .hero-headline { font-size: 2.875rem; }
  .hero-image { flex: 0 0 480px; max-width: 480px; }
  .hero-image img { height: 340px; }
  .hero-excerpt { font-size: 1.125rem; }

  /* Articles grid */
  .articles-grid { grid-template-columns: repeat(3, 1fr); }

  /* Category scroll — 4 columns */
  .category-scroll { grid-template-columns: repeat(4, 1fr); }

  /* Article */
  .article-title { font-size: 2.625rem; }

  /* Archive item image larger */
  .archive-item__image {
    flex: 0 0 300px;
    height: 210px;
  }
}

/* =========================================================
   WIDE SCREENS (1280px+)
   ========================================================= */

@media (min-width: 1280px) {
  .hero-headline { font-size: 3.25rem; }
}

/* =========================================================
   MOBILE HEADER / FOOTER ADJUSTMENTS
   ========================================================= */

@media (max-width: 767px) {
  /* Datebar: stack on very small screens */
  .datebar {
    padding: 8px 1.5rem;
    font-size: 9px;
  }

  /* Masthead: scale down logo */
  .header-masthead {
    padding: 20px 24px 16px;
    position: relative;
  }
  .logo-word {
    font-size: 32px;
    letter-spacing: 4px;
  }
  .logo-the {
    font-size: 9px;
    letter-spacing: 5px;
  }

  .logo-top-rule,
  .logo-bottom-rule {
    width: 100%;
    max-width: 280px;
  }

  /* Push hamburger away from the logo block */
  .menu-toggle,
  .nav-toggle,
  .hamburger {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Footer padding on mobile */
  .footer-cols {
    padding: 2.5rem 1.5rem 2rem;
  }
  .footer-bottom {
    padding: 16px 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Ensure header nav shows on article pages at desktop */
.is-article .header-nav,
.is-singular .header-nav {
  display: flex;
}
@media (max-width: 767px) {
  .is-article .header-nav,
  .is-singular .header-nav {
    display: none;
  }
}

/* =========================================================
   IN-CONTENT NEWSLETTER SUBSCRIBE FORM
   ========================================================= */

.incontent-subscribe {
  margin: 48px 0;
  text-align: center;
}
.incontent-rule-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.incontent-line {
  flex: 1;
  height: 1px;
  background: #C9A84C;
  opacity: 0.4;
}
.incontent-diamond {
  width: 6px;
  height: 6px;
  background: #C9A84C;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.incontent-inner {
  padding: 28px 0 24px;
}
.incontent-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #C9A84C;
  display: block;
  margin-bottom: 10px;
}
.incontent-copy {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  font-style: italic;
  color: #1A1A2E;
  line-height: 1.55;
  margin-bottom: 20px;
}
.incontent-form-row {
  display: inline-flex;
  gap: 0;
  max-width: 380px;
  width: 100%;
}
.incontent-form-row input[type="email"] {
  flex: 1;
  border: 1px solid rgba(13,27,42,0.18);
  border-right: none;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1A1A2E;
  background: #fff;
  outline: none;
}
.incontent-form-row input[type="email"]::placeholder { color: #9aa3ad; }
.incontent-form-row button {
  background: #C9A84C;
  border: none;
  padding: 10px 22px;
  color: #0D1B2A;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

/* =========================================================
   STICKY HEADER COLLAPSE WITH BRASS BAR
   ========================================================= */

/* Make header sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.35s ease;
}

/* Transition for nav bar brass background */
.site-header .header-nav {
  transition: background 0.35s ease, height 0.35s ease, padding 0.35s ease;
}

/* Fade-out transitions for ticker, datebar, masthead */
.site-header .ticker-bar,
.site-header .datebar,
.site-header .header-masthead {
  transition: opacity 0.3s ease, max-height 0.35s ease, padding 0.35s ease, background 0.35s ease;
  max-height: 300px;
  opacity: 1;
  overflow: hidden;
}

/* Collapse header elements when scrolled */
.site-header.scrolled .ticker-bar,
.site-header.scrolled .datebar,
.site-header.scrolled .header-masthead {
  max-height: 0;
  opacity: 0;
  display: block;
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}

/* Slim brass bar when scrolled */
.site-header.scrolled .header-nav {
  background: #C9A84C;
  padding: 0 48px;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  gap: 0;
}

/* Mini logo appears in sticky bar */
.site-header.scrolled .header-nav::before {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
  content: 'The Militarist';
}

/* Nav links go navy on brass background */
.site-header.scrolled .header-nav a {
  color: #0D1B2A;
  opacity: 0.6;
  font-size: 11px;
  letter-spacing: 2.5px;
}

.site-header.scrolled .header-nav a:hover {
  opacity: 1;
  color: #0D1B2A;
}

/* Hide sticky bar wordmark on desktop */
@media (min-width: 769px) {
  .site-header.scrolled .header-nav::before {
    display: none;
    content: none;
  }
}

/* =========================================================
   MOBILE — COLLAPSED STICKY BAR FIX
   ========================================================= */

@media (max-width: 768px) {
  .site-header.scrolled .header-nav {
    padding: 0 24px;
    height: 48px;
    justify-content: space-between;
    overflow: hidden;
  }

  /* Hide all nav links in sticky mode on mobile */
  .site-header.scrolled .header-nav a {
    display: none;
  }

  /* Show only a back-to-top or keep just the wordmark */
  .site-header.scrolled .header-nav::before {
    font-size: 16px;
    letter-spacing: 2px;
  }

  /* Remove the pseudo-element hamburger duplicate */
  .site-header.scrolled .header-nav::after {
    display: none;
  }

  /* Hide hamburger in scrolled sticky bar on mobile */
  .site-header.scrolled .menu-toggle,
  .site-header.scrolled .nav-toggle,
  .site-header.scrolled .hamburger,
  .site-header.scrolled button[data-toggle="mobile-nav"] {
    display: none;
  }

  /* Centre the logo wordmark in collapsed sticky bar */
  .site-header.scrolled .header-nav {
    justify-content: center;
    padding: 0;
    text-align: center;
  }

  .site-header.scrolled .header-nav::before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }
}

/* =========================================================
   MOBILE — NAV DRAWER
   ========================================================= */

@media (max-width: 768px) {
  .mobile-nav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0D1B2A;
    border-top: 1px solid rgba(201,168,76,0.2);
    border-bottom: 3px solid #C9A84C;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-nav-drawer.open {
    display: block;
    max-height: 400px;
  }

  .mobile-nav-drawer nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-drawer nav a {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #F4F4F0;
    text-decoration: none;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    opacity: 0.7;
  }

  .mobile-nav-drawer nav a:last-child {
    border-bottom: none;
  }

  .mobile-nav-drawer nav a:hover {
    opacity: 1;
    color: #C9A84C;
  }

  /* Make sure header is relatively positioned for drawer */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}

/* =========================================================
   DESKTOP — FOOTER RESTORE
   ========================================================= */

@media (min-width: 769px) {
  .footer-cols {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 48px;
    padding: 56px 80px 48px;
  }

  .footer-accordion-header {
    cursor: default;
    pointer-events: none;
  }

  .footer-accordion-icon {
    display: none;
  }

  .footer-accordion-body {
    max-height: none !important;
    overflow: visible;
  }

  .footer-brand {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer-newsletter {
    padding-top: 0;
    border-top: none;
  }
}

/* =========================================================
   MOBILE — FOOTER ACCORDION
   ========================================================= */

@media (max-width: 768px) {
  .footer-cols {
    grid-template-columns: 1fr;
    padding: 28px 24px 20px;
    gap: 0;
  }

  .footer-brand {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 12px;
  }

  .footer-newsletter {
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 0;
  }

  .footer-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .footer-accordion-header h4 {
    margin-bottom: 0;
  }

  .footer-accordion-icon {
    color: #C9A84C;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
  }

  .footer-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .footer-accordion-body.open {
    max-height: 300px;
  }

  .footer-accordion-body li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }

  .footer-accordion-body li:last-child {
    border-bottom: none;
  }

  .footer-bottom {
    padding: 16px 24px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .footer-bottom .footer-bottom-links {
    gap: 16px;
    justify-content: center;
  }
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: #C9A84C;
  color: #0D1B2A;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #0D1B2A;
  color: #C9A84C;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
