/* =========================================================
   Styl pro kalkulačku reálného výnosu (výnos po inflaci)
   Samostatná kalkulačka – nezávislá na ostatních. Přebarvení přes --ic-accent.

   Každý selektor je prefixovaný "html #the-post .entry-content", aby
   měl dostatečně vysokou specificitu a přebil styly šablony
   (ta používá stejný vysoce specifický selektor).
   Pokud se ID postu jmenuje jinak, přepiš prefix hromadně.
   ========================================================= */
html #the-post .entry-content .realcalc {
	/* přebarvení podle webu: stačí změnit tuto proměnnou */
	--ic-accent: #0f8a86;
	--ic-accent-soft: #e6f7f6;
	--ic-accent-2: #c9603a; /* druhá barva grafu (reálná hodnota) */
	--ic-bg: #ffffff;
	--ic-border: #e2e5ea;
	--ic-text: #1a1d21;
	--ic-muted: #6b7280;
	--ic-radius: 14px;

	box-sizing: border-box;
	background: var(--ic-bg);
	color: var(--ic-text);
	border: 1px solid var(--ic-border);
	border-radius: var(--ic-radius);
	padding: 22px;
	max-width: 560px;
	margin: 0 auto;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}
html #the-post .entry-content .realcalc * {
	box-sizing: border-box;
}
html #the-post .entry-content .realcalc .ic-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 4px;
}
html #the-post .entry-content .realcalc .ic-sub {
	font-size: 13px;
	color: var(--ic-muted);
	margin: 0 0 18px;
}

html #the-post .entry-content .realcalc .ic-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
html #the-post .entry-content .realcalc .ic-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
html #the-post .entry-content .realcalc .ic-field.ic-full {
	grid-column: 1 / -1;
}
html #the-post .entry-content .realcalc label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ic-muted);
}

html #the-post .entry-content .realcalc .ic-inwrap {
	position: relative;
	display: flex;
	align-items: center;
}
html #the-post .entry-content .realcalc input[type='text'] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ic-border);
	border-radius: 9px;
	font-size: 15px;
	background: #fff;
	color: var(--ic-text);
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
html #the-post .entry-content .realcalc input[type='text']:focus {
	outline: none;
	border-color: var(--ic-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ic-accent) 18%, transparent);
}
html #the-post .entry-content .realcalc .ic-suffix {
	position: absolute;
	right: 12px;
	font-size: 13px;
	color: var(--ic-muted);
	pointer-events: none;
}
html #the-post .entry-content .realcalc input.ic-hassuffix {
	padding-right: 42px;
}

/* výsledek */
html #the-post .entry-content .realcalc .ic-result {
	margin-top: 20px;
	padding: 16px 18px;
	border-radius: 11px;
	background: var(--ic-accent-soft);
	border: 1px solid color-mix(in srgb, var(--ic-accent) 25%, var(--ic-border));
}
html #the-post .entry-content .realcalc .ic-result .ic-lead {
	font-size: 14px;
	color: #37424f;
}
html #the-post .entry-content .realcalc .ic-result b {
	color: var(--ic-accent);
}
html #the-post .entry-content .realcalc .ic-big {
	font-size: 26px;
	font-weight: 800;
	margin: 6px 0 2px;
	color: var(--ic-text);
}
html #the-post .entry-content .realcalc .ic-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
	margin-top: 12px;
}
html #the-post .entry-content .realcalc .ic-stat {
	font-size: 12.5px;
	color: var(--ic-muted);
}
html #the-post .entry-content .realcalc .ic-stat b {
	display: block;
	font-size: 15px;
	color: var(--ic-text);
	font-weight: 700;
}
html #the-post .entry-content .realcalc .ic-err {
	color: #b42318;
	font-size: 14px;
}

/* graf */
html #the-post .entry-content .realcalc .ic-chart {
	position: relative;
	margin-top: 18px;
	height: 260px;
}
html #the-post .entry-content .realcalc .ic-chart canvas {
	max-width: 100%;
}

/* poznámka pod kalkulačkou (mimo kartu) */
html #the-post .entry-content .realcalc-note {
	max-width: 560px;
	margin: 10px auto 0;
	padding: 0 4px;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: #6b7280;
}

@media (max-width: 460px) {
	html #the-post .entry-content .realcalc .ic-grid {
		grid-template-columns: 1fr;
	}
}
