/* Shared CSS styles for all EmbarkBlue sites - Modern Design */

:root {
  
  --rounded-sm: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  
  --container-width: 1200px;
  --content-width: 720px;
  --sidebar-width: 320px;
  --header-height: 70px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.3s ease;
}

/* Enhanced Header Styles */
body {
  background-color: rgb(var(--color-neutral-100)); /* Light mode background */
}
html.dark body {
  background-color: rgb(var(--color-neutral-900)); /* Dark mode background */
}

.site-header {
  position: relative;
  width: 100%;
  min-height: var(--header-height); /* Keep as is - not a color */
  z-index: 30;
  border-bottom: 1px solid rgb(var(--color-neutral-200));
}

/* Header font color for light mode */
.site-header,
.site-header a {
  color: rgb(var(--color-neutral-900)); /* or your preferred light mode color */
}

/* Header font color for dark mode */
html.dark .site-header,
html.dark .site-header a {
  color: rgb(var(--color-neutral-100)); /* or your preferred dark mode color */
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: rgb(var(--color-heading, var(--color-neutral-100)));
}
html.dark .article-title {
  color: rgb(var(--color-heading, var(--color-neutral-900)));
}

.article-title-no-hero {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: rgb(var(--color-heading, var(--color-neutral-900)));
} 
html.dark .article-title-no-hero {
  color: rgb(var(--color-heading, var(--color-neutral-100)));
}


.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: rgb(var(--color-neutral-100));
}
html.dark .article-meta {
  color: rgb(var(--color-neutral-100));
}

.site-header .container {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: inherit;
}

.article-page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.article-hero {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  width: 100%;
}

.hero-background {
  position: relative;
  height: 400px;
  min-height: 200px; /* Ensures visibility if no content */
  overflow: hidden;
  background-color: rgb(var(--color-primary-700)); /* Fallback to solid dark if variable missing */
}

html.dark .hero-background {
  background-color: rgb(var(--color-primary-500));
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgb(var(--color-primary-800)), rgb(var(--color-primary-600)));
  opacity: 0.80;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  z-index: 10;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* shared_styles.css - Add these rules */

/* --- Author & Date Metadata Section Styles --- */

/* Container for the whole metadata row */
.author-date-meta-container { 
  /* Corresponds to the div with .container .my-4 ... */
  /* Inherits text color/size from parent, but can add specifics */
  padding-top: 0.5rem; /* Add a little space above if needed */
  padding-bottom: 0.5rem; /* Add a little space below if needed */
  border-top: 1px solid rgb(var(--color-neutral-200)); /* Optional separator */
  border-bottom: 1px solid rgb(var(--color-neutral-200)); /* Optional separator */
  margin-top: 1rem; /* Space below breadcrumbs */
  margin-bottom: 1rem; /* Space above main content */
}
html.dark .author-date-meta-container {
  border-color: rgb(var(--color-neutral-700)); /* Dark mode border */
}

/* Flex wrapper for the individual items */
.author-date-meta-flex { 
  /* Corresponds to the div with .flex .flex-wrap ... */
  /* Uses flex gap for spacing already */
}

/* Individual meta items (Author, Published Date, Updated Date) */
.author-meta,
.date-meta {
  /* Base styles if needed - already uses flex items-center */
  white-space: nowrap; /* Prevent wrapping within a single item */
}

/* Author Name Style */
.author-meta .font-medium {
  /* Tailwind class already makes it medium weight */
  color: rgb(var(--color-neutral-800)); /* Slightly darker text in light mode */
}
html.dark .author-meta .font-medium {
  color: rgb(var(--color-neutral-200)); /* Slightly lighter text in dark mode */
}

/* Author Image (already styled with Tailwind) */
.author-meta img {
  /* Tailwind classes w-5 h-5 rounded-full mr-2 handle size/shape */
}

/* Date Meta Text ("Published:", "Updated:") */
.date-meta .ml-1\.5 { /* Targeting the span with Tailwind class - need to escape the dot */
  /* Can add specific styles if needed */
}

