/* ═══════════════════════════════════════════════════════
   DISTRITO NEWS — Portal CSS v3 Premium
   1220px · DM Sans + Archivo · Mobile-first
═══════════════════════════════════════════════════════ */
:root {
  --bg:        #f3f4f6;
  --surface:   #ffffff;
  --ink:       #111111;
  --muted:     #6b7280;
  --line:      #e5e7eb;
  --blue-dark: #0d0ea0;
  --blue:      #1c4aa4;
  --blue-soft: #e8edf8;
  --red:       #c61301;
  --footer:    #0a0a12;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow:    0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(28,74,164,.1);
  --container: min(1400px, calc(100vw - 16px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: var(--container); margin: 0 auto; }

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-main {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.header-main__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; padding: 11px 0;
}

.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo img {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  object-fit: contain;
}

.logo-text {
  color: #fff;
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 20px; font-weight: 800;
  letter-spacing: 1.4px; line-height: 1;
}
.logo-text small {
  display: block; margin-top: 3px;
  font-size: 8px; font-weight: 600;
  letter-spacing: 4px; opacity: .55;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.header-link {
  display: none;
  color: rgba(255,255,255,.75);
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: background .15s;
}
.header-link:hover { background: rgba(255,255,255,.12); color: #fff; }

.search-form {
  display: flex;
  background: rgba(255,255,255,.13);
  border-radius: 8px; overflow: hidden;
}
.search-input {
  width: 130px; padding: 8px 14px;
  border: none; background: transparent;
  color: #fff; font-size: 13px; outline: none;
  transition: width .2s, background .2s;
}
.search-input::placeholder { color: rgba(255,255,255,.38); }
.search-input:focus {
  background: rgba(255,255,255,.08);
  width: 200px;
}
.search-btn {
  background: none; border: none;
  padding: 0 12px;
  color: rgba(255,255,255,.6); font-size: 15px;
}

/* ── Live ticker ── */
.live-strip { background: var(--red); color: #fff; }
.live-strip__inner {
  display: flex; align-items: center;
  justify-content: center;
  gap: 10px; padding: 7px 0;
}
.live-pill {
  flex-shrink: 0;
  border-radius: 3px;
  background: rgba(255,255,255,.2);
  padding: 3px 10px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  animation: livePulse 2s infinite;
}
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.45} }
.live-strip__text {
  min-width: 0; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
.live-strip__text a, .live-strip__text span {
  font-size: 13px; font-weight: 600;
}

/* ── Category nav ── */
.cat-strip {
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip__inner {
  display: inline-flex;
  min-width: 100%; gap: 2px;
  justify-content: center;
}
.header-nav__link {
  display: inline-block;
  padding: 12px 14px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-size: 13px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  transition: color .15s, border-color .15s;
  margin-bottom: -2px;
}
.header-nav__link.is-active { border-color: var(--blue); color: var(--blue); }
.header-nav__link:hover    { color: var(--blue); border-color: var(--blue); }

.page-main {
  padding-bottom: 32px;
  max-width: min(1400px, calc(100vw - 16px));
  margin: 0 auto;
}

/* ════════════════════════════════════
   MOSAIC HERO — full bleed
════════════════════════════════════ */
.mosaic-wrap {
  width: 100%;
  background: #0a0a18;
  margin: 10px 0 0;
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr;
}

/* Main hero card */
.mosaic-hero {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: #1a1a3a;
}
/* Cover fills hero absolutely */
.mosaic-hero > .cover-picture,
.mosaic-hero > .cover-fallback--hero {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.mosaic-hero > .cover-picture img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.mosaic-hero:hover > .cover-picture img { transform: scale(1.03); }

/* Side 2×2 grid */
.mosaic-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.mosaic-card {
  position: relative;
  display: block;
  min-height: 120px;
  overflow: hidden;
  background: #1a1a3a;
}
.mosaic-card > .cover-picture,
.mosaic-card > .cover-fallback--mosaic {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.mosaic-card > .cover-picture img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.mosaic-card:hover > .cover-picture img { transform: scale(1.05); }

/* Fallbacks fill too */
.mosaic-hero > .cover-fallback--hero,
.mosaic-card > .cover-fallback--mosaic {
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(135deg, #1c4aa4 0%, #0d0ea0 100%);
}

/* Overlays */
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  padding: 60px 22px 22px;
  z-index: 1;
}
.hero-overlay h1 {
  color: #fff;
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 22px; font-weight: 800; line-height: 1.2;
  margin: 5px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.hero-excerpt { display: none; }
.hero-meta    { color: rgba(255,255,255,.45); font-size: 11px; display: block; margin-top: 5px; }

.mosaic-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  padding: 50px 14px 14px;
  z-index: 1;
}
.cl-white {
  color: rgba(255,255,255,.65);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.mosaic-card h3 {
  color: #fff;
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700; line-height: 1.25;
  margin: 4px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ════════════════════════════════════
   BADGES & LABELS
════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 3px;
  background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.badge--danger { background: var(--red); }

.cat-label {
  display: inline-block; margin-bottom: 2px;
  color: var(--blue);
  font-size: 11px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
}
.cat-label--hero { color: rgba(255,255,255,.8) !important; }

.meta {
  display: block; margin-top: 3px;
  color: var(--muted); font-size: 12px;
}

/* ════════════════════════════════════
   SECTION HEADING
════════════════════════════════════ */
.section-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
}
.section-head h1,
.section-head h2 {
  flex: 1; margin: 0;
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase;
}
.bar {
  width: 4px; height: 22px;
  border-radius: 2px;
  background: var(--blue); flex-shrink: 0;
}
.ver-todas {
  color: var(--blue); font-size: 12px; font-weight: 600;
  white-space: nowrap;
}

/* ════════════════════════════════════
   HOME LAYOUT
════════════════════════════════════ */
.home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px; margin: 20px 0;
}
.home-main  { min-width: 0; }
.home-sidebar {
  display: flex; flex-direction: column;
  gap: 16px; min-width: 0;
}

/* ════════════════════════════════════
   CARD: COMPACT (horizontal)
════════════════════════════════════ */
.card-compact {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.card-compact:hover h3 { color: var(--blue); }
.card-text { flex: 1; min-width: 0; }
.card-text h3 {
  font-size: 16px; font-weight: 700;
  line-height: 1.3; margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-thumb {
  flex-shrink: 0;
  width: 120px; height: 88px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
}
.card-thumb .cover-fallback {
  width: 120px; height: 88px;
  background: var(--blue-soft);
  font-size: 0; /* hide text */
}
.card-thumb .cover-picture,
.card-thumb .cover-picture img,
.card-thumb .cover-image--thumb,
.card-thumb__media,
.cover-image--thumb {
  width: 120px; height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

/* ════════════════════════════════════
   CARD: MAIN (vertical + image top)
════════════════════════════════════ */
.card-main {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
  margin-bottom: 14px;
}
.card-main:hover { box-shadow: var(--shadow-md); }
.card-main:hover h3 { color: var(--blue); }

.card-main .cover-picture {
  display: block;
  width: 100%; height: 220px;
  overflow: hidden;
}
.card-main .cover-picture img,
.card-main .cover-image--main {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform .3s;
}
.card-main:hover .cover-picture img { transform: scale(1.03); }
.card-main .cover-fallback--main {
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft);
  font-size: 13px; font-weight: 700; color: var(--blue);
}

/* No cover variant — thin accent bar only */
.card-main--no-cover {
  display: flex;
  flex-direction: column;
}
.card-main--no-cover .cover-picture,
.card-main--no-cover .cover-fallback--main {
  display: none;
}
.card-main--no-cover::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-body { padding: 16px 18px 18px; }
.card-body h3 {
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 19px; font-weight: 700;
  line-height: 1.26; margin: 4px 0 8px;
}
.card-body p {
  font-size: 14px; color: var(--muted);
  line-height: 1.5; margin-top: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ════════════════════════════════════
   CARD: GRID (small vertical)
════════════════════════════════════ */
.card-grid {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.card-grid:hover { box-shadow: var(--shadow-md); }
.card-grid:hover h4 { color: var(--blue); }

.card-grid .cover-picture {
  display: block; width: 100%; height: 160px;
}
.card-grid .cover-picture img,
.card-grid .cover-image--grid {
  width: 100%; height: 160px; object-fit: cover;
}
.card-grid .cover-fallback--grid {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  font-size: 0; /* hide text */
}
.card-grid h4 {
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700; line-height: 1.3;
  padding: 10px 12px 3px; margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.card-grid .cat-label,
.card-grid .meta { padding: 0 12px; }
.card-grid .meta { padding-bottom: 12px; }

/* ════════════════════════════════════
   GRIDS
════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; gap: 10px; }

.top-stories  { margin-bottom: 24px; }
.page-section { padding: 16px 0; }

/* ════════════════════════════════════
   SIDEBAR WIDGETS
════════════════════════════════════ */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
}
.sidebar-card .section-head { padding-top: 0; }
.sidebar-card h3 {
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700; margin: 4px 0 6px;
}
.sidebar-card h3 a:hover { color: var(--blue); }
.sidebar-card p,
.cat-desc,
.search-count,
.search-result__excerpt {
  font-size: 14px; color: var(--muted);
}
.sidebar-card--live {
  border-left: 4px solid var(--red);
  background: linear-gradient(180deg, #fff, #fff8f7);
}

.quick-links { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-link {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  transition: all .15s;
}
.quick-link:hover { background: var(--blue-soft); color: var(--blue); border-color: transparent; }

/* ════════════════════════════════════
   MAIS LIDAS
════════════════════════════════════ */
.most-read {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.most-read__item {
  display: flex; align-items: flex-start;
  gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid var(--bg);
  transition: background .1s;
}
.most-read__item:last-child { border-bottom: none; }
.most-read__item:hover h4 { color: var(--blue); }
.most-read__index {
  min-width: 30px;
  color: var(--blue);
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 24px; font-weight: 900;
  line-height: 1; opacity: .2;
}
.most-read h4 {
  margin: 0;
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700; line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ════════════════════════════════════
   NEWSLETTER
════════════════════════════════════ */
.newsletter {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius-md);
  padding: 24px; text-align: center;
  color: #fff;
}
.newsletter__icon {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  opacity: .5; display: block; margin-bottom: 6px;
}
.newsletter h3 {
  color: #fff;
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 800;
  margin: 0 0 4px;
}
.newsletter p {
  color: rgba(255,255,255,.55);
  font-size: 13px; margin-bottom: 14px;
}
.newsletter__message {
  background: rgba(255,255,255,.15);
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; margin-bottom: 12px;
}
.newsletter__form {
  display: flex; gap: 6px;
  max-width: 360px; margin: 0 auto;
}
.newsletter__form input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: none; border-radius: 8px;
  font-size: 14px; outline: none;
}
.newsletter__form button {
  flex-shrink: 0;
  background: #fff; color: var(--blue);
  border: none; border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 700;
}

/* ════════════════════════════════════
   CATEGORY BLOCKS (homepage sections)
════════════════════════════════════ */
.cat-sections-grid { margin-bottom: 28px; padding-top: 8px; }
.category-block    { margin-bottom: 24px; }

/* ════════════════════════════════════
   CATEGORY PAGE
════════════════════════════════════ */
.category-page-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.category-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 16px;
}

/* ════════════════════════════════════
   ARTICLE PAGE
════════════════════════════════════ */
.preview-banner {
  padding: 10px; text-align: center;
  background: #fef3c7; color: #92400e;
  font-size: 13px; font-weight: 700;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 5px; padding: 14px 0 0;
  color: var(--muted); font-size: 12px;
}
.breadcrumb a { color: var(--blue); font-weight: 600; }

.article-shell { padding-top: 8px; }
.article-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-img { width: 100%; height: 240px; object-fit: cover; }
.article-body { padding: 22px; }
.article-body h1 {
  font-family: 'Archivo', 'DM Sans', sans-serif;
  font-size: 28px; font-weight: 800;
  line-height: 1.2; margin: 8px 0 10px;
}
.subtitle {
  margin: 0 0 14px;
  color: var(--muted); font-size: 17px; line-height: 1.45;
}
.article-meta {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px;
  margin-bottom: 14px;
  color: var(--muted); font-size: 13px;
}
.read-time { color: var(--blue); font-weight: 600; }

.share-bar {
  display: flex; flex-wrap: wrap;
  gap: 8px; margin-bottom: 20px;
}
.share-btn, .button {
  display: inline-flex; align-items: center;
  justify-content: center;
  padding: 8px 16px; border: none;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  transition: opacity .15s;
}
.share-btn:hover, .button:hover { opacity: .85; }
.share-btn.wa  { background: #25D366; color: #fff; }
.share-btn.tw  { background: #000; color: #fff; }
.share-btn.copy { background: var(--blue-soft); color: var(--blue); }
.button--primary { background: var(--blue); color: #fff; }

.article-content {
  font-size: 18px; line-height: 1.88;
  color: #1a1a2e;
}
.article-content p { margin-bottom: 18px; margin-top: 0; }
.article-content h2, .article-content h3 {
  font-family: 'Archivo', 'DM Sans', sans-serif;
  margin-top: 28px; margin-bottom: 10px;
  color: var(--ink);
}
.article-content ul, .article-content ol { padding-left: 20px; }

.article-tags {
  display: flex; flex-wrap: wrap;
  gap: 6px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tag {
  background: var(--blue-soft); color: var(--blue);
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  transition: all .15s;
}
.tag:hover { background: var(--blue); color: #fff; }

.article-views {
  font-size: 13px; color: var(--muted);
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.related-block { margin-top: 20px; }

.article-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* ════════════════════════════════════
   SEARCH
════════════════════════════════════ */
.card-compact--search { padding: 14px 0; }
.search-result__excerpt {
  font-size: 14px; color: var(--muted);
  margin: 4px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.empty-msg {
  text-align: center; color: var(--muted);
  padding: 40px; font-size: 15px;
}

/* ════════════════════════════════════
   PAGINATION
════════════════════════════════════ */
.pagination {
  display: flex; align-items: center;
  justify-content: center;
  gap: 6px; padding: 20px 0;
}
.pagination__pages { display: flex; gap: 4px; }
.pagination__link {
  display: inline-flex; align-items: center;
  justify-content: center;
  min-width: 38px; padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--blue);
  font-size: 13px; font-weight: 700;
}
.pagination__link.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination__link--nav      { min-width: 88px; font-size: 13px; }
.pagination__link--disabled { color: var(--muted); opacity: .4; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.site-footer {
  background: var(--footer);
  padding: 36px 0 20px;
  margin-top: 28px;
}
.footer-brand {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 22px;
}
.footer-brand img {
  width: 40px; height: 40px;
  border-radius: 6px; object-fit: contain;
}
.footer-brand strong { color: #fff; font-size: 16px; font-weight: 800; }
.footer-brand small  { display: block; font-size: 9px; opacity: .4; letter-spacing: 2px; }

.footer-brand p,
.footer-col p {
  color: rgba(255,255,255,.4);
  font-size: 13px; line-height: 1.6; margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
.footer-col h4 {
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin: 0 0 10px;
}
.footer-col a {
  display: block; padding: 2px 0;
  color: rgba(255,255,255,.4);
  font-size: 13px; transition: color .15s;
}
.footer-col a:hover { color: rgba(255,255,255,.75); }
.footer-bottom {
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,.22); font-size: 11px; margin: 0;
}

/* ════════════════════════════════════
   MISC
════════════════════════════════════ */
.cover-picture { display: block; width: 100%; }
.cover-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft);
  font-size: 13px; font-weight: 700; color: var(--blue);
}
.cover-image { display: block; }

/* ═══════════════════════════════════════
   TABLET  ≥ 768px
═══════════════════════════════════════ */
@media (min-width: 768px) {
  .header-link { display: inline-flex; }
  .search-input { width: 160px; }
  .search-input:focus { width: 230px; }

  /* Mosaic: hero on top full-width, side below in 4 columns */
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-hero { min-height: 440px; }
  .hero-overlay { padding: 80px 30px 24px; }
  .hero-overlay h1 { font-size: 28px; max-width: 680px; -webkit-line-clamp: 3; }
  .mosaic-side {
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
  }
  .mosaic-card { min-height: 170px; }
  .mosaic-card h3 { font-size: 16px; }

  /* Home layout: main + sidebar */
  .home-layout { grid-template-columns: minmax(0,1fr) 270px; align-items: start; }
  .home-sidebar { position: sticky; top: 140px; align-self: start; }

  /* Category sections: 2 columns */
  .cat-sections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .cat-sections-grid .category-block { margin-bottom: 0; }

  .grid-2 { gap: 14px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

  .category-page-grid { grid-template-columns: minmax(0,1.15fr) minmax(300px,0.85fr); align-items: start; }

  /* Article */
  .article-img { height: 360px; }
  .article-body h1 { font-size: 34px; }
  .subtitle { font-size: 19px; }

  /* Article sidebar */
  .article-layout { grid-template-columns: minmax(0,1fr) 280px; align-items: start; }

  .footer-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ═══════════════════════════════════════
   DESKTOP  ≥ 1024px
═══════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Mosaic: hero wider side-by-side with 4 side cards stacked */
  .mosaic {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2px;
  }
  .mosaic-side {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .mosaic-hero { min-height: 520px; }
  .hero-overlay { padding: 100px 36px 28px; }
  .hero-overlay h1 { font-size: 32px; max-width: 580px; -webkit-line-clamp: 3; }
  .mosaic-card { min-height: 258px; }
  .mosaic-card h3 { font-size: 18px; -webkit-line-clamp: 3; }

  /* Home layout */
  .home-layout { grid-template-columns: minmax(0,1fr) 290px; }

  /* Card main: horizontal at desktop */
  .card-main {
    display: flex; flex-direction: row; margin-bottom: 16px;
  }
  .card-main .cover-picture {
    width: 44%; height: auto; flex-shrink: 0;
    min-height: 230px;
  }
  .card-main .cover-picture img,
  .card-main .cover-image--main {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }
  .card-main .cover-fallback--main {
    width: 44%; flex-shrink: 0; height: auto;
    min-height: 230px; border-radius: var(--radius-md) 0 0 var(--radius-md);
  }
  /* No-cover stays vertical */
  .card-main--no-cover {
    flex-direction: column;
  }
  .card-body {
    display: flex; flex-direction: column;
    justify-content: center; padding: 18px 22px;
  }
  .card-body h3 { font-size: 21px; }
  .card-text h3 { font-size: 17px; }
  .most-read h4 { font-size: 15px; }

  /* Article */
  .article-img { height: 440px; }
  .article-body { padding: 30px 36px; }
  .article-body h1 { font-size: 38px; }
  .subtitle { font-size: 20px; }

  .article-layout { grid-template-columns: minmax(0,1fr) 300px; }
}

/* ═══════════════════════════════════════
   WIDE  ≥ 1280px
═══════════════════════════════════════ */
@media (min-width: 1280px) {
  .hero-overlay h1 { font-size: 36px; max-width: 640px; -webkit-line-clamp: 3; }
  .mosaic-card h3  { font-size: 19px; }
  .card-body h3    { font-size: 22px; }
  .card-text h3    { font-size: 18px; }
}
