/* Template: blog index and search. Brand v3, matches the home page (light hero, cards like .h-guide). Classes "bl-".
   The "shared" block below is repeated in archive.css (and the card part in single.css); keep them in sync. */

/* ---------- shared: light hero ---------- */
.bl-hero { background: #fff; color: var(--ink); padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(2.5rem, 1.6rem + 3vw, 4.25rem); border-bottom: 1px solid var(--line); }
.bl-hero .crumbs { margin-bottom: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); }
.bl-hero .eyebrow--lamp { color: var(--slate) !important; }
.bl-hero__title { margin-top: 0.7rem; font-size: clamp(2.4rem, 1.1rem + 4.2vw, 4.75rem); line-height: 0.98; letter-spacing: -0.05em; max-width: 18ch; text-wrap: balance; overflow-wrap: break-word; }
.bl-hero__title--wide { max-width: 24ch; }
.bl-hero .lit { color: inherit; text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 0.08em; text-underline-offset: 0.12em; }
.bl-hero .lede { color: var(--slate); font-size: 1.15rem; max-width: 34rem; }
.bl-hero .search-form { margin-top: 1.4rem; }
.bl-hero .searchbar { max-width: 34rem; }
.bl-hero .chips { margin-top: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
.bl-hero .chips a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 1rem; }

