/*
 * Tuottolaskuri Core – calculator styles (Modern Blue).
 * Everything is scoped under .tlc-root. Layout responds to the calculator's own
 * width (container queries), so it works in narrow and wide content areas alike.
 */

.tlc-root {
	--tlc-navy: #17365d;
	--tlc-text: #2a4365;
	--tlc-primary: #1769dd;
	--tlc-primary-dark: #0f55b8;
	--tlc-primary-soft: #eaf2fd;
	--tlc-bg: #f5f8fc;
	--tlc-surface: #fff;
	--tlc-positive: #20a995;
	--tlc-positive-text: #0e7c6b;
	--tlc-negative-text: #b42318;
	--tlc-muted: #64748b;
	--tlc-muted-strong: #52627a;
	--tlc-border: #dde6f1;
	--tlc-border-strong: #c9d6e7;
	--tlc-radius: 16px;
	--tlc-radius-sm: 10px;
	--tlc-shadow: 0 1px 2px rgba(23, 54, 93, .04), 0 6px 20px rgba(23, 54, 93, .06);
	--tlc-gap: clamp(1rem, 2vw, 1.5rem);

	container: tlc / inline-size;
	display: grid;
	gap: var(--tlc-gap);
	color: var(--tlc-navy);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	text-align: left;
	-webkit-text-size-adjust: 100%;
}

.tlc-root *,
.tlc-root *::before,
.tlc-root *::after { box-sizing: border-box; }

.tlc-root p,
.tlc-root ul,
.tlc-root h1,
.tlc-root h2,
.tlc-root h3,
.tlc-root h4,
.tlc-root h5,
.tlc-root h6 { margin: 0; }

.tlc-root svg { display: inline-block; flex: none; }

.tlc-root button {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.tlc-root :focus-visible {
	outline: 3px solid var(--tlc-primary);
	outline-offset: 2px;
}

.tlc-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------------- Header ---------------- */
.tlc-root .tlc-header { display: grid; gap: 1rem; align-items: center; }

.tlc-root .tlc-title {
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.025em;
	color: var(--tlc-navy);
}

.tlc-root .tlc-subtitle {
	margin-top: .35rem;
	font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
	color: var(--tlc-muted-strong);
}

.tlc-root .tlc-notice {
	display: flex;
	gap: .85rem;
	align-items: flex-start;
	padding: .9rem 1.1rem;
	border: 1px solid #d3e2f6;
	border-radius: 12px;
	background: #eef4fd;
	color: var(--tlc-primary-dark);
	font-size: .875rem;
	line-height: 1.5;
}

.tlc-root .tlc-notice__icon { width: 24px; height: 24px; margin-top: .05rem; color: var(--tlc-primary); }

/* ---------------- Calculator hero (shared, 0.2.1) ---------------- */
.tlc-root .tlc-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
	padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.1rem, 3vw, 2.25rem);
	border: 1px solid var(--tlc-border);
	border-radius: 20px;
	background: linear-gradient(180deg, #f6f9fd 0%, #edf3fb 100%);
	box-shadow: var(--tlc-shadow);
}

.tlc-root .tlc-hero__img {
	position: absolute;
	top: 0;
	right: 0;
	width: 64%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: right center;
	-webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .55) 22%, #000 48%);
	mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .55) 22%, #000 48%);
	pointer-events: none;
}

.tlc-root .tlc-hero__content { position: relative; z-index: 1; max-width: 660px; }
.tlc-root .tlc-hero .tlc-subtitle { max-width: 36em; color: var(--tlc-text); }

@container tlc (min-width: 900px) {
	.tlc-root .tlc-hero { min-height: 256px; }
}

