/* ProAccessHelper Feed — design system extracted from pro-access.ru/ (block «Новости и полезные статьи»)
   Palette: deep teal #2e6b75 / medium teal #447f88 / light teal #c8e2de
   Typography: Manrope (Google Fonts) + system fallback
   Motion: 0.2s ease-in-out, zoom-in on-scroll for hero title */

:root {
  --pa-bg: #ffffff;
  --pa-bg-soft: #f7f9fa;
  --pa-surface: #ffffff;
  --pa-border: #bebebe;
  --pa-border-soft: rgba(190, 190, 190, 0.3);

  --pa-text: #333333;
  --pa-text-muted: #6b7280;
  --pa-text-light: #9ca3af;

  --pa-primary: #2e6b75;
  --pa-primary-hover: #447f88;
  --pa-primary-soft: #c8e2de;
  --pa-primary-softer: #daeceb;

  --pa-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --pa-shadow-card-hover: 0 8px 24px rgba(46, 107, 117, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);

  --pa-radius: 5px;
  --pa-radius-card: 8px;

  --pa-font: 'Manrope', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pa-section-gap: 90px;
  --pa-card-gap: 30px;
  --pa-card-padding: 24px;

  --pa-transition: 0.2s ease-in-out;
  --pa-transition-fast: 0.15s ease-in-out;

  --pa-max-width: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pa-bg-soft);
  color: var(--pa-text);
  font-family: var(--pa-font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.pa-header {
  background: var(--pa-surface);
  border-bottom: 1px solid var(--pa-border-soft);
  padding: 28px 0;
}
.pa-container {
  max-width: var(--pa-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.pa-header h1,
.pa-brand {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--pa-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-block;
  transition: color var(--pa-transition);
}
.pa-brand:hover {
  color: var(--pa-primary-hover);
}
.pa-subtitle {
  margin: 4px 0 0;
  color: var(--pa-text-muted);
  font-size: 14px;
  font-weight: 400;
}
.pa-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--pa-primary-soft);
  color: var(--pa-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  vertical-align: middle;
}

.pa-section-title {
  margin: 32px 0 14px;
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  color: var(--pa-primary);
  text-align: center;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.pa-section-title.pa-animate-in {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 960px) {
  .pa-section-title { font-size: 38px; margin: 28px 0 12px; }
}
@media (max-width: 480px) {
  .pa-section-title { font-size: 28px; margin: 22px 0 10px; }
}

.pa-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* match pro-access.ru t-feed centred filter row */
  gap: 8px;
  margin: 0 auto 28px;
  max-width: max-content;
  padding: 0;
}
/* Filter pill — semantic <button type="button"> styled to feel like a small
   chip matching the card's pa-tag-label aesthetic (12px / 700 / tight letter-
   spacing / teal border).  Lifts gently on hover, presses on :active, and
   shows a clear focus ring for keyboard navigation. */
.pa-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 12px;
  background: var(--pa-surface);
  color: var(--pa-text-muted);
  border: 1px solid var(--pa-border);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--pa-transition),
              color var(--pa-transition),
              border-color var(--pa-transition),
              box-shadow var(--pa-transition),
              transform var(--pa-transition);
}
.pa-filter:hover {
  color: var(--pa-primary);
  border-color: var(--pa-primary);
  box-shadow: 0 2px 6px rgba(46, 107, 117, 0.16);
  transform: translateY(-1px);
}
.pa-filter:active {
  transform: translateY(0);
}
.pa-filter:focus-visible {
  outline: 2px solid var(--pa-primary);
  outline-offset: 3px;
}
.pa-filter--active,
.pa-filter--active:hover {
  background: var(--pa-primary);
  color: #ffffff;
  border-color: var(--pa-primary);
  box-shadow: 0 2px 6px rgba(46, 107, 117, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: none;
}
.pa-filter--active:focus-visible {
  outline-color: #ffffff;
  outline-offset: 3px;
}

.pa-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pa-card-gap);
  margin-bottom: 40px;
}
@media (max-width: 960px) { .pa-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pa-feed { grid-template-columns: 1fr; } }

