/*
Theme Name: 24 Monden
Theme URI: https://24monden.ro
Author: 24monden.ro
Author URI: https://24monden.ro
Description: Temă WordPress premium pentru știri — layout editorial modern, rapid, optimizat SEO, cu schema NewsArticle pentru Google News.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monden24
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, full-width-template
*/

/* =============================================
   TOKENS
   ============================================= */
:root {
  /* News palette */
  --ink:        #0E1A2B;
  --ink-soft:   #1F2D3F;
  --red:        #E2231A;
  --red-dark:   #B81A12;
  --blue:       #14387F;
  --blue-soft:  #2C56B0;

  --paper:      #FFFFFF;
  --paper-2:    #F5F6F8;
  --paper-3:    #ECEFF3;
  --line:       #E3E7EC;
  --line-dark:  #CDD4DC;
  --muted:      #6A7585;
  --text:       #1A222E;

  /* Typography */
  --font-head: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui:   'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;

  /* Type scale */
  --t-xs:  0.75rem;
  --t-sm:  0.8125rem;
  --t-base:0.9375rem;
  --t-md:  1.0625rem;
  --t-lg:  1.25rem;
  --t-xl:  1.5rem;
  --t-2xl: 1.875rem;
  --t-3xl: 2.375rem;
  --t-4xl: 3rem;
  --t-5xl: 3.75rem;

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
  --s-12: 3rem; --s-16: 4rem; --s-20: 5rem;

  --radius: 3px;
  --shadow: 0 1px 3px rgba(14,26,43,0.10), 0 4px 12px rgba(14,26,43,0.06);
  --shadow-lg: 0 8px 30px rgba(14,26,43,0.12);
  --tr: 0.18s ease;
  --maxw: 1280px;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   TYPE
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.12;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, var(--t-4xl)); }
h2 { font-size: clamp(1.4rem, 3vw, var(--t-2xl)); }
h3 { font-size: var(--t-xl); }
p { margin-bottom: var(--s-4); }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
.wrap--narrow { max-width: 740px; }

.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;
}