@container tlc (max-width: 640px) {
	.tlc-root .tlc-hero { padding: 1.25rem 1.1rem; }
	.tlc-root .tlc-hero__img {
		width: 72%;
		height: 60%;
		opacity: .4;
		object-position: right top;
		-webkit-mask-image: linear-gradient(to bottom left, #000 10%, transparent 75%);
		mask-image: linear-gradient(to bottom left, #000 10%, transparent 75%);
	}
}

/* Compound interest hero: keep the coin stacks and sprout in view. */
.tlc-root .tlc-ci-hero .tlc-hero__img { object-position: right 62%; }

@container tlc (max-width: 640px) {
	.tlc-root .tlc-ci-hero .tlc-hero__img { object-position: 88% 75%; opacity: .32; }
}

/* ---------------- Full-width hero layout (0.2.2, layout="full-hero") ---------------- */
/*
 * The root is alignfull; only the hero spans the full width. All other sections are centred
 * at the content width, and the hero text lines up with them. The hero image fades into the
 * page background at the bottom (overlay above the image, below the text and tabs).
 * --tlc-page-bg follows the theme background preset when present.
 */
.tlc-root.tlc-layout-full-hero {
	--tlc-content-width: 1200px;
	--tlc-edge: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem));
	--tlc-page-bg: var(--wp--preset--color--background, #f5f8fc);
}

.tlc-root.tlc-layout-full-hero > :not(.tlc-hero) {
	width: min(100% - 2 * var(--tlc-edge), var(--tlc-content-width));
	margin-inline: auto;
}

.tlc-root.tlc-layout-full-hero > .tlc-hero {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding-inline: max(var(--tlc-edge), calc((100% - var(--tlc-content-width)) / 2));
	background: linear-gradient(180deg, #ecf3fb 0%, #f1f6fc 55%, var(--tlc-page-bg) 100%);
}

.tlc-root.tlc-layout-full-hero > .tlc-hero .tlc-hero__img { width: min(64%, 1100px); }

.tlc-root.tlc-layout-full-hero > .tlc-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 34%;
	background: linear-gradient(
		180deg,
		transparent 0%,
		color-mix(in srgb, var(--tlc-page-bg) 22%, transparent) 30%,
		color-mix(in srgb, var(--tlc-page-bg) 60%, transparent) 62%,
		color-mix(in srgb, var(--tlc-page-bg) 88%, transparent) 85%,
		var(--tlc-page-bg) 100%
	);
	pointer-events: none;
}

@container tlc (max-width: 640px) {
	.tlc-root.tlc-layout-full-hero > .tlc-hero::after { height: 55%; }
	/* Corner image fades out towards the left and the bottom, so no edge is ever visible. */
	.tlc-root.tlc-layout-full-hero > .tlc-hero .tlc-hero__img {
		width: 80%;
		height: 80%;
		-webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 30%, transparent 100%);
		mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 30%, transparent 100%);
	}
}

/* ---------------- Layout ---------------- */
.tlc-root .tlc-main,
.tlc-root .tlc-lower {
	display: grid;
	gap: var(--tlc-gap);
	align-items: start;
	min-width: 0;
}

.tlc-root .tlc-main > *,
.tlc-root .tlc-lower > * { min-width: 0; }

@container tlc (min-width: 900px) {
	.tlc-root .tlc-header { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; }
	.tlc-root .tlc-header:not(:has(.tlc-header__text)) { grid-template-columns: minmax(0, 1fr); }
	.tlc-root .tlc-main { grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); align-items: stretch; }
	.tlc-root .tlc-lower { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
	/* Fee and inflation columns need the full width; methodology moves below. */
	.tlc-root.has-wide-table .tlc-lower { grid-template-columns: minmax(0, 1fr); }
	.tlc-root.has-wide-table .tlc-method { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
	.tlc-root.has-wide-table .tlc-method__block + .tlc-method__block { padding-top: 0; border-top: 0; }
}

/* ---------------- Cards ---------------- */
.tlc-root .tlc-card {
	background: var(--tlc-surface);
	border: 1px solid var(--tlc-border);
	border-radius: var(--tlc-radius);
	box-shadow: var(--tlc-shadow);
	padding: clamp(1rem, 3vw, 1.5rem);
}

.tlc-root .tlc-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
	margin-bottom: 1.25rem;
}

