/* ============================================================
   CAPITAL AND WESTMINSTER — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ======================== CSS VARIABLES ======================== */
:root {
  --bg-forest: #1a2a1a;
  --bg-main: #f8f6f0;
  --accent: #c9a96e;
  --accent-dark: #b8924d;
  --accent-light: #dfc48a;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --bg-section: #f0ede4;
  --border-light: #e5e0d5;
  --border-mid: #cdc7bc;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 100px;
  --t-fast: 150ms ease;
  --t-mid: 250ms ease;
  --t-slow: 420ms ease;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --shadow-lift: 0 18px 52px rgba(0,0,0,.15);
  --max-w: 1340px;
}

/* ======================== RESET ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-sans); }
ul { list-style: none; }

/* ======================== TYPOGRAPHY ======================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--text-primary);
}

/* ======================== HEADER ======================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
}

.nav-strip {
  background: var(--bg-forest);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-family: var(--font-sans);
  border-bottom: 1px solid rgba(201,169,110,.2);
}
.nav-strip-left {
  font-size: .67rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.nav-strip-left strong {
  color: var(--accent);
  margin-right: 3px;
  font-weight: 600;
}
.nav-strip-right {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  display: flex;
  gap: 20px;
}
.nav-strip-right a:hover { color: var(--accent); transition: color var(--t-fast); }

.nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--t-mid), background var(--t-mid);
}
.nav-bar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
  padding: 4px 0;
}
.logo-img {
  display: block;
  height: 54px;
  width: auto;
  border-radius: 6px;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.nav-logo:hover .logo-img {
  opacity: .88;
  transform: scale(.98);
}
/* Fallback text (used in footer/modal/admin inline contexts) */
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-forest);
  letter-spacing: -.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.logo-name .amp { color: var(--accent); }
.logo-sub {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}
.nav-item {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 100%;
  font-size: .855rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  position: relative;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--t-mid);
  border-radius: 1px;
}
.nav-item:hover > .nav-link,
.nav-link:hover { color: var(--bg-forest); }
.nav-item:hover > .nav-link::after { transform: scaleX(1); }
.nav-link svg { width: 13px; height: 13px; transition: transform var(--t-fast); }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* Mega Dropdown */
.mega-drop {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-top: 3px solid var(--accent);
  box-shadow: 0 24px 64px rgba(0,0,0,.13), 0 8px 20px rgba(0,0,0,.07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-mid), visibility var(--t-mid), transform var(--t-mid);
  z-index: 800;
}
.nav-item:hover .mega-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-drop-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 28px 32px;
  display: grid;
  gap: 28px;
}
.mega-drop-inner.cols-5 { grid-template-columns: repeat(4, 1fr) 1.6fr; }
.mega-drop-inner.cols-5b { grid-template-columns: repeat(4, 1fr) 1.6fr; }

.drop-col h4 {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--accent-dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.drop-col a {
  display: block;
  font-size: .84rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.drop-col a:hover {
  color: var(--bg-forest);
  padding-left: 4px;
}

.drop-featured {
  background: var(--bg-section);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--t-mid);
}
.drop-featured:hover { box-shadow: var(--shadow-md); }
.drop-featured img {
  width: 100%; height: 130px;
  object-fit: cover;
}
.drop-featured-body { padding: 14px 16px 16px; }
.drop-featured-tag {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 5px;
}
.drop-featured-title {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 24px;
}
.btn-subscribe {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 22px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-subscribe:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,169,110,.38);
}
.btn-icon {
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-secondary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-icon:hover { background: var(--bg-section); color: var(--text-primary); }
.btn-icon svg { width: 18px; height: 18px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 1px;
  transition: all var(--t-mid);
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 850;
  overflow-y: auto;
  padding: 24px 28px 48px;
  transform: translateX(100%);
  transition: transform var(--t-mid);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}
.mobile-drawer-section h4 {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin: 24px 0 8px;
}

/* ======================== HERO ======================== */
.hero {
  position: relative;
  height: 84vh;
  min-height: 580px;
  max-height: 860px;
  overflow: hidden;
  margin-top: var(--header-h);
  background: var(--bg-forest);
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,.04) 0%,
    rgba(0,0,0,.18) 35%,
    rgba(0,0,0,.62) 70%,
    rgba(0,0,0,.88) 100%
  );
}
.hero-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px 52px;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  max-width: 820px;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-sub {
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.4); }
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--text-primary);
  padding: 12px 28px;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  transition: all var(--t-mid);
}
.btn-read:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,.35);
}
.btn-read svg { width: 16px; height: 16px; }
.hero-scroll-hint {
  position: absolute;
  bottom: 24px; right: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .5;
}
.hero-scroll-hint span {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--white);
  writing-mode: horizontal-tb;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
}

