/* Публичная лента новостей: /news и /news/<id> (news.php).
 *
 * Отдельный файл, а не блок в landing.css: лендинг — генерированная разметка из
 * design/Лендинг.dc.html с классами l1..l180, дописывать в неё руками нельзя.
 * Та же причина, по которой отдельно живут документы (css/dc-legal.css), и та
 * же палитра — токены повторяют лендинг, чтобы переход с него не менял вид.
 */
.dcn {
    --bg: #f6f5f3;
    --card: #fff;
    --line: #e6e3de;
    --txt: #2e2b25;
    --muted: #6b665b;
    --muted2: #8a8578;
    --accent: #d43d51;
    --hdr: #26282c;

    margin: 0;
    background: var(--bg);
    color: var(--txt);
    font: 400 16px/1.65 Manrope, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Тёмная тема приходит из localStorage['dxTheme'] (скрипт в news.php), как на
   лендинге и в документах. Медиазапроса prefers-color-scheme нет намеренно:
   страница, темнеющая сама по себе, расходилась бы с сайтом, с которого на неё
   пришли. */
body.dcn[data-theme="dark"] {
    --bg: #191b1e;
    --card: #232629;
    --line: #33373c;
    --txt: #e6e4df;
    --muted: #b0aba0;
    --muted2: #9a958a;
    --accent: #e08a9c;
    --hdr: #141619;
}

/* ── шапка / подвал ─────────────────────────────────────────────────────── */
.dcn-top {
    background: var(--hdr);
    color: #fff;
}

.dcn-top-in {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dcn-logo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.02em;
}

.dcn-logo span { color: var(--accent); }

.dcn-back {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: #b9bcc2;
    text-decoration: none;
}

.dcn-back:hover { color: #fff; }

.dcn-foot {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.dcn-foot a {
    color: var(--muted);
    text-decoration: none;
}

.dcn-foot a:hover { color: var(--accent); }

/* ── содержимое ─────────────────────────────────────────────────────────── */
.dcn-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 8px;
}

.dcn-h1, .dcn-one h1 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.dcn-h2 {
    margin: 32px 0 14px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted2);
}

.dcn-one {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 8px;
}

.dcn-date {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--muted2);
}

/* Длинная ссылка или артикул в тексте новости иначе распирает карточку. */
.dcn-text { overflow-wrap: anywhere; }

.dcn-more {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.dcn-more:hover { text-decoration: underline; }

.dcn-empty {
    color: var(--muted);
}

/* Карточки выравниваются по верху: тексты разной длины, иначе короткая
   растягивается до высоты самой длинной в ряду. */
.dcn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    align-items: start;
    gap: 16px;
}

.dcn-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--txt);
    text-decoration: none;
}

.dcn-card:hover { border-color: var(--accent); }

.dcn-card-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.dcn-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    overflow-wrap: anywhere;
}
