/* ───────────────────────────────────────────────────────────────────────
   Раздел новостей FuelRadar.
   Источник: mockups/fuelradar_news_section.html + fuelradar_news_article.html.
   Слой поверх tokens.css; всё скоупится под .news-page / .news-article, чтобы
   не задевать каталог и карточку АЗС. Переменные берём из tokens.css.
   ─────────────────────────────────────────────────────────────────────── */

.news-page a { color: var(--brand); text-decoration: none; }
.news-page .ic { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }

/* Шапка раздела */
.news-page .news-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.news-page .news-head .sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Хлебные крошки */
.news-page .crumbs, .news-article .crumbs { font-size: 12.5px; color: var(--muted); margin: 4px 0 14px; }
.news-page .crumbs a, .news-article .crumbs a { color: var(--muted); }

/* Чипы фильтра тем */
.news-page .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.news-page .chip { border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill);
    padding: 7px 15px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.news-page .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Бейдж категории */
.cat { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px;
    border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand); }
.cat.market { background: #FEF3C7; color: #92400E; }
.cat.region { background: #ECFDF5; color: #065F46; }
.cat.analytics { background: #F1F0FE; color: #4F46E5; }
.cat.onwhite { background: rgba(255, 255, 255, .92); color: var(--brand); }

/* Мета (дата / время чтения) */
.news-page .meta, .news-article .meta { display: flex; align-items: center; gap: 14px;
    font-size: 12.5px; color: var(--muted); }
.news-page .meta .it, .news-article .meta .it { display: inline-flex; align-items: center; gap: 5px; }

/* Featured */
.news-page .featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 22px; }
.news-page .featured .thumb { min-height: 240px; background: linear-gradient(135deg, #3D6BE5, #62A9EF);
    position: relative; }
.news-page .featured .thumb .cat { position: absolute; top: 14px; left: 14px; }
.news-page .featured .fbody { padding: 22px 22px 22px 4px; display: flex; flex-direction: column; justify-content: center; }
.news-page .featured h2 { margin: 0 0 10px; font-size: 23px; font-weight: 800; line-height: 1.25; }
.news-page .featured h2 a { color: var(--ink); }
.news-page .featured p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

/* Сетка карточек */
.news-page .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-page .ncard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    overflow: hidden; display: flex; flex-direction: column; }
.news-page .ncard .thumb { height: 150px; position: relative; }
.news-page .ncard .thumb .cat { position: absolute; top: 10px; left: 10px; }
.t-blue { background: linear-gradient(135deg, #4F86F0, #7DB4F4); }
.t-amber { background: linear-gradient(135deg, #F0B23D, #F6CE7A); }
.t-green { background: linear-gradient(135deg, #34B36B, #76D49E); }
.t-violet { background: linear-gradient(135deg, #6A5BE8, #9A8FF0); }
.news-page .ncard .nbody { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.news-page .ncard h3 { margin: 0 0 7px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.news-page .ncard h3 a { color: var(--ink); }
.news-page .ncard .exc { margin: 0 0 12px; color: var(--muted); font-size: 13px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* «Показать ещё» / пустое состояние */
.news-page .more { display: flex; justify-content: center; margin: 24px 0 6px; }
.news-page .more a { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 12px 28px; font-size: 15px; font-weight: 600; color: var(--brand); }
.news-page .empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ── Страница статьи ── */
.news-article .layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.news-article h1 { margin: 0 0 14px; font-size: 32px; font-weight: 800; line-height: 1.2; }
.news-article .metarow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.news-article .upd { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

.news-article .author { display: flex; align-items: center; gap: 12px; margin: 18px 0 22px;
    text-decoration: none; width: fit-content; }
.news-article .author:hover .nm { color: var(--brand); }
.news-article .author .ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
    background: linear-gradient(135deg, #3D6BE5, #62A9EF); color: #fff; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 16px; flex: 0 0 auto; }
.news-article .author .nm { font-weight: 700; font-size: 15px; color: var(--ink); }
.news-article .author .role { font-size: 13px; color: var(--muted); }

.news-article .articlebody { font-size: 16px; line-height: 1.6; }
.news-article .articlebody .lead { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0 0 20px; }
.news-article .articlebody p { margin: 0 0 18px; }
.news-article .articlebody h2 { font-size: 22px; font-weight: 800; margin: 26px 0 12px; scroll-margin-top: 16px; }

/* Оглавление */
.news-article .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 16px 18px; margin: 0 0 24px; }
.news-article .toc .th { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.news-article .toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.news-article .toc li { margin: 6px 0; }

/* Блок данных FuelRadar — ключевой дифференциатор */
.news-article .data { border: 1px solid var(--brand-50); background: #F7FAFF; border-left: 4px solid var(--brand);
    border-radius: var(--r-md); padding: 16px 18px; margin: 0 0 24px; }
.news-article .data .dh { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
    color: var(--brand); margin-bottom: 12px; }
.news-article .data table { width: 100%; border-collapse: collapse; font-size: 14px; }
.news-article .data th, .news-article .data td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #E6EDF8; }
.news-article .data th { font-size: 12px; color: var(--muted); font-weight: 600; }
.news-article .data td.r, .news-article .data th.r { text-align: right; }
.news-article .data tr:last-child td { border-bottom: none; }
.news-article .data .up { color: var(--red); font-weight: 600; }
.news-article .data .down { color: var(--green); font-weight: 600; }
.news-article .data .src { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Источники / атрибуция */
.news-article .sources { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.news-article .sources h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 10px; }
.news-article .sources ul { margin: 0; padding-left: 18px; font-size: 14px; }
.news-article .sources li { margin: 4px 0; color: var(--muted); }

/* Сайдбар «Читайте также» */
.news-article .side { position: sticky; top: 16px; }
.news-article .side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; }
.news-article .rel { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 12px 14px; margin-bottom: 10px; }
.news-article .rel .rc { font-size: 11px; font-weight: 700; color: var(--brand); margin-bottom: 5px; text-transform: uppercase; }
.news-article .rel .rt { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.news-article .rel .rd { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ── Страница эксперта/автора (mockups/fuelradar_author_page.html) ── */
.expert-page a { color: var(--brand); text-decoration: none; }

/* Шапка */
.expert-page .head { display: flex; gap: 22px; align-items: flex-start; margin-top: 4px; }
.expert-page .avatar { width: 120px; height: 120px; border-radius: 50%; flex: 0 0 auto;
    object-fit: cover; background: linear-gradient(135deg, #3D6BE5, #62A9EF); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 38px; }
.expert-page .hbody h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; line-height: 1.2; }
.expert-page .role { display: inline-block; background: var(--brand-50); color: var(--brand);
    font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill); }
.expert-page .socials { display: flex; gap: 8px; margin-top: 14px; }
.expert-page .soc { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--muted);
    font-size: 12px; font-weight: 700; }
.expert-page .soc:hover { border-color: var(--brand); color: var(--brand); }

/* Секции */
.expert-page section { margin-top: 26px; }
.expert-page h2.sect { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.expert-page h2.sect.big { font-size: 22px; margin-bottom: 16px; }
.expert-page .bio { font-size: 15.5px; color: #1F2937; max-width: 760px; }

/* Списки образование/карьера */
.expert-page .rows { list-style: none; margin: 0; padding: 0; }
.expert-page .rows li { position: relative; padding-left: 18px; margin: 10px 0; }
.expert-page .rows li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px;
    height: 7px; border-radius: 50%; background: var(--brand); }
.expert-page .rows .n { font-weight: 600; }
.expert-page .rows .d { color: var(--muted); font-size: 13px; }

/* Сертификаты (горизонтальная лента) */
.expert-page .certs { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 8px; }
.expert-page .cert { flex: 0 0 auto; width: 150px; min-height: 200px; border: 1px solid var(--line);
    border-radius: var(--r-md); background: #FBFBFC; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--muted); text-align: center; }
.expert-page .cert .cimg { width: 100%; height: 120px; object-fit: cover; border-radius: var(--r-sm); }
.expert-page .cert .seal { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--brand-50); }
.expert-page .cert .ct { font-size: 12px; font-weight: 600; color: var(--ink); }
.expert-page .cert .ci { font-size: 11px; color: var(--muted); }

/* Материалы автора (полоса на всю ширину) */
.expert-band { background: var(--brand-50); margin-top: 30px; padding: 26px 0; }
.expert-band .expert-page { padding: 0; }
.expert-page .matlist { display: flex; flex-direction: column; gap: 12px; }
.expert-page .mat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 15px 17px; display: flex; justify-content: space-between; gap: 14px; }
.expert-page .mat:hover { border-color: var(--brand); }
.expert-page .mat.mat-hidden { display: none; }
.expert-page .mat .mdate { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.expert-page .mat h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; color: var(--ink); }
.expert-page .mat p { margin: 0; color: var(--muted); font-size: 13.5px; }
.expert-page .more { display: block; width: 100%; text-align: center; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px; margin-top: 12px;
    font-weight: 600; color: var(--brand); cursor: pointer; font-size: 15px; }

/* Другие эксперты + список */
.expert-page .list-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.expert-page .list-head .sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.expert-page .authors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.expert-page .acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 18px 12px; text-align: center; display: block; }
.expert-page .acard:hover { border-color: var(--brand); }
.expert-page .acard .aav { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px;
    object-fit: cover; background: linear-gradient(135deg, #6A5BE8, #9A8FF0); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; }
.expert-page .acard .an { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.expert-page .empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Адаптив */
@media (max-width: 860px) {
    .news-page .grid { grid-template-columns: repeat(2, 1fr); }
    .news-page .featured { grid-template-columns: 1fr; }
    .news-page .featured .fbody { padding: 18px; }
    .news-article .layout { grid-template-columns: 1fr; }
    .news-article .side { position: static; }
    .expert-page .authors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .news-page .grid { grid-template-columns: 1fr; }
    .news-article h1 { font-size: 26px; }
    .expert-page .head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .expert-page .avatar { width: 88px; height: 88px; font-size: 30px; }
    .expert-page .hbody h1 { font-size: 25px; }
    .expert-page .mat { flex-direction: column; }
}
