/* ── Page Header ── */
/* Flex direction + alignment now come from d-flex / flex-md-row utilities */
.com-page-hdr { padding: var(--ta-hdr-pad) 0; border-bottom: 1px solid var(--bd); margin-bottom: var(--ta-sec-gap); }
.com-breadcrumb { font-size: 11px; color: var(--tx3); margin-bottom: 5px; }
/* Underlined at rest: amber against the crumb's own --tx3 is 2.42:1, so colour
   alone cannot mark the link inside the sentence (SC 1.4.1). */
.com-breadcrumb a { color: var(--amber-ink); text-decoration: underline; text-underline-offset: 2px; }
.com-title { font-size: 26px; font-weight: 900; color: var(--tx); letter-spacing: -.5px; }
.com-title span { color: var(--amber-ink); }
.com-meta { font-size: 11px; color: var(--tx3); display: flex; align-items: center; gap: 12px; }

/* ── Commodity Price Cards — columns and gutters both come from .row ── */
.com-row { margin-bottom: var(--ta-sec-gap); }
.com-card {
    padding: 16px 16px 14px; position: relative; overflow: hidden; height: 100%;
    transition: box-shadow .15s, transform .15s;
}
.com-card:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.com-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--amber), #F97316); }
.com-card-icon { font-size: 22px; margin-bottom: 10px; display: block; }
.com-card-name { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--tx3); margin-bottom: 4px; }
.com-card-price { font-size: 20px; font-weight: 900; color: var(--tx); letter-spacing: -.5px; line-height: 1.1; margin-bottom: 6px; }
.com-card-unit { font-size: 9px; color: var(--tx3); font-weight: 400; }
.com-card-chg { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.com-card-chg.up { background: var(--green-lt); color: var(--green-ink); }
.com-card-chg.dn { background: var(--red-lt); color: var(--red-ink); }

/* ── Body Layout — row gutters come from the shared .row default ── */
.com-main { gap: var(--ta-sec-gap); }

/* ── Chart Card ── */
.com-chart-card { overflow: hidden; }
.com-chart-hdr { --bs-card-cap-padding-x: 18px; --bs-card-cap-padding-y: 14px; }
.com-chart-ttl { font-size: 13px; font-weight: 800; color: var(--tx); display: flex; align-items: center; gap: 8px; }
/* Symbol buttons are .btn .btn-sm .btn-outline-secondary; only the amber accent is bespoke */
.com-sym-bar { gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--bd); }
.com-sym-btn { font-size: 12px; font-weight: 700; }
.com-sym-btn.active { background: var(--amber-fill); color: #fff; border-color: var(--amber-fill); }
.com-sym-btn:not(.active):hover { border-color: var(--amber-fill); color: var(--amber-ink); }

/* ── Sidebar ── */
.w-card { overflow: hidden; }
.w-hdr { --bs-card-cap-padding-x: 16px; --bs-card-cap-padding-y: 12px; }
.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); }

/* ── TA dropdown — Bootstrap supplies the chevron and the dark-mode swap ── */
.ta-select { font-size: 12.5px; font-weight: 600; }


/* ── AI Pulse ── */
.amp-section { margin-top: var(--ta-sec-gap); }
.amp-section-hdr { 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(--amber-lt); color: var(--amber-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(--amber); font-size: 10px; top: 2px; }

/* Responsive behaviour is handled by the Bootstrap grid + flex utilities */
