/* Версия для сайта: оформление ленты. Без внешних шрифтов и картинок. */
:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1c1f24; --mute: #5d6470; --line: #dcd9d0;
  --profil: #1f5f8b; --fintech: #2f7d4f; --sanctions: #9a4a1c; --warn: #8a6100; --focus: #0b57d0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171a; --card: #1e2125; --ink: #e9e7e1; --mute: #a0a6b0; --line: #33373d;
          --profil: #7bb8e0; --fintech: #7fcf9c; --sanctions: #e7a071; --warn: #e2bf5f; --focus: #8ab4f8; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.issue, .feed, .hint, .bottom { max-width: 780px; margin: 0 auto; padding: 0 16px; }
/* Задание 045: шапка закреплена сверху; заголовок слева, переключатели папок и «Закладки» справа */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line);
       box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.bar { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap;
       align-items: center; justify-content: space-between; gap: 8px 20px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; }
.issue { margin-top: 12px; margin-bottom: 4px; color: var(--mute); font-size: 0.9rem; }
.folders { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-count { margin-left: 6px; font-size: 0.8rem; font-weight: 400; color: var(--mute); font-variant-numeric: tabular-nums; }
.btn-count:empty { display: none; }
html { scroll-padding-top: 140px; }
.mixed { margin-top: 12px; }
.mixed-caption { margin: 8px 0 0; color: var(--mute); font-size: 0.85rem; }
.day { margin: 22px 0 4px; font-size: 0.95rem; font-weight: 600; color: var(--mute);
       display: flex; align-items: center; gap: 10px; }
.day::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.folder-btn { border: 1.5px solid var(--line); background: transparent; border-radius: 999px;
              padding: 7px 14px; min-height: 40px; color: var(--mute); }
.folder-btn.on { background: var(--card); color: var(--ink); font-weight: 600; }
.folder-btn.on.folder-profil { border-color: var(--profil); }
.folder-btn.on.folder-fintech { border-color: var(--fintech); }
.folder-btn.on.folder-sanctions { border-color: var(--sanctions); }
.folder-btn.on::before { content: "✓ "; }
.view-btn { border: 0; background: none; padding: 6px 0; color: var(--focus);
            text-decoration: underline; text-underline-offset: 3px; }
.hint { margin-top: 16px; }
.hint:not([hidden]) { display: block; border: 1px solid var(--line); border-left: 4px solid var(--warn);
        border-radius: 8px; background: var(--card); padding: 12px 16px; max-width: 748px; }
.hint-title { margin: 0 0 6px; font-weight: 600; }
.hint-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hint-row .hint-title { margin: 0; }
.hint-row .hint-toggle { margin: 0; flex: none; }
.hint-body { margin-top: 10px; }
.hint-sub { margin: 0 0 6px; font-weight: 600; }
.hint-steps { margin: 0 0 8px; padding-left: 20px; }
.hint-note { margin: 0 0 8px; color: var(--mute); font-size: 0.9rem; }
.hint-btn { border: 1px solid var(--line); background: transparent; border-radius: 6px;
            padding: 5px 10px; margin-right: 8px; font-size: 0.9rem; }
.folder { margin-top: 28px; }
.folder-title { margin: 0 0 10px; font-size: 1.15rem; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.folder-profil .folder-title { border-color: var(--profil); }
.folder-fintech .folder-title { border-color: var(--fintech); }
.folder-sanctions .folder-title { border-color: var(--sanctions); }
.count { margin-left: 8px; color: var(--mute); font-weight: 400; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.empty { color: var(--mute); margin: 10px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
        padding: 14px 16px; margin: 10px 0; overflow-wrap: anywhere; }
.pair { border-left: 3px solid var(--line); padding-left: 10px; margin: 14px 0; }
.pair-caption { margin: 0; color: var(--mute); font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { font-size: 0.75rem; line-height: 1.5; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; color: var(--mute); }
.tag-profil { color: var(--profil); border-color: var(--profil); }
.tag-fintech { color: var(--fintech); border-color: var(--fintech); }
.tag-sanctions { color: var(--sanctions); border-color: var(--sanctions); }
.label { color: var(--warn); border-color: var(--warn); }
.card-title { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.35; text-wrap: balance; }
.card-title a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
.card-title a:hover { text-decoration-color: currentColor; }
.meta { margin: 0 0 8px; color: var(--mute); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.date { font-variant-numeric: tabular-nums; }
.summary { margin: 0 0 10px; }
.attribution { margin: 0 0 10px; color: var(--mute); font-size: 0.8rem; font-style: italic; }
.keep { white-space: nowrap; }
.card-foot { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.85rem; color: var(--mute); }
.detail { color: var(--focus); }
.score { font-variant-numeric: tabular-nums; }
.bookmark { margin-left: auto; border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 4px 10px; min-height: 32px; }
.bookmark.on { border-color: var(--focus); color: var(--focus); }
.bottom { margin-top: 36px; padding-bottom: 32px; color: var(--mute); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 14px; }
.bottom p { margin: 0 0 8px; }
@media (max-width: 480px) { .bookmark { margin-left: 0; } h1 { font-size: 1.2rem; }
  .bar { padding: 8px 12px; gap: 6px; } .controls { gap: 6px 8px; }
  .folder-btn { padding: 4px 10px; min-height: 34px; font-size: 0.85rem; } .view-btn { font-size: 0.85rem; } }
/* Страница «Условия и политика» */
.doc { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.doc h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.doc p, .doc li, .doc dd { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc dt { font-weight: 600; margin-top: 10px; }
.doc dd { margin: 2px 0 0; color: var(--mute); }
.draft { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border: 1px solid var(--warn); border-radius: 6px; color: var(--warn); font-size: 0.85rem; }
.bottom a, .issue a { color: var(--focus); text-underline-offset: 3px; }
/* Задание 047: раскрытие карточки — текст, адрес источника, окно */
.title-btn { all: unset; cursor: pointer; display: inline; text-decoration: underline; text-decoration-color: var(--line);
             text-underline-offset: 3px; }
.title-btn:hover { text-decoration-color: currentColor; }
.title-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.open-btn { border: 1px solid var(--focus); color: var(--focus); background: transparent; border-radius: 6px; padding: 4px 10px; min-height: 32px; }
.more { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.more[hidden] { display: none; }
.ft-head { margin: 14px 0 4px; font-size: 1rem; }
.ft-par { margin: 0 0 10px; max-width: 70ch; }
.note { margin: 0 0 10px; color: var(--mute); font-size: 0.85rem; }
.source-line { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 0.9rem; }
.src-url { user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
a.src-url { color: var(--focus); }
.copy-btn, .open-source { border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 4px 10px; min-height: 32px; font-size: 0.85rem; }
.open-source { display: inline-block; color: var(--focus); text-decoration: none; border-color: var(--focus); }
.frame-box iframe { width: 100%; height: 70vh; min-height: 320px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.frame-note { margin: 6px 0 0; color: var(--mute); font-size: 0.8rem; }
/* Задание 048: подгрузка суток и архив */
.more-wrap { text-align: center; margin: 22px 0; }
.more-btn { border: 1px solid var(--focus); color: var(--focus); background: transparent; border-radius: 6px; padding: 8px 18px; min-height: 40px; }
.more-btn:disabled { opacity: 0.5; cursor: default; }
.archive { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.a-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 12px 0; }
.a-field { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; color: var(--mute); }
.a-field select, .a-field input { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; min-height: 36px; }
.a-search { flex: 1 1 220px; }
.a-search input { width: 100%; }
#a-found { flex-basis: 100%; margin: 0; }
/* Задание 052: виды карточек, строки фактов, первоисточник */
.kind { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.kind-full { color: var(--fintech); border-color: var(--fintech); }
.kind-official { color: var(--profil); border-color: var(--profil); }
.kind-brief { color: var(--mute); }
.kind-teaser { color: var(--warn); border-color: var(--warn); }
.facts { margin: 0 0 10px; padding-left: 0; list-style: none; }
.facts li { margin: 3px 0; padding-left: 16px; position: relative; }
.facts li::before { content: "—"; position: absolute; left: 0; color: var(--mute); }
.same-story { margin: 6px 0 0; color: var(--mute); font-size: 0.85rem; }
.primary { margin: 8px 0 4px; }
.docsrc { margin: 0 0 4px; color: var(--mute); font-size: 0.85rem; }
.doc-par { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--line); font-size: 0.9rem; max-width: 70ch; }
.more-text { margin: 4px 0 8px; border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 4px 10px; min-height: 32px; font-size: 0.85rem; }
/* Заголовок-ссылка на файл PDF документа и пометка размера (задание 052б) */
.title-pdf{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.pdf-mark{display:inline-block;margin-left:8px;padding:1px 6px;border:1px solid currentColor;border-radius:4px;font-size:.72em;font-weight:600;opacity:.75;vertical-align:middle}
/* Задание 053: готовые страницы новостей — название ленты, навигационная цепочка, таблица фактов, свёрнутый текст */
.brand { margin: 0; font-size: 1.25rem; font-weight: 700; }
.brand a { color: inherit; text-decoration: none; }
.crumbs { margin: 14px 0 6px; font-size: 0.85rem; color: var(--mute); }
.crumbs a, .related a, .days a, .page-link, .card-title a, .pdf-line a, .same-story a { color: var(--focus); text-underline-offset: 3px; }
.list-title { margin: 8px 0 4px; font-size: 1.4rem; }
.card-page h1.card-title { font-size: 1.35rem; margin: 4px 0 8px; }
.day a { color: inherit; text-decoration: none; }
.lead { margin: 0 0 6px; }
.pub, .named-source, .byline { font-variant-numeric: tabular-nums; }
.named-source, .byline, .related, .pdf-line { margin: 8px 0; font-size: 0.9rem; }
.byline, .related { color: var(--mute); }
.days { margin: 26px 0 0; font-size: 0.85rem; color: var(--mute); line-height: 1.9; }
.facts-table { border-collapse: collapse; margin: 0 0 10px; width: 100%; font-size: 0.95rem; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.facts-table thead th { color: var(--mute); font-weight: 600; font-size: 0.8rem; }
.facts-table tbody th { font-weight: 400; color: var(--mute); width: 45%; }
.more-details > summary { display: inline-block; list-style: none; cursor: pointer; }
.more-details > summary::-webkit-details-marker { display: none; }
.more-details[open] > summary { margin-bottom: 8px; }
.article-body h2.ft-head { font-size: 1rem; margin: 14px 0 4px; }
.card-page .card-foot { margin-top: 10px; }
[hidden] { display: none !important; }
.viewnote { max-width: 780px; margin: 0 auto; padding: 10px 16px 0; color: var(--warn); font-size: .85rem; }

/* Окончательный вид (решения пользователя 29.11.2026 21:42–22:47): сплошная лента, «Новости по темам», рамки текста и PDF */
.bar.topic-line { justify-content: flex-start; gap: 8px 10px; }
.bar.topic-line h1, .bar.topic-line .brand { margin: 0 2px 0 0; }
.card .card-title { font-size: 1.12rem; margin: 6px 0 4px; }
.ft-par, .doc-par { margin: 8px 0; }
.ft-more > summary, .pdf-box > summary { list-style: none; cursor: pointer; color: var(--focus); font-weight: 600; margin: 6px 0; }
.ft-more > summary::-webkit-details-marker, .pdf-box > summary::-webkit-details-marker { display: none; }
.ft-more[open] > summary { display: none; }
.ft-box:has(.ft-more[open]) .ft-scroll { max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; margin: 8px 0; }
.ft-actions { display: none; margin: 4px 0 8px; }
.ft-box:has(.ft-more[open]) .ft-actions { display: block; }
.pdf-pages { max-height: 70vh; overflow-y: auto; background: #e9e8e4; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 8px 0; }
.pdf-page { display: block; width: 100%; height: auto; margin: 0 0 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.pdf-box[open] > summary { display: none; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.ft-fold, .pdf-fold, .pdf-save, details.src > summary { display: inline-block; background: transparent; padding: 4px 12px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 0.88rem; color: var(--mute); text-decoration: none; cursor: pointer; }
.pdf-save { border-color: var(--profil); color: var(--profil); }
.src-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; margin-top: 10px; }
details.src > summary { list-style: none; }
details.src > summary::-webkit-details-marker { display: none; }
details.src[open] > summary { border-color: var(--focus); color: var(--focus); }
.src-open { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.88rem; }
.open-btn { display: inline-block; padding: 4px 12px; border: 1.5px solid var(--profil); border-radius: 999px; color: var(--profil);
  text-decoration: none; font-size: 0.88rem; }
.page-slot { margin-left: auto; align-self: center; font-size: 0.88rem; }
