/* ==========================================================================
   Savdoktoren Kundeservice – farver, typografi og knapper matcher savdoktoren.dk
   ========================================================================== */

:root {
	--sd-green: #54b584;
	--sd-green-hover: #40946a;
	--sd-green-700: #2d7f57;
	--sd-brown: #827264;
	--sd-brown-hover: #685b50;
	--sd-ink: #000;
	--sd-ink-2: #1f1d1f;
	--sd-text: #5d5b5d;
	--sd-muted: #7c797c;
	--sd-bg: #f2f2f2;
	--sd-sand: #e9e6e2;
	--sd-sand-2: #ddd9d6;
	--sd-tile: #f3f0ec;
	--sd-line: #f0eeeb;
	--sd-white: #fff;
	--sd-radius: 10px;
	--sd-radius-lg: 16px;
	--sd-shadow: 0 1px 2px rgba(31, 29, 31, 0.04), 0 6px 20px rgba(31, 29, 31, 0.07);
	--sd-shadow-lg: 0 2px 4px rgba(31, 29, 31, 0.04), 0 16px 40px rgba(31, 29, 31, 0.1);
	--sd-font: Manrope, "Helvetica Neue", Arial, sans-serif;
	--sd-gutter: 16px;
	--sd-bar-h: 62px;
	--sd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
	:root {
		--sd-gutter: 25px;
	}
}

/* Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	interpolate-size: allow-keywords;
	overflow-x: clip;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--sd-bg);
	color: var(--sd-text);
	font-family: var(--sd-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

.sd-main {
	flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--sd-ink);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--sd-ink-2);
	outline-offset: 2px;
}

::selection {
	background: var(--sd-sand-2);
	color: var(--sd-ink);
}

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

.sd-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--sd-radius);
	background: var(--sd-ink);
	color: var(--sd-white);
	font-weight: 700;
	text-decoration: none;
}

.sd-skip:focus {
	top: 12px;
}

.sd-wrap {
	width: 100%;
	max-width: calc(1200px + 2 * var(--sd-gutter));
	margin-inline: auto;
	padding-inline: var(--sd-gutter);
}

.sd-icon {
	flex: none;
}

.sd-only-desktop {
	display: none;
}

@media (min-width: 768px) {
	.sd-only-desktop {
		display: inline;
	}

	.sd-only-mobile {
		display: none;
	}
}

[hidden] {
	display: none !important;
}

/* Knapper (som savdoktoren.dk: 10px radius, ExtraBold, samme hover-farver)
   ========================================================================== */

.sd-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--sd-radius);
	font-family: var(--sd-font);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.sd-btn--green,
.wp-block-button__link {
	background: var(--sd-green);
	color: var(--sd-white);
}

.sd-btn--green:hover,
.wp-block-button__link:hover {
	background: var(--sd-green-hover);
	color: var(--sd-white);
}

.sd-btn--brown {
	background: var(--sd-brown);
	color: var(--sd-white);
}

.sd-btn--brown:hover {
	background: var(--sd-brown-hover);
	color: var(--sd-white);
}

.sd-btn--white {
	background: var(--sd-white);
	color: var(--sd-ink);
}

.sd-btn--white:hover {
	box-shadow: var(--sd-shadow);
}

/* Sekundær knap med kant – hover giver grå flade i kantens farve */
.sd-btn--ghost,
.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--sd-ink);
	box-shadow: inset 0 0 0 2px var(--sd-sand-2);
}

.sd-btn--ghost:hover,
.is-style-outline .wp-block-button__link:hover {
	background: var(--sd-sand-2);
	color: var(--sd-ink);
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 4px;
}

/* Ikon-felt (emner, kategorier, guides) */
.sd-tile {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--sd-tile);
	color: var(--sd-ink);
	transition: background-color 0.2s, color 0.2s;
}

.sd-tile .sd-icon {
	width: 22px;
	height: 22px;
}

