/*
Theme Name: Kuku News
Theme URI: https://www.abjine.com
Author: Abjine Capital Group
Author URI: https://www.abjine.com
Description: A fast, modern newspaper theme for East African and global digital publishers by Abjine Capital Group. 25+ category-aware widgets, home page builder, left/right/full-width layouts, sidebar templates, breaking-news ticker, dark mode, NewsArticle schema and a reader-first article layout. Set in Roboto.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuku-news
Tags: news, blog, magazine, two-columns, left-sidebar, right-sidebar, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options, accessibility-ready, post-formats
*/

/* Roboto (Apache License 2.0), Latin subset, bundled locally: no external requests. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/roboto-latin.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("assets/fonts/roboto-italic-latin.woff") format("woff"); }

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --accent: #c8102e;
  --accent-dark: #9d0b23;
  --header-bg: #0d1b2a;
  --ink: #14181f;
  --ink-2: #4a5260;
  --muted: #778092;
  --line: #e3e6eb;
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --card-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 4px;
  --radius-img: 10px;
  --max: 1240px;
  --font-head: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="dark"] {
  --ink: #e8ebf0;
  --ink-2: #b3bbc8;
  --muted: #8a94a6;
  --line: #263041;
  --bg: #0e131b;
  --bg-alt: #151c27;
  --card-shadow: none;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.012em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto; margin: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 16px; top: 8px; left: 8px;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }

/* ==========================================================================
   3. Top bar
   ========================================================================== */
.topbar { background: var(--header-bg); color: #c9d1de; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar a { color: #c9d1de; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar-date { white-space: nowrap; }
.topbar-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.topbar-social { display: flex; gap: 2px; margin-right: 6px; }
.icon-btn {
  background: none; border: 0; color: inherit; cursor: pointer; padding: 8px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 16px; line-height: 1;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-subscribe {
  background: var(--accent); color: #fff !important; padding: 6px 14px; border-radius: 3px;
  font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; margin-left: 8px;
}
.btn-subscribe:hover { background: var(--accent-dark); }

/* ==========================================================================
   4. Masthead + navigation
   ========================================================================== */
.masthead { background: var(--bg); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 20px; padding-bottom: 20px; }
.site-title { font-family: var(--font-head); font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; letter-spacing: -.035em; line-height: 1; margin: 0; }
.site-title a { color: var(--ink); }
.site-title .mark { color: var(--accent); }
.site-tagline { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; margin: 8px 0 0; }
.custom-logo { max-height: 64px; width: auto; }
.header-ad { flex: 0 1 728px; min-width: 0; text-align: right; }
.header-ad img { margin-left: auto; }

.site-nav { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 60; transition: box-shadow .2s; }
.site-nav.is-stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.site-nav .container { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; flex-wrap: wrap; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 14px 14px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  position: relative;
}
.nav-menu > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav-menu > li:hover > a::after, .nav-menu > .current-menu-item > a::after, .nav-menu > .current-cat > a::after { transform: scaleX(1); }
.nav-menu .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--bg); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); box-shadow: 0 12px 28px rgba(0, 0, 0, .14); display: none; z-index: 5;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.nav-menu .sub-menu li:last-child a { border-bottom: 0; }
.nav-search { margin-left: auto; }
.nav-search .icon-btn { color: var(--ink); }
.nav-search .icon-btn:hover { background: var(--bg-alt); color: var(--accent); }