/* ======================== SECTION HEADERS ======================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.6em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
}
.section-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t-fast);
}
.section-link:hover { gap: 8px; }
.section-link svg { width: 14px; height: 14px; }

/* ======================== ARTICLE GRID ======================== */
.articles-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 28px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.articles-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.articles-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* First article in homepage grid is featured (2 cols wide, horizontal layout) */
.article-card-featured {
  grid-column: span 2;
  flex-direction: row;
}
.article-card-featured .card-img-wrap {
  flex: 0 0 54%;
  max-height: 340px;
}
.article-card-featured .card-img-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
}
.article-card-featured .card-body {
  padding: 32px 28px 28px;
  justify-content: space-between;
}
.article-card-featured .card-headline { font-size: 1.55rem !important; }
.article-card-featured .card-excerpt {
  -webkit-line-clamp: 4;
  max-height: unset;
}

.article-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.bookmark-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  z-index: 10;
  transition: transform var(--t-fast, .15s);
}
.bookmark-btn:hover { transform: scale(1.15); }
.bookmark-btn svg {
  width: 20px;
  height: 20px;
  stroke: #1a1a1a;
  stroke-width: 1.8;
  fill: none;
  transition: fill .2s ease, stroke .2s ease;
}
.bookmark-btn.saved svg {
  fill: #1a1a1a;
  stroke: #1a1a1a;
}
.bookmark-tooltip { display: none; }
.bookmark-login-prompt {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1c2b1e;
  color: #fff;
  padding: 13px 22px;
  border-radius: 6px;
  font-size: .875rem;
  font-family: var(--font-sans);
  letter-spacing: .01em;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transition: opacity .22s ease, transform .22s ease;
}
.bookmark-login-prompt.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.bookmark-login-prompt a {
  color: #c9a96e;
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
}
.bookmark-login-prompt a:hover { text-decoration: underline; }
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.card-img-wrap {
  overflow: hidden;
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.article-card:hover .card-img-wrap img { transform: scale(1.04); }
.article-card-featured .card-img-wrap img { aspect-ratio: 16/9; }

.card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-dark);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 1px;
}
.card-tag::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t-mid);
}
.article-card:hover .card-tag::after { width: 100%; }

.card-headline {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.article-card:hover .card-headline { color: var(--bg-forest); }

/* Dynamic font sizing for card headlines */
.card-headline.hl-xl { font-size: 1.45rem; }
.card-headline.hl-lg { font-size: 1.2rem; }
.card-headline.hl-md { font-size: 1.05rem; }
.card-headline.hl-sm { font-size: .92rem; }

.card-excerpt {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: #888;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.card-meta-dot { width: 2px; height: 2px; border-radius: 50%; background: #bbb; }

.card-headline-underline {
  display: inline;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size var(--t-mid);
}
.article-card:hover .card-headline-underline { background-size: 100% 2px; }

/* ======================== GOLD DIVIDER ======================== */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 8px 0;
}
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, var(--accent) 60%, transparent);
  margin: 0;
}

/* ======================== NEWSLETTER ======================== */
.newsletter-section {
  background: var(--bg-forest);
  padding: 72px 28px;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.newsletter-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.newsletter-inner .section-eyebrow {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.newsletter-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.newsletter-inner p {
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
  font-size: .95rem;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .88rem;
  border-radius: 4px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.14);
}
.btn-gold {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 13px 24px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 4px;
  white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-gold:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.newsletter-note {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  margin-top: 12px;
}

/* Newsletter row (inline variant in footer / sidebar) */
.newsletter-row-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-row-form input {
  padding: 11px 16px;
  border: 1px solid var(--border-mid);
  background: var(--white);
  color: var(--text-primary);
  font-size: .85rem;
  border-radius: 4px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color var(--t-fast);
}
.newsletter-row-form input:focus { border-color: var(--accent); }
.newsletter-row-form .btn-gold {
  width: 100%;
  padding: 11px;
}

/* ======================== FOOTER ======================== */
footer {
  background: var(--bg-forest);
  color: rgba(255,255,255,.65);
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 28px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo-img { height: 72px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(201,169,110,.25); }
.footer-brand .logo-name { color: var(--white); font-size: 1.4rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); }
.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin: 16px 0 24px;
  line-height: 1.65;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  padding: 4px 0;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.3); transition: color var(--t-fast); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.65); }

/* ======================== MODAL ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid), visibility var(--t-mid);
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lift);
  transform: translateY(16px) scale(.97);
  transition: transform var(--t-mid);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-banner {
  background: var(--bg-forest);
  padding: 32px 36px 28px;
  position: relative;
}
.modal-banner .logo-name { color: var(--white); font-size: 1.2rem; }
.modal-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 12px;
  line-height: 1.25;
}
.modal-banner p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-top: 8px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.1);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover { background: rgba(255,255,255,.2); color: var(--white); }
.modal-body { padding: 28px 36px 36px; }
.modal-body label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-top: 16px;
}
.modal-body label:first-child { margin-top: 0; }
.modal-body input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 5px;
  font-size: .88rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--t-fast);
}
.modal-body input:focus { border-color: var(--accent); }
.modal-body .btn-gold { width: 100%; padding: 13px; margin-top: 20px; font-size: .9rem; }
.modal-dismiss {
  display: block;
  text-align: center;
  font-size: .76rem;
  color: var(--text-secondary);
  margin-top: 12px;
  cursor: pointer;
  transition: color var(--t-fast);
}
.modal-dismiss:hover { color: var(--text-primary); }
.modal-success {
  text-align: center;
  padding: 32px;
}
.modal-success .checkmark {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--white);
}
.modal-success h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.modal-success p { font-size: .88rem; color: var(--text-secondary); }

/* ======================== BACK TO TOP ======================== */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(201,169,110,.4);
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--t-mid);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }
#back-to-top svg { width: 18px; height: 18px; }

