/* TradeFlowCenter 4 — dark navy, brass accent, IBM Plex. */

:root {
  --bg: #0E1626;
  --bg-deep: #0A111E;
  --panel: #16213A;
  --panel-2: #1B2845;
  --line: #24324F;
  --line-2: #33456A;
  --text: #E7ECF4;
  --text-2: #C3CCDA;
  --muted: #93A1B8;
  --accent: #D9A441;
  --accent-hi: #E8B858;
  --accent-ink: #14100A;
  --up: #2FBF71;
  --down: #F0616D;
  --r: 10px;
  --r-sm: 6px;
  --max: 1280px;
  --f-display: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  --f-ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-read: 'IBM Plex Serif', Georgia, serif;
  color-scheme: dark;
  /* the cabinet plugin follows the theme */
  --grn-accent: #D9A441;
  --grn-accent-ink: #14100A;
  --grn-up: #2FBF71;
  --grn-down: #F0616D;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.005em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 820px; }
.site-main { min-height: 60vh; padding-bottom: 56px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; cursor: pointer; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-cab { background: var(--accent); color: var(--accent-ink); }
.btn-cab:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-cab__star { font-size: 1.05em; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ── ticker tape ── */
.tape { background: var(--bg-deep); border-bottom: 1px solid var(--line); height: 46px; overflow: hidden; }
.tape .tv { height: 46px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 22, 38, 0.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo:hover { color: var(--text); }
.logo__img { max-height: 40px; width: auto; }
.logo__name { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.logo--sm .logo__name { font-size: 19px; }

.session { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.session__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.session[data-state="open"] { border-color: rgba(47, 191, 113, 0.45); color: var(--text); }
.session[data-state="open"] .session__dot { background: var(--up); box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.6); animation: pulse 2.4s ease-out infinite; }
.session[data-state="pre"] .session__dot, .session[data-state="post"] .session__dot { background: var(--accent); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }

.hdr-search { position: relative; margin-left: auto; width: min(300px, 26vw); }
.hdr-search input { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 14px; }
.hdr-search input::placeholder { color: var(--muted); }
.hdr-search input:focus { outline: none; border-color: var(--accent); }
.hdr-search__icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hdr-cab { flex: none; }

.burger { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: none; flex-direction: column; justify-content: space-between; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav { border-top: 1px solid var(--line); }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-nav .menu::-webkit-scrollbar { display: none; }
.site-nav .menu > li { position: relative; flex: none; }
.site-nav .menu a { display: block; padding: 11px 12px; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--text-2); white-space: nowrap; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current-category-ancestor > a { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); z-index: 60; }
.site-nav .sub-menu a { font-family: var(--f-ui); font-weight: 500; font-size: 14px; padding: 9px 10px; border-radius: var(--r-sm); box-shadow: none !important; }
.site-nav .sub-menu a:hover { background: var(--panel-2); }
.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { display: block; }
.site-nav__extra { display: none; }
/* Sub-menus need room to drop below the bar: no horizontal scroll on wide screens. */
@media (min-width: 961px) { .site-nav .menu { overflow: visible; flex-wrap: wrap; } }

/* ── shared text bits ── */
.h-sec { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.cat { color: var(--accent); font-weight: 600; }
.cat:hover { color: var(--accent-hi); }
.t-time, .t-read { font-variant-numeric: tabular-nums; }
.more { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.more:hover { color: var(--accent-hi); text-decoration: underline; }
.empty { padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); }
.empty a { color: var(--accent); }

/* ── panels and TradingView ── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--chart { padding: 8px; }
.tv { position: relative; width: 100%; }
.tv .tradingview-widget-container, .tv .tradingview-widget-container__widget { height: 100%; width: 100%; }
.tv .tradingview-widget-copyright { display: none; }
.tv__ph { position: absolute; inset: 0; border-radius: var(--r-sm); background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.05), rgba(255,255,255,.02)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.tv.is-loaded .tv__ph { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── home: top ── */
.top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 28px; padding-top: 28px; }
.lead { display: flex; flex-direction: column; gap: 16px; }
.lead__body { display: flex; flex-direction: column; gap: 12px; }
.lead__img { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); }
.lead__img img { width: 100%; height: 100%; object-fit: cover; }
.lead__title { font-size: clamp(26px, 3.1vw, 40px); font-weight: 700; line-height: 1.08; }
.lead__title a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.lead__excerpt { font-family: var(--f-read); font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 70ch; }
.lead--text { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }

.top__list { border-left: 1px solid var(--line); padding-left: 28px; }
.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.rows > .row:first-child { border-top: 0; padding-top: 0; }
.row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row__title { font-family: var(--f-ui); font-size: 16px; font-weight: 600; line-height: 1.35; }
.row__title a:hover { color: var(--accent-hi); }
.row__img { flex: none; width: 84px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--panel); }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.rows--tight .row { padding: 11px 0; }
.rows--tight .row__title { font-size: 15px; }
.rows--tight .row__img { display: none; }

/* ── intro band ── */
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 36px; padding: 26px 28px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.intro__text { flex: 1 1 520px; }
.intro__title { font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; margin-bottom: 8px; }
.intro__sub { color: var(--text-2); max-width: 68ch; }
.intro__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── market ── */
.market { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; }
.market .panel { padding: 18px 18px 6px; }

/* ── blocks ── */
.block { margin-top: 44px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.block__head .h-sec { margin: 0; }
.block__note { font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; align-items: start; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--panel); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__img:hover img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__title { font-size: 20px; font-weight: 600; line-height: 1.2; }
.card__title a:hover { color: var(--accent-hi); }
.card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; }

.featured { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.featured .lead__title { font-size: clamp(22px, 2.2vw, 30px); }
.rows--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.rows--cols > .row:nth-child(2) { border-top: 0; padding-top: 0; }

.block-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
.block-pair > .block { min-width: 0; }
.block--half .row__title { font-size: 16px; }
@media (max-width: 860px) { .block-pair { grid-template-columns: 1fr; } }

/* ── hubs ── */
.page-head__kicker { font-weight: 400; color: var(--muted); font-size: .55em; }
.hub-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.hub-chips__label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); line-height: 1.2; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hub-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin: 8px 0 8px; align-items: start; }
.hub-top .panel { padding: 18px; }
.tickers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hub-ticker { display: inline-block; padding: 7px 11px; border-radius: var(--r-sm); background: var(--panel-2); font-family: var(--f-ui); font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--text); }
.hub-ticker:hover { background: var(--accent); color: var(--accent-ink); }
.hub-cross { margin-top: 4px; }
.hub-all { margin-top: 40px; }
.hub-more { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--line); }
.sector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 12px 0 8px; }
.sector-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.sector-card__title { font-size: 20px; font-weight: 600; margin: 0; }
.sector-card__news { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sector-card__news a { color: var(--text-2); }
.sector-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sector-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); min-width: 0; }
.sector-tile:hover { border-color: var(--accent); color: var(--text); }
.sector-tile__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.sector-tile__meta { font-size: 12px; color: var(--accent); }
.sector-tile__last { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .sector-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .hub-top, .sector-grid { grid-template-columns: 1fr; } .sector-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about { margin-top: 44px; max-width: 760px; color: var(--text-2); }

/* ── article ── */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 28px; align-items: start; }
.post { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.post__head { margin-bottom: 22px; }
.post__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.08; max-width: 24ch; }
.post--page .post__title { max-width: none; }
.post__deck { margin-top: 14px; font-family: var(--f-read); font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 64ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.byline__author { color: var(--text-2); font-weight: 600; }

.stock { margin: 0 0 24px; }
.stock__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tk { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.stock .grn-tk { border-bottom: 0; padding: 4px 10px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.stock .grn-tk:hover { border-color: var(--accent); }
.stock__more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); }

.post__img { margin: 0 0 26px; }
.post__img img { width: 100%; border-radius: var(--r); }
.post__img figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.prose { font-family: var(--f-read); font-size: 18px; line-height: 1.72; color: var(--text); max-width: 70ch; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h2 { font-size: 27px; margin-top: 1.7em; }
.prose h3 { font-size: 22px; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(217, 164, 65, .45); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic; }
.prose img, .prose figure { margin-left: 0; margin-right: 0; border-radius: var(--r-sm); }
.prose figcaption { font-family: var(--f-ui); font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: 15px; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--muted); font-weight: 600; }
.prose code { font-size: .88em; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.prose strong { font-weight: 600; color: #fff; }
.prose .grn-box, .prose .grn-box * { font-family: var(--f-ui); }

.source { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.source a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags a { padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.tags a:hover { border-color: var(--accent); color: var(--text); }
.disclaimer { margin-top: 22px; font-size: 13px; color: var(--muted); }
.related { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related .card__title { font-size: 17px; }
.related .card__excerpt { display: none; }

/* Cards without a picture: a quiet panel, so a mixed row still reads as one grid. */
.card--text { padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--line-2); }
.card--text .card__title { font-size: 21px; }
.featured:not(:has(.rows)) { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* ── sidebar ── */
.side { position: sticky; top: 132px; display: flex; flex-direction: column; gap: 28px; }
.side-card { padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 10px; }
.side-card__title { font-size: 20px; }
.side-card p { font-size: 14px; color: var(--text-2); }
.widget { font-size: 15px; }
.widget-title { font-size: 18px; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.widget li:first-child { border-top: 0; padding-top: 0; }
.widget li a:hover { color: var(--accent-hi); }
.widget .wp-block-heading, .widget h2 { font-size: 18px; margin-bottom: 12px; }
.widget_search form, .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget_search label, .wp-block-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.widget input[type="search"] { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }
.widget button, .widget input[type="submit"], .wp-block-search__button { min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.wp-block-latest-comments { padding: 0; }

/* ── listings ── */
.listing { min-width: 0; }
.page-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head__title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.page-head__desc { margin-top: 10px; color: var(--text-2); max-width: 70ch; }
.page-head .search-form { margin-top: 16px; }
.listing > .lead { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.rows--list .row { padding: 16px 0; }
.rows--list .row__title { font-size: 18px; }
.rows--list .row__img { width: 120px; height: 80px; }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); }
.search-form input:focus { outline: none; border-color: var(--accent); }
.narrow .h-sec { margin-top: 36px; }

.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--text); }
.pagination .dots { border: 0; }

/* ── comments ── */
.comments { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .comment { padding: 14px 0; border-top: 1px solid var(--line); }
.comment-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }

/* ── footer ── */
.footer-widgets { padding-top: 32px; }
.site-footer { margin-top: 40px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.ftr { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 40px; padding-bottom: 32px; }
.ftr__brand p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 46ch; }
.ftr__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ftr__h { font-size: 16px; margin-bottom: 12px; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ftr__bottom p:first-child { max-width: 80ch; }

/* ── responsive ── */
@media (max-width: 1180px) {
  .session { display: none !important; }
}
@media (max-width: 960px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hdr { min-height: 58px; gap: 10px; }
  .hdr-search, .hdr-cab { display: none; }
  .burger { display: flex; margin-left: auto; }
  .site-nav { display: none; border-top: 1px solid var(--line); max-height: calc(100vh - 104px); overflow-y: auto; }
  .nav-open .site-nav { display: block; }
  .site-nav .menu { flex-direction: column; overflow: visible; padding: 8px 0; }
  .site-nav .menu a { padding: 12px 4px; font-size: 17px; box-shadow: none !important; }
  .site-nav .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 6px 14px; background: none; border: 0; box-shadow: none; }
  .site-nav .sub-menu a { font-size: 15px; padding: 8px 4px; color: var(--muted); }
  .site-nav__extra { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 18px; }
  .top { grid-template-columns: 1fr; padding-top: 18px; }
  .top__list { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .market, .featured { grid-template-columns: 1fr; }
  .grid, .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-side { grid-template-columns: 1fr; gap: 36px; padding-top: 18px; }
  .side { position: static; }
  .ftr { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid, .related .grid, .rows--cols { grid-template-columns: 1fr; }
  .rows--cols > .row:nth-child(2) { border-top: 1px solid var(--line); padding-top: 14px; }
  .intro { padding: 20px; }
  .intro__actions, .intro__actions .btn { width: 100%; }
  .prose { font-size: 17px; }
  .rows--list .row__img { width: 84px; height: 64px; }
  .ftr { grid-template-columns: 1fr; }
  .card__title { font-size: 19px; }
  .stock__more { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── follow a stock in the cabinet (4.2) ── */
.stock__follow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.stock__follow:hover { background: var(--accent-hi); color: var(--accent-ink); }

/* ── 4.2.1: «Лидеры дня» from the cabinet plugin ── */
.grn-mv { --grn-up: var(--up); --grn-down: var(--down); --grn-accent: var(--accent); --grn-accent-ink: #0E1626; --grn-line: var(--line); --grn-soft: rgba(255, 255, 255, 0.04); }
.market .grn-mv { margin: 0 0 8px; }
.market .grn-mv__table { font-size: 13.5px; }
.market .grn-mv__table td { padding: 7px 6px; }
