:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-system-bar {
  color: var(--fst-white);
  background: var(--fst-ink);
  border-bottom: var(--fst-token-stroke-hairline) solid color-mix(in srgb, var(--fst-white) 14%, transparent);
  font-family: var(--fst-font-text);
  font-size: var(--fst-token-font-size-body-small);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-system-bar a {
  color: color-mix(in srgb, var(--fst-white) 90%, transparent);
  text-underline-offset: 3px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-system-bar a:is(:hover, :focus-visible) {
  color: var(--fst-accent-on-dark);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-system-bar__brand,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-admin-system-bar__brand {
  color: var(--fst-white);
  font-weight: var(--fst-token-font-weight-bold);
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.btn, .button, .action-link, button.form-submit, input.form-submit) {
  min-height: var(--fst-density-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fst-token-space-2);
  padding: var(--fst-token-space-2) var(--fst-token-space-5);
  border: var(--fst-token-stroke-hairline) solid var(--fst-button-secondary-stroke);
  border-radius: var(--fst-button-radius);
  color: var(--fst-button-primary-text);
  background: var(--fst-color-action-secondary);
  font-size: var(--fst-token-font-size-body-small);
  font-weight: var(--fst-token-font-weight-bold);
  line-height: 1.2;
  transition:
    color var(--fst-duration-fast) ease,
    border-color var(--fst-duration-fast) ease,
    background-color var(--fst-duration-fast) ease,
    transform var(--fst-duration-fast) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.btn, .button, .action-link, button.form-submit, input.form-submit):hover {
  border-color: var(--fst-accent);
  color: var(--fst-white);
  background: var(--fst-accent);
  transform: translateY(-1px);
}

/* Neutral button is a semantic variant too; keep it immune to page link color. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn:not(.btn-primary):not(.btn-link):not(.btn-plain):not(.btn-outline-secondary):not(.btn-outline-primary):not(.btn-outline-dark):not(.btn-outline-light):not(.btn-outline-danger) {
  color: var(--fst-white);
  border-color: var(--fst-ink);
  background: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn:not(.btn-primary):not(.btn-link):not(.btn-plain):not(.btn-outline-secondary):not(.btn-outline-primary):not(.btn-outline-dark):not(.btn-outline-light):not(.btn-outline-danger):is(:hover, :focus-visible) {
  color: var(--fst-white);
  border-color: var(--fst-accent);
  background: var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.btn-outline-secondary, .btn-outline-primary, .btn-outline-dark, .button--secondary) {
  color: var(--fst-button-secondary-text);
  border-color: var(--fst-button-secondary-stroke);
  background: var(--fst-button-secondary-fill);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.btn-outline-secondary, .btn-outline-primary, .btn-outline-dark, .button--secondary):is(:hover, :focus-visible) {
  color: var(--fst-white);
  border-color: var(--fst-accent);
  background: var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-outline-light {
  color: var(--fst-white);
  border-color: rgb(255 255 255 / 62%);
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-outline-light:is(:hover, :focus-visible) {
  color: var(--fst-ink);
  border-color: var(--fst-white);
  background: var(--fst-white);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-outline-light[aria-pressed="true"] {
  color: var(--fst-white);
  border-color: var(--fst-accent);
  background: var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-outline-danger {
  color: var(--fst-danger);
  border-color: var(--fst-danger);
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-outline-danger:is(:hover, :focus-visible) {
  color: var(--fst-white);
  border-color: var(--fst-danger);
  background: var(--fst-danger);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-link {
  border-color: transparent;
  color: var(--fst-ink);
  background: transparent;
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-link:is(:hover, :focus-visible) {
  border-color: transparent;
  color: var(--fst-accent-strong);
  background: transparent;
  transform: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-plain {
  color: var(--fst-ink);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-plain:is(:hover, :focus-visible),
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-plain[aria-expanded="true"] {
  color: var(--fst-accent-strong);
  border-color: transparent;
  background: transparent;
  transform: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.btn.btn-sm, .button.button--small) {
  min-height: var(--fst-token-size-control-compact);
  padding: 8px 14px;
  font-size: .7rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn.btn-lg {
  min-height: var(--fst-token-size-control-large);
  padding: 12px 22px;
  font-size: .84rem;
}

/* Primary CTA follows the approved Penpot component; neutral actions stay graphite. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.btn.btn-primary, .button.button--primary, .button.button--action) {
  color: var(--fst-button-primary-text);
  border-color: var(--fst-button-primary-fill);
  background: var(--fst-button-primary-fill);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.btn.btn-primary, .button.button--primary, .button.button--action):is(:hover, :focus-visible) {
  color: var(--fst-white);
  border-color: var(--fst-accent-strong);
  background: var(--fst-accent-strong);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn[aria-label="Сбросить фильтры"] {
  min-width: var(--fst-density-control-height);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn-icon {
  width: var(--fst-density-control-height);
  min-width: var(--fst-density-control-height);
  height: var(--fst-density-control-height);
  min-height: var(--fst-density-control-height);
  padding: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .btn-icon svg {
  width: var(--fst-token-size-icon-compact);
  height: var(--fst-token-size-icon-compact);
}

/* Canonical image-tile button used by galleries and future media pickers. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-media-button {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--fst-radius-xs);
  background: var(--fst-paper-deep);
  cursor: zoom-in;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-media-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--fst-duration) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-media-button:hover img {
  transform: scale(1.025);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-media-button.is-cover {
  box-shadow: inset 0 0 0 2px var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(
  .form-control,
  .form-select,
  input.form-text,
  input.form-email,
  input.form-search,
  .fst-content-surface input:not([type]),
  .fst-content-surface input:is([type="text"], [type="email"], [type="search"], [type="password"], [type="tel"], [type="url"], [type="number"], [type="date"], [type="time"], [type="datetime-local"]),
  .fst-content-surface select,
  textarea
) {
  width: 100%;
  min-height: var(--fst-density-control-height);
  border: var(--fst-token-stroke-hairline) solid var(--fst-field-stroke);
  border-radius: var(--fst-field-radius);
  color: var(--fst-ink);
  background: var(--fst-field-fill);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(
  .form-control,
  .form-select,
  input.form-text,
  input.form-email,
  input.form-search,
  .fst-content-surface input:not([type]),
  .fst-content-surface input:is([type="text"], [type="email"], [type="search"], [type="password"], [type="tel"], [type="url"], [type="number"], [type="date"], [type="time"], [type="datetime-local"]),
  .fst-content-surface select,
  textarea
):focus {
  border-color: var(--fst-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fst-accent) 18%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--fst-ink);
}

/* Drupal forms inherit the same primitives even when a module omits Bootstrap
 * helper classes. Page code may arrange these elements, but cannot redraw them. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface :where(.form-item, .form-wrapper) {
  min-width: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface :where(.form-item) > label {
  display: block;
  margin-bottom: 7px;
  color: var(--fst-muted);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface :where(.description, .form-item__description) {
  margin-top: 6px;
  color: var(--fst-muted);
  font-size: .72rem;
  line-height: 1.45;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface :where(fieldset, details:not(.fst-disclosure)) {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface :where(fieldset legend, details:not(.fst-disclosure) > summary) {
  color: var(--fst-ink);
  font-weight: 700;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .form-check-input:checked {
  border-color: var(--fst-ink);
  background-color: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .form-check-input:focus-visible {
  border-color: var(--fst-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fst-accent) 18%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.fst-panel, .fst-notice, .fst-empty-state, .fst-content-surface .card, .modal-content, .offcanvas) {
  overflow: clip;
  border: var(--fst-token-stroke-hairline) solid color-mix(in srgb, var(--fst-line) 86%, transparent);
  border-radius: var(--fst-radius);
  background: var(--fst-surface);
  box-shadow: var(--fst-shadow);
  backdrop-filter: blur(16px);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-panel {
  padding: var(--fst-density-surface-padding);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-notice {
  padding: 18px 20px;
  border-left: 3px solid var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-notice--success {
  border-left-color: var(--fst-green);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-notice--warning {
  border-left-color: var(--fst-warning);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-notice--danger {
  border-left-color: var(--fst-danger);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 36px;
  text-align: center;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-empty-state > * {
  max-width: 540px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-catalog-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--fst-token-space-4);
  align-items: end;
  padding: var(--fst-density-surface-padding);
  border: var(--fst-token-stroke-hairline) solid var(--fst-line);
  border-top: var(--fst-token-stroke-focus) solid var(--fst-ink);
  border-radius: var(--fst-radius-sm);
  background: color-mix(in srgb, var(--fst-color-surface) 72%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-catalog-filter > * {
  min-width: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-catalog-filter__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-catalog-filter label {
  color: var(--fst-muted);
  text-transform: uppercase;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .08em;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-catalog-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.fst-catalog-card, .fst-registry-card, .fst-home-event-card, .fst-feature-card) {
  border: 0;
  border-radius: 0;
  background: var(--fst-surface-solid);
  box-shadow: none;
  transition:
    background-color var(--fst-duration) ease,
    transform var(--fst-duration) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.fst-catalog-card, .fst-registry-card, .fst-home-event-card, .fst-feature-card):hover {
  z-index: 1;
  background: var(--fst-color-surface);
  box-shadow: inset 0 -3px var(--fst-accent);
  transform: translateY(-2px);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) details.fst-disclosure {
  border-top: 1px solid var(--fst-line);
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) details.fst-disclosure > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 0;
  color: var(--fst-ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) details.fst-disclosure > summary::-webkit-details-marker {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  color: var(--fst-muted) !important;
  background: transparent !important;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .015em;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--fst-status-neutral-marker);
  content: "";
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(
  .fst-status-marker--active,
  .fst-status-marker--current,
  .fst-status-marker--results,
  .fst-status-marker--official-verified,
  .fst-status-marker--official-manual
) {
  color: var(--fst-status-positive-text) !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(
  .fst-status-marker--active,
  .fst-status-marker--current,
  .fst-status-marker--results,
  .fst-status-marker--official-verified,
  .fst-status-marker--official-manual
)::before {
  background: var(--fst-green);
}

/* Review states must remain distinguishable without relying on hue alone. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker--pending {
  color: var(--fst-status-warning-text) !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker--pending::before {
  box-sizing: border-box;
  border: 2px solid var(--fst-status-warning-marker);
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker--conflict {
  color: var(--fst-status-danger-text) !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker--conflict::before {
  background: var(--fst-status-danger-marker);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(
  .fst-status-marker--future,
  .fst-status-marker--unverified,
  .fst-status-marker--unknown
) {
  color: var(--fst-status-warning-text) !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(
  .fst-status-marker--future,
  .fst-status-marker--unverified,
  .fst-status-marker--unknown
)::before {
  box-sizing: border-box;
  border: 2px solid var(--fst-status-warning-marker);
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-status-marker--inactive, .fst-status-marker--excluded) {
  color: var(--fst-status-danger-text) !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-status-marker--inactive, .fst-status-marker--excluded)::before {
  background: var(--fst-status-danger-marker);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker--expiring {
  color: var(--fst-status-warning-text) !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker--expiring::before {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
  box-sizing: border-box;
  border: 2px solid var(--fst-status-warning-marker);
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker--expired {
  color: var(--fst-status-danger-text) !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-status-marker--expired::before {
  background: var(--fst-status-danger-marker);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-data-table-wrap {
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-surface-solid);
  box-shadow: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--fst-ink-soft);
  background: transparent;
  font-size: .8rem;
  --bs-table-bg: transparent;
  --bs-table-hover-bg: color-mix(in srgb, var(--fst-accent-soft) 45%, transparent);
  --bs-table-active-bg: var(--fst-paper-deep);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table--compact {
  min-width: 620px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table--wide {
  min-width: 1060px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table caption {
  padding: 12px 15px;
  color: var(--fst-muted);
  background: var(--fst-surface-solid);
  font-size: .7rem;
  font-weight: 700;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table > :not(caption) > * > * {
  border: 0;
  border-bottom: 1px solid var(--fst-line);
  color: var(--fst-ink-soft);
  background: transparent;
  vertical-align: middle;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table > tbody > tr:last-child > * {
  border-bottom: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table > tbody > tr.table-active > * {
  background: var(--fst-paper-deep);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table > tbody > tr.table-active > :first-child {
  box-shadow: inset 3px 0 var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table > tbody > tr:focus-within > * {
  background: color-mix(in srgb, var(--fst-accent-soft) 62%, var(--fst-white));
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table :where(th, td) > :where(strong, small) {
  display: block;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table :where(th, td) > small {
  margin-top: 3px;
  color: var(--fst-muted);
  font-size: .68rem;
  font-weight: 500;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table a:not(.btn) {
  color: var(--fst-ink);
  font-weight: 700;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) table.fst-data-table :where(.form-checkbox, input[type="checkbox"]) {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-data-table > thead > tr > th {
  padding: 14px 16px;
  color: var(--fst-muted);
  background: color-mix(in srgb, var(--fst-paper) 84%, var(--fst-line));
  font-size: .64rem;
  letter-spacing: .065em;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-data-table > tbody > tr > :is(td, th) {
  padding: 14px 16px;
  border-color: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-data-table > tbody > tr:hover > * {
  background: color-mix(in srgb, var(--fst-accent-soft) 52%, var(--fst-white));
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-data-table-wrap:focus-visible {
  outline: 2px solid var(--fst-focus);
  outline-offset: 4px;
}

/* Schools directory: a dense two-column registry, not centered table copy. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-school-directory__table {
  table-layout: fixed;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-school-directory__program-column {
  width: 64%;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-school-directory__leader-column {
  width: 36%;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-school-directory__table :is(th, td) {
  text-align: left;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-school-directory__table > tbody > tr > th {
  font-weight: 700;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-school-directory__table > tbody > tr > td {
  color: var(--fst-ink-soft);
  font-weight: 600;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-school-directory__materials {
  margin-top: 4px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-school-directory__empty {
  color: var(--fst-muted);
  font-weight: 500;
}

/* Public data registries reproduce the approved dense table composition. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog__header {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
  margin: 0 0 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog__header > div {
  min-width: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog__eyebrow {
  margin-bottom: 16px;
  color: var(--fst-accent-text);
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .12em;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog__header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 5.1vw, 5.2rem);
  line-height: .88;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog__header > p:last-child {
  max-width: 430px;
  margin: 0 0 8px;
  color: var(--fst-muted);
  font-size: .92rem;
  line-height: 1.55;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog-filter {
  margin-bottom: 0;
  padding: 22px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog-filter__controls {
  flex-wrap: nowrap;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog-filter__controls .btn-primary {
  min-width: 124px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog__source-note {
  max-width: none;
  margin: 18px 0 30px;
  color: var(--fst-muted);
  font-size: .8rem;
  line-height: 1.55;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry-table-wrap {
  overflow-x: auto;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry-table {
  width: 100%;
  min-width: 850px;
  table-layout: fixed;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry-table > tbody > tr > th {
  width: 28%;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-methodology {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(320px, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 48px;
  padding: 28px 24px;
  border-top: 1px solid var(--fst-line);
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-methodology span {
  color: var(--fst-accent-text);
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .11em;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-methodology h2 {
  margin: 4px 0 0;
  font-size: clamp(1.9rem, 2.7vw, 2.8rem);
  line-height: .95;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-methodology p {
  margin: 0;
  color: var(--fst-muted);
  font-size: .8rem;
  line-height: 1.55;
}

@media (min-width: 992px) {
  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-public-registry .fst-catalog__header {
    margin-top: 72px;
  }
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .alert {
  border: 1px solid var(--fst-line);
  border-left: 3px solid var(--fst-accent);
  border-radius: var(--fst-radius-sm);
  color: var(--fst-ink);
  background: var(--fst-white);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .alert-success { border-left-color: var(--fst-green); }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .alert-warning { border-left-color: var(--fst-warning); }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .alert-danger { border-left-color: var(--fst-danger); }

/* Canonical editorial pager: readable pages and flat directional actions. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination--top {
  margin: 0 0 24px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__page {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  color: var(--fst-muted);
  background: transparent;
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
  font-weight: 750;
  text-decoration: none;
  transition: color var(--fst-duration-fast) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__page::after {
  position: absolute;
  right: 8px;
  bottom: 1px;
  left: 8px;
  height: 2px;
  background: transparent;
  content: "";
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__page:hover,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__page:focus-visible {
  color: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__page.is-current {
  color: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__page.is-current::after {
  background: var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__direction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 0;
  color: var(--fst-ink);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .03em;
  text-decoration: none;
  transition: color var(--fst-duration-fast) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__direction--next {
  justify-self: end;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__direction svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__direction:hover,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__direction:focus-visible {
  color: var(--fst-accent-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__direction.is-disabled {
  color: var(--fst-muted);
  opacity: .42;
}

@media (max-width: 575.98px) {
  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    margin-top: 24px;
    padding-top: 14px;
  }

  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination--top {
    margin: 0 0 20px;
  }

  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__pages {
    min-width: 0;
    justify-content: center;
    gap: 0;
    overflow: hidden;
  }

  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__page {
    width: 32px;
    height: 34px;
  }

  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__direction {
    width: 38px;
    justify-content: center;
  }

  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-registry-pagination__direction span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/*
 * Administrative markup adapter.
 * Claro owns behavior and DOM semantics, while every visible primitive is
 * rendered by the same Penpot-backed system as the public theme. Keep only
 * selector aliases here; page and admin-shell styles may not redraw them.
 */
.theme-fstcho-admin-next :where(.button--primary, .button--action) {
  border-color: var(--fst-accent);
  color: var(--fst-white);
  background: var(--fst-accent);
}

.theme-fstcho-admin-next :where(.button--secondary, .action-link--icon-show) {
  border-color: var(--fst-ink);
  color: var(--fst-ink);
  background: transparent;
}

.theme-fstcho-admin-next :where(.form-element, input.form-text, input.form-search, input.form-email, select, textarea) {
  width: 100%;
  min-height: var(--fst-density-control-height);
  border: var(--fst-token-stroke-hairline) solid var(--fst-field-stroke);
  border-radius: var(--fst-field-radius);
  color: var(--fst-ink);
  background: color-mix(in srgb, var(--fst-field-fill) 84%, transparent);
  background-image: none;
  box-shadow: none;
}

.theme-fstcho-admin-next :where(.form-element, input.form-text, input.form-search, input.form-email, select, textarea):focus {
  border-color: var(--fst-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fst-accent) 18%, transparent);
}

.theme-fstcho-admin-next :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--fst-ink);
}

