/* =========================================================
   HOME BRIEF — HOME DECOR EDITORIAL
   Shared Stylesheet v1.0 — premium editorial
   Ported and adapted from Blush Brief
   ========================================================= */

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

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

:root {
  --terracotta: #B5714A;
  --terracotta-dark: #9A5E3A;
  --stone: #8C7355;
  --linen: #FAF9F6;
  --warm-white: #F5F2ED;
  --black: #111111;
  --off-white: #FAF9F6;
  --mid-grey: #666666;
  --light-grey: #E8E4DE;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --max-width: 1280px;
  --article-width: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ----- NAVIGATION ----- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,249,246,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light-grey);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.nav-logo span {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--terracotta); }

.nav-subscribe {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--black);
  color: white;
  padding: 0.5rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.nav-subscribe:hover { background: var(--terracotta); }

/* ----- DARK MODE TOGGLE ----- */
.darkmode-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--black);
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.darkmode-btn:hover { opacity: 1; }
.darkmode-btn svg { width: 15px; height: 15px; }

/* ----- SEARCH ----- */
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--black);
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.nav-search-btn:hover { opacity: 1; }
.nav-search-btn svg { width: 18px; height: 18px; }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250,249,246,0.97);
  backdrop-filter: blur(8px);
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
}
.search-overlay.open { display: flex; }

.search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: 0 1.5rem;
}
.search-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0.25rem;
}
.search-close:hover { color: #111; }

.search-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 2rem;
  gap: 0.75rem;
}
.search-input-wrap svg { width: 22px; height: 22px; opacity: 0.4; flex-shrink: 0; }
.search-field {
  flex: 1;
  border: none;
  background: none;
  font-size: 1.5rem;
  font-family: var(--serif);
  padding: 0.75rem 0;
  outline: none;
  color: #1a1a1a;
}
.search-field::placeholder { color: #bbb; }

.search-results { width: 100%; }
.search-result-count {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1rem;
}
.search-result-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #1a1a1a;
  align-items: flex-start;
}
.search-result-item:hover .search-result-title { color: var(--terracotta); }
.search-result-img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e0d6;
}
.search-result-body { flex: 1; }
.search-result-cat {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.2rem;
}
.search-result-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  transition: color 0.15s;
}
.search-result-excerpt {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-empty {
  color: #999;
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ----- HERO ----- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  max-height: 800px;
  overflow: hidden;
  margin-top: 64px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.75) 0%, rgba(17,17,17,0.1) 60%, transparent 100%);
}

.hero-content {
  position: absolute;
  bottom: 3.5rem;
  left: 3rem;
  right: 3rem;
  max-width: 680px;
  color: white;
}

.hero-thesis {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.hero-category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: white;
  color: var(--black);
  padding: 0.75rem 1.75rem;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover { background: var(--terracotta); color: white; }

/* ----- TRENDING TICKER ----- */
.trending-ticker {
  background: var(--black);
  color: white;
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
}

.ticker-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: 0 1.25rem;
  white-space: nowrap;
  border-right: 1px solid #333;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 45s linear infinite;
}

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

.ticker-item {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  padding: 0 1.25rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.ticker-item:hover { color: var(--terracotta); }

.ticker-sep {
  font-size: 0.72rem;
  color: #444;
  padding-right: 0.5rem;
}

/* ----- CATEGORY FILTER ----- */
.category-filter {
  display: flex;
  gap: 0;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--light-grey);
  flex-wrap: wrap;
  gap: 0.5rem;
  background: white;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--light-grey);
  color: var(--mid-grey);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--stone); color: var(--stone); }
.filter-btn.active { background: var(--black); border-color: var(--black); color: white; }

/* ----- ARTICLE GRID ----- */
.article-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.article-card {
  display: block;
  color: var(--black);
  text-decoration: none;
  transition: opacity 0.2s;
}
.article-card:hover { opacity: 0.85; }

.card-image-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e8e0d6;
  margin-bottom: 1rem;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-image { transform: scale(1.03); }

.card-body {}

