/* Conscensia Employee Stories – alle klasser har præfikset .ces
   Farverne kan overstyres i temaet ved at sætte variablerne på .ces */
.ces {
	--ces-blue: #3D6EE9;
	--ces-blue-deep: #2A55C8;
	--ces-blue-soft: #DCE5FB;
	--ces-cream: #F1DFCB;
	--ces-cream-soft: #F8EEE3;
	--ces-ink: #231F20;
	--ces-muted: #5F5859;
	--ces-paper: #FFFFFF;
	--ces-line: #E4D6C7;
	--ces-radius-lg: 8px;
	--ces-radius: 6px;
	--ces-max: 1320px;
	color: var(--ces-ink);
	font-family: inherit;
	line-height: 1.6;
}
.ces *, .ces *::before, .ces *::after { box-sizing: border-box; }
.ces a { color: inherit; text-decoration: none; }
.ces a:focus-visible, .ces button:focus-visible { outline: 3px solid var(--ces-blue); outline-offset: 3px; border-radius: 8px; }
.ces h2, .ces h3, .ces p { margin-top: 0; }
.ces-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Typografi */
.ces-h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; margin: 0 0 12px; color: var(--ces-ink); }
.ces-lede { font-size: 17px; color: var(--ces-muted); max-width: 58ch; margin: 0; }
.ces-quote { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; margin: 0 0 22px; }
.ces-who { font-size: 14px; color: var(--ces-muted); margin: 0 0 8px; line-height: 1.45; }
.ces-who > span { display: block; }
.ces-who__name { display: block; color: var(--ces-ink); font-weight: 600; font-size: 16px; }
.ces-textlink { display: inline-block; font-weight: 600; color: var(--ces-blue-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ces-center { text-align: center; margin: 0; padding: 64px 0 0; }

/* Knapper */
.ces-btn { display: inline-flex; align-items: center; background: var(--ces-blue); color: #fff !important; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px; line-height: 1.2; transition: background .2s; }
.ces-btn:hover { background: var(--ces-blue-deep); }
.ces-btn--ghost { background: transparent; color: var(--ces-ink) !important; box-shadow: inset 0 0 0 2px var(--ces-ink); }
.ces-btn--ghost:hover { background: var(--ces-ink); color: #fff !important; }
.ces-btn--light { background: #fff; color: var(--ces-ink) !important; }
.ces-btn--light:hover { background: var(--ces-cream); }

/* Billede + badge */
.ces-media { position: relative; overflow: hidden; background: var(--ces-cream); aspect-ratio: 4 / 3; border-radius: var(--ces-radius); }
.ces .ces-media__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .45s ease; }
.ces-media__empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 600; color: var(--ces-blue); }
.ces-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); color: #231F20; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.ces-badge--video { padding: 5px 12px 5px 5px; }
.ces-badge__play { width: 28px; height: 28px; border-radius: 50%; background: var(--ces-blue); display: grid; place-items: center; flex: none; }
.ces-badge__play::before { content: ""; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
a:hover .ces-media__img { transform: scale(1.03); }

/* Kort */
.ces-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.ces-card { display: flex; }
.ces-card[hidden] { display: none !important; }
.ces-card__link { display: flex; flex-direction: column; width: 100%; }
.ces-card .ces-media { margin-bottom: 18px; }
.ces-card__title { font-size: 19px; line-height: 1.35; font-weight: 500; margin: 8px 0 14px; letter-spacing: -0.005em; color: var(--ces-ink); }
.ces-card__link:hover .ces-textlink { color: var(--ces-ink); }
@media (max-width: 980px) { .ces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ces-grid { grid-template-columns: 1fr; } }

/* Forsidemodul */
.ces-home--cream { background: var(--ces-cream); border-radius: var(--ces-radius-lg); padding: clamp(36px, 6vw, 80px) clamp(20px, 4vw, 56px) clamp(48px, 7vw, 96px); }
.ces-head { margin-bottom: 36px; }
.ces-home__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
.ces-home__grid--single { grid-template-columns: 1fr; }
.ces-feature { display: flex; flex-direction: column; background: var(--ces-paper); border-radius: var(--ces-radius-lg); overflow: hidden; }
.ces-feature .ces-media { aspect-ratio: 16 / 10; border-radius: 0; }
.ces-feature__body { padding: 28px 30px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.ces-home__side { display: grid; gap: 24px; grid-auto-rows: 1fr; }
.ces-mini { display: grid; grid-template-columns: 44% 1fr; background: var(--ces-paper); border-radius: var(--ces-radius-lg); overflow: hidden; }
.ces-mini .ces-media { aspect-ratio: auto; height: 100%; min-height: 200px; border-radius: 0; }
.ces-mini .ces-badge { left: 10px; bottom: 10px; }
.ces-mini .ces-badge--video { padding: 5px; }
.ces-mini .ces-badge__text { display: none; }
.ces-mini__body { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.ces-mini__title { font-size: 17px; line-height: 1.35; font-weight: 500; margin: 6px 0 14px; color: var(--ces-ink); }
.ces-mini__body .ces-textlink { margin-top: auto; }
@media (max-width: 900px) { .ces-home__grid { grid-template-columns: 1fr; } .ces-home__side { grid-auto-rows: auto; } }
@media (max-width: 480px) { .ces-mini { grid-template-columns: 1fr; } .ces-mini .ces-media { aspect-ratio: 4 / 3; height: auto; min-height: 0; } }

/* Oversigt: featured */
.ces-spotlight { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--ces-blue); color: #fff !important; border-radius: var(--ces-radius-lg); overflow: hidden; margin-bottom: 72px; }
.ces-spotlight .ces-media { aspect-ratio: auto; min-height: 420px; border-radius: 0; background: var(--ces-blue-deep); }
.ces-spotlight__body { padding: 40px 44px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.ces-spotlight .ces-quote { font-size: clamp(24px, 2.6vw, 34px); margin: 36px 0 22px; color: #fff; }
.ces-spotlight .ces-who { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.ces-spotlight .ces-who__name { color: #fff; }
.ces-pill { font-size: 13px; font-weight: 600; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; }
@media (max-width: 860px) {
	.ces-spotlight { grid-template-columns: 1fr; margin-bottom: 48px; }
	.ces-spotlight .ces-media { min-height: 0; aspect-ratio: 16 / 10; }
	.ces-spotlight__body { padding: 28px; }
	.ces-spotlight .ces-quote { margin-top: 20px; }
}

/* Oversigt: filter */
.ces-library__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.ces-library__head .ces-h2 { margin: 0; }
.ces-filters { display: flex; gap: 6px; background: var(--ces-cream-soft); padding: 5px; border-radius: 999px; }
.ces .ces-filter { appearance: none; border: 0; background: transparent; color: var(--ces-ink); font: inherit; font-weight: 500; font-size: 15px; padding: 9px 18px; border-radius: 999px; cursor: pointer; line-height: 1.2; box-shadow: none; }
.ces .ces-filter small { color: var(--ces-muted); margin-left: 4px; font-size: 13px; }
.ces .ces-filter[aria-pressed="true"] { background: var(--ces-ink); color: #fff; }
.ces .ces-filter[aria-pressed="true"] small { color: rgba(255,255,255,.7); }

/* Location-liste */
.ces-list .ces-h2 { margin-bottom: 32px; }

/* Personside */
.ces-single { padding-bottom: 72px; }
.ces-crumbs { font-size: 14px; color: var(--ces-muted); padding: 28px 0 20px; }
.ces-crumbs a { color: var(--ces-muted); text-decoration: underline; text-underline-offset: 3px; }
.ces-single__title { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 18px; max-width: 20ch; color: var(--ces-ink); }
.ces-video { position: relative; border-radius: var(--ces-radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.ces-video .ces-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.ces .ces-video__play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; background: var(--ces-blue); border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; box-shadow: none; }
.ces .ces-video__play::before { content: ""; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 7px; }
.ces .ces-video__play:hover { transform: scale(1.06); background: var(--ces-blue-deep); }
.ces-video__dur { position: absolute; right: 16px; bottom: 16px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.ces-video__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ces-single__photo { border-radius: var(--ces-radius-lg); overflow: hidden; max-width: 720px; }
.ces-single__photo img { width: 100%; height: auto; display: block; }
.ces-single__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 56px 0 72px; }
.ces-facts { position: sticky; top: 110px; align-self: start; font-size: 15px; }
.ces-facts dl { margin: 0; }
.ces-facts dt { color: var(--ces-muted); font-size: 13px; margin-top: 16px; }
.ces-facts dt:first-child { margin-top: 0; }
.ces-facts dd { margin: 2px 0 0; font-weight: 500; }
.ces-article { max-width: 66ch; }
.ces-article__lead { font-size: 21px; line-height: 1.5; margin: 0 0 36px; }
.ces-pull { border-left: 4px solid var(--ces-blue); margin: 0 0 40px; padding: 4px 0 4px 24px; }
.ces-pull p { font-size: 27px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.ces-article__content h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 40px 0 10px; }
.ces-article__content p { margin: 0 0 14px; }
.ces-single__more { background: var(--ces-cream); padding: 72px 0; }
.ces-single__more .ces-h2 { margin-bottom: 32px; }
.ces-jobs { margin-top: 72px; background: var(--ces-blue-soft); border-radius: var(--ces-radius-lg); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.ces-jobs__title { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.ces-jobs p { margin: 0; color: var(--ces-muted); }
@media (max-width: 860px) {
	.ces-single__body { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
	.ces-facts { position: static; }
	.ces-jobs { grid-template-columns: 1fr; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.ces *, .ces *::before { transition: none !important; }
}

/* Container queries: modulerne tilpasser sig bredden på den kolonne, de står i –
   ikke kun skærmbredden. Vigtigt når sektionen ligger i en smal Gutenberg-kolonne. */
.ces-home, .ces-overview, .ces-list, .ces-single__more .ces-wrap { container-type: inline-size; }
@container (max-width: 980px) { .ces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 600px) { .ces-grid { grid-template-columns: 1fr; } }
@container (max-width: 860px) {
	.ces-home__grid { grid-template-columns: 1fr; }
	.ces-home__side { grid-auto-rows: auto; }
	.ces-spotlight { grid-template-columns: 1fr; margin-bottom: 48px; }
	.ces-spotlight .ces-media { min-height: 0; aspect-ratio: 16 / 10; }
	.ces-spotlight__body { padding: 28px; }
	.ces-spotlight .ces-quote { margin-top: 20px; }
}
@container (max-width: 480px) {
	.ces-mini { grid-template-columns: 1fr; }
	.ces-mini .ces-media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}

/* v1.0.2: egen maksbredde, så modulerne ikke går kant til kant i fuldbredde-rækker */
.ces-contain { width: 100%; max-width: calc(var(--ces-max) + 48px); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.ces-contain.ces-home--cream { max-width: var(--ces-max); padding-left: clamp(20px, 4vw, 56px); padding-right: clamp(20px, 4vw, 56px); }

/* Hero på oversigtssiden (når heading="" er sat på shortcoden) */
.ces-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ces .ces-hero__title { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; margin: 0; color: var(--ces-ink); }
.ces .ces-hero__intro { font-size: 18px; line-height: 1.6; margin: 0; max-width: 46ch; color: var(--ces-ink); }
@container (max-width: 760px) { .ces-hero { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 760px) { .ces-hero { grid-template-columns: 1fr; gap: 20px; } }

/* Højere specificitet, så temaets overskriftsregler (fx fed h2) ikke slår igennem */
.ces .ces-h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; }
.ces .ces-card__title, .ces .ces-mini__title { font-weight: 500; }
.ces .ces-quote { font-weight: 500; }
.ces .ces-single__title { font-weight: 500; }
.ces .ces-jobs__title { font-weight: 500; }
.ces .ces-article__content h2 { font-weight: 600; }
.ces .ces-who__name { font-weight: 600; }

/* v1.0.3: tydeligere brødkrummer */
.ces .ces-crumbs { font-size: 15px; color: var(--ces-muted); padding: 32px 0 20px; }
.ces .ces-crumbs a { color: var(--ces-blue-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ces .ces-crumbs a:hover { color: var(--ces-ink); }
.ces .ces-crumbs span[aria-hidden] { margin: 0 6px; }

/* v1.0.5: featured-historien vises ikke to gange under "All" – men med, når man filtrerer på dens by */
.ces-overview[data-filter="all"] .ces-card[data-featured] { display: none !important; }
.ces .ces-card[hidden], .ces-grid .ces-card[hidden] { display: none !important; }

/* v1.0.9: fast afstand over CTA-knappen, uanset temaets margin-regler */
.ces .ces-center { text-align: center; margin: 0 !important; padding-top: 64px; padding-bottom: 0; }
.ces .ces-center .ces-btn { margin: 0; }
@media (max-width: 700px) { .ces .ces-center { padding-top: 44px; } }

/* ---------- v1.1.0: forsidemodul med tre ens kort ---------- */
.ces-grid.ces-home__cards { grid-template-columns: repeat(var(--ces-cols, 3), minmax(0, 1fr)); align-items: stretch; }
.ces-home__cards .ces-card, .ces-home__cards .ces-card__link { height: 100%; }
.ces .ces-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.ces .ces-card__body .ces-textlink { margin-top: auto; padding-top: 6px; }

/* På creme-baggrund får kortene en hvid flade, så de matcher tiles andre steder på sitet */
.ces-home--cream .ces-home__cards .ces-card__link { background: var(--ces-paper); border-radius: var(--ces-radius-lg); overflow: hidden; }
.ces-home--cream .ces-home__cards .ces-media { border-radius: 0; margin-bottom: 0; }
.ces-home--cream .ces-home__cards .ces-card__body { padding: 22px 24px 26px; }
.ces-home--cream .ces-home__cards .ces-card__title { margin: 8px 0 16px; }

/* Bryder først, når kortene reelt bliver for smalle – så et bevidst valg af
   3 kolonner overlever, selv når modulet gøres smallere med max="…". */
@media (max-width: 820px) { .ces-grid.ces-home__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ces-grid.ces-home__cards { grid-template-columns: 1fr; } }
@container (max-width: 820px) { .ces-grid.ces-home__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 560px) { .ces-grid.ces-home__cards { grid-template-columns: 1fr; } }

/* ---------- v1.1.2: lavere forsidemodul ---------- */
.ces-home--cream { padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px) clamp(32px, 4vw, 60px); }
.ces-home .ces-head { margin-bottom: clamp(22px, 2.5vw, 32px); }
.ces-home__cards .ces-media { aspect-ratio: var(--ces-card-ratio, 16 / 9); }
.ces-home--cream .ces-home__cards .ces-card__body { padding: 18px 20px 20px; }
.ces-home--cream .ces-home__cards .ces-card__title { font-size: 17px; line-height: 1.35; margin: 6px 0 12px; }
.ces-home--cream .ces-home__cards .ces-who { font-size: 13px; margin-bottom: 4px; }
.ces-home--cream .ces-home__cards .ces-who__name { font-size: 15px; }
.ces-home--cream .ces-home__cards .ces-textlink { font-size: 15px; }
.ces-home .ces-center { padding-top: clamp(28px, 3.5vw, 44px); }
.ces-home__cards { gap: 24px 20px; }