.theme-fstcho-admin-next input.form-boolean:checked {
  border-color: var(--fst-ink);
  background-color: var(--fst-ink);
  background-image: none;
}

.theme-fstcho-admin-next input.form-boolean:focus-visible {
  border-color: var(--fst-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fst-accent) 18%, transparent);
}

.theme-fstcho-admin-next :where(.form-item__label, .fieldset__label, .form-composite__title) {
  display: block;
  margin-bottom: 7px;
  color: var(--fst-muted);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.theme-fstcho-admin-next :where(.form-item__description, .fieldset__description, .description) {
  margin-top: 6px;
  color: var(--fst-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.theme-fstcho-admin-next :where(.fieldset, .claro-details, .panel, .views-exposed-form, .admin-list, .dropbutton-widget, .vertical-tabs, .entity-meta, .ck-editor, .layout-region) {
  overflow: clip;
  border: 1px solid color-mix(in srgb, var(--fst-line) 86%, transparent);
  border-radius: var(--fst-radius);
  background: var(--fst-surface);
  box-shadow: var(--fst-shadow);
  backdrop-filter: blur(16px);
}

.theme-fstcho-admin-next :where(.fieldset__legend, .claro-details__summary) {
  display: block;
  padding: 12px 18px;
  color: var(--fst-ink);
  background: color-mix(in srgb, var(--fst-paper-deep) 62%, var(--fst-white));
  font-weight: 700;
}

.theme-fstcho-admin-next :where(.fieldset__wrapper, .claro-details__wrapper, .panel__content, .views-exposed-form) {
  padding: clamp(16px, 2.5vw, 26px);
}

.theme-fstcho-admin-next :where(.tabs-wrapper, .tabs) {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--fst-line);
}

.theme-fstcho-admin-next .tabs__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--fst-muted);
  background: transparent;
}

