/* ===== RE Report — style.css v2 ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2b4a;
  --navy-light: #2a3d62;
  --gold: #c9a84c;
  --gold-light: #e0c878;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --text: #212529;
  --text-light: #495057;
  --green: #2e7d32;
  --green-bg: #e8f5e9;
  --red: #c0392b;
  --red-bg: #fbe9e7;
  --orange: #e67e22;
  --max-width: 1200px;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg:  0 4px 16px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;

  /* Radius */
  --radius: 8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold); }
a:active { opacity: 0.8; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--navy);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0; color: var(--white); }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1rem, 0.5rem + 2vw, 1.5rem); }

/* --- Header --- */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.site-logo:hover { color: var(--gold); }

.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-base);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }

/* --- Ratings Dropdown --- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 5px;
  margin-bottom: 2px;
  transition: transform var(--transition-fast);
}
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: rotate(-135deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.5rem 0;
  z-index: 110;
  margin-top: 0.5rem;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text) !important;
  font-weight: 500;
  transition: background var(--transition-fast);
}
.nav-dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-about h4,
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.footer-about p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-400);
  margin: 0;
}
.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.85rem;
  padding: 0.2rem 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy { color: var(--gray-500); font-size: 0.82rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--gray-500); font-size: 0.82rem; }
.footer-legal a:hover { color: var(--white); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0;
  text-align: center;
}
.hero h1 { font-size: clamp(1.5rem, 1rem + 2.5vw, 2.5rem); font-weight: 700; margin-bottom: 0.75rem; line-height: 1.2; }
.hero .tagline { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem); color: var(--gray-300); max-width: 600px; margin: 0 auto; }

/* --- Page Header (non-hero pages) --- */
.page-header {
  background: var(--gray-50);
  padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--gray-200);
}
.page-header h1 { font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem); font-weight: 700; color: var(--navy); line-height: 1.2; }
.page-header p { color: var(--text-light); margin-top: 0.5rem; max-width: 700px; }

/* --- Section --- */
.section { padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0; }
.section-title { font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem); font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; line-height: 1.2; }

/* --- Category Grid (homepage) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.category-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.category-card p { font-size: 0.9rem; color: var(--text-light); }

/* --- Ratings Table --- */
.ratings-section { padding: 2rem 0; }

.rating-tier {
  margin-bottom: 2rem;
}

.tier-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.tier-label--gold { color: var(--gold); border-color: var(--gold); }
.tier-label--average { color: var(--gray-500); border-color: var(--gray-300); }

.tier-divider {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 2rem 0;
}

/* --- Highest Rated Badge --- */
.badge-highest {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f9f3e3, #fdf8ee);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.badge-highest .badge-icon {
  font-size: 1.2rem;
}

/* --- Company Card --- */
.company-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow var(--transition-base);
}
.company-card:hover { box-shadow: var(--shadow-md); }

.company-card--winner {
  border-color: var(--gold);
  border-width: 2px;
  background: linear-gradient(to bottom, #fefcf5, var(--white));
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.company-name {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.2rem);
  font-weight: 700;
  color: var(--navy);
}

.company-domain {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.15rem;
}

.company-score {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.company-score span { font-size: 0.9rem; font-weight: 400; color: var(--gray-500); }

.company-card--winner .company-score { color: var(--gold); }

.company-card--below {
  opacity: 0.88;
  border-color: var(--gray-300);
}
.company-card--below .company-score {
  color: var(--gray-600);
}

/* --- Subcategory Scores --- */
.subcategory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.subcategory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.subcategory-item .label { color: var(--text-light); }
.subcategory-item .score { font-weight: 600; color: var(--navy); }

.score-bar-container {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  margin: 0 0.75rem;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--navy);
  transition: width 0.3s;
}
.company-card--winner .score-bar { background: var(--gold); }
.score-high { color: var(--green); }
.score-mid { color: var(--navy); }
.score-low { color: var(--red); }
.score-bar--high { background: var(--green); }
.score-bar--low { background: var(--red); }

/* --- Segment Average Indicator --- */
.segment-average {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.segment-average strong {
  font-size: 1.3rem;
  color: var(--navy);
}

/* --- Last Updated --- */
.last-updated {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

/* --- Methodology Table --- */
.scoring-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.scoring-table th,
.scoring-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.scoring-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.scoring-table tr:hover td { background: var(--gray-50); }

/* --- Content Styles --- */
.content { max-width: 800px; }
.content h2 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); font-weight: 700; color: var(--navy); margin: 2rem 0 0.75rem; line-height: 1.2; }
.content h3 { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.15rem); font-weight: 600; color: var(--navy); margin: 1.5rem 0 0.5rem; line-height: 1.3; }
.content p { margin-bottom: 1rem; color: var(--text-light); }
.content ul, .content ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-light); }
.content li { margin-bottom: 0.35rem; }

