/* Accumulation strategy page (#accumulationSection), ported from the strategies replica. Colours come from the dashboard tokens (--panel, --gold, --line, --text...), which the light theme already flips. */
/* ---- card base: gold contour + corner ticks ---- */
#accumulationSection .st-card, #accumulationSection .st-method, #accumulationSection .st-table-wrap, #accumulationSection .st-chart-wrap {
  background: var(--ticks), var(--panel); border: 1px solid var(--contour-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-contour);
}

/* ---- method ---- */
#accumulationSection .st-method { margin-top: 18px; padding: 0; }
#accumulationSection .st-method summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; color: var(--text-dim); font-size: 14px; list-style: none; }
#accumulationSection .st-method summary::-webkit-details-marker { display: none; }
#accumulationSection .st-method summary b { color: var(--text); font-weight: 400; font-family: var(--font-title); letter-spacing: .02em; }
#accumulationSection .st-chev { color: var(--gold); white-space: nowrap; font-size: 13px; }
#accumulationSection .st-method[open] .st-chev { visibility: hidden; }
#accumulationSection .st-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 20px; }
#accumulationSection .st-method h3 { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; font-size: 14px; color: var(--text); }
#accumulationSection .st-method ul, #accumulationSection .st-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
#accumulationSection .st-method > .st-warn { margin: 16px 20px 20px; }
#accumulationSection .st-warn { background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--contour-line); border-radius: var(--radius-lg); padding: 10px 14px; font-size: 14px; line-height: 1.5; }

/* ---- list ---- */
#accumulationSection .st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 18px 0; }
#accumulationSection .st-card { display: grid; gap: 12px; padding: 18px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
#accumulationSection a.st-card:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-contour), 0 0 22px rgba(var(--accent-rgb),.18); }
#accumulationSection .st-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
#accumulationSection .st-sym { font-family: var(--font-accent); font-size: 14px; color: var(--text); }
#accumulationSection .st-name { color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
#accumulationSection .st-badge { margin-left: auto; flex: none; white-space: nowrap; border: 1px solid; border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11.5px; letter-spacing: .02em; }
#accumulationSection .ph-in_zone { color: var(--gold); background: rgba(var(--accent-rgb),.12); } /* in_zone / reaccumulating / observation = three shades of the theme accent; waiting keeps its grey */
#accumulationSection .ph-near { color: #22d3ee; background: #22d3ee14; }
#accumulationSection .ph-accumulating { color: #fb923c; background: #fb923c0f; }
#accumulationSection .ph-reaccumulating { color: color-mix(in srgb, var(--gold) 45%, #fff); background: rgba(var(--accent-rgb),.08); }
#accumulationSection .ph-profits { color: #3ecf8e; background: #3ecf8e1a; }
#accumulationSection .ph-waiting, #accumulationSection .ph-unknown { color: var(--text-dim); }
#accumulationSection .ph-observation { color: color-mix(in srgb, var(--gold) 50%, var(--text-dim)); background: rgba(var(--accent-rgb),.06); }
#accumulationSection .st-price { font-size: 26px; letter-spacing: -.01em; color: var(--text); }
#accumulationSection .st-price small { color: var(--text-faint); font-size: 12px; }
#accumulationSection .st-ladder.empty { height: 0; }
#accumulationSection .st-next { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; font-size: 13px; }
#accumulationSection .st-next div { display: grid; gap: 1px; }
#accumulationSection .st-next dt { color: var(--text-faint); font-size: 11.5px; letter-spacing: .04em; }
#accumulationSection .st-next dd { margin: 0; }
#accumulationSection .neg { color: #f59e0b; }
#accumulationSection .pos { color: #3ecf8e; }
#accumulationSection .st-card-note { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
#accumulationSection .st-fine { color: var(--text-faint); margin: 14px 0; font-size: 12.5px; line-height: 1.5; max-width: 640px; }

