/* Blog: single posts, archives and article components */
.post-hero { background: var(--surface); padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.post-hero .narrow, .post-wrap .narrow { margin: 0 auto; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.post-cat { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--pill); text-decoration: none; margin-bottom: 14px; }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; margin: 0 0 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-thumb { margin: 28px auto 0; max-width: 980px; }
.post-thumb img { display: block; width: 100%; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow); }
.post-wrap { padding: 44px 0 72px; }
.post-body { font-size: 18px; line-height: 1.75; color: var(--ink); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin-top: 2.2em; scroll-margin-top: 90px; }
.post-body h3 { font-size: 21px; margin-top: 1.8em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .45em; }
.post-body a { color: var(--accent); font-weight: 600; }
.post-body figure { margin: 1.6em 0; }
.post-body figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.bb-note { font-size: 14px; color: var(--muted); font-style: italic; }

/* Quick answer (AEO) */
.bb-answer { border-left: 6px solid var(--accent); background: #fff5f3; padding: 22px 24px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.bb-answer__label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.bb-answer p:last-child { margin: 0; font-size: 19px; line-height: 1.65; }

/* Key takeaways + TOC */
.bb-keys, .bb-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 26px; }
.bb-keys__title, .bb-toc__title { font-weight: 800; margin: 0 0 10px; font-size: 17px; }
.bb-keys ul { list-style: none; padding: 0; margin: 0; }
.bb-keys li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.55; }
.bb-keys li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.bb-toc ol { margin: 0; columns: 2; column-gap: 28px; font-size: 15.5px; }
.bb-toc li { break-inside: avoid; }
.bb-toc a { color: var(--ink); font-weight: 600; text-decoration: none; }
.bb-toc a:hover { color: var(--accent); text-decoration: underline; }

