/* Public entry pages: an extension of the General Body visual language. */

body.tv-shell.tv-public-page {
  background: var(--sv-bg);
  color: var(--sv-text);
  font-family: var(--sv-font-body);
}

.tv-public-main {
  max-width: 1240px;
  margin-inline: auto;
}

.tv-public-main--form {
  max-width: 980px;
}

.tv-public-page .tv-breadcrumb {
  display: none;
}

.tv-public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: end;
  margin-bottom: 0;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--sv-border);
}

.tv-public-hero--single {
  grid-template-columns: minmax(0, 1fr);
}

.tv-public-hero--single > div {
  max-width: 820px;
}

.tv-public-hero .tv-page-eyebrow,
.tv-public-kicker,
.tv-public-label {
  margin: 0 0 10px;
  color: var(--sv-teal-bright);
  font-family: var(--sv-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tv-public-hero .tv-page-title {
  max-width: 14ch;
  margin-bottom: 16px;
  color: var(--sv-text-strong);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.tv-public-hero--compact .tv-page-title {
  max-width: 15ch;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.tv-public-hero .tv-page-sub {
  max-width: 64ch;
  margin: 0;
  color: var(--sv-text-dim);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.tv-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tv-public-aside {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--sv-border);
  border-left: 3px solid var(--sv-maroon-bright);
  border-radius: var(--sv-radius);
  background: var(--sv-card);
}

.tv-public-aside p:last-child {
  margin: 0;
  color: var(--sv-text-dim);
  font-size: 13px;
  line-height: 1.65;
}

.tv-public-stack {
  margin-top: clamp(38px, 6vw, 64px);
}

.tv-join-page .tv-public-stack,
.tv-public-stack--form {
  margin-top: clamp(28px, 4vw, 40px);
}

.tv-public-stack > * + * {
  margin-top: clamp(52px, 7vw, 84px);
}

.tv-public-section {
  min-width: 0;
}

.tv-public-section-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sv-border);
}

.tv-public-section-head--single {
  grid-template-columns: minmax(0, 1fr);
}

.tv-public-section-head--single .tv-public-section-title {
  max-width: none;
}

.tv-public-section-title {
  max-width: 24ch;
  margin: 0;
  color: var(--sv-text-strong);
  font-family: var(--sv-font-h);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.tv-public-section-copy {
  max-width: 66ch;
  margin: 10px 0 0;
  color: var(--sv-text-dim);
  font-size: 14px;
  line-height: 1.65;
}

.tv-public-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tv-public-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  background: var(--sv-card);
}

.tv-public-card--signal {
  position: relative;
}

.tv-public-card--signal::before {
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 3px;
  border-radius: var(--sv-radius) 0 0 var(--sv-radius);
  background: var(--sv-teal);
  content: "";
}

.tv-public-card h3 {
  margin: 0 0 8px;
  color: var(--sv-text-strong);
  font-family: var(--sv-font-h);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.tv-public-card p,
.tv-public-card li {
  color: var(--sv-text-dim);
  font-size: 13px;
  line-height: 1.65;
}

.tv-public-card p {
  margin: 0;
}

.tv-public-card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
}

.tv-public-card .tv-public-card-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--sv-border);
  color: var(--sv-text-mid);
  font-family: var(--sv-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
}

.tv-public-card .tv-core-submission-feedback {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--sv-green) 38%, transparent);
  border-radius: var(--sv-radius-sm);
  background: color-mix(in srgb, var(--sv-green) 8%, transparent);
  color: var(--sv-green);
  font-size: 12px;
  line-height: 1.55;
}

.tv-public-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.tv-public-link {
  color: var(--sv-teal-bright);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tv-public-link:hover {
  color: var(--sv-text-strong);
}

.tv-public-link:focus-visible {
  outline: 3px solid var(--sv-teal-bright);
  outline-offset: 3px;
}

.tv-public-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  background: var(--sv-card);
}

.tv-public-cta h2 {
  margin: 0;
  color: var(--sv-text-strong);
  font-family: var(--sv-font-h);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.tv-public-cta p {
  max-width: 65ch;
  margin: 8px 0 0;
  color: var(--sv-text-dim);
  font-size: 13px;
  line-height: 1.65;
}

/* Event rows keep dates structural instead of turning every item into a card. */
.tv-event-feature {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--sv-border);
  border-left: 3px solid var(--sv-maroon-bright);
  border-radius: var(--sv-radius);
  background: var(--sv-card);
}

