/* ============================================================
   CIM GLOBAL STYLESHEET
   Tokens → Reset → Typography → Layout → Nav → Cards →
   Badges → Buttons → Newsletter → Ads → Sidebar → Footer →
   Pagination → Article → Magazine → Social → Responsive → Utils
   ============================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Accent — saffron orange */
  --accent:        #FF4D00;
  --accent-deep:   #E03A00;
  --accent-dim:    rgba(255,77,0,0.10);
  --accent-text:   #C43A00;

  /* Light theme (default) */
  --bg:            #FFFFFF;
  --surface:       #F5F5F5;
  --card:          #FFFFFF;
  --card-hover:    #F9F9F9;
  --border:        rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.13);
  --text:          #0F0F0F;
  --text-sec:      #595959;
  --text-muted:    #AAAAAA;
  --img-ph:        #E8E8E8;

  /* Semantic */
  --red:   #D94F3A;
  --green: #4CAF82;

  /* Typography */
  --f-head: 'Playfair Display', serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'Barlow Condensed', sans-serif;

  /* Layout */
  --maxw:      1200px;
  --article-w: 720px;
  --nav-h:     60px;
  --gap:       24px;
  --px:        20px;

  /* Radius */
  --r:      4px;
  --r-card: 6px;
  --r-pill: 20px;

  /* Motion */
  --t-fast: 150ms ease;
  --t-med:  250ms ease;
}

/* Dark theme */
html.dark {
  --bg:            #0D0D0D;
  --surface:       #141414;
  --card:          #1A1A1A;
  --card-hover:    #202020;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --text:          #F0EDE6;
  --text-sec:      #8A8680;
  --text-muted:    #504E4A;
  --accent:        #FF6A20;
  --accent-deep:   #FF4D00;
  --accent-dim:    rgba(255,106,32,0.14);
  --accent-text:   #FF6A20;
  --img-ph:        #1E1C18;
}

/* ── 2. RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  transition: background var(--t-med), color var(--t-med);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
svg { fill: currentColor; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.label-accent { color: var(--accent-text); }

/* Headline scale */
.h-display { font-size: clamp(32px, 5vw, 52px); }
.h-hero    { font-size: clamp(26px, 4vw, 40px); }
.h-xl      { font-size: clamp(22px, 3vw, 32px); }
.h-lg      { font-size: clamp(18px, 2.5vw, 26px); }
.h-md      { font-size: 18px; }
.h-sm      { font-size: 16px; }
.h-xs      { font-size: 14px; }

/* ── 4. ARTICLE BODY ──────────────────────────────────── */
.article-body {
  font-size: 17px;
  line-height: 1.78;
}
.article-body p  { margin-bottom: 1.4em; }
.article-body h2 { font-size: 26px; margin: 2em 0 0.6em; letter-spacing: -0.025em; }
.article-body h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin: 1.8em 0 0.5em;
  font-weight: 400;
}
.article-body ul,
.article-body ol  { padding-left: 1.5em; margin-bottom: 1.4em; }
.article-body ul  { list-style: disc; }
.article-body ol  { list-style: decimal; }
.article-body li  { margin-bottom: 0.4em; }
.article-body a   {
  color: var(--accent-text);
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color var(--t-fast);
}
.article-body a:hover { border-color: var(--accent-text); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.8em 1.2em;
  margin: 1.8em 0;
  background: var(--accent-dim);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-sec);
}
.article-body code {
  font-family: var(--f-mono);
  font-size: 13px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--r);
}
.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.2em;
  overflow-x: auto;
  margin-bottom: 1.4em;
}
.article-body pre code { background: none; padding: 0; }
.article-body img {
  border-radius: var(--r-card);
  margin: 1.4em 0;
  width: 100%;
}
.article-body figcaption {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.8em;
  margin-bottom: 1.4em;
}
.article-standfirst {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-sec);
  border-left: 3px solid var(--accent);
  padding-left: 1em;
  margin-bottom: 2em;
  line-height: 1.6;
}

/* ── 5. LAYOUT ────────────────────────────────────────── */
.wrap         { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--px); }
.wrap-article { max-width: var(--article-w); margin: 0 auto; padding: 0 var(--px); }

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

.layout-article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section-pad    { padding: 48px 0; }
.section-pad-sm { padding: 32px 0; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── 6. NAVIGATION ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-med);
}
html.dark .site-header { background: rgba(13,13,13,0.96); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--px);
}

.site-logo { flex-shrink: 0; display: flex; align-items: center; margin-right: 16px; }
.site-logo img { height: 34px; width: auto; }
.site-logo-text {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; }

