/* Juan Alvennys — tema público */
:root {
  --ink: #111114;
  --ink-2: #2b2b33;
  --muted: #6c6c78;
  --line: #e6e6ec;
  --bg: #ffffff;
  --bg-soft: #f4f4f7;
  --brand: #d1006c;
  --brand-dark: #a30054;
  --hot: #ff1f4b;
  --dark: #0e0e12;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(17, 17, 20, .06), 0 8px 24px rgba(17, 17, 20, .06);
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-read: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.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; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: currentColor; flex-shrink: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ── Barra superior ─────────────────────────────────────────────── */
.topbar { background: var(--dark); color: #c9c9d3; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__date { white-space: nowrap; }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__links a:hover { color: #fff; }
.socials { display: flex; align-items: center; gap: 4px; }
.socials a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: background .15s, color .15s; }
.socials a:hover { background: var(--brand); color: #fff; }
.socials .icon { width: 15px; height: 15px; }

/* ── Masthead ───────────────────────────────────────────────────── */
.masthead { background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__name { font: 900 44px/0.95 var(--font-head); letter-spacing: -.035em; white-space: nowrap; }
.wordmark__juan { color: var(--ink); }
.wordmark__alv { color: var(--brand); }
.wordmark__tag { margin-top: 6px; font: italic 600 13px/1.2 var(--font-read); color: var(--muted); letter-spacing: .01em; }
.wordmark--logo img { height: 96px; width: auto; max-width: 100%; }
.drawer__head .wordmark--logo img { height: 54px; }
.footer .wordmark--logo img { height: 84px; }
.mainnav__mini img { height: 34px; width: auto; }
.wordmark--light .wordmark__juan { color: #fff; }
.wordmark--light .wordmark__tag { color: #9d9daa; }
/* Nada de "ad" en las clases: EasyList oculta ".masthead__ad" en todos los sitios. */
.masthead__side { flex: 0 1 728px; min-width: 0; }
.masthead__tools { display: none; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; }
.icon-btn:hover { background: var(--bg-soft); }

/* ── Navegación ─────────────────────────────────────────────────── */
.mainnav { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 3px solid var(--brand); box-shadow: 0 6px 18px rgba(17, 17, 20, .05); }
.mainnav .wrap { display: flex; align-items: center; gap: 8px; }
.mainnav__mini { display: none; font: 900 22px/1 var(--font-head); letter-spacing: -.03em; margin-right: 10px; white-space: nowrap; }
.mainnav.is-stuck .mainnav__mini { display: block; }
.mainnav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.mainnav__list::-webkit-scrollbar { display: none; }
.mainnav__list.is-overflowing { mask-image: linear-gradient(90deg, #000 90%, transparent); }
.mainnav__list a {
  display: block; padding: 15px 11px 13px; font: 700 13.5px/1 var(--font-head); text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: color .15s, border-color .15s;
}
.mainnav__list a:hover, .mainnav__list a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.mainnav__search { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 19px; }
.mainnav__search:hover { background: var(--bg-soft); color: var(--brand); }

.searchbar { display: none; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.searchbar.is-open { display: block; }
.searchbar form { display: flex; gap: 10px; padding: 14px 0; }
.searchbar input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 16px var(--font-ui); background: #fff; outline: none; }
.searchbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(209, 0, 108, .12); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-soft); }

/* ── Ticker ─────────────────────────────────────────────────────── */
.ticker { background: var(--ink); color: #fff; overflow: hidden; }
.ticker .wrap { display: flex; align-items: stretch; min-height: 40px; }
.ticker__label { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 0; font: 800 12px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.ticker__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255, 31, 75, .7); animation: pulse 1.6s infinite; }
.ticker__viewport { position: relative; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; gap: 42px; align-items: center; height: 100%; width: max-content; animation: ticker 70s linear infinite; }
.ticker__track a { font-size: 14px; font-weight: 500; white-space: nowrap; color: #e9e9ef; }
.ticker__track a::before { content: "●"; color: var(--brand); font-size: 8px; margin-right: 10px; vertical-align: 2px; }
.ticker__track a:hover { color: #fff; text-decoration: underline; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 31, 75, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 31, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 31, 75, 0); } }

/* ── Publicidad ─────────────────────────────────────────────────── */
.jx-slot { display: flex; justify-content: center; align-items: center; overflow: hidden; }
.jx-slot--header { min-height: 90px; }
.jx-slot--sidebar { margin-bottom: 28px; }
.jx-slot--mobile { display: none; padding: 12px 0; background: var(--bg-soft); }
.jx-slot--mobile > .jx-slot { width: 100%; }
.jx-embed { display: flex; justify-content: center; align-items: center; width: 100%; }
.jx-embed__inner { transform-origin: top left; }
.jx-rot { position: relative; width: 100%; aspect-ratio: var(--promo-ratio, 728 / 90); }
.jx-rot__item { position: absolute; inset: 0; background: var(--promo-bg) center / contain no-repeat; opacity: 0; transition: opacity .6s; }
.jx-rot__item { pointer-events: none; }
.jx-rot__item.is-active { opacity: 1; pointer-events: auto; z-index: 1; }

/* Publicidad dentro de las noticias */
.jx-block, .jx-flow { margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.jx-label {
  display: flex; align-items: center; gap: 10px;
  font: 600 10px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.jx-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.prose .jx-block a, .prose .jx-flow a { border: 0; text-decoration: none; }

.jx-item {
  display: block; width: 100%; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  box-shadow: 0 0 0 1px var(--line);
}
.jx-block .jx-item img, .jx-flow .jx-item img { width: 100%; height: auto; margin: 0; border-radius: 0; }

/* Alto fijo: la creatividad se ve entera, sin estirarse a 300px y tapar el texto. */
.jx-frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: clamp(132px, 18vw, 200px);
  border-radius: 12px; overflow: hidden; isolation: isolate;
  background: #141418; box-shadow: 0 0 0 1px var(--line);
}
.jx-frame::before {
  content: ""; position: absolute; inset: -28px; z-index: 0;
  background: var(--promo-bg) center / cover no-repeat;
  filter: blur(22px) saturate(1.12); opacity: .5;
}
.jx-frame img,
.prose .jx-frame img,
.jx-block .jx-frame img,
.jx-flow .jx-frame img {
  position: relative; z-index: 1;
  width: auto; max-width: 100%; height: auto; max-height: 100%;
  margin: 0; border-radius: 0; object-fit: contain;
}
a.jx-frame:hover img { transform: scale(1.015); }
.jx-frame img { transition: transform .25s ease; }
.jx-badge {
  position: absolute; z-index: 2; top: 8px; left: 8px; pointer-events: none;
  padding: 4px 7px; border-radius: 4px; background: rgba(14, 14, 18, .62); color: #fff;
  font: 700 9px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
}

.jx-rot--framed {
  border-radius: 12px; overflow: hidden; background: #141418; box-shadow: 0 0 0 1px var(--line); isolation: isolate;
  height: clamp(132px, 18vw, 200px); aspect-ratio: auto;
}
.jx-rot--framed .jx-rot__item { background: none; overflow: hidden; }
.jx-rot--framed .jx-rot__item::before,
.jx-tile::before {
  content: ""; position: absolute; inset: -24px; z-index: -1;
  background: var(--promo-bg) center / cover no-repeat;
  filter: blur(22px) saturate(1.15); opacity: .45;
}
.jx-rot--framed .jx-rot__item::after { content: ""; position: absolute; inset: 0; background: var(--promo-bg) center / contain no-repeat; }
.jx-rot--framed .jx-rot__item.is-active { z-index: 1; }
.jx-rot--framed > .jx-badge { z-index: 3; }
.jx-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.jx-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line); cursor: pointer; transition: width .25s, background .25s;
}
.jx-dots button.is-active { width: 20px; background: var(--brand); }

.jx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jx-tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 1; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--bg-soft); box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s;
}
.jx-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 6.2 / 1; }
a.jx-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.jx-block .jx-tile img { width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 0; }

/* AdSense: sin espacio en blanco mientras carga y oculto si no hay anuncio */
.jx-code { width: 100%; }
.jx-code:not(:has(ins[data-ad-status="filled"])) > .jx-label { display: none; }
.jx-flow.jx-code:not(:has(ins[data-ad-status="filled"])) { margin: 0; }
.jx-code:has(ins[data-ad-status="unfilled"]) { display: none; }
.jx-code ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

@media (max-width: 560px) {
  .jx-grid { grid-template-columns: 1fr; }
  .jx-tile, .jx-tile:last-child:nth-child(odd) { aspect-ratio: 3 / 1; }
}

/* ── Layout general ─────────────────────────────────────────────── */
main { display: block; }
.page { padding: 28px 0 56px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 28px; }

.kicker {
  display: inline-block; font: 800 11.5px/1 var(--font-head); text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent, var(--brand));
}
.kicker--chip { background: var(--accent, var(--brand)); color: #fff; padding: 6px 9px; border-radius: 4px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.meta .icon { width: 14px; height: 14px; margin-right: 3px; }

.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.block-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; background: var(--accent, var(--brand)); }
.block-head h2 { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; }
.block-head h2 a:hover { color: var(--accent, var(--brand)); }
.block-head__more { font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--accent, var(--brand)); white-space: nowrap; }
.block-head__more:hover { text-decoration: underline; }
.block-head__subs { display: flex; gap: 16px; margin-right: auto; margin-left: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.block-head__subs::-webkit-scrollbar { display: none; }
.block-head__subs a { font: 700 12.5px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.block-head__subs a:hover { color: var(--accent, var(--brand)); }

/* ── Tarjetas ───────────────────────────────────────────────────── */
.thumb { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.thumb__play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 16px; }
a:hover .thumb img, .card:hover .thumb img { transform: scale(1.04); }

.card { display: flex; flex-direction: column; gap: 10px; }
.card__title { font-size: 19px; font-weight: 800; line-height: 1.22; }
.card__title a:hover { color: var(--brand); }
.card__excerpt { margin: 0; font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--sm .card__title { font-size: 16px; }

.row-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.row-card .thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
.row-card__title { font-size: 15.5px; font-weight: 700; line-height: 1.28; margin: 4px 0 6px; }
.row-card__title a:hover { color: var(--brand); }

.river { display: flex; flex-direction: column; }
.river-item { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.river-item:first-child { padding-top: 0; }
.river-item__body { display: flex; flex-direction: column; gap: 9px; }
.river-item__title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.river-item__title a:hover { color: var(--brand); }

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

/* ── Portada: hero ──────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-bottom: 44px; }
.hero__side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--ink); color: #fff; min-height: 220px; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .9) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tile__title { font-size: 17px; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.tile .meta { color: rgba(255, 255, 255, .78); }
.tile--lead { min-height: 470px; }
.tile--lead .tile__body { padding: 28px; gap: 12px; }
.tile--lead .tile__title { font-size: 34px; font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
.tile--lead .tile__excerpt { margin: 0; color: rgba(255, 255, 255, .86); font-size: 16px; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Portada: secciones por categoría ───────────────────────────── */
.section-block { margin-top: 48px; }
.section-block__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.section-block__list { display: flex; flex-direction: column; gap: 18px; }
.section-block:nth-of-type(even) .section-block__grid { grid-template-columns: 1fr 1.15fr; }
.section-block:nth-of-type(even) .section-block__lead { order: 2; }
.section-block__lead .card__title { font-size: 26px; font-weight: 900; }

.videos-band { margin-top: 56px; background: var(--dark); color: #fff; padding: 40px 0 46px; }
.videos-band .block-head { border-color: rgba(255, 255, 255, .14); }
.videos-band .card__title a:hover { color: #ff7ab8; }
.videos-band .meta { color: #a3a3b0; }

/* ── Sidebar ────────────────────────────────────────────────────── */
.widget { background: var(--bg); }
.widget__title { font: 900 16px/1 var(--font-head); text-transform: uppercase; letter-spacing: .03em; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 3px solid var(--ink); }
.ranking { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranking li { counter-increment: rank; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ranking li:last-child { border-bottom: 0; }
.ranking li::before { content: counter(rank); font: 900 34px/1 var(--font-head); color: var(--brand); opacity: .9; letter-spacing: -.04em; }
.ranking a { font-weight: 700; font-size: 15px; line-height: 1.3; }
.ranking a:hover { color: var(--brand); }
.ranking .meta { margin-top: 5px; }
.follow { background: linear-gradient(135deg, var(--brand), #7a0f8c); color: #fff; border-radius: 14px; padding: 22px; }
.follow p { margin: 6px 0 14px; color: rgba(255, 255, 255, .85); font-size: 14px; }
.follow .socials a { background: rgba(255, 255, 255, .14); width: 38px; height: 38px; }
.follow .socials a:hover { background: #fff; color: var(--brand); }
.follow .socials .icon { width: 17px; height: 17px; }
.mini-list { display: flex; flex-direction: column; gap: 16px; }

/* ── Encabezado de listados ─────────────────────────────────────── */
.page-head { padding: 34px 0 30px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head__eyebrow { font: 800 12px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent, var(--brand)); }
.page-head h1 { margin-top: 10px; font-size: 44px; font-weight: 900; letter-spacing: -.03em; }
.page-head h1::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 14px; border-radius: 3px; background: var(--accent, var(--brand)); }
.page-head p { margin: 14px 0 0; max-width: 70ch; color: var(--ink-2); }
.page-head__author { display: flex; align-items: center; gap: 18px; }
a.page-head__eyebrow:hover { text-decoration: underline; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.subcats a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); transition: color .15s, border-color .15s, background .15s; }
.subcats a:hover { color: var(--accent, var(--brand)); border-color: var(--accent, var(--brand)); }
.subcats a.is-active { background: var(--accent, var(--brand)); border-color: var(--accent, var(--brand)); color: #fff; }
.page-head form { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; }
.page-head input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 16px var(--font-ui); outline: none; }
.page-head input:focus { border-color: var(--brand); }

.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 15px/1 var(--font-head); overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 84px; height: 84px; font-size: 28px; }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ── Paginación ─────────────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font: 700 14px/1 var(--font-head); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { opacity: .4; }

/* ── Artículo ───────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { opacity: .5; }
.article-head h1 { font-size: 42px; font-weight: 900; line-height: 1.08; letter-spacing: -.025em; margin: 14px 0 16px; }
.article-head__lead { margin: 0 0 20px; font: italic 400 21px/1.5 var(--font-read); color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline__who { display: flex; align-items: center; gap: 12px; }
.byline__name { font-weight: 700; font-size: 15px; }
.byline__name a:hover { color: var(--brand); }
.draft-flag { display: inline-block; margin-bottom: 14px; padding: 8px 12px; border-radius: 8px; background: #fff4d6; color: #7a5300; font-size: 14px; font-weight: 600; }

.share { display: flex; align-items: center; gap: 8px; }
.share__label { font: 800 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.share a, .share button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 17px; transition: transform .15s, filter .15s; }
.share a:hover, .share button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share .s-wa { background: #25d366; }
.share .s-fb { background: #1877f2; }
.share .s-x { background: #111; }
.share .s-tg { background: #229ed9; }
.share .s-copy { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.share .s-copy.is-done { background: #16a34a; color: #fff; border-color: #16a34a; }

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

.prose { font: 400 19.5px/1.75 var(--font-read); color: #1d1d22; margin-top: 26px; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-head); font-weight: 800; margin-top: 1.6em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 23px; }
.prose strong, .prose b { font-weight: 700; }
.prose img { border-radius: 10px; margin: 0 auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font: 13px/1.5 var(--font-ui); color: var(--muted); margin-top: 8px; text-align: center; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand); font-style: italic; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose table { width: 100%; border-collapse: collapse; font: 15px var(--font-ui); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose iframe { max-width: 100%; }
.prose video { width: 100%; max-height: 80vh; border-radius: 10px; background: #000; }
.prose::after { content: ""; display: table; clear: both; }
.embed { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.embed--video { aspect-ratio: 16 / 9; }
.embed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--social { background: transparent; max-width: 540px; margin-left: auto; margin-right: auto; }
.embed--social iframe { width: 100%; min-height: 620px; border: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.tags a { padding: 7px 13px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; font-weight: 600; }
.tags a:hover { background: var(--brand); color: #fff; }
.article-foot { margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.source { font-size: 14px; color: var(--muted); }
.source a { color: var(--brand); }
.related { margin-top: 48px; }

/* ── Páginas y contacto ─────────────────────────────────────────── */
.narrow { max-width: 780px; }
.form { display: grid; gap: 16px; margin-top: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: 400 16px var(--font-ui); outline: none; background: #fff; }
.form input:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(209, 0, 108, .1); }
.form .hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.alert--ok { background: #e8f8ee; color: #14532d; }
.alert--err { background: #fdecef; color: #8a1230; }

/* ── 404 ────────────────────────────────────────────────────────── */
.notfound { padding: 70px 0 40px; text-align: center; }
.notfound__code { font: 900 140px/1 var(--font-head); letter-spacing: -.06em; color: var(--brand); }
.notfound h1 { font-size: 30px; margin: 10px 0 12px; }
.notfound p { color: var(--muted); margin: 0 0 24px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: #b7b7c3; margin-top: 64px; font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 40px; }
.footer__about p { margin: 16px 0 18px; max-width: 38ch; line-height: 1.6; }
.footer h3 { color: #fff; font: 800 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .socials a { background: rgba(255, 255, 255, .07); width: 36px; height: 36px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 13px; color: #8a8a97; }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 20px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ── Menú móvil ─────────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 14, .55); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: var(--bg); transform: translateX(-100%); transition: transform .28s ease; display: flex; flex-direction: column; overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head .wordmark__name { font-size: 28px; }
.drawer nav a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 700 15px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.drawer nav a:hover { color: var(--brand); background: var(--bg-soft); }
.drawer nav a.drawer__sub { padding: 11px 20px 11px 38px; font: 600 14px/1.1 var(--font-ui); text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.drawer nav a.drawer__sub::before { content: "›"; margin-right: 8px; color: var(--muted); }
.drawer__foot { margin-top: auto; padding: 20px; display: grid; gap: 14px; font-size: 14px; color: var(--muted); }

/* ── Cuentas, Me gusta y comentarios ────────────────────────────── */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.topbar__account { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar__account .icon { width: 15px; height: 15px; fill: currentColor; }
.account-btn { overflow: hidden; }
.account-btn img, .account-btn span { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.account-btn span { display: grid; place-items: center; background: var(--brand); color: #fff; font: 800 15px/1 var(--font-head); }
.btn--block { width: 100%; padding: 15px 22px; }
.btn--danger { background: #c81e3a; }
.btn--danger:hover { background: #9d1730; }
.btn[disabled] { opacity: .6; cursor: progress; }

.auth-page { background: var(--bg-soft); }
.auth { max-width: 480px; margin: 0 auto; padding: 34px 32px 30px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.auth--wide { max-width: 760px; }
.auth__title { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin-top: -8px; }
.auth__lead { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.auth .alert { margin: 0; }
.auth__form { margin-top: 0; }
.auth__form small, .auth .form small { font-weight: 400; color: var(--muted); }
.auth .form label > span { display: flex; align-items: baseline; gap: 6px; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth__row a, .auth__alt a, .auth__legal a { color: var(--brand); font-weight: 600; }
.auth__row a:hover, .auth__alt a:hover, .auth__legal a:hover { text-decoration: underline; }
.form .check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.form .check input { width: 18px; height: 18px; accent-color: var(--brand); }
.auth__hint, .auth__legal { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.auth__legal { margin-top: 0; }
.auth__alt { margin: 0; text-align: center; font-size: 15px; }

.oauth { display: grid; gap: 12px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 20px; border-radius: 999px; font: 600 17px/1 var(--font-ui); cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s; }
.oauth-btn:active { transform: scale(.99); }
.oauth-btn[disabled] { opacity: .65; cursor: progress; }
.oauth-btn--google { background: #fff; color: #1f1f1f; border: 1px solid #c7c7cf; }
.oauth-btn--google:hover { background: #f7f8fa; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.oauth-btn--apple { background: #000; color: #fff; border: 1px solid #000; }
.oauth-btn--apple:hover { background: #1c1c1e; }
.oauth__divider { display: flex; align-items: center; gap: 14px; margin: 6px 0 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.oauth__divider::before, .oauth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.account-head { display: flex; align-items: center; gap: 18px; }
.account-head .auth__title { margin-top: 0; font-size: 30px; }
.account-head .auth__lead { margin-top: 6px; }
.account-head__avatar { display: grid; place-items: center; flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff; font: 900 30px/1 var(--font-head); overflow: hidden; }
.account-head__avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.account-stats li { padding: 14px; border-radius: 12px; background: var(--bg-soft); text-align: center; }
.account-stats strong { display: block; font: 900 26px/1.1 var(--font-head); color: var(--brand); }
.account-stats span { font-size: 13px; color: var(--muted); }
.account-section { margin-top: 10px; }
.account-section .block-head { margin-bottom: 4px; }
.account-section .block-head h2 { font-size: 19px; }
.account-section .form { margin-top: 14px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-danger { padding: 18px; border-radius: 12px; background: #fdecef; color: #8a1230; }
.account-danger p { margin: 0; }
.account-danger .form { margin-top: 12px; }
.account-comments { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.account-comments li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 6px; }
.account-comments a { font-weight: 700; }
.account-comments a:hover { color: var(--brand); }
.account-comments p { margin: 0; color: var(--ink-2); font-size: 15px; }
.account-logout { margin-top: 6px; text-align: center; }
.status { justify-self: start; padding: 4px 10px; border-radius: 999px; font: 700 11px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-soft); color: var(--muted); }
.status--approved { background: #e8f8ee; color: #14532d; }
.status--pending { background: #fff4d6; color: #7a5200; }
.status--rejected { background: #fdecef; color: #8a1230; }

.engage { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.like { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font: 700 15px/1 var(--font-ui); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.like .icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.like:hover { border-color: var(--brand); color: var(--brand); }
.like.is-liked { background: var(--brand); border-color: var(--brand); color: #fff; }
.like.is-liked .icon { fill: currentColor; stroke: none; }
.like__count { padding-left: 9px; border-left: 1px solid currentColor; opacity: .85; }
.like--pop .icon { animation: like-pop .35s ease; }
@keyframes like-pop { 50% { transform: scale(1.35); } }
.engage__comments { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.engage__comments .icon { width: 19px; height: 19px; fill: var(--muted); }
.engage__comments:hover { color: var(--brand); }
.login-prompt { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 20; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-prompt p { margin: 0 32px 14px 0; font-size: 15px; }
.login-prompt__close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.login-prompt__close:hover { background: var(--bg-soft); }
.login-prompt__close .icon { width: 18px; height: 18px; }
.login-prompt__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.comments { margin-top: 40px; }
.comment-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.comment-form__who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.comment-form__who a { margin-left: auto; color: var(--brand); font-weight: 600; }
.comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: 400 16px/1.5 var(--font-ui); resize: vertical; outline: none; }
.comment-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(209, 0, 108, .1); }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.comment-form__foot small { color: var(--muted); }
.comment-form__msg { margin: 0; padding: 10px 14px; border-radius: 10px; background: #e8f8ee; color: #14532d; font-size: 14px; }
.comment-form__msg[data-error] { background: #fdecef; color: #8a1230; }
.comment-login { padding: 22px; border-radius: 14px; background: var(--bg-soft); text-align: center; }
.comment-login p { margin: 0 0 14px; color: var(--ink-2); }
.comment-login .comment-login__title { margin-bottom: 6px; font: 800 18px/1.3 var(--font-head); color: var(--ink); }
.comment-login .login-prompt__actions { justify-content: center; }
.comment-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment--pending { opacity: .75; }
.comment__avatar { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 16px/1 var(--font-head); overflow: hidden; }
.comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment__avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.comment__body { min-width: 0; flex: 1; }
.comment__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; }
.comment__head time { color: var(--muted); font-size: 13px; }
.comment__tag { padding: 2px 8px; border-radius: 999px; background: #fff4d6; color: #7a5200; font-size: 12px; font-weight: 600; }
.comment__body p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.comments__empty { margin: 16px 0 0; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #c81e3a; }

.contest-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand); font-size: 52px; }
.contest-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #e8f8ee; color: #14532d; font: 700 12px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.contest-badge--closed { background: var(--bg-soft); color: var(--muted); }
.contest-hero { margin: 0 0 26px; }
.contest-hero img { width: 100%; border-radius: var(--radius); }
.contest-form { margin-top: 36px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); scroll-margin-top: 90px; }
.contest-form h2 { font-size: 26px; font-weight: 900; }
.contest-form__note { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.contest-form .form { margin-top: 18px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .tile--lead .tile__title { font-size: 28px; }
  .masthead__side { flex-basis: 468px; }
}

@media (max-width: 900px) {
  .topbar__links { display: none; }
  .masthead .wrap { padding-top: 12px; padding-bottom: 12px; }
  .masthead__side { display: none; }
  .masthead__tools { display: flex; flex: 0 0 90px; }
  .masthead__tools:last-child { justify-content: flex-end; }
  .masthead .wrap { justify-content: space-between; }
  .wordmark { align-items: center; text-align: center; }
  .wordmark__name { font-size: 32px; }
  .wordmark__tag { font-size: 11px; }
  .masthead .wordmark--logo img { height: 76px; }
  .mainnav { position: relative; box-shadow: none; }
  .mainnav__search, .mainnav.is-stuck .mainnav__mini { display: none; }
  .mainnav__list a { padding: 13px 11px 11px; font-size: 13px; }
  .jx-slot--mobile { display: flex; }
  .jx-slot--mobile:not(:has(*)) { display: none; }
  .with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .tile--lead { min-height: 380px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-block__grid, .section-block:nth-of-type(even) .section-block__grid { grid-template-columns: minmax(0, 1fr); }
  .section-block:nth-of-type(even) .section-block__lead { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .river-item { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .topbar__date { font-size: 12px; }
  .wordmark__name { font-size: 28px; }
  .masthead .wordmark--logo { flex: 1; min-width: 0; }
  .masthead .wordmark--logo img { height: auto; max-height: 72px; margin: 0 auto; }
  .hero__side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero { gap: 10px; margin-bottom: 32px; }
  .tile { min-height: 180px; border-radius: 12px; }
  .tile__body { padding: 12px; }
  .tile__title { font-size: 14.5px; }
  .tile .meta { display: none; }
  .tile--lead { min-height: 340px; }
  .tile--lead .tile__body { padding: 18px; }
  .tile--lead .tile__title { font-size: 24px; }
  .tile--lead .meta { display: flex; }
  .tile--lead .tile__excerpt { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid--keep.grid--2, .grid--keep.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .grid--keep .card__title { font-size: 15px; }
  .river-item { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .river-item .thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
  .river-item__title { font-size: 16.5px; }
  .river-item .card__excerpt { display: none; }
  .block-head h2 { font-size: 20px; }
  .section-block__lead .card__title { font-size: 21px; }
  .page-head h1 { font-size: 32px; }
  .article-head h1 { font-size: 29px; }
  .article-head__lead { font-size: 18px; }
  .prose { font-size: 18px; line-height: 1.7; }
  .prose .alignleft, .prose .alignright { float: none; margin: 1em auto; max-width: 100%; }
  .byline { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .contest-form { padding: 20px 16px; }
  .notfound__code { font-size: 96px; }
  .auth { padding: 26px 18px 22px; border-radius: 14px; }
  .auth__title { font-size: 28px; }
  .account-head { align-items: flex-start; }
  .account-head__avatar { width: 60px; height: 60px; font-size: 24px; }
  .account-stats strong { font-size: 22px; }
  .engage { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