/* Date Meta <time> element */
.date-meta time {
  font-weight: 500; /* Slightly bolder date */
}

/* Styles for Icons within the metadata */
.date-meta .icon { /* Target icons specifically within date-meta */
  width: 0.875rem; /* Adjust icon size (Tailwind text-sm equivalent) */
  height: 0.875rem;
  display: inline-block; /* Ensure proper alignment */
  vertical-align: text-bottom; /* Align icon nicely with text */
  color: rgb(var(--color-neutral-500)); /* Dimmer icon color */
}
html.dark .date-meta .icon {
  color: rgb(var(--color-neutral-400)); /* Dark mode icon color */
}

/* --- End Author & Date Metadata Section Styles --- */

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.article-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(var(--color-primary-100), 0.85); /* Already rgba */
  color: rgb(var(--color-primary-900));
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.category-badge:hover {
  background-color: rgba(var(--color-primary-300), 0.65); /* Already rgba */
  transform: translateY(-1px);
}

/* Dark mode styles for category badge */
html.dark .category-badge {
  background-color: rgba(var(--color-primary-300), 0.25); /* Slightly more opaque primary background */
  color: rgb(var(--color-primary-200)); /* Lighter primary text */
}

html.dark .category-badge:hover {
  background-color: rgba(var(--color-primary-300), 0.35); /* More opaque on hover */
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(var(--color-primary-500-rgb, 67,97,238), 0.10); /* Already rgba */
  color: rgb(var(--color-primary-900));
  font-size: 0.8rem;
  border-radius: 2rem;
  transition: var(--transition);
}

.tag-link:hover {
  background-color: rgba(var(--color-primary-500-rgb, 67,97,238), 0.20); /* Already rgba */
}

/* Main Content Area */

.article-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 0 !important;
}

@media (min-width: 1024px) {
  .article-container {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }
}

.article-main {
  max-width: 100%;
}

/* Quick Summary Box */

.quick-summary {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgb(var(--color-primary-50));
  border-left: 4px solid rgb(var(--color-primary-500));
  border-radius: var(--rounded-md);
}

html.dark .quick-summary {
  background-color: rgba(var(--color-primary-500-rgb), 0.1); /* Already rgba */
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: rgb(var(--color-primary-700));
}

html.dark .summary-title {
  color: rgb(var(--color-primary-400));
}

/* Table of Contents - Mobile */

.toc-mobile {
  margin-bottom: 2rem;
  display: block;
}

@media (min-width: 1024px) {
  .toc-mobile {
    display: none;
  }
}

.toc-mobile details {
  border: 1px solid rgb(var(--color-neutral-200));
  border-radius: var(--rounded-md);
  overflow: hidden;
}

html.dark .toc-mobile details {
  border-color: rgb(var(--color-neutral-700));
}

.toc-mobile summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  background-color: rgb(var(--color-neutral-50));
  font-weight: 600;
}

html.dark .toc-mobile summary {
  background-color: rgb(var(--color-neutral-800));
}

.toc-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.toc-mobile details[open] .toc-icon {
  transform: rotate(180deg);
}

.toc-mobile .toc-content {
  padding: 1rem;
  background-color: rgb(var(--color-body));
}

html.dark .toc-mobile .toc-content {
  background-color: rgb(var(--color-body));
}

/* Table of Contents - Desktop */

.toc-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .toc-desktop {
    display: block;
  }
}

.toc-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgb(var(--color-primary-700));
}

html.dark .toc-title {
  color: rgb(var(--color-primary-400));
}

.toc-content {}

.toc-content nav {
  font-size: 0.925rem;
}

#TableOfContents ul {
  padding-left: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  list-style: none;
}

#TableOfContents li {
  margin-bottom: 0.5rem;
  position: relative;
  line-height: 1.4;
}

#TableOfContents li::before {
  content: "•";
  position: absolute;
  left: -0.8rem;
  color: rgb(var(--color-primary-500));
}

