/* Beef Central Charts — dashboard styles.
   Matches the dev.beefcentral.com theme ("base"): Lato throughout, 16px base,
   dark-red (#8b0000) accordion bars with bold white labels, #f7f7f7 data areas,
   square corners, link/heading red #931111. */

/* --- Relax the theme's matchHeight column lock on this page so expanding
       accordions push the footer down instead of overflowing onto it. ------ */
body.has-bcf-dashboard .columns,
body.has-bcf-dashboard .left-col,
body.has-bcf-dashboard .right-col {
	height: auto !important;
	min-height: 0 !important;
}

.bcf-dashboard {
	--bcf-red: #8b0000;
	--bcf-red-2: #931111;
	--bcf-red-hover: #a30000;
	--bcf-data-bg: #f7f7f7;
	--bcf-rule: #e0e0e0;
	--bcf-ink: #222222;
	--bcf-mute: #666666;
	--bcf-axis: #b3b3b3;

	color: var(--bcf-ink);
	background: transparent;
	font-family: "Montserrat", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 0 30px;
	line-height: 1.5;
	box-sizing: border-box;
}
.bcf-dashboard * { box-sizing: border-box; }

/* Status line (page already shows the H1 "Finance Dashboard") ------------- */
.bcf-dashboard__statusline {
	margin: 0 0 8px;
	color: var(--bcf-mute);
	font-size: 15px;
}
.bcf-dashboard__statusline [data-bcf-status] { color: var(--bcf-red); font-weight: 700; }

/* Layout ----------------------------------------------------------------- */
.bcf-dashboard__grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}
.bcf-dashboard__loading { padding: 20px; color: var(--bcf-mute); text-align: center; }

/* Category group heading ------------------------------------------------- */
.bcf-group__title {
	margin: 22px 0 4px;
	padding-bottom: 5px;
	color: var(--bcf-red);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 2px solid var(--bcf-red);
}

/* Accordion item --------------------------------------------------------- */
.bcf-item {
	background: #fff;
	border: 1px solid var(--bcf-rule);
	border-radius: 0;
	overflow: hidden;
}

.bcf-item > summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 46px 14px 18px;
	margin: 0;
	background: var(--bcf-red);
	color: #fff;
	border-radius: 0;
	transition: background 0.12s ease;
}
.bcf-item > summary::-webkit-details-marker { display: none; }
.bcf-item > summary:hover,
.bcf-item > summary:focus-visible { background: var(--bcf-red-hover); }
.bcf-item > summary:focus-visible { outline: 3px solid var(--bcf-red-2); outline-offset: -3px; }

.bcf-item > summary::after {
	content: "+";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem;
	font-weight: 900;
	line-height: 1;
	color: #fff;
	opacity: 0.9;
}
.bcf-item[open] > summary::after { content: "\2212"; } /* − */

.bcf-item__main { min-width: 0; }
.bcf-item__name {
	display: block;
	font-size: 19px;
	font-weight: 900;
	color: #fff;
	line-height: 1.2;
}
.bcf-item__full {
	display: block;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bcf-item__value {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	flex: 0 0 auto;
}
.bcf-item__hero {
	font-size: 24px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: #fff;
	line-height: 1;
}
.bcf-item__unit {
	color: rgba(255, 255, 255, 0.82);
	font-size: 12px;
	margin-left: 3px;
	font-weight: 700;
}
.bcf-item__chip {
	font-size: 13px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	white-space: nowrap;
	margin-top: 3px;
}
.bcf-item__chip--up { color: #a7e3b0; }
.bcf-item__chip--down { color: #ffc4bf; }
.bcf-item__chip--flat { color: rgba(255, 255, 255, 0.82); }
.bcf-item__arrow { font-size: 0.8em; line-height: 1; }
.bcf-item__date {
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	margin-top: 2px;
}

/* Body ------------------------------------------------------------------- */
.bcf-item__body {
	background: var(--bcf-data-bg);
	border-top: 1px solid var(--bcf-rule);
	padding: 8px 14px 16px;
}
.bcf-chart { width: 100%; height: 320px; }
.bcf-item__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 2px 6px;
	color: var(--bcf-mute);
	font-size: 13px;
}
.bcf-item__meta .source { font-weight: 700; color: #000; text-align: right; }
.bcf-item__note { color: var(--bcf-mute); font-size: 15px; padding: 4px 2px 0; }

/* Range zoom tabs (1M/3M/6M/1Y/2Y/All) ---------------------------------- */
.bcf-range {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 6px 0 8px;
}
.bcf-range__btn {
	border: 1px solid var(--bcf-rule);
	background: #ececec;
	color: var(--bcf-mute);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 6px 11px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}
.bcf-range__btn:hover { background: #dcdcdc; color: var(--bcf-ink); }
.bcf-range__btn:focus-visible { outline: 2px solid var(--bcf-red-2); outline-offset: 1px; }
.bcf-range__btn.is-active { background: var(--bcf-red); color: #fff; border-color: var(--bcf-red); }

/* Footer ----------------------------------------------------------------- */
.bcf-dashboard__foot {
	margin-top: 20px;
	padding: 12px 0 0;
	color: var(--bcf-mute);
	font-size: 13px;
	border-top: 1px solid var(--bcf-rule);
}
.bcf-dashboard__foot a { color: var(--bcf-red-2); font-weight: 700; text-decoration: none; }
.bcf-dashboard__foot a:hover { text-decoration: underline; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 600px) {
	.bcf-item > summary { flex-wrap: wrap; padding: 12px 44px 12px 14px; }
	.bcf-item__value { align-items: flex-start; text-align: left; }
	.bcf-item__hero { font-size: 21px; }
	.bcf-item__name { font-size: 17px; }
	.bcf-chart { height: 260px; }
	.bcf-range__btn { padding: 5px 9px; font-size: 11px; }
}
