/* Black tie theme (2026-11-28). Loaded after style.css and fixes.css.
   Near-black ground, ivory text, gold accents, serif headlines. Dark only. */
html[data-theme] {
  --bg-primary: #0e0f11; --bg-secondary: #131416; --bg-tertiary: #17181b; --bg-hover: #1e1f23;
  --text-primary: #f3efe6; --text-secondary: #b3ada0; --text-muted: #9a9488;
  --border: #2c2d31; --border-subtle: #232428; --border-color: #2c2d31;
  --accent: #d8b55b; --accent-hover: #e6c873; --accent-dim: rgba(216, 181, 91, 0.12); --accent-glow: rgba(216, 181, 91, 0.35);
  --green: #4fd07f; --green-bg: rgba(79, 208, 127, 0.12); --red: #ff8177; --red-bg: rgba(255, 129, 119, 0.12);
  --bt-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --bt-line: #2c2d31; --bt-field: #4a4b50; --bt-gold: #d8b55b;
  color-scheme: dark;
}
body { background: var(--bg-primary); color: var(--text-primary); }
h1, h2 { font-family: var(--bt-serif); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- top strip + header ---------- */
.bt-top { background: #000; color: #b3ada0; font-size: 13px; }
.bt-top .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; padding-top: 9px; padding-bottom: 9px; }
header { background: var(--bg-primary); border-bottom: 1px solid var(--bt-line); box-shadow: none; }
header .header-content { gap: 12px 28px; }
.logo .bt-wordmark, .footer-brand .bt-wordmark { font-family: var(--bt-serif); font-size: 25px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); white-space: nowrap; line-height: 1.2; }
header .header-nav { order: 2; margin-left: 0; margin-right: auto; gap: 0 4px; }
header .header-nav .nav-link { font-size: 14.5px; font-weight: 500; color: var(--text-primary); background: none; padding: 10px 12px; border-radius: 6px; }
header .header-nav .nav-link:hover { text-decoration: underline; background: none; }
header .header-nav .nav-link.active { color: var(--accent); background: none; }
header .search-box { order: 3; }
header .search-box input { background: var(--bg-tertiary); border: 1px solid var(--bt-field); border-radius: 8px; color: var(--text-primary); }
header .search-box input::placeholder { color: var(--text-secondary); }
header .header-right { order: 4; }
header .hamburger-btn { order: 5; }
.theme-toggle, .market-status, .mkt-bar, .market-bar, .mobile-nav button.nav-link-minor { display: none !important; }
.bt-tip { display: inline-block; padding: 9px 16px; border: 1px solid var(--text-primary); border-radius: 6px; font-size: 14.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.bt-tip:hover { background: var(--text-primary); color: var(--bg-primary); }
body.page-home header .search-box { display: none; }
@media (max-width: 1024px) { .bt-tip { display: none; } }
@media (max-width: 768px) { .bt-top span:last-child { display: none; } .logo .bt-wordmark { font-size: 22px; } }

/* ---------- footer ---------- */
footer { background: var(--bg-primary); border-top: 1px solid var(--bt-line); }
.footer-tagline, .footer-disclaimer { color: var(--text-secondary); }

/* ---------- shared pieces ---------- */
.bt-wrap { max-width: var(--container-width, 1400px); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
body.page-home footer { margin-top: 0; }
/* ticker page heading: company name leads, symbol is the small gold label above it */
.ticker-h1 .ticker-company-name { font-family: var(--bt-serif); font-size: 40px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; color: var(--text-primary); }
.ticker-h1 .ticker-company-name + .ticker-symbol-large { font-family: var(--font-main); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--bt-gold); }
@media (max-width: 760px) { .ticker-h1 .ticker-company-name { font-size: 28px; } }
.bt-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bt-gold); }
.bt-num { font-variant-numeric: tabular-nums; }
.bt-up { color: var(--green); } .bt-down { color: var(--red); } .bt-flat { color: var(--text-primary); }
.bt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 14px; border-bottom: 2px solid var(--text-primary); }
.bt-head h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.bt-head a { font-size: 14.5px; font-weight: 600; color: var(--bt-gold); }
.bt-head a:hover { text-decoration: underline; }

