/**
 * Shared calculator, FAQ, and resource card styles.
 *
 * These styles are duplicated as inline <style> blocks across 13+ templates
 * (AB 1482 calculator, city rent-control pages, rate relief, compliance check,
 * rent estimate, rent credit reporting, move-in checklist, etc.).
 *
 * Extracting them here reduces HTML payload by ~2-4 KB per page and allows
 * the browser to cache the stylesheet across navigations.
 *
 * NOTE: The inline <style> blocks in the templates have NOT been removed yet.
 * This file is loaded globally so that when we do remove them (future pass),
 * the styles are already available. Duplicate CSS declarations are harmless —
 * the last-declared rule wins (identical here), so there is no visual change.
 */

/* ─── Calculator Results Card ─── */

.lb-rc-results-card {
  background: var(--lb-white);
  border: 2px solid var(--lb-brand-600);
  border-radius: 12px;
  padding: var(--lb-space-2xl);
}

.lb-rc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.lb-rc-result-label {
  font-size: var(--lb-text-sm);
  color: var(--lb-gray-500);
}

.lb-rc-result-value {
  font-size: var(--lb-text-base);
  font-weight: 600;
  color: var(--lb-gray-900);
}

.lb-rc-result-value--highlight {
  font-size: var(--lb-text-xl);
  font-weight: 800;
  color: var(--lb-brand-600);
}

/* ─── Resource Cards ─── */

.lb-resource-card {
  display: block;
  background: var(--lb-gray-50);
  border: 1px solid var(--lb-gray-200);
  border-radius: 12px;
  padding: var(--lb-space-xl);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lb-resource-card:hover {
  border-color: var(--lb-brand-600);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lb-resource-card h3 {
  font-size: var(--lb-text-lg);
  color: var(--lb-gray-900);
  margin: 0 0 8px;
}

.lb-resource-card p {
  font-size: var(--lb-text-sm);
  color: var(--lb-gray-500);
  margin: 0 0 var(--lb-space-md);
  line-height: 1.6;
}

.lb-resource-card__link {
  font-size: var(--lb-text-sm);
  font-weight: 600;
  color: var(--lb-brand-600);
}

/* ─── FAQ Accordion ─── */

.lb-faq-item {
  border-bottom: 1px solid var(--lb-gray-200);
}

.lb-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--lb-space-lg) 0;
  margin: 0;
  font-size: var(--lb-text-lg);
  font-weight: 600;
  color: var(--lb-gray-900);
  cursor: pointer;
  user-select: none;
}

.lb-faq-question:hover {
  color: var(--lb-brand-600);
}

.lb-faq-icon {
  flex-shrink: 0;
  margin-left: var(--lb-space-md);
  transition: transform 0.2s;
  color: var(--lb-gray-400);
}

.lb-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.lb-faq-answer p {
  font-size: var(--lb-text-base);
  color: var(--lb-gray-600);
  line-height: 1.7;
  margin: 0;
  padding-bottom: var(--lb-space-lg);
}

.lb-faq-item--open .lb-faq-icon {
  transform: rotate(180deg);
}

.lb-faq-item--open .lb-faq-answer {
  max-height: 500px;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  #main-content .lb-container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .lb-rc-result-value--highlight {
    font-size: var(--lb-text-lg);
  }
}
