/**
 * Envy Comfort Partner Portal - frontend.
 *
 * Alt er scopet under .epp-scope, så temaet ikke påvirkes.
 * Farver og fonte styres af CSS-variabler, der kan ændres under
 * Partnere -> Indstillinger.
 */

.epp-scope {
	--epp-bg: #f7f4ee;
	--epp-surface: #ffffff;
	--epp-ink: #26221e;
	--epp-muted: #6e665c;
	--epp-accent: #b08a55;
	--epp-line: #e4dcd0;
	--epp-button: #231f1c;
	--epp-button-text: #ffffff;
	--epp-font-heading: "Cormorant Garamond", "EB Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	--epp-font-body: inherit;
	--epp-radius: 2px;
	/* Luft over partnerområdet, så indholdet ikke lægger sig under den faste header. */
	--epp-portal-offset: 130px;

	font-family: var(--epp-font-body);
	color: var(--epp-ink);
	box-sizing: border-box;
}

.epp-scope *,
.epp-scope *::before,
.epp-scope *::after {
	box-sizing: border-box;
}

.epp-scope h2,
.epp-scope h3,
.epp-scope h4 {
	font-family: var(--epp-font-heading);
	font-weight: 400;
	color: var(--epp-ink);
	margin: 0;
	letter-spacing: 0.01em;
}

.epp-scope p {
	margin: 0 0 1em;
}

/* Temaets linkfarve neutraliseres, men komponenter med egen farve
   (knapper, faner, links) skal veje tungere - derfor .epp-scope foran dem. */
.epp-scope a {
	color: inherit;
	text-decoration: none;
}

.epp-eyebrow {
	display: block;
	font-family: var(--epp-font-body);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--epp-accent);
	margin-bottom: 10px;
}

.epp-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.epp-dot {
	margin: 0 6px;
	color: var(--epp-line);
}

.epp-scope .epp-link,
.epp-scope a.epp-link:link,
.epp-scope a.epp-link:visited {
	color: var(--epp-accent);
	text-decoration: none;
	font-size: 14px;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.epp-scope .epp-link:hover {
	color: var(--epp-accent);
	border-bottom-color: var(--epp-accent);
}

/* ---------------------------------------------------------------------------
   Knapper
--------------------------------------------------------------------------- */

.epp-scope .epp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--epp-font-body);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.epp-scope .epp-btn--primary,
.epp-scope a.epp-btn--primary:link,
.epp-scope a.epp-btn--primary:visited,
.epp-scope button.epp-btn--primary {
	background: var(--epp-button);
	color: var(--epp-button-text);
	border-color: var(--epp-button);
}

.epp-scope .epp-btn--primary:hover,
.epp-scope .epp-btn--primary:focus,
.epp-scope a.epp-btn--primary:hover,
.epp-scope a.epp-btn--primary:focus {
	background: var(--epp-button);
	color: var(--epp-button-text);
	border-color: var(--epp-button);
	opacity: 0.86;
}

.epp-scope .epp-btn--ghost,
.epp-scope a.epp-btn--ghost:link,
.epp-scope a.epp-btn--ghost:visited,
.epp-scope button.epp-btn--ghost {
	background: transparent;
	color: var(--epp-ink);
	border-color: var(--epp-line);
}

.epp-scope .epp-btn--ghost:hover,
.epp-scope .epp-btn--ghost:focus,
.epp-scope a.epp-btn--ghost:hover,
.epp-scope a.epp-btn--ghost:focus {
	background: transparent;
	color: var(--epp-ink);
	border-color: var(--epp-ink);
}

.epp-scope .epp-btn--block {
	width: 100%;
}

.epp-scope .epp-btn--sm {
	padding: 10px 18px;
	font-size: 10px;
	letter-spacing: 0.12em;
}

.epp-scope .epp-btn--sm .epp-icon {
	width: 15px;
	height: 15px;
}

/* ---------------------------------------------------------------------------
   Beskeder
--------------------------------------------------------------------------- */

.epp-notice {
	padding: 14px 18px;
	margin: 0 0 20px;
	border: 1px solid var(--epp-line);
	border-left-width: 3px;
	background: var(--epp-surface);
	font-size: 14px;
	line-height: 1.5;
}

.epp-notice--error {
	border-left-color: #a4462f;
	color: #8c3a26;
}

.epp-notice--success {
	border-left-color: #5c7a55;
	color: #405139;
}

.epp-notice--info {
	border-left-color: var(--epp-accent);
	color: var(--epp-muted);
}