/* Reduce left padding and font size for nested lists */

#TableOfContents ul ul {
  padding-left: 0.8rem;
  font-size: 0.85rem;
  /* display: none;  Let theme handle this? */
}

#TableOfContents ul ul li::before {
  content: "◦";
  left: -0.7rem;
}

#TableOfContents a {
  color: rgb(var(--color-neutral-700));
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

html.dark #TableOfContents a {
  color: rgb(var(--color-neutral-300));
}

#TableOfContents a:hover {
  color: rgb(var(--color-primary-600));
}

html.dark #TableOfContents a:hover {
  color: rgb(var(--color-primary-400));
}

.toc-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(var(--color-neutral-200));
  text-align: center;
  font-size: 0.875rem;
}

html.dark .toc-footer {
  border-color: rgb(var(--color-neutral-700));
}

.back-to-top {
  color: rgb(var(--color-primary-600));
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: rgb(var(--color-primary-700));
  text-decoration: underline;
}

html.dark .back-to-top {
  color: rgb(var(--color-primary-400));
}

html.dark .back-to-top:hover {
  color: rgb(var(--color-primary-300));
}

/* Article Content */

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgb(var(--color-text));
}

html.dark .article-content {
  color: rgb(var(--color-text));
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rounded-lg);
  margin: 2rem 0;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: rgb(var(--color-heading));
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgb(var(--color-neutral-200));
}

