/* Shared blog styles: responsive typography and layout */

.container { max-width: 980px; width: 100%; margin: 0 auto; padding: clamp(12px, 4vw, 28px); }
.prose { text-align: left; line-height: 1.55; }

/* Fluid type for headings and body copy */
.prose h1 { font-size: clamp(1.9rem, 2.2vw + 1.2rem, 2.8rem); margin: 0.2rem 0 0.6rem; }
.prose h2 { font-size: clamp(1.25rem, 1.3vw + 0.9rem, 1.7rem); margin: 1.2rem 0 0.4rem; }
.prose p, .prose li { font-size: clamp(1.02rem, 0.45vw + 0.98rem, 1.25rem); }
.muted { opacity: .85; }

/* Hero area */
.hero { margin: 12px 0 10px; display: grid; gap: 8px; place-items: center; text-align: center; }
.eyebrow { font-size: clamp(.85rem, .2vw + .8rem, 1rem); letter-spacing: .04em; opacity: .9; }
.title { font-size: clamp(1.9rem, 2.2vw + 1.2rem, 2.8rem); margin: 0; }
.subtitle { font-size: clamp(1rem, .4vw + .95rem, 1.2rem); opacity: .9; }
.cta { display: inline-block; margin-top: 6px; padding: 10px 16px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.cta:hover { background: rgba(255,255,255,.20); }

/* Feature list */
.features { display: grid; gap: 12px; margin: 12px 0; padding: 0; grid-template-columns: repeat(1, minmax(0, 1fr)); }
.feature { list-style: none; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; }
.feature b { display: block; margin-bottom: 4px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Images scale and don’t overflow */
img { max-width: 100%; height: auto; display: block; }
.hero-img { width: 100%; height: auto; border-radius: 8px; }

/* Tables scroll horizontally on small screens */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
table.compare { width: 100%; min-width: 520px; border-collapse: collapse; }
table.compare th, table.compare td { border: 1px solid rgba(255,255,255,.2); padding: 10px; text-align: left; background: rgba(255,255,255,.06); }

/* Simple section wrapper used on some posts */
.section { text-align: left; margin: 26px auto; max-width: 900px; }

/* Link styling: chip-like, with visited inverse */
.prose a:not(.cta) {
  color: #3cb87c;
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color .12s ease;
}
.prose a:not(.cta):visited {
  /* Keep visited very close to normal link color */
  color: #35a36e;
}
.prose a:not(.cta):hover { background: rgba(255, 255, 255, 0.16); }
.prose a:not(.cta):active { background: rgba(255, 255, 255, 0.22); }
.prose a:not(.cta):focus-visible { outline: 2px solid rgba(60,184,124,.8); outline-offset: 2px; }

/* If a link wraps an image, don't apply chip styling */
.prose a:not(.cta):has(img) {
  background: none;
  padding: 0;
  border: none;
  text-decoration: none;
}
.prose a:not(.cta):has(img):hover,
.prose a:not(.cta):has(img):active,
.prose a:not(.cta):has(img):focus-visible {
  background: none;
}

/* Back link, pinned top-left on blog pages */
.back-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  font-size: 0.95rem;
  color: #cfe9dd;
  text-decoration: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 10px;
  border-radius: 8px;
  backdrop-filter:blur(100px);
}
.back-link:hover { background: rgba(255,255,255,.16); }