.sd-tile--lg {
	width: 56px;
	height: 56px;
	border-radius: 16px;
}

.sd-tile--lg .sd-icon {
	width: 26px;
	height: 26px;
}

/* USP-bjælke
   ========================================================================== */

.sd-usp {
	background: var(--sd-brown);
	color: var(--sd-white);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.sd-usp__list {
	display: flex;
	justify-content: center;
	gap: 22px;
	margin: 0 auto;
	padding-block: 11px;
	list-style: none;
}

.sd-usp__list li {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.sd-usp__list .sd-icon {
	color: var(--sd-green);
	stroke-width: 3;
}

.sd-usp__list li:nth-child(n + 3) {
	display: none;
}

@media (max-width: 374px) {
	.sd-usp__list li:nth-child(n + 2) {
		display: none;
	}
}

@media (min-width: 640px) {
	.sd-usp__list {
		gap: 56px;
		padding-block: 14px;
		font-size: 13px;
	}

	.sd-usp__list li:nth-child(n + 2) {
		display: flex;
	}
}

/* Header
   ========================================================================== */

.sd-header {
	background: var(--sd-sand);
}

.sd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 72px;
	padding-block: 12px;
}

.sd-brand {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sd-brand__logo {
	width: 122px;
	height: auto;
}

.sd-brand__tag {
	color: var(--sd-brown);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sd-header__shop {
	min-height: 44px;
	padding: 10px 14px;
	font-size: 14px;
}

@media (min-width: 768px) {
	.sd-header__inner {
		min-height: 88px;
	}

	.sd-brand {
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.sd-brand__logo {
		width: 168px;
	}

	.sd-brand__tag {
		padding-left: 16px;
		border-left: 1px solid var(--sd-sand-2);
		font-size: 12px;
		line-height: 28px;
	}

	.sd-header__shop {
		min-height: 48px;
		padding: 12px 20px;
		font-size: 15px;
	}
}

/* Hero
   ========================================================================== */

.sd-hero {
	background: var(--sd-sand);
}

.sd-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	padding-block: 28px 40px;
}

.sd-hero__copy {
	min-width: 0;
}

.sd-hero__title {
	font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.sd-hero__lead {
	max-width: 36em;
	margin-top: 14px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.55;
}

.sd-search {
	position: relative;
	max-width: 640px;
	margin-top: 26px;
}

.sd-search__icon {
	position: absolute;
	top: 50%;
	left: 18px;
	color: var(--sd-ink);
	transform: translateY(-50%);
	pointer-events: none;
}

.sd-search__input {
	width: 100%;
	height: 58px;
	padding: 0 52px;
	border: 0;
	border-radius: var(--sd-radius);
	background: var(--sd-white);
	box-shadow: 0 1px 2px rgba(31, 29, 31, 0.05), 0 8px 24px rgba(111, 77, 51, 0.08);
	color: var(--sd-ink);
	font-family: var(--sd-font);
	font-size: 16px;
	font-weight: 600;
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow 0.2s;
}

.sd-search__input::placeholder {
	color: var(--sd-muted);
	opacity: 1;
}

.sd-search__input::-webkit-search-cancel-button {
	display: none;
}

.sd-search__input:focus {
	outline: none;
	box-shadow: 0 1px 2px rgba(31, 29, 31, 0.06), 0 12px 32px rgba(111, 77, 51, 0.16);
}

.sd-search__clear {
	position: absolute;
	top: 50%;
	right: 10px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sd-bg);
	color: var(--sd-ink);
	cursor: pointer;
	transform: translateY(-50%);
}

.sd-search__clear:hover {
	background: var(--sd-sand-2);
}

.sd-suggest {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
}

.sd-suggest__label {
	flex: none;
	color: var(--sd-text);
	font-weight: 700;
}

/* Mobil: én linje, der kan scrolles sidelæns (som emne-chipsene) */
@media (max-width: 639px) {
	.sd-suggest {
		flex-wrap: nowrap;
		margin-inline: calc(-1 * var(--sd-gutter));
		padding-inline: var(--sd-gutter);
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		mask-image: linear-gradient(to right, transparent 0, #000 var(--sd-gutter), #000 calc(100% - 28px), transparent 100%);
	}

	.sd-suggest::-webkit-scrollbar {
		display: none;
	}

	.sd-suggest__btn {
		flex: none;
		white-space: nowrap;
	}
}

.sd-suggest__btn {
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--sd-ink);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s;
}

.sd-suggest__btn:hover {
	background: var(--sd-white);
}

.sd-hero__person {
	display: none;
	margin: 0;
}

@media (min-width: 640px) {
	.sd-hero__inner {
		padding-block: 44px 56px;
	}

	.sd-hero__lead {
		font-size: 18px;
	}

	.sd-search__input {
		height: 64px;
		font-size: 17px;
	}
}

@media (min-width: 960px) {
	.sd-hero__inner {
		grid-template-columns: minmax(0, 1fr) 400px;
		align-items: end;
		gap: 40px;
		padding-block: 0;
	}

	.sd-hero__copy {
		padding-block: 56px 72px;
	}

	.sd-hero__person {
		position: relative;
		display: block;
		align-self: end;
	}

	.sd-hero__person img {
		width: 340px;
		margin-left: auto;
	}

	.sd-bubble {
		position: absolute;
		top: 64px;
		left: -48px;
		display: grid;
		gap: 8px;
		max-width: 230px;
		padding: 16px 20px;
		border-radius: var(--sd-radius-lg);
		background: var(--sd-white);
		box-shadow: var(--sd-shadow-lg);
		line-height: 1.3;
		animation: sd-pop 0.6s 0.25s var(--sd-ease) both;
	}

	.sd-bubble::after {
		content: "";
		position: absolute;
		right: -7px;
		top: 26px;
		width: 16px;
		height: 16px;
		border-radius: 3px;
		background: var(--sd-white);
		transform: rotate(45deg);
	}

	.sd-bubble__text {
		color: var(--sd-ink);
		font-size: 17px;
		font-weight: 800;
		line-height: 1.3;
	}

	.sd-bubble__name {
		color: var(--sd-muted);
		font-size: 13px;
		font-weight: 600;
	}
}

@keyframes sd-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.96);
	}
}