.card-category {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--mid-grey);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 0.02em;
}

/* ----- NEWSLETTER SECTION ----- */
.newsletter-section {
  background: var(--black);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.newsletter-section .nl-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.newsletter-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.newsletter-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.nl-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.nl-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: white;
  font-size: 0.9rem;
  font-family: var(--sans);
  outline: none;
}
.nl-input::placeholder { color: rgba(255,255,255,0.35); }

.nl-btn {
  padding: 0.85rem 1.5rem;
  background: var(--terracotta);
  color: white;
  border: none;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.nl-btn:hover { background: var(--terracotta-dark); }

.nl-disclaimer {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.75rem;
}

/* ----- FOOTER ----- */
.site-footer {
  background: white;
  border-top: 1px solid var(--light-grey);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-logo span { color: var(--terracotta); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid-grey);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--terracotta); }

.footer-copy {
  font-size: 0.72rem;
  color: #bbb;
}

/* ----- ARTICLE PAGE ----- */
.article-hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
  margin-top: 64px;
}

.article-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.7) 0%, rgba(17,17,17,0.05) 70%, transparent 100%);
}

.article-hero-content {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  right: 3rem;
  max-width: 760px;
  color: white;
}

.article-category-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

.article-hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.article-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-width: 600px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-grey);
  padding: 1.25rem 2rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--terracotta); }

.ad-leaderboard {
  width: 100%;
  background: #f5f1ec;
  border-top: 1px solid var(--light-grey);
  border-bottom: 1px solid var(--light-grey);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-leaderboard-inner {
  max-width: 728px;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-sidebar-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ccc;
}

.article-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

article {
  min-width: 0;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--mid-grey);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--light-grey);
  margin-bottom: 2rem;
}

.byline-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--light-grey);
  display: inline-block;
}

.bookmark-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--light-grey);
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  color: var(--mid-grey);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.15s;
}
.bookmark-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.bookmark-btn.saved { border-color: var(--terracotta); color: var(--terracotta); background: #fef5f0; }

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222;
  max-width: var(--article-width);
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  color: var(--black);
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body strong { font-weight: 600; }

.article-body blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: #444;
  line-height: 1.5;
}

/* Why this matters box */
.why-this-matters {
  background: var(--warm-white);
  border-left: 3px solid var(--terracotta);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 2px 2px 0;
}

.why-this-matters h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.why-this-matters p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Verdict / Scorecard box */
.verdict-box {
  background: #fff;
  border: 1px solid var(--light-grey);
  border-top: 3px solid var(--terracotta);
  padding: 1.5rem;
  margin: 2rem 0;
}

.verdict-box h3 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  font-family: var(--sans);
}

.verdict-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.verdict-label {
  font-weight: 600;
  min-width: 120px;
  color: var(--black);
  flex-shrink: 0;
}

.verdict-value { color: #444; }

/* Mid-article subscribe */
.mid-article-subscribe {
  background: var(--black);
  color: white;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}

.mas-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}

.mas-copy {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.mas-form {
  display: flex;
  gap: 0;
}

.mas-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: white;
  font-size: 0.85rem;
  font-family: var(--sans);
  outline: none;
}
.mas-input::placeholder { color: rgba(255,255,255,0.3); }

.mas-btn {
  padding: 0.65rem 1.25rem;
  background: var(--terracotta);
  color: white;
  border: none;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.mas-btn:hover { background: var(--terracotta-dark); }

/* Article sidebar */
.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-newsletter {
  background: var(--warm-white);
  border: 1px solid var(--light-grey);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-newsletter .nl-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.sidebar-newsletter h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.sidebar-newsletter p {
  font-size: 0.82rem;
  color: var(--mid-grey);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sidebar-nl-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nl-input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--light-grey);
  background: white;
  font-size: 0.85rem;
  font-family: var(--sans);
  outline: none;
  color: var(--black);
}
.sidebar-nl-input:focus { border-color: var(--stone); }

.sidebar-nl-btn {
  padding: 0.65rem;
  background: var(--black);
  color: white;
  border: none;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-nl-btn:hover { background: var(--terracotta); }

.sidebar-related h3 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  border-bottom: 1px solid var(--light-grey);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.sidebar-related-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-grey);
  color: var(--black);
  transition: opacity 0.15s;
}
.sidebar-related-item:hover { opacity: 0.7; }

