/**
 * Beebe World-Class Digital Newsroom Stylesheet
 * 
 * Provides editorial-grade styling matching The New York Times, The Guardian,
 * BBC News, and Bloomberg.
 */

:root {
	--beebe-editorial-serif: "Georgia", "Times New Roman", "Playfair Display", "Merriweather", serif;
	--beebe-editorial-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--beebe-news-red: #e11d48;
	--beebe-news-red-glow: rgba(225, 29, 72, 0.25);
	--beebe-news-blue: #0284c7;
	--beebe-news-gold: #d97706;
	--beebe-news-green: #059669;
	--beebe-news-dark: #090d16;
	--beebe-news-surface: #0f172a;
	--beebe-news-card-bg: #ffffff;
	--beebe-news-card-border: #e2e8f0;
	--beebe-news-heading: #0f172a;
	--beebe-news-text: #334155;
	--beebe-news-muted: #64748b;
	--beebe-news-topbar-bg: #090d16;
	--beebe-news-topbar-text: #e2e8f0;
}

[data-theme="dark"],
.beebe-dark-mode {
	--beebe-news-card-bg: #0f172a;
	--beebe-news-card-border: #1e293b;
	--beebe-news-heading: #f8fafc;
	--beebe-news-text: #cbd5e1;
	--beebe-news-muted: #94a3b8;
	--beebe-news-topbar-bg: #050811;
	--beebe-news-topbar-text: #e2e8f0;
}

/* ==========================================================================
   1. EDITORIAL TOPBAR & DATELINE STRIP
   ========================================================================== */
.beebe-editorial-topbar {
	background: var(--beebe-news-topbar-bg);
	color: var(--beebe-news-topbar-text);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.785rem;
	font-family: var(--beebe-editorial-sans);
	letter-spacing: 0.01em;
	padding: 6px 0;
	position: relative;
	z-index: 99;
}

.topbar-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.topbar-left,
.topbar-right,
.topbar-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.dateline-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #94a3b8;
	font-weight: 500;
}

.dateline-separator {
	color: rgba(255, 255, 255, 0.2);
	font-weight: 300;
}

.edition-selector {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
}

.edition-pill.active-edition {
	background: rgba(225, 29, 72, 0.15);
	color: #fb7185;
	border: 1px solid rgba(225, 29, 72, 0.35);
	padding: 2px 7px;
	border-radius: 4px;
}

.edition-link {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.15s ease;
}

.edition-link:hover {
	color: #ffffff;
}

/* Financial Market Micro-Pills */
.topbar-markets {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.market-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.72rem;
	font-family: var(--beebe-editorial-sans);
}

.market-symbol {
	color: #94a3b8;
	font-weight: 600;
}

.market-val {
	color: #f8fafc;
	font-weight: 700;
}

.market-up .market-change {
	color: #34d399;
	font-weight: 600;
}

.market-down .market-change {
	color: #f87171;
	font-weight: 600;
}

/* Topbar CTA Buttons */
.topbar-cta.audio-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #1e293b, #0f172a);
	color: #38bdf8;
	border: 1px solid rgba(56, 189, 248, 0.35);
	padding: 3px 10px;
	border-radius: 9999px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.topbar-cta.audio-pill:hover {
	background: #38bdf8;
	color: #0f172a;
	box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.topbar-link {
	color: #94a3b8;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 500;
	transition: color 0.15s ease;
}

.topbar-link:hover {
	color: #ffffff;
}

.topbar-icon-btn {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #e2e8f0;
	border-radius: 6px;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.topbar-icon-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.25);
}

.topbar-btn-login {
	background: #e11d48;
	color: #ffffff !important;
	font-weight: 700;
	font-size: 0.75rem;
	padding: 3px 12px;
	border-radius: 4px;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: background 0.15s ease;
}

.topbar-btn-login:hover {
	background: #be123c;
}

/* ==========================================================================
   2. READING PROGRESS BAR
   ========================================================================== */
.beebe-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3.5px;
	background: transparent;
	z-index: 99999;
}

.progress-bar-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #e11d48, #f59e0b, #0284c7);
	box-shadow: 0 0 10px rgba(225, 29, 72, 0.6);
	transition: width 0.08s ease-out;
}

