body.compact-site { padding: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.compact-site > .compact-header { flex: 0 0 auto; }
.compact-site > .short-home-main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-start; }
.compact-site > .compact-destination { flex: 1 0 auto; }
.compact-site > #contact { flex: 0 0 auto; }
.compact-header { border-bottom: 1px solid var(--ui-border); background: var(--ui-bg); }
.compact-header-inner { max-width: 1024px; padding: 20px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.compact-brand { display: inline-flex; min-height: 48px; align-items: center; }
.compact-brand img { display: block; width: 224px; height: auto; }
.short-home-header .compact-brand img { width: 256px; }
.compact-brand .brand-logo-white { display: none; }
[data-theme="dark"] .compact-brand .brand-logo-color { display: none; }
[data-theme="dark"] .compact-brand .brand-logo-white { display: block; }
.short-home-main, .compact-destination { width: min(960px, calc(100% - 64px)); margin: 0 auto; padding: 40px 0 48px; }
.short-intro { width: 100%; max-width: 640px; container-type: inline-size; }
.short-intro h1 { width: 100%; font-size: clamp(28px, 7.5cqi, 48px); line-height: 1.15; margin: 0 0 24px; color: #28645F; }
[data-theme="dark"] .short-intro h1 { color: #9DC7BA; }
.short-intro p { font-size: 16px; line-height: 1.6; margin: 0; max-width: none; }
.short-slogan { display: block; width: 100%; max-width: 640px; }
.short-slogan img { display: block; width: 100%; height: auto; }
.short-choices { margin-top: 40px; }
.short-choices h2 { font-size: 24px; margin: 0 0 16px; }
.short-choice { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 16px; align-items: center; min-height: 112px; padding: 20px 0; border-top: 1px solid var(--ui-border); color: var(--ui-text); text-decoration: none; }
.short-choice:last-child { border-bottom: 1px solid var(--ui-border); }
.short-choice img { display: block; width: 48px; height: 48px; }
.short-choice > span:nth-child(2) { display: grid; gap: 8px; min-width: 0; }
.short-choice strong { font-family: Manrope, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.25; }
.short-choice small { font-size: 16px; line-height: 1.5; color: var(--ui-muted); }
.short-arrow { display: grid; place-items: center; font-size: 24px; color: var(--ui-action); }
.short-choice:hover, .short-choice:focus-visible { color: var(--ui-text); background: rgba(38,107,105,.08); }
[data-theme="dark"] .short-choice:hover, [data-theme="dark"] .short-choice:focus-visible { background: rgba(157,199,186,.1); }
.short-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 104px; }
.short-fact { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.short-fact-icon { display: block; width: 40px; height: 40px; color: #619B98; }
.short-facts h2 { font-size: 18px; margin: 0 0 8px; color: #619B98; }
.short-facts p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ui-muted); }
.compact-back { display: inline-flex; align-items: center; min-height: 48px; margin-bottom: 24px; }
.compact-site .compact-destination section.resume-section { padding: 0; }
.compact-destination > h1 { font-size: 32px; margin-bottom: 24px; }
.compact-site #contact { padding: 48px 32px; }
.compact-site #contact .resume-section-content { max-width: 960px; }
.compact-site .compact-destination .projects-group { max-width: none; }
.compact-destination #interests > .resume-section-content > h1 { font-size: 32px; margin-bottom: 16px; }
.intro-dialog { max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; padding: 24px; border: 0; background: var(--ui-bg); color: var(--ui-text); }
.intro-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.intro-dialog::backdrop { background: var(--ui-bg); }
.intro-dialog video { width: min(640px, 100%); height: auto; max-height: 60dvh; object-fit: contain; }
.intro-skip { min-height: 48px; padding: 8px 20px; border: 1px solid var(--ui-border); border-radius: 8px; color: var(--ui-action); background: var(--ui-surface); font: inherit; }
.intro-skip:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
body:has(.intro-dialog[open]) { overflow: hidden; }
@media (max-width: 650px) {
 .compact-header-inner { padding: 16px 20px; flex-wrap: wrap; gap: 16px; }
 .compact-header-inner .ex-utilities { margin-left: 0; }
 .short-home-main, .compact-destination { width: calc(100% - 40px); padding-top: 24px; }
 .short-intro > div { min-width: 0; }
 .short-slogan { width: 100%; margin: 0; }
 .short-slogan img { aspect-ratio: 230 / 156; }
 .short-choice { grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 12px; }
 .short-choice img { width: 44px; height: 44px; }
 .short-choice strong { font-size: 18px; }
 .short-facts { grid-template-columns: 1fr; gap: 32px; }
 .compact-site #contact { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) { .intro-dialog { display: none!important; } }

.compact-destination .work-aside { background: #467B78; color: #fff; padding: 24px; border: 0; border-radius: 12px; box-sizing: border-box; }
.compact-destination .work-aside p,
.compact-destination .work-aside em { color: #fff; }
.compact-destination .work-aside-icon { filter: none; }
@media (max-width: 650px) { .compact-destination .work-aside { padding: 20px; } }

.compact-destination .work-aside { flex-direction: row; align-items: center; }
.compact-destination .work-aside-copy { flex: 1; width: auto; }
.compact-destination .work-aside-icon { align-self: center; }
@media (max-width: 650px) { .compact-destination .work-aside-icon { width: 72px; } }

.compact-destination .work-aside .quote-attribution { margin-top: 8px; }
.compact-destination .work-aside .quote-reflection { margin-top: 24px; }

/* Separate the introduction from the centered navigation on tall screens. */
@media (min-width: 760px) and (min-height: 1400px) {
 .compact-site > .short-home-main { display: grid; grid-template-rows: minmax(160px, 1fr) auto minmax(160px, 1fr); padding-top: 0; padding-bottom: 0; }
 .short-home-main > .short-intro { grid-row: 1; align-self: center; }
 .short-home-navigation { grid-row: 2; }
 .short-home-navigation > .short-choices { margin-top: 0; }
}

.short-intro p + p { margin-top: 12px; }
.compact-destination .cv-job-content p + p,
.compact-destination .profile-disclosure-content p + p,
.compact-destination .work-track-details p + p { margin-top: 16px; }

/* Give the quotation the full text column beside the illustration. */
.compact-destination .work-aside-copy > p:first-child { font-size: 18px; line-height: 1.4; }
@media (max-width: 650px) { .compact-destination .work-aside-copy > p:first-child { font-size: 18px; } .compact-destination .work-aside { align-items: flex-start; } }

/* Match the heading-to-CV spacing around the vision section. */
.compact-destination #work .work-vision { margin-block: 48px; display: flow-root; }
.compact-destination #work .work-vision > :last-child { margin-bottom: 0; }

.compact-destination .compact-supporting-copy { margin-block: 48px; display: flow-root; }
.compact-destination .compact-supporting-copy > :last-child { margin-bottom: 0; }
.compact-destination #interests .work-interests > .work-group-content > .work-tracks > .work-track > summary strong { font-size: 18px; }

.cv-skill-ratings { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cv-skill-ratings > li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 16px; min-height: 40px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-bg); font: 400 16px/1.5 Inter, sans-serif; }
.skill-rating { display: flex; gap: 4px; flex-shrink: 0; }
.skill-hex { width: 28px; height: 30px; fill: none; stroke: var(--ui-border); stroke-width: 9; }
.skill-hex.filled { fill: #28645F; stroke: #28645F; }
[data-theme="dark"] .skill-hex.filled { fill: #9DC7BA; stroke: #9DC7BA; }
@media(max-width: 650px) { .cv-skill-ratings > li { flex-wrap: wrap; padding: 8px 12px; gap: 4px 16px; } .skill-name { flex-basis: 100%; } }
.compact-destination .work-aside-future { margin-top: 24px; }
.compact-destination .work-aside-future p + p { margin-top: 16px; }

/* One spacing rule for the working-life heading and its three main panels. */
.compact-destination:has(> #work) > h1 { margin-bottom: 48px; }
.compact-destination #work > .resume-section-content { display: grid; gap: 48px; }
.compact-destination #work > .resume-section-content > .work-group-disclosure,
.compact-destination #work > .resume-section-content > .work-vision,
.compact-destination #work .work-vision > .work-aside { margin: 0; }
.cv-job-skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.cv-job-skills > li { padding: 6px 12px; border: 1px solid var(--ui-border); border-radius: 8px; color: var(--ui-text); background: var(--ui-bg); font: 400 14px/1.5 Inter,sans-serif; }

.cv-job-skills > li { padding: 0; }
.cv-job-skills a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; color: var(--ui-action); text-underline-offset: 3px; }
.cv-skill-ratings > li { scroll-margin-top: 24px; }
.cv-skill-ratings > li:target, .cv-skill-ratings > li:focus { outline: 3px solid var(--ui-focus); outline-offset: 3px; }

.cv-job-skills a { text-decoration: none; border-radius: 8px; }
.cv-job-skills a:hover { color: var(--ui-text); background: color-mix(in srgb, #619B98 18%, var(--ui-bg)); }
.cv-job-skills a:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }

.cv-skill-categories { display: grid; gap: 32px; }
.compact-destination .cv-skill-category > h3 { font: 800 20px/1.3 Manrope,sans-serif; margin: 0 0 16px; color: var(--ui-text); }

.profile-disclosure-content h4 { margin: 24px 0 8px; }
.profile-disclosure-content h4:first-child { margin-top: 0; }

/* Shared reading rhythm for the professional tracks. */
.compact-destination .work-track-details h4 { margin: 24px 0 8px; }
.compact-destination .work-track-details section > h4:first-child { margin-top: 0; }
.compact-destination .work-track-details p + p { margin-top: 16px; }

.compact-site .contact-links a { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 50%; gap: 0; }
.compact-site .contact-links a svg { width: 20px; height: 20px; }

.compact-site .contact-email { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(245,240,232,.24); border-radius: 50%; color: #f5f0e8; background: transparent; }
.compact-site .contact-email:hover { border-color: #619B98; color: #182625; background: #619B98; }
.compact-site .contact-email:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
.compact-site .contact-email:disabled { opacity: .6; }
.cv-education-list { display: grid; gap: .75rem; }
.cv-education-row { display: grid; grid-template-columns: 7rem minmax(0,1fr); align-items: center; gap: 1rem; min-height: 4.75rem; padding: 1rem 1.25rem; border: 1px solid var(--ex-border); border-radius: 1rem; background: rgba(255,255,255,.42); }
.cv-education-row img { width: 7rem; height: 3.5rem; object-fit: contain; padding: .5rem; }
.cv-education-row > div { display: grid; gap: .2rem; min-width: 0; }
.cv-education-row strong { font: 800 18px/1.4 Manrope,sans-serif; }
.cv-education-row small { font-size: 16px; color: var(--ui-muted); }
[data-theme="dark"] .cv-education-row { background: #2d3535; border-color: #667371; }
[data-theme="dark"] .cv-education-row img { background: #FFFFFF; border-radius: 8px; }
@media(max-width:720px) { .cv-education-row { grid-template-columns: 4.5rem minmax(0,1fr); gap: .65rem; padding: 1rem; } .cv-education-row img { width: 4.5rem; padding: .35rem; } }
.compact-destination .cv-job > summary { grid-template-columns: 6.5rem 7rem minmax(0,1fr) 2.25rem; }
.compact-destination .cv-job > summary > .cv-row-period { display: block; }
.cv-row-period { font-size: 14px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ui-muted); }
.compact-destination .cv-job > summary > .cv-row-copy { display: grid; gap: .2rem; min-width: 0; }
.cv-education-row { grid-template-columns: 6.5rem 7rem minmax(0,1fr); }
@media(max-width:720px) {
 .compact-destination .cv-job > summary { grid-template-columns: 5.5rem 4.5rem minmax(0,1fr) 2.25rem; gap: .65rem; }
 .cv-education-row { grid-template-columns: 5.5rem 4.5rem minmax(0,1fr); }
}
@media(max-width:500px) {
 .compact-destination .cv-job > summary { grid-template-columns: 4.5rem minmax(0,1fr) 2.25rem; }
 .compact-destination .cv-job > summary > .cv-row-period { grid-column: 1 / -1; }
 .cv-education-row { grid-template-columns: 4.5rem minmax(0,1fr); }
 .cv-education-row > .cv-row-period { grid-column: 1 / -1; }
}
/* CV rows use the shared heading/body typography instead of inherited legacy type. */
.compact-destination .cv-job > summary .cv-row-period,
.compact-destination .cv-job > summary .cv-row-copy small,
.compact-destination .cv-job > summary .cv-job-title,
.compact-destination .cv-education-row .cv-row-period { font-family: Inter, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: normal; }
.compact-destination .cv-job > summary .cv-row-copy strong,
.compact-destination .cv-education-row strong { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; line-height: 1.4; text-transform: none; letter-spacing: normal; }/* Repeated CV items share the same surface as the employment cards. */
.compact-destination .cv-skill-ratings > li{background:var(--ui-surface)}
.compact-destination .cv-compact-list{gap:12px}
.compact-destination .cv-compact-list > div{padding:12px 16px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface)}
@media(max-width:650px){.compact-destination .cv-compact-list > div{grid-template-columns:5.5rem minmax(0,1fr);gap:12px;padding:12px}}
.compact-destination .person-section{padding:16px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface)}
.compact-destination .person-section+.person-section{margin-top:12px}
.compact-destination .person-section>h4{margin:0 0 8px}
.compact-destination .person-section>p:last-child{margin-bottom:0}
/* Keep the stacked mobile mark at a readable size rather than stretching it. */
@media(max-width:650px){
 .short-home-header .compact-brand img{width:180px;max-width:100%}
 .short-home-main .short-slogan{width:min(100%,260px);max-width:260px}
 .short-home-main .short-slogan img{aspect-ratio:232 / 156;object-fit:contain}
}
/* Compact career layout on phones; summaries remain large touch targets. */
@media(max-width:650px){
 .work-page .compact-destination{width:calc(100% - 32px);padding-top:20px;padding-bottom:32px}
 .work-page .compact-destination>h1{font-size:28px;line-height:1.25;margin-bottom:24px}
 .work-page #work>.resume-section-content{gap:24px}
 .work-page .work-group-content{padding:0 10px 10px}
 .work-page .work-group-disclosure>summary,
 .work-page .cv-disclosure>summary:has(.work-topic-icon),
 .work-page .profile-disclosure>summary:has(.work-topic-icon),
 .work-page .work-track>summary:has(.work-topic-icon){grid-template-columns:36px minmax(0,1fr) 32px;gap:10px;padding:12px;min-height:68px}
 .work-page .work-topic-icon{width:36px;height:36px}
 .work-page .work-track-mark{width:32px;height:32px;flex-basis:32px}
 .work-page .work-group-disclosure>summary strong{font-size:18px;line-height:1.3}
 .work-page .cv-disclosure>summary strong,
 .work-page .profile-disclosure>summary strong,
 .work-page .work-track>summary strong{font-size:16px;line-height:1.3}
 .work-page summary small{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
 .work-page summary .work-track-copy{min-width:0}
 .work-page .cv-disclosure-content,.work-page .profile-disclosure-content{padding:10px 8px}
 .work-page .profile-records>.cv-disclosures,.work-page .cv-jobs,.work-page .work-tracks{gap:8px}
 .work-page .compact-destination .cv-job>summary{grid-template-columns:48px minmax(0,1fr) 32px;gap:6px 10px;padding:10px;min-height:76px;align-items:center}
 .work-page .compact-destination .cv-job>summary>.cv-row-period{grid-column:1 / 3;grid-row:1;font-size:13px;line-height:1.4}
 .work-page .compact-destination .cv-job>summary>.work-track-mark{grid-column:3;grid-row:1;justify-self:end}
 .work-page .compact-destination .cv-job>summary>img{grid-column:1;grid-row:2;width:48px;height:36px;padding:0;object-fit:contain}
 .work-page .compact-destination .cv-job>summary>.cv-row-copy{grid-column:2 / -1;grid-row:2;gap:3px;overflow-wrap:anywhere}
 .work-page .compact-destination .cv-job>summary .cv-row-copy strong{font-size:16px;line-height:1.3}
 .work-page .compact-destination .cv-job>summary .cv-job-title{font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
 .work-page .compact-destination .cv-job>summary .cv-row-copy small{font-size:13px;line-height:1.4}
 .work-page .cv-education-row{grid-template-columns:48px minmax(0,1fr);padding:10px;gap:6px 10px;min-height:76px}
 .work-page .cv-education-row>.cv-row-period{grid-column:1 / -1;font-size:13px}
 .work-page .cv-education-row img{width:48px;height:36px;padding:0}
 .work-page .compact-destination .cv-education-row strong{font-size:16px;line-height:1.3}
 .work-page .person-section{padding:12px;font-size:14px;line-height:1.5}
 .work-page .person-section>h4{font-size:16px}
 .work-page .cv-compact-list>div{grid-template-columns:70px minmax(0,1fr);padding:10px;gap:10px;font-size:13px;overflow-wrap:anywhere}
 .work-page .cv-skill-ratings{gap:8px}
 .work-page .cv-skill-ratings>li{flex-wrap:nowrap;gap:10px;padding:6px 10px;font-size:13px;min-height:36px}
 .work-page .cv-skill-ratings .skill-name{flex:1;min-width:0;overflow-wrap:anywhere}
 .work-page .skill-rating{gap:3px}
 .work-page .skill-hex{width:18px;height:20px}
 .work-page .work-track-details{padding:0 12px 12px;font-size:14px;line-height:1.5}
 .work-page .compact-destination .work-aside{padding:16px;gap:12px;font-size:14px}
 .work-page .compact-destination .work-aside-copy>p:first-child{font-size:16px}
 .work-page .compact-destination #work .work-vision{margin-block:24px}
}

/* Ens synlig fokus på alle links, knapper og fold-ud: petrol i lyst tema, creme i mørkt. */
.compact-site :is(a, button):focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
.compact-site summary:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: -3px; }

/* Arbejdsliv: kun den yderste gruppe er en kasse. Fold-ud indeni er rækker,
   adskilt af en tynd linje, så siden ikke bliver kasser i kasser.
   Strukturen og fokusmarkeringen er uændret. */
.work-page .work-group-disclosure :is(.cv-disclosures, .cv-jobs, .work-tracks) { gap: 0; }
.work-page .work-group-disclosure :is(.cv-disclosure, .profile-disclosure, .work-track, .cv-job) {
  border: 0;
  border-top: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
