/*
 * The blog (resources/views/blog/*) and its "Travel guides" rows on other pages. Colours and sizes from
 * css/tripdo-theme.css (--td-*); breadcrumb, tiles, arrows and the 40px rhythm between sections from css/destinations.css.
 */

/* ── Page header: title and intro left, search right ── */
.bl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; padding-bottom: 18px; border-bottom: 1px solid var(--td-border); }
.bl-head__text { flex: 1 1 320px; min-width: 0; }
.bl-head__title { margin: 0 0 6px; font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--td-text); }
.bl-head__role { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--td-teal); }
.bl-head__intro { margin: 0; max-width: 720px; font-size: 15.5px; line-height: 1.65; color: var(--td-body); }
.bl-head__count { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--td-text); }
.bl-head__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.bl-head--hub { align-items: center; }

.bl-search { display: flex; align-items: center; gap: 10px; flex: 0 1 440px; height: 50px; padding: 0 5px 0 16px; border: 1px solid var(--td-border-strong); border-radius: var(--td-radius-pill); background: var(--td-surface-2); transition: border-color .15s ease, background-color .15s ease; }
.bl-search:focus-within { border-color: var(--td-teal); background: #fff; }
.bl-search svg { flex: none; width: 19px; height: 19px; color: var(--td-muted); }
.bl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--td-text); }
.bl-search input::-webkit-search-cancel-button { display: none; }
.bl-search button { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: var(--td-radius-pill); background: var(--td-navy); color: #fff; font: 600 14px var(--td-font); cursor: pointer; }
.bl-search button:hover { background: var(--td-teal); }

/* ── Lead: one big guide, two beside it ── */
.bl-lead { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; }
.bl-lead__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, var(--td-navy), var(--td-teal)); }
.bl-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-lead__main:hover .bl-lead__media img { transform: scale(1.03); }
.bl-lead__body { padding-top: 16px; }
.bl-lead__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--td-teal); }
.bl-lead__title { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.bl-lead__title a { color: var(--td-text); text-decoration: none; }
.bl-lead__title a:hover { color: var(--td-teal); }
.bl-lead__excerpt { margin: 0 0 8px; font-size: 15.5px; line-height: 1.65; color: var(--td-body); }
.bl-lead__meta { margin: 0; font-size: 13px; color: var(--td-muted); }
.bl-lead__side { display: flex; flex-direction: column; gap: 24px; }
.bl-lead__side .bl-card { flex: 1; }

/* ── A guide in a list ── */
.bl-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); background: var(--td-surface); box-shadow: var(--td-shadow-sm); scroll-snap-align: start; transition: transform var(--td-medium) var(--td-ease), box-shadow var(--td-medium) var(--td-ease), border-color var(--td-medium) var(--td-ease); }
.bl-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--td-shadow-lg); }
.bl-card:has(.bl-card__title a:focus-visible) { box-shadow: var(--td-focus); }
.bl-card__media { position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--td-navy), var(--td-teal)); }
.bl-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--td-ease); }
.bl-card:hover .bl-card__media img { transform: scale(1.05); }
.bl-card__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .55); }
.bl-card__noimg svg { width: 52px; height: 52px; }
.bl-card__chip { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; padding: 4px 11px; border-radius: var(--td-radius-pill); background: rgba(255, 255, 255, .94); box-shadow: var(--td-shadow-sm); font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--td-navy); white-space: nowrap; text-overflow: ellipsis; }
.bl-card__time { position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--td-radius-pill); background: rgba(31, 47, 74, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-size: 11.5px; font-weight: 500; line-height: 1.5; color: #fff; }
.bl-card__time svg { width: 13px; height: 13px; }
.bl-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 14px; }
.bl-card__kicker { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--td-teal); }
.bl-card__kicker svg { flex: none; width: 13px; height: 13px; }
.bl-card__kicker span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bl-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 6px; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--td-text); }
.bl-card__title a { color: inherit; text-decoration: none; }
.bl-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole card opens the guide */
.bl-card:hover .bl-card__title a { color: var(--td-teal); }
.bl-card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--td-body); }
.bl-card__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--td-border); }
.bl-avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.bl-card__who { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 11.5px; line-height: 1.35; color: var(--td-muted); }
.bl-card__author { overflow: hidden; font-size: 12.5px; font-weight: 600; color: var(--td-text); white-space: nowrap; text-overflow: ellipsis; }
.bl-card__go { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--td-teal-50); color: var(--td-teal); transition: background-color var(--td-fast) ease, color var(--td-fast) ease, transform var(--td-fast) ease; }
.bl-card__go svg { width: 16px; height: 16px; }
.bl-card:hover .bl-card__go { background: var(--td-teal); color: #fff; transform: translateX(2px); }
.bl-card__lang { flex: none; padding: 1px 7px; border-radius: var(--td-radius-pill); background: var(--td-surface-2); font-size: 11px; font-weight: 600; color: var(--td-muted); }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Categories, tags */
.bl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding: 2px 0; }
.bl-chips::-webkit-scrollbar { display: none; }
.bl-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--td-border-strong); border-radius: var(--td-radius-pill); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--td-text) !important; text-decoration: none !important; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.bl-chip span { font-size: 12px; color: var(--td-muted); }
.bl-chip:hover { border-color: var(--td-teal); background: var(--td-teal-50, #e9f5f5); color: var(--td-teal) !important; }
.bl-chip--sm { padding: 4px 12px; font-size: 12.5px; }

.bl-empty { margin: 8px 0 0; padding: 32px 20px; border: 1px dashed var(--td-border-strong); border-radius: 14px; text-align: center; color: var(--td-muted); }
.bl-notice { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff7e0; font-size: 14px; color: #6b5200; }
.bl-notice--ok { background: #e9f7ef; color: #0a7a43; }

.bl-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.bl-pages__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--td-border-strong); border-radius: var(--td-radius-pill); background: #fff; font-size: 14px; font-weight: 500; color: var(--td-text) !important; text-decoration: none !important; }
a.bl-pages__btn:hover { border-color: var(--td-teal); color: var(--td-teal) !important; }
.bl-pages__btn.is-on { border-color: var(--td-navy); background: var(--td-navy); color: #fff !important; }
.bl-pages__btn.is-off { opacity: .4; }

/* ── A guide's page ── */
.bl-progress { position: fixed; inset: 0 0 auto 0; z-index: 1200; height: 3px; pointer-events: none; }
.bl-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--td-sun), var(--td-coral)); }

.bl-post__head { max-width: 900px; padding-top: 6px; }
.bl-post__title { margin: 10px 0 10px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.16; letter-spacing: -.02em; color: var(--td-text); }
.bl-post__dek { margin: 0 0 14px; font-size: 18px; line-height: 1.6; color: var(--td-body); }
.bl-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.bl-post__author { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--td-text) !important; text-decoration: none !important; }
.bl-post__author:hover { color: var(--td-teal) !important; }
.bl-post__facts { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--td-muted); }
.bl-post__facts li + li::before { content: "·"; margin: 0 8px; font-weight: 700; }
.bl-post__photo { margin: 22px 0 0; }
.bl-post__photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 18px; }