/* ---------- homepage ---------- */
.bt-hero { padding: 76px 40px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bt-hero h1 { margin: 0; display: flex; flex-direction: column; align-items: center; }
.bt-hero h1 .bt-label { font-family: var(--font-main); }
.bt-hero h1 .bt-label::after { content: ""; display: block; width: 44px; height: 2px; background: var(--bt-gold); margin: 16px auto 22px; }
.bt-hero h1 .bt-big { font-size: 64px; line-height: 1.06; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; max-width: 900px; }
.bt-hero p { margin: 18px 0 0; font-size: 18px; color: var(--text-secondary); max-width: 560px; }
.bt-field { position: relative; margin-top: 34px; width: 100%; max-width: 720px; display: flex; align-items: center; gap: 8px; background: var(--bg-tertiary); border: 1px solid var(--bt-field); border-radius: 8px; padding: 6px 6px 6px 20px; text-align: left; }
.bt-field:focus-within { border-color: var(--bt-gold); }
.bt-field svg { flex: none; color: var(--text-secondary); }
.bt-field input { flex: 1 1 auto; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 17px; padding: 0 8px; }
.bt-field input::placeholder { color: var(--text-secondary); }
.bt-field button { flex: none; height: 52px; padding: 0 28px; border-radius: 5px; border: 0; background: var(--bt-gold); color: #14120c; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.bt-field button:hover { background: var(--accent-hover); }
.bt-drop { display: none; position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 50; background: var(--bg-tertiary); border: 1px solid var(--bt-field); border-radius: 8px; max-height: 340px; overflow-y: auto; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.bt-drop a { display: flex; gap: 14px; align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--bt-line); }
.bt-drop a:last-child { border-bottom: 0; }
.bt-drop a:hover, .bt-drop a.on { background: var(--bg-hover); }
.bt-drop b { min-width: 64px; } .bt-drop span { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-drop .none { padding: 14px 18px; color: var(--text-secondary); }
.bt-chips { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 20px; font-size: 14.5px; }
.bt-chips span { color: var(--text-secondary); }
.bt-chips a { font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--bt-gold); }
.bt-chips a:hover { color: var(--bt-gold); }

.bt-main { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; padding-top: 8px; border-top: 1px solid var(--bt-line); padding-top: 56px; }
.bt-main > section { flex: 2 1 620px; min-width: 0; }
.bt-main > aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.bt-thead, .bt-row { display: grid; grid-template-columns: 28px minmax(0, 2fr) 1.9fr 0.9fr 0.9fr 0.8fr; gap: 14px; align-items: center; border-bottom: 1px solid var(--bt-line); }
.bt-thead { padding: 12px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.bt-row { padding: 15px 0; color: var(--text-primary); }
.bt-row:hover { background: var(--bg-secondary); }
.bt-r { text-align: right; }
.bt-rank, .bt-when, .bt-cons { color: var(--text-secondary); }
.bt-when { font-size: 14px; white-space: nowrap; }
.bt-co { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.bt-co span { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-wh { font-weight: 700; font-size: 16px; }
.bt-gap { font-weight: 600; }
.bt-sub { display: none; }
.bt-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--bt-line); color: var(--text-primary); }
.bt-item:hover { background: var(--bg-secondary); }
.bt-item > span:first-child { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bt-item > span:last-child { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.bt-item small { color: var(--text-secondary); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-item strong { font-size: 17px; }
.bt-what { border-top: 2px solid var(--bt-gold); padding-top: 18px; }
.bt-what h2 { margin: 0 0 8px; font-size: 22px; }
.bt-what p { margin: 0; color: var(--text-secondary); }
.bt-band { background: var(--bg-tertiary); margin-top: 64px; }
.bt-band .bt-wrap { padding-top: 44px; padding-bottom: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px 56px; }
.bt-band div { display: flex; flex-direction: column; gap: 4px; }
.bt-band b { font-family: var(--bt-serif); font-size: 44px; line-height: 1.05; font-weight: 500; }
.bt-band span { color: var(--text-secondary); }
.bt-band .bt-feat { font-family: var(--bt-serif); font-size: 20px; line-height: 1.35; color: var(--text-primary); }

@media (max-width: 760px) {
  .bt-wrap { padding-left: 20px; padding-right: 20px; }
  .bt-hero { padding: 44px 20px 40px; }
  .bt-hero h1 .bt-big { font-size: 40px; }
  .bt-hero p { font-size: 16px; }
  .bt-field { padding-left: 14px; } .bt-field button { padding: 0 20px; }
  .bt-main { padding-top: 40px; gap: 44px; }
  .bt-head h2 { font-size: 25px; }
  .bt-thead { display: none; }
  .bt-row { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; }
  .bt-row .bt-when, .bt-row .bt-cons, .bt-row .bt-gap { display: none; }
  .bt-co { flex-direction: column; gap: 0; } .bt-co span { font-size: 13.5px; }
  .bt-wh { display: flex; flex-direction: column; align-items: flex-end; font-size: 17px; }
  .bt-sub { display: block; font-size: 13.5px; font-weight: 600; }
  .bt-band b { font-size: 36px; }
}

/* ---------- ticker page: whisper against consensus ---------- */
.bt-thero { background: var(--bg-tertiary); border: 1px solid var(--bt-line); border-radius: 10px; padding: 32px 36px; margin: 8px 0 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.bt-thero .bt-fig { display: flex; flex-direction: column; gap: 6px; }
.bt-thero .bt-fig b { font-family: var(--bt-serif); font-size: 84px; line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.bt-thero .bt-fig.bt-quiet b { font-weight: 400; color: var(--text-secondary); }
.bt-thero .bt-fig.bt-quiet .bt-label { color: var(--text-secondary); }
.bt-thero .bt-fig small { color: var(--text-secondary); font-size: 15px; }
.bt-thero .bt-say { flex: 1 1 300px; min-width: 0; border-left: 1px solid var(--bt-gold); padding-left: 28px; display: flex; flex-direction: column; gap: 6px; }
.bt-thero .bt-say strong { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.bt-thero .bt-say span { color: var(--text-secondary); }
@media (max-width: 760px) {
  .bt-thero { padding: 22px 20px; gap: 20px 32px; }
  .bt-thero .bt-fig b { font-size: 52px; }
  .bt-thero .bt-say { border-left: 0; border-top: 1px solid var(--bt-gold); padding: 16px 0 0; }
  .bt-thero .bt-say strong { font-size: 21px; }
}

/* phone header: name and menu button on one line, search underneath */
@media (max-width: 768px) {
  header .hamburger-btn { order: 2; margin-left: auto; }
  header .header-right { display: none; }
  header .search-box { order: 6; }
}
