/* ==========================================================================
   Wideworks — раздел «Новости» (ohio-child/assets/news.css)
   Область действия: .ww-news. Цвет рубрики приходит в --rubric / --rubric-ink.
   Шрифт GT Walsheim: 400 regular, 500 medium, 600 bold, 800 black. Заголовки — 500/600, не 800.
   ========================================================================== */
.ww-news {
  --ink: #16151a;
  --text: #2b2a30;
  --muted: #77767c;
  --line: #e8e7ea;
  --paper: #fafafa;    /* фон как на остальном сайте (.site-content = #fafafa) */
  --yellow: #f8d447;
  --blue: #1269fb;
  --rubric: var(--yellow);
  --rubric-ink: var(--ink);
  --measure: 960px;    /* текстовая колонка, по центру контейнера */
  --wide: 1268px;      /* контейнер сайта: .page-container 1300 − 2×16 */
  --head-offset: 128px;   /* шапка Ohio 108px + 20px воздуха */
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--head-offset);
  font-family: "GT Walsheim Pro", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
}
body.ww-news-page .site-content { background: #fafafa; }
.ww-news .page-container { max-width: 1300px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.ww-news a { color: inherit; background-image: none !important; animation: none !important; }
.ww-news h1, .ww-news h2, .ww-news h3, .ww-news h4 { font-weight: 500; }

/* --- Мета: рубрика · дата · время --- */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; font-weight: 400; color: var(--muted); }
.news-rubric {
  display: inline-block; padding: 5px 10px 4px; border-radius: 999px;
  background: var(--rubric) !important; color: var(--rubric-ink) !important;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none !important;
}
.news-rubric:hover { filter: brightness(.95); }

/* --- Single: шапка --- */
.ww-news .news-hero { padding-bottom: clamp(24px, 3vw, 36px); margin-bottom: 0; }
.ww-news .news-hero > * { max-width: var(--measure); margin-left: auto !important; margin-right: auto !important; }
.ww-news .news-title {
  margin: 18px auto 18px; font-weight: 600;
  font-size: clamp(28px, 3.3vw, 46px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance;
}
.ww-news .news-lead { margin: 0 auto; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--text); }

/* --- Тело статьи --- */
.ww-news .news-body { max-width: var(--measure); margin: 0 auto; padding: 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--text); }
.ww-news .news-body > * { margin-top: 0; margin-bottom: 1.4em; }
.ww-news .news-body p:empty { display: none; }
.ww-news .news-body a:not(.news-src-back) { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(22,21,26,.3); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .15s, color .15s; }
.ww-news .news-body a:not(.news-src-back):hover { color: var(--blue); text-decoration-color: var(--blue); }
.ww-news .news-body strong { font-weight: 600; color: var(--ink); }
.ww-news .news-body h2, .ww-news .news-body h3, .ww-news .news-body h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.015em; margin-top: 2.4em; margin-bottom: .7em; }
.ww-news .news-body h2 { font-size: clamp(20px, 1.5vw, 23px); font-weight: 600; }
.ww-news .news-body h3 { font-size: clamp(19px, 1.4vw, 21px); font-weight: 600; }
.ww-news .news-body h4 { font-size: 18px; font-weight: 600; }
.ww-news .news-body h2:first-child, .ww-news .news-body h3:first-child { margin-top: 0; }
.ww-news .news-h2.-num { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: baseline; }
.ww-news .news-num { font-size: 13px; font-weight: 600; color: var(--rubric-ink); background: var(--rubric); padding: 4px 8px 3px; border-radius: 4px; letter-spacing: .02em; font-variant-numeric: tabular-nums; position: relative; top: -2px; }

