/* ════════════════════════════════════════════════════════════════════
   RU News — style.css
   Modern news site: dark header, hero grid, sidebar, affiliate-ready
   ════════════════════════════════════════════════════════════════════ */

/* ── Utilities ──────────────────────────────────────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ── Breaking news ticker ───────────────────────────────────────── */
.ticker-bar {
  background: var(--accent); color: #fff;
  padding: .3rem 0; font-size: .82rem; overflow: hidden; white-space: nowrap;
}
.ticker-inner { display: flex; align-items: center; }
.ticker-label {
  flex-shrink: 0; background: rgba(0,0,0,.3); font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; font-size: .72rem;
  padding: .1rem .7rem; margin-right: .75rem; border-radius: 2px;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-text { display: inline-block; animation: tickerScroll 30s linear infinite; padding-right: 3rem; }
@keyframes tickerScroll { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ── Category nav bar (header second row) ───────────────────────── */
.header-cats {
  background: #141824;
  border-top: 1px solid rgba(255,255,255,.06);
}
.header-cats .wrap {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.header-cats .wrap::-webkit-scrollbar { display: none; }
.header-cats a {
  display: inline-block; padding: .5rem .9rem;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.6);
  text-decoration: none; white-space: nowrap;
  letter-spacing: .03em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  cursor: pointer;
}
.header-cats a:hover { color: rgba(255,255,255,.85); border-bottom-color: var(--accent); text-decoration: none; }
.header-cats a.active { color: #fff; border-bottom-color: var(--accent); border-bottom-width: 2px; padding-bottom: 4px; }

/* ── Top banner ad ──────────────────────────────────────────────── */
.ad-banner-top {
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  text-align: center; padding: .5rem 0;
}

/* ── Site body (main + sidebar grid) ───────────────────────────── */
.site-body {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 960px) {
  .site-body { grid-template-columns: 1fr; gap: 1.5rem; }
}
.site-body-full { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 1.25rem; }

/* ── Sidebar ────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.widget-header {
  background: transparent; color: var(--text);
  font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em;
  padding: .6rem .85rem .5rem;
  border-bottom: 2px solid var(--accent);
}
.widget-body { padding: .85rem; }

/* Trending widget */
.trending-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.trending-item { display: flex; gap: .6rem; align-items: flex-start; }
.trending-num {
  font-size: 1.25rem; font-weight: 500;
  color: var(--accent); line-height: 1.1;
  flex-shrink: 0; width: 1.6rem; text-align: right;
}
.trending-link {
  font-size: .855rem; font-weight: 600; line-height: 1.38;
  color: var(--text); text-decoration: none;
}
.trending-link:hover { color: var(--accent); text-decoration: none; }
.trending-meta { font-size: .73rem; color: var(--muted); margin-top: .1rem; }

/* Category widget */
.cat-widget-list { list-style: none; }
.cat-widget-item a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .38rem 0; border-bottom: 1px solid var(--border);
  font-size: .875rem; color: var(--text); text-decoration: none;
  transition: color .15s;
}
.cat-widget-item:last-child a { border-bottom: none; }
.cat-widget-item a:hover { color: var(--accent); text-decoration: none; }
.cat-count {
  font-size: .72rem; color: #666;
  background: #f1f1f1; padding: 2px 10px;
  border-radius: 6px; line-height: 1.4;
}

/* Ad widget */
.ad-slot { text-align: center; }
.ad-slot-label {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: .3rem; display: block;
}

/* ── Partner / Affiliate sidebar widget ─────────────────────────── */
.partner-widget .widget-header { background: #1a2332; }
.partner-card {
  display: block; padding: .75rem; margin-bottom: .6rem;
  border: 1px solid var(--border); border-radius: 7px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.partner-card:last-child { margin-bottom: 0; }
.partner-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(230,57,70,.1); text-decoration: none; }
.partner-badge {
  display: inline-block; font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #fff; background: #64748b; border-radius: 2px;
  padding: .05rem .4rem; margin-bottom: .3rem;
}
.partner-badge--sponsor { background: #0284c7; }
.partner-name { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.partner-desc { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.partner-cta {
  display: inline-block; margin-top: .45rem;
  font-size: .78rem; font-weight: 600; color: var(--accent);
}

/* ── Partner block inside article ───────────────────────────────── */
.article-partner-block {
  margin: 1.75rem 0; padding: 1.1rem 1.25rem;
  border: 1px solid #e2e8f0; border-left: 4px solid #0284c7;
  border-radius: 0 8px 8px 0; background: #f0f9ff;
}
.article-partner-block .partner-badge { margin-bottom: .5rem; }
.article-partner-block p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .5rem 1.2rem;
  background: var(--accent); color: #fff;
  border-radius: 5px; font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: opacity .15s, transform .1s;
  border: none; cursor: pointer;
}
.btn:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: .3rem .8rem; font-size: .82rem; }

/* ── Tags ───────────────────────────────────────────────────────── */
.tag {
  display: inline-block; padding: .18rem .5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 3px; font-size: .77rem; color: var(--muted);
  text-decoration: none; transition: background .15s;
}
.tag:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.tag--active { background: var(--accent); color: #fff !important; border-color: var(--accent); }

/* ── HERO SECTION (homepage) ────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-bottom: 2rem;
}
@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-secondary { display: none; }
}

/* Big featured */
.hero-main {
  grid-row: 1 / 3;
  position: relative; border-radius: 12px; overflow: hidden;
  background: #0b0f1a; cursor: pointer;
  min-height: 380px;
}
.hero-main a.hero-link {
  display: block; height: 100%; text-decoration: none;
}
.hero-main img {
  width: 100%; height: 100%; min-height: 380px;
  object-fit: cover; display: block; opacity: .72;
  transition: opacity .35s, transform .4s;
}
.hero-main:hover img { opacity: .85; transform: scale(1.03); }
.hero-main-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  pointer-events: none;
}
.hero-main-overlay a { pointer-events: all; }
.hero-cat {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; padding: .18rem .55rem; border-radius: 3px;
  text-decoration: none; margin-bottom: .6rem;
}
.hero-main-title {
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  font-weight: 800; line-height: 1.22; color: #fff; margin-bottom: .6rem;
}
.hero-main-title a { color: inherit; text-decoration: none; }
.hero-main-title a:hover { text-decoration: underline; }
.hero-main-meta { font-size: .8rem; color: rgba(255,255,255,.6); }

/* Fallback (no image) */
.hero-main--text {
  background: linear-gradient(145deg, #0b0f1a 0%, #1a2640 100%);
  display: flex; align-items: flex-end;
}
.hero-main--text .hero-main-overlay {
  position: static; background: none; pointer-events: all;
}

/* Secondary cards */
.hero-secondary {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column;
  height: 100%;
  transition: box-shadow .2s, transform .15s;
}
.hero-secondary:hover { box-shadow: 0 4px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.hero-secondary-img {
  display: block; height: 130px; overflow: hidden;
}
.hero-secondary-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.hero-secondary:hover .hero-secondary-img img { transform: scale(1.05); }
.hero-secondary-img-placeholder {
  height: 130px; background: #e8ecf0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23b0bec5' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.hero-secondary-body { padding: .75rem .85rem .85rem; flex: 1; }
.hero-secondary-cat { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); text-decoration: none; margin-bottom: .25rem; display: block; }
.hero-secondary-title { font-size: .92rem; font-weight: 700; line-height: 1.35; color: var(--text); text-decoration: none; }
.hero-secondary-title:hover { color: var(--accent); text-decoration: none; }
.hero-secondary-meta { font-size: .75rem; color: var(--muted); margin-top: .35rem; }

/* ── Section headers ────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: .55rem;
  border-bottom: 2px solid var(--border);
}
.section-head-title {
  font-size: .88rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text);
  display: flex; align-items: center; gap: .45rem;
}
.section-head-title::before {
  content: ''; display: inline-block;
  width: 3px; height: 1em; background: var(--accent); border-radius: 2px;
}
.section-head-link { font-size: .8rem; color: var(--muted); }
.section-head-link:hover { color: var(--accent); }

/* ── Post grid ──────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.card-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .card-img-link img { transform: scale(1.05); }
.card-img-placeholder {
  display: block; aspect-ratio: 16/9;
  background: #e8ecf0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23b0bec5' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.card-body { padding: .85rem .9rem .95rem; display: flex; flex-direction: column; flex: 1; }
.card-category {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .07em; color: var(--accent); margin-bottom: .28rem;
  text-decoration: none; display: inline-block;
}
.card-category:hover { text-decoration: underline; }
.card-title { font-size: .91rem; font-weight: 700; line-height: 1.35; margin-bottom: .35rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-size: .82rem; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .75rem; color: var(--muted); margin-top: auto; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; }

/* In-feed ad */
.infeed-ad { grid-column: 1 / -1; text-align: center; padding: .4rem 0; }

/* ── Post list (search / tag / category) ────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 1.1rem; }
.post-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--border);
}
.post-row:last-child { border-bottom: none; }
.post-row-img { width: 120px; height: 80px; border-radius: 7px; object-fit: cover; flex-shrink: 0; display: block; }
.post-row-body { flex: 1; min-width: 0; }
.post-row-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); text-decoration: none; }
.post-row-cat:hover { text-decoration: underline; }
.post-row-title { font-size: .975rem; font-weight: 700; line-height: 1.35; margin: .15rem 0 .3rem; }
.post-row-title a { color: var(--text); text-decoration: none; }
.post-row-title a:hover { color: var(--accent); }
.post-row-excerpt {
  font-size: .84rem; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .3rem;
}
.post-row-meta { font-size: .76rem; color: var(--muted); }

/* ── Article page ───────────────────────────────────────────────── */
.article-wrap { max-width: 720px; }
.article-header { margin-bottom: 1.25rem; }
.article-category {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--accent); text-decoration: none;
  display: inline-block; margin-bottom: .4rem;
}
.article-category:hover { text-decoration: underline; }
.article-title { font-size: clamp(1.45rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.2; margin: .3rem 0 .85rem; }
.article-excerpt { font-size: 1.08rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .45rem .85rem;
  font-size: .84rem; color: var(--muted);
  padding: .8rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.meta-author { font-weight: 600; color: var(--text); }
.article-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.article-cover { margin: 1rem 0 1.5rem; border-radius: 10px; overflow: hidden; }
.article-cover img { width: 100%; border-radius: 10px; display: block; }

/* Article body */
.article-body { font-size: 1.05rem; line-height: 1.78; color: var(--text); }
.article-body h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 .65rem; line-height: 1.25; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.article-body h4 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.article-body p { margin-bottom: 1.3rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: .75rem 1.25rem; margin: 1.5rem 0;
  color: var(--muted); font-style: italic; background: var(--surface-2);
  border-radius: 0 6px 6px 0; font-size: 1.05rem;
}
.article-body pre {
  background: #0b0f1a; border: 1px solid #30363d; border-radius: 8px;
  padding: 1rem 1.25rem; overflow-x: auto; margin-bottom: 1.25rem;
  font-size: .9rem; line-height: 1.55; color: #e6edf3;
}
.article-body code {
  background: var(--surface-2); padding: .15em .4em; border-radius: 3px;
  font-size: .9em; color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.article-body pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.article-body img { border-radius: 8px; margin: 1.25rem 0; width: 100%; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }
.article-body th { background: var(--surface-2); font-weight: 700; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Article ad */
.ad-article { margin: 1.75rem 0; text-align: center; }

/* Article footer */
.article-footer { margin-top: 1.75rem; padding-top: 1.25rem; padding-bottom: 1.25rem; border-top: 1px solid var(--border); }
.article-tags-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }

/* Related */
.related-posts { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-top: .85rem; }
.related-card {
  display: flex; flex-direction: column; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .15s;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); text-decoration: none; }
.related-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.related-card-body { padding: .65rem .75rem; flex: 1; }
.related-card-title { font-size: .855rem; font-weight: 700; line-height: 1.35; margin-bottom: .2rem; }
.related-card-excerpt { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* ── Breadcrumbs ────────────────────────────────────────────────── */
.breadcrumbs { margin-bottom: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; font-size: .8rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .2rem; color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 500; }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .3rem; margin: 2rem 0 .5rem; }
.page-numbers { display: flex; gap: .25rem; align-items: center; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 2rem; padding: 0 .5rem;
  border: 1px solid var(--border); border-radius: 5px;
  font-size: .855rem; color: var(--text); text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.page-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.page-link.page-current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.page-link.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.page-ellipsis { color: var(--muted); padding: 0 .2rem; }

/* ── Page hero ──────────────────────────────────────────────────── */
.page-hero { padding: 0 0 1.1rem; margin-bottom: 1.35rem; border-bottom: 2px solid var(--border); }
.page-title { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; line-height: 1.2; }
.page-subtitle { color: var(--muted); margin-top: .4rem; font-size: .9rem; }

/* ── Search ─────────────────────────────────────────────────────── */
.search-form-full { display: flex; gap: .4rem; margin: 1.1rem 0; }
.search-form-full input {
  flex: 1; padding: .55rem 1rem; border: 1px solid var(--border);
  border-radius: 6px; font-size: .95rem; background: var(--surface); color: var(--text);
}
.search-form-full input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.search-summary { color: var(--muted); margin-bottom: 1.1rem; font-size: .88rem; }
.search-snippet { font-size: .855rem; color: var(--muted); margin: .25rem 0 .45rem; }
.search-snippet mark { background: rgba(230,57,70,.1); color: var(--accent); border-radius: 2px; }

/* ── Empty & error ──────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 0; color: var(--muted); }
.empty-state .btn { margin-top: 1rem; }
.error-page { text-align: center; padding: 5rem 0 3rem; }
.error-code { font-size: 7rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg,var(--accent),#f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.error-title { font-size: 1.7rem; font-weight: 800; margin: .5rem 0 .7rem; }
.error-desc { color: var(--muted); margin-bottom: 2rem; max-width: 34rem; margin-left: auto; margin-right: auto; }
.error-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  padding: 2.25rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; gap: 1.35rem; } }
.footer-col-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.45); margin-bottom: .7rem; }
.footer-desc { font-size: .855rem; color: rgba(255,255,255,.45); line-height: 1.6; margin-top: .4rem; }
.footer-logo { font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; display: block; }
.footer-logo:hover { text-decoration: none; opacity: .85; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: .38rem; }
.footer-col-links a { font-size: .855rem; color: rgba(255,255,255,.5); text-decoration: none; }
.footer-col-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  padding: 1.1rem 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: .4rem;
  font-size: .78rem; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.75); }
.footer-bottom-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ── Footer partners ────────────────────────────────────────────── */
.footer-partners {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}
.footer-partners-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); margin-right: .5rem; }
.footer-partner-link {
  font-size: .82rem; color: rgba(255,255,255,.5); text-decoration: none;
  border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: .2rem .6rem;
  transition: border-color .15s, color .15s;
}
.footer-partner-link:hover { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.85); text-decoration: none; }

/* ── Static pages ───────────────────────────────────────────────── */
.static-page { max-width: 720px; }
.static-page .article-body h2 { font-size: 1.25rem; margin-top: 1.85rem; }
.static-page .article-body p { margin-bottom: 1rem; }

/* ── Category pills ─────────────────────────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.1rem; }
.cat-pill {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .2rem .6rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: .78rem; color: var(--text); text-decoration: none;
  transition: background .15s, border-color .15s;
}
.cat-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.cat-count { color: var(--muted); font-size: .7rem; }
.cat-pill:hover .cat-count { color: rgba(255,255,255,.75); }
