/* hoome blog: index, topics and the article page. Loaded only on blog screens (inc/blog.php). */

/* ---------- Index / topic hero ---------- */
.hn-blog { padding-bottom: 0; }
.hn-blog > * { margin-block-start: 0; }
.hn-blog-hero { max-width: 760px; margin: 0 auto 28px !important; text-align: center; }
@media (min-width: 641px) { .hn-blog-topics .hn-pills { justify-content: center; } }
/* Article grid: four small cards a row, 16 a page (Settings > Reading) */
.hn-blog .hn-blog-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.hn-blog-grid--4 .hn-post-card__media { aspect-ratio: 4 / 3; border-radius: 16px; }
.hn-blog-grid--4 .hn-post-card__body { gap: 8px; padding-top: 14px; }
.hn-blog-grid--4 .hn-post-card__title { font-size: 18px; line-height: 1.32; }
.hn-blog-grid--4 .hn-post-card__excerpt { font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hn-blog-grid--4 .hn-topic-chip { min-height: 26px; padding: 0 10px; font-size: 12px; }
@media (max-width: 1100px) { .hn-blog .hn-blog-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .hn-blog .hn-blog-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }
@media (max-width: 520px) { .hn-blog .hn-blog-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.hn-blog-hero > * { margin: 0; }
.hn-blog-hero__title { color: var(--hn-ink); font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; line-height: 1.08; letter-spacing: -1.4px; }
.hn-mark { padding: 0 4px; background: linear-gradient(180deg, transparent 62%, var(--hn-yellow) 62%, var(--hn-yellow) 92%, transparent 92%); }
.hn-blog-hero__lead { margin-top: 14px !important; color: var(--hn-graphite); font-size: 19px; line-height: 1.6; }
.hn-blog-hero__count { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px !important; padding: 5px 14px 5px 5px; border-radius: 18px; background: var(--hn-mist); color: var(--hn-ink); font-size: 14px; font-weight: 700; }
.hn-blog-hero__count-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hn-yellow); }

/* Topic pills, each with its icon */
.hn-blog-topics { margin: 0 0 40px; }
.hn-blog-topics .hn-pills { margin: 0; }
.hn-blog-topics .hn-pill-link { gap: 8px; min-height: 46px; padding: 0 18px 0 7px; border-radius: 23px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.hn-blog-topics .hn-pill-link:hover { box-shadow: 0 6px 16px rgba(17, 17, 17, 0.08); }
.hn-pill-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hn-yellow-soft); color: var(--hn-ink); transition: background 0.2s ease; }
.hn-pill-link:hover .hn-pill-icon, .hn-pill-link.is-current .hn-pill-icon { background: var(--hn-yellow); }
.hn-pill-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hn-mist); color: var(--hn-graphite); font-size: 12px; font-weight: 800; }
.hn-pill-link.is-current .hn-pill-count { background: var(--hn-yellow); color: var(--hn-ink); }

/* Newest article, large */
.hn-blog-featured { margin-bottom: 8px; }
.hn-post-card.hn-post-card--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 0; overflow: hidden; border-radius: 28px; background: var(--hn-mist); transition: box-shadow 0.25s ease; }
.hn-post-card--featured:hover { box-shadow: 0 18px 40px rgba(17, 17, 17, 0.1); }
.hn-post-card--featured .hn-post-card__media { height: 100%; min-height: 380px; aspect-ratio: auto; border-radius: 0; }
.hn-post-card--featured .hn-post-card__body { gap: 14px; padding: 44px 48px; }
.hn-post-card--featured .hn-post-card__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -0.6px; }
.hn-post-card--featured .hn-post-card__excerpt { font-size: 17px; }
.hn-post-card--featured .hn-topic-chip { background: var(--hn-yellow); }
.hn-post-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hn-post-card__new { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; background: var(--hn-ink); color: var(--hn-yellow); font-size: 13px; font-weight: 800; }
.hn-post-card__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--hn-ink); font-size: 16px; font-weight: 800; }
.hn-post-card__arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hn-ink); color: var(--hn-yellow); transition: transform 0.2s ease; }
.hn-post-card--featured:hover .hn-post-card__arrow { transform: translateX(-4px); }

