/* v6 — one seamless hero + tool section. Classes only (CSP). */
.studio-stage.has-hero-head { justify-content: flex-start; }
.studio .studio-stage.has-hero-head, .page-home .studio .studio-stage.has-hero-head, .tool-hero .studio .studio-stage.has-hero-head { padding-top: 14px !important; }
.hero-head { width: 100%; max-width: 820px; margin: 0 auto 4px; padding: 2px 64px 0; text-align: center; position: relative; z-index: 2; flex: none; }
.hero-head.home-lead, .hero-head.page-intro { padding-bottom: 0; margin-bottom: 4px; }
.hero-head h1 { margin: 0; text-wrap: balance; }
.hero-head p { margin: 6px auto 0; max-width: 40rem; text-wrap: balance; }
.page-home .hero-head h1, .tool-hero .hero-head h1 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.studio-stage:fullscreen .hero-head, .studio-stage.pseudo-fullscreen .hero-head, body.presenting .hero-head, body.embed-mode .hero-head { display: none; }
@media (max-width: 640px) {
  .hero-head { padding: 0 44px; }
  .hero-head h1, .page-home .hero-head h1, .tool-hero .hero-head h1 { font-size: 1.3rem; line-height: 1.25; }
  .hero-head p { font-size: 0.9rem; line-height: 1.4; }
  .studio .studio-stage.has-hero-head { padding-top: 12px !important; }
}
.studio-stage.has-hero-head .wheels-row .wheel-wrap { margin-top: 16px !important; }
.page-home .hero-head, .tool-hero .hero-head { max-width: 900px; }

/* ---------- Related guides from the blog ---------- */
.related-blog .section-head { margin-bottom: 6px; }
.related-blog-lede { max-width: 720px; margin: 0 auto 22px; text-align: center; color: var(--text-secondary); }
.blog-guide-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1120px; }
.blog-guide-grid > li { display: flex; min-width: 0; }
.card.blog-guide-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; width: 100%; border-radius: 18px; text-align: left; }
.card.blog-guide-card:hover { transform: translateY(-3px); }
.blog-guide-card .bg-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #fff7f2; border-bottom: 1px solid var(--border); overflow: hidden; }
html[data-theme="dark"] .blog-guide-card .bg-thumb { background: #0b1220; }
.blog-guide-card .bg-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; display: block; transition: transform 0.3s ease; }
.blog-guide-card:hover .bg-thumb img { transform: scale(1.04); }
.blog-guide-card .bg-topic { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); border: 1px solid #ffd2bd; color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.blog-guide-card .bg-topic span { color: var(--accent); font-size: 0.72rem; }
html[data-theme="dark"] .blog-guide-card .bg-topic { background: rgba(15, 23, 42, 0.9); border-color: rgba(255, 69, 0, 0.4); }
.blog-guide-card .bg-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.blog-guide-card .bg-title { display: block; margin: 0; font-size: 1.04rem; line-height: 1.3; color: var(--text); }
.blog-guide-card .bg-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.5; }
.blog-guide-card .bg-more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 0.86rem; }
.blog-guide-card .bg-more svg { transition: transform 0.2s ease; }
.blog-guide-card:hover .bg-more svg { transform: translateX(3px); }
@media (max-width: 900px) { .blog-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .blog-guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .card.blog-guide-card { flex-direction: row; }
  .blog-guide-card .bg-thumb { width: 112px; min-width: 112px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); }
  .blog-guide-card .bg-topic { display: none; }
  .blog-guide-card .bg-body { padding: 12px 14px; }
  .blog-guide-card .bg-excerpt { -webkit-line-clamp: 2; }
}

/* ---------- homepage: tips ---------- */
.tips-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.tip-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px 16px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.tip-card h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.tip-card p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.tip-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tip-num { position: absolute; right: 12px; top: 10px; font-size: 0.72rem; font-weight: 800; color: color-mix(in srgb, var(--accent) 55%, transparent); letter-spacing: 0.04em; }
.section-more { text-align: center; margin: 18px auto 0; color: var(--text-secondary); font-size: 0.92rem; }
@media (max-width: 900px) { .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tips-grid { grid-template-columns: 1fr; } }

/* ---------- homepage: comparison ---------- */
.cmp-wrap { max-width: 900px; margin: 0 auto !important; }
.cmp-table th, .cmp-table td { vertical-align: top; }
.cmp-table thead th { font-size: 0.86rem; }
.cmp-table tbody th { font-weight: 600; width: 34%; }
.cmp-table .cmp-us { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cmp-table thead .cmp-us { color: var(--accent); }
.cmp-note { display: block; color: var(--text-secondary); font-size: 0.84rem; line-height: 1.45; margin-top: 2px; }
.cmp-yes, .cmp-no, .cmp-part { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 800; }
.cmp-yes { background: #dcfce7; color: #15803d; }
.cmp-no { background: #fee2e2; color: #b91c1c; }
.cmp-part { background: #fef3c7; color: #b45309; }
html[data-theme="dark"] .cmp-yes { background: rgba(34, 197, 94, 0.18); color: #86efac; }
html[data-theme="dark"] .cmp-no { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
html[data-theme="dark"] .cmp-part { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
@media (max-width: 600px) { .cmp-table th, .cmp-table td { padding: 9px 10px; } .cmp-table tbody th { width: 30%; font-size: 0.86rem; } }

/* ---------- small Gallery link in the desktop nav ---------- */
.nav-desktop a.nav-gallery { font-size: 0.86rem; }
.below-fold .content-section p.related-blog-lede, .content-section p.related-blog-lede { margin: 0 auto 22px; max-width: 720px; text-align: center; }
.below-fold .content-section p.section-more { margin: 20px auto 0; text-align: center; }
.below-fold .tip-card p, .below-fold .cmp-table p { margin: 0; }

/* ---------- v6b: topic thumbnails (16:9) ---------- */
.blog-guide-card .bg-thumb img { object-fit: cover; padding: 0; }
.card-grid .card.card-has-thumb:has(.blog-thumb) { flex-direction: column; align-items: stretch; min-height: 0; border-radius: 18px; }
.card-grid .card.card-has-thumb .card-thumb.blog-thumb { width: 100%; min-width: 0; height: auto; aspect-ratio: 16 / 9; object-fit: cover; padding: 0; border-right: 0; background: none; border-bottom: 1px solid var(--border); }
@media (max-width: 600px) {
  .blog-guide-card .bg-thumb { width: 132px; min-width: 132px; aspect-ratio: 16 / 9; align-self: center; margin: 12px 0 12px 12px; border: 1px solid var(--border); border-radius: 10px; }
}
/* homepage: no wheel-name label above the wheel (the hero H1 already names the page) */
.page-home .wheel-title-shown, .tool-hero .wheel-title-shown { display: none; }
/* v6c: mobile hero — title gets the full width; stage icons sit in their own small row above it */
@media (max-width: 600px) {
  .studio-stage.has-hero-head .hero-head { padding: 0 12px; margin-top: 30px; }
  .studio-stage.has-hero-head .hero-head h1, .page-home .studio-stage.has-hero-head .hero-head h1, .tool-hero .studio-stage.has-hero-head .hero-head h1 { font-size: clamp(1.12rem, 5vw, 1.3rem); line-height: 1.22; letter-spacing: -0.01em; }
  .studio-stage.has-hero-head .hero-head p { max-width: none; }
}
