/* ===== ButterPost — Redesign 2.0 ===== */

/* ---------- CSS Variables ---------- */
:root {
  --primary:      #111111;
  --accent:       #2563EB;
  --accent-hover: #1D4ED8;
  --bg:           #FFFFFF;
  --surface:      #F4F6F9;
  --text:         #111827;
  --muted:        #64748B;
  --border:       #E2E8F0;
  --max-w:        1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 4px 4px;
  font-size: 14px; font-weight: 600; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: #1a1a1a;
  color: #9CA3AF;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.top-bar a { color: #9CA3AF; }
.top-bar a:hover { color: #fff; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-bar-social { display: flex; gap: .75rem; align-items: center; }
.top-bar-social a { display: flex; }

/* ---------- Breaking Ticker (hidden — replaced by top-bar label) ---------- */
.ticker-wrap { display: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--primary);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 1.5rem;
}
.site-logo {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.site-logo:hover { color: #93C5FD; }
.site-logo svg { width: 28px; height: 28px; }

/* Category nav strip */
.cat-nav-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.cat-nav-strip .container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-strip .container::-webkit-scrollbar { display: none; }
.cat-nav-strip a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  display: block;
}
.cat-nav-strip a:hover, .cat-nav-strip a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Main nav inside header (hidden when cat-nav-strip is present) */
.main-nav { display: none; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.btn-search {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.7); padding: 4px; display: flex; align-items: center;
}
.btn-search:hover { color: #fff; }
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: rgba(255,255,255,.8);
}

/* Mobile Nav */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: #111; z-index: 1000;
  flex-direction: column; padding: 2rem; overflow-y: auto;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay .close-btn {
  align-self: flex-end; background: none; border: none;
  color: #fff; cursor: pointer; margin-bottom: 2rem;
}
.mobile-nav-overlay a {
  color: #fff; font-size: 1.2rem; font-weight: 700;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08); display: block;
}
.mobile-nav-overlay a:hover { color: #93C5FD; }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Category Badge ---------- */
.cat-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
/* Outline badge → just colored text label (no box) */
.cat-badge-outline {
  display: inline-block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0;
  border: none;
  background: none;
}
.cat-badge-outline:hover { color: var(--accent-hover); }

/* ---------- Hero — Split Layout ---------- */
.hero-section { margin: 2rem 0 1.75rem; }

/* Legacy hero-card kept for article pages */
.hero-card {
  position: relative; border-radius: 10px;
  overflow: hidden; display: block;
  background: var(--primary);
}
.hero-card img {
  width: 100%; height: 500px;
  object-fit: cover; opacity: .82;
  transition: opacity .3s;
}
.hero-card:hover img { opacity: .75; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,25,.92) 0%, rgba(10,10,25,.3) 55%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2rem;
}
.hero-overlay .cat-badge { margin-bottom: .75rem; }

/* NEW: split hero for homepage */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow .25s;
  min-height: 420px;
}
.hero-split:hover { box-shadow: 0 10px 40px rgba(37,99,235,.12); }
.hero-split-img { overflow: hidden; }
.hero-split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 380px;
  transition: transform .4s ease;
}
.hero-split:hover .hero-split-img img { transform: scale(1.03); }
.hero-split-text {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
  background: #fff;
  order: -1; /* text left on desktop */
}
.hero-split-text .cat-badge { align-self: flex-start; }
.hero-headline {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--text);
}
.hero-excerpt { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.65; }
.hero-meta { color: var(--muted); font-size: 13px; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: .25rem; }
.hero-cta {
  color: var(--accent); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .25rem;
}
.hero-split:hover .hero-cta { text-decoration: underline; }