html.dark .article-content h2 {
  color: rgb(var(--color-heading));
  border-color: rgb(var(--color-neutral-700));
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(var(--color-heading));
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

html.dark .article-content h3 {
  color: rgb(var(--color-heading));
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(var(--color-heading));
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

html.dark .article-content h4 {
  color: rgb(var(--color-heading));
}

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

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

.article-content a {
  color: rgb(var(--color-link));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: rgb(var(--color-link-hover));
}

html.dark .article-content a:hover {
  color: rgb(var(--color-link-hover));
}

.article-content blockquote {
  border-left: 4px solid rgb(var(--color-primary-500));
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: rgb(var(--color-primary-50));
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
  font-style: italic;
  color: rgb(var(--color-neutral-700));
}

html.dark .article-content blockquote {
  background-color: rgba(var(--color-primary-500-rgb), 0.1); /* Already rgba */
  color: rgb(var(--color-neutral-300));
}

.article-content code {
  font-family: monospace;
  background-color: rgb(var(--color-neutral-100));
  padding: 0.2rem 0.4rem;
  border-radius: var(--rounded-sm);
  font-size: 0.875em;
}

html.dark .article-content code {
  background-color: rgb(var(--color-neutral-800));
}

.article-content pre {
  background-color: rgb(var(--color-neutral-900));
  color: rgb(var(--color-neutral-100));
  padding: 1.5rem;
  border-radius: var(--rounded-md);
  overflow-x: auto;
  margin: 2rem 0;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}

/* Article Footer */

.article-footer {
  clear: both;
  margin-top: 3rem;
  border-top: 1px solid rgb(var(--color-neutral-200));
  padding-top: 2rem;
}

html.dark .article-footer {
  border-color: rgb(var(--color-neutral-700));
}

.affiliate-disclaimer {
  padding: 1rem;
  background-color: rgb(var(--color-neutral-100));
  border-radius: var(--rounded-md);
  font-size: 0.875rem;
  color: rgb(var(--color-neutral-600));
  text-align: center;
  font-style: italic;
}

html.dark .affiliate-disclaimer {
  background-color: rgb(var(--color-neutral-800));
  color: rgb(var(--color-neutral-400));
}

/* Sidebar Widgets */

.article-sidebar {
  position: relative;
}

.sidebar-widgets-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background-color: rgb(var(--color-neutral-50));
  border-radius: var(--rounded-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

html.dark .sidebar-widget {
  background-color: rgb(var(--color-neutral-800));
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgb(var(--color-primary-700));
}

html.dark .widget-title {
  color: rgb(var(--color-primary-400));
}

.recent-posts {
  list-style: none;
  padding: 0;
}

.recent-posts li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(var(--color-neutral-200));
}

html.dark .recent-posts li {
  border-color: rgb(var(--color-neutral-700));
}

.recent-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-link {
  color: rgb(var(--color-neutral-700));
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
  display: block;
  line-height: 1.4;
}

html.dark .recent-post-link {
  color: rgb(var(--color-neutral-300));
}

.recent-post-link:hover {
  color: rgb(var(--color-primary-600));
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(var(--color-neutral-700));
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

html.dark .category-link {
  color: rgb(var(--color-neutral-300));
}

.category-link:hover {
  color: rgb(var(--color-primary-600));
}

.category-link .count {
  font-size: 0.75rem;
  color: rgb(var(--color-neutral-500));
  background-color: rgb(var(--color-neutral-200));
  border-radius: 1rem;
  padding: 0.1rem 0.5rem;
}

html.dark .category-link .count {
  background-color: rgb(var(--color-neutral-700));
  color: rgb(var(--color-neutral-400));
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud-link {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgb(var(--color-neutral-200));
  color: rgb(var(--color-neutral-700));
  font-size: 0.8rem;
  border-radius: 2rem;
  transition: var(--transition);
}

html.dark .tag-cloud-link {
  background-color: rgb(var(--color-neutral-700));
  color: rgb(var(--color-neutral-300));
}

.tag-cloud-link:hover {
  background-color: rgb(var(--color-primary-100));
  color: rgb(var(--color-primary-800));
}

html.dark .tag-cloud-link:hover {
  background-color: rgb(var(--color-primary-900));
  color: rgb(var(--color-primary-300));
}

/* Product Box */

.product-box {
  border: 1px solid rgb(var(--color-neutral-200));
  background-color: rgb(var(--color-body));
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

html.dark .product-box {
  border-color: rgb(var(--color-neutral-700));
  background-color: rgb(var(--color-neutral-800));
}

.product-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-box .product-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 var(--rounded-xl) 0 var(--rounded-sm);
  background-color: rgb(var(--color-primary-500));
  color: white;
  z-index: 10;
}

.product-box .product-badge.editors-choice {
  background-color: rgb(var(--color-primary-600));
}

.product-box .product-badge.best-value {
  background-color: rgb(var(--color-success-500));
}

.product-box .product-badge.budget-pick {
  background-color: rgb(var(--color-info-500));
}

.product-box.top {
  max-width: 400px;
  margin: 0 auto 3rem auto;
}

.product-box.inline {
  max-width: 300px;
  float: right;
  margin: 0 0 1.5rem 2rem;
}

.product-box.bottom {
  max-width: 400px;
  margin: 3rem auto 0 auto;
}

.product-box img {
  max-width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--rounded-md);
  transition: transform 0.2s ease;
}

.product-box:hover img {
  transform: scale(1.05);
}

.product-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.product-box .rating {
  color: rgb(var(--color-primary-500));
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.product-box .rating .stars {
  margin-right: 0.5rem;
}

.product-box .rating .star {
  color: rgb(var(--color-warning-500));
}

.product-box .rating .star.empty {
  opacity: 0.3;
}

.product-box .rating .star.half {
  position: relative;
  display: inline-block;
}

.product-box .rating .star.half:after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: rgb(var(--color-warning-500));
}

.product-box .price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-box .original-price {
  text-decoration: line-through;
  color: rgb(var(--color-neutral-500));
  font-size: 1rem;
}

.product-box .current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--color-text));
}

html.dark .product-box .current-price {
  color: rgb(var(--color-text));
}

.product-box .discount-badge {
  display: inline-block;
  background-color: rgb(var(--color-success-500));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--rounded-sm);
  margin-left: 0.5rem;
}