/* WordPress inserts a <ul> directly */
.nav-menu > ul,
.nav-menu ul { display: flex; align-items: center; gap: 2px; flex: 1; list-style: none; }

.nav-menu a {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-sec);
  padding: 6px 11px;
  border-radius: var(--r);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  display: block;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
  color: var(--text);
  background: var(--surface);
}

/* Dropdowns */
.nav-menu .menu-item-has-children { position: relative; }
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  z-index: 10;
  list-style: none;
}
.nav-menu .menu-item-has-children:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--r);
  color: var(--text-sec);
  font-size: 14px;
}
.nav-menu .sub-menu a:hover { color: var(--text); background: var(--surface); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }

.btn-search,
.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  color: var(--text-sec);
  transition: color var(--t-fast), background var(--t-fast);
}
.btn-search:hover,
.btn-theme:hover { color: var(--text); background: var(--surface); }

/* Sun/moon icons swap with theme */
.btn-theme .icon-sun  { display: block; }
.btn-theme .icon-moon { display: none; }
html.dark .btn-theme .icon-sun  { display: none; }
html.dark .btn-theme .icon-moon { display: block; }

.btn-google {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent);
  color: #000;
  padding: 6px 12px;
  border-radius: var(--r);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-google:hover { background: var(--accent-deep); color: #fff; }

.btn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  color: var(--text-sec);
}
.btn-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  padding: 16px var(--px);
  border-top: 1px solid var(--border);
}
.mobile-nav.is-open { display: block; }

.mobile-nav ul { list-style: none; }
.mobile-nav > ul > li > a,
.mobile-nav a {
  display: block;
  font-family: var(--f-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-sec);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .sub-menu { padding-left: 16px; list-style: none; }
.mobile-nav .sub-menu a { font-size: 11px; }

/* Ad slot below nav */
.ad-below-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ad-below-nav .widget { text-align: center; padding: 8px 0; }

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-overlay.is-open { display: flex; }
.search-inner { width: 100%; max-width: 600px; padding: 0 var(--px); }

.search-form {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  overflow: hidden;
}
.search-form input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 18px;
  color: var(--text);
  outline: none;
}
.search-form input[type="search"]::placeholder { color: var(--text-muted); }
.search-form button[type="submit"] {
  padding: 16px 20px;
  color: var(--accent);
  transition: color var(--t-fast);
  background: none;
  border: none;
  cursor: pointer;
}
.search-form button[type="submit"]:hover { color: var(--accent-deep); }
.search-close {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
}

/* ── 7. POST CARDS ────────────────────────────────────── */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.post-card-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--img-ph);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.03); }

.post-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.post-card-title {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.post-card-title a { transition: color var(--t-fast); }
.post-card-title a:hover { color: var(--accent-text); }

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.5;
  flex: 1;
}

/* Hero card (large) — image panel on top, solid text panel below */
.post-card-hero {
  overflow: hidden;
  border-radius: var(--r-card);
  background: #111;
  display: flex;
  flex-direction: column;
}
.post-card-hero-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--img-ph) center/cover no-repeat;
}
.post-card-hero-body {
  display: block;
  flex: 0 0 auto;
  padding: 22px 24px 24px;
  background: #111;
}
.post-card-hero .post-card-title { color: #fff; margin-bottom: 6px; }
.post-card-hero .post-card-meta .label { color: rgba(255,255,255,0.65); }

/* Horizontal row card (trending / sidebar) */
.post-card-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.post-card-row:last-child { border-bottom: none; }
.post-card-row-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--img-ph);
}
.post-card-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-row .post-card-title { font-size: 14px; margin-bottom: 4px; line-height: 1.35; }

/* ── 8. BADGES & TAGS ─────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r);
  line-height: 1.4;
}
.badge-cat   { background: var(--accent);      color: #000; }
.badge-break { background: var(--red);         color: #fff; }
.badge-new   { background: var(--accent-deep); color: #fff; }

/* ── 9. BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-sec);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-dim); }
.btn-sm { font-size: 10px; padding: 7px 14px; }

/* ── 10. NEWSLETTER BOX ───────────────────────────────── */
.newsletter-box {
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.22);
  border-radius: var(--r-card);
  padding: 24px;
}
.newsletter-box h3 { font-size: 18px; margin-bottom: 6px; }
.newsletter-box p  { font-size: 13px; color: var(--text-sec); margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 9px 13px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast);
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }

