/* ATF Break-even på anställning v1.5 */
.atf-bea {
	background: #faf7f2;
	border: 1px solid #e6ddce;
	border-radius: 4px;
	padding: 32px;
	margin: 32px 0;
	color: #0f1e2e;
}

.atf-bea__header {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e6ddce;
}

.atf-bea__eyebrow {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #c97a4a;
	margin-bottom: 8px;
	font-weight: 600;
}

.atf-bea__title {
	font-size: 26px;
	font-weight: 700;
	color: #0f1e2e;
	margin: 0 0 10px;
	line-height: 1.25;
}

.atf-bea__subtitle {
	font-size: 15px;
	color: #4a5568;
	margin: 0;
	line-height: 1.6;
}

.atf-bea__grid {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) 1.4fr;
	gap: 28px;
}

@media (max-width: 860px) {
	.atf-bea__grid {
		grid-template-columns: 1fr;
	}
	.atf-bea {
		padding: 22px;
	}
}

.atf-bea__input {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.atf-bea-section {
	background: #fff;
	border: 1px solid #e6ddce;
	border-radius: 4px;
	padding: 16px 18px;
}

.atf-bea-section__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1a5d3e;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0ebe0;
}

.atf-bea-field {
	margin-bottom: 12px;
}
.atf-bea-field:last-child {
	margin-bottom: 0;
}

.atf-bea-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #0f1e2e;
	margin-bottom: 5px;
}

.atf-bea-field input,
.atf-bea-field select {
	width: 100%;
	padding: 9px 10px;
	font-size: 14px;
	background: #fff;
	border: 1px solid #d6c9b3;
	border-radius: 3px;
	color: #0f1e2e;
	box-sizing: border-box;
}

.atf-bea-field input:focus,
.atf-bea-field select:focus {
	outline: none;
	border-color: #1a5d3e;
	box-shadow: 0 0 0 2px rgba(26, 93, 62, 0.15);
}

.atf-bea-hint {
	display: block;
	font-size: 12px;
	color: #6b7a8c;
	margin-top: 4px;
	line-height: 1.5;
}

.atf-bea-btn {
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	background: #1a5d3e;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.15s;
	margin-top: 8px;
}

.atf-bea-btn:hover {
	background: #144731;
}

.atf-bea-btn.is-copied {
	background: #c97a4a;
}

.atf-bea__output {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.atf-bea-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 520px) {
	.atf-bea-hero {
		grid-template-columns: 1fr;
	}
}

.atf-bea-hero__col {
	background: #fff;
	border: 1px solid #e6ddce;
	border-radius: 4px;
	padding: 18px 20px;
}

.atf-bea-hero__col--highlight {
	background: #0f1e2e;
	border-color: #0f1e2e;
}

.atf-bea-hero__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7a8c;
	margin-bottom: 8px;
}

.atf-bea-hero__col--highlight .atf-bea-hero__label {
	color: #c97a4a;
}

.atf-bea-hero__value {
	font-size: 28px;
	font-weight: 700;
	color: #0f1e2e;
	line-height: 1.1;
}

.atf-bea-hero__col--highlight .atf-bea-hero__value {
	color: #fff;
}

.atf-bea-hero__sub {
	font-size: 13px;
	color: #6b7a8c;
	margin-top: 6px;
	line-height: 1.4;
}

.atf-bea-hero__col--highlight .atf-bea-hero__sub {
	color: #b0b8c4;
}

.atf-bea-breakdown {
	background: #fff;
	border: 1px solid #e6ddce;
	border-radius: 4px;
	padding: 18px 20px;
}

.atf-bea-breakdown h3 {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #1a5d3e;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0ebe0;
}

.atf-bea-table {
	width: 100%;
	border-collapse: collapse;
}

.atf-bea-table td {
	padding: 8px 4px;
	font-size: 14px;
	border-bottom: 1px solid #f5efe3;
	vertical-align: top;
}

.atf-bea-table td:first-child {
	color: #4a5568;
}

.atf-bea-table td:last-child {
	text-align: right;
	color: #0f1e2e;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.atf-bea-table tr:last-child td {
	border-bottom: none;
}

.atf-bea-row-strong td {
	font-size: 15px;
	padding: 10px 4px;
	border-top: 1px solid #d6c9b3;
	border-bottom: 1px solid #d6c9b3;
	background: #f8f5ef;
}

.atf-bea-row-muted td {
	font-size: 13px;
	color: #6b7a8c;
}
.atf-bea-row-muted td:last-child {
	color: #6b7a8c;
}

.atf-bea-note {
	background: #fff;
	border-left: 3px solid #c97a4a;
	padding: 14px 18px;
	border-radius: 0 4px 4px 0;
}

.atf-bea-note strong {
	display: block;
	font-size: 13px;
	color: #0f1e2e;
	margin-bottom: 4px;
}

.atf-bea-note p {
	margin: 0;
	font-size: 13px;
	color: #4a5568;
	line-height: 1.65;
}

/* =========================================================================
   CONTAINER QUERIES v2.9
   Brytpunkterna @media (max-width: 860px) och (max-width: 520px) ovan mäter
   fönsterbredden och löser därför aldrig ut i artikelspalten, som bara är
   ca 690 px bred på desktop. Reglerna nedan mäter kalkylatorns egen bredd.
   @media-versionerna ligger kvar som fallback.
   ========================================================================= */

.atf-bea {
	container-type: inline-size;
	container-name: atfcalc;
}

.atf-bea__grid {
	grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
}

.atf-bea__input,
.atf-bea__output {
	min-width: 0;
}

.atf-bea-hero {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.atf-bea-hero__col {
	min-width: 0;
}

.atf-bea-hero__value {
	font-size: clamp(20px, 4cqi, 28px);
	overflow-wrap: break-word;
}

@container atfcalc (max-width: 800px) {
	.atf-bea__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

@container atfcalc (max-width: 520px) {
	.atf-bea {
		padding: 22px;
	}

	.atf-bea-hero {
		grid-template-columns: minmax(0, 1fr);
	}
}
