/* ==========================================================================
   AdMedia — Blog (blog.php, blog-post.php)
   Uses the AdMedia tokens from new-homepage.css (--am-*). Prefix "bl-".
   ========================================================================== */
.bl-page { font-family: var(--am-font-body); font-size: 17px; line-height: 1.65; color: var(--am-text); background: #fff; }
.bl-page ul.bl-grid { margin: 0; padding: 0; list-style: none; }
.bl-page a:hover { text-decoration: none; }
.bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.bl-hero { padding-block: clamp(44px, 5.5vw, 80px) clamp(36px, 4vw, 56px); }
.bl-hero h1 { max-width: 760px; }
.bl-hero .am-lead { max-width: 640px; }
.bl-search { position: relative; display: flex; gap: 8px; max-width: 520px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--am-line); }
.bl-search > svg { position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--am-muted); stroke-width: 1.8; stroke-linecap: round; }
.bl-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 42px; border: 0; background: none; font-family: var(--am-font-body); font-size: 16px; color: var(--am-ink); }
.bl-search input:focus { outline: 0; }
.bl-search:focus-within { border-color: var(--am-red); box-shadow: 0 0 0 4px rgba(231, 0, 90, .1); }

/* ---------- Category bar ---------- */
.bl-cats { position: sticky; top: var(--am-header-h); z-index: 40; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--am-line); }
.bl-cats__list { display: flex; gap: 6px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.bl-cats__list::-webkit-scrollbar { display: none; }
.bl-cats__list a { flex: none; padding: 8px 16px; border-radius: 999px; font-family: var(--am-font-head); font-size: 14px; color: var(--am-text); transition: background-color .2s ease, color .2s ease; }
.bl-cats__list a:hover { background: var(--am-peach); color: var(--am-ink); }
.bl-cats__list a.is-active { background: var(--am-grad); color: #fff; }

.bl-section { padding-top: clamp(36px, 4vw, 56px); }

/* ---------- Shared meta / tags ---------- */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; color: var(--am-muted); }
.bl-tag { padding: 3px 10px; border-radius: 999px; background: #fde7ee; color: var(--am-red); font-family: var(--am-font-head); font-size: 12px; font-weight: 500; }
.bl-tag--new { background: var(--am-grad); color: #fff; }
.bl-card__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--am-font-head); font-size: 14.5px; color: var(--am-red); }
.bl-card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }

/* ---------- Featured post ---------- */
.bl-feature { margin-bottom: clamp(28px, 3.5vw, 44px); }
.bl-feature__link {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch;
    border-radius: var(--am-radius-lg); overflow: hidden; background: var(--am-peach-soft); border: 1px solid var(--am-line);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.bl-feature__link:hover { border-color: var(--am-blush); box-shadow: var(--am-shadow); }
.bl-feature__img { position: relative; min-height: 320px; background: var(--am-peach); overflow: hidden; }
.bl-feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bl-feature__link:hover .bl-feature__img img { transform: scale(1.03); }
.bl-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 3.5vw, 48px); }
.bl-feature__title { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -.02em; }
.bl-feature__excerpt { font-size: 16.5px; color: var(--am-text); }
.bl-feature__link:hover .bl-card__more svg, .bl-card__link:hover .bl-card__more svg { transform: translateX(3px); }

