/* ═══════════════════════════════════════════════════════
   Cydon Reviews — v2 Editorial Theme
   Navy + Rose + Whip palette, magazine-grade typography
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Variables ──────────────────────────────── */
:root {
  --c-bg:        #fdf8f0;
  --c-surface:   #fffcf7;
  --c-ink:       #253c78;
  --c-ink-soft:  #2e4a8a;
  --c-ink-muted: #8a7565;
  --c-border:    #e8d5c4;
  --c-border-lt: #faf5ed;

  /* Regal Navy header */
  --c-header-from: #2b59c3;
  --c-header-to:   #253c78;

  /* Blush Rose accent — warm CTA pop */
  --c-accent:      #d36582;
  --c-accent-hover:#b8516d;
  --c-accent-light:#fef6e8;
  --c-accent-wash: #fffaf3;

  /* Laser Blue for non-affiliate links */
  --c-link:       #2b59c3;
  --c-link-hover: #253c78;

  /* Tag palette */
  --c-tag-bg:     #f5efe6;
  --c-tag-text:   #253c78;
  --c-tag-hover:  #e8d5c4;

  /* Spacing scale */
  --s-xs:  4px;
  --s-sm:  8px;
  --s-md:  16px;
  --s-lg:  24px;
  --s-xl:  32px;
  --s-2xl: 48px;
  --s-3xl: 64px;

  /* Type scale */
  --t-sm:    0.92rem;
  --t-base:  1.15rem;
  --t-lg:    1.35rem;
  --t-xl:    1.6rem;
  --t-2xl:   2rem;
  --t-3xl:   2.5rem;

  /* Layout */
  --w-container: 860px;
  --w-narrow:    680px;
  --radius:      10px;
  --radius-sm:   6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--t-base);
  line-height: 1.75;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain — very light, disappears on mobile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Links ──────────────────────────────────────────── */
a {
  color: var(--c-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--c-link-hover); }

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: var(--c-accent-light);
  color: var(--c-ink);
}

/* ── Container ──────────────────────────────────────── */
.container {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 var(--s-lg);
  width: 100%;
}

/* ── Accent bar at very top ─────────────────────────── */
.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #d36582 0%, #2b59c3 50%, #d36582 100%);
}

/* ── Header ─────────────────────────────────────────── */
header {
  background: linear-gradient(160deg, var(--c-header-from) 0%, var(--c-header-to) 100%);
  color: white;
  padding: var(--s-2xl) 0;
  margin-bottom: var(--s-3xl);
  position: relative;
}

/* Subtle diagonal texture overlay on header */
header::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.1) 2px,
    rgba(255,255,255,0.1) 4px
  );
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-lg);
  position: relative;
  z-index: 1;
}

header h1 {
  white-space: nowrap;
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-size: var(--t-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
}
header h1 a {
  color: white;
  text-decoration: none;
}
header h1 a:hover { opacity: 0.9; }

header .tagline {
  color: #c9a690;
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Section headings ───────────────────────────────── */
.section-heading {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-size: var(--t-2xl);
  font-weight: 400;
  color: var(--c-ink);
  margin-bottom: var(--s-xl);
  padding-bottom: var(--s-md);
  border-bottom: 2px solid var(--c-border);
  position: relative;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--c-accent);
}

/* ── Post cards ─────────────────────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.post-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: var(--s-xl) var(--s-xl) var(--s-lg);
  border: 1px solid var(--c-border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.post-card:hover {
  border-color: #d6d3d1;
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
}

/* "Latest" badge on first card */
.post-card.is-latest::before {
  content: 'Latest';
  position: absolute;
  top: var(--s-md);
  right: var(--s-md);
  background: var(--c-accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}

.post-card h3 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: var(--s-sm);
  padding-right: var(--s-xl); /* room for badge */
}
.post-card h3 a {
  color: var(--c-ink);
  transition: color 0.2s ease;
}
.post-card h3 a:hover { color: var(--c-accent); }

.post-card .meta {
  color: var(--c-ink-muted);
  font-size: var(--t-sm);
  margin-bottom: var(--s-sm);
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-wrap: wrap;
}

.post-card .reading-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--c-tag-bg);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--c-ink-muted);
  font-weight: 500;
}