/* ---------------------------------------------------------------------------
   Formularer
--------------------------------------------------------------------------- */

.epp-form .epp-field {
	margin: 0 0 18px;
}

.epp-field label {
	display: block;
	font-size: 13px;
	color: var(--epp-muted);
	margin-bottom: 7px;
}

.epp-field input[type="text"],
.epp-field input[type="email"],
.epp-field input[type="url"],
.epp-field input[type="password"],
.epp-field input[type="search"],
.epp-field select,
.epp-field textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--epp-line);
	border-radius: var(--epp-radius);
	background: var(--epp-surface);
	font-family: var(--epp-font-body);
	font-size: 15px;
	color: var(--epp-ink);
	transition: border-color 0.2s ease;
}

.epp-field input:focus,
.epp-field select:focus,
.epp-field textarea:focus {
	outline: none;
	border-color: var(--epp-accent);
}

.epp-field input:disabled {
	background: #faf8f5;
	color: var(--epp-muted);
}

.epp-field--check {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.epp-field--check label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	cursor: pointer;
}

.epp-field--check input[type="checkbox"] {
	margin: 0;
}

.epp-note {
	font-size: 13px;
	color: var(--epp-muted);
	line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Login
--------------------------------------------------------------------------- */

.epp-login {
	max-width: 520px;
}

.epp-login--card {
	background: var(--epp-surface);
	border: 1px solid var(--epp-line);
	padding: 42px 44px;
}

.epp-login__title {
	font-size: 30px;
	line-height: 1.2;
	margin-bottom: 18px;
}

.epp-login__intro {
	font-size: 14px;
	line-height: 1.65;
	color: var(--epp-muted);
	margin-bottom: 26px;
}

.epp-login__help {
	margin: 20px 0 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--epp-muted);
}

.epp-login__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------------------------------------------------------------------------
   Portal
--------------------------------------------------------------------------- */

.epp-portal {
	width: 100%;
	margin-top: var(--epp-portal-offset);
}

.epp-portal__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-bottom: 24px;
}

.epp-portal__company {
	font-size: 34px;
	line-height: 1.15;
}

.epp-portal__meta {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--epp-muted);
}

.epp-portal__tools {
	display: flex;
	align-items: center;
	gap: 12px;
}

.epp-ui-lang {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 14px;
	height: 38px;
	border: 1px solid var(--epp-line);
	border-radius: 999px;
	color: var(--epp-muted);
}

.epp-ui-lang select {
	border: none;
	background: transparent;
	font-family: var(--epp-font-body);
	font-size: 13px;
	color: var(--epp-ink);
	padding: 0 4px;
	cursor: pointer;
}

.epp-ui-lang select:focus {
	outline: none;
}

.epp-portal__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	border-top: 1px solid var(--epp-line);
	border-bottom: 1px solid var(--epp-line);
	margin-bottom: 36px;
}

.epp-scope .epp-tab {
	position: relative;
	display: inline-block;
	padding: 16px 0;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--epp-muted);
	transition: color 0.2s ease;
}

.epp-scope .epp-tab:hover {
	color: var(--epp-ink);
}

.epp-scope .epp-tab.is-active {
	color: var(--epp-ink);
}

.epp-tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: var(--epp-accent);
}

.epp-section {
	margin-bottom: 52px;
}

.epp-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.epp-section__title {
	font-size: 24px;
}

.epp-section__count {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--epp-muted);
	white-space: nowrap;
}

.epp-section__intro {
	max-width: 640px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--epp-muted);
	margin-bottom: 26px;
}

.epp-empty {
	padding: 44px 24px;
	border: 1px dashed var(--epp-line);
	text-align: center;
	color: var(--epp-muted);
	font-size: 14px;
	margin: 0;
}

/* Genvejskort på forsiden */

.epp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
}

.epp-card {
	display: block;
	padding: 30px 26px;
	background: var(--epp-surface);
	border: 1px solid var(--epp-line);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.epp-card:hover {
	border-color: var(--epp-accent);
	transform: translateY(-2px);
}

.epp-card__icon {
	display: inline-flex;
	color: var(--epp-accent);
	margin-bottom: 16px;
}

.epp-card__icon .epp-icon {
	width: 24px;
	height: 24px;
}

.epp-card__title {
	font-size: 21px;
	margin-bottom: 10px;
}

.epp-card__text {
	font-size: 13px;
	line-height: 1.65;
	color: var(--epp-muted);
	margin-bottom: 14px;
}

.epp-card__count {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--epp-accent);
}