/* ==========================================================================
   3. EDITORIAL ARTICLE TOOLBAR & KEY TAKEAWAYS
   ========================================================================== */
.editorial-article-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	background: var(--beebe-news-card-bg);
	border: 1px solid var(--beebe-news-card-border);
	border-radius: 10px;
	margin: 1.5rem 0 2rem;
	font-family: var(--beebe-editorial-sans);
}

.toolbar-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	color: var(--beebe-news-muted);
}

.meta-item.reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--beebe-news-heading);
}

.toolbar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.font-size-adjuster {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--beebe-news-card-border);
	border-radius: 6px;
	overflow: hidden;
}

.btn-adjust-font {
	background: transparent;
	border: none;
	color: var(--beebe-news-muted);
	font-family: var(--beebe-editorial-sans);
	font-weight: 700;
	font-size: 0.785rem;
	padding: 4px 9px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.btn-adjust-font:hover {
	background: var(--beebe-news-card-border);
	color: var(--beebe-news-heading);
}

.article-share-triggers {
	display: flex;
	align-items: center;
	gap: 6px;
}

.share-btn {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--beebe-news-card-border);
	background: var(--beebe-news-card-bg);
	color: var(--beebe-news-muted);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
}

.share-btn:hover {
	transform: translateY(-1.5px);
}

.share-whatsapp:hover {
	background: #25d366;
	color: #ffffff;
	border-color: #25d366;
}

.share-x:hover {
	background: #000000;
	color: #ffffff;
	border-color: #000000;
}

.share-copy-link:hover {
	background: #0284c7;
	color: #ffffff;
	border-color: #0284c7;
}

/* Key Takeaways Callout Card */
.editorial-takeaways-card {
	background: linear-gradient(135deg, rgba(225, 29, 72, 0.05), rgba(2, 132, 199, 0.05));
	border-left: 4px solid var(--beebe-news-red);
	border-top: 1px solid var(--beebe-news-card-border);
	border-right: 1px solid var(--beebe-news-card-border);
	border-bottom: 1px solid var(--beebe-news-card-border);
	border-radius: 0 10px 10px 0;
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
}

.takeaways-header {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--beebe-news-red);
	font-weight: 800;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.5rem;
}

.takeaways-body p {
	font-family: var(--beebe-editorial-sans);
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--beebe-news-heading);
	margin: 0;
	font-weight: 500;
}

/* Drop Cap on Opening Paragraph */
.editorial-prose-body > p:first-of-type::first-letter {
	font-family: var(--beebe-editorial-serif);
	float: left;
	font-size: 3.8rem;
	line-height: 0.85;
	padding-top: 4px;
	padding-right: 10px;
	padding-bottom: 2px;
	color: var(--beebe-news-heading);
	font-weight: 800;
}

/* ==========================================================================
   4. SUPER-LEAD EDITORIAL HERO PACKAGE
   ========================================================================== */
.beebe-editorial-hero-package {
	margin: 2rem 0 3rem;
	font-family: var(--beebe-editorial-sans);
}

.hero-grid-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 992px) {
	.hero-grid-row {
		grid-template-columns: 64% 36%;
	}
}

/* Super-Lead Card */
.super-lead-card {
	background: var(--beebe-news-card-bg);
	border: 1px solid var(--beebe-news-card-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.super-lead-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.lead-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0f172a;
}

.lead-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.super-lead-card:hover .lead-thumb-img {
	transform: scale(1.03);
}

.live-pill-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(9, 13, 22, 0.85);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(225, 29, 72, 0.4);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.live-pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--beebe-news-red);
	box-shadow: 0 0 8px var(--beebe-news-red);
	animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(1.3); }
}

.lead-content {
	padding: 1.75rem 2rem 2rem;
}

.lead-eyebrow-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	color: var(--beebe-news-muted);
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.lead-cat-link {
	color: var(--beebe-news-red);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 800;
}