.post-card .summary {
  color: var(--c-ink-soft);
  line-height: 1.7;
  margin-bottom: var(--s-md);
}

.post-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
  margin-bottom: var(--s-md);
}

/* Read more link */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--c-accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.read-more:hover { color: var(--c-accent-hover); }
.read-more::after {
  content: '\2192';
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.read-more:hover::after { transform: translateX(4px); }

/* ── Tags ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--c-tag-bg);
  color: var(--c-tag-text);
  padding: 4px 13px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.tag:hover {
  background: var(--c-tag-hover);
  color: var(--c-ink);
}

/* ── Single post ────────────────────────────────────── */
.post-header {
  margin-bottom: var(--s-xl);
  padding-bottom: var(--s-lg);
  border-bottom: 1px solid var(--c-border);
}

.post-header h2 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-size: var(--t-3xl);
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-ink);
  margin-bottom: var(--s-md);
  letter-spacing: -0.01em;
}

.post-header .meta {
  color: var(--c-ink-muted);
  font-size: var(--t-sm);
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-wrap: wrap;
  margin-bottom: var(--s-md);
}

.post-header .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
}

/* FTC Disclosure — elegant side-accent */
.affiliate-disclosure {
  background: var(--c-accent-wash);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--t-sm);
  color: var(--c-ink-muted);
  padding: var(--s-md) var(--s-lg);
  margin-bottom: var(--s-xl);
  line-height: 1.6;
}
.affiliate-disclosure strong {
  color: var(--c-ink-soft);
  font-weight: 600;
}

/* ── Article content ────────────────────────────────── */
.content {
  max-width: var(--w-narrow);
}

.content h1,
.content h2,
.content h3 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-weight: 400;
  color: var(--c-ink);
  position: relative;
}

.content h1 {
  font-size: var(--t-2xl);
  margin-top: var(--s-2xl);
  margin-bottom: var(--s-md);
  padding-left: var(--s-md);
  border-left: 3px solid var(--c-accent);
}

.content h2 {
  font-size: var(--t-xl);
  margin-top: var(--s-2xl);
  margin-bottom: var(--s-md);
  padding-left: var(--s-md);
  border-left: 3px solid #c9a690;
}

.content h3 {
  font-size: var(--t-lg);
  margin-top: var(--s-xl);
  margin-bottom: var(--s-sm);
  color: var(--c-ink-soft);
}

.content p { margin-bottom: var(--s-md); }

.content ul, .content ol {
  margin-bottom: var(--s-md);
  padding-left: var(--s-xl);
}
.content li {
  margin-bottom: var(--s-xs);
  line-height: 1.7;
}
.content li::marker { color: var(--c-ink-muted); }

/* Content links — affiliate-aware styling */
.content a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 89, 195, 0.3);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.content a:hover {
  color: var(--c-link-hover);
  text-decoration-color: var(--c-link-hover);
}

/* Affiliate links (Amazon) get a warm highlight */
.content a[href*="amazon.com"] {
  color: var(--c-accent);
  text-decoration-color: rgba(211, 101, 130, 0.3);
  font-weight: 500;
}
.content a[href*="amazon.com"]:hover {
  color: var(--c-accent-hover);
  text-decoration-color: var(--c-accent-hover);
}
.content a[href*="amazon.com"]::after {
  content: '\2197';
  display: inline-block;
  font-size: 0.75em;
  margin-left: 2px;
  opacity: 0.6;
  vertical-align: super;
}