/* CTA boxes */
.bb-cta { border-radius: var(--r-md); }
.bb-cta--slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 2px dashed var(--accent); padding: 16px 20px; font-size: 16.5px; line-height: 1.5; }
.bb-cta--big { background: var(--accent); color: #fff; padding: 30px 30px 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.bb-cta--big::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.bb-cta--dark { background: var(--ink); }
.bb-cta__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin: 0; }
.bb-cta__title { font-size: clamp(22px, 2.8vw, 28px); font-weight: 800; line-height: 1.25; margin: 8px 0 8px; }
.bb-cta__sub { margin: 0; opacity: .92; font-size: 16.5px; line-height: 1.6; }
.bb-cta__fine { margin: 14px 0 0; font-size: 13px; opacity: .75; }
.bb-cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
.post-body .bb-cta__btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; padding: 14px 22px; border-radius: var(--r-sm); text-decoration: none; transition: transform .15s, background-color .2s; animation: bbPulse 2.4s ease-in-out infinite; }
.post-body .bb-cta__btn::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.post-body .bb-cta__btn:hover { transform: translateY(-2px); }
.post-body .bb-cta--big .bb-cta__btn { background: #fff; color: var(--accent); }
.post-body .bb-cta--big .bb-cta__btn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b4372f' d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1z'/%3E%3C/svg%3E"); }
.post-body .bb-cta--dark .bb-cta__btn { background: var(--accent); color: #fff; }
.post-body .bb-cta--dark .bb-cta__btn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1z'/%3E%3C/svg%3E"); }
.post-body .bb-cta__btn--ghost { background: transparent !important; color: #fff !important; border: 2px solid rgba(255,255,255,.8); animation: none; }
.post-body .bb-cta__btn--ghost::before { display: none; }
@keyframes bbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(180,55,47,.45); } 50% { box-shadow: 0 0 0 10px rgba(180,55,47,0); } }
.bb-cta--big .bb-cta__btn { animation-name: bbPulseW !important; }
@keyframes bbPulseW { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }

/* Feature grid */
.bb-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bb-feature { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.bb-feature__icon { flex: 0 0 40px; height: 40px; border-radius: 10px; background: #fff0ed; color: var(--accent); display: grid; place-items: center; font-size: 22px; }
.bb-feature strong { font-size: 17px; }
.bb-feature p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* Animated bite pattern */
.bb-figure svg { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: var(--shadow); }
.bb-anim-pattern .bb-bites circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: bbBite 6s ease-out infinite; }
.bb-anim-pattern .b2 { animation-delay: .5s !important; }
.bb-anim-pattern .b3 { animation-delay: 1s !important; }
.bb-anim-pattern .b4 { animation-delay: 1.5s !important; }
.bb-anim-pattern .b5 { animation-delay: 2s !important; }
.bb-anim-pattern .bb-path { stroke-dashoffset: 400; animation: bbDraw 6s linear infinite; }
.bb-anim-pattern .bb-cluster circle { transform-box: fill-box; transform-origin: center; animation: bbThrob 2.4s ease-in-out infinite; }
@keyframes bbBite { 0% { opacity: 0; transform: scale(.2); } 8% { opacity: 1; transform: scale(1.15); } 14%, 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes bbDraw { 0% { stroke-dashoffset: 400; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes bbThrob { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Stages + tones */
.bb-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bb-stage { margin: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.bb-stage svg { display: block; width: 100%; height: auto; }
.bb-stage figcaption, .bb-tones figcaption { padding: 12px 14px 14px; margin: 0 !important; color: var(--ink) !important; }
.bb-stage figcaption strong, .bb-tones figcaption strong { display: block; font-size: 15px; }
.bb-stage figcaption span, .bb-tones figcaption span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.bb-tones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bb-tones figure { margin: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.bb-tones svg { display: block; width: 100%; height: auto; }

/* Body map */
.bb-body { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: var(--surface); border-radius: var(--r-md); padding: 22px; }
.bb-body__fig { margin: 0 !important; }
.bb-body__fig svg { width: 100%; height: auto; }
.bb-body__text > p:first-child { margin-top: 0; }
.bb-hot circle { fill: var(--accent); opacity: .85; transform-box: fill-box; transform-origin: center; animation: bbHot 2s ease-in-out infinite; }
.bb-hot circle:nth-child(2n) { animation-delay: .6s; }
.bb-hot circle:nth-child(3n) { animation-delay: 1.1s; }
@keyframes bbHot { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1.2); opacity: .95; } }
.bb-checklist { list-style: none; padding: 0 !important; }
.bb-checklist li { padding-left: 28px; position: relative; }
.bb-checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }

/* Timeline */
.bb-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; padding-top: 18px; }
.bb-timeline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 26px; height: 4px; background: linear-gradient(90deg, var(--accent) 0 0) left/0% 100% no-repeat, var(--line); animation: bbFill 5s ease-in-out infinite; border-radius: 4px; }
@keyframes bbFill { 0% { background-size: 0% 100%, auto; } 70%, 100% { background-size: 100% 100%, auto; } }
.bb-timeline__step { position: relative; padding-top: 28px; font-size: 15px; line-height: 1.5; }
.bb-timeline__dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.bb-timeline__step strong { display: block; font-size: 16px; }
.bb-timeline__step p { margin: 4px 0 0; color: var(--muted); }

/* Comparison table */
.bb-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.bb-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 680px; }
.bb-table th, .bb-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bb-table thead th { background: var(--ink); color: #fff; font-size: 14px; }
.bb-table tbody th { font-weight: 800; white-space: nowrap; }
.bb-table tbody tr:nth-child(even) { background: var(--surface); }
.bb-table tr.is-hl { background: #fff0ed !important; box-shadow: inset 5px 0 0 var(--accent); }

/* Self-check quiz (CSS counter, no JS) */
.bb-quiz { counter-reset: score; background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); padding: 10px 14px 16px; }
.bb-quiz label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 16px; line-height: 1.5; }
.bb-quiz input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.bb-quiz input:checked { counter-increment: score; }
.bb-quiz label:has(input:checked) { background: #fff5f3; }
.bb-quiz__result { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); font-weight: 700; }
.bb-quiz__score::before { content: "Your score: " counter(score) " of 7. Check the boxes that apply to you."; }
.bb-quiz:has(input:checked) .bb-quiz__score::before { content: "Your score: " counter(score) " of 7. A few matches can happen with other bites. Keep checking the bed for signs."; }
.bb-quiz:has(label input:checked):has(label:nth-of-type(1) input:checked, label:nth-of-type(2) input:checked):has(label:nth-of-type(4) input:checked) .bb-quiz__result { background: var(--accent); color: #fff; }
.bb-quiz:has(label input:checked):has(label:nth-of-type(1) input:checked, label:nth-of-type(2) input:checked):has(label:nth-of-type(4) input:checked) .bb-quiz__score::before { content: "Your score: " counter(score) " of 7. This looks like bed bugs. Book a licensed inspection: call (888) 752-0103."; }

/* Signs grid */
.bb-signs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.bb-sign { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; font-size: 14px; line-height: 1.45; transition: transform .2s, box-shadow .2s; }
.bb-sign:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bb-sign svg { width: 52px; height: 52px; display: block; margin-bottom: 8px; }
.bb-sign strong { display: block; font-size: 15px; }
.bb-sign p { margin: 4px 0 0; color: var(--muted); }

/* Steps, callouts, lists */
.bb-steps { counter-reset: st; list-style: none; padding: 0 !important; }
.bb-steps li { counter-increment: st; position: relative; padding: 14px 16px 14px 62px; background: var(--surface); border-radius: var(--r-md); }
.bb-steps li + li { margin-top: 10px; }
.bb-steps li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 16px; }
.bb-callout { background: #eef7f0; border-left: 6px solid #2f7a45; padding: 16px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.bb-callout p { margin: 0; }
.bb-xlist { list-style: none; padding: 0 !important; }
.bb-xlist li { position: relative; padding-left: 30px; }
.bb-xlist li::before { content: "\00D7"; position: absolute; left: 0; top: -2px; width: 20px; height: 20px; font-weight: 800; color: var(--accent); font-size: 24px; line-height: 1; }
.bb-law { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-md); padding: 20px 24px; }
.bb-law > p:first-child { margin-top: 0; }
.bb-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.post-body .bb-method { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; color: var(--ink); font-weight: 400; transition: border-color .2s, transform .2s; }
.post-body .bb-method:hover { border-color: var(--accent); transform: translateY(-3px); }
.bb-method strong { display: block; color: var(--accent); font-size: 17px; }
.bb-method span { display: block; font-size: 15px; line-height: 1.55; margin-top: 4px; color: var(--muted); }

/* FAQ */
.bb-faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.bb-faq details + details { margin-top: 10px; }
.bb-faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 17px; position: relative; }
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent); font-weight: 800; }
.bb-faq details[open] summary::after { content: "\2212"; }
.bb-faq details p { margin: 0; padding: 0 18px 18px; font-size: 16.5px; color: var(--ink); }
.bb-sources { border-top: 1px solid var(--line); padding-top: 18px; font-size: 14.5px; color: var(--muted); }
.bb-sources__title { font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.bb-sources a { font-weight: 600; }

/* Post footer: author box + related */
.post-author { display: flex; gap: 16px; align-items: center; margin-top: 44px; padding: 20px; background: var(--surface); border-radius: var(--r-md); font-size: 15px; line-height: 1.55; }
.post-author svg { flex: 0 0 56px; width: 56px; height: 60px; }
.post-author p { margin: 2px 0 0; color: var(--muted); }

/* Blog index + archives */
.blog-head { background: var(--surface); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.blog-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; }
.blog-head p { color: var(--muted); max-width: 720px; margin: 0; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.blog-cats a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 7px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.blog-cats a.is-on, .blog-cats a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 44px 0 72px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__cat { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.post-card h2 { font-size: 20px; line-height: 1.3; margin: 8px 0 8px; }
.post-card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

@media (max-width: 900px) {
	.bb-stages { grid-template-columns: repeat(2, 1fr); }
	.bb-signs { grid-template-columns: repeat(2, 1fr); }
	.bb-timeline { grid-template-columns: 1fr 1fr; row-gap: 22px; }
	.bb-timeline::before { display: none; }
	.post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.post-body { font-size: 17px; }
	.bb-features, .bb-methods, .bb-tones { grid-template-columns: 1fr; }
	.bb-toc ol { columns: 1; }
	.bb-body { grid-template-columns: 1fr; }
	.bb-body__fig { max-width: 170px; margin: 0 auto !important; }
	.bb-cta--slim { flex-direction: column; align-items: flex-start; }
	.bb-cta--big { padding: 24px 20px; }
	.post-grid { grid-template-columns: 1fr; }
	.bb-timeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.bb-anim-pattern .bb-bites circle { animation: none; opacity: 1; }
	.bb-anim-pattern .bb-path { animation: none; stroke-dashoffset: 0; }
	.bb-anim-pattern .bb-cluster circle, .bb-hot circle, .post-body .bb-cta__btn, .bb-timeline::before { animation: none; }
	.bb-timeline::before { background-size: 100% 100%, auto; }
}