/* Commit C — single-card preview mode. When ``.pa-feed--single`` is set
   the grid collapses to one centred column and the only card inside
   gets ``.pa-card--preview`` so it can stretch to ~720px and show the
   full body instead of the truncated card descr. The pager
   ``.pa-card-nav`` sits below the feed and is only visible when there
   are at least two posts (the JS toggles ``hidden``). */
.pa-feed--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.pa-card--preview {
  /* Inherit everything from ``.pa-card``; just override the cover/body
     sizing so the user sees the full post on a single card. */
  max-width: 720px;
  margin: 0 auto;
}
.pa-card--preview .pa-card__cover {
  aspect-ratio: 16 / 9;
}
.pa-card--preview .pa-card__title {
  font-size: 28px;
  line-height: 1.2;
}
.pa-card--preview .pa-card__descr {
  display: block;
  -webkit-line-clamp: unset;
}

/* Single-draft preview (``?preview=<id>``) — the moderator landed
   here from the «👁 Превью» button on the moderation keyboard.  Hide
   the public site chrome (filter bar) and surface a small «Черновик»
   ribbon above the card so the moderator remembers the post isn't
   published yet. */
body.pa-single-draft .pa-filters {
  display: none;
}
.pa-draft-ribbon {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 0 16px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #b1530c;
  border-radius: 999px;
}

/* Moderator preview subdomain (``pre.*``) — full-screen popup at
   ``/<id>`` URL.  Per user request the page should look like a bare
   preview window: no header, no filter bar, no pager, no footer,
   no animations — just the popup with photo + body.  We also
   pin the popup to the viewport and give the close button focus
   so the moderator can close it with Esc. */
body.pa-preview-only {
  background: #fff;
}
body.pa-preview-only .pa-header,
body.pa-preview-only .pa-filters,
body.pa-preview-only .pa-card-nav,
body.pa-preview-only .pa-footer,
body.pa-preview-only .pa-section-title,
body.pa-preview-only .pa-popup__bar,
body.pa-preview-only .pa-popup__share {
  display: none;
}
body.pa-preview-only .pa-feed {
  margin: 0;
  padding: 24px 0;
}
body.pa-preview-only .pa-card {
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
body.pa-preview-only .pa-feed {
  /* The single card rendered by ``render()`` in preview-only mode is
     superseded by the popup that ``autoOpenFirstPopup()`` opens below.
     Without this ``display: none`` the user sees the short card AND a
     second copy of the same post via the (now-fixed) popup below it
     — and on short viewports only the card is visible.  Hiding the
     feed keeps the page to «one full-screen popup, nothing else» as
     the original nginx comment in ``pre.domen-proaccess`` requires. */
  display: none;
}
body.pa-preview-only .pa-popup {
  /* Preview subdomain renders only the popup — fixed + opaque so it
     fills the viewport.  The previous ``position: static; background:
     transparent`` rules dropped the popup into the normal flow UNDER
     the feed card; with ``body.pa-popup-open { overflow: hidden }``
     in place the page stays put and the popup is the only thing
     visible. */
  position: fixed;
  inset: 0;
  background: var(--pa-bg);
}
.pa-card-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 0 36px;
}
.pa-card-nav[hidden] {
  display: none;
}
.pa-card-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pa-primary);
  background: var(--pa-bg);
  color: var(--pa-primary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background var(--pa-transition), color var(--pa-transition);
}
.pa-card-nav__btn:hover:not(:disabled) {
  background: var(--pa-primary);
  color: var(--pa-bg);
}
.pa-card-nav__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pa-card-nav__counter {
  min-width: 64px;
  text-align: center;
  color: var(--pa-text-muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.pa-loading,
.pa-empty,
.pa-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--pa-text-muted);
  padding: 48px 0;
  font-size: 16px;
}
.pa-error pre {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
  overflow-x: auto;
}

