/* DocTrader — Midtown glass, Art Deco gold, up-day green.
   Static site, no build step. Edit freely. Sister site of DocDiver. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #0a0907;
  --bg-2: #12100b;
  --surface: #1b1711;
  --surface-2: #262117;
  --line: #3d3424;
  --text: #f6efe0;
  --muted: #c4b496;
  --gold: #e8c15a;
  --gold-2: #c9962b;
  --gold-3: #f8e2a0;
  --gold-4: #8a6a24;
  --gold-soft: rgba(232, 193, 90, 0.14);
  --bronze: #8d6233;
  --champagne: #f3e6c4;
  --teal: #2fd6c2;
  --up: #2fcf6f;
  --up-2: #1f9d52;
  --up-soft: rgba(47, 207, 111, 0.14);
  --down: #f0625d;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --maxw: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 88% -8%, rgba(232, 193, 90, 0.14), transparent 58%),
    radial-gradient(700px 280px at 8% 18%, rgba(47, 207, 111, 0.045), transparent 55%),
    radial-gradient(900px 360px at 12% 40%, rgba(255, 255, 255, 0.03), transparent 60%),
    radial-gradient(720px 420px at 92% 72%, rgba(141, 98, 51, 0.10), transparent 62%),
    linear-gradient(180deg, #16130e 0%, var(--bg) 880px);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(232, 193, 90, 0.35); color: var(--text); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, summary:focus-visible, .tile:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: 0.01em; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { background: linear-gradient(180deg, var(--champagne) 0%, var(--gold) 52%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
[id] { scroll-margin-top: 84px; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }

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

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1d1405; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; outline: 2px solid var(--champagne); outline-offset: 2px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(232,193,90,0.38), 0 8px 28px rgba(0,0,0,0.25);
}
.site-header::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-2) 18%, var(--gold-3) 50%, var(--up) 78%, transparent 100%);
  opacity: 0.85;
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--text); letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span b { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 11px; border-radius: 8px;
  color: var(--muted); font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-links a.sister { color: var(--teal); }
.nav-links a.sister:hover { background: rgba(47, 214, 194, 0.12); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; min-width: 44px; min-height: 40px;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 12px 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1.05rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 12vw, 128px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232,193,90,0.05), transparent 42%),
    radial-gradient(520px 220px at 78% 18%, rgba(232,193,90,0.10), transparent 70%);
}
.hero .eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-3); background: var(--gold-soft); border: 1px solid rgba(232, 193, 90, 0.32);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { max-width: 16ch; }
.hero p.lede { font-size: 1.18rem; max-width: 54ch; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(110px, 20vw, 240px); pointer-events: none; opacity: 0.72; }
.hero .wrap { position: relative; z-index: 1; }
.bubbles { display: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 600;
  border: 1px solid var(--gold-2); color: #1d1405;
  background: linear-gradient(180deg, var(--gold-3) 0%, var(--gold) 45%, var(--gold-2) 100%);
  box-shadow: 0 2px 10px rgba(230,185,80,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn.green { background: linear-gradient(180deg, #6ee59a 0%, var(--up) 50%, var(--up-2) 100%); border-color: var(--up-2); color: #06210f; box-shadow: 0 2px 10px rgba(47,207,111,0.28), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold-soft); }
.btn.sister { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn.sister:hover { background: rgba(47, 214, 194, 0.12); }

/* Sections */
section.block { padding: clamp(40px, 6vw, 72px) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head h2 { position: relative; padding-bottom: 6px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background:
    linear-gradient(180deg, rgba(248,226,160,0.06), transparent 28%),
    linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 42%, #16120d 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: inset 0 1px 0 rgba(248,226,160,0.08);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(248,226,160,0.14); }
.card h3 { margin-bottom: 2px; }
.card .meta { font-size: 0.85rem; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(232, 184, 74, 0.25);
  padding: 2px 8px; border-radius: 999px;
}
.tag.cool { color: var(--teal); background: rgba(47, 214, 194, 0.10); border-color: rgba(47, 214, 194, 0.3); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.stat { background: rgba(28, 23, 17, 0.7); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.5rem; color: var(--gold); }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* Marble page-head */
.page-head { background: linear-gradient(180deg, rgba(248,226,160,0.05), transparent 70%), radial-gradient(800px 200px at 18% 100%, rgba(232,193,90,0.08), transparent 60%); }

/* Trip log entries */
.entry { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: 0; }
.entry .when { color: var(--muted); font-size: 0.95rem; }
.entry .when b { display: block; color: var(--text); font-size: 1.05rem; }
.entry h3 { font-size: 1.35rem; }
.entry .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.entry .facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; }
.entry .facts span { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.entry ul { padding-left: 1.2em; margin: 0 0 1em; }
.entry li { margin-bottom: 4px; }
@media (max-width: 700px) { .entry { grid-template-columns: 1fr; gap: 8px; } }

/* Prose / tips */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; padding-top: 0.6em; }
.prose h3 { margin-top: 1.4em; color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.callout {
  border-left: 3px solid var(--gold); background: var(--gold-soft);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0;
}
.callout.warn { border-color: var(--teal); background: rgba(47, 214, 194, 0.08); }
.callout p:last-child { margin: 0; }

/* Two-column layout w/ sticky TOC */
.with-toc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.with-toc > * { min-width: 0; }
.toc { position: sticky; top: 84px; font-size: 0.92rem; }
.toc h4 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--gold); text-decoration: none; }
@media (max-width: 860px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); white-space: nowrap; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.checklist li { break-inside: avoid; padding: 6px 0 6px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px;
  border: 1.5px solid var(--gold-2); border-radius: 4px;
}
@media (max-width: 640px) { .checklist { columns: 1; } }

/* Sister site banner */
.sister-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border: 1px solid rgba(47, 214, 194, 0.35);
  background: linear-gradient(90deg, rgba(47, 214, 194, 0.10), transparent 70%);
  border-radius: var(--radius); padding: 20px 24px;
}
.sister-banner h3 { margin: 0 0 4px; }
.sister-banner h3 b { color: var(--teal); }
.sister-banner p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-grid .card a { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 40px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: var(--text); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page hero (interior pages) */
.page-head { padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }

/* Details/accordion */
details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 10px; }
summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--gold); }
details[open] summary::before { content: "–"; }
details .body { padding: 0 16px 14px 16px; color: var(--muted); }
details .body p:last-child { margin: 0; }