/* --- Ratings List (category index pages) --- */
.ratings-list { list-style: none; padding: 0; }
.ratings-list li {
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}
.ratings-list li:last-child { border-bottom: none; }
.ratings-list a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.ratings-list a:hover { color: var(--gold); }
.ratings-list .desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* --- Category Ratings Cards (index pages) --- */
.ratings-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.rating-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.rating-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rating-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.rating-card-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}
.rating-card-winner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.rating-card-winner .winner-label {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rating-card-winner .winner-name {
  font-weight: 600;
  color: var(--text);
}
.rating-card-winner .winner-score {
  font-weight: 700;
  color: var(--navy);
  margin-left: auto;
}

/* --- Contact --- */
.contact-email {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  background: #f0f2f5;
  padding: 0.6rem 0;
  font-size: 0.85rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--text-light);
}
.breadcrumbs li:last-child::after {
  content: "";
}
.breadcrumbs a {
  color: var(--navy);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs li[aria-current="page"] {
  color: var(--text-light);
}

/* --- Pros / Cons --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.pros, .cons {
  padding: 1rem;
  border-radius: 8px;
}
.pros {
  background: #eef6ee;
  border-left: 4px solid #3a8a3a;
}
.cons {
  background: #fdf0ef;
  border-left: 4px solid #c0392b;
}
.pros h4, .cons h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pros h4 { color: #3a8a3a; }
.cons h4 { color: #c0392b; }
.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros li, .cons li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.pros li::before {
  content: "✓ ";
  color: #3a8a3a;
  font-weight: 700;
}
.cons li::before {
  content: "✗ ";
  color: #c0392b;
  font-weight: 700;
}

/* --- Company Analysis --- */
.company-analysis {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

/* --- Key Takeaways --- */
.key-takeaways {
  background: linear-gradient(to bottom, #f0f4ff, #f8f9fc);
  border: 1px solid #d0d8e8;
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}
.key-takeaways h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.key-takeaways li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}
.key-takeaways li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* --- Jump Navigation --- */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.jump-nav-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.25rem;
}
.jump-nav a {
  color: var(--navy);
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  transition: background var(--transition-fast);
}
.jump-nav a:hover {
  background: var(--gray-200);
}

/* --- Article Meta / Byline --- */
.article-meta {
  padding: 1rem 0 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.byline-name {
  font-weight: 600;
  color: var(--navy);
}
.byline-sep {
  margin: 0 0.15rem;
}
.editorial-disclosure {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin: 0.6rem 0 0;
  line-height: 1.5;
  max-width: 700px;
}

/* --- Comparison Summary Table --- */
.comparison-table-wrap {
  margin-bottom: 2rem;
}
.comparison-table-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.comparison-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.65rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 64px;
  z-index: 10;
}
.comparison-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.comparison-table tbody tr:hover td { background: var(--gray-50); }
.comparison-table tbody tr:hover td:first-child { border-left: 3px solid var(--navy); }
.comparison-row--winner td { background: #fefcf5; }
.comparison-row--winner td:first-child { border-left: 3px solid var(--gold); }
.company-cell { font-weight: 600; color: var(--navy); }
.company-cell .domain { font-weight: 400; font-size: 0.78rem; color: var(--gray-500); }
.score-cell { font-weight: 600; }
.designation {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}
.designation--gold { background: #fdf3d7; color: #8a6d1b; }
.designation--above { background: #e8f5e9; color: #2e7d32; }
.designation--below { background: #fbe9e7; color: #c62828; }

.comparison-row--divider td {
  background: var(--gray-100);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 2px dashed var(--gray-300);
  border-bottom: 2px dashed var(--gray-300);
}

/* --- Best For Badge --- */
.best-for-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  background: #eef2f7;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

/* --- Company Data Points --- */
.company-data-points {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 6px;
}
.data-point {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.data-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  font-weight: 600;
}
.data-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* --- Methodology Weights --- */
.methodology-weights {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.methodology-weights h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.methodology-weights > p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.methodology-weights > p:last-child {
  margin-bottom: 0;
  margin-top: 1rem;
}
.weight-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.weight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.weight-label {
  min-width: 160px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.weight-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.weight-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 4px;
}
.weight-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  min-width: 32px;
  text-align: right;
}

/* --- Editorial Content --- */
.editorial-content {
  margin: 2rem 0;
  max-width: 800px;
}
.editorial-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}
.editorial-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}
.editorial-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* --- Related Ratings --- */
.related-ratings {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--gray-50);
  border-radius: var(--radius);
}
.related-ratings h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--navy);
}
.related-ratings ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}
.related-ratings a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}
.related-ratings a:hover {
  color: var(--gold);
}

