/* The guides: the /blog shelf and the sections after a guide (related guides, the
   closing call to action). The guide's own text is in article.css. */

/* the hero's picture: the topics in a search panel, each row a jump to its section */
.blog-shelf { height: 100%; min-height: 420px; }
.blog-shelf .ui-search { width: min(400px, 100%); }
.blog-shelf .ui-search__t { color: inherit; text-decoration: none; }
.blog-shelf .ui-search__t:hover b { text-decoration: underline; text-underline-offset: 3px; }
.blog-shelf .ui-search__m { font-family: var(--font-mono); }
.blog-shelf .mono { font-family: var(--font-mono); }

/* a topic's head: the count beside the h2 in mono */
.blog-topic__head h2 .mono { font-family: var(--font-mono); font-size: .5em; font-weight: 500; letter-spacing: 0; vertical-align: .35em; }
.section-head.blog-topic__head { margin-bottom: var(--s-6); gap: var(--s-2); }
.blog-topic__head p { font-size: var(--t-body); }

/* a guide as a ruled row: meta, title and excerpt; the whole row is the link */
.rows.blog-rows > li { display: block; padding-block: 0; }
.blog-row { display: grid; gap: var(--s-1) var(--s-6); padding-block: var(--s-3); color: inherit; text-decoration: none; }
.blog-rows > li:first-child .blog-row { padding-top: 0; }
.blog-row__meta { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); font: 500 var(--t-label)/1.5 var(--font-mono); color: var(--muted); }
.blog-row__meta > span:first-child { color: var(--action); }
.blog-row__title { font: 500 var(--t-card)/1.35 var(--font-text); letter-spacing: -0.01em; color: var(--ink); transition: color var(--dur, 200ms) var(--ease, ease); }
.blog-row__excerpt { font-size: var(--t-body); line-height: 1.5; color: var(--ink); opacity: .84; }
.blog-row:hover .blog-row__title { color: var(--action); }
.blog-row:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: var(--r-sm); }

/* on the shelf the rows run the full wrap: meta | title | excerpt across the 12 columns */
@media (min-width: 1024px) {
  .blog-rows--wide .blog-row { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr); column-gap: var(--gutter, 24px); align-items: baseline; }
  .blog-rows--wide .blog-row__meta { flex-direction: column; }
}

/* a phone stacks each row (meta, title, excerpt); a topic with many guides grows past its
   screens rather than cut a guide's excerpt (every guide stays whole, as on the legacy shelf) */
@media (max-width: 639px) {
  main.blog-index > section.section.blog-topic { height: auto; min-height: calc(var(--hm, var(--h, 1)) * 100lvh); }
  main.blog-index > section.section.blog-topic.g2 > .wrap { display: flex; flex-direction: column; row-gap: 0; }
  .blog-row__title { font-size: 17px; }
  .blog-row__excerpt { line-height: 1.45; }
}

/* the closing call to action after a guide: the three products, as on the home */
@media (min-width: 640px) and (max-width: 1023px) { .blog-post #sistema { --h: 2; } }
@media (max-width: 639px) { .blog-post #sistema .pillar .link { display: none; } }
@media (prefers-reduced-motion: reduce) { .blog-row__title { transition: none; } }
