/* RunCalc ⚡ — Components CSS — cards, widgets, tooltips, modals, search, share buttons, trust signals */
/* Split from global.css. Load deferred (non-blocking). */

/* ===== HOMEPAGE CATEGORIES ===== */
.category { margin-bottom: 2.5rem; }
.category h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 0.625rem;
  margin-bottom: 0.875rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color var(--transition), color var(--transition);
}
.category ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.625rem;
}
.category li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.category li:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category li:hover::before { opacity: 1; }

.category li a {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1.125rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.category li a strong {
  display: block;
  line-height: 1.3;
}
.card-desc {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category li a::after {
  content: '→';
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0;
  transition: all var(--transition);
  margin-top: 0.25rem;
  transform: translateX(-4px);
}
.category li:hover a::after {
  opacity: 1;
  transform: translateX(0);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  margin-top: 2.5rem;
}
.content-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.content-section p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.content-section ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
  list-style: disc;
}
.content-section ul li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0.375rem 0;
}
.content-section ul li strong {
  color: var(--text);
}

/* FAQ Accordion */
.faq-section details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-section details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
.faq-section details summary:hover {
  background: var(--bg-secondary);
}
.faq-section details summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  transition: transform var(--transition);
}
.faq-section details[open] summary::after {
  content: '−';
}
.faq-section details summary::-webkit-details-marker { display: none; }
.faq-section details p {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ===== RELATED CALCS ===== */
.related-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
}
.related-section h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  list-style: none;
}
.related-grid li a {
  display: block;
  padding: 0.625rem 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.related-grid li a:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Fallback for non-grid related sections */
section ul {
  list-style: none;
  padding: 0;
}
section ul li {
  margin: 0.375rem 0;
}
section ul li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
section ul li a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


/* ===== RICH RESULTS ===== */
.result-highlight {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.75rem;
  display: block;
}
.result-bar {
  position: relative;
  height: 28px;
  border-radius: 14px;
  margin: 1rem 0;
  overflow: visible;
}
.result-bar-track {
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}
.result-bar-marker {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 36px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px var(--card-bg);
  z-index: 2;
  transition: background-color var(--transition);
}
.result-bar-label {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--transition);
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.result-table th,
.result-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}
.result-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.result-table tr:nth-child(even) td { background: var(--bg-secondary); transition: background-color var(--transition); }
.result-table tr.active-row td { background: rgba(78, 168, 222, 0.1); font-weight: 600; }
.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.result-breakdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.result-breakdown-label {
  min-width: 80px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.result-breakdown-bar {
  flex: 1;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  transition: background-color var(--transition);
}
.result-breakdown-fill {
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  min-width: fit-content;
}
.result-breakdown-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 60px;
  text-align: right;
  transition: color var(--transition);
}
.result-step {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.result-step .step-result {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}
.result-strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
}
.result-savings {
  color: var(--green);
  font-weight: 700;
  font-size: 1.2rem;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.result-grid-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  transition: background-color var(--transition), border-color var(--transition);
}
.result-grid-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.result-grid-item .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}


/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.theme-toggle:hover {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}
.theme-toggle .theme-icon {
  transition: transform 0.3s ease-out;
  display: block;
}
.theme-toggle:hover .theme-icon {
  transform: rotate(-20deg) scale(1.1);
}
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.lang-btn:hover {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}
.lang-btn svg {
  transition: transform 0.2s;
}
.lang-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 0.5rem;
  z-index: 200;
  min-width: 180px;
  max-height: 70vh;
  overflow-y: auto;
  transition: background-color var(--transition), border-color var(--transition);
}
.lang-dropdown.open {
  display: flex;
  flex-direction: column;
}
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}
.lang-dropdown a:hover {
  background: var(--bg-secondary);
}
.lang-dropdown a.active {
  color: var(--accent);
  background: rgba(78, 168, 222, 0.1);
  font-weight: 600;
}

/* ===== GLOBAL SEARCH ===== */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: visible;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 168, 222, 0.15);
}