.super-lead-title {
	font-family: var(--beebe-editorial-serif);
	font-size: clamp(1.85rem, 3.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 1rem;
	color: var(--beebe-news-heading);
	letter-spacing: -0.02em;
}

.super-lead-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.super-lead-title a:hover {
	color: var(--beebe-news-red);
}

.super-lead-dek {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--beebe-news-text);
	margin: 0 0 1.5rem;
}

.lead-byline-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1.25rem;
	border-top: 1px solid var(--beebe-news-card-border);
}

.author-chip {
	display: flex;
	align-items: center;
	gap: 10px;
}

.author-thumb {
	border-radius: 50%;
}

.author-name {
	font-weight: 700;
	font-size: 0.885rem;
	color: var(--beebe-news-heading);
}

.author-role {
	font-size: 0.75rem;
	color: var(--beebe-news-muted);
	display: block;
}

.read-lead-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--beebe-news-red);
	font-weight: 700;
	font-size: 0.875rem;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.read-lead-cta:hover {
	transform: translateX(3px);
}

/* Radar Stream List */
.hero-col-radar {
	background: var(--beebe-news-card-bg);
	border: 1px solid var(--beebe-news-card-border);
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
}

.radar-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid var(--beebe-news-heading);
	padding-bottom: 0.85rem;
	margin-bottom: 1.25rem;
}

.radar-title-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}

.radar-pulse-ring {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--beebe-news-red);
	box-shadow: 0 0 8px var(--beebe-news-red);
	animation: pulseLive 1.2s infinite;
}

.radar-card-header h3 {
	margin: 0;
	font-size: 0.885rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--beebe-news-heading);
	text-transform: uppercase;
}

.radar-update-badge {
	font-size: 0.72rem;
	background: rgba(2, 132, 199, 0.1);
	color: #0284c7;
	padding: 2px 7px;
	border-radius: 4px;
	font-weight: 700;
}

.radar-stream-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.radar-stream-item {
	padding-bottom: 1.25rem;
	border-bottom: 1px dashed var(--beebe-news-card-border);
}

.radar-stream-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.radar-item-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	margin-bottom: 0.4rem;
}

.stream-cat-pill {
	color: var(--beebe-news-blue);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.stream-timestamp {
	color: var(--beebe-news-muted);
}

.radar-item-title {
	font-family: var(--beebe-editorial-serif);
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0;
	font-weight: 700;
}

.radar-item-title a {
	color: var(--beebe-news-heading);
	text-decoration: none;
	transition: color 0.15s ease;
}

.radar-item-title a:hover {
	color: var(--beebe-news-red);
}

/* ==========================================================================
   5. NUMBERED TRENDING LEADERBOARD (01 to 05)
   ========================================================================== */
.beebe-trending-leaderboard {
	background: var(--beebe-news-card-bg);
	border: 1px solid var(--beebe-news-card-border);
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	margin: 2rem 0;
	font-family: var(--beebe-editorial-sans);
}

.leaderboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid var(--beebe-news-red);
	padding-bottom: 0.75rem;
	margin-bottom: 1.25rem;
}

.leaderboard-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--beebe-news-heading);
}

.leaderboard-badge {
	background: var(--beebe-news-red);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.04em;
}

.leaderboard-items {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.leaderboard-row {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--beebe-news-card-border);
}

.leaderboard-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.leaderboard-rank {
	font-family: var(--beebe-editorial-serif);
	font-size: 2.25rem;
	font-weight: 900;
	line-height: 1;
	color: var(--beebe-news-red);
	opacity: 0.85;
	min-width: 44px;
	letter-spacing: -0.04em;
}

.leaderboard-body {
	flex: 1;
}

.leaderboard-cat {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--beebe-news-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: block;
	margin-bottom: 4px;
}

.leaderboard-headline {
	font-family: var(--beebe-editorial-serif);
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0 0 6px;
	font-weight: 700;
}

.leaderboard-headline a {
	color: var(--beebe-news-heading);
	text-decoration: none;
	transition: color 0.15s ease;
}

.leaderboard-headline a:hover {
	color: var(--beebe-news-red);
}

.leaderboard-reading-time {
	font-size: 0.75rem;
	color: var(--beebe-news-muted);
}

