/* ==========================================================
   BestFiberSupplement — news magazine layer
   ========================================================== */
:root {
	--bfs-accent: #ff003c;
	--bfs-accent-dark: #d60032;
	--bfs-ink: #111111;
	--bfs-ink-2: #282828;
	--bfs-text: #3f4146;
	--bfs-muted: #777b82;
	--bfs-line: #ebedf0;
	--bfs-soft: #f7f7f8;
	--bfs-bg: #ffffff;
	--bfs-panel: #191c20;
	--bfs-head: "Bitter", Georgia, serif;
	--bfs-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
	--bfs-wide: 1280px;
}
html.bfs-dark {
	--bfs-ink: #ffffff;
	--bfs-ink-2: #e6e6e6;
	--bfs-text: #c3c6cc;
	--bfs-muted: #9a9ea6;
	--bfs-line: #2b2f35;
	--bfs-soft: #1f2328;
	--bfs-bg: #121418;
	--bfs-panel: #0d0f12;
}

html body {
	font-family: var(--bfs-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bfs-ink);
	background: var(--bfs-bg);
	transition: background .25s ease, color .25s ease;
}
h1, h2, h3, h4, h5, h6, .wp-block-post-title {
	font-family: var(--bfs-head);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--bfs-ink);
}
.wp-site-blocks { --wp--style--global--wide-size: var(--bfs-wide); }
.wp-site-blocks > * { margin-block-start: 0; }
a { color: inherit; }
.wp-block-post-title { margin: 0; line-height: 1.3; text-transform: none; letter-spacing: -0.01em; }
.bfs-nav > .bfs-menu { max-width: var(--bfs-wide) !important; }
.wp-block-post-title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease; }
.wp-block-post-title a:hover { background-size: 100% 1px; }
.wp-block-post-featured-image { margin: 0; overflow: hidden; background: var(--bfs-soft); }
.wp-block-post-featured-image img { transition: transform .5s ease; }
.wp-block-post-featured-image:hover img { transform: scale(1.04); }
.wp-block-post-date { font-size: 13px; color: var(--bfs-muted); }
.wp-block-post-template { margin: 0; padding: 0; }

/* ---------- Header ---------- */
.bfs-header { background: var(--bfs-bg); padding: 16px 16px; }
.bfs-header__row { min-height: 52px; }
.bfs-header__left, .bfs-header__right { flex: 1 1 0; margin: 0; }
.bfs-header__right { gap: 14px !important; }
.bfs-btn {
	display: inline-block; background: var(--bfs-accent); color: #fff !important; text-decoration: none;
	font-size: 13px; font-weight: 700; padding: 8px 18px; line-height: 1;
}
.bfs-btn:hover { background: var(--bfs-accent-dark); }

.bfs-logo { margin: 0; text-align: center; flex: 0 0 auto; }
.bfs-logo a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bfs-ink); }
.bfs-logo__mark {
	width: 42px; height: 42px; flex: 0 0 42px;
	background: url("../images/icon.svg") center / contain no-repeat;
}
.bfs-logo__text {
	font-family: var(--bfs-head); font-weight: 900; font-size: 30px; line-height: .95;
	letter-spacing: -0.02em; display: flex; flex-direction: column; align-items: flex-start;
	text-transform: uppercase;
}
.bfs-logo__text { flex-direction: row; flex-wrap: wrap; max-width: 260px; }
.bfs-logo__accent { color: var(--bfs-accent); }
.bfs-logo__sub {
	flex-basis: 100%; font-family: var(--bfs-body); font-weight: 700; font-size: 10.5px;
	letter-spacing: .52em; color: var(--bfs-muted); margin-top: 4px;
}

.bfs-search { margin: 0; }
.bfs-search .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; }
.bfs-search .wp-block-search__button { background: transparent; color: var(--bfs-ink); padding: 6px; margin: 0; border: 0; }
.bfs-search .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }
.bfs-search .wp-block-search__input { border: 1px solid var(--bfs-line); background: var(--bfs-bg); color: var(--bfs-ink); font-size: 14px; }