.sidebar-related-img {
  width: 65px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e0d6;
}

.sidebar-related-body .cat {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.2rem;
}

.sidebar-related-body .title {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Disclosure notice */
.affiliate-notice {
  font-size: 0.78rem;
  color: var(--mid-grey);
  background: var(--warm-white);
  border: 1px solid var(--light-grey);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  line-height: 1.5;
}
.affiliate-notice a { color: var(--terracotta); text-decoration: underline; }

/* Newsletter popup */
#newsletter-popup {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 340px;
  background: #1a1a1a;
  color: #fff;
  padding: 2rem;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
#newsletter-popup.visible { display: block; }
#newsletter-popup .popup-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
#newsletter-popup .popup-close:hover { color: #fff; }
#newsletter-popup h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--terracotta);
}
#newsletter-popup p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.popup-form { display: flex; flex-direction: column; gap: 0.5rem; }
.popup-input {
  padding: 0.7rem 1rem;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
}
.popup-input::placeholder { color: #666; }
.popup-btn {
  padding: 0.7rem;
  background: var(--terracotta);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.popup-btn:hover { background: var(--terracotta-dark); }
.popup-disclaimer {
  font-size: 0.7rem;
  color: #555;
  margin-top: 0.5rem;
  text-align: center;
}

/* Dark Mode */
body.dark-mode {
  background: #111;
  color: #e8e0d6;
}
body.dark-mode .site-nav {
  background: rgba(17,17,17,0.97);
  border-bottom-color: #2a2a2a;
}
body.dark-mode .category-filter { background: #1a1a1a; border-bottom-color: #2a2a2a; }
body.dark-mode .filter-btn { border-color: #333; color: #888; }
body.dark-mode .filter-btn.active { background: #e8e0d6; border-color: #e8e0d6; color: #111; }
body.dark-mode .article-card { color: #e8e0d6; }
body.dark-mode .card-excerpt { color: #888; }
body.dark-mode .card-meta { color: #555; }
body.dark-mode .card-image-wrap { background: #222; }
body.dark-mode .site-footer { background: #1a1a1a; border-top-color: #2a2a2a; }
body.dark-mode .footer-links a { color: #666; }
body.dark-mode .search-overlay { background: rgba(17,17,17,0.97); }
body.dark-mode .search-field { color: #e8e0d6; }
body.dark-mode .search-input-wrap { border-bottom-color: #e8e0d6; }
body.dark-mode .search-result-item { color: #e8e0d6; border-bottom-color: #2a2a2a; }
body.dark-mode .article-body { color: #ccc; }
body.dark-mode .why-this-matters { background: #1a1a1a; }
body.dark-mode .verdict-box { background: #1a1a1a; border-color: #2a2a2a; }
body.dark-mode .article-byline { border-bottom-color: #2a2a2a; color: #666; }
body.dark-mode .sidebar-newsletter { background: #1a1a1a; border-color: #2a2a2a; }
body.dark-mode .sidebar-related h3 { border-bottom-color: #2a2a2a; }
body.dark-mode .sidebar-related-item { border-bottom-color: #2a2a2a; color: #e8e0d6; }
body.dark-mode .affiliate-notice { background: #1a1a1a; border-color: #2a2a2a; color: #888; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero-content { left: 1.5rem; right: 1.5rem; }
  .article-hero-content { left: 1.5rem; right: 1.5rem; }
  .article-layout { padding: 0 1.25rem 3rem; }
}

@media (max-width: 540px) {
  .article-grid { grid-template-columns: 1fr; }
  .site-nav { padding: 0 1.25rem; }
  .nl-form { flex-direction: column; }
  .nl-input { border-right: 1px solid rgba(255,255,255,0.15); }
}
