/*
Theme Name: CryptoJournal
Theme URI: https://adulting.sportjournal.co.uk/
Author: CryptoJournal
Description: Independent crypto editorial magazine theme — news, guides, reviews and analysis across exchanges, DeFi, wallets, security and regulation. Editorial magazine layout built on native WordPress posts and categories. Lightweight, no page builder, SEO/AEO-oriented.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
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: cryptojournal
Tags: blog, news, magazine, editorial, custom-menu, featured-images, two-columns, right-sidebar
*/

/* ============ CryptoJournal — editorial crypto magazine ============ */
:root {
  --ink: #0b1120;
  --ink-2: #111a2e;
  --ink-3: #1a2540;
  --surface: #ffffff;
  --bg: #f5f6f8;
  --bg-soft: #eef1f5;
  --line: #e5e8ee;
  --text: #1c2333;
  --text-muted: #5c6678;
  --text-faint: #8a93a6;

  --green: #16c96a;
  --green-dark: #0f9e53;
  --green-soft: #e6faf0;
  --lime: #b6f36b;
  --amber: #f5a623;
  --amber-soft: #fff3e0;
  --red: #e5484d;
  --blue: #2f6bff;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px rgba(16, 24, 40, .10);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Iowan Old Style", serif;

  --header-h: 64px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.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; left: -999px; top: 8px; z-index: 999;
  background: var(--green); color: #04120a; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #04140b; }
.btn-primary:hover { background: #13bd60; box-shadow: 0 8px 20px rgba(22, 201, 106, .35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1a2540; box-shadow: 0 8px 20px rgba(11, 17, 32, .25); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: #fff;
  box-shadow: var(--shadow-sm);
}
.topbar { background: #070b15; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
.topbar-note { margin: 0; color: #b9c2d4; }
.topbar-note a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.topbar-note strong { color: #fff; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: #b9c2d4; }
.topbar-links a:hover { color: #fff; }

.header-main { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--green), var(--lime));
  color: #06140b; font-weight: 900; font-size: 16px; letter-spacing: -.5px;
  box-shadow: 0 6px 16px rgba(22,201,106,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: #fff; }
.brand-tag { font-size: 11px; color: #93a0b8; letter-spacing: .4px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  color: #c7d0e0; background: none; border: none;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.is-active { color: var(--lime); }
.chev { font-size: 10px; opacity: .7; }

.nav-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; color: var(--text); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 200;
}
.nav-dropdown:hover .dropdown,
.nav-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text);
}
.dropdown a:hover { background: var(--green-soft); color: var(--green-dark); }
.dropdown a .n { font-size: 12px; font-weight: 700; color: var(--text-faint); }
.dropdown a:hover .n { color: var(--green-dark); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.1);
}
.search-toggle:hover { background: rgba(255,255,255,.12); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 11px; }
.menu-toggle span { display: block; height: 2px; width: 100%; background: #fff; margin: 4px 0; border-radius: 2px; transition: .2s; }

.search-bar { border-top: 1px solid rgba(255,255,255,.08); background: #0d1426; padding: 14px 0; }
.search-bar[hidden] { display: none; }
.search-box { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 6px 8px 6px 16px; box-shadow: var(--shadow); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box input { flex: 1; border: none; outline: none; font-size: 15px; font-family: inherit; color: var(--text); padding: 10px 0; background: none; }
.search-box input::placeholder { color: var(--text-faint); }
.search-box button { border: none; background: var(--green); color: #04140b; font-weight: 700; padding: 10px 18px; border-radius: 9px; font-size: 14px; }

.mobile-nav { background: #0d1426; border-top: 1px solid rgba(255,255,255,.08); padding: 10px 24px 20px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 12px 4px; color: #d5dce9; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav details summary { padding: 12px 4px; color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; list-style: none; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details summary::after { content: "+"; float: right; color: #93a0b8; }
.mobile-nav details[open] summary::after { content: "\2013"; }
.mobile-nav details a { padding-left: 16px; font-weight: 500; color: #b9c2d4; }
.mobile-nav a.btn { margin-top: 14px; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(22,201,106,.22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(47,107,255,.25), transparent 55%),
    var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-inner.hero-solo { grid-template-columns: 1fr; max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green-dark);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); }
.hero .eyebrow { color: var(--lime); }
.hero-title { font-family: var(--font-serif); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -.5px; font-weight: 700; }
.hero-title .accent { color: var(--lime); }
.hero-sub { font-size: 17px; color: #c3cde0; max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 34px; list-style: none; padding: 0; margin: 40px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: #8fa0bc; }

.hero-feature { position: relative; }
.feature-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-media { position: relative; height: 240px; display: grid; place-items: center; overflow: hidden; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media .grad { position: absolute; inset: 0; }
.feature-media .glyph { position: relative; z-index: 1; font-size: 64px; opacity: .9; filter: drop-shadow(0 6px 20px rgba(0,0,0,.3)); }
.feature-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: #fff;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.feature-body { padding: 22px 24px 24px; }
.feature-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #9aa7bd; margin-bottom: 10px; }
.feature-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #4a5568; }
.feature-title { font-family: var(--font-serif); font-size: 22px; line-height: 1.25; margin: 0 0 10px; color: #fff; font-weight: 700; }
.feature-excerpt { font-size: 14.5px; color: #b6c0d2; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--lime); }

/* ---------- Trending ---------- */
.trending { background: #fff; border-bottom: 1px solid var(--line); }
.trending-inner { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; overflow: hidden; }
.trending-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229,72,77,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 70% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.trending-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.trending-track::-webkit-scrollbar { display: none; }
.trending-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: .15s;
}
.trending-chip:hover { background: var(--green-soft); color: var(--green-dark); border-color: #c8f0db; }
.trending-chip .n { color: var(--text-faint); font-size: 12px; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tinted { background: #eef2f6; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { font-family: var(--font-serif); font-size: clamp(26px, 3.2vw, 36px); margin: 0; letter-spacing: -.3px; line-height: 1.15; }
.section-note { margin: 0; color: var(--text-muted); font-size: 15px; max-width: 360px; }
.section-link { font-weight: 700; font-size: 14.5px; color: var(--green-dark); white-space: nowrap; }
.section-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  min-height: 150px; overflow: hidden;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 22px; background: var(--bg-soft); }
.cat-card h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.cat-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.cat-count { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--green-dark); }
.cat-card .cat-fill { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--cat-color, var(--green)); }

/* ---------- Region grid ---------- */
.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.country-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: .16s;
}
.country-card:hover { border-color: #c8f0db; box-shadow: var(--shadow); transform: translateY(-3px); }
.country-flag {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  font-size: 26px; letter-spacing: -.3px; background: var(--bg-soft);
}
.country-card h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--text); }
.country-card p { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.country-card .country-count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--green-dark); white-space: nowrap; }

/* ---------- Filters ---------- */
.sort-control { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filter-chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--text-muted); transition: .15s;
}
.filter-chip:hover { border-color: var(--green); color: var(--green-dark); }
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.results-meta { margin-bottom: 18px; }
.results-meta p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- Article grid ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-link-wrap { display: flex; flex-direction: column; flex: 1; color: var(--ink); }
.article-media { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; }
.article-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-media .grad { position: absolute; inset: 0; }
.article-media .glyph { position: relative; z-index: 1; font-size: 44px; opacity: .92; }
.article-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px); color: #fff;
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.article-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--text-faint); }
.article-meta .meta-badge { padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); font-weight: 700; color: var(--text-muted); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c4cad4; }
.article-title { margin: 0; font-family: var(--font-serif); font-size: 18.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.2px; }
.article-card a.article-link-wrap:hover .article-title { color: var(--green-dark); }
.article-excerpt { margin: 0; font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.article-author { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; background: var(--ink-3); }
.article-read { font-size: 12.5px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 22px; }
.empty-state p { margin: 0 0 18px; color: var(--text-muted); }
.load-more-wrap { text-align: center; margin-top: 34px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--text);
}
.pagination .page-numbers:hover { border-color: var(--green); color: var(--green-dark); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- CTA panel ---------- */
.cta-panel {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 56px 60px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #e7f9ef, #f0faf4);
  border: 1px solid #cdeedd; color: var(--text);
  box-shadow: var(--shadow); margin-top: 72px; margin-bottom: 72px;
}
.cta-copy p { color: var(--text-muted); max-width: 560px; font-size: 15.5px; }
.cta-title { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; color: var(--ink); }
.cta-copy .eyebrow { color: var(--green-dark); }
.cta-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.badge-score { font-size: 64px; font-weight: 900; line-height: 1; color: var(--green-dark); font-family: var(--font-serif); }
.badge-caption { font-size: 13px; color: var(--text-muted); max-width: 180px; }

/* ---------- Newsletter ---------- */
.newsletter-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 48px 54px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text);
}
.newsletter-copy p { color: var(--text-muted); }
.newsletter-copy .eyebrow { color: var(--green-dark); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter-form input {
  flex: 1 1 220px; padding: 15px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 15px; font-family: inherit; outline: none;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,201,106,.15); }
.form-hint { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--green-dark); min-height: 1em; }
.form-hint.error { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #070b15; color: #b9c4d6; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.brand-footer { margin-bottom: 16px; }
.brand-footer .brand-name { color: #fff; }
.footer-brand p { font-size: 14.5px; color: #93a0b8; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); color: #c3cde0; transition: .15s; font-weight: 700; }
.footer-social a:hover { background: var(--green); color: #04140b; }
.footer-col h3 { color: #fff; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: #9aa7bd; }
.footer-col a:hover { color: var(--lime); }

.responsible { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.07); }
.responsible p { margin: 0; font-size: 13px; color: #7f8ba1; line-height: 1.7; }
.responsible a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13.5px; color: #7f8ba1; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: #9aa7bd; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- Article page ---------- */
.article-main { padding-bottom: 64px; }
.article-single { max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 22px 0 8px; font-size: 13.5px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb .sep { color: #c4cad4; }
.breadcrumb .current { color: var(--text); font-weight: 600; }
.article-header { padding: 16px 0 28px; }
.article-header-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.article-cat-static { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--green-soft); color: var(--green-dark); }
.article-title-xl { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.5px; margin: 0 0 14px; }
.article-deck { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin: 0 0 22px; }
.byline { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.avatar-lg { width: 46px; height: 46px; font-size: 15px; }
.byline-meta { display: flex; flex-direction: column; }
.byline-author { font-weight: 700; font-size: 15px; }
.byline-sub { font-size: 13px; color: var(--text-muted); }
.share-row { margin-left: auto; display: flex; gap: 8px; }
.share-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 15px; font-weight: 700; transition: .15s; }
.share-btn:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.article-hero-media { position: relative; height: 320px; border-radius: var(--radius-lg); display: grid; place-items: center; margin-bottom: 32px; overflow: hidden; }
.article-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero-glyph { font-size: 96px; opacity: .95; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.article-body-rich { font-size: 17px; line-height: 1.75; color: #2a3344; }
.article-body-rich > p:first-of-type { font-size: 19px; color: var(--text); }
.article-body-rich h2 { font-family: var(--font-serif); font-size: 26px; margin: 36px 0 14px; line-height: 1.2; color: var(--ink); }
.article-body-rich h3 { font-size: 20px; margin: 28px 0 12px; color: var(--ink); font-weight: 800; }
.article-body-rich p { margin: 0 0 18px; }
.article-body-rich ul, .article-body-rich ol { margin: 0 0 18px; padding-left: 22px; }
.article-body-rich li { margin: 0 0 8px; }
.article-body-rich a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-body-rich img { border-radius: 12px; margin: 22px 0; }
.article-body-rich blockquote { margin: 32px 0; padding: 22px 28px; border-left: 4px solid var(--ink); background: var(--bg); border-radius: 0 12px 12px 0; font-family: var(--font-serif); font-size: 22px; line-height: 1.4; color: var(--ink); font-style: italic; }
.article-body-rich blockquote p { margin: 0; }
.article-body-rich table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.article-body-rich th { text-align: left; background: var(--bg-soft); padding: 12px 15px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.article-body-rich td { padding: 12px 15px; border-top: 1px solid var(--line); }
.takeaways { background: var(--green-soft); border: 1px solid #cdeedd; border-left: 4px solid var(--green); border-radius: 12px; padding: 20px 24px; margin: 28px 0; }
.takeaways h2 { font-family: var(--font-sans); font-size: 15px; letter-spacing: .5px; text-transform: uppercase; color: var(--green-dark); margin: 0 0 10px; }
.takeaways ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.takeaways li { font-size: 15.5px; }
.responsible-note { background: #fff7ed; border: 1px solid #fde2c0; border-radius: 12px; padding: 16px 20px; font-size: 14.5px; color: #7c4a12; margin: 28px 0; }
.author-box { display: flex; gap: 18px; margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.author-box h2 { margin: 0 0 6px; font-size: 17px; }
.author-box p { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.related-section { padding-top: 56px; }
.related-heading { font-family: var(--font-serif); font-size: 26px; margin: 0 0 22px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.not-found { padding: 80px 24px; text-align: center; }
.not-found h1 { font-family: var(--font-serif); font-size: 34px; margin: 0 0 10px; }
.not-found p { color: var(--text-muted); margin: 0 0 22px; }

/* ---------- Page (static) ---------- */
.page-main { padding: 40px 0 64px; }
.page-body { max-width: 780px; margin: 0 auto; }
.page-body h1.page-title { font-family: var(--font-serif); font-size: clamp(30px,4vw,44px); line-height: 1.1; margin: 8px 0 22px; }
.page-body h2 { font-family: var(--font-serif); font-size: 26px; margin: 32px 0 12px; }
.page-body p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.75; color: #2a3344; }
.page-body ul, .page-body ol { margin: 0 0 18px; padding-left: 22px; }
.page-body a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid, .country-grid, .article-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .topbar-links { display: none; }
  .cat-grid, .country-grid, .article-grid, .related-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; padding: 40px 28px; margin-top: 48px; margin-bottom: 48px; }
  .cta-badge { align-items: flex-start; text-align: left; }
  .newsletter-panel { grid-template-columns: 1fr; padding: 36px 26px; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 24px; }
  .feature-media { height: 190px; }
  .article-hero-media { height: 200px; }
  .article-hero-glyph { font-size: 60px; }
  .share-row { margin-left: 0; width: 100%; }
}
