/* ============================================================
   OutdoorWorkerGear — Global Stylesheet
   Color Palette: Navy #1a2e44 | Orange #e8530a | Grey #f5f5f3 | White #fff
   Font: System stack
   Mobile-first responsive
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a2e44;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #e8530a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c44508;
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #1a2e44;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

/* Alternating background — HTML uses "section-alt" */
.section-alt {
  background: #f5f5f3;
}

.section-intro {
  text-align: center;
  color: #5a6a7a;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.content-narrow {
  max-width: 750px;
  margin: 0 auto;
}

.content-narrow h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-narrow p {
  color: #3a4a5a;
  margin-bottom: 1rem;
}

.content-narrow ul,
.content-narrow ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: #3a4a5a;
}

.content-narrow ul { list-style: disc; }
.content-narrow ol { list-style: decimal; }

.content-narrow li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* --- Header / Navigation --- */
.site-header {
  background: #1a2e44;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* HTML: <nav class="nav-container"> */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  min-height: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* HTML: <a class="nav-brand"> */
.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: #e8530a;
  text-decoration: none;
}

/* HTML: <ul class="nav-links"> (index, about, guide pages) */
/* HTML: <ul class="nav-menu"> (reviews, stats pages) */
.nav-links,
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #1a2e44;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  list-style: none;
}

.nav-links.active,
.nav-menu.active {
  display: flex;
}

.nav-links a,
.nav-menu a {
  color: #cdd6df;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
  display: block;
}

.nav-links a:hover,
.nav-menu a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

.nav-links a.active,
.nav-menu a.active,
.nav-links .active,
.nav-menu .active {
  color: #e8530a;
}

/* BMAC link — HTML uses .bmac-link */
.nav-links a.bmac-link,
.nav-menu a.bmac-link,
.bmac-link {
  color: #e8530a;
  font-weight: 600;
}

.nav-links a.bmac-link:hover,
.nav-menu a.bmac-link:hover,
.bmac-link:hover {
  color: #ffffff;
}

/* Hamburger toggle button — HTML: <button class="nav-toggle"> */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

/* Child span — HTML uses .hamburger (index/about/guide) or .nav-toggle-icon (reviews/stats) */
.nav-toggle .hamburger,
.nav-toggle .nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
}

/* Create top and bottom bars via pseudo-elements since HTML only has one span */
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after,
.nav-toggle .nav-toggle-icon::before,
.nav-toggle .nav-toggle-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle .hamburger::after,
.nav-toggle .nav-toggle-icon::after {
  top: 7px;
}

/* Active/open state for hamburger */
.nav-toggle.active .hamburger,
.nav-toggle.active .nav-toggle-icon {
  background: transparent;
}

.nav-toggle.active .hamburger::before,
.nav-toggle.active .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after,
.nav-toggle.active .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links,
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    gap: 0.25rem;
  }

  .nav-links a,
  .nav-menu a {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
  }

  .nav-links a:hover,
  .nav-menu a:hover {
    background: rgba(255,255,255,0.1);
  }

  .nav-links li,
  .nav-menu li {
    list-style: none;
  }
}

