/*
Theme Name: Africentra
Theme URI: https://africentra.com
Author: Africentra News
Author URI: https://africentra.com
Description: A fast, modern, custom-built magazine/news theme for Africentra News. Hand-coded (no page-builder dependency) for speed, replacing the stock Newspaper (tagDiv) theme while keeping the same content structure — breaking news ticker, category desks, featured grid, most-popular sidebar, and article layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: africentra
Tags: news, magazine, blog, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --brand: #23924f;
  --brand-dark: #1a7440;
  --brand-light: #e6f5ec;
  --breaking: #e0202a;
  --breaking-dark: #b6161f;
  --ink: #12151a;
  --ink-soft: #494f58;
  --ink-faint: #767c87;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-dark: #12151a;
  --bg-dark-soft: #1c2028;
  --border: #e7e8ec;
  --border-dark: #2a2e37;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(15, 17, 20, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 17, 20, 0.10);
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --container: 1260px;
  --gap: 28px;
  --header-h: 76px;
}

/* =========================================================
   2. BASE
   ========================================================= */
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
p { margin-bottom: 1.1em; }
a { transition: color .15s ease; }
::selection { background: var(--brand); color: #fff; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 10px; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 10000; border-radius: var(--radius-sm); transition: top .2s ease;
}
.skip-link:focus { top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand); white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn.btn-outline:hover { border-color: var(--ink); }
.btn.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn.btn-block { width: 100%; }

.eyebrow, .section-head__eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand);
}

/* =========================================================
   3. TOP UTILITY BAR
   ========================================================= */
