/* Ares Trading Lab */
:root {
  --paper: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #1A1E27;
  --muted: #5B6270;
  --rule: #D8DBE2;
  --bronze: #9C5B22;
  --bull: #17714C;
  --bear: #B2352C;
  --bull-wash: rgba(23, 113, 76, .18);
  --bear-wash: rgba(178, 53, 44, .16);
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13161C;
    --surface: #1A1E26;
    --ink: #E7E9EE;
    --muted: #9AA1AE;
    --rule: #2E333E;
    --bronze: #D69455;
    --bull: #44B585;
    --bear: #E86A5F;
    --bull-wash: rgba(68, 181, 133, .24);
    --bear-wash: rgba(232, 106, 95, .22);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  font-feature-settings: "tnum" 1;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--bronze); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 34px; width: auto; fill: var(--ink); }
.brand:hover .mark { fill: var(--bronze); }
.wordmark { font-family: "Poppins", var(--sans); font-weight: 500; font-size: 1.2rem; letter-spacing: 0; }
.site-head nav { display: flex; gap: 4px; }
.site-head nav a { text-decoration: none; padding: 8px 12px; border-radius: 4px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.site-head nav a:hover { color: var(--ink); background: var(--surface); }
.site-head nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--bronze); border-radius: 0; }
@media (max-width: 600px) {
  .head-inner { padding-block: 10px; gap: 4px; }
  .site-head nav { margin-left: -6px; gap: 0; max-width: calc(100% + 6px); overflow-x: auto; scrollbar-width: none; }
  .site-head nav a { padding: 8px 6px; font-size: .9rem; }
}

/* Shared type */
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; letter-spacing: -.01em; }
h1 { font-stretch: 78%; font-weight: 800; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.02; letter-spacing: -.015em; }
h1 a { text-decoration: none; }
.kicker { margin: 0 0 14px; color: var(--bronze); font-weight: 600; font-size: .95rem; }
.kicker a { text-decoration: none; }
.lede { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--muted); max-width: 38em; margin: 18px 0 0; }

.btn {
  display: inline-block; margin-top: 28px; padding: 12px 20px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 600; border-radius: 4px;
}
.btn:hover { background: var(--bronze); color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding-block: 64px 72px; }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 48px; } }

