/* =========================================================
   Blog By Crypto — main stylesheet
   Clean crypto-news look: serif headlines, sans-serif UI,
   card grids, Bitcoin-orange accent.
   ========================================================= */

:root {
	--bbc-accent: #F7931A;        /* Bitcoin orange */
	--bbc-accent-dark: #d97b06;
	--bbc-ink: #0f172a;           /* near-black slate */
	--bbc-body: #1f2937;
	--bbc-muted: #6b7280;
	--bbc-line: #e8eaed;
	--bbc-bg: #ffffff;
	--bbc-bg-soft: #f7f8fa;
	--bbc-up: #16a34a;
	--bbc-down: #dc2626;
	--bbc-radius: 12px;
	--bbc-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
	--bbc-max: 1200px;
	--bbc-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--bbc-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bbc-header-bg: #ffffff;
	--bbc-card-bg: #ffffff;
	--bbc-rail-bg: #f8fafc;
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
	--bbc-ink: #f1f5f9;
	--bbc-body: #cbd5e1;
	--bbc-muted: #94a3b8;
	--bbc-line: #273244;
	--bbc-bg: #0b1220;
	--bbc-bg-soft: #131c2e;
	--bbc-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.45);
	--bbc-header-bg: #0f172a;
	--bbc-card-bg: #131c2e;
	--bbc-rail-bg: #131c2e;
	--bbc-accent-dark: #fbbf24;
}
html[data-theme="dark"] body { background: var(--bbc-bg); color: var(--bbc-body); }

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--bbc-sans);
	color: var(--bbc-body);
	background: var(--bbc-bg);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--bbc-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--bbc-serif); color: var(--bbc-ink); line-height: 1.2; margin: 0 0 .5em; }

.container { max-width: var(--bbc-max); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 14px; z-index: 1000; border-radius: 6px; box-shadow: var(--bbc-shadow); }

