/*
 * Tuottolaskuri Core – Lämmitysmuotojen kannattavuuslaskuri.
 * Builds on the shared tabbed-calculator styles (tlc-core, investment return … loan). Own copy of the
 * group/card/result styles (no dependency on the EV calculator).
 */

/* Input groups */
.tlc-lam .tlc-lam-intro { margin: 0 0 1rem; color: var(--tlc-muted-strong); font-size: .9375rem; }
.tlc-lam .tlc-lam-group {
	margin: 0 0 1rem;
	padding: 0 1rem 1rem;
	border: 1px solid #dbe6f5;
	border-radius: 14px;
	background: #fbfdff;
	min-width: 0;
}
.tlc-lam .tlc-lam-group[hidden] { display: none; }
.tlc-lam .tlc-lam-group__title {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .85rem -.25rem;
	padding: .35rem .75rem .35rem .5rem;
	border-radius: 10px;
	background: var(--tlc-primary-soft);
	color: var(--tlc-navy);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}
.tlc-lam .tlc-lam-group__title svg { flex: none; color: var(--tlc-primary); }
.tlc-lam .tlc-lam-group__grid { display: grid; gap: .75rem 1rem; align-items: start; }
.tlc-lam .tlc-lam-group__grid > [hidden] { display: none; }
.tlc-lam .tlc-lam-span,
.tlc-lam .tlc-lam-group__grid > .tlc-field--slider { grid-column: 1 / -1; }
.tlc-lam .tlc-lam-select { width: 100%; }
.tlc-lam .tlc-help { margin-top: .3rem; }

