/**
 * Studio composition layer for evergreen public pages.
 * Loaded after page-2627.css. Stage chrome + index/table language live here.
 * Masthead titles and open editorial composition: sc-public-fidelity.css.
 */

body.sc-public-page {
  --sc-studio-rule: rgba(126, 177, 226, 0.2);
  --sc-studio-rule-strong: rgba(126, 177, 226, 0.34);
  --sc-studio-ink: #f4f8fc;
  --sc-studio-muted: #aebbc9;
}

/* Fallback stage chrome; masthead stage overrides live in sc-public-fidelity.css. */
body.sc-public-page .sc-page-stage {
  width: 100%;
  max-width: var(--sc-landing-max);
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  padding: 0 0 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--sc-editorial-green);
  border-bottom: 1px solid rgba(126, 177, 226, 0.22);
  font-family: var(--sc-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  box-sizing: border-box;
}

body.sc-public-page .sc-page-stage__label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

body.sc-public-page .sc-page-stage__label::before {
  display: none;
}

body.sc-public-page .sc-page-stage__meta {
  color: #7f90a3;
  letter-spacing: 0.09em;
}

body.sc-public-page .sc-page-stage__meta span {
  margin-left: 0.65rem;
  color: var(--sc-brand-yellow);
}

body.sc-public-page .sc-page-stage__index {
  display: none;
}

/* Views and search results should scan like an index, not a stack of cards. */
body.sc-public-page .view:not(.view-press-materials),
body.sc-public-page :is(.search-results, ol.search-results) {
  border-radius: 0;
}

body.sc-public-page .view:not(.view-press-materials) .view-content,
body.sc-public-page :is(.search-results, ol.search-results) {
  border-top: 1px solid var(--sc-studio-rule-strong);
}

body.sc-public-page .view:not(.view-press-materials) .views-row,
body.sc-public-page :is(.search-results, ol.search-results) > li {
  margin: 0;
  padding: 1.1rem 0;
  border: 0;
  border-bottom: 1px solid var(--sc-studio-rule);
  background: transparent;
  transition: padding 0.18s ease, background-color 0.18s ease;
}

body.sc-public-page .view:not(.view-press-materials) .views-row:hover,
body.sc-public-page :is(.search-results, ol.search-results) > li:hover {
  padding-inline: 0.8rem;
  background: linear-gradient(90deg, rgba(8, 125, 231, 0.08), transparent 86%);
}

body.sc-public-page :is(table, .table) {
  margin-top: 1rem;
  border-collapse: collapse;
  background: transparent;
}

body.sc-public-page :is(table, .table) thead th {
  font-family: var(--sc-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.sc-public-page :is(table, .table) tbody tr {
  transition: background-color 0.16s ease;
}

body.sc-public-page :is(table, .table) tbody tr:hover {
  background: rgba(8, 125, 231, 0.07);
}

body.sc-public-page :is(table, .table) > :not(caption) > * > * {
  color: #b8c5d3;
  background-color: transparent;
}

body.sc-public-page :is(table, .table) tbody a {
  color: #e8eef5;
  text-decoration-color: color-mix(in srgb, var(--sc-editorial-green) 50%, transparent);
  text-underline-offset: 0.2em;
}

body.sc-public-page :is(table, .table) tbody a:hover,
body.sc-public-page :is(table, .table) tbody a:focus-visible {
  color: var(--sc-brand-yellow);
  text-decoration-color: currentColor;
}

body.sc-public-page :is(.pager, .pagination) {
  padding-top: 1rem;
  border-top: 1px solid var(--sc-studio-rule);
}

@media (max-width: 767px) {
  body.sc-public-page .sc-page-stage {
    margin-top: 1.25rem;
    font-size: 0.62rem;
  }

  body.sc-public-page .sc-page-stage__meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sc-public-page .view .views-row,
  body.sc-public-page :is(.search-results, ol.search-results) > li,
  body.sc-public-page :is(table, .table) tbody tr {
    transition: none;
  }
}
