/* Menokonsult Kursus Hub – same visual language as the /kursus landing page
   (Lora + Inter, square corners, navy buttons, rose chips, thin dividers). */

.mk-hub {
  --mk-bg: #F0F1EA;
  --mk-panel: #FBFBF6;
  --mk-panel-2: #F2F2EC;
  --mk-panel-muted: #E8E8E2;
  --mk-text: #3F4044;
  --mk-body: #4A4C52;
  --mk-muted: #56585F;
  --mk-faint: #85877F;
  --mk-navy: #3E5C77;
  --mk-navy-dark: #2E4A63;
  --mk-accent: #A06254;
  --mk-accent-dark: #8A3D34;
  --mk-rose-bg: #FBF2EF;
  --mk-rose-line: #C9A39B;
  --mk-line: #DCDBD1;
  --mk-border: #B9B9AF;
  --mk-border-dark: #3F444B;
  --mk-shadow-offset: 8px 8px 0 rgba(190, 58, 49, .14);
  --mk-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --mk-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  background: var(--mk-bg);
  color: var(--mk-body);
  font-family: var(--mk-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.mk-container {
  width: min(1040px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Typography */
.mk-hub .mk-h1, .mk-hub .mk-h2, .mk-hub .mk-h3 {
  font-family: var(--mk-serif);
  font-weight: 500;
  color: var(--mk-text);
  margin: 0 0 .6rem;
  line-height: 1.18;
  letter-spacing: .005em;
}
.mk-hub .mk-h1 { font-size: clamp(32px, 4.4vw, 50px); }
.mk-hub .mk-h2 { font-size: clamp(26px, 3.4vw, 38px); }
.mk-hub .mk-h3 { font-size: 23px; line-height: 1.3; }
.mk-hub .mk-eyebrow {
  font-family: var(--mk-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mk-accent);
  margin: 0 0 14px;
}
.mk-hub .mk-lead { font-size: 18px; color: var(--mk-body); max-width: 62ch; }
.mk-hub .mk-lead p { margin: 0 0 .75rem; }
.mk-muted { color: var(--mk-muted); font-size: 15px; }
.mk-hub a { color: var(--mk-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mk-section__sub { margin: -.2rem 0 1.75rem; color: var(--mk-muted); font-size: 16px; }

/* Buttons – rectangular navy like "Tilmeld mig" */
.mk-hub .mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 26px;
  border-radius: 0;
  font-family: var(--mk-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.mk-hub .mk-btn--primary { background: var(--mk-navy); color: #fff; border-color: var(--mk-navy); }
.mk-hub .mk-btn--primary:hover { background: var(--mk-navy-dark); border-color: var(--mk-navy-dark); color: #fff; }
.mk-hub .mk-btn--ghost { background: transparent; color: var(--mk-text); border-color: var(--mk-border-dark); }
.mk-hub .mk-btn--ghost:hover { background: var(--mk-panel); }
.mk-hub .mk-btn--sm { padding: 11px 20px; font-size: 13px; }
.mk-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0 1rem; }

/* Gate (login / no access) */
.mk-gate {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem;
}
.mk-card {
  background: var(--mk-panel);
  border: 1px solid var(--mk-border);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.mk-card--center { text-align: center; max-width: 580px; width: 100%; }
.mk-card--center .mk-lead { margin-inline: auto; }

/* Hero – centred like the landing page */
.mk-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.mk-hero .mk-lead { margin-inline: auto; }
.mk-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1.25rem;
  margin-top: 1.75rem;
}
.mk-pill {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid var(--mk-rose-line);
  background: var(--mk-rose-bg);
  color: var(--mk-accent-dark);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.mk-pill--done { border-color: var(--mk-navy); background: var(--mk-navy); color: #fff; }
.mk-status__next { color: var(--mk-muted); font-size: 15px; }
.mk-adminbar {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 12px 16px;
  background: var(--mk-panel-2);
  border: 1px solid var(--mk-border);
  font-size: 14px;
  color: var(--mk-muted);
  text-align: left;
}
.mk-adminbar a { color: var(--mk-accent-dark); font-weight: 600; }

/* Week nav – row of chips, sticky */
.mk-weeknav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(240, 241, 234, .96);
  backdrop-filter: blur(6px);
  border-block: 1px solid var(--mk-line);
}
.mk-weeknav__inner {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.mk-weeknav__inner::-webkit-scrollbar { display: none; }
.mk-hub .mk-weeknav__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 9px 16px;
  border: 1.5px solid var(--mk-border);
  background: transparent;
  color: var(--mk-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.mk-hub .mk-weeknav__item:hover { border-color: var(--mk-border-dark); background: var(--mk-panel); }
.mk-hub .mk-weeknav__item.is-current { background: var(--mk-navy); border-color: var(--mk-navy); color: #fff; }
.mk-hub .mk-weeknav__item.is-locked { color: var(--mk-faint); border-color: var(--mk-line); }

/* Lock icon */
.mk-lock {
  display: inline-block;
  width: .8em;
  height: .8em;
  vertical-align: -.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 10V8a6 6 0 0 1 12 0v2h1a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-9a1 1 0 0 1 1-1h1zm2 0h8V8a4 4 0 0 0-8 0v2z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 10V8a6 6 0 0 1 12 0v2h1a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-9a1 1 0 0 1 1-1h1zm2 0h8V8a4 4 0 0 0-8 0v2z'/></svg>") center / contain no-repeat;
}

/* Sections */
.mk-section { padding: clamp(2.25rem, 5vw, 4rem) 0; }
.mk-section + .mk-section { padding-top: 0; }
.mk-footnav { text-align: center; color: var(--mk-muted); font-size: 15px; padding-bottom: 5rem; }

/* Weeks */
.mk-week__details {
  background: var(--mk-panel);
  border: 1px solid var(--mk-border);
}
.mk-week.is-current .mk-week__details {
  border: 2px solid var(--mk-border-dark);
  box-shadow: var(--mk-shadow-offset);
}
.mk-week.is-locked .mk-week__details { background: var(--mk-panel-muted); border-color: var(--mk-line); }
.mk-week__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.4rem, 3vw, 2.25rem);
}
.mk-week__summary::-webkit-details-marker { display: none; }
.mk-week__summary .mk-eyebrow { margin-bottom: 10px; }
.mk-week__summary .mk-h2 { margin-bottom: 0; }
.mk-week.is-locked .mk-eyebrow { color: var(--mk-faint); }
.mk-hub .mk-week.is-locked .mk-week__summary .mk-h2 { color: var(--mk-muted); }
.mk-week__teaser { margin: .6rem 0 0; color: var(--mk-muted); font-size: 15px; }
.mk-week__chevron {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--mk-border-dark);
  position: relative;
  transition: transform .2s ease;
}
.mk-week.is-locked .mk-week__chevron { border-color: var(--mk-border); }
.mk-week__chevron::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.mk-week__details[open] .mk-week__chevron { transform: rotate(180deg); }
.mk-week__body { padding: 0 clamp(1.4rem, 3vw, 2.25rem) clamp(1.4rem, 3vw, 2.25rem); }
.mk-week__body > .mk-item + .mk-item { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--mk-line); }
.mk-locked-note { color: var(--mk-muted); margin: 0; }

/* Items */
.mk-item--full .mk-video { margin-bottom: 1.5rem; }
.mk-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: #1c2a36;
}
.mk-video iframe,
.mk-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.mk-hub .mk-prose { max-width: 68ch; color: var(--mk-body); }
.mk-hub .mk-prose p { margin: 0 0 1rem; }
.mk-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 6px 12px;
  background: var(--mk-panel-2);
  border: 1px solid var(--mk-border);
  font-size: 13px;
  color: var(--mk-muted);
}
.mk-badge a { color: var(--mk-accent-dark); }

/* Cards grid (always-available materials) */
.mk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 1.25rem;
}
.mk-item--card {
  background: var(--mk-panel);
  border: 1px solid var(--mk-border);
  display: flex;
  flex-direction: column;
}
.mk-item--card .mk-item__body { padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.mk-hub .mk-item--card .mk-h3 { font-size: 21px; }
.mk-item--card .mk-prose { font-size: 16px; }
.mk-item--card .mk-badge { margin: 1.25rem 1.75rem 0; align-self: flex-start; }
.mk-item--card .mk-files { margin-top: auto; padding-top: 1rem; }

/* Files – rows with thin dividers, navy square tag like the landing checkmarks */
.mk-files { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--mk-line); }
.mk-files li { border-bottom: 1px solid var(--mk-line); }
.mk-hub a.mk-file {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "type label" "type meta";
  column-gap: 15px;
  align-items: center;
  padding: 15px 4px;
  color: var(--mk-text);
  text-decoration: none;
  transition: background .15s ease;
}
.mk-hub a.mk-file:hover { background: var(--mk-panel-2); }
.mk-hub a.mk-file:hover .mk-file__label { color: var(--mk-navy); text-decoration: underline; text-underline-offset: 3px; }
.mk-file__type {
  grid-area: type;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 9px;
  background: var(--mk-navy);
  color: #fff;
  min-width: 52px;
  text-align: center;
}
.mk-file__label { grid-area: label; font-weight: 500; color: var(--mk-text); }
.mk-file__meta { grid-area: meta; font-size: 13.5px; color: var(--mk-faint); }

/* Webinar – rose panel like the "Måske kan du genkende dig selv?" section */
.mk-webinar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem;
  align-items: center;
  margin: 1.5rem 0 0;
  padding: 18px 22px;
  background: var(--mk-rose-bg);
  border: 1.5px solid var(--mk-rose-line);
}
.mk-webinar.is-past { background: var(--mk-panel-2); border-color: var(--mk-border); }
.mk-webinar p { margin: 0; }
.mk-webinar__title { font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mk-accent); }
.mk-webinar.is-past .mk-webinar__title { color: var(--mk-faint); }
.mk-webinar__when { font-weight: 500; color: var(--mk-text); font-size: 17px; }
.mk-webinar .mk-muted { font-size: 14px; }
.mk-webinar__icon {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--mk-accent-dark);
}
.mk-webinar.is-past .mk-webinar__icon { background: var(--mk-faint); }
.mk-webinar__icon::after {
  content: "";
  position: absolute;
  inset: 26%;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 5h11a2 2 0 0 1 2 2v2.5l3.5-2.3A1 1 0 0 1 22 8v8a1 1 0 0 1-1.5.8L17 14.5V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 5h11a2 2 0 0 1 2 2v2.5l3.5-2.3A1 1 0 0 1 22 8v8a1 1 0 0 1-1.5.8L17 14.5V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/></svg>") center / contain no-repeat;
}

@media (max-width: 640px) {
  .mk-hub { font-size: 16px; }
  .mk-container { width: min(1040px, 100% - 2rem); }
  .mk-weeknav__inner { justify-content: flex-start; }
  .mk-webinar { grid-template-columns: auto 1fr; }
  .mk-webinar .mk-btn { grid-column: 1 / -1; }
  .mk-week__summary { align-items: flex-start; }
  .mk-week.is-current .mk-week__details { box-shadow: 5px 5px 0 rgba(190, 58, 49, .14); }
}

@media (prefers-reduced-motion: reduce) {
  .mk-hub * { transition: none !important; }
}
