/*
Theme Name: Puls24 Editorial
Theme URI: https://puls24.mk/
Author: Puls24
Description: Современа информативно-магазинска тема за Puls24 — асиметрична почетна, читлива статија, брз мобилен приказ. Редакциската логика е во посебниот додаток „Puls24 Newsroom“.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: puls24-editorial
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --ink: #171B24;
  --ink-2: #565C69;
  --ink-3: #7A808C;
  --line: #E6E1D9;
  --ruby: #CF203F;
  --ruby-dark: #A9172F;
  --bordo: #591328;
  --soft: #F3EEE7;
  --night: #12151C;

  --sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;

  --wrap: 1320px;
  --gutter: 20px;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 27, 36, .05), 0 10px 28px rgba(23, 27, 36, .07);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --header-h: 64px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ruby); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ruby); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ruby); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ruby); color: #fff; }
.btn--primary:hover { background: var(--ruby-dark); color: #fff; }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ruby); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 50%;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--soft); color: var(--ruby); }
.icon-btn--line { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); }

.kicker {
  display: inline-block;
  color: var(--ruby);
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
}
a.kicker:hover { color: var(--ruby-dark); }
.kicker--plain { color: var(--ink-3); }
.kicker--sponsored { background: #FFF1C9; color: #6B4A00; padding: 3px 8px; border-radius: 4px; }
.kicker--opinion { background: var(--bordo); color: #fff; padding: 3px 8px; border-radius: 4px; }
.note { margin-top: var(--s4); color: var(--ink-3); font-size: 13px; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.topbar { background: var(--night); color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: var(--s4); }
.topbar__date::first-letter { text-transform: uppercase; }
.topbar__nav ul { display: flex; gap: var(--s5); }
.topbar__nav a { color: rgba(255, 255, 255, .85); font-weight: 500; }
.topbar__nav a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-stuck { box-shadow: 0 6px 22px rgba(23, 27, 36, .09); }
.masthead { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }
.masthead__logo { flex: 0 0 auto; }
.masthead__logo img { max-height: 44px; width: auto; }
.menu-toggle { display: none; margin-left: -10px; }

.wordmark { display: inline-flex; flex-direction: column; color: var(--ink); line-height: 1; }
.wordmark:hover { color: var(--ink); }
.wordmark__text { font-size: 34px; font-weight: 900; letter-spacing: -.045em; }
.wordmark__text b { color: var(--ruby); font-weight: 900; }
.wordmark__pulse { display: block; width: 100%; height: 8px; margin-top: 2px; color: var(--ruby); }
.wordmark--small .wordmark__text { font-size: 28px; }
.wordmark--light, .wordmark--light:hover { color: #fff; }

.primary-nav { flex: 1 1 auto; min-width: 0; }
.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 0 2px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
  display: block; position: relative;
  padding: 21px 13px;
  font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.primary-nav .menu > li > a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 14px; height: 2px;
  background: var(--ruby); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.primary-nav .menu > li:hover > a::after,
.primary-nav .menu > li:focus-within > a::after,
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-menu-parent > a::after,
.primary-nav .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-parent > a,
.primary-nav .menu > .current-menu-ancestor > a { color: var(--ruby); }
.primary-nav .sub-menu {
  position: absolute; left: 0; top: 100%; z-index: 50;
  min-width: 230px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--bg); }

.search-panel { border-top: 1px solid var(--line); background: var(--surface); padding: var(--s4) 0; }
.search-form { display: flex; gap: var(--s2); width: 100%; }
.search-form__input, .filters input, .filters select, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  padding: 0 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  font-size: 16px;
}
.search-form__input:focus, .filters input:focus, .filters select:focus { border-color: var(--ruby); outline: none; box-shadow: 0 0 0 3px rgba(207, 32, 63, .15); }

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 2000; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(18, 21, 28, .55); }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: min(88vw, 380px);
  background: var(--surface);
  padding: var(--s4) var(--s4) var(--s6);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 10px 0 40px rgba(0, 0, 0, .2);
  animation: drawer-in .22s ease;
}
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.drawer .search-form { margin-bottom: var(--s4); }
.drawer .search-form .btn { padding: 0 14px; }
.drawer__nav .menu > li { border-top: 1px solid var(--line); }
.drawer__nav .menu > li > a { display: block; padding: 14px 4px; font-size: 17px; font-weight: 800; }
.drawer__nav .sub-menu { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px; }
.drawer__nav .sub-menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
body.drawer-open { overflow: hidden; }

/* Ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker__in { display: flex; align-items: center; gap: var(--s4); min-height: 44px; }
.ticker__label {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ruby); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ruby); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(207, 32, 63, .55); }
  70% { box-shadow: 0 0 0 8px rgba(207, 32, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 32, 63, 0); }
}
.ticker__list {
  display: flex; gap: var(--s6); min-width: 0; flex: 1 1 auto;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
  mask-image: linear-gradient(to right, #000 92%, transparent);
}
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; }
.ticker__item time { color: var(--ink-3); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker__item a { display: inline-block; padding: 11px 0; }
.ticker--breaking { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.ticker--breaking .ticker__label, .ticker--breaking .ticker__item time { color: #fff; }
.ticker--breaking .ticker__dot { background: #fff; }
.ticker--breaking a:hover { color: #fff; text-decoration: underline; }
.ticker__item--breaking { font-weight: 800; }

/* Ads: reserved space so late ad scripts do not shift the page */
.ad-slot { display: flex; justify-content: center; align-items: center; overflow: hidden; margin: var(--s5) auto; text-align: center; }
.ad-slot .widget { max-width: 100%; }
.ad-slot--header, .ad-slot--wide { min-height: 100px; }
.ad-slot--sidebar { min-height: 250px; margin: 0 0 var(--s5); }
.ad-slot--article { min-height: 250px; margin: var(--s6) 0; }