/* Emner (kategori-oversigt)
   ========================================================================== */

.sd-topics {
	padding-top: 32px;
}

.sd-topics__title {
	margin-bottom: 14px;
	font-size: 18px;
}

.sd-topics__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-topic {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	min-height: 72px;
	padding: 12px;
	border-radius: var(--sd-radius-lg);
	background: var(--sd-white);
	color: var(--sd-ink);
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s var(--sd-ease);
	-webkit-tap-highlight-color: transparent;
}

.sd-topic .sd-tile {
	width: 40px;
	height: 40px;
	border-radius: 11px;
}

.sd-topic .sd-tile .sd-icon {
	width: 20px;
	height: 20px;
}

.sd-topic__text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.sd-topic__title {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	hyphens: auto;
	overflow-wrap: anywhere;
}

.sd-topic__count {
	color: var(--sd-muted);
	font-size: 12px;
	font-weight: 700;
}

@media (hover: hover) {
	.sd-topic:hover {
		box-shadow: var(--sd-shadow);
		transform: translateY(-2px);
	}
}

/* Valgt emne: grønt ikon + skygge */
.sd-topic.is-active {
	box-shadow: var(--sd-shadow);
}

.sd-topic.is-active .sd-tile {
	background: var(--sd-green);
	color: var(--sd-white);
}

@media (min-width: 640px) {
	.sd-topics__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}

	.sd-topic {
		padding: 16px;
	}

	.sd-topic__title {
		font-size: 15px;
	}

	.sd-topic__count {
		font-size: 13px;
	}
}