.topbar { background: var(--bg-dark); color: #cfd3da; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar__date { opacity: .8; }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__links a { opacity: .85; }
.topbar__links a:hover { opacity: 1; color: var(--brand); }
.topbar__social { display: flex; gap: 12px; }
.topbar__social a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.topbar__social a:hover { background: var(--brand); }
.topbar__social svg { width: 13px; height: 13px; fill: currentColor; }

/* =========================================================
   4. SITE HEADER
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 500; background: #fff; border-bottom: 1px solid var(--border); }
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.header-main { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.site-branding { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.site-branding img.custom-logo { max-height: 44px; width: auto; }
.site-title { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.site-title a { display: flex; align-items: baseline; gap: 2px; }
.site-title .brand-accent { color: var(--brand); }
.site-description { display: none; }

.primary-nav { display: flex; }
.primary-nav ul { display: flex; align-items: center; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; height: var(--header-h); padding: 0 14px;
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.primary-nav > ul > li > a:hover, .primary-nav > ul > li.current-menu-item > a { color: var(--brand); }
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease; z-index: 50;
}
.primary-nav li:hover > .sub-menu, .primary-nav li.focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.primary-nav .sub-menu a:hover { background: var(--bg-soft); color: var(--brand); }
.primary-nav .menu-item-has-children > a::after { content: ''; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.header-actions button:hover { background: var(--bg-soft); }
.header-actions svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 2; }
.menu-toggle { display: none; }

.search-overlay {
  position: fixed; inset: 0; background: rgba(18,21,26,.6); backdrop-filter: blur(2px);
  z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
  opacity: 0; visibility: hidden; transition: opacity .18s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__box { width: min(640px, 92vw); background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); }
.search-overlay form { display: flex; gap: 10px; }
.search-overlay input[type="search"] { flex: 1; border: 2px solid var(--border); border-radius: var(--radius); padding: 12px 16px; font-size: 16px; }
.search-overlay input[type="search"]:focus { outline: none; border-color: var(--brand); }
.search-overlay__close { margin-top: 12px; text-align: right; }

/* =========================================================
   5. BREAKING NEWS TICKER
   ========================================================= */
.breaking-bar { background: var(--breaking); color: #fff; }
.breaking-bar__inner { display: flex; align-items: center; height: 42px; gap: 14px; }
.breaking-bar__label {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; font-weight: 800;
  font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding-right: 14px;
  border-right: 1px solid rgba(255,255,255,.35);
}
.breaking-bar__label .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
.breaking-bar__track-wrap { flex: 1; overflow: hidden; }
.breaking-bar__track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.breaking-bar__track:hover { animation-play-state: paused; }
.breaking-bar__track a { font-size: 14px; font-weight: 600; opacity: .95; }
.breaking-bar__track a:hover { opacity: 1; text-decoration: underline; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.breaking-bar__nav { display: none; }

/* =========================================================
   6. LAYOUT / GRID
   ========================================================= */
.site-main { padding-block: 36px; }
.layout-2col { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: var(--gap); align-items: start; }
.layout-1col { max-width: 860px; margin-inline: auto; }

.section { margin-bottom: 46px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.section-head__title { font-size: 21px; text-transform: uppercase; letter-spacing: .02em; }
.section-head__title a { color: inherit; }
.section-head__more { font-size: 13px; font-weight: 700; color: var(--brand); flex-shrink: 0; }
.section-head__more:hover { text-decoration: underline; }

/* =========================================================
   7. CATEGORY BADGES / META
   ========================================================= */
.cat-badge {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; color: var(--brand);
  background: var(--brand-light); padding: 4px 10px; border-radius: 4px;
}
.cat-badge--on-image { background: var(--brand); color: #fff; position: absolute; top: 14px; left: 14px; z-index: 2; }
.cat-badge--breaking { background: var(--breaking); color: #fff; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); margin-top: 8px; }
.entry-meta a { color: inherit; font-weight: 600; }
.entry-meta a:hover { color: var(--brand); }
.entry-meta .sep { opacity: .5; }

/* =========================================================
   8. POST CARDS
   ========================================================= */
.media-box { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 16/10; }
.media-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-box:hover img { transform: scale(1.05); }
.media-box.ratio-square { aspect-ratio: 1/1; }
.media-box.ratio-wide { aspect-ratio: 16/9; }
.media-box .no-image-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--ink)); color: rgba(255,255,255,.85); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; text-align: center; padding: 10px; }

.card { display: flex; flex-direction: column; }
.card__title { font-size: 18px; margin-top: 12px; }
.card__title a:hover { color: var(--brand); }
.card__excerpt { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; }

/* Hero / featured grid */
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); }
.hero-main .media-box { aspect-ratio: 16/9; }
.hero-main .card__title { font-size: 30px; margin-top: 16px; }
.hero-main .card__excerpt { font-size: 16px; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side .card { flex-direction: row; gap: 14px; }
.hero-side .media-box { width: 128px; flex-shrink: 0; aspect-ratio: 4/3; }
.hero-side .card__title { font-size: 15.5px; margin-top: 0; line-height: 1.35; }

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

/* Compact list (sidebar / most popular) */
.list-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-card:first-child { padding-top: 0; }
.list-card:last-child { border-bottom: 0; }
.list-card__num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-soft); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.list-card__thumb { flex-shrink: 0; width: 74px; }
.list-card__thumb .media-box { aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.list-card__title { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.list-card__title a:hover { color: var(--brand); }

/* Split desk row (image left/right + list) */
.desk-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.desk-row .list-card { grid-template-columns: none; }

/* =========================================================
   9. SIDEBAR
   ========================================================= */
.widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: var(--gap); }
.widget-title { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--bg-soft); padding: 4px; border-radius: 999px; }
.tabs button { flex: 1; padding: 8px 10px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; border-radius: 999px; color: var(--ink-soft); }
.tabs button.is-active { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.widget--newsletter { background: var(--ink); color: #fff; border: none; }
.widget--newsletter .widget-title { border-color: rgba(255,255,255,.25); color: #fff; }
.widget--newsletter p { color: rgba(255,255,255,.75); font-size: 14px; }
.widget--newsletter input[type="email"] {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; margin-bottom: 10px;
}
.widget--newsletter input::placeholder { color: rgba(255,255,255,.5); }
.widget--newsletter .consent { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 10px; display: flex; gap: 8px; }

.widget--membership { border-color: var(--brand); background: var(--brand-light); }
.widget--membership .price { font-size: 30px; font-weight: 900; color: var(--brand-dark); }
.widget--membership .price span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.widget--membership ul { margin: 14px 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.widget--membership li { display: flex; gap: 8px; align-items: flex-start; }
.widget--membership li::before { content: '✓'; color: var(--brand); font-weight: 900; }

.widget--ad { text-align: center; padding: 0; overflow: hidden; }
.widget--ad img { width: 100%; }
.widget--ad .ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); padding: 6px; }

.tagcloud a { display: inline-block; margin: 0 6px 8px 0; padding: 6px 12px; background: var(--bg-soft); border-radius: 999px; font-size: 12.5px !important; font-weight: 700; }
.tagcloud a:hover { background: var(--brand); color: #fff; }

/* Generic wp widgets fallback */
.widget ul { display: flex; flex-direction: column; gap: 8px; }
.widget ul li { font-size: 14px; }
.widget select, .widget input[type="text"], .widget input[type="search"] { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* =========================================================
   10. SINGLE POST
   ========================================================= */
.entry-header { max-width: 860px; margin: 0 auto 26px; text-align: left; }
.entry-header .cat-badge { margin-bottom: 14px; }
.entry-title { font-size: clamp(28px, 4vw, 44px); }
.entry-header .entry-meta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.author-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.author-inline { display: flex; align-items: center; gap: 10px; }
.author-inline strong { color: var(--ink); }

.entry-thumb { max-width: 1040px; margin: 0 auto 30px; border-radius: var(--radius-lg); overflow: hidden; }
.entry-thumb .media-box { aspect-ratio: 16/8; border-radius: var(--radius-lg); }
.entry-thumb figcaption { font-size: 12.5px; color: var(--ink-faint); padding-top: 8px; text-align: center; }

.entry-content { max-width: 780px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: #23262b; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img, .entry-content figure { border-radius: var(--radius); }
.entry-content figcaption { font-size: 13.5px; color: var(--ink-faint); text-align: center; margin-top: 8px; }
.entry-content blockquote { border-left: 4px solid var(--brand); padding: 4px 0 4px 22px; font-size: 21px; font-style: italic; color: var(--ink-soft); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content pre { background: var(--bg-soft); padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; }

.entry-footer { max-width: 780px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { font-size: 12.5px; font-weight: 700; padding: 6px 12px; background: var(--bg-soft); border-radius: 999px; }
.entry-tags a:hover { background: var(--brand); color: #fff; }
.share-row { display: flex; align-items: center; gap: 8px; }
.share-row span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
.share-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; }
.share-btn:hover { background: var(--brand); }
.share-btn:hover svg { fill: #fff; }
.share-btn svg { width: 15px; height: 15px; fill: var(--ink-soft); }

.author-box { max-width: 780px; margin: 34px auto 0; padding: 24px; background: var(--bg-soft); border-radius: var(--radius-lg); display: flex; gap: 18px; }
.author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h3 { font-size: 16px; margin-bottom: 6px; }
.author-box p { font-size: 14px; color: var(--ink-soft); margin-bottom: 0; }

.related-posts { max-width: 1040px; margin: 46px auto 0; }

/* =========================================================
   11. ARCHIVE / CATEGORY / SEARCH
   ========================================================= */
.archive-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.archive-header .eyebrow { margin-bottom: 8px; }
.archive-header h1 { font-size: clamp(26px, 4vw, 36px); }
.archive-header p { color: var(--ink-soft); margin-top: 10px; margin-bottom: 0; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); font-weight: 700; font-size: 14px; padding-inline: 6px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }

.no-results { text-align: center; padding: 60px 20px; }
.no-results h1 { font-size: 26px; margin-bottom: 12px; }
.no-results form { max-width: 480px; margin: 24px auto 0; display: flex; gap: 8px; }
.no-results input[type="search"] { flex: 1; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius); }

/* =========================================================
   12. COMMENTS
   ========================================================= */
.comments-area { max-width: 780px; margin: 46px auto 0; }
.comments-title { font-size: 21px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 40px; padding-top: 18px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12.5px; color: var(--ink-faint); }
.comment-content p { font-size: 15px; margin-bottom: 8px; }
.comment-reply-link { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.comment-respond { margin-top: 26px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 15px;
}
.comment-form textarea { min-height: 130px; }
.comment-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }

/* =========================================================
   13. FOOTER
   ========================================================= */
.site-footer { background: var(--bg-dark); color: #b9bec7; margin-top: 60px; }
.footer-top { padding-block: 50px; border-bottom: 1px solid var(--border-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--gap); }
.footer-brand .site-title { color: #fff; }
.footer-brand p { font-size: 14px; color: #9098a4; margin-top: 14px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-dark-soft); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--brand); }
.footer-social svg { width: 15px; height: 15px; fill: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #b9bec7; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-block: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7a818c; }
.footer-bottom a { color: #7a818c; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease; z-index: 400; box-shadow: var(--shadow-md);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand); }
.back-to-top svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* =========================================================
   14. RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .layout-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: #fff; transform: translateX(100%); transition: transform .25s ease; z-index: 900; padding: 90px 22px 22px; overflow-y: auto; box-shadow: var(--shadow-md); }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li > a { height: auto; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 14px; display: none; }
  .primary-nav li.is-expanded .sub-menu { display: block; }
  .menu-toggle { display: inline-flex; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(18,21,26,.5); z-index: 850; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
  .hero-grid { grid-template-columns: 1fr; }
  .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .desk-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 62px; }
  .site-title { font-size: 20px; }
  .breaking-bar__label span.label-text { display: none; }
  .post-grid--3, .post-grid--4, .post-grid--2 { grid-template-columns: 1fr; }
  .hero-side .card { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; }
  .comment-list .children { margin-left: 16px; }
  .entry-content { font-size: 16.5px; }
}

/* print */
@media print {
  .site-header, .site-footer, .breaking-bar, .sidebar, .back-to-top, .share-row, .comments-area { display: none !important; }
}