.product-box .availability {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.product-box .availability.in-stock {
  color: rgb(var(--color-success-500));
}

.product-box .availability.out-of-stock {
  color: rgb(var(--color-danger-500));
}

.product-box .buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: rgb(var(--color-primary-500));
  color: white !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: var(--rounded-md);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-box .buy-button:hover {
  background-color: rgb(var(--color-primary-600));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-box .buy-button:active {
  transform: translateY(0);
}

.product-box .prime-badge {
  background-color: rgb(var(--color-info-500, #3b82f6));
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.3rem;
  border-radius: var(--rounded-sm);
  margin-left: 0.5rem;
}

/* Review Box */

.review-box {
  border: 1px solid rgb(var(--color-neutral-200));
  background-color: rgb(var(--color-body));
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
  overflow: hidden;
  position: relative;
}

html.dark .review-box {
  border-color: rgb(var(--color-neutral-700));
  background-color: rgb(var(--color-neutral-800));
}

.review-box .award-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 var(--rounded-xl) 0 var(--rounded-sm);
  background-color: rgb(var(--color-primary-500));
  color: white;
  z-index: 10;
}

.review-box .award-badge.editors-choice {
  background-color: rgb(var(--color-primary-600));
}

.review-box .award-badge.best-value {
  background-color: rgb(var(--color-success-500));
}

.review-box .award-badge.recommended {
  background-color: rgb(var(--color-info-500));
}

.review-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgb(var(--color-neutral-200));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

html.dark .review-header {
  border-color: rgb(var(--color-neutral-700));
}

.review-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.review-header .rating-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-header .score {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--color-primary-500));
}

.review-header .stars .star {
  color: rgb(var(--color-warning-500));
}

.review-header .stars .star.empty {
  opacity: 0.3;
}

.review-header .stars .star.half {
  position: relative;
  display: inline-block;
}

.review-header .stars .star.half:after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: rgb(var(--color-warning-500));
}

.review-header .verdict-category {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--rounded-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.review-header .verdict-category.excellent {
  background-color: rgb(var(--color-success-500));
  color: white;
}

.review-header .verdict-category.good {
  background-color: rgb(var(--color-info-500));
  color: white;
}

.review-header .verdict-category.average {
  background-color: rgb(var(--color-warning-500));
  color: white;
}

.review-header .verdict-category.poor {
  background-color: rgb(var(--color-danger-500));
  color: white;
}

.review-summary {
  padding: 1.5rem;
}

.review-summary .featured-quote {
  font-style: italic;
  font-size: 1.125rem;
  color: rgb(var(--color-neutral-700));
  background-color: rgb(var(--color-neutral-100));
  padding: 1rem;
  border-radius: var(--rounded-md);
  margin-bottom: 1.5rem;
  position: relative;
}

.review-summary .featured-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  font-size: 3rem;
  color: rgb(var(--color-neutral-400));
  opacity: 0.5;
}

html.dark .review-summary .featured-quote {
  background-color: rgb(var(--color-neutral-700));
  color: rgb(var(--color-neutral-300));
}

.pros-cons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.review-summary .pros,
.review-summary .cons {
  flex: 1;
  min-width: 250px;
}

.review-summary h4 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.review-summary .pros h4 {
  color: rgb(var(--color-success-500));
}

.review-summary .pros h4::before {
  content: "✓";
  margin-right: 0.5rem;
}

.review-summary .cons h4 {
  color: rgb(var(--color-danger-500));
}

.review-summary .cons h4::before {
  content: "✗";
  margin-right: 0.5rem;
}

.review-summary ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-summary .pros li::marker {
  color: rgb(var(--color-success-500));
}

.review-summary .cons li::marker {
  color: rgb(var(--color-danger-500));
}

.review-summary .verdict {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--color-neutral-200));
}

html.dark .review-summary .verdict {
  border-color: rgb(var(--color-neutral-700));
}

.review-summary .verdict h4 {
  color: rgb(var(--color-primary-500));
}

/* Comparison Table */

.comparison-table-container {
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid rgb(var(--color-neutral-200));
  text-align: left;
}