.bfs-mode { margin: 0; padding-left: 14px; border-left: 1px solid var(--bfs-line); }
.bfs-mode-toggle {
	display: block; width: 46px; height: 24px; border-radius: 24px; background: var(--bfs-soft);
	border: 1px solid var(--bfs-line); position: relative;
}
.bfs-mode-toggle span {
	position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
	background: #f5b400; box-shadow: 0 0 0 3px rgba(245,180,0,.2); transition: transform .25s ease, background .25s ease;
}
.bfs-dark .bfs-mode-toggle span { transform: translateX(22px); background: #fff; box-shadow: inset -5px -2px 0 0 #8a8f99; }

/* ---------- Main nav ---------- */
.bfs-nav {
	background: var(--bfs-bg); padding: 0 16px;
	border-top: 1px solid var(--bfs-line);
	box-shadow: 0 4px 30px rgba(0,0,0,.06);
	position: sticky; top: 0; z-index: 60;
}
.admin-bar .bfs-nav { top: 32px; }
.bfs-menu { font-family: var(--bfs-body); font-size: 16px; font-weight: 700; color: var(--bfs-ink-2); }
.bfs-menu .wp-block-navigation__container { gap: 0; }
.bfs-menu .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 14px 12px; text-decoration: none; position: relative;
}
.bfs-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px;
	background: var(--bfs-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.bfs-menu .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.bfs-menu .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.bfs-menu .wp-block-navigation__submenu-icon { margin-left: -6px; margin-right: 6px; }
.bfs-menu .wp-block-navigation__submenu-container {
	border: 0 !important; background: var(--bfs-bg) !important; color: var(--bfs-ink-2) !important;
	box-shadow: 0 10px 40px rgba(0,0,0,.12); min-width: 220px !important; padding: 8px 0; font-weight: 600; font-size: 15px;
}
.bfs-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 20px !important; }
.bfs-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--bfs-accent); }
.bfs-menu .wp-block-navigation__responsive-container.is-menu-open { background: var(--bfs-bg) !important; color: var(--bfs-ink) !important; }

/* ---------- Section scaffolding ---------- */
.bfs-section { padding: 0 16px; margin-top: 46px !important; }
.bfs-section--latest { margin-top: 26px !important; }
.bfs-label {
	font-family: var(--bfs-body); font-size: 15px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .02em; margin: 0 0 18px !important; display: flex; align-items: center; gap: 8px; color: var(--bfs-ink);
}
.bfs-label--news::before { content: ""; width: 14px; height: 14px; background: radial-gradient(circle at 20% 80%, var(--bfs-ink) 2px, transparent 3px), radial-gradient(circle at 20% 80%, transparent 6px, var(--bfs-ink) 6px 8px, transparent 8px), radial-gradient(circle at 20% 80%, transparent 11px, var(--bfs-ink) 11px 13px, transparent 13px); }
.bfs-label--trend { color: var(--bfs-accent); }
.bfs-label--trend::before { content: "↗"; font-size: 18px; line-height: 1; }

.bfs-head { margin-bottom: 24px !important; align-items: center !important; }
.bfs-head h2 {
	font-size: 24px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px;
}
.bfs-head h2::before { content: ""; width: 14px; height: 14px; background: var(--bfs-accent); display: inline-block; }
.bfs-head p { margin: 0; font-size: 13px; font-weight: 700; }
.bfs-head a { text-decoration: none; color: var(--bfs-muted); }
.bfs-head a:hover { color: var(--bfs-accent); }