/* ---------- Featured Grid ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* ---------- Article Card (featured grid) — image-dominant, no border */
.article-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: opacity .15s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { opacity: .88; }
.article-card img {
  width: 100%; height: 210px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .85rem;
}
.article-card-body { padding: 0; flex: 1; display: flex; flex-direction: column; }
.article-card-body .cat-badge-outline { margin-bottom: .4rem; }
.article-card-headline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .4rem;
  color: var(--text);
  letter-spacing: -.015em;
}
.article-card:hover .article-card-headline { color: var(--accent); }
.article-card-excerpt { font-size: 13px; color: var(--muted); margin: 0 0 auto; line-height: 1.55; }
.article-card-meta { font-size: 12px; color: var(--muted); margin-top: .6rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* Horizontal card — BI/t3n style: no box, divider only */
.article-card-h {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  margin-bottom: 0;
  transition: opacity .15s;
}
.article-card-h:first-of-type { border-top: 1px solid var(--border); }
.article-card-h:hover { opacity: .85; }
.article-card-h img {
  width: 130px; height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.article-card-h .article-card-body { padding: 0; }

/* Hook text (Business Insider style) */
.article-hook {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .35rem;
  line-height: 1.4;
  font-style: italic;
}

/* ---------- Main Layout ---------- */
.layout-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  margin: 0 0 3rem;
}

/* ---------- Section Heading ---------- */
.section-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: .6rem;
  margin: 0 0 1.5rem;
  line-height: 1;
}

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.sidebar-box .section-heading { margin-bottom: 1rem; }

/* Most Popular */
.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-list li {
  display: flex; gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}
.popular-list li:last-child { border-bottom: none; }
.popular-num {
  font-size: 1.4rem; font-weight: 800;
  color: var(--border); line-height: 1;
  flex-shrink: 0; width: 26px;
  text-align: center; margin-top: 2px;
}
.popular-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); }
.popular-title:hover { color: var(--accent); }

