/* ============================================
   Click2Future - Wirecutter-style Affiliate Blog
   ============================================ */

/* === CSS Variables === */
:root {
  /* Primary palette - Deep teal/emerald */
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-darker: #115e59;
  --primary-light: #ccfbf1;
  --primary-lighter: #f0fdfa;

  /* Accent - Warm amber */
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;

  /* Text */
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #767676;
  --text-light: #999;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-warm: #fafaf8;
  --bg-section: #f5f5f3;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf8;

  /* Borders */
  --border: #e5e5e3;
  --border-light: #f0f0ee;
  --border-dark: #d4d4d2;

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

  /* Radius */
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Layout */
  --max-width: 1280px;
  --content-width: 720px;
  --nav-height: 56px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Sans-serif for UI elements */
nav, .nav-dropdown, .breadcrumb, .tag, .btn, .section-label,
.footer, .meta, .search-box, .mobile-menu {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary);
}

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

ul, ol {
  list-style: none;
}

/* === Top Bar (Disclosure) === */
.top-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.top-bar a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Navigation === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 24px;
}

.navbar-brand {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.navbar-brand:hover {
  color: var(--text);
}

.navbar-brand .brand-dot {
  color: var(--primary);
}

/* Main nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  height: 100%;
}

.nav-links > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li.active > a {
  color: var(--text);
}

.nav-links > li.active > a,
.nav-links > li.active > button {
  border-bottom: 2px solid var(--primary);
  color: var(--text);
}

/* Dropdown arrow */
.nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  opacity: 0.5;
}

/* Dropdown menu */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow-lg);
  min-width: 600px;
  padding: 24px 0;
  z-index: 100;
}

.nav-links > li:hover > .nav-dropdown {
  display: block;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.dropdown-group {
  padding: 0 24px;
}

.dropdown-group-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-group ul li a {
  display: block;
  padding: 4px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.dropdown-group ul li a:hover {
  color: var(--primary);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  gap: 8px;
  transition: border-color 0.15s;
}

.search-box:focus-within {
  border-color: var(--primary);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 160px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-icon {
  color: var(--text-muted);
  font-size: 14px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}

/* === Hero / Featured === */
.hero-featured {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.hero-card-image {
  aspect-ratio: 4/3;
  background: var(--bg-section);
  overflow: hidden;
}

.hero-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-card-image img {
  transform: scale(1.03);
}

.hero-card-content {
  padding: 40px 40px 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card-content .tag {
  margin-bottom: 16px;
}

.hero-card-content h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.hero-card-content h2 a {
  color: var(--text);
}

.hero-card-content h2 a:hover {
  color: var(--primary);
}

.hero-card-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* === Section === */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.section-title a {
  color: var(--text);
}

.section-title a:hover {
  color: var(--primary);
}

.section-more {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.section-more:hover {
  text-decoration: underline;
}

.section-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === Article Cards === */
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card-image {
  aspect-ratio: 4/3;
  background: var(--bg-section);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.03);
}

.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card .meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

/* === Latest List === */
.latest-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.latest-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.latest-item:first-child {
  padding-top: 0;
}

.latest-item h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.latest-item h3 a {
  color: var(--text);
}

.latest-item h3 a:hover {
  color: var(--primary);
}

.latest-item .meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

/* === Deals Section === */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.deal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.deal-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.deal-card-image {
  background: var(--bg-section);
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 100px;
  max-height: 140px;
}

.deal-card-image img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  object-position: center;
}

.deal-card h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.deal-card h4 a {
  color: var(--text);
}

.deal-card h4 a:hover {
  color: var(--primary);
}

/* Deal card body (new structure) */
.deal-card-body {
  display: flex;
  flex-direction: column;
}

.deal-card-body .deal-badge {
  align-self: flex-start;
  margin-bottom: 8px;
}

.deal-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text);
}

.deal-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.deal-card-meta .deal-code strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.deal-card-meta .deal-expiry {
  color: var(--text-light);
}

.deal-card-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Deal category section */
.deal-category {
  margin-bottom: 48px;
}

.deal-category:last-child {
  margin-bottom: 0;
}

.deal-category .section-title {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* Category quick nav */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.category-nav a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.category-nav a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.deal-price {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.deal-price .current {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.deal-price .original {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.deal-badge {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 100px;
}

/* === Category Section (Wirecutter-style) === */
.category-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.category-block {
  padding: 32px 0;
}

.category-block:first-child {
  border-right: 1px solid var(--border);
  padding-right: 32px;
}

.category-block:last-child {
  padding-left: 32px;
}

.category-block + .category-block {
  border-top: 1px solid var(--border);
}

.category-tags {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.category-tags a {
  color: var(--text-muted);
}

.category-tags a:hover {
  color: var(--primary);
}

.category-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.category-item {
  display: flex;
  flex-direction: column;
}

.category-item-image {
  aspect-ratio: 4/3;
  background: var(--bg-section);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.category-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-item:hover .category-item-image img {
  transform: scale(1.03);
}

.category-item h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.category-item h4 a {
  color: var(--text);
}

.category-item h4 a:hover {
  color: var(--primary);
}

.category-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === Tag === */
.tag {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

/* === Meta === */
.meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

.meta a {
  color: var(--text-muted);
}

.meta a:hover {
  color: var(--primary);
}

/* === Breadcrumb === */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ============================================
   LP Article Page - Wirecutter-style Layout
   ============================================ */

/* Article wrapper: content + sidebar */
.lp-article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.lp-article-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* === Article Header (full width) === */
.lp-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.lp-header .tag {
  margin-bottom: 16px;
}

.lp-header h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: var(--text);
}

.lp-header .meta {
  margin-bottom: 20px;
  font-size: 14px;
}

.lp-header .lp-summary {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.65;
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin-top: 20px;
}

/* === Article Body (left column) === */
.lp-body {
  min-width: 0;
}

.lp-section {
  margin-bottom: 40px;
}

.lp-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.lp-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  letter-spacing: -0.2px;
}

.lp-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.lp-section ul,
.lp-section ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.lp-section li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
  list-style: disc;
}

.lp-section ol li {
  list-style: decimal;
}

.lp-section li strong {
  color: var(--text);
}

/* === Our Pick Card === */
.lp-summary {
  margin-bottom: 32px;
}

.lp-summary h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.lp-pick {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--bg-card);
  transition: box-shadow 0.2s;
}

.lp-pick:hover {
  box-shadow: var(--shadow-md);
}

.lp-pick-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-section);
}

.lp-pick-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-pick-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lp-pick-info .tag {
  margin-bottom: 8px;
  align-self: flex-start;
}

.lp-pick-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.lp-pick-info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.lp-pick-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.lp-pick-price .current {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}

.lp-pick-price .original {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* === CTA Box (inline buy button) === */
.lp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 28px 0;
  gap: 16px;
}

.lp-cta strong {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--text);
}

.lp-cta .text-muted {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === Comparison Table === */
.lp-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
}

.lp-table thead {
  background: var(--bg-warm);
}

.lp-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.lp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

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

.lp-table tbody tr:hover {
  background: var(--bg-warm);
}

/* === In-content Ad Slots === */
.ad-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.ad-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.015) 10px,
    rgba(0,0,0,0.015) 20px
  );
}