/* ---------- Post cards ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.bl-card__link {
    display: flex; flex-direction: column; height: 100%;
    border-radius: var(--am-radius); overflow: hidden; background: #fff; border: 1px solid var(--am-line);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.bl-card__link:hover { border-color: var(--am-blush); transform: translateY(-3px); box-shadow: var(--am-shadow); }
.bl-card__img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--am-peach); overflow: hidden; }
.bl-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bl-card__link:hover .bl-card__img img { transform: scale(1.03); }
.bl-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--am-grad-diag); color: rgba(255, 255, 255, .85); font-family: var(--am-font-head); font-size: 22px; }
.bl-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.bl-card__title { margin: 0; font-size: 19px; line-height: 1.32; letter-spacing: -.01em; }
.bl-card__excerpt { flex: 1; font-size: 15px; line-height: 1.55; color: var(--am-text); }

/* ---------- Empty / results / pager ---------- */
.bl-empty { padding: clamp(28px, 4vw, 48px); border-radius: var(--am-radius-lg); background: var(--am-peach-soft); border: 1px dashed #efcfc2; text-align: center; }
.bl-empty strong { display: block; font-family: var(--am-font-head); font-weight: 500; font-size: 20px; color: var(--am-ink); }
.bl-empty p { margin: 6px 0 0; }
.bl-empty a, .bl-result a { color: var(--am-red); }
.bl-result { margin: 0 0 20px; font-size: 15px; color: var(--am-muted); }
.bl-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: clamp(32px, 4vw, 48px); }
.bl-pager a, .bl-pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; font-family: var(--am-font-head); font-size: 14.5px; color: var(--am-ink); }
.bl-pager a { border: 1px solid var(--am-line); background: #fff; transition: border-color .2s ease, background-color .2s ease; }
.bl-pager a:hover { border-color: #e8cfc2; background: var(--am-peach-soft); }
.bl-pager .is-active { background: var(--am-grad); color: #fff; }
.bl-pager__gap { color: var(--am-muted); }

.bl-cta { padding-top: 0; }

/* ---------- Article ---------- */
.bl-narrow { max-width: 820px; }
.bl-wide { max-width: 1080px; }
.bl-article__head { padding-block: clamp(36px, 4.5vw, 64px) clamp(24px, 3vw, 36px); background: linear-gradient(180deg, var(--am-peach-soft), #fff); }
.bl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--am-muted); }
.bl-crumbs a { color: var(--am-muted); }
.bl-crumbs a:hover { color: var(--am-red); }
.bl-article h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.bl-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 20px 0 0; font-size: 14.5px; color: var(--am-muted); }
.bl-article__by { display: inline-flex; align-items: center; gap: 8px; font-family: var(--am-font-head); color: var(--am-ink); }
.bl-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--am-grad-diag); color: #fff; font-size: 13px; }
.bl-article__img { margin: 0 0 clamp(28px, 4vw, 48px); border-radius: var(--am-radius-lg); overflow: hidden; background: var(--am-peach); }
.bl-article__img img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }

/* WordPress post body */
.bl-prose { font-size: 18px; line-height: 1.75; color: #3a3341; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose p, .bl-prose ul, .bl-prose ol, .bl-prose blockquote, .bl-prose figure, .bl-prose table { margin: 0 0 1.25em; }
.bl-page .bl-prose p { font-size: 18px; line-height: 1.75; color: #3a3341; }
.bl-prose h2 { margin: 1.8em 0 .6em; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.2; }
.bl-prose h3 { margin: 1.6em 0 .5em; font-size: clamp(21px, 2vw, 25px); line-height: 1.25; }
.bl-prose h4 { margin: 1.4em 0 .5em; font-size: 19px; }
.bl-prose a { color: var(--am-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bl-prose a:hover { color: var(--am-orange); }
.bl-prose ul, .bl-prose ol { padding-left: 1.3em; }
.bl-prose ul { list-style: disc; }
.bl-prose ol { list-style: decimal; }
.bl-prose li { margin-bottom: .45em; }
.bl-prose li::marker { color: var(--am-red); }
.bl-prose strong, .bl-prose b { color: var(--am-ink); font-weight: 600; }
.bl-prose img { height: auto; border-radius: 16px; }
.bl-prose figure { max-width: 100%; }
.bl-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--am-muted); text-align: center; }
.bl-page .bl-prose blockquote { position: static; padding: 6px 0 6px 22px; border: 0; border-left: 3px solid var(--am-red); background: none; font-style: normal; }
.bl-page .bl-prose blockquote::before, .bl-page .bl-prose blockquote::after { content: none; }
.bl-page .bl-prose blockquote p { font-family: var(--am-font-head); font-size: 20px !important; line-height: 1.5 !important; font-style: normal; color: var(--am-ink); }
.bl-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.bl-prose th, .bl-prose td { padding: 10px 12px; border: 1px solid var(--am-line); text-align: left; vertical-align: top; }
.bl-prose th { background: var(--am-peach-soft); font-family: var(--am-font-head); font-weight: 500; color: var(--am-ink); }
.bl-prose iframe { max-width: 100%; border: 0; border-radius: 14px; }
.bl-prose .wp-block-embed__wrapper { position: relative; }
.bl-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--am-line); }
.bl-prose .aligncenter { margin-inline: auto; }
.bl-prose .alignleft { float: left; margin: 0 1.2em 1em 0; }
.bl-prose .alignright { float: right; margin: 0 0 1em 1.2em; }

