/* ============================================================
   news_qkd_0012 — redesigned news portal stylesheet
   Layout fully reworked to a modern news homepage style.
   Uses only existing template variables; no new ones added.
   ============================================================ */

:root {
  --accent: #c8102e;
  --accent-2: #e23b50;
  --ink: #14161a;
  --ink-2: #3d4451;
  --muted: #6b7280;
  --line: #e8eaed;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .05);
  --maxw: 1180px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.news-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.news-kicker { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .55rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; color: var(--muted); font-size: .82rem; }
.news-meta__author, .news-meta__views, .news-meta__date { display: inline-flex; align-items: center; gap: .3rem; }
.news-meta svg, .news-meta__author svg, .news-meta__date svg { width: 14px; height: 14px; fill: currentColor; flex: none; vertical-align: -2px; }
.news-empty { text-align: center; padding: 64px 0; color: var(--muted); }
.news-empty__icon { font-size: 2.4rem; margin-bottom: .5rem; }
.news-empty__text { font-size: 1rem; }

/* ---------- HEADER + NAV ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.nav-wrap { display: flex; align-items: center; gap: 18px; height: 62px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.3rem; color: #fff; white-space: nowrap; }
.brand .logo-img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 16px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { padding: 0 13px; height: 62px; display: inline-flex; align-items: center; font-size: .94rem; font-weight: 600; color: rgba(255,255,255,.82); white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom-color: var(--accent); }
.desktop-search { margin-left: auto; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 8px 6px 14px; min-width: 200px; }
.desktop-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; outline: none; font-size: .9rem; }
.desktop-search input::placeholder { color: rgba(255,255,255,.6); }
.desktop-search button { background: var(--accent); color: #fff; border: 0; border-radius: 999px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.desktop-search svg { width: 18px; height: 18px; fill: #fff; }

.qk-user { display: flex; align-items: center; }
.qk-signin { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; }
.qk-signin:hover { background: var(--accent-2); }
.user-dropdown { position: relative; }
.user-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: .9rem; }
.user-dropdown-toggle .bi { width: 16px; height: 16px; fill: currentColor; }
.user-dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 180px; padding: 6px; display: none; }
.user-dropdown.open .user-dropdown-menu { display: block; }
.user-dropdown-menu li { list-style: none; }
.user-dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.user-dropdown-item:hover { background: #f3f3f3; }
.user-dropdown-item .bi { width: 16px; height: 16px; fill: currentColor; }
.user-dropdown-divider { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ---------- Mobile nav ---------- */
.mobile-nav { display: none; }
.mobile-nav-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.mobile-icon-button { background: none; border: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-icon-button svg { width: 22px; height: 22px; fill: var(--ink); }
.mobile-brand { font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.mobile-brand .logo-img { height: 26px; width: auto; }
.mobile-nav-panel { position: fixed; left: 0; right: 0; top: 56px; z-index: 59; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 16px 18px 22px; max-height: 70vh; overflow-y: auto; }
.mobile-nav-panel[hidden] { display: none; }
.qk-user-mobile { position: relative; display: flex; align-items: center; }
.mobile-user-toggle { border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); }
.qk-user-mobile .user-dropdown-menu { top: calc(100% + 10px); }
.qk-user-mobile { position: relative; display: flex; align-items: center; }
.mobile-user-toggle { border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); }
.qk-user-mobile .user-dropdown-menu { top: calc(100% + 10px); }
.mobile-panel-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.mobile-panel-close { background: none; border: 0; color: var(--muted); font-size: .9rem; }
.mobile-user { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.mobile-user-link { color: var(--accent); font-weight: 600; font-size: .92rem; }
.mobile-user-name { font-weight: 700; }
.mobile-search-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin-bottom: 14px; }
.mobile-search-form svg { width: 18px; height: 18px; fill: var(--muted); }
.mobile-search-form input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 1rem; }
.mobile-panel-links { display: flex; flex-direction: column; }
.mobile-panel-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.mobile-panel-links a.active { color: var(--accent); }
@media (max-width: 860px) { .nav-wrap { display: none; } .mobile-nav { display: block; } body { padding-top: 56px; padding-bottom: 0; } }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: #fff; margin-top: 64px; padding: 46px 0 26px; }
.footer-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-wrap > div:first-child { font-size: 1.1rem; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .92rem; }
.footer-links a:hover { color: #fff; }

/* ============================================================
   HOMEPAGE — LEAD (big feature + top stories)
   ============================================================ */
.news-lead { padding: 30px 0; border-bottom: 1px solid var(--line); }
.news-lead__inner { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; }
.news-lead__feature { display: block; }
.news-lead__media { overflow: hidden; border-radius: var(--radius); margin-bottom: 16px; }
.news-lead__img { width: 100%; height: 360px; object-fit: cover; transition: transform .4s ease; }
.news-lead__feature:hover .news-lead__img { transform: scale(1.03); }
.news-lead__title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; }
.news-lead__title a:hover { color: var(--accent); }
.news-lead__summary { color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; margin: .7rem 0 1rem; }
.news-lead__side { border-left: 1px solid var(--line); padding-left: 30px; }
.news-lead__side-title { font-family: var(--serif); font-size: 1.2rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: .8rem; }
.news-lead__list li { display: flex; gap: .7rem; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.news-lead__list a { color: var(--ink); font-weight: 600; line-height: 1.35; }
.news-lead__list a:hover { color: var(--accent); }
.news-lead__no { font-family: var(--serif); font-weight: 700; color: var(--accent); min-width: 1.1rem; font-size: 1.05rem; }
.news-layout { padding: 5px 0; }
.news-layout__inner { display: block; }
.news-main { min-width: 0; }
.news-block { padding: 5px 0; border-top: 1px solid var(--line); }
.news-block:first-child { border-top: 0; padding-top: 0; }
.news-block__head { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: .65rem; margin-bottom: 1.2rem; }
.news-block__head h2 { font-family: var(--serif); font-size: 1.45rem; }
.news-block__desc { color: var(--muted); font-size: .9rem; }
.news-block__more { margin-left: auto; color: var(--accent); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.news-block__more:hover { text-decoration: underline; }
.news-block__body { display: block; }

/* More sections: horizontal list layout (distinct from .news-block grid) */
.news-listblock { padding: 26px 0; border-top: 3px solid var(--accent); background: var(--bg-soft); margin: 26px 0; border-radius: var(--radius); }
.news-listblock__head { display: flex; align-items: center; gap: 12px; padding: 0 22px 14px; }
.news-listblock__bar { width: 5px; height: 20px; background: var(--accent); border-radius: 3px; flex: none; }
.news-listblock__head h2 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.news-listblock__more { margin-left: auto; color: var(--accent); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.news-listblock__more:hover { text-decoration: underline; }
.news-listblock__body { padding: 0 22px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.news-listblock__body .news-listitem { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.news-listblock__body .news-listitem:last-child,
.news-listblock__body .news-listitem:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.news-listblock__body .news-listitem__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; transition: transform .4s ease; }
.news-listblock__body .news-listitem:hover .news-listitem__img { transform: scale(1.04); }
.news-listitem__title { font-family: var(--serif); font-size: 1.02rem; line-height: 1.3; margin-bottom: .35rem; }
.news-listitem__title a:hover { color: var(--accent); }
.news-listitem__summary { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-listitem__meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .8rem; }
.news-block__lead { display: block; }
.news-block__lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: .7rem; transition: transform .4s ease; }
.news-block__lead:hover img { transform: scale(1.03); }
.news-block__lead h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.22; }
.news-block__lead h3 a:hover { color: var(--accent); }
.news-block__list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.news-block__list a { color: var(--ink-2); font-weight: 600; line-height: 1.4; }
.news-block__list a:hover { color: var(--accent); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.news-ranklist li { display: flex; gap: .65rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.news-ranklist li:last-child { border-bottom: 0; }
.news-ranklist a { color: var(--ink); font-weight: 600; line-height: 1.35; }
.news-ranklist a:hover { color: var(--accent); }
.news-ranklist__no { font-family: var(--serif); font-weight: 700; color: var(--accent); min-width: 1.1rem; }

/* ============================================================
   SUBSCRIBE BAND
   ============================================================ */
.news-subscribe { background: var(--ink); color: #fff; margin-top: 44px; padding: 44px 0; }
.news-subscribe__inner { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; }
.news-subscribe h2 { font-family: var(--serif); font-size: 1.5rem; }
.news-subscribe p { color: #cfcfcf; margin: .3rem 0 0; }
.news-subscribe form { display: flex; gap: .5rem; flex: 1; min-width: 280px; max-width: 470px; }
.news-subscribe input { flex: 1; min-width: 0; border: 0; border-radius: 9px; padding: .75rem .95rem; font: inherit; }
.news-subscribe button { background: var(--accent); color: #fff; border: 0; border-radius: 9px; padding: 0 1.5rem; font-weight: 700; }
.news-subscribe button:hover { background: var(--accent-2); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.news-pagehead { border-bottom: 1px solid var(--line); padding: 32px 0 22px; }
.news-pagehead__title { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.01em; }
.news-pagehead__sub { color: var(--muted); margin-top: .5rem; font-size: 1rem; }
.news-cats { margin: 22px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.news-cats__list { display: flex; flex-wrap: wrap; gap: .55rem; }
.news-cats__link { display: inline-flex; align-items: center; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; line-height: 1; color: var(--ink-2); background: var(--bg); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.news-cats__link:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-soft); }
.news-cats__link.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.news-cats__link.is-active:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.news-list { list-style: none; }
.news-listitem { display: grid; grid-template-columns: 260px 1fr; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-listitem__media { overflow: hidden; border-radius: var(--radius); }
.news-listitem__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.news-listitem:hover .news-listitem__img { transform: scale(1.04); }
.news-listitem__title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.22; margin-bottom: .55rem; }
.news-listitem__title a:hover { color: var(--accent); }
.news-listitem__summary { color: var(--ink-2); line-height: 1.55; }

/* Category grid cards */
.news-catgrid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-catcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.news-catcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-catcard__media { display: block; overflow: hidden; aspect-ratio: 16 / 8; }
.news-catcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-catcard:hover .news-catcard__img { transform: scale(1.05); }
.news-catcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.news-catcard__title { font-family: var(--serif); font-size: 1.18rem; line-height: 1.28; }
.news-catcard__title a:hover { color: var(--accent); }
.news-catcard__summary { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-catcard .news-meta { margin-top: auto; padding-top: .2rem; }

/* Pagination */
.pagination-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 36px 0 8px; padding: 0; }
.pagination-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .92rem; line-height: 1; text-decoration: none; background: var(--card); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.pagination-link:hover:not(.disabled):not(.current) { border-color: var(--accent); color: var(--accent); }
.pagination-item.active .pagination-link,
.pagination-link.current { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.pagination-link.disabled { color: #bdbdbd; background: #f6f6f6; border-color: #ececec; cursor: not-allowed; }
.pagination-link.prev, .pagination-link.next { font-size: 1.25rem; }
@media (max-width: 560px) {
  .pagination-link { min-width: 36px; height: 36px; padding: 0 10px; font-size: .85rem; }
}

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.news-articlehead { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.news-articlehead__title { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.01em; margin: .5rem 0; }
.news-articlehead__sub { font-size: 1.15rem; color: var(--ink-2); max-width: 820px; line-height: 1.45; }
.news-articlehead__jump { color: var(--accent); font-weight: 700; font-size: .9rem; border: 1px solid var(--accent); border-radius: 999px; padding: 8px 18px; display: inline-block; margin-top: 16px; }
.news-articlehead__jump:hover { background: var(--accent); color: #fff; }
.news-hero-media { margin: 26px 0 0; }
.news-hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; padding: 34px 0; align-items: start; }
.news-article { min-width: 0; }
.news-article p { font-size: 1.13rem; line-height: 1.78; color: var(--ink-2); margin: 0 0 1.25rem; }
.news-article h2 { font-family: var(--serif); font-size: 1.65rem; line-height: 1.2; margin: 1.9rem 0 .9rem; color: var(--ink); }
.news-article h3 { font-family: var(--serif); font-size: 1.3rem; margin: 1.5rem 0 .7rem; }
.news-article img { border-radius: var(--radius); margin: 1.2rem 0; }
.news-article a { color: var(--accent); text-decoration: underline; }
.news-article table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.news-article th, .news-article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.news-article th { background: var(--bg-soft); }

.news-toc { position: sticky; top: 84px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.news-toc summary { font-weight: 700; cursor: pointer; }
.news-toc nav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.news-toc nav a { color: var(--ink-2); padding: 7px 9px; border-radius: 7px; font-size: .9rem; }
.news-toc nav a:hover { background: #fff; color: var(--accent); }

/* fact card (reuses recipe-card-detail markup) */
.news-factcard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 1.1rem 1.2rem; }
.news-factcard__head { border-bottom: 2px solid var(--accent); padding-bottom: .6rem; margin-bottom: .9rem; }
.news-factcard__title { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.news-factcard__facts { margin: 0; }
.news-factcard__facts > div { display: flex; justify-content: space-between; gap: 14px; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.news-factcard__facts > div:last-child { border-bottom: 0; }
.news-factcard__facts dt { color: var(--muted); font-size: .88rem; }
.news-factcard__facts dd { margin: 0; font-weight: 700; text-align: right; }
.news-factcard__foot { margin-top: .8rem; font-size: .8rem; color: var(--muted); }

/* ============================================================
   COMMENTS
   ============================================================ */
.news-comments { padding: 34px 0; border-top: 1px solid var(--line); }
.news-comments__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.news-comments__head h2 { font-family: var(--serif); font-size: 1.45rem; }
.news-comments__count { color: var(--muted); }
.news-comments__login { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--ink-2); margin-bottom: 1.6rem; }
.news-comments__login a { color: var(--accent); font-weight: 700; }
.news-comments__form { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.8rem; background: var(--bg-soft); }
.news-comments__row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.news-comments__field { flex: 1; min-width: 200px; }
.news-comments__field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .35rem; }
.news-comments__input, .news-comments__text { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: .65rem .85rem; font: inherit; background: #fff; }
.news-comments__text { min-height: 92px; resize: vertical; }
.news-stars { display: flex; gap: .15rem; }
.news-stars__item { cursor: pointer; color: #d1d5db; font-size: 1.5rem; line-height: 1; user-select: none; }
.news-stars__item.is-active { color: #f5a623; }
.news-comments__submit { background: var(--accent); color: #fff; border: 0; border-radius: 9px; padding: .65rem 1.5rem; font-weight: 700; margin-top: 1rem; }
.news-comments__submit:hover { background: var(--accent-2); }
.news-comments__list { list-style: none; }
.news-comment { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.news-comment__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; }
.news-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.news-comment__name { font-weight: 700; }
.news-comment__meta { color: var(--muted); font-size: .82rem; margin-left: .5rem; }
.news-comment__text { margin-top: .4rem; color: var(--ink-2); line-height: 1.6; }
.news-comments__more { display: block; margin: 1.5rem auto 0; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.5rem; font-weight: 700; color: var(--ink); }
.news-comments__more:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   RELATED
   ============================================================ */
.news-related { padding: 34px 0; border-top: 1px solid var(--line); }
.news-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.news-card { display: block; }
.news-card__media { overflow: hidden; border-radius: var(--radius); }
.news-card__img { width: 100%; height: 140px; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card__img { transform: scale(1.04); }
.news-card__title { font-family: var(--serif); font-size: 1.08rem; line-height: 1.25; margin-top: .6rem; }
.news-card:hover .news-card__title { color: var(--accent); }
.news-card__meta { color: var(--muted); font-size: .8rem; margin-top: .3rem; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-shell { min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 32px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand svg { width: 44px; height: 44px; fill: var(--accent); }
.auth-brand h1 { font-family: var(--serif); font-size: 1.6rem; margin-top: 8px; }
.auth-brand p { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.auth-tabs { display: flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; }
.field input:focus { border-color: var(--accent); outline: none; }
.input-wrap { position: relative; }
.input-wrap .toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 6px; }
.auth-submit { width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 12px; font-weight: 700; font-size: 1rem; margin-top: 4px; }
.auth-submit:hover { background: var(--accent-2); }
.auth-submit:disabled { opacity: .6; cursor: default; }
.auth-switch { text-align: center; color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-shell { max-width: 1080px; margin: 0 auto; padding: 32px 24px 56px; }
.profile-wrapper { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.profile-sidebar { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: sticky; top: 84px; }
.profile-header { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; flex: none; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h2 { font-size: 1.1rem; }
.profile-info p { color: var(--muted); font-size: .85rem; margin: 2px 0 0; }
.profile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.profile-nav-item { text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.profile-nav-item:hover { background: var(--bg-soft); }
.profile-nav-item.active { background: var(--accent); color: #fff; }
.profile-main { min-width: 0; }
.profile-content { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.profile-section { display: none; }
.profile-section.active { display: block; }
.section-title { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 18px; }
.profile-sub-title { margin-top: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; background: var(--bg-soft); }
.stat-number { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.stat-label { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.profile-form .form-group { margin-bottom: 16px; }
.profile-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.profile-form input, .profile-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.profile-form input:focus, .profile-form textarea:focus { border-color: var(--accent); outline: none; }
.btn-save { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 22px; font-weight: 700; }
.btn-save:hover { background: var(--accent-2); }
.avatar-upload-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; }
.avatar-upload-title { font-weight: 700; margin-bottom: 12px; }
.avatar-preview-container { display: flex; align-items: center; gap: 16px; }
.avatar-preview { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.6rem; overflow: hidden; flex: none; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-actions { display: flex; flex-direction: column; gap: 8px; }
.avatar-upload-btn, .avatar-remove-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: .9rem; }
.avatar-upload-btn:hover { border-color: var(--accent); color: var(--accent); }
.avatar-remove-btn:hover { border-color: #b91c1c; color: #b91c1c; }
.avatar-file-input { display: none; }
.avatar-upload-info { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.article-card-mini { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.article-card-mini .article-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); }
.article-info { padding: 12px; }
.article-title { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.article-date { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.article-actions { padding: 0 12px 12px; }
.btn-remove { margin-top: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: .82rem; color: var(--ink-2); }
.btn-remove:hover { border-color: #b91c1c; color: #b91c1c; }
.btn-clear { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font-weight: 600; }
.btn-clear:hover { border-color: #b91c1c; color: #b91c1c; }
.alert-box { display: none; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .92rem; }
.alert-box.show { display: block; }
.alert-box.success { background: #eafaf0; color: #14692c; border: 1px solid #b6e3c6; }
.alert-box.error { background: #fdeaea; color: #9b1c1c; border: 1px solid #f3c0c0; }
.loading-container { text-align: center; color: var(--muted); padding: 30px; }
.loading-spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 10px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-page { padding: 8px 0 50px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 18px; }
.contact-intro p { color: var(--ink-2); }
.contact-details { margin: 18px 0 0; }
.contact-detail { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-detail dt { width: 150px; flex: none; font-weight: 700; }
.contact-detail dd { margin: 0; }
.contact-detail dd a { color: var(--accent); font-weight: 600; }
.contact-card { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); padding: 24px; }
.contact-field { margin-bottom: 16px; }
.contact-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.contact-field input, .contact-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; }
.contact-field textarea { min-height: 130px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--accent); outline: none; }
.contact-field .hint { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
.contact-submit { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; }
.contact-submit:hover { background: var(--accent-2); }
.contact-submit:disabled { opacity: .6; }
.contact-note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

/* ============================================================
   LEGAL / ABOUT
   ============================================================ */
.legal-page { padding: 0 0 40px; }
.text-shell { max-width: var(--maxw); margin: 0 auto; padding: 10px 10px 10px; }
@media (max-width: 640px) { .text-shell { padding: 10px 16px 10px; } }
.article-h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 1rem; }
.legal-copy h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal-copy h3 { font-size: 1.15rem; margin-top: 1.4rem; color: var(--ink); }
.legal-copy p { color: var(--ink-2); }
.legal-copy ul { display: grid; gap: .55rem; margin: .9rem 0 1.1rem; }
.legal-copy ul li { color: var(--ink-2); line-height: 1.65; padding-left: 1.15rem; position: relative; }
.legal-copy ul li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal-lead { font-size: 1.06rem; line-height: 1.7; color: var(--ink); margin: .4rem 0 1.8rem; padding: .9rem 1.1rem; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- comment toast ---------- */
.news-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  z-index: 9999; font-size: .92rem;
}
.news-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.news-toast.success { background: var(--accent); }
.news-toast.error { background: #b91c1c; }

/* ============================================================
   NOTIFICATION
   ============================================================ */
.notification { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transition: all .3s ease; z-index: 9999; font-size: .95rem; }
.notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notification.success { background: var(--accent); }
.notification.error { background: #b91c1c; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .news-lead__inner, .news-block__body, .news-grid { grid-template-columns: 1fr; }
  .news-lead__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; }
  .news-factcard { position: static; }
  .news-related__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .profile-wrapper { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .news-catgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-container { padding: 0 16px; }
  .news-listblock__body { grid-template-columns: 1fr; }
  .news-catgrid { grid-template-columns: 1fr; }
  .news-cats { border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
  .news-cats__list { flex-wrap: nowrap; gap: .5rem; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .news-cats__list::-webkit-scrollbar { height: 4px; }
  .news-cats__list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
  .news-cats__link { white-space: nowrap; flex: none; }
  .news-listitem { grid-template-columns: 1fr; }
  .news-listitem__img { max-height: 220px; }
  .news-subscribe__inner { flex-direction: column; align-items: stretch; }
  .news-subscribe form { max-width: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .news-toc { position: static; }
}

/* ============================================================
   LEGACY HEADER / NAV / FOOTER (injected: nav.html, footer.html)
   ============================================================ */
.topbar { background: var(--ink); color: #cfcfcf; font-size: 13px; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left { color: #cfcfcf; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.quicklinks { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.quicklink a { color: #cfcfcf; text-decoration: none; }
.quicklink a:hover { color: #fff; }
.lang-switch { display: flex; gap: 8px; }
.lang { color: #9a9a9a; cursor: pointer; }
.lang.is-active { color: #fff; font-weight: 600; }

.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.logo, .logo-img { height: 34px; width: auto; display: block; }
.site-name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: #fff; }
.header-action { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn-login { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; }
.btn-login:hover { border-color: var(--accent); color: var(--accent); }

.categories { background: var(--accent); }
.categories-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.categories-list { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.cat-link { display: block; padding: 12px 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.cat-link:hover, .cat-link.is-active { background: rgba(255,255,255,.16); }

.primary-nav { background: #1c1c1c; }
.primary-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.nav-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nav-link { display: block; padding: 13px 16px; color: #e9e9e9; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(255,255,255,.08); }

.footer-main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-widget { }
.footer-title { font-size: 15px; font-weight: 700; margin: 0 0 14px; color: #fff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.footer-links a { color: #c9c9c9; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.social-link:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { color: #9a9a9a; font-size: 13px; margin: 0; }
.footer-legal { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: #9a9a9a; font-size: 13px; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 980px) {
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-widgets { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-action { margin-left: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { background: linear-gradient(135deg, var(--ink) 0%, #1f2430 100%); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.hero .container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero-content { max-width: 860px; margin: 0 auto; text-align: center; position: relative; }
.hero-content h1 { color: #fff; font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.hero-content p { color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.6; margin: 1rem auto 0; max-width: 640px; }
.hero-content .hero-cta { display: inline-flex; gap: 12px; margin-top: 1.6rem; flex-wrap: wrap; justify-content: center; }
.hero-content .hero-cta a { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 999px; transition: background .2s ease; }
.hero-content .hero-cta a:hover { background: var(--accent-2); }
.hero-content .hero-cta a.is-ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); }
.hero-content .hero-cta a.is-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

@media (max-width: 640px) {
  .hero { padding: 44px 0; }
  .hero .container { padding: 0 16px; }
}