/* Списки: маркированный — точка в цвете рубрики, нумерованный — номер в кружке */
.ww-news .news-body ul, .ww-news .news-body ol { list-style: none; padding-left: 0; margin-bottom: 1.6em; }
.ww-news .news-body li { position: relative; margin-bottom: .55em; padding-left: 1.7em; }
.ww-news .news-body ul > li::before { content: ""; position: absolute; left: .3em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--rubric); border: 1px solid rgba(22,21,26,.12); }
.ww-news .news-body ol { counter-reset: news-ol; }
.ww-news .news-body ol > li { counter-increment: news-ol; padding-left: 2.4em; }
.ww-news .news-body ol > li::before { content: counter(news-ol); position: absolute; left: 0; top: .2em; width: 1.7em; height: 1.7em; border-radius: 50%; color: #444746; font-size: .7em; letter-spacing: -.1em; font-weight: 600; line-height: 1.5em; text-align: center; font-variant-numeric: tabular-nums; }
/* Список сразу после заголовка «Що з цим робити / What to do» — карточки-шаги */
.ww-news .news-body .news-steps { display: grid; gap: 12px; margin: 1.2em 0 2.2em; }
.ww-news .news-body .news-steps > li { padding: 18px 20px 18px 64px; border: 1px solid var(--line); border-radius: 10px; margin: 0; background: #fff; }
.ww-news .news-body .news-steps > li::before { left: 18px; top: 16px; width: 30px; height: 30px; line-height: 30px; font-size: 13px; }
.ww-news .news-body .news-steps > li strong { display: block; margin-bottom: 2px; }
/* Вложенные списки */
.ww-news .news-body li > ul, .ww-news .news-body li > ol { margin: .6em 0 0; }
.ww-news .news-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
/* Картинки. По умолчанию — в текстовую колонку; alignwide и alignfull из редактора — на весь контейнер
   сайта (1268px), как лента и остальные страницы; aligncenter / alignleft / alignright — как в WordPress. */
.ww-news .news-body img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
.ww-news .news-body figure, .ww-news .news-body .wp-block-image, .ww-news .news-body .wp-block-gallery, .ww-news .news-body .wp-block-video, .ww-news .news-body .wp-block-embed { margin: 2.2em auto; }
.ww-news .news-body figcaption, .ww-news .news-body .wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.45; text-align: left; }
.ww-news .news-body .alignwide, .ww-news .news-body .alignfull, .ww-news .news-body .size-full.alignnone { width: var(--wide); max-width: var(--wide); margin-left: calc(50% - var(--wide) / 2); margin-right: calc(50% - var(--wide) / 2); }
.ww-news .news-body .alignwide img, .ww-news .news-body .alignfull img { width: 100%; }
.ww-news .news-body .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.ww-news .news-body .aligncenter img { margin: 0 auto; }
.ww-news .news-body .alignleft { float: left; margin: .4em 28px 1.2em 0; max-width: 48%; }
.ww-news .news-body .alignright { float: right; margin: .4em 0 1.2em 28px; max-width: 48%; }
.ww-news .news-body::after { content: ""; display: table; clear: both; }
.ww-news .news-body .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ww-news .news-body .wp-block-gallery figure { margin: 0; }
@media (max-width: 1340px) { .ww-news .news-body .alignwide, .ww-news .news-body .alignfull, .ww-news .news-body .size-full.alignnone { width: calc(100vw - 32px); max-width: calc(100vw - 32px); margin-left: calc(50% - 50vw + 16px); margin-right: calc(50% - 50vw + 16px); } }
@media (max-width: 640px) { .ww-news .news-body .alignleft, .ww-news .news-body .alignright { float: none; max-width: 100%; margin: 1.6em 0; } }

/* Таблицы статистики */
.ww-news .news-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; margin: 2em 0; font-variant-numeric: tabular-nums; }
.ww-news .news-body th, .ww-news .news-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ww-news .news-body th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); }
.ww-news .news-body td:last-child, .ww-news .news-body th:last-child { text-align: right; }

