/* StockLeave Market Briefing. Every rule is scoped to .slb so nothing leaks to other pages. */
.slb {
	--slb-ink: #1d2126;
	--slb-ink-2: #4a525c;
	--slb-muted: #737b85;
	--slb-line: #e6e4df;
	--slb-line-soft: #f0eeea;
	--slb-surface: #ffffff;
	--slb-wash: #f7f6f3;
	--slb-up: #1a7f5a;
	--slb-down: #c8453b;
	--slb-focus: #2f6fb0;
	box-sizing: border-box;
	width: min(100% - 40px, 860px);
	margin: 0 auto;
	padding: 44px 0 72px;
	color: var(--slb-ink);
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.slb *, .slb *::before, .slb *::after { box-sizing: border-box; }
.slb [hidden] { display: none !important; }

/* Header */
.slb .slb-header { margin: 0 0 32px; text-align: center; }
.slb .slb-header h1 {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.022em;
	color: var(--slb-ink);
}
.slb .slb-header p { margin: 6px 0 0; color: var(--slb-muted); font-size: 14px; }

/* Sections */
.slb .slb-section { margin: 0 0 40px; }
.slb .slb-section h2 {
	position: relative;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--slb-ink);
}
.slb .slb-card {
	background: var(--slb-surface);
	border: 1px solid var(--slb-line);
	border-radius: 14px;
	padding: 22px 24px;
}
.slb .slb-empty { margin: 0; color: var(--slb-muted); font-size: 14px; }
.slb .slb-footnote { margin: 10px 2px 0; color: var(--slb-muted); font-size: 12.5px; line-height: 1.5; }
.slb abbr { text-decoration: none; }

/* News and events */
.slb .slb-day + .slb-day,
.slb .slb-day + .slb-upcoming { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--slb-line-soft); }
.slb .slb-day-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--slb-muted);
}
.slb .slb-items { list-style: none; margin: 0; padding: 0; }
.slb .slb-item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 14px;
	margin: 0;
	padding: 6px 0;
}
.slb .slb-item-time {
	color: var(--slb-muted);
	font-size: 13px;
	line-height: 1.75;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.slb .slb-item-text { color: var(--slb-ink); max-width: 68ch; }
.slb .slb-item-text a { color: inherit; text-decoration: none; transition: color .12s ease; }
.slb .slb-item-text a:hover { text-decoration: none; }

.slb details > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--slb-ink-2);
	border-radius: 6px;
}
.slb details > summary::-webkit-details-marker { display: none; }
.slb details > summary::before {
	content: "";
	width: 7px;
	height: 7px;
	margin: 0 3px 2px 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}
.slb details[open] > summary::before { transform: rotate(45deg); }
.slb details > summary:hover { color: var(--slb-ink); }
.slb .slb-count {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--slb-wash);
	color: var(--slb-muted);
	font-size: 12px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.slb .slb-upcoming > .slb-day:first-of-type { margin-top: 14px; }

