/* blog.css — loaded AFTER style.css, never instead of it.
   Every colour here is a var from style.css's :root so the blog cannot drift
   from the studio site. Add nothing that duplicates a rule already in style.css. */

/* ---- Layout ---------------------------------------------------------- */

.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 760px) { .blog-wrap, .article-wrap { padding: 0 20px; } }

.blog-hero { padding: 96px 0 44px; }
.blog-hero h1 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 800; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin: 12px 0 16px;
}
.blog-hero p.lead { max-width: 640px; }

/* ---- Breadcrumb ------------------------------------------------------ */

.crumbs { font-size: .82rem; font-weight: 700; color: var(--muted-2); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--txt); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---- Index grid ------------------------------------------------------ */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid var(--border); border-radius: var(--r); padding: 26px;
  text-decoration: none; color: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.post-card:hover {
  transform: translateY(-6px); border-color: rgba(139,92,246,.45);
  box-shadow: 0 24px 60px rgba(0,0,0,.23);
}
.post-card h2 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0;
}
.post-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.post-meta { font-size: .74rem; font-weight: 800; letter-spacing: .09em;
             text-transform: uppercase; color: var(--muted-2); }
.post-card .go { margin-top: auto; font-weight: 800; font-size: .88rem; color: var(--accent-3); }

/* ---- Article body ---------------------------------------------------- */

.article-body { padding-bottom: 40px; }
.article-body > p, .article-body > ul, .article-body > ol {
  color: #dfe2f3; font-size: 1.05rem; line-height: 1.75; margin: 0 0 20px;
}
.article-body h2 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 1.85rem; font-weight: 800; letter-spacing: -.035em;
  margin: 46px 0 16px; scroll-margin-top: 90px;
}
.article-body h3 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 10px; }
.article-body a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--txt); }
.article-body strong { color: var(--txt); font-weight: 700; }

/* Honesty note — deliberately plain, not a decorated "callout". A disclosure
   that looks like marketing furniture reads as marketing. */
.disclosure {
  border-left: 3px solid var(--accent);
  background: rgba(139,92,246,.07);
  padding: 16px 20px; border-radius: 0 12px 12px 0;
  color: var(--muted); font-size: .93rem; line-height: 1.65; margin: 0 0 28px;
}
.disclosure strong { color: var(--txt); }

/* ---- Contents -------------------------------------------------------- */

.toc { border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin: 0 0 34px;
       background: rgba(255,255,255,.03); }
.toc h2 { font-size: .74rem !important; letter-spacing: .11em; text-transform: uppercase;
          color: var(--muted-2); margin: 0 0 12px !important; font-weight: 900; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; color: var(--muted); font-size: .95rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--txt); text-decoration: underline; }

/* ---- App entry ------------------------------------------------------- */

.app-entry {
  border: 1px solid var(--border); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  padding: 26px; margin: 0 0 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
/* Our own app is visually distinct so a reader can see at a glance which entry
   is the publisher's — the disclosure says it, this shows it. */
.app-entry.is-ours { border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.08); }

.app-entry-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.app-rank { font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
            font-size: 1.5rem; font-weight: 800; color: var(--accent-3); line-height: 1; }
.app-entry h3 { margin: 0 !important; font-size: 1.35rem !important; }
.app-badge { font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
             padding: 4px 9px; border-radius: 999px; background: rgba(139,92,246,.22);
             color: #d8c8ff; border: 1px solid rgba(139,92,246,.35); }
.app-badge.ours { background: rgba(240,171,252,.16); color: var(--accent-3);
                  border-color: rgba(240,171,252,.3); }

.app-entry dl { margin: 14px 0 0; display: grid; grid-template-columns: 108px 1fr; gap: 8px 16px; }
.app-entry dt { font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
                color: var(--muted-2); padding-top: 3px; }
.app-entry dd { margin: 0; color: #dfe2f3; font-size: .96rem; line-height: 1.6; }
.app-entry dd ul { margin: 0; padding-left: 18px; }
.app-entry dd li { margin: 3px 0; }
@media (max-width: 560px) {
  .app-entry dl { grid-template-columns: 1fr; gap: 2px 0; }
  .app-entry dt { padding-top: 12px; }
}

.app-links { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Comparison table ------------------------------------------------ */

/* Wide content must scroll inside itself; the page body must never scroll sideways. */
.table-scroll { overflow-x: auto; margin: 0 0 28px; border: 1px solid var(--border); border-radius: 16px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem; }
.cmp th, .cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp th { font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
          color: var(--muted-2); background: rgba(255,255,255,.03); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr.is-ours { background: rgba(139,92,246,.09); }
.cmp td { color: #dfe2f3; }
.cmp td a { color: var(--accent-3); text-decoration: none; font-weight: 700; }
.cmp td a:hover { text-decoration: underline; }

/* ---- FAQ ------------------------------------------------------------- */

.faq-list { margin: 0 0 34px; }
.faq-list details {
  border: 1px solid var(--border); border-radius: 14px; padding: 0; margin-bottom: 10px;
  background: rgba(255,255,255,.03);
}
.faq-list summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--txt);
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--muted-2); font-weight: 800; font-size: 1.2rem; }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p { padding: 0 20px 18px; margin: 0; color: var(--muted); line-height: 1.7; }

/* ---- Related --------------------------------------------------------- */

.related { border-top: 1px solid var(--border); padding-top: 34px; margin-top: 10px; }
.related h2 { font-size: 1.3rem !important; margin-top: 0 !important; }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.related-list a {
  display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px;
  color: var(--txt); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.4;
  background: rgba(255,255,255,.03); transition: border-color .2s ease, transform .2s ease;
}
.related-list a:hover { border-color: rgba(139,92,246,.45); transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .post-card, .related-list a, .app-entry { transition: none !important; }
  .post-card:hover, .related-list a:hover { transform: none; }
}
