/* ═══════════════════════════════════════════════════
   THE HERALD — main.css
   Version: 1.0.0
═══════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --ff-disp: 'Playfair Display', serif;
  --ff-body: 'Source Serif 4', serif;
  --ff-ui:   'DM Sans', sans-serif;
}
[data-theme="light"] {
  --bg:       #f9f7f3;
  --bg1:      #ffffff;
  --bg2:      #f2efe8;
  --bg3:      #e8e4d9;
  --line:     rgba(0,0,0,0.07);
  --line2:    rgba(0,0,0,0.13);
  --t1:       #1a1815;
  --t2:       #5c5850;
  --t3:       #9a9488;
  --t4:       #c4bfb4;
  --acc:      #c8102e;
  --acc-l:    rgba(200,16,46,0.08);
  --inv:      #1a1815;
  --inv-t:    #f9f7f3;
}
[data-theme="dark"] {
  --bg:       #111010;
  --bg1:      #1a1917;
  --bg2:      #222020;
  --bg3:      #2c2a28;
  --line:     rgba(255,255,255,0.07);
  --line2:    rgba(255,255,255,0.13);
  --t1:       #f0ece4;
  --t2:       #8c8880;
  --t3:       #504e4a;
  --t4:       #333130;
  --acc:      #e8243f;
  --acc-l:    rgba(232,36,63,0.1);
  --inv:      #f0ece4;
  --inv-t:    #111010;
}

/* ── RESET ───────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--ff-ui);
  font-size: 16px;
  line-height: 1.65;
  transition: background .25s, color .25s;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--ff-ui); }
img { display: block; max-width: 100%; height: auto; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--t4); border-radius: 3px; }

/* ── DATE BAR ────────────────────────────────────── */
.datebar {
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  transition: background .25s;
}
.datebar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--t3); font-weight: 500; letter-spacing: .3px;
}
.datebar-right { display: flex; align-items: center; gap: 16px; }
.datebar-link, .datebar-menu a { color: var(--t3); transition: color .15s; }
.datebar-link:hover, .datebar-menu a:hover { color: var(--t1); }
.datebar-menu { display: flex; gap: 16px; list-style: none; }
.datebar-menu li { display: inline; }
.date-sep { margin: 0 8px; opacity: .3; }