/* ==========================================================================
   4. Cards
   ========================================================================== */
.card { position: relative; min-width: 0; }
.card__media { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--soft); }
.card__media .p24-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media .p24-img { transform: scale(1.035); }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.32; letter-spacing: -.005em; }
.card__title a { display: block; }
.card__meta { margin-top: 6px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.card__excerpt { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.card .kicker { margin-bottom: 6px; }

.card--stack .card__media { aspect-ratio: 3 / 2; margin-bottom: 12px; }
.card--feature .card__media { aspect-ratio: 16 / 9; }
.card--feature .card__title { font-family: var(--serif); font-size: 23px; line-height: 1.26; }

.card--lead .card__media { aspect-ratio: 16 / 10; margin-bottom: 14px; border-radius: var(--r); }
.card--lead .card__title { font-family: var(--serif); font-size: 28px; line-height: 1.22; letter-spacing: -.012em; }

.card--row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.card--row .card__media { aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: 15.5px; line-height: 1.34; }
.card--row.card--noimg { grid-template-columns: 1fr; }

.card--text .card__title { font-size: 16px; line-height: 1.36; }
.card__num { display: block; margin-bottom: 4px; color: var(--ruby); font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; }

.card--overlay { border-radius: var(--r); overflow: hidden; background: var(--night); isolation: isolate; box-shadow: var(--shadow); }
.card--overlay .card__media { position: absolute; inset: 0; border-radius: 0; background: var(--night); }
.card--overlay .card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 14, 20, 0) 30%, rgba(12, 14, 20, .55) 62%, rgba(12, 14, 20, .93) 100%);
}
.card--overlay .card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; color: #fff; }
.card--overlay .card__title { color: #fff; font-size: 16.5px; line-height: 1.28; }
.card--overlay .card__title a:hover { color: #fff; opacity: .88; }
.card--overlay .card__title a::after { content: ""; position: absolute; inset: 0; }
.card--overlay .kicker { color: #fff; position: relative; z-index: 3; padding-left: 26px; }
.card--overlay .kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; background: var(--ruby); }
.card--overlay .card__meta { color: rgba(255, 255, 255, .78); }
/* Secondary photo tiles: keep long headlines inside the tile and readable on bright photos.
   The main hero headline is never cut. */
.card--overlay:not(.hero__main) .card__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.card--overlay:not(.hero__main) .card__media::after {
  background: linear-gradient(to bottom, rgba(12, 14, 20, .05) 0%, rgba(12, 14, 20, .45) 45%, rgba(12, 14, 20, .94) 100%);
}
.card--overlay.card--noimg { background: linear-gradient(135deg, var(--bordo), var(--night)); }
.card--tall { aspect-ratio: 4 / 5; margin-bottom: var(--s4); }
.card--tall .card__title { font-family: var(--serif); font-size: 21px; }

/* ==========================================================================
   5. Homepage
   ========================================================================== */
.site-main { padding-bottom: var(--s7); }
.site-main > * + * { margin-top: var(--s7); }
.site-main > .ad-slot { margin-top: var(--s5); margin-bottom: 0; }

.hero { display: grid; gap: 12px; margin-top: var(--s5); grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 300px 208px; }
.hero__main { grid-row: 1 / span 2; }
.hero__main .card__body { padding: 28px; }
.hero__main .card__title { font-family: var(--serif); font-size: 36px; line-height: 1.16; letter-spacing: -.015em; max-width: 21ch; }
.hero__main .card__meta { margin-top: 12px; font-size: 13px; }
.hero__mid .card__title { font-size: 19px; }
.hero--1 { grid-template-columns: 1fr; grid-template-rows: 480px; }
.hero--2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: 480px; }
.hero--2 .hero__main, .hero--1 .hero__main { grid-row: auto; }
.hero--3 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: 254px 254px; }
.hero--4 { grid-template-rows: 300px 208px; }
.hero--4 .hero__small { grid-column: 2 / span 2; }