@container tlc-settings (min-width: 400px) {
	.tlc-lam .tlc-lam-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tlc-lam .tlc-lam-subhead {
	margin: .5rem 0 0;
	padding-top: .75rem;
	border-top: 1px solid var(--tlc-border);
	color: var(--tlc-navy);
	font-weight: 700;
}
.tlc-lam .tlc-lam-subhead:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.tlc-lam .tlc-lam-note,
.tlc-lam .tlc-lam-split {
	margin: 0;
	padding: .6rem .8rem;
	border-radius: 10px;
	background: #f1f6fd;
	color: var(--tlc-text);
	font-size: .9063rem;
	line-height: 1.5;
}
.tlc-lam .tlc-lam-note:empty,
.tlc-lam .tlc-lam-split:empty { display: none; }
.tlc-lam .tlc-lam-split { font-weight: 600; color: var(--tlc-navy); }

/* Advanced settings */
.tlc-lam .tlc-lam-advanced { margin-top: .25rem; border-top: 1px solid var(--tlc-border); padding-top: .5rem; }
.tlc-lam .tlc-lam-advanced__toggle { font-size: 1rem; font-weight: 700; }
.tlc-lam .tlc-lam-advanced__panel { padding-top: .75rem; }

/* Results */
.tlc-lam .tlc-lam-errors {
	margin: 0 0 1rem;
	padding: .85rem 1rem;
	border: 1px solid #f3c7c2;
	border-radius: 12px;
	background: #fef3f2;
	color: var(--tlc-negative-text);
}
.tlc-lam .tlc-lam-errors[hidden] { display: none; }
.tlc-lam .tlc-lam-errors__title { margin: 0 0 .35rem; font-weight: 700; }
.tlc-lam .tlc-lam-errors__list { margin: 0; padding-left: 1.1rem; }
.tlc-lam .tlc-lam-errors__list .tlc-link-button { color: var(--tlc-negative-text); text-align: left; }

.tlc-lam .tlc-lam-cards { display: grid; gap: .75rem; margin: 1rem 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.tlc-lam .tlc-lam-card {
	padding: .9rem 1rem;
	border: 1px solid var(--tlc-border);
	border-radius: 14px;
	background: #fff;
	min-width: 0;
}
.tlc-lam .tlc-lam-card.is-baseline { background: #f7f9fc; }
.tlc-lam .tlc-lam-card > p { margin: 0; }
.tlc-lam .tlc-lam-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-weight: 700; color: var(--tlc-navy); }
.tlc-lam .tlc-lam-card__tag { padding: .05rem .45rem; border-radius: 6px; background: #e7edf5; color: var(--tlc-muted-strong); font-size: .75rem; font-weight: 600; }
.tlc-lam .tlc-lam-card__label { margin-top: .5rem !important; color: var(--tlc-muted-strong); font-size: .8125rem; }
.tlc-lam .tlc-lam-card__value { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 800; color: var(--tlc-navy); letter-spacing: -.01em; }
.tlc-lam .tlc-lam-card__sub { color: var(--tlc-muted-strong); font-size: .875rem; }
.tlc-lam .tlc-lam-card__diff { margin-top: .4rem !important; font-weight: 700; font-size: .9375rem; }
.tlc-lam .tlc-lam-card__diff.is-positive { color: var(--tlc-positive-text); }
.tlc-lam .tlc-lam-card__diff.is-negative { color: var(--tlc-negative-text); }
.tlc-lam .tlc-lam-card__km { margin-top: .4rem !important; color: var(--tlc-text); font-size: .875rem; }
.tlc-lam .tlc-lam-card__kmchange { color: #9a5b00; font-size: .8125rem; font-weight: 600; }

/* Stacked cost bars */
.tlc-lam .tlc-lam-bars { margin: 1.25rem 0; }
.tlc-lam .tlc-lam-bars__plot { width: 100%; overflow: hidden; }
.tlc-lam .tlc-lam-bars__svg { display: block; max-width: 100%; height: auto; }
.tlc-lam .tlc-lam-bars__label { fill: var(--tlc-navy); font-size: 13px; font-weight: 600; }
.tlc-lam .tlc-lam-bars__value { fill: var(--tlc-navy); font-size: 13px; font-weight: 700; }
.tlc-lam .tlc-lam-bars__legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.tlc-lam .tlc-lam-legend { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--tlc-text); }
.tlc-lam .tlc-lam-legend::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: currentColor; }
.tlc-lam .tlc-lam-small { margin: .35rem 0 0; color: var(--tlc-muted-strong); font-size: .8438rem; line-height: 1.5; }

/* Scenario picker for the line chart */
.tlc-lam .tlc-lam-pick { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 .75rem; }
.tlc-lam .tlc-lam-pick[hidden] { display: none; }
.tlc-lam .tlc-lam-pick__btn {
	min-height: 40px;
	padding: .35rem .85rem;
	border: 1px solid var(--tlc-border-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--tlc-navy);
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
}
.tlc-lam .tlc-lam-pick__btn[aria-checked="true"] { border-color: var(--tlc-primary); background: var(--tlc-primary); color: #fff; }
.tlc-lam .tlc-lam-pick__btn:focus-visible { outline: 3px solid var(--tlc-primary); outline-offset: 2px; }

/* Payback (separate from TCO) */
.tlc-lam .tlc-lam-payback {
	margin: 1.25rem 0 0;
	padding: 1rem;
	border: 1px dashed #c3d4ec;
	border-radius: 14px;
	background: #fbfdff;
}
.tlc-lam .tlc-lam-payback__title { margin: 0; font-size: 1rem; color: var(--tlc-navy); }
.tlc-lam .tlc-lam-payback__list { display: grid; gap: .75rem; margin-top: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.tlc-lam .tlc-lam-payback__item { padding: .75rem .85rem; border-radius: 12px; background: #fff; border: 1px solid var(--tlc-border); }
.tlc-lam .tlc-lam-payback__item > p { margin: 0; }
.tlc-lam .tlc-lam-payback__name { font-weight: 700; color: var(--tlc-navy); }
.tlc-lam .tlc-lam-payback__value { margin-top: .25rem !important; font-size: 1.125rem; font-weight: 800; color: var(--tlc-navy); }
.tlc-lam .tlc-lam-payback__tco { font-weight: 600; }

/* Warnings */
.tlc-lam .tlc-lam-warnings {
	margin: 1rem 0 0;
	padding: .85rem 1rem;
	border: 1px solid #f2d7a6;
	border-radius: 12px;
	background: #fff8eb;
	color: #6b4400;
	font-size: .9063rem;
}
.tlc-lam .tlc-lam-warnings[hidden] { display: none; }
.tlc-lam .tlc-lam-warnings__title { margin: 0 0 .35rem; font-weight: 700; }
.tlc-lam .tlc-lam-warnings ul { margin: 0; padding-left: 1.1rem; }
.tlc-lam .tlc-lam-warnings li + li { margin-top: .3rem; }

/* Tables */
.tlc-lam .tlc-lam-table .tlc-table th.is-num,
.tlc-lam .tlc-lam-table .tlc-table td.is-num { text-align: right; white-space: nowrap; }
.tlc-lam .tlc-lam-table .tlc-table tr.is-total th,
.tlc-lam .tlc-lam-table .tlc-table tr.is-total td { font-weight: 800; background: #f1f6fd; }
.tlc-lam .tlc-lam-table__group { text-align: left; background: #eaf2fd; color: var(--tlc-navy); font-weight: 700; }

/* Jump to results (narrow layouts, where results follow the long form) */
.tlc-lam .tlc-lam-jump {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	width: 100%;
	min-height: 46px;
	margin: 0 0 1rem;
	padding: .55rem 1rem;
	border: 1px solid var(--tlc-primary);
	border-radius: 12px;
	background: var(--tlc-primary-soft);
	color: var(--tlc-primary-dark);
	font-weight: 700;
	text-decoration: none;
}
.tlc-lam .tlc-lam-jump:hover { background: #dbe9fc; }
.tlc-lam .tlc-lam-jump:focus-visible { outline: 3px solid var(--tlc-primary); outline-offset: 2px; }
.tlc-lam .tlc-lam-jump--end { margin: 1rem 0 0; background: var(--tlc-primary); color: #fff; }
.tlc-lam .tlc-lam-jump--end:hover { background: var(--tlc-primary-dark); }
.tlc-lam .tlc-lam-results:focus { outline: none; }
.tlc-lam .tlc-lam-results:focus-visible { outline: 3px solid var(--tlc-primary); outline-offset: 3px; }
@container tlc (min-width: 900px) {
	.tlc-lam .tlc-lam-jump { display: none; }
}

/* Print button */
.tlc-lam .tlc-lam-results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.tlc-lam .tlc-lam-print {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 40px;
	padding: .4rem .9rem;
	border: 1px solid var(--tlc-border-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--tlc-primary-dark);
	font: inherit;
	font-size: .9063rem;
	font-weight: 700;
	cursor: pointer;
}
.tlc-lam .tlc-lam-print:hover:not(:disabled) { border-color: var(--tlc-primary); background: var(--tlc-primary-soft); }
.tlc-lam .tlc-lam-print:focus-visible { outline: 3px solid var(--tlc-primary); outline-offset: 2px; }
.tlc-lam .tlc-lam-print:disabled { opacity: .55; cursor: not-allowed; }
.tlc-lam .tlc-lam-print-help { margin: -.25rem 0 .75rem; }


/* Segment colours: investment, fuel, electricity, maintenance, financing */
.tlc-lam .tlc-lam-seg--invest { fill: #1769dd; }
.tlc-lam .tlc-lam-seg--fuel { fill: #e07a1f; }
.tlc-lam .tlc-lam-seg--el { fill: #20a995; }
.tlc-lam .tlc-lam-seg--maint { fill: #9b8ae6; }
.tlc-lam .tlc-lam-seg--fin { fill: #d9534f; }
.tlc-lam .tlc-lam-legend--invest::before { background: #1769dd; }
.tlc-lam .tlc-lam-legend--fuel::before { background: #e07a1f; }
.tlc-lam .tlc-lam-legend--el::before { background: #20a995; }
.tlc-lam .tlc-lam-legend--maint::before { background: #9b8ae6; }
.tlc-lam .tlc-lam-legend--fin::before { background: #d9534f; }
.tlc-lam .tlc-lam-bars__zero { stroke: #52627a; stroke-width: 1; stroke-dasharray: 3 3; }

/* Advanced settings: one disclosure per topic */
.tlc-lam .tlc-lam-advanced { margin: .25rem 0 0; }
.tlc-lam .tlc-lam-advanced__title { margin: 0 0 .5rem; color: var(--tlc-navy); font-weight: 800; font-size: 1.0625rem; }
.tlc-lam .tlc-lam-adv { border: 1px solid #dbe6f5; border-radius: 12px; background: #fff; margin: 0 0 .5rem; }
.tlc-lam .tlc-lam-adv__toggle { width: 100%; padding: .7rem .85rem; font-weight: 700; font-size: .9688rem; text-align: left; }
.tlc-lam .tlc-lam-adv__icon { display: inline-flex; color: var(--tlc-primary); margin-right: .5rem; }
.tlc-lam .tlc-lam-adv__icon svg { width: 20px; height: 20px; }
.tlc-lam .tlc-lam-adv__panel { padding: .25rem .85rem 1rem; }
.tlc-lam .tlc-lam-adv__panel[hidden] { display: none; }
.tlc-lam .tlc-lam-adv .tlc-lam-group__grid { display: grid; gap: .75rem 1rem; align-items: start; }
@container tlc-settings (min-width: 400px) {
	.tlc-lam .tlc-lam-adv .tlc-lam-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tlc-lam .tlc-lam-group__grid > [hidden],
.tlc-lam .tlc-lam-adv .tlc-lam-group__grid > [hidden] { display: none; }
.tlc-lam .tlc-lam-span { grid-column: 1 / -1; }
.tlc-lam .tlc-lam-note:empty { display: none; }
.tlc-lam .tlc-lam-note[hidden] { display: none; }

/* Result cards */
.tlc-lam .tlc-lam-card.is-best { border-color: var(--tlc-primary); box-shadow: 0 0 0 2px rgba(23, 105, 221, .12); }
.tlc-lam .tlc-lam-card__tag.is-base { background: #eef3fa; }
.tlc-lam .tlc-lam-horizons { margin: 1rem 0; }
.tlc-lam .tlc-lam-htable th.is-active,
.tlc-lam .tlc-lam-htable td.is-active { background: #eaf2fd; font-weight: 800; }
.tlc-lam .tlc-table th.is-num,
.tlc-lam .tlc-table td.is-num { text-align: right; white-space: nowrap; }
.tlc-lam .tlc-table tr.is-total th,
.tlc-lam .tlc-table tr.is-total td { font-weight: 800; background: #f1f6fd; }
.tlc-lam .tlc-lam-section-title { margin: 1.5rem 0 .5rem; font-size: 1rem; color: var(--tlc-navy); }

/* Energy bars */
.tlc-lam .tlc-lam-ebar { margin: 0 0 .75rem; }
.tlc-lam .tlc-lam-ebar > p { margin: 0; }
.tlc-lam .tlc-lam-ebar__name { font-weight: 700; color: var(--tlc-navy); font-size: .9063rem; }
.tlc-lam .tlc-lam-ebar__track { display: flex; height: 14px; margin: .3rem 0; border-radius: 7px; background: #eef3fa; overflow: hidden; }
.tlc-lam .tlc-lam-ebar__fuel { background: #e07a1f; }
.tlc-lam .tlc-lam-ebar__comp { background: #20a995; }
.tlc-lam .tlc-lam-ebar__res { background: #0f6e61; }
.tlc-lam .tlc-lam-ebar__aux { background: #9b8ae6; }
.tlc-lam .tlc-lam-ebar__value { color: var(--tlc-muted-strong); font-size: .8438rem; }

/* PV, renovation, sources */
.tlc-lam .tlc-lam-pv__list { margin: 0; padding-left: 1.1rem; font-size: .9063rem; line-height: 1.55; }
.tlc-lam .tlc-lam-pv__list li + li { margin-top: .35rem; }
.tlc-lam .tlc-lam-pv[hidden],
.tlc-lam .tlc-lam-renov[hidden] { display: none; }
.tlc-lam .tlc-lam-sources__list { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.tlc-lam .tlc-lam-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.tlc-lam .tlc-lam-src__tag { flex: none; padding: .05rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 700; background: #e7edf5; color: var(--tlc-muted-strong); }
.tlc-lam .tlc-lam-src--user .tlc-lam-src__tag { background: #e5f5f0; color: var(--tlc-positive-text); }
.tlc-lam .tlc-lam-src--l .tlc-lam-src__tag,
.tlc-lam .tlc-lam-src--j .tlc-lam-src__tag { background: #e6effc; color: var(--tlc-primary-dark); }
.tlc-lam .tlc-lam-src--m .tlc-lam-src__tag { background: #fff3db; color: #7a4d00; }
.tlc-lam .tlc-lam-src--synt .tlc-lam-src__tag,
.tlc-lam .tlc-lam-src--est .tlc-lam-src__tag { background: #fde8e6; color: var(--tlc-negative-text); }
.tlc-lam .tlc-lam-results.is-stale .tlc-lam-highlight,
.tlc-lam .tlc-lam-results.is-stale .tlc-lam-cards,
.tlc-lam .tlc-lam-results.is-stale .tlc-lam-horizons,
.tlc-lam .tlc-lam-results.is-stale .tlc-lam-bars,
.tlc-lam .tlc-lam-results.is-stale .tlc-lam-chart,
.tlc-lam .tlc-lam-results.is-stale .tlc-lam-payback,
.tlc-lam .tlc-lam-results.is-stale .tlc-lam-energy { opacity: .45; }

/* Hero: winter house with solar panels on the right, open sky on the left (1672 × 941).
 * Show the roof, panels, the lower part of the house and the terrace – slightly taller hero on wide screens,
 * a shorter bottom fade and per-width crops. A light veil from the left keeps the text readable. */
.tlc-lam .tlc-lam-hero .tlc-hero__img { object-position: right 46%; }
@container tlc (min-width: 900px) {
	.tlc-root.tlc-lam > .tlc-lam-hero { min-height: 300px; }
}
@container tlc (min-width: 641px) {
	.tlc-root.tlc-layout-full-hero.tlc-lam > .tlc-hero::after { height: 12%; }
	.tlc-lam .tlc-lam-hero::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		background: linear-gradient(90deg, rgba(246, 249, 253, .9) 0%, rgba(246, 249, 253, .86) 42%, rgba(246, 249, 253, .55) 56%, rgba(246, 249, 253, 0) 70%);
		pointer-events: none;
	}
}
/* Very wide heroes show less of the photo's height: keep the roof ridge, chimney and terrace in view. */
@container tlc (min-width: 1600px) {
	.tlc-root.tlc-lam > .tlc-lam-hero { min-height: 320px; }
	.tlc-lam .tlc-lam-hero .tlc-hero__img { object-position: right 44%; }
}
/* Small desktops: the text reaches further into the photo, so the veil does too. */
@container tlc (min-width: 900px) and (max-width: 1199px) {
	.tlc-lam .tlc-lam-hero::before {
		background: linear-gradient(90deg, rgba(246, 249, 253, .92) 0%, rgba(246, 249, 253, .88) 50%, rgba(246, 249, 253, .72) 64%, rgba(246, 249, 253, 0) 82%);
	}
}
/* Narrow tablets: the text spans most of the width, so the veil reaches further. */
@container tlc (min-width: 641px) and (max-width: 899px) {
	.tlc-lam .tlc-lam-hero::before {
		background: linear-gradient(90deg, rgba(246, 249, 253, .93) 0%, rgba(246, 249, 253, .9) 60%, rgba(246, 249, 253, .74) 82%, rgba(246, 249, 253, .5) 100%);
	}
}

/* ---- Advanced intro, "Muokattu" marks, help box, filter, split, energy legend ---- */
.tlc-lam .tlc-lam-advanced__opt { font-weight: 600; color: var(--tlc-muted-strong); font-size: .9375rem; }
.tlc-lam .tlc-lam-advanced__intro { margin: 0 0 .75rem; padding: .65rem .85rem; border-left: 3px solid #b9d2f5; border-radius: 0 10px 10px 0; background: #f4f8fe; color: var(--tlc-muted-strong); font-size: .8438rem; line-height: 1.5; }
.tlc-lam .tlc-lam-advanced__intro p { margin: 0; }
.tlc-lam .tlc-lam-advanced__intro p + p { margin-top: .35rem; }
.tlc-lam .tlc-lam-mod { display: inline-block; margin-left: .15rem; padding: 0 .4rem; border-radius: 999px; background: #e6effc; color: var(--tlc-primary-dark); font-size: .6875rem; font-weight: 700; line-height: 1.5; letter-spacing: .01em; vertical-align: .1em; white-space: nowrap; }
.tlc-lam .tlc-lam-mod[hidden] { display: none; }
.tlc-lam .tlc-label .tlc-lam-mod { margin-left: .1rem; }
.tlc-lam .tlc-lam-adv__count { margin-left: auto; margin-right: .4rem; padding: .05rem .5rem; border-radius: 999px; background: #e6effc; color: var(--tlc-primary-dark); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.tlc-lam .tlc-lam-adv__count[hidden] { display: none; }
.tlc-lam .tlc-lam-adv__toggle { display: flex; align-items: center; gap: .25rem; }
.tlc-lam .tlc-lam-adv__toggle .tlc-collapse__label { flex: 1 1 auto; min-width: 0; }
.tlc-lam .tlc-lam-help-box { padding: .75rem .9rem; border-radius: 10px; background: #f4f8fe; border: 1px solid #dbe6f5; font-size: .875rem; line-height: 1.5; color: var(--tlc-muted-strong); }
.tlc-lam .tlc-lam-help-box[hidden] { display: none; }
.tlc-lam .tlc-lam-help-box p { margin: 0 0 .4rem; }
.tlc-lam .tlc-lam-help-box__title { font-weight: 800; color: var(--tlc-navy); }
.tlc-lam .tlc-field { scroll-margin-top: 110px; }
.tlc-lam .tlc-field.is-target .tlc-input { box-shadow: 0 0 0 3px rgba(23, 105, 221, .35); }
.tlc-lam .tlc-lam-subhead { margin: .5rem 0 -.25rem; font-weight: 800; color: var(--tlc-navy); font-size: .9063rem; }
.tlc-lam .tlc-lam-subhead[hidden] { display: none; }
.tlc-lam .tlc-lam-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .75rem; padding: .6rem .8rem; border-radius: 10px; background: #f4f8fe; border: 1px solid #dbe6f5; }
.tlc-lam .tlc-lam-filter[hidden] { display: none; }
.tlc-lam .tlc-lam-filter__text { flex: 1 1 16rem; margin: 0; font-size: .8438rem; color: var(--tlc-muted-strong); }
.tlc-lam .tlc-lam-filter__btn { flex: 0 0 auto; max-width: 100%; padding: .45rem .85rem; border: 1px solid var(--tlc-primary); border-radius: 999px; background: #fff; color: var(--tlc-primary-dark); font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; white-space: normal; }
.tlc-lam .tlc-lam-filter__btn[aria-pressed="true"] { background: var(--tlc-primary); color: #fff; }
.tlc-lam .tlc-lam-besthidden { margin: 0 0 .75rem; padding: .6rem .8rem; border-radius: 10px; background: #fff7e6; border: 1px solid #f3d9a4; font-size: .875rem; }
.tlc-lam .tlc-lam-besthidden[hidden] { display: none; }
.tlc-lam .tlc-lam-besthidden p { margin: 0 0 .25rem; font-weight: 700; color: #6b4300; }
.tlc-lam .tlc-lam-costsplit { margin: 1.5rem 0 0; }
.tlc-lam .tlc-lam-explain { margin: .6rem 0 .25rem; padding: .55rem .75rem; border-radius: 8px; background: #f4f8fe; font-size: .8438rem; line-height: 1.5; color: var(--tlc-muted-strong); }
.tlc-lam .tlc-table tr.is-sub th,
.tlc-lam .tlc-table tr.is-sub td { font-weight: 700; }
.tlc-lam .tlc-lam-elegend { margin: .25rem 0 .75rem; }
.tlc-lam .tlc-lam-elegend--fuel::before { background: #e07a1f; }
.tlc-lam .tlc-lam-elegend--comp::before { background: #20a995; }
.tlc-lam .tlc-lam-elegend--res::before { background: #0f6e61; }
.tlc-lam .tlc-lam-elegend--aux::before { background: #9b8ae6; }
.tlc-lam .tlc-lam-common { margin-top: .25rem; }
.tlc-lam .tlc-lam-elegend .tlc-legend__item::before { width: 12px; height: 12px; border-radius: 3px; }
.tlc-lam .tlc-lam-elegend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: 0; list-style: none; font-size: .8125rem; }
/* Tables: wrap the label column and scenario headers so they fit without needless scrolling. */
.tlc-lam .tlc-table thead th { white-space: normal; min-width: 5.5rem; vertical-align: bottom; }
.tlc-lam .tlc-table th:first-child,
.tlc-lam .tlc-table td:first-child { text-align: left; white-space: normal; min-width: 9rem; }

/* ---- A4 report additions (only for this calculator's report; shared tlc-print.css unchanged) ---- */
@media print {
	.tlc-report--lam table { table-layout: auto; }
	.tlc-report--lam th:first-child, .tlc-report--lam td:first-child { white-space: normal; min-width: 32mm; }
	.tlc-report--lam .tlc-report__table--dense { font-size: 7.4pt; }
	.tlc-report--lam .tlc-report__table--dense th, .tlc-report--lam .tlc-report__table--dense td { padding: .9mm 1.1mm; }
	.tlc-report--lam .tlc-report__table--dense th:first-child, .tlc-report--lam .tlc-report__table--dense td:first-child { min-width: 24mm; }
	.tlc-report--lam thead th { white-space: normal; vertical-align: bottom; }
	.tlc-report--lam td, .tlc-report--lam tbody th { text-align: right; white-space: nowrap; }
	.tlc-report--lam tbody th:first-child, .tlc-report--lam tbody td:first-child { text-align: left; white-space: normal; }
	.tlc-report--lam .tlc-report__kv td { white-space: normal; }
	.tlc-report--lam .tlc-report__figure h2 { margin-top: 2mm; }
	.tlc-report--lam .tlc-report__highlight span { display: block; color: #2a4365; }
	.tlc-report--lam .tlc-report__lead { font-size: 9pt; }
	.tlc-report--lam section.tlc-report__table h2 { break-after: avoid; }
}