.bl-post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; margin-top: 32px; }
.bl-post__main { min-width: 0; max-width: 780px; }
.bl-post__sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.bl-post__more { font-size: 14px; font-weight: 600; color: var(--td-teal) !important; text-decoration: none; }
.bl-post__more:hover { text-decoration: underline; }
.bl-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.bl-post__faq { margin-top: 40px; }
.bl-post__faq .td-section__title { margin-bottom: 14px; }

/* Avatar: a photo, or initials on a soft colour of the name's own */
.bl-avatar { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: hsl(var(--h, 190) 55% 92%); color: hsl(var(--h, 190) 45% 30%); font-size: 13px; font-weight: 700; }
.bl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bl-avatar--lg { width: 72px; height: 72px; font-size: 24px; }

/* Quick answer: the words AI assistants and Google quote */
.bl-quick { margin-bottom: 24px; padding: 18px 20px; border: 1px solid rgba(44, 127, 131, .28); border-radius: 16px; background: linear-gradient(135deg, var(--td-teal-50, #e9f5f5), #fff8ea); }
.bl-quick__label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--td-teal); }
.bl-quick__label svg { width: 16px; height: 16px; }
.bl-quick__text { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--td-text); }

/* Contents: beside the text on a wide screen, folded above it otherwise */
.bl-toc ol { margin: 0; padding: 0; list-style: none; }
.bl-toc a { display: block; padding: 6px 0 6px 12px; border-inline-start: 2px solid var(--td-border); font-size: 14px; line-height: 1.4; color: var(--td-body); text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.bl-toc a:hover { color: var(--td-teal); }
.bl-toc a.is-on { border-color: var(--td-teal); color: var(--td-teal); font-weight: 600; }
.bl-toc__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--td-text); }
.bl-toc--inline { display: none; margin-bottom: 24px; padding: 12px 16px; border: 1px solid var(--td-border); border-radius: 14px; }
.bl-toc--inline summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--td-text); }
.bl-toc--inline ol { margin-top: 10px; }