/* ── 11. AD SLOTS ─────────────────────────────────────── */
.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  min-height: 90px;
}
.ad-slot:empty::before {
  content: 'Advertisement';
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ad-slot-leaderboard { min-height: 90px; }
.ad-slot-rectangle   { min-height: 250px; }
.ad-slot-inline      { min-height: 90px; margin: 32px 0; }

/* ── 12. SIDEBAR ──────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
.widget-title { font-size: 12px; margin-bottom: 12px; color: var(--text-sec); }

/* ── 13. FOOTER ───────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 64px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--px) 32px;
  border-bottom: 1px solid var(--border);
}
.footer-logo { margin-bottom: 10px; }
.footer-logo img { height: 30px; width: auto; }
.footer-logo .site-logo-text { font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); max-width: 220px; }

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-sec);
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--accent-text); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  color: var(--text-sec);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.footer-social a:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--px) 0;
}
.footer-copy {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── 14. PAGINATION ───────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}
.pagination a,
.pagination span {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  border: 1px solid var(--border);
  color: var(--text-sec);
  transition: all var(--t-fast);
}
.pagination a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
.pagination .current { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.pagination .dots { border: none; cursor: default; }

/* ── 15. ARTICLE PAGE ─────────────────────────────────── */
.article-header { padding: 40px 0 32px; }
.article-header-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.article-header h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; }

.article-byline { display: flex; align-items: center; gap: 10px; }
.article-byline-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--img-ph); flex-shrink: 0; }
.article-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-byline-name { font-size: 14px; font-weight: 500; }
.article-byline-meta { font-family: var(--f-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; }

.article-featured-img { width: 100%; border-radius: var(--r-card); overflow: hidden; margin: 24px 0; background: var(--img-ph); }
.article-featured-img img { width: 100%; height: auto; display: block; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 28px 0;
}
.share-bar-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  color: var(--text-sec);
  transition: all var(--t-fast);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-dim); }

/* Author bio box */
.author-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  margin: 40px 0;
}
.author-bio-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--img-ph); }
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.author-bio-desc { font-size: 13px; color: var(--text-sec); line-height: 1.5; }

/* Reading progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 300;
  width: 0%;
  transition: width 100ms linear;
  pointer-events: none;
}

/* Related posts */
.related-posts { margin-top: 48px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 20px; }

