/* The content canvas is narrower than the viewport when the identity rail is
 * present. Reflow canonical catalog filters before their actions can be
 * clipped; both document and registry instances use the same rule. */
@media (min-width: 1024px) and (max-width: 1399.98px) {
  .theme-fstcho-next :is(.fst-next-document-filter, .fst-next-registry__filter) {
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .theme-fstcho-next .fst-next-editorial-filter,
  .theme-fstcho-next .fst-next-publication-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-next-editorial-filter__search {
    grid-column: span 2;
  }

  .theme-fstcho-next .fst-next-editorial-filter__actions {
    grid-column: 2;
  }

  .theme-fstcho-next .fst-next-registry__filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-next-registry__filter-actions {
    grid-column: 2;
  }

  .theme-fstcho-next .fst-home-nav__menu {
    border-radius: 0 0 var(--fst-radius) var(--fst-radius);
    background: rgba(25, 31, 34, .99);
  }

  .theme-fstcho-next .fst-home-hero__identity {
    width: min(100% - 40px, var(--fst-content-width));
  }
}

@media (max-width: 767.98px) {
  .theme-fstcho-next .fst-home-section__heading--row {
    display: block;
  }

  .theme-fstcho-next .fst-home-section__heading--row > a {
    display: inline-block;
    margin-top: 16px;
  }
  .theme-fstcho-next .fst-page-container--system-search,
  .theme-fstcho-next .fst-page-container--system-auth {
    padding-top: 28px;
  }

  .theme-fstcho-next .fst-next-system-hero {
    display: block;
    min-height: 0;
    padding: 34px 0;
  }

  .theme-fstcho-next .fst-next-system-hero h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .theme-fstcho-next .fst-next-system-hero > p {
    margin-top: 22px;
    font-size: 13px;
  }

  .theme-fstcho-next .fst-page-container--system-search .fst-next-system-content {
    margin-top: 32px;
  }

  .theme-fstcho-next .fst-next-system-content .search-form .container-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-system-content .search-form input[type="submit"] {
    width: 100%;
  }

  .theme-fstcho-next .fst-next-system-content .fst-search-result {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding-block: 20px;
  }

  .theme-fstcho-next .fst-next-system-content .fst-search-result h3 {
    grid-column: 2;
  }

  .theme-fstcho-next .fst-next-system-content .fst-search-result .search-result__snippet {
    grid-column: 2;
    text-align: left;
  }

  .theme-fstcho-next .fst-next-auth-grid,
  .theme-fstcho-next .fst-next-auth-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-auth-card {
    padding: 24px;
  }

  .theme-fstcho-next .fst-telegram-connect-card {
    margin-top: 32px;
    padding: 24px;
  }

  .theme-fstcho-next .fst-next-auth-card .fst-telegram-login,
  .theme-fstcho-next .fst-next-auth-card .form-actions,
  .theme-fstcho-next .fst-next-auth-card .form-actions .btn,
  .theme-fstcho-next .fst-next-auth-note .btn {
    width: 100%;
  }

  .theme-fstcho-next .fst-next-auth-card .fst-telegram-login {
    justify-content: center;
    margin: 0 0 12px;
  }
}

@media (max-width: 980px) {
  .theme-fstcho-next .fst-next-detail__header,
  .theme-fstcho-next .fst-next-publication-detail__layout,
  .theme-fstcho-next .fst-next-document-detail__layout,
  .theme-fstcho-next .fst-next-route-report__overview--with-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-detail__header {
    gap: 26px;
    align-items: start;
  }

  .theme-fstcho-next .fst-next-detail__lead {
    max-width: 700px;
  }

  .theme-fstcho-next .fst-next-publication-detail__layout {
    gap: 30px;
  }

  .theme-fstcho-next .fst-next-detail__aside {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .theme-fstcho-next:is(
    .page-node-type-fstcho-publication,
    .page-node-type-fstcho-document,
    .page-node-type-fstcho-route-report
  ) .fst-page-container,
  .theme-fstcho-next.path-documents .fst-page-container:has(.fst-document-preview) {
    padding-right: 16px;
    padding-left: 16px;
  }

  .theme-fstcho-next .fst-next-detail__header {
    min-height: 0;
    padding: 34px 0 30px;
  }

  .theme-fstcho-next .fst-next-detail__header h1,
  .theme-fstcho-next .fst-document-preview__identity h1 {
    font-size: clamp(39px, 12.5vw, 58px);
    overflow-wrap: anywhere;
  }

  .theme-fstcho-next .fst-next-publication-detail__layout,
  .theme-fstcho-next .fst-next-document-detail__layout,
  .theme-fstcho-next .fst-next-route-report__overview {
    padding-top: 30px;
    padding-bottom: 42px;
  }

  .theme-fstcho-next .fst-next-publication-detail__article > .fst-next-detail__media {
    margin-bottom: 24px;
  }

  .theme-fstcho-next .fst-next-related__grid,
  .theme-fstcho-next .fst-next-document-card__facts,
  .theme-fstcho-next .fst-next-route-report__sections {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-document-card,
  .theme-fstcho-next .fst-next-document-source,
  .theme-fstcho-next .fst-next-route-report__facts,
  .theme-fstcho-next .fst-next-detail__aside {
    padding: 22px;
  }

  .theme-fstcho-next .fst-next-document-card__actions,
  .theme-fstcho-next .fst-document-preview__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-document-card__actions .btn,
  .theme-fstcho-next .fst-document-preview__actions .btn {
    width: 100%;
  }

  .theme-fstcho-next .fst-next-route-report__overview > .fst-next-detail__media {
    min-height: 260px;
  }

  .theme-fstcho-next .fst-next-route-report__sections > section {
    min-height: 0;
  }

  .theme-fstcho-next .fst-document-preview__toolbar {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 34px 0 28px;
  }

  .theme-fstcho-next .fst-document-preview__frame {
    min-height: 720px;
  }
}

@media (max-width: 860px) {
  .theme-fstcho-next .fst-next-section__header,
  .theme-fstcho-next .fst-next-gallery-header {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 46px 0 34px;
  }

  .theme-fstcho-next .fst-next-section__header h1,
  .theme-fstcho-next .fst-next-gallery-header h1 {
    font-size: 46px;
  }

  .theme-fstcho-next .fst-next-section__lead,
  .theme-fstcho-next .fst-next-gallery-header > p {
    max-width: none;
    font-size: 13px;
  }

  .theme-fstcho-next .fst-next-section-links,
  .theme-fstcho-next .fst-next-info-body,
  .theme-fstcho-next .fst-next-gallery-resources {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-section-link {
    min-height: 132px;
    padding: 24px 22px;
    border-right: 0;
  }

  .theme-fstcho-next .fst-next-section-spotlight {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 28px;
  }

  .theme-fstcho-next .fst-next-section-spotlight img {
    height: 230px;
    grid-row: 1;
  }

  .theme-fstcho-next .fst-next-section-spotlight .btn {
    width: 100%;
  }

  .theme-fstcho-next .fst-next-section-stats,
  .theme-fstcho-next .fst-next-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-next-info-tabs {
    gap: 28px;
    overflow-x: auto;
  }

  .theme-fstcho-next .fst-next-info-body {
    gap: 48px;
    padding: 46px 0 58px;
  }

  .theme-fstcho-next .fst-next-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .theme-fstcho-next .fst-next-gallery__item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .theme-fstcho-next .fst-next-gallery__item:nth-child(5n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 560px) {
  .theme-fstcho-next .fst-next-section-link {
    min-height: 112px;
    grid-template-columns: 32px minmax(0, 1fr) 22px;
    gap: 12px;
  }

  .theme-fstcho-next .fst-next-section-link__copy strong {
    font-size: 24px;
  }

  .theme-fstcho-next .fst-next-section-spotlight {
    margin-top: 48px;
    padding: 20px;
  }

  .theme-fstcho-next .fst-next-section-spotlight img {
    height: 190px;
  }

  .theme-fstcho-next .fst-next-section-stats > div {
    min-height: 104px;
    padding: 20px;
  }

  .theme-fstcho-next .fst-next-section-stats dd {
    font-size: 34px;
  }

  .theme-fstcho-next .fst-next-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-media-card__image {
    height: 220px;
  }

  .theme-fstcho-next .fst-next-gallery__grid {
    grid-auto-rows: 150px;
    gap: 12px;
  }

  .theme-fstcho-next .fst-next-gallery__item:nth-child(5n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 767.98px) {
  .theme-fstcho-next:is(.path-calendar, .path-competitions, .path-education, .path-results, .path-news) .fst-page-container--catalog {
    padding: 78px 18px 70px;
  }

  .theme-fstcho-next .fst-next-editorial-catalog {
    padding-top: 0;
  }

  .theme-fstcho-next .fst-next-editorial-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    margin: 0;
    padding: 46px 0 34px;
  }

  .theme-fstcho-next .fst-next-editorial-header .fst-catalog__eyebrow {
    margin-bottom: 0;
  }

  .theme-fstcho-next .fst-next-editorial-header h1 {
    margin-top: 16px;
    font-size: 46px;
  }

  .theme-fstcho-next .fst-next-editorial-header > p {
    max-width: none;
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.75;
  }

  .theme-fstcho-next .fst-next-catalog-tabs {
    gap: 34px;
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .theme-fstcho-next .fst-next-catalog-tabs a {
    padding-block: 0;
  }

  .theme-fstcho-next .fst-next-editorial-filter,
  .theme-fstcho-next .fst-next-publication-filter {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin: 26px 0 0;
    padding: 18px;
  }

  .theme-fstcho-next .fst-next-event-card,
  .theme-fstcho-next .fst-next-publication-card__media {
    border-radius: var(--fst-radius-xs);
  }

  .theme-fstcho-next .fst-next-editorial-filter__search,
  .theme-fstcho-next .fst-next-editorial-filter__actions {
    grid-column: 1;
  }

  .theme-fstcho-next .fst-next-event-catalog .fst-next-editorial-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-event-grid,
  .theme-fstcho-next .fst-next-publication-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-event-card {
    height: auto;
    min-height: 210px;
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-event-card__media {
    width: 120px;
    height: 100%;
    min-height: 210px;
  }

  .theme-fstcho-next .fst-next-event-card__body {
    padding: 23px;
  }

  .theme-fstcho-next .fst-next-event-card h2 {
    font-size: 20px;
  }

  .theme-fstcho-next .fst-next-event-card__meta {
    flex-wrap: wrap;
  }

  .theme-fstcho-next .fst-next-event-card__meta .fst-status-marker {
    text-align: left;
  }

  .theme-fstcho-next .fst-next-publication-grid {
    gap: 34px;
    margin-top: 46px;
  }

  .theme-fstcho-next .fst-next-publication-card__media {
    height: 240px;
  }

  .theme-fstcho-next .fst-next-document-table {
    min-width: 900px !important;
  }

  .theme-fstcho-next .fst-next-registry__header {
    margin-bottom: 26px;
  }

  .theme-fstcho-next .fst-next-registry__header h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
    white-space: normal;
  }

  .theme-fstcho-next .fst-next-registry__filter {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .theme-fstcho-next .fst-next-registry__filter-actions {
    grid-column: 1;
  }

  .theme-fstcho-next .fst-next-registry__table {
    min-width: 980px !important;
  }


  :root {
    --fst-radius: 14px;
    --fst-radius-sm: 9px;
  }

  .theme-fstcho-next {
    background: var(--fst-paper);
  }

  .theme-fstcho-next .fst-home-nav,
  .theme-fstcho-next .fst-home-nav__inner {
    min-height: 64px;
  }

  .theme-fstcho-next .fst-home-hero {
    min-height: calc(100svh - 0px);
    background-position: 62% center;
  }

  .theme-fstcho-next .fst-home-hero__identity {
    width: calc(100% - 32px);
    justify-content: flex-end;
    padding: 72px 0 64px;
  }

  .theme-fstcho-next .fst-home-hero__identity strong {
    font-size: clamp(4.1rem, 28vw, 7rem);
  }

  .theme-fstcho-next .fst-home-hero__identity span {
    max-width: 280px;
    margin-top: 24px;
  }

  .theme-fstcho-next .fst-inner-hero {
    min-height: 214px;
  }

  .theme-fstcho-next .fst-inner-hero__identity {
    min-height: 150px;
    padding: 18px 16px 30px;
  }

  .theme-fstcho-next .fst-inner-hero__mark {
    width: 62px;
  }

  .theme-fstcho-next .fst-content-surface > :where(.block-page-title-block h1, h1),
  .theme-fstcho-next .fst-catalog__header :is(h1, h2) {
    font-size: clamp(2.35rem, 14vw, 4.25rem);
    line-height: .9;
  }

  .theme-fstcho-next .fst-home-section__heading h2 {
    font-size: clamp(2.7rem, 14vw, 4.8rem);
  }

  .theme-fstcho-next .fst-catalog-grid {
    grid-template-columns: 1fr;
  }

  .theme-fstcho-next .fst-data-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .theme-fstcho-next .fst-public-registry .fst-catalog__header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 22px;
  }

  .theme-fstcho-next .fst-public-registry .fst-catalog__header h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    overflow-wrap: anywhere;
  }

  .theme-fstcho-next .fst-public-registry .fst-catalog-filter__controls {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 46px;
  }

  .theme-fstcho-next .fst-public-registry .fst-catalog-filter__controls .fst-catalog-filter__status {
    grid-column: 1 / -1;
  }

  .theme-fstcho-next .fst-public-registry .fst-catalog-filter__controls .btn-primary {
    width: 100%;
  }

  .theme-fstcho-next .fst-public-registry-table {
    min-width: 820px;
  }

  .theme-fstcho-next .fst-registry-methodology {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-inline: 0;
  }

  .theme-fstcho-next .fst-registry-methodology .btn {
    width: 100%;
  }

  .theme-fstcho-next .offcanvas {
    width: 100vw;
    border-radius: 0;
  }

  .theme-fstcho-next .fst-person-profile__header {
    margin-inline: -2px;
    padding: 24px 20px;
  }

  .theme-fstcho-next .fst-person-profile__header--with-photo {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
  }

  .theme-fstcho-next .fst-person-profile__portrait {
    min-height: 128px;
  }

  .theme-fstcho-next .fst-person-profile__header h1 {
    margin-bottom: 24px;
    font-size: clamp(2.25rem, 12vw, 3.65rem);
    line-height: .92;
    overflow-wrap: anywhere;
  }

  .theme-fstcho-next .fst-person-profile__identity-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .theme-fstcho-next .fst-person-profile__membership-mark {
    width: 56px;
    margin: -4px 0 0;
  }

  .theme-fstcho-next .fst-person-profile__summary,
  .theme-fstcho-next .fst-person-profile__registry-summary,
  .theme-fstcho-next .fst-person-profile__registries {
    grid-template-columns: 1fr;
  }

  .theme-fstcho-next .fst-person-profile__summary div,
  .theme-fstcho-next .fst-person-profile__summary div + div {
    min-height: 68px;
    padding: 14px 0;
    border-left: 0;
  }

  .theme-fstcho-next .fst-person-profile__summary div + div {
    border-top: 1px solid var(--fst-line);
  }

  .theme-fstcho-next .fst-person-profile__registry-summary-item,
  .theme-fstcho-next .fst-person-profile__registry-summary-item +
  .theme-fstcho-next .fst-person-profile__registry-summary-item {
    min-height: 76px;
    padding: 16px 0;
    border-left: 0;
  }

  .theme-fstcho-next .fst-person-profile__registry-summary-item +
  .theme-fstcho-next .fst-person-profile__registry-summary-item {
    border-top: 1px solid var(--fst-line);
  }

  .theme-fstcho-next .fst-person-profile__registry-summary-item h2 {
    min-height: 0;
    margin-bottom: 8px;
  }

  .theme-fstcho-next .fst-person-profile__registries {
    gap: 44px;
  }

  .theme-fstcho-next .fst-person-profile__registries .fst-section-heading {
    min-height: 0;
  }

  .theme-fstcho-next .fst-person-record__heading {
    display: grid;
  }

  .theme-fstcho-next .fst-person-record__heading span {
    white-space: normal;
  }

  .theme-fstcho-next .fst-person-record dl div,
  .theme-fstcho-next .fst-person-profile__registries .fst-person-record dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 1023.98px) {
  .theme-fstcho-next .fst-person-profile__intro > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .theme-fstcho-next .fst-person-profile__intro > div > p {
    max-width: 620px;
  }

  .theme-fstcho-next .fst-person-profile__dossier {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-person-profile__avatar {
    width: 82px;
    height: 104px;
  }

  .theme-fstcho-next .fst-person-profile__report {
    grid-column: 2;
    justify-self: start;
  }

  .theme-fstcho-next .fst-person-profile__registration {
    width: 100%;
  }

  .theme-fstcho-next .fst-next-document-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-next-document-stats a,
  .theme-fstcho-next .fst-next-document-stats a:nth-child(5n),
  .theme-fstcho-next .fst-next-document-stats a:nth-last-child(-n + 5) {
    border-right: 1px solid var(--fst-line);
    border-bottom: 1px solid var(--fst-line);
  }

  .theme-fstcho-next .fst-next-document-stats a:nth-child(3n) {
    border-right: 0;
  }

  .theme-fstcho-next .fst-next-document-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-next-document-filter__field--search,
  .theme-fstcho-next .fst-next-document-filter__actions {
    grid-column: 1 / -1;
  }

  .theme-fstcho-next .fst-event-page {
    display: block;
  }

  .theme-fstcho-next .fst-event-masthead {
    display: grid;
    grid-template-columns: 1fr;
  }

  .theme-fstcho-next .fst-event-masthead .fst-event-hero {
    grid-column: 1;
    grid-row: 1;
    width: calc(100% + 32px);
    height: clamp(280px, 58vw, 460px);
    min-height: 0;
    margin: 0 -16px;
  }

  .theme-fstcho-next .fst-event-masthead .fst-event-hero::after {
    background: linear-gradient(0deg, var(--fst-paper) 0%, rgba(247, 245, 240, .72) 19%, transparent 48%);
  }

  .theme-fstcho-next .fst-event-masthead__content,
  .theme-fstcho-next .fst-event-masthead:not(:has(.fst-event-hero)) .fst-event-masthead__content {
    grid-column: 1;
    grid-row: 2;
    margin-top: -92px;
    width: auto !important;
    padding: 0;
  }

  .theme-fstcho-next .fst-event-masthead__title {
    width: auto !important;
    max-width: 100% !important;
  }

  .theme-fstcho-next .fst-event-masthead__facts.fst-meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-event-page > .fst-event-lifecycle {
    width: 100%;
    margin: 26px 0 34px;
  }
}

@media (max-width: 575.98px) {
  .theme-fstcho-next .fst-catalog-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-catalog-filter__controls {
    width: 100%;
  }

  .theme-fstcho-next .fst-catalog-filter__controls > :where(.btn, .button) {
    flex: 1 1 auto;
  }

  .theme-fstcho-next .fst-page-container:has(.fst-event-page) > .fst-breadcrumb {
    display: none;
  }

  .theme-fstcho-next .fst-event-page > .fst-event-lifecycle li {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-event-page > .fst-event-lifecycle li > time {
    grid-column: 2;
    margin-top: -8px;
  }

  .theme-fstcho-next .fst-person-profile__intro {
    margin-bottom: 30px;
    padding-bottom: 28px;
  }

  .theme-fstcho-next .fst-person-profile__intro h1 {
    font-size: clamp(3.2rem, 17vw, 4.7rem);
    overflow-wrap: anywhere;
  }

  .theme-fstcho-next .fst-person-profile__dossier {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .theme-fstcho-next .fst-person-profile__avatar {
    width: 64px;
    height: 82px;
    font-size: 1.5rem;
  }

  .theme-fstcho-next .fst-person-profile__dossier-identity h2 {
    font-size: 1.7rem;
  }

  .theme-fstcho-next .fst-person-profile__registry-summary,
  .theme-fstcho-next .fst-person-profile__registration dl {
    grid-template-columns: 1fr;
  }

  .theme-fstcho-next .fst-person-profile__registration {
    padding: 22px 18px;
  }

  .theme-fstcho-next .fst-person-profile__registration dl div + div {
    border-top: 1px solid var(--fst-line);
    border-left: 0;
  }

  .theme-fstcho-next .fst-next-document-archive__header {
    margin-bottom: 30px;
  }

  .theme-fstcho-next .fst-next-document-archive__header h1 {
    white-space: normal;
  }

  .theme-fstcho-next .fst-next-document-stats {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-next-document-stats a,
  .theme-fstcho-next .fst-next-document-stats a:nth-child(3n) {
    min-height: 88px;
    border-right: 1px solid var(--fst-line);
  }

  .theme-fstcho-next .fst-next-document-stats a:nth-child(2n) {
    border-right: 0;
  }

  .theme-fstcho-next .fst-next-document-filter {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .theme-fstcho-next .fst-next-document-filter__field--search,
  .theme-fstcho-next .fst-next-document-filter__actions {
    grid-column: auto;
  }

  .theme-fstcho-next .fst-next-document-filter__actions {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .theme-fstcho-next .fst-next-document-filter__actions .fst-catalog-filter__status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479.98px) {
  .theme-fstcho-next .fst-person-profile__header--with-photo,
  .theme-fstcho-next .fst-person-profile__identity-heading {
    grid-template-columns: 1fr;
  }

  .theme-fstcho-next .fst-person-profile__portrait {
    width: 112px;
    min-height: 144px;
  }

  .theme-fstcho-next .fst-person-profile__membership-mark {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-fstcho-next *,
  .theme-fstcho-next *::before,
  .theme-fstcho-next *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .theme-fstcho-next .fst-next-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1120px) {
  .theme-fstcho-next .fst-next-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-identity-rail {
    width: 190px;
  }

  .theme-fstcho-next .fst-identity-rail__item > a,
  .theme-fstcho-next .fst-identity-rail__group > summary {
    font-size: .69rem;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__brand {
    align-items: flex-start;
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__contacts {
    justify-content: flex-start;
  }

  .theme-fstcho-next .fst-next-home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
    padding-inline: 44px;
  }

  .theme-fstcho-next .fst-event-masthead {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  }

  .theme-fstcho-next .fst-next-home-header {
    grid-template-columns: minmax(310px, 34%) minmax(0, 1fr) auto;
    gap: 18px;
  }

  .theme-fstcho-next .fst-next-home-brand {
    gap: 20px;
  }

  .theme-fstcho-next .fst-next-home-nav {
    gap: 16px 20px;
  }

  .theme-fstcho-next .fst-next-home-nav a {
    font-size: .72rem;
  }
}

@media (max-width: 860px) {
  .theme-fstcho-next .container {
    padding-inline: 22px;
  }

  .theme-fstcho-next .fst-next-shell {
    display: block;
  }

  .theme-fstcho-next .fst-next-page {
    grid-column: auto;
  }

  .theme-fstcho-next .fst-identity-rail {
    position: sticky;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 144px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--fst-line);
  }

  .theme-fstcho-next .fst-identity-rail__head {
    width: 100%;
    height: 95px;
    min-height: 95px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px 13px 20px;
  }

  .theme-fstcho-next .fst-identity-rail__quick {
    position: absolute;
    z-index: 3;
    top: 95px;
    right: 0;
    left: 0;
    min-height: 49px;
    display: grid;
    grid-template-columns: .85fr .95fr 1.35fr .8fr;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid var(--fst-line);
    background: color-mix(in srgb, var(--fst-paper) 97%, transparent);
  }

  .theme-fstcho-next .fst-identity-rail__quick a {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 5px;
    color: var(--fst-ink);
    font-family: var(--fst-font-text);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none;
    text-transform: uppercase;
  }

  .theme-fstcho-next .fst-identity-rail__quick a:nth-child(3) span {
    width: auto;
    white-space: normal;
  }

  .theme-fstcho-next .fst-identity-rail__quick a:nth-child(3) {
    min-width: 0;
    width: auto;
  }

  .theme-fstcho-next .fst-identity-rail__quick-menu {
    min-width: 0;
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 5px;
    color: var(--fst-ink);
    border: 0;
    border-left: 1px solid var(--fst-line);
    background: transparent;
    font-family: var(--fst-font-text);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .theme-fstcho-next .fst-identity-rail__quick-menu:hover,
  .theme-fstcho-next .fst-identity-rail__quick-menu:focus-visible,
  .theme-fstcho-next .fst-identity-rail__quick-menu[aria-expanded="true"] {
    color: var(--fst-accent);
  }

  .theme-fstcho-next .fst-identity-rail__quick a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
  }

  .theme-fstcho-next .fst-identity-rail__quick a.is-active {
    color: var(--fst-accent);
  }

  .theme-fstcho-next .fst-identity-rail__quick a.is-active::after {
    background: var(--fst-accent);
  }

  .theme-fstcho-next .fst-identity-rail__quick svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  .theme-fstcho-next .fst-identity-rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .theme-fstcho-next .fst-identity-rail__brand-core {
    width: 62px;
    flex: 0 0 62px;
    gap: 2px;
  }

  .theme-fstcho-next .fst-identity-rail__brand-mountain,
  .theme-fstcho-next .fst-identity-rail__brand-wordmark {
    width: 58px;
  }

  .theme-fstcho-next .fst-identity-rail__brand-federation {
    width: 118px;
  }

  .theme-fstcho-next .fst-identity-rail__mobile-coordinate {
    position: relative;
    width: 84px;
    height: 66px;
    display: block;
    margin-left: auto;
    overflow: hidden;
  }

  .theme-fstcho-next .fst-identity-rail__mobile-relief {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .24;
  }

  .theme-fstcho-next .fst-identity-rail__mobile-coordinate-mark {
    position: absolute;
    right: 4px;
    bottom: 9px;
    width: 48px;
    height: auto;
    opacity: .48;
  }

  .theme-fstcho-next .fst-identity-rail__toggle-mark {
    width: 18px;
    display: grid;
    gap: 4px;
  }

  .theme-fstcho-next .fst-identity-rail__toggle-mark i {
    height: 1px;
    display: block;
    background: currentColor;
  }

  .theme-fstcho-next .fst-identity-rail__navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100svh - 70px);
    display: none;
    overflow: auto;
    padding: 12px 18px 24px;
    border-bottom: 1px solid var(--fst-line);
    background: color-mix(in srgb, var(--fst-white) 96%, transparent);
    box-shadow: var(--fst-shadow);
    backdrop-filter: blur(18px);
  }

  .theme-fstcho-next .fst-identity-rail.is-open .fst-identity-rail__navigation {
    display: block;
  }

  .theme-fstcho-next .fst-identity-rail__item > a,
  .theme-fstcho-next .fst-identity-rail__group > summary {
    min-height: 52px;
    font-size: .76rem;
  }

  .theme-fstcho-next .fst-identity-rail__group > summary::after {
    transform: rotate(45deg);
  }

  .theme-fstcho-next .fst-identity-rail__group[open] > summary::after {
    transform: rotate(225deg);
  }

  .theme-fstcho-next .fst-section-sheet--rail {
    position: static;
    width: auto;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 0 8px 40px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: var(--fst-radius-sm);
    box-shadow: none;
    backdrop-filter: none;
  }

  .theme-fstcho-next .fst-section-sheet__overview {
    min-height: 0;
    gap: 0;
    padding: 20px 20px 12px;
    border-right: 0;
    border-bottom: 0;
  }

  .theme-fstcho-next .fst-section-sheet__overview-copy {
    gap: 8px;
  }

  .theme-fstcho-next .fst-section-sheet__overview strong {
    font-size: 1.18rem;
  }

  .theme-fstcho-next .fst-section-sheet__overview-copy small {
    display: none;
  }

  .theme-fstcho-next .fst-section-sheet__directory {
    padding: 0 10px 16px;
  }

  .theme-fstcho-next .fst-section-sheet__links {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-section-sheet__links li:nth-child(odd):not(:last-child) a {
    border-right: 0;
  }

  .theme-fstcho-next .fst-section-sheet__links a {
    min-height: 52px;
  }

  .theme-fstcho-next .fst-search-command__trigger--rail {
    max-width: 420px;
    margin-bottom: 12px;
  }

  .theme-fstcho-next .fst-identity-rail__tools-panel {
    position: static;
    width: 100%;
    max-height: min(520px, calc(100svh - 190px));
    margin-top: 8px;
    padding: 20px;
    border-radius: var(--fst-radius-sm);
  }

  .theme-fstcho-next .fst-identity-rail__tools summary::after {
    transform: rotate(45deg);
  }

  .theme-fstcho-next .fst-identity-rail__tools[open] summary::after {
    transform: rotate(225deg);
  }

  .theme-fstcho-next .fst-identity-rail__cartography {
    display: none;
  }

  .theme-fstcho-next .fst-next-main__ridge {
    top: 24px;
    width: 72vw;
    height: 150px;
    opacity: .12;
  }

  .theme-fstcho-next .fst-next-content-grid:has(.fst-sidebar) {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-home-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 54px 24px 32px;
  }

  .theme-fstcho-next .fst-next-home-hero__copy {
    padding-bottom: 16px;
  }

  .theme-fstcho-next .fst-next-home-hero h1 {
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .theme-fstcho-next .fst-next-home-hero__media {
    min-height: 420px;
  }

  .theme-fstcho-next .fst-event-masthead {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 340px auto;
  }

  .theme-fstcho-next .fst-event-masthead__content,
  .theme-fstcho-next .fst-event-masthead:not(:has(.fst-event-hero)) .fst-event-masthead__content {
    grid-column: 1;
    grid-row: 1;
  }

  .theme-fstcho-next .fst-event-masthead .fst-event-hero {
    grid-column: 1;
    grid-row: 2;
    min-height: 340px;
    margin: 0 18px 18px;
  }

  .theme-fstcho-next .fst-event-masthead__competitions {
    grid-column: 1;
    grid-row: 3;
  }

  .theme-fstcho-next .fst-next-home-header {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    min-height: 96px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    padding: 16px 18px;
    background: color-mix(in srgb, var(--fst-white) 94%, transparent);
  }

  .theme-fstcho-next .fst-next-home-brand {
    gap: 12px;
    align-items: flex-start;
  }

  .theme-fstcho-next .fst-next-home-brand__core {
    width: 64px;
    gap: 3px;
  }

  .theme-fstcho-next .fst-next-home-brand__core .fst-identity-rail__brand-mountain {
    width: 58px;
    height: auto;
  }

  .theme-fstcho-next .fst-next-home-brand__core .fst-identity-rail__brand-wordmark {
    width: 58px;
  }

  .theme-fstcho-next .fst-next-home-brand__federation {
    width: 105px;
    margin-top: 5px;
  }

  .theme-fstcho-next .fst-next-home-nav {
    position: absolute;
    top: 92px;
    right: 0;
    left: 0;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    overflow: auto hidden;
    border-top: 1px solid var(--fst-line);
    border-bottom: 1px solid var(--fst-line);
    background: var(--fst-white);
    scrollbar-width: none;
  }

  .theme-fstcho-next .fst-next-home-nav::-webkit-scrollbar {
    display: none;
  }

  .theme-fstcho-next .fst-next-home-nav:has(.fst-next-home-nav__group[open]) {
    overflow: visible;
  }

  .theme-fstcho-next .fst-next-home-nav__group > summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 11px;
  }

  .theme-fstcho-next .fst-section-sheet--home {
    position: fixed;
    top: 139px;
    right: 12px;
    left: 12px;
    width: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100svh - 160px);
    overflow-y: auto;
    transform: none;
  }

  .theme-fstcho-next .fst-next-home-nav .fst-section-sheet__links {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .theme-fstcho-next .fst-next-home-nav .fst-section-sheet__links li:nth-child(-n + 3) {
    border-right: 0;
  }

  .theme-fstcho-next .fst-next-home-nav .fst-section-sheet__links::before {
    display: none;
  }

  .theme-fstcho-next .fst-next-home-header__actions {
    gap: 10px;
  }

  .theme-fstcho-next .fst-search-command__trigger--home {
    min-width: 44px;
    width: 44px;
    height: 44px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    place-items: center;
    margin-top: 8px;
  }

  .theme-fstcho-next .fst-search-command__trigger--home span,
  .theme-fstcho-next .fst-search-command__trigger--home kbd {
    display: none;
  }

  .theme-fstcho-next .fst-search-command__trigger--home svg {
    width: 22px;
    height: 22px;
  }

  .theme-fstcho-next .fst-search-command {
    width: calc(100vw - 20px);
    margin: auto 10px 10px;
    border-radius: var(--fst-radius-sm);
  }

  .theme-fstcho-next .fst-search-command__panel {
    display: block;
    padding: 0;
  }

  .theme-fstcho-next .fst-search-command__head {
    min-height: 0;
    padding: 22px 58px 18px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--fst-line);
  }

  .theme-fstcho-next .fst-search-command__head p {
    max-width: none;
    margin-top: 4px;
  }

  .theme-fstcho-next .fst-search-command__body {
    padding: 18px;
  }

  .theme-fstcho-next .fst-search-command__form {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    padding-left: 12px;
  }

  .theme-fstcho-next .fst-search-command__clear {
    display: none;
  }

  .theme-fstcho-next .fst-search-command__submit {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .theme-fstcho-next .fst-search-command__submit span {
    display: none;
  }

  .theme-fstcho-next .fst-search-command__quick ul {
    grid-template-columns: 1fr;
  }

  .theme-fstcho-next .fst-search-command__quick li:not(:last-child) {
    border-right: 0;
  }

  .theme-fstcho-next .fst-next-home-login {
    min-width: 70px;
    min-height: 44px;
    padding: 0 15px;
    font-size: 13px;
  }

  .theme-fstcho-next .fst-next-home-account-link {
    display: none;
  }

  .theme-fstcho-next .fst-next-poster {
    height: 610px;
    margin-top: 46px;
  }

  .theme-fstcho-next .fst-next-poster__photo {
    top: 0;
    width: 100%;
    height: 360px;
    object-position: center;
  }

  .theme-fstcho-next .fst-next-poster__fade {
    background: linear-gradient(0deg, var(--fst-paper) 4%, color-mix(in srgb, var(--fst-paper) 82%, transparent) 27%, transparent 63%);
  }

  .theme-fstcho-next .fst-next-poster__relief {
    top: 320px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 290px;
    background-position: right center;
    background-size: 300px auto;
    opacity: .14;
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 28%, #000 100%);
  }

  .theme-fstcho-next .fst-next-poster__route {
    top: 440px;
    right: auto;
    bottom: auto;
    left: 302px;
    height: 153px;
    opacity: .46;
  }

  .theme-fstcho-next .fst-next-poster__coordinate {
    top: 502.71875px;
    right: auto;
    bottom: auto;
    left: 318px;
    width: 58px;
  }

  .theme-fstcho-next .fst-next-poster__copy {
    top: 300px;
    right: 22px;
    left: 22px;
    width: auto;
  }

  .theme-fstcho-next .fst-next-poster__copy h1 {
    width: 165%;
    font-size: clamp(50px, 14vw, 66px);
    line-height: .94;
    white-space: nowrap;
    transform: scaleX(.57);
  }

  .theme-fstcho-next .fst-next-poster__copy p {
    width: auto;
    max-width: 370px;
    margin-top: 28px;
    font-size: 13px;
    line-height: 1.75;
  }

  .theme-fstcho-next .fst-next-home-summary {
    display: block;
    padding: 28px 22px 42px;
  }

  .theme-fstcho-next .fst-next-home-summary > article,
  .theme-fstcho-next .fst-next-home-summary > article:first-child,
  .theme-fstcho-next .fst-next-home-summary > article:last-child {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--fst-line);
  }

  .theme-fstcho-next .fst-next-home-summary__event > div {
    grid-template-columns: minmax(120px, 42%) minmax(0, 1fr);
    gap: 18px;
  }

  .theme-fstcho-next .fst-next-home-summary__event img {
    width: 100%;
    height: 210px;
  }

  .theme-fstcho-next .fst-next-home-page .fst-home-section {
    padding: 54px 0 0;
  }

  .theme-fstcho-next .fst-next-home-page .fst-home-section > .container,
  .theme-fstcho-next .fst-next-home-page .fst-home-quick > .container,
  .theme-fstcho-next .fst-next-home-page .fst-next-home-partners > .container {
    width: auto;
    margin-inline: 22px;
  }

  .theme-fstcho-next .fst-next-home-page .fst-home-section__heading {
    align-items: flex-start;
  }

  .theme-fstcho-next .fst-next-home-page .fst-home-section__heading h2 {
    font-size: 38px;
  }

  .theme-fstcho-next .fst-next-editorial-grid,
  .theme-fstcho-next .fst-next-calendar-grid {
    grid-template-columns: 1fr;
  }

  .theme-fstcho-next .fst-next-editorial-card__media,
  .theme-fstcho-next .fst-next-editorial-card__media img {
    height: 240px;
  }

  .theme-fstcho-next .fst-next-editorial-card h3,
  .theme-fstcho-next .fst-next-editorial-card p {
    min-height: 0;
  }

  .theme-fstcho-next .fst-next-editorial-card h3 {
    -webkit-line-clamp: 3;
  }

  .theme-fstcho-next .fst-next-editorial-card p {
    -webkit-line-clamp: 4;
  }

  .theme-fstcho-next .fst-next-calendar-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-next-calendar-card__media,
  .theme-fstcho-next .fst-next-calendar-card__media img {
    width: 130px;
  }

  .theme-fstcho-next .fst-next-home-page .fst-home-quick {
    padding-top: 62px;
  }

  .theme-fstcho-next .fst-next-home-page .fst-home-quick__inner {
    grid-template-columns: 1fr;
  }

  .theme-fstcho-next .fst-next-home-page .fst-home-quick a {
    min-height: 110px;
    padding: 30px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--fst-line);
  }

  .theme-fstcho-next .fst-next-home-partners {
    padding: 54px 0;
  }

  .theme-fstcho-next .fst-next-home-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .theme-fstcho-next .fst-next-home-brand__core {
    width: 64px;
    flex: 0 0 64px;
  }

  .theme-fstcho-next .fst-next-home-brand .fst-next-home-brand__federation {
    width: 105px;
  }

  .theme-fstcho-next .fst-page-container {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .theme-fstcho-next .fst-identity-rail__brand-federation {
    width: 102px;
  }

  .theme-fstcho-next .fst-next-home-hero__relief {
    width: 100%;
    opacity: .14;
  }

  .theme-fstcho-next .fst-next-home-hero__coordinate {
    bottom: 24px;
    left: 48px;
    width: 116px;
    opacity: .3;
  }

  .theme-fstcho-next .fst-next-home-hero__media {
    min-height: 310px;
    border-radius: var(--fst-radius);
  }

  .theme-fstcho-next .fst-next-home-hero__media figcaption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }

  .theme-fstcho-next .fst-event-masthead {
    grid-template-rows: auto 260px auto;
  }

  .theme-fstcho-next .fst-event-masthead__content {
    padding: 24px 18px;
  }

  .theme-fstcho-next .fst-event-masthead__title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .theme-fstcho-next .fst-event-masthead .fst-event-hero {
    min-height: 260px;
  }

  .theme-fstcho-next .fst-event-masthead__competitions {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-event-masthead__competition + .fst-event-masthead__competition {
    border-top: 1px solid var(--fst-line);
    border-left: 0;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__content {
    min-height: 0;
    gap: 34px;
    padding: 48px 22px 0;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__column h2 {
    margin-bottom: 24px;
    font-size: 1.25rem;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__column a {
    font-size: 14px;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__brand {
    align-items: flex-start;
    padding-left: 35px;
    border-left: 1px solid rgba(255, 255, 255, .18);
    text-align: left;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__brand-mountain {
    width: 76px;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__brand-wordmark {
    width: 74px;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__brand-federation {
    width: 170px;
  }

  .theme-fstcho-next .fst-next-footer {
    min-height: 0;
    padding-bottom: 28px;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__bottom {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 0;
    margin-top: 38px;
  }

  .theme-fstcho-next .fst-next-footer .fst-site-footer__bottom .container {
    width: calc(100% - 44px);
    min-height: 0;
    margin: 0 22px;
    padding-top: 20px;
  }
}

/*
 * Event mobile composition follows the approved full-page reference: the
 * photograph is full bleed, then the editorial content continues on paper.
 * This block deliberately comes last so a more specific masthead rule cannot
 * restore the dark card treatment at narrow widths.
 */
@media (max-width: 620px) {
  .theme-fstcho-next .fst-next-main__ridge {
    display: none;
  }

  .theme-fstcho-next .fst-page-container:has(:is(.fst-next-section, .fst-next-media-catalog, .fst-next-gallery-page)) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 18px 70px;
  }

  .theme-fstcho-next .fst-page-container:has(:is(.fst-next-section, .fst-next-media-catalog, .fst-next-gallery-page)) .region-content {
    padding-inline: 0;
  }

  .theme-fstcho-next .fst-event-masthead {
    width: 100vw;
    max-width: none;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    margin-left: calc(50% - 50vw);
    overflow: visible;
    color: var(--fst-ink);
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .theme-fstcho-next .fst-event-masthead::before {
    display: none;
  }

  .theme-fstcho-next .fst-event-masthead .fst-event-hero {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 250px;
    min-height: 250px;
    margin: 0;
    border-radius: 0;
  }

  .theme-fstcho-next .fst-event-masthead .fst-event-hero img {
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .theme-fstcho-next .fst-event-masthead .fst-event-hero::after {
    background: linear-gradient(0deg, var(--fst-paper) 0%, rgba(248, 246, 241, .32) 20%, transparent 48%);
  }

  .theme-fstcho-next .fst-event-masthead__content,
  .theme-fstcho-next .fst-event-masthead:not(:has(.fst-event-hero)) .fst-event-masthead__content {
    grid-column: 1;
    grid-row: 2;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 16px 18px 22px;
    color: var(--fst-ink);
  }

  .theme-fstcho-next .fst-event-masthead__topline {
    width: 100%;
    margin-bottom: 18px;
  }

  .theme-fstcho-next .fst-event-masthead__title {
    width: 128% !important;
    max-width: 128% !important;
    font-size: 2.75rem;
    line-height: .98;
    overflow-wrap: normal;
    transform: scaleX(.76);
    transform-origin: left top;
  }

  .theme-fstcho-next .fst-event-masthead__facts.fst-meta-list {
    margin-top: 24px;
    border-color: var(--fst-line);
  }

  .theme-fstcho-next .fst-event-masthead__facts.fst-meta-list > div {
    border-color: var(--fst-line);
  }

  .theme-fstcho-next .fst-event-masthead__facts.fst-meta-list dt {
    color: var(--fst-muted);
  }

  .theme-fstcho-next .fst-event-masthead__facts.fst-meta-list dd {
    color: var(--fst-ink);
  }

  .theme-fstcho-next .fst-event-masthead .fst-event-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-event-masthead__competitions {
    grid-column: 1;
    grid-row: 3;
  }

  .theme-fstcho-next .fst-event-live__distance.is-summary,
  .theme-fstcho-next .fst-event-results__summary-grid,
  .theme-fstcho-next .fst-event-media .fst-event-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-event-quick-results {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 26px;
  }

  .theme-fstcho-next .fst-event-quick-results__grid {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-event-quick-results > a {
    grid-column: 1;
    grid-row: auto;
    order: 3;
  }

  .theme-fstcho-next .fst-event-scoreboard--summary,
  .theme-fstcho-next .fst-event-results__summary-card {
    min-height: 74px;
    padding: 14px 16px;
  }

  .theme-fstcho-next .fst-event-media .fst-event-photo {
    aspect-ratio: 4 / 3;
  }
}

/* Exact mobile data-page geometry from the approved 390px source frames. */
@media (max-width: 620px) {
  .theme-fstcho-next:is(.path-documents, .path-registries, .path-grades, .page-node-type-fstcho-person) .fst-page-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 76px 18px 48px;
  }

  .theme-fstcho-next.page-node-type-fstcho-person .fst-page-container {
    padding: 78px 18px 70px;
  }

  .theme-fstcho-next.page-node-type-fstcho-person .region-content {
    padding-inline: 0;
  }

  .theme-fstcho-next:is(.path-documents, .path-registries, .path-grades, .page-node-type-fstcho-person) .fst-next-main__ridge {
    display: none;
  }

  .theme-fstcho-next :is(.fst-next-document-archive__header, .fst-next-registry__header) {
    margin: 32px 0 0;
  }

  .theme-fstcho-next :is(.fst-next-document-archive__header, .fst-next-registry__header) h1 {
    width: 135%;
    max-width: none;
    margin: 0;
    font-size: clamp(42px, 13vw, 62px);
    line-height: .94;
    white-space: normal;
    transform: scaleX(.73);
    transform-origin: left top;
  }

  .theme-fstcho-next .fst-next-registry__header h1 span {
    display: block;
  }

  .theme-fstcho-next :is(.fst-next-document-archive__header, .fst-next-registry__header) > p:last-child {
    width: auto;
    max-width: none;
    margin-top: 12px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .theme-fstcho-next .fst-next-document-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
  }

  .theme-fstcho-next .fst-next-document-stats a {
    min-height: 82px;
  }

  .theme-fstcho-next .fst-next-document-filter,
  .theme-fstcho-next .fst-next-registry__filter {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin-top: 26px;
    padding: 18px;
  }

  .theme-fstcho-next .fst-next-document-filter__actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .theme-fstcho-next :is(.fst-next-document-filter, .fst-next-registry__filter) .form-label {
    margin-bottom: 6px;
  }

  .theme-fstcho-next .fst-next-document-table-wrap,
  .theme-fstcho-next .fst-next-registry__table-wrap {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .theme-fstcho-next .fst-next-document-table {
    min-width: 1040px !important;
  }

  .theme-fstcho-next .fst-next-registry__table {
    min-width: 980px !important;
  }

  .theme-fstcho-next .fst-next-data-help {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 48px;
    padding: 28px 0;
  }

  .theme-fstcho-next .fst-next-data-help h2 {
    font-size: 38px;
  }

  .theme-fstcho-next .fst-person-profile__intro {
    min-height: 0;
    display: block;
    margin: 0 0 50px;
    padding: 46px 0 34px;
  }

  .theme-fstcho-next .fst-person-profile__eyebrow {
    margin-bottom: 0 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .theme-fstcho-next .fst-person-profile__intro h1 {
    margin-top: 16px;
    max-width: none;
    font-size: 46px;
    line-height: .94;
    overflow-wrap: normal;
  }

  .theme-fstcho-next .fst-person-profile__intro h1 span {
    display: block;
  }

  .theme-fstcho-next .fst-person-profile__intro > .fst-person-profile__lead {
    max-width: none;
    margin-top: 22px !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
  }

  .theme-fstcho-next .fst-next-registry__filter-actions .btn[aria-label="Сбросить фильтры"] {
    width: 100%;
    min-width: 0;
  }

  .theme-fstcho-next .fst-person-profile__dossier {
    min-height: 282px;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border-radius: 4px;
  }

  .theme-fstcho-next .fst-person-profile__avatar {
    width: 66px;
    height: 82px;
    font-size: 25px;
  }

  .theme-fstcho-next .fst-person-profile__dossier-identity h2 {
    font-size: 23px;
  }

  .theme-fstcho-next .fst-person-profile__report {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .theme-fstcho-next .fst-person-profile__registry-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-fstcho-next .fst-person-profile__registry-summary-item,
  .theme-fstcho-next .fst-person-profile__registry-summary-item + .fst-person-profile__registry-summary-item {
    min-height: 94px;
    padding: 20px 22px !important;
    border: 0;
  }

  .theme-fstcho-next .fst-person-profile__registry-summary-item li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .theme-fstcho-next .fst-person-profile__registry-summary-item li span {
    flex: none;
  }

  .theme-fstcho-next .fst-person-profile__profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-person-profile__registration,
  .theme-fstcho-next .fst-person-profile__qualifications-summary,
  .theme-fstcho-next .fst-person-profile__history {
    padding: 30px;
  }

  .theme-fstcho-next .fst-person-profile__registration {
    min-height: 402px;
  }

  .theme-fstcho-next .fst-person-profile__qualifications-summary {
    min-height: 479px;
  }

  .theme-fstcho-next .fst-person-profile__registration dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-fstcho-next .fst-person-profile__history {
    min-height: 320px;
  }

  .theme-fstcho-next .fst-person-profile__history-current,
  .theme-fstcho-next .fst-person-profile__history-records article {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .theme-fstcho-next .fst-person-profile__registries {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}