/* ── MASTHEAD ────────────────────────────────────── */
.masthead {
  background: var(--bg1);
  padding: 20px 0 18px;
  border-bottom: 3px solid var(--t1);
  transition: background .25s, border-color .25s;
}
.masthead-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 24px;
}
.masthead-search { flex: 0 0 220px; }
.brand { flex: 1; text-align: center; }
.brand-name {
  font-family: var(--ff-disp);
  font-size: 62px; font-weight: 900;
  letter-spacing: -2px; color: var(--t1); line-height: .9;
  display: block;
}
.custom-logo { max-height: 72px; width: auto; }
.brand-rule { width: 100%; height: 1px; background: var(--t1); margin: 8px 0 6px; opacity: .15; }
.brand-tagline {
  font-size: 10px; font-weight: 500; letter-spacing: 4px;
  color: var(--t3); text-transform: uppercase; font-family: var(--ff-ui);
}
.search-wrap { position: relative; }
.search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--t3); font-size: 14px; pointer-events: none;
}
.search-field {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 14px 9px 36px;
  font-size: 13px; color: var(--t1); outline: none;
  font-family: var(--ff-ui); transition: border-color .2s;
}
.search-field:focus { border-color: var(--line2); }
.search-field::placeholder { color: var(--t3); }
.masthead-actions { flex: 0 0 220px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.mact-btn {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 4px; padding: 8px 16px;
  font-size: 12px; font-weight: 600; color: var(--t2);
  letter-spacing: .3px; transition: all .2s; display: inline-block;
}
.mact-btn:hover { border-color: var(--line2); color: var(--t1); }
.mact-btn.sub { background: var(--acc); border-color: var(--acc); color: #fff; }
.mact-btn.sub:hover { opacity: .88; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--line);
  font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.theme-btn:hover { border-color: var(--line2); }

/* ── PRIMARY NAV ─────────────────────────────────── */
.primnav {
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 300;
  transition: background .25s;
}
.primnav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: stretch; height: 44px;
  overflow-x: auto; scrollbar-width: none;
}
.primnav-inner::-webkit-scrollbar { display: none; }
.navitem {
  font-size: 12px; font-weight: 700; letter-spacing: .8px;
  color: var(--t3); padding: 0 15px;
  display: inline-flex; align-items: center;
  white-space: nowrap; border-bottom: 3px solid transparent;
  transition: all .2s; flex-shrink: 0;
  text-transform: uppercase; font-family: var(--ff-ui);
}
.navitem:hover { color: var(--t1); border-bottom-color: var(--t4); }
.navitem.on, .navitem.current-menu-item { color: var(--acc); border-bottom-color: var(--acc); }

/* ── BREAKING TICKER ─────────────────────────────── */
.breaking {
  background: var(--acc); overflow: hidden;
  height: 34px; display: flex; align-items: center;
}
.breaking-label {
  background: rgba(0,0,0,.22); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  padding: 0 14px; height: 100%; display: flex; align-items: center;
  flex-shrink: 0; text-transform: uppercase;
}
.breaking-track { flex: 1; overflow: hidden; }
.breaking-slide {
  display: flex; gap: 60px;
  animation: bslide 60s linear infinite; white-space: nowrap;
}
.breaking-slide span { font-size: 12px; font-weight: 600; color: #fff; opacity: .95; }
.breaking-slide span::before { content: "//"; margin-right: 10px; opacity: .5; }
@keyframes bslide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── PAGE WRAPPER ────────────────────────────────── */
.page {
  max-width: 1320px; margin: 0 auto; padding: 36px 28px;
}

/* ── SECTION RULE ────────────────────────────────── */
.sec-rule {
  display: flex; align-items: center;
  margin-bottom: 20px; gap: 0;
}
.sec-rule-text {
  font-family: var(--ff-ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; color: var(--t1); text-transform: uppercase;
  padding-right: 14px; white-space: nowrap;
}
.sec-rule-line { flex: 1; height: 1px; background: var(--t1); opacity: .12; }
.sec-rule-more {
  font-size: 11px; font-weight: 600; color: var(--acc);
  padding-left: 14px; white-space: nowrap; cursor: pointer;
}
.sec-rule-more:hover { text-decoration: underline; }

/* ── LEAD GRID ───────────────────────────────────── */
.lead-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 1px; background: var(--line2);
  border: 1px solid var(--line2); border-radius: 2px;
  overflow: hidden; margin-bottom: 36px;
}
.lead-primary { background: var(--bg1); }
.lead-primary-link { display: block; }
.lead-primary-img {
  height: 340px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; position: relative; overflow: hidden;
}
.lead-primary-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.62));
}
.lead-primary-placeholder { font-size: 64px; opacity: .15; }
.lead-primary-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; z-index: 1;
}
.lead-primary-body { padding: 20px 24px; }
.lead-secondary { display: flex; flex-direction: column; background: var(--bg1); }
.lead-sec-item {
  flex: 1; padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.lead-sec-item:last-child { border-bottom: none; }
.lead-sec-item:hover { background: var(--bg2); }
.lead-sec-item a { display: flex; flex-direction: column; height: 100%; }

/* ── CATEGORY TAGS ───────────────────────────────── */
.ctag {
  display: inline-block; font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.5px; padding: 3px 9px; border-radius: 2px;
  text-transform: uppercase; font-family: var(--ff-ui);
  margin-bottom: 7px;
}
.ctag-world         { background: rgba(71,114,255,.1);    color: #4772ff; }
.ctag-tech          { background: rgba(14,165,233,.1);    color: #0ea5e9; }
.ctag-business      { background: rgba(234,179,8,.1);     color: #ca8a04; }
.ctag-health        { background: rgba(34,197,94,.1);     color: #16a34a; }
.ctag-sport         { background: rgba(239,68,68,.1);     color: #dc2626; }
.ctag-science       { background: rgba(168,85,247,.1);    color: #9333ea; }
.ctag-politics      { background: rgba(249,115,22,.1);    color: #ea580c; }
.ctag-entertainment { background: rgba(236,72,153,.1);    color: #db2777; }
.ctag-opinion       { background: rgba(20,184,166,.1);    color: #0d9488; }

/* ── TYPOGRAPHY CLASSES ──────────────────────────── */
.hed-xl  { font-family: var(--ff-disp); font-size: 30px; font-weight: 700; line-height: 1.18; color: var(--t1); }
.hed-lg  { font-family: var(--ff-disp); font-size: 22px; font-weight: 700; line-height: 1.22; color: var(--t1); }
.hed-md  { font-family: var(--ff-disp); font-size: 18px; font-weight: 700; line-height: 1.26; color: var(--t1); }
.hed-sm  { font-family: var(--ff-ui);   font-size: 14px; font-weight: 700; line-height: 1.38; color: var(--t1); }
.deck    { font-family: var(--ff-body); font-size: 14px; color: var(--t2); line-height: 1.65; margin-top: 8px; }
.byline  { font-size: 11px; color: var(--t3); font-family: var(--ff-ui); font-weight: 500; margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.byline strong { color: var(--t2); }
.white-hed { color: #fff !important; }
.white-by  { color: rgba(255,255,255,.55) !important; }
.white-by strong { color: rgba(255,255,255,.75) !important; }

/* ── CONTENT ROW ─────────────────────────────────── */
.content-row {
  display: grid; grid-template-columns: 2fr 1px 1fr;
  margin: 32px 0 36px;
}
.content-main { padding-right: 40px; }
.content-divider { background: var(--line); }
.content-side { padding-left: 36px; }

/* ── ARTICLE LIST ROW ────────────────────────────── */
.art-list { display: flex; flex-direction: column; }
.art-row {
  display: grid; grid-template-columns: 1fr 96px;
  gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.art-row:first-child { padding-top: 0; }
.art-row:last-child  { border-bottom: none; }
.art-row-link { display: contents; }
.art-row:hover .art-title { color: var(--acc); }
.art-title { transition: color .15s; }
.art-deck { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-thumb {
  width: 96px; height: 76px;
  background: var(--bg2); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--line); overflow: hidden;
}

/* ── COMPACT LIST ────────────────────────────────── */
.compact-list { display: flex; flex-direction: column; }
.compact-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.compact-item:first-child { padding-top: 0; }
.compact-item:last-child  { border-bottom: none; }
.compact-item:hover .compact-hed { color: var(--acc); }
.compact-num {
  font-family: var(--ff-disp); font-size: 28px; font-weight: 900;
  color: var(--t4); line-height: 1; float: left; margin-right: 12px; margin-top: 2px;
}
.compact-hed { font-family: var(--ff-ui); font-size: 13.5px; font-weight: 700; line-height: 1.38; color: var(--t1); overflow: hidden; transition: color .15s; }
.compact-meta { font-size: 11px; color: var(--t3); margin-top: 4px; clear: both; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ── LOAD MORE ───────────────────────────────────── */
.load-more-wrap { text-align: center; padding: 28px 0 0; }
.load-more-btn {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 4px; padding: 11px 32px;
  font-size: 13px; font-weight: 600; color: var(--t2);
  letter-spacing: .3px; transition: all .2s;
}
.load-more-btn:hover { border-color: var(--acc); color: var(--acc); }
.load-more-btn.loading { opacity: .5; cursor: not-allowed; }

/* ── OPINION STRIP ───────────────────────────────── */
.opinion-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line2);
  border: 1px solid var(--line2); border-radius: 2px;
  overflow: hidden; margin-bottom: 40px;
}
.opinion-card { background: var(--bg1); padding: 22px; transition: background .15s; }
.opinion-card:hover { background: var(--bg2); }
.opinion-card a { display: block; }
.op-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg3); display: flex; align-items: center;
  justify-content: center; font-size: 18px; margin-bottom: 12px;
  border: 1px solid var(--line); overflow: hidden;
}
.op-author { font-size: 13px; font-weight: 700; color: var(--t1); font-family: var(--ff-ui); }
.op-role   { font-size: 11px; color: var(--t3); font-family: var(--ff-ui); margin-bottom: 12px; }

/* ── PHOTO GRID ──────────────────────────────────── */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.photo-item { }
.photo-item:hover .hed-sm { color: var(--acc); }
.photo-item-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg2); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin-bottom: 10px; border: 1px solid var(--line);
  overflow: hidden;
}

/* ── SIDEBAR WIDGETS ─────────────────────────────── */
.widget { margin-bottom: 28px; }
.widget-head {
  font-family: var(--ff-ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--t1);
  padding-bottom: 10px; border-bottom: 2px solid var(--t1); margin-bottom: 16px;
}
.widget-list { display: flex; flex-direction: column; }
.widget-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.widget-item:first-child { padding-top: 0; }
.widget-item:last-child  { border-bottom: none; }
.widget-item:hover .widget-title { color: var(--acc); }
.widget-title { font-family: var(--ff-ui); font-size: 13px; font-weight: 600; line-height: 1.38; color: var(--t1); transition: color .15s; }
.widget-meta  { font-size: 11px; color: var(--t3); margin-top: 4px; }
.newsletter-box {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 4px; padding: 22px;
}
.nl-title { font-family: var(--ff-disp); font-size: 18px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.nl-desc  { font-size: 13px; color: var(--t2); font-family: var(--ff-body); line-height: 1.65; margin-bottom: 16px; }
.nl-input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 14px; font-size: 13px;
  color: var(--t1); outline: none; font-family: var(--ff-ui); margin-bottom: 8px;
  transition: border-color .2s;
}
.nl-input:focus { border-color: var(--line2); }
.nl-input::placeholder { color: var(--t3); }
.nl-btn {
  width: 100%; background: var(--acc); border-radius: 4px;
  color: #fff; font-size: 13px; font-weight: 700; padding: 10px;
  font-family: var(--ff-ui); letter-spacing: .3px; transition: opacity .2s;
}
.nl-btn:hover { opacity: .88; }

/* ── ARCHIVE HEADER ──────────────────────────────── */
.archive-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.archive-title  { font-family: var(--ff-disp); font-size: 36px; font-weight: 700; line-height: 1.18; margin: 8px 0 10px; }
.archive-desc   { font-family: var(--ff-body); font-size: 15px; color: var(--t2); line-height: 1.7; }
.archive-pagination { padding: 32px 0 0; }
.no-results, .no-posts { font-size: 15px; color: var(--t2); padding: 32px 0; font-family: var(--ff-body); }
.archive-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.archive-pagination .page-numbers {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 4px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--t2); transition: all .2s;
}
.archive-pagination .page-numbers:hover { border-color: var(--acc); color: var(--acc); }
.archive-pagination .page-numbers.current { background: var(--acc); border-color: var(--acc); color: #fff; }

/* ── SINGLE ARTICLE ──────────────────────────────── */
.single-layout {
  display: grid; grid-template-columns: 2fr 1px 1fr; margin-top: 28px;
}
.single-article { padding-right: 40px; }
.single-sidebar { padding-left: 36px; }
.article-header { margin-bottom: 24px; }
.article-title { font-family: var(--ff-disp); font-size: 38px; font-weight: 700; line-height: 1.18; color: var(--t1); margin: 10px 0 14px; }
.article-deck  { font-family: var(--ff-body); font-size: 18px; color: var(--t2); line-height: 1.65; }
.article-meta  { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; flex-wrap: wrap; gap: 12px; }
.article-author { display: flex; align-items: center; gap: 10px; }
.author-avatar  { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.author-name    { font-size: 13px; font-weight: 600; color: var(--t1); display: block; }
.author-role    { font-size: 11px; color: var(--t3); display: block; }
.article-meta-right { font-size: 12px; color: var(--t3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta-sep { opacity: .4; }
.article-hero-img { margin: 24px 0; border-radius: 3px; overflow: hidden; }
.article-hero-img img { width: 100%; height: auto; display: block; }
.article-hero-img figcaption { font-size: 12px; color: var(--t3); font-family: var(--ff-ui); padding: 8px 0 0; font-style: italic; }

/* Share bar */
.share-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.share-bar--bottom { border-bottom: none; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.share-label { font-size: 11px; font-weight: 700; color: var(--t3); letter-spacing: 1px; text-transform: uppercase; margin-right: 4px; }
.share-btn {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 4px; padding: 6px 14px; font-size: 12px;
  font-weight: 600; color: var(--t2); transition: all .2s;
  font-family: var(--ff-ui); display: inline-block;
}
.share-btn:hover { border-color: var(--line2); color: var(--t1); }

/* Article body */
.article-body { font-family: var(--ff-body); font-size: 17px; line-height: 1.85; color: var(--t2); margin-top: 28px; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: var(--ff-disp); font-size: 26px; font-weight: 700; color: var(--t1); margin: 32px 0 14px; }
.article-body h3 { font-family: var(--ff-disp); font-size: 20px; font-weight: 700; color: var(--t1); margin: 24px 0 12px; }
.article-body blockquote {
  border-left: 3px solid var(--acc); padding: 16px 20px;
  margin: 24px 0; font-style: italic; font-size: 18px;
  color: var(--t1); background: var(--bg2);
}
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 20px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { width: 100%; border-radius: 3px; margin: 20px 0; }
.article-body figure figcaption { font-size: 13px; color: var(--t3); font-style: italic; margin-top: 6px; }

/* Tags */
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.tags-label { font-size: 11px; font-weight: 700; color: var(--t3); letter-spacing: 1px; text-transform: uppercase; margin-right: 4px; }
.tag-pill {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 20px; padding: 4px 12px; font-size: 12px;
  font-weight: 500; color: var(--t2); transition: all .2s;
}
.tag-pill:hover { border-color: var(--acc); color: var(--acc); }

/* Author box */
.author-box {
  display: flex; gap: 18px; padding: 24px;
  background: var(--bg2); border-radius: 4px;
  border: 1px solid var(--line); margin-top: 28px;
}
.author-box-avatar { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.author-box-name   { font-family: var(--ff-ui); font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.author-box-bio    { font-size: 14px; color: var(--t2); line-height: 1.65; margin-bottom: 10px; font-family: var(--ff-body); }
.author-box-more   { font-size: 12px; font-weight: 600; color: var(--acc); }
.author-box-more:hover { text-decoration: underline; }

/* Related articles */
.related-section { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { }
.related-card:hover .hed-sm { color: var(--acc); }
.related-img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg2); border-radius: 3px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 12px; border: 1px solid var(--line);
}

/* ── BREADCRUMBS ─────────────────────────────────── */
.breadcrumbs { font-size: 12px; color: var(--t3); font-family: var(--ff-ui); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--acc); }
.bc-sep { opacity: .4; }

/* ── STATIC PAGE ─────────────────────────────────── */
.static-content .article-title { font-size: 36px; }
.static-page .single-layout    { margin-top: 32px; }

/* ── SEARCH ──────────────────────────────────────── */
.search-bar-large { margin-bottom: 28px; }
.search-bar-large .search-field { max-width: 480px; padding: 12px 14px 12px 40px; font-size: 15px; border-radius: 4px; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--inv); color: var(--inv-t); margin-top: 56px; transition: background .25s; }
.footer-top {
  max-width: 1320px; margin: 0 auto; padding: 52px 28px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 52px;
}
.footer-brand-name { font-family: var(--ff-disp); font-size: 42px; font-weight: 900; margin-bottom: 12px; }
.footer-tagline    { font-size: 13px; opacity: .45; font-family: var(--ff-body); line-height: 1.7; }
.footer-col-title  { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .45; margin-bottom: 14px; font-family: var(--ff-ui); }
.footer-link       { display: block; font-size: 13.5px; opacity: .7; margin-bottom: 9px; transition: opacity .2s; font-family: var(--ff-body); }
.footer-link:hover { opacity: 1; }
.footer-link + .footer-link { }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1320px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; opacity: .4; font-family: var(--ff-ui);
}

/* ── COMMENTS ────────────────────────────────────── */
.comments-area { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-title { font-family: var(--ff-disp); font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-size: 13px; font-weight: 700; color: var(--t1); font-family: var(--ff-ui); margin-bottom: 4px; }
.comment-meta   { font-size: 11px; color: var(--t3); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: var(--t2); font-family: var(--ff-body); line-height: 1.7; }
.comment-form label { display: block; font-size: 12px; font-weight: 600; color: var(--t2); margin-bottom: 5px; font-family: var(--ff-ui); }
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 14px; font-size: 14px;
  color: var(--t1); outline: none; font-family: var(--ff-body);
  margin-bottom: 14px; transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--line2); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--acc); color: #fff; border-radius: 4px;
  padding: 10px 28px; font-size: 13px; font-weight: 700;
  font-family: var(--ff-ui); letter-spacing: .3px;
  transition: opacity .2s; cursor: pointer; border: none;
}
.comment-form .submit:hover { opacity: .88; }

/* ── MISC ────────────────────────────────────────── */
.page-links { display: flex; gap: 6px; margin: 24px 0; align-items: center; font-size: 13px; color: var(--t3); }
.page-links a { background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 4px 12px; color: var(--t2); transition: all .2s; }
.page-links a:hover { border-color: var(--acc); color: var(--acc); }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-footer  { margin-top: auto; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .content-row  { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .content-divider { display: none; }
  .content-main, .single-article { padding-right: 0; }
  .content-side, .single-sidebar { padding-left: 0; margin-top: 36px; }
  .opinion-strip { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-primary-img { height: 240px; }
}
@media (max-width: 760px) {
  .masthead-search, .masthead-actions { display: none; }
  .brand-name { font-size: 42px; }
  .article-title { font-size: 28px; }
  .related-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page { padding: 24px 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 36px 18px 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 16px 18px; }
  .article-meta { flex-direction: column; align-items: flex-start; }
}