.pa-card {
  background: var(--pa-surface);
  border-radius: var(--pa-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--pa-transition),
              box-shadow var(--pa-transition),
              background var(--pa-transition);
}
.pa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pa-shadow-card-hover);
  background: var(--pa-primary-softer);
}
.pa-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pa-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--pa-primary-softer), #f0f7f6);
  overflow: hidden;
}
.pa-card__cover-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease-out;
}
.pa-card:hover .pa-card__cover-inner {
  transform: scale(1.05);
}
.pa-card__cover--placeholder {
  background: linear-gradient(135deg, #c8e2de 0%, #72a8a7 100%);
}

.pa-card__body {
  /* User (Игорь, 2026-07-15) three spacing complaints:
   *  • «к картинке этот блок слишком близко»  — image → Новости
   *  • «от title до category слишком большие» — Новости → title
   *  • «подробнее прижато»  — date → «подробнее»
   *
   * Top padding 20→28px (more air between cover and the category
   * label).  gap 10→0 (drop the blanket gap and control each
   * inter-row spacing explicitly below, so the Новости↔title
   * couple sits tight while the date↔подробнее couple gets
   * the breathing room the user asked for).
   *
   * !important on padding: Tilda's main-domain CSS zeroes
   * .t-feed__post-content padding, leaving title / date /
   * «подробнее» flush against the card's left edge.  Same
   * defence as the previous commit. */
  padding: 28px 24px 24px !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pa-card__category {
  order: 0;
.pa-card__category   /* left-aligned by default — fits the natural reading flow. */
  margin-bottom: 0;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.pa-card__title {
  order: 1;
  /* Belt-and-braces: Tilda's main-domain CSS overrides our
   * .pa-card__body padding AND inline-styles .pa-card__title
   * with padding: 0, leaving the title flush against the card's
   * left edge.  padding-left + !important on the title itself
   * is the only thing the cascade can still override. */
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-bottom: 4px;
}
.pa-card__descr { order: 2; padding-left: 24px !important; padding-right: 24px !important; margin-bottom: 0; }
.pa-card__more { order: 4; }
.pa-card__date {
  font-size: 13px;
  color: var(--pa-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  order: 3;     /* moved above подробнее (order 4), below description (order 2) */
  margin-top: auto;     /* push date toward the bottom if room */
  /* Belt-and-braces: on Tilda's main domain the card body was
   * rendering as a row instead of a column, putting the date
   * and the «подробнее» button side by side.  ``display: block;
   * width: 100%`` forces the date onto its own line. */
  display: block;
  width: 100%;
  margin-bottom: 0;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.pa-card__date {
  font-size: 13px;
  color: var(--pa-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  order: 3;     /* moved above подробнее (order 4), below description (order 2) */
  margin-top: auto;     /* push date toward the bottom if room */
  /* Belt-and-braces: on Tilda's main domain the card body was
   * rendering as a row instead of a column, putting the date
   * and the «подробнее» button side by side.  ``display: block;
   * width: 100%`` forces the date onto its own line. */
  display: block;
  width: 100%;
  margin-bottom: 0;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.pa-card__title {
  order: 1;
  /* Belt-and-braces: Tilda's main-domain CSS overrides our
   * .pa-card__body padding AND inline-styles .pa-card__title
   * with padding: 0, leaving the title flush against the card's
   * left edge.  padding-left + !important on the title itself
   * is the only thing the cascade can still override. */
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.pa-card__descr { order: 2; padding-left: 24px !important; padding-right: 24px !important; }
.pa-card__category {
  order: 0;
.pa-card__category   /* left-aligned by default — fits the natural reading flow. */
  margin-bottom: 0;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
/* Small uppercase tag/label above the card title. Per user request:
   no border — just a thin underline in the same colour as the text. */
.pa-tag-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pa-primary);
  margin-bottom: 6px;
  padding: 0;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  align-self: flex-start;
}
.pa-tag-label--event {
  color: #b45309;
}
.pa-tag-label--news {
  color: var(--pa-primary);
}
.pa-tag-label--article {
  color: var(--pa-primary);
}
.pa-card__category {
  /* legacy class retained for backwards compat with feed.json — render
     as the same flat label, no background pill. */
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.pa-card__category--event {
  background: transparent;
  color: #b45309;
}
.pa-card__title {
  margin: 0 !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--pa-primary);
  transition: color var(--pa-transition);
}
.pa-card__descr {
  margin: 0;
  font-size: 14px;
  color: var(--pa-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Same reasoning as .pa-card__title — see comment there. */
  overflow: hidden;
}
.pa-card__descr em {
  font-style: italic;
}
.pa-card__descr strong {
  font-weight: 600;
  color: var(--pa-text);
}
.pa-card__descr code {
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(46, 107, 117, 0.08);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}
.pa-card__descr a {
  color: var(--pa-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-word;
}
/* .pa-card__tags <ul><li> postparts block removed per user request
   («<li>Новости</li> это удали»).  The category tag is the single
   category indicator now; the .pa-card__more button sits centred
   beneath it. */

.pa-card__more {
  margin-top: 18px;
  margin-left: 24px;
  /* User (Игорь, 2026-07-15): «Подробнее как раньше» — i.e.
   * restore the pre-restyle look (ghost button, inline-block
   * sized to content + 18px side padding, left-aligned under
   * the date).  The full-width stretch I added in commit
   * b1ca7c4 made it look like a hero CTA.  The new padding-
   * left/right !important on the body children (commit d81334e)
   * handles the «no left padding» complaint; this rule just
   * has to leave the button its natural width.  margin-top
   * bumped 12→18px per «подробнее прижато» — extra air
   * between the date row and the button.
   *
   * 2026-07-15: «подробнее все еще не в ровень» — the button's
   * border was sitting flush against the card's left edge
   * (its 24px text padding put the text inside the button
   * at 24px, but the border itself was at 0).  margin-left
   * 24px pushes the whole button (border + text) to 24px from
   * the card's left edge so the border now sits on the same
   * left axis as the title / descr / date text. */
  display: inline-block;
  padding: 8px 18px;
  background: transparent;
  color: var(--pa-primary);
  border: 1px solid var(--pa-primary);
  border-radius: var(--pa-radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: none;
  transition: background var(--pa-transition), color var(--pa-transition),
              transform var(--pa-transition), border-color var(--pa-transition);
}
.pa-card__more:hover {
  background: var(--pa-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.pa-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--pa-text-muted);
  font-size: 12px;
  border-top: 1px solid var(--pa-border-soft);
  background: var(--pa-surface);
}
.pa-footer a {
  color: var(--pa-primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--pa-primary-soft);
}
.pa-footer a:hover {
  color: var(--pa-primary-hover);
  border-bottom-color: currentColor;
}

@media (max-width: 640px) {
  .pa-filter {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Post Popup (расскрытая карточка)
   Mirrors pro-access.ru t-feed__post-popup:
   - full-screen overlay, white bg
   - sticky top bar with ← back-arrow + breadcrumb label + share icon
   - title color: #2e6b75
   - cover radius: 10px
   - bottom section «Смотрите также» (t-uptitle_xxl teal title + 3 small cards)
   ───────────────────────────────────────────────────────────────── */

.pa-popup {
  position: fixed;
  inset: 0;
  background: var(--pa-bg);
  z-index: 100;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.pa-popup.pa-popup--open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.pa-popup__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--pa-bg);
  border-bottom: 1px solid var(--pa-border-soft);
  padding: 14px 0;
}
.pa-popup__bar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pa-popup__back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pa-text);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--pa-transition);
}
.pa-popup__back:hover { color: var(--pa-primary); }
.pa-popup__back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.pa-popup__share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--pa-text);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--pa-transition), color var(--pa-transition);
}
.pa-popup__share:hover {
  background: var(--pa-primary-softer);
  color: var(--pa-primary);
}
.pa-popup__share svg { width: 18px; height: 18px; fill: currentColor; }

.pa-popup__container {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.pa-popup__title {
  margin: 0 0 24px;
  font-size: 42px;
  font-weight: 700;
  color: var(--pa-primary);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.pa-popup__cover {
  margin: 0 0 28px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pa-primary-softer), #f0f7f6);
}
.pa-popup__cover img {
  width: 100%;
  display: block;
  height: auto;
}
.pa-popup__cover--placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #c8e2de 0%, #72a8a7 100%);
}

.pa-popup__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--pa-text);
  word-wrap: break-word;
}
.pa-popup__body p {
  margin: 0 0 16px;
}
.pa-popup__body h2,
.pa-popup__body h3,
.pa-popup__body h4 {
  margin: 32px 0 14px;
  font-weight: 700;
  color: var(--pa-primary);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.pa-popup__body h2 { font-size: 26px; }
.pa-popup__body h3 { font-size: 20px; }
.pa-popup__body h4 { font-size: 17px; }
.pa-popup__body strong { font-weight: 700; color: var(--pa-text); }
.pa-popup__body em { font-style: italic; }
.pa-popup__body ul,
.pa-popup__body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.pa-popup__body li { margin-bottom: 6px; }
.pa-popup__body a {
  color: #247789;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.pa-popup__body a:hover { color: var(--pa-primary-hover); }
.pa-popup__body blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--pa-primary);
  background: var(--pa-primary-softer);
  border-radius: 0 var(--pa-radius) var(--pa-radius) 0;
  font-style: italic;
  color: var(--pa-text);
}
.pa-popup__body code {
  padding: 1px 6px;
  background: var(--pa-bg-soft);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* Markdown table — emitted by mdToHtml() when the AI rewriter's output
   contains a pipe-table (``| col | col |`` + separator).  Previous state
   rendered the raw pipes inside a <p>, which leaked through as visible
   ``|`` characters on pro-access.ru. */
.pa-popup__body table.pa-md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.95em;
  line-height: 1.45;
}
.pa-popup__body .pa-md-table th,
.pa-popup__body .pa-md-table td {
  padding: 8px 12px;
  border: 1px solid var(--pa-divider, #d9e2e6);
  text-align: left;
  vertical-align: top;
}
.pa-popup__body .pa-md-table th {
  background: var(--pa-bg-soft, #eef3f5);
  font-weight: 600;
  color: var(--pa-text, #0f1f24);
}
.pa-popup__body .pa-md-table tr:nth-child(even) td {
  background: rgba(46, 107, 117, 0.04);
}
.pa-popup__body hr {
  border: 0;
  border-top: 1px solid var(--pa-divider, #d9e2e6);
  margin: 18px 0;
}


.pa-popup__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 28px 0 56px;
  font-size: 12px;
  color: var(--pa-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.pa-popup__tag {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: var(--pa-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  font-size: 11px;
  transition: color var(--pa-transition);
}
.pa-popup__tag:hover {
  color: var(--pa-primary-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* «Смотрите также» */
.pa-popup__relevants {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--pa-border-soft);
}
.pa-popup__relevants-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: var(--pa-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pa-popup__relevants-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .pa-popup__relevants-grid { grid-template-columns: 1fr; }
}

.pa-relevants-card {
  background: var(--pa-surface);
  border-radius: var(--pa-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--pa-transition), box-shadow var(--pa-transition);
  cursor: pointer;
}
.pa-relevants-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pa-shadow-card);
}
.pa-relevants-card__cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background: linear-gradient(135deg, var(--pa-primary-softer), #f0f7f6);
}
.pa-relevants-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pa-relevants-card__title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--pa-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pa-relevants-card__date {
  display: block;
  font-size: 11px;
  color: var(--pa-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  order: 1;
}
.pa-relevants-card__category {
  order: 0;
}

@media (max-width: 768px) {
  .pa-popup__title { font-size: 28px; }
  .pa-popup__container { padding: 24px 16px 60px; }
  .pa-popup__relevants-title { font-size: 22px; }
}

/* Body lock when popup is open */
body.pa-popup-open {
  overflow: hidden;
}

/* Screen-reader / visually-hidden helper for SEO headings we want
   parsers to see but don't need a visual representation of (e.g.
   the single H1 we expect on every page).  Standard SR-only recipe.
*/
.pa-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Short human-readable list of the section's three categories
   ("Категории раздела: Новости, Статьи, Мероприятия.") under the H3
   and above the filter nav.  Crawlers parse this to ground the H3
   header; users get an explicit preview of what the filter does.  We
   keep it as a <p> (not a heading) because the host site owns all
   heading ranks above our H3. */
.pa-section-categories {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pa-text-muted, #6c7a82);
}
.pa-section-categories span {
  font-weight: 500;
  color: var(--pa-primary, #2e6b75);
}
