/* Triagem inicial — mantém a identidade azul-marinho + verde-petróleo do site. */

.area-card-interactive {
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.area-card-interactive > p {
  margin-bottom: 1.1rem;
}

.area-card-interactive .area-card-top,
.area-card-interactive h3,
.area-card-interactive p,
.area-card-interactive .area-card-cue {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.area-card-interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 58%, rgba(23, 107, 99, 0.09) 100%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.area-card-hit {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.area-card-hit:focus-visible {
  outline: 3px solid #8ed3ca;
  outline-offset: -5px;
}

.area-card-cue {
  position: relative !important;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0.035em;
}

.area-card-cue-arrow {
  flex: 0 0 auto;
  color: var(--petrol-600);
  font-size: 1.05rem;
  line-height: 1;
}

.area-card-interactive:hover::after,
.area-card-interactive:focus-within::after {
  opacity: 1;
}

body.triage-open {
  overflow: hidden;
}

.triage-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(5px);
}

.triage-dialog {
  position: fixed;
  z-index: 310;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(88dvh, 52rem);
  padding: 0 max(1rem, env(safe-area-inset-right)) calc(1.1rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-top: 1px solid rgba(248, 250, 252, 0.14);
  border-radius: 1.2rem 1.2rem 0 0;
  background: var(--navy-900);
  color: var(--white-soft);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.32);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.triage-dialog[hidden],
.triage-backdrop[hidden] {
  display: none;
}

.triage-handle {
  width: 2.8rem;
  height: 0.22rem;
  margin: 0.65rem auto 0.8rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.25);
}

.triage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0 1rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}

.triage-kicker {
  margin: 0 0 0.35rem;
  color: var(--petrol-600);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.triage-title {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 7vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.triage-close {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white-soft);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.triage-intro {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.9rem;
  line-height: 1.55;
}

.triage-options {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.triage-option {
  width: 100%;
  min-height: 4rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(248, 250, 252, 0.13);
  border-radius: 0.65rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  background: rgba(11, 20, 35, 0.7);
  color: var(--white-soft);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 100ms ease;
}

.triage-option:active {
  transform: scale(0.985);
}

.triage-option[aria-pressed="true"] {
  border-color: rgba(29, 123, 114, 0.95);
  background: rgba(23, 107, 99, 0.2);
}

.triage-option-number {
  color: var(--petrol-600);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.triage-option-label {
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.3;
}

.triage-option-check {
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(248, 250, 252, 0.22);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.72rem;
}

.triage-option[aria-pressed="true"] .triage-option-check {
  border-color: var(--petrol-600);
  background: var(--petrol-700);
  color: var(--white-soft);
}

.triage-footer {
  position: sticky;
  bottom: calc(-1.1rem - env(safe-area-inset-bottom));
  margin: 1rem -0.1rem 0;
  padding: 0.85rem 0.1rem calc(1.1rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(17, 29, 47, 0) 0%, var(--navy-900) 28%);
}

.triage-confirm {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--petrol-600);
  border-radius: 0.5rem;
  background: var(--petrol-700);
  color: var(--white-soft);
  font-weight: 800;
  cursor: pointer;
}

.triage-confirm:disabled {
  border-color: rgba(248, 250, 252, 0.13);
  background: rgba(248, 250, 252, 0.06);
  color: rgba(248, 250, 252, 0.4);
  cursor: not-allowed;
}

.triage-privacy {
  margin: 0.65rem 0 0;
  color: rgba(248, 250, 252, 0.48);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 44rem) {
  .triage-dialog {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(calc(100% - 3rem), 48rem);
    max-height: min(82dvh, 48rem);
    padding: 1.2rem 1.4rem 1.4rem;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 0.9rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  }

  .triage-handle {
    display: none;
  }

  .triage-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .triage-footer {
    position: static;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
  }

  .triage-confirm {
    width: auto;
    min-width: 13rem;
  }

  .triage-privacy {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .area-card-interactive::after,
  .triage-option {
    transition: none;
  }
}
