/*
Theme Name: ScoopsBuzz
Theme URI: https://scoopsbuzz.com/
Author: ScoopsBuzz
Description: A bold, fast news magazine theme for ScoopsBuzz. Breaking news ticker, magazine homepage built from your posts, dark mode, load more, reading progress, table of contents, share buttons and related posts. Works with the normal WordPress editor, categories, menus and widgets.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scoopsbuzz
Tags: news, blog, magazine, custom-logo, custom-menu, featured-images, dark-mode, two-columns, right-sidebar
*/

/* ==========================================================
   1. Tokens
   ========================================================== */
:root {
	--sb-red: #D7191F;
	--sb-red-dark: #A81116;
	--sb-yellow: #FFC400;
	--sb-ink: #141414;
	--sb-black: #0A0A0A;

	--bg: #FFFFFF;
	--bg-soft: #F4F3EF;
	--surface: #FFFFFF;
	--text: #141414;
	--text-soft: #4A4A4A;
	--text-mute: #6B6B6B;
	--line: #E3E1DB;
	--chip-text: #FFFFFF;
	--link: #A81116;

	--font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

	--wrap: 1280px;
	--gutter: 16px;
	--radius: 4px;
	--shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}

html[data-theme="dark"] {
	--bg: #0F0F10;
	--bg-soft: #18181A;
	--surface: #161618;
	--text: #F2F2F0;
	--text-soft: #C9C9C6;
	--text-mute: #9A9A96;
	--line: #2A2A2D;
	--link: #FF6B6F;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

@media (min-width: 768px) {
	:root { --gutter: 24px; }
}

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	transition: background-color .25s ease, color .25s ease;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sb-red); }
:focus-visible { outline: 3px solid var(--sb-yellow); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 12px 16px;
	background: var(--sb-yellow); color: var(--sb-ink); font-weight: 700;
}

.sb-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sb-icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ==========================================================
   3. Top bar + ticker
   ========================================================== */
.sb-topbar { background: var(--sb-black); color: #EDEDED; font-size: 13px; }
.sb-topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.sb-topbar__date { font-weight: 600; white-space: nowrap; color: #BDBDBD; display: none; }
@media (min-width: 900px) { .sb-topbar__date { display: block; } }

.sb-ticker { display: flex; align-items: center; flex: 1; min-width: 0; gap: 12px; }
.sb-ticker__label {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--sb-red); color: #fff; font-family: var(--font-display);
	font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px;
	padding: 6px 10px; transform: skewX(-8deg); white-space: nowrap;
}
.sb-ticker__label > span { transform: skewX(8deg); display: inline-flex; align-items: center; gap: 8px; }
.sb-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: sb-pulse 1.4s ease-in-out infinite; }
@keyframes sb-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.sb-ticker__viewport { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.sb-ticker__track { display: flex; width: max-content; animation: sb-marquee var(--sb-ticker-speed, 40s) linear infinite; }
.sb-ticker:hover .sb-ticker__track, .sb-ticker:focus-within .sb-ticker__track { animation-play-state: paused; }
.sb-ticker__item { white-space: nowrap; padding: 0 22px; position: relative; }
.sb-ticker__item::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--sb-yellow); transform: rotate(45deg); }
.sb-ticker__item a:hover { color: var(--sb-yellow); }
@keyframes sb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.sb-ticker__track { animation: none; }
	html { scroll-behavior: auto; }
}

