/* ============================================================
   Blog (2026-10-15) — list, post and rich blocks (app/blog.php)
   ============================================================ */
.blog-index, .blog-post { padding-top: calc(64px + 2.5rem); }
.blog-index__head { margin-bottom: 2rem; }
.blog-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-tag { font-size: .8rem; padding: .35rem .85rem; border-radius: 99px; border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; text-transform: lowercase; transition: var(--transition); }
.blog-tag:hover, .blog-tag.is-active { border-color: var(--pink); color: #fff; background: rgba(237, 25, 83, .12); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { display: flex; flex-direction: column; background: var(--bg-card); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform var(--transition), box-shadow var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
.blog-card__img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(237, 25, 83, .35), rgba(43, 243, 31, .12)); overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.blog-card__tag { align-self: flex-start; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--lime); }
.blog-card__title { font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.35; margin: 0; }
.blog-card__desc { font-size: .88rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.blog-card__meta { margin-top: auto; font-size: .78rem; color: var(--text-muted); opacity: .8; }
.blog-card--featured { grid-column: 1 / -1; flex-direction: row; }
.blog-card--featured .blog-card__img { flex: 0 0 55%; aspect-ratio: auto; min-height: 280px; }
.blog-card--featured .blog-card__body { padding: 2rem; justify-content: center; }
.blog-card--featured .blog-card__title { font-size: 1.6rem; }

.blog-crumbs { font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; }
.blog-crumbs a { color: var(--text-muted); text-decoration: none; }
.blog-crumbs a:hover { color: var(--pink); }
.blog-post__head { max-width: 820px; }
.blog-post__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; color: var(--white); margin: 0 0 1rem; }
.blog-post__lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 .8rem; }
.blog-post__meta { font-size: .82rem; color: var(--text-muted); opacity: .8; }
.blog-post__cover { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 14px; margin: 1.5rem 0 2rem; display: block; }

.blog-post__layout { display: block; margin-top: 1.5rem; }
.blog-post__layout.has-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; align-items: start; }
.blog-toc { position: sticky; top: 90px; font-size: .85rem; }
.blog-toc summary { font-weight: 700; color: var(--white); cursor: pointer; margin-bottom: .6rem; list-style: none; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.blog-toc summary::-webkit-details-marker { display: none; }
.blog-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.blog-toc li a { display: block; padding: .35rem 0 .35rem .9rem; color: var(--text-muted); text-decoration: none; line-height: 1.4; margin-left: -2px; border-left: 2px solid transparent; }
.blog-toc li a:hover { color: #fff; border-left-color: var(--pink); }

.blog-body { max-width: 760px; font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.blog-body > *:first-child { margin-top: 0; }
.blog-body p { margin: 0 0 1.2rem; }
.blog-body h2 { font-size: 1.55rem; font-weight: 800; color: var(--white); margin: 2.6rem 0 1rem; line-height: 1.25; scroll-margin-top: 90px; }
.blog-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin: 2rem 0 .8rem; scroll-margin-top: 90px; }
.blog-body h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin: 1.5rem 0 .6rem; }
.blog-body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.blog-body a.btn { color: #fff; text-decoration: none; }
.blog-body strong { color: var(--white); }
.blog-body mark { background: rgba(43, 243, 31, .18); color: #fff; padding: 0 .2em; border-radius: 3px; }
.blog-body code { background: rgba(255, 255, 255, .08); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
.blog-body ul, .blog-body ol { padding-left: 1.3rem; margin: 0 0 1.3rem; }
.blog-body li { margin-bottom: .45rem; }
.blog-body li::marker { color: var(--pink); }
.blog-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.blog-body blockquote { margin: 1.8rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 3px solid var(--pink); font-size: 1.15rem; font-weight: 600; color: var(--white); }

/* Spreadsheet-style table */
.blog-table { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--border); border-radius: 12px; }
.blog-table table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; min-width: 480px; }
.blog-table th { background: rgba(237, 25, 83, .14); color: var(--white); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: .8rem 1rem; white-space: nowrap; }
.blog-table td { padding: .75rem 1rem; border-top: 1px solid var(--border); }
.blog-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.blog-table tbody tr:hover td { background: rgba(255, 255, 255, .05); }
.blog-table td:first-child { color: var(--white); font-weight: 600; }
.blog-table td.is-yes { color: var(--lime); }
.blog-table td.is-no { color: var(--pink); }

/* Key facts box */
.blog-facts { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.blog-facts__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--lime); margin-bottom: .8rem; }
.blog-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem 1.4rem; margin: 0; }
.blog-facts dt { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.blog-facts dd { margin: .15rem 0 0; font-weight: 700; color: var(--white); line-height: 1.4; }

/* Callouts */
.blog-callout { border-radius: 12px; padding: 1rem 1.2rem; margin: 1.6rem 0; border: 1px solid var(--border); background: var(--bg-card); }
.blog-callout p:last-child, .blog-callout ul:last-child { margin-bottom: 0; }
.blog-callout__title { font-weight: 700; color: var(--white); margin-bottom: .35rem; }
.blog-callout--tip { border-left: 4px solid var(--lime); }
.blog-callout--tip .blog-callout__title::before { content: "\26A1  "; }
.blog-callout--note { border-left: 4px solid #8a8aff; }
.blog-callout--warn { border-left: 4px solid var(--pink); background: rgba(237, 25, 83, .07); }
.blog-callout--warn .blog-callout__title::before { content: "\26A0  "; }

/* Numbered steps */
.blog-steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 1.6rem 0; }
.blog-steps li { counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.4rem; margin-bottom: .6rem; background: var(--bg-card); border-radius: 10px; }
.blog-steps li::marker { content: none; }
.blog-steps li::before { content: counter(step); position: absolute; left: 1rem; top: .85rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }

/* Pros / cons */
.blog-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.blog-pros, .blog-cons { background: var(--bg-card); border-radius: 12px; padding: 1rem 1.2rem; border-top: 3px solid var(--lime); }
.blog-cons { border-top-color: var(--pink); }
.blog-proscons__h { font-weight: 800; color: var(--white); margin-bottom: .5rem; }
.blog-proscons ul { list-style: none; padding: 0 !important; margin: 0 !important; }
.blog-proscons li::marker { content: none; }
.blog-pros li::before { content: "+ "; color: var(--lime); font-weight: 800; }
.blog-cons li::before { content: "\2212  "; color: var(--pink); font-weight: 800; }

/* FAQ */
.blog-faq { margin: 1.6rem 0; }
.blog-faq details { background: var(--bg-card); border-radius: 10px; margin-bottom: .6rem; padding: .9rem 1.1rem; }
.blog-faq summary { cursor: pointer; font-weight: 700; color: var(--white); list-style: none; padding-right: 1.5rem; position: relative; }
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--pink); font-weight: 800; }
.blog-faq details[open] summary::after { content: "\2212"; }
.blog-faq details p { margin: .7rem 0 0; color: var(--text-muted); }

