/* ── Skeleton shimmer ── */
@keyframes shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position:  800px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg2) 25%, var(--bd) 50%, var(--bg2) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

/* ── Page header ── */
/* Flex direction + alignment now come from d-flex / flex-md-row utilities */
.mkt-page-hdr { padding: var(--ta-hdr-pad) 0; border-bottom: 1px solid var(--bd); margin-bottom: var(--ta-sec-gap); }
.mkt-breadcrumb { font-size: 11px; color: var(--tx3); margin-bottom: 5px; }
/* Underlined at rest: the accent against the crumb's own --tx3 is 1.28:1, so
   colour alone cannot mark the link inside the sentence (SC 1.4.1). */
.mkt-breadcrumb a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.mkt-title { font-size: 26px; font-weight: 900; color: var(--tx); letter-spacing: -.5px; }
.mkt-title span { color: var(--blue); }
.mkt-status-row { display: flex; align-items: center; gap: 12px; }
.mkt-open-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; background: var(--green-lt); color: var(--green-ink); padding: 4px 11px; border-radius: 20px; }
.open-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.mkt-timestamp { font-size: 11px; color: var(--tx3); }

/* ── Index Cards ── */
/* Columns and gutters both come from .row .row-cols-* */
.idx-row { margin-bottom: var(--ta-sec-gap); }
.idx-card { overflow: hidden; height: 148px; transition: box-shadow .15s; }
.idx-card:hover { box-shadow: var(--sh-md); }
.idx-skel { display: flex; flex-direction: column; padding: 14px 16px; gap: 9px; height: 148px; }

/* ── Main Body — gutters come from the shared .row default ── */

/* ── Screener Card ── */
.screener-card { overflow: hidden; }
.screener-hdr { --bs-card-cap-padding-x: 18px; --bs-card-cap-padding-y: 14px; gap: 12px; }
.screener-ttl { font-size: 13px; font-weight: 800; color: var(--tx); }
.s-tab { font-size: 12px; font-weight: 600; white-space: nowrap; }
.screener-skel-inner { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }

/* ── Symbol dropdown ── */
.ta-select { font-size: 12.5px; font-weight: 600; }

/* ── Sidebar ── */
.w-card { overflow: hidden; }
.w-hdr { display: flex; align-items: center; justify-content: space-between; }
.w-ttl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--tx); }
.w-sub { font-size: 10px; color: var(--tx3); white-space: nowrap; }

/* ── Fear & Greed ── */
.fg-body { padding: 16px 14px 12px; }
.fg-gauge-area { position: relative; display: flex; justify-content: center; }
.fg-val-box { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; }
.fg-num { font-size: 30px; font-weight: 900; color: var(--tx); letter-spacing: -1px; line-height: 1; }
.fg-word { font-size: 11px; font-weight: 700; color: #10B981; margin-top: 1px; }
.fg-scale { display: flex; justify-content: space-between; margin-top: 5px; padding: 0 2px; }
.fg-scale span { font-size: 9px; color: var(--tx3); text-align: center; line-height: 1.3; }
.fg-history { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bd); }
.fg-hist-item { text-align: center; flex: 1; }
.fg-hist-lbl { font-size: 9px; color: var(--tx3); }
.fg-hist-val { font-size: 14px; font-weight: 800; color: var(--tx); }
.fg-hist-cat { font-size: 9px; color: var(--tx2); }

/* ── AI Market Pulse ── */
.amp-section { margin-top: var(--ta-sec-gap); }
.amp-section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--ta-sec-gap); padding-bottom: 10px; border-bottom: 1px solid var(--bd); }
.amp-section-ttl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .9px; color: var(--tx3); display: flex; align-items: center; gap: 8px; }
.amp-ai-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 700; background: var(--blue-lt); color: var(--blue-ink); padding: 2px 8px; border-radius: 4px; }
.amp-card { padding: 18px; height: 100%; }
.amp-card-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--bd); }
.amp-sym { font-size: 14px; font-weight: 800; color: var(--tx); }
.amp-chg { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.amp-chg.up { background: var(--green-lt); color: var(--green-ink); }
.amp-chg.dn { background: var(--red-lt); color: var(--red-ink); }
.amp-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.amp-bullets li { font-size: 12.5px; color: var(--tx2); line-height: 1.45; padding-left: 16px; position: relative; }
.amp-bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--blue); font-size: 10px; top: 2px; }

/* Responsive behaviour is handled by the Bootstrap grid + flex utilities */
@media (max-width: 575px) {
    .ta-select { font-size: 12px; }
}