.tlc-root .tlc-card__title {
	font-size: clamp(1.25rem, 1.1rem + .5vw, 1.4375rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.015em;
	color: var(--tlc-navy);
}

.tlc-root .tlc-reset {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 40px;
	padding: .4rem 1rem;
	border: 1px solid var(--tlc-border);
	border-radius: 999px;
	background: var(--tlc-bg);
	color: var(--tlc-navy);
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.2;
}

.tlc-root .tlc-reset:hover { border-color: var(--tlc-border-strong); background: var(--tlc-primary-soft); }
.tlc-root .tlc-reset svg { color: var(--tlc-primary); }

/* ---------------- Fields ---------------- */
.tlc-root .tlc-settings { container: tlc-settings / inline-size; }

.tlc-root .tlc-fields-2 { display: grid; gap: 1rem 1.25rem; }

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

.tlc-root .tlc-field { min-width: 0; }
.tlc-root .tlc-field--slider { margin-top: 1.4rem; }

.tlc-root .tlc-label {
	display: block;
	margin-bottom: .45rem;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--tlc-navy);
}

.tlc-root .tlc-input-wrap { position: relative; }

.tlc-root .tlc-input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 2.6rem 0 .95rem;
	border: 1px solid var(--tlc-border-strong);
	border-radius: var(--tlc-radius-sm);
	background: var(--tlc-surface);
	color: var(--tlc-navy);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	box-shadow: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.tlc-root .tlc-input:hover:not(:disabled) { border-color: #a9bdd8; }

.tlc-root .tlc-input:focus {
	border-color: var(--tlc-primary);
	box-shadow: 0 0 0 3px rgba(23, 105, 221, .18);
	outline: none;
}

.tlc-root .tlc-input:focus-visible { outline: 2px solid transparent; }

.tlc-root .tlc-input[aria-invalid="true"] {
	border-color: var(--tlc-negative-text);
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.tlc-root .tlc-input:disabled {
	background: #f1f4f8;
	color: #8a99ad;
	cursor: not-allowed;
}

.tlc-root .tlc-input--compact {
	width: 5.75rem;
	height: 42px;
	padding: 0 .6rem;
	text-align: center;
}

.tlc-root .tlc-stepper {
	position: absolute;
	top: 50%;
	right: .4rem;
	display: grid;
	transform: translateY(-50%);
}

.tlc-root .tlc-stepper button {
	display: grid;
	place-items: center;
	width: 26px;
	height: 17px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--tlc-muted);
}

.tlc-root .tlc-stepper button:hover:not(:disabled) { background: var(--tlc-primary-soft); color: var(--tlc-primary); }
.tlc-root .tlc-stepper button:disabled { opacity: .45; cursor: not-allowed; }

.tlc-root .tlc-help {
	margin-top: .4rem;
	font-size: .8125rem;
	color: var(--tlc-muted);
}

.tlc-root .tlc-error {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--tlc-negative-text);
}

.tlc-root .tlc-error:not(:empty) { margin-top: .35rem; }

/* Slider */
.tlc-root .tlc-slider-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .35rem;
}

.tlc-root .tlc-slider-head .tlc-label { margin-bottom: 0; }

.tlc-root .tlc-range {
	--tlc-fill: 50%;
	display: block;
	width: 100%;
	height: 32px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.tlc-root .tlc-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--tlc-primary) var(--tlc-fill), #e2e9f3 var(--tlc-fill));
}

.tlc-root .tlc-range::-moz-range-track { height: 6px; border-radius: 999px; background: #e2e9f3; }
.tlc-root .tlc-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--tlc-primary); }

.tlc-root .tlc-range::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	margin-top: -8px;
	border: 5px solid var(--tlc-primary);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(23, 54, 93, .25);
	-webkit-appearance: none;
}

.tlc-root .tlc-range::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 5px solid var(--tlc-primary);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(23, 54, 93, .25);
}