/* ---------- shared: featured / start-here card (black, cut corner, real featured image) ---------- */
.bl-top + .section:not(.section--snow) { padding-top: 0; }
.bl-feature.cc { display: block; color: #fff; text-decoration: none; --cut: 64px; --dotd: 42px; }
.bl-feature .cc-dot { right: 6px; top: 6px; }
.bl-feature__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.2rem, 1rem + 2vw, 3rem); align-items: center; padding: 0.7rem; border-radius: 18px; background: var(--night); }
.bl-feature__in > .cover { border-radius: 12px; aspect-ratio: 16 / 9; }
.bl-feature__body { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(0.8rem, 0.4rem + 1.5vw, 2rem) clamp(1rem, 0.5rem + 2vw, 3rem) clamp(0.8rem, 0.4rem + 1.5vw, 2rem) 0; }
.bl-feature__tag { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: #fff; }
.bl-feature__tag::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--lamp); }
.bl-feature h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.04em; color: #fff; padding-right: 1.5rem; text-wrap: balance; }
.bl-feature p { color: var(--mist); }
.bl-feature .meta { color: var(--mist); }
.bl-feature .more { color: #fff; text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bl-feature:hover .cover--image img { transform: scale(1.03); }
.bl-feature:focus-visible { outline: 3px solid var(--lamp); outline-offset: 4px; border-radius: 18px; }
@media (max-width: 900px) {
  .bl-feature__in { grid-template-columns: minmax(0, 1fr); }
  .bl-feature__body { padding: 0.4rem 0.8rem 1.2rem; }
}

/* ---------- shared: post cards (as the home page guides) and the fallback cover ---------- */
.post-grid { gap: 1.1rem; }
.post-grid .post-card { padding: 0.6rem 0.6rem 1.3rem; border-radius: 18px; border: 1px solid var(--line); background: #fff; overflow: visible; transition: transform 0.3s var(--ease), border-color 0.3s; }
.post-grid .post-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: none; }
.post-card .cover { border-radius: 12px; overflow: hidden; }
.post-card__body { gap: 0.55rem; padding: 1.1rem 0.8rem 0; }
.post-card__body .tag { padding: 0; background: none; border-radius: 0; font-size: 0.85rem; font-weight: 700; color: var(--lamp-text); }
.post-card .h3 { font-size: 1.2rem; line-height: 1.22; letter-spacing: -0.02em; }
.post-card .meta { color: var(--slate); }
.post-card__body .more { padding-top: 0.5rem; }
/* Editorial covers (mexseo_cover): the guide's category, its key phrase in big Rubik and the red dot. Real text,
   aria-hidden (the card title says it). Three looks picked per post: ed0 black, ed1 smoke with the dot as a full
   stop, ed2 black with a lighter phrase on top and the category under a rule. The featured image is not shown here. */
.cover.cover--ed { --cv-bg: var(--night); --cv-fg: #fff; --cv-mute: var(--mist); --cv-line: rgba(255, 255, 255, 0.22); --cv-pad: 1rem 1.2rem; container-type: inline-size; display: flex; flex-direction: column; align-items: stretch; aspect-ratio: 16 / 9; min-height: 0; padding: var(--cv-pad); border-radius: 12px; background: var(--cv-bg); color: var(--cv-fg); font-family: var(--font); overflow: hidden; }
.cover.cover--ed::after { display: none; }
.cover__cat { padding-right: 1.6rem; font-size: clamp(0.78rem, 3.4cqi, 1.05rem); font-weight: 500; line-height: 1.3; color: var(--cv-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover__kw { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: auto; padding-bottom: 0.06em; font-size: clamp(1.45rem, 10.5cqi, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; overflow-wrap: anywhere; }
.cover--l .cover__kw { font-size: clamp(1.3rem, 8.2cqi, 3rem); }
.cover--xl .cover__kw { font-size: clamp(1.15rem, 6.6cqi, 2.4rem); letter-spacing: -0.035em; }
.cover__dot { position: absolute; top: 1.05rem; right: 1.2rem; width: 12px; height: 12px; border-radius: 50%; background: var(--lamp); transition: transform 0.3s var(--ease); }
.cover--ed1 { --cv-bg: var(--snow); --cv-fg: var(--ink); --cv-mute: var(--slate); }
.cover--ed1 .cover__dot { position: static; display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.07em; }
.cover--ed2 .cover__kw { order: -1; margin-top: 0.15rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1.06; }
.cover--ed2 .cover__cat { margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--cv-line); }
.cover--ed2 .cover__dot { top: auto; bottom: 1.25rem; }
.post-card:hover .cover__dot, .bl-feature:hover .cover__dot { transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) {
  .cover__dot { transition: none; }
}
/* on the black featured card every look turns smoke so the cover stands out from the panel */
.bl-feature .cover.cover--ed { --cv-bg: var(--snow); --cv-fg: var(--ink); --cv-mute: var(--slate); --cv-line: var(--line); --cv-pad: 1.4rem 1.6rem; }
.bl-feature .cover--ed0 .cover__dot { top: 1.65rem; right: 1.6rem; }
.bl-feature .cover--ed2 .cover__dot { right: 1.6rem; bottom: 1.7rem; }

/* ---------- shared: pager ---------- */
.pager a, .pager span { min-width: 2.75rem; height: 2.75rem; }
.pager a:focus-visible { outline-offset: 2px; }

/* ---------- blog index ---------- */
.bl-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 4vw, 4.5rem); align-items: end; }
.bl-hero__side { padding-bottom: 0.4rem; }
.more-topics { margin-top: 1rem; font-size: var(--t-small); color: var(--slate); max-width: 52rem; }
.more-topics a { color: var(--ink); display: inline-block; padding-block: 0.6rem; }

/* topics: an editorial list, heading left, rows right */
.bl-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.bl-rows { list-style: none; border-top: 1px solid var(--line); }
.bl-rows li { border-bottom: 1px solid var(--line); }
.bl-rows a { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; gap: 0.3rem 1.5rem; align-items: baseline; padding: 1.15rem 0.2rem; color: var(--ink); text-decoration: none; }
.bl-rows a::after { content: "→"; font-weight: 700; transition: transform 0.25s var(--ease); }
.bl-rows b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.bl-rows span { color: var(--slate); }
.bl-rows a:hover b { text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bl-rows a:hover::after { transform: translateX(4px); }

/* glossary band: flat black */
.bl-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); border-radius: 18px; background: var(--night); color: #fff; --lamp-text: #ff8a8f; }
.bl-band p { color: var(--mist); margin-top: 0.4rem; }
.bl-band .promo-title { color: #fff; margin-top: 0; }
.bl-band .btn--ghost { border-color: #fff; min-height: 44px; }
.bl-band :focus-visible { outline-color: #fff; }

@media (max-width: 900px) {
  .bl-hero__grid, .bl-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bl-rows a { grid-template-columns: minmax(0, 1fr) auto; }
  .bl-rows span { grid-column: 1; grid-row: 2; }
  .bl-rows a::after { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .bl-band { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .post-grid .post-card, .bl-rows a::after { transition: none; }
}
