/* Mobile CSS - Hide desktop table, show mobile cards on mobile */

@media (max-width: 767px) {
  /* Hide desktop table completely on mobile */
  .ranking-desktop {
    display: none !important;
  }

  /* Show mobile cards on mobile */
  .ranking-mobile-cards {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  /* Hide mobile cards on desktop */
  .ranking-mobile-cards {
    display: none !important;
  }
}

/* =============================================
   REVIEW PAGE GLOBAL TYPOGRAPHY RULES
   ============================================= */

/* Base headings - use padding-top for spacing (margin-top collapses with parent) */
h2, h3, h4 {
  padding-top: 3rem !important;
  margin-bottom: 1rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  line-height: 1.3;
}

/* First heading in any section gets no top spacing */
.review-main h2:first-child,
.review-main h3:first-child {
  padding-top: 0 !important;
}

h2 { font-size: clamp(1.5rem, 3vw, 2.25rem) !important; }
h3 { font-size: 1.25rem !important; }

/* First heading in any section gets no top margin (no !important so base h2 !important wins) */
.review-main h2:first-child,
.review-main h3:first-child {
  margin-top: 0;
}

/* Paragraphs */
.review-main p {
  margin-bottom: 1.5rem !important;
  line-height: 1.8 !important;
}

/* Lists */
.review-main ul,
.review-main ol {
  margin-bottom: 1.5rem !important;
  padding-left: 24px !important;
}

.review-main li {
  margin-bottom: 0.5rem !important;
  line-height: 1.6 !important;
}

/* Section blocks */
.review-main > div,
.review-main > section {
  margin-bottom: 4rem !important;
}

/* TL;DR box */
.tldr-box {
  background: linear-gradient(135deg, rgba(240,185,11,.08), rgba(240,185,11,.04)) !important;
  border: 1px solid rgba(240,185,11,.2) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin: 0 0 4rem 0 !important;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 4rem 0 !important;
  border-radius: 8px;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 400px;
}
.table-scroll th {
  background: rgba(240,185,11,.1) !important;
  color: #f0b90b !important;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.table-scroll td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: #94a3b8;
}
.table-scroll tr:last-child td {
  border-bottom: none;
}

/* Score bars */
.score-bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}

/* Layout grid */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 3rem 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.review-main {
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.review-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
}

/* Review layout responsive — stack on mobile */
@media (max-width: 900px) {
  .review-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 0;
  }
  .review-sidebar {
    order: -1;
  }
  .review-main,
  .review-sidebar {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  h2, h3 {
    margin-top: 2rem !important;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr !important;
  }
}
