/*
Theme Name: Dama Press
Theme URI: https://www.ladamadeelche.com/
Author: La Dama de Elche
Author URI: https://www.ladamadeelche.com/
Description: Tema a medida para La Dama de Elche. Periódico digital rápido, limpio y optimizado para SEO y lectura. Diseño editorial moderno, responsive, sin dependencias pesadas.
Version: 1.6.8
Requires at least: 6.0
Tested up to: 7.1
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: damapress
Tags: news, blog, magazine, custom-logo, featured-images, one-column, two-columns, right-sidebar, translation-ready
*/

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1c1e21;
  background: #f5f3ef;
}
img { max-width: 100%; height: auto; }
a { color: #b3001b; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #b3001b; outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.22;
  margin: 0 0 .5em;
  color: #141414;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #b3001b; color: #fff;
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============ TOP BAR ============ */
.topbar {
  background: #141414;
  color: #cfcfcf;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 16px; flex-wrap: wrap;
}
.topbar-date::first-letter { text-transform: uppercase; }
.topbar-menu ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.topbar-menu a { color: #cfcfcf; }
.topbar-menu a:hover { color: #fff; }

/* ============ MASTHEAD ============ */
.masthead {
  background: #fff;
  padding: 24px 0 18px;
  border-bottom: 4px solid #141414;
}
.masthead .container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
}
.site-logo img { max-height: 124px; width: auto; display: block; margin: 0 auto; }
.site-title {
  font-size: 34px; font-weight: 700; letter-spacing: -.5px;
}
.site-title a { color: #141414; }
.site-title a:hover { text-decoration: none; }
.site-tagline {
  color: #6b6b6b; font-size: 14.5px; margin: 0;
  font-family: "Playfair Display", Georgia, serif; font-style: italic;
  display: flex; align-items: center; gap: 16px;
}
.site-tagline::before, .site-tagline::after {
  content: ""; display: block; width: 64px; height: 1px; background: #c9c5bf;
}
.masthead-ad { max-width: 728px; margin-top: 10px; }
.masthead-ad:empty { display: none; }
.masthead-ad img { display: block; }

/* ============ STICKY HEADER BAR (logo + menu, always visible) ============ */
.header-stick {
  position: sticky; top: 0; z-index: 120;
  background: #fff;
  border-bottom: 1px solid #e6e3de;
  transition: box-shadow .25s ease;
}
body.scrolled .header-stick { box-shadow: 0 6px 18px rgba(0,0,0,.10); }
body.admin-bar .header-stick { top: 32px; }
.header-stick-inner { display: flex; align-items: center; gap: 4px; }

/* Compact logo: hidden at page top, slides in on the left when scrolling. */
.hs-logo {
  display: flex; align-items: center; flex: none; overflow: hidden;
  max-width: 0; opacity: 0; margin-right: 0;
  transition: max-width .35s ease, opacity .25s ease, margin-right .35s ease;
}
.hs-logo a, .hs-logo .custom-logo-link { display: flex; align-items: center; }
.hs-logo img, .hs-logo .custom-logo {
  height: 38px; width: auto; max-height: 38px; display: block; margin: 6px 0;
}
body.scrolled .hs-logo { max-width: 240px; opacity: 1; margin-right: 14px; }

/* ============ MAIN NAV (light, newspaper style) ============ */
.mainnav { flex: 1 1 auto; min-width: 0; }
.mainnav ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
}
.mainnav li { position: relative; }
.mainnav a {
  display: block; color: #1c1c1c; padding: 16px 15px;
  font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover, .mainnav .current-menu-item > a, .mainnav .current-menu-ancestor > a {
  color: #b3001b; background: none; border-bottom-color: #b3001b; text-decoration: none;
}
.mainnav ul ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid #e6e3de; box-shadow: 0 10px 24px rgba(0,0,0,.14);
  z-index: 5;
}
.mainnav li:hover > ul, .mainnav li:focus-within > ul { display: block; }
.mainnav ul ul a { padding: 11px 16px; text-transform: none; font-weight: 500; border-bottom: 0; }
.mainnav ul ul a:hover { background: #faf9f7; color: #b3001b; }
.nav-toggle {
  display: none; background: none; border: 0; color: #1c1c1c;
  font-size: 15px; font-weight: 700; padding: 14px 0; cursor: pointer;
  text-transform: uppercase; letter-spacing: .5px;
}
.nav-search-btn {
  background: none; border: 0; color: #1c1c1c; cursor: pointer; padding: 12px 8px;
  flex: none; margin-left: auto;
}
.nav-search-btn:hover { color: #b3001b; }
.nav-search-btn svg { width: 19px; height: 19px; fill: currentColor; display: block; }

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
  display: none; position: fixed; inset: 0; background: rgba(10,10,10,.92);
  z-index: 200; padding: 12vh 20px 20px;
}
.search-overlay.open { display: block; }
.search-overlay form { max-width: 640px; margin: 0 auto; display: flex; }
.search-overlay input[type="search"] {
  flex: 1; font-size: 22px; padding: 14px 18px; border: 0; border-radius: 4px 0 0 4px;
}
.search-overlay button {
  background: #b3001b; color: #fff; border: 0; padding: 0 26px;
  font-size: 16px; border-radius: 0 4px 4px 0; cursor: pointer;
}
.search-close {
  position: absolute; top: 22px; right: 26px; background: none; border: 0;
  color: #fff; font-size: 34px; cursor: pointer; line-height: 1;
}

/* ============ READING PROGRESS ============ */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: #b3001b; z-index: 300; transition: width .08s linear;
}

/* ============ TICKER (breaking-news band) ============ */
.ticker-band {
  background: #faf9f7; color: #333;
  font-size: 13.5px; margin-bottom: 30px;
  border-bottom: 1px solid #e6e3de;
}
.ticker-inner { display: flex; align-items: center; gap: 16px; min-height: 44px; overflow: hidden; }
.ticker-label {
  background: #b3001b; color: #fff; font-weight: 700; font-size: 11.5px;
  padding: 4px 12px; text-transform: uppercase; letter-spacing: .8px;
  white-space: nowrap; border-radius: 2px; flex: none;
}
.ticker-items { display: flex; gap: 34px; white-space: nowrap; overflow: hidden; }
.ticker-items a { color: #333; font-weight: 500; }
.ticker-items a:hover { color: #b3001b; text-decoration: none; }
.ticker-items a::before { content: "•"; color: #b3001b; margin-right: 8px; }

/* ============ AUTHOR AVATARS (small, everywhere the author appears) ============ */
.byline-avatar {
  border-radius: 50%; object-fit: contain; background: #fff;
  border: 1px solid #e3ded6; vertical-align: middle; flex: none;
}
.card-meta .byline-avatar { width: 24px; height: 24px; margin-right: 7px; }
.card-meta > span:first-child { display: inline-flex; align-items: center; }
.single-meta .byline-avatar { width: 44px; height: 44px; }

/* ============ LAYOUT ============ */
.site-main { padding: 34px 0 50px; }
.content-sidebar {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px;
}
.content-area { min-width: 0; }

/* ============ HERO (lead + 2x2 mosaic) ============ */
.hero-wrap {
  display: grid; grid-template-columns: 1.75fr 1.25fr; gap: 14px;
  margin-bottom: 34px;
}
.hero-item {
  position: relative; overflow: hidden; border-radius: 6px; background: #222;
  display: block;
}
.hero-lead { min-height: 480px; }
.hero-mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
}
.hero-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.hero-item:hover img { transform: scale(1.045); }
.hero-item .no-thumb { position: absolute; inset: 0; }
.hero-item .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 25%, rgba(0,0,0,.88) 100%);
}
.hero-item .hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px;
}
.hero-lead h2 {
  color: #fff; margin: 8px 0 6px; font-weight: 800;
  font-size: clamp(23px, 2.4vw, 31px); line-height: 1.22;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
}
.hero-lead .hero-date { color: rgba(255,255,255,.75); font-size: 12.5px; }
.hero-small .hero-meta { padding: 12px 14px; }
.hero-small h3 {
  color: #fff; margin: 6px 0 0; font-weight: 700;
  font-size: clamp(13px, 1.15vw, 15.5px); line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============ NUMBERED TOP-STORIES STRIP ============ */
.top-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  margin-bottom: 10px;
}
.ts-item {
  display: flex; gap: 14px; align-items: flex-start;
  border-top: 3px solid #141414; padding-top: 14px; color: #141414;
}
.ts-item:hover { text-decoration: none; }
.ts-item:hover h3 { color: #b3001b; }
.ts-num {
  font-family: "Playfair Display", Georgia, serif; font-weight: 900;
  font-size: 38px; line-height: .95; color: #b3001b; flex: none;
}
.ts-item h3 {
  font-size: 15.5px; margin: 0 0 4px; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Headline list items (category blocks) */
.hl-item {
  display: flex; gap: 14px; padding: 14px 2px; align-items: center;
  border-bottom: 1px solid #e9e6e1; color: #141414;
}
.hl-item:last-child { border-bottom: 0; }
.hl-item:hover { text-decoration: none; }
.hl-item:hover h3 { color: #b3001b; }
.hl-item img {
  width: 96px; height: 68px; object-fit: cover; border-radius: 3px; flex: none;
}
.hl-item .no-thumb {
  width: 96px; height: 68px; min-height: 0; flex: none;
  font-size: 0; border-radius: 3px;
}
.hl-item h3 {
  font-size: 16px; margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hl-item .hl-date { font-size: 12px; color: #8a8a8a; margin-top: 5px; display: block; }

/* ============ CATEGORY TAG ============ */
.cat-tag {
  display: inline-block; background: #b3001b; color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; padding: 3px 10px; border-radius: 2px;
  line-height: 1.5;
}
a.cat-tag:hover { background: #8c0016; color: #fff; text-decoration: none; }

/* ============ SECTION HEADERS ============ */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 4px solid #141414; border-bottom: 1px solid #e6e3de;
  margin: 46px 0 22px; padding: 9px 0 10px;
}
.section-head h2 {
  font-size: 20px; margin: 0; text-transform: uppercase; letter-spacing: 1.2px;
  font-family: inherit; font-weight: 800;
}
.section-head h2 span { color: #b3001b; }
.section-head a { font-size: 13px; font-weight: 600; color: #6b6b6b; text-transform: uppercase; letter-spacing: .5px; }
.section-head a:hover { color: #b3001b; text-decoration: none; }

/* ============ CARDS ============ */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px;
}
.card {
  background: #fff; border: 1px solid #e6e3de; border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
.card:hover { border-color: #c9c5bf; }
.card-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #eceae6; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .cat-tag { position: absolute; top: 10px; left: 10px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body .cat-tag { align-self: flex-start; margin-bottom: 10px; }
.card-title { font-size: 18px; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: #141414; }
.card-title a:hover { color: #b3001b; text-decoration: none; }
.card-excerpt { font-size: 14.5px; color: #555; flex: 1; }
.card-meta {
  font-size: 12.5px; color: #8a8a8a; margin-top: 12px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.card-meta a { color: #8a8a8a; font-weight: 600; }
.card-meta a:hover { color: #b3001b; }

/* List variant (archives) */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-row {
  display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 22px;
  background: #fff; border: 1px solid #e6e3de; border-radius: 4px; overflow: hidden;
}
.post-row .card-thumb { aspect-ratio: auto; height: 100%; min-height: 170px; }
.post-row .card-body { padding: 20px 22px 20px 0; }
.post-row .card-title { font-size: 21px; }

/* Category block: one featured card + headline list */
.cat-block {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px;
  margin-bottom: 8px;
}
.cat-block .card { border: 0; border-radius: 0; background: transparent; }
.cat-block .card .card-thumb { border-radius: 6px; aspect-ratio: 16/9.5; }
.cat-block .card .card-body { padding: 14px 2px 0; }
.cat-block .card .card-title { font-size: 24px; line-height: 1.28; }
.cat-block .card .card-excerpt { font-size: 15.5px; }
.cat-block .headline-col {
  border-top: 1px solid #e6e3de; display: flex; flex-direction: column; justify-content: flex-start;
}
.cat-block .hl-item { padding: 13px 2px; }
.cat-block .hl-item img, .cat-block .hl-item .no-thumb { width: 96px; height: 68px; }
.cat-block .hl-item h3 { font-size: 16px; }

/* No-image placeholder — branded, not a grey box */
.no-thumb {
  width: 100%; height: 100%; display: block;
  background: #7e0013 linear-gradient(135deg, #8f0017 0%, #5c000e 100%)
    url("https://www.ladamadeelche.com/wp-content/uploads/2023/01/damadeelche-blanco-para-fondo-oscuro-e1674053695941.png")
    center / 52% no-repeat;
  color: transparent; font-size: 0; text-indent: -9999px;
  min-height: 100%;
}

/* ============ SINGLE POST ============ */
.single-article { max-width: 780px; margin: 0 auto; background: transparent; }
.single-header { margin-bottom: 24px; }
.single-header .cat-tag { margin-bottom: 14px; }
.single-title { font-size: 40px; font-weight: 700; letter-spacing: -.6px; }
.single-excerpt { font-size: 20px; color: #4a4a4a; line-height: 1.5; font-family: Georgia, serif; }
.single-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 0; margin: 18px 0 24px;
  border-top: 1px solid #e6e3de; border-bottom: 1px solid #e6e3de;
  font-size: 14px; color: #6b6b6b;
}
.single-meta .avatar { border-radius: 50%; }
.single-meta .author-name { font-weight: 700; color: #141414; }
.single-meta .dot::before { content: "·"; margin: 0 4px 0 0; }
.single-featured { margin: 0 0 30px; border-radius: 8px; overflow: hidden; }
.single-featured figcaption {
  font-size: 13px; color: #777; padding: 8px 4px 0; font-style: italic;
}
.entry-content { font-size: 18.5px; line-height: 1.78; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2 { font-size: 27px; margin-top: 1.4em; }
.entry-content h3 { font-size: 23px; margin-top: 1.3em; }
.entry-content blockquote {
  margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 4px solid #b3001b;
  font-family: Georgia, serif; font-size: 21px; font-style: italic; color: #333;
}
.entry-content img { border-radius: 6px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(179,0,27,.35); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: #b3001b; }

/* Source attribution appended by import campaigns */
.entry-content .dama-fuente {
  margin-top: 2.2em; padding-top: 14px; border-top: 1px solid #e5e5e5;
  font-size: 13px; color: #888; letter-spacing: .02em;
}
.entry-content .dama-fuente a { color: #666; text-decoration-color: rgba(0,0,0,.25); }
.entry-content .dama-fuente a:hover { color: #b3001b; text-decoration-color: #b3001b; }

/* Share buttons */
.share-row {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 30px 0; padding: 14px 0;
  border-top: 1px solid #eceae5; border-bottom: 1px solid #eceae5;
}
.share-label {
  display: inline-flex; align-items: center; gap: 7px; margin-right: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #9a958c;
}
.share-label svg { width: 14px; height: 14px; fill: #b3001b; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: #f4f2ee; color: #5b564e; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn:hover {
  color: #fff; text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.18);
}
.share-fb:hover { background: #1877f2; }
.share-x:hover  { background: #141414; }
.share-wa:hover { background: #25d366; }
.share-tg:hover { background: #229ed9; }
.share-li:hover { background: #0a66c2; }
.share-em:hover { background: #b3001b; }
.share-copy:hover, .share-native:hover { background: #33312d; }
.share-copy.copied { background: #2e7d32; color: #fff; }
.share-native { background: #b3001b; color: #fff; }
.share-native:hover { background: #8f0016; }
@media (max-width: 600px) {
  .share-label { width: 100%; margin: 0 0 2px; }
}

/* Tags */
.tag-links { margin: 10px 0 30px; font-size: 13.5px; }
.tag-links a {
  display: inline-block; background: #efedea; color: #444; border-radius: 3px;
  padding: 5px 12px; margin: 0 6px 6px 0;
}
.tag-links a:hover { background: #b3001b; color: #fff; text-decoration: none; }

/* Author box */
.author-box {
  display: flex; gap: 18px; background: #fff; border-radius: 8px;
  padding: 24px; margin: 34px 0; box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.author-box .avatar { border-radius: 50%; flex-shrink: 0; }
.author-box h4 { margin: 0 0 4px; font-size: 17px; font-family: inherit; }
.author-box .author-role { font-size: 12.5px; color: #b3001b; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.author-box p { margin: 8px 0 0; font-size: 14.5px; color: #555; }

/* Prev / next */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0;
}
.post-nav a {
  background: #fff; border-radius: 6px; padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07); color: #141414;
  display: block; font-weight: 600; font-size: 15px;
}
.post-nav a span {
  display: block; font-size: 11.5px; color: #b3001b; text-transform: uppercase;
  letter-spacing: .7px; margin-bottom: 5px; font-weight: 700;
}
.post-nav a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); text-decoration: none; }
.post-nav .nav-next { text-align: right; }

/* Related posts */
.related-posts { margin-top: 44px; }

/* ============ ARCHIVE HEADERS ============ */
.archive-header { margin-bottom: 30px; }
.archive-header h1 { font-size: 34px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.archive-header .archive-description { color: #666; font-size: 15.5px; max-width: 720px; }
.author-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.author-header .avatar { border-radius: 50%; }
.author-header h1 { font-size: 30px; margin: 0; text-transform: none; }
.author-header .author-stats { color: #8a8a8a; font-size: 13.5px; }

/* ============ PAGINATION ============ */
.pagination { margin: 42px 0 10px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block; min-width: 40px; text-align: center;
  padding: 9px 12px; background: #fff; border-radius: 4px; color: #333;
  font-weight: 600; font-size: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.pagination .page-numbers.current { background: #141414; color: #fff; }
.pagination a.page-numbers:hover { background: #b3001b; color: #fff; text-decoration: none; }

/* ============ SIDEBAR ============ */
@media (min-width: 1025px) {
  .sidebar { position: sticky; top: 64px; align-self: start; }
}
.sidebar .widget {
  background: #fff; border: 1px solid #e6e3de; border-radius: 6px; padding: 22px;
  margin-bottom: 26px;
}
.sidebar .widget-title {
  font-size: 15px; text-transform: uppercase; letter-spacing: .8px;
  font-family: inherit; font-weight: 800;
  border-bottom: 2px solid #141414; padding-bottom: 8px; margin-bottom: 16px;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget ul li { padding: 7px 0; border-bottom: 1px solid #f0eeea; font-size: 14.5px; }
.sidebar .widget ul li:last-child { border-bottom: 0; }
.sidebar .widget ul li a { color: #333; }
.sidebar .widget ul li a:hover { color: #b3001b; }
.sidebar .widget ul li .post-count { float: right; color: #999; font-size: 12.5px; }
.sidebar .social-row { display: flex; gap: 10px; }
.sidebar .social-row a {
  width: 40px; height: 40px; border-radius: 50%; background: #141414;
  display: flex; align-items: center; justify-content: center;
}
.sidebar .social-row a:hover { background: #b3001b; }
.sidebar .social-row svg { width: 18px; height: 18px; fill: #fff; }
.sidebar .opinion-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0eeea; align-items: center; }
.sidebar .opinion-item:last-child { border-bottom: 0; }
.sidebar .opinion-item .avatar { border-radius: 50%; flex: none; }
.sidebar .opinion-item a { color: #141414; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.sidebar .opinion-item a:hover { color: #b3001b; text-decoration: none; }

/* ============ FOOTER ============ */
.site-footer {
  background: #141414; color: #b8b8b8; margin-top: 50px;
}
.footer-widgets {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
  padding: 52px 0 36px;
}
.footer-widgets h4 {
  color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  font-family: inherit; font-weight: 800; margin-bottom: 16px;
}
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets ul li { padding: 5px 0; font-size: 14px; }
.footer-widgets a { color: #b8b8b8; }
.footer-widgets a:hover { color: #fff; }
.footer-logo img { max-height: 60px; width: auto; margin-bottom: 14px; }
.footer-about p { font-size: 14px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid #2c2c2c; padding: 18px 0;
  font-size: 13px; color: #8a8a8a;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom a { color: #8a8a8a; }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: #2c2c2c;
}
.footer-social a:hover { background: #b3001b; text-decoration: none; }
.footer-social svg { width: 15px; height: 15px; fill: #fff; }

/* ============ COMMENTS ============ */
.comments-area { margin-top: 46px; background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.comments-title { font-size: 21px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px solid #f0eeea; padding: 16px 0; }
.comment-author { font-weight: 700; }
.comment-meta { font-size: 12.5px; color: #999; }
.comment-respond input:not([type=submit]), .comment-respond textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px;
}
.comment-respond .submit {
  background: #b3001b; color: #fff; border: 0; padding: 11px 26px;
  border-radius: 4px; font-weight: 700; cursor: pointer;
}

/* ============ SEARCH RESULTS / 404 ============ */
.search-highlight { background: #ffe58a; padding: 0 2px; }
.error-404 { text-align: center; padding: 60px 0; }
.error-404 h1 { font-size: 64px; color: #b3001b; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
  .sidebar .widget { margin-bottom: 0; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .hero-wrap { grid-template-columns: 1fr 1fr; }
  .hero-lead { min-height: 400px; }
  .top-strip { grid-template-columns: 1fr 1fr; }
  .cat-block { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-lead { min-height: 340px; }
  .hero-small { min-height: 170px; }
  .cat-block { grid-template-columns: 1fr; }
  .cat-block .headline-col { border-top: 0; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .single-title { font-size: 29px; }
  .masthead { padding: 18px 0 14px; }
  .masthead-ad { display: none; }
  .site-logo img { max-height: 64px; }
  .site-tagline::before, .site-tagline::after { width: 30px; }
  .post-row { grid-template-columns: 1fr; }
  .post-row .card-thumb { min-height: 190px; }
  .post-row .card-body { padding: 0 18px 18px; }
  .topbar-menu { display: none; }
  body.admin-bar .header-stick { top: 46px; }
  .header-stick-inner { flex-wrap: nowrap; gap: 6px; }
  .mainnav { flex: none; }
  .nav-toggle { display: block; }
  .mainnav .menu-wrap {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e6e3de;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
    max-height: 72vh; overflow: auto;
  }
  .mainnav .menu-wrap.open { display: block; }
  .mainnav ul { flex-direction: column; width: 100%; }
  .mainnav a { border-bottom: 0; border-left: 3px solid transparent; padding: 13px 20px; }
  .mainnav a:hover, .mainnav .current-menu-item > a, .mainnav .current-menu-ancestor > a {
    border-left-color: #b3001b; background: #faf9f7;
  }
  .mainnav ul ul { position: static; display: block; box-shadow: none; border: 0; background: #faf9f7; }
  .mainnav ul ul a { padding-left: 36px; }
  .hs-logo img, .hs-logo .custom-logo { height: 30px; max-height: 30px; }
  body.scrolled .hs-logo { max-width: 150px; margin-right: 6px; }
  .post-nav { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .ticker-items { animation: none; }
}
@media (max-width: 480px) {
  .hero-lead { min-height: 250px; }
  .hero-lead .hero-meta { padding: 14px; }
  .hero-lead h2 { font-size: 20px; }
  .hero-mosaic { gap: 10px; }
  .hero-small { min-height: 150px; }
  .top-strip { grid-template-columns: 1fr; gap: 14px; }
  .ts-num { font-size: 30px; }
  .hl-item h3 { font-size: 14.5px; }
  .footer-widgets { grid-template-columns: 1fr; gap: 26px; }
  .single-title { font-size: 25px; }
}

/* ============ PRINT ============ */
@media print {
  .topbar, .header-stick, .site-footer, .share-row, .sidebar, .comments-area, .post-nav, .related-posts, .reading-progress { display: none !important; }
  body { background: #fff; }
}