@media (min-width: 1100px) {
	.sd-topics {
		padding-top: 40px;
	}

	.sd-topics__title {
		margin-bottom: 16px;
		font-size: 20px;
	}

	.sd-topics__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.sd-topic {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
		min-height: 148px;
		padding: 20px 18px 18px;
	}

	.sd-topic .sd-tile {
		width: 48px;
		height: 48px;
		border-radius: 13px;
	}

	.sd-topic .sd-tile .sd-icon {
		width: 24px;
		height: 24px;
	}
}

/* Filter-bjælke (glider ind fra toppen, når emne-kortene er ude af syne)
   ========================================================================== */

.sd-list {
	margin-top: 20px;
}

.sd-bar {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 40;
	padding-block: 10px;
	background: rgba(242, 242, 242, 0.92);
	box-shadow: 0 6px 24px rgba(31, 29, 31, 0.08);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	transform: translateY(-110%);
	visibility: hidden;
	transition: transform 0.3s var(--sd-ease), visibility 0s linear 0.3s;
}

.sd-bar.is-visible {
	transform: none;
	visibility: visible;
	transition: transform 0.3s var(--sd-ease), visibility 0s;
}

.admin-bar .sd-bar {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .sd-bar {
		top: 32px;
	}
}

.sd-chips {
	display: flex;
	gap: 8px;
	margin-inline: calc(-1 * var(--sd-gutter));
	padding-inline: var(--sd-gutter);
	overflow-x: auto;
	scroll-padding-inline: var(--sd-gutter);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	mask-image: linear-gradient(to right, transparent 0, #000 var(--sd-gutter), #000 calc(100% - 28px), transparent 100%);
}

.sd-chips::-webkit-scrollbar {
	display: none;
}

.sd-chip {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--sd-white);
	color: var(--sd-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.18s, color 0.18s;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.sd-chip:hover {
		background: var(--sd-sand);
	}
}

.sd-chip.is-active {
	background: var(--sd-ink-2);
	color: var(--sd-white);
}

.sd-faq.is-searching .sd-bar,
.sd-faq.is-searching .sd-topics {
	display: none;
}

/* "Ryd"-knap */
.sd-status {
	padding-block: 4px 0;
}

.sd-clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px 0 12px;
	border: 0;
	border-radius: 999px;
	background: var(--sd-sand);
	color: var(--sd-ink);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s;
}

.sd-clear:hover {
	background: var(--sd-sand-2);
}

.sd-clear .sd-icon {
	stroke-width: 2.25;
}

/* Kategorier og spørgsmål
   ========================================================================== */

.sd-secs {
	display: grid;
	padding-bottom: 8px;
}

.sd-sec {
	display: grid;
	gap: 14px;
	padding-block: 20px;
	scroll-margin-top: calc(var(--sd-bar-h) + 8px);
}

.sd-sec__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sd-sec__head .sd-tile {
	background: var(--sd-white);
}

.sd-sec__title {
	font-size: 21px;
}

.sd-sec__desc {
	margin-top: 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.sd-sec__items,
.sd-results {
	overflow: hidden;
	border-radius: var(--sd-radius-lg);
	background: var(--sd-white);
}

.sd-results {
	margin-block: 12px 24px;
}

@media (min-width: 960px) {
	.sd-sec {
		grid-template-columns: 300px minmax(0, 1fr);
		gap: 48px;
		padding-block: 32px;
	}

	.sd-sec__head {
		position: sticky;
		top: calc(var(--sd-bar-h) + 24px);
		flex-direction: column;
		align-items: flex-start;
		align-self: start;
		gap: 16px;
	}

	.sd-sec__head .sd-tile {
		width: 52px;
		height: 52px;
		border-radius: 14px;
	}

	.sd-sec__head .sd-tile .sd-icon {
		width: 26px;
		height: 26px;
	}

	.sd-sec__title {
		font-size: 26px;
	}

	.sd-results,
	.sd-faq.is-searching .sd-status {
		max-width: calc(100% - 348px);
		margin-left: 348px;
	}
}

/* Ét spørgsmål (core/details) */
.sd-q {
	scroll-margin-top: calc(var(--sd-bar-h) + 16px);
}

.sd-q + .sd-q {
	border-top: 1px solid var(--sd-line);
}

.sd-q summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 16px;
	color: var(--sd-ink);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	transition: background-color 0.18s;
	-webkit-tap-highlight-color: transparent;
}

