/* ЦФА: скринер выпусков и карточка выпуска.
   Геометрия скринера - как у облигаций: main 1600px по центру, фильтры .fg
   с подписью сверху, таблица в .cx-tablewrap со скроллом на высоту окна,
   без «Показать ещё». Цвета и радиусы - только токены cf-*. */

.cx-main { max-width: 1600px; margin: 0 auto; padding: 30px 28px 70px; }

/* --- шапка раздела ---------------------------------------------- */
.cx-head { margin-bottom: var(--cf-space-20); }
.cx-head .cf-rule { margin: var(--cf-space-12) 0; }
.cx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-link { color: var(--cf-accent); text-decoration: none; }
.cx-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- вкладки этапа ----------------------------------------------- */
.cx-tabs { margin-bottom: var(--cf-space-16); }
.cx-tab-n { margin-left: 4px; font-weight: 500; color: var(--cf-ink-3); font-variant-numeric: tabular-nums; }
.cf-tab[aria-selected="true"] .cx-tab-n { color: var(--cf-ink-2); }

/* --- фильтры: FilterBar дизайн-системы (панель полей с подписями, «от-до»),
   под ней быстрые плашки срока и переключатели - как у облигаций -------- */
.cx-filters { margin-bottom: var(--cf-space-12); }
.cx-f-wide { grid-column: span 2; }
.cx-filters .cf-filters__actions { justify-content: flex-start; }   /* «Сбросить» сразу за полями, а не у края */
.cx-quick { align-items: center; margin: 0 0 var(--cf-space-16); }
.cx-quick .cf-chip { transition: background-color var(--cf-dur) ease, transform 160ms cubic-bezier(.23, 1, .32, 1); }
.cx-quick .cf-chip:active { transform: scale(.97); }
.cx-quick .cf-chip[hidden] { display: none; }
.cx-quick-sep { width: 1px; height: 20px; margin: 0 var(--cf-space-6); background: var(--cf-line-strong); }
.cx-count-line { display: flex; justify-content: space-between; align-items: baseline; margin: 0 var(--cf-space-4) var(--cf-space-8);
  font-size: 13px; color: var(--cf-ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .cx-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 14px; }
  .cx-f-wide { grid-column: 1 / -1; }
  .cx-filters .cf-filters__actions { grid-column: 1 / -1; justify-content: space-between; }
  .cx-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px var(--cf-space-12); padding: 0 16px; }
  .cx-quick::-webkit-scrollbar { display: none; }
  .cx-quick > * { flex: none; }
}