/* ---------- Sections ---------- */
.hn-blog-sec { margin-top: 64px !important; }
.hn-blog-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hn-blog-sec__title { margin: 0; color: var(--hn-ink); font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.6px; }

/* Help band */
.hn-blog-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; box-sizing: border-box; max-width: 1272px; margin: 80px auto 80px !important; padding: 48px 52px; border-radius: 28px; background: var(--hn-ink); color: #fff; }
.hn-blog-help__text > * { margin: 0; }
.hn-blog-help__title { color: #fff; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -0.6px; }
.hn-blog-help__title span { color: var(--hn-yellow); }
.hn-blog-help__text p { margin-top: 10px; color: #d6d6d6; font-size: 17px; line-height: 1.6; }
.hn-blog-help__text p + p { margin-top: 2px; }
.hn-blog-help__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hn-blog-help__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; min-height: 54px; padding: 0 26px; border-radius: 27px; font-size: 16px; font-weight: 800; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease; }
.hn-blog-help__btn--wa { background: var(--hn-yellow); color: var(--hn-ink); }
.hn-blog-help__btn--wa:hover { background: var(--hn-yellow-deep); color: var(--hn-ink); }
.hn-blog-help__btn--tg { border: 1.5px solid #555; color: #fff; }
.hn-blog-help__btn--tg:hover { border-color: #fff; color: #fff; }

@media (max-width: 900px) {
	.hn-post-card.hn-post-card--featured { grid-template-columns: minmax(0, 1fr); }
	.hn-blog-help { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; }
}
@media (max-width: 640px) {
	.hn-blog-hero__title { font-size: 38px; letter-spacing: -1px; }
	.hn-blog-topics { margin-bottom: 28px; }
	.hn-blog-topics .hn-pill-link { min-height: 42px; padding: 0 14px 0 6px; font-size: 14px; }
	.hn-pill-icon { width: 30px; height: 30px; }
	.hn-blog-sec { margin-top: 48px !important; }
	.hn-blog-help { margin: 56px auto !important; padding: 32px 22px; border-radius: 22px; text-align: center; }
	.hn-blog-help__btns { flex-direction: column; }
	.hn-blog-help__btn { width: 100%; }
}

/* ---------- Cards ---------- */
.hn-post-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.hn-post-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px; background: var(--hn-mist); }
.hn-post-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.hn-post-card:hover .hn-post-card__img { transform: scale(1.035); }
.hn-post-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: #cfcfcf; }
.hn-post-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 2px 0; }
.hn-post-card__title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -0.2px; }
.hn-post-card__title a { color: var(--hn-ink); text-decoration: none; }
.hn-post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.hn-post-card:hover .hn-post-card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hn-post-card__excerpt { margin: 0; color: var(--hn-graphite); font-size: 16px; line-height: 1.6; }
.hn-post-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; color: var(--hn-muted); font-size: 13px; font-weight: 600; }
.hn-topic-chip { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; background: var(--hn-yellow-soft); color: var(--hn-ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.hn-topic-chip:hover { background: var(--hn-yellow); color: var(--hn-ink); }

.hn-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }

/* Empty topic */
.hn-blog-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 36px 32px; border: 1.5px dashed var(--hn-line); border-radius: var(--hn-radius); }
.hn-blog-empty__title { margin: 0; color: var(--hn-graphite); font-size: 18px; font-weight: 700; }

/* Pagination */
.hn-blog-pages { margin-top: 56px; }
.hn-blog-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hn-blog-pages a, .hn-blog-pages span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px; border: 1.5px solid var(--hn-line); border-radius: 22px; color: var(--hn-ink); font-weight: 700; text-decoration: none; }
.hn-blog-pages a:hover { border-color: var(--hn-ink); }
.hn-blog-pages .current { border-color: var(--hn-ink); background: var(--hn-ink); color: var(--hn-yellow); }
.hn-blog-pages .dots { border: 0; }