.content blockquote {
  border-left: 3px solid var(--c-accent);
  padding: var(--s-md) var(--s-lg);
  margin: var(--s-lg) 0;
  background: var(--c-accent-wash);
  color: var(--c-ink-soft);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content code {
  background: var(--c-border-lt);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  color: var(--c-ink);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.content pre {
  background: var(--c-header-to);
  color: #c9d6f0;
  padding: var(--s-lg);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: var(--s-md);
  font-size: 0.88rem;
  line-height: 1.6;
  border: 1px solid #1e3060;
}
.content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.content strong { color: var(--c-ink); font-weight: 600; }

/* Product images — float-right with refined frame */
.content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: var(--s-lg) 0;
  display: block;
  border: 1px solid var(--c-border);
}

/* Float-right images (inline style from posts) get extra treatment */
.content img[style*="float"] {
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.08);
}

/* ── Back link ──────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--s-2xl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--c-border);
  color: var(--c-ink-muted);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
  width: 100%;
}
.back-link:hover { color: var(--c-accent); }

/* ── Footer ─────────────────────────────────────────── */
footer {
  margin-top: var(--s-3xl);
  background: var(--c-header-to);
  color: #c9a690;
  padding: var(--s-2xl) 0 var(--s-xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
}

.footer-section h4 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-weight: 400;
  font-size: var(--t-lg);
  color: #ffeecf;
  margin-bottom: var(--s-md);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.footer-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: #c9a690;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.footer-tag:hover {
  background: rgba(255,255,255,0.18);
  color: #ffeecf;
}

.footer-bottom {
  padding-top: var(--s-lg);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--t-sm);
  color: #8a7b6e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Responsive ─────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  body { font-size: 1.08rem; }
  .container { padding: 0 20px; }
  header { padding: var(--s-xl) 0; margin-bottom: var(--s-2xl); }
  header h1 {
  white-space: nowrap; font-size: var(--t-xl); }

  .header-inner {
    flex-direction: column;
    gap: var(--s-xs);
  }

  .section-heading { font-size: var(--t-xl); margin-bottom: var(--s-lg); }

  .post-card { padding: var(--s-lg); }
  .post-card h3 { font-size: var(--t-lg); }
  .post-header h2 { font-size: var(--t-2xl); }

  .content h1 { font-size: var(--t-xl); }
  .content h2 { font-size: var(--t-lg); }
  .content h3 { font-size: var(--t-base); }

  .footer-bottom {
    flex-direction: column;
    gap: var(--s-sm);
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body { font-size: 1.02rem; line-height: 1.65; }
  body::before { display: none; } /* kill grain on mobile */
  .container { padding: 0 16px; }
  header { padding: var(--s-lg) 0; margin-bottom: var(--s-xl); }
  header h1 {
  white-space: nowrap; font-size: var(--t-lg); }
  header .tagline { font-size: 0.75rem; }

  .section-heading {
    font-size: var(--t-lg);
    margin-bottom: var(--s-md);
    padding-bottom: var(--s-sm);
  }

  .post-card {
    padding: var(--s-md);
    border-radius: var(--radius-sm);
  }
  .post-card h3 { font-size: var(--t-base); padding-right: 0; }
  .post-card.is-latest::before {
    position: static;
    display: inline-block;
    margin-bottom: var(--s-sm);
  }

  .post-header h2 { font-size: var(--t-xl); }
  .post-card .meta { font-size: 0.85rem; }

  .affiliate-disclosure { padding: var(--s-sm) var(--s-md); font-size: 0.88rem; }

  .content h1 { font-size: var(--t-lg); margin-top: var(--s-xl); padding-left: var(--s-sm); }
  .content h2 { font-size: var(--t-base); margin-top: var(--s-xl); padding-left: var(--s-sm); }
  .content h3 { font-size: var(--t-base); margin-top: var(--s-lg); }
  .content ul, .content ol { padding-left: 20px; }
  .content pre { padding: var(--s-md); font-size: 0.82rem; }
  .content blockquote { padding: var(--s-sm) var(--s-md); }

  /* Remove external-link arrow on mobile to save space */
  .content a[href*="amazon.com"]::after { display: none; }

  .back-link { margin-top: var(--s-xl); padding-top: var(--s-md); }

  footer { padding: var(--s-xl) 0 var(--s-md); }
  .footer-section h4 { font-size: var(--t-base); }
}