.search-icon {
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.42rem 0.75rem 0.42rem 0;
  font-size: 0.875rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  width: 100%;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Search dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  min-width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 300;
  overflow: hidden;
  animation: srDropIn 0.15s ease-out;
}

@keyframes srDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-dropdown.open {
  display: block;
}

.search-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.375rem;
}

.search-dropdown li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
}

.search-dropdown li:hover,
.search-dropdown li.active {
  background: var(--bg-secondary);
}

.search-dropdown .sr-cat {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.search-dropdown .sr-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.search-dropdown .sr-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown .sr-cat-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-dropdown mark {
  background: rgba(78, 168, 222, 0.2);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 1px;
}

/* Mobile search toggle button */
.search-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 1rem;
}

.search-toggle-btn:hover {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Mobile: show icon, hide full search bar */
@media (max-width: 640px) {
  .search-toggle-btn {
    display: flex;
  }

  .search-form {
    display: none;
  }

  .search-wrapper.search-open .search-form {
    display: flex;
    position: fixed;
    top: 0.625rem;
    left: 1rem;
    right: 1rem;
    z-index: 400;
    width: auto;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
  }

  .search-wrapper.search-open .search-input {
    width: 100%;
    flex: 1;
  }

  .search-dropdown {
    left: 0;
    right: 0;
    position: fixed;
    top: 3.75rem;
    z-index: 399;
  }
}

/* RTL */
[dir="rtl"] .search-dropdown {
  left: auto;
  right: 0;
}

/* ===== SHARE & PRINT BUTTONS ===== */
.calc-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.share-btn,
.print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0;
  min-height: 44px; /* Touch target: Apple HIG & Google Material require ≥ 44px */
  transition: all var(--transition);
  white-space: nowrap;
  flex: 1;
  min-width: 120px;
}
.share-btn:hover,
.print-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(78, 168, 222, 0.2);
}
.share-btn:active,
.print-btn:active {
  transform: scale(0.98);
}
.share-btn svg,
.print-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Share feedback toast */
.share-feedback {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  animation: slideInUp 0.3s ease-out;
  pointer-events: none;
  transition: background-color var(--transition), color var(--transition);
}
.share-feedback.fade-out {
  animation: slideOutDown 0.3s ease-out forwards;
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Mobile: full-width share/print buttons */
@media (max-width: 640px) {
  .share-btn,
  .print-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 0.75rem;
    flex: 1;
  }
  .calc-actions {
    flex-direction: column;
  }
  .share-feedback {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Mobile: fullscreen overlay */
@media (max-width: 600px) {
  .lang-dropdown.open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    padding: 1rem;
    padding-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    align-content: start;
    z-index: 9999;
  }
  .lang-dropdown a {
    font-size: 1rem;
    padding: 0.75rem;
  }
}


/* === Popular Calculators Widget === */
.popular-section { margin-bottom: 2.5rem; }
.popular-section h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}
.popular-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.625rem;
  padding: 0;
  margin: 0;
}
.popular-grid li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.popular-grid li:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.popular-grid a {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  text-decoration: none;
  gap: 0.25rem;
}
.popular-grid a strong {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.3;
}
.popular-grid a .pop-emoji {
  font-size: 1.25rem;
  line-height: 1;
}
.popular-grid a .pop-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* === Category Hub Pages === */
.category-hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.category-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.category-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 0.5rem;
}
.cat-count {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}


/* === Category Intro === */
.cat-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.cat-intro h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.cat-intro p {
  margin: 0 0 1rem;
}
.cat-intro ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.cat-intro ul li {
  margin-bottom: 0.35rem;
}

/* === Category Featured Calculators === */
.cat-featured {
  margin-bottom: 2.5rem;
}
.cat-featured > h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.cat-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.875rem;
}
.cat-featured-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.125rem;
  background: var(--card-bg);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius, 12px);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.cat-featured-grid a:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.cat-featured-grid a strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}