/* Цитата с подписью */
.ww-news .news-quote, .ww-news .news-body > blockquote { margin: 2.2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--rubric); }
.ww-news .news-quote blockquote, .ww-news .news-body blockquote { margin: 0; padding: 0; border: 0; background: none; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.6; font-weight: 400; color: var(--ink); font-style: normal; }
.ww-news .news-body blockquote p { margin: 0 0 .9em; }
.ww-news .news-body blockquote p:last-child { margin-bottom: 0; }
.ww-news .news-quote figcaption { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Врезка «Що це означає» */
.ww-news .news-callout { margin: 1.6em 0 2.2em; padding: 16px 20px 16px; border-radius: 8px; background: #f1f0f4; font-size: 15px; line-height: 1.6; color: var(--text); }
.ww-news .news-callout__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ww-news .news-callout p { margin: 0; }
.ww-news .news-callout.-ua { background: #fffbe6; border-left: 3px solid var(--yellow); box-shadow: inset 0 0 0 0 transparent; position: relative; }
.ww-news .news-callout.-ua::before { content: ""; position: absolute; left: -3px; top: 0; height: 50%; width: 3px; background: var(--blue); border-radius: 8px 0 0 0; }
.ww-news .news-callout.-ua .news-callout__label { color: #5a4a00; }
.ww-news .news-callout + .news-callout { margin-top: -1em; }

/* Секция «А що в Україні» */
.ww-news .news-ukraine { position: relative; margin: 3em 0 2.6em; padding: 2px 0 2px 24px; border-left: 3px solid var(--yellow); }
.ww-news .news-ukraine::before { content: ""; position: absolute; left: -3px; top: 0; width: 3px; height: 50%; background: var(--blue); }
.ww-news .news-ukraine .news-h2.-ukraine { margin-top: 0; }

/* Сноски и источники */
.ww-news .news-ref { font-size: .62em; line-height: 0; vertical-align: super; font-weight: 500; background-color: bisque; }
.ww-news .news-ref a { color: var(--blue); padding: 0; text-decoration: none !important; }
.ww-news .news-ref a:hover { color: var(--ink); }
.ww-news .news-sources { max-width: var(--measure); margin: 3.2em auto 0; padding: 1.6em 16px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--text); }
.ww-news .news-sources h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2em; font-weight: 600; }
.ww-news .news-sources ol { list-style: none; counter-reset: src; padding: 0; margin: 0; }
.ww-news .news-sources li { counter-increment: src; position: relative; padding-left: 2.3em; margin-bottom: .55em; min-height: 1.6em; }
.ww-news .news-sources li::before { content: counter(src); position: absolute; left: 0; top: .05em; width: 1.6em; height: 1.6em; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 11px; font-weight: 500; line-height: 1.6em; text-align: center; font-variant-numeric: tabular-nums; }
.ww-news .news-sources li:target { background: #fff7cc; outline: 6px solid #fff7cc; border-radius: 2px; }
.ww-news .news-sources a:not(.news-src-back) { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(22,21,26,.25); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ww-news .news-sources a:not(.news-src-back):hover { color: var(--blue); text-decoration-color: var(--blue); }
.ww-news .news-src-back { float: right; margin-left: 12px; text-decoration: none !important; color: var(--muted); font-size: 12px; opacity: .8; }
.ww-news .news-src-back:hover { color: var(--ink); }
.ww-news :target { scroll-margin-top: 120px; }

/* Кнопки-пилюли (шаринг, читать, табы, пагинация) — один стиль, ховер без «бреда» темы */
.ww-news .news-pill, .ww-news .news-share a, .ww-news .news-copy, .ww-news .news-tabs a, .ww-news .news-pagination .page-numbers, .ww-news .news-card__more {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.2; letter-spacing: 0;
  background: #fff !important; color: var(--ink) !important; text-decoration: none !important; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.ww-news .news-share a:hover, .ww-news .news-copy:hover, .ww-news .news-tabs a:hover, .ww-news .news-pagination a.page-numbers:hover, .ww-news .news-card__more:hover {
  border-color: var(--ink);
}
.ww-news .news-tabs a[aria-current], .ww-news .news-pagination .page-numbers.current { background: var(--ink) !important; color: #fff !important; border-color: var(--ink); }
.ww-news .news-tabs a[style][aria-current] { background: var(--rubric) !important; color: var(--rubric-ink) !important; border-color: var(--rubric); }
.ww-news .news-pagination .page-numbers.dots { border: 0; }

/* Подвал статьи */
.ww-news .news-foot { max-width: var(--measure); margin: 3em auto 0; padding: 1.6em 16px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.ww-news .news-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ww-news .news-share__label { font-size: 13px; font-weight: 500; margin-right: 4px; color: var(--muted); }
.ww-news .news-tags a { font-size: 13px; color: var(--muted); margin-right: 10px; text-decoration: none; }
.ww-news .news-tags a::before { content: "#"; }

/* Prev / next */

/* Заголовки секций, лента */
.ww-news .news-section-title { font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.015em; margin: 0 0 28px; }
.ww-news .news-related { margin-top: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 80px); padding: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 36px); background: #f1f0f4; border-radius: 12px; }
.ww-news .news-related .news-card__media { background: var(--rubric); }
.ww-news .news-related .news-card__more { background: #fff !important; }
.ww-news .news-index__head { padding-bottom: clamp(12px, 1.6vw, 20px); }
.ww-news .news-index__kicker { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.ww-news .news-index__title { margin: 0 0 6px; font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.025em; }
.ww-news .news-index__intro { max-width: 680px; margin: 0 0 8px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--text); }
.ww-news .news-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.ww-news .news-feed.-loading { opacity: .45; transition: opacity .2s; pointer-events: none; }

.ww-news .news-feed { padding-bottom: clamp(40px, 5vw, 80px); }
/* Сетка: 3 колонки, но уже общего контейнера и с широкими промежутками —
   яркие обложки не сливаются в сплошное цветное полотно.
   Ширина сетки (max-width), а не padding контейнера: иначе съехала бы и hero-карточка. */
.ww-news .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px 100px; }
@media (max-width: 1240px) { .ww-news .news-grid { gap: 40px 56px; } }
@media (max-width: 900px)  { .ww-news .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; } }
@media (max-width: 600px)  { .ww-news .news-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Карточка */
.ww-news .news-card { display: flex; flex-direction: column; }
.ww-news .news-card__media { display: block; position: relative; overflow: hidden; border-radius: 8px; background: var(--rubric); color: var(--rubric-ink); aspect-ratio: 1200 / 630; }
.ww-news .news-card.-has-image .news-card__media { background: none; }   /* картинка заменяет цветной блок целиком */
.ww-news .news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ww-news .news-card:hover .news-card__media img { transform: scale(1.02); }
.ww-news .news-card__type { position: absolute; left: 0; bottom: 0; padding: 0 16px 14px; font-weight: 500; letter-spacing: -.02em; line-height: 1; font-size: clamp(16px, 1.3vw, 20px); opacity: .9; }
.ww-news .news-card__body { padding-top: 14px; }
.ww-news .news-card .news-meta { font-size: 12.5px; }
.ww-news .news-card__title { margin: 12px 0 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.3; letter-spacing: -.01em; font-weight: 500; }
.ww-news .news-card__title a { text-decoration: none !important; color: var(--ink) !important; transition: color .15s; }
.ww-news .news-card:hover .news-card__title a { color: var(--blue) !important; }
.ww-news .news-card__lead { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ww-news .news-card__more { align-self: flex-start; }
.ww-news .news-card:hover .news-card__more { border-color: var(--ink); }

/* Hero-карточка: картинка слева, компактный текст справа */
.ww-news .news-card.-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 56px; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.ww-news .news-card.-hero .news-card__media { aspect-ratio: 1200 / 630; }
.ww-news .news-card.-hero .news-card__type { font-size: clamp(20px, 1.8vw, 26px); padding: 0 28px 24px; }
.ww-news .news-card.-hero .news-card__body { padding-top: 0; }
.ww-news .news-card.-hero .news-card__title { font-size: clamp(22px, 2vw, 30px); line-height: 1.22; margin: 14px 0 14px; font-weight: 500; }
.ww-news .news-card.-hero .news-card__lead { font-size: clamp(15px, 1.15vw, 17px); -webkit-line-clamp: 4; margin-bottom: 22px; }
@media (max-width: 900px) { .ww-news .news-card.-hero { grid-template-columns: 1fr; gap: 20px; } }

/* Пагинация */
.ww-news .news-pagination { margin-top: 48px; display: flex; justify-content: center; }
.ww-news .news-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ww-news .news-empty { padding: 20px 0 60px; color: var(--muted); }

/* Мобильные */
@media (max-width: 640px) {
  .ww-news { --head-offset: 104px; }
  .ww-news .news-body { font-size: 16px; line-height: 1.6; }
  .ww-news .news-body, .ww-news .news-sources, .ww-news .news-foot, .ww-news .page-container { padding-left: 20px; padding-right: 20px; }
}
@media print { .ww-news .news-share, .ww-news .news-nav, .ww-news .news-related, .ww-news .news-tabs { display: none; } }