/* Loop player */
.blog-loop { display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: .35rem 1rem; background: var(--bg-card); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.blog-loop .wsap-audio-play { grid-row: 1 / 3; }
.blog-loop__info { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.blog-loop__label { font-weight: 700; color: var(--white); }
.blog-loop__meta { font-size: .78rem; color: var(--lime); font-variant-numeric: tabular-nums; }
.blog-loop .wsap-audio-progress { grid-column: 2; width: 100%; }

/* Kit card */
.blog-kit { display: flex; gap: 1.2rem; align-items: center; background: linear-gradient(135deg, rgba(237, 25, 83, .16), var(--bg-card) 60%); border: 1px solid rgba(237, 25, 83, .35); border-radius: 14px; padding: 1rem; margin: 1.8rem 0; }
.blog-kit__cover img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.blog-kit__info { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.blog-kit__cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); font-weight: 700; }
.blog-kit__info strong { font-size: 1.2rem; color: var(--white); }
.blog-kit__insp { font-size: .82rem; color: var(--text-muted); }
.blog-kit__price { font-weight: 800; color: var(--white); margin-bottom: .3rem; }
.blog-kit__price s { color: var(--text-muted); font-weight: 400; margin-right: .3rem; }

.blog-figure { margin: 1.8rem 0; }
.blog-figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.blog-figure figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; text-align: center; }
.blog-cta { margin: 1.8rem 0; }
.blog-freekit { margin: 2rem 0; border-radius: 14px; overflow: hidden; }
.blog-freekit .section { padding: 2rem 1.5rem; }
.blog-freekit .container { padding: 0; }
/* opt-in A inside a post (2026-11-20): the card is the box; undo the article's h2/p/ol/li spacing */
.blog-freekit .ov1 { padding: 0; }
.blog-freekit .ov1__card { margin: 0; max-width: none; padding: 1.8rem; gap: 2rem; border-radius: 14px; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
.blog-body .ov1__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 1rem; }
.blog-body .ov1__tag { margin: 0 0 .8rem; }
.blog-body .ov1__steps { padding: 0; margin: 0 0 1.2rem; }
.blog-body .ov1__steps li { margin: 0; }
.blog-body .ov1__after { margin: .8rem 0 0; }
/* the article column is narrow: inputs side by side, the button on its own row */
.blog-freekit .ov1__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.blog-freekit .ov1__form .btn { grid-column: 1 / -1; }
@media (max-width: 860px) { .blog-freekit .ov1__card { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding: 1.4rem; } }
@media (max-width: 600px) { .blog-freekit .ov1__form { grid-template-columns: minmax(0, 1fr); } }
.blog-endkit { max-width: 760px; margin: 3rem 0 0; }
.blog-post__layout.has-toc ~ .blog-endkit { margin-left: calc(230px + 3rem); }
.blog-more { margin-top: 4rem; }

@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-post__layout.has-toc { display: block; }
  .blog-toc { position: static; background: var(--bg-card); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
  .blog-toc details:not([open]) summary { margin-bottom: 0; }
  .blog-post__layout.has-toc ~ .blog-endkit { margin-left: 0; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { flex-direction: column; }
  .blog-card--featured .blog-card__img { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .blog-card--featured .blog-card__body { padding: 1.2rem; }
  .blog-card--featured .blog-card__title { font-size: 1.25rem; }
  .blog-proscons { grid-template-columns: 1fr; }
  .blog-kit { flex-direction: column; align-items: flex-start; }
  .blog-body { font-size: 1rem; }
}