/* ======================== READING PROGRESS ======================== */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 1200;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(201,169,110,.5);
}

/* ======================== ARTICLE PAGE ======================== */
.article-hero {
  position: relative;
  height: 68vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
  margin-top: var(--header-h);
  background: var(--bg-forest);
}
.article-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.article-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.72) 85%, rgba(0,0,0,.88) 100%);
}
.article-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px 44px;
}
.article-kicker {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.article-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  max-width: 880px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
  margin-bottom: 14px;
}
.article-sub-hero {
  font-size: clamp(.92rem, 1.5vw, 1.08rem);
  color: rgba(255,255,255,.78);
  max-width: 680px;
  line-height: 1.55;
}

.article-page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 80px;
  align-items: start;
}

.article-main-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.article-author {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text-primary);
}
.article-date, .article-reading-time {
  font-size: .8rem;
  color: var(--text-secondary);
}
.meta-sep { color: var(--border-mid); }
.article-cat-badge {
  display: inline-block;
  background: var(--bg-section);
  color: var(--accent-dark);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.82;
  color: #2a2a2a;
}
.article-body p { margin-bottom: 1.5em; font-family: var(--font-sans); font-size: 1.05rem; }
.article-body h2 { font-size: 1.65rem; margin: 2em 0 .7em; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); }
.article-body h3 { font-size: 1.3rem; margin: 1.6em 0 .6em; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--bg-section);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.article-body ul, .article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.article-body li { margin-bottom: .4em; font-family: var(--font-sans); font-size: 1rem; }

/* Sidebar */
.article-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-widget {
  background: var(--bg-section);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-newsletter-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.sidebar-newsletter-sub {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Related articles */
.related-section {
  background: var(--bg-section);
  padding: 64px 28px;
  margin-top: 0;
}
.related-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

/* ======================== CATEGORY PAGE ======================== */
.category-hero {
  background: var(--bg-forest);
  margin-top: var(--header-h);
  padding: 60px 28px;
  border-bottom: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
}
.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(201,169,110,.03) 40px,
    rgba(201,169,110,.03) 80px
  );
}
.category-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.category-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.category-hero p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  max-width: 500px;
}

/* ======================== SCROLL ANIMATIONS ======================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s 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; }

/* ======================== EMPTY STATE ======================== */
.empty-state {
  text-align: center;
  padding: 80px 28px;
  grid-column: 1 / -1;
}
.empty-state h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: .9rem; color: #999; }

/* ======================== SEARCH BAR ======================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248,246,240,.97);
  z-index: 950;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid), visibility var(--t-mid);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
  width: 100%;
  max-width: 680px;
  padding: 0 28px;
}
.search-box input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--accent);
  padding: 16px 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  background: transparent;
  color: var(--text-primary);
  outline: none;
}
.search-box input::placeholder { color: var(--border-mid); }
.search-close {
  position: absolute;
  top: 28px; right: 28px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.search-results {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-result-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--t-fast);
}
.search-result-item:hover { box-shadow: var(--shadow-md); }
.search-result-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-result-text h4 { font-family: var(--font-serif); font-size: .95rem; margin-bottom: 4px; }
.search-result-text p { font-size: .78rem; color: var(--text-secondary); }

/* ======================== UTILITY ======================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1100px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card-featured { grid-column: span 2; flex-direction: row; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-page-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-drop-inner.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .drop-featured { display: none; }
}
@media (max-width: 800px) {
  :root { --header-h: 100px; }
  .nav-links { display: none; }
  .nav-actions .btn-subscribe { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-drawer { display: block; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card-featured { grid-column: span 1; flex-direction: column; max-height: unset; }
  .article-card-featured .card-img-wrap { flex: none; max-height: unset; }
  .article-card-featured .card-img-wrap img { aspect-ratio: 16/9; height: auto; }
  .article-card-featured .card-body { padding: 20px 22px 24px; }
  .hero-body { padding: 0 20px 36px; }
  .hero { height: 70vh; }
  .newsletter-form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 520px) {
  .nav-strip { display: none; }
  :root { --header-h: 68px; }
  .articles-section { padding: 40px 16px; }
  .container { padding: 0 16px; }
  .hero-headline { font-size: 1.7rem; }
}
