/* ===== TLModal (shared style) ===== */
.tl-overlay[hidden] {
  display: none !important;
}
.tl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999; /* above sticky header */
  display: grid;
  place-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(2px);
}



.tl-card {
  background: #161b22;
  color: #fff;
  width: min(560px, 92vw);
  border: 1px solid #ff8a3d;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
}

.tl-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

/* === Model Gallery Modal: ensure close button sits above carousel === */
#tlModelGalleryModal .tl-close {
  z-index: 10001;           /* higher than carousel stacking context */
  pointer-events: auto; /* guarantee reliable hit area */
}


/* === Lightbox Close Button === */
.tl-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1002; /* above backdrop and image */
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.tl-lightbox-close:focus {
  outline: 2px solid #ffcc00; /* match site focus color */
  outline-offset: 2px;
}

/* === Expand Image Button (below image, right aligned) === */
.carousel-slide .tl-lightbox-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: auto;          /* push to right when in a row */
  margin-top: 0.35rem;

  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;

  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;

  opacity: 0.6;
  cursor: pointer;

  transition:
    opacity 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover + keyboard focus state */
.carousel-slide .tl-lightbox-expand:hover,
.carousel-slide .tl-lightbox-expand:focus-visible {
  opacity: 1;
  border-color: #ff8a3d; /* THIRSTLOCK orange */
  box-shadow: 0 0 0 2px rgba(255, 138, 61, 0.35);
}

.carousel-slide .tl-lightbox-expand:focus-visible {
  outline: none;
}




.tl-title {
  margin: 0 0 0.5rem 0;
  font-family: "Sarpanch", sans-serif;
  font-size: 1.75rem;
  color: #ff8a3d;
}

.tl-body {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.tl-list {
  margin: 0.25rem 0 0.75rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.tl-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.tl-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}

.tl-btn:focus-visible {
  outline: 2px solid #ffb733;
  outline-offset: 2px;
}

.tl-primary {
  background: #ff8a3d;
  color: #1b2b34;
}
.tl-primary:hover {
  background: #ff8a3d;
  box-shadow: 0 0 10px #ff8a3d;
}

.tl-secondary {
  background: #1b2b34;
  color: #ff8a3d;
  border-color: #ff8a3d;
}
.tl-secondary:hover {
  background: #2a3b45;
  box-shadow: 0 0 10px #ff8a3d;
}

/* ===== TL Custom Guide Tabs ===== */

.tl-guide-body {
  margin-top: 0.5rem;
  padding-right: 0.25rem;     /* preserve spacing for scrollbar */
}


/* Tabs wrapper */
.tl-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Tab header row */
.tl-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 138, 61, 0.4);
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
  white-space: nowrap; /* keep row layout by default (desktop) */
}

/* Individual tab button */
.tl-tab-btn {
  background: #10151c;                 /* give tabs their own strip */
  border: 1px solid rgba(255, 138, 61, 0.3);
  border-bottom: 2px solid transparent;
  color: #e6e6e6;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.tl-tab-list {
  white-space: nowrap; /* keep all tabs on one line */
}


/* Hard kill any glow on tab hover */
.tl-tab-btn:hover {
  background-color: rgba(255, 138, 61, 0.16);
  box-shadow: none; /* make absolutely sure there's no glow */
}


/* No glow even when active + hovered */
.tl-tab-btn.is-active:hover {
  box-shadow: none;
}


/* Active tab — only orange border, no glow, no background change */
.tl-tab-btn.is-active {
  background: #10151c;      /* matches unselected tabs */
  border-color: #ff8a3d;    /* orange border = selected */
  color: #ffb733;           /* slightly brighter label */
}

/* Tabs never use box-shadow, period */
.tl-tab-btn,
.tl-tab-btn:hover,
.tl-tab-btn.is-active {
  box-shadow: none;
}




/* Panels container */
.tl-tab-panels {
  margin-top: 0.5rem;
}

/* Individual panel; hidden by default, shown when .is-active */
.tl-tab-panel {
  display: none;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tl-tab-panel.is-active {
  display: block;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}


/* Headings inside panels */
.tl-tab-heading {
  font-family: "Sarpanch", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: #ffb733;
}

.tl-subheading {
  font-weight: 700;
  margin: 0.6rem 0 0.35rem;
}

/* Lists inside panels */
.tl-tab-panel ul,
.tl-tab-panel ol {
  margin: 0.35rem 0 0.6rem 1.25rem;
  padding: 0;
}

.tl-tab-panel li {
  margin-bottom: 0.25rem;
}

/* Better spacing + hierarchy for section headings inside panels */
.tl-panel-section {
  margin-bottom: 1.4rem;   /* space between sections */
}

.tl-panel-heading {
  font-family: "Sarpanch", sans-serif;
  font-size: 1.25rem;      /* bigger and bolder */
  color: #ffb733;          /* gold/orange highlight */
  margin-bottom: 0.5rem;   /* space between heading and paragraph */
  margin-top: 0.2rem;
  line-height: 1.3;
}

.tl-panel-subheading {
  font-weight: 700;
  font-size: 1rem;
  margin: 0.6rem 0 0.35rem;
  color: #ffcc7a;          /* slight variation for hierarchy */
}

/* Optional: give paragraphs breathing room */
.tl-tab-panel p {
  margin-bottom: 0.6rem;
}

/* Optional: soften list spacing */
.tl-tab-panel li {
  margin-bottom: 0.4rem;
}

.tl-tab-panel p {
  margin-bottom: 1rem;   /* was 0.6rem — gives more breathing room */
}


.tl-tab-panel ul,
.tl-tab-panel ol {
  margin-bottom: 1rem;   /* extra space after lists */
}

.tl-tab-panel li {
  margin-bottom: 0.55rem;  /* clearer separation between list items */
}

/* ===== TL Custom Guide Tabs — Mobile Layout ===== */
@media (max-width: 520px) {
  .tl-tab-list {
    flex-direction: column;
    align-items: stretch;
    white-space: normal; /* allow wrapping inside each button label */
    gap: 0.35rem;
  }

  .tl-tab-btn {
    width: 100%;
    text-align: left;
    border-radius: 6px; /* no top-only rounding when stacked */
  }
}