.pulse { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.pulse__head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.pulse__title { flex: 0 0 auto; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.pulse__line { flex: 1 1 auto; height: 18px; color: var(--ruby); }
.pulse__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.pulse__grid .card + .card { border-left: 1px solid var(--line); padding-left: var(--s5); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-head__title { position: relative; padding-left: 16px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.section-head__title::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 3px; background: var(--ruby); }
.section-head__more { flex: 0 0 auto; color: var(--ink-2); font-size: 13.5px; font-weight: 700; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: var(--s5); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel__title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.panel__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ruby); }
.latest-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.latest-list li:last-child { border: 0; padding-bottom: 0; }
.latest-list time { color: var(--ruby); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.5; }
.latest-list a { font-size: 14.5px; font-weight: 600; line-height: 1.4; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); }
.lead-grid__list { display: grid; gap: var(--s4); align-content: start; }
.lead-grid__list .card + .card { padding-top: var(--s4); border-top: 1px solid var(--line); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); align-items: start; }
.duo--wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.duo--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.headline-list { display: grid; gap: var(--s4); margin-top: var(--s4); }
.headline-list > .card + .card { padding-top: var(--s4); border-top: 1px solid var(--line); }
.section-head + .headline-list { margin-top: 0; }
.card--feature + .headline-list { padding-top: var(--s4); border-top: 1px solid var(--line); }
.sport-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.sport-grid .card--row { grid-column: 1 / -1; padding-top: var(--s4); border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--s5); }
.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)); }
.grid__full { grid-column: 1 / -1; }
.grid--media .card--overlay { aspect-ratio: 3 / 4; }