/* ==========================================================================
   6. OPINION & COLUMNISTS GRID
   ========================================================================== */
.beebe-opinion-columnists-section {
	margin: 3rem 0;
	padding: 2.5rem 0;
	border-top: 2px solid var(--beebe-news-heading);
	border-bottom: 2px solid var(--beebe-news-heading);
	font-family: var(--beebe-editorial-sans);
}

.opinion-section-header {
	margin-bottom: 2rem;
}

.opinion-section-title {
	font-family: var(--beebe-editorial-serif);
	font-size: 1.75rem;
	font-weight: 900;
	margin: 0 0 0.35rem;
	color: var(--beebe-news-heading);
}

.opinion-section-subtitle {
	color: var(--beebe-news-muted);
	font-size: 0.95rem;
}

.opinion-columnists-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.75rem;
}

.opinion-columnist-card {
	background: var(--beebe-news-card-bg);
	border: 1px solid var(--beebe-news-card-border);
	border-radius: 10px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.2s ease;
}

.opinion-columnist-card:hover {
	transform: translateY(-2px);
}

.columnist-avatar-wrap {
	margin-bottom: 1rem;
}

.columnist-avatar {
	border-radius: 50%;
	border: 2px solid var(--beebe-news-red);
	padding: 2px;
}

.columnist-author-name {
	font-weight: 800;
	font-size: 1rem;
	color: var(--beebe-news-heading);
	display: block;
}

.columnist-topic {
	font-size: 0.75rem;
	color: var(--beebe-news-gold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	margin: 2px 0 0.85rem;
	display: block;
}

.columnist-article-title {
	font-family: var(--beebe-editorial-serif);
	font-style: italic;
	font-size: 1.1rem;
	line-height: 1.4;
	margin: 0;
	font-weight: 600;
}

.columnist-article-title a {
	color: var(--beebe-news-heading);
	text-decoration: none;
	transition: color 0.15s ease;
}

.columnist-article-title a:hover {
	color: var(--beebe-news-red);
}

/* ==========================================================================
   7. FINANCIAL MARKET STRIP
   ========================================================================== */
.beebe-market-strip-bar {
	background: #050811;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 8px 0;
	font-family: var(--beebe-editorial-sans);
	font-size: 0.785rem;
	overflow-x: auto;
}

.market-strip-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	white-space: nowrap;
}

.market-strip-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	color: #94a3b8;
	letter-spacing: 0.06em;
	font-size: 0.72rem;
}

.market-live-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 6px #10b981;
}

.market-strip-items {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.market-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ticker-name {
	color: #cbd5e1;
	font-weight: 600;
}

.ticker-price {
	color: #ffffff;
	font-weight: 700;
}

.market-item.positive .ticker-diff {
	color: #34d399;
	font-weight: 700;
}

.market-item.negative .ticker-diff {
	color: #f87171;
	font-weight: 700;
}

.market-item.neutral .ticker-diff {
	color: #94a3b8;
	font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.desktop-only {
		display: none !important;
	}
	.super-lead-title {
		font-size: 1.5rem;
	}
	.editorial-article-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.toolbar-actions {
		width: 100%;
		justify-content: space-between;
	}
}

/* ==========================================================================
   8. DYNAMIC FONT SIZING & TOAST NOTIFICATION
   ========================================================================== */
.editorial-prose-body.size-sm p {
	font-size: 0.95rem;
	line-height: 1.65;
}

.editorial-prose-body.size-md p {
	font-size: 1.125rem;
	line-height: 1.8;
}

.editorial-prose-body.size-lg p {
	font-size: 1.25rem;
	line-height: 1.85;
}

.editorial-prose-body.size-xl p {
	font-size: 1.4rem;
	line-height: 1.9;
}

.btn-adjust-font.is-active {
	background: var(--beebe-news-red);
	color: #ffffff;
}

/* Clipboard Toast */
.beebe-toast-notice {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #0f172a;
	color: #f8fafc;
	font-family: var(--beebe-editorial-sans);
	font-size: 0.875rem;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	z-index: 999999;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.beebe-toast-notice.is-visible {
	opacity: 1;
	transform: translateY(0);
}

