* {
  box-sizing: border-box;
}

:root {
  --text-main: #1a1a1a;
  --text-muted: #555;
  --border-light: #e0e0e0;
  --accent: #2563eb;
  --bg-soft: #f8f9fa;
  --card-bg: #fff;
  --card-border: #e8e8e8;
}

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text-main);
  background: #fff;
  line-height: 1.65;
  font-size: 17px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.container-wide {
  max-width: 900px;
}

/* HEADER */

.site-header {
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.meta-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a,
.meta-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.main-nav a:hover,
.meta-nav a:hover {
  color: var(--accent);
}

/* NAV DROPDOWN */

.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 100;
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
  color: var(--accent);
  background: var(--bg-soft);
}

/* CATEGORY INDEX */

.category-index-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-index-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.category-index-card:hover {
  border-color: var(--accent);
}

.category-index-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.category-index-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* MAIN */

main.container {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

/* HOMEPAGE HERO */

.hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  max-width: 42em;
}

/* HOMEPAGE SECTIONS */

.home-section {
  margin-bottom: 2.5rem;
}

.home-section h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.5rem;
}

/* CARD GRID */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 1rem 1.25rem 0.25rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 1.25rem 0.5rem;
  color: var(--text-main);
}

.card h3:hover {
  color: var(--accent);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 1.25rem 1.25rem;
  line-height: 1.5;
}

/* CATEGORY ARCHIVE */

.category-archive .category-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.category-card-grid {
  display: grid;
  gap: 1.5rem;
}

.category-card {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 1rem 1.25rem 0.25rem;
}

.category-card-title {
  font-size: 1.15rem;
  margin: 0 1.25rem 0.5rem;
}

.category-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 1.25rem 1.25rem;
  line-height: 1.5;
}

/* RELATED GUIDES */

.related-guides {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.related-guides h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
}

.related-guides-grid {
  display: grid;
  gap: 1rem;
}

.related-guide-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.related-guide-card:hover {
  border-color: var(--accent);
}

.related-guide-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.related-guide-title {
  font-size: 1rem;
  margin: 0.25rem 0 0.4rem 0;
}

.related-guide-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ARTICLE HEADER */

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin-bottom: 0.25rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}

.article-header .article-disclosure {
  margin-bottom: 0;
}

.editorial-credibility {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0.25rem 0;
}

.editorial-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1rem 0;
}

/* CATEGORY LIST */

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.category-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.category-list a:hover {
  text-decoration: underline;
}

/* CONTENT LIST (guides/comparisons/articles index) */

.content-list {
  list-style: none;
  margin: 1.5rem 0 0 0;
  padding: 0;
}

.content-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.content-list li:last-child {
  border-bottom: none;
}

.content-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem;
}

.content-list a:hover {
  text-decoration: underline;
}

/* PAGE & ARTICLE CONTENT */

.page-content {
  max-width: 42em;
}

.article-content {
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-content .article-width {
  max-width: 42em;
}

.page-content h1,
.article-content h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.page-content h2,
.article-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content ul,
.article-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li,
.article-content li {
  margin-bottom: 0.5rem;
}

.page-content a,
.article-content a {
  color: var(--accent);
  text-decoration: none;
}

.page-content a:hover,
.article-content a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* BREADCRUMBS */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* LIST ITEMS (CATEGORY PAGE) */

.list-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.list-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.list-content {
  flex: 1;
}

.list-content h3 a {
  text-decoration: none;
  color: var(--accent);
}

.list-content h3 a:hover {
  text-decoration: underline;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* GALLERY (ITEM + GUIDE PAGE) */

.gallery {
  margin-bottom: 1.5rem;
}

.gallery-main {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f5f5;
}

.thumbs {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

/* TABLE */

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

th, td {
  border: 1px solid var(--border-light);
  padding: 0.6rem;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-soft);
  font-size: 0.9rem;
  margin-top: 3rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-logo img {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-network {
  margin-top: 0.5rem !important;
  font-size: 0.85rem !important;
}

.footer-network a {
  color: var(--accent);
  text-decoration: none;
}

.footer-network a:hover {
  text-decoration: underline;
}

/* ARTICLE LAYOUT COMPONENTS */

.article-disclosure {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent);
}

.summary-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.summary-box h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.summary-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.summary-box li {
  margin-bottom: 0.5rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.pros-cons-block {
  border-radius: 8px;
  padding: 1.25rem;
}

.pros-cons-block.pros {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pros-cons-block.cons {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.pros-cons-block h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
}

.pros-cons-block.pros h4 { color: #166534; }
.pros-cons-block.cons h4 { color: #991b1b; }

.pros-cons-block ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.pros-cons-block li {
  margin-bottom: 0.4rem;
}

.product-card {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
  background: #fff;
}

.product-card-inner {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  flex-wrap: wrap;
}

.product-card-content {
  flex: 1;
  min-width: 0;
}

.product-card-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.product-card-content .product-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #1d4ed8;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-light);
}

.comparison-table th {
  background: var(--bg-soft);
  font-weight: 600;
}

.comparison-table tr:nth-child(even) td {
  background: #fafafa;
}

/* COOKIE */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222;
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  z-index: 1000;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner button {
  padding: 0.4rem 0.85rem;
  border: none;
  background: #fff;
  color: #000;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 3px;
}

/* MOBILE */

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav,
  .meta-nav {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .card-grid {
    gap: 1rem;
  }

  .card a {
    padding: 1rem 1.25rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item {
    flex-direction: column;
  }

  .list-thumb {
    width: 100%;
    height: 200px;
  }

  .gallery-main {
    max-height: 300px;
  }

  .thumbs img {
    width: 60px;
    height: 60px;
  }
}