/* Risk mode: a status badge at the right of the Market Breadth title, with a note on hover */
.slb .slb-block-head--split { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.slb .slb-block-head--split > p { flex: 0 0 100%; margin: 0; }
.slb .slb-block-head--split [data-slb-breadth-label] { white-space: nowrap; }
.slb .slb-head-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 1 auto; }
.slb .slb-regime { flex: 0 0 auto; }
.slb .slb-regime-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; cursor: default; outline: none; }
.slb .slb-regime-badge:focus-visible { box-shadow: 0 0 0 2px var(--slb-focus); }
.slb .slb-regime-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.slb .slb-regime-name { color: var(--slb-ink-2); font-weight: 400; }
.slb .slb-section h2.slb-h2-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.slb .slb-section h2 .slb-regime-pop { font-weight: 400; letter-spacing: 0; text-align: left; }
.slb .slb-regime--on .slb-regime-badge { background: #edf6f1; color: var(--slb-up); }
.slb .slb-regime--neutral .slb-regime-badge { background: #fbf3df; color: #8f6400; }
.slb .slb-regime--off .slb-regime-badge { background: #fcf0ef; color: var(--slb-down); }
.slb .slb-regime-pop {
	display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 5; width: min(310px, 100%); padding: 12px 14px 8px;
	border: 1px solid var(--slb-line); border-radius: 10px; background: var(--slb-surface); box-shadow: 0 6px 20px rgba(29, 33, 38, 0.09);
	color: var(--slb-ink); font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left;
}
.slb .slb-regime-pop-title { display: block; margin: 0 0 6px; color: var(--slb-muted); font-size: 12px; }
.slb .slb-regime-pop .slb-regime-pop-title { white-space: nowrap; }
.slb .slb-regime-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px; align-items: baseline; gap: 14px; padding: 5px 0; border-top: 1px solid var(--slb-line-soft); }
.slb .slb-regime-val { font-variant-numeric: tabular-nums; text-align: right; }
.slb .slb-regime-row--2 { grid-template-columns: minmax(0, 1fr) auto; }
.slb .slb-regime-row > span:last-child { text-align: right; }
.slb .slb-regime-badge:hover + .slb-regime-pop, .slb .slb-regime-badge:focus + .slb-regime-pop { display: block; }

/* Market conditions: breadth on the left, sector list on the right */
.slb .slb-cond { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0 26px; }
.slb .slb-cond-main { min-width: 0; display: flex; flex-direction: column; }
.slb .slb-cond-side { min-width: 0; padding-left: 26px; border-left: 1px solid var(--slb-line-soft); }
.slb .slb-block-head { margin: 0 0 12px; }
.slb .slb-block-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--slb-ink); }
.slb .slb-block-head p { margin: 2px 0 0; color: var(--slb-muted); font-size: 13px; }
.slb .slb-block-head--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.slb .slb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px 16px; margin: 0 0 10px; padding: 0; }
.slb .slb-stat { margin: 0; }
.slb .slb-stat dt { margin: 0; color: var(--slb-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.slb .slb-stat dd { margin: 0; color: var(--slb-ink); font-size: 15px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.slb .slb-stat dd.slb-up { color: var(--slb-up); }
.slb .slb-stat dd.slb-down { color: var(--slb-down); }

.slb .slb-up { color: var(--slb-up); }
.slb .slb-down { color: var(--slb-down); }
.slb .slb-flat, .slb .slb-muted { color: var(--slb-muted); }

/* Breadth chart */
.slb .slb-chart { position: relative; width: 100%; flex: 1 1 auto; min-height: 210px; outline: none; border-radius: 6px; }
.slb .slb-chart:focus-visible { box-shadow: 0 0 0 2px var(--slb-focus); }
.slb .slb-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.slb .slb-chart text { font-family: inherit; font-size: 11.5px; fill: var(--slb-muted); font-variant-numeric: tabular-nums; }
.slb .slb-chart .slb-c-grid { stroke: var(--slb-line-soft); stroke-width: 1; }
.slb .slb-chart .slb-c-level { stroke: #a9a59b; stroke-width: 1; stroke-dasharray: 4 4; }
.slb .slb-chart .slb-c-line { fill: none; stroke: #3d4856; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.slb .slb-chart .slb-c-line2 { fill: none; stroke: #c3c7cd; stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.slb .slb-chart .slb-c-tag { fill: #9aa0a8; font-size: 11px; }
.slb .slb-tip .slb-tip-row { display: flex; justify-content: space-between; gap: 16px; color: var(--slb-ink-2); font-variant-numeric: tabular-nums; }
.slb .slb-tip .slb-tip-row span { color: inherit; }
.slb .slb-tip .slb-tip-row.is-main { color: var(--slb-ink); font-weight: 600; }
.slb .slb-chart .slb-c-dot { fill: #3d4856; stroke: var(--slb-surface); stroke-width: 1.5; }
.slb .slb-chart .slb-c-last { fill: var(--slb-ink-2); font-weight: 500; font-size: 11px; }
.slb .slb-chart .slb-c-cross { stroke: #8b9099; stroke-width: 1; }
.slb .slb-tip {
	position: absolute;
	top: 0;
	z-index: 2;
	padding: 7px 10px;
	border: 1px solid var(--slb-line);
	border-radius: 8px;
	background: var(--slb-surface);
	box-shadow: 0 4px 14px rgba(29, 33, 38, 0.08);
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	pointer-events: none;
}
.slb .slb-tip strong { display: block; font-size: 14px; font-weight: 600; color: var(--slb-ink); font-variant-numeric: tabular-nums; }
.slb .slb-tip span { color: var(--slb-muted); }

/* Period toggle */
.slb .slb-toggle {
	display: inline-flex;
	gap: 2px;
	margin: 0;
	padding: 2px;
	border-radius: 8px;
	background: var(--slb-wash);
}
.slb .slb-toggle button {
	appearance: none;
	margin: 0;
	padding: 3px 9px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--slb-ink-2);
	font: inherit;
	font-size: 12.5px;
	line-height: 1.4;
	cursor: pointer;
}
.slb .slb-toggle button:hover { color: var(--slb-ink); }
.slb .slb-toggle button[aria-pressed="true"] {
	background: var(--slb-surface);
	color: var(--slb-ink);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(29, 33, 38, 0.12);
}
.slb button:focus-visible, .slb summary:focus-visible, .slb a:focus-visible {
	outline: 2px solid var(--slb-focus);
	outline-offset: 2px;
}

/* Sector list: ranked, numbers only */
.slb .slb-sectors { list-style: none; margin: 0; padding: 0; }
.slb .slb-sector { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 4.5px 0; border-bottom: 1px solid var(--slb-line-soft); font-size: 13.5px; line-height: 1.4; }
.slb .slb-sector:last-child { border-bottom: 0; }
.slb .slb-sector-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--slb-ink); }
.slb .slb-sector-value { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slb .slb-asof { margin: 8px 0 0; color: var(--slb-muted); font-size: 12px; }

/* Info note beside a section title: sits inside the heading so every section has the same structure */
.slb .slb-info { display: inline; }
.slb .slb-info-btn {
	appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0 0 0 4px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--slb-muted); vertical-align: -3px; cursor: pointer;
}
.slb .slb-info-btn:hover, .slb .slb-info-btn[aria-expanded="true"] { color: var(--slb-ink); }
.slb .slb-info-pop {
	display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; width: min(400px, 100%); padding: 12px 14px;
	border: 1px solid var(--slb-line); border-radius: 10px; background: var(--slb-surface); box-shadow: 0 6px 20px rgba(29, 33, 38, 0.09);
	color: var(--slb-ink-2); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.55; text-align: left;
}
.slb .slb-info-pop { width: min(380px, 100%); padding: 12px 14px 8px; color: var(--slb-ink); line-height: 1.5; }
.slb .slb-info-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 6px 0; border-top: 1px solid var(--slb-line-soft); }
.slb .slb-info-row > span:last-child { color: var(--slb-ink-2); }
.slb .slb-info-btn[aria-expanded="true"] + .slb-info-pop { display: block; }
@media (hover: hover) { .slb .slb-info:hover .slb-info-pop { display: block; } }

/* Alerts: one list that scrolls inside the card, grouped by day */
.slb .slb-table-wrap {
	width: auto; max-height: 436px; margin-right: -14px; padding-right: 14px; overflow-x: hidden; overflow-y: auto;
	overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d6d3cc transparent;
}
.slb .slb-table-wrap.is-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }
.slb .slb-table-wrap:focus-visible { outline: 2px solid var(--slb-focus); outline-offset: 2px; }
.slb .slb-table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font-size: 13.5px; line-height: 1.4; }
.slb .slb-table th,
.slb .slb-table td {
	padding: 9px 10px 9px 0;
	border: 0;
	border-bottom: 1px solid var(--slb-line-soft);
	background: transparent;
	text-align: left;
	white-space: nowrap;
}
.slb .slb-table thead th { position: sticky; top: 0; z-index: 1; padding-top: 0; background: var(--slb-surface); color: var(--slb-muted); font-size: 12.5px; font-weight: 500; border-bottom-color: var(--slb-line); }
.slb .slb-table tbody tr:last-child td { border-bottom: 0; }
.slb .slb-table th:last-child, .slb .slb-table td:last-child { padding-right: 0; }
.slb .slb-table .slb-num { text-align: right; font-variant-numeric: tabular-nums; }
.slb .slb-ticker a { color: var(--slb-ink); font-weight: 600; text-decoration: none; }
.slb .slb-ticker a:hover { text-decoration: none; }
.slb .slb-table td.slb-up { color: var(--slb-up); }
.slb .slb-table td.slb-down { color: var(--slb-down); }
.slb .slb-table td.slb-when { color: var(--slb-muted); }
.slb .slb-table .slb-date-row th { padding: 16px 0 6px; border-bottom: 1px solid var(--slb-line); color: var(--slb-muted); font-size: 12px; font-weight: 500; text-align: left; }
.slb .slb-table tbody .slb-date-row:first-child th { padding-top: 12px; }

@media (max-width: 720px) {
	.slb .slb-cond { grid-template-columns: minmax(0, 1fr); }
	.slb .slb-cond-side { margin-top: 20px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--slb-line-soft); }
}
@media (max-width: 600px) {
	.slb { width: min(100% - 28px, 860px); padding: 28px 0 56px; font-size: 14.5px; }
	.slb .slb-card { padding: 16px; border-radius: 12px; }
	.slb .slb-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
	.slb .slb-chart { min-height: 200px; }
	.slb .slb-table { font-size: 14px; }
	.slb .slb-table-wrap { max-height: 420px; margin-right: -10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.slb details > summary::before { transition: none; }
}
@media (max-width: 350px) {
	.slb .slb-table { font-size: 12.5px; }
	.slb .slb-table th, .slb .slb-table td { padding-right: 6px; }
}