html.dark .comparison-table th,
html.dark .comparison-table td {
  border-color: rgb(var(--color-neutral-700));
}

.comparison-table th {
  background-color: rgb(var(--color-neutral-100));
  font-weight: 600;
}

html.dark .comparison-table th {
  background-color: rgb(var(--color-neutral-800));
}

.comparison-table .feature-column {
  min-width: 150px;
}

.comparison-table .product-column {
  min-width: 180px;
  text-align: center;
  vertical-align: top;
}

.comparison-table .winner-column {
  background-color: rgba(var(--color-success-500-rgb), 0.1); /* Already rgba */
}

html.dark .comparison-table .winner-column {
  background-color: rgba(var(--color-success-500-rgb), 0.2); /* Already rgba */
}

.comparison-table .product-thumbnail {
  max-width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: var(--rounded-md);
}

.comparison-table .product-name {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.comparison-table .winner-badge {
  display: inline-block;
  background-color: rgb(var(--color-success-500));
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--rounded-sm);
}

.comparison-table .feature-name {
  font-weight: 500;
}

.comparison-table .feature-value {
  text-align: center;
  vertical-align: middle;
}

.comparison-table .checkmark {
  color: rgb(var(--color-success-500));
  font-weight: bold;
}

.comparison-table .x-mark {
  color: rgb(var(--color-danger-500));
  font-weight: bold;
}

.comparison-table .winner-cell {
  background-color: rgba(var(--color-success-500-rgb), 0.1); /* Already rgba */
}

html.dark .comparison-table .winner-cell {
  background-color: rgba(var(--color-success-500-rgb), 0.2); /* Already rgba */
}

/* Mobile Comparison Cards */

.mobile-comparison-cards {
  display: none;
  margin: 2rem 0;
}

.comparison-product-card {
  margin-bottom: 1.5rem;
  border: 1px solid rgb(var(--color-neutral-200));
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

html.dark .comparison-product-card {
  border-color: rgb(var(--color-neutral-700));
}

.comparison-product-card.winner-card {
  border-color: rgb(var(--color-success-500));
}

.card-header {
  padding: 1rem;
  background-color: rgb(var(--color-neutral-100));
  text-align: center;
  position: relative;
}

html.dark .card-header {
  background-color: rgb(var(--color-neutral-800));
}

.card-header .product-thumbnail {
  max-width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: var(--rounded-md);
}

.card-header .product-name {
  font-weight: 600;
  margin: 0;
}

.winner-badge-mobile {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgb(var(--color-success-500));
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0 var(--rounded-lg) 0 var(--rounded-sm);
}

.card-content {
  padding: 0 1rem;
}

.feature-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgb(var(--color-neutral-200));
}

html.dark .feature-row {
  border-color: rgb(var(--color-neutral-700));
}

.feature-row:last-child {
  border-bottom: none;
}

.compare-buy-button {
  display: block;
  padding: 0.75rem 1.5rem;
  background-color: rgb(var(--color-primary-500));
  color: white !important;
  text-decoration: none !important;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
}

.compare-buy-button:hover {
  background-color: rgb(var(--color-primary-600));
}

/* Product Images */

.product-image {
  margin: 2rem 0;
  text-align: center;
}

.product-image.left {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1rem;
  max-width: 40%;
}

.product-image.right {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
  max-width: 40%;
}

.product-image img {
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: auto;
}

.product-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgb(var(--color-neutral-600));
  font-style: italic;
}

html.dark .product-image figcaption {
  color: rgb(var(--color-neutral-400));
}

.image-not-found {
  padding: 1rem;
  background-color: rgb(var(--color-neutral-100));
  color: rgb(var(--color-neutral-600));
  text-align: center;
  border: 1px dashed rgb(var(--color-neutral-300));
  border-radius: var(--rounded-md);
}

html.dark .image-not-found {
  background-color: rgb(var(--color-neutral-800));
  color: rgb(var(--color-neutral-400));
  border-color: rgb(var(--color-neutral-700));
}