/* ---------- Article ---------- */
.hn-article { padding-bottom: 0; overflow-x: clip; } /* the header band is 100vw wide */
.hn-article > * { margin-block-start: 0; }

/* Header: full-width soft band, text on the right, image card on the left */
.hn-post-hero { position: relative; box-sizing: border-box; width: auto; max-width: none !important; margin: 0 calc(50% - 50vw) 56px !important; padding: 36px 24px 56px; background: linear-gradient(180deg, var(--hn-post-tint) 0%, #fffdf6 60%, #fff 100%); }
/* The soft colour starts above the breadcrumbs: same tint on the breadcrumbs row, no gap before the band. */
body.single-post { --hn-post-tint: #fffaea; }
body.single-post .hn-crumbs-wrap { background: var(--hn-post-tint); }
body.single-post main.hn-article { margin-block-start: 0 !important; padding-top: 0 !important; }
.hn-post-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; max-width: 1272px; margin: 0 auto; }
.hn-post-hero--no-img .hn-post-hero__inner { grid-template-columns: minmax(0, 860px); justify-content: center; }
.hn-post-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hn-pchip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; border: 1.5px solid var(--hn-line); border-radius: 17px; background: #fff; color: var(--hn-graphite); font-size: 14px; font-weight: 700; text-decoration: none; }
.hn-pchip--topic { border-color: var(--hn-yellow-deep); color: var(--hn-ink); font-weight: 800; }
.hn-pchip--topic:hover { background: var(--hn-yellow); color: var(--hn-ink); }
.hn-pchip__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--hn-yellow-deep); }
.hn-li { flex: none; }
.hn-post-hero__title { margin: 0; color: var(--hn-ink); font-size: clamp(32px, 3.8vw, 50px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; }
.hn-post-hero__lead { margin: 18px 0 0; color: var(--hn-graphite); font-size: 19px; line-height: 1.6; }
.hn-post-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0 0 22px; border-bottom: 1px solid var(--hn-line); color: var(--hn-graphite); font-size: 14px; font-weight: 700; list-style: none; }
.hn-post-hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hn-post-hero__meta .hn-li { color: var(--hn-yellow-deep); }
.hn-post-hero__share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.hn-post-hero__share-label { color: var(--hn-ink); font-size: 15px; font-weight: 800; }

/* the image as a card, with a second tilted card behind it */
.hn-post-hero__media { position: relative; padding: 14px; }
.hn-post-hero__media::before { content: ""; position: absolute; inset: 22px -2px -6px 22px; border-radius: 26px; background: var(--hn-yellow); transform: rotate(-3deg); }
.hn-post-hero__card { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px rgba(17, 17, 17, 0.14); }
.hn-post-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Share buttons */
.hn-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hn-share__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--hn-line); border-radius: 50%; background: #fff; color: var(--hn-ink); cursor: pointer; text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease; }
.hn-share__btn:hover { border-color: var(--hn-ink); color: var(--hn-ink); transform: translateY(-1px); }
.hn-share__btn:focus-visible { outline: 2px solid var(--hn-ink); outline-offset: 2px; }
.hn-share__btn--pill { display: inline-flex; gap: 8px; width: auto; padding: 0 16px; border-radius: 20px; font-size: 14px; font-weight: 800; }
.hn-share--hero .hn-share__btn--whatsapp { min-height: 42px; padding: 0 20px; border-color: var(--hn-yellow); background: var(--hn-yellow); }
.hn-share--hero .hn-share__btn--whatsapp:hover { border-color: var(--hn-yellow-deep); background: var(--hn-yellow-deep); }
.hn-share--box .hn-share__btn--whatsapp { border-color: var(--hn-yellow); background: var(--hn-yellow); }
.hn-share__done:not(:empty) { position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 4px 10px; border-radius: 8px; background: var(--hn-ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }

/* Body: share rail | text | table of contents + shop card */
.hn-article-layout { display: grid; grid-template-columns: 52px minmax(0, 760px) 300px; justify-content: center; gap: 40px; box-sizing: border-box; width: 100%; max-width: 1272px; margin: 0 auto !important; }
.hn-article-layout > * { margin: 0 !important; }
.hn-article-rail { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 150px); align-self: start; }
.hn-share-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hn-share-rail__label { color: var(--hn-muted); font-size: 12px; font-weight: 800; }
.hn-share--rail { flex-direction: column; }
.hn-article-body { min-width: 0; }
.hn-article-aside { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 150px); align-self: start; display: flex; flex-direction: column; gap: 16px; }
.hn-article-aside > * { margin: 0 !important; }