/* ---- detail ---- */
#accumulationSection .st-detail { max-width: 980px; margin: 0 auto; }
#accumulationSection .st-back { display: inline-block; margin-bottom: 14px; font-size: 14px; text-decoration: none; }
#accumulationSection .st-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
#accumulationSection .st-detail-head h1 { font-size: 28px; }
#accumulationSection .st-detail-head h1 .st-sym { color: var(--text-faint); margin-left: 6px; font-size: 16px; }
#accumulationSection .st-detail-price { display: grid; justify-items: end; gap: 6px; }
#accumulationSection .st-detail-price strong { font-weight: 400; font-size: 30px; letter-spacing: -.01em; }
#accumulationSection .st-detail-price strong small { color: var(--text-faint); font-size: 13px; }
#accumulationSection .st-detail-price > small { color: var(--text-faint); font-size: 12px; }
#accumulationSection .st-detail-price .st-badge { margin-left: 0; }
#accumulationSection .st-intro { color: var(--text-dim); margin: 8px 0 16px; font-size: 15.5px; line-height: 1.6; }
#accumulationSection .st-chart-wrap { position: relative; margin: 16px 0 8px; overflow: hidden; padding: 0; }
#accumulationSection .st-chart { height: 460px; border-radius: var(--radius-lg); overflow: hidden; }
#accumulationSection .st-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; color: var(--text-faint); font-size: 12.5px; }
#accumulationSection .st-legend span { display: inline-flex; align-items: center; gap: 6px; }
#accumulationSection .st-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
#accumulationSection .st-legend i.dash { background: repeating-linear-gradient(90deg, var(--text-dim) 0 4px, transparent 4px 7px); }
#accumulationSection .st-legend i.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
#accumulationSection .st-table-wrap { overflow-x: auto; }
#accumulationSection .st-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
#accumulationSection .st-table th { text-align: left; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); padding: 10px 14px; font-size: 12px; font-weight: 400; }
#accumulationSection .st-table td { border-bottom: 1px solid var(--line-faint); vertical-align: top; padding: 10px 14px; }
#accumulationSection .st-table tr:last-child td { border-bottom: 0; }
#accumulationSection .st-table .num { text-align: right; white-space: nowrap; }
#accumulationSection .st-table th:last-child, #accumulationSection .st-table td:last-child { text-align: left; }
#accumulationSection .st-table tr.hit td:first-child { color: var(--gold); }
#accumulationSection .st-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; }
#accumulationSection .st-note { display: block; margin: 2px 0 0 18px; color: var(--text-faint); font-size: 12px; }
#accumulationSection .st-hit { color: var(--text); }
#accumulationSection .st-hit::before { content: "✓ "; color: #3ecf8e; }
#accumulationSection .st-short { display: none; }
#accumulationSection .st-table .st-now-row td { text-align: center; color: var(--gold); letter-spacing: .06em; background: var(--gold-soft); padding: 6px 14px; font-size: 12.5px; }
#accumulationSection .st-notes { margin: 22px 0; }
#accumulationSection .st-notes h2 { font-family: var(--font-title); font-weight: 400; letter-spacing: .04em; margin: 0 0 8px; font-size: 16px; }

@media (max-width: 720px) {
  #accumulationSection .st-grid { grid-template-columns: minmax(0, 1fr); }
  #accumulationSection .st-method-grid { grid-template-columns: minmax(0, 1fr); }
  #accumulationSection .st-method summary { align-items: flex-start; }
  #accumulationSection .st-chart { height: 360px; }
  #accumulationSection .st-detail-price { justify-items: start; }
  #accumulationSection .st-table th, #accumulationSection .st-table td { padding: 9px 8px; }
  #accumulationSection .st-table th:nth-child(3), #accumulationSection .st-table td:nth-child(3) { display: none; }
  #accumulationSection .st-detail-head h1 { font-size: 22px; }
}
@media (max-width: 560px) {
  #accumulationSection .st-long { display: none; }
  #accumulationSection .st-short { display: inline; }
}
/* goal bar, copied from the HBDM Investment Goal bar (.goal-bar / .goal-fill): 10px pill, faint track, gradient fill */
#accumulationSection .st-ladder { height: 10px; background: var(--line-faint); border-radius: 999px; overflow: hidden; }
#accumulationSection .st-ladder.empty { height: 0; }
#accumulationSection .st-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
#accumulationSection .st-ladder.bag .st-fill { background: linear-gradient(90deg, #f59e0b, #fb923c); }
#accumulationSection .st-ladder.tp .st-fill { background: linear-gradient(90deg, #3ecf8e, #86efac); }
#accumulationSection .st-gauge { display: flex; align-items: center; gap: 10px; }
#accumulationSection .st-gauge .st-ladder { position: relative; flex: 1; }
#accumulationSection .st-ladder i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--bg); opacity: .8; }
#accumulationSection .st-count { font-size: 12px; color: var(--text-dim); min-width: 3.2em; text-align: right; }

/* tokens the dashboard does not define (copied from the replica) + the page-head bits */
#accumulationSection { --accent-rgb: 255,215,0; --t: var(--line-strong); --font-accent: "Orbitron", "Audiowide", system-ui, sans-serif;
  --ticks: linear-gradient(var(--t), var(--t)) 10px 10px / 8px 1px no-repeat, linear-gradient(var(--t), var(--t)) 10px 10px / 1px 8px no-repeat,
    linear-gradient(var(--t), var(--t)) calc(100% - 10px) 10px / 8px 1px no-repeat, linear-gradient(var(--t), var(--t)) calc(100% - 10px) 10px / 1px 8px no-repeat,
    linear-gradient(var(--t), var(--t)) 10px calc(100% - 10px) / 8px 1px no-repeat, linear-gradient(var(--t), var(--t)) 10px calc(100% - 10px) / 1px 8px no-repeat,
    linear-gradient(var(--t), var(--t)) calc(100% - 10px) calc(100% - 10px) / 8px 1px no-repeat, linear-gradient(var(--t), var(--t)) calc(100% - 10px) calc(100% - 10px) / 1px 8px no-repeat; }
#accumulationSection .overline { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
#accumulationSection .muted { color: var(--text-dim); margin: 0; }
#accumulationSection .st-detail-head h1 { font-family: var(--font-title); font-weight: 400; letter-spacing: .02em; margin: 6px 0 8px; line-height: 1.15; color: var(--text); }
#accumulationSection .st-back { color: var(--gold); }
#accumulationSection .st-ohlc { position: absolute; top: 8px; left: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--text-dim); pointer-events: none; }
#accumulationSection .st-ohlc b { font-weight: 400; color: #ff535c; }
#accumulationSection .st-ohlc.up b { color: #3ecf8e; }

/* A two-finger horizontal swipe on the chart must pan it, never trigger the browser's back gesture (Hugo 2026-11-22) */
html, body, #accumulationSection, #accumulationSection .st-chart { overscroll-behavior-x: none; }
