/* Template: archive (topic hubs, tags, authors). Brand v3. Classes "bl-".
   The "shared" block is copied from blog.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; }
/* ---------- topic hub ---------- */
.hub-intro { margin-top: 1.25rem; max-width: 44rem; }
.hub-intro p { font-size: 1.15rem; line-height: 1.55; color: var(--slate); }
.hub-intro p + p { margin-top: 0.8rem; }
.hub-intro a { color: var(--ink); }
.bl-hero .hub-jump { margin-top: 1.8rem; }

/* essential guides under "start here": ruled two-column list */
.essentials { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--line); }
.essentials li { border-bottom: 1px solid var(--line); }
.essentials a, .stage .link-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; padding: 0.95rem 0.2rem; border-radius: 0; background: none; border: 0; color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.35; text-decoration: none; }
.essentials a::after, .stage .link-list a::after { content: "→"; flex: none; font-weight: 700; transition: transform 0.25s var(--ease); }
.essentials a:hover, .stage .link-list a:hover { background: none; text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.essentials a:hover::after, .stage .link-list a:hover::after { transform: translateX(4px); }

/* curated sections: numbered editorial rows */
.bl-path-sec + .section:not(.section--snow) { padding-top: 0; }
.path { list-style: none; counter-reset: stage; }
.stage { display: grid; grid-template-columns: 3.2rem minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1rem clamp(1.5rem, 1rem + 2vw, 3rem); padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage__n { counter-increment: stage; }
.stage__n::before { content: counter(stage); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); font-weight: 800; }
.stage:target .stage__n::before { background: var(--lamp); border-color: var(--lamp); color: #fff; }
.stage h2 { font-size: 1.55rem; letter-spacing: -0.025em; margin-bottom: 0.4rem; }
.stage p { color: var(--slate); }
.stage .link-list { gap: 0; border-top: 1px solid var(--line); }
.stage .link-list li { border-bottom: 1px solid var(--line); }

/* key terms and the service prompt */
.hub-foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.1rem; }
.hub-foot .card { border: 0; border-radius: 18px; background: var(--snow); }
.hub-foot .chips { margin-top: 1rem; }
.hub-foot .chips a { min-height: 44px; display: inline-flex; align-items: center; }
.svc-mini { padding: clamp(1.4rem, 1rem + 1.4vw, 2rem); border-radius: 18px; background: var(--night); color: #fff; }
.svc-mini .promo-title { font-size: 1.4rem; margin: 0.6rem 0; color: #fff; }
.svc-mini p { color: var(--mist); }
.svc-mini .btn { margin-top: 1.2rem; min-height: 44px; }
.svc-mini p a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--lamp); text-underline-offset: 0.15em; }
.svc-mini :focus-visible { outline-color: #fff; }
.hub-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hub-related .chips { margin-top: 0.9rem; }
.hub-related .chips a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 900px) {
  .hub-foot { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .stage .link-list { grid-column: 2; }
}
@media (max-width: 520px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage .link-list { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .post-grid .post-card, .essentials a::after, .stage .link-list a::after { transition: none; }
}
