/* Focused UI corrections for Clase D, Contact and the primary navigation. */

/* The component declares display:grid, so the native hidden attribute needs
   an explicit higher-specificity rule. */
.clase-d-loading[hidden],
[data-clase-d-root][hidden]{
  display:none!important;
}

/* Formulas are learning feedback, not pre-answer hints. The formula inside
   .clase-d-feedback remains visible after the response is checked. */
.clase-d-question-card > .clase-d-formula{
  display:none!important;
}

.clase-d-hero-actions,
.clase-d-toolbar-actions,
.clase-d-quiz-actions-group{
  align-items:stretch;
}

.clase-d-hero-actions .btn,
.clase-d-toolbar-actions .clase-d-button,
.clase-d-quiz-actions-group .clase-d-button{
  min-height:48px;
}

.clase-d-quiz-actions{
  padding:14px;
  border:1px solid #dce6ee;
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 12px 30px rgba(15,35,55,.07);
}

.clase-d-quiz-actions-group:last-child{
  justify-content:flex-end;
}

/* Premium CTA with a visible, compact beta status. */
.nav-private-cta{
  position:relative;
  gap:8px!important;
}

.nav-beta-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:2px 7px;
  border:1px solid rgba(74,222,128,.38);
  border-radius:999px;
  background:rgba(34,197,94,.16);
  color:#86efac;
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
}

/* Contact page: separate contact channels from descriptive copy. */
.contact-intro{
  display:grid;
  align-content:start;
  gap:18px;
}

.contact-channels{
  display:grid;
  gap:12px;
  margin-top:6px;
}

.contact-channel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:17px 18px;
  border:1px solid #dbe6ee;
  border-radius:17px;
  background:#fff;
  color:#17344c;
  box-shadow:0 12px 30px rgba(15,35,55,.05);
}

.contact-channel-copy{
  min-width:0;
}

.contact-channel-copy strong,
.contact-channel-copy span{
  display:block;
}

.contact-channel-copy span{
  margin-top:4px;
  color:#60778b;
  font-size:14px;
  overflow-wrap:anywhere;
}

.contact-channel .btn{
  flex:0 0 auto;
  min-width:150px;
  min-height:46px;
}

/* Secondary links sit on a white contact card, not the dark site canvas. */
.contact-channel .btn.secondary{
  color:#17344c;
  border-color:#8295a6;
}

.contact-channel .btn.secondary:hover{
  color:#17344c;
  border-color:#17344c;
  background:#edf3f8;
}

/* Small help text still needs AA contrast against the dark search canvas. */
.search-tip{
  color:#7891aa;
}

.btn.whatsapp{
  border-color:#16a34a;
  background:linear-gradient(135deg,#16a34a,#15803d);
  color:#fff;
  box-shadow:0 11px 24px rgba(22,163,74,.22);
}

.btn.whatsapp:hover{
  border-color:#15803d;
  background:linear-gradient(135deg,#15803d,#166534);
}

.contact form .btn[type="submit"]{
  width:100%;
  min-height:48px;
}

@media(max-width:820px){
  .clase-d-quiz-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .clase-d-quiz-actions-group,
  .clase-d-quiz-actions-group:last-child{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    justify-content:stretch;
  }

  .clase-d-quiz-actions-group .clase-d-button{
    width:100%;
  }

  .mobile-menu-actions .nav-private-cta{
    display:flex;
    justify-content:center;
  }
}

@media(max-width:620px){
  .clase-d-hero-actions,
  .clase-d-toolbar-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .clase-d-hero-actions .btn,
  .clase-d-toolbar-actions .clase-d-button{
    width:100%;
  }

  .clase-d-quiz-actions-group,
  .clase-d-quiz-actions-group:last-child{
    grid-template-columns:1fr;
  }

  .contact-channel{
    align-items:stretch;
    flex-direction:column;
  }

  .contact-channel .btn{
    width:100%;
    min-width:0;
  }
}