/* The text */
.bl-body { font-size: 17px; line-height: 1.8; color: var(--td-body); overflow-wrap: anywhere; }
.bl-body > :first-child { margin-top: 0; }
.bl-body p { margin: 0 0 1.15em; }
.bl-body h2 { margin: 1.6em 0 .55em; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.28; letter-spacing: -.01em; color: var(--td-text); scroll-margin-top: 110px; }
.bl-body h3 { margin: 1.4em 0 .45em; font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--td-text); scroll-margin-top: 110px; }
.bl-body h4 { margin: 1.2em 0 .4em; font-size: 17px; font-weight: 700; color: var(--td-text); }
.bl-body ul, .bl-body ol { margin: 0 0 1.15em; padding-inline-start: 1.4em; }
.bl-body ul { list-style: disc; }
.bl-body ol { list-style: decimal; }
.bl-body li { margin-bottom: .4em; list-style: inherit; }
.bl-body a { color: var(--td-teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.bl-body a:hover { color: var(--td-coral); }
.bl-body img { max-width: 100%; height: auto; border-radius: 14px; }
.bl-body figure { margin: 1.4em 0; overflow-x: auto; }
.bl-body figcaption { margin-top: 6px; font-size: 13.5px; text-align: center; color: var(--td-muted); }
.bl-body blockquote { margin: 1.3em 0; padding: 4px 0 4px 18px; border-inline-start: 4px solid var(--td-sun); font-size: 18px; color: var(--td-text); }
.bl-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bl-body th, .bl-body td { padding: 10px 12px; border: 1px solid var(--td-border); text-align: start; vertical-align: top; }
.bl-body th { background: var(--td-surface-2); font-weight: 600; color: var(--td-text); }
.bl-video { position: relative; margin: 1.4em 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.bl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* An activity inside the text */
.bl-body a.bl-act, .bl-act { display: grid; grid-template-columns: 210px minmax(0, 1fr); margin: 1.4em 0; overflow: hidden; border: 1px solid var(--td-border); border-radius: 16px; background: #fff; color: var(--td-text); font-weight: 400; text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease; }
.bl-body a.bl-act:hover, .bl-act:hover { border-color: var(--td-border-strong); box-shadow: var(--td-shadow); color: var(--td-text); }
.bl-body .bl-act__img, .bl-act__img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; border-radius: 0; }
.bl-act__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 18px; line-height: 1.4; }
.bl-act__place { font-size: 12.5px; color: var(--td-muted); }
.bl-act__title { font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--td-text); }
.bl-act__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-size: 14px; }
.bl-act__rating { display: inline-flex; align-items: center; gap: 3px; }
.bl-act__rating svg { width: 14px; height: 14px; fill: var(--td-sun); }
.bl-act__price strong { font-weight: 700; }
.bl-act__cta { margin-inline-start: auto; font-weight: 600; color: var(--td-teal); }

/* Several activities: 3 side by side, more scroll sideways. Inside the text the article's own styles are kept off the cards. */
@media (min-width: 768px) {
    .tp-row--three .tp-row__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; }
    .bl-acts--two .tp-row__track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
}
.tp-row--three .tp-card__body { padding: 12px 12px 14px; }
.tp-row--three .tp-card__title { font-size: 16px; line-height: 22px; }
.tp-row--three .tp-card__facts li { font-size: 13px; }
.tp-row--three .tp-card__price strong { font-size: 18px; }
.bl-book { margin-top: 36px; padding: 0; }
.bl-book .tp-row__head { margin-top: 0; }
.bl-acts { margin: 1.5em 0; padding: 0; background: none; }
.bl-acts .tp-card { line-height: 1.4; }
.bl-body .tp-card a { font-weight: 400; }
.bl-body .tp-card img { max-width: none; height: 100%; margin: 0; border-radius: 0; }
.bl-body .tp-card__place { margin: 0; }
.bl-body .tp-card__title { margin: 0; font-size: 16px; line-height: 22px; letter-spacing: -.01em; }
/* The card's facts are a list: the article's bullets and spacing stay off it. */
.bl-body .tp-card__facts { margin: 12px 0 0; padding: 0; list-style: none; }
.bl-body .tp-card__facts li { margin: 0; list-style: none; font-size: 13px; }
.bl-body .tp-card__price strong { font-size: 18px; }
.bl-acts__arrow { position: absolute; top: 72px; z-index: 3; width: 36px; height: 36px; box-shadow: 0 2px 10px rgba(31, 47, 74, .22); }
.bl-acts__arrow--prev { left: -14px; }
.bl-acts__arrow--next { right: -14px; }
.bl-acts__arrow:disabled { display: none; }