/* Level board — the signature element */
.board { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 24px 16px; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-row { padding: 18px 0 10px; }
.board-row + .board-row { border-top: 1px solid var(--rule); }
.board-group { padding: 16px 0 0; color: var(--bronze); font-weight: 700; font-size: .95rem; }
.board-group:not(:first-child) { margin-top: 6px; border-top: 2px solid var(--rule); padding-top: 18px; color: var(--muted); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-decoration: none; }
.mkt strong { font-stretch: 90%; font-weight: 700; font-size: 1.08rem; }
.mkt span { color: var(--muted); font-size: .9rem; margin-left: 4px; }
.bias { font-weight: 700; font-size: .92rem; text-align: right; }
.bias.bull { color: var(--bull); }
.bias.bear { color: var(--bear); }
.bias.flat { color: var(--muted); }

.ladder { position: relative; height: 76px; margin: 6px 0 0; }
.ladder .track { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--rule); }
.ladder .zone { position: absolute; top: 26px; height: 18px; border-radius: 2px; }
.ladder .zone.bull { background: var(--bull-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bull) 45%, transparent); }
.ladder .zone.bear { background: var(--bear-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bear) 45%, transparent); }
.ladder .tick { position: absolute; top: 29px; width: 0; height: 12px; border-left: 1px solid var(--muted); }
.ladder .tick span { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font-stretch: 75%; line-height: 1.1; }
.ladder .tl { top: 15px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.ladder .tv { top: 29px; font-size: .72rem; color: var(--muted); }
.ladder .pivot { border-left: 2px solid var(--ink); height: 16px; top: 27px; }
.ladder .pivot .tl { color: var(--ink); top: 19px; }
.ladder .pivot .tv { top: 33px; }
.ladder .now { position: absolute; top: 0; height: 44px; border-left: 2px solid var(--bronze); }
.ladder .now span {
  position: absolute; top: -2px; left: 0; transform: translateX(-50%);
  background: var(--bronze); color: #fff; font-weight: 700; font-size: .78rem;
  padding: 1px 6px; border-radius: 3px; white-space: nowrap; font-stretch: 85%;
}
@media (prefers-color-scheme: dark) { .ladder .now span { color: #1A1E27; } }
.ladder .edge-l span { transform: none; }
.ladder .edge-r span { transform: translateX(-100%); }
.ladder:has(.low) { height: 100px; }
.ladder .low .tl { top: 41px; }
.ladder .low .tv { top: 55px; }
.ladder .low { border-left-style: dashed; height: 30px; }
@media (max-width: 520px) {
  .ladder .tv { display: none; }
  .ladder:has(.low) { height: 80px; }
  .ladder { height: 62px; }
}
.legend { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.legend .key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-left: 6px; }
.legend .key:first-child { margin-left: 0; }
.legend .key.bull { background: var(--bull-wash); box-shadow: inset 0 0 0 1px var(--bull); }
.legend .key.bear { background: var(--bear-wash); box-shadow: inset 0 0 0 1px var(--bear); }
.legend .key.now { width: 3px; height: 14px; background: var(--bronze); }

/* Streams */
.streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding-block: 56px 80px; border-top: 1px solid var(--rule); }
@media (max-width: 1000px) { .streams { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 56px; } }
.streams h2 { font-stretch: 85%; font-size: 1.6rem; font-weight: 800; }
.streams h2 a { text-decoration: none; }
.sub { color: var(--muted); margin: 6px 0 8px; }

.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.item-meta { margin: 0 0 6px; font-size: .88rem; color: var(--muted); display: flex; gap: 10px; }
.type { font-weight: 600; }
.type.weekly { color: var(--bronze); }
.type.daily { color: var(--ink); }
.type.idea { color: var(--bull); }
.item h3 { font-stretch: 88%; font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.item h3 a { text-decoration: none; }
.item-sum { font-family: var(--serif); color: var(--muted); margin: 8px 0 0; max-width: 40em; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tags a { font-size: .82rem; text-decoration: none; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.tags a:hover { border-color: var(--bronze); color: var(--bronze); }
.empty { color: var(--muted); padding: 22px 0; border-top: 1px dashed var(--rule); margin: 0; font-style: italic; font-family: var(--serif); }

/* Listings */
.listing { padding-block: 56px 88px; max-width: 860px; margin-inline: auto; }
.listing h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.listing .items { margin-top: 28px; border-top: 1px solid var(--rule); }
.market-index { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.market-index li { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
.market-index a { font-weight: 700; text-decoration: none; }
.market-index span { color: var(--muted); font-size: .95rem; }

/* Post */
.post-head { padding-block: 56px 32px; max-width: 860px; }
.byline, .asof { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.asof { margin-top: 2px; }
.post-board { max-width: 860px; margin-bottom: 16px; }
.prose { max-width: 860px; padding-bottom: 40px; font-family: var(--serif); font-size: 1.14rem; line-height: 1.68; }
.prose > * { max-width: 34em; }
.prose > .setups, .prose > .pivots, .prose > .glance, .prose > .notice, .prose > figure { max-width: none; }
.prose figure { margin: 1.6em 0; }
.prose figure img { display: block; width: 100%; border-radius: 4px; border: 1px solid var(--rule); }
.prose figcaption { font-family: var(--sans); font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose h2 { font-stretch: 82%; font-size: 1.85rem; font-weight: 800; line-height: 1.12; margin: 2.2em 0 .5em; scroll-margin-top: 20px; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.8em 0 .4em; }
.prose p { margin: 0 0 1.05em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose strong { font-weight: 650; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.prose th { font-weight: 600; color: var(--muted); }
.prose td.num, .prose th.num { text-align: right; }
.glance { overflow-x: auto; }
.up { color: var(--bull); font-weight: 650; }
.down { color: var(--bear); font-weight: 650; }

.setups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0 1em; font-family: var(--sans); }
@media (max-width: 640px) { .setups { grid-template-columns: 1fr; } }
.setup { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid; border-radius: 4px; padding: 16px 18px; }
.setup.bull { border-top-color: var(--bull); }
.setup.bear { border-top-color: var(--bear); }
.setup h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.setup.bull h4 { color: var(--bull); }
.setup.bear h4 { color: var(--bear); }
.setup h4 span { color: var(--muted); font-weight: 500; font-size: .9rem; }
.setup dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .97rem; }
.setup dt { color: var(--muted); }
.setup dd { margin: 0; }
.setup .note { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.inval { font-size: 1.02rem; }
.pivots { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--sans); font-size: .9rem; color: var(--muted); margin: 0 0 1.4em; padding: 10px 0; border-block: 1px solid var(--rule); }
.pivots b { font-weight: 600; color: var(--ink); margin-right: 3px; }
.pivots .p { color: var(--ink); font-weight: 700; }
.notice { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--bronze); padding: 14px 18px; border-radius: 4px; font-size: 1rem; }
.post-foot { max-width: 860px; padding-bottom: 72px; }
.post-foot .disclosure { font-family: var(--sans); font-size: .9rem; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.page .prose { padding-bottom: 88px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--surface); }
.foot-inner { padding-block: 32px 40px; color: var(--muted); font-size: .88rem; }
.risk { max-width: 72em; margin: 0 0 18px; line-height: 1.55; }
.risk strong { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.foot-links span { margin-left: auto; }
@media (max-width: 600px) { .foot-links span { margin-left: 0; width: 100%; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Idea results */
.status { font-weight: 600; font-size: .82rem; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.status.bull { color: var(--bull); }
.status.bear { color: var(--bear); }
.status.open { color: var(--bronze); }
.status.flat { color: var(--muted); }
.result-line { margin: 10px 0 0; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 36px 0 0; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.stat { background: var(--surface); padding: 16px 18px; }
.stat dt { color: var(--muted); font-size: .85rem; }
.stat dd { margin: 4px 0 0; font-stretch: 85%; font-weight: 800; font-size: 1.7rem; line-height: 1.1; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fundamentals */
:root { --c1: #9C5B22; --c2: #2a78d6; --c3: #7A4FB8; }
@media (prefers-color-scheme: dark) { :root { --c1: #C27E3F; --c2: #3987e5; --c3: #A586DC; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; font-size: .92rem; background: var(--surface); }
.prose.fund { max-width: none; padding: 0; }
.prose.fund > p { max-width: 42em; }
.prose.fund h2 { margin-top: 1.8em; }
.prose.fund .src { font-family: var(--sans); color: var(--muted); font-size: .9rem; }
.fund-page { max-width: var(--wrap); }
.prose.fund > .stats, .prose.fund > .src { max-width: none; }
.stats.fund { display: flex; flex-wrap: wrap; margin: 20px 0 22px; font-family: var(--sans); }
.stats.fund .stat { flex: 1 1 180px; }
@media (max-width: 520px) { .stats.fund .stat { flex-basis: 140px; padding: 12px 14px; } .stats.fund .stat dd { font-size: 1.4rem; } }
.stats.fund .stat dd small { font-size: .55em; color: var(--muted); font-weight: 600; }
.stat .sub { margin: 6px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.stat .sub .up, .stat .sub .down { font-weight: 650; }
figure.chart { margin: 28px 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px 12px; font-family: var(--sans); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin: 0 0 10px; color: var(--ink); font-size: .98rem; }
.chart-head .keys { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.chart-note { margin: 6px 0 0 !important; color: var(--muted); font-size: .84rem; }
.plot { position: relative; min-height: 220px; }
.plot svg { display: block; overflow: visible; }
.plot .grid { stroke: var(--rule); stroke-width: 1; }
.plot .zero { stroke: var(--muted); stroke-width: 1; }
.plot .ytick { fill: var(--muted); font-size: 11px; text-anchor: end; font-variant-numeric: tabular-nums; }
.plot .xtick { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.plot .end { fill: var(--ink); font-size: 12px; font-weight: 600; }
.plot .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .ref { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.plot .band { fill: var(--muted); opacity: .16; }
.plot .area { stroke: none; opacity: .1; }
.plot .shade { fill: var(--muted); opacity: .07; }
.plot .shade-label { fill: var(--muted); font-size: 11px; font-weight: 600; }
.plot .guide { stroke: var(--muted); stroke-width: 1; }
.plot .dot { stroke: var(--surface); stroke-width: 2; }
.plot .bar.dim { opacity: .5; }
.plot .c1 { stroke: var(--c1); } .plot .area.c1, .plot .dot.c1 { fill: var(--c1); }
.plot .c2 { stroke: var(--c2); } .plot .area.c2, .plot .dot.c2 { fill: var(--c2); }
.plot .c3 { stroke: var(--c3); } .plot .area.c3, .plot .dot.c3 { fill: var(--c3); }
.plot .bar.bull { fill: var(--bull); } .plot .bar.bear { fill: var(--bear); }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 8px 10px; font-size: .82rem; line-height: 1.45; box-shadow: 0 4px 14px rgba(0,0,0,.12); white-space: nowrap; z-index: 2; }
.tip strong { display: block; margin-bottom: 2px; }
.tip b { font-weight: 650; font-variant-numeric: tabular-nums; margin-left: 4px; }
.k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k.c1 { background: var(--c1); height: 3px; vertical-align: 3px; border-radius: 2px; }
.k.c2 { background: var(--c2); height: 3px; vertical-align: 3px; border-radius: 2px; }
.k.c3 { background: var(--c3); height: 3px; vertical-align: 3px; border-radius: 2px; }
.k.ref { height: 0; border-top: 2px dashed var(--muted); border-radius: 0; vertical-align: 3px; }
.k.band { background: color-mix(in srgb, var(--muted) 28%, transparent); }
.k.bull { background: var(--bull); } .k.bear { background: var(--bear); }
.prose.fund .glance { margin: 8px 0 12px; }
.prose.fund .glance table { min-width: 560px; }

/* Learn: volume profile guide */
.prose > .toc, .prose > .lede, .prose > .glossary { max-width: none; }
.prose > .toc { margin: 0 0 8px; font-family: var(--sans); }
.prose .aside { font-family: var(--sans); font-size: .95rem; color: var(--muted); border-left: 3px solid var(--rule); padding-left: 14px; }
.prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
figure.diagram { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 18px 14px; font-family: var(--sans); }
figure.diagram > svg { max-width: 560px; margin-inline: auto; }
figure.diagram p { font-size: .88rem; line-height: 1.45; color: var(--muted); margin: 6px 0 0; }
figure.diagram p strong { color: var(--ink); }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 18px; }
.shape-grid svg { max-width: 150px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.triple svg { max-width: 200px; }
@media (max-width: 640px) { .pair, .triple { grid-template-columns: 1fr; } .triple svg { max-width: 220px; } }
.vp-fig { display: block; width: 100%; height: auto; font-family: var(--sans); overflow: visible; }
.vp-fig .out { fill: color-mix(in srgb, var(--muted) 38%, transparent); }
.vp-fig .va { fill: color-mix(in srgb, var(--c2) 78%, transparent); }
.vp-fig .poc { fill: var(--bronze); }
.vp-fig .band { fill: color-mix(in srgb, var(--c2) 9%, transparent); }
.vp-fig .phase { fill: color-mix(in srgb, var(--muted) 8%, transparent); }
.vp-fig text { fill: var(--muted); font-size: 12px; }
.vp-fig .ax { text-anchor: end; font-variant-numeric: tabular-nums; }
.vp-fig .mid { text-anchor: middle; }
.vp-fig .lbl { fill: var(--ink); font-size: 14px; font-weight: 700; }
.vp-fig .lbl.hot { fill: var(--bronze); }
.vp-fig .lbl.good { fill: var(--bull); }
.vp-fig .lbl.bad { fill: var(--bear); }
.vp-fig .lead, .vp-fig .grid { stroke: var(--rule); stroke-width: 1; }
.vp-fig .rng { stroke: var(--muted); stroke-width: 2; }
.vp-fig .vabox { fill: color-mix(in srgb, var(--c2) 22%, transparent); stroke: var(--c2); stroke-width: 1.2; }
.vp-fig .pocl { stroke: var(--bronze); stroke-width: 2.5; }
.vp-fig .lvl { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.vp-fig .path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.vp-fig .openl { stroke: var(--bronze); stroke-width: 1.2; stroke-dasharray: 4 3; }
.vp-fig .open { fill: var(--bronze); }
.glossary { font-family: var(--sans); font-size: 1rem; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 1.6em; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .glossary { grid-template-columns: 1fr; gap: 2px; } .glossary dd { margin-bottom: 10px; } }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.quad svg { max-width: 150px; }
@media (max-width: 760px) { .quad { grid-template-columns: 1fr 1fr; } }
.vp-fig .wick { stroke: var(--muted); stroke-width: 1.5; }
.vp-fig .body.up { fill: var(--bull); }
.vp-fig .body.dn { fill: var(--bear); }
.vp-fig .vol { fill: color-mix(in srgb, var(--muted) 55%, transparent); }
.vp-fig .vol.hot { fill: var(--bronze); }
.vp-fig .vol.cool { fill: color-mix(in srgb, var(--muted) 25%, transparent); }
.vp-fig .arrow { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Home hero backdrop: a faded North Sea platform */
.hero-scene { position: relative; isolation: isolate; overflow: hidden; }
.hero-scene .scene {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  color: var(--ink); opacity: .07;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 80%, transparent 100%);
}
.hero-scene .scene svg { display: block; width: 100%; height: 100%; }
.hero-scene .hero-text h1, .hero-scene .hero-text .lede { text-shadow: 0 0 18px var(--paper); }
.hero-scene .board { background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }

/* Bias pills on post cards */
.pill { display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 650; line-height: 1.5; }
.pill.bull { color: var(--bull); background: var(--bull-wash); }
.pill.bear { color: var(--bear); background: var(--bear-wash); }
.pill.flat { color: var(--ink); background: color-mix(in srgb, var(--muted) 18%, transparent); }

/* Post cards: a panel with an edge coloured by type */
.items { display: grid; gap: 14px; margin-top: 18px; }
.item { padding: 18px 20px 20px; border: 1px solid var(--rule); border-left: 3px solid var(--muted); border-radius: 6px;
        background: var(--surface); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.item.weekly { border-left-color: var(--bronze); }
.item.idea { border-left-color: var(--bull); }
.item.daily { border-left-color: var(--c2); }
.type.daily { color: var(--c2); }
.item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); border-top-color: var(--muted); border-right-color: var(--muted); border-bottom-color: var(--muted); }
.item-meta { flex-wrap: wrap; align-items: center; }
.listing .items { border-top: 0; }
.streams { padding-top: 40px; }

/* Side art: faded barrels and candles in the page margins */
.side-art { display: none; }
@media (min-width: 1400px) {
  .side-art { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
  .side-art .side { position: absolute; top: 120px; bottom: 40px; width: min(190px, calc((100vw - var(--wrap)) / 2 - 24px));
                    display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
  .side-art .l { left: 16px; }
  .side-art .r { right: 16px; }
  .side-art svg { display: block; width: 100%; height: auto; overflow: visible; }
  .side-art .candles { opacity: .35; --candle-grey: #9AA1AE; }
  .side-art .candles .up { fill: var(--c2); stroke: var(--c2); }
  .side-art .candles .dn { fill: var(--candle-grey); stroke: var(--candle-grey); }
  .side-art .candles line { stroke-width: 1.5; }
  .side-art .barrels { opacity: .14; fill: var(--paper); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
  .side-art .barrels .cap { fill: var(--ink); stroke: none; }
  .side-art .barrels .rib { fill: none; }
}
@media (min-width: 1400px) and (prefers-color-scheme: dark) { .side-art .candles { --candle-grey: #D3D7DE; } }

/* Contact page */
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 1em 0 1.4em; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); font-family: var(--sans); }
.contact-email { font-weight: 700; font-size: 1.3rem; overflow-wrap: anywhere; user-select: all; }
.copy-btn { font: 600 .9rem var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.copy-btn:hover { border-color: var(--bronze); color: var(--bronze); }

/* Home: board source line, compact cards, "all" links */
.board-src { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.board-src a { color: var(--ink); font-weight: 600; }
.items.compact .item-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.streams .all { margin: 16px 0 0; font-weight: 600; font-size: .95rem; }
.streams .all a { text-decoration: none; }
.streams .all a::after { content: " →"; }

/* Release strip: the week's US oil data, in the reader's time zone */
.desk { border-bottom: 1px solid var(--rule); background: var(--surface); font-size: .86rem; }
.desk-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 44px; }
.cal { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.cal li { flex: none; }
.cal li + li { border-left: 1px solid var(--rule); }
.cal a, .cal li > span { display: flex; align-items: baseline; gap: 6px; padding: 11px 14px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.cal li:first-child a, .cal li:first-child > span { padding-left: 0; }
.cal b { font-weight: 600; color: var(--ink); }
.cal a:hover b { color: var(--bronze); }
.cal .state:empty { display: none; }
.cal .out b { color: var(--muted); font-weight: 500; }
.cal .out .state { color: var(--muted); }
.cal .fresh .state { color: var(--bull); font-weight: 700; }
.cal .next { box-shadow: inset 0 -2px 0 var(--bronze); }
.cal .next b { color: var(--bronze); }
.cal .next .state { background: var(--bronze); color: #fff; font-weight: 700; padding: 1px 7px; border-radius: 3px; font-stretch: 88%; }
@media (prefers-color-scheme: dark) { .cal .next .state { color: #1A1E27; } }
.desk-side { margin: 0; white-space: nowrap; display: flex; gap: 16px; align-items: baseline; color: var(--muted); }
.desk-side a { font-weight: 600; text-decoration: none; color: var(--ink); }
@media (max-width: 900px) {
  .desk-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .desk-side { padding: 0 0 10px; justify-content: space-between; }
  .cal { margin-right: -16px; }
}

/* Home: stocks and positioning */
.tape { padding-block: 8px 24px; }
.tape-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.tape-head h2 { font-stretch: 85%; font-size: 1.6rem; font-weight: 800; }
.tape-head h2 a { text-decoration: none; }
.tape-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.tape-link { display: block; text-decoration: none; color: inherit; }
.tape-link .stats.fund { margin: 14px 0 0; }
.tape-link:hover .stats { border-color: var(--bronze); }
.tape-link:hover { color: inherit; }
.score { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.score strong { font-weight: 800; font-stretch: 88%; font-size: 1.15rem; margin-right: 4px; }

/* Post: keep reading */
.more { max-width: 860px; padding-block: 8px 32px; }
.more h2 { font-stretch: 82%; font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .more ul { grid-template-columns: 1fr; } }
.more a { display: block; height: 100%; padding: 14px 18px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; }
.more a:hover { border-color: var(--bronze); color: inherit; }
.more span { display: block; color: var(--bronze); font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.more b { font-stretch: 88%; font-weight: 700; font-size: 1.08rem; line-height: 1.25; }

.feed-note { font-size: .9rem; color: var(--muted, inherit); border-left: 3px solid var(--bronze); padding: 4px 12px; margin-top: 12px; }