/* ---------- Price ticker ---------- */
.price-ticker {
	background: var(--bbc-ink);
	color: #e5e7eb;
	font-size: 13px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-inner { display: flex; align-items: center; gap: 14px; height: 40px; overflow: hidden; }
.ticker-inner--full { padding: 0 20px; max-width: none; }
.ticker-label {
	font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	font-size: 11px; color: var(--bbc-accent); flex: 0 0 auto;
}
/* Marquee: the list is a wide track that scrolls continuously. Items are
   duplicated in JS so the loop is seamless. */
.ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ticker-list {
	list-style: none; display: flex; gap: 22px; margin: 0; padding: 0;
	width: max-content;
	animation: bbc-ticker-scroll var(--bbc-ticker-speed, 40s) linear infinite;
	will-change: transform;
}
.price-ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker-item .sym { font-weight: 700; color: #fff; }
.ticker-item .chg { font-weight: 600; }
.ticker-item .chg.up { color: #4ade80; }
.ticker-item .chg.down { color: #f87171; }
.ticker-item.is-loading { opacity: .5; }

@keyframes bbc-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.ticker-list { animation: none; }
	.ticker-viewport { overflow-x: auto; scrollbar-width: none; }
	.ticker-viewport::-webkit-scrollbar { display: none; }
}

/* ---------- News headline ticker ---------- */
.news-ticker {
	background: #fff;
	border-bottom: 1px solid var(--bbc-line);
	font-size: 14px;
}
.news-ticker-inner { display: flex; align-items: center; gap: 14px; height: 42px; overflow: hidden; }
.news-ticker-inner--full { padding: 0 20px; max-width: none; }
.news-ticker-label {
	flex: 0 0 auto; background: var(--bbc-accent); color: #fff; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em; font-size: 11px;
	padding: 5px 10px; border-radius: 5px; line-height: 1;
}
.news-ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.news-ticker-list {
	list-style: none; display: flex; gap: 0; margin: 0; padding: 0;
	width: max-content;
	animation: bbc-news-scroll var(--bbc-news-speed, 45s) linear infinite;
	will-change: transform;
}
.news-ticker:hover .news-ticker-list { animation-play-state: paused; }
.news-ticker-item { white-space: nowrap; display: flex; align-items: center; }
.news-ticker-item::after { content: "\2022"; color: var(--bbc-accent); margin: 0 22px; }
.news-ticker-item a { color: var(--bbc-ink); font-weight: 600; text-decoration: none; }
.news-ticker-item a:hover { color: var(--bbc-accent-dark); text-decoration: underline; }

@keyframes bbc-news-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.news-ticker-list { animation: none; }
	.news-ticker-viewport { overflow-x: auto; scrollbar-width: none; }
	.news-ticker-viewport::-webkit-scrollbar { display: none; }
}

/* ---------- Header ---------- */
.site-header { background: var(--bbc-header-bg); border-bottom: 1px solid var(--bbc-line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-branding { flex: 0 0 auto; }
.site-branding img { max-height: 44px; width: auto; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 44px; width: auto; }

/* Centered always-on search bar */
.header-search-bar { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.header-search-bar .search-form { width: 100%; max-width: 560px; gap: 0; position: relative; }
.header-search-bar .search-field {
	width: 100%; border-radius: 999px; background: var(--bbc-bg-soft);
	border: 1px solid var(--bbc-line); padding: 10px 18px 10px 42px; font-size: 14.5px; color: var(--bbc-ink);
}
.header-search-bar .search-form::before {
	content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	width: 16px; height: 16px; pointer-events: none; color: var(--bbc-muted);
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 10-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1114 9.5 4.5 4.5 0 019.5 14z'/></svg>") no-repeat center / contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 10-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1114 9.5 4.5 4.5 0 019.5 14z'/></svg>") no-repeat center / contain;
}
.header-search-bar .search-submit {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	padding: 0 16px; height: calc(100% - 8px); border-radius: 999px; font-size: 13px;
}

/* Primary navigation bar (categories row under header) */
.main-navigation { border-top: 1px solid var(--bbc-line); background: var(--bbc-header-bg); }
.nav-inner { display: flex; }
.main-navigation ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block; padding: 11px 14px; color: var(--bbc-ink); font-weight: 600;
	font-size: 14px; border-radius: 8px; text-decoration: none;
}
.main-navigation a:hover { background: var(--bbc-bg-soft); color: var(--bbc-accent-dark); }
.main-navigation .current-cat > a,
.main-navigation .current-menu-item > a { color: var(--bbc-accent-dark); }

/* dropdowns */
.main-navigation ul ul {
	display: none; position: absolute; top: 100%; left: 0; background: var(--bbc-header-bg);
	box-shadow: var(--bbc-shadow); border: 1px solid var(--bbc-line); border-radius: 10px;
	padding: 6px; min-width: 200px; flex-direction: column; z-index: 60;
}
.main-navigation li:hover > ul { display: flex; }

.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.search-toggle, .menu-toggle, .theme-toggle {
	background: var(--bbc-bg-soft); border: 1px solid var(--bbc-line); color: var(--bbc-ink);
	width: 40px; height: 40px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.search-toggle { display: none; }
.search-toggle:hover, .theme-toggle:hover { color: var(--bbc-accent-dark); }
.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-bar { width: 18px; height: 2px; background: var(--bbc-ink); border-radius: 2px; }

/* Theme toggle icon swap */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.header-search { border-top: 1px solid var(--bbc-line); background: var(--bbc-bg-soft); padding: 14px 0; }
.header-search[hidden] { display: none; }

/* search form */
.search-form { display: flex; gap: 8px; max-width: 620px; }
.search-field {
	flex: 1; padding: 11px 14px; border: 1px solid var(--bbc-line); border-radius: 9px;
	font-size: 15px; font-family: inherit; background: #fff;
}
.search-field:focus { outline: 2px solid var(--bbc-accent); border-color: var(--bbc-accent); }
.search-submit {
	background: var(--bbc-accent); color: #fff; border: 0; padding: 0 20px; border-radius: 9px;
	font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
}
.search-submit:hover { background: var(--bbc-accent-dark); }

/* ---------- Layout ---------- */
.site-main { padding: 28px 0 56px; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; }
.primary-col { min-width: 0; }
.sidebar-col { min-width: 0; }

/* ---------- Category pill ---------- */
.cat-pill {
	display: inline-block; font-family: var(--bbc-sans); font-size: 11px; font-weight: 700;
	letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--pill, var(--bbc-accent));
	padding: 4px 9px; border-radius: 5px; margin-bottom: 10px; text-decoration: none; line-height: 1;
}
.cat-pill:hover { text-decoration: none; opacity: .9; }

/* ---------- Sentiment badge (bullish / bearish) ---------- */
.card-tagrow, .mini-tagrow, .headline-tagrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.card-tagrow .cat-pill, .mini-tagrow .cat-pill, .headline-tagrow .cat-pill { margin-bottom: 0; }
.sentiment-badge {
	display: inline-flex; align-items: center; gap: 3px; font-family: var(--bbc-sans);
	font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; line-height: 1; white-space: nowrap;
}
.sentiment-badge--up { color: #15803d; background: rgba(22,163,74,.12); }
.sentiment-badge--down { color: #b91c1c; background: rgba(220,38,38,.12); }
.sentiment-arrow { font-size: 9px; }
html[data-theme="dark"] .sentiment-badge--up { color: #4ade80; background: rgba(22,163,74,.18); }
html[data-theme="dark"] .sentiment-badge--down { color: #f87171; background: rgba(220,38,38,.18); }

.card-excerpt { font-size: 14px; color: var(--bbc-muted); margin: 0 0 10px; line-height: 1.5; }

/* ---------- Post meta ---------- */
.post-meta { font-size: 13.5px; color: var(--bbc-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-meta .meta-author { color: var(--bbc-ink); font-weight: 600; }
.meta-sep { color: var(--bbc-line); }

/* ---------- Homepage hero ---------- */
.home-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; margin-bottom: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--bbc-line); }
.hero-main .hero-thumb { display: block; border-radius: var(--bbc-radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bbc-bg-soft); }
.hero-main .hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { padding-top: 16px; }
.hero-title { font-size: 34px; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 12px; }
.hero-title a { color: var(--bbc-ink); text-decoration: none; }
.hero-title a:hover { color: var(--bbc-accent-dark); }
.hero-excerpt { color: var(--bbc-body); font-size: 16px; margin: 0 0 14px; }

.hero-secondary { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Post card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid--archive { grid-template-columns: repeat(2, 1fr); }

.post-card { display: flex; flex-direction: column; }
.post-card .card-thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: var(--bbc-bg-soft); margin-bottom: 12px; }
.post-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card .card-thumb:hover img { transform: scale(1.04); }
.card-title { font-size: 19px; font-weight: 700; line-height: 1.28; margin: 4px 0 8px; letter-spacing: -.005em; }
.card-title a { color: var(--bbc-ink); text-decoration: none; }
.card-title a:hover { color: var(--bbc-accent-dark); }
.card-meta { font-size: 13px; color: var(--bbc-muted); }

/* wide card (hero secondary): horizontal layout */
.post-card--wide { flex-direction: row; gap: 14px; align-items: flex-start; }
.post-card--wide .card-thumb { flex: 0 0 132px; width: 132px; aspect-ratio: 4/3; margin-bottom: 0; }
.post-card--wide .card-body { flex: 1; min-width: 0; }
.post-card--wide .card-title { font-size: 16.5px; margin-top: 0; }

.card-thumb-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#eef1f5,#e3e7ee); }

/* ---------- Home sections ---------- */
.home-section { margin: 0 0 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--bbc-ink); }
.section-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin: 0; }
.title-tick { width: 8px; height: 22px; border-radius: 3px; background: var(--pill, var(--bbc-accent)); display: inline-block; }
.section-link { font-family: var(--bbc-sans); font-size: 13px; font-weight: 700; color: var(--bbc-accent-dark); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }

/* ---------- Single post ---------- */
/* Centered, full-width reading column (no sidebar) */
.single-wrap { display: block; }
.single-wrap .primary-col { max-width: 820px; margin: 0 auto; }
.single-post { max-width: 100%; }
/* When the optional sidebar is enabled, the article fills its grid column */
.content-with-sidebar .single-post { max-width: 100%; }
.single-header { margin-bottom: 18px; }
.single-title { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 8px 0 14px; }
.single-featured { margin: 0 0 26px; border-radius: var(--bbc-radius); overflow: hidden; }
.single-featured img { width: 100%; }
.single-featured figcaption { font-size: 13px; color: var(--bbc-muted); padding: 8px 2px; }

.single-content { font-size: 18px; line-height: 1.75; color: #27313f; }
.single-content p { margin: 0 0 1.3em; }
.single-content h2 { font-size: 27px; margin: 1.6em 0 .5em; }
.single-content h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.single-content a { color: var(--bbc-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.single-content img { border-radius: 10px; margin: 1.2em 0; }
.single-content blockquote {
	border-left: 4px solid var(--bbc-accent); margin: 1.5em 0; padding: .4em 0 .4em 22px;
	font-family: var(--bbc-serif); font-size: 20px; color: var(--bbc-ink); font-style: italic;
}
.single-content ul, .single-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.single-content li { margin-bottom: .4em; }
.single-content code { background: var(--bbc-bg-soft); padding: .15em .4em; border-radius: 5px; font-size: .9em; }
.single-content pre { background: var(--bbc-ink); color: #e5e7eb; padding: 18px; border-radius: 10px; overflow: auto; }

.single-tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.single-tags a { background: var(--bbc-bg-soft); border: 1px solid var(--bbc-line); padding: 5px 12px; border-radius: 20px; font-size: 13px; color: var(--bbc-body); }
.single-tags a:hover { border-color: var(--bbc-accent); color: var(--bbc-accent-dark); text-decoration: none; }

.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--bbc-bg-soft); border: 1px solid var(--bbc-line); border-radius: var(--bbc-radius); padding: 20px; margin: 32px 0; }
.author-box img { border-radius: 50%; flex: 0 0 auto; }
.author-name { display: block; font-size: 16px; margin-bottom: 4px; font-family: var(--bbc-serif); }
.author-box p { margin: 0; font-size: 14.5px; color: var(--bbc-muted); }

.post-navigation { margin: 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--bbc-line); padding-top: 24px; }
.post-navigation .nav-links { display: contents; }
.post-navigation a { display: block; padding: 14px 16px; border: 1px solid var(--bbc-line); border-radius: 10px; color: var(--bbc-ink); font-family: var(--bbc-serif); font-weight: 600; }
.post-navigation a:hover { border-color: var(--bbc-accent); text-decoration: none; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-label { display: block; font-family: var(--bbc-sans); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--bbc-muted); margin-bottom: 4px; }

/* ---------- Sidebar / widgets ---------- */
.sidebar-col .widget { margin-bottom: 34px; }
.widget-title { font-size: 16px; font-weight: 700; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--bbc-ink); display: inline-block; }
.widget ul { list-style: none; margin: 0; padding: 0; }

.mini-post-list { display: flex; flex-direction: column; gap: 16px; }
.mini-post { display: flex; gap: 12px; align-items: flex-start; }
.mini-thumb { flex: 0 0 78px; width: 78px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--bbc-bg-soft); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { flex: 1; min-width: 0; }
.mini-body .cat-pill { margin-bottom: 5px; padding: 2px 6px; font-size: 9.5px; }
.mini-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.mini-title a { color: var(--bbc-ink); }
.mini-title a:hover { color: var(--bbc-accent-dark); text-decoration: none; }
.mini-date { font-size: 12px; color: var(--bbc-muted); }

.widget-categories li { padding: 7px 0; border-bottom: 1px solid var(--bbc-line); font-size: 14.5px; display: flex; justify-content: space-between; }
.widget-categories a { color: var(--bbc-body); }
.widget-categories a:hover { color: var(--bbc-accent-dark); text-decoration: none; }

/* ---------- Archive head ---------- */
.archive-head { margin-bottom: 26px; padding-bottom: 14px; border-bottom: 2px solid var(--bbc-ink); }
.archive-title { font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.archive-title .title-tick { height: 28px; width: 9px; }
.archive-desc { color: var(--bbc-muted); margin-top: 8px; font-family: var(--bbc-sans); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 36px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--bbc-line); border-radius: 9px; color: var(--bbc-ink); font-weight: 600; font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--bbc-accent); text-decoration: none; }
.pagination .page-numbers.current { background: var(--bbc-accent); color: #fff; border-color: var(--bbc-accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bbc-ink); color: #cbd5e1; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding: 48px 20px 36px; }
.footer-brand img { max-height: 42px; width: auto; background: #fff; padding: 8px 10px; border-radius: 8px; }
.footer-tagline { color: #94a3b8; font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-widgets .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.18); }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets li { padding: 5px 0; font-size: 14px; }
.footer-widgets a { color: #cbd5e1; }
.footer-widgets a:hover { color: var(--bbc-accent); text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.copyright { font-size: 13px; color: #94a3b8; margin: 0; }
.footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-menu a { color: #cbd5e1; font-size: 13px; }
.footer-menu a:hover { color: var(--bbc-accent); text-decoration: none; }

/* ---------- Comments ---------- */
.comments-area { margin: 40px 0 0; max-width: 100%; }
.comments-title { font-size: 22px; margin-bottom: 18px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--bbc-line); }
.comment-list .children { list-style: none; margin-left: 28px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--bbc-line); border-radius: 9px; font-family: inherit; font-size: 15px; margin-bottom: 12px;
}
.comment-form .submit { background: var(--bbc-accent); color: #fff; border: 0; padding: 11px 22px; border-radius: 9px; font-weight: 700; cursor: pointer; }

.no-posts { padding: 40px 0; color: var(--bbc-muted); font-size: 17px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.content-with-sidebar { grid-template-columns: 1fr; gap: 30px; }
	.sidebar-col { border-top: 1px solid var(--bbc-line); padding-top: 26px; }
	.home-hero { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
	.menu-toggle { display: inline-flex; }
	.main-navigation {
		position: absolute; left: 0; right: 0; top: 100%; background: #fff;
		border-bottom: 1px solid var(--bbc-line); box-shadow: var(--bbc-shadow);
		padding: 10px 20px; display: none;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; gap: 0; }
	.main-navigation a { padding: 11px 8px; border-bottom: 1px solid var(--bbc-line); border-radius: 0; }
	.main-navigation ul ul { position: static; box-shadow: none; border: 0; padding-left: 14px; }
	.main-navigation li:hover > ul { display: none; }
	.main-navigation .menu-item-has-children.is-open > ul { display: flex; }

	.card-grid, .card-grid--archive { grid-template-columns: 1fr 1fr; gap: 18px; }
	.hero-title { font-size: 26px; }
	.single-title { font-size: 28px; }
	.single-content { font-size: 17px; }
	.footer-widgets { grid-template-columns: 1fr 1fr; }
	.post-navigation { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.card-grid, .card-grid--archive { grid-template-columns: 1fr; }
	.post-card--wide { flex-direction: row; }
	.footer-widgets { grid-template-columns: 1fr; }
	.header-inner { gap: 12px; min-height: 64px; }
}



/* =========================================================
   Redesign components (hero grid, rails, tabs, related)
   ========================================================= */

/* ---------- Card surface in dark mode ---------- */
html[data-theme="dark"] .post-card .card-thumb,
html[data-theme="dark"] .hero-feature-thumb,
html[data-theme="dark"] .hero-sec-thumb { background: var(--bbc-bg-soft); }

/* ---------- Homepage hero grid ---------- */
.home-hero-grid {
	display: grid;
	grid-template-columns: 290px minmax(0,1fr) 300px;
	gap: 28px;
	margin: 8px 0 44px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--bbc-line);
}
.hero-col { min-width: 0; }
.hero-eyebrow {
	display: flex; align-items: center; gap: 8px; font-family: var(--bbc-sans);
	font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--bbc-muted); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--bbc-line);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--bbc-accent); display: inline-block; }

/* Latest headlines (left column) */
.headline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.headline-row { padding: 14px 0; border-bottom: 1px solid var(--bbc-line); }
.headline-row:first-child { padding-top: 0; }
.headline-time { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--bbc-muted); margin-bottom: 6px; }
.headline-tagrow { margin-bottom: 6px; }
.headline-tagrow .cat-pill { margin-bottom: 0; padding: 2px 7px; font-size: 10px; }
.headline-tagrow .sentiment-badge { padding: 2px 6px; font-size: 10px; }
.headline-link { font-family: var(--bbc-serif); font-weight: 600; font-size: 15.5px; line-height: 1.32; color: var(--bbc-ink); }
.headline-link:hover { color: var(--bbc-accent-dark); text-decoration: none; }
.hero-more-btn {
	display: inline-block; margin-top: 18px; padding: 9px 18px; border: 1px solid var(--bbc-line);
	border-radius: 999px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	color: var(--bbc-accent-dark); background: var(--bbc-bg-soft);
}
.hero-more-btn:hover { border-color: var(--bbc-accent); text-decoration: none; }

/* Center: featured top story */
.hero-feature-thumb { display: block; border-radius: var(--bbc-radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bbc-bg-soft); }
.hero-feature-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-feature-thumb:hover img { transform: scale(1.03); }
.hero-feature-body { padding-top: 16px; }
.hero-feature-title { font-size: 32px; font-weight: 700; letter-spacing: -.015em; line-height: 1.12; margin: 4px 0 12px; }
.hero-feature-title a { color: var(--bbc-ink); }
.hero-feature-title a:hover { color: var(--bbc-accent-dark); text-decoration: none; }
.hero-feature-excerpt { color: var(--bbc-body); font-size: 16px; margin: 0 0 14px; }

.hero-feature-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--bbc-line); }
.hero-sec-thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: var(--bbc-bg-soft); margin-bottom: 12px; }
.hero-sec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-sec-title { font-size: 17px; font-weight: 700; line-height: 1.28; margin: 0 0 6px; }
.hero-sec-title a { color: var(--bbc-ink); }
.hero-sec-title a:hover { color: var(--bbc-accent-dark); text-decoration: none; }

/* ---------- Side rail cards ---------- */
.rail-card { background: var(--bbc-rail-bg); border: 1px solid var(--bbc-line); border-radius: var(--bbc-radius); padding: 20px; margin-bottom: 22px; }
.rail-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bbc-accent-dark); margin-bottom: 4px; }
.rail-title { font-size: 19px; font-weight: 700; margin: 0 0 14px; }

.top-cat-list { list-style: none; margin: 0; padding: 0; }
.top-cat-item a {
	display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--bbc-line);
	color: var(--bbc-ink); font-weight: 600; font-size: 15px;
}
.top-cat-item:last-child a { border-bottom: 0; }
.top-cat-item a:hover { color: var(--bbc-accent-dark); text-decoration: none; }
.top-cat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pill, var(--bbc-accent)); flex: 0 0 auto; }
.top-cat-name { flex: 1 1 auto; }
.top-cat-arrow { color: var(--bbc-muted); font-size: 16px; transition: transform .2s ease; }
.top-cat-item a:hover .top-cat-arrow { transform: translateX(3px); color: var(--bbc-accent-dark); }

