/*
 * Header, ticker, navigation, mobile drawer, footer, and the shared
 * empty-state component. Structural/layout rules only — visual component
 * styling (cards, badges, buttons) lives in components.css.
 */

/* ---------- Breaking ticker (global, above the header) ---------- */

.fb-ticker-band {
	background: var(--band);
	color: var(--band-ink);
	overflow: hidden;
}

.fb-ticker-row {
	display: flex;
	align-items: center;
}

.fb-ticker-live {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: var(--space-inline);
	padding: 0 var(--space-card);
	height: 36px;
	background: var(--accent);
	color: var(--accent-ink);
}

.fb-ticker-live .fb-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--accent-ink);
	animation: fb-pulse 1.8s ease-in-out infinite;
}

.fb-ticker-live-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
}

.fb-ticker-track {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	height: 36px;
}

.fb-ticker-scroll {
	display: flex;
	width: max-content;
	animation: fb-ticker 42s linear infinite;
}

.fb-ticker-item {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 36px;
	padding: 0 20px;
	border-right: 1px solid var(--band-rule);
	white-space: nowrap;
	background: none;
	border-top: none;
	border-bottom: none;
	border-left: none;
	color: inherit;
	cursor: pointer;
}

.fb-ticker-item-min {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--accent);
}

.fb-ticker-item-line {
	font-size: 12px;
	font-weight: 500;
	color: var(--band-ink);
}

/* ---------- Header ---------- */

.fb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	border-bottom: 1px solid var(--rule);
}

.fb-header-row {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 70px;
}

.fb-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
}

.fb-logo-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 13px;
	font-weight: 800;
}

.fb-logo-word {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--ink);
	line-height: 1;
}

.fb-nav {
	display: var(--nav-wide);
	align-items: center;
	gap: 20px;
	margin-left: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.fb-nav-item {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink2);
	white-space: nowrap;
	padding: 23px 0;
	border-bottom: 2px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

.fb-nav-item:hover {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

.fb-nav-item.is-active {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

.fb-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	justify-content: flex-end;
}

.fb-icon-btn {
	color: var(--ink2);
	display: flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
}

.fb-icon-btn:hover {
	color: var(--accent);
}

.fb-menu-btn {
	display: var(--nav-compact);
	width: 44px;
	height: 44px;
	margin-right: -8px;
	color: var(--ink);
}

/* ---------- Mobile drawer ---------- */

.fb-drawer {
	display: var(--nav-compact);
	flex-direction: column;
	border-top: 1px solid var(--rule);
	background: var(--surface);
	padding: 6px 22px 20px;
}

.fb-drawer[hidden] {
	display: none !important;
}

.fb-drawer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 54px;
	border-bottom: 1px solid var(--rule);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ink);
	background: none;
	border-left: none;
	border-right: none;
	border-top: none;
	cursor: pointer;
}

.fb-drawer-row:hover {
	color: var(--accent);
}

.fb-drawer-row-arrow {
	font-size: 14px;
	color: var(--accent);
}

/* ---------- Footer ---------- */

.fb-footer {
	border-top: 1px solid var(--rule);
	background: var(--band);
	color: var(--band-ink);
}

.fb-footer-grid {
	padding: 50px var(--space-gutter) 34px;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
	gap: 40px;
}

.fb-footer-brand-row {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
}

.fb-footer-blurb {
	font-family: Newsreader, Georgia, serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--band-dim);
	margin: 0;
	max-width: 34ch;
}

.fb-footer-col-head {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .16em;
	color: var(--band-ink);
	margin-bottom: 14px;
}

.fb-footer-col-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fb-footer-col-list a {
	text-align: left;
	font-size: 13px;
	font-weight: 500;
	color: var(--band-dim);
}

.fb-footer-col-list a:hover {
	color: var(--accent);
}

.fb-footer-bottom {
	padding: 18px var(--space-gutter) 34px;
	border-top: 1px solid var(--band-rule);
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .09em;
	color: var(--band-dim);
}

/* ---------- Shared empty state ---------- */

.fb-empty-state {
	border: 1px dashed var(--rule);
	background: var(--surface);
	padding: 52px 28px;
	text-align: center;
}

.fb-empty-state-title {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.025em;
	color: var(--ink);
	margin-bottom: 8px;
}

.fb-empty-state-text {
	font-family: Newsreader, Georgia, serif;
	font-size: 17px;
	line-height: 1.5;
	color: var(--ink2);
	margin: 0 auto 22px;
	max-width: 38ch;
}

@media (max-width: 700px) {
	.fb-footer-grid {
		grid-template-columns: 1fr;
	}
}
