/* Kursusfabrikkens master. Layouts bruger samme skala i editor, HTML og PDF. */
:root {
  --ink: #020010;
  --paper: #fff;
  --navy: #044260;
  --orange: #f4570d;
  --mist: #cedae0;
  --cloud: #f6f7f8;
  --line: #e2e6e9;
  --muted: #6b7480;
  --master-background: #0b0f14 url("/static/master/master-baggrund.jpg") center / cover no-repeat;
  --type-24: 24px;
  --type-26: 26px;
  --type-32: 32px;
  --type-34: 34px;
  --type-36: 36px;
  --type-40: 40px;
  --type-72: 72px;
  --type-96: 96px;
}
.master-slide, .master-slide * { box-sizing: border-box; }
.master-slide {
  position: relative;
  isolation: isolate;
  font: 400 16px/1.55 Lato, sans-serif;
  font-synthesis: none;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
}
.master-slide > img { width: auto; pointer-events: none; }
.master-slide [data-field]:not(.master-image), .slide-element.text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.master-image { position: relative; overflow: hidden; min-width: 0; }
.master-image img, .slide-element.image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.master-image[data-empty] { background: transparent !important; border-color: transparent !important; }
.editing-slide .master-image[data-empty] {
  color: var(--muted) !important;
  background: var(--cloud) !important;
  border-color: var(--line) !important;
}
.editing-slide .master-image[data-empty]::after { content: 'Indsæt billede'; }
.master-slide [hidden], .master-slide [data-punkt][hidden] { display: none !important; }
.editing-slide [data-blank]::after { content: attr(data-label); opacity: .45; }
.slide-elements { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.slide-element { position: absolute; pointer-events: auto; overflow: hidden; }
.slide-element.text {
  color: var(--ink);
  font: 300 var(--type-32)/1.45 Lato, sans-serif;
}
.master-slide.dark-theme .slide-element.text { color: var(--paper); }
.slide-element.shape { color: var(--navy); }
.slide-element.shape svg { display: block; width: 100%; height: 100%; overflow: visible; }

.master-section {
  background: var(--master-background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 0 132px;
  text-align: center;
}
.master-scrim { position: absolute; inset: 0; background: rgba(6, 8, 12, .72); }
.master-logo-dark { position: absolute; right: 56px; top: 56px; height: 52px; z-index: 3; }
.master-logo-light { position: absolute; right: 56px; bottom: 44px; height: 34px; z-index: 3; }
.master-cover-title, .master-subtitle { position: relative; z-index: 3; margin: 0; }
.master-cover-title { max-width: 1500px; font: 700 var(--type-96)/1.12 Lato, sans-serif; color: var(--paper); }
.master-subtitle { max-width: 1200px; font: 300 var(--type-40)/1.25 Lato, sans-serif; color: var(--mist); }
.master-standard {
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 64px 132px 72px;
  gap: 48px;
}
.master-center { justify-content: center; }
.master-title { font: 700 var(--type-72)/1.15 Lato, sans-serif; letter-spacing: -.01em; margin: 0; text-wrap: pretty; }
.master-body { font: 300 var(--type-32)/1.45 Lato, sans-serif; margin: 0; text-wrap: pretty; }
.master-standard h3 { font: 700 var(--type-34)/1.25 Lato, sans-serif; margin: 0; }
.master-full-image .master-image { display: grid; width: 100%; height: 100%; place-items: center; color: var(--muted); font-size: var(--type-26); border-radius: 10px; }
.master-full-image .master-image img { position: absolute; inset: 0; }
.master-chart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; align-items: end; flex: 1; margin-bottom: 50px; }
.master-chart-column { text-align: center; }
.master-chart-track { height: 610px; display: flex; align-items: end; border-bottom: 1px solid var(--mist); margin-bottom: 20px; }
.master-chart-bar { position: relative; width: 75%; margin-inline: auto; background: var(--navy); height: var(--bar-height, 0%); }
.master-chart-column:nth-child(2) .master-chart-bar { background: #066998; }
.master-chart-column:nth-child(3) .master-chart-bar { background: var(--orange); }
.master-chart-bar span { position: absolute; bottom: calc(100% + 8px); left: 0; width: 100%; font: 700 var(--type-34)/1.25 Lato, sans-serif; }
.master-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: auto 0; }
.master-table :is(th, td) { padding: 26px 32px; text-align: left; vertical-align: top; }
.master-table th { font: 700 var(--type-34)/1.3 Lato, sans-serif; color: var(--paper); background: var(--navy); }
.master-table td { font: 300 var(--type-32)/1.45 Lato, sans-serif; border-bottom: 1px solid var(--line); }
.master-table tr:nth-child(even) { background: var(--cloud); }
.master-process { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; align-items: center; padding: 0; margin: 0; list-style: none; }
.master-process li { border-top: 4px solid var(--orange); padding-top: 30px; }
.master-process h3, .master-exercise h3 { margin-bottom: 18px; }
.master-exercise { border-left: 4px solid var(--orange); background: var(--cloud); padding: 40px 48px; }
.master-exercise p + p { margin-top: 20px; }
.master-quote { margin: 0; padding: 0 0 0 55px; border-left: 4px solid var(--orange); }
.master-quote footer { margin-top: 32px; color: var(--navy); }

.rich-content {
  --rich-unit: 1px;
  --rich-paragraph-gap: 26;
  --rich-list-gap: 20;
  --rich-indent: 28;
  --rich-list-line: 1.4;
  --rich-number-indent: 44;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.master-slide .rich-content { font: 300 var(--type-32)/1.45 Lato, sans-serif; }
.master-slide[data-layout="agenda"] .rich-content { font-size: var(--type-34); line-height: 1.3; --rich-list-gap: 26; --rich-list-line: 1.3; }
.master-slide[data-layout="image-below"] [data-rich] { max-width: 1450px; }
.rich-content :is(p, ul, ol) { margin: 0; }
.rich-content > :is(p, ul, ol) + :is(p, ul, ol) { margin-top: calc(var(--rich-paragraph-gap) * var(--rich-unit)); }
.rich-content :is(ul, ol) { padding-inline-start: calc(var(--rich-indent) * var(--rich-unit)); }
.rich-content :is(ul, ol) { list-style: none; }
.rich-content ol { counter-reset: rich-item; padding-inline-start: calc(var(--rich-number-indent) * var(--rich-unit)); }
.rich-content li { position: relative; line-height: var(--rich-list-line); }
.rich-content ol > li { counter-increment: rich-item; }
.rich-content li::before {
  position: absolute;
  inset-inline-start: calc(-1 * var(--rich-indent) * var(--rich-unit));
  top: 0;
  color: var(--orange);
  pointer-events: none;
}
.rich-content ul > li::before { content: '·'; }
.rich-content ol > li::before { content: counter(rich-item) '.'; inset-inline-start: calc(-1 * var(--rich-number-indent) * var(--rich-unit)); }
.rich-content li + li { margin-top: calc(var(--rich-list-gap) * var(--rich-unit)); }
.rich-content strong { font-weight: 700; }
.rich-content em { font-style: italic; font-weight: 400; }
.rich-content strong em, .rich-content em strong { font-weight: 700; font-synthesis: style; }
.editing-slide .rich-content[data-blank]::after { content: attr(data-label); opacity: .45; }
.master-image.image-shadow, .slide-element.image-shadow {
  box-shadow: 0 13px 36px rgb(2 0 16 / 25%);
}
