/*
Theme Name: Medicina em Pauta — CNN Editorial
Theme URI: https://medicinaempauta.com/
Author: Medicina em Pauta
Author URI: https://medicinaempauta.com/
Description: Tema jornalístico responsivo, independente e sem plugins para o portal Medicina em Pauta, com estrutura editorial inspirada em grandes portais de notícias.
Version: 2.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: medicina-em-pauta-editorial
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --mep-red: #d71920;
  --mep-red-dark: #a90f15;
  --mep-black: #050505;
  --mep-ink: #161616;
  --mep-gray-900: #272727;
  --mep-gray-700: #5c5c5c;
  --mep-gray-500: #8b8b8b;
  --mep-gray-300: #d8d8d8;
  --mep-gray-200: #e8e8e8;
  --mep-gray-100: #f5f5f5;
  --mep-white: #fff;
  --mep-max: 1240px;
  --mep-reading: 730px;
  --mep-radius: 2px;
  --mep-font: Arial, Helvetica, sans-serif;
  --mep-shadow: 0 14px 40px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mep-white);
  color: var(--mep-ink);
  font-family: var(--mep-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.mep-lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 12px; background: #fff; color: #111; z-index: 99999; }
.mep-container { width: min(var(--mep-max), calc(100% - 40px)); margin-inline: auto; }
.mep-section { padding: 44px 0; }
.mep-section--soft { background: var(--mep-gray-100); }
.mep-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; border-bottom: 3px solid var(--mep-black); padding-bottom: 12px; }
.mep-section-heading h2 { margin: 0; font-size: clamp(27px, 3.2vw, 42px); line-height: 1; letter-spacing: -.045em; }
.mep-section-heading a { color: var(--mep-red); text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.mep-kicker { color: var(--mep-red); font-size: 12px; line-height: 1.2; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mep-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
  border: 0; background: var(--mep-red); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; transition: .2s ease;
}
.mep-button:hover { background: var(--mep-black); }
.mep-button--dark { background: var(--mep-black); }
.mep-button--dark:hover { background: var(--mep-red); }

/* Header */
.mep-site-header { position: relative; z-index: 200; background: #fff; }
.mep-breaking { background: var(--mep-black); color: #fff; border-bottom: 1px solid #252525; }
.mep-breaking__inner { min-height: 36px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; }
.mep-breaking__label { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mep-breaking__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mep-red); box-shadow: 0 0 0 4px rgba(215,25,32,.18); }
.mep-breaking__track { min-width: 0; overflow: hidden; position: relative; }
.mep-breaking__items { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.mep-breaking__items a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mep-breaking__time { color: #aaa; font-size: 11px; white-space: nowrap; }
.mep-header-main { background: var(--mep-black); color: #fff; }
.mep-header-main__inner { min-height: 96px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mep-header-actions { display: flex; align-items: center; gap: 12px; }
.mep-header-actions--right { justify-content: flex-end; }
.mep-menu-toggle, .mep-search-toggle, .mep-close {
  width: 46px; height: 46px; border: 1px solid #3a3a3a; background: transparent; color: currentColor;
  display: inline-grid; place-items: center; transition: .2s ease;
}
.mep-menu-toggle:hover, .mep-search-toggle:hover, .mep-close:hover { border-color: var(--mep-red); color: var(--mep-red); }
.mep-menu-toggle span, .mep-menu-toggle span::before, .mep-menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative;
}
.mep-menu-toggle span::before, .mep-menu-toggle span::after { content: ""; position: absolute; left: 0; }
.mep-menu-toggle span::before { top: -7px; }
.mep-menu-toggle span::after { top: 7px; }
.mep-header-label { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mep-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; text-decoration: none; width: min(440px, 44vw); z-index: 2; }
.mep-brand img { width: 100%; max-height: 72px; object-fit: contain; }
.mep-header-link { color: #fff; text-decoration: none; font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.mep-header-link:hover { color: var(--mep-red); }
.mep-main-nav { background: #fff; border-bottom: 1px solid var(--mep-gray-300); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.mep-main-nav__inner { min-height: 49px; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.mep-main-nav__inner::-webkit-scrollbar { display: none; }
.mep-main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: stretch; white-space: nowrap; }
.mep-main-nav li { display: flex; }
.mep-main-nav a { display: flex; align-items: center; padding: 0 18px; text-decoration: none; font-size: 12px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.mep-main-nav a:hover, .mep-main-nav .current-menu-item > a, .mep-main-nav .current-cat > a { color: var(--mep-red); border-bottom-color: var(--mep-red); }

/* Drawers */
.mep-overlay { position: fixed; inset: 0; z-index: 1000; visibility: hidden; opacity: 0; transition: .2s ease; }
.mep-overlay.is-open { visibility: visible; opacity: 1; }
.mep-overlay__shade { position: absolute; inset: 0; background: rgba(0,0,0,.74); }
.mep-drawer { position: absolute; inset: 0 auto 0 0; width: min(440px, 94vw); background: #0b0b0b; color: #fff; transform: translateX(-102%); transition: .28s ease; overflow-y: auto; }
.mep-overlay.is-open .mep-drawer { transform: translateX(0); }
.mep-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid #2f2f2f; }
.mep-drawer__top img { width: 270px; max-width: calc(100% - 68px); }
.mep-drawer__body { padding: 18px 24px 36px; }
.mep-drawer ul { list-style: none; margin: 0; padding: 0; }
.mep-drawer li { border-bottom: 1px solid #2a2a2a; }
.mep-drawer a { display: block; padding: 15px 0; text-decoration: none; font-size: 18px; font-weight: 800; }
.mep-drawer a:hover { color: var(--mep-red); }
.mep-drawer .sub-menu { padding-left: 18px; }
.mep-drawer .sub-menu a { font-size: 14px; color: #cfcfcf; }
.mep-search-panel { position: relative; width: min(800px, calc(100% - 30px)); margin: 13vh auto 0; padding: 32px; background: #fff; color: var(--mep-ink); transform: translateY(-16px); transition: .2s ease; }
.mep-overlay.is-open .mep-search-panel { transform: translateY(0); }
.mep-search-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mep-search-panel h2 { margin: 0; font-size: clamp(30px, 5vw, 56px); letter-spacing: -.05em; }
.mep-search-panel .mep-close { color: #111; border-color: #ccc; }
.mep-search-form { margin-top: 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0; }
.mep-search-form input { min-width: 0; height: 54px; padding: 0 16px; border: 1px solid #111; border-right: 0; }
.mep-search-form button { height: 54px; padding: 0 24px; border: 0; background: var(--mep-red); color: #fff; font-weight: 900; }

/* Home hero */
.mep-home-hero { padding: 28px 0 38px; }
.mep-hero-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(280px, .95fr); gap: 18px; }
.mep-hero-slider { min-width: 0; position: relative; overflow: hidden; background: #111; }
.mep-hero-track { display: flex; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.mep-hero-slide { min-width: 100%; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.mep-hero-slide::after, .mep-overlay-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03) 20%, rgba(0,0,0,.88) 100%); pointer-events: none; }
.mep-hero-slide img, .mep-overlay-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.mep-hero-slide:hover img, .mep-overlay-card:hover img { transform: scale(1.025); }
.mep-hero-content { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 30px; color: #fff; }
.mep-hero-content h1, .mep-hero-content h2 { margin: 9px 0 10px; max-width: 900px; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.01; letter-spacing: -.05em; text-shadow: 0 3px 18px rgba(0,0,0,.78); }
.mep-hero-content h1 a, .mep-hero-content h2 a { text-decoration: none; }
.mep-hero-content p { margin: 0; max-width: 720px; font-size: 16px; line-height: 1.38; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.mep-hero-controls { position: absolute; z-index: 4; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.mep-carousel-button { width: 42px; height: 42px; border: 0; background: #fff; color: #111; display: inline-grid; place-items: center; font-size: 22px; font-weight: 900; }
.mep-carousel-button:hover { background: var(--mep-red); color: #fff; }
.mep-hero-dots { position: absolute; z-index: 4; left: 30px; top: 24px; display: flex; gap: 7px; }
.mep-hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); }
.mep-hero-dot.is-active { width: 28px; border-radius: 8px; background: var(--mep-red); }
.mep-side-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.mep-overlay-card { display: block; position: relative; min-height: 0; overflow: hidden; background: #111; text-decoration: none; }
.mep-overlay-card__content { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 19px; color: #fff; }
.mep-overlay-card h3 { margin: 7px 0 0; font-size: clamp(20px, 2vw, 29px); line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 2px 13px rgba(0,0,0,.92); }

/* Headline strip */
.mep-headline-strip { border-block: 1px solid var(--mep-gray-300); background: #fff; }
.mep-headline-strip__inner { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: stretch; }
.mep-headline-strip__label { display: flex; align-items: center; padding: 0 20px; background: var(--mep-red); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.mep-headline-strip__scroll { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.mep-headline-strip__scroll::-webkit-scrollbar { display: none; }
.mep-headline-strip__item { flex: 0 0 min(390px, 85vw); padding: 15px 20px; border-right: 1px solid var(--mep-gray-300); scroll-snap-align: start; }
.mep-headline-strip__item a { text-decoration: none; font-size: 14px; font-weight: 800; line-height: 1.25; }
.mep-headline-strip__item a:hover { color: var(--mep-red); }

/* Cards / grids */
.mep-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.mep-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.mep-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.mep-news-card { min-width: 0; }
.mep-news-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--mep-gray-100); }
.mep-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mep-news-card:hover .mep-news-card__media img { transform: scale(1.025); }
.mep-news-card__body { padding-top: 12px; }
.mep-news-card h3 { margin: 6px 0 8px; font-size: clamp(20px, 2vw, 27px); line-height: 1.06; letter-spacing: -.035em; }
.mep-news-card h3 a { text-decoration: none; }
.mep-news-card h3 a:hover { color: var(--mep-red); }
.mep-news-card p { margin: 0; color: var(--mep-gray-700); font-size: 14px; line-height: 1.42; }
.mep-card-meta { margin-top: 9px; color: var(--mep-gray-500); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mep-category-feature { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 24px; }
.mep-category-feature__lead .mep-news-card__media { aspect-ratio: 16/9; }
.mep-category-feature__lead h3 { font-size: clamp(26px, 3vw, 40px); }
.mep-category-feature__list { display: grid; gap: 18px; }
.mep-mini-card { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--mep-gray-300); }
.mep-mini-card:last-child { border-bottom: 0; }
.mep-mini-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--mep-gray-100); }
.mep-mini-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mep-mini-card h3 { margin: 5px 0 0; font-size: 18px; line-height: 1.08; letter-spacing: -.02em; }
.mep-mini-card h3 a { text-decoration: none; }
.mep-mini-card h3 a:hover { color: var(--mep-red); }

/* Listings */
.mep-archive-hero { padding: 42px 0 20px; border-bottom: 1px solid var(--mep-gray-300); }
.mep-eyebrow { margin: 0 0 9px; color: var(--mep-red); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mep-page-title { margin: 0; max-width: 980px; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.055em; }
.mep-page-deck { margin: 13px 0 0; max-width: 780px; color: var(--mep-gray-700); font-size: 18px; }
.mep-archive-lead { padding: 28px 0 6px; }
.mep-archive-lead__card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0,1fr); gap: 28px; align-items: center; }
.mep-archive-lead__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--mep-gray-100); }
.mep-archive-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.mep-archive-lead h2 { margin: 9px 0 10px; font-size: clamp(30px, 4vw, 50px); line-height: 1.01; letter-spacing: -.05em; }
.mep-archive-lead h2 a { text-decoration: none; }
.mep-archive-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(280px,1fr); gap: 54px; align-items: start; padding: 38px 0 68px; }
.mep-news-row { display: grid; grid-template-columns: 285px minmax(0,1fr); gap: 22px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--mep-gray-300); }
.mep-news-row__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--mep-gray-100); }
.mep-news-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mep-news-row:hover .mep-news-row__media img { transform: scale(1.025); }
.mep-news-row__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--mep-gray-500); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mep-news-row__cat { color: var(--mep-red); text-decoration: none; font-weight: 900; }
.mep-news-row h2, .mep-news-row h3 { margin: 8px 0 8px; font-size: clamp(23px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.035em; }
.mep-news-row h2 a, .mep-news-row h3 a { text-decoration: none; }
.mep-news-row h2 a:hover, .mep-news-row h3 a:hover { color: var(--mep-red); }
.mep-news-row__excerpt { margin: 0; color: var(--mep-gray-700); font-size: 14px; line-height: 1.42; }
.mep-load-more-wrap { display: flex; justify-content: center; padding-top: 10px; }
.mep-load-more[disabled] { opacity: .55; cursor: wait; }
.mep-pagination { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 10px; }
.mep-pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--mep-gray-300); text-decoration: none; font-weight: 800; }
.mep-pagination .page-numbers.current, .mep-pagination .page-numbers:hover { background: var(--mep-red); color: #fff; border-color: var(--mep-red); }

/* Sidebar / Most read */
.mep-sidebar { position: sticky; top: 24px; }
.admin-bar .mep-sidebar { top: 58px; }
.mep-side-block { margin-bottom: 34px; }
.mep-side-title { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--mep-black); font-size: 25px; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.mep-most-read { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.mep-most-read li { counter-increment: rank; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--mep-gray-300); }
.mep-most-read li::before { content: counter(rank); color: var(--mep-red); font-size: 36px; line-height: .9; font-weight: 900; letter-spacing: -.06em; }
.mep-most-read a { text-decoration: none; font-size: 15px; line-height: 1.23; font-weight: 800; }
.mep-most-read a:hover { color: var(--mep-red); }
.mep-category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mep-category-list a { padding: 8px 10px; border: 1px solid var(--mep-gray-300); text-decoration: none; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.mep-category-list a:hover { background: var(--mep-black); color: #fff; border-color: var(--mep-black); }

/* Single article */
.mep-article-head { padding: 36px 0 24px; }
.mep-breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; color: var(--mep-gray-500); font-size: 12px; }
.mep-breadcrumbs a { text-decoration: none; }
.mep-breadcrumbs a:hover { color: var(--mep-red); }
.mep-article-category { display: inline-block; color: var(--mep-red); text-decoration: none; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mep-article-title { margin: 10px 0 13px; max-width: 1040px; font-size: clamp(38px, 5.2vw, 68px); line-height: .99; letter-spacing: -.058em; }
.mep-article-deck { margin: 0; max-width: 900px; color: var(--mep-gray-700); font-size: clamp(18px, 2vw, 24px); line-height: 1.32; }
.mep-byline { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--mep-gray-300); }
.mep-byline__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.mep-byline__name { display: block; font-size: 13px; font-weight: 900; }
.mep-byline__name a { text-decoration: none; }
.mep-byline__meta { display: block; margin-top: 2px; color: var(--mep-gray-500); font-size: 11px; }
.mep-article-cover { width: min(1100px, 100%); margin: 26px 0 0; }
.mep-article-cover img { width: 100%; max-height: 700px; object-fit: cover; }
.mep-caption { margin-top: 7px; color: var(--mep-gray-500); font-size: 11px; }
.mep-article-layout { display: grid; grid-template-columns: 54px minmax(0,var(--mep-reading)) minmax(280px,1fr); gap: 32px; align-items: start; padding: 28px 0 66px; }
.mep-reading { min-width: 0; }
.mep-share { position: sticky; top: 24px; display: grid; gap: 8px; }
.admin-bar .mep-share { top: 58px; }
.mep-share a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--mep-gray-300); text-decoration: none; font-weight: 900; }
.mep-share a:hover { background: var(--mep-red); color: #fff; border-color: var(--mep-red); }
.mep-article-content { font-family: Georgia, "Times New Roman", serif; color: #222; font-size: 19px; line-height: 1.72; overflow-wrap: anywhere; }
.mep-article-content > :first-child { margin-top: 0; }
.mep-article-content p { margin: 0 0 1.25em; }
.mep-article-content h2, .mep-article-content h3, .mep-article-content h4 { font-family: var(--mep-font); color: var(--mep-ink); line-height: 1.08; letter-spacing: -.035em; }
.mep-article-content h2 { margin: 1.45em 0 .55em; font-size: 34px; }
.mep-article-content h3 { margin: 1.35em 0 .5em; font-size: 27px; }
.mep-article-content a { color: var(--mep-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mep-article-content img { width: auto; max-width: 100%; }
.mep-article-content blockquote { margin: 1.5em 0; padding: 3px 0 3px 22px; border-left: 5px solid var(--mep-red); color: #333; font-size: 24px; line-height: 1.35; font-style: italic; }
.mep-article-content ul, .mep-article-content ol { padding-left: 1.35em; }
.mep-inline-related { margin: 28px 0; padding: 20px; border-block: 3px solid var(--mep-black); font-family: var(--mep-font); }
.mep-inline-related strong { display: block; margin-bottom: 10px; font-size: 17px; text-transform: uppercase; }
.mep-inline-related a { display: block; padding: 8px 0; color: var(--mep-ink); text-decoration: none; font-weight: 800; border-top: 1px solid var(--mep-gray-300); }
.mep-inline-related a:hover { color: var(--mep-red); }
.mep-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--mep-gray-300); }
.mep-tags strong { margin-right: 6px; font-size: 13px; text-transform: uppercase; }
.mep-tags a { padding: 7px 10px; background: var(--mep-gray-100); text-decoration: none; font-size: 12px; font-weight: 800; }
.mep-tags a:hover { background: var(--mep-red); color: #fff; }
.mep-next-post { margin-top: 34px; padding: 22px; background: var(--mep-black); color: #fff; }
.mep-next-post span { display: block; color: var(--mep-red); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.mep-next-post a { display: block; margin-top: 7px; color: #fff; text-decoration: none; font-size: 22px; line-height: 1.1; font-weight: 900; }
.mep-related { padding: 44px 0 58px; background: var(--mep-gray-100); }
.mep-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }

/* Static pages / empty */
.mep-page { padding: 48px 0 70px; }
.mep-page__title, .mep-empty h1 { margin: 0 0 22px; font-size: clamp(38px,5vw,64px); line-height: 1; letter-spacing: -.05em; }
.mep-page__content { width: min(780px,100%); font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.7; }
.mep-empty { padding: 80px 0; }

/* Footer */
.mep-site-footer { background: var(--mep-black); color: #fff; border-top: 5px solid var(--mep-red); }
.mep-footer-clean { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; }
.mep-footer-clean__brand img { width: min(430px, 75vw); max-height: 76px; object-fit: contain; }
.mep-footer-clean p { margin: 0; color: #aaa; font-size: 12px; }

/* Responsive */
@media (max-width: 1020px) {
  .mep-header-link, .mep-header-label { display: none; }
  .mep-brand { width: min(380px, 48vw); }
  .mep-hero-grid { grid-template-columns: 1fr; }
  .mep-side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mep-side-stack .mep-overlay-card { aspect-ratio: 16/10; }
  .mep-home-layout, .mep-archive-layout { grid-template-columns: 1fr; }
  .mep-sidebar { position: static; }
  .mep-article-layout { grid-template-columns: 48px minmax(0,1fr); }
  .mep-article-layout > .mep-sidebar { grid-column: 1 / -1; }
  .mep-category-feature { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .mep-container { width: min(100% - 28px, var(--mep-max)); }
  .mep-breaking__inner { grid-template-columns: auto minmax(0,1fr); }
  .mep-breaking__time { display: none; }
  .mep-header-main__inner { min-height: 88px; gap: 8px; }
  .mep-brand { width: min(310px, 64vw); }
  .mep-brand img { max-height: 64px; }
  .mep-main-nav a { padding: 0 14px; }
  .mep-home-hero { padding-top: 16px; }
  .mep-hero-slide { aspect-ratio: 4/5; }
  .mep-hero-content { left: 18px; right: 18px; bottom: 72px; }
  .mep-hero-content h1, .mep-hero-content h2 { font-size: clamp(27px, 8vw, 38px); line-height: 1.02; }
  .mep-hero-content p { display: none; }
  .mep-hero-controls { right: 14px; bottom: 14px; }
  .mep-hero-dots { left: 18px; top: 18px; }
  .mep-side-stack { grid-template-columns: 1fr; }
  .mep-side-stack .mep-overlay-card { aspect-ratio: 16/10; }
  .mep-overlay-card h3 { font-size: 23px; }
  .mep-headline-strip__inner { grid-template-columns: 1fr; }
  .mep-headline-strip__label { min-height: 38px; justify-content: center; }
  .mep-grid-3, .mep-grid-2, .mep-related-grid { grid-template-columns: 1fr; }
  .mep-category-feature__list { gap: 14px; }
  .mep-mini-card { grid-template-columns: 110px minmax(0,1fr); }
  .mep-section-heading { align-items: center; }
  .mep-archive-lead__card { grid-template-columns: 1fr; gap: 15px; }
  .mep-news-row { grid-template-columns: 126px minmax(0,1fr); gap: 14px; padding-bottom: 19px; margin-bottom: 19px; }
  .mep-news-row__media { aspect-ratio: 4/3; }
  .mep-news-row h2, .mep-news-row h3 { font-size: 20px; line-height: 1.08; margin: 6px 0; }
  .mep-news-row__excerpt { display: none; }
  .mep-news-row__meta span:last-child, .mep-news-row__meta span:nth-last-child(2) { display: none; }
  .mep-page-title { font-size: 39px; }
  .mep-page-deck { font-size: 16px; }
  .mep-article-title { font-size: clamp(35px, 10vw, 48px); line-height: 1; }
  .mep-article-deck { font-size: 18px; }
  .mep-article-layout { grid-template-columns: 1fr; gap: 22px; }
  .mep-share { position: static; display: flex; order: -1; }
  .mep-article-content { font-size: 18px; line-height: 1.67; }
  .mep-article-content h2 { font-size: 29px; }
  .mep-article-content h3 { font-size: 24px; }
  .mep-search-panel { padding: 22px; }
  .mep-search-form { grid-template-columns: 1fr; gap: 8px; }
  .mep-search-form input { border-right: 1px solid #111; }
}

@media (max-width: 430px) {
  .mep-container { width: calc(100% - 22px); }
  .mep-brand { width: min(285px, 62vw); }
  .mep-menu-toggle, .mep-search-toggle { width: 43px; height: 43px; }
  .mep-hero-content h1, .mep-hero-content h2 { font-size: 29px; }
  .mep-overlay-card h3 { font-size: 21px; }
  .mep-news-row { grid-template-columns: 112px minmax(0,1fr); }
  .mep-news-row h2, .mep-news-row h3 { font-size: 18px; }
  .mep-mini-card { grid-template-columns: 98px minmax(0,1fr); }
  .mep-mini-card h3 { font-size: 16px; }
  .mep-article-title { font-size: 36px; }
}

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