/* /digest — стили раздела дайджеста (токены сайта из style.css).
   Интервалы внутри карточек наследуются от базового .card (padding 22px, gap 12px — как на /artifacts);
   здесь только специфика дайджеста. Версия файла — ?v= в разметке страниц. */
.digest-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.digest-card { scroll-margin-top: 96px; }
.digest-card blockquote.take { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--orange, #e85d2f); background: var(--bg-soft, #eceef1); border-radius: 0 8px 8px 0; }
.digest-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-faint, #5a6672); margin-top: 10px; }
.digest-meta .badge, .digest-topics .badge { display: inline-block; padding: 2px 10px; border: 1px solid var(--border, #d9dee4); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-muted, #3f4a56); text-decoration: none; }
a.badge:hover { border-color: var(--accent, #1a4fd6); color: var(--accent, #1a4fd6); }
.digest-meta .count, .digest-topics .count { color: var(--text-faint, #5a6672); font-weight: 400; }
.digest-meta .via { font-style: italic; }
.digest-nav { margin-top: 26px; }
.digest-news { max-width: 860px; padding-top: 0; }
/* «Мнение» на странице новости — тот же вид, что в карточках выпуска (blockquote.take) */
.digest-news blockquote.take { margin: 14px 0 16px; padding: 10px 16px; border-left: 3px solid var(--orange, #e85d2f);
  background: var(--bg-soft, #eceef1); border-radius: 0 8px 8px 0; }
/* текст новости: глобальный сброс margin (style.css) обнуляет и абзацы — верни интервалы */
.digest-news p { margin: 0 0 14px; line-height: 1.65; }
.digest-news ul { margin: 0 0 14px; }
/* подзаголовки текста новости — в масштабе новости, не как h2 длинных статей (.prose h2 25px/44px) */
.digest-news h2 { font-family: var(--display, Spectral, serif); font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em; margin: 28px 0 10px; }
/* фото исходного поста: одна — на всю ширину колонки, несколько — сеткой с автопереносом;
   каждое — ссылка на полноразмерный файл (курсор zoom-in подсказывает разворот) */
.digest-news .news-fig { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px; margin: 4px 0 16px; }
.digest-news .news-fig a { display: block; cursor: zoom-in; }
.digest-news .news-fig img { width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--border-soft, #d8dde3); }
/* лайтбокс фото (digest.js создаёт dialog.lb): тёмный фон, картинка вписана в экран,
   поверх — счётчик альбома и кнопки листания; Esc и клик по фону закрывают */
dialog.lb { border: none; background: transparent; padding: 0; max-width: none;
  max-height: none; }
dialog.lb::backdrop { background: rgba(10, 13, 18, 0.93); }
dialog.lb img { display: block; max-width: 96vw; max-height: 88vh; width: auto; height: auto;
  border-radius: 8px; }
.lb-count { position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  color: #e7ecf2; font-size: 14px; letter-spacing: 0.04em; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 56px;
  border: none; border-radius: 10px; background: rgba(231, 236, 242, 0.08);
  color: #e7ecf2; font-size: 34px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(231, 236, 242, 0.18); }
.lb-prev { left: max(12px, env(safe-area-inset-left)); }
.lb-next { right: max(12px, env(safe-area-inset-right)); }
/* подписка на дайджест — текстовые кнопки (Text button): без обводки и заливки,
   при наведении — лёгкая подложка и цвет текста; не путаются с чипами тем */
.d-social { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; margin-left: -12px; }
.d-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 12px;
  border: none; border-radius: 8px; background: transparent; color: var(--text-muted);
  font-size: 14.5px; font-weight: 600; transition: color 0.2s, background-color 0.2s; }
.d-btn:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.d-btn:active { transform: scale(0.97); }
.d-btn svg { width: 19px; height: 19px; flex: none; }
/* раскрытие скрытых тем: нативная раскрывашка. display:contents вливает summary и открытые
   чипы в общий поток nav — кнопка не меняет положения при открытии (gap достаётся от .g-chips) */
.g-more { display: contents; }
.g-more summary { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 8px;
  border: 1px dashed var(--border-strong); background: transparent; color: var(--text-muted);
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.g-more summary::-webkit-details-marker { display: none; }
.g-more summary:hover { border-color: var(--orange); color: var(--text); }
.g-more[open] summary { border-style: solid; color: var(--text); }
.feed-day { display: flex; align-items: baseline; gap: 14px; margin: 38px 0 16px; }
.feed-day h2 { font-family: var(--display, Spectral, serif); font-size: 21px; margin: 0; letter-spacing: -0.01em; }
.feed-day::after { content: ""; flex: 1; height: 1px; background: var(--border, #d9dee4); }
.feed-day-count { font-size: 13px; color: var(--text-faint, #5a6672); white-space: nowrap; }
/* карточка кликабельна целиком (stretched link); мета-ссылки — поверх оверлея */
.digest-card .card-title a { color: inherit; text-decoration: none; transition: color .2s; }
.digest-card .card-title a::after { content: ""; position: absolute; inset: 0; }
.digest-card:hover .card-title a, .digest-card:focus-within .card-title a { color: var(--accent, #1a4fd6); }
.digest-meta a { position: relative; z-index: 1; }
/* фирменный hover сайта (как a.card на /gallery): цветная тень + градиентная обводка */
.digest-card:hover, .digest-card:focus-within {
  border-color: transparent;
  box-shadow: 0 24px 50px -22px var(--berry-a35), 0 10px 24px -12px var(--orange-a30);
}
.digest-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
  -webkit-mask: linear-gradient(var(--black) 0 0) content-box, linear-gradient(var(--black) 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.digest-card:hover::after, .digest-card:focus-within::after { opacity: 1; }
a.feed-date { color: var(--text-faint, #5a6672); text-decoration: none; font-weight: 600; }
a.feed-date:hover { color: var(--accent, #1a4fd6); }
.feed-pager { display: flex; gap: 24px; justify-content: center; }
.feed-pager a { padding: 6px 10px; }
.digest-archive { line-height: 2; }
/* архив выпусков календарём: месяцы сетками дней, дни с выпусками — ссылки */
.digest-calendar { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.cal { min-width: 0; }
.cal-month { font-size: 15px; font-weight: 600; color: var(--text, inherit); margin: 0 0 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 38px); gap: 4px; }
.cal-day { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px;
  border: 1px solid var(--border, #d9dee4); background: var(--card, inherit); color: var(--text-muted, #3f4a56);
  font-size: 13.5px; font-weight: 600; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
a.cal-day:hover { border-color: var(--orange, #e85d2f); color: var(--text, inherit); text-decoration: none; }
.cal-day.off { border: none; background: none; color: var(--text-faint, #5a6672); font-weight: 400; }
.cal-pad { }
.digest-archive a { color: var(--accent, #1a4fd6); text-decoration: none; font-weight: 600; }
.digest-archive a:hover { text-decoration: underline; }
.page-head .eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--peach-soft, #f0b290); margin: 0 0 10px; }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
/* видеоплеер в новости: дефолт — российский хостинг, переключатель лениво подменяет src */
.video-player { margin: 0 0 4px; }
.vp-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.vp-tab { font: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted, #3f4a56); background: none; border: 1px solid var(--border, #d9dee4); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.vp-tab:hover { border-color: var(--accent, #1a4fd6); color: var(--accent, #1a4fd6); }
.vp-tab.is-active { border-color: transparent; background: var(--ink, #12161c); color: var(--snow, #fff); }
.vp-open { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent, #1a4fd6); text-decoration: none; }
.vp-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border, #d9dee4); background: var(--ink, #12161c); }
.vp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