/* Newsletter sidebar */
.newsletter-form input[type="email"] {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: inherit;
  margin-bottom: .75rem; outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form label { font-size: 13px; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .75rem; line-height: 1.4; }
.newsletter-form label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.btn-primary {
  display: block; width: 100%;
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .2s; text-align: center;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ---------- Article Page ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0 3rem;
}
.article-main { min-width: 0; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

.article-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  color: var(--text);
}
.article-deck {
  font-size: 1.1rem; color: var(--muted);
  line-height: 1.65; margin: 0 0 1.25rem;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.article-byline {
  display: flex; flex-wrap: wrap;
  gap: 1rem; align-items: center;
  font-size: 14px; color: var(--muted);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.article-byline .author { font-weight: 700; color: var(--text); }
.article-byline .read-time { display: flex; align-items: center; gap: .3rem; }

/* Share buttons */
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 6px;
  border: 1.5px solid var(--border);
  color: var(--muted); background: #fff;
  cursor: pointer; transition: all .15s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }
.share-btn.twitter:hover { border-color: #000; color: #000; }

/* Article body */
.article-body {
  font-size: 17px; line-height: 1.8; color: var(--text);
}
.article-body h2 {
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -.02em;
  margin: 2.25rem 0 .75rem;
  color: var(--text);
  padding-left: .85rem;
  border-left: 3px solid var(--accent);
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700;
  margin: 1.5rem 0 .6rem; color: var(--text);
}
.article-body p { margin: 0 0 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0; padding: .75rem 1.25rem;
  background: #EFF6FF; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--primary);
}
.article-body .disclaimer {
  font-size: 14px; color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem 1rem; margin: 2rem 0;
}
.article-body figure { margin: 1.5rem 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: .4rem; text-align: center; }
.article-body .pull-quote {
  border-left: 4px solid var(--accent);
  padding: .75rem 1.25rem; margin: 2rem 0;
  font-size: 1.25rem; line-height: 1.4; color: var(--text);
  font-weight: 600;
}

/* Author box */
.author-box {
  display: flex; gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem; margin: 2rem 0;
  align-items: flex-start;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.author-title { font-size: 13px; color: var(--muted); margin-bottom: .5rem; }
.author-bio { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- Related Articles ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #111; color: #9CA3AF; margin-top: 3rem; }
.footer-main { padding: 3rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: #fff; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: 14px; color: #9CA3AF; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .75rem; margin-top: .5rem; }
.footer-social a { color: #9CA3AF; }
.footer-social a:hover { color: #fff; }

.footer-legal-bar {
  background: #0a0a0a; padding: 1rem 0;
  font-size: 13px; color: #6B7280;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-legal-bar .container {
  display: flex; flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.footer-legal-bar a { color: #6B7280; }
.footer-legal-bar a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #111; color: #fff;
  padding: 1rem 0; z-index: 9000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  display: flex; flex-wrap: wrap;
  gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-text { font-size: 14px; line-height: 1.5; max-width: 640px; }
.cookie-text a { color: #93C5FD; text-decoration: underline; }
.cookie-buttons { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }
.btn-cookie-reject {
  background: none; border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: border-color .2s;
}
.btn-cookie-reject:hover { border-color: #fff; }
.btn-cookie-manage {
  background: none; border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: border-color .2s;
}
.btn-cookie-manage:hover { border-color: #fff; }
.btn-cookie-accept {
  background: var(--accent); border: none; color: #fff;
  padding: 8px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.btn-cookie-accept:hover { background: var(--accent-hover); }

/* Cookie Modal */
.cookie-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 9500;
  align-items: center; justify-content: center; padding: 1rem;
}
.cookie-modal-overlay.show { display: flex; }
.cookie-modal {
  background: #fff; border-radius: 12px;
  padding: 2rem; max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.cookie-modal h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 .75rem; color: var(--text); }
.cookie-modal p { font-size: 14px; color: var(--muted); margin: 0 0 1.25rem; }
.cookie-toggle-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-bottom: 1px solid var(--border);
}
.cookie-toggle-row:last-of-type { border-bottom: none; }
.cookie-toggle-label { font-size: 14px; font-weight: 600; margin-bottom: .25rem; }
.cookie-toggle-desc { font-size: 13px; color: var(--muted); }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #D1D5DB; border-radius: 24px;
  cursor: pointer; transition: background .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { opacity: .6; cursor: not-allowed; }
.cookie-modal-actions { display: flex; gap: .75rem; margin-top: 1.25rem; justify-content: flex-end; }

/* ---------- Search Bar ---------- */
.search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 800;
  align-items: flex-start; justify-content: center;
  padding-top: 100px;
}
.search-overlay.show { display: flex; }
.search-box {
  background: #fff; border-radius: 12px;
  padding: 1.5rem; width: 100%; max-width: 640px;
}
.search-box input {
  width: 100%; font-size: 1.2rem;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px; outline: none; font-family: inherit;
}
.search-box input:focus { border-color: var(--accent); }

/* ---------- Category Page ---------- */
.category-header {
  background: var(--primary); color: #fff;
  padding: 2.5rem 0; margin-bottom: 2.5rem;
}
.category-header h1 {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -.03em; margin: 0 0 .5rem;
}
.category-header p { color: rgba(255,255,255,.65); margin: 0; font-size: 15px; }

/* ---------- Category article grid ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.category-hero {
  background: var(--primary); color: #fff;
  padding: 3rem 0 2.5rem; margin-bottom: 0;
}
.category-hero h1 {
  font-size: 2.25rem; font-weight: 800;
  letter-spacing: -.03em; margin: 0 0 .6rem;
}
.category-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 600px; margin: 0; }

/* ---------- Tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; font-size: 12px; padding: 4px 12px;
  color: var(--muted); transition: background .15s, color .15s, border-color .15s;
}
.tag:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Ad Unit ---------- */
.ad-label {
  font-size: 10px; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 4px; display: block;
}

/* ---------- Legal Pages ---------- */
.legal-content {
  max-width: 780px; margin: 2.5rem auto; padding: 0 1.25rem;
}
.legal-content h1 {
  font-size: 1.9rem; font-weight: 800;
  letter-spacing: -.03em; margin: 0 0 .5rem; color: var(--text);
}
.legal-content .updated { font-size: 14px; color: var(--muted); margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .6rem; color: var(--text); }
.legal-content p, .legal-content li { font-size: 15px; line-height: 1.75; color: var(--text); }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content a { color: var(--accent); text-decoration: underline; }

/* ---------- 404 / Empty States ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state h2 { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: .75rem; }

/* ---------- Contact Form ---------- */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fff;
  outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Newsletter Inline ---------- */
.newsletter-section { margin: 3rem 0; }
.newsletter-inline-box {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  border-radius: 14px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.newsletter-inline-box::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.newsletter-inline-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.12);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; margin-top: .25rem;
}
.newsletter-inline-content { }
.newsletter-inline-content h3 {
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -.02em;
  color: #fff; margin: 0 0 .5rem;
}
.newsletter-inline-content p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; line-height: 1.6; }
.newsletter-inline-form { grid-column: 1 / -1; }
.newsletter-inline-box .newsletter-success { grid-column: 1 / -1; background: #16a34a; color: #fff; border-radius: .5rem; padding: 1rem 1.5rem; font-size: .95rem; text-align: center; font-weight: 500; }
.newsletter-inline-fields { display: flex; gap: .75rem; margin-bottom: .85rem; }
.newsletter-inline-fields input[type="email"] {
  flex: 1; padding: .75rem 1rem;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: .95rem;
  outline: none; transition: border-color .2s;
}
.newsletter-inline-fields input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter-inline-fields input[type="email"]:focus { border-color: rgba(255,255,255,.6); }
.newsletter-inline-fields .btn-primary { white-space: nowrap; flex-shrink: 0; width: auto; padding: .75rem 1.5rem; background: #fff; color: var(--accent); }
.newsletter-inline-fields .btn-primary:hover { background: #F0F7FF; }
.newsletter-consent {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .83rem; color: rgba(255,255,255,.65); cursor: pointer;
  flex-wrap: nowrap; min-width: 0;
}
.newsletter-consent span { flex: 1; min-width: 0; word-break: break-word; line-height: 1.5; }
.newsletter-consent a { color: rgba(255,255,255,.9); text-decoration: underline; }
.newsletter-consent input { margin-top: .2rem; flex-shrink: 0; }
.newsletter-section .newsletter-success {
  background: #16a34a; color: #fff;
  border-radius: 8px; padding: 1rem 1.5rem;
  font-size: .95rem; font-weight: 600; text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .layout-main { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-card-h { grid-template-columns: 120px 1fr; }
  .article-card-h img { width: 120px; height: 90px; }
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .hero-split-img { order: 0; }
  .hero-split-img img { min-height: 240px; width: 100%; }
  .hero-split-text { order: 1; padding: 1.25rem 1.5rem 1.5rem; background: #fff; }
  .hero-cta { font-size: 13px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .hamburger { display: flex; }
  .cat-nav-strip .container { display: none; }
  .hero-card img { height: 260px; }
  .hero-headline { font-size: clamp(1.2rem, 5vw, 1.7rem); }
  .featured-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-card-h { grid-template-columns: 100px 1fr; gap: .75rem; }
  .article-card-h img { width: 100px; height: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero-overlay { padding: 1.25rem; }
  .newsletter-inline-box {
    display: flex; flex-direction: column;
    gap: 1rem; padding: 1.5rem; overflow: visible;
  }
  .newsletter-inline-box::before { display: none; }
  .newsletter-inline-icon { display: none; }
  .newsletter-inline-fields { flex-direction: column; gap: .6rem; }
  .newsletter-inline-fields input[type="email"] { width: 100%; box-sizing: border-box; }
  .newsletter-inline-fields .btn-primary { width: 100%; }
  .newsletter-consent { flex-wrap: wrap; font-size: .8rem; }
  .newsletter-consent label { width: 100%; }
  .article-grid { grid-template-columns: 1fr; }
  .category-hero h1 { font-size: 1.6rem; }
  .section-heading { font-size: 10px; }
  .legal-content h1 { font-size: 1.4rem; }
}

@media (max-width: 600px) {
  .hero-card img { height: 200px; }
  .hero-overlay { padding: 1rem; }
  .hero-excerpt { display: none; }
  .article-headline { font-size: 1.4rem !important; }
  .article-deck { font-size: 1rem; }
  .container { padding: 0 1rem; }
  .site-header .container { padding: 0 1rem; }
  .header-inner { padding: 12px 0; gap: .75rem; }
  .site-logo { font-size: 1.3rem; }
  .top-bar { font-size: 11px; padding: 4px 0; }
  .sidebar-box .newsletter-form input[type="email"] { font-size: 14px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal-bar .container { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-buttons { width: 100%; justify-content: space-between; }
  .top-bar .top-bar-social { display: none; }
  .article-card img { height: 180px; }
  .popular-num { font-size: 1.1rem; width: 20px; }
  .newsletter-inline-box { padding: 1.25rem; }
  .newsletter-inline-content h3 { font-size: 1.1rem; }
}

@media (max-width: 360px) {
  .site-logo { font-size: 1.15rem; }
  .container { padding: 0 .75rem; }
  .newsletter-inline-box { padding: 1rem; }
  .hero-card img { height: 170px; }
  .footer-col-title { font-size: 12px; }
}