/* The way to the place, beside the text */
.bl-plan { display: block; overflow: hidden; border: 1px solid var(--td-border); border-radius: 16px; background: #fff; color: var(--td-text) !important; text-decoration: none !important; transition: box-shadow .2s ease; }
.bl-plan:hover { box-shadow: var(--td-shadow); }
.bl-plan img { display: block; width: 100%; height: 130px; object-fit: cover; }
.bl-plan__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; font-size: 14px; line-height: 1.45; color: var(--td-body); }
.bl-plan__body strong { font-size: 15.5px; color: var(--td-text); }
.bl-plan__cta { margin-top: 6px; font-weight: 600; color: var(--td-teal); }

/* Who wrote it */
.bl-author { display: flex; gap: 16px; margin-top: 40px; padding: 20px; border-radius: 16px; background: var(--td-surface-2); }
.bl-author__label { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--td-muted); }
.bl-author__name { margin: 0; font-size: 18px; font-weight: 700; }
.bl-author__name a { color: var(--td-text); text-decoration: none; }
.bl-author__name a:hover { color: var(--td-teal); }
.bl-author__role { margin: 0 0 6px; font-size: 13.5px; color: var(--td-teal); font-weight: 500; }
.bl-author__bio { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--td-body); }

/* Comments */
.bl-comments { margin-top: 40px; }
.bl-comments .td-section__title span { font-weight: 500; color: var(--td-muted); }
.bl-comments__form { margin-top: 14px; }
.bl-comments__form textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--td-border-strong); border-radius: 12px; font: inherit; font-size: 15px; color: var(--td-text); }
.bl-comments__form textarea:focus { outline: 0; border-color: var(--td-teal); }
.bl-comments__form .td-btn { margin-top: 10px; }
.bl-comments__error { margin: 6px 0 0; font-size: 13.5px; color: #c0392b; }
.bl-comments__signin { margin: 12px 0 0; font-size: 14.5px; }
.bl-comments__signin a { font-weight: 600; color: var(--td-teal); }
.bl-comment { padding: 16px 0; border-bottom: 1px solid var(--td-border); }
.bl-comment--reply { margin-top: 12px; padding: 12px 0 0 16px; border-bottom: 0; border-inline-start: 2px solid var(--td-border); }
.bl-comment__who { margin: 0 0 4px; font-size: 14px; color: var(--td-text); }
.bl-comment__who time { margin-inline-start: 6px; font-size: 12.5px; color: var(--td-muted); }
.bl-comment__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--td-body); white-space: pre-line; }

