/* /blog · page scoped CSS (prefix pg-blog-). The library: the tools row (search, topic buttons, count), the featured guide across the
   full row (the shared .cy-post, laid out wide), the empty state. Topic buttons follow the landing's currency chips (44px, radius 6,
   hairline ring; pressed = ink fill, white text). */

/* hero: the H1 on the left, the lead on the right, bottoms aligned (a compact hero without a picture column; the right half no longer
   stays empty). Stacked below 1020px. */
.pg-blog-hero__grid{align-items:end;row-gap:28px}
.pg-blog-hero .pg-blog-hero__head{grid-column:1/span 6}
.pg-blog-hero .pg-blog-hero__text{grid-column:7/span 6}
.pg-blog-hero__text>*+*{margin-top:24px}
.pg-blog-hero .cy-phero__lead{max-width:34em}
@media (max-width:1019px){.pg-blog-hero .pg-blog-hero__head,.pg-blog-hero .pg-blog-hero__text{grid-column:1/-1}.pg-blog-hero .cy-phero__lead{max-width:36em}}
@media (max-width:767px){.pg-blog-hero__grid{row-gap:24px}.pg-blog-hero__text>*+*{margin-top:22px}}

/* the library sits one title gap under the compact hero */
.pg-blog-lib{padding-bottom:var(--pg-section-y)}

/* tools: the search on the left, the topics beside it, the count on its own ruled line */
.pg-blog-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:20px 32px;margin-bottom:32px}
.pg-blog-tools[hidden]{display:none}
.pg-blog-search{display:grid;gap:10px;flex:0 1 380px;min-width:0}
.pg-blog-search__label{font-family:var(--font-mono);font-size:13px;line-height:1.4;color:var(--s-ink-3)}
.pg-blog-search__input{width:100%}
.pg-blog-topics{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 520px;min-width:0}
.pg-blog-topic{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 16px;border-radius:6px;
  box-shadow:inset 0 0 0 1px var(--pg-rule);background:transparent;font-family:var(--font-body);font-size:15px;font-weight:500;line-height:1;
  color:var(--s-ink);cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background-color 180ms var(--ease-out),color 180ms var(--ease-out),box-shadow 180ms var(--ease-out),transform 90ms var(--ease-out)}
.pg-blog-topic:active{transform:scale(.97)}
.pg-blog-topic[aria-pressed="true"]{background:#151515;color:#fff;box-shadow:inset 0 0 0 1px #151515}
.pg-blog-topic:focus-visible{outline:3px solid #2757C9;outline-offset:2px}
@media (any-hover:hover){.pg-blog-topic[aria-pressed="false"]:hover{background:var(--s-hover)}}
.pg-blog-count{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;min-height:44px;padding-top:12px;border-top:1px solid var(--pg-rule)}
.pg-blog-count__n{font-family:var(--font-mono);font-size:13px;font-weight:500;line-height:1.4;color:var(--s-ink)}
.pg-blog-reset{min-height:44px;font-size:15px}
.pg-blog-reset[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.pg-blog-topic{transition:none}}
@media (max-width:599px){
  .pg-blog-tools{gap:16px}
  .pg-blog-search{flex:1 1 100%}
  .pg-blog-topics{flex:1 1 100%;gap:6px}
  .pg-blog-topic{padding:0 12px;font-size:14px}
}

/* the featured guide: the whole first row, the photo on the left and the text on the right (a phone stacks it like every post) */
.cy-posts>.pg-blog-feature{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:0;padding:0}
.pg-blog-feature .cy-post__img{aspect-ratio:3/2}
.pg-blog-feature__text{display:flex;flex-direction:column;gap:14px;min-width:0;padding:40px 40px 36px}
.pg-blog-feature .cy-post__k,.pg-blog-feature .cy-post__t,.pg-blog-feature .cy-post__d,.pg-blog-feature .cy-post__m{padding-inline:0}
.pg-blog-feature .cy-post__k{margin-top:0}
.pg-blog-feature .cy-post__t{font-family:var(--font-display);font-size:clamp(30px,3vw,44px);font-weight:500;letter-spacing:-.04em;line-height:1.06}
.pg-blog-feature .cy-post__t .cy-fade{display:block}
.pg-blog-feature .cy-post__d{max-width:36em;font-size:17px;line-height:1.55}
.pg-blog-feature .cy-post__m{margin-top:auto;padding-top:20px}
.pg-blog-feature__go{display:inline-flex;align-items:center;gap:6px;font-size:16px;font-weight:500;color:var(--s-ink)}
@media (any-hover:hover){.pg-blog-feature:hover .pg-blog-feature__go .cy-link__arrow{transform:translateX(2px)}}
@media (max-width:1019px){
  .cy-posts>.pg-blog-feature{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .pg-blog-feature__text{padding:28px 28px 24px}
}
@media (max-width:767px){
  .cy-posts>.pg-blog-feature{grid-template-columns:minmax(0,1fr)}
  .pg-blog-feature__text{padding:18px 24px 24px;gap:10px}
  .pg-blog-feature .cy-post__m{padding-top:6px}
}

/* when a filter leaves the featured guide in a narrower list, it keeps its row */
.pg-blog-lib.is-filtered .pg-blog-feature .cy-post__t{font-size:clamp(28px,2.4vw,36px)}

/* nothing found */
.pg-blog-empty{display:grid;gap:10px;justify-items:start;padding:40px 0;border-top:1px solid var(--pg-rule);border-bottom:1px solid var(--pg-rule)}
.pg-blog-empty[hidden]{display:none}
.pg-blog-empty__t{font-family:var(--font-display);font-size:clamp(26px,2.4vw,32px);font-weight:500;letter-spacing:-.03em;line-height:1.15;color:var(--s-ink)}
.pg-blog-empty__d{max-width:52ch;font-size:17px;line-height:1.55;color:var(--s-ink-2)}