/* category text + badges */
.bfs-cat { margin: 0 !important; font-size: 13px; font-weight: 600; }
.bfs-cat a { text-decoration: none; color: var(--bfs-ink); }
.bfs-cat a:hover { color: var(--bfs-accent); }
.bfs-cat .wp-block-post-terms__separator { display: none; }
.bfs-cat a:not(:first-child) { display: none; }
.bfs-badge { margin: 0 !important; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.bfs-badge a { display: inline-block; background: var(--bfs-accent); color: #fff; text-decoration: none; padding: 5px 8px; }
.bfs-badge a:not(:first-child), .bfs-badge .wp-block-post-terms__separator { display: none; }
.bfs-thumb { position: relative; margin-bottom: 14px; }
.bfs-thumb .bfs-badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; }

.bfs-meta { gap: 4px 8px !important; font-size: 13px; color: var(--bfs-muted); margin-top: 10px !important; align-items: center; }
.bfs-meta > * { margin: 0 !important; }
.bfs-meta .wp-block-post-author-name a { text-decoration: none; color: var(--bfs-ink); font-weight: 600; }
.bfs-meta .wp-block-post-author-name + .wp-block-post-date::before,
.bfs-meta .bfs-cat + .wp-block-post-date::before { content: "·"; margin-right: 8px; }

/* ---------- Latest news strip ---------- */
.bfs-latest .wp-block-post-template { gap: 24px !important; }
.bfs-latest-item { gap: 14px !important; align-items: flex-start !important; }
.bfs-latest-item .wp-block-post-featured-image { flex: 0 0 72px; width: 72px; }
.bfs-latest-item .wp-block-post-title { font-size: 15px; line-height: 1.35; font-weight: 700; }
.bfs-latest-item .wp-block-post-date { margin-top: 6px; font-size: 12px; }
.bfs-section--latest > .alignwide { padding-bottom: 26px; border-bottom: 1px solid var(--bfs-line); }

/* ---------- Top 4-column block ---------- */
.bfs-top { gap: 28px !important; }
.bfs-trend .wp-block-post-template > li { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--bfs-line); }
.bfs-trend .wp-block-post-template > li:last-child { border: 0; }
.bfs-trend-item .wp-block-post-title { font-size: 17px; }