.theme-fstcho-admin-next .tabs__link:is(:hover, :focus-visible, .is-active) {
  border-bottom-color: var(--fst-accent);
  color: var(--fst-ink);
  background: transparent;
}

.theme-fstcho-admin-next .tabs__link::before {
  display: none;
  content: none;
}

.theme-fstcho-admin-next :where(.table-responsive, .views-form, .system-status-report) {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-surface-solid);
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.theme-fstcho-admin-next :where(table, .views-table) {
  width: 100%;
  min-width: 720px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--fst-ink-soft);
  background: transparent;
  font-size: .8rem;
}

.theme-fstcho-admin-next :where(table, .views-table) thead th {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--fst-line);
  color: var(--fst-muted);
  background: color-mix(in srgb, var(--fst-paper) 84%, var(--fst-line));
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.theme-fstcho-admin-next :where(table, .views-table) thead a,
.theme-fstcho-admin-next :where(table, .views-table) thead a.is-active,
.theme-fstcho-admin-next :where(table, .views-table) thead .sortable-heading.is-active > a {
  color: var(--fst-muted);
  text-decoration-color: color-mix(in srgb, var(--fst-accent) 54%, transparent);
}

.theme-fstcho-admin-next :where(table, .views-table) thead a:is(:hover, :focus-visible) {
  color: var(--fst-accent-text);
}

.theme-fstcho-admin-next :where(table, .views-table) tbody :where(td, th) {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--fst-line);
  color: var(--fst-ink-soft);
  background: transparent;
  vertical-align: middle;
}

.theme-fstcho-admin-next :where(table, .views-table) tbody tr:hover > * {
  background: color-mix(in srgb, var(--fst-accent-soft) 52%, var(--fst-white));
}

.theme-fstcho-admin-next :where(.messages, .system-status-report__entry) {
  margin-block: 16px;
  padding: 18px 20px;
  border: 1px solid var(--fst-line);
  border-left: 3px solid var(--fst-accent);
  border-radius: var(--fst-radius-sm);
  color: var(--fst-ink);
  background: var(--fst-surface-solid);
  box-shadow: none;
}

.theme-fstcho-admin-next .messages--status { border-left-color: var(--fst-green); }
.theme-fstcho-admin-next .messages--warning { border-left-color: var(--fst-warning); }
.theme-fstcho-admin-next .messages--error { border-left-color: var(--fst-danger); }

.theme-fstcho-admin-next .pager__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--fst-line);
}

.theme-fstcho-admin-next .pager__link {
  position: relative;
  display: grid;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--fst-muted);
  background: transparent;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  box-shadow: none;
}

.theme-fstcho-admin-next .pager__link:is(:hover, :focus-visible),
.theme-fstcho-admin-next .pager__item--active .pager__link {
  color: var(--fst-ink);
  background: transparent;
}

.theme-fstcho-admin-next .pager__item--active .pager__link::after {
  position: absolute;
  right: 8px;
  bottom: 1px;
  left: 8px;
  height: 2px;
  background: var(--fst-accent);
  content: "";
}

.theme-fstcho-admin-next .dropbutton-widget .dropbutton__toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--fst-ink) !important;
  border-radius: var(--fst-radius-xs);
  color: var(--fst-ink);
  background: transparent;
  box-shadow: none;
}

.theme-fstcho-admin-next .dropbutton-action > a,
.theme-fstcho-admin-next .tableresponsive-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px !important;
  border: 1px solid var(--fst-ink) !important;
  border-radius: var(--fst-radius-xs) !important;
  color: var(--fst-ink) !important;
  background: transparent !important;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.theme-fstcho-admin-next .dropbutton-action > a:is(:hover, :focus-visible),
.theme-fstcho-admin-next .tableresponsive-toggle:is(:hover, :focus-visible) {
  border-color: var(--fst-accent) !important;
  color: var(--fst-white) !important;
  background: var(--fst-accent) !important;
}

.theme-fstcho-admin-next :where(.admin-list__item, .admin-item) {
  border-color: var(--fst-line);
}

.theme-fstcho-admin-next .admin-item__link {
  color: var(--fst-ink);
  text-decoration-color: color-mix(in srgb, var(--fst-accent) 58%, transparent);
  text-underline-offset: 4px;
}

.theme-fstcho-admin-next .tablesort {
  filter: grayscale(1) brightness(3.2);
}

.theme-fstcho-admin-next .sortable-heading.is-active > a::before {
  border-bottom-color: var(--fst-accent);
}

.theme-fstcho-admin-next .vertical-tabs {
  overflow: clip;
}

.theme-fstcho-admin-next .vertical-tabs__menu {
  border-color: var(--fst-line);
  background: color-mix(in srgb, var(--fst-paper-deep) 62%, var(--fst-white));
}

.theme-fstcho-admin-next .vertical-tabs__menu-item {
  border-color: var(--fst-line);
  background: transparent;
}

.theme-fstcho-admin-next .vertical-tabs__menu-item.is-selected {
  border-left: 3px solid var(--fst-accent);
  background: var(--fst-surface-solid);
}

.theme-fstcho-admin-next :where(.entity-meta__header, .entity-meta details) {
  border-color: var(--fst-line);
  background: transparent;
}

.theme-fstcho-admin-next :where(.table-responsive, .views-form):focus-visible {
  outline: 2px solid var(--fst-focus);
  outline-offset: 2px;
}

.theme-fstcho-admin-next :where(.views-empty, .admin-list--empty, .system-status-general-info__item, .no-results) {
  min-height: 120px;
  display: grid;
  align-content: center;
  padding: 24px;
  border: 1px dashed var(--fst-line-strong);
  border-radius: var(--fst-radius-sm);
  color: var(--fst-muted);
  background: var(--fst-surface-solid);
}

.theme-fstcho-admin-next :where(.ajax-progress, .progress) {
  color: var(--fst-muted);
  font-size: .75rem;
}

.theme-fstcho-admin-next .progress__track {
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--fst-paper-deep);
  box-shadow: none;
}

.theme-fstcho-admin-next .progress__bar {
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: var(--fst-accent);
}

.theme-fstcho-admin-next .ajax-progress__throbber {
  border-color: var(--fst-line-strong);
  border-top-color: var(--fst-accent);
}

.theme-fstcho-admin-next :where(.tabledrag-handle, .handle, .machine-name-value) {
  color: var(--fst-muted);
}

.theme-fstcho-admin-next .breadcrumb {
  padding: 0;
  color: var(--fst-muted);
  background: transparent;
  font-size: .72rem;
}

.theme-fstcho-admin-next .breadcrumb a {
  color: var(--fst-muted);
  text-decoration-color: color-mix(in srgb, var(--fst-accent) 56%, transparent);
  text-underline-offset: 3px;
}

.theme-fstcho-admin-next .form-item {
  margin-bottom: 18px;
}

.theme-fstcho-admin-next :where(.fieldset, .claro-details, .panel, .views-exposed-form) {
  margin-block: 18px;
}

.theme-fstcho-admin-next .sticky-header {
  z-index: 20;
}

.theme-fstcho-admin-next :where(.action-links, .form-actions, .dropbutton-wrapper) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.theme-fstcho-admin-next .form-actions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--fst-line);
}