.sd-q summary::-webkit-details-marker,
.sd-q summary::marker {
	display: none;
	content: "";
}

.sd-q summary:focus-visible {
	outline-offset: -3px;
	border-radius: var(--sd-radius-lg);
}

/* Hover kun på lukkede spørgsmål – på et åbent spørgsmål ville fladen skille spørgsmål og svar ad */
@media (hover: hover) {
	.sd-q:not([open]) summary:hover {
		background: #faf9f7;
	}
}

.sd-q__icon {
	position: relative;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sd-bg);
	transition: background-color 0.25s, transform 0.35s var(--sd-ease);
}

.sd-q__icon::before,
.sd-q__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: var(--sd-ink);
	transition: transform 0.35s var(--sd-ease);
}

.sd-q__icon::after {
	transform: rotate(90deg);
}

.sd-q[open] .sd-q__icon {
	background: var(--sd-sand);
	transform: rotate(180deg);
}

.sd-q[open] .sd-q__icon::after {
	transform: rotate(0deg);
}

/* Glidende åbning, hvor browseren understøtter det */
.sd-q::details-content {
	block-size: 0;
	overflow-y: clip;
	transition: block-size 0.32s var(--sd-ease), content-visibility 0.32s allow-discrete;
}

.sd-q[open]::details-content {
	block-size: auto;
}

/* WordPress' flow-layout giver ellers svaret 24px top-margin */
.sd-q > summary,
.sd-q > .sd-answer {
	margin: 0;
}

.sd-answer {
	max-width: 68ch;
	padding: 0 16px 20px;
	color: var(--sd-text);
	font-size: 16px;
	line-height: 1.65;
}

@media (min-width: 640px) {
	.sd-q summary {
		padding: 22px 24px;
		font-size: 17px;
	}

	.sd-answer {
		padding: 0 72px 24px 24px;
	}
}

/* Søgeord markeres (CSS Custom Highlight API) */
::highlight(sd-search) {
	background-color: #fbeeb8;
	color: inherit;
}

/* Indhold i svar og på sider */
.sd-answer > * + *,
.sd-prose > * + * {
	margin-top: 12px;
}

.sd-answer a:not(.wp-block-button__link),
.sd-prose a:not(.wp-block-button__link) {
	color: var(--sd-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--sd-sand-2);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s;
}

.sd-answer a:not(.wp-block-button__link):hover,
.sd-prose a:not(.wp-block-button__link):hover {
	text-decoration-color: var(--sd-ink);
}

.sd-answer strong,
.sd-prose strong {
	color: var(--sd-ink-2);
	font-weight: 800;
}

.sd-answer ul,
.sd-answer ol,
.sd-prose ul,
.sd-prose ol {
	margin-bottom: 0;
	padding-left: 0;
	list-style: none;
}

.sd-answer li,
.sd-prose li {
	position: relative;
	padding-left: 24px;
}

.sd-answer li + li,
.sd-prose li + li {
	margin-top: 6px;
}

.sd-answer ul > li::before,
.sd-prose ul > li::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sd-ink-2);
}

.sd-answer ol,
.sd-prose ol {
	counter-reset: sd-ol;
}

.sd-answer ol > li,
.sd-prose ol > li {
	counter-increment: sd-ol;
}

.sd-answer ol > li::before,
.sd-prose ol > li::before {
	content: counter(sd-ol) ".";
	position: absolute;
	left: 0;
	color: var(--sd-ink);
	font-weight: 800;
}

