/* ============================================================
   Rev Room — blog / Ecommerce Guides
   Layered on top of styles.css; reuses its tokens so the blog
   can't drift from the main site's palette or type.
   ============================================================ */

.wrap-narrow { max-width: 760px; }

/* ---------- Nav active state ---------- */
.nav-links a.active { color: var(--coral); font-weight: 600; }

/* ---------- Blog index hero ---------- */
.blog-hero { padding: 140px 0 56px; text-align: center; }
.blog-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin: 14px 0 18px; }
.blog-sub {
  max-width: 620px; margin: 0 auto; font-size: 1.12rem;
  line-height: 1.65; color: var(--ink-soft);
}

/* ---------- Guides listing ---------- */
.guides { padding: 24px 0 96px; }
.guides-h {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 56px 0 6px;
}
.guides-h:first-child { margin-top: 0; }
.guides-lede { margin: 0 0 28px; color: var(--ink-faint); font-size: 1rem; }

.guide-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.guide-card {
  display: flex; flex-direction: column;
  padding: 26px 26px 22px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-lg);
}
.guide-card h3 {
  font-size: 1.12rem; line-height: 1.35; letter-spacing: 0.01em;
  margin: 0 0 10px; color: var(--ink);
}
.guide-card p {
  font-size: .95rem; line-height: 1.6; margin: 0 0 18px;
  color: var(--ink-soft); flex: 1;
}
.guide-more { font-size: .9rem; font-weight: 600; color: var(--coral); }

/* ---------- Post ---------- */
.post { padding: 130px 0 96px; }
.back {
  display: inline-block; margin-bottom: 26px;
  font-size: .92rem; font-weight: 600;
  color: var(--coral); text-decoration: none;
}
.back:hover { text-decoration: underline; }

.post h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.16; margin: 0 0 14px;
}
.post-meta {
  font-size: .88rem; color: var(--ink-faint);
  margin: 0 0 40px; padding-bottom: 22px;
  border-bottom: 1px solid rgba(20, 20, 43, 0.08);
}

/* ---------- Article prose ---------- */
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }

.prose h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.25; color: var(--ink);
  margin: 52px 0 16px;
}
.prose h3 {
  font-size: 1.18rem; color: var(--ink);
  margin: 36px 0 12px; letter-spacing: 0.01em;
}
.prose p { margin: 0 0 20px; font-size: inherit; color: inherit; }
.prose strong { color: var(--ink); font-weight: 650; }

.prose a { color: var(--coral); font-weight: 500; }
.prose a:hover { text-decoration: underline; }

.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--coral); }

.prose hr {
  border: 0; height: 1px; margin: 44px 0;
  background: rgba(20, 20, 43, 0.1);
}

.prose blockquote {
  margin: 0 0 22px; padding: 16px 22px;
  border-left: 3px solid var(--coral);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 12px 12px 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .89em; padding: 2px 6px; border-radius: 6px;
  background: rgba(20, 20, 43, 0.06); color: var(--ink);
}
.prose pre {
  margin: 0 0 22px; padding: 18px 20px; overflow-x: auto;
  border-radius: 14px; background: rgba(20, 20, 43, 0.05);
  border: 1px solid rgba(20, 20, 43, 0.07);
}
.prose pre code { background: none; padding: 0; font-size: .88rem; line-height: 1.6; }

/* Tables scroll on their own rather than breaking the page width */
.table-scroll { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
/* No min-width: a blanket minimum forced even simple two-column tables to
   overflow and scroll on a phone. Header cells stay nowrap, so a genuinely wide
   table still pushes past the viewport and gets the scroll hint; narrow ones
   now just fit. */
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td {
  text-align: left; padding: 11px 14px;
  border-bottom: 1px solid rgba(20, 20, 43, 0.08);
}
.prose th {
  font-weight: 650; color: var(--ink); white-space: nowrap;
  border-bottom: 2px solid rgba(20, 20, 43, 0.14);
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:last-child td strong { color: var(--ink); }

/* Trailing italics line = the disclaimer */
.prose > p > em { color: var(--ink-faint); font-size: .92rem; }

/* ---------- End-of-post CTA ---------- */
.post-cta {
  margin-top: 56px; padding: 34px 32px; text-align: center;
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.post-cta h3 { margin: 0 0 10px; font-size: 1.35rem; color: var(--ink); }
.post-cta p {
  margin: 0 auto 22px; max-width: 460px;
  font-size: 1rem; line-height: 1.6; color: var(--ink-soft);
}

@media (max-width: 720px) {
  .post { padding: 108px 0 72px; }
  .blog-hero { padding: 112px 0 40px; }
  .prose { font-size: 1.02rem; }
  .guide-grid { grid-template-columns: 1fr; }
}

/* A table wider than the screen scrolls, but nothing told the reader that —
   the last column just looked clipped. Same treatment the homepage uses for its
   dashboard screenshots. The .is-scrollable class is set by script (below) only
   when the table genuinely overflows, so tables that fit stay untouched. */
.table-scroll.is-scrollable {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, rgba(0, 0, 0, 0.5) 100%);
  mask-image: linear-gradient(90deg, #000 90%, rgba(0, 0, 0, 0.5) 100%);
}
.table-scroll.is-scrollable + .table-hint {
  display: block;
  margin: -14px 0 24px;
  text-align: right;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.table-hint { display: none; }