.bl-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--am-line); }
.bl-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--am-font-head); font-size: 15px; color: var(--am-red); }
.bl-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bl-share { display: flex; align-items: center; gap: 8px; font-family: var(--am-font-head); font-size: 14px; color: var(--am-muted); }
.bl-share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--am-line); color: var(--am-ink); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.bl-share a:hover { background: var(--am-grad); border-color: transparent; color: #fff; }

.bl-related { background: var(--am-peach-soft); margin-top: clamp(48px, 6vw, 80px); }
.bl-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.bl-related + .bl-cta { padding-top: clamp(56px, 6.5vw, 96px); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-feature__link { grid-template-columns: minmax(0, 1fr); }
    .bl-feature__img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
    .bl-grid { grid-template-columns: minmax(0, 1fr); }
    .bl-search .am-btn { padding: 0 16px; }
    .bl-prose, .bl-page .bl-prose p { font-size: 17px; }
    .bl-prose .alignleft, .bl-prose .alignright { float: none; margin: 0 0 1em; }
    .bl-related__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Hero right column: popular topics (Oct 29) ---------- */
.bl-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bl-topics { padding: 22px; border-radius: var(--am-radius-lg); background: #fff; border: 1px solid var(--am-line); }
.bl-topics__label { margin: 0 0 8px; font-family: var(--am-font-head); font-weight: 500; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--am-muted); }
.bl-topics__list { margin: 0; padding: 0; list-style: none; }
.bl-topics__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--am-line); color: var(--am-ink); transition: color .2s ease, padding .2s ease; }
.bl-topics__list li:last-child a { border-bottom: 0; }
.bl-topics__list span { font-family: var(--am-font-head); font-size: 15.5px; }
.bl-topics__list em { font-style: normal; font-size: 13px; color: var(--am-muted); }
.bl-topics__list svg, .bl-topics__news > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--am-red); transition: transform .2s ease; }
.bl-topics__list a:hover, .bl-topics__list a.is-active { color: var(--am-red); padding-left: 8px; }
.bl-topics__list a:hover svg { transform: translateX(3px); }
.bl-topics__news { display: grid; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 16px; border-radius: var(--am-radius); background: var(--am-peach-soft); border: 1px solid var(--am-line); color: var(--am-ink); transition: border-color .2s ease; }
.bl-topics__news:hover { border-color: var(--am-blush); color: var(--am-ink); }
.bl-topics__news:hover > svg { transform: translateX(3px); }
.bl-topics__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--am-grad-diag); color: #fff; }
.bl-topics__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bl-topics__news strong { display: block; font-family: var(--am-font-head); font-weight: 500; font-size: 16px; }
.bl-topics__news small { display: block; font-size: 13.5px; color: var(--am-muted); }

/* ---------- Category bar: left / right arrows ---------- */
.bl-cats__wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.bl-cats__wrap .bl-cats__list { flex: 1; min-width: 0; scroll-behavior: smooth; }
.bl-cats__arrow {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 1px solid var(--am-line); border-radius: 50%; background: #fff; color: var(--am-ink); cursor: pointer;
    box-shadow: 0 4px 12px -6px rgba(27, 20, 34, .25);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bl-cats__arrow[hidden] { display: none; }
.bl-cats__arrow:hover { background: var(--am-grad); border-color: transparent; color: #fff; }
.bl-cats__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bl-cats__wrap.has-prev .bl-cats__list { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.bl-cats__wrap.has-next .bl-cats__list { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.bl-cats__wrap.has-prev.has-next .bl-cats__list { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

@media (max-width: 991px) {
    .bl-hero__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .bl-cats__arrow { width: 32px; height: 32px; }
}

/* newsroom (press coverage) cards without a photo — Oct 30 */
.bl-card__ph--news { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center;
    background: radial-gradient(circle at 85% 15%, rgba(255, 75, 0, .14), transparent 45%), radial-gradient(circle at 10% 100%, rgba(231, 0, 90, .12), transparent 50%), var(--am-peach-soft); color: var(--am-ink); }
.bl-card__ph--news svg { width: 38px; height: 38px; margin-bottom: 4px; fill: none; stroke: var(--am-red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bl-card__ph--news small { font-family: var(--am-font-head); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--am-muted); }
.bl-card__ph--news strong { font-family: var(--am-font-head); font-weight: 500; font-size: 20px; line-height: 1.25; color: var(--am-ink); }

/* newsroom cards: short header strip instead of a 16:10 image area — Oct 30 */
.bl-card__img:has(.bl-card__ph--news) { aspect-ratio: auto; height: 104px; }
.bl-card__ph--news { flex-direction: row; gap: 14px; justify-content: flex-start; padding: 0 20px; text-align: left; }
.bl-card__ph--news svg { width: 34px; height: 34px; margin: 0; flex: none; }
.bl-card__ph--news small { display: block; }
.bl-card__ph--news strong { display: block; font-size: 18px; }
.bl-card__ph--news > span { display: block; }