/* =============================================
   UTILITY TOP BAR
   ============================================= */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  font-family: var(--font-ui);
  font-size: var(--t-xs);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: var(--s-4);
}
.topbar-date { letter-spacing: 0.02em; text-transform: capitalize; }
.topbar-links { display: flex; align-items: center; gap: var(--s-4); }
.topbar-links a { color: rgba(255,255,255,0.72); font-weight: 600; }
.topbar-links a:hover { color: #fff; }
.topbar-social { display: flex; gap: var(--s-2); }
.topbar-social a {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 2px; color: rgba(255,255,255,0.6);
}
.topbar-social a:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* =============================================
   BREAKING TICKER
   ============================================= */
.ticker {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ticker-label {
  background: var(--red);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}
.ticker-label::after {
  content: '';
  position: absolute; right: -10px; top: 0; bottom: 0; width: 10px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ticker-pulse {
  width: 8px; height: 8px; background: #fff; border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.ticker-track {
  flex: 1; overflow: hidden; display: flex; align-items: center; padding-left: var(--s-5);
}
.ticker-items {
  display: flex; gap: var(--s-8); white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-family: var(--font-ui);
  font-size: var(--t-sm);
  font-weight: 600;
}
.ticker-items a { color: var(--ink); }
.ticker-items a:hover { color: var(--red); }
.ticker-track:hover .ticker-items { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================
   MASTHEAD
   ============================================= */
.masthead { background: var(--paper); border-bottom: 3px solid var(--ink); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); padding: var(--s-5) 0;
}
.site-logo img { height: 46px; width: auto; }
.masthead-right { display: flex; align-items: center; gap: var(--s-4); }
.masthead-search button {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  color: var(--ink); border: 1px solid var(--line);
  transition: all var(--tr);
}
.masthead-search button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.masthead-subscribe { font-family: var(--font-ui); }

/* =============================================
   PRIMARY NAV
   ============================================= */
.nav-bar { background: var(--ink); position: sticky; top: 0; z-index: 100; }
.nav-bar.is-stuck { box-shadow: 0 4px 20px rgba(14,26,43,0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.main-nav ul { display: flex; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: var(--s-4) var(--s-4);
  font-family: var(--font-ui);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  border-bottom: 3px solid transparent;
  transition: all var(--tr);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-bottom-color: var(--red);
}
/* dropdown */
.main-nav ul li ul {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--ink-soft); display: none; flex-direction: column;
  box-shadow: var(--shadow-lg); z-index: 200; padding: var(--s-2) 0;
}
.main-nav ul li:hover > ul, .main-nav ul li:focus-within > ul { display: flex; }
.main-nav ul li ul li a {
  display: block; padding: var(--s-3) var(--s-5);
  font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 600;
  color: rgba(255,255,255,0.85); white-space: nowrap;
}
.main-nav ul li ul li a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.nav-live {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-ui); font-size: var(--t-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; color: #fff;
  padding-right: var(--s-2);
}
.nav-live .dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse 1.4s infinite; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: var(--s-3) var(--s-4); }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 700;
  padding: 0.6rem var(--s-5); border-radius: var(--radius);
  transition: all var(--tr); border: 2px solid transparent; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 0.4rem var(--s-4); font-size: var(--t-xs); }

/* =============================================
   KICKER / EYEBROW
   ============================================= */
.kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker a { color: var(--red); }
.kicker--blue { color: var(--blue); }
.kicker--blue a { color: var(--blue); }

/* =============================================
   SECTION HEADER
   ============================================= */
.section { padding: var(--s-10) 0; }
.section + .section { padding-top: 0; }
.sec-head {
  display: flex; align-items: center; gap: var(--s-4);
  border-bottom: 2px solid var(--ink); padding-bottom: var(--s-3);
  margin-bottom: var(--s-6);
}
.sec-head h2 {
  font-size: var(--t-lg); text-transform: uppercase; letter-spacing: 0.01em;
}
.sec-head .sec-accent { width: 4px; height: 22px; background: var(--red); }
.sec-head a.sec-more {
  margin-left: auto; font-family: var(--font-ui); font-size: var(--t-xs);
  font-weight: 700; text-transform: uppercase; color: var(--muted);
}
.sec-head a.sec-more:hover { color: var(--red); }

/* =============================================
   HOME LEAD GRID
   ============================================= */
.lead-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-8);
  padding: var(--s-8) 0;
}
.lead-secondary { display: flex; flex-direction: column; gap: var(--s-5); }

/* Lead story (big) */
.story-lead { position: relative; }
.story-lead .story-thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); }
.story-lead .story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-lead:hover .story-thumb img { transform: scale(1.03); }
.story-lead .story-title {
  font-size: clamp(1.6rem, 3vw, var(--t-3xl));
  line-height: 1.08; margin: var(--s-4) 0 var(--s-3);
}
.story-lead .story-title a { color: var(--ink); }
.story-lead .story-title a:hover { color: var(--red); }
.story-lead .story-dek {
  font-size: var(--t-md); color: var(--ink-soft); line-height: 1.55;
  margin-bottom: var(--s-3);
}

/* Secondary stories (horizontal small) */
.story-h { display: grid; grid-template-columns: 130px 1fr; gap: var(--s-4); align-items: start; }
.story-h .story-thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.story-h .story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-h .story-title { font-size: var(--t-md); line-height: 1.2; margin-top: var(--s-2); }
.story-h .story-title a { color: var(--ink); }
.story-h .story-title a:hover { color: var(--red); }

/* Meta line */
.story-meta {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  font-family: var(--font-ui); font-size: var(--t-xs); color: var(--muted);
  margin-top: var(--s-2);
}
.story-meta time { font-weight: 600; }
.story-meta .sep { width: 3px; height: 3px; background: var(--line-dark); border-radius: 50%; }

/* =============================================
   CARD GRID (category rows)
   ============================================= */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.story-card { display: flex; flex-direction: column; }
.story-card .story-thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); margin-bottom: var(--s-3); position: relative; }
.story-card .story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card:hover .story-thumb img { transform: scale(1.04); }
.story-card .story-title { font-size: var(--t-md); line-height: 1.2; margin: var(--s-2) 0; }
.story-card .story-title a { color: var(--ink); }
.story-card .story-title a:hover { color: var(--red); }
.story-card .story-dek {
  font-size: var(--t-base); color: var(--ink-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =============================================
   MAIN + SIDEBAR
   ============================================= */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-12); align-items: start; }

