/* 個股頁標頭（白底，台股慣例紅漲綠跌） */
body.sp-stock .entry-header, body.sp-stock .ast-single-post-title, body.sp-stock h1.entry-title { display: none; }
.sp-page > #sp_head { order: -2; }
.sp-hd { margin: 0 0 18px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif; color: #1d2433; }
.sp-hd-bc { border: 1px solid #dfe3ea; border-radius: 4px; padding: 12px 18px; font-size: 15px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #5b6475; }
.sp-hd-bc a { color: #1f3fbf; text-decoration: none; }
.sp-hd-bc a:hover { text-decoration: underline; }
.sp-hd-bc span { color: #a0a7b4; }
.sp-hd-bc b { font-weight: 400; color: #3a4252; }
.sp-hd-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sp-hd-main { min-width: 0; }
.sp-hd-name { margin: 0 0 6px; font-size: 34px; line-height: 1.2; font-weight: 800; color: #0f1729; }
.sp-hd-name small { margin-left: 12px; font-size: 22px; font-weight: 400; color: #7a8291; }
.sp-hd-px { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.sp-hd-px .lab { font-size: 16px; color: #5b6475; }
.sp-hd-px .v { font-size: 46px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: #0f1729; }
.sp-hd-px .c { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-hd .up { color: #e0262e !important; }
.sp-hd .dn { color: #0b9b5b !important; }
.sp-hd .flat { color: #6b7280 !important; }
.sp-hd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 15px; color: #3a4252; font-weight: 600; }
.sp-hd-meta i { width: 10px; height: 10px; border-radius: 50%; background: #9aa1ad; display: inline-block; }
.sp-hd-meta .d { font-weight: 400; color: #5b6475; }
.sp-hd-meta .perf { display: inline-flex; gap: 12px; font-weight: 400; color: #5b6475; }
.sp-hd-meta .perf b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-hd-add { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #1f3fbf; color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sp-hd-add:hover, .sp-hd-add:focus { background: #1a34a0; color: #fff; }
/* 觀察清單腳本會把裡面的 span 畫成 + 或 ✓ */
.sp-hd-add .sp-wlp-add { all: unset; font-size: 18px; line-height: 1; color: #fff; cursor: pointer; }
.sp-hd-add .sp-wlp-add.on { color: #9fe8c1; }
@media (max-width: 640px) {
	.sp-hd-row { flex-direction: column; }
	.sp-hd-name { font-size: 26px; }
	.sp-hd-name small { font-size: 18px; }
	.sp-hd-px .v { font-size: 36px; }
	.sp-hd-px .c { font-size: 18px; }
	.sp-hd-add { align-self: stretch; justify-content: center; }
}
