:root {
  --blog-ink: #f7efd0;
  --blog-muted: #b7c9c0;
  --blog-paper: #091e17;
  --blog-panel: #0e2820;
  --blog-line: rgba(212, 175, 55, 0.32);
  --blog-accent: #f0d56a;
  --blog-highlight: #12382c;
}

.blog-page {
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(46, 230, 198, 0.055), transparent 38%),
    linear-gradient(325deg, rgba(212, 175, 55, 0.045), transparent 48%),
    var(--blog-paper);
  color: var(--blog-ink);
}

.blog-page h1,
.blog-page h2,
.blog-page h3 {
  background: none;
  color: var(--blog-ink);
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.blog-index-head h1,
.blog-article-head h1 {
  color: var(--blog-accent);
}

.blog-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.blog-index-head,
.blog-article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: 44px;
  align-items: center;
  padding: 42px 0 54px;
  border-bottom: 1px solid var(--blog-line);
}

.blog-eyebrow {
  color: var(--blog-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-index-head h1,
.blog-article-head h1 {
  max-width: 760px;
  margin: 12px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.04;
}

.blog-index-head p,
.blog-article-head p {
  max-width: 660px;
  color: var(--blog-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-index-head img,
.blog-article-head img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--blog-highlight);
}

/* Signature cover frame: dark green glass, gold border, teal glow. */
.blog-cover {
  position: relative;
  display: block;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(212, 175, 55, 0.62);
  border-radius: 18px;
  background: rgba(14, 40, 32, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 26px rgba(46, 230, 198, 0.16);
  overflow: hidden;
}
.blog-cover::after {
  /* A light green-to-clear wash ties every photo into the palette. */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 38, 31, 0.38));
  pointer-events: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  padding-top: 36px;
}

.blog-card {
  min-width: 0;
  border: 1px solid var(--blog-line);
  border-radius: 8px;
  padding: 14px;
  background: var(--blog-panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.blog-card:hover { border-color: var(--blog-accent); transform: translateY(-2px); }

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

.blog-card a:focus-visible,
.blog-back:focus-visible,
.blog-cta:focus-visible {
  outline: 3px solid var(--blog-accent);
  outline-offset: 4px;
}

.blog-card .blog-cover { margin-bottom: 16px; border-radius: 14px; padding: 4px; }
.blog-card .blog-cover::after { inset: 4px; border-radius: 10px; }
.blog-card a:hover .blog-cover {
  border-color: var(--blog-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(46, 230, 198, 0.3);
}

.blog-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  background: var(--blog-highlight);
  transition: filter 180ms ease;
}

.blog-card a:hover img {
  filter: saturate(1.12);
}

.blog-card h2,
.blog-card h3 {
  margin: 8px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.17;
  color: var(--blog-ink);
}

.blog-section-heading {
  padding-top: 38px;
}

.blog-section-heading h2 {
  margin: 8px 0;
  color: var(--blog-accent);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  font-weight: 500;
}

.blog-section-heading > p:last-child {
  color: var(--blog-muted);
}

.blog-read-link {
  color: var(--blog-accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.blog-card p,
.blog-card time {
  color: var(--blog-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.blog-article-head {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
}

.blog-back {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 24px;
  color: var(--blog-accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.blog-article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 0 24px;
}

.blog-article-body > p,
.blog-article-body section p {
  color: var(--blog-muted);
  font-size: 1.08rem;
  line-height: 1.82;
}

.blog-article-body h2 {
  margin: 36px 0 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.blog-disclosure-note {
  margin: 38px 0;
  border-left: 4px solid var(--blog-accent);
  padding: 16px 20px;
  background: var(--blog-panel);
  color: var(--blog-muted);
  line-height: 1.65;
}

.blog-related {
  border-top: 1px solid var(--blog-line);
  padding-top: 28px;
}

.blog-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 12px 18px;
  background: var(--blog-accent);
  color: #10261d;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 800px) {
  .blog-index-head,
  .blog-article-head {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }

  .blog-index-head img,
  .blog-article-head img {
    max-height: 380px;
  }

  .blog-index-head h1,
  .blog-article-head h1 {
    font-size: 3rem;
  }

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

@media (max-width: 540px) {
  .blog-shell {
    width: min(100% - 28px, 720px);
    padding-top: 20px;
  }

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

  .blog-card h2,
  .blog-card h3 {
    font-size: 1.4rem;
  }

  .blog-index-head h1,
  .blog-article-head h1 {
    font-size: 2.35rem;
  }
}

.blog-meta {
  margin: 0 0 12px;
  line-height: 1.6;
  color: var(--blog-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-more {
  margin-top: 24px;
  padding-bottom: 32px;
}

.blog-byline { color: var(--blog-accent); }

.blog-checklist {
  margin: 40px 0 0;
  padding: 22px 24px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 16px;
  background: rgba(14, 40, 32, 0.6);
  box-shadow: 0 0 22px rgba(46, 230, 198, 0.1);
}
.blog-checklist h2 { margin-top: 0; font-size: 1.4rem; }
.blog-checklist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.blog-checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--blog-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.blog-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 198, 0.6);
  color: #2ee6c6;
  font-size: 0.75rem;
  font-weight: 800;
}

.blog-author {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 40px 0 0;
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 18px;
  background: rgba(14, 40, 32, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 26px rgba(46, 230, 198, 0.14);
}
.blog-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 14px rgba(46, 230, 198, 0.3);
}
.blog-author .blog-eyebrow { margin: 0; }
.blog-author-name {
  margin: 4px 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  color: var(--blog-ink);
}
.blog-author p:not(.blog-eyebrow):not(.blog-author-name) { margin: 0 0 10px; color: var(--blog-muted); line-height: 1.65; }
.blog-author a { color: var(--blog-accent); font-weight: 700; text-underline-offset: 4px; }

/* Tablets (iPad portrait 768–834, landscape 1024–1180). */
@media (min-width: 801px) and (max-width: 1180px) {
  .blog-index-head,
  .blog-article-head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    gap: 32px;
  }
  .blog-index-head h1,
  .blog-article-head h1 { font-size: clamp(2.6rem, 4.6vw, 3.4rem); }
  .blog-grid { gap: 24px 18px; }
}
@media (min-width: 801px) and (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .blog-author { grid-template-columns: 1fr; }
  .blog-checklist { padding: 18px; }
}

/* Comparison pages. */
.compare-answer { font-size: 1.08rem; line-height: 1.55; }
.compare-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; }
.compare-table caption { text-align: left; font-weight: 700; margin-bottom: 0.5rem; }
.compare-table th, .compare-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid rgba(240, 213, 106, 0.2); text-align: left; vertical-align: top; }
.compare-table thead th { color: var(--blog-accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table tbody th { font-weight: 700; width: 28%; }
.compare-faq-item { margin: 0.5rem 0; }
.compare-faq-item summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.compare-disclaimer { font-size: 0.82rem; opacity: 0.75; }
.compare-nav ul, .compare-cards { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.compare-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--blog-accent); font-weight: 700; }
.compare-card a { display: block; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid rgba(240, 213, 106, 0.3); color: inherit; text-decoration: none; }
.compare-card h2 { margin: 0 0 0.35rem; }
