/* ============================================================
   Winny Math — blog & article styles
   Loads AFTER styles.css and reuses its :root variables, header,
   footer, .container, .kicker and .btn classes for consistency.
   ============================================================ */

.post-main { padding: 36px 0 10px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green-600); }

.post-head { max-width: 760px; margin: 0 auto; }
.post-title { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; margin: 12px 0 16px; }
.post-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.post-avatar { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: var(--grad-soft);
  display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.post-meta b { color: var(--ink); }

.post-hero { position: relative; max-width: 760px; margin: 0 auto 30px; height: 220px; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--grad-vivid); }
.post-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-hero .hero-cap { position: absolute; left: 22px; bottom: 16px; color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: 1.02rem; text-shadow: 0 1px 8px rgba(0,0,0,.25); }

.post-body { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 38px 44px; box-shadow: var(--shadow-sm); }
.post-body p { margin: 0 0 1.1rem; font-size: 1.06rem; }
.post-body h2 { font-size: 1.5rem; margin: 2rem 0 .7rem; }
.post-body h3 { font-size: 1.16rem; margin: 1.3rem 0 .35rem; }
.post-body a { color: var(--green-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.post-lede { font-size: 1.16rem; color: var(--ink); }
.post-lede strong { color: var(--green-600); }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 22px; }
.toc strong { font-family: var(--font-head); color: var(--ink); display: block; margin-bottom: 6px; font-size: .95rem; }
.toc ul { display: grid; gap: .3rem; }
.toc a { color: var(--green-600); font-size: .98rem; }

.post-checklist { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.post-checklist li { position: relative; padding-left: 2rem; color: var(--slate); }
.post-checklist li::before { content: "✓"; position: absolute; left: 0; top: .15rem; color: #fff; background: var(--green);
  width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 800; }
.post-checklist strong { color: var(--ink); }

.post-tip { border-left: 4px solid var(--green); background: var(--green-50); border-radius: 0 12px 12px 0;
  padding: 14px 18px; margin: 1.4rem 0; color: var(--ink); }
.post-tip b { color: var(--green-600); }

.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.2rem 0 1.4rem; }
.fact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.fact-card .num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--green-600); }
.fact-card .lab { font-size: .86rem; color: var(--muted); }

.post-faq h3 { font-size: 1.14rem; margin: 1.3rem 0 .35rem; }
.post-faq p { color: var(--muted); }

.post-cta { text-align: center; background: var(--grad-vivid); border-radius: var(--radius-lg); padding: 32px 26px; color: #fff; margin: 30px 0; }
.post-cta h3 { color: #fff; font-size: 1.45rem; margin: 0 0 8px; }
.post-cta p { color: rgba(255,255,255,.94); max-width: 48ch; margin: 0 auto 18px; }
.post-cta .btn-white { background: #fff; color: var(--green-600); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.post-cta .btn-white:hover { color: var(--green); transform: translateY(-2px); }

.post-author { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 20px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); max-width: 760px; margin-left: auto; margin-right: auto; }
.post-author p { margin: 0; font-size: .95rem; color: var(--muted); }
.post-author b { color: var(--ink); }

/* ---------- comparison tables (cost guide / Mathify comparison) ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.comparison-table th, .comparison-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table th { font-family: var(--font-head); font-weight: 700; color: var(--ink); background: #f4faf4; }
.comparison-table td b { color: var(--ink); }
.comparison-table .hl { background: #f0fbf0; }
.table-note { color: var(--muted); font-size: .8rem; margin-top: 6px; }

/* ---------- blog index ---------- */
.blog-hero { text-align: center; max-width: 720px; margin: 0 auto; padding: 46px 0 6px; }
/* The hero heading is the page's H1 (SEO) but keeps the visual weight of an H2. */
.blog-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.blog-hero p { color: var(--muted); font-size: 1.1rem; }
.blog-list { max-width: 820px; margin: 0 auto; display: grid; gap: 20px; padding: 22px 0 50px; }
.blog-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6dbe6; text-decoration: none; }
.blog-card .cat { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--green-600); }
.blog-card h2 { font-size: 1.32rem; margin: .3rem 0 .45rem; }
.blog-card p { color: var(--muted); margin: 0; font-size: 1rem; }
.blog-card .more { display: inline-block; margin-top: .7rem; color: var(--green-600); font-weight: 700; font-family: var(--font-head); font-size: .95rem; }

@media (max-width: 720px) {
  .post-body { padding: 26px 20px; }
  .fact-grid { grid-template-columns: 1fr; }
  .post-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .post-meta > span { min-width: 0; }
}