/* --- Hero (homepage) --- */
.hero {
  background: linear-gradient(135deg, #1a2e44 0%, #2c4a6e 100%);
  color: #ffffff;
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.hero p,
.hero-sub {
  color: #cdd6df;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero .btn {
  font-size: 1.1rem;
  padding: 0.85rem 2rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 2rem;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}

/* --- Page Header (about page) --- */
.page-header {
  background: linear-gradient(135deg, #1a2e44 0%, #2c4a6e 100%);
  color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

.page-header h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-header-sub {
  color: #cdd6df;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Page Hero (reviews, stats pages) --- */
.page-hero {
  background: linear-gradient(135deg, #1a2e44 0%, #2c4a6e 100%);
  color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-intro {
  color: #cdd6df;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0.5rem auto 0;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(0);
}

/* HTML uses .btn-primary (not .btn--primary) */
.btn-primary {
  background: #e8530a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #d04a09;
  color: #ffffff;
}

/* HTML uses .btn-secondary (not .btn--secondary) */
.btn-secondary {
  background: #ffffff;
  color: #1a2e44;
  border: 2px solid #1a2e44;
}

.btn-secondary:hover {
  background: #1a2e44;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: #e8530a;
  border: 2px solid #e8530a;
}

.btn-outline:hover {
  background: #e8530a;
  color: #ffffff;
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* --- Problem Grid (homepage "Browse by Problem") --- */
/* HTML: <div class="problem-grid"> with <a class="problem-card"> children */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(4, 1fr); }
}

.problem-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e2e6ea;
  text-decoration: none;
  color: #1a2e44;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.problem-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: #1a2e44;
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.problem-card strong {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a2e44;
  display: block;
}

.problem-desc {
  font-size: 0.9rem;
  color: #5a6a7a;
  line-height: 1.5;
}

/* --- Trade Badges (homepage "Browse by Trade") --- */
/* HTML: <div class="trade-badges"> with <span class="trade-badge"> children */
.trade-badges {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex-wrap: wrap;
  justify-content: center;
}

.trade-badges::-webkit-scrollbar {
  height: 4px;
}

.trade-badges::-webkit-scrollbar-thumb {
  background: #cdd6df;
  border-radius: 4px;
}

.trade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2e44;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.trade-badge:hover {
  border-color: #e8530a;
  background: #fef5f0;
  text-decoration: none;
}

/* --- Featured Guide Section (homepage) --- */
/* HTML: <div class="featured-content"> */
.featured-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.featured-content p {
  color: #5a6a7a;
  margin-bottom: 1.5rem;
  text-align: left;
}

.featured-content .btn {
  margin-top: 0.5rem;
}

/* --- Star Ratings --- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #e8530a;
  font-size: 1.1rem;
}

.stars--large {
  font-size: 1.5rem;
  gap: 4px;
}

.star {
  display: inline-block;
}

.star--filled::before { content: '\2605'; }
.star--empty::before { content: '\2606'; color: #cdd6df; }
.star--half::before { content: '\2605'; opacity: 0.5; }

/* Star rating input fieldset (reviews page form) */
/* HTML: <fieldset class="star-rating"> with radio inputs and labels */
.star-rating {
  border: none;
  padding: 0;
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0;
}

.star-rating input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-rating label {
  font-size: 1.8rem;
  color: #cdd6df;
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 0 2px;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: #e8530a;
}

/* Clickable stars for review form (JS-driven class) */
.star-input {
  display: inline-flex;
  gap: 4px;
  font-size: 1.8rem;
  cursor: pointer;
}

.star-input .star {
  color: #cdd6df;
  transition: color 0.15s ease;
  cursor: pointer;
}

.star-input .star:hover,
.star-input .star.active {
  color: #e8530a;
}

/* --- Review Cards (rendered by reviews.js) --- */
.review-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid #e2e6ea;
  margin-bottom: 1rem;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.review-card__nickname {
  font-weight: 700;
  font-size: 1rem;
  color: #1a2e44;
}

.review-card__trade {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: #1a2e44;
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.review-card__category {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: #f5f5f3;
  color: #5a6a7a;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.review-card__date {
  font-size: 0.8rem;
  color: #8a9aaa;
  margin-left: auto;
}

.review-card__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a4a5a;
}

.review-card__stars {
  margin-bottom: 0.5rem;
}

/* --- Review Summary / Aggregate Rating (reviews page) --- */
/* HTML: <div class="review-summary"> */
.review-summary {
  text-align: center;
  padding: 1.5rem;
  background: #f5f5f3;
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
}

.aggregate-rating__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a2e44;
}

.aggregate-rating__count {
  font-size: 0.95rem;
  color: #5a6a7a;
  margin-top: 0.25rem;
}

/* --- Reviews List Container --- */
.reviews-list {
  margin-bottom: 2rem;
}

/* --- Filter Bar (reviews page) --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  background: #f5f5f3;
  border-radius: 8px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a6a7a;
}

.filter-group select {
  padding: 0.4rem 0.75rem;
  border: 1px solid #cdd6df;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.9rem;
  color: #1a2e44;
  min-width: 140px;
}

.filter-group select:focus {
  outline: none;
  border-color: #e8530a;
  box-shadow: 0 0 0 2px rgba(232,83,10,0.15);
}

/* --- Review Form (reviews page) --- */
/* HTML: <div class="review-form-wrapper"> */
.review-form-wrapper {
  max-width: 700px;
  margin: 2rem auto 3rem;
  padding: 2rem;
  background: #f5f5f3;
  border-radius: 8px;
}

.review-form-wrapper h2 {
  margin-bottom: 0.5rem;
}

.review-form-wrapper > p {
  color: #5a6a7a;
  margin-bottom: 1.5rem;
}

/* --- Forms (shared) --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #1a2e44;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cdd6df;
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e8530a;
  box-shadow: 0 0 0 3px rgba(232,83,10,0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* HTML: <div class="form-row"> — two side-by-side selects */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .form-row {
    flex-direction: row;
  }
  .form-row .form-group {
    flex: 1;
  }
}

/* Required asterisk */
.required {
  color: #e8530a;
}

/* Character count */
.char-count {
  display: block;
  font-size: 0.8rem;
  color: #8a9aaa;
  text-align: right;
  margin-top: 0.25rem;
}

/* Form message / feedback */
.form-message {
  margin-top: 1rem;
}

.form__error,
.form__success {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form__error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form__success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* --- Placeholder text (loading state in homepage) --- */
.placeholder-text {
  color: #8a9aaa;
  font-style: italic;
  text-align: center;
}

/* --- Newsletter Section (homepage) --- */
#newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* --- Disclosure Box (about page) --- */
.disclosure-box {
  background: #f5f5f3;
  border-left: 4px solid #e8530a;
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-style: italic;
}

/* --- Guide Page Styles --- */

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #5a6a7a;
}

.breadcrumb a {
  color: #5a6a7a;
}

.breadcrumb a:hover {
  color: #e8530a;
}

.breadcrumb .sep {
  margin: 0 0.4rem;
  color: #cdd6df;
}

/* Guide content area */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.guide-content h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.guide-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f5f5f3;
}

.guide-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-content p {
  color: #3a4a5a;
}

.guide-content ul,
.guide-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: #3a4a5a;
}

.guide-content ul { list-style: disc; }
.guide-content ol { list-style: decimal; }

.guide-content li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* Product entries on guide pages */
.product-entry {
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.product-entry__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2e44;
  margin-bottom: 0.5rem;
}

.product-entry__why {
  color: #3a4a5a;
  margin-bottom: 0.75rem;
}

.product-entry__features {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
}

.product-entry__features li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
}

.product-entry__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #e8530a;
  font-weight: 700;
}

