/* MyGymGate blog (web/blog, generated by scripts/blog). Builds on site.css tokens. */
.blog-page main { padding-top: 74px; }
.blog-hero { padding: clamp(56px, 8vw, 96px) 0 30px; }
.blog-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; margin-bottom: 18px; max-width: 16ch; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cat-chips a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--chalk); padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--iron-2); }
.cat-chips a:hover { box-shadow: inset 0 0 0 1.5px var(--lime); color: var(--lime); }
.blog-list { padding-bottom: 60px; }
.blog-cat { padding: 34px 0 10px; scroll-margin-top: 90px; }
.blog-cat > h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--graphite); border-radius: 20px; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px rgba(200,255,46,.5); }
.post-card h3 { font-size: 20px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.post-meta { color: var(--dim); font-size: 13px; }
.post-cat { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
@media (max-width: 960px) { .post-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-cards { grid-template-columns: 1fr; } }

/* Post */
.post-wrap { max-width: 1120px; padding-top: 34px; padding-bottom: 40px; }
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs span { margin: 0 6px; }
.post-head { max-width: 780px; }
.post-head h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; margin: 12px 0 18px; line-height: 1.08; }
.post-dek { color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; }
.post-byline { color: var(--dim); font-size: 14px; margin-top: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-byline span { color: var(--chalk); font-weight: 600; }
.post-cover { width: 100%; border-radius: 20px; margin-top: 30px; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; margin-top: 36px; }
.post-toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.post-toc .toc-t { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.post-toc a { color: var(--muted); text-decoration: none; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); line-height: 1.35; }
.post-toc a:hover { color: var(--chalk); border-color: var(--lime); }
@media (max-width: 960px) { .post-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .post-toc { display: none; } }

.prose { font-size: 18px; line-height: 1.75; color: #D9DAD4; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; color: var(--chalk); margin-top: 2em; scroll-margin-top: 96px; }
.prose h3 { font-size: 21px; line-height: 1.3; color: var(--chalk); margin-top: 1.6em; scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose p:first-child { font-size: 20px; color: var(--chalk); }
.prose a { color: var(--lime); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--chalk); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--lime); }
.prose blockquote { margin-left: 0; padding: 16px 20px; border-left: 3px solid var(--lime); background: var(--iron-2); border-radius: 0 14px 14px 0; color: var(--chalk); }
.prose code { font-size: .88em; background: var(--graphite); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--iron-2); padding: 16px; border-radius: 14px; overflow-x: auto; box-shadow: inset 0 0 0 1px var(--line); white-space: pre-wrap; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: 14px; }
.table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--graphite); color: var(--chalk); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) { .prose { font-size: 17px; } .prose p:first-child { font-size: 18px; } }

.post-faq { max-width: 720px; margin: 56px 0 0 276px; }
.post-faq h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.post-faq details { background: var(--graphite); border-radius: 16px; padding: 18px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.post-faq details + details { margin-top: 10px; }
.post-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; float: right; color: var(--lime); font-weight: 700; }
.post-faq details[open] summary::after { content: "–"; }
.post-faq p { color: var(--muted); margin-top: 10px; line-height: 1.6; }
@media (max-width: 960px) { .post-faq { margin-left: 0; } }

.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 30px 32px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(200,255,46,.12), rgba(35,38,45,.7)); box-shadow: inset 0 0 0 1px rgba(200,255,46,.25); }
.post-cta h3 { font-size: 24px; margin-bottom: 6px; }
.post-cta p { color: var(--muted); max-width: 560px; }
.post-cta .btn { flex: none; }
@media (max-width: 720px) { .post-cta { flex-direction: column; align-items: flex-start; padding: 24px; } }
.post-related { margin-top: 64px; }
.post-related > h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 20px; }