/* --- попап выпуска ---------------------------------------------- */
.cx-scrim[hidden] { display: none; }
.cx-modal { width: min(760px, 100%); }
.cx-logo-lg { width: 52px; height: 52px; }
.cx-modal-tags { margin-top: var(--cf-space-10); }
.cx-copy { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--cf-ink-3); cursor: pointer; }
.cx-copy:hover { color: var(--cf-accent); }
.cx-modal-keys { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.cx-modal-keys .cf-keystrip__v { white-space: nowrap; }
html.cx-lock, html.cx-lock body { overflow: hidden; }
@media (max-width: 767px) {
  .cx-scrim { align-items: end; padding: 0; }
  .cx-modal { width: 100%; border-radius: var(--cf-radius-xl) var(--cf-radius-xl) 0 0; max-height: 88dvh; }
  .cx-modal .cf-modal__head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; }
  .cx-modal .cf-modal__acts { grid-column: 1 / -1; grid-row: 2; }
  .cx-modal .cf-modal__acts .cf-btn { flex: 1; }
  .cx-modal .cx-logo-lg, .cx-modal .cf-monogram--lg { width: 40px; height: 40px; }
  .cx-modal-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- таблица ------------------------------------------------------ */
.cx-scroll { max-height: max(420px, calc(100dvh - 180px)); overscroll-behavior: contain; }
.cx-table td { padding-top: 10px; padding-bottom: 10px; }
.cx-table tbody tr[data-url] { cursor: pointer; }
.cx-table .cf-issuer { max-width: 360px; }
.cx-table .cf-issuer__name { white-space: nowrap; }
.cx-code { font-family: var(--font-mono); font-size: 12px; color: var(--cf-ink-3); }
.cx-op { color: var(--cf-ink-2); }
.cx-muted { color: var(--cf-ink-3); }
.cx-rate-var { color: var(--cf-ink-2); }
.cx-table .cf-issuer__logo img { background: var(--cf-surface); }
.cx-empty-cell { padding: 0 !important; text-align: center !important; white-space: normal !important; }
.cx-skel-iss { display: inline-flex; align-items: center; gap: 12px; }


/* группа эмитента: строка-заголовок и выпуски под ней */
.cx-group-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.cx-group-btn:focus-visible { outline: 2px solid var(--cf-accent); outline-offset: 3px; border-radius: var(--cf-radius-xs); }
.cx-chev { flex: none; margin-left: 2px; color: var(--cf-ink-3); transform: rotate(90deg); transition: transform var(--cf-dur) var(--cf-ease); }
.cx-group-sub { display: inline-flex; align-items: center; gap: 4px; }
.cx-group.is-open .cx-chev { transform: rotate(-90deg); color: var(--cf-accent); }
.cx-group:hover .cx-group-sub { color: var(--cf-accent); }
.cx-group { cursor: pointer; }
.cx-child td { background: var(--cf-surface-2); }
.cx-child td:first-child { padding-left: 64px; }   /* имя выпуска под именем группы: 20 + знак 32 + зазор 12 */
.cx-ml-group { width: 100%; border: 0; margin: 0; background: var(--cf-surface); font: inherit; text-align: left; cursor: pointer; }
.cx-ml-group[aria-expanded="true"] .ml-cap { color: var(--cf-accent); }
.cx-ml-child { background: var(--cf-surface-2); }
@media (prefers-reduced-motion: reduce) { .cx-chev { transition: none; } }

/* --- карточка выпуска: разметка и стили страницы облигации (lib/bond-v2.css),
   здесь только отличия ЦФА ------------------------------------------- */
.cx-card .tick.cx-tick { grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
.cx-card .hero.cx-hero-solo { grid-template-columns: minmax(0, 1fr); }
.cx-card .bp-tag.cx-st-default { background: var(--dn-soft); color: var(--dn); }
.cx-card .bp-tag.cx-st-placement { background: var(--acc-soft); color: var(--acc); }
.cx-card .bp-tag.cx-st-expired { background: var(--warn-soft); color: var(--warn); }
.cx-flag { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 500; }
.cx-flag--dn { background: var(--dn-soft); color: var(--dn); }
.cx-docs-tab { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; padding-top: 4px; }
.cx-docs-tab a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500; }
.cx-docs-tab a::after { content: "↗"; color: var(--ink3); }
.cx-docs-tab a:hover { color: var(--acc); }
@media (max-width: 1100px) { .cx-card .tick.cx-tick { grid-template-columns: repeat(min(var(--n, 7), 4), minmax(0, 1fr)); } }
@media (max-width: 640px) { .cx-card .tick.cx-tick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- SEO-блок: интро + две колонки (текст / FAQ) ------------------ */
.cx-seo { margin-top: 36px; border-top: 1px solid var(--cf-line); padding-top: 24px; }
.cx-seo-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; color: var(--cf-ink); }
.cx-seo > p { font-size: 14px; line-height: 1.65; color: var(--cf-ink-2); margin: 0 0 10px; max-width: 920px; }
.cx-seo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8px 48px; margin-top: 8px; }
.cx-seo-grid > div, .cx-seo-grid > aside { min-width: 0; }
.cx-seo-main h2 { font-size: 16.5px; font-weight: 700; margin: 22px 0 8px; letter-spacing: -.005em; color: var(--cf-ink); }
.cx-seo-main h2:first-child { margin-top: 0; }
.cx-seo-main h3 { font-size: 14.5px; font-weight: 700; margin: 14px 0 6px; }
.cx-seo-main p, .cx-seo-main ul, .cx-seo-main ol { font-size: 13.5px; line-height: 1.62; color: var(--cf-ink-2); margin: 0 0 10px; }
.cx-seo-main ul, .cx-seo-main ol { padding-left: 20px; }
.cx-seo-main li { margin-bottom: 5px; }
.cx-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cx-scroll-x table { min-width: 520px; }
.cx-seo-main table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 14px; }
.cx-seo-main table th, .cx-seo-main table td { padding: 8px 10px; border-bottom: 1px solid var(--cf-line); text-align: left; vertical-align: top; line-height: 1.45; }
.cx-seo-main table th { font-size: 11px; text-transform: uppercase; letter-spacing: .02em; color: var(--cf-ink-3); }
.cx-seo-faq h2 { font-size: 16.5px; font-weight: 700; margin: 22px 0 8px; color: var(--cf-ink); }
.cx-seo-note { font-size: 12px; color: var(--cf-ink-3); margin-top: 18px; max-width: 920px; }

/* --- телефон ----------------------------------------------------- */
@media (max-width: 767px) {
  .cx-main { padding: 20px 16px 48px; }
  .cx-head .cf-head__title { font-size: 28px; }
  .cx-tabs { margin: 0 -16px var(--cf-space-8); padding: 0 16px; }
  .cx-count-line { display: none; }
  .cx-seo-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