/* Amazon affiliate links */
.amz-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.2rem;
  background: #e8530a;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.amz-link:hover {
  background: #d04a09;
  color: #ffffff;
  text-decoration: none;
}

/* Affiliate disclosure inline */
.affiliate-disclosure {
  font-size: 0.8rem;
  color: #8a9aaa;
  font-style: italic;
  margin: 1rem 0;
  padding: 0.5rem 0.75rem;
  background: #f5f5f3;
  border-radius: 4px;
}

/* --- FAQ Accordion --- */
.faq {
  margin: 1.5rem 0;
}

.faq__item {
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2e44;
  transition: background 0.2s ease;
}

.faq__question:hover {
  background: #f5f5f3;
}

.faq__question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: #e8530a;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__item.active .faq__question::after {
  content: '\2212';
}

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

.faq__item.active .faq__answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem;
}

.faq__answer p {
  font-size: 0.95rem;
  color: #3a4a5a;
  line-height: 1.6;
}

/* --- Mini Review Widget (guide pages) --- */
.mini-reviews {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f5f5f3;
  border-radius: 8px;
}

.mini-reviews__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a2e44;
}

.mini-reviews__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e6ea;
}

.mini-reviews__item:last-child {
  border-bottom: none;
}

.mini-reviews__link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Related Guides --- */
.related-guides {
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 2px solid #f5f5f3;
}

