/* ============================================================
   Generator Kalkulatorer – fælles stylesheet (v1.1)
   Farver styres af variablerne øverst i .gk
   ============================================================ */

.gk {
	--gk-ink: #2a2b2a;
	--gk-accent: #dfaa26;
	--gk-line: #dcdeda;
	--gk-muted: #555854;
	--gk-soft: #d4d6d2;
	color: var(--gk-ink);
	font-size: 16px;
	line-height: 1.5;
	max-width: 980px;
	margin: 0 auto 32px;
}
.gk *, .gk *::before, .gk *::after { box-sizing: border-box; }

.gk .gk-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 600; margin: 0 0 8px; color: var(--gk-ink); }
.gk .gk-intro { margin: 0 0 24px; color: var(--gk-muted); font-size: 17px; max-width: 42em; }
.gk .gk-note { margin: 16px 0 0; font-size: 14px; color: var(--gk-muted); }

/* ---- Kort og foldud ---------------------------------------- */
.gk .gk-card { background: #fff; border: 1px solid var(--gk-line); border-radius: 3px; margin: 0 0 10px; }

.gk details.gk-card > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	padding: 16px 24px;
}
.gk details.gk-card > summary::-webkit-details-marker { display: none; }
.gk details.gk-card > summary:focus-visible { outline: 2px solid var(--gk-ink); outline-offset: 2px; }
.gk .gk-sum-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gk .gk-sum-title { font-size: 19px; font-weight: 600; }
.gk .gk-sum-desc { font-size: 14px; color: var(--gk-muted); }
.gk .gk-sum-right { display: flex; align-items: center; gap: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gk .gk-sum-icon::before { content: "+"; display: inline-block; width: 20px; text-align: center; font-size: 24px; line-height: 1; font-weight: 400; }
.gk details[open] > summary .gk-sum-icon::before { content: "\2013"; }

.gk .gk-body { display: flex; flex-wrap: wrap; gap: 24px 32px; padding: 24px; }
.gk details.gk-card > .gk-body { border-top: 1px solid var(--gk-line); }
.gk .gk-body--stack { flex-direction: column; flex-wrap: nowrap; gap: 18px; }

/* ---- Enhedsguide ------------------------------------------- */
.gk .gk-guide { padding: 18px 24px 20px; }
.gk .gk-guide h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; color: var(--gk-ink); }
.gk .gk-guide dl { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15px; }
.gk .gk-guide dl > div { flex: 1 1 200px; display: flex; gap: 10px; align-items: baseline; }
.gk .gk-guide dt { flex: 0 0 40px; font-weight: 600; margin: 0; }
.gk .gk-guide dd { margin: 0; color: var(--gk-muted); }

/* ---- Felter ------------------------------------------------ */
.gk .gk-fields { flex: 1.3 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.gk .gk-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.gk .gk-field { flex: 1 1 130px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* Felter i en lodret stak må ikke få flex-basis som højde. */
.gk .gk-fields > .gk-field, .gk .gk-body--stack > .gk-field { flex: none; }
.gk .gk-field--narrow { flex: none; max-width: 200px; }
.gk .gk-label { font-size: 14px; font-weight: 600; margin: 0; color: var(--gk-ink); }
.gk .gk-input, .gk .gk-select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #8c8f8a;
	border-radius: 3px;
	font: inherit;
	font-size: 16px;
	color: var(--gk-ink);
	background-color: #fff;
	font-variant-numeric: tabular-nums;
}
.gk .gk-input:focus-visible, .gk .gk-select:focus-visible, .gk .gk-seg button:focus-visible, .gk .gk-btn:focus-visible { outline: 2px solid var(--gk-ink); outline-offset: 2px; }
.gk .gk-sep { padding-bottom: 12px; font-size: 14px; color: var(--gk-muted); }

.gk .gk-seg { display: flex; gap: 8px; }
.gk .gk-seg button {
	flex: 1 1 0;
	min-height: 48px;
	padding: 0 12px;
	border: 1px solid var(--gk-ink);
	border-radius: 3px;
	background: #fff;
	color: var(--gk-ink);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.gk .gk-seg button[aria-pressed="true"] { background: var(--gk-ink); color: #fff; }

/* ---- Resultat ---------------------------------------------- */
.gk .gk-result {
	flex: 1 1 280px;
	min-width: 0;
	background: var(--gk-ink);
	color: #fff;
	border-radius: 3px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: center;
}
.gk .gk-result--top { align-self: flex-start; }
.gk .gk-result [hidden] { display: none; }
.gk .gk-result-group { display: flex; flex-direction: column; gap: 6px; }
.gk .gk-result-label { font-size: 14px; color: var(--gk-soft); }
.gk .gk-result-value { font-size: 44px; line-height: 1.05; font-weight: 600; color: var(--gk-accent); font-variant-numeric: tabular-nums; }
.gk .gk-result-sub { font-size: 15px; color: var(--gk-soft); margin-top: 8px; }
.gk .gk-result-sub strong, .gk .gk-result-lines strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.gk .gk-result-head { font-size: 17px; font-weight: 600; }
.gk .gk-result-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #555854; font-size: 15px; color: var(--gk-soft); }
.gk .gk-result-lines span { display: flex; justify-content: space-between; gap: 12px; }

/* ---- Motorer ----------------------------------------------- */
.gk .gk-motors { display: flex; flex-direction: column; gap: 8px; }
.gk .gk-motor { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.gk .gk-motor-n { flex: 0 0 64px; font-size: 14px; font-weight: 600; }
.gk .gk-motor .gk-input { flex: 1 1 80px; width: auto; min-width: 0; }
.gk .gk-motor .gk-select { flex: 1.4 1 150px; width: auto; min-width: 0; }
.gk .gk-motor-info { flex: 1 1 110px; min-width: 0; font-size: 14px; color: var(--gk-muted); font-variant-numeric: tabular-nums; }

.gk .gk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 44px;
	padding: 0 18px;
	background: #fff;
	border: 1px solid var(--gk-ink);
	border-radius: 3px;
	color: var(--gk-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

@media (max-width: 600px) {
	.gk details.gk-card > summary, .gk .gk-body, .gk .gk-guide { padding-left: 16px; padding-right: 16px; }
	.gk .gk-result-value { font-size: 36px; }
}

/* ---- Kompakt resultatlinje (kabel) --------------------------- */
.gk .gk-result--bar { flex: none; padding: 18px 24px; }
.gk .gk-result-group--split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.gk .gk-result-main { display: flex; flex-direction: column; gap: 4px; }
.gk .gk-result--bar .gk-result-value { font-size: 36px; }
.gk .gk-result-side { font-size: 24px; line-height: 1.2; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* ---- Værn mod WordPress' automatiske <br> og tomme <p> ------- */
.gk br { display: none; }
.gk p:empty { display: none; }