/* ── 16. SOCIAL FOLLOW BUTTONS ────────────────────────── */
.social-follow { display: flex; gap: 10px; flex-wrap: wrap; }
.social-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  transition: opacity var(--t-fast);
}
.social-follow-btn:hover { opacity: 0.85; }
.social-follow-btn-x        { background: #000; color: #fff; border: 1px solid var(--border-strong); }
.social-follow-btn-linkedin { background: #0A66C2; color: #fff; }

/* ── 17. MAGAZINE PAGE ────────────────────────────────── */
.magazine-current {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
  margin-bottom: 48px;
}
.magazine-current-img {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.magazine-current-img img { width: 100%; height: auto; display: block; }
.magazine-current-body { flex: 1; }
.magazine-current-label { margin-bottom: 8px; }
.magazine-current-title { font-size: clamp(20px, 3vw, 30px); margin-bottom: 12px; }
.magazine-current-desc { font-size: 15px; color: var(--text-sec); line-height: 1.65; margin-bottom: 20px; }
.magazine-current-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.magazine-subscribe-banner {
  background: var(--accent);
  border-radius: var(--r-card);
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}
.magazine-subscribe-banner h2 { font-size: 22px; color: #000; margin-bottom: 8px; }
.magazine-subscribe-banner p  { font-size: 14px; color: rgba(0,0,0,0.65); margin-bottom: 20px; }
.magazine-subscribe-banner .btn-primary { background: #000; color: var(--accent); }
.magazine-subscribe-banner .btn-primary:hover { background: #111; }

.magazine-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.magazine-archive-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.magazine-archive-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.magazine-archive-thumb { aspect-ratio: 3/4; background: var(--img-ph); overflow: hidden; }
.magazine-archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.magazine-archive-body { padding: 16px; }
.magazine-archive-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.magazine-archive-desc  { font-size: 13px; color: var(--text-sec); margin-bottom: 12px; line-height: 1.5; }

/* ── 18. RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4            { grid-template-columns: repeat(2, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-article    { grid-template-columns: 1fr 260px; gap: 32px; }
  .magazine-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-google        { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; --gap: 16px; }

  .nav-menu          { display: none; }
  .btn-hamburger     { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .layout-article    { grid-template-columns: 1fr; }
  .sidebar-sticky    { position: static; }
  .related-posts-grid { grid-template-columns: 1fr; }

  .magazine-current  { flex-direction: column; }
  .magazine-current-img { width: 100%; max-width: 180px; }
  .magazine-archive-grid { grid-template-columns: repeat(2, 1fr); }

  .newsletter-form   { flex-direction: column; }

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

@media (max-width: 480px) {
  .magazine-archive-grid { grid-template-columns: 1fr; }
  .share-bar         { gap: 6px; }
}

/* ── 19. HOMEPAGE ─────────────────────────────────────── */

/* Hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-main { background: var(--bg); }
.hero-side {
  background: var(--bg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
}
.hero-main-card {
  display: flex;
}

/* Magazine promo fold */
.fold-magazine {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.magazine-promo {
  display: flex;
  align-items: center;
  gap: 28px;
}
.magazine-promo-cover {
  flex-shrink: 0;
  width: 90px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.magazine-promo-cover img { width: 100%; height: auto; display: block; }
.magazine-promo-body { flex: 1; }
.magazine-promo-issue {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.magazine-promo-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.magazine-promo-desc {
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 14px;
  line-height: 1.5;
  max-width: 520px;
}
.magazine-promo-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.magazine-promo-right { flex-shrink: 0; text-align: right; }

/* YouTube fold */
.fold-youtube {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 44px 0;
}
.youtube-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.youtube-copy { flex: 1; }
.youtube-copy .label { color: var(--accent-text); margin-bottom: 10px; display: block; }
.youtube-copy h2 { font-size: clamp(22px, 3vw, 36px); margin-bottom: 12px; color: #fff; }
.youtube-copy p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  line-height: 1.65;
  max-width: 420px;
}
.youtube-embed {
  flex-shrink: 0;
  width: 460px;
  max-width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #111;
}
.youtube-embed iframe { width: 100%; height: 100%; border: none; display: block; }
.youtube-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color var(--t-fast);
  text-decoration: none;
}
.youtube-placeholder:hover { border-color: var(--accent); }
.youtube-play-btn {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}
.youtube-placeholder:hover .youtube-play-btn {
  background: var(--accent-deep);
  transform: scale(1.08);
}

/* Markets + Opinions two-column */
.markets-opinions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.markets-opinions-col { min-width: 0; }

/* Homepage newsletter banner */
.fold-newsletter {
  background: var(--accent);
  padding: 48px 0;
  margin-top: 56px;
}
.newsletter-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.newsletter-banner-copy h2 { font-size: clamp(20px, 2.5vw, 28px); color: #000; margin-bottom: 4px; }
.newsletter-banner-copy p  { font-size: 14px; color: rgba(0,0,0,0.6); }
.newsletter-banner-form { display: flex; gap: 8px; flex-shrink: 0; width: 420px; }
.newsletter-banner-form input[type="email"] {
  flex: 1;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 14px;
  color: #000;
  outline: none;
  transition: border-color var(--t-fast);
}
.newsletter-banner-form input[type="email"]::placeholder { color: rgba(0,0,0,0.4); }
.newsletter-banner-form input[type="email"]:focus { border-color: rgba(0,0,0,0.4); }
.newsletter-banner-form button,
.newsletter-banner-form input[type="submit"] {
  background: #000;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.newsletter-banner-form button:hover,
.newsletter-banner-form input[type="submit"]:hover { opacity: 0.82; }

/* MC4WP / generic plugin form layout inside the banner */
.newsletter-banner-form .mc4wp-form,
.newsletter-banner-form form { width: 100%; }
.newsletter-banner-form .mc4wp-form-fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.newsletter-banner-form .mc4wp-form-fields input[type="email"] { flex: 1 1 200px; }
.newsletter-banner-form label,
.newsletter-banner-form .mc4wp-form-fields p,
.newsletter-banner-form small {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0,0,0,0.62);
  margin: 4px 0 0;
}
.newsletter-banner-form label a,
.newsletter-banner-form .mc4wp-form-fields p a { color: #000; text-decoration: underline; }
.newsletter-banner-form .mc4wp-response { flex-basis: 100%; font-size: 13px; color: #000; margin-top: 6px; }

/* Responsive — homepage additions */
@media (max-width: 1024px) {
  .youtube-embed { width: 380px; }
  .newsletter-banner-form { width: 340px; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .youtube-inner { flex-direction: column; gap: 28px; }
  .youtube-embed { width: 100%; }
  .markets-opinions-grid { grid-template-columns: 1fr; }
  .newsletter-banner-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .newsletter-banner-form { width: 100%; flex-direction: column; }
  .magazine-promo { flex-direction: column; gap: 16px; }
}

/* ── 20. UTILITIES ────────────────────────────────────── */
.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;
}
.text-accent  { color: var(--accent-text); }
.text-muted   { color: var(--text-muted); }
.text-sec     { color: var(--text-sec); }
.mt-auto      { margin-top: auto; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