.ad-slot-inline {
  height: 120px;
}

.ad-slot-inline-tall {
  height: 250px;
}

/* === Right Sidebar === */
.lp-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar TOC */
.sidebar-toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg);
}

.sidebar-toc-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sidebar-toc ul {
  list-style: none;
  padding: 0;
}

.sidebar-toc li {
  margin-bottom: 0;
}

.sidebar-toc a {
  display: block;
  padding: 6px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s;
}

.sidebar-toc a:last-child {
  border-bottom: none;
}

.sidebar-toc a:hover {
  color: var(--primary);
}

/* Sidebar Ad */
.sidebar-ad {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.sidebar-ad::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.015) 10px,
    rgba(0,0,0,0.015) 20px
  );
}

.sidebar-ad-tall {
  min-height: 400px;
}

/* Sidebar: Related / Popular */
.sidebar-widget {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg);
}

.sidebar-widget-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
}

.sidebar-widget li {
  margin-bottom: 0;
}

.sidebar-widget a {
  display: block;
  padding: 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s;
}

.sidebar-widget a:last-child {
  border-bottom: none;
}

.sidebar-widget a:hover {
  color: var(--primary);
}

/* === Related Articles (below article) === */
.related-articles {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.related-articles-header {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-bottom: 24px;
}

.related-articles-header h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-card-image {
  aspect-ratio: 16/10;
  background: var(--bg-section);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.03);
}

.related-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.related-card h3 a {
  color: var(--text);
}

.related-card h3 a:hover {
  color: var(--primary);
}

.related-card .meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Bottom Ad Banner === */
.ad-banner-bottom {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 20px;
}

.ad-banner-bottom .ad-slot {
  height: 100px;
  margin: 0;
}

/* === LP Responsive === */
@media (max-width: 1024px) {
  .lp-article-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sidebar-toc {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .lp-header h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .lp-header .lp-summary {
    font-size: 17px;
  }

  .lp-pick {
    grid-template-columns: 1fr;
  }

  .lp-section h2 {
    font-size: 22px;
  }

  .lp-section p,
  .lp-section li {
    font-size: 16px;
  }

  .lp-cta {
    flex-direction: column;
    text-align: center;
  }

  .lp-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-ad-tall {
    min-height: 250px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .ad-slot-inline {
    height: 100px;
  }

  .ad-slot-inline-tall {
    height: 200px;
  }
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--text);
}

/* === Footer === */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-disclaimer {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}

/* === Category Page === */
.category-page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 0;
}

.category-page-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.category-page-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Section inner container */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.category-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
}

.category-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.category-list-item:first-child {
  padding-top: 0;
}

.category-list-item-image {
  aspect-ratio: 4/3;
  background: var(--bg-section);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-list-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-list-item h3 a {
  color: var(--text);
}

.category-list-item h3 a:hover {
  color: var(--primary);
}

.category-list-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === Mobile Menu === */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  overflow-y: auto;
  padding: 16px 20px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a:hover {
  color: var(--primary);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .deals-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 52px;
  }

  body {
    font-size: 16px;
  }

  .nav-links,
  .nav-right .search-box {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card-content {
    padding: 24px;
  }

  .hero-card-content h2 {
    font-size: 22px;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .category-section {
    grid-template-columns: 1fr;
  }

  .category-block:first-child {
    border-right: none;
    padding-right: 0;
  }

  .category-block:last-child {
    padding-left: 0;
  }

  .category-block + .category-block {
    border-top: 1px solid var(--border);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .lp-header h1 {
    font-size: 26px;
  }

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

  .category-list-item-image {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 18px;
  }
}
