/*
Theme Name: TuculandIA
Theme URI: https://tuculandia.com/
Author: Pablo Martinez
Description: Tema personalizado para el portal de noticias TuculandIA.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: tuculandia
*/

:root {
  --navy: #1A2959;
  --navy-2: #0F1A3D;
  --red: #C8323C;
  --red-2: #a22530;
  --paper: #F4F1EA;
  --paper-2: #ebe6d8;
  --ink: #14131A;
  --ink-soft: #5a554a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: 'Archivo', sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── TOP BAR ─── */
.top-bar { height: 38px; background: var(--navy-2); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; letter-spacing: .05em; }
.top-bar .tb-left { display: flex; gap: 12px; align-items: center; }
.top-bar .tb-time { background: var(--red); padding: 3px 8px; font-weight: 700; }
.top-bar .tb-right { display: flex; gap: 18px; opacity: .8; }

/* ─── SITE HEADER ─── */
.site-header { height: 100px; background: var(--navy); padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: flex-end; gap: 16px; }
.site-logo .wm { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 52px; line-height: 1; letter-spacing: -.025em; }
.site-logo .wm .t { color: #fff; }
.site-logo .wm .i { color: var(--red); }
.site-tagline { font-family: 'Playfair Display', serif; font-style: italic; font-size: 13px; color: rgba(255,255,255,.7); padding-bottom: 8px; }
.site-logo img.custom-logo { max-height: 70px; width: auto; }
.header-tools { display: flex; gap: 8px; align-items: center; }
.header-tools .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.header-tools .icon-btn:hover { background: var(--red); }

/* ─── MAIN NAV ─── */
.main-nav { height: 54px; background: var(--red); display: flex; align-items: center; padding: 0 32px; gap: 4px; overflow-x: auto; }
.main-nav a { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: .05em; color: #fff; padding: 0 18px; height: 54px; display: flex; align-items: center; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active, .main-nav a.current-menu-item { background: rgba(0,0,0,.18); }
.main-nav .sub-menu { display: none; position: absolute; top: 54px; left: 0; background: var(--navy-2); min-width: 220px; z-index: 100; }
.main-nav .sub-menu li a { height: auto; padding: 12px 18px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.main-nav li:hover > .sub-menu { display: block; }

/* ─── TAGS BAR ─── */
.tags-bar { background: var(--paper-2); padding: 12px 32px; display: flex; gap: 14px; align-items: center; font-size: 12px; border-bottom: 1px solid rgba(0,0,0,.08); flex-wrap: wrap; }
.tags-bar .label { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--ink-soft); letter-spacing: .08em; }
.tags-bar .tag { background: #cfe0f5; color: var(--navy); padding: 4px 10px; border-radius: 20px; font-weight: 500; font-size: 11px; }
.tags-bar .tag:hover { background: var(--navy); color: #fff; }

/* ─── LATEST STRIP ─── */
.latest-strip { background: #fff; padding: 10px 32px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(0,0,0,.06); overflow: hidden; }
.latest-strip .lp-badge { background: var(--navy); color: #fff; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 12px; padding: 6px 14px; letter-spacing: .05em; position: relative; white-space: nowrap; }
.latest-strip .lp-badge::after { content: ''; position: absolute; right: -10px; top: 0; border-left: 10px solid var(--navy); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.latest-strip .lp-items { display: flex; gap: 28px; flex: 1; overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; }
.latest-strip .lp-items .dot { color: var(--red); }

/* ─── MAIN CONTAINER ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 32px; }

/* ─── HERO ─── */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 40px; }
.hero-main {
  background-color: var(--navy-2);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  text-decoration: none;
}
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,45,.1) 0%, rgba(10,18,45,.55) 40%, rgba(10,18,45,.93) 100%);
  z-index: 0;
}
.hero-main .cat,
.hero-main h1,
.hero-main .dek,
.hero-main .meta { position: relative; z-index: 1; color: #fff; }
.hero-main .cat { display: inline-block; background: var(--red); color: #fff; font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 12px; padding: 5px 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; width: fit-content; }
.hero-main h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 36px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 10px; color: #fff; }
.hero-main .dek { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 16px; line-height: 1.4; opacity: .9; max-width: 680px; margin-bottom: 12px; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-main .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; opacity: .75; text-transform: uppercase; color: #fff; }

/* ─── HERO SIDE CARDS (verticales como las de abajo) ─── */
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.side-card { background: #fff; border: 1px solid rgba(0,0,0,.08); display: flex; flex-direction: column; overflow: hidden; flex: 1; transition: transform .15s, box-shadow .15s; }
.side-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,41,89,.12); }
.side-card-thumb { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: var(--paper-2); flex-shrink: 0; }
.side-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.side-card .cat-mini { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 10px; color: var(--red); letter-spacing: .14em; text-transform: uppercase; }
.side-card h3 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.side-card .meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-soft); letter-spacing: .08em; margin-top: auto; }

/* ─── SECTION HEADER ─── */
.section-title { display: flex; align-items: center; gap: 16px; margin: 48px 0 24px; }
.section-title h2 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 28px; letter-spacing: -.015em; }
.section-title .rule { flex: 1; height: 3px; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.section-title .more { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 12px; color: var(--red); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.section-title .more::after { content: ' →'; }

/* ─── NEWS CARDS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid rgba(0,0,0,.08); display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(26,41,89,.12); }
.news-card .card-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); display: block; }
.news-card .card-thumb img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; }
.news-card .card-thumb-placeholder { aspect-ratio: 16/10; background: repeating-linear-gradient(135deg,#c7c0ad 0 10px,#b6af9c 10px 20px); }
.news-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card .cat-mini { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 10px; color: var(--red); letter-spacing: .14em; text-transform: uppercase; }
.news-card h3 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 18px; line-height: 1.2; letter-spacing: -.005em; }
.news-card .meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-soft); letter-spacing: .08em; margin-top: auto; }

/* ─── TWO COL ─── */
/* ─── LO MÁS LEÍDO (horizontal strip) ─── */
.ranking-strip { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid rgba(0,0,0,.08); margin-bottom: 48px; }
.ranking-strip .ranking-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 20px 18px; border-right: 1px solid rgba(0,0,0,.08); align-items: start; }
.ranking-strip .ranking-item:last-child { border-right: none; }
.ranking-strip .ranking-item:hover { background: var(--paper); }
.ranking-item .num { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 32px; line-height: .8; color: var(--red); letter-spacing: -.04em; }
.ranking-item .txt { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 14px; line-height: 1.3; }

/* ─── OPINIÓN (standalone) ─── */
.opinion-standalone { margin: 48px 0; }
.opinion-box { background: var(--paper-2); padding: 32px; border-left: 4px solid var(--red); }
.opinion-box .kicker { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 11px; color: var(--red); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.opinion-box blockquote { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.35; color: var(--ink); margin-bottom: 18px; position: relative; padding-left: 24px; }
.opinion-box blockquote::before { content: '\201C'; position: absolute; left: -6px; top: -18px; font-size: 64px; color: var(--red); line-height: 1; font-family: 'Playfair Display', serif; font-style: normal; }
.opinion-box .author { display: flex; align-items: center; gap: 12px; }
.opinion-box .author .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 14px; overflow: hidden; }
.opinion-box .author .avatar img { width: 100%; height: 100%; object-fit: cover; }
.opinion-box .author .name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14px; }
.opinion-box .author .role { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-soft); letter-spacing: .08em; }

/* ─── SINGLE POST ─── */
.read-progress { position: sticky; top: 0; height: 3px; background: rgba(0,0,0,.06); z-index: 20; }
.read-progress .bar { height: 100%; background: var(--red); width: 0; transition: width .1s; }
.article-wrap { max-width: 1200px; margin: 0 auto; padding: 32px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.crumbs { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 24px; }
.crumbs a { color: var(--red); }
.crumbs span { margin: 0 8px; opacity: .5; }
.article-cat { display: inline-block; background: var(--red); color: #fff; font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 12px; padding: 5px 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.article-title { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 42px; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 18px; }
.article-dek { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.4; color: var(--ink-soft); margin-bottom: 28px; }
.article-byline { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1); margin-bottom: 28px; }
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 15px; overflow: hidden; flex-shrink: 0; }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-info { flex: 1; }
.byline-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14px; }
.byline-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-soft); letter-spacing: .08em; }
.byline-share { display: flex; gap: 8px; }
.byline-share a { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--navy); }
.byline-share a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.article-hero { aspect-ratio: 16/9; overflow: hidden; margin-bottom: 8px; background: var(--paper-2); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-caption { font-family: 'Archivo', sans-serif; font-size: 13px; color: var(--ink-soft); font-style: italic; margin-bottom: 36px; }
.article-body p { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 19px; line-height: 1.65; margin-bottom: 22px; }
.article-body h2 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 28px; margin: 32px 0 16px; letter-spacing: -.015em; }
.article-body h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; margin: 24px 0 12px; }
.article-body blockquote { border-left: 4px solid var(--red); padding: 4px 0 4px 20px; margin: 28px 0; font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; line-height: 1.4; color: var(--navy); }
.article-body ul, .article-body ol { padding-left: 28px; margin-bottom: 22px; font-family: 'Playfair Display', serif; font-size: 19px; line-height: 1.65; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; margin: 24px auto; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 20px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,.1); }
.article-tags .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; align-self: center; margin-right: 8px; }
.article-tags a { background: #cfe0f5; color: var(--navy); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.article-tags a:hover { background: var(--navy); color: #fff; }
.share-bottom { display: flex; justify-content: center; gap: 12px; margin: 32px 0; padding: 24px; background: #fff; border: 1px solid rgba(0,0,0,.08); flex-wrap: wrap; }
.share-bottom .lbl { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; align-self: center; margin-right: 6px; }
.share-bottom a { padding: 10px 18px; background: var(--navy); color: #fff; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px; }
.share-bottom a.wa { background: #25D366; }
.share-bottom a.fb { background: #1877F2; }
.share-bottom a.x { background: #000; }
.author-card { display: flex; gap: 18px; background: var(--paper-2); padding: 24px; margin: 40px 0; align-items: center; }
.author-card .pic { width: 80px; height: 80px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; flex-shrink: 0; overflow: hidden; }
.author-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.author-card h4 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.author-card .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.author-card p { font-family: 'Archivo', sans-serif; font-size: 14px; color: var(--ink-soft); }
.author-card .view { font-family: 'Archivo Narrow', sans-serif; font-size: 12px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; display: inline-block; }
.related { margin-top: 48px; }
.related h3 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 24px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px double var(--navy); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.rel-card { background: #fff; border: 1px solid rgba(0,0,0,.08); }
.rel-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.rel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-card .body { padding: 16px; }
.rel-card .cat { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 10px; color: var(--red); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.rel-card h4 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 16px; line-height: 1.2; }

/* ─── SIDEBAR ─── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sb-box { background: #fff; padding: 20px; border: 1px solid rgba(0,0,0,.08); }
.sb-box h4 { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 14px; }
.sb-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.sb-item:last-child { border: none; }
.sb-item .num { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 24px; color: var(--red); line-height: .8; }
.sb-item .t { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 14px; line-height: 1.25; }
.sb-ad { background: var(--paper-2); padding: 40px 20px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-soft); letter-spacing: .15em; text-transform: uppercase; border: 2px dashed rgba(0,0,0,.15); }
.nl-box { background: var(--navy); color: var(--paper); padding: 24px; }
.nl-box h4 { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.nl-box p { font-family: 'Archivo', sans-serif; font-size: 13px; opacity: .85; margin-bottom: 14px; }
.nl-box input { width: 100%; height: 40px; background: rgba(244,241,234,.1); border: 1px solid rgba(244,241,234,.25); color: var(--paper); padding: 0 12px; margin-bottom: 8px; font-size: 13px; }
.nl-box button { width: 100%; height: 40px; background: var(--red); color: #fff; border: none; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

/* ─── CATEGORY PAGE ─── */
.cat-head { border-bottom: 3px double var(--navy); padding-bottom: 20px; margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cat-head h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 48px; letter-spacing: -.02em; }
.cat-head p { font-family: 'Playfair Display', serif; font-style: italic; color: var(--ink-soft); font-size: 17px; margin-top: 6px; }
.cat-count { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.feat { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; background: #fff; border: 1px solid rgba(0,0,0,.08); margin-bottom: 32px; }
.feat .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.feat .ph img { width: 100%; height: 100%; object-fit: cover; }
.feat .body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.feat .cat { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 11px; color: var(--red); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.feat h2 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 10px; }
.feat .dek { font-family: 'Playfair Display', serif; font-style: italic; font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; }
.feat .meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-soft); letter-spacing: .1em; }
.list-item { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.list-item:first-child { padding-top: 0; }
.list-item .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .cat { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 10px; color: var(--red); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.list-item h3 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.list-item .dek { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.45; }
.list-item .meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-soft); letter-spacing: .1em; }

/* ─── PAGINATION ─── */
.pager { display: flex; justify-content: center; gap: 6px; margin: 36px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 14px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid rgba(0,0,0,.12); font-weight: 700; font-size: 14px; }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── SEARCH / 404 ─── */
.page-hero { background: var(--navy); color: #fff; padding: 60px 32px; text-align: center; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 48px; margin-bottom: 12px; }
.page-hero p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; opacity: .8; }
.search-form-wrap { max-width: 600px; margin: 40px auto; padding: 0 32px; }
.search-form-wrap form { display: flex; }
.search-form-wrap input[type="search"] { flex: 1; height: 50px; padding: 0 18px; font-size: 16px; border: 2px solid var(--navy); font-family: 'Archivo', sans-serif; background: #fff; }
.search-form-wrap button { height: 50px; padding: 0 24px; background: var(--red); color: #fff; border: none; font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }

/* ─── FOOTER ─── */
.site-footer { background: var(--navy); color: var(--paper); margin-top: 60px; }
.footer-main { max-width: 1280px; margin: 0 auto; padding: 60px 32px; display: grid; grid-template-columns: 30% 1fr 1fr 1fr; gap: 40px; }
.footer-brand .wm { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 36px; line-height: 1; margin-bottom: 14px; letter-spacing: -.025em; }
.footer-brand .wm .t { color: var(--paper); }
.footer-brand .wm .i { color: var(--red); }
.footer-brand p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 15px; opacity: .8; line-height: 1.5; }
.footer-brand img { max-height: 60px; width: auto; margin-bottom: 14px; }
.footer-col h4 { font-family: 'Archivo Narrow', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-family: 'Archivo', sans-serif; font-size: 14px; opacity: .85; }
.footer-col a:hover { color: var(--red); opacity: 1; }
.footer-newsletter { max-width: 1280px; margin: 0 auto; padding: 24px 32px; border-top: 1px solid rgba(244,241,234,.15); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.footer-newsletter .nl-text { display: flex; flex-direction: column; gap: 4px; }
.footer-newsletter .nl-title { font-family: 'Archivo Narrow', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.footer-newsletter .nl-sub { font-family: 'Archivo', sans-serif; font-size: 13px; opacity: .75; }
.footer-newsletter .nl-form { display: flex; gap: 8px; }
.footer-newsletter input { height: 42px; width: 260px; background: rgba(244,241,234,.08); border: 1px solid rgba(244,241,234,.22); color: var(--paper); padding: 0 14px; font-family: 'Archivo', sans-serif; font-size: 13px; }
.footer-newsletter button { height: 42px; background: var(--red); color: #fff; border: none; padding: 0 24px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.footer-socials { max-width: 1280px; margin: 0 auto; padding: 20px 32px; border-top: 1px solid rgba(244,241,234,.15); display: flex; gap: 12px; align-items: center; }
.footer-socials .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: .6; letter-spacing: .15em; text-transform: uppercase; margin-right: 8px; }
.footer-socials .icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(244,241,234,.08); display: flex; align-items: center; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px; color: var(--paper); }
.footer-socials .icon:hover { background: var(--red); }
.footer-bottom { background: var(--red); color: #fff; height: 48px; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .05em; text-align: center; padding: 0 16px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .ranking-strip { grid-template-columns: 1fr 1fr; }
  .ranking-strip .ranking-item:nth-child(2n) { border-right: none; }
  .ranking-strip .ranking-item { border-bottom: 1px solid rgba(0,0,0,.08); }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-template-columns: 1fr; }
  .footer-newsletter input { width: 100%; }
  .site-header { padding: 0 16px; height: 68px; }
  .site-logo .wm { font-size: 36px; }
  .site-tagline { display: none; }
  .main-nav { padding: 0 16px; }
  .main-nav a { padding: 0 12px; font-size: 13px; }
  .top-bar { padding: 0 16px; font-size: 11px; }
  .top-bar .tb-right { display: none; }
  .container { padding: 20px; }
  .hero-main h1 { font-size: 30px; }
  .hero-main { padding: 24px; }
  .side-card-thumb { aspect-ratio: 16/9; }
  .article-wrap { grid-template-columns: 1fr; padding: 20px; }
  .article-title { font-size: 30px; }
  .related-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 120px 1fr; }
  .cat-head h1 { font-size: 32px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 1fr; }
  .breaking { padding: 20px; }
}