.cat-featured-grid a span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* === Category Related Links === */
.cat-related {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
}
.cat-related h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.875rem;
}
.cat-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cat-related ul li a {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.cat-related ul li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Last Updated Date === */
.last-updated {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  margin: 0.5rem 0 1.5rem;
  opacity: 0.75;
}

/* === Did You Know? Callout Box === */
.did-you-know {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius, 12px) var(--radius, 12px) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.did-you-know h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.did-you-know ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.did-you-know ul li {
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}
.did-you-know ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-weight: 700;
}

/* ═══ TRUST SIGNALS (task #108) ═══════════════════════════════════════════ */

/* ── Full version (homepage) ── */
.trust-full {
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.trust-stat-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.125rem;
  flex: 1;
  min-width: 160px;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), border-color var(--transition);
}

.trust-stat-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.trust-stat-num {
  display: block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.trust-stat-denom {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.75;
}

.trust-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 0.125rem;
}

.trust-stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

[data-theme="dark"] .trust-stars-row {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
}

.trust-stars {
  font-size: 1.25rem;
  color: #f59e0b;
  letter-spacing: 0.05em;
  line-height: 1;
}

.trust-stars-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.trust-stars-label strong {
  color: var(--text);
}

.trust-verified {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.trust-featured {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-featured-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-featured-logos {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.trust-logo-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background-color var(--transition), border-color var(--transition);
}

/* ── Compact version (calculator pages) ── */
.trust-compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  transition: background-color var(--transition), border-color var(--transition);
}

.trust-compact-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.trust-compact-stars {
  color: #f59e0b;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.trust-compact-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.trust-compact-text {
  color: var(--text-secondary);
}

.trust-compact-text strong {
  color: var(--text);
  font-weight: 600;
}

.trust-compact-sep {
  color: var(--border);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

/* Responsive */
@media (max-width: 640px) {
  .trust-stat-item {
    min-width: calc(50% - 0.375rem);
    flex: 0 0 calc(50% - 0.375rem);
  }
  .trust-stat-num { font-size: 1.1rem; }
  .trust-compact { font-size: 0.75rem; padding: 0.45rem 0.75rem; }
}

@media (max-width: 400px) {
  .trust-stat-item {
    min-width: 100%;
    flex: 0 0 100%;
  }
}


/* ════════════════════════════════════════════
   Loading Skeleton — task #42
   Pure CSS shimmer animation for result area.
   Shown briefly when user clicks Calculate.
   ════════════════════════════════════════════ */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.result-skeleton {
  display: none;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.result-skeleton.is-loading {
  display: block;
}

.skeleton-line {
  height: 1rem;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--border)        0%,
    var(--bg-secondary)  50%,
    var(--border)        100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  margin-bottom: 0.75rem;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-line--lg   { height: 1.75rem; width: 60%; margin-bottom: 1rem; }
.skeleton-line--wide { width: 100%; }
.skeleton-line--med  { width: 78%; }
.skeleton-line--sm   { width: 48%; }

/* Dark-mode shimmer — brighter highlight so it reads on dark backgrounds */
[data-theme="dark"] .skeleton-line {
  background: linear-gradient(
    90deg,
    var(--border)               0%,
    rgba(255, 255, 255, 0.07)  50%,
    var(--border)               100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}


/* === Expert Quote Blockquote (task #54) === */
.expert-quote {
  background: #f0f9ff;
  border-left: 4px solid #0284c7;
  border-radius: 0 var(--radius, 12px) var(--radius, 12px) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.expert-quote p {
  color: #0c4a6e;
  font-size: 0.97rem;
  line-height: 1.75;
  margin: 0 0 0.6rem;
  font-style: italic;
}
.expert-quote footer {
  font-style: normal;
  font-size: 0.85rem;
  color: #0369a1;
  margin: 0;
}
.expert-quote footer strong { color: #0c4a6e; }
.expert-quote cite { font-style: italic; }
@media (prefers-color-scheme: dark) {
  .expert-quote {
    background: rgba(2, 132, 199, 0.09);
    border-left-color: #38bdf8;
  }
  .expert-quote p { color: #e0f2fe; }
  .expert-quote footer { color: #7dd3fc; }
  .expert-quote footer strong { color: #bae6fd; }
}