/* ── Print ──────────────────────────────────────────── */
@media print {
  body::before { display: none; }
  header, footer, .back-link, .affiliate-disclosure { display: none; }
  .content { max-width: 100%; }
  .content a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
}

/* Header nav */
.header-nav {
  display: flex;
  gap: var(--s-md);
  margin-top: var(--s-sm);
}
.header-nav a {
  color: #c9a690;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-nav a:hover { color: white; }

/* Author bio */
.author-bio {
  margin-top: var(--s-2xl);
  padding: var(--s-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.author-bio h4 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-weight: 400;
  font-size: var(--t-lg);
  color: var(--c-ink);
  margin-bottom: var(--s-sm);
}
.author-bio p {
  color: var(--c-ink-soft);
  font-size: var(--t-sm);
  line-height: 1.7;
}
.author-bio a {
  color: var(--c-accent);
  font-weight: 500;
}

/* Email signup */
.email-signup {
  margin-top: var(--s-xl);
  padding: var(--s-lg);
  background: var(--c-accent-wash);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-align: center;
}
.email-signup h4 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-weight: 400;
  font-size: var(--t-xl);
  color: var(--c-ink);
  margin-bottom: var(--s-xs);
}
.email-signup p {
  color: var(--c-ink-soft);
  font-size: var(--t-sm);
  margin-bottom: var(--s-md);
}
.email-signup form {
  display: flex;
  gap: var(--s-sm);
  max-width: 420px;
  margin: 0 auto;
}
.email-signup input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: var(--t-sm);
  font-family: inherit;
}
.email-signup input[type="email"]:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
}
.email-signup button {
  padding: 10px 20px;
  background: var(--c-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.email-signup button:hover { background: var(--c-accent-hover); }
.email-fine-print {
  font-size: 0.78rem !important;
  color: var(--c-ink-muted) !important;
  margin-top: var(--s-sm) !important;
  margin-bottom: 0 !important;
}

/* Related posts */
.related-posts {
  margin-top: var(--s-2xl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--c-border);
}
.related-posts h3 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-weight: 400;
  font-size: var(--t-xl);
  color: var(--c-ink);
  margin-bottom: var(--s-md);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--s-md);
}
.related-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.related-card:hover { border-color: var(--c-accent); }
.related-title {
  color: var(--c-ink);
  font-weight: 500;
  font-size: var(--t-sm);
  line-height: 1.4;
  margin-bottom: var(--s-xs);
}
.related-meta {
  color: var(--c-ink-muted);
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .email-signup form { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
}

/* Comparison tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-lg) 0;
  font-size: var(--t-sm);
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.content thead {
  background: var(--c-ink);
  color: white;
}
.content th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: var(--t-sm);
}
.content td {
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  vertical-align: top;
}
.content tr:nth-child(even) {
  background: var(--c-border-lt);
}
.content tr:hover {
  background: var(--c-accent-wash);
}
.content td a {
  color: var(--c-accent);
  font-weight: 500;
}
@media (max-width: 480px) {
  .content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content th, .content td {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}


/* ── Accessibility ─────────────────────────────────────── */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-ink);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10000;
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Enhanced focus states for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Ensure link underlines are visible */
.content a {
  text-decoration-thickness: 1.5px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .post-card:hover { transform: none; }
  .read-more:hover::after { transform: none; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --c-border: #555;
    --c-ink-muted: #555;
  }
}

.hero-feature {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
}

