/* ==========================================================================
   Strategy ATM dashboard styles
   Extracted from inline <style> blocks in index.html
   ========================================================================== */

:root { color-scheme: dark; }
body {
  margin: 0; padding: 28px 24px 64px;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #E8E8E8; background: #07090B;
}
header { max-width: 1400px; margin: 0 auto 24px; }
h1 { margin: 0 0 4px; font-size: 24px; font-weight: 600; color: #FFF; letter-spacing: -0.01em; }
.sub { color: #8A8F99; font-size: 13px; }

.block {
  box-sizing: border-box;
  max-width: 1400px; margin: 0 auto 28px;
  border: 1px solid #22262C; border-radius: 12px;
  padding: 22px 26px;
}
.block.forecast {
  background: linear-gradient(180deg, #1A1410 0%, #0E1115 100%);
  border-color: #3A2411;
  box-shadow: 0 2px 10px rgba(247,147,26,0.05);
}
.block.recap { background: linear-gradient(180deg, #15181D 0%, #0E1115 100%); }
.block.callout {
  background: #140E0E; border-color: #3A2020;
  padding: 16px 22px;
}

.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700;
}
.eyebrow.forecast { color: #F7931A; }
.eyebrow.recap { color: #8A8F99; }
.eyebrow.callout { color: #FF5A5F; }
.week { font-size: 20px; font-weight: 600; color: #FFF; }
.week-meta { color: #8A8F99; font-weight: 400; font-size: 14px; margin-left: 10px; }

.big-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  padding: 10px 0 20px; border-bottom: 1px solid #1A1E24; margin-bottom: 20px;
}
.big-stat .k { color: #8A8F99; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.big-stat .v { color: #FFF; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.big-stat .v.orange { color: #F7931A; }
.big-stat .s { color: #8A8F99; font-size: 12px; margin-top: 2px; }

.cards { display: grid; grid-template-columns: 1.3fr 1.3fr 0.8fr 0.8fr 0.8fr; gap: 14px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #0B0D10; border: 1px solid #22262C; border-radius: 8px; padding: 14px 16px;
}
.card-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; justify-content: space-between; }
.card-head .sym { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.card-head .spark-tag { position: static; background: transparent; padding: 0; }
.card-eyebrow { font-size: 9px; letter-spacing: 0.10em; text-transform: uppercase;
    color: #8A8F99; font-weight: 700; margin-top: 8px; margin-bottom: 2px; }
.card-main-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-main { font-size: 22px; font-weight: 600; color: #FFF; letter-spacing: -0.01em; }
.card-btc { font-size: 11px; color: #F7931A; font-weight: 600; letter-spacing: 0.01em; }
.card-sub { font-size: 11px; color: #8A8F99; margin-top: 2px; }
.next-div-line { font-size: 10px; color: #8A8F99; margin: 4px 0 6px; letter-spacing: 0.01em; }
.next-div-line .ndl-est { color: #6A707A; }
.bar-bg { height: 4px; background: #1A1E24; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; }
.card-share { font-size: 10px; color: #8A8F99; margin-top: 4px; letter-spacing: 0.04em; }

.pace { margin-top: 18px; }
.pace h3 { color: #E8E8E8; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.pace table { border-collapse: collapse; font-size: 12px; width: 100%; }
.pace th, .pace td { padding: 6px 10px; text-align: right; border-bottom: 1px solid #1A1E24; }
.pace th:first-child, .pace td:first-child { text-align: left; color: #8A8F99; }
.pace th { color: #8A8F99; font-weight: 500; border-bottom: 1px solid #22262C; }
.pace strong { color: #F7931A; }

.callout-body { font-size: 13px; line-height: 1.55; color: #D6D6D6; }
.callout-body strong { color: #FF5A5F; }

.stack { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.tile {
  margin: 0; background: #0B0D10; border: 1px solid #22262C; border-radius: 10px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.tile img { width: 100%; display: block; }
.tile figcaption { padding: 14px 20px 12px; border-bottom: 1px solid #1A1E24; background: #111418; }
.tile figcaption.below { /* no-op: captions are always above images now */ border-bottom: 1px solid #1A1E24; }
.tile h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #FFF; }
.tile p { margin: 0; color: #8A8F99; font-size: 13px; line-height: 1.45; }

/* Collapsible block (for Last announcement + charts wrapper) */
details.collapsible-block { padding: 0; }
details.collapsible-block > summary { list-style: none; cursor: pointer; user-select: none;
  padding: 10px 22px; display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: space-between; margin-bottom: 0; }
details.collapsible-block > summary::-webkit-details-marker { display: none; }
details.collapsible-block > summary::before { content: "\25B8"; color: #6A7080;
  font-size: 14px; transition: transform 0.18s ease; margin-right: 6px; }
details.collapsible-block[open] > summary::before { transform: rotate(90deg); }
details.collapsible-block > summary:hover { background: rgba(255,255,255,0.02); }
details.collapsible-block .recap-row { margin-top: 0; }
details.collapsible-block[open] .recap-row { border-top: 1px solid #1A1E24; }
details.collapsible-block .recap-cell { padding: 10px 18px; }
details.collapsible-block .rc-k { margin-bottom: 4px; }
details.collapsible-block .rc-v { font-size: 22px; }

details.stack-details { max-width: 1400px; margin: 0 auto 28px; }
details.stack-details > summary { list-style: none; cursor: pointer; user-select: none;
  padding: 16px 22px; background: #0F1216; border: 1px solid #22262C; border-radius: 12px;
  color: #E4E7EC; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; }
details.stack-details > summary::-webkit-details-marker { display: none; }
details.stack-details > summary::before { content: "\25B8"; color: #6A7080; font-size: 14px;
  transition: transform 0.18s ease; }
details.stack-details[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
details.stack-details[open] > summary::before { transform: rotate(90deg); }
details.stack-details > summary:hover { background: #141820; color: #FFF; }
details.stack-details > summary .charts-hint { color:#6A7080; font-size:11px; letter-spacing:0.04em; text-transform:none; margin-left:auto; }

/* === ATM charts section === */
.atm-charts-section { max-width: 1400px; margin: 28px auto; padding: 0 4px; background: transparent; border: none; }
.atm-charts-section .atm-charts-head { margin-bottom: 14px; }

.atm-charts-body { display: flex; flex-direction: column; gap: 28px;
    padding: 0; background: transparent; border: none; }

.atm-chart-card { background: #0B0D10; border: 1px solid #22262C; border-radius: 10px;
    padding: 18px 20px 16px; }
.atm-chart-head h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: #FFF; }
.atm-chart-head .atm-chart-sub { margin: 0 0 14px; color: #8A8F99; font-size: 13px; line-height: 1.45; }

.atm-chart-controls { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.atm-pill-group { display: inline-flex; background: #141820; border: 1px solid #22262C;
    border-radius: 999px; overflow: hidden; }
.atm-pill { font: inherit; border: 0; background: transparent; color: #8A8F99;
    padding: 5px 12px; font-size: 12px; letter-spacing: 0.04em; cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease; }
.atm-pill:hover { color: #E4E7EC; }
.atm-pill.on { background: #1F2530; color: #FFF; }
.atm-pill + .atm-pill { border-left: 1px solid #22262C; }

.atm-chart-wrap { position: relative; width: 100%; }
.atm-chart { width: 100%; height: auto; display: block; }
.atm-chart .grid-line { stroke: #22262C; stroke-width: 0.75; stroke-dasharray: 2 3; }
.atm-chart .axis-line { stroke: #22262C; stroke-width: 1; }
.atm-chart .x-tick-label, .atm-chart .y-tick-label { fill: #8A8F99; font-size: 10.5px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.atm-chart .series-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.atm-chart .bar-rect { shape-rendering: crispEdges; }
.atm-chart .legend-swatch { stroke-width: 0; }
.atm-chart .legend-text { fill: #E4E7EC; font-size: 11px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.atm-tooltip { position: absolute; pointer-events: none; display: none;
    background: rgba(20, 24, 32, 0.96); border: 1px solid #2A3140; border-radius: 6px;
    padding: 6px 10px; font-size: 11.5px; color: #E4E7EC;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5); min-width: 110px; z-index: 10; }
.atm-tooltip .atm-tt-date { font-weight: 600; color: #FFF; margin-bottom: 4px; font-size: 11px; }
.atm-tooltip .atm-tt-row { display: flex; justify-content: space-between; gap: 14px; line-height: 1.5; }
.atm-tooltip .atm-tt-tk { color: #8A8F99; }
.atm-tooltip .atm-tt-val { font-variant-numeric: tabular-nums; }

@media (max-width: 720px){
  .atm-chart-controls { gap: 8px; }
  .atm-pill { padding: 4px 9px; font-size: 11px; }
}

/* Sparkline hover popup */
.spark-wrap .spark-tip { position: absolute; display: none; z-index: 5; pointer-events: none;
  background: rgba(15,18,22,0.97); color: #E8E8E8; border: 1px solid #22262C;
  border-radius: 6px; padding: 6px 9px; font-size: 11px; line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.spark-wrap .spark-tip .d { color: #8A8F99; font-size: 10px; letter-spacing: 0.04em; }
.spark-wrap .spark-tip .p { color: #FFF; font-weight: 600; }
.spark-wrap svg.spark { cursor: crosshair; }
.spark-wrap .spark-cursor { position: absolute; top: 0; bottom: 18px; width: 1px;
  background: rgba(232,232,232,0.4); pointer-events: none; display: none; }

/* Lookback window toggle */
.window-toggle { display:flex; align-items:center; gap:10px; margin:0 0 18px; padding: 8px 12px; background: #0B0D10; border: 1px solid #22262C; border-radius: 8px; width: fit-content; }
.window-label { font-size:11px; letter-spacing:0.12em; color:#8A8F99; text-transform:uppercase; margin-right:4px; }
.lb-btn { background: transparent; color: #8A8F99; border: 1px solid transparent; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; transition: all 0.15s; }
.lb-btn:hover { color: #E8E8E8; border-color: #22262C; }
.lb-btn.active { background: #F7931A; color: #0B0D10; border-color: #F7931A; }

.spark-wrap { margin: 2px 0 8px; position: relative; }
.spark-wrap svg.spark { display:block; }
.spark-tag {
  position: absolute; top: -2px; right: 0;
  font-size: 10px; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(11,13,16,0.65); padding: 1px 4px; border-radius: 3px;
}
.spark-arrow { font-size: 9px; }
.spark-pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.spark-win { color: #8A8F99; margin-left: 2px; font-weight: 400; }

.recap-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border-top: 1px solid #1A1E24; border-bottom: 1px solid #1A1E24;
  margin-top: 4px; }
.recap-cell { padding: 14px 12px; border-right: 1px solid #1A1E24; text-align: center; min-width: 0; }
.recap-cell:last-child { border-right: none; }
.rc-k { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8A8F99; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-v { font-size: 22px; font-weight: 600; color: #FFF; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-v.orange { color: #F7931A; }
.rc-s { font-size: 10px; color: #8A8F99; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1200px) {
  .recap-row { grid-template-columns: repeat(3, 1fr); }
  .recap-cell:nth-child(3n) { border-right: none; }
  .recap-cell:nth-child(n+4) { border-top: 1px solid #1A1E24; }
}
@media (max-width: 700px) {
  .recap-row { grid-template-columns: repeat(2, 1fr); }
  .recap-cell { border-right: none; border-bottom: 1px solid #1A1E24; }
}

/* toggle row + stronger active state */
.controls-row { display:flex; flex-wrap:wrap; align-items:center; gap:28px;
  padding:10px 14px; margin-bottom:14px;
  background:#0F1216; border:1px solid #1A1E24; border-radius:8px; }
.ctrl { display:flex; align-items:center; gap:10px; }
.ctrl-label { font-size:11px; letter-spacing:0.12em; color:#8A8F99; }
.pills { display:inline-flex; background:#15181D; border:1px solid #1A1E24; border-radius:6px; padding:2px; }
.pill { background:transparent; color:#8A8F99; border:1px solid transparent;
  border-radius:4px; padding:4px 12px; font-size:11px; letter-spacing:0.05em;
  cursor:pointer; font-family:inherit; font-weight:500; transition:all 120ms; }
.pill:hover { color:#E8E8E8; }
.pill.on.lb-btn { background:#F7931A; color:#0B0D10; border-color:#F7931A;
  box-shadow:0 0 0 1px rgba(247,147,26,0.35), 0 2px 10px rgba(247,147,26,0.25); font-weight:700; }
.pill.on.gr-btn { background:#2DD4BF; color:#0B0D10; border-color:#2DD4BF;
  box-shadow:0 0 0 1px rgba(76,195,138,0.35), 0 2px 10px rgba(76,195,138,0.25); font-weight:700; }

.plot-wrap { position:relative; }
.plot-wrap img { display:block; width:100%; height:auto; }
.plot-wrap .live-svg { width: 100%; aspect-ratio: 3 / 1; min-height: 240px; position: relative; display: block; }
.plot-wrap .live-svg svg { display: block; width: 100%; height: 100%; }
.plot-wrap .hit { position:absolute; cursor:crosshair;
  left:7.5%; right:6.5%; top:12%; bottom:14%; z-index:2; }
.tile[data-layout="grid"] .plot-wrap .hit {
  left:5.5%; right:5.5%; top:7%; bottom:7%; }
.plot-wrap .xhair { position:absolute; top:12%; bottom:14%;
  width:1px; background:rgba(232,232,232,0.55); pointer-events:none;
  box-shadow:0 0 6px rgba(247,147,26,0.5);
  display:none; z-index:3; }
.tile[data-layout="grid"] .plot-wrap .xhair { top:7%; bottom:7%; }
.plot-wrap .tt {
  position:absolute; display:none; z-index:4; pointer-events:none;
  background:rgba(15,18,22,0.96); color:#E8E8E8;
  border:1px solid #22262C; border-radius:6px;
  padding:8px 10px; font-size:11px; line-height:1.5;
  box-shadow:0 6px 24px rgba(0,0,0,0.45); min-width:130px; }
.tt-date { font-weight:700; color:#FFF; letter-spacing:0.04em;
  border-bottom:1px solid #22262C; padding-bottom:4px; margin-bottom:4px; }
.tt-table { border-collapse:collapse; font-variant-numeric:tabular-nums;
  font-size:11px; }
.tt-table td { padding:1px 6px 1px 0; white-space:nowrap; }
.tt-table td.tt-v { text-align:right; }
.tt-table tr.tt-sep td { border-top:1px solid #22262C; padding-top:3px; }
.tt-table tr.tt-head td { color:#8A8F99; font-size:9px; letter-spacing:0.06em;
  text-transform:uppercase; padding-top:4px; }

/* === Ticker hover tooltips === */
.tt-tkr { position: relative; cursor: help; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: rgba(255,255,255,0.18); text-underline-offset: 3px; }
.tt-tkr::after {
  content: attr(data-tt);
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: #13161C; border: 1px solid #2A2F36; color: #D6D6D6;
  padding: 9px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 400; letter-spacing: 0;
  white-space: normal; width: 220px; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.14s ease 0.06s;
  z-index: 100; text-transform: none; text-align: left;
}
.tt-tkr::before {
  content: ''; position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #2A2F36;
  opacity: 0; transition: opacity 0.14s ease 0.06s; z-index: 100;
}
.tt-tkr:hover::after, .tt-tkr:hover::before { opacity: 1; }
/* When ticker is near the top of a container, flip tooltip below */
.tt-tkr.tt-below::after { bottom: auto; top: calc(100% + 10px); }
.tt-tkr.tt-below::before { bottom: auto; top: calc(100% + 4px); border-top-color: transparent; border-bottom-color: #2A2F36; }

/* === Pace-details twistie === */
details.pace-details > summary { list-style: none; position: relative; }
details.pace-details > summary::-webkit-details-marker { display: none; }
details.pace-details > summary::before { content: "\25B8"; display: inline-block;
  color: #6A7080; font-size: 11px; margin-right: 6px;
  transition: transform 0.18s ease; }
details.pace-details[open] > summary::before { transform: rotate(90deg); }
details.pace-details > summary:hover::before { color: #B8BEC6; }

/* === Mobile responsive overrides (<=768px) === */
@media (max-width: 768px) {
  body { padding: 12px 10px; }
  header { margin-bottom: 16px; }
  header h1 { font-size: 22px; line-height: 1.25; }
  header .sub { font-size: 13px; }

  /* Hero stack */
  .hero-row { grid-template-columns: 1fr !important; gap: 20px !important; padding: 6px 0 14px !important; }
  .hero-left > div[style*="font-size:64px"] { font-size: 44px !important; }
  .hero-left > div[style*="font-size:16px"] { font-size: 13px !important; }
  .hero-right { grid-template-columns: 1fr !important; gap: 12px !important; }
  .hero-right > div > div[style*="font-size:40px"] { font-size: 32px !important; }

  /* Header chips wrap and shrink */
  .block-head .week { display: block; line-height: 1.5; }
  .last-announce-chip, .next-8k-chip {
    display: inline-block; margin-left: 0 !important; margin-top: 8px !important;
    font-size: 10px !important; padding: 3px 8px !important;
  }

  /* Cards — single column on phones */
  .cards { grid-template-columns: 1fr !important; gap: 10px !important; }
  .card { padding: 12px 14px; }
  .card-main { font-size: 26px !important; }

  /* Recap cells — 2 per row */
  .recap-row { grid-template-columns: repeat(2, 1fr) !important; gap: 12px 8px !important; }
  .recap-cell { padding: 10px 8px !important; }
  .rc-v { font-size: 18px !important; }

  /* Story callouts — tighter padding */
  .this-week-story, .last-week-story { padding: 12px 14px !important; font-size: 12.5px !important; }

  /* ATM charts — full-width single column, smaller */
  .atm-charts-section { padding: 0 0 !important; }
  .atm-chart-card { padding: 12px 12px 10px !important; }
  .atm-chart-head h3 { font-size: 17px !important; }
  .atm-chart-head .atm-chart-sub { font-size: 12px !important; margin-bottom: 10px !important; }
  .atm-chart-controls { flex-wrap: wrap; gap: 6px !important; }
  .atm-chart { height: 260px !important; }

  /* Yield section stacks */
  .eyield-section { padding: 14px 14px 12px !important; max-width: 100% !important; }
  .eyield-section .eys-head { flex-direction: column; gap: 10px; }

  /* Footer */
  footer { padding: 16px 12px !important; margin: 24px 0 !important; }

  /* How each ATM works */
  .algo-row { flex-direction: column !important; gap: 6px !important; }
  .algo-p { font-size: 12.5px !important; }
}

/* Small phones (<=420px) — tighter still */
@media (max-width: 420px) {
  header h1 { font-size: 18px; }
  .hero-left > div[style*="font-size:64px"] { font-size: 36px !important; }
  .recap-row { grid-template-columns: 1fr !important; }
  .card-main { font-size: 22px !important; }
  .atm-chart { height: 220px !important; }
}

/* === Share bar (top-right of forecast block) === */
.block.forecast { position: relative; }
.share-bar { position: absolute; top: 18px; right: 22px; z-index: 5;
  display: flex; align-items: center; gap: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  background: rgba(247,147,26,0.10); border: 1px solid rgba(247,147,26,0.32);
  border-radius: 999px; color: #F7931A; font-size: 11px; letter-spacing: 0.06em;
  font-weight: 700; text-transform: uppercase; cursor: pointer; user-select: none;
  text-decoration: none; transition: all 0.15s; font-family: inherit; }
.share-btn:hover { background: rgba(247,147,26,0.20); border-color: rgba(247,147,26,0.55); color: #FFFFFF; }
.share-btn svg { width: 12px; height: 12px; fill: currentColor; }
.share-toast { position: fixed; top: 24px; right: 24px; padding: 10px 16px;
  background: #0F1216; border: 1px solid #22262C; border-radius: 8px; color: #E8E8E8;
  font-size: 12px; letter-spacing: 0.04em; z-index: 9999; opacity: 0;
  transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.share-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .share-bar { position: static; margin: 0 0 14px; justify-content: flex-end; top: auto; right: auto; }
}

/* === Yield section (legacy, hidden — superseded by combined chart) === */
.yield-section { display: none; }
.yield-section .ys-head { margin-bottom: 12px; }
.yield-section .ys-title { margin: 0; color: #E8E8E8; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.yield-section .ys-sub { color: #8A8F99; font-size: 12px; margin-top: 2px; }
.yield-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .yield-cards { grid-template-columns: repeat(2, 1fr); } }
.yield-card { background: #0B0D10; border: 1px solid #22262C; border-radius: 8px; padding: 12px 14px 14px; }
.yield-card .yc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.yield-card .yc-ticker { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }
.yield-card .yc-yield { font-size: 20px; font-weight: 600; color: #FFF; letter-spacing: -0.01em; }
.yield-card .yc-sub { font-size: 11px; color: #8A8F99; margin-bottom: 8px; }
.yield-card .yc-chg { color: #B8BEC6; }
.yield-card .yc-chg.up { color: #E8C766; }
.yield-card .yc-chg.down { color: #6EC69A; }
.yield-card .yc-spark-wrap { width: 100%; line-height: 0; }
.yield-card .yc-spark-wrap svg.yspark { display: block; width: 100%; height: 40px; }
.yield-card .yc-range { font-size: 10px; color: #6A707A; margin-top: 6px; letter-spacing: 0.01em; }

/* === Algo explainer (How each ATM works) === */
details.algo-explainer .algo-body { padding: 4px 22px 18px; }
details.algo-explainer .algo-row { padding: 14px 0; border-top: 1px solid #1A1E24; }
details.algo-explainer .algo-row:first-child { border-top: none; }
details.algo-explainer .algo-head { margin-bottom: 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
details.algo-explainer .algo-tk { font-weight: 700; font-size: 14px; letter-spacing: 0.1em; }
details.algo-explainer .algo-sub { color: #8A8F99; font-size: 11px; letter-spacing: 0.04em; text-transform: none; }
details.algo-explainer .algo-p { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: #C8CDD6; }
details.algo-explainer .algo-p em { color: #E8E8E8; font-style: normal; font-weight: 600; }

/* === Detail dropdown (legacy) === */
.detail-dropdown { background: #0B0D10; border: 1px solid #22262C; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4); overflow: hidden; }
.detail-dropdown > summary { list-style: none; cursor: pointer; padding: 14px 18px;
  background: #0F1216; color: #E4E7EC; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; border-bottom: 1px solid #1A1E24;
  display: flex; align-items: center; gap: 10px; user-select: none; }
.detail-dropdown > summary::-webkit-details-marker { display: none; }
.detail-dropdown > summary::before { content: "\25B8"; display: inline-block;
  transition: transform 0.18s ease; color: #6A7080; font-size: 14px; }
.detail-dropdown[open] > summary::before { transform: rotate(90deg); }
.detail-dropdown > summary:hover { background: #141820; color: #FFF; }
.detail-dropdown > summary .summary-count { color: #6A7080; font-size: 11px;
  letter-spacing: 0.04em; margin-left: 8px; text-transform: none; }
.detail-dropdown .detail-grid { display: flex; flex-direction: column; gap: 18px; padding: 18px; }
.detail-dropdown .tile { border: 1px solid #1A1E24; }

/* === Effective Yield section === */
.eyield-section { box-sizing: border-box; max-width: 1400px; margin: 28px auto; padding: 22px 26px 20px; background: #0B0D10; border: 1px solid #22262C; border-radius: 12px; }
.eyield-section .eys-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.eyield-section .eys-titlewrap h3 { margin: 0; color: #FFF; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.eyield-section .eys-titlewrap p { margin: 4px 0 0; color: #8A8F99; font-size: 13px; }
.eyield-section .eys-pills { display: flex; gap: 4px; padding: 4px; background: #0E1116; border: 1px solid #22262C; border-radius: 7px; }
.eyield-section .eys-pill { background: transparent; border: none; color: #8A8F99; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 6px 14px; border-radius: 5px; cursor: pointer; font-family: inherit; }
.eyield-section .eys-pill:hover { color: #E8E8E8; }
.eyield-section .eys-pill.on { background: #3B82F6; color: #FFF; }
.eyield-section .eys-chart-wrap { width: 100%; overflow: visible; position: relative; }
.eyield-section .eys-tooltip { position: absolute; display: none; background: rgba(14,17,22,0.96); border: 1px solid #22262C; border-radius: 6px; padding: 8px 10px; font-size: 12px; color: #E8E8E8; pointer-events: none; min-width: 120px; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,0.45); }
.eyield-section .eys-tt-date { color: #8A8F99; font-size: 11px; margin-bottom: 6px; border-bottom: 1px solid #22262C; padding-bottom: 4px; }
.eyield-section .eys-tt-row { display: flex; justify-content: space-between; gap: 12px; line-height: 1.65; }
.eyield-section .eys-tt-row .tt-tk { font-weight: 600; }
.eyield-section .eys-tt-row .tt-val { color: #E8E8E8; font-variant-numeric: tabular-nums; }
.eyield-section svg.eys-chart { display: block; width: 100%; height: auto; }
.eyield-section .eys-chart .grid-line { stroke: #1A1E24; stroke-width: 1; }
.eyield-section .eys-chart .y-tick-label { fill: #8A8F99; font-size: 11px; font-family: inherit; }
.eyield-section .eys-chart .x-tick-label { fill: #8A8F99; font-size: 11px; font-family: inherit; }
.eyield-section .eys-chart .yield-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.eyield-section .eys-chart .end-label-bg { fill: #0B0D10; stroke: #22262C; stroke-width: 1; }
.eyield-section .eys-chart .end-label-txt { fill: #E8E8E8; font-size: 11px; font-family: inherit; font-weight: 600; }
.eyield-section .eys-formula { margin-top: 10px; font-size: 11px; color: #6A707A; letter-spacing: 0.01em; }
.eyield-section .eys-legend { margin-top: 14px; border-top: 1px solid #1A1E24; padding-top: 12px; }
.eyield-section .eys-legend table { border-collapse: collapse; width: 100%; font-size: 12px; }
.eyield-section .eys-legend th, .eyield-section .eys-legend td { padding: 8px 12px; text-align: right; border-bottom: 1px solid #1A1E24; }
.eyield-section .eys-legend th:first-child, .eyield-section .eys-legend td:first-child { text-align: left; }
.eyield-section .eys-legend th { color: #8A8F99; font-weight: 600; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.eyield-section .eys-legend td { color: #E8E8E8; }
.eyield-section .eys-legend .lg-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.eyield-section .eys-legend .lg-tk { font-weight: 700; vertical-align: middle; }
