Files
avbeat-com/src/styles/tailwind.css
Local Administrator a1148e213b fix(contrast): white-on-white text bug — homepage 2x2 titles, .nav-link-bb, /news date inputs
The 2026 rebrand swept surface hexes from dark to light but left near-white text colors baked into components. Three approved fixes:

- FeaturedBento.tsx:255 — 2x2 grid card titles base color #e0e0e0 -> #0F172A (brand-navy). Hover stays #1D4ED8.
- tailwind.css .nav-link-bb — base color #cccccc -> var(--brand-text). Hover unchanged.
- ArticleFeed.tsx :375 + :385 — date input text #888 -> #475569 (brand-text-muted) and dropped [color-scheme:dark] so Chrome stops rendering the dark date-picker chrome on a now-white input.

Findings #2, #3, #6 in the audit were not touched — Ryan flagged them as unverified.
2026-06-03 13:11:57 +00:00

1719 lines
42 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
/* AV BEAT 2026 brand palette — single source of truth.
Used as both Tailwind theme values (tailwind.config.js) and direct
CSS custom properties in arbitrary inline styles. Update here and
the entire site re-themes. */
--brand-blue: #1D4ED8;
--brand-blue-bright: #38BDF8;
--brand-navy: #0F172A;
--brand-white: #FFFFFF;
--brand-bg: #F8FAFC;
--brand-surface: #FFFFFF;
--brand-border: #DCE6F2;
--brand-text: #0F172A;
--brand-text-muted: #475569;
/* Legacy aliases — every `--color-*` previously consumed by inline
styles or component CSS now resolves to the new identity. */
--color-primary: var(--brand-navy);
--color-secondary: var(--brand-surface);
--color-accent: var(--brand-blue);
--color-accent-dark: #1E3A8A;
--color-accent-muted: var(--brand-border);
--color-accent-red: var(--brand-blue);
--color-accent-red-dark:#1E3A8A;
--color-bg: var(--brand-bg);
--color-card: var(--brand-surface);
--color-foreground: var(--brand-text);
--color-muted: var(--brand-text-muted);
--color-border: var(--brand-border);
--color-top-bar: var(--brand-surface);
--color-sub-nav: var(--brand-bg);
/* --font-serif and --font-sans are injected on <html> by next/font/google
(Lora + Inter) in src/app/layout.tsx. The system-font tails are real
fallbacks for the brief window before the self-hosted face is ready. */
--font-heading: var(--font-serif), Georgia, 'Times New Roman', serif;
--font-body: var(--font-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
--font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
--transition-fast: 0.18s ease;
--transition-base: 0.25s ease;
--transition-slow: 0.4s ease;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-body);
background-color: var(--color-bg);
color: var(--color-foreground);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* =====================
PAGE TRANSITIONS
===================== */
@keyframes page-enter {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.page-transition {
animation: page-enter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
/* Staggered section entrance */
@keyframes section-enter {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.section-enter {
animation: section-enter 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.section-enter-1 { animation-delay: 0.05s; }
.section-enter-2 { animation-delay: 0.12s; }
.section-enter-3 { animation-delay: 0.19s; }
.section-enter-4 { animation-delay: 0.26s; }
.section-enter-5 { animation-delay: 0.33s; }
/* =====================
LOADING SKELETONS
===================== */
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
.skeleton {
background: linear-gradient(
90deg,
#1e1e1e 25%,
#DCE6F2 50%,
#1e1e1e 75%
);
background-size: 200% 100%;
animation: shimmer 1.6s infinite linear;
border-radius: 2px;
}
.skeleton-card {
background: var(--color-card);
border: 1px solid var(--color-border);
border-radius: 2px;
overflow: hidden;
}
/* =====================
EMPTY STATES
===================== */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 48px 24px;
text-align: center;
color: var(--color-muted);
font-family: var(--font-body);
}
.empty-state-icon {
width: 48px;
height: 48px;
margin-bottom: 16px;
opacity: 0.35;
color: var(--color-accent);
}
.empty-state-title {
font-size: 15px;
font-weight: 700;
color: #aaaaaa;
margin-bottom: 6px;
letter-spacing: 0.02em;
}
.empty-state-desc {
font-size: 13px;
color: #666666;
max-width: 280px;
line-height: 1.6;
}
/* =====================
TICKER
===================== */
@keyframes ticker-scroll {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
.ticker-track {
display: flex;
width: max-content;
animation: ticker-scroll 45s linear infinite;
will-change: transform;
}
.ticker-track:hover {
animation-play-state: paused;
}
/* =====================
SPOTLIGHT FADE
===================== */
@keyframes fadeSlide {
from { opacity: 0; transform: translateX(12px); }
to { opacity: 1; transform: translateX(0); }
}
.spotlight-slide-in {
animation: fadeSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
/* =====================
ARTICLE HOVER
===================== */
.article-card {
transition: background-color var(--transition-fast);
}
.article-card:hover {
background-color: #1c1c1c;
}
/* =====================
IMAGE ZOOM
===================== */
.img-zoom {
overflow: hidden;
}
.img-zoom img {
transition: transform var(--transition-slow);
}
.img-zoom:hover img {
transform: scale(1.05);
}
/* =====================
NAV LINK
===================== */
.nav-link-bb {
position: relative;
font-family: var(--font-body);
font-weight: 700;
font-size: 12px;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--brand-text);
text-decoration: none;
padding: 4px 0;
transition: color var(--transition-fast);
}
.nav-link-bb::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: var(--color-accent);
transition: width var(--transition-base);
}
.nav-link-bb:hover {
color: var(--color-accent);
}
.nav-link-bb:hover::after {
width: 100%;
}
/* =====================
SECTION LABEL
===================== */
.section-label {
font-family: var(--font-body);
font-size: 13px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-accent);
border-left: 3px solid var(--color-accent);
padding-left: 8px;
}
/* =====================
SCROLLBAR
===================== */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #FFFFFF;
}
::-webkit-scrollbar-thumb {
background: #2a3a50;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--color-accent);
transition: background var(--transition-fast);
}
/* =====================
SEARCH INPUT
===================== */
.search-input {
font-family: var(--font-body);
background: #1e1e1e;
border: 1px solid #3a3a3a;
border-radius: 2px;
padding: 6px 10px;
font-size: 13px;
color: var(--color-foreground);
outline: none;
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-input:focus {
border-color: var(--color-accent);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}
.search-input::placeholder {
color: #666666;
}
/* Enhanced search bar */
.search-input-enhanced {
transition: border-color var(--transition-fast), box-shadow var(--transition-fast), width var(--transition-base), background var(--transition-fast);
}
.search-input-enhanced:focus {
border-color: var(--color-accent);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18), 0 2px 8px rgba(0,0,0,0.4);
background: #DCE6F2;
}
/* Search bar wrapper — expands on focus */
.search-bar-wrapper {
position: relative;
display: flex;
align-items: center;
}
.search-bar-wrapper .search-input {
width: 140px;
transition: width var(--transition-base), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.search-bar-expanded .search-input {
width: 220px;
}
/* Keyboard hint badge */
.search-kbd-hint {
position: absolute;
right: 2.5rem;
top: 50%;
transform: translateY(-50%);
font-size: 11px;
font-family: var(--font-mono);
color: #555;
background: #DCE6F2;
border: 1px solid #3a3a3a;
border-radius: 2px;
padding: 1px 5px;
line-height: 1.4;
pointer-events: none;
transition: opacity var(--transition-fast);
}
/* Clear button */
.search-clear-btn {
position: absolute;
right: 2.5rem;
top: 50%;
transform: translateY(-50%);
color: #666;
background: none;
border: none;
cursor: pointer;
padding: 2px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: color var(--transition-fast), background var(--transition-fast);
}
.search-clear-btn:hover {
color: #cccccc;
background: #DCE6F2;
}
/* =====================
SCROLL REVEAL
===================== */
.scroll-reveal {
opacity: 0;
transform: translateY(18px);
transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-reveal.scroll-revealed {
opacity: 1;
transform: translateY(0);
}
/* Stagger delays for child elements */
.scroll-reveal-delay-1 { transition-delay: 0.05s; }
.scroll-reveal-delay-2 { transition-delay: 0.12s; }
.scroll-reveal-delay-3 { transition-delay: 0.19s; }
.scroll-reveal-delay-4 { transition-delay: 0.26s; }
.scroll-reveal-delay-5 { transition-delay: 0.33s; }
/* Fade-in from left variant */
.scroll-reveal-left {
opacity: 0;
transform: translateX(-16px);
transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-reveal-left.scroll-revealed {
opacity: 1;
transform: translateX(0);
}
/* Scale-in variant for cards */
.scroll-reveal-scale {
opacity: 0;
transform: scale(0.97) translateY(10px);
transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-reveal-scale.scroll-revealed {
opacity: 1;
transform: scale(1) translateY(0);
}
/* =====================
AD PLACEHOLDER
===================== */
.ad-placeholder {
background: #FFFFFF;
border: 1px solid #DCE6F2;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-body);
font-size: 10px;
color: #555555;
letter-spacing: 0.06em;
text-transform: uppercase;
position: relative;
overflow: hidden;
}
/* =====================
HERO OVERLAY
===================== */
.hero-overlay {
background: linear-gradient(
to top,
rgba(0, 0, 0, 0.92) 0%,
rgba(0, 0, 0, 0.5) 50%,
rgba(0, 0, 0, 0.1) 100%
);
}
/* =====================
PAGINATION
===================== */
.page-btn {
font-family: var(--font-body);
font-size: 13px;
font-weight: 600;
padding: 5px 12px;
border: 1px solid #333333;
background: #FFFFFF;
color: #cccccc;
cursor: pointer;
transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
border-radius: 2px;
}
.page-btn:hover {
background: var(--color-accent);
border-color: var(--color-accent);
color: #ffffff;
transform: translateY(-1px);
}
.page-btn.active {
background: var(--color-accent);
border-color: var(--color-accent);
color: #ffffff;
}
.page-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
transform: none;
}
/* =====================
MOBILE MENU
===================== */
@keyframes slideDown {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-open {
animation: slideDown 0.2s ease forwards;
}
/* =====================
HEADINGS
===================== */
h1, h2, h3 {
font-family: var(--font-heading);
}
/* =====================
READ MORE
===================== */
.read-more {
display: inline-flex;
align-items: center;
gap: 6px;
font-family: var(--font-body);
font-size: 11px;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #ffffff;
background: var(--color-accent);
padding: 7px 14px;
border-radius: 2px;
border: 1px solid transparent;
text-decoration: none;
transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.read-more::after {
content: "→";
font-size: 13px;
line-height: 1;
}
.read-more:hover {
background: var(--color-accent-dark);
text-decoration: none;
transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
}
/* Under neon scope: green→cyan gradient with dark-gray text (matches other CTAs) */
.bb-neon .read-more {
background: linear-gradient(90deg, #ff4035 0%, #1D4ED8 100%);
color: #FFFFFF;
font-weight: 900;
text-shadow: none;
box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
}
.bb-neon .read-more:hover {
background: linear-gradient(90deg, #14ffb0 0%, #4ee0ff 100%);
color: #0a0a0a;
box-shadow: 0 0 18px rgba(0, 255, 159, 0.40);
}
/* =====================
ARTICLE BODY
===================== */
.article-body p {
margin-bottom: 1.25rem;
line-height: 1.75;
}
.article-body h2 {
font-family: var(--font-heading);
font-size: 1.25rem;
font-weight: 700;
color: #0F172A;
margin-top: 2rem;
margin-bottom: 0.875rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #DCE6F2;
}
.article-body h3 {
font-family: var(--font-heading);
font-size: 1.05rem;
font-weight: 700;
color: #e0e0e0;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
}
.article-body ul,
.article-body ol {
margin-bottom: 1.25rem;
padding-left: 1.5rem;
}
.article-body ul {
list-style-type: disc;
}
.article-body ol {
list-style-type: decimal;
}
.article-body li {
margin-bottom: 0.5rem;
line-height: 1.65;
color: #cccccc;
}
.article-body strong {
color: #0F172A;
font-weight: 700;
}
.article-body a {
color: var(--color-accent);
text-decoration: underline;
transition: color var(--transition-fast);
}
.article-body a:hover {
color: var(--color-accent-dark);
}
/* Auto-linked company mentions (manufacturer directory cross-links).
Subtler than a generic link so they don't visually swamp the body copy
when several appear in one paragraph. */
.article-body a.company-mention,
a.company-mention {
color: #e0e0e0;
text-decoration: none;
border-bottom: 1px dotted var(--color-accent);
font-weight: 600;
cursor: help;
transition: color var(--transition-fast), border-color var(--transition-fast);
}
.article-body a.company-mention:hover,
a.company-mention:hover {
color: var(--color-accent);
border-bottom-color: var(--color-accent);
border-bottom-style: solid;
}
.article-body blockquote {
border-left: 3px solid var(--color-accent);
padding-left: 1rem;
margin: 1.5rem 0;
color: #aaaaaa;
font-style: italic;
}
/* =====================
SPOTLIGHT CARD
===================== */
.spotlight-card {
background: #FFFFFF;
border: 1px solid #DCE6F2;
overflow: hidden;
transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.spotlight-card:hover {
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(59, 130, 246, 0.3);
border-color: var(--color-accent);
transform: translateY(-2px);
}
/* =====================
CATEGORY BADGE
===================== */
.cat-badge {
display: inline-block;
font-family: var(--font-body);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
background: var(--color-accent);
color: #ffffff;
padding: 2px 7px;
border-radius: 1px;
transition: background var(--transition-fast);
}
.cat-badge:hover {
background: var(--color-accent-dark);
}
/* =====================
SUBSCRIBE BUTTON
===================== */
.btn-subscribe {
background: var(--color-accent);
color: #ffffff;
font-family: var(--font-body);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 4px 12px;
border: none;
cursor: pointer;
transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
text-decoration: none;
display: inline-block;
}
.btn-subscribe:hover {
background: var(--color-accent-dark);
transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}
/* =====================
CAROUSEL BUTTONS
===================== */
.carousel-btn {
transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.carousel-btn:hover {
transform: scale(1.1);
}
/* =====================
FOOTER LINKS
===================== */
.footer-link {
transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-link:hover {
padding-left: 4px;
}
/* =====================
SOCIAL ICONS
===================== */
.social-icon {
transition: color var(--transition-fast), transform var(--transition-fast);
}
.social-icon:hover {
transform: translateY(-2px);
}
/* =====================
CARD ACCENT HOVER
===================== */
.card-accent-hover {
transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.card-accent-hover:hover {
border-color: var(--color-accent) !important;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.25);
transform: translateY(-1px);
}
/* =====================
KEYBOARD FOCUS STYLES
===================== */
:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
/* Skip to main content link */
.skip-link {
position: absolute;
top: -100%;
left: 8px;
z-index: 9999;
background: var(--color-accent);
color: #fff;
font-family: var(--font-body);
font-size: 13px;
font-weight: 700;
padding: 8px 16px;
border-radius: 2px;
text-decoration: none;
transition: top 0.15s ease;
}
.skip-link:focus {
top: 8px;
}
/* =====================
FILTER CHIPS
===================== */
.filter-chip {
font-family: var(--font-body);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 4px 10px;
border: 1px solid #333;
background: #FFFFFF;
color: #888;
cursor: pointer;
border-radius: 2px;
transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.filter-chip:hover {
border-color: var(--color-accent);
color: var(--color-accent);
background: #1e2a3a;
}
.filter-chip-active {
background: var(--color-accent);
border-color: var(--color-accent);
color: #ffffff;
}
.filter-chip-active:hover {
background: var(--color-accent-dark);
border-color: var(--color-accent-dark);
color: #ffffff;
}
/* =====================
NEWSLETTER CHIPS
===================== */
.newsletter-chip {
display: inline-flex;
align-items: center;
font-family: var(--font-body);
font-size: 12px;
font-weight: 600;
padding: 5px 12px;
border: 1px solid #2a3a50;
background: #111d2e;
color: #888;
cursor: pointer;
border-radius: 2px;
transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
user-select: none;
}
.newsletter-chip:hover {
border-color: var(--color-accent);
color: #ccc;
background: #1a2a3e;
}
.newsletter-chip-active {
border-color: var(--color-accent);
color: var(--color-foreground);
background: #1a2a3e;
}
/* =====================
TIPTAP RICH TEXT EDITOR
===================== */
.ProseMirror {
outline: none;
}
.ProseMirror p.is-editor-empty:first-child::before {
content: attr(data-placeholder);
float: left;
color: #444;
pointer-events: none;
height: 0;
}
.ProseMirror h1 { font-size: 1.75rem; font-weight: 700; margin: 1rem 0 0.5rem; color: #fff; }
.ProseMirror h2 { font-size: 1.4rem; font-weight: 700; margin: 0.9rem 0 0.4rem; color: #0F172A; }
.ProseMirror h3 { font-size: 1.15rem; font-weight: 700; margin: 0.8rem 0 0.35rem; color: #cccccc; }
.ProseMirror p { margin: 0.5rem 0; line-height: 1.7; }
.ProseMirror ul { list-style: disc; padding-left: 1.5rem; margin: 0.5rem 0; }
.ProseMirror ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5rem 0; }
.ProseMirror li { margin: 0.25rem 0; }
.ProseMirror blockquote { border-left: 3px solid #1D4ED8; padding-left: 1rem; margin: 0.75rem 0; color: #888; font-style: italic; }
.ProseMirror pre { background: #FFFFFF; border: 1px solid #DCE6F2; border-radius: 6px; padding: 1rem; overflow-x: auto; margin: 0.75rem 0; }
.ProseMirror code { background: #FFFFFF; border-radius: 3px; padding: 0.15em 0.4em; font-family: 'Courier New', monospace; font-size: 0.875em; color: #1D4ED8; }
.ProseMirror pre code { background: none; padding: 0; color: #cccccc; }
.ProseMirror hr { border: none; border-top: 1px solid #DCE6F2; margin: 1.25rem 0; }
.ProseMirror a { color: #1D4ED8; text-decoration: underline; }
.ProseMirror img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.75rem 0; }
.ProseMirror strong { font-weight: 700; color: #fff; }
.ProseMirror em { font-style: italic; }
.ProseMirror u { text-decoration: underline; }
.ProseMirror s { text-decoration: line-through; }
/* =====================
BROWSE NAV BAR (sits below the 728x90 header banner)
Search on the left, primary nav on the right.
===================== */
.bb-browse-bar {
background: linear-gradient(180deg, #0c1118 0%, #0a0f15 100%);
border-top: 1px solid #1a1f28;
border-bottom: 2px solid var(--color-accent);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.02);
position: relative;
}
.bb-browse-bar::after {
/* subtle horizontal sheen */
content: "";
position: absolute;
inset: 0 0 auto 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.45), transparent);
pointer-events: none;
}
.bb-browse-row {
display: flex;
align-items: stretch;
justify-content: space-between;
gap: 12px;
height: 48px;
}
/* Search wrapper holds input + autocomplete dropdown */
.bb-browse-search-wrap {
position: relative;
flex: 0 1 360px;
max-width: 400px;
min-width: 200px;
}
/* Autocomplete dropdown */
.bb-browse-search-suggest {
position: absolute;
top: calc(100% - 4px);
left: 0;
right: 0;
z-index: 60;
background: #0d1118;
border: 1px solid #2a3a50;
border-radius: 2px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
padding: 4px 0;
max-height: 70vh;
overflow-y: auto;
list-style: none;
margin: 0;
}
.bb-browse-search-suggest-item {
display: flex;
flex-direction: column;
gap: 4px;
padding: 10px 14px;
font-family: var(--font-body);
font-size: 13px;
color: #d1d8e4;
text-decoration: none;
transition: background var(--transition-fast), color var(--transition-fast);
border-left: 2px solid transparent;
}
.bb-browse-search-suggest-item:hover,
.bb-browse-search-suggest-item:focus-visible {
background: rgba(59, 130, 246, 0.10);
color: #ffffff;
outline: none;
border-left-color: var(--color-accent);
}
.bb-browse-search-suggest-row1 {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-width: 0;
}
.bb-browse-search-suggest-title {
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 600;
color: #e6ecf3;
}
.bb-browse-search-suggest-cat {
flex-shrink: 0;
font-family: var(--font-mono);
font-size: 9px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--color-accent);
opacity: 0.75;
}
.bb-browse-search-suggest-snippet {
font-size: 12px;
color: #98a3b3;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.bb-browse-search-suggest-mark {
background: rgba(59, 130, 246, 0.28);
color: #ffffff;
padding: 0 2px;
border-radius: 2px;
font-weight: 600;
}
.bb-browse-search-suggest-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
font-size: 11px;
color: #6b7585;
font-family: var(--font-mono);
letter-spacing: 0.02em;
}
.bb-browse-search-suggest-meta .bb-dot {
opacity: 0.5;
}
.bb-browse-search-suggest-mark-tag {
display: inline-block;
margin-left: 4px;
padding: 1px 6px;
background: rgba(59, 130, 246, 0.10);
color: var(--color-accent);
font-size: 9px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
border-radius: 2px;
}
.bb-browse-search-suggest-all {
border-top: 1px solid #1f2937;
margin-top: 2px;
padding-top: 2px;
}
.bb-browse-search-suggest-all button {
display: block;
width: 100%;
text-align: left;
padding: 8px 14px;
background: transparent;
border: 0;
cursor: pointer;
font-family: var(--font-body);
font-size: 12px;
font-weight: 700;
color: var(--color-accent);
transition: background var(--transition-fast);
}
.bb-browse-search-suggest-all button:hover {
background: rgba(59, 130, 246, 0.14);
color: #ffffff;
}
/* Search input (left side) */
.bb-browse-search {
position: relative;
display: inline-flex;
align-items: center;
flex: 0 1 384px;
max-width: 432px;
min-width: 240px;
margin: 8px 0;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 2px;
padding-left: 12px;
transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.bb-browse-search:focus-within {
border-color: var(--color-accent);
background: rgba(59, 130, 246, 0.06);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}
.bb-browse-search-icon {
flex-shrink: 0;
color: #7c8696;
pointer-events: none;
}
.bb-browse-search input {
flex: 1;
min-width: 0;
background: transparent;
border: 0;
outline: 0;
font-family: var(--font-body);
font-size: 13px;
font-weight: 500;
color: #e6ecf3;
padding: 6px 10px;
}
.bb-browse-search input::placeholder {
color: #6b7585;
font-weight: 400;
}
.bb-browse-search-clear {
flex-shrink: 0;
margin-right: 6px;
width: 20px;
height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
background: rgba(255, 255, 255, 0.04);
color: #98a3b3;
cursor: pointer;
transition: background var(--transition-fast), color var(--transition-fast);
border: 0;
}
.bb-browse-search-clear:hover {
background: rgba(59, 130, 246, 0.18);
color: #fff;
}
/* Menu (right side) */
.bb-browse-menu {
display: inline-flex;
align-items: stretch;
gap: 0;
margin-left: auto;
}
.bb-browse-item {
position: relative;
display: inline-flex;
align-items: center;
padding: 0 18px;
font-family: var(--font-body);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #d1d8e4;
text-decoration: none;
border-left: 1px solid rgba(255, 255, 255, 0.05);
transition: background var(--transition-fast), color var(--transition-fast);
}
.bb-browse-menu > .bb-browse-item:last-child {
border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.bb-browse-item::after {
/* underline accent on hover/active */
content: "";
position: absolute;
left: 18px;
right: 18px;
bottom: 0;
height: 2px;
background: var(--color-accent);
transform: scaleX(0);
transform-origin: left;
transition: transform var(--transition-fast);
}
.bb-browse-item:hover,
.bb-browse-item[aria-expanded="true"] {
background: rgba(59, 130, 246, 0.08);
color: #ffffff;
}
.bb-browse-item:hover::after,
.bb-browse-item[aria-expanded="true"]::after {
transform: scaleX(1);
}
.bb-browse-item .bb-browse-caret {
display: inline-block;
margin-left: 6px;
font-size: 8px;
opacity: 0.7;
transform: translateY(-1px);
transition: transform 0.15s ease;
}
.bb-browse-item[aria-expanded="true"] .bb-browse-caret {
transform: rotate(180deg) translateY(1px);
}
/* ─── Newsletter modal (site-wide popup) ──────────────────────────────────── */
.bb-modal-backdrop {
position: fixed;
inset: 0;
background: rgba(5, 10, 15, 0.62);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
z-index: 9000;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
animation: bb-modal-backdrop-fade 0.35s ease both;
}
@keyframes bb-modal-backdrop-fade {
from { opacity: 0; }
to { opacity: 1; }
}
.bb-modal-card {
position: relative;
width: 100%;
max-width: 440px;
background:
radial-gradient(120% 70% at 10% -10%, rgba(59,130,246,0.10), transparent 60%),
linear-gradient(180deg, #11192a 0%, #0c121e 100%);
border: 1px solid rgba(59,130,246,0.22);
border-radius: 14px;
padding: 28px 28px 24px;
box-shadow:
0 24px 60px rgba(0,0,0,0.55),
0 0 0 1px rgba(255,255,255,0.02) inset;
color: #e6ecf3;
font-family: var(--font-body);
}
/* Small-to-large open animation — scales the card up from a 65% pill and
fades in. Honors prefers-reduced-motion. */
.bb-modal-enter {
animation: bb-modal-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
transform-origin: center bottom;
}
@keyframes bb-modal-pop {
0% { opacity: 0; transform: translateY(28px) scale(0.62); border-radius: 999px; }
55% { opacity: 1; transform: translateY(0) scale(1.02); border-radius: 18px; }
100% { opacity: 1; transform: translateY(0) scale(1.00); border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
.bb-modal-enter { animation: bb-modal-fade 0.18s ease both; }
}
@keyframes bb-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.bb-modal-close {
position: absolute;
top: 12px;
right: 12px;
width: 30px;
height: 30px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.06);
color: #98a3b3;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bb-modal-close:hover {
background: rgba(59,130,246,0.18);
color: #ffffff;
border-color: rgba(59,130,246,0.45);
}
.bb-modal-eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
font-family: var(--font-mono);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.2em;
text-transform: uppercase;
color: #1D4ED8;
margin-bottom: 14px;
}
.bb-modal-eyebrow-dot {
display: inline-block;
width: 7px;
height: 7px;
border-radius: 50%;
background: #1D4ED8;
box-shadow: 0 0 10px rgba(59,130,246,0.65);
animation: bb-modal-pulse 2.2s ease-in-out infinite;
}
@keyframes bb-modal-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.55; transform: scale(0.85); }
}
.bb-modal-heading {
font-family: var(--font-heading);
font-size: 22px;
font-weight: 800;
line-height: 1.18;
margin: 0 0 8px;
color: #ffffff;
letter-spacing: -0.005em;
}
.bb-modal-sub {
margin: 0 0 18px;
font-size: 13.5px;
line-height: 1.55;
color: #98a3b3;
}
.bb-modal-form { margin: 0; }
.bb-modal-label {
display: block;
font-family: var(--font-mono);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #6b7585;
margin-bottom: 6px;
}
.bb-modal-input {
width: 100%;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.10);
border-radius: 8px;
color: #ffffff;
font-size: 14px;
font-family: var(--font-body);
padding: 11px 13px;
outline: 0;
transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.bb-modal-input:focus {
border-color: #1D4ED8;
background: rgba(59,130,246,0.06);
box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.bb-modal-input::placeholder { color: #4f5763; }
.bb-modal-input:disabled { opacity: 0.5; cursor: not-allowed; }
.bb-modal-err {
margin-top: 8px;
padding: 8px 10px;
background: rgba(239,68,68,0.10);
border: 1px solid rgba(239,68,68,0.32);
border-radius: 6px;
color: #fca5a5;
font-size: 12.5px;
}
.bb-modal-actions {
display: flex;
gap: 10px;
margin-top: 16px;
}
.bb-modal-btn-primary,
.bb-modal-btn-secondary {
flex: 1;
padding: 11px 16px;
border-radius: 8px;
font-family: var(--font-body);
font-size: 13.5px;
font-weight: 700;
letter-spacing: 0.01em;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
border: 1px solid transparent;
}
.bb-modal-btn-primary {
background: linear-gradient(180deg, #1D4ED8 0%, #1E3A8A 100%);
color: #ffffff;
box-shadow: 0 6px 18px rgba(59,130,246,0.28);
}
.bb-modal-btn-primary:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 10px 22px rgba(59,130,246,0.40);
}
.bb-modal-btn-primary:disabled {
opacity: 0.6;
cursor: not-allowed;
box-shadow: none;
}
.bb-modal-btn-secondary {
background: transparent;
color: #98a3b3;
border-color: rgba(255,255,255,0.10);
}
.bb-modal-btn-secondary:hover:not(:disabled) {
color: #ffffff;
border-color: rgba(255,255,255,0.22);
background: rgba(255,255,255,0.04);
}
.bb-modal-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.bb-modal-fineprint {
margin: 14px 0 0;
font-size: 11px;
color: #5a6470;
line-height: 1.45;
}
/* Success state */
.bb-modal-success {
text-align: center;
padding: 6px 0 8px;
}
.bb-modal-success-icon {
width: 56px;
height: 56px;
margin: 0 auto 14px;
border-radius: 50%;
background: rgba(59,130,246,0.14);
border: 1px solid rgba(59,130,246,0.45);
display: inline-flex;
align-items: center;
justify-content: center;
color: #1D4ED8;
}
.bb-modal-success-title {
font-family: var(--font-heading);
font-size: 19px;
font-weight: 800;
color: #ffffff;
margin: 0 0 6px;
}
.bb-modal-success-msg {
color: #98a3b3;
font-size: 13.5px;
line-height: 1.55;
margin: 0;
}
.bb-modal-success-msg strong {
color: #ffffff;
font-weight: 600;
}
/* ─── Neon homepage palette ─────────────────────────────────────────
Scoped to the homepage via `.bb-neon` on the root <div>. CSS-only
recolor: maps the existing blue accents (#1D4ED8 / #1D4ED8) to the
ticker's emerald + cyan, with subtle glows. No layout changes. */
.bb-neon {
--color-accent: #ff4035;
--color-accent-dark: #1D4ED8;
--color-accent-muted: rgba(0, 255, 159, 0.18);
--color-text-info: #1D4ED8;
--color-text-info-strong: #ff4035;
}
/* Section headings — emerald with subtle glow */
.bb-neon h2,
.bb-neon h3.font-heading,
.bb-neon .font-heading.section-title {
color: #ff4035;
text-shadow: 0 0 6px rgba(0, 255, 159, 0.35);
letter-spacing: -0.01em;
}
/* Existing blue text → cyan */
.bb-neon .text-\[\#1D4ED8\] {
color: #1D4ED8 !important;
text-shadow: 0 0 4px rgba(0, 212, 255, 0.25);
}
.bb-neon .text-\[\#1D4ED8\] {
color: #1D4ED8 !important;
}
.bb-neon a:not(.bbt-item):not(.bbt-label):hover {
color: #1D4ED8;
text-shadow: 0 0 4px rgba(0, 212, 255, 0.35);
}
/* Borders previously blue → neon-tinted, subtle */
.bb-neon .border-\[\#1D4ED8\],
.bb-neon .border-\[\#DCE6F2\] {
border-color: rgba(0, 255, 159, 0.35) !important;
}
/* Card border softening to neon */
.bb-neon .border-\[\#DCE6F2\],
.bb-neon .border-\[\#DCE6F2\] {
border-color: rgba(0, 255, 159, 0.14) !important;
}
/* Hover state on cards / clickable wrappers — cyan border + faint glow */
.bb-neon .border-\[\#DCE6F2\]:hover,
.bb-neon .border-\[\#DCE6F2\]:hover,
.bb-neon a:hover > .border-\[\#DCE6F2\],
.bb-neon a:hover > .border-\[\#DCE6F2\] {
border-color: rgba(0, 212, 255, 0.55) !important;
box-shadow: 0 0 14px rgba(0, 212, 255, 0.18);
}
/* Buttons previously blue → emerald→cyan gradient with dark text inverted.
Use the same dark gray as the card backgrounds (#FFFFFF) so the button
reads as a brand-color "chip" punching out the panel. */
.bb-neon .bg-\[\#1D4ED8\],
.bb-neon button.bg-\[\#1D4ED8\],
.bb-neon a.bg-\[\#1D4ED8\] {
background: linear-gradient(90deg, #ff4035 0%, #1D4ED8 100%) !important;
color: #FFFFFF !important;
font-weight: 800 !important;
text-shadow: none !important;
box-shadow: 0 0 14px rgba(0, 212, 255, 0.30);
border: none;
}
.bb-neon .bg-\[\#1D4ED8\] *,
.bb-neon button.bg-\[\#1D4ED8\] *,
.bb-neon a.bg-\[\#1D4ED8\] * {
color: #FFFFFF !important;
text-shadow: none !important;
}
.bb-neon .bg-\[\#1D4ED8\]:hover,
.bb-neon .hover\:bg-\[\#1E3A8A\]:hover,
.bb-neon button.bg-\[\#1D4ED8\]:hover,
.bb-neon a.bg-\[\#1D4ED8\]:hover {
background: linear-gradient(90deg, #14ffb0 0%, #4ee0ff 100%) !important;
box-shadow: 0 0 22px rgba(0, 255, 159, 0.45);
}
/* Subscribe button (.btn-subscribe is its own component class) — same
neon background, dark gray text under the neon scope. */
.bb-neon .btn-subscribe {
background: linear-gradient(90deg, #ff4035 0%, #1D4ED8 100%) !important;
color: #FFFFFF !important;
font-weight: 800 !important;
text-shadow: none !important;
box-shadow: 0 0 14px rgba(0, 212, 255, 0.30) !important;
}
.bb-neon .btn-subscribe:hover {
background: linear-gradient(90deg, #14ffb0 0%, #4ee0ff 100%) !important;
color: #0a0a0a !important;
box-shadow: 0 0 22px rgba(0, 255, 159, 0.45) !important;
}
/* Any element using --color-accent as bg → invert text under neon scope. */
.bb-neon button[style*="--color-accent"],
.bb-neon a[style*="--color-accent"],
.bb-neon [style*="background: var(--color-accent)"],
.bb-neon [style*="background-color: var(--color-accent)"] {
color: #FFFFFF !important;
}
/* Category pills / tags / "AI" badges — cyan via attribute selector */
.bb-neon [class*="bg-[#1D4ED8]/"] {
background: rgba(0, 212, 255, 0.12) !important;
border-color: rgba(0, 212, 255, 0.35) !important;
}
/* Subscribe / newsletter accent boxes */
.bb-neon .bg-\[\#FFFFFF\],
.bb-neon .bg-\[\#0d1f35\] {
background-color: #050a0a !important;
border: 1px solid rgba(0, 255, 159, 0.25);
box-shadow: 0 0 18px rgba(0, 255, 159, 0.15);
}
/* Featured / hero container — neon outline + soft inner glow */
.bb-neon .featured-bento,
.bb-neon [data-featured-bento],
.bb-neon section[aria-label*="Featured"],
.bb-neon section[aria-label*="featured"] {
position: relative;
}
/* Skeletons keep their dim look — don't recolor */
.bb-neon .skeleton {
background: #F8FAFC;
}
/* Divider lines */
.bb-neon hr,
.bb-neon .h-px.bg-\[\#DCE6F2\],
.bb-neon .bg-\[\#222\] {
background-color: rgba(0, 255, 159, 0.15) !important;
}
/* Body / paragraph copy: lean toward spec's #d1d5db where currently muted */
.bb-neon .text-\[\#0F172A\],
.bb-neon .text-\[\#e0e0e0\] {
color: #d1d5db !important;
}
/* Focus rings on interactive elements */
.bb-neon .focus\:ring-\[\#1D4ED8\]:focus,
.bb-neon .focus-visible\:ring-\[\#1D4ED8\]:focus-visible {
--tw-ring-color: rgba(0, 212, 255, 0.6) !important;
}
.bb-neon .focus\:border-\[\#1D4ED8\]:focus,
.bb-neon .focus-visible\:border-\[\#1D4ED8\]:focus-visible {
border-color: #1D4ED8 !important;
}
/* ─── Article body — NYT/WaPo-classy typography ──────────────────────────
Apply this class alongside the existing `prose prose-invert` on the
article body render in /news/[slug] and /articles/[slug]. */
.bb-article-prose {
font-family: Georgia, "Cheltenham Subhead", Charter, "Times New Roman", Times, serif !important;
font-size: 19px !important;
line-height: 1.75 !important;
color: #d6d4d0 !important;
max-width: 720px;
margin-left: auto;
margin-right: auto;
}
.bb-article-prose p {
margin: 0 0 1.4em 0;
font-size: 19px;
line-height: 1.75;
}
.bb-article-prose p:first-of-type {
font-size: 22px;
line-height: 1.6;
color: #e8e6e0;
}
.bb-article-prose p:first-of-type::first-letter {
float: left;
font-family: Georgia, serif;
font-size: 64px;
line-height: 0.95;
font-weight: 700;
color: #f0eee8;
padding: 6px 10px 0 0;
margin-top: 4px;
}
.bb-article-prose h2 {
font-family: Georgia, "Cheltenham Subhead", Charter, serif;
font-size: 28px;
font-weight: 700;
color: #f5f3ee;
margin: 2em 0 0.6em;
letter-spacing: -0.01em;
line-height: 1.25;
}
.bb-article-prose h3 {
font-family: Georgia, "Cheltenham Subhead", Charter, serif;
font-size: 22px;
font-weight: 700;
color: #ece9e2;
margin: 1.6em 0 0.5em;
line-height: 1.3;
}
.bb-article-prose blockquote {
border-left: 3px solid #ff4035;
padding: 0.4em 0 0.4em 1.2em;
margin: 1.8em 0;
font-style: italic;
font-size: 22px;
line-height: 1.5;
color: #e8e6e0;
}
.bb-article-prose blockquote::before {
content: "“";
font-family: Georgia, serif;
font-size: 54px;
line-height: 0;
vertical-align: -0.4em;
color: #ff4035;
margin-right: 0.15em;
opacity: 0.55;
}
.bb-article-prose a {
color: #d6d4d0;
text-decoration: underline;
text-decoration-color: rgba(0, 212, 255, 0.5);
text-underline-offset: 3px;
text-decoration-thickness: 1px;
transition: color 120ms ease, text-decoration-color 120ms ease;
}
.bb-article-prose a:hover {
color: #1D4ED8;
text-decoration-color: #1D4ED8;
}
.bb-article-prose figure {
margin: 1.8em 0;
}
.bb-article-prose figure img,
.bb-article-prose img {
width: 100%;
height: auto;
border-radius: 1px;
}
.bb-article-prose figcaption,
.bb-article-prose .caption {
font-family: Georgia, serif;
font-size: 13px;
font-style: italic;
color: #9a9690;
margin-top: 0.6em;
line-height: 1.45;
}
.bb-article-prose ul,
.bb-article-prose ol {
margin: 0 0 1.4em 1.4em;
padding: 0;
}
.bb-article-prose li {
margin: 0.4em 0;
line-height: 1.7;
}
.bb-article-prose hr {
border: none;
height: 1px;
background: rgba(255, 255, 255, 0.08);
margin: 2.5em 25% 2.5em 25%;
}
.bb-article-prose strong {
color: #f5f3ee;
font-weight: 700;
}
.bb-article-prose em {
color: #ece9e2;
}
.bb-article-prose code {
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: 0.92em;
background: #FFFFFF;
padding: 0.1em 0.4em;
border-radius: 3px;
color: #f0eee8;
}
@media (max-width: 720px) {
.bb-article-prose,
.bb-article-prose p { font-size: 17px; line-height: 1.7; }
.bb-article-prose p:first-of-type { font-size: 19px; }
.bb-article-prose p:first-of-type::first-letter { font-size: 52px; }
.bb-article-prose h2 { font-size: 24px; }
.bb-article-prose blockquote { font-size: 19px; }
}