/* Table of contents */
.hn-toc { padding: 16px 18px; border: 1.5px solid var(--hn-line); border-radius: 18px; background: #fff; }
.hn-toc__title { display: flex; align-items: center; gap: 10px; color: var(--hn-ink); font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.hn-toc__title::-webkit-details-marker { display: none; }
.hn-toc__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--hn-yellow-soft); color: var(--hn-ink); }
.hn-toc__title::after { content: ""; width: 8px; height: 8px; margin-inline-start: auto; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); transition: transform 0.2s ease; }
.hn-toc[open] .hn-toc__title::after { transform: rotate(135deg) translateY(-2px); }
.hn-toc__list { max-height: 52vh; margin: 12px 0 0; padding: 0; overflow-y: auto; list-style: none; counter-reset: toc; }
.hn-toc__list li { counter-increment: toc; }
.hn-toc__list a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 7px 8px; border-radius: 10px; color: var(--hn-graphite); font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.hn-toc__list a::before { content: counter(toc); color: var(--hn-muted); font-family: var(--wp--preset--font-family--poppins); font-size: 12px; font-weight: 600; }
.hn-toc__list a:hover { background: var(--hn-mist); color: var(--hn-ink); }
.hn-toc__list a.is-active { background: var(--hn-yellow-soft); color: var(--hn-ink); font-weight: 800; }