.search-panel { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 18px 0; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; max-width: 640px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-right: 0; background: var(--bg);
  border-radius: var(--radius) 0 0 var(--radius); min-width: 0;
}
.search-form button {
  padding: 0 22px; background: var(--accent); color: #fff; border: 0; font-weight: 700; cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.search-form button:hover { background: var(--accent-dark); }

/* ==========================================================================
   5. Breaking ticker
   ========================================================================== */
.ticker { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker .container { display: flex; align-items: stretch; gap: 0; }
.ticker-label {
  background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 0 14px; display: flex; align-items: center; gap: 8px; flex: none;
}
.ticker-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ticker-track { overflow: hidden; flex: 1; position: relative; padding: 10px 0; }
.ticker-inner { display: inline-flex; gap: 40px; white-space: nowrap; padding-left: 20px; animation: ticker 60s linear infinite; }
.ticker-track:hover .ticker-inner { animation-play-state: paused; }
.ticker-inner a { font-weight: 600; }
.ticker-inner a::before { content: "•"; color: var(--accent); margin-right: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   6. Shared components
   ========================================================================== */
.site-main { padding: 26px 0 48px; }
.cat-label {
  display: inline-block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px;
}
.cat-label:hover { color: var(--accent-dark); }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta .sep::before { content: "·"; margin-right: 12px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); margin: 0 0 18px; padding-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 22px; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; position: relative; }
.section-head h2::before { content: ""; display: inline-block; width: 10px; height: 22px; background: var(--accent); margin-right: 10px; vertical-align: -3px; }
.section-head .more { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

.thumb { position: relative; display: block; overflow: hidden; background: var(--bg-alt); border-radius: var(--radius-img); aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
a:hover > .thumb img, .thumb:hover img { transform: scale(1.04); }
.ph { border-radius: var(--radius-img); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 900 34px var(--font-head); color: rgba(255, 255, 255, .55); background: linear-gradient(135deg, #1b2a41, #324a5f); }
.badge-play {
  position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .72); color: #fff; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* Cards */
.card-title { margin: 0 0 6px; font-size: 19px; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s, color .15s; }
.card-title a:hover { background-size: 100% 1px; color: var(--ink); }
.card--standard .thumb { margin-bottom: 12px; }
.card--standard .card-excerpt { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 8px; }

.card--overlay { position: relative; border-radius: var(--radius-img); overflow: hidden; background: #0b1119; color: #fff; display: block; }
.card--overlay .thumb { aspect-ratio: auto; height: 100%; min-height: 100%; border-radius: 0; }
.card--overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 10, 16, .92) 0%, rgba(6, 10, 16, .5) 42%, rgba(6, 10, 16, 0) 72%); pointer-events: none; }
.card--overlay .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; z-index: 2; }
.card--overlay .card-title { color: #fff; font-size: 22px; }
.card--overlay .card-title a:hover { color: #fff; }
.card--overlay .cat-label { background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 2px; }
.card--overlay .meta { color: #c3cad6; }
.card--overlay.is-lead .card-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; }
.card--overlay.is-lead .card-excerpt { color: #d8deea; margin: 0 0 10px; max-width: 62ch; }

.card--compact { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card--compact:first-child { padding-top: 0; }
.card--compact:last-child { border-bottom: 0; padding-bottom: 0; }
.card--compact .thumb { aspect-ratio: 4 / 3; }
.card--compact .card-title { font-size: 16px; margin-bottom: 4px; }
.card--compact .cat-label { font-size: 11px; margin-bottom: 4px; }

.card--row { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.card--row:first-child { padding-top: 0; }
.card--row .card-title { font-size: 22px; }
.card--row .card-excerpt { color: var(--ink-2); margin: 0 0 8px; font-size: 15px; }

.card--text { padding: 12px 0; border-bottom: 1px solid var(--line); }
.card--text .card-title { font-size: 16px; margin: 0; }

.card--opinion { text-align: left; border-top: 3px solid var(--accent); padding-top: 14px; }
.card--opinion .quote-mark { display: block; font: 900 54px/.7 var(--font-head); color: var(--accent); height: 26px; }
.card--opinion .card-title { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.card--opinion .by { display: block; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 6px; }

/* ==========================================================================
   7. Home
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
.hero .card--overlay { min-height: 480px; }
.hero-side { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; }
.hero-side .section-head { margin-bottom: 14px; }
.top-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.layout--left { grid-template-columns: 320px minmax(0, 1fr); }
.layout--left > .sidebar { order: -1; }
.layout--none { grid-template-columns: minmax(0, 1fr); }
.layout--none > .article, .layout--none > .page-article { width: 100%; max-width: 880px; margin-inline: auto; }
.layout--none .prose { margin-inline: auto; }
.layout--none.is-archive > .main-col { max-width: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 8px; }
.home-section { margin-bottom: 38px; }
.cat-block { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.cat-block .card--overlay { min-height: 340px; }

.band { background: var(--bg-alt); padding: 38px 0; margin-top: 10px; }
.band--dark { background: var(--header-bg); color: #fff; }
.band--dark .section-head { border-color: rgba(255, 255, 255, .25); }
.band--dark .section-head h2 { color: #fff; }
.band--dark .card-title a:hover { color: #fff; }
.band--dark .meta { color: #a9b3c4; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* ==========================================================================
   8. Sidebar + widgets
   ========================================================================== */
.sidebar { min-width: 0; }
.sidebar .widget, .widget { margin-bottom: 32px; }
.widget-title { font-family: var(--font-body); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--accent); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget ul li:last-child { border-bottom: 0; }
.sticky-sidebar { position: sticky; top: 74px; }

.most-read { counter-reset: rank; list-style: none; margin: 0; padding: 0; }
.most-read li { counter-increment: rank; display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.most-read li:last-child { border-bottom: 0; }
.most-read li::before { content: counter(rank); font: 900 32px/1 var(--font-head); color: var(--accent); opacity: .85; }
.most-read a { font-weight: 700; font-size: 16px; line-height: 1.3; display: block; }
.most-read .meta { margin-top: 4px; }

.newsletter-box { background: var(--header-bg); color: #fff; padding: 24px; border-radius: var(--radius); }
.newsletter-box h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.newsletter-box p { color: #b9c3d3; font-size: 14px; }
.newsletter-box input[type="email"] { width: 100%; padding: 12px 14px; border: 0; border-radius: var(--radius); margin-bottom: 10px; color: #111; }
.newsletter-box button { width: 100%; padding: 12px; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.newsletter-box button:hover { background: var(--accent-dark); }

.social-follow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.social-follow a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.social-follow a:hover { border-color: var(--accent); }

.ad-slot { background: var(--bg-alt); border: 1px dashed var(--line); color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; min-height: 250px; margin-bottom: 32px; }

/* ==========================================================================
   9. Single article
   ========================================================================== */
#reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: transparent; }
#reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .6; }
.article-title { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 14px; }
.article-deck { font-family: var(--font-body); font-weight: 400; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); margin: 0 0 20px; }
.article-meta { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.byline { font-weight: 700; font-size: 15px; display: block; }
.article-meta .meta { margin-top: 2px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.share-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }

.article-figure { margin: 0 0 26px; }
.article-figure img { width: 100%; border-radius: var(--radius-img); }
.article-figure figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }

.prose { font-family: var(--font-body); font-size: 18px; line-height: 1.75; max-width: 720px; }
.prose > p:first-of-type::first-letter { float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; font-weight: 800; color: var(--accent); }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 23px; margin-top: 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-dark); }
.prose img, .prose figure img, .wp-block-image img, .wp-block-gallery img, .widget img:not(.custom-logo) { border-radius: var(--radius-img); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 1.18em; font-weight: 500; line-height: 1.55; color: var(--ink-2); }
.prose blockquote p { margin-bottom: .6em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 13px; font-family: var(--font-body); color: var(--muted); padding-top: 6px; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font: 15px var(--font-body); margin: 1.4em 0; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-alt); }
.alignwide { max-width: 1000px; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; font-family: var(--font-body); color: var(--muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 10px; }
.tag-list a { background: var(--bg-alt); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag-list a:hover { background: var(--accent); color: #fff; }

.author-box { padding: 20px 22px; background: var(--bg-alt); border-radius: var(--radius); border-left: 4px solid var(--accent); margin: 30px 0; }
.author-box h3 { margin: 0 0 4px; font-size: 19px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.post-nav a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 800; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.post-nav strong { font-size: 16px; line-height: 1.3; display: block; }

.related { margin-top: 40px; }

/* Comments */
.comments-area { margin-top: 40px; padding-top: 10px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--line); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-weight: 700; }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.comment-form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-bottom: 14px;
}
.comment-form .submit, .btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; padding: 11px 22px; border-radius: var(--radius); font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; font-size: 13px;
}
.comment-form .submit:hover, .btn:hover { background: var(--accent-dark); color: #fff; }

/* ==========================================================================
   10. Archive / search / pages
   ========================================================================== */
.archive-header { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.archive-header .kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.archive-title { font-size: clamp(32px, 4vw, 46px); margin: 6px 0 8px; }
.archive-desc { color: var(--ink-2); max-width: 70ch; margin: 0; }
.archive-lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
.archive-lead .card--overlay { min-height: 400px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 36px 0 0; }
.pagination .nav-links { margin: 0; }
.page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: 14px; }
.page-numbers.current, a.page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-article { max-width: 820px; margin: 0 auto; }
.page-article .prose { max-width: none; }
.page-article .prose > p:first-of-type::first-letter { all: unset; }
.error-404 { text-align: center; padding: 70px 0; }
.error-404 .code { font: 900 clamp(90px, 18vw, 180px)/1 var(--font-head); color: var(--accent); margin: 0; }
.no-results { padding: 30px 0; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer { background: var(--header-bg); color: #b9c3d3; margin-top: 0; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 52px 0 36px; }
.site-footer .widget-title { color: #fff; border-color: rgba(255, 255, 255, .22); }
.site-footer a { color: #b9c3d3; }
.site-footer a:hover { color: #fff; }
.site-footer .widget ul li { border-color: rgba(255, 255, 255, .1); }
.footer-brand .site-title a { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 38ch; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13px; }
.footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; font-size: 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
  .layout--left { grid-template-columns: 290px minmax(0, 1fr); }
  .layout--none { grid-template-columns: minmax(0, 1fr); }
  .top-row, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero, .layout, .layout--left, .cat-block, .archive-lead { grid-template-columns: minmax(0, 1fr); }
  .layout--left > .sidebar { order: 0; }
  .hero-side { border-left: 0; padding-left: 0; }
  .hero .card--overlay { min-height: 380px; }
  .header-ad { display: none; }
  .masthead .container { justify-content: center; text-align: center; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 12px 6px; font-weight: 800; text-transform: uppercase; font-size: 13px; cursor: pointer; letter-spacing: .05em; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 16px 28px rgba(0, 0, 0, .14); max-height: 75vh; overflow: auto; }
  .primary-nav.open { display: block; }
  .nav-menu { flex-direction: column; }
  .nav-menu > li > a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .nav-menu > li > a::after { display: none; }
  .nav-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 14px; }
  .site-nav .container { position: relative; }
  .topbar-menu, .topbar-social { display: none; }
  .sticky-sidebar { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar-date { display: none; }
  .topbar .container { justify-content: flex-end; }
  .top-row, .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card--row { grid-template-columns: 112px 1fr; gap: 14px; }
  .card--row .card-excerpt { display: none; }
  .card--row .card-title { font-size: 17px; }
  .hero .card--overlay { min-height: 320px; }
  .card--overlay .card-body { padding: 16px; }
  .footer-widgets { grid-template-columns: 1fr; padding-top: 36px; }
  .post-nav { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-nav, .ticker, .sidebar, .share, .related, .comments-area, .site-footer, .to-top, #reading-progress, .post-nav { display: none !important; }
  .layout { display: block; }
  .prose { max-width: none; font-size: 12pt; }
}