.tlc-root .tlc-range:focus { outline: none; }
.tlc-root .tlc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(23, 105, 221, .3); }
.tlc-root .tlc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(23, 105, 221, .3); }

.tlc-root .tlc-ticks {
	position: relative;
	height: 1.25rem;
	margin: 0 11px;
	font-size: .8125rem;
	line-height: 1.25rem;
	color: var(--tlc-muted);
	font-variant-numeric: tabular-nums;
}

.tlc-root .tlc-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tlc-root .tlc-ticks span.is-first { transform: translateX(-11px); }
.tlc-root .tlc-ticks span.is-last { transform: translateX(calc(-100% + 11px)); }

/* Advanced settings */
.tlc-root .tlc-advanced {
	margin-top: 1.5rem;
	border: 1px solid #e3eaf4;
	border-radius: 12px;
	background: #f6f9fd;
	overflow: hidden;
}

.tlc-root .tlc-advanced__toggle {
	display: flex;
	align-items: center;
	gap: .6rem;
	width: 100%;
	min-height: 48px;
	padding: .75rem 1rem;
	border: 0;
	border-radius: 0;
	background: #eef3fa;
	color: var(--tlc-navy);
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
}

.tlc-root .tlc-chevron { transition: transform .2s ease; }
.tlc-root [aria-expanded="false"] > .tlc-chevron { transform: rotate(-90deg); }

.tlc-root .tlc-advanced__panel { padding: .25rem 1rem .5rem; }

.tlc-root .tlc-option { padding: .85rem 0; }
.tlc-root .tlc-option + .tlc-option { border-top: 1px solid #dfe7f2; }

.tlc-root .tlc-option__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(96px, 128px);
	align-items: center;
	gap: .75rem;
}

.tlc-root .tlc-checkbox {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--tlc-primary);
	cursor: pointer;
	align-self: start;
	margin-top: .1rem;
}

.tlc-root .tlc-option__title {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-weight: 600;
}

.tlc-root .tlc-option__title label { cursor: pointer; }

.tlc-root .tlc-option__label {
	display: block;
	margin-top: .1rem;
	font-size: .875rem;
	color: var(--tlc-muted);
}

.tlc-root .tlc-option.is-disabled .tlc-option__label { color: #8a99ad; }

.tlc-root .tlc-input-wrap--small .tlc-input { height: 42px; padding-right: 2.3rem; }

.tlc-root .tlc-info {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 1.5px solid var(--tlc-muted);
	border-radius: 50%;
	background: transparent;
	color: var(--tlc-muted);
	font-size: 0;
}

.tlc-root .tlc-info::before { content: "i"; font-size: 11px; font-weight: 700; line-height: 1; font-family: Georgia, serif; }
.tlc-root .tlc-info::after { content: ""; position: absolute; inset: -12px; }
.tlc-root .tlc-info:hover,
.tlc-root .tlc-info[aria-expanded="true"] { border-color: var(--tlc-primary); color: var(--tlc-primary); }

.tlc-root .tlc-info-text {
	margin: .6rem 0 0 calc(22px + .75rem);
	font-size: .8125rem;
	color: var(--tlc-muted-strong);
}

/* ---------------- Results ---------------- */
.tlc-root .tlc-results { container: tlc-results / inline-size; }

.tlc-root .tlc-segmented {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--tlc-border);
	border-radius: 999px;
	background: var(--tlc-bg);
}

.tlc-root .tlc-segmented button {
	min-height: 36px;
	padding: .35rem .95rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--tlc-navy);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
}