.sd-answer .wp-block-image img,
.sd-prose .wp-block-image img {
	border-radius: var(--sd-radius);
}

.sd-answer .wp-block-buttons {
	margin-top: 16px;
}

/* "Kopiér link" i svaret */
.sd-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	padding: 6px 10px 6px 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--sd-muted);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s, color 0.18s;
}

.sd-copy:hover {
	background: var(--sd-bg);
	color: var(--sd-ink);
}

.sd-copy.is-done {
	color: var(--sd-ink);
}

/* Ingen resultater */
.sd-empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	margin-block: 16px 24px;
	padding: 40px 20px;
	border-radius: var(--sd-radius-lg);
	background: var(--sd-white);
	text-align: center;
}

.sd-empty__title {
	margin-top: 6px;
	font-size: 20px;
	overflow-wrap: anywhere;
}

.sd-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

/* Kontakt
   ========================================================================== */

.sd-contact {
	margin-top: 40px;
	padding-block: 48px 56px;
	background: var(--sd-sand-2);
}

.sd-contact__inner {
	display: grid;
	gap: 32px;
}

.sd-contact__title {
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
	letter-spacing: -0.02em;
}

.sd-contact__lead {
	max-width: 34em;
	margin-top: 12px;
	color: #4e4b4e;
	font-size: 16px;
	font-weight: 600;
}

.sd-channels {
	display: grid;
	gap: 18px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.sd-channel {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.sd-channel__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--sd-brown);
	color: var(--sd-white);
}

.sd-channel__text {
	display: grid;
	gap: 1px;
	line-height: 1.4;
}

.sd-channel__label {
	color: #4e4b4e;
	font-size: 13px;
	font-weight: 700;
}

.sd-channel__value {
	color: var(--sd-ink);
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
}

a.sd-channel__value:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sd-channel__meta {
	color: #4e4b4e;
	font-size: 14px;
	font-weight: 600;
}

.sd-guide {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
	padding: 16px;
	border-radius: var(--sd-radius-lg);
	background: rgba(255, 255, 255, 0.5);
}

.sd-guide .sd-tile {
	background: var(--sd-white);
}

.sd-guide__text {
	display: grid;
	flex: 1 1 180px;
	gap: 2px;
	color: #4e4b4e;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.sd-guide__text strong {
	color: var(--sd-ink);
	font-size: 15px;
	font-weight: 800;
}

.sd-guide .sd-btn {
	min-height: 44px;
	padding: 10px 18px;
	font-size: 14px;
}

.sd-formcard {
	padding: 24px 18px;
	border-radius: 20px;
	background: var(--sd-white);
	box-shadow: var(--sd-shadow);
}

.sd-formcard__title {
	margin-bottom: 18px;
	font-size: 22px;
}

@media (min-width: 640px) {
	.sd-formcard {
		padding: 32px;
	}
}

@media (min-width: 960px) {
	.sd-contact {
		margin-top: 56px;
		padding-block: 88px;
	}

	.sd-contact__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 72px;
		align-items: start;
	}

	.sd-contact__intro {
		position: sticky;
		top: 32px;
	}
}

/* Gravity Forms (Orbital) – finjustering til Savdoktorens udtryk */
.sd-formcard .gform-theme--framework {
	--gf-ctrl-font-family: var(--sd-font);
	--gf-font-family-base: var(--sd-font);
	--gf-ctrl-label-font-family-primary: var(--sd-font);
	--gf-ctrl-btn-font-family: var(--sd-font);
	--gf-ctrl-label-font-weight-primary: 700;
	--gf-ctrl-btn-font-weight: 800;
	--gf-ctrl-font-weight: 600;
	--gf-ctrl-shadow: none;
	--gf-ctrl-border-color-focus: #b9b2ab;
	--gf-ctrl-outline-color-focus: rgba(31, 29, 31, 0.07);
	--gf-ctrl-outline-width-focus: 3px;
	--gf-ctrl-outline-offset: 0;
	--gf-form-gap-y: 16px;
}