/* ---------- Market sentiment gauge ---------- */
.fng-body { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.fng-score { font-family: var(--bbc-serif); font-size: 46px; font-weight: 700; line-height: 1; color: var(--bbc-accent); }
.fng-meta { display: flex; flex-direction: column; }
.fng-label { font-size: 16px; font-family: var(--bbc-sans); color: var(--bbc-ink); }
.fng-sub { font-size: 12.5px; color: var(--bbc-muted); }
.fng-gauge { height: 8px; border-radius: 999px; background: var(--bbc-line); overflow: hidden; }
.fng-gauge-fill { display: block; height: 100%; width: 0; background: var(--bbc-accent); border-radius: 999px; transition: width .6s ease; }
.fng-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--bbc-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Section icon ---------- */
.section-icon { font-size: 18px; }

/* ---------- Top Crypto Stories ---------- */
.top-stories-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 32px; }
.top-stories-main { min-width: 0; }
.story-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.story-tab {
	font-family: var(--bbc-sans); font-size: 13px; font-weight: 700; cursor: pointer;
	padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bbc-line);
	background: var(--bbc-bg-soft); color: var(--bbc-ink); display: inline-flex; align-items: center; gap: 6px;
}
.story-tab:hover { border-color: var(--pill, var(--bbc-accent)); }
.story-tab.is-active { background: var(--pill, var(--bbc-accent)); border-color: var(--pill, var(--bbc-accent)); color: #fff; }
.story-panel[hidden] { display: none; }
.story-panel .card-grid { grid-template-columns: repeat(3, 1fr); }

/* card surface treatment inside top stories */
.story-panel .post-card { background: var(--bbc-card-bg); border: 1px solid var(--bbc-line); border-radius: var(--bbc-radius); overflow: hidden; }
.story-panel .post-card .card-thumb { border-radius: 0; margin-bottom: 0; aspect-ratio: 16/9; }
.story-panel .post-card .card-body { padding: 14px 16px 18px; }

/* ---------- Related posts (single) ---------- */
.related-posts { margin: 40px 0 0; }
.related-posts .card-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- BBC categories widget (dots + counts) ---------- */
.bbc-cat-widget-list { list-style: none; margin: 0; padding: 0; }
.bbc-cat-widget-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bbc-line); font-size: 14.5px; }
.bbc-cat-widget-list li:last-child { border-bottom: 0; }
.bbc-cat-widget-list a { display: flex; align-items: center; gap: 9px; color: var(--bbc-body); font-weight: 600; }
.bbc-cat-widget-list a:hover { color: var(--bbc-accent-dark); text-decoration: none; }
.bbc-cat-widget-list .cat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pill, var(--bbc-accent)); flex: 0 0 auto; }
.bbc-cat-widget-list .cat-count { font-size: 12px; color: var(--bbc-muted); background: var(--bbc-bg-soft); border-radius: 999px; padding: 2px 9px; }