/* Shop card: yellow, like the site's buttons */
.hn-post-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 22px; border-radius: 20px; background: var(--hn-yellow); color: var(--hn-ink); text-align: center; box-shadow: 0 12px 28px rgba(255, 199, 0, 0.28); }
.hn-post-cta__title { margin: 0; color: var(--hn-ink); font-size: 20px; font-weight: 800; line-height: 1.3; }
.hn-post-cta__text { margin: 0; color: var(--hn-ink); font-size: 15px; line-height: 1.5; }
.hn-post-cta__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 6px; padding: 0 26px; border-radius: 23px; background: var(--hn-ink); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; }
.hn-post-cta__btn:hover { background: var(--hn-graphite); color: #fff; }
.hn-post-cta__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--hn-ink); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Article text */
.hn-prose { color: var(--hn-ink); font-size: 18px; line-height: 1.85; }
.hn-prose > * { margin-block: 0 22px; }
.hn-prose h2 { margin: 56px 0 18px; padding-inline-start: 16px; border-inline-start: 5px solid var(--hn-yellow-deep); font-size: clamp(24px, 2.3vw, 30px); font-weight: 800; line-height: 1.25; letter-spacing: -0.4px; scroll-margin-top: 170px; }
.hn-prose h3 { margin: 34px 0 12px; font-size: 21px; font-weight: 800; line-height: 1.35; }
.hn-prose h4 { margin: 26px 0 10px; font-size: 18px; font-weight: 800; }
.hn-prose > h2:first-child, .hn-prose > h3:first-child { margin-top: 0; }
.hn-prose a { color: var(--hn-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--hn-yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hn-prose a:hover { text-decoration-color: var(--hn-ink); }
.hn-prose ul, .hn-prose ol { padding-inline-start: 24px; }
.hn-prose li { margin-bottom: 8px; padding-inline-start: 4px; }
.hn-prose ul li::marker { color: var(--hn-yellow-deep); font-size: 1.15em; }
.hn-prose ol li::marker { color: var(--hn-muted); font-weight: 700; }
.hn-prose strong { font-weight: 800; }
.hn-prose img { border-radius: 18px; }
.hn-prose figure { margin-inline: 0; }
.hn-prose figcaption { margin-top: 10px; color: var(--hn-muted); font-size: 14px; text-align: center; }
.hn-prose blockquote { margin-inline: 0; padding: 6px 22px; border-inline-start: 4px solid var(--hn-yellow); color: var(--hn-graphite); font-size: 20px; font-weight: 600; }
.hn-prose blockquote p { margin: 0; }
.hn-prose hr { margin-block: 40px; border: 0; border-top: 1px solid var(--hn-line); }
.hn-prose .wp-block-table { overflow-x: auto; }
.hn-prose table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1.5px solid var(--hn-line); border-radius: 16px; font-size: 16px; line-height: 1.55; }
.hn-prose th, .hn-prose td { padding: 13px 16px; border: 0; border-bottom: 1px solid var(--hn-line); text-align: right; vertical-align: top; }
.hn-prose thead th { background: var(--hn-yellow-soft); font-weight: 800; }
.hn-prose tbody tr:nth-child(even) td { background: #fcfcfc; }
.hn-prose tr:last-child td { border-bottom: 0; }

/* "בקצרה" summary box (pattern hanagar/blog-summary) */
.hn-prose .hn-tldr { padding: 22px 26px; border: 1.5px solid var(--hn-yellow-deep); border-radius: 18px; background: var(--hn-yellow-soft); }
.hn-prose .hn-tldr > * { margin: 0; }
.hn-prose .hn-tldr > * + * { margin-top: 10px; }
.hn-prose .hn-tldr__title { font-size: 17px; font-weight: 800; }
.hn-prose .hn-tldr ul { padding-inline-start: 20px; }
.hn-prose .hn-tldr li { margin-bottom: 6px; }
.hn-prose .hn-tldr li::marker { color: var(--hn-ink); }

/* Tip box (pattern hanagar/blog-tip) */
.hn-prose .hn-tip-box { padding: 18px 22px; border: 1.5px solid var(--hn-line); border-inline-start: 5px solid var(--hn-ink); border-radius: 14px; background: #fff; }
.hn-prose .hn-tip-box > * { margin: 0; }
.hn-prose .hn-tip-box > * + * { margin-top: 8px; }

/* Yoast FAQ block */
.hn-prose .schema-faq { display: flex; flex-direction: column; gap: 10px; }
.hn-prose .schema-faq-section { padding: 18px 22px; border: 1.5px solid var(--hn-line); border-radius: 16px; background: #fff; }
.hn-prose .schema-faq-question { display: block; font-size: 18px; font-weight: 800; line-height: 1.4; }
.hn-prose .schema-faq-answer { margin: 8px 0 0; color: var(--hn-graphite); font-size: 17px; }

/* FAQ at the end of an article (group with class hn-post-faq; FAQPage data in inc/blog.php) */
.hn-prose .hn-post-faq { margin-top: 48px; padding: 28px 30px 10px; border-radius: 22px; background: var(--hn-mist); }
.hn-prose .hn-post-faq > h2 { margin: 0 0 6px; }
.hn-prose .hn-post-faq h3 { margin: 22px 0 6px; font-size: 19px; }
.hn-prose .hn-post-faq p { color: var(--hn-graphite); font-size: 17px; }

/* Article end */
.hn-article-foot { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hn-line); }
.hn-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hn-article-tags a { display: inline-flex; min-height: 32px; align-items: center; padding: 0 14px; border-radius: 16px; background: var(--hn-mist); color: var(--hn-graphite); font-size: 14px; font-weight: 700; text-decoration: none; }
.hn-foot-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border: 1.5px solid var(--hn-line); border-radius: 20px; background: #fff; }
.hn-foot-card p { margin: 0; }
.hn-foot-card__title { display: flex; align-items: center; gap: 10px; color: var(--hn-ink); font-size: 19px; font-weight: 800; }
.hn-foot-card__title::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--hn-yellow-deep); }
.hn-foot-card__text { color: var(--hn-graphite); font-size: 15px; }
.hn-foot-card .hn-share { margin-top: 12px; }
.hn-foot-card--follow { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--hn-mist); border-color: var(--hn-mist); }
.hn-follow { display: flex; flex-wrap: wrap; gap: 8px; }
.hn-follow__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 21px; color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }
.hn-follow__btn:hover { color: #fff; filter: brightness(1.08); }
.hn-follow__btn--telegram { background: #229ed9; }
.hn-follow__btn--instagram { background: linear-gradient(45deg, #fdc94f, #fd5949 45%, #d6249f 70%, #285aeb); }
.hn-follow__btn--facebook { background: #0866ff; }
.hn-author-box { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1.5px solid var(--hn-line); border-radius: 20px; background: #fff; }
.hn-author-box p { margin: 0; }
.hn-author-box__label { color: var(--hn-muted); font-size: 13px; font-weight: 700; }
.hn-author-box__name { font-size: 19px; font-weight: 800; }
.hn-author-box__bio { margin-top: 6px !important; color: var(--hn-graphite); font-size: 15px; line-height: 1.6; }
.hn-byline__avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--hn-yellow); color: var(--hn-ink); font-family: var(--wp--preset--font-family--poppins); font-size: 18px; font-weight: 700; line-height: 1; }
.hn-byline__avatar--lg { width: 56px; height: 56px; font-size: 26px; }

/* Related */
.hn-related-posts { max-width: 1272px; margin: 88px auto 0 !important; padding-top: 48px; border-top: 1px solid var(--hn-line); }
.hn-related-posts__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 28px; }
.hn-related-posts__head h2 { margin: 0; font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -0.6px; }
.hn-related-posts .hn-post-card__title { font-size: 19px; }

/* Yellow band before the footer */
.hn-post-band { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 1272px; margin: 80px auto 72px !important; padding: 56px 32px; border-radius: 28px; background: var(--hn-yellow); color: var(--hn-ink); text-align: center; }
.hn-post-band > * { margin: 0; }
.hn-post-band__title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.6px; }
.hn-post-band__text { font-size: 17px; }
.hn-post-band__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 10px; padding: 0 30px; border-radius: 26px; background: var(--hn-ink); color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; }
.hn-post-band__btn:hover { background: var(--hn-graphite); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hn-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-article-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; }
	.hn-article-rail { display: none; }
	.hn-post-hero__inner { gap: 36px; }
}
@media (max-width: 900px) {
	.hn-post-card--featured { grid-template-columns: 1fr; }
	.hn-post-card--featured .hn-post-card__media { min-height: 0; aspect-ratio: 16 / 10; }
	.hn-post-card--featured .hn-post-card__body { padding: 24px 22px 28px; }
	.hn-post-hero { margin-bottom: 32px !important; padding: 28px 16px 36px; }
	.hn-post-hero__inner { grid-template-columns: 1fr; gap: 28px; }
	.hn-post-hero__media { order: -1; padding: 8px 10px 14px; }
	.hn-article-layout { display: flex; flex-direction: column; gap: 24px; }
	.hn-article-aside { display: contents; }
	.hn-article-aside .hn-toc { order: 1; }
	.hn-article-body { order: 2; }
	.hn-article-aside .hn-post-cta { order: 3; }
}
@media (max-width: 640px) {
	.hn-blog-hero__lead { font-size: 17px; }
	.hn-blog-topics .hn-pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.hn-blog-topics .hn-pills::-webkit-scrollbar { display: none; }
	.hn-blog-topics .hn-pills li { flex: none; }
	.hn-blog-grid { grid-template-columns: 1fr; gap: 36px; }
	.hn-post-card--featured .hn-post-card__title { font-size: 25px; }
	.hn-post-hero__lead { font-size: 17px; }
	.hn-post-hero__media::before { inset: 16px 0 0 16px; }
	.hn-prose { font-size: 17px; line-height: 1.8; }
	.hn-prose h2 { margin-top: 40px; }
	.hn-prose .hn-post-faq { padding: 22px 18px 6px; }
	.hn-foot-card, .hn-author-box { padding: 18px; }
	.hn-post-band { margin: 56px auto 48px !important; padding: 40px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.hn-post-card__img, .hn-toc__title::after, .hn-share__btn { transition: none; }
	.hn-post-card:hover .hn-post-card__img { transform: none; }
}