.sd-formcard .gform_required_legend {
	display: none;
}

.sd-formcard .gfield_required,
.sd-formcard .gfield_required_custom {
	color: var(--sd-muted) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
}

.sd-formcard textarea {
	--gf-ctrl-textarea-height: 110px;
	min-block-size: 110px !important;
	block-size: 110px !important;
}

/* Kompakt upload-felt */
.sd-formcard .gform_drop_area {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	padding: 12px 16px !important;
}

.sd-formcard .gform_drop_area::before {
	display: none !important;
}

.sd-formcard .gform_drop_instructions {
	margin: 0 !important;
	color: var(--sd-text);
	font-size: 14px;
	font-weight: 600;
}

.sd-formcard .gform_drop_area .gform_button_select_files {
	min-height: 36px !important;
	padding: 6px 14px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--sd-sand) !important;
	box-shadow: none !important;
	color: var(--sd-ink) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.sd-formcard .gform_drop_area .gform_button_select_files:hover {
	background: var(--sd-sand-2) !important;
}

.sd-formcard .gform_fileupload_rules,
.sd-formcard .gfield_description.gform_fileupload_rules {
	margin-top: 6px !important;
	color: var(--sd-muted);
	font-size: 12px !important;
}

/* Navn i fuld bredde, telefon og e-mail side om side */
@media (min-width: 640px) {
	.sd-formcard .gform_fields .gfield--width-third {
		grid-column: span 6;
	}

	.sd-formcard .gform_fields .gfield--width-third:first-child {
		grid-column: 1 / -1;
	}
}

.sd-formcard .gform_wrapper .gform_footer {
	margin-top: 8px;
	padding-top: 0;
}

.sd-formcard .gform_wrapper .gform_button,
.sd-formcard .gform_wrapper input[type="submit"] {
	width: 100%;
	min-height: 54px;
	border-radius: var(--sd-radius) !important;
	font-size: 16px !important;
}

.sd-formcard .gform_wrapper .gform_button:hover,
.sd-formcard .gform_wrapper input[type="submit"]:hover {
	background-color: var(--sd-green-hover) !important;
}

/* reCAPTCHA v3: badget skjules, Googles påkrævede tekst vises i stedet */
.grecaptcha-badge {
	visibility: hidden !important;
}

.sd-recaptcha-note {
	margin-top: 14px;
	color: var(--sd-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.sd-recaptcha-note a {
	color: inherit;
}

/* Sider (fx kvittering)
   ========================================================================== */

.sd-page {
	padding-block: 40px 64px;
	background: linear-gradient(var(--sd-sand) 0 220px, var(--sd-bg) 220px);
}

.sd-page__card {
	max-width: 720px;
	margin-inline: auto;
	padding: 32px 20px;
	border-radius: 20px;
	background: var(--sd-white);
	box-shadow: var(--sd-shadow);
}

.sd-page__check {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--sd-green);
	color: var(--sd-white);
}

.sd-page__check .sd-icon {
	stroke-width: 2.5;
}

.sd-page__title {
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
	letter-spacing: -0.02em;
}

.sd-prose {
	margin-top: 14px;
	font-size: 17px;
}

.sd-prose h2,
.sd-prose h3 {
	margin-top: 28px;
	font-size: 20px;
}

@media (min-width: 640px) {
	.sd-page {
		padding-block: 72px 96px;
	}

	.sd-page__card {
		padding: 48px 56px;
	}
}

/* Footer
   ========================================================================== */

.sd-footer {
	background: var(--sd-sand);
	color: var(--sd-text);
	font-size: 13px;
	font-weight: 600;
}

.sd-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 22px;
}

.sd-footer a {
	text-decoration: none;
}

.sd-footer a:hover {
	color: var(--sd-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Reduceret bevægelse */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