/* =============================================
   TRENDING / MOST READ
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: var(--s-8); }
.widget { }
.widget-head {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4);
  font-family: var(--font-ui); font-weight: 800; font-size: var(--t-sm);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.widget-head .accent { width: 4px; height: 18px; background: var(--red); }
.widget-body { border: 1px solid var(--line); border-top: none; padding: var(--s-2); }

.trend-item {
  display: grid; grid-template-columns: 36px 1fr; gap: var(--s-3); align-items: start;
  padding: var(--s-3); border-bottom: 1px solid var(--line);
}
.trend-item:last-child { border-bottom: none; }
.trend-num {
  font-family: var(--font-head); font-size: var(--t-2xl); font-weight: 800;
  line-height: 1; color: var(--paper-3); -webkit-text-stroke: 1px var(--line-dark);
}
.trend-item:nth-child(1) .trend-num,
.trend-item:nth-child(2) .trend-num,
.trend-item:nth-child(3) .trend-num { color: var(--red); -webkit-text-stroke: 0; }
.trend-title { font-family: var(--font-head); font-size: var(--t-base); font-weight: 700; line-height: 1.25; }
.trend-title a { color: var(--ink); }
.trend-title a:hover { color: var(--red); }
.trend-meta { font-family: var(--font-ui); font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }

/* Newsletter box */
.box-news {
  background: var(--ink); color: #fff; padding: var(--s-6);
}
.box-news .kicker { color: #fff; opacity: 0.6; }
.box-news h3 { color: #fff; font-size: var(--t-lg); margin: var(--s-2) 0 var(--s-3); }
.box-news p { font-size: var(--t-base); color: rgba(255,255,255,0.75); margin-bottom: var(--s-4); }
.box-news input {
  width: 100%; padding: var(--s-3) var(--s-4); border: none; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: var(--t-sm); margin-bottom: var(--s-3);
}
.box-news input:focus { outline: 2px solid var(--red); }
.box-news .btn { width: 100%; }

/* Ad slot placeholder */
.ad-slot {
  background: var(--paper-2); border: 1px dashed var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: var(--t-xs); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; min-height: 250px;
}

/* =============================================
   LATEST LIST
   ============================================= */
.latest-list { display: flex; flex-direction: column; }
.latest-item {
  display: grid; grid-template-columns: 160px 1fr; gap: var(--s-5);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
}
.latest-item:first-child { padding-top: 0; }
.latest-item .story-thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); }
.latest-item .story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-item .story-title { font-size: var(--t-lg); line-height: 1.2; margin: var(--s-1) 0 var(--s-2); }
.latest-item .story-title a { color: var(--ink); }
.latest-item .story-title a:hover { color: var(--red); }
.latest-item .story-dek { font-size: var(--t-base); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { display: flex; gap: var(--s-2); justify-content: center; margin-top: var(--s-10); }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--s-3); font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 700;
  border: 1px solid var(--line); color: var(--ink); transition: all var(--tr);
}
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* =============================================
   BREADCRUMBS
   ============================================= */
.crumbs {
  display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center;
  font-family: var(--font-ui); font-size: var(--t-xs); color: var(--muted);
  padding: var(--s-4) 0;
}
.crumbs a { color: var(--blue); font-weight: 600; }
.crumbs .sep { color: var(--line-dark); }

/* =============================================
   SINGLE ARTICLE
   ============================================= */
