/* ===================================================================
   Design polish — transitions, hover states, focus, FAQ interaction,
                   source cards, print styles
   =================================================================== */

/* ---- Smoother transitions everywhere ---- */
.section-card,
.callout,
.fact-card,
.highlight-card,
.source-card,
.perf-card,
.score-card,
.trust-card,
.update-card,
.score-panel,
.toc-list a,
.button,
.button-secondary,
.button-tertiary,
.policy-link,
.resource-link,
.topnav a,
.review-card {
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* ---- Subtle hover elevation on cards ---- */
.section-card:hover { border-color: var(--line-strong); }
.callout:hover,
.fact-card:hover,
.source-card:hover { border-color: var(--line-strong); }

/* ---- Better focus states for accessibility ---- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.button:focus-visible,
.button-secondary:focus-visible,
.button-tertiary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Topbar polish ---- */
.topbar-wrap {
  border-bottom-color: rgba(224, 227, 231, 0.7);
}

/* ---- Callout accent refinement ---- */
.callout.editorial { background: var(--surface); }
.callout.brand { background: var(--surface); }
.callout.warning { background: var(--surface); }

/* ---- Score ring polish ---- */
.overall-score-ring {
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.1);
}

/* ---- Better table row hover ---- */
.data-table tbody tr:hover,
.comparison-table tbody tr:hover {
  background: var(--surface-alt);
}

/* ---- Buying guide hero actions ---- */
.buying-guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- FAQ interaction polish ---- */
.faq-item {
  transition: background 0.18s ease;
}
.faq-item[open] {
  background: var(--surface-alt);
}
.faq-item summary .material-symbols-outlined {
  transition: transform 0.2s ease;
}
.faq-item[open] summary .material-symbols-outlined {
  transform: rotate(45deg);
}

/* ---- Source cards polish ---- */
.source-card h3 {
  font-size: 0.84rem;
  font-weight: 700;
  margin: 4px 0 2px;
  line-height: 1.35;
}

/* ---- Mobile polish ---- */
@media (max-width: 640px) {
  .tier-legend {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .section-head h2 { font-size: 1.25rem; }
  .footer-bottom { text-align: center; gap: 4px; }
}

/* ---- Print styles ---- */
@media print {
  .topbar-wrap,
  .sidebar,
  .hero-actions,
  .topnav-actions,
  .site-footer { display: none !important; }
  .hero { box-shadow: none; border: 1px solid #ccc; }
  .layout { grid-template-columns: 1fr; }
  body { background: white; font-size: 12pt; }
}
