/* =========================================================
   Tropicaire Blvd – Site overrides
   Goal: minimal, calm, tropical (teal buttons + jumbo hero)
   ========================================================= */

/* Router "pill" selected state */
.pill.selected {
  border-color: var(--tb-teal) !important;
  background-color: var(--tb-teal-soft) !important;
  box-shadow: 0 0 0 .2rem rgba(47,164,169,.18) !important;
}

/* Router result area */
#routerResult { min-height: 72px; }

/* Ensure chat floats above other UI */
.tb-chat-btn, .tb-chat-modal { z-index: 1055; }

/* Base AI link styling (non-navbar) */
.tb-ai-link {
  color: var(--bs-primary);
  font-weight: 500;
  text-decoration: none;
  transition: text-shadow 0.15s ease-in-out;
}

.tb-ai-link:hover,
.tb-ai-link:focus {
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(13, 110, 253, 0.35);
}

/* Navbar AI button overrides */
.navbar .tb-ai-link {
  color: var(--bs-primary);
  text-decoration: none;
}

/* Slightly stronger glow in navbar */
.navbar .tb-ai-link:hover,
.navbar .tb-ai-link:focus {
  text-decoration: none;
  text-shadow: 0 0 6px rgba(13, 110, 253, 0.45);
}

/* AI icon sizing */
.tb-ai-icon {
  font-size: 2.15em;
  margin-right: 0.15em;
  vertical-align: -0.05em;
}

/* =========================================================
   Teal buttons everywhere (site-wide)
   This overrides Bootstrap button colors without changing theme files.
   ========================================================= */

:root {
  --tb-teal: #2fa4a9;
  --tb-teal-dark: #278f93;
  --tb-teal-soft: rgba(47,164,169,.18);
}

/* Primary buttons */
.btn-primary {
  background-color: var(--tb-teal) !important;
  border-color: var(--tb-teal) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--tb-teal-dark) !important;
  border-color: var(--tb-teal-dark) !important;
}

.btn-primary:active {
  background-color: var(--tb-teal-dark) !important;
  border-color: var(--tb-teal-dark) !important;
}

/* Outline primary buttons */
.btn-outline-primary {
  color: var(--tb-teal) !important;
  border-color: var(--tb-teal) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--tb-teal) !important;
  border-color: var(--tb-teal) !important;
  color: #fff !important;
}

.btn-outline-primary:active {
  background-color: var(--tb-teal-dark) !important;
  border-color: var(--tb-teal-dark) !important;
  color: #fff !important;
}

/* Links that use primary color (optional: makes site feel consistent) */
a {
  color: var(--tb-teal);
}

a:hover {
  color: var(--tb-teal-dark);
}

/* Accordion active header tint (subtle) */
.accordion-button:not(.collapsed) {
  color: #0b3b3d;
  background-color: rgba(47,164,169,.10);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.075);
}

/* Alerts: keep Bootstrap structure, just nudge the "primary" tone to teal */
.alert-primary {
  color: #0b3b3d;
  background-color: rgba(47,164,169,.12);
  border-color: rgba(47,164,169,.22);
}

/* =========================================================
   Jumbo hero (index)
   ========================================================= */

/* If you later add a real image, just swap background-image url() below */
.tb-hero {
  position: relative;
  min-height: 328;
  display: flex;
  align-items: flex-end;

  /* Photo hero */
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.15),
      rgba(0,0,0,.45)
    ),
    url("/assets/hero.jpg") center / cover no-repeat;

  border-bottom: 1px solid rgba(0,0,0,.08);
}

.tb-hero {
  min-height: 328px;
  height: 45vh;
  max-height: 360px;
}

.tb-hero-overlay {
  padding: 32px 0 36px 0;
}

.tb-hero-box {
  max-width: 720px;
}

.tb-hero-kicker {
  font-size: 0.95rem;
  color: rgba(108,117,125,1);
  font-weight: 600;
  letter-spacing: .2px;
}

.tb-hero-title {
  font-weight: 850;
  letter-spacing: -0.6px;
  margin: 0.25rem 0 0.5rem 0;
}

.tb-hero-sub {
  color: rgba(108,117,125,1);
  margin: 0;
}