.band { padding: var(--s7) 0; }
.band--soft { background: var(--soft); }
.band--bordo { background: var(--bordo); color: #fff; }
.band--dark { background: var(--night); color: #fff; }
.band--bordo .section-head, .band--dark .section-head { border-color: rgba(255, 255, 255, .16); }
.band--bordo .section-head__more, .band--dark .section-head__more { color: rgba(255, 255, 255, .8); }
.band--bordo a:hover, .band--dark a:hover { color: #FFB3C0; }
.band--bordo .section-head__title::before { background: #FF8FA3; }
.band--bordo .card__meta, .band--dark .card__meta { color: rgba(255, 255, 255, .66); }
.band--bordo .headline-list > .card + .card { border-color: rgba(255, 255, 255, .16); }
.band--bordo .card__media { background: rgba(255, 255, 255, .08); }

.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.mag-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mag-grid--1 { grid-template-columns: minmax(0, 420px); }
.mag-col__title { margin-bottom: var(--s3); color: var(--ruby); font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mag-col .card--text { padding: var(--s3) 0; border-top: 1px solid rgba(23, 27, 36, .12); }

.opinion { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s4); align-items: start; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.opinion:last-child { border: 0; }
.opinion__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.opinion__author { display: block; margin-bottom: 4px; color: var(--ruby); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.opinion__title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.34; }

.horoscope__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.zodiac { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.zodiac a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 84px; padding: 10px 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; text-align: center;
  transition: border-color .15s ease, transform .15s ease, color .15s ease;
}
.zodiac a:hover { border-color: var(--ruby); transform: translateY(-2px); }
.zodiac__sign { color: var(--ruby); font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", serif; font-size: 24px; line-height: 1; font-variant-emoji: text; }
.horoscope .headline-list { margin-top: 0; }

/* ==========================================================================
   6. Lists: category, tag, author, search
   ========================================================================== */
.page-head { margin-top: var(--s6); }
.page-head + .with-aside { margin-top: var(--s5); }
.page-head__title { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.page-head__desc { max-width: 70ch; margin-top: var(--s3); color: var(--ink-2); font-size: 17px; }
.breadcrumb { margin-bottom: var(--s3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.chip:hover { border-color: var(--ruby); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips--tags { margin-top: var(--s6); }
.author-head { display: flex; align-items: center; gap: var(--s5); }
.author-head__avatar { width: 96px; height: 96px; border-radius: 50%; }

.grid--list { gap: var(--s6) var(--s5); }
.card--lead-wide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6); align-items: center; padding-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.card--lead-wide .card__media { margin: 0; }
.card--lead-wide .card__title { font-size: 32px; }

.pagination { margin-top: var(--s7); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 700;
}
a.page-numbers:hover { border-color: var(--ruby); }
.page-numbers.current { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.page-numbers.dots { background: none; border: 0; min-width: 20px; padding: 0; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); margin-top: var(--s5); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.filters__field { display: grid; gap: 4px; flex: 0 1 180px; }
.filters__field--grow { flex: 1 1 260px; }
.filters label { color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.filters input, .filters select { width: 100%; }
.result-count { margin-top: var(--s4); color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.result-list { display: grid; gap: var(--s5); }
.card--result { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.card--result .card__media { aspect-ratio: 3 / 2; }
.card--result .card__title { font-size: 21px; line-height: 1.28; }
.empty { padding: var(--s7) var(--s5); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.empty h2 { font-size: 22px; font-weight: 800; }
.empty p { margin: var(--s2) 0 var(--s5); color: var(--ink-2); }
.empty .search-form { max-width: 520px; margin: 0 auto; }

.notfound { margin-top: var(--s7); max-width: 720px; text-align: center; }
.notfound__code { color: var(--ruby); font-family: var(--serif); font-size: 96px; font-weight: 700; line-height: 1; }
.notfound .page-head__desc { margin: var(--s3) auto var(--s5); }
.notfound .search-form { margin-bottom: var(--s5); }

/* ==========================================================================
   7. Article
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 3px; pointer-events: none; margin: 0 !important; }
.progress span { display: block; width: 0; height: 100%; background: var(--ruby); }
.admin-bar .progress { top: 32px; }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); align-items: start; margin-top: var(--s6); }
.page-wrap { margin-top: var(--s6); max-width: 860px; }
.article { min-width: 0; }
.article__head { max-width: 820px; }
.article__kickers:empty { display: none; }
.article__kickers { margin-bottom: var(--s3); }
.article__title { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.14; letter-spacing: -.02em; }
.article__lede { margin-top: var(--s4); color: var(--ink-2); font-size: 21px; line-height: 1.5; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article__avatar { width: 44px; height: 44px; border-radius: 50%; }
.article__meta-text { display: grid; gap: 2px; flex: 1 1 240px; min-width: 0; }
.article__author { font-size: 15px; font-weight: 800; }
.article__dates { color: var(--ink-2); font-size: 13.5px; }
.article__dates .sep { margin: 0 4px; }
.share { position: relative; display: flex; align-items: center; gap: 8px; }
.share__msg { position: absolute; right: 0; top: calc(100% + 6px); padding: 6px 10px; background: var(--ink); color: #fff; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.share__msg:empty { display: none; }

.article__figure { margin-top: var(--s5); }
.article__figure .p24-img { width: 100%; border-radius: var(--r); }
.article__figure figcaption { margin-top: 8px; color: var(--ink-3); font-size: 13.5px; }

.prose { max-width: 740px; margin-top: var(--s6); color: #20242E; font-size: 19px; line-height: 1.75; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.2em; }
.prose a { color: var(--ruby-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ruby); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.7em; color: var(--ink); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 23px; }
.prose h4 { font-size: 19px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ruby); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ruby); color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.5; }
.prose blockquote p + p { margin-top: .7em; }
.prose blockquote cite { display: block; margin-top: 10px; color: var(--ink-2); font-family: var(--sans); font-size: 14px; font-style: normal; font-weight: 600; }
.prose img { height: auto; border-radius: var(--r-sm); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption, .prose .wp-caption-text { margin-top: 8px; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.prose .wp-caption { max-width: 100%; }
.prose iframe, .prose video, .prose embed, .prose object { max-width: 100%; border: 0; border-radius: var(--r-sm); }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prose .gallery-item { margin: 0; }
.prose .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose .wp-block-gallery { gap: 8px; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin-top: var(--s5); font-weight: 700; }

.is-opinion .prose { font-family: var(--serif); font-size: 19.5px; }
.is-opinion .prose > p:first-of-type::first-letter { float: left; margin: .08em .1em 0 0; color: var(--ruby); font-size: 3.4em; font-weight: 700; line-height: .82; }

.source { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 740px; margin-top: var(--s6); padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--r-sm); font-size: 15px; font-weight: 600; }
.source__label { color: var(--ink-3); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.source a { text-decoration: underline; text-underline-offset: 3px; }
.related { margin-top: var(--s7); }

.comments { max-width: 740px; margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.comments__title, .comment-reply-title { margin-bottom: var(--s4); font-size: 22px; font-weight: 900; }
.comments__list { display: grid; gap: var(--s4); margin-bottom: var(--s6); }
.comments__list .comment-body { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15.5px; }
.comments__list .children { margin: var(--s4) 0 0 var(--s5); display: grid; gap: var(--s4); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { margin: 4px 0 8px; color: var(--ink-3); font-size: 12.5px; }
.comment-form { display: grid; gap: var(--s3); }
.comment-form label { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.comment-form textarea { width: 100%; min-height: 130px; padding: 12px 18px; border-radius: var(--r); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; }
.comment-notes { color: var(--ink-3); font-size: 13.5px; }

/* Widgets */
.widget-title { margin-bottom: var(--s3); font-size: 18px; font-weight: 900; }
.aside__widgets { display: grid; gap: var(--s5); }
.aside__widgets .widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.aside__widgets .widget li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #FF8FA3; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--s7); padding-top: var(--s8); padding-bottom: var(--s7); }
.site-footer__tag { max-width: 34ch; margin-top: var(--s4); }
.site-footer__h { margin-bottom: var(--s4); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__col li + li { margin-top: 10px; }
.site-footer__col a { font-weight: 500; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: var(--s4) 0; font-size: 13.5px; }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .primary-nav .menu > li > a { padding-left: 9px; padding-right: 9px; font-size: 13px; }
  .primary-nav .menu > li > a::after { left: 9px; right: 9px; }
  .with-aside, .article-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); }
  .hero__main .card__title { font-size: 31px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 56px; }
  .topbar { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; }
  .masthead { justify-content: space-between; gap: var(--s2); }
  .masthead__logo { flex: 1 1 auto; display: flex; justify-content: center; }
  .wordmark__text { font-size: 28px; }
  .search-toggle { margin-right: -10px; }
  .admin-bar .site-header { top: 46px; }

  .with-aside, .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 380px 200px 170px; }
  .hero__main { grid-column: 1 / -1; grid-row: auto; }
  .hero--1, .hero--2, .hero--3, .hero--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 380px; grid-auto-rows: 190px; }
  .hero--4 .hero__small { grid-column: 1 / -1; }
  .pulse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse__grid .card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horoscope__in { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .article__title { font-size: 36px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --s7: 36px; --s8: 44px; }
  .site-main > * + * { margin-top: var(--s7); }
  .ticker__in { gap: var(--s3); }
  .ticker__list { gap: var(--s5); }

  .hero { gap: 10px; margin-top: var(--s4); grid-template-rows: 340px 170px 150px; }
  .hero--1, .hero--2, .hero--3, .hero--4 { grid-template-rows: 340px; grid-auto-rows: 170px; }
  .hero__main .card__body { padding: 18px; }
  .hero__main .card__title { font-size: 25px; line-height: 1.2; }
  .hero__mid .card__title, .card--overlay .card__title { font-size: 14.5px; }
  .hero .card--overlay:not(.hero__main) .card__title { font-size: 14px; line-height: 1.26; }
  .card--overlay .card__body { padding: 12px; }
  .hero .card--overlay:not(.hero__main) .kicker { display: none; }

  .pulse { margin-left: var(--gutter); margin-right: var(--gutter); padding: var(--s4); }
  .pulse__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pulse__grid .card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
  .pulse__grid .card + .card { border-left: 0; padding-left: 0; }
  .pulse__grid .card__body { display: contents; }
  .pulse__grid .card__num { grid-row: span 2; font-size: 22px; }
  .pulse__grid .kicker { margin-bottom: 2px; }

  .section-head__title { font-size: 21px; }
  .lead-grid, .duo, .duo--wide-left, .duo--wide-right { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .card--lead .card__title { font-size: 23px; }
  .card--feature .card__title { font-size: 20px; }
  .mag-grid, .mag-grid--2 { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .card--tall { aspect-ratio: 16 / 11; }
  .grid { gap: var(--s4); }
  .grid--media .card--overlay { aspect-ratio: 4 / 5; }
  .zodiac { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .zodiac a { min-height: 72px; font-size: 12px; }
  .opinion__title { font-size: 17.5px; }

  .page-head { margin-top: var(--s5); }
  .page-head__title { font-size: 30px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; min-height: 44px; }
  .chips--tags { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
  .grid--list { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .grid--list .card--stack { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding-top: var(--s4); border-top: 1px solid var(--line); }
  .grid--list .card--stack .card__media { aspect-ratio: 4 / 3; margin: 0; }
  .grid--list .card--stack .card__title { font-size: 15.5px; }
  .card--lead-wide { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-bottom: 0; border: 0; }
  .card--lead-wide .card__title { font-size: 24px; }
  .card--lead-wide .card__excerpt { display: none; }
  .card--result { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .card--result .card__title { font-size: 16px; }
  .card--result .card__excerpt { display: none; }
  .filters__field { flex: 1 1 140px; }
  .filters .btn { width: 100%; }

  .article-wrap { margin-top: var(--s5); }
  .article__title { font-size: 28px; line-height: 1.2; }
  .article__lede { font-size: 18.5px; }
  .article__meta { gap: var(--s3); }
  .share { width: 100%; }
  .article__figure { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .article__figure .p24-img { border-radius: 0; }
  .article__figure figcaption { padding: 0 var(--gutter); }
  .prose { font-size: 18px; line-height: 1.7; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 21px; }
  .prose blockquote { font-size: 19.5px; padding-left: 16px; }
  .alignleft, .alignright { float: none; margin: 1em 0; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .notfound__code { font-size: 72px; }
  .admin-bar .site-header, .admin-bar .progress { top: 46px; }
}

@media (max-width: 380px) {
  .hero__main .card__title { font-size: 23px; }
  .article__title { font-size: 26px; }
  .zodiac { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media print {
  .topbar, .site-header, .ticker, .drawer, .aside, .ad-slot, .share, .related, .site-footer, .progress, .comments { display: none !important; }
  .article-wrap { display: block; }
  body { background: #fff; }
}

/* Most read (shown only when the Newsroom plugin has real view data) */
.ranked-list { counter-reset: rank; }
.ranked-list li { counter-increment: rank; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ranked-list li:last-child { border: 0; padding-bottom: 0; }
.ranked-list li::before { content: counter(rank, decimal-leading-zero); color: var(--ruby); font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.15; }
.ranked-list a { font-size: 14.5px; font-weight: 600; line-height: 1.4; }