.sb-topbar__tools { display: flex; align-items: center; gap: 4px; }
.sb-topbar__loc { display: none; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; color: #EDEDED; padding-right: 10px; margin-right: 4px; border-right: 1px solid rgba(255,255,255,.15); }
@media (min-width: 768px) { .sb-topbar__loc { display: inline-flex; } }
.sb-topbar__loc .sb-icon { width: 15px; height: 15px; color: var(--sb-red); stroke: var(--sb-red); }
.sb-clock { color: var(--sb-yellow); font-variant-numeric: tabular-nums; }
.sb-clock:empty { display: none; }
.sb-social { display: none; align-items: center; gap: 2px; }
@media (min-width: 700px) { .sb-social { display: flex; } }
.sb-social a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: #CFCFCF; }
.sb-social a:hover { color: var(--sb-yellow); }
.sb-social .sb-icon { width: 16px; height: 16px; }

.sb-mode {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 32px; border: 0; background: transparent; color: #EDEDED; border-radius: 20px;
}
.sb-mode:hover { color: var(--sb-yellow); }
.sb-mode .sb-icon { width: 18px; height: 18px; }
.sb-mode .sb-sun { display: none; }
html[data-theme="dark"] .sb-mode .sb-sun { display: block; }
html[data-theme="dark"] .sb-mode .sb-moon { display: none; }

/* ==========================================================
   4. Masthead
   ========================================================== */
.sb-masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.sb-masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.sb-brand { display: flex; align-items: center; min-width: 0; }
.sb-brand .custom-logo-link { display: block; }
.sb-brand .custom-logo { max-height: 56px; width: auto; }
@media (min-width: 900px) { .sb-brand .custom-logo { max-height: 72px; } }
.sb-brand__text { font-family: var(--font-display); font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.sb-brand__text span { color: var(--sb-red); }
.sb-brand__tagline { margin: 4px 0 0; color: var(--text-mute); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.sb-logo-dark { display: none; }
html[data-theme="dark"] .sb-has-dark-logo .sb-logo-light { display: none; }
html[data-theme="dark"] .sb-has-dark-logo .sb-logo-dark { display: block; }

.sb-masthead__actions { display: flex; align-items: center; gap: 8px; }
.sb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius);
	font-family: var(--font-ui); font-weight: 700; font-size: 14px; letter-spacing: .02em;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.sb-btn:active { transform: translateY(1px); }
.sb-btn--yellow { background: var(--sb-yellow); color: var(--sb-ink); }
.sb-btn--yellow:hover { background: #FFD43D; color: var(--sb-ink); }
.sb-btn--red { background: var(--sb-red); color: #fff; }
.sb-btn--red:hover { background: var(--sb-red-dark); color: #fff; }
.sb-btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.sb-btn--ghost:hover { border-color: var(--sb-red); color: var(--sb-red); }
.sb-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
	background: transparent; color: var(--text);
}
.sb-iconbtn:hover { color: var(--sb-red); border-color: var(--sb-red); }
.sb-subscribe { display: none; }
@media (min-width: 600px) { .sb-subscribe { display: inline-flex; } }
.sb-menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .sb-masthead [data-sb-search-open] { display: none; } }
@media (min-width: 1024px) { .sb-menu-toggle { display: none; } }

/* ==========================================================
   5. Navigation
   ========================================================== */
.sb-nav { background: var(--sb-ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--sb-red); }
.admin-bar .sb-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .sb-nav { top: 0; } }
.sb-nav__inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.sb-nav__mini { display: none; align-items: center; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 18px; letter-spacing: -.01em; margin-right: 8px; white-space: nowrap; }
.sb-nav__mini span { color: var(--sb-yellow); }
.sb-nav.is-stuck .sb-nav__mini { display: inline-flex; }
.sb-nav__menu { display: none; flex: 1; min-width: 0; }
@media (min-width: 1024px) { .sb-nav__menu { display: block; } }
.sb-nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.sb-nav__menu li { position: relative; }
.sb-nav__menu > ul > li > a {
	display: flex; align-items: center; min-height: 52px; padding: 0 14px;
	font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
	position: relative;
}
.sb-nav__menu > ul > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
	background: var(--sb-yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.sb-nav__menu > ul > li > a:hover, .sb-nav__menu > ul > li.current-menu-item > a, .sb-nav__menu > ul > li.current-cat > a { color: var(--sb-yellow); }
.sb-nav__menu > ul > li > a:hover::after, .sb-nav__menu > ul > li.current-menu-item > a::after, .sb-nav__menu > ul > li.current-cat > a::after { transform: scaleX(1); }
.sb-nav__menu .sub-menu, .sb-nav__menu .children {
	position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--sb-ink); display: block;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 60;
	border-top: 3px solid var(--sb-red); box-shadow: var(--shadow);
}
.sb-nav__menu li:hover > .sub-menu, .sb-nav__menu li:focus-within > .sub-menu,
.sb-nav__menu li:hover > .children, .sb-nav__menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.sb-nav__menu .sub-menu a, .sb-nav__menu .children a { display: block; padding: 10px 16px; font-size: 14px; }
.sb-nav__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sb-nav .sb-iconbtn { border-color: rgba(255,255,255,.18); color: #fff; width: 40px; height: 40px; }
.sb-nav .sb-iconbtn:hover { border-color: var(--sb-yellow); color: var(--sb-yellow); }
.sb-nav__live { display: none; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #CFCFCF; white-space: nowrap; }
@media (min-width: 1200px) { .sb-nav__live { display: inline-flex; } }
.sb-nav__live .sb-pulse { background: var(--sb-red); }
.sb-nav__scroll { display: flex; overflow-x: auto; gap: 4px; flex: 1; scrollbar-width: none; }
.sb-nav__scroll::-webkit-scrollbar { display: none; }
.sb-nav__scroll a { white-space: nowrap; padding: 8px 10px; font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; }
@media (min-width: 1024px) { .sb-nav__scroll { display: none; } }

.sb-progress { position: absolute; left: 0; bottom: -3px; height: 3px; width: 0; background: var(--sb-yellow); z-index: 2; }

/* Off-canvas */
.sb-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.sb-drawer.is-open { visibility: visible; }
.sb-drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s ease; border: 0; width: 100%; }
.sb-drawer.is-open .sb-drawer__scrim { opacity: 1; }
.sb-drawer__panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw);
	background: var(--sb-ink); color: #fff; padding: 20px; overflow-y: auto;
	transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sb-drawer.is-open .sb-drawer__panel { transform: none; }
.sb-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sb-drawer .sb-iconbtn { color: #fff; border-color: rgba(255,255,255,.2); }
.sb-drawer ul { list-style: none; margin: 0; padding: 0; }
.sb-drawer li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.sb-drawer .sub-menu a, .sb-drawer .children a { font-size: 16px; padding-left: 16px; text-transform: none; }
.sb-drawer__search { margin-top: 20px; }

/* Search overlay */
.sb-search { position: fixed; inset: 0; z-index: 210; background: rgba(10,10,10,.96); display: none; align-items: flex-start; justify-content: center; padding: 18vh var(--gutter) 0; }
.sb-search.is-open { display: flex; }
.sb-search__box { width: 100%; max-width: 760px; }
.sb-search__label { color: var(--sb-yellow); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.sb-search__close { position: absolute; top: 20px; right: 20px; color: #fff; border-color: rgba(255,255,255,.25); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
.sb-search .search-field { background: transparent; border: 0; border-bottom: 3px solid #fff; color: #fff; font-family: var(--font-display); font-size: clamp(26px, 5vw, 48px); font-weight: 800; min-height: 72px; padding: 0; border-radius: 0; }
.sb-search .search-field::placeholder { color: #777; }
.search-submit { min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--sb-red); color: #fff; font-weight: 700; }
.sb-search .search-submit { align-self: flex-end; }

/* ==========================================================
   6. Shared: chips, meta, cards
   ========================================================== */
.sb-chip {
	display: inline-block; background: var(--chip, var(--sb-red)); color: var(--chip-text);
	font-family: var(--font-display); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
	padding: 4px 8px; line-height: 1.2; transform: skewX(-8deg);
}
.sb-chip > span { display: inline-block; transform: skewX(8deg); }
a.sb-chip:hover { color: #fff; filter: brightness(1.1); }

.sb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--text-mute); font-size: 13px; }
.sb-meta a:hover { color: var(--sb-red); }
.sb-meta__item { display: inline-flex; align-items: center; gap: 5px; }
.sb-meta .sb-icon { width: 14px; height: 14px; }

.sb-thumb { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 9; display: block; }
.sb-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
a:hover .sb-thumb img, .sb-card:hover .sb-thumb img { transform: scale(1.05); }
.sb-thumb--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sb-ink), #2a2a2a); }
.sb-thumb--empty span { font-family: var(--font-display); font-weight: 900; color: rgba(255,255,255,.15); font-size: 28px; text-transform: uppercase; }

.sb-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sb-card__title { font-size: 19px; font-weight: 800; margin: 0; }
.sb-card__title a { background-image: linear-gradient(var(--sb-yellow), var(--sb-yellow)); background-size: 0 35%; background-position: 0 88%; background-repeat: no-repeat; transition: background-size .3s ease; }
.sb-card__title a:hover { color: inherit; background-size: 100% 35%; }
html[data-theme="dark"] .sb-card__title a:hover { color: var(--sb-ink); }
.sb-card__excerpt { color: var(--text-soft); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sb-card--row { flex-direction: row; gap: 14px; align-items: flex-start; }
.sb-card--row .sb-thumb { width: 112px; flex: none; aspect-ratio: 4 / 3; }
.sb-card--row .sb-card__title { font-size: 16px; }

/* Overlay card */
.sb-overlay { position: relative; display: block; overflow: hidden; color: #fff; background: var(--sb-ink); min-height: 220px; height: 100%; }
.sb-overlay .sb-thumb { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.sb-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.sb-overlay__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sb-overlay__title { color: #fff; font-size: 22px; font-weight: 900; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.sb-overlay__title a:hover { color: var(--sb-yellow); }
.sb-overlay .sb-meta { color: #D5D5D5; }
.sb-overlay .sb-meta a:hover { color: var(--sb-yellow); }

/* Section heads */
.sb-section { padding: 32px 0; }
.sb-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sb-head__title {
	margin: 0; font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em;
	display: inline-flex; align-items: center; gap: 10px;
}
.sb-head__title::before { content: ""; width: 12px; height: 22px; background: var(--chip, var(--sb-red)); transform: skewX(-12deg); }
.sb-head__line { flex: 1; height: 2px; background: var(--text); opacity: .9; }
.sb-head__more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sb-head__more .sb-icon { width: 16px; height: 16px; }

/* ==========================================================
   7. Front page
   ========================================================== */
.sb-hero { padding-top: 24px; }
.sb-hero__grid { display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr); }
.sb-hero__side { display: grid; gap: 4px; }
@media (min-width: 900px) {
	.sb-hero__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* Overlay style: image fills the box at 16:9, never cropped on the lead */
.sb-hero--overlay .sb-hero__lead .sb-overlay { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
.sb-hero--overlay .sb-hero__side { grid-template-rows: 1fr 1fr; }
.sb-hero--overlay .sb-hero__side .sb-overlay { min-height: 220px; }
.sb-hero--overlay .sb-hero__lead .sb-overlay__body { padding: 28px; }
.sb-hero--overlay .sb-hero__lead .sb-overlay__title { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.05; }
.sb-hero--overlay .sb-hero__lead .sb-overlay__excerpt { color: #E6E6E6; max-width: 60ch; margin: 0; font-family: var(--font-body); font-size: 17px; display: none; }
@media (min-width: 900px) { .sb-hero--overlay .sb-hero__lead .sb-overlay__excerpt { display: block; } }

/* Stacked style: headline under the image, image never covered */
.sb-hero--stacked .sb-hero__grid { gap: 28px; }
.sb-hero--stacked .sb-hero__side { gap: 24px; align-content: start; }
.sb-card--lead .sb-card__title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; line-height: 1.08; }
.sb-card--lead .sb-card__excerpt { font-family: var(--font-body); font-size: 18px; -webkit-line-clamp: 2; }
.sb-hero--stacked .sb-hero__side .sb-card { border-top: 3px solid var(--text); padding-top: 12px; }
.sb-hero--stacked .sb-hero__side .sb-card__title { font-size: 18px; }

.sb-strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
@media (min-width: 600px) { .sb-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .sb-strip { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.sb-strip .sb-card { border-top: 3px solid var(--text); padding-top: 12px; }
.sb-strip .sb-card__title { font-size: 17px; }

.sb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .sb-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

.sb-trending { counter-reset: trend; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sb-trending li { counter-increment: trend; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.sb-trending li::before {
	content: counter(trend, decimal-leading-zero); font-family: var(--font-display); font-weight: 900;
	font-size: 32px; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--sb-red); min-width: 44px;
}
.sb-trending a { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.2; }

.sb-catblock { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .sb-catblock { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); } }
.sb-catblock__list { display: grid; gap: 18px; align-content: start; }
.sb-catblock__lead .sb-card__title { font-size: 26px; }

.sb-catrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .sb-catrow { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.sb-feed { display: grid; gap: 28px; }
.sb-feed .sb-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .sb-feed .sb-card { grid-template-columns: 280px minmax(0,1fr); gap: 22px; } }
.sb-feed .sb-card__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sb-feed .sb-card__title { font-size: 22px; }
.sb-loadmore { display: flex; justify-content: center; padding-top: 8px; }
.sb-loadmore .sb-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.sb-cta { background: var(--sb-yellow); color: var(--sb-ink); position: relative; overflow: hidden; }
.sb-cta::before { content: ""; position: absolute; right: -60px; top: -40px; width: 320px; height: 320px; background: var(--sb-red); transform: skewX(-12deg); opacity: .95; }
.sb-cta__inner { position: relative; display: grid; gap: 16px; padding: 40px var(--gutter); align-items: center; }
@media (min-width: 900px) { .sb-cta__inner { grid-template-columns: 1fr auto; } }
.sb-cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; text-transform: uppercase; margin: 0; }
.sb-cta p { margin: 6px 0 0; font-size: 17px; max-width: 56ch; }
.sb-cta .sb-btn { background: var(--sb-ink); color: #fff; min-height: 52px; padding: 0 28px; font-size: 15px; }
.sb-cta .sb-btn:hover { background: #000; color: var(--sb-yellow); }

/* ==========================================================
   8. Archive / blog
   ========================================================== */
.sb-pagehead { background: var(--sb-ink); color: #fff; padding: 36px 0 32px; position: relative; overflow: hidden; }
.sb-pagehead::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 200px; background: var(--chip, var(--sb-red)); transform: skewX(-14deg); opacity: .9; }
.sb-pagehead__inner { position: relative; z-index: 1; }
.sb-pagehead__kicker { color: var(--sb-yellow); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.sb-pagehead__title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; text-transform: uppercase; margin: 0; color: #fff; }
.sb-pagehead__desc { color: #CFCFCF; max-width: 70ch; margin-top: 10px; font-size: 16px; }
.sb-pagehead__desc p { margin: 0; }

.sb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
@media (min-width: 640px) { .sb-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.sb-grid .sb-card { gap: 12px; }
.sb-grid .sb-card--first { grid-column: 1 / -1; }
@media (min-width: 640px) {
	.sb-grid .sb-card--first { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 24px; align-items: center; }
	.sb-grid .sb-card--first .sb-card__title { font-size: 30px; }
}
.sb-card__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }

.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--line); font-weight: 700; border-radius: var(--radius);
}
.page-numbers.current { background: var(--sb-red); border-color: var(--sb-red); color: #fff; }
a.page-numbers:hover { border-color: var(--sb-red); color: var(--sb-red); }

.sb-empty { padding: 40px 0; }
.sb-empty h2 { font-size: 28px; }

/* ==========================================================
   9. Sidebar + widgets
   ========================================================== */
.sb-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-content: start; min-width: 0; }
.sb-sidebar__sticky { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; min-width: 0; }
@media (min-width: 1024px) { .sb-sidebar__sticky { position: sticky; top: 76px; display: grid; gap: 32px; } }
.widget { margin: 0; }
.widget-title, .widget .wp-block-heading, .sb-sidebar h2 {
	font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
	padding-bottom: 10px; margin-bottom: 14px; border-bottom: 3px solid var(--text); position: relative;
}
.widget-title::after, .sb-sidebar h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 48px; height: 3px; background: var(--sb-red); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.widget li a { font-weight: 600; }
.wp-block-latest-posts__post-title { font-family: var(--font-display); font-weight: 800; }
.wp-block-tag-cloud a, .tagcloud a, .sb-tags a {
	display: inline-block; padding: 6px 10px; margin: 0 4px 6px 0; border: 1px solid var(--line);
	font-size: 13px !important; font-weight: 600; border-radius: var(--radius);
}
.wp-block-tag-cloud a:hover, .tagcloud a:hover, .sb-tags a:hover { background: var(--sb-red); border-color: var(--sb-red); color: #fff; }

.wp-block-search__label { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 16px; letter-spacing: .04em; display: block; margin-bottom: 10px; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.wp-block-search__button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--sb-red); color: #fff; font-weight: 700; margin: 0; }
.wp-block-search__button:hover { background: var(--sb-red-dark); }

.sb-ad { background: var(--bg-soft); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; min-height: 250px; color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

/* ==========================================================
   10. Single post
   ========================================================== */
.sb-article { padding: 28px 0 40px; }
.sb-crumbs { font-size: 13px; color: var(--text-mute); margin-bottom: 14px; }
.sb-crumbs a:hover { color: var(--sb-red); }
.sb-crumbs .sep { margin: 0 6px; }
.sb-article__head { max-width: 900px; }
.sb-article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sb-article__title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; line-height: 1.06; margin-bottom: 14px; }
.sb-article__dek { font-family: var(--font-body); font-size: 20px; line-height: 1.45; color: var(--text-soft); margin: 0 0 18px; }
.sb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sb-byline__author { display: flex; align-items: center; gap: 10px; }
.sb-byline__author img { border-radius: 50%; width: 44px; height: 44px; }
.sb-byline__name { font-weight: 700; display: block; }
.sb-byline__date { font-size: 13px; color: var(--text-mute); }
.sb-byline .sb-share { margin-left: auto; }

.sb-share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sb-share__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; border: 1px solid var(--line); color: var(--text); background: transparent;
}
.sb-share__btn:hover { background: var(--sb-ink); border-color: var(--sb-ink); color: #fff; }
html[data-theme="dark"] .sb-share__btn:hover { background: #fff; color: var(--sb-ink); }
.sb-share__btn .sb-icon { width: 17px; height: 17px; }
.sb-share__btn.is-copied { background: var(--sb-yellow); border-color: var(--sb-yellow); color: var(--sb-ink); }

.sb-article__figure { margin: 24px 0 0; }
.sb-article__figure img { width: 100%; }
.sb-article__figure figcaption { font-size: 13px; color: var(--text-mute); padding-top: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

.sb-article__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 28px; }
@media (min-width: 1024px) { .sb-article__layout { grid-template-columns: minmax(0,1fr) 340px; } }

/* Key Takeaways */
.sb-takeaways { background: var(--surface); border: 2px solid var(--text); box-shadow: 6px 6px 0 var(--sb-yellow); padding: 18px 22px 8px; margin: 0 0 28px; }
.entry-content .sb-takeaways { margin: 2em 6px 2em 0; font-family: var(--font-ui); }
.entry-content .sb-takeaways ul { padding-left: 0; }
.sb-takeaways__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; color: var(--sb-red); }
.sb-takeaways__title .sb-icon { width: 18px; height: 18px; }
.sb-takeaways ul { list-style: none; margin: 0; padding: 0; }
.sb-takeaways li { position: relative; padding: 0 0 12px 26px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.sb-takeaways li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 10px; background: var(--sb-red); transform: rotate(45deg); }

.sb-toc { border: 1px solid var(--line); border-left: 4px solid var(--sb-red); background: var(--bg-soft); padding: 16px 18px; margin: 0 0 28px; }
.sb-toc[hidden] { display: none; }
.sb-toc__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 0; color: var(--text); font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 15px; letter-spacing: .04em; min-height: 32px; }
.sb-toc__toggle .sb-icon { transition: transform .2s ease; }
.sb-toc__toggle[aria-expanded="false"] .sb-icon { transform: rotate(-90deg); }
.sb-toc ol { margin: 10px 0 0; padding-left: 20px; }
.sb-toc li { padding: 4px 0; font-size: 15px; }
.sb-toc li.is-sub { margin-left: 14px; list-style: circle; }
.sb-toc a:hover { color: var(--sb-red); }
.sb-toc a.is-active { color: var(--sb-red); font-weight: 700; }

/* Table of Contents block added in the editor (Rank Math) */
.entry-content .wp-block-rank-math-toc-block { box-sizing: border-box; max-width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--sb-red); padding: 16px 20px; margin: 0 0 1.6em; font-family: var(--font-ui); font-size: 16px; }
.entry-content .wp-block-rank-math-toc-block h2, .entry-content .wp-block-rank-math-toc-block h3, .entry-content .wp-block-rank-math-toc-block h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.entry-content .wp-block-rank-math-toc-block ul, .entry-content .wp-block-rank-math-toc-block ol { margin: 0; padding-left: 20px; }
.entry-content .wp-block-rank-math-toc-block li { margin: 4px 0; }
.entry-content .wp-block-rank-math-toc-block a { color: var(--text); text-decoration: none; }
.entry-content .wp-block-rank-math-toc-block a:hover { color: var(--sb-red); text-decoration: underline; }

/* Readable content */
.entry-content { font-family: var(--font-body); font-size: 19px; line-height: 1.7; color: var(--text); }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: 30px; font-weight: 900; margin-top: 1.6em; scroll-margin-top: 80px; }
.entry-content h3 { font-size: 23px; font-weight: 800; margin-top: 1.4em; scroll-margin-top: 80px; }
.entry-content h4 { font-size: 19px; font-weight: 800; margin-top: 1.2em; }
.entry-content a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--sb-yellow); text-decoration-thickness: 3px; }
.entry-content > p:first-of-type::first-letter {
	float: left; font-family: var(--font-display); font-weight: 900; font-size: 4.2em; line-height: .82;
	padding: 6px 10px 0 0; color: var(--sb-red);
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--sb-red);
	font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.3;
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--text-mute); font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 15px; }
.entry-content .wp-block-table { overflow-x: auto; }
/* Wide tables scroll sideways instead of stretching the page */
.entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 640px) { .entry-content table { display: table; } }
.entry-content .wp-block-table { overflow-x: auto; max-width: 100%; }
.entry-content .wp-block-table table { display: table; min-width: 100%; }

/* Nothing in an article can be wider than the screen */
.entry-content, .sb-article__main { min-width: 0; overflow-wrap: break-word; }
.entry-content > *, .entry-content iframe, .entry-content embed, .entry-content video, .entry-content pre { max-width: 100%; }
.entry-content a { overflow-wrap: anywhere; }
html, body { overflow-x: clip; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { background: var(--sb-ink); color: #fff; border-color: var(--sb-ink); }
.entry-content tbody tr:nth-child(even) td { background: var(--bg-soft); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { font-family: var(--font-ui); font-size: 13px; color: var(--text-mute); margin-top: 8px; }
.entry-content img { height: auto; }
.entry-content pre, .entry-content code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
.entry-content pre { background: var(--bg-soft); padding: 16px; overflow-x: auto; }
.entry-content hr { border: 0; height: 3px; background: var(--line); margin: 2em 0; }
.alignwide { max-width: none; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-button__link { background: var(--sb-red); color: #fff !important; text-decoration: none !important; border-radius: var(--radius); font-family: var(--font-ui); font-weight: 700; }
.page-links { font-family: var(--font-ui); font-weight: 700; margin: 2em 0; }

.sb-tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sb-tags strong { margin-right: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

.sb-sharebar { margin: 28px 0; padding: 18px 0; border-top: 3px solid var(--text); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.sb-sharebar strong { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; }

.sb-author { display: flex; gap: 18px; padding: 22px; background: var(--bg-soft); border-top: 4px solid var(--sb-red); margin: 28px 0; }
.sb-author img { border-radius: 50%; width: 80px; height: 80px; flex: none; }
.sb-author__kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--sb-red); margin: 0; }
.sb-author__name { font-size: 22px; font-weight: 900; margin: 2px 0 6px; }
.sb-author__bio { margin: 0; color: var(--text-soft); font-size: 15px; }

.sb-postnav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 28px 0; }
@media (min-width: 640px) { .sb-postnav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sb-postnav a { display: block; border: 1px solid var(--line); padding: 16px; height: 100%; }
.sb-postnav a:hover { border-color: var(--sb-red); color: inherit; }
.sb-postnav span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--sb-red); margin-bottom: 6px; }
.sb-postnav strong { font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.sb-postnav .next { text-align: right; }

.sb-related { margin-top: 40px; }
.sb-related__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 640px) { .sb-related__grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Comments */
.comments-area { margin-top: 40px; }
.comments-title, .comment-reply-title { font-size: 22px; font-weight: 900; text-transform: uppercase; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-metadata { font-size: 13px; color: var(--text-mute); }
.comment-content { clear: both; padding-top: 8px; font-family: var(--font-body); font-size: 17px; }
.reply a { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--sb-red); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; border-radius: var(--radius);
}
.comment-form .submit { min-height: 48px; padding: 0 22px; border: 0; background: var(--sb-red); color: #fff; font-weight: 700; border-radius: var(--radius); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* Page */
.sb-page { padding: 32px 0 48px; }
.sb-page .entry-content > p:first-of-type::first-letter { all: unset; }

/* 404 */
.sb-404 { padding: 72px 0; text-align: center; }
.sb-404__code { font-family: var(--font-display); font-weight: 900; font-size: clamp(110px, 22vw, 220px); line-height: .9; color: var(--sb-red); -webkit-text-stroke: 0; margin: 0; }
.sb-404 .search-form { max-width: 520px; margin: 24px auto 0; }

/* ==========================================================
   11. Footer
   ========================================================== */
.sb-footer { background: var(--sb-black); color: #CFCFCF; margin-top: 48px; border-top: 6px solid var(--sb-red); }
.sb-footer a:hover { color: var(--sb-yellow); }
.sb-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px var(--gutter) 32px; }
@media (min-width: 768px) { .sb-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.sb-footer__brand .custom-logo { max-height: 56px; width: auto; margin-bottom: 14px; }
.sb-footer__about { font-size: 15px; margin: 0 0 16px; max-width: 42ch; }
.sb-footer h2 { color: #fff; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.sb-footer ul { list-style: none; margin: 0; padding: 0; }
.sb-footer li { padding: 6px 0; font-size: 15px; }
.sb-footer .sb-social { display: flex; }
.sb-footer .sb-social a { border: 1px solid rgba(255,255,255,.18); width: 40px; height: 40px; margin-right: 6px; }
.sb-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; }
.sb-footer__bottom .sb-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.sb-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }
.sb-footer__bottom li { padding: 0; font-size: 13px; }
.sb-footer .widget li { border-bottom-color: rgba(255,255,255,.08); }

.sb-totop {
	position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 48px; height: 48px; border: 0;
	background: var(--sb-red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .25s ease;
}
.sb-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sb-totop:hover { background: var(--sb-ink); }

/* Reveal on scroll */
.sb-js .sb-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.sb-js .sb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sb-js .sb-reveal { opacity: 1; transform: none; transition: none; } }
/* Above-the-fold stories never fade in: keeps Largest Contentful Paint fast */
.sb-js .sb-hero .sb-reveal, .sb-js .sb-card--first.sb-reveal { opacity: 1; transform: none; transition: none; }

/* WordPress core classes */
.sticky .sb-card__title::after { content: "Featured"; font-family: var(--font-ui); font-size: 11px; font-weight: 800; text-transform: uppercase; background: var(--sb-yellow); color: var(--sb-ink); padding: 2px 6px; margin-left: 8px; vertical-align: middle; }
.bypostauthor { display: block; }
.gallery-caption { display: block; }