/* Example Block */

.example-block {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: rgb(var(--color-neutral-50));
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow);
}

html.dark .example-block {
  background-color: rgb(var(--color-neutral-800));
}

.example-block h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: rgb(var(--color-primary-600));
}

.example-code {
  padding: 1rem;
  background-color: rgb(var(--color-neutral-100));
  border-radius: var(--rounded-md);
  font-family: monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 1rem 0;
  white-space: pre-wrap;
}

html.dark .example-code {
  background-color: rgb(var(--color-neutral-900));
}

/* Quick Answer Box */

.quick-answer-box {
  background-color: rgb(var(--color-body));
  border-left: 4px solid rgb(var(--color-primary-500));
  border-radius: var(--rounded-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

html.dark .quick-answer-box {
  background-color: rgb(var(--color-neutral-800));
}

.quick-answer-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: rgb(var(--color-primary-500));
  font-size: 1.25rem;
}

.quick-recommendation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--color-neutral-200));
}

html.dark .quick-recommendation {
  border-color: rgb(var(--color-neutral-700));
}

.recommended-product-link {
  color: rgb(var(--color-primary-500));
  font-weight: 600;
  text-decoration: none;
}

.recommended-product-link:hover {
  text-decoration: underline;
}

.hero-button {
  display: inline-block;
  background-color: rgb(var(--color-primary-500));
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--rounded-md);
  font-size: 1.1rem;
  transition: background 0.2s;
  text-decoration: none;
  margin-top: 1.5rem;
}
.hero-button:hover {
  background-color: rgb(var(--color-primary-600));
}
html.dark .hero-button {
  background-color: rgb(var(--color-primary-600));
  color: #fff;
}
html.dark .hero-button:hover {
  background-color: rgb(var(--color-primary-400));
}

/* Dark mode styles for Recent Articles section */

/* Style for the "Recent" H2 heading */
h2.font-extrabold { /* Targeting the specific heading based on classes */
  color: rgb(var(--color-neutral-900)); /* Default light mode text */
}
html.dark h2.font-extrabold {
  color: rgb(var(--color-neutral-100)); /* Dark mode text */
}

/* Style for individual article cards/links */
html.dark a.article { 
  background-color: rgb(var(--color-neutral-800)); /* Darker background for cards */
  border-color: rgb(var(--color-neutral-700)); /* Darker border (if it has one) */
  /* Add a subtle border if desired */
  /* border: 1px solid rgb(var(--color-neutral-700)); */ 
  /* border-radius: var(--rounded-lg); Add rounding if desired */
}

/* Style for the meta text separator (the dot) */
html.dark span.text-primary-500 { /* Target the specific class */
  color: rgb(var(--color-primary-400)); /* Lighter primary color for dark mode */
}

/* Style the dropdown container */
.menuhide {
  background-color: rgb(var(--color-neutral-50)); /* Light background */
  border: 1px solid rgb(var(--color-neutral-200));
  border-radius: var(--rounded-md); 
  box-shadow: var(--shadow-lg); 
  padding-top: 0.5rem; 
  padding-bottom: 0.5rem;
  min-width: 180px; 
  /* Theme likely handles visibility/opacity/position via JS/hover states */
}

/* Dark mode for dropdown container */
html.dark .menuhide {
  background-color: rgb(var(--color-neutral-800)); /* Dark background */
  border-color: rgb(var(--color-neutral-700));
}

/* --- Dropdown Menu Styling --- */

/* Style the main dropdown container (.menuhide) */
.menuhide {
  background-color: rgb(var(--color-neutral-50)); /* Light background */
  border: 1px solid rgb(var(--color-neutral-200));
  border-radius: var(--rounded-md); 
  box-shadow: var(--shadow-lg); 
  padding-top: 0.5rem;  /* Padding inside the main container */
  padding-bottom: 0.5rem;
  min-width: 180px; 
  /* visibility, opacity, transition, z-index are handled by theme defaults */
}