@media (min-width: 769px) {
    .hero-feature {
        height: 420px;
    }
} @media (max-width: 768px) {
    .hero-feature {
        height: 300px;
    }
}

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

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.hero-overlay h2 {
    font-family: DM Serif Display, Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.hero-overlay h2 a {
    color: white;
    text-decoration: none;
}

.hero-overlay .meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-btn {
    display: inline-block;
    background: var(--c-accent);
    color: white;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 12px;
    text-decoration: none;
}

.hero-btn:hover {
    background: var(--c-accent-hover);
}

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

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

.post-card.has-thumb {
    display: flex;
    flex-direction: column;
}

.card-thumb {
    height: 180px;
    overflow: hidden;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

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

.card-thumb:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-family: DM Serif Display;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-body h3 a {
    color: var(--c-ink);
    text-decoration: none;
    transition: color 0.2s;
}

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

.card-body .summary {
    flex: 1;
    font-size: 0.95rem;
    color: var(--c-ink-soft);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-body .read-more {
    margin-top: auto;
    padding-top: 12px;
}

.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.cat-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cat-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

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

    .hero-feature {
        height: 300px;
    }
    
    .hero-overlay h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-feature {
        height: 240px;
    }

    .card-thumb {
        height: 150px;
    }

    .category-pills {
        gap: 6px;
    }

    .cat-pill {
        font-size: 0.78rem;
        padding: 4px 12px;
    }
}


/* ── Responsive fixes for v2 layout ─────────────────── */

/* Card with thumbnail needs border treatment */
.post-card.has-thumb {
  border-radius: var(--radius);
  overflow: hidden;
}

.post-card.has-thumb .card-body {
  border: 1px solid var(--c-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.post-card.has-thumb .card-thumb {
  border: 1px solid var(--c-border);
  border-bottom: none;
}

/* Title never wraps */
header h1 a {
  white-space: nowrap;
}

/* Category pills scroll horizontally on small screens */
@media (max-width: 600px) {
  .category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .category-pills::-webkit-scrollbar { display: none; }
  .cat-pill { flex-shrink: 0; }
}

/* Hero responsive text */
@media (max-width: 480px) {
  .hero-overlay {
    padding: 16px;
  }
  .hero-overlay h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  .hero-overlay .meta {
    font-size: 0.78rem;
  }
  .hero-btn {
    padding: 8px 18px;
    font-size: 0.82rem;
  }
  .card-body h3 {
    font-size: 1.1rem;
  }
  .card-body .summary {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
  }
}

/* Tablet - single column cards but keep hero */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-feature {
    height: 300px;
    margin-bottom: 32px;
  }
}

/* Desktop wide - ensure cards don't get too wide */
@media (min-width: 769px) {
  .hero-feature {
    height: 420px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}


/* Wider container for laptop/desktop */
@media (min-width: 900px) {
  .container {
    max-width: 1120px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1280px;
  }
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === CTA Buy Buttons === */
.buy-button-wrap {
  margin: 24px 0;
  text-align: center;
}
.buy-button {
  display: inline-block;
  background: #e87722;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(232, 119, 34, 0.25);
}
.buy-button:hover {
  background: #d4691a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 119, 34, 0.35);
}
.buy-button:active {
  transform: translateY(0);
}
.buy-arrow {
  margin-left: 6px;
}
@media (max-width: 768px) {
  .buy-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }
}

/* === Pick / Best Value Badges === */
.pick-badge {
  display: inline-block;
  background: #1a7a3a;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.pick-icon {
  margin-right: 4px;
}

/* ── Ad Containers ─────────────────────────────────── */
.ad-container {
  max-width: 680px;
  margin: 24px auto;
  text-align: center;
  overflow: hidden;
  min-height: 90px;
}

.ad-top {
  margin-top: 0;
  margin-bottom: 24px;
}

.ad-bottom {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid #e8d5c4;
}

.ad-feed {
  max-width: 100%;
  margin: 16px 0;
}

@media (max-width: 480px) {
  .ad-container { margin: 16px auto; min-height: 50px; }
  .ad-bottom { margin-top: 24px; padding-top: 16px; }
}

@media print {
  .ad-container { display: none; }
}