.bfs-hero-card { background: var(--bfs-panel); color: #fff; height: 100%; }
.bfs-hero-card__body { padding: 22px 24px 26px; }
.bfs-hero-card__body .bfs-badge { margin-bottom: 12px !important; }
.bfs-hero-card__body .wp-block-post-title { color: #fff; font-size: 28px; line-height: 1.2; font-weight: 800; }
.bfs-hero-card__body .wp-block-post-excerpt { color: #c9ccd2; font-size: 15px; margin: 12px 0 0; }
.bfs-hero-card__body .wp-block-post-excerpt__excerpt { margin: 0; }
.bfs-hero-card__body .bfs-meta, .bfs-hero-card__body .bfs-meta a, .bfs-hero-card__body .wp-block-post-date { color: #d6d9de !important; }

.bfs-side .wp-block-post-template > li { margin-bottom: 22px; }
.bfs-side-card .bfs-thumb { margin-bottom: 10px; }
.bfs-side-card .wp-block-post-title { font-size: 16px; }

.bfs-col-picks { }
.bfs-picks .wp-block-post-template > li {
	background: var(--bfs-soft); padding: 14px 16px; margin: 0 0 10px; box-shadow: 0 1px 0 var(--bfs-line);
}
.bfs-pick-item .wp-block-post-title { font-size: 15px; line-height: 1.4; }
.bfs-pick-item .bfs-meta { margin-top: 8px !important; }

/* ---------- Grids ---------- */
.bfs-grid .wp-block-post-template { gap: 34px 28px !important; }
.bfs-grid--2 { margin-bottom: 34px; }
.bfs-card .wp-block-post-featured-image { margin-bottom: 14px; }
.bfs-card .wp-block-post-title { font-size: 21px; line-height: 1.32; }
.bfs-card .wp-block-post-date { margin-top: 10px; }
.bfs-card .wp-block-post-excerpt, .bfs-big-card .wp-block-post-excerpt { color: var(--bfs-text); font-size: 15px; margin: 10px 0 0; }
.bfs-card .wp-block-post-excerpt__excerpt, .bfs-big-card .wp-block-post-excerpt__excerpt { margin: 0; }
.bfs-big-card .wp-block-post-title { font-size: 26px; line-height: 1.25; font-weight: 800; }
.bfs-small-card .wp-block-post-title { font-size: 17px; line-height: 1.35; }

.bfs-empty { background: var(--bfs-soft); padding: 26px; color: var(--bfs-muted); margin: 0; }

.wp-block-query-pagination { margin-top: 40px; gap: 6px; font-weight: 700; }
.wp-block-query-pagination a, .wp-block-query-pagination .current {
	text-decoration: none; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0 12px; background: var(--bfs-soft);
}
.wp-block-query-pagination .current, .wp-block-query-pagination a:hover { background: var(--bfs-accent); color: #fff; }

/* ---------- Archive header ---------- */
.bfs-archive-head { padding: 50px 16px 44px; background: var(--bfs-soft); }
.bfs-kicker { margin: 0 0 8px !important; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--bfs-accent); letter-spacing: .06em; }
.bfs-archive-head .wp-block-query-title { font-size: 44px; font-weight: 900; margin: 0; }
.bfs-archive-head .wp-block-term-description { color: var(--bfs-text); max-width: 700px; margin-top: 10px; }

/* ---------- Sidebar ---------- */
.bfs-sidebar { position: sticky; top: 80px; }
.bfs-widget { margin-bottom: 34px !important; }
.bfs-widget h3 {
	font-family: var(--bfs-body); font-size: 15px; font-weight: 800; text-transform: uppercase;
	margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.bfs-widget h3::before { content: ""; width: 12px; height: 12px; background: var(--bfs-accent); }
.bfs-cta { background: var(--bfs-panel); color: #fff; padding: 28px 24px; }
.bfs-cta h3 { color: #fff; font-family: var(--bfs-head); font-size: 24px; text-transform: none; }
.bfs-cta h3::before { display: none; }
.bfs-cta p { color: #c9ccd2; font-size: 15px; margin: 0 0 18px; }
.bfs-cta .wp-block-button__link { background: var(--bfs-accent); color: #fff; border-radius: 0; font-weight: 700; font-size: 14px; padding: 11px 20px; }
.bfs-cta .wp-block-button__link:hover { background: #fff; color: var(--bfs-accent); }
.bfs-mini .wp-block-post-template > li { margin: 0 0 16px; }
.bfs-mini-item { gap: 12px !important; flex-wrap: nowrap !important; align-items: flex-start !important; }
.bfs-mini-item .wp-block-post-featured-image { flex: 0 0 84px; }
.bfs-mini-item .wp-block-post-title { font-size: 15px; line-height: 1.35; }
.bfs-mini-item .wp-block-post-date { font-size: 12px; margin-top: 4px; }
.bfs-widget .wp-block-categories { list-style: none; margin: 0; padding: 0; }
.bfs-widget .wp-block-categories li { padding: 10px 0; border-bottom: 1px solid var(--bfs-line); font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; }
.bfs-widget .wp-block-categories li a { text-decoration: none; }
.bfs-widget .wp-block-categories li a:hover { color: var(--bfs-accent); }
.bfs-widget .wp-block-categories .children { display: none; }

/* ---------- Single post ---------- */
.bfs-single { padding: 0 16px; margin-top: 40px !important; }
.bfs-single .wp-block-columns { gap: 48px; }
.bfs-single .bfs-cat a { display: inline-block !important; background: var(--bfs-accent); color: #fff; padding: 5px 9px; font-size: 11.5px; text-transform: uppercase; font-weight: 700; margin: 0 6px 12px 0; }
.bfs-single h1.wp-block-post-title { font-size: 42px; line-height: 1.18; font-weight: 800; margin: 0; }
.bfs-single .bfs-meta { margin: 16px 0 26px !important; font-size: 14px; }
.bfs-single .wp-block-avatar img { border-radius: 50%; }
.bfs-single .bfs-meta .wp-block-post-time-to-read::before { content: "·"; margin-right: 8px; }
.bfs-article > .wp-block-post-featured-image { margin-bottom: 30px; }
.bfs-article .wp-block-post-content { font-size: 18px; line-height: 1.78; color: var(--bfs-text); }
.bfs-article .wp-block-post-content h2 { font-size: 30px; margin-top: 1.6em; color: var(--bfs-ink); }
.bfs-article .wp-block-post-content h3 { font-size: 24px; margin-top: 1.4em; color: var(--bfs-ink); }
.bfs-article .wp-block-post-content a { color: var(--bfs-accent); }
.bfs-article .wp-block-post-content blockquote { border-left: 4px solid var(--bfs-accent); margin-left: 0; padding: 6px 0 6px 22px; font-family: var(--bfs-head); font-size: 24px; color: var(--bfs-ink); }
.bfs-tags { margin-top: 30px !important; }
.bfs-tags a { display: inline-block; text-decoration: none; font-size: 13px; font-weight: 600; background: var(--bfs-soft); padding: 6px 12px; margin: 0 6px 6px 0; }
.bfs-tags a:hover { background: var(--bfs-accent); color: #fff; }
.bfs-tags .wp-block-post-terms__separator { display: none; }
.bfs-authorbox { margin-top: 36px !important; padding: 24px !important; background: var(--bfs-soft); }
.bfs-authorbox .wp-block-post-author__name { font-family: var(--bfs-head); font-size: 20px; font-weight: 700; }
.bfs-authorbox .wp-block-post-author__avatar img { border-radius: 50%; }

/* ---------- Footer ---------- */
.bfs-footer { background: var(--bfs-soft); color: var(--bfs-text); padding: 64px 16px 0; margin-top: 70px !important; font-size: 15px; }
.bfs-footer h3 { font-family: var(--bfs-body); font-size: 15px; font-weight: 800; text-transform: uppercase; margin: 0 0 18px; color: var(--bfs-ink); }
.bfs-footer a { text-decoration: none; color: var(--bfs-text); }
.bfs-footer a:hover { color: var(--bfs-accent); }
.bfs-footer ul { list-style: none; padding: 0; margin: 0; }
.bfs-footer li { padding: 5px 0; }
.bfs-footer-cols { columns: 2; column-gap: 24px; }
.bfs-logo--footer { text-align: left; margin-bottom: 18px; }
.bfs-logo--footer a { color: var(--bfs-ink) !important; }
.bfs-footer-cta a { color: var(--bfs-accent) !important; font-weight: 700; }
.bfs-footer-bottom { border-top: 1px solid var(--bfs-line); margin-top: 48px !important; padding: 22px 0; font-size: 14px; }
.bfs-footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.bfs-top { flex-wrap: wrap !important; }
	.bfs-top > .wp-block-column { flex-basis: calc(50% - 14px) !important; }
	.bfs-grid--4 .wp-block-post-template, .bfs-latest .wp-block-post-template { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
	.bfs-sidebar { position: static; }
}
@media (max-width: 781px) {
	.bfs-header__left { display: none; }
	.bfs-logo { text-align: left; }
	.bfs-logo__text { font-size: 22px; }
	.bfs-logo__mark { width: 34px; height: 34px; flex-basis: 34px; }
	.bfs-logo__sub { font-size: 8.5px; letter-spacing: .45em; }
	.bfs-header__right { flex: 0 0 auto; }
	.bfs-menu { justify-content: flex-start; }
	.bfs-top > .wp-block-column { flex-basis: 100% !important; }
	.bfs-grid .wp-block-post-template, .bfs-latest .wp-block-post-template { grid-template-columns: 1fr !important; }
	.bfs-single h1.wp-block-post-title, .bfs-archive-head .wp-block-query-title { font-size: 32px; }
	.bfs-big-card .wp-block-post-title { font-size: 22px; }
}