.article-head { padding: var(--s-6) 0 var(--s-4); }
.article-title { font-size: clamp(1.9rem, 4.2vw, var(--t-4xl)); line-height: 1.08; margin: var(--s-3) 0; }
.article-dek {
  font-family: var(--font-body); font-size: var(--t-lg); line-height: 1.5;
  color: var(--ink-soft); margin-bottom: var(--s-5); font-weight: 400;
}
.article-byline {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
}
.byline-author { display: flex; align-items: center; gap: var(--s-3); }
.byline-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.byline-name { font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.byline-name a { color: var(--ink); }
.byline-role { font-size: var(--t-xs); color: var(--muted); }
.byline-meta { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; font-size: var(--t-xs); color: var(--muted); flex-wrap: wrap; }
.byline-meta span { display: flex; align-items: center; gap: var(--s-1); }

/* Featured image */
.article-figure { margin: var(--s-6) 0; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-figure figcaption { font-family: var(--font-ui); font-size: var(--t-xs); color: var(--muted); padding-top: var(--s-2); border-left: 3px solid var(--line); padding-left: var(--s-3); margin-top: var(--s-2); }

/* Article body */
.article-body { font-size: 1.1875rem; line-height: 1.75; color: var(--text); }
.article-body p { margin-bottom: var(--s-5); }
.article-body h2 { font-size: var(--t-xl); margin: var(--s-8) 0 var(--s-3); }
.article-body h3 { font-size: var(--t-lg); margin: var(--s-6) 0 var(--s-3); }
.article-body a { color: var(--blue); border-bottom: 1px solid rgba(20,56,127,0.3); }
.article-body a:hover { color: var(--red); border-color: var(--red); }
.article-body ul, .article-body ol { padding-left: var(--s-6); margin-bottom: var(--s-5); }
.article-body ul li { list-style: none; position: relative; padding-left: var(--s-4); margin-bottom: var(--s-2); }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; background: var(--red); }
.article-body ol { list-style: decimal; }
.article-body ol li { margin-bottom: var(--s-2); padding-left: var(--s-1); }
.article-body blockquote {
  border-left: 4px solid var(--red); padding: var(--s-2) var(--s-6); margin: var(--s-8) 0;
  font-family: var(--font-head); font-size: var(--t-xl); font-weight: 700; line-height: 1.3; color: var(--ink);
}
.article-body img { border-radius: var(--radius); margin: var(--s-6) 0; }

/* Share */
.share-row {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  padding: var(--s-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: var(--s-8) 0;
}
.share-label { font-family: var(--font-ui); font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.5rem var(--s-4); border-radius: var(--radius);
  font-family: var(--font-ui); font-size: var(--t-xs); font-weight: 700; color: #fff;
  transition: all var(--tr);
}
.share-btn:hover { color: #fff; transform: translateY(-1px); }
.share-btn--facebook { background: #1877F2; }
.share-btn--x { background: #000; }
.share-btn--whatsapp { background: #25D366; }
.share-btn--copy { background: var(--paper-2); color: var(--ink) !important; border: 1px solid var(--line-dark); }
.share-btn--copy:hover { background: var(--ink); color: #fff !important; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-6) 0; }
.article-tags a {
  font-family: var(--font-ui); font-size: var(--t-xs); font-weight: 600;
  padding: var(--s-1) var(--s-3); background: var(--paper-2); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.article-tags a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Author bio */
.author-bio {
  display: flex; gap: var(--s-5); padding: var(--s-6); background: var(--paper-2);
  border-left: 4px solid var(--red); margin: var(--s-8) 0;
}
.author-bio img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio h4 { font-size: var(--t-md); margin-bottom: 2px; }
.author-bio .byline-role { margin-bottom: var(--s-2); }
.author-bio p { font-size: var(--t-base); color: var(--ink-soft); margin: 0; }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--red); width: 0; z-index: 300; transition: width 0.1s linear; }

/* =============================================
   COMMENTS
   ============================================= */
.comments { padding: var(--s-10) 0; border-top: 2px solid var(--ink); margin-top: var(--s-10); }
.comments-title { font-size: var(--t-xl); margin-bottom: var(--s-6); text-transform: uppercase; }
.comment-item { display: flex; gap: var(--s-4); padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.comment-item.depth-2 { margin-left: var(--s-10); }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.comment-avatar img { border-radius: 50%; }
.comment-author-name { font-family: var(--font-ui); font-weight: 700; font-size: var(--t-sm); }
.comment-date { font-family: var(--font-ui); font-size: var(--t-xs); color: var(--muted); margin-left: var(--s-2); }
.comment-content { font-size: var(--t-base); margin-top: var(--s-1); }
.comment-reply { font-family: var(--font-ui); font-size: var(--t-xs); font-weight: 700; color: var(--red); margin-top: var(--s-2); display: inline-block; }

.comment-form { margin-top: var(--s-6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
.form-group { display: flex; flex-direction: column; gap: var(--s-2); }
.form-group label { font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 700; }
.form-group input, .form-group textarea {
  padding: var(--s-3) var(--s-4); border: 1px solid var(--line-dark); border-radius: var(--radius);
  font-family: var(--font-body); font-size: var(--t-base); background: var(--paper);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--ink); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* =============================================
   RELATED
   ============================================= */
.related { padding: var(--s-10) 0; background: var(--paper-2); border-top: 1px solid var(--line); }

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search-overlay { position: fixed; inset: 0; background: rgba(14,26,43,0.96); z-index: 400; display: none; align-items: flex-start; justify-content: center; padding-top: 14vh; }
.search-overlay.open { display: flex; }
.search-overlay-inner { width: 100%; max-width: 680px; padding: 0 var(--s-6); }
.search-overlay form { position: relative; }
.search-overlay input {
  width: 100%; padding: var(--s-5) var(--s-6); font-family: var(--font-head);
  font-size: var(--t-2xl); font-weight: 700; border: none; background: transparent;
  color: #fff; border-bottom: 3px solid var(--red);
}
.search-overlay input::placeholder { color: rgba(255,255,255,0.4); }
.search-overlay input:focus { outline: none; }
.search-overlay button[type="submit"] { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #fff; padding: var(--s-3); }
.search-overlay-close { position: absolute; top: var(--s-6); right: var(--s-6); color: rgba(255,255,255,0.6); font-size: 2.5rem; line-height: 1; }
.search-overlay-close:hover { color: #fff; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); margin-top: var(--s-16); }
.footer-top { padding: var(--s-12) 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-10); }
.footer-brand img { height: 40px; margin-bottom: var(--s-4); }
.footer-brand p { font-size: var(--t-base); line-height: 1.6; margin-bottom: var(--s-5); }
.footer-social { display: flex; gap: var(--s-2); }
.footer-social a { width: 38px; height: 38px; border-radius: 2px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all var(--tr); }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-ui); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--s-4); }
.footer-col ul li { margin-bottom: var(--s-2); }
.footer-col ul li a { font-family: var(--font-ui); font-size: var(--t-sm); color: rgba(255,255,255,0.6); }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom { padding: var(--s-5) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-family: var(--font-ui); font-size: var(--t-xs); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--red); }

/* Back to top */
.to-top { position: fixed; bottom: var(--s-6); right: var(--s-6); width: 44px; height: 44px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: all var(--tr); z-index: 90; border-radius: var(--radius); }
.to-top.visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--red); }

/* Cookie banner */
.cookie { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: rgba(255,255,255,0.85); padding: var(--s-4) 0; z-index: 200; transform: translateY(100%); transition: transform 0.4s ease; }
.cookie.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.cookie-text { flex: 1; font-family: var(--font-ui); font-size: var(--t-sm); }
.cookie-text a { color: var(--red); }
.cookie-actions { display: flex; gap: var(--s-3); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
@media (max-width: 768px) {
  .wrap { padding: 0 var(--s-4); }
  .topbar-links { display: none; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: fixed; inset: 0 0 0 auto; width: 80%; max-width: 320px; background: var(--ink); z-index: 250; overflow-y: auto; padding: var(--s-6) 0; }
  .main-nav.open ul { flex-direction: column; align-items: stretch; }
  .main-nav.open > ul > li > a { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav.open ul li ul { position: static; display: block; background: rgba(0,0,0,0.2); }
  .menu-toggle { display: flex; }
  .nav-live { display: none; }
  .card-grid, .card-grid--3 { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .latest-item { grid-template-columns: 110px 1fr; gap: var(--s-4); }
  .latest-item .story-title { font-size: var(--t-md); }
  .masthead-subscribe { display: none; }
  .byline-meta { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .card-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .story-h { grid-template-columns: 100px 1fr; }
  .share-row { gap: var(--s-2); }
}

@media print {
  .topbar, .ticker, .nav-bar, .site-footer, .sidebar, .share-row, .related, .to-top, .cookie, .masthead-right { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-items { animation: none !important; }
}