.tv-event-feature-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--sv-border);
  background: var(--sv-bg-soft);
  color: var(--sv-text-dim);
  font-family: var(--sv-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tv-event-feature-date strong {
  color: var(--sv-text-strong);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.tv-event-feature-copy {
  min-width: 0;
  padding: 24px;
}

.tv-event-feature-copy h2 {
  max-width: 28ch;
  margin: 0 0 10px;
  color: var(--sv-text-strong);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.tv-event-feature-copy > p:not(.tv-public-label) {
  max-width: 68ch;
  margin: 0;
  color: var(--sv-text-dim);
  font-size: 14px;
  line-height: 1.65;
}

.tv-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--sv-border);
  color: var(--sv-text-mid);
  font-size: 12px;
  line-height: 1.55;
  list-style: none;
}

.tv-event-ledger {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sv-border-strong);
  list-style: none;
}

.tv-event-entry {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--sv-border);
}

.tv-event-date {
  color: var(--sv-teal-bright);
  font-family: var(--sv-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
}

.tv-event-entry h3 {
  margin: 0 0 6px;
  color: var(--sv-text-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.tv-event-entry p {
  max-width: 68ch;
  margin: 0;
  color: var(--sv-text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.tv-event-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--sv-green);
  font-family: var(--sv-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-event-status--pending {
  color: var(--sv-amber);
}

/* Homepage sponsor proof reads as one composed band, not another card grid. */
.tv-home-sponsor-showcase {
  overflow: hidden;
  border: 1px solid var(--sv-border);
  border-radius: calc(var(--sv-radius) + 2px);
  background: var(--sv-card);
}

.tv-home-sponsor-head {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 32px);
}

.tv-home-sponsor-head .tv-public-kicker {
  margin-bottom: 8px;
}

.tv-home-sponsor-more {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

.tv-home-sponsor-band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sv-border);
  background: var(--sv-border);
  list-style: none;
}

.tv-home-sponsor-band li {
  min-width: 0;
  background: var(--sv-card);
}

.tv-home-sponsor-item--partner {
  grid-column: span 4;
}

.tv-home-sponsor-item--associate {
  grid-column: span 3;
}

.tv-home-sponsor-link {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 124px;
  align-items: center;
  justify-content: center;
  padding: 20px clamp(14px, 1.8vw, 24px);
  background: var(--sv-card);
  text-decoration: none;
  transition: background-color var(--sv-tx);
}

.tv-home-sponsor-link:hover {
  background: rgba(255, 255, 255, 0.025);
}

.tv-home-sponsor-link:focus-visible {
  z-index: 1;
  outline: 3px solid var(--sv-teal-bright);
  outline-offset: -4px;
}

.tv-home-sponsor-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  transition: transform var(--sv-tx);
}

.tv-home-sponsor-link:hover img {
  transform: translateY(-1px);
}

.tv-home-sponsor-link--hrt img {
  width: min(108px, 100%);
  max-height: 64px;
}

.tv-home-sponsor-link--peak6 img { width: min(172px, 100%); }
.tv-home-sponsor-link--virtu img {
  width: min(184px, 100%);
  max-height: 56px;
}
.tv-home-sponsor-link--jane-street img {
  width: min(166px, 100%);
  filter: brightness(1.5);
}
.tv-home-sponsor-link--citadel img { width: min(196px, 100%); }
.tv-home-sponsor-link--squarepoint img { width: min(170px, 100%); }
.tv-home-sponsor-link--quadrature img { width: min(188px, 100%); }

@media (max-width: 1100px) {
  .tv-home-sponsor-link {
    min-height: 112px;
  }
}

/* Official sponsor artwork remains the content; no duplicate name labels. */
.tv-sponsor-tier + .tv-sponsor-tier {
  margin-top: 32px;
}

.tv-sponsor-tier-title {
  margin: 0 0 12px;
  color: var(--sv-text-dim);
  font-family: var(--sv-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tv-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tv-sponsor-grid--partner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv-sponsor-grid--associate {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tv-sponsor-grid--all {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tv-sponsor-logo {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 142px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  background: var(--sv-card);
  text-decoration: none;
  transition: border-color var(--sv-tx), transform var(--sv-tx);
}

.tv-sponsor-logo:hover {
  border-color: var(--sv-border-strong);
  transform: translateY(-2px);
}

.tv-sponsor-logo:focus-visible {
  border-color: var(--sv-teal-bright);
  outline: 3px solid var(--sv-teal-bright);
  outline-offset: 3px;
}

.tv-sponsor-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 310px);
  max-height: 74px;
  object-fit: contain;
}

.tv-sponsor-logo--compact {
  min-height: 112px;
  padding: 18px;
}

.tv-sponsor-logo--compact img {
  max-height: 54px;
}

.tv-sponsor-logo--hrt img {
  max-height: 86px;
}

.tv-sponsor-logo--peak6 img,
.tv-sponsor-logo--virtu img,
.tv-sponsor-logo--citadel img,
.tv-sponsor-logo--squarepoint img,
.tv-sponsor-logo--quadrature img {
  max-height: 54px;
}
.tv-sponsor-logo--virtu img { width: min(248px, 100%); }
.tv-sponsor-logo--quadrature img { width: min(220px, 100%); }

.tv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tv-chip-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-sm);
  color: var(--sv-text-dim);
  font-family: var(--sv-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The General Body form is a focused child page within the Join journey. */
.tv-application-back {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
}

.tv-join-form {
  max-width: 940px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--sv-border);
  border-left: 3px solid var(--sv-teal);
  border-radius: var(--sv-radius);
  background: var(--sv-card);
}

.tv-join-form-group {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tv-join-form-group + .tv-join-form-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sv-border);
}

.tv-join-form-legend {
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  color: var(--sv-text-strong);
  font-family: var(--sv-font-h);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.tv-join-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tv-join-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv-join-form .tv-field {
  gap: 7px;
  min-width: 0;
}

.tv-join-form .tv-label {
  color: var(--sv-text-mid);
}

.tv-required-mark {
  color: var(--sv-teal-bright);
}

.tv-label-note,
.tv-field-help,
.tv-join-form-note {
  color: var(--sv-text-dim);
  font-family: var(--sv-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tv-label-note {
  margin-left: 6px;
}

.tv-join-form-footer {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sv-border);
}

.tv-join-form-note {
  margin: 0;
}

.tv-join-form-feedback {
  min-height: 1.55em;
  margin-top: 8px;
  color: var(--sv-text-mid);
  font-size: 13px;
  line-height: 1.55;
}

.tv-join-form-feedback.is-success {
  color: var(--sv-green);
}

.tv-join-form-feedback.is-error {
  color: var(--sv-red);
}

.tv-join-form[aria-busy="true"] .tv-input,
.tv-join-form[aria-busy="true"] .tv-select,
.tv-join-form[aria-busy="true"] .tv-textarea {
  opacity: 0.72;
}

.tv-join-form .tv-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 900px) {
  .tv-public-hero,
  .tv-public-section-head,
  .tv-public-cta {
    grid-template-columns: 1fr;
  }

  .tv-public-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tv-join-form-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-sponsor-grid--associate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-sponsor-grid--associate .tv-sponsor-logo:last-child {
    grid-column: auto;
    width: 100%;
  }

  .tv-sponsor-grid--all {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-sponsor-grid--all .tv-sponsor-logo:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .tv-public-hero {
    gap: 24px;
    padding-bottom: 24px;
  }

  .tv-public-hero .tv-page-title,
  .tv-public-hero--compact .tv-page-title {
    max-width: 100%;
    font-size: clamp(2.5rem, 13vw, 3.65rem);
  }

  .tv-public-actions,
  .tv-public-actions .tv-btn,
  .tv-public-cta .tv-btn {
    width: 100%;
  }

  .tv-public-section-head {
    gap: 6px;
  }

  .tv-home-sponsor-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 22px;
  }

  .tv-home-sponsor-band {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tv-home-sponsor-item--partner {
    grid-column: span 2;
  }

  .tv-home-sponsor-item--associate {
    grid-column: span 3;
  }

  .tv-home-sponsor-link {
    min-height: 98px;
    padding: 16px;
  }

  .tv-public-card-grid,
  .tv-event-feature,
  .tv-event-entry,
  .tv-join-form-grid,
  .tv-join-form-grid--three,
  .tv-sponsor-grid,
  .tv-sponsor-grid--partner,
  .tv-sponsor-grid--associate,
  .tv-sponsor-grid--all {
    grid-template-columns: 1fr;
  }

  .tv-event-feature-date {
    border-right: 0;
    border-bottom: 1px solid var(--sv-border);
  }

  .tv-event-entry {
    gap: 10px;
  }

  .tv-event-entry > .tv-public-link {
    margin-top: 4px;
  }

  .tv-sponsor-grid--associate .tv-sponsor-logo:last-child,
  .tv-sponsor-grid--all .tv-sponsor-logo:last-child {
    grid-column: auto;
    width: 100%;
  }

  .tv-sponsor-logo {
    min-height: 124px;
    padding: 20px;
  }

  .tv-join-form {
    padding: 18px;
  }

  .tv-join-form-footer {
    display: grid;
    gap: 14px;
  }

  .tv-join-form-footer .tv-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tv-home-sponsor-band {
    grid-template-columns: 1fr;
  }

  .tv-home-sponsor-item--partner,
  .tv-home-sponsor-item--associate {
    grid-column: 1;
  }

  .tv-home-sponsor-link {
    min-height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-sponsor-logo,
  .tv-home-sponsor-link,
  .tv-home-sponsor-link img {
    transition: none;
  }
}