/* ---------- Dark-mode surfaces ---------- */
html[data-theme="dark"] .post-card.story-panel,
html[data-theme="dark"] .single-content code { background: var(--bbc-bg-soft); }
html[data-theme="dark"] .footer-brand img { background: #fff; }

/* ---------- Responsive (redesign) ---------- */
@media (max-width: 1100px) {
	.home-hero-grid { grid-template-columns: minmax(0,1fr) 290px; }
	.hero-col--headlines { grid-column: 1 / -1; order: 3; }
	.hero-col--headlines .headline-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
}
@media (max-width: 900px) {
	.top-stories-layout { grid-template-columns: 1fr; }
	.story-panel .card-grid { grid-template-columns: 1fr 1fr; }
	.related-posts .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.header-search-bar { display: none; }
	.search-toggle { display: inline-flex; }
	.home-hero-grid { grid-template-columns: 1fr; }
	.hero-col--rail { order: 2; }
	.hero-col--headlines { order: 3; }
	.hero-feature-title { font-size: 26px; }
}
@media (max-width: 620px) {
	.hero-feature-secondary { grid-template-columns: 1fr; }
	.hero-col--headlines .headline-list { grid-template-columns: 1fr; }
	.story-panel .card-grid,
	.related-posts .card-grid { grid-template-columns: 1fr; }
	.story-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
	.story-tab { white-space: nowrap; }
}