/* Mobile tuning */
@media (max-width: 575.98px) {
  .tb-hero { min-height: 300px; }
  .tb-hero-overlay { padding: 26px 0 30px 0; }
}

/* =========================================================
   Mobile fix: Ask AI icon
   ========================================================= */

@media (max-width: 575.98px) {
  .tb-ai-icon {
    font-size: 1.4em;       /* smaller, less shouty */
    margin-right: 0.1em;
    vertical-align: -0.05em;
    filter: none;           /* remove glow on mobile */
  }

  .navbar .tb-ai-link {
    font-size: 0.95rem;     /* matches other nav links */
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .tb-ai-icon {
    display: none;
  }
}

/* =========================================================
   /help flow: make the form feel like an optional next step
   ========================================================= */

.tb-step-bridge {
  margin-bottom: 1rem;
}

/* De-emphasize the form card (still visible, just calmer) */
.tb-soft-card {
  border-color: rgba(0,0,0,.08);
  background: rgba(248,249,250,.7);
}

.tb-soft-card .card-body {
  background: rgba(255,255,255,.65);
  border-radius: 14px;
}

/* router.js uses .muted — give it a consistent Bootstrap-like look */
.muted {
  color: var(--bs-secondary-color, rgba(108,117,125,1));
  font-size: 0.95em;
}

/* router.js sponsor card uses .button / .button.primary — style like Bootstrap buttons */
.button {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.12);
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.7);
}

.button:hover {
  filter: brightness(0.98);
  text-decoration: none;
}

.button.primary {
  background: var(--tb-teal, #2fa4a9);
  border-color: var(--tb-teal, #2fa4a9);
  color: #fff;
}

/* Vanilla modal */
.tb-modal[hidden] { display: none !important; }
.tb-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.tb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.tb-modal__dialog {
  position: relative;
  margin: 0;
  max-width: 360px;
  width: calc(100% - 2rem);
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.75rem 0.9rem;
}

.tb-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tb-modal__title {
  font-size: 1rem;
  margin: 0;
}

.tb-modal__close {
  opacity: 0.7;
}
.tb-modal__close:hover {
  opacity: 1;
}

/* Sponsors FAQ (no Bootstrap JS) */
.tb-faq { display: grid; gap: .75rem; }

.tb-faq-item {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.tb-faq-q {
  cursor: pointer;
  list-style: none;
  padding: .85rem 1rem;
  font-weight: 600;
}

.tb-faq-q::-webkit-details-marker { display: none; }

.tb-faq-item[open] .tb-faq-q {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.tb-faq-a {
  padding: .85rem 1rem 1rem;
  color: rgba(0,0,0,.7);
  font-size: .95rem;
}

/* Footer links (anchors + buttons) */
.footer-link {
  background: none;
  border: none;
  padding: 0;

  color: var(--bs-body-color);
  text-decoration: none;
  cursor: pointer;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Ask AI emphasis */
.footer-ai-link {
  font-weight: 500;
}


.faq-item { border-bottom: 1px solid rgba(0,0,0,.08); padding: .5rem 0; }
.faq-q { cursor: pointer; font-weight: 600; }
.faq-a { padding: .5rem 0 0 0; }
.faq-item[open] .faq-q { opacity: .9; }

.sc-side {
  background: var(--sc-panel);
  border-right: 1px solid var(--sc-border);
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 0;              /* ✅ IMPORTANT for scroll in flex children */
}

.sc-convos {
  padding: 10px;
  overflow: auto;
  flex: 1;
  min-height: 0;              /* ✅ IMPORTANT for scroll in flex children */
}

.sc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;   /* ✅ critical for scroll inside flex */
}

.sc-chat {
  flex: 1 1 auto;        /* ✅ allow it to grow */
  min-height: 0;         /* ✅ critical for flex scrolling */
  overflow-y: auto;      /* vertical scroll only */
  padding: 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,.01), rgba(0,0,0,.03));
}
/* --- brand.json hero tokens (appended by tools/render.py) --- */
:root{
  --tb-hero-glow-1: rgba(13,110,253,.10);
  --tb-hero-glow-2: rgba(32,201,151,.08);
  --tb-hero-base: #f8f9fa;
}