@media (max-width: 767.98px) {
  .theme-fstcho-admin-next .vertical-tabs {
    display: block;
  }

  .theme-fstcho-admin-next .vertical-tabs__menu {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--fst-line);
  }

  .theme-fstcho-admin-next :where(.action-links, .form-actions, .dropbutton-wrapper) > * {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .theme-fstcho-admin-next .tabs,
  .theme-fstcho-admin-next .views-form,
  .theme-fstcho-admin-next .table-responsive {
    overflow-x: auto;
  }

  .theme-fstcho-admin-next .form-actions {
    display: grid;
  }

  .theme-fstcho-admin-next .form-actions .button {
    width: 100%;
  }
}

/* Event page: the approved Penpot composition is one continuous editorial plane. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page {
  position: relative;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(330px, 30%) minmax(0, 70%);
  align-items: start;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead {
  display: contents;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead::before {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead .fst-event-hero {
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: calc(100% + 53px);
  height: 720px;
  min-height: 720px;
  margin: -96px -33px 0 -20px;
  overflow: hidden;
  border-radius: 0;
  background: var(--fst-paper-deep);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead .fst-event-hero::after {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead .fst-event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .08) 18%, rgba(0, 0, 0, .45) 42%, rgba(0, 0, 0, .82) 64%, #000 82%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .08) 18%, rgba(0, 0, 0, .45) 42%, rgba(0, 0, 0, .82) 64%, #000 82%);
  transform: none;
  animation: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__content {
  grid-column: 1;
  grid-row: 1;
  width: min(760px, calc(100vw - 246px)) !important;
  max-width: min(760px, calc(100vw - 246px)) !important;
  z-index: 1;
  padding: 18px clamp(28px, 3vw, 46px) 22px 0;
  animation: none;
}

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

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__topline {
  width: 760px;
  max-width: 100%;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 15px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__topline > span:first-child {
  color: var(--fst-accent-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__title {
  width: 690px !important;
  max-width: 690px !important;
  color: var(--fst-ink);
  font-family: var(--fst-font-sans);
  font-weight: 700;
  font-size: 3rem;
  line-height: .9;
  text-transform: uppercase;
  text-wrap: wrap;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead .fst-event-lead {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__facts.fst-meta-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
  border-color: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__facts.fst-meta-list > div {
  min-width: 0;
  padding: 12px 10px 12px 0;
  border-color: var(--fst-line);
}

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

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

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead .fst-event-actions {
  margin-top: 28px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead .fst-event-actions > :first-child {
  margin-right: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__competitions {
  grid-column: 1 / -1;
  grid-row: 3;
  border-color: var(--fst-line);
  background: var(--fst-paper);
  backdrop-filter: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle {
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: auto;
  margin: 0 clamp(28px, 3vw, 46px) 28px 0;
  padding: 24px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle__title {
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin: 0;
  transform: translateY(8px);
  color: var(--fst-ink);
  font-family: var(--fst-font-sans);
  font-size: .7rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) max-content;
  gap: 11px;
  align-items: center;
  min-height: 40px;
  color: var(--fst-muted);
  font-size: .67rem;
  letter-spacing: .07em;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li::before {
  top: 24px;
  right: auto;
  bottom: 0;
  left: 10px;
  width: 1px;
  height: auto;
  background: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li.is-complete::before {
  background: var(--fst-green);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li:last-child::before {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li > span {
  width: 22px;
  height: 22px;
  border-color: var(--fst-line-strong);
  background: var(--fst-paper);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li.is-complete > span {
  border-color: var(--fst-green);
  background: var(--fst-green);
  color: var(--fst-white);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li > strong {
  max-width: none;
  line-height: 1.25;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li > time {
  color: var(--fst-muted);
  font-size: .64rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li.is-current > span {
  border-color: var(--fst-accent);
  background: var(--fst-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fst-accent) 12%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-lifecycle li.is-current > strong {
  color: var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-scoreboard .fst-data-table,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-scoreboard .fst-event-table--score {
  width: 100% !important;
  min-width: 0 !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > .fst-event-stage-stack,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-page > :not(.fst-event-masthead):not(.fst-event-lifecycle):not(.fst-event-lifecycle__title) {
  grid-column: 1 / -1;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next).page-node-type-fstcho-event #block-fstcho-next-page-title {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__competition + .fst-event-masthead__competition {
  border-color: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__competition strong {
  color: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-masthead__competition small {
  color: var(--fst-muted);
}

/* Dense document archive from the approved Penpot screen. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-archive__header {
  max-width: none;
  display: block;
  margin-bottom: 48px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-archive__header h1 {
  margin: 0;
  font-family: var(--fst-font-sans);
  font-size: clamp(3rem, 3.8vw, 4rem);
  line-height: .9;
  text-transform: uppercase;
  white-space: nowrap;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-archive__header p {
  margin: 12px 0 0;
  color: var(--fst-muted);
  font-size: .9rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: color-mix(in srgb, var(--fst-white) 45%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats a {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 14px 16px;
  color: var(--fst-ink);
  border-right: 1px solid var(--fst-line);
  border-bottom: 1px solid var(--fst-line);
  text-decoration: none;
}

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

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats a:nth-last-child(-n + 5) {
  border-bottom: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats a:hover,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats a:focus-visible,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats a.is-active {
  color: var(--fst-accent-strong);
  background: color-mix(in srgb, var(--fst-accent) 6%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats span {
  max-width: 15ch;
  font-size: .62rem;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats strong {
  font-family: var(--fst-font-sans);
  font-size: 2rem;
  line-height: 1;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(4, minmax(108px, 1fr)) 212px;
  gap: 14px;
  align-items: end;
  margin: 0 0 18px;
  padding: 20px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter__field {
  min-width: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: .61rem;
  font-weight: 750;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter :is(.form-control, .form-select) {
  width: 100%;
  min-height: 46px;
  padding-block: 10px;
  font-size: .76rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter__actions {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter__actions .fst-catalog-filter__status:empty {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter__actions .btn {
  min-height: 46px;
  padding-inline: 16px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table-wrap {
  margin-top: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table th:nth-child(1) { width: 39%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table th:nth-child(2) { width: 7%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table th:nth-child(3) { width: 22%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table th:nth-child(4) { width: 7%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table th:nth-child(5) { width: 10%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table th:nth-child(6) { width: 8%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-table th:nth-child(7) { width: 7%; }

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-title {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--fst-ink);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-title img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-taxonomy {
  display: grid;
  gap: 2px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-taxonomy small {
  color: var(--fst-muted);
  font-size: .64rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-open {
  margin-inline: auto;
}

/* Compact registry workspace shared by judges, qualifications and grades. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-documents #block-fstcho-next-page-title,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-registries #block-fstcho-next-page-title,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-grades #block-fstcho-next-page-title {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__header {
  max-width: none;
  display: block;
  margin: 0 0 34px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__header .fst-catalog__eyebrow {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__header h1 {
  margin: 0 0 10px;
  font-family: var(--fst-font-sans);
  font-size: clamp(3rem, 3.65vw, 3.6rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__header > p:last-child {
  max-width: 780px;
  margin: 0;
  color: var(--fst-muted);
  font-size: .92rem;
  line-height: 1.55;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-documents .fst-page-container,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-registries .fst-page-container,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-grades .fst-page-container,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).page-node-type-fstcho-event .fst-page-container {
  padding-top: 40px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next).page-node-type-fstcho-event .fst-next-main__ridge {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) minmax(180px, 1fr) minmax(160px, .88fr) minmax(120px, .62fr) 122px;
  gap: 16px;
  align-items: end;
  margin: 0;
  padding: 22px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter .form-control,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter .form-select,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter .btn {
  min-height: 46px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter-actions {
  display: grid;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter-actions .fst-catalog-filter__status:empty {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry .fst-catalog__source-note {
  margin: 14px 0 30px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__summary {
  margin-bottom: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table-wrap {
  margin-top: 16px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table th:nth-child(1) { width: 23%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table th:nth-child(2) { width: 10%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table th:nth-child(3) { width: 19%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table th:nth-child(4) { width: 18%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table th:nth-child(5) { width: 12%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table th:nth-child(6) { width: 12%; }
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__table th:nth-child(7) { width: 6%; }

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__person {
  color: var(--fst-ink);
  font-weight: 650;
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__order {
  color: var(--fst-accent-text);
  font-weight: 650;
}

/* Editorial catalogs measured from the approved calendar and news screens. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next):is(.path-calendar, .path-competitions, .path-education, .path-results, .path-news) .fst-next-main__ridge {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next):is(.path-calendar, .path-competitions, .path-education, .path-results, .path-news) #block-fstcho-next-page-title {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next):is(.path-calendar, .path-competitions, .path-education, .path-results, .path-news) .fst-page-container--catalog {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 36px 48px clamp(72px, 9vw, 132px);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next):is(.path-calendar, .path-competitions, .path-education, .path-results, .path-news) .fst-breadcrumb {
  margin-bottom: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-catalog {
  width: 100%;
  padding-top: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 70px;
  align-items: end;
  min-height: 330px;
  margin: 0;
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-header .fst-catalog__eyebrow {
  margin: 0;
  color: var(--fst-accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-header h1 {
  margin: 16px 0 0;
  font-family: var(--fst-font-sans);
  font-size: 68px;
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-header > p {
  max-width: 490px;
  margin: 0;
  color: var(--fst-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-tabs {
  display: flex;
  min-height: 58px;
  gap: 34px;
  align-items: center;
  overflow-x: auto;
  border-bottom: 1px solid var(--fst-line);
  scrollbar-width: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-tabs::-webkit-scrollbar {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-tabs a {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  color: var(--fst-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-tabs a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -21px;
  left: 0;
  height: 2px;
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-tabs a:hover,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-tabs a:focus-visible,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-tabs a.is-active {
  color: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-tabs a.is-active::after {
  background: var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-filter {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(170px, 1fr)) 150px;
  gap: 16px;
  align-items: end;
  margin: 34px 0 0;
  padding: 27px 18px 25px;
  font-size: 14px;
  line-height: normal;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-filter {
  grid-template-columns: minmax(300px, 1.45fr) minmax(180px, .8fr) minmax(220px, 1fr) 240px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-filter .form-label {
  display: block;
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-filter :is(.form-control, .form-select, .btn) {
  width: 100%;
  min-height: 45px;
  height: 45px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-filter :is(.form-control, .form-select) {
  font-size: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-filter .btn {
  font-size: 13px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-catalog .fst-next-editorial-filter {
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) 112px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-filter__actions {
  display: grid;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-editorial-filter__actions .fst-catalog-filter__status:empty {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-catalog-summary {
  display: flex;
  justify-content: space-between;
  margin: 34px 0 18px;
  color: var(--fst-ink-soft);
  font-size: .68rem;
  line-height: normal;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card {
  height: 240px;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: color-mix(in srgb, var(--fst-white) 54%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card__media {
  height: 240px;
  display: block;
  overflow: hidden;
  background: var(--fst-paper-deep);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--fst-duration) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card:hover .fst-next-event-card__media img {
  transform: scale(1.025);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 23px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card__meta {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card__meta time {
  color: var(--fst-accent);
  font-family: var(--fst-font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card__meta .fst-status-marker {
  max-width: 160px;
  text-align: right;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card h2 {
  margin: 0 0 10px;
  font-family: var(--fst-font-sans);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card h2 a,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card h2 a {
  color: var(--fst-ink);
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card__body > p {
  margin: 0 0 14px;
  color: var(--fst-muted);
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-event-card .fst-next-text-action {
  margin-top: auto;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 24px;
  margin-top: 46px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card {
  min-width: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card__media {
  height: 230px;
  display: block;
  overflow: hidden;
  border-radius: var(--fst-radius);
  background: var(--fst-paper-deep);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--fst-duration) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card:hover img {
  transform: scale(1.025);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card__body {
  padding: 18px 4px 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card__meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--fst-muted);
  font-size: 11px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card h2 {
  display: -webkit-box;
  min-height: 56px;
  margin: 0 0 12px;
  overflow: hidden;
  font-family: var(--fst-font-sans);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-card__body > p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--fst-muted);
  min-height: 58px;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/*
 * Canonical person dossier.
 *
 * The public profile is a dense official summary, not a generic catalogue
 * card.  These rules deliberately own every semantic layer produced by
 * node--fstcho-person.html.twig instead of inheriting the former theme by
 * accident.
 */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile {
  width: 100%;
  max-width: var(--fst-content-width);
  margin-inline: auto;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro {
  margin-bottom: 50px;
  padding: 0 0 42px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro > p {
  margin: 0 0 18px;
  color: var(--fst-accent-text);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro > div {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr);
  gap: 54px;
  align-items: end;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--fst-font-sans);
  font-size: clamp(4rem, 6.3vw, 6.5rem);
  font-weight: 700;
  line-height: .86;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro > div > p {
  margin: 0 0 4px;
  color: var(--fst-ink-soft);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.65;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__dossier {
  position: relative;
  min-height: 180px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--fst-line);
  border-top: 2px solid var(--fst-ink);
  border-radius: var(--fst-radius);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__avatar {
  width: 92px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--fst-white);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-ink);
  font-family: var(--fst-font-sans);
  font-size: 2rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__avatar figure,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__avatar img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__dossier-identity {
  min-width: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__dossier-identity h2 {
  margin: 14px 0 6px;
  font-family: var(--fst-font-sans);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: .95;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__dossier-identity > p {
  margin: 0;
  color: var(--fst-muted);
  font-size: .76rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__dossier .fst-person-profile__membership-mark {
  position: absolute;
  top: -54px;
  right: 150px;
  width: 250px;
  opacity: .17;
  pointer-events: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__report {
  position: relative;
  z-index: 1;
  min-width: 176px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary {
  overflow: hidden;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: color-mix(in srgb, var(--fst-white) 58%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item {
  min-height: 94px;
  padding: 18px 20px !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item p {
  margin: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration {
  width: calc(50% - 14px);
  margin-top: 24px;
  padding: 28px 30px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration .fst-section-heading {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration .fst-section-heading p {
  color: var(--fst-accent-text);
  font-size: .62rem;
  font-weight: 750;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration .fst-section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration dl div {
  padding: 8px 16px;
}

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

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration dt {
  color: var(--fst-muted);
  font-size: .61rem;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration dd {
  margin: 8px 0 0;
  font-size: .78rem;
  font-weight: 650;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration + .fst-person-profile__registries {
  margin-top: 24px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__header {
  margin-bottom: clamp(36px, 5vw, 68px);
  padding: clamp(26px, 4vw, 48px);
  overflow: clip;
  border: 1px solid var(--fst-line);
  border-top: 2px solid var(--fst-ink);
  border-radius: var(--fst-radius);
  background: var(--fst-surface-solid);
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__header--with-photo {
  grid-template-columns: clamp(132px, 16vw, 188px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__portrait {
  min-height: 220px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-paper-deep);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__identity-heading {
  gap: 20px;
  align-items: flex-start;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__header h1 {
  max-width: 1020px;
  margin: 0 0 clamp(28px, 4vw, 46px);
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.045em;
  text-wrap: balance;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__membership-mark {
  width: clamp(62px, 6vw, 78px);
  margin-top: -6px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__membership-mark img {
  filter: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__summary div {
  padding: 18px 22px 18px 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__summary div + div {
  padding-left: 22px;
  border-left: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__summary dt,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item h2,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record dt {
  color: var(--fst-muted);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__summary dd {
  margin-top: 7px;
  font-size: .9rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
  border-color: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item {
  padding: 22px 20px 2px 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item +
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item {
  padding-left: 20px;
  border-left-color: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item h2 {
  min-height: 2.4em;
  margin-bottom: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item li {
  gap: 12px;
  align-items: flex-start;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item strong {
  font-size: .86rem;
  line-height: 1.35;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item li span,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item > p {
  color: var(--fst-muted);
  font-size: .68rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registries {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px) 28px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__section {
  min-width: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registries .fst-section-heading {
  min-height: 78px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registries .fst-section-heading p {
  margin: 0 0 8px;
  color: var(--fst-accent-text);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registries .fst-section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: .95;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__records {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registries .fst-person-record,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record {
  padding: 22px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-surface-solid);
  box-shadow: none;
  transform: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record:hover {
  border-color: var(--fst-line-strong);
  box-shadow: inset 0 -2px var(--fst-accent);
  transform: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record--active {
  border-left: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record--archive {
  color: var(--fst-ink-soft);
  background: color-mix(in srgb, var(--fst-paper-deep) 48%, var(--fst-white));
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record__heading {
  margin-bottom: 18px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record__heading strong {
  font-family: var(--fst-font-sans);
  font-size: 1.12rem;
  line-height: 1.12;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record__heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--fst-muted);
  background: transparent;
  font-size: .68rem;
  font-weight: 650;
  white-space: nowrap;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record__heading span::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--fst-green);
  content: "";
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record--archive .fst-person-record__heading span::before,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record--expired .fst-person-record__heading span::before {
  background: var(--fst-danger);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record--unverified .fst-person-record__heading span::before {
  box-sizing: border-box;
  border: 2px solid var(--fst-warning);
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record dl {
  margin-bottom: 16px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record dl div,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registries .fst-person-record dl div {
  grid-template-columns: minmax(104px, .42fr) minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-color: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record dd {
  font-size: .82rem;
  line-height: 1.45;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record__order {
  min-height: 44px;
  align-items: center;
  color: var(--fst-ink);
  text-decoration-color: color-mix(in srgb, var(--fst-accent) 62%, transparent);
  text-underline-offset: 4px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record__confirmation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fst-status-warning-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-record__confirmation::before {
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 2px solid var(--fst-warning);
  border-radius: 50%;
  content: "";
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__empty.fst-empty-state {
  min-height: 150px;
  padding: 24px;
  font-size: .82rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__archive {
  margin-top: 14px;
  border-color: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__archive summary {
  min-height: 48px;
  padding: 12px 2px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__archive summary span:last-child {
  min-width: 24px;
  padding: 0;
  color: var(--fst-muted);
  background: transparent;
  font-variant-numeric: tabular-nums;
}

/*
 * Approved data-page composition. The reference canvas is authoritative:
 * desktop content begins 47/48px after the fixed 190px rail and mobile uses
 * the full 390px canvas below the 96px navigation header.
 */
@media (min-width: 1024px) {
  :is(.theme-fstcho-next, .theme-fstcho-admin-next):is(.path-documents, .path-registries, .path-grades) .fst-page-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 36px 44px 32px 47px;
  }

  :is(.theme-fstcho-next, .theme-fstcho-admin-next).page-node-type-fstcho-person .fst-page-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 36px 48px 96px;
  }

  :is(.theme-fstcho-next, .theme-fstcho-admin-next).page-node-type-fstcho-person .region-content {
    padding-inline: 0;
  }
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next):is(.path-documents, .path-registries, .path-grades, .page-node-type-fstcho-person) .fst-breadcrumb {
  margin-bottom: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next):is(.path-documents, .path-registries, .path-grades) .fst-next-main__ridge {
  top: 18px;
  right: 38px;
  width: 536px;
  height: auto;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next).page-node-type-fstcho-person .fst-next-main__ridge {
  top: 54px;
  right: 46px;
  width: 520px;
  height: auto;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-next-document-archive__header, .fst-next-registry__header) {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 42px 0 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-next-document-archive__header, .fst-next-registry__header) h1 {
  width: 138%;
  max-width: none;
  margin: 0;
  font-family: var(--fst-font-sans);
  font-size: 50px;
  font-weight: 700;
  line-height: .94;
  letter-spacing: normal;
  text-transform: uppercase;
  white-space: nowrap;
  transform: scaleX(.72);
  transform-origin: left top;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-next-document-archive__header, .fst-next-registry__header) > p:last-child {
  width: 800px;
  max-width: 800px;
  margin: 13px 0 0 !important;
  color: var(--fst-muted) !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.5 !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 50px 0 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--fst-line);
  border-left: 1px solid var(--fst-line);
  border-radius: 0;
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats a {
  min-height: 104px;
  display: block;
  padding: 13px;
  border-right: 1px solid var(--fst-line);
  border-bottom: 1px solid var(--fst-line);
  background: transparent;
}

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

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

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats span {
  min-height: 28px;
  display: block;
  max-width: none;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-stats strong {
  display: block;
  margin-top: 10px;
  font-family: var(--fst-font-sans);
  font-size: 25px;
  line-height: 1;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter {
  box-sizing: border-box;
  align-items: end;
  border: 1px solid var(--fst-line) !important;
  border-radius: 4px !important;
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter {
  grid-template-columns: 250px 170px 150px 100px 105px 236px;
  gap: 22px;
  margin: 13px 0 0;
  padding: 25px 18px 28px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter {
  grid-template-columns: 224px 224px 218px 236px 112px;
  gap: 20px;
  margin: 35px 0 0;
  padding: 27px 18px 25px;
  border-top-width: 1px;
}

@media (min-width: 1024px) {
  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter {
    height: 119px;
  }

  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter {
    height: 118px;
  }
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-next-document-filter, .fst-next-registry__filter) .form-label {
  display: block;
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 11px;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-next-document-filter, .fst-next-registry__filter) :is(.form-control, .form-select, .btn) {
  min-height: 45px;
  height: 45px;
  padding-block: 0;
  font-size: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-filter__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter-actions {
  display: grid;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter-actions .btn[aria-label="Сбросить фильтры"] {
  position: static;
  width: 112px;
  min-width: 112px;
  height: 45px;
  min-height: 45px;
  padding-inline: 16px;
  place-items: center;
  overflow: visible;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter-actions .btn[aria-label="Сбросить фильтры"]::before,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__filter-actions .btn[aria-label="Сбросить фильтры"]::after {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry .fst-catalog__source-note,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-registry__summary {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-data-help {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 38px;
  margin-top: 55px;
  padding: 34px;
  border-top: 1px solid var(--fst-line);
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-data-help span {
  color: var(--fst-accent-text);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-data-help h2 {
  margin: 8px 0 0;
  font-family: var(--fst-font-sans);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-data-help p {
  max-width: none;
  margin: 0;
  color: var(--fst-muted);
  font-size: 14px;
  line-height: 1.55;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-data-help__link {
  color: var(--fst-accent-text);
  font-weight: 650;
}

/* Canonical person page follows the approved summary/profile/history stack. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile {
  width: 100%;
  max-width: none;
  margin: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: 70px;
  margin: 0 0 50px;
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro > div {
  display: block;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__eyebrow {
  margin: 0;
  color: var(--fst-accent-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro h1 {
  max-width: 900px;
  margin: 16px 0 0;
  font-family: var(--fst-font-sans);
  font-size: 68px;
  font-weight: 700;
  line-height: .94;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__intro > .fst-person-profile__lead {
  max-width: 490px;
  margin: 0 !important;
  color: var(--fst-ink-soft) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.75 !important;
  letter-spacing: normal;
  text-transform: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__dossier {
  min-height: 180px;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 28px;
  margin: 0;
  padding: 32px;
  border-top-width: 3px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__dossier-identity h2 {
  margin: 8px 0;
  font-size: 29px;
  line-height: 1;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item + .fst-person-profile__registry-summary-item {
  min-height: 94px;
  padding: 20px 22px !important;
  border: 0;
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registry-summary-item h2 {
  min-height: 0;
  margin: 0 0 12px;
  font-size: 9px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualifications-summary,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history {
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualifications-summary {
  width: auto;
  min-height: 388px;
  margin: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-person-profile__registration, .fst-person-profile__qualifications-summary) .fst-section-heading {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-person-profile__registration, .fst-person-profile__qualifications-summary) .fst-section-heading p,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history > p {
  margin: 0;
  color: var(--fst-accent-text);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-person-profile__registration, .fst-person-profile__qualifications-summary) .fst-section-heading h2,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history > h2 {
  margin: 11px 0 0;
  font-family: var(--fst-font-sans);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  background: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration dl div,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration dl div + div {
  min-height: 84px;
  padding: 16px;
  border: 0;
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualification-list {
  margin-top: 24px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualification-item i {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--fst-muted);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualification-item.is-active i {
  color: var(--fst-green);
  background: currentColor;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualification-item strong,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualification-item small {
  display: block;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__qualification-item small {
  margin-top: 7px;
  color: var(--fst-muted);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history {
  min-height: 294px;
  margin-top: 24px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history-current,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history-records article {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 25px;
  padding: 20px 0;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history-current {
  margin-top: 24px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history time,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history small {
  color: var(--fst-muted);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history details {
  margin-top: 8px;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__history summary {
  min-height: 48px;
  padding: 16px 0;
  color: var(--fst-accent-text);
  font-size: 11px;
  font-weight: 700;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registries,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-person-profile__registration + .fst-person-profile__registries {
  margin-top: 24px;
}

/* Approved source compositions for editorial detail pages. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next):is(
  .page-node-type-fstcho-publication,
  .page-node-type-fstcho-document,
  .page-node-type-fstcho-route-report
) .block-page-title-block,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface:has(.fst-document-preview) > .block-page-title-block,
:is(.theme-fstcho-next, .theme-fstcho-admin-next):has(.fst-document-preview) .block-page-title-block {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next):is(
  .page-node-type-fstcho-publication,
  .page-node-type-fstcho-document,
  .page-node-type-fstcho-route-report
) .fst-page-container,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-documents .fst-page-container:has(.fst-document-preview) {
  width: 100%;
  max-width: none;
  padding-right: clamp(34px, 4.5vw, 72px);
  padding-left: clamp(34px, 4.5vw, 72px);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail {
  width: 100%;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__header {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: end;
  padding: 62px 0 44px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__eyebrow {
  margin: 0;
  color: var(--fst-accent-text);
  font: 750 10px/1.45 var(--fst-font-text);
  letter-spacing: .12em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__header h1 {
  max-width: 900px;
  margin: 15px 0 0;
  font: 700 clamp(48px, 5.55vw, 82px)/.9 var(--fst-font-sans);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__lead {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--fst-muted);
  font: 600 14px/1.7 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--fst-radius);
  background: var(--fst-surface-muted);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(30px, 4vw, 58px);
  align-items: start;
  padding: 52px 0 70px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-detail__article > .fst-next-detail__media {
  aspect-ratio: 1.62 / 1;
  margin-bottom: 34px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-detail__article > .fst-next-detail__media--source-limited {
  float: left;
  width: fit-content;
  max-width: 100%;
  margin: 0 30px 18px 0;
  aspect-ratio: auto;
  background: transparent;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__media--source-limited img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-detail__article > .fst-next-detail__media--source-limited + .fst-next-detail__prose--publication > p:first-child {
  margin-top: 0;
}

@media (max-width: 680px) {
  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-detail__article > .fst-next-detail__media--source-limited {
    float: none;
    margin: 0 0 20px;
  }
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-detail__article::after {
  display: block;
  clear: both;
  content: '';
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-detail__article {
  grid-column: 1 / -1;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-detail__aside {
  grid-column: 1 / -1;
  max-width: 320px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose {
  color: var(--fst-ink-soft);
  font: 500 15px/1.75 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose :where(p, li) {
  max-width: 760px;
  color: inherit;
  font: inherit;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose--publication :where(p, li) {
  max-width: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose :where(h2, h3) {
  max-width: 760px;
  margin: 42px 0 16px;
  color: var(--fst-ink);
  font: 700 clamp(27px, 3vw, 38px)/1 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose blockquote {
  max-width: 760px;
  margin: 34px 0;
  padding: 10px 0 10px 26px;
  color: var(--fst-ink);
  border-left: 2px solid var(--fst-accent);
  font: 700 20px/1.35 var(--fst-font-sans);
  text-transform: uppercase;
}

/* Shared editorial action row for links recovered from legacy publication imports. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose--publication > img:first-child,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose--publication > h3:first-of-type,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose--publication .field__item > img:first-child,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose--publication .field__item > h3:first-of-type,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__prose--report img:first-child {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__aside {
  padding: 28px 26px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: color-mix(in srgb, var(--fst-white) 78%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__aside .fst-meta-list,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__facts .fst-meta-list {
  display: grid;
  gap: 20px;
  margin: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__aside .fst-meta-list > div,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__facts .fst-meta-list > div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__aside dt,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__facts dt,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card dt {
  margin-bottom: 7px;
  color: var(--fst-muted);
  font: 700 9px/1.4 var(--fst-font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__aside dd,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__facts dd,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card dd {
  margin: 0;
  color: var(--fst-ink);
  font: 650 13px/1.45 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__aside-links {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__aside-links span {
  color: var(--fst-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-detail__aside-links a {
  color: var(--fst-accent-text);
  font-size: 13px;
  font-weight: 700;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-related {
  padding: 34px 0 8px;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-related > h2,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-relations > h2 {
  margin: 0 0 24px;
  font: 700 clamp(30px, 3.2vw, 42px)/1 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-related__item a {
  display: grid;
  color: var(--fst-ink);
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-related__item img {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  display: block;
  object-fit: cover;
  border-radius: var(--fst-radius);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-related__item time {
  margin-top: 12px;
  color: var(--fst-accent-text);
  font: 700 9px/1.4 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-related__item strong {
  margin-top: 5px;
  font: 700 17px/1.15 var(--fst-font-sans);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: stretch;
  padding: 52px 0 54px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-source {
  padding: 30px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: color-mix(in srgb, var(--fst-white) 86%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card__identity {
  display: flex;
  gap: 18px;
  align-items: center;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card__identity img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card__identity p {
  margin: 0 0 4px;
  color: var(--fst-muted);
  font-size: 10px;
  font-weight: 700;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card__identity h2,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-source h2 {
  margin: 0;
  font: 700 22px/1 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--fst-line);
  border-left: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card__facts > div {
  min-height: 84px;
  padding: 17px 18px;
  border-right: 1px solid var(--fst-line);
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-source p {
  margin: 16px 0 0;
  color: var(--fst-muted);
  font-size: 13px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-source > a {
  display: inline-block;
  margin-top: 12px;
  color: var(--fst-accent-text);
  font-size: 12px;
  font-weight: 750;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-source__taxonomy {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-relations {
  padding-top: 34px;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-relations__list {
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-relations__list a {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
  color: var(--fst-ink);
  border-bottom: 1px solid var(--fst-line);
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-relations__list span {
  font-size: 13px;
  font-weight: 700;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-document-relations__list small {
  color: var(--fst-muted);
  font-size: 10px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__overview {
  display: grid;
  grid-template-columns: 1fr;
  padding: 52px 0 28px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__overview--with-image {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: 30px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__overview > .fst-next-detail__media {
  min-height: 390px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__facts {
  padding: 30px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: color-mix(in srgb, var(--fst-white) 82%, transparent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__facts .btn {
  margin-top: 28px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--fst-line);
  border-left: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__sections > section {
  min-height: 190px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 28px 24px 30px 20px;
  border-right: 1px solid var(--fst-line);
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__sections > section > span {
  color: var(--fst-accent-text);
  font-size: 11px;
  font-weight: 750;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__sections h2 {
  margin: 0 0 14px;
  font: 700 25px/1 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-route-report__sections a {
  display: block;
  margin-top: 10px;
  color: var(--fst-accent-text);
  font-size: 13px;
  font-weight: 700;
}

/* The controller remains functional; only its composition follows the source. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-document-preview {
  display: grid;
  gap: 24px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-document-preview__toolbar {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-document-preview__eyebrow {
  color: var(--fst-accent-text);
  font: 750 10px/1.45 var(--fst-font-text);
  letter-spacing: .12em;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-document-preview__identity h1 {
  max-width: 860px;
  margin: 12px 0 8px;
  font: 700 clamp(44px, 5vw, 74px)/.9 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-document-preview__identity p {
  margin: 0;
  color: var(--fst-muted);
  font-size: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-document-preview__actions {
  display: flex;
  gap: 10px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-document-preview__frame {
  display: block;
  width: 100%;
  min-height: 1000px;
  border: 0;
  border-radius: var(--fst-radius);
  background: var(--fst-footer);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-document-preview__fallback {
  max-width: none;
  margin: -10px 0 0;
  color: var(--fst-muted);
  font-size: 12px;
}

/* Section, information and media layouts follow the approved full-page source. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface:has(.fst-next-section) > .block-page-title-block,
:is(.theme-fstcho-next, .theme-fstcho-admin-next):has(.fst-next-section) #block-fstcho-next-page-title,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-content-surface:has(.fst-next-media-catalog) > .block-page-title-block,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).page-node-type-fstcho-gallery .block-page-title-block,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-about #block-fstcho-next-page-title,
:is(.theme-fstcho-next, .theme-fstcho-admin-next).path-media #block-fstcho-next-page-title {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section {
  width: 100%;
  padding-bottom: clamp(72px, 9vw, 132px);
}

@media (min-width: 1024px) {
  :is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-page-container:has(:is(.fst-next-section, .fst-next-media-catalog)) {
    padding-top: 36px;
    padding-bottom: 0;
  }
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section__header,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-header {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 70px;
  align-items: end;
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section__eyebrow,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-header__eyebrow,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-header__date {
  margin: 0;
  color: var(--fst-accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section__header h1,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-header h1 {
  max-width: 780px;
  margin: 16px 0 0;
  font-family: var(--fst-font-sans);
  font-size: clamp(58px, 6vw, 92px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: .92;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section__lead,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-header > p {
  max-width: 500px;
  margin: 0;
  color: var(--fst-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link {
  min-height: 152px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: center;
  padding: 28px 24px;
  color: var(--fst-ink);
  border-right: 1px solid var(--fst-line);
  border-bottom: 1px solid var(--fst-line);
  text-decoration: none;
  transition: color var(--fst-duration-fast) var(--fst-ease), background-color var(--fst-duration-fast) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link:hover,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link:focus-visible {
  color: var(--fst-accent-text);
  background: var(--fst-paper-deep);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link__index {
  align-self: center;
  color: var(--fst-accent-text);
  font: 700 16px/1 var(--fst-font-sans);
  font-variant-numeric: tabular-nums;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link__copy strong,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link__copy small {
  display: block;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link__copy strong {
  font: 700 27px/1.05 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link__copy small {
  max-width: 460px;
  margin-top: 10px;
  color: var(--fst-muted);
  font: 500 12px/1.55 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link__arrow {
  width: 24px;
  height: 24px;
  justify-self: end;
  color: var(--fst-accent);
  transition: transform var(--fst-duration-fast) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link:hover .fst-next-section-link__arrow,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-link:focus-visible .fst-next-section-link__arrow {
  transform: translateX(4px);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-spotlight {
  min-height: 248px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr) auto;
  gap: 30px;
  align-items: end;
  margin-top: 70px;
  padding: 32px 34px;
  overflow: hidden;
  color: var(--fst-white);
  border-radius: var(--fst-radius);
  background: var(--fst-footer);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-spotlight__copy p {
  margin: 0 0 14px;
  color: var(--fst-accent-on-dark);
  font: 700 10px/1.4 var(--fst-font-text);
  letter-spacing: .1em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-spotlight__copy h2 {
  max-width: 560px;
  margin: 0;
  color: var(--fst-white);
  font: 700 clamp(32px, 3vw, 44px)/.94 var(--fst-font-sans);
  text-transform: uppercase;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-spotlight__copy strong {
  display: block;
  margin-top: 18px;
  color: var(--fst-white);
  font: 600 13px/1.5 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-spotlight img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  border-radius: var(--fst-radius);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-spotlight .btn {
  min-width: 156px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 1px 0 0;
  background: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-stats > div {
  min-height: 128px;
  padding: 26px;
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-stats dd {
  margin: 0;
  font: 700 42px/1 var(--fst-font-sans);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-section-stats dt {
  margin-top: 10px;
  color: var(--fst-muted);
  font: 700 9px/1.4 var(--fst-font-text);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-tabs {
  min-height: 58px;
  display: flex;
  gap: 34px;
  align-items: center;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-tabs a {
  color: var(--fst-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-tabs a.is-active {
  color: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
  gap: 100px;
  padding: 68px 0 74px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-copy {
  max-width: 760px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-copy h2 {
  margin: 0 0 24px;
  font: 700 clamp(38px, 4vw, 58px)/.98 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-copy__intro {
  color: var(--fst-ink);
  font-size: 19px !important;
  font-weight: 600;
  line-height: 1.55 !important;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-copy h3 {
  margin-top: 40px;
  font: 700 24px/1 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-copy li::marker {
  color: var(--fst-accent);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-contacts {
  margin: 0;
  border: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-contacts > div {
  min-height: 92px;
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-contacts dt {
  color: var(--fst-accent-text);
  font: 700 9px/1.4 var(--fst-font-text);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-info-contacts dd {
  margin: 9px 0 0;
  color: var(--fst-ink);
  font: 600 13px/1.55 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-results {
  padding: 48px 0 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-results__summary {
  margin: 0 0 20px;
  color: var(--fst-muted);
  font: 700 9px/1 var(--fst-font-text);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card {
  overflow: hidden;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card__image {
  height: 240px;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: var(--fst-paper-deep);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card__image img,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card__image span {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--fst-duration) var(--fst-ease);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card:hover img {
  transform: scale(1.025);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card__meta {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--fst-accent-text);
  font: 700 9px/1 var(--fst-font-text);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card__body {
  min-height: 130px;
  padding: 18px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card h2 {
  margin: 8px 0;
  font: 700 22px/1.08 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card h2 a {
  color: inherit;
  text-decoration: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-media-card__body > p {
  margin: 9px 0 0;
  color: var(--fst-muted);
  font: 500 11px/1.4 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-page {
  max-width: none;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: clamp(72px, 9vw, 132px);
  border-top: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-header h1 {
  font-size: clamp(48px, 5vw, 76px);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-copy:empty {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery {
  padding-top: 58px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 200px;
  gap: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item {
  min-width: 0;
  display: block;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(4) {
  grid-column: 3 / span 2;
  grid-row: 2 / span 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(6) {
  grid-column: 1 / span 2;
  grid-row: 4 / span 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(7) {
  grid-column: 3;
  grid-row: 4;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(8) {
  grid-column: 4;
  grid-row: 4;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(9) {
  grid-column: 3 / span 2;
  grid-row: 5 / span 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(10) {
  grid-column: 1;
  grid-row: 6;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(11) {
  grid-column: 1 / span 2;
  grid-row: 7 / span 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(12) {
  grid-column: 3;
  grid-row: 7;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(13) {
  grid-column: 4;
  grid-row: 7;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__item:nth-child(n + 14) {
  grid-column: span 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__more {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding-top: 38px;
  color: var(--fst-muted);
  font-size: 11px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery__more .btn {
  min-width: 260px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 70px;
  background: var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-resources section {
  min-height: 190px;
  padding: 30px;
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-resources section:only-child {
  grid-column: 1 / -1;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-resources p {
  margin: 0;
  color: var(--fst-accent-text);
  font: 700 9px/1 var(--fst-font-text);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-resources h2 {
  margin: 12px 0 22px;
  font: 700 28px/1 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-gallery-resources a {
  display: block;
  margin-top: 10px;
}

/* System pages follow the approved full-screen source instead of Drupal's
 * default isolated title/card composition. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: 70px;
  min-height: 300px;
  padding: 20px 0 48px;
  border-bottom: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-hero__eyebrow,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card__eyebrow {
  margin: 0;
  color: var(--fst-accent-text);
  font: 700 10px/1.2 var(--fst-font-text);
  letter-spacing: .12em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-hero h1 {
  max-width: 900px;
  margin: 16px 0 0;
  font: 700 clamp(54px, 5.2vw, 72px)/.92 var(--fst-font-sans);
  letter-spacing: -.035em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-hero > p {
  max-width: 490px;
  margin: 0;
  color: var(--fst-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content > .region-content > .block-page-title-block,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card .block-page-title-block {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-page-container--system-search .fst-next-system-content {
  margin-top: 48px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :where(.fst-page-container--system-search, .fst-page-container--system-auth) {
  padding-top: 36px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-page-container--system-auth .block-local-tasks-block {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-form .container-inline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-form .fst-live-search__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-page-container--system-search, .fst-page-container--system-auth) #block-fstcho-next-page-title {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-form .form-item {
  margin: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-form input[type="search"] {
  min-height: 52px;
  margin: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-form input[type="submit"] {
  min-width: 92px;
  min-height: 52px;
  align-self: end;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .block-system-main-block > h2 {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-results {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-results > header {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .search-results > li {
  margin: 0;
  padding: 0;
  border: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-result {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: center;
  min-height: 82px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--fst-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-result::before {
  content: "Материал";
  color: var(--fst-accent-text);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-result__kind {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--fst-accent-text);
  font: 700 9px/1.2 var(--fst-font-text);
  letter-spacing: .06em;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-result:has(.fst-search-result__kind)::before {
  content: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-result h3 {
  grid-column: 2;
  margin: 0;
  font: 700 15px/1.4 var(--fst-font-text);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-result .search-result__snippet {
  grid-column: 3;
  margin: 0;
  color: var(--fst-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-system-content .fst-search-result .search-result__info {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card h2 {
  margin: 10px 0 25px;
  font: 700 34px/1 var(--fst-font-sans);
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card--login .region-content,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card--login .block-system-main-block {
  display: contents;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card .user-login-form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card .form-item {
  margin: 17px 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card :where(input.form-control, input.form-text) {
  width: 100%;
  min-height: 52px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card .fst-telegram-login {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  margin: 0 12px 0 0;
  padding: 0 18px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card .form-actions {
  display: inline-flex;
  margin: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card .form-actions .btn {
  min-height: 44px;
  padding-inline: 24px;
}

/* Telegram keeps the official authorization iframe as the interactive layer,
 * while its visible control reuses the canonical primary button. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-telegram-connect-card {
  width: min(100%, 720px);
  margin: 54px auto 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-telegram-connect-card > p {
  max-width: 60ch;
  margin: 0;
  color: var(--fst-muted);
  line-height: 1.65;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-telegram-widget {
  display: block;
  margin: 28px 0 18px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-telegram-widget iframe {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border: 0 !important;
  border-radius: 999px;
  background: #54a9eb;
  clip-path: inset(0 round 999px);
  color-scheme: light;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-telegram-connect-card__note {
  color: var(--fst-muted) !important;
  font-size: 11px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-card--status > p:not(.fst-next-auth-card__eyebrow) {
  min-height: 78px;
  margin: 0 0 26px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-note {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 34px;
  margin-top: 28px;
  padding: 28px 34px;
  color: var(--fst-white);
  background: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-next-auth-note p {
  margin: 0;
  color: rgb(255 255 255 / 70%);
}

/* Event results and photo preview follow the approved full-page composition. */
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-featured .fst-event-result-track + .fst-event-result-track {
  margin-top: 0;
  border-top: 0;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-featured .fst-event-result-track + .fst-event-result-track > header {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-featured .fst-event-result-track > header {
  margin-bottom: 4px;
  padding: 13px 18px;
  color: var(--fst-white);
  background: var(--fst-ink);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-featured .fst-event-result-track > header span:empty {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-featured .fst-event-result-track > header h4 {
  color: var(--fst-white);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-summary > header {
  grid-column: 1 / -1;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-summary .fst-event-result-track,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-summary .fst-event-live__categories {
  display: contents;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-live__distance.is-summary .fst-event-result-track > header {
  display: none;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-scoreboard--summary {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-scoreboard--summary h5,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-results__summary-card strong {
  margin: 0;
  color: var(--fst-ink);
  font-size: .84rem;
  line-height: 1.25;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-scoreboard--summary span,
:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-results__summary-card span {
  margin-top: 7px;
  color: var(--fst-muted);
  font-size: .68rem;
  line-height: 1.3;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-results__summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-results__summary-card {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-event-scoreboard, .fst-event-results__summary-card, .fst-event-quick-results__grid article)[data-orgeo-category="4_Женщины"] {
  order: 1;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-event-scoreboard, .fst-event-results__summary-card, .fst-event-quick-results__grid article)[data-orgeo-category="4_Мужчины"] {
  order: 2;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-event-scoreboard, .fst-event-results__summary-card, .fst-event-quick-results__grid article)[data-orgeo-category="2_Девочки"] {
  order: 3;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-event-scoreboard, .fst-event-results__summary-card, .fst-event-quick-results__grid article)[data-orgeo-category="2_Девушки"] {
  order: 4;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-event-scoreboard, .fst-event-results__summary-card)[data-orgeo-category="2_Мальчики"] {
  order: 5;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) :is(.fst-event-scoreboard, .fst-event-results__summary-card)[data-orgeo-category="2_Юноши"] {
  order: 6;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-quick-results {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: end;
  margin: 34px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--fst-line);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-quick-results h2 {
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-quick-results__grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-quick-results__grid article {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid var(--fst-line);
  border-radius: var(--fst-radius-sm);
  background: var(--fst-surface-solid);
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-quick-results__grid strong {
  font-size: .78rem;
  line-height: 1.25;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-quick-results__grid span {
  margin-top: 6px;
  color: var(--fst-muted);
  font-size: .66rem;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-quick-results > a {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  color: var(--fst-accent-dark);
  font-size: .76rem;
  font-weight: 800;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-media .fst-event-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-media .fst-event-photo {
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 16 / 9;
  flex: none !important;
  border-radius: 2px;
}

:is(.theme-fstcho-next, .theme-fstcho-admin-next) .fst-event-media .fst-event-photo--lead {
  grid-column: auto;
  grid-row: auto;
}