/* --- DocTrader-specific --- */
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }
.disclaimer {
  border: 1px solid rgba(232, 184, 74, 0.35); background: rgba(232, 184, 74, 0.06);
  border-radius: 12px; padding: 14px 18px; font-size: 0.92rem; color: var(--muted);
}
.disclaimer strong { color: var(--gold); }
.ticker { font-family: var(--mono); font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.pill { display: inline-block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.watch { color: var(--gold); border-color: rgba(232, 184, 74, 0.4); background: var(--gold-soft); }
.pill.long, .pill.up { color: var(--up); border-color: rgba(63, 207, 127, 0.4); background: rgba(63, 207, 127, 0.08); }
.pill.trim { color: var(--down); border-color: rgba(240, 98, 93, 0.4); background: rgba(240, 98, 93, 0.08); }
.pill.hold { color: var(--muted); }
.video {
  position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.video .play {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold); display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(232, 184, 74, 0.35);
}
.video .play::after { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #1d1405; margin-left: 4px; }
.video .soon { position: absolute; top: 10px; left: 10px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note-list .entry .when b { font-family: var(--mono); font-weight: 600; }
.chart-strip { display: flex; gap: 3px; align-items: flex-end; height: 42px; margin-top: 10px; }
.chart-strip i { flex: 1; background: var(--gold-2); opacity: 0.55; border-radius: 2px 2px 0 0; }
.chart-strip i:nth-child(odd) { opacity: 0.35; }

/* ===== Dr. Ting additions: avatar, dashboard, updates ===== */
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(232,193,90,0.16); background: var(--surface-2); }
.avatar.sm { width: 40px; height: 40px; border-width: 1.5px; box-shadow: none; }
.avatar.lg { width: min(420px, 100%); height: auto; aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid rgba(232,193,90,0.4); box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,193,90,0.28); object-fit: cover; object-position: center 22%; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.byline b { color: var(--text); display: block; font-size: 1rem; }
.hero-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; gap: 22px; } .hero-row .avatar.lg { width: 100%; max-width: 520px; } }

/* Dr. Ting trio + slideshow + gallery */
.ting-trio { display: flex; align-items: center; }
.ting-trio a, .ting-trio span { display: block; margin-left: -12px; line-height: 0; }
.ting-trio a:first-child, .ting-trio span:first-child { margin-left: 0; }
.ting-trio img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 18%;
  border: 2px solid var(--gold); background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.ting-trio a:hover img { transform: translateY(-2px); }
.ting-show {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid rgba(232,193,90,0.35);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  background: var(--surface); aspect-ratio: 16 / 9;
}
.ting-show img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  opacity: 0; transition: opacity 0.7s ease;
}
.ting-show img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ting-show img { transition: none; }
  .btn, .card, .tile, .update-card { transition: none; }
}
.ting-desk { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
@media (max-width: 800px) { .ting-desk { grid-template-columns: 1fr; } }
.avatar-gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.avatar-gallery figure { margin: 0; }
.avatar-gallery img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 20%;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.avatar-gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.avatar-gallery figcaption b { color: var(--text); display: block; font-size: 1.02rem; }
.face-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.face-row img { width: 88px; height: 88px; }

/* Ticker tape bar */
.tape { border-bottom: 1px solid var(--line); background: #050403; min-height: 46px; box-shadow: inset 0 -1px 0 rgba(47,207,111,0.28), inset 0 1px 0 rgba(232,193,90,0.12); }
.tape .tradingview-widget-container { height: 46px; overflow: hidden; }

/* Dashboard layout */
.dash { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.dash > * { min-width: 0; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.dash-side { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto; padding-right: 4px; }
@media (max-width: 900px) { .dash-side { position: static; max-height: none; } }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button { background: var(--surface); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-2); background: var(--gold-soft); }
.tiles { display: grid; gap: 8px; }
.tile { text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); cursor: pointer; font: inherit; transition: border-color .12s, transform .12s; }
.tile:hover { border-color: var(--gold-2); transform: translateX(2px); }
.tile.active { border-color: var(--gold); background: var(--gold-soft); }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile-name { font-size: 0.92rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.tile-meta .soon { color: var(--gold); font-weight: 600; }
.pill.core { color: var(--muted); }
.pill.watching { color: var(--gold); border-color: rgba(232,184,74,.4); background: var(--gold-soft); }

.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 480px; }
.detail .empty { text-align: center; padding: 80px 20px; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 16px; }
.detail-head h2 { margin: 4px 0 2px; }
.detail-ticker { display: flex; align-items: center; gap: 10px; }
.detail-ticker .ticker { font-size: 1.4rem; }
.btn.small { padding: 8px 12px; font-size: 0.9rem; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.panel h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 10px 0 4px; }
.panel h3:first-child { margin-top: 0; }
.panel p { margin-bottom: 4px; }
.kd { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.kd:last-of-type { border-bottom: 0; }
.kd span { color: var(--muted); font-size: 0.85rem; }
.kd b { font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.tv-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.tv-info { min-height: 120px; margin-bottom: 12px; }
.tv-chart { height: 520px; }
.tv-chart .tradingview-widget-container, .tv-tall .tradingview-widget-container { height: 100%; }
.tv-tall { height: 640px; }
@media (max-width: 600px) { .tv-chart { height: 380px; } .tv-tall { height: 560px; } }
.strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--text); font: inherit; font-size: 0.88rem; cursor: pointer; }
.chip:hover { border-color: var(--gold-2); }
.chip b { font-family: var(--mono); color: var(--gold); }

/* Updates */
.update-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.update-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--text); transition: border-color .12s, transform .12s; }
.update-card:hover { text-decoration: none; border-color: var(--gold-2); transform: translateY(-2px); }
.update-card h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.update-card p { color: var(--muted); margin: 0 0 8px; font-size: 0.95rem; }
.update-date { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.bull { background: var(--up); } .dot.bear { background: var(--down); }
.month-head { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 12px; }
.month:first-child .month-head { margin-top: 0; }
.post { max-width: 76ch; }
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.post-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.post-date { font-family: var(--mono); color: var(--gold); font-size: 0.9rem; letter-spacing: .04em; }
.post h2 { font-size: 1.25rem; color: var(--gold); margin-top: 1.6em; }
.post ul { padding-left: 1.2em; }
.post .levels { width: 100%; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.tile-group { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 14px 0 6px; font-family: var(--font); }
.tile-group:first-child { margin-top: 0; }
.est { font-style: normal; font-size: 0.7em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 2px; vertical-align: middle; }
.pill.noted { color: var(--muted); border-style: dashed; }