/* Dark mode for dropdown container */
html.dark .menuhide {
  background-color: rgb(var(--color-neutral-800)); /* Dark background */
  border-color: rgb(var(--color-neutral-700));
}

/* --- RESET the intermediate wrapper div --- */
/* Target the div immediately inside .menuhide */
.menuhide > div {
  padding: 0 !important;             /* REMOVE conflicting padding */
  margin: 0 !important;                 /* REMOVE conflicting margin (mt-2) */
  border-radius: 0 !important;          /* REMOVE conflicting rounding */
  box-shadow: none !important;          /* REMOVE conflicting shadow */
  backdrop-filter: none !important;   /* REMOVE conflicting blur */
  background-color: transparent !important; /* Ensure no background */
  border: none !important;              /* Ensure no border */
}

/* --- Style the links within the dropdown --- */
/* Target the links within the innermost flex container */
.menuhide > div > div > a { /* Structure: .menuhide > wrapper div > links container div > a */
  color: rgb(var(--color-neutral-700)); 
  display: block; 
  padding: 0.5rem 1rem; /* Padding for the links themselves */
  white-space: nowrap; 
  border-radius: var(--rounded-sm); /* Optional: slight rounding on link hover area */
  margin: 0.125rem 0.5rem; /* Add small margin around links to use padding-top/bottom from .menuhide */
}

/* Dark mode for dropdown links */
html.dark .menuhide > div > div > a {
  color: rgb(var(--color-neutral-200)); 
}

/* Hover/Focus styles for dropdown links */
.menuhide > div > div > a:hover,
.menuhide > div > div > a:focus {
  background-color: rgb(var(--color-primary-300)); 
  color: rgb(var(--color-primary-700)); 
}

/* Dark mode Hover/Focus */
html.dark .menuhide > div > div > a:hover,
html.dark .menuhide > div > div > a:focus {
  background-color: rgb(var(--color-primary-700)); 
  color: rgb(var(--color-primary-100)); 
}

/* --- End Dropdown Menu Styling --- */

/* --- Main Menu Link Hover/Focus Styling --- */

/* Target top-level links directly within the desktop main menu nav */
nav.hidden.md\:flex > a,
nav.hidden.md\:flex > div > div > a { /* Also target the link within the dropdown parent structure */
  padding: 0.5rem 0.75rem; /* Add some padding for the background effect area */
  margin: -0.5rem -0.75rem; /* Offset the padding to maintain original spacing */
  border-radius: var(--rounded-md); /* Match dropdown rounding */
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, color 0.2s ease-in-out; /* Smooth transitions */
  /* Base text color is already handled by Tailwind classes */
}

/* Hover and Focus States */
nav.hidden.md\:flex > a:hover,
nav.hidden.md\:flex > a:focus,
nav.hidden.md\:flex > div > div > a:hover,
nav.hidden.md\:flex > div > div > a:focus {
  background-color: rgb(var(--color-neutral-300)); /* Fully opaque light background */
  color: rgb(var(--color-primary-600)); /* Use the existing hover text color from Tailwind */
  outline: none; /* Remove default focus outline since we have a background */
}

/* Dark mode Hover and Focus States */
html.dark nav.hidden.md\:flex > a:hover,
html.dark nav.hidden.md\:flex > a:focus,
html.dark nav.hidden.md\:flex > div > div > a:hover,
html.dark nav.hidden.md\:flex > div > div > a:focus {
  background-color: rgb(var(--color-neutral-700)); /* Fully opaque dark background */
  color: rgb(var(--color-primary-400)); /* Use the existing dark hover text color from Tailwind */
}

/* --- End Main Menu Styling --- */

.site-header .logo {
  max-height: 2rem; /* Adjust this value as needed */
  max-width: none;  /* Allow width to adjust based on height */
  width: auto; /* Ensure width scales with height */
  height: auto; /* Ensure height is not fixed by Tailwind */
} 