.related-guides__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.related-guides__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-guides__list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2e44;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.related-guides__list a:hover {
  border-color: #e8530a;
  text-decoration: none;
}

.related-guides__list a::before {
  content: '\2192';
  color: #e8530a;
}

@media (min-width: 600px) {
  .related-guides__list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .related-guides__list a {
    flex: 1 1 calc(50% - 0.375rem);
  }
}

/* --- Stats Page --- */
/* HTML: <div class="container stats-page"> */
.stats-page {
  padding-bottom: 2rem;
}

/* HTML: <section class="stats-card"> */
.stats-card {
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.stats-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1a2e44;
}

/* Stats big number */
.stats-big-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e8530a;
  text-align: center;
}

/* Stats chart section */
.stats-chart-section {
  overflow-x: auto;
}

/* Bar chart container */
.chart-container {
  overflow-x: auto;
}

.chart-container svg {
  width: 100%;
  min-width: 500px;
  height: 250px;
}

/* Stat cards rendered by stats.js */
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.stat-card__value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #e8530a;
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.85rem;
  color: #5a6a7a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Stats tables (rendered by stats.js) */
.stats-table {
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.stats-table__title {
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  background: #f5f5f3;
  color: #1a2e44;
  border-bottom: 1px solid #e2e6ea;
}

.stats-table table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 0.65rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
}

.stats-table th {
  background: #f5f5f3;
  font-weight: 600;
  color: #5a6a7a;
  border-bottom: 1px solid #e2e6ea;
}

.stats-table td {
  border-bottom: 1px solid #f5f5f3;
  color: #3a4a5a;
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-table__count {
  font-weight: 700;
  color: #1a2e44;
}

/* Stats meta (last updated + refresh) */
.stats-meta {
  text-align: center;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: #8a9aaa;
}

.stats-meta .btn {
  margin-top: 0.75rem;
}

/* --- Footer --- */
.site-footer {
  background: #1a2e44;
  color: #cdd6df;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 3rem;
}

.site-footer .container {
  text-align: center;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #cdd6df;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer stats link — HTML uses .footer-stats (index/about/guide) */
.footer-stats {
  margin-top: 0.75rem;
}

.footer-stats a {
  font-size: 0.7rem;
  color: #5a6a7a;
  text-decoration: none;
}

.footer-stats a:hover {
  color: #8a9aaa;
  text-decoration: underline;
}

/* Footer content block — HTML uses .footer-content (reviews/stats) */
.footer-content {
  text-align: center;
}

/* Footer nav — HTML uses .footer-nav (reviews/stats) */
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: #cdd6df;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer stats link — HTML uses .footer-stats-link (reviews/stats) */
.footer-stats-link {
  font-size: 0.7rem;
  color: #5a6a7a;
  text-decoration: none;
}

.footer-stats-link:hover {
  color: #8a9aaa;
  text-decoration: underline;
}

/* --- Loading / Skeleton --- */
.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #e2e6ea;
  border-top-color: #e8530a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, #f5f5f3 25%, #eaecee 50%, #f5f5f3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton--text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton--card {
  height: 150px;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-muted { color: #5a6a7a; }
.text-small { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Visually hidden but accessible */
.hidden { display: none !important; }

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .nav-container,
  .filter-bar,
  .mini-reviews,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
