/* Honey Badger 0.4 — shared visual language for theme and SMFO. */
body { background: #f7f9fb; }
.hb-has-smfo { --smfo-green: var(--hb-primary); --smfo-blue: var(--hb-primary); --smfo-green-hover: var(--hb-bg-dark); }
.hb-main { min-height: 55vh; }
.hb-header { padding: 18px 24px; }
.hb-header-inner { max-width: 1200px; gap: 22px; }
.hb-brand { min-width: 0; max-width: 300px; }
.hb-brand-text { font-size: 20px; line-height: 1.25; letter-spacing: -.35px; }
.hb-primary-menu { align-items: center; gap: 22px; }
.hb-primary-menu > li { position: relative; }
.hb-primary-menu a { display: block; padding: 10px 0; }
.hb-primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 225px; list-style: none; padding: 10px 16px; margin: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 32px #0f172a14; z-index: 100; }
.hb-primary-menu li:hover > .sub-menu, .hb-primary-menu li:focus-within > .sub-menu { display: block; }
.hb-primary-menu .current-menu-item > a { color: var(--hb-primary); text-decoration: underline; text-underline-offset: 6px; }
.hb-search-input::placeholder { color: #64748b; }
.hb-search-submit { width: 36px; height: 36px; flex-shrink: 0; }
.hb-container { max-width: 1232px; }
.hb-front { padding-top: 28px; }
.hb-has-smfo .smfo-homepage { max-width: 1200px; padding: 0; }
.hb-has-smfo .smfo-hp-hero { background: linear-gradient(120deg, var(--hb-bg-dark), var(--hb-primary)); border-radius: 24px; text-align: left; padding: 40px; box-shadow: none; }
.hb-has-smfo .smfo-hero { background: linear-gradient(120deg, var(--hb-bg-dark), var(--hb-primary)); color: #fff; }
.hb-has-smfo .smfo-hero h1 { color: #fff; }
.hb-has-smfo .smfo-hp-hero h1 { max-width: 900px; letter-spacing: -1.2px; }
.hb-has-smfo .smfo-hp-subtitle { max-width: 760px; }
.hb-has-smfo .smfo-hp-hero-stats { margin: 24px 0 0; }
.hb-has-smfo .smfo-hp-stat { padding: 14px 18px; background: #ffffff0d; }
.hb-has-smfo .smfo-hp-tabs { position: static; flex-wrap: wrap; white-space: normal; overflow: visible; box-shadow: none; border-radius: 16px; }
.hb-has-smfo .smfo-hp-tab { padding: 10px 12px; }
.hb-has-smfo .smfo-hp-tab.active { background: var(--hb-primary); color: #fff; }
.hb-has-smfo .smfo-hp-section { border-radius: 20px; box-shadow: none; margin-top: 24px; }
.hb-has-smfo .smfo-hp-top-card, .hb-has-smfo .smfo-card { box-shadow: none; border: 1px solid #dce3ea; }
.hb-has-smfo .smfo-hp-see-all { color: var(--hb-primary); font-weight: 600; }
.hb-has-smfo .smfo-top-card-cta, .hb-has-smfo .smfo-hp-row-cta { background: var(--hb-primary); }
.hb-has-smfo .smfo-top-card-cta:hover, .hb-has-smfo .smfo-hp-row-cta:hover { background: var(--hb-bg-dark); }
.hb-has-smfo .smfo-hp-news-thumb, .hb-card-thumb img { aspect-ratio: 40/21; background-size: contain; background-repeat: no-repeat; background-color: var(--hb-bg-light); object-fit: contain; }
.hb-has-smfo .smfo-news-featured img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.hb-has-smfo .smfo-news-single { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; margin: 32px auto; padding: 32px; }
.hb-single { background: #fff; padding: 32px; border: 1px solid #e2e8f0; border-radius: 20px; }
.hb-container:not(.hb-with-sidebar) > .hb-single { max-width: 900px; margin: 0 auto; }
.hb-single-title { font-size: clamp(27px, 3.2vw, 40px); letter-spacing: -.7px; overflow-wrap: anywhere; }
.hb-single-body, .hb-page-body, .smfo-news-content { overflow-wrap: anywhere; }
.hb-single-body { font-size: 18px; line-height: 1.8; }
.hb-single-body a, .hb-page-body a, .smfo-news-content a { text-decoration: underline; text-underline-offset: 3px; }
.hb-single-featured img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.hb-single-body h2 { margin-top: 32px; }
.hb-single-body h3 { margin-top: 24px; }
.hb-single-body table, .hb-page-body table { width: 100%; max-width: 100%; }
@media (max-width: 720px) { .hb-single-body table:not([class*="smfo-"]), .hb-page-body table:not([class*="smfo-"]) { display: block; overflow-x: auto; } }
.hb-single-body table th, .hb-single-body table td, .hb-page-body table th, .hb-page-body table td { overflow-wrap: normal; word-break: normal; }
.hb-single-body iframe, .hb-page-body iframe { max-width: 100%; }
.hb-single-body pre, .hb-page-body pre { overflow-x: auto; }
.hb-single .nav-links { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.hb-single .nav-links > div { max-width: 48%; }
.hb-footer-thin:has(.hb-footer-thin-inner:empty), .hb-footer-thin:not(:has(.hb-copyright, .hb-footer-nav)) { display: none; }
.hb-footer-thin-inner, .hb-footer-nav { min-width: 0; max-width: 100%; }
.hb-footer-menu { flex-wrap: wrap; }
.hb-eyebrow { margin: 0 0 10px; color: var(--hb-primary); text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .12em; }
.hb-breadcrumbs { display: flex; gap: 12px; font-size: 13px; color: #64748b; margin-bottom: 26px; }
.hb-publications { padding-top: 28px; padding-bottom: 56px; }
.hb-publications-header { padding: 0 0 28px; max-width: 850px; }
.hb-publications-header h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -1.3px; }
.hb-publications-header > p:last-child { color: #475569; font-size: 17px; max-width: 680px; margin: 14px 0 0; }
.hb-publications-search { padding: 22px 24px; background: #fff; border: 1px solid #dce3ea; border-radius: 16px; }
.hb-publications-search label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.hb-publications-search > div { display: flex; gap: 12px; }
.hb-publications-search input { flex: 1; min-width: 0; width: 100%; font: inherit; border: 1px solid #cbd5e1; border-radius: 8px; padding: 11px 14px; background: #fff; color: #0f172a; }
.hb-publications-search input::placeholder { color: #64748b; }
.hb-publications-search button { font: inherit; font-weight: 600; background: var(--hb-primary); color: #fff; padding: 11px 24px; border: 0; border-radius: 8px; cursor: pointer; }
.hb-publications-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: #475569; font-size: 14px; margin: 16px 0; }
.hb-publications-toolbar p { margin: 0; }
.hb-publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hb-publication-grid:has(> .hb-publication-card:only-child) { max-width: 580px; grid-template-columns: minmax(0, 1fr); }
.hb-publication-card { background: #fff; border: 1px solid #dce3ea; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.hb-publication-card:hover { box-shadow: 0 10px 28px #0f172a0d; }
.hb-publication-image { display: block; aspect-ratio: 40/21; background: var(--hb-bg-light); overflow: hidden; }
.hb-publication-image img { width: 100%; height: 100%; object-fit: contain; }
.hb-publication-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: 24px; color: var(--hb-primary); font-weight: 700; font-size: 24px; text-align: center; background: linear-gradient(145deg, var(--hb-bg-light), #fff); }
.hb-publication-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.hb-publication-meta { font-size: 12px; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; color: #64748b; margin-bottom: 14px; }
.hb-publication-meta span { color: var(--hb-primary); font-weight: 600; }
.hb-publication-meta time { white-space: nowrap; }
.hb-publication-body h2, .hb-publication-body h3 { font-size: 21px; line-height: 1.35; margin: 0 0 12px; overflow-wrap: anywhere; }
.hb-publication-body h2 a, .hb-publication-body h3 a { color: #172033; }
.hb-publication-body p { font-size: 14px; line-height: 1.65; color: #475569; margin: 0 0 20px; }
.hb-publication-read { display: block; margin-top: auto; font-weight: 600; font-size: 13px; color: var(--hb-primary); }
.hb-publications .pagination { margin-top: 36px; }
.hb-publications .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hb-publications .page-numbers { min-width: 42px; min-height: 42px; display: inline-flex; justify-content: center; align-items: center; padding: 8px 14px; border: 1px solid #dce3ea; border-radius: 8px; background: #fff; }
.hb-publications .page-numbers.current { background: var(--hb-primary); color: #fff; border-color: var(--hb-primary); }
.hb-publications-empty { padding: 48px 24px; background: #fff; border-radius: 16px; }
.hb-home-publications { max-width: 1232px; padding: 16px 16px 48px; margin: 0 auto; }
.hb-section-heading { display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
@media (max-width: 1100px) and (min-width: 921px) { .hb-header-actions { width: 100%; } .hb-search-form { width: 100%; } .hb-search-input { flex: 1; } }
@media (max-width: 920px) {
	.hb-header { padding: 14px 16px; }
	.hb-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
	.hb-brand { max-width: none; grid-column: 1; grid-row: 1; }
	.hb-brand-text { font-size: 18px; }
	.hb-nav { display: contents; }
	.hb-nav-toggle { grid-column: 2; grid-row: 1; }
	.hb-primary-menu { grid-column: 1 / -1; grid-row: 2; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px; border: 1px solid #e2e8f0; }
	.hb-primary-menu a { min-height: 44px; padding: 8px 0; }
	.hb-primary-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.hb-header-actions { width: 100%; grid-column: 1 / -1; grid-row: 3; }
	.hb-search-form { width: 100%; }
	.hb-search-input { width: 100%; flex: 1; font-size: 16px; }
	.hb-publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.hb-front { padding: 16px 12px; }
	.hb-has-smfo .smfo-hp-hero { padding: 26px 22px; border-radius: 18px; }
	.hb-has-smfo .smfo-hp-hero h1 { font-size: 30px; letter-spacing: -.6px; }
	.hb-has-smfo .smfo-hp-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hb-has-smfo .smfo-hp-tabs { gap: 4px; padding: 6px; }
	.hb-has-smfo .smfo-hp-tab { font-size: 12px; padding: 8px; }
	.hb-has-smfo .smfo-news-single { margin: 16px 12px; padding: 22px 18px; }
	.hb-single { padding: 24px 18px; }
	.hb-publication-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.hb-publication-body { padding: 20px; }
	.hb-publications-search { padding: 16px; }
	.hb-publications-search > div { gap: 8px; }
	.hb-publications-search button { padding: 10px 14px; }
	.hb-publications-toolbar { font-size: 12px; }
	.hb-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
	.hb-currency-strip { justify-content: center; gap: 16px; flex-wrap: wrap; }
	.hb-topbar { font-size: 11px; }
}
