/* FireWatchPro — subscriber gate styles
   Layered over static/site.css. Never inlined in HTML so cache/versioning stays clean. */

.gated-wrap { position: relative; }

/* Training curriculum tables — gated rows blur + fade to keep the teaser row visible */
.gated-wrap .gated-row td {
  filter: blur(6px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}

/* Overlay panel sitting over the gated rows in the training tables */
.gated-wrap .gate-overlay {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  background: #FFFFFF;
  color: var(--ink, #201E1D);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20,20,25,0.22), 0 2px 6px rgba(20,20,25,0.08);
  padding: 22px 24px;
  text-align: center;
  z-index: 3;
}

.gated-wrap .gate-overlay h4 {
  margin: 8px 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink, #201E1D);
}

.gated-wrap .gate-overlay p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a4744;
}

.gate-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(193, 21, 39, 0.10);
  color: var(--crimson, #C11527);
  margin-bottom: 4px;
}

.gate-overlay .cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* AHJ database — full-panel gate (bigger + list of what's inside) */
.gate-overlay.ahj-gate {
  bottom: auto;
  top: 40%;
  transform: translate(-50%, -40%);
  width: min(640px, calc(100% - 24px));
  padding: 28px 32px;
  text-align: left;
}

.gate-overlay.ahj-gate .gate-lock { margin: 0 auto 10px; display: flex; }

.gate-overlay.ahj-gate h4 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.gate-overlay.ahj-gate > p { text-align: center; }

.gate-bullets {
  margin: 8px 0 18px;
  padding-left: 20px;
  color: #4a4744;
  font-size: 0.92rem;
  line-height: 1.55;
}

.gate-bullets li { margin: 4px 0; }

.gate-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  color: #6b6864;
}

.gate-note a { color: var(--crimson, #C11527); font-weight: 600; }

/* AHJ preview note */
.ahj-preview-note {
  margin: 12px 0 8px;
  font-size: 0.92rem;
  color: #6b6864;
  font-style: italic;
}

/* AHJ locked cells — visible placeholders with lock glyph */
.ahj-locked {
  color: #a29d97 !important;
  background: repeating-linear-gradient(
    135deg,
    rgba(0,0,0,0.02) 0 8px,
    rgba(0,0,0,0.06) 8px 16px
  );
  font-size: 0.88rem;
  user-select: none;
}

.lock-inline {
  display: inline-block;
  margin-right: 4px;
  filter: grayscale(1);
  opacity: 0.75;
}

/* Disabled AHJ search input in preview mode */
#ahjSearch:disabled {
  background: #f4f2f0;
  cursor: not-allowed;
  color: #8f8b86;
}

/* Blur the AHJ preview rows softly so the layout is legible but detail unreadable */
[data-gated="ahj"] tbody tr td.ahj-locked {
  filter: blur(0.5px);
}

/* Ensure the AHJ table container is tall enough for the overlay to sit centered */
[data-gated="ahj"] { min-height: 520px; }

/* Region filter buttons in preview mode: keep visible but non-interactive */
.ahj-controls .ahj-filter { cursor: not-allowed; opacity: 0.75; }
.ahj-controls .ahj-filter.active { opacity: 1; cursor: default; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .gated-wrap .gate-overlay { padding: 18px 18px; }
  .gate-overlay.ahj-gate { padding: 20px 20px; top: 30%; transform: translate(-50%, -30%); }
  .gate-bullets { font-size: 0.88rem; }
}