/* --- FAQ Section --- */
.faq-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}
.faq-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: #f8f9fa;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  padding: 0 1rem 1rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base), background var(--transition-fast);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--navy-light);
}

/* --- Editorial / Team Pages --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.team-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}
.team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.team-card .role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.team-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.policy-section {
  margin-bottom: 2rem;
}
.policy-section h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}
.policy-section p, .policy-section ul {
  font-size: 0.95rem;
  line-height: 1.7;
}
.policy-section ul {
  padding-left: 1.5rem;
}
.policy-section li {
  margin-bottom: 0.5rem;
}

/* --- Trust Stats (Homepage Hero) --- */
.trust-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-stats .stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.trust-stats .stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.35rem;
}

/* --- Featured Banner --- */
.featured-section { padding: 1.5rem 0; }
.featured-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fefcf5;
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
.featured-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.featured-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.featured-text a {
  font-weight: 600;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* --- Category Card Icons & Link --- */
.category-icon {
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.category-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.card-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: auto;
}
.category-card:hover .card-link { color: var(--gold); }
.category-card {
  display: flex;
  flex-direction: column;
}

/* --- How It Works --- */
.how-it-works { background: var(--gray-50); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.step {
  text-align: center;
  padding: 1.5rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}
.methodology-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}
.methodology-link:hover { color: var(--gold); }

/* --- Scoring Factors Grid (category index pages) --- */
.factors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.factor-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.factor-card .factor-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.factor-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.factor-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

/* --- Badge Grid --- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.badge-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.badge-card img {
  margin-bottom: 1rem;
}
.badge-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.badge-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.badge-card details summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.4rem 0;
}
.badge-card details summary:hover {
  color: var(--gold);
}
.embed-code {
  width: 100%;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: var(--gray-50);
  resize: vertical;
  margin-top: 0.5rem;
}
.badge-usage {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-top: 1rem;
}
.badge-usage h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.badge-usage ul {
  padding-left: 1.5rem;
}
.badge-usage li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}
.category-card:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  box-shadow: var(--shadow-md);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .main-nav {
    display: flex;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
  }
  .main-nav.open {
    max-height: 300px;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-toggle { display: block; }
  .nav-toggle:active { opacity: 0.7; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .company-header { flex-direction: column; }

  .subcategory-list { grid-template-columns: 1fr; }

  .trust-stats { gap: 1.5rem; flex-wrap: wrap; }
  .trust-stats .stat-number { font-size: 1.4rem; }

  .featured-banner { flex-direction: column; align-items: flex-start; }

  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .factors-grid { grid-template-columns: repeat(2, 1fr); }

  .scoring-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .scoring-table th, .scoring-table td { padding: 0.5rem; }

  .faq-item summary { min-height: 44px; }

  .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table th, .comparison-table td { padding: 0.5rem; }

  .company-data-points { grid-template-columns: repeat(2, 1fr); }

  .weight-label { min-width: 120px; font-size: 0.8rem; }

  .comparison-table-wrap {
    position: relative;
  }
  .comparison-table-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    display: none;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    color: var(--gray-300) !important;
    padding: 0.4rem 0 0.4rem 1rem;
    font-size: 0.88rem;
  }
  .nav-dropdown-menu a:hover {
    background: transparent;
    color: var(--white) !important;
  }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .factors-grid { grid-template-columns: 1fr; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .breadcrumbs, .nav-toggle,
  .featured-section, .related-ratings, .faq-section,
  .back-to-top, .nav-dropdown-menu { display: none !important; }
  .hero { background: none !important; color: var(--text) !important; padding: 1rem 0; }
  .hero h1, .hero .tagline { color: var(--text) !important; }
  .company-card { break-inside: avoid; box-shadow: none !important; border: 1px solid var(--gray-300) !important; }
  .comparison-table th { position: static !important; }
  body { font-size: 11pt; }
}