.tlc-root .tlc-segmented button[aria-pressed="true"] { background: var(--tlc-primary); color: #fff; }
.tlc-root .tlc-segmented button:disabled { color: #8a99ad; cursor: not-allowed; }

.tlc-root .tlc-hint {
	margin: -.6rem 0 1rem;
	font-size: .8125rem;
	color: var(--tlc-muted);
	text-align: right;
}

.tlc-root .tlc-hint[hidden] { display: none; }

.tlc-root .tlc-status:not(:empty) {
	margin-bottom: 1rem;
	padding: .6rem .85rem;
	border-radius: 8px;
	background: #fdf1ef;
	color: var(--tlc-negative-text);
	font-size: .875rem;
	font-weight: 600;
}

.tlc-root .tlc-results.is-stale .tlc-kpis,
.tlc-root .tlc-results.is-stale .tlc-chart { opacity: .45; }

.tlc-root .tlc-kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	transition: opacity .15s ease;
}

@container tlc-results (min-width: 540px) {
	.tlc-root .tlc-kpis { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: .6rem; }
	.tlc-root .tlc-kpi { padding: .85rem .8rem; }
	.tlc-root .tlc-kpi__value { font-size: clamp(1.1rem, .55rem + 2.1cqi, 1.6rem); }
	.tlc-root .tlc-kpi--primary .tlc-kpi__value { font-size: clamp(1.3rem, .6rem + 2.8cqi, 2rem); }
}

@container tlc-results (max-width: 300px) {
	.tlc-root .tlc-kpis { grid-template-columns: minmax(0, 1fr); }
}

.tlc-root .tlc-kpi {
	min-width: 0;
	padding: .9rem 1rem;
	border-radius: 12px;
	background: var(--tlc-bg);
	border: 1px solid #e7eef7;
}

.tlc-root .tlc-kpi__label {
	min-height: 2.6em;
	font-size: .8125rem;
	line-height: 1.3;
	color: var(--tlc-muted-strong);
}

.tlc-root .tlc-kpi__value {
	margin-top: .2rem;
	font-size: clamp(1.25rem, .9rem + 1.6cqi, 1.6rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
	color: var(--tlc-navy);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.tlc-root .tlc-kpi--primary .tlc-kpi__value { font-size: clamp(1.4rem, 1rem + 2.2cqi, 2rem); }

.tlc-root .tlc-kpi__value.is-positive { color: var(--tlc-positive-text); }
.tlc-root .tlc-kpi__value.is-negative { color: var(--tlc-negative-text); }

.tlc-root .tlc-kpi__meta { margin-top: .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }

.tlc-root .tlc-kpi__sub {
	margin-top: .35rem;
	font-size: .8125rem;
	line-height: 1.35;
	color: var(--tlc-muted);
}

.tlc-root .tlc-kpi__meta .tlc-kpi__sub { margin-top: 0; }

.tlc-root .tlc-kpi__note {
	margin-top: .45rem;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--tlc-muted-strong);
}

.tlc-root .tlc-kpi__note[hidden],
.tlc-root .tlc-kpi__sub[hidden] { display: none; }

.tlc-root .tlc-badge {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	padding: .1rem .5rem;
	border-radius: 6px;
	background: #eef2f7;
	color: var(--tlc-muted-strong);
	font-size: .8125rem;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.tlc-root .tlc-badge.is-positive { background: #e2f4ef; color: var(--tlc-positive-text); }
.tlc-root .tlc-badge.is-negative { background: #fdecea; color: var(--tlc-negative-text); }

.tlc-root .tlc-badge.is-positive::before,
.tlc-root .tlc-badge.is-negative::before {
	content: "";
	width: .85em;
	height: .85em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tlc-root .tlc-badge.is-negative::before { transform: rotate(180deg); }

/* Chart */
.tlc-root .tlc-chart { margin-top: 1.25rem; transition: opacity .15s ease; }

.tlc-root .tlc-chart__plot {
	position: relative;
	height: 300px;
	touch-action: pan-y;
	border-radius: 8px;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
}

@container tlc-results (max-width: 520px) {
	.tlc-root .tlc-chart__plot { height: 250px; }
}

.tlc-root .tlc-chart__svg { display: block; overflow: visible; }

.tlc-root .tlc-chart__grid line { stroke: #e9eff7; stroke-width: 1; }
.tlc-root .tlc-chart__axis-line { stroke: #c9d6e7; stroke-width: 1; }
.tlc-root .tlc-chart__labels text { fill: var(--tlc-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.tlc-root .tlc-chart__line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tlc-root .tlc-chart__line--value { stroke: var(--tlc-primary); stroke-width: 3; }
.tlc-root .tlc-chart__line--contrib { stroke: #7fa9e8; stroke-width: 2.25; stroke-dasharray: 7 6; }

.tlc-root .tlc-chart__end--value { fill: var(--tlc-primary); stroke: #fff; stroke-width: 2.5; }
.tlc-root .tlc-chart__end--contrib { fill: #9dbdee; stroke: #fff; stroke-width: 2; }

.tlc-root .tlc-chart__pill text { font-size: 12px; font-weight: 700; }
.tlc-root .tlc-chart__pill--value rect { fill: var(--tlc-primary); }
.tlc-root .tlc-chart__pill--value text { fill: #fff; }
.tlc-root .tlc-chart__pill--contrib rect { fill: #e8f0fc; stroke: #c4d7f3; }
.tlc-root .tlc-chart__pill--contrib text { fill: var(--tlc-primary-dark); }

.tlc-root .tlc-chart__crosshair { stroke: #9fb6d6; stroke-width: 1; stroke-dasharray: 3 3; }
.tlc-root .tlc-chart__dot--value { fill: var(--tlc-primary); stroke: #fff; stroke-width: 2.5; }
.tlc-root .tlc-chart__dot--contrib { fill: #7fa9e8; stroke: #fff; stroke-width: 2; }

.tlc-root .tlc-chart__tooltip {
	position: absolute;
	z-index: 2;
	display: grid;
	gap: .2rem;
	min-width: 190px;
	padding: .6rem .75rem;
	border: 1px solid var(--tlc-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 8px 24px rgba(23, 54, 93, .14);
	font-size: .8125rem;
	line-height: 1.35;
	pointer-events: none;
}

.tlc-root .tlc-chart__tooltip[hidden] { display: none; }
.tlc-root .tlc-chart__tooltip strong { color: var(--tlc-navy); }

.tlc-root .tlc-chart__tooltip-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--tlc-muted-strong); }
.tlc-root .tlc-chart__tooltip-row b { color: var(--tlc-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tlc-root .tlc-chart__tooltip-row--value span::before,
.tlc-root .tlc-chart__tooltip-row--contrib span::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 3px;
	margin: 0 .4rem .2rem 0;
	border-radius: 2px;
	background: var(--tlc-primary);
}
.tlc-root .tlc-chart__tooltip-row--contrib span::before { background: #7fa9e8; }

.tlc-root .tlc-chart__axis {
	margin-top: -.15rem;
	font-size: .8125rem;
	color: var(--tlc-muted);
	text-align: center;
}

.tlc-root .tlc-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem 1.75rem;
	margin: .75rem 0 0;
	padding: 0;
	list-style: none;
	font-size: .875rem;
	color: var(--tlc-text);
}

.tlc-root .tlc-legend__item { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }

.tlc-root .tlc-legend__item::before { content: ""; flex: none; }
.tlc-root .tlc-legend__item--value::before { width: 12px; height: 12px; border-radius: 50%; background: var(--tlc-primary); }
.tlc-root .tlc-legend__item--contrib::before { width: 20px; border-top: 3px dashed #7fa9e8; }

/* ---------------- Yearly breakdown ---------------- */
.tlc-root .tlc-yearly__title { font-size: inherit; }

.tlc-root .tlc-collapse {
	display: flex;
	align-items: center;
	gap: .85rem;
	width: 100%;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tlc-navy);
	font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
	font-weight: 700;
	text-align: left;
}

.tlc-root .tlc-collapse__label { flex: 1 1 auto; }
.tlc-root .tlc-collapse .tlc-chevron { color: var(--tlc-navy); }

.tlc-root .tlc-icon-tile {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--tlc-primary-soft);
	color: var(--tlc-primary);
}

.tlc-root .tlc-yearly__panel { margin-top: 1rem; }

.tlc-root .tlc-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	border-radius: 8px;
	-webkit-overflow-scrolling: touch;
}

.tlc-root .tlc-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: .875rem;
	font-variant-numeric: tabular-nums;
	background: transparent;
}

.tlc-root .tlc-table th,
.tlc-root .tlc-table td {
	padding: .5rem .75rem;
	border: 0;
	border-bottom: 1px solid #e8eef6;
	background: transparent;
	color: var(--tlc-text);
	text-align: right;
	white-space: nowrap;
	vertical-align: middle;
}

.tlc-root .tlc-table thead th {
	background: #f1f5fb;
	color: var(--tlc-navy);
	font-size: .8125rem;
	font-weight: 600;
	border-bottom-color: #dde6f1;
}

.tlc-root .tlc-table th:first-child,
.tlc-root .tlc-table td:first-child { text-align: center; }

.tlc-root .tlc-table tbody th { font-weight: 500; }
.tlc-root .tlc-table__gap td { color: var(--tlc-muted); }
.tlc-root .tlc-table__last th,
.tlc-root .tlc-table__last td { font-weight: 700; color: var(--tlc-navy); }

.tlc-root .tlc-table tfoot th,
.tlc-root .tlc-table tfoot td {
	border-top: 2px solid #dde6f1;
	border-bottom: 0;
	font-weight: 700;
	color: var(--tlc-navy);
}

.tlc-root .tlc-yearly__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin-top: .75rem;
}

.tlc-root .tlc-table-note { font-size: .8125rem; color: var(--tlc-muted); }

/* ---------------- Methodology ---------------- */
.tlc-root .tlc-method { display: grid; gap: 1.25rem; }

.tlc-root .tlc-method__block { display: flex; gap: 1rem; align-items: flex-start; }
.tlc-root .tlc-method__block + .tlc-method__block { padding-top: 1.25rem; border-top: 1px solid #e8eef6; }

.tlc-root .tlc-method__body { min-width: 0; font-size: .9375rem; color: var(--tlc-text); }
.tlc-root .tlc-method__body > * + * { margin-top: .5rem; }

.tlc-root .tlc-method__title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tlc-navy);
}

.tlc-root .tlc-method__details > * + * { margin-top: .5rem; }
.tlc-root .tlc-method__details :is(h3, h4, h5, h6) {
	margin-top: 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--tlc-navy);
}

.tlc-root .tlc-list { padding-left: 1.15rem; list-style: disc; }
.tlc-root .tlc-list li { margin: .2rem 0; }

.tlc-root .tlc-link-button {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 32px;
	padding: .25rem 0;
	border: 0;
	background: transparent;
	color: var(--tlc-primary);
	font-size: .9375rem;
	font-weight: 600;
	text-align: left;
}

.tlc-root .tlc-link-button:hover { color: var(--tlc-primary-dark); text-decoration: underline; }
.tlc-root .tlc-link-button[hidden] { display: none; }

.tlc-root .tlc-link-button--arrow::after {
	content: "→";
	transition: transform .15s ease;
}

.tlc-root .tlc-link-button--arrow[aria-expanded="true"]::after { transform: rotate(90deg); }

.tlc-root .tlc-noscript {
	padding: 1rem;
	border-radius: 10px;
	background: #fdf1ef;
	color: var(--tlc-negative-text);
	font-weight: 600;
}

.tlc-root [hidden] { display: none !important; }

@container tlc (max-width: 340px) {
	.tlc-root .tlc-option__row { grid-template-columns: auto minmax(0, 1fr); }
	.tlc-root .tlc-option__row .tlc-input-wrap { grid-column: 2; }
	.tlc-root .tlc-hint { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.tlc-root *,
	.tlc-root *::before,
	.tlc-root *::after { transition: none !important; animation: none !important; }
}
