/* ================================================================
   Ask About Tyler — embeddable Q&A module
   Depends on CSS custom properties defined in the host page :root
   ================================================================ */

.aat-module {
  padding-bottom: 80px;
}

/* ---- Header ---- */

.aat-header {
  padding: 32px 0 40px;
  border-top: 1px solid var(--navy-line);
}

.aat-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 6px;
}

.aat-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--white-32);
}

/* ---- Category ---- */

.aat-category {
  margin-bottom: 36px;
}

.aat-category-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  opacity: 0.6;
  margin-bottom: 12px;
}

/* ---- Chips ---- */

.aat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.aat-chip {
  appearance: none;
  background: rgba(13, 27, 62, 0.45);
  border: 1px solid var(--navy-line);
  cursor: pointer;

  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--white-60);
  text-align: left;

  padding: 9px 14px;
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.aat-chip:hover {
  color: var(--white);
  border-color: rgba(69, 184, 232, 0.28);
  background: rgba(13, 27, 62, 0.65);
}

.aat-chip[aria-expanded="true"] {
  color: var(--blue-bright);
  border-color: rgba(69, 184, 232, 0.45);
  background: rgba(69, 184, 232, 0.07);
}

.aat-chip:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

/* ---- Answer panels ---- */

.aat-panel {
  display: none;
  flex: 0 0 100%;
  height: 0;
  overflow: hidden;
  transition: height 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .aat-panel { transition: none; }
}

.aat-panel-inner {
  padding: 18px 20px 20px;
  margin-top: 4px;
  background: rgba(13, 27, 62, 0.35);
  border: 1px solid var(--navy-line);
  border-left: 2px solid rgba(69, 184, 232, 0.28);
}

.aat-panel-inner p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-60);
  max-width: 70ch;
}

.aat-panel-inner p + p {
  margin-top: 14px;
}

/* ---- Error state ---- */

.aat-empty {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white-22);
  padding: 32px 0;
}

/* ---- Mobile ---- */

@media (max-width: 480px) {
  .aat-chip {
    font-size: 13px;
    padding: 8px 12px;
  }

  .aat-panel-inner {
    padding: 14px 16px 16px;
  }

  .aat-module {
    padding-bottom: 48px;
  }
}