/* "Preview" link from the Admin Panel */
.bl-notice--preview { background: #fff7e6; border-color: #f5c36b; color: #6b4a07; }

/* The cards of a "Travel guides" row */
.bl-guides { position: relative; overflow: hidden; padding: 28px 28px 30px; border-radius: 20px; background:
    radial-gradient(520px 260px at 100% 0, rgba(255, 184, 0, .14), transparent 70%),
    radial-gradient(620px 300px at 0 100%, rgba(44, 179, 172, .16), transparent 70%),
    linear-gradient(135deg, var(--td-navy-50), var(--td-teal-50)); }
.bl-guides__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 20px; }
.bl-guides__icon { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--td-navy); color: var(--td-sun); box-shadow: 0 6px 16px rgba(44, 66, 101, .24); }
.bl-guides__icon svg { width: 24px; height: 24px; }
.bl-guides__heading { flex: 1 1 240px; min-width: 0; }
.bl-guides .td-section__desc { margin-top: 2px; font-size: 14.5px; }
.bl-guides__all { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--td-radius-pill); background: var(--td-navy); font-size: 14px; font-weight: 600; color: #fff !important; text-decoration: none !important; white-space: nowrap; transition: background-color var(--td-fast) ease; }
.bl-guides__all:hover { background: var(--td-teal); }
.bl-guides__all svg { width: 16px; height: 16px; }
.bl-guides .cp-arrow { background: #fff; border-color: transparent; box-shadow: var(--td-shadow-sm); }
/* Room for the cards' shadow and lift inside the scrolling row */
.bl-guides .cp-track { gap: 18px; margin: -8px -6px -14px; padding: 8px 6px 14px; scroll-padding-inline: 6px; }
/* One guide fills the panel, two or three share it; from four they scroll */
.bl-guides--1 .cp-track { grid-auto-columns: 100%; }
.bl-guides--2 .cp-track { grid-auto-columns: calc((100% - 18px) / 2); }
.bl-guides--3 .cp-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
.bl-guides--1 .bl-card { flex-direction: row; }
.bl-guides--1 .bl-card__media { width: 42%; aspect-ratio: auto; min-height: 240px; }
.bl-guides--1 .bl-card__body { padding: 22px 26px; }
.bl-guides--1 .bl-card__title { margin-bottom: 8px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; }
.bl-guides--1 .bl-card__excerpt { -webkit-line-clamp: 3; font-size: 15px; }
@media (max-width: 991.98px) {
    .bl-guides--3 .cp-track, .bl-guides--4 .cp-track { grid-auto-columns: calc((100% - 18px) / 2); }
}
@media (max-width: 767.98px) {
    .bl-guides { padding: 20px 16px 22px; border-radius: 16px; }
    .bl-guides__icon { width: 42px; height: 42px; border-radius: 12px; }
    .bl-guides__heading { flex-basis: calc(100% - 60px); }
    .bl-guides__all { height: 36px; padding: 0 14px; font-size: 13px; }
    /* Cards run off the panel's edge, so it's clear there are more */
    .bl-guides .cp-track, .bl-guides--2 .cp-track, .bl-guides--3 .cp-track, .bl-guides--4 .cp-track { grid-auto-columns: 82%; gap: 12px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-inline: 16px; }
    .bl-guides--1 .cp-track { grid-auto-columns: 100%; }
    .bl-guides--1 .bl-card { flex-direction: column; }
    .bl-guides--1 .bl-card__media { width: auto; min-height: 0; aspect-ratio: 16 / 10; }
    .bl-guides--1 .bl-card__body { padding: 14px 16px; }
    .bl-guides--1 .bl-card__title { font-size: 17px; }
}

/* ── Smaller screens ── */
@media (max-width: 1199.98px) {
    .bl-post__layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}
@media (max-width: 991.98px) {
    .bl-lead { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .bl-lead__side { flex-direction: row; }
    .bl-lead__side .bl-card { flex: 1 1 0; }
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-post__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .bl-post__main { max-width: none; }
    .bl-post__sticky { position: static; }
    .bl-post__rail .bl-toc { display: none; }
    .bl-toc--inline { display: block; }
    .bl-plan { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
    .bl-plan img { height: 100%; min-height: 120px; }
}
@media (max-width: 767.98px) {
    .bl-head { align-items: stretch; }
    .bl-search { flex: 1 1 100%; }
    .bl-post__photo img { aspect-ratio: 16 / 10; border-radius: 14px; }
    .bl-post__dek { font-size: 16.5px; }
    .bl-body { font-size: 16.5px; line-height: 1.75; }
    .bl-body a.bl-act, .bl-act { grid-template-columns: 110px minmax(0, 1fr); }
    .bl-body .bl-act__img, .bl-act__img { min-height: 100%; }
    .bl-act__body { padding: 12px 14px; }
    .bl-act__title { font-size: 15px; }
    .bl-act__cta { display: none; }
    .bl-author { flex-direction: column; }
}
@media (max-width: 575.98px) {
    .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .bl-lead__side { flex-direction: column; }
    .bl-plan { display: block; }
    .bl-plan img { height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-card, .bl-card__media img, .bl-card__go, .bl-lead__media img { transition: none; }
    .bl-card:hover { transform: none; }
}