/* Materialer */

.epp-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 26px;
}

.epp-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 260px;
	max-width: 420px;
	padding: 0 16px;
	height: 46px;
	border: 1px solid var(--epp-line);
	background: var(--epp-surface);
	color: var(--epp-muted);
}

.epp-search input[type="search"] {
	flex: 1;
	border: none;
	background: transparent;
	font-family: var(--epp-font-body);
	font-size: 14px;
	color: var(--epp-ink);
}

.epp-search input[type="search"]:focus {
	outline: none;
}

.epp-filter select {
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--epp-line);
	background: var(--epp-surface);
	font-family: var(--epp-font-body);
	font-size: 14px;
	color: var(--epp-ink);
	cursor: pointer;
}

.epp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.epp-item {
	display: flex;
	flex-direction: column;
	background: var(--epp-surface);
	border: 1px solid var(--epp-line);
	padding: 26px 24px;
	transition: border-color 0.2s ease;
}

.epp-item:hover {
	border-color: var(--epp-accent);
}

.epp-item--media {
	padding: 0;
}

.epp-item--media .epp-item__body {
	padding: 20px 22px 0;
}

.epp-item--media .epp-item__actions {
	padding: 0 22px 22px;
}

.epp-item__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2eee7;
	border-bottom: 1px solid var(--epp-line);
}

.epp-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.epp-item__thumb:hover img {
	transform: scale(1.03);
}

.epp-item__icon {
	display: inline-flex;
	color: var(--epp-accent);
	margin-bottom: 16px;
}

.epp-item__icon .epp-icon {
	width: 22px;
	height: 22px;
}

.epp-item__body {
	flex: 1;
}

.epp-item__title {
	font-size: 20px;
	line-height: 1.3;
	margin-bottom: 8px;
}

.epp-item__text {
	font-size: 13px;
	line-height: 1.65;
	color: var(--epp-muted);
	margin-bottom: 14px;
}

.epp-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

.epp-chip {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--epp-accent);
	border-radius: 999px;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--epp-accent);
	line-height: 1.4;
}

.epp-chip--plain {
	border-color: var(--epp-line);
	color: var(--epp-muted);
}

.epp-item__date {
	font-size: 12px;
	color: var(--epp-muted);
	margin: 0 0 18px;
}

.epp-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Paginering */

.epp-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 30px;
}

.epp-scope .epp-page {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--epp-line);
	font-size: 13px;
	text-decoration: none;
	color: var(--epp-muted);
}

.epp-scope .epp-page.is-active,
.epp-scope .epp-page:hover {
	border-color: var(--epp-ink);
	color: var(--epp-ink);
}

/* Nyheder */

.epp-news__item {
	background: var(--epp-surface);
	border: 1px solid var(--epp-line);
	padding: 28px 30px;
	margin-bottom: 16px;
}

.epp-news__item.is-pinned {
	border-left: 3px solid var(--epp-accent);
}

.epp-news__date {
	display: block;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--epp-accent);
	margin-bottom: 10px;
}

.epp-news__title {
	font-size: 23px;
	line-height: 1.25;
	margin-bottom: 12px;
}

.epp-news__body {
	font-size: 14px;
	line-height: 1.75;
	color: var(--epp-muted);
}

.epp-news__body p:last-child {
	margin-bottom: 0;
}

/* Profil */

.epp-profile__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	align-items: start;
}

.epp-panel {
	background: var(--epp-surface);
	border: 1px solid var(--epp-line);
	padding: 32px 30px;
}

.epp-panel__title {
	font-size: 22px;
	margin-bottom: 22px;
}

/* Support */

.epp-support {
	background: var(--epp-bg);
	border: 1px solid var(--epp-line);
	padding: 28px 30px;
}

.epp-support__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--epp-muted);
}

.epp-scope .epp-support__lines a {
	color: var(--epp-accent);
	text-decoration: none;
}

/* Tilgængelighed */

.epp-scope .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------------------
   Responsivt
--------------------------------------------------------------------------- */

@media (max-width: 782px) {
	.epp-login--card {
		padding: 32px 24px;
	}

	.epp-portal__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.epp-portal__company {
		font-size: 27px;
	}

	.epp-portal__nav {
		gap: 0 20px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.epp-tab {
		white-space: nowrap;
	}

	.epp-section {
		margin-bottom: 40px;
	}

	.epp-panel {
		padding: 26px 22px;
	}

	.epp-news__item {
		padding: 24px 22px;
	}
}
