/* A' Niche Solutions: blog article page. Builds on home.css. */

.bd-head { background: var(--hp-alt); padding: 28px 0 32px; border-bottom: 1px solid var(--hp-line); }
.bd-head h1 { font-size: clamp(1.8rem, 1.25rem + 1.9vw, 2.8rem); font-weight: 800; color: var(--hp-ink); line-height: 1.2; max-width: 920px; margin-bottom: 14px; }
.bd-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--hp-muted); font-size: .92rem; margin: 0; }
.bd-meta i { color: var(--hp-blue); margin-right: 4px; }

.bd-main { padding: 36px 0 48px; background: #fff; }
.bd-cover { width: 100%; border-radius: var(--hp-radius); margin-bottom: 24px; }

.bd-toc { background: var(--hp-alt); border: 1px solid var(--hp-line); border-left: 4px solid var(--hp-gold); border-radius: 0 10px 10px 0; padding: 16px 20px; margin-bottom: 28px; }
.bd-toc p { font-weight: 700; margin-bottom: 8px !important; color: var(--hp-ink); }
.bd-toc ol { padding-left: 20px; margin: 0; }
.bd-toc li { list-style: decimal; margin-bottom: 4px; }
.bd-toc a { color: var(--hp-blue); }

/* Posts are pasted from Google Docs with inline fonts, sizes and colours; the page's own type wins. */
.bd-content { font-size: 1.05rem; line-height: 1.75; color: #283642; }
.bd-content * { font-family: inherit !important; color: inherit !important; background-color: transparent !important; }
.bd-content b[id^="docs-internal-guid"] { font-weight: inherit; }
.bd-content p, .bd-content li, .bd-content span, .bd-content td { font-size: inherit !important; line-height: inherit !important; }
.bd-content p { margin: 0 0 16px !important; }
.bd-content h2 { font-size: 1.6rem !important; font-weight: 700; line-height: 1.3 !important; margin: 32px 0 12px !important; color: var(--hp-ink) !important; scroll-margin-top: 140px; }
.bd-content h3 { font-size: 1.25rem !important; font-weight: 700; line-height: 1.35 !important; margin: 24px 0 10px !important; color: var(--hp-ink) !important; }
.bd-content h4 { font-size: 1.1rem !important; font-weight: 700; margin: 20px 0 8px !important; }
.bd-content ul, .bd-content ol { padding-left: 22px; margin: 0 0 16px !important; }
.bd-content ul li { list-style: disc; margin-bottom: 6px !important; }
.bd-content ol li { list-style: decimal; margin-bottom: 6px !important; }
.bd-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.bd-content a { color: var(--hp-blue) !important; text-decoration: underline; }
.bd-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; display: block; overflow-x: auto; }
.bd-content td, .bd-content th { border: 1px solid var(--hp-line); padding: 8px 10px; vertical-align: top; }
.bd-content tr:first-child td, .bd-content th { background: var(--hp-alt) !important; font-weight: 600; }

.bd-share { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hp-line); margin-top: 28px; padding-top: 18px; }
.bd-share span { font-weight: 600; margin-right: 6px; }
.bd-share a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--hp-alt); color: var(--hp-blue); }
.bd-share a:hover { background: var(--hp-blue); color: #fff; }

.bd-aside { position: sticky; top: 150px; display: grid; gap: 20px; }
.bd-cta { background: var(--hp-navy); color: #fff; border-radius: var(--hp-radius); padding: 24px; }
.bd-cta h2 { color: #fff !important; font-size: 1.3rem; margin-bottom: 8px; }
.bd-cta p { color: rgba(255, 255, 255, .82); font-size: .95rem; margin-bottom: 16px; }
.bd-cta__link { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--hp-gold); font-weight: 600; font-size: .92rem; }
.bd-cta__link:hover { color: #fff; }

.bd-recent { border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 18px; }
.bd-recent h2 { font-size: 1.1rem; margin-bottom: 12px; }
.bd-recent__item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hp-line); color: var(--hp-ink); font-weight: 500; font-size: .93rem; line-height: 1.4; }
.bd-recent__item:first-of-type { border-top: 0; }
.bd-recent__item img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.bd-recent__item:hover { color: var(--hp-blue); }

@media (max-width: 991.98px) { .bd-aside { position: static; } }
