.ref-wrap {
  max-width: 880px;
}

.ref-page h1 {
  margin: 0 0 16px;
  color: var(--wine);
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.05;
}

.ref-wrap .signup-lead {
  max-width: 60ch;
}

.ref-campaigns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.ref-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3.8vw, 28px);
  border: 1px solid #9c7c5b55;
  border-radius: 16px;
  background: #fffaf1;
}

.ref-card p {
  margin: 0;
}

.ref-audience {
  color: var(--wine);
  font-size: .9rem;
  font-weight: 700;
}

.ref-page .ref-card h2,
.ref-page .ref-section h2,
.ref-page .ref-form h2,
.ref-page .ind-regulamento h2 {
  margin: 0 0 .4em;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -.035em;
}

.ref-card .ref-action {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.ref-caption {
  margin: 14px 0 28px;
  color: #59473c;
  font-size: .94rem;
}

.ref-campanha {
  display: grid;
  min-inline-size: 0;
  margin: 0;
  padding: 12px 16px;
  gap: 10px;
  border: 1px solid #9c7c5b55;
  border-radius: 8px;
}

.ref-campanha legend {
  padding: 0 4px;
  font-weight: 700;
}

.ref-form {
  min-width: 0;
  scroll-margin-top: 16px;
}

.ref-form .ref-tvde[hidden],
.ref-form .ref-salao[hidden],
.ref-native-status:not(:target) {
  display: none;
}

@supports selector(:has(*)) {
  .ref-campanha:not(:has([value="tvde"]:checked)) .ref-tvde,
  .ref-campanha:not(:has([value="salao"]:checked)) .ref-salao {
    display: none;
  }
}

.ref-section {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #9c7c5b55;
}

.ref-section p {
  max-width: 76ch;
  margin: 10px 0;
}

.ref-features {
  padding-left: 22px;
}

.ref-features li {
  margin-bottom: 8px;
}

.ref-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.ref-section a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ref-section details {
  padding: 12px 0;
  border-bottom: 1px solid #9c7c5b55;
}

.ref-section summary {
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 670px) {
  .ref-campaigns {
    grid-template-columns: 1fr;
  }
}
