/* HjelpMi: blog index and post pages (/blog/, /blog/<slug>/). Uses tokens.css and site.css (cards, newsletter). */
.page{padding:calc(var(--header-h) + clamp(28px,5vw,64px)) var(--gutter) clamp(64px,8vw,112px)}
.page__in{max-width:1240px;margin:0 auto}
.page__title{margin:0;font-family:var(--font-display);font-weight:700;font-size:clamp(2.2rem,1.3rem + 3vw,3.75rem);line-height:1.04;letter-spacing:-.025em;max-width:18ch}
.page__head{max-width:760px;margin-bottom:clamp(32px,5vw,56px)}
.page__head .lede{margin-top:18px;max-width:58ch;font-size:clamp(1.0625rem,1rem + .25vw,1.1875rem);line-height:1.6;color:var(--text-secondary)}

.crumbs{margin:0 0 22px;font-family:var(--font-label);font-size:.75rem;letter-spacing:.04em;text-transform:uppercase;color:var(--text-secondary)}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.crumbs li{display:inline-flex;align-items:center;gap:6px;min-width:0}
.crumbs li + li::before{content:"/";color:var(--line-strong)}
.crumbs a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs [aria-current]{max-width:42ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* the post list: the newest one wide, the rest in a row */
.posts--list .post:first-child{grid-column:1/-1}
.posts--list .post:first-child > a{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.posts--list .post:first-child .post__img{aspect-ratio:auto;min-height:320px}
.posts--list .post:first-child .post__body{padding:clamp(22px,3vw,40px);justify-content:center}
.posts--list .post:first-child h2{font-size:clamp(1.5rem,1.1rem + 1.2vw,2.1rem)}
@media (max-width:860px){.posts--list .post:first-child > a{display:flex}.posts--list .post:first-child .post__img{aspect-ratio:16/9;min-height:0}}

/* the article */
.article{max-width:1240px;margin:0 auto}
.article__head{max-width:780px}
.article__head .post__meta{display:block;margin-bottom:14px}
.article__head .lede{margin:18px 0 0;max-width:62ch;font-size:clamp(1.0625rem,1rem + .3vw,1.25rem);line-height:1.6;color:var(--text-secondary)}
.article__img{margin:clamp(28px,4vw,44px) 0 0;aspect-ratio:16/9;max-height:620px;width:100%;border-radius:var(--radius-l);box-shadow:var(--shadow-2)}
.article__img img{width:100%;height:100%;object-fit:cover}
.prose{max-width:720px;margin:clamp(32px,5vw,56px) auto 0;font-size:1.125rem;line-height:1.75}
.prose > *:first-child{margin-top:0}
.prose p{margin:0 0 1.15em}
.prose h2{margin:2em 0 .6em;font-family:var(--font-display);font-weight:700;font-size:clamp(1.4rem,1.15rem + .8vw,1.75rem);line-height:1.2;letter-spacing:-.015em}
.prose h3{margin:1.6em 0 .5em;font-family:var(--font-display);font-weight:700;font-size:1.25rem}
.prose ul,.prose ol{margin:0 0 1.2em;padding-left:1.3em}
.prose li{margin:.4em 0;padding-left:.2em}
.prose li::marker{color:var(--accent);font-weight:600}
.prose strong{font-weight:600;color:var(--text-primary)}
.prose a{color:var(--accent);font-weight:600}
.article__cta{max-width:720px;margin:clamp(36px,5vw,56px) auto 0;padding:clamp(22px,3vw,32px);border-radius:var(--radius-l);background:var(--navy);color:var(--ink-text);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 28px}
.article__cta h2{margin:0;font-family:var(--font-display);font-weight:700;font-size:1.5rem;line-height:1.2}
.article__cta p{margin:6px 0 0;color:var(--ink-muted);max-width:44ch}
.article__cta :focus-visible{outline-color:#84AECE}
/* the quote and «Escríbenos por WhatsApp» (yellow on the navy card): side by side, or stacked when there is no room */
.article__acts{display:flex;flex-wrap:wrap;gap:12px}
:root[data-theme="dark"] .article__cta .btn--primary{background:#6095C0}
.article__related{margin-top:clamp(56px,7vw,96px)}
.article__related > h2{margin:0 0 22px;font-family:var(--font-display);font-weight:700;font-size:clamp(1.5rem,1.2rem + .8vw,2rem)}
.posts--related{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:620px){.posts--related{grid-template-columns:1fr}.prose{font-size:1.0625rem}}
.unavail{max-width:720px;margin:clamp(8px,2vw,20px) 0 0}
.unavail .lede{margin:18px 0 0;max-width:58ch;font-size:clamp(1.0625rem,1rem + .25vw,1.1875rem);line-height:1.6;color:var(--text-secondary)}
.unavail .btn{margin-top:28px}
.posts__empty{grid-column:1/-1;padding:28px;border-radius:var(--radius-l);border:1px dashed var(--line-strong);color:var(--text-secondary);list-style:none}
.article[aria-busy="true"] [data-post-lede]{color:var(--text-secondary)}
