/*
 * 07000 Kurs portal styling. Tokens and rules follow design/DESIGN.md.
 * Loaded after Astra and the LMS plugin styles; the plugin's own classes are restyled here, never edited.
 */

/* ---------- Tokens ---------- */
:root {
  --color-rod: #d60000;
  --color-ink: #222222;
  --color-ink-mute: #5f5a54;
  --color-surface: #ffffff;
  --color-tone: #efedeb;
  --color-line: #e2ded9;
  --color-varmgra: #c5bfb8;
  --color-varmgra-60: #d7d4ce;
  --color-bla: #00b0ca;
  --color-danger: #b3261e;
  --font: "din-2014", "Barlow", Arial, Helvetica, sans-serif;
  --radius-button: 2px;
  --radius-card: 4px;
  --shadow-card: 0 1px 3px rgba(34, 34, 34, 0.08);
  --m07000-wrap: 1080px;
  --m07000-pad: 28px;
}

/* ---------- Base ---------- */
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
}

body {
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--color-ink);
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--color-rod);
  outline-offset: 2px;
}

/* One content measure for header, content and footer: 1080px including the side margin. */
.ast-container,
.site-primary-header-wrap.ast-container {
  max-width: var(--m07000-wrap);
  margin-inline: auto;
  padding-inline: var(--m07000-pad);
}

.site-footer .site-below-footer-wrap[data-section] .ast-builder-grid-row-container-inner {
  padding-inline: 0;
}

.site-footer .site-below-footer-wrap[data-section] .ast-builder-footer-grid-columns {
  max-width: var(--m07000-wrap);
  margin-inline: auto;
  padding-inline: var(--m07000-pad);
}

/* ---------- Buttons ---------- */
body .scorm-btn,
body .m07000-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0.6875rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none;
}

body .entry-content .scorm-btn,
body .entry-content .scorm-btn:hover {
  text-decoration: none;
}

body .scorm-btn .dashicons {
  display: none;
}

body .scorm-btn-primary {
  background: var(--color-rod);
  border-color: var(--color-rod);
  color: #fff;
}

body .scorm-btn-primary:hover,
body .scorm-btn-primary:focus {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

body .scorm-btn-secondary,
body .m07000-login {
  background: #fff;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

body .scorm-btn-secondary:hover,
body .scorm-btn-secondary:focus,
body .m07000-login:hover,
body .m07000-login:focus {
  background: var(--color-tone);
  border-color: var(--color-ink);
  color: var(--color-ink);
}

/* ---------- Header ---------- */
#masthead .ast-primary-header-bar {
  min-height: 68px;
  border-bottom: 1px solid var(--color-line);
  background: #fff;
}

#masthead .ast-builder-grid-row {
  gap: 20px;
}

#masthead .site-header-primary-section-left {
  align-items: center;
}

#masthead .site-logo-img img,
#masthead .custom-logo-link img {
  display: block;
  width: auto;
  height: 24px;
  max-width: none;
}

#masthead .ast-header-html-2 {
  margin-left: 14px;
}

#masthead .ast-header-html-2 p {
  margin: 0;
}

.m07000-kurs {
  display: block;
  padding-left: 14px;
  border-left: 1px solid var(--color-varmgra);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

#masthead .ast-header-html-1 {
  margin-left: auto;
}

/* ---------- Member menu: button and drawer (same class names as the Skanska PSI theme) ---------- */
body .menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 6px 0 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

body .menu-btn:hover,
body .menu-btn:focus,
body .menu-btn[aria-expanded="true"] {
  background: #fff;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.menu-btn > svg {
  flex: none;
}

.pm-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-card);
  background: var(--color-ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.portal-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(22rem, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--color-ink);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.16);
  overflow-y: auto;
}

.portal-menu::backdrop {
  background: rgba(20, 20, 20, 0.45);
}

.pm-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 8px 0 24px;
  border-bottom: 1px solid var(--color-line);
  font-weight: 700;
}

body .pm-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-button);
  background: none;
  color: var(--color-ink);
  cursor: pointer;
}

body .pm-close:hover,
body .pm-close:focus {
  background: var(--color-tone);
  color: var(--color-ink);
}

.pm-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid var(--color-line);
}

.pm-who .pm-avatar {
  width: 44px;
  height: 44px;
  font-size: 0.9375rem;
}

.pm-who b {
  display: block;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pm-who small {
  display: block;
  color: var(--color-ink-mute);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.pm-nav {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-line);
}

body .pm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 24px;
  color: var(--color-ink);
  font-size: 0.9375rem;
  text-decoration: none;
}

body .pm-row:hover,
body .pm-row:focus {
  background: var(--color-tone);
  color: var(--color-ink);
}

.pm-row > svg {
  flex: none;
}

.pm-row[aria-current] {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--color-rod);
}

body .pm-logout {
  margin-top: auto;
  border-top: 1px solid var(--color-line);
  color: var(--color-danger);
}

body .pm-logout:hover,
body .pm-logout:focus {
  color: var(--color-danger);
}

/* ---------- Brand pattern: slanted rounded rectangles from the handbook (never put text on it) ---------- */
.m07000-pattern {
  background-size: 28px 24px;
}

.m07000-pattern--gra {
  background-color: var(--color-varmgra);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24'%3E%3Cpath d='M6 0h9l-4 11H2z' fill='%23D7D4CE'/%3E%3Cpath d='M17 0h5l-4 11h-5z' fill='%23EFEDEB'/%3E%3Cpath d='M20 12h9l-4 11h-9z' fill='%23D7D4CE'/%3E%3Cpath d='M-8 12h9l-4 11h-9z' fill='%23D7D4CE'/%3E%3Cpath d='M3 12h5l-4 11h-5z' fill='%23EFEDEB'/%3E%3C/svg%3E");
}

.m07000-pattern--rod {
  background-color: var(--color-rod);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24'%3E%3Cpath d='M6 0h9l-4 11H2z' fill='%23EA4B36'/%3E%3Cpath d='M17 0h5l-4 11h-5z' fill='%23F4968A'/%3E%3Cpath d='M20 12h9l-4 11h-9z' fill='%23EA4B36'/%3E%3Cpath d='M-8 12h9l-4 11h-9z' fill='%23EA4B36'/%3E%3Cpath d='M3 12h5l-4 11h-5z' fill='%23F4968A'/%3E%3C/svg%3E");
}

/* ---------- Front page ---------- */
.m07000-label {
  margin: 0 0 14px;
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Full-bleed hero. The text column starts at the same x as the logo; 150px keeps it clear of the triangle. */
.m07000-hero {
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  justify-items: stretch;
  min-height: 430px;
  border-bottom: 1px solid var(--color-line);
}

/* Astra centres direct children of page-builder content with auto margins, which collapses grid items. */
.m07000-hero > * {
  margin-inline: 0 !important;
}

.m07000-hero__triangle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  aspect-ratio: 34 / 100;
  background: var(--color-rod);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.m07000-hero__text {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  padding: 48px 32px 48px max(150px, calc((100cqw - var(--m07000-wrap)) / 2 + var(--m07000-pad)));
}

.m07000-hero h1 {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.m07000-hero__lead {
  max-width: 42ch;
  margin: 0 0 26px;
  color: #3e3a36;
  font-size: 1.0625rem;
}

.m07000-hero__actions .scorm-btn {
  width: auto;
}

.m07000-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.m07000-hero__visual {
  justify-self: stretch;
  align-self: stretch;
  min-width: 0;
  background: var(--color-tone);
  clip-path: polygon(146px 0, 100% 0, 100% 100%, 0 100%);
}

/* The photo fills the slanted box; the person stands just left of centre in the file. */
.m07000-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.m07000-hero--member h1 {
  font-size: 40px;
}

.m07000-resume {
  display: grid;
  gap: 6px;
  max-width: 440px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-rod);
  border-radius: var(--radius-button);
  background: #fff;
}

.m07000-resume .m07000-label {
  margin: 0;
  font-size: 0.75rem;
}

.m07000-resume__title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
}

.m07000-resume__meta {
  color: var(--color-ink-mute);
  font-size: 0.875rem;
}

/* Bands: full width, content on the 1080px measure. */
.m07000-band {
  padding-inline: var(--m07000-pad);
}

.m07000-band > .wp-block-group__inner-container,
.m07000-band > * {
  margin-block-start: 0;
}

.logged-in .m07000-guest-only,
body:not(.logged-in) .m07000-member-only {
  display: none;
}

.m07000-slik {
  margin-block: 0;
  padding-block: 24px;
  background: var(--color-tone);
}

.m07000-slik__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
}

.m07000-slik__item {
  position: relative;
  padding-left: 27px;
}

.m07000-slik__item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 15px;
  height: 13px;
  background: var(--color-rod);
  clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%);
}

.m07000-slik__grid > * {
  margin: 0;
}

.m07000-slik__item p {
  margin: 0;
  line-height: 1.4;
}

.m07000-slik__title {
  font-weight: 600;
}

.m07000-slik__text {
  color: var(--color-ink-mute);
  font-size: 0.9375rem;
}

.m07000-section {
  margin-block: 0;
  padding-block: 52px;
}

.m07000-section__title {
  margin: 0 0 8px;
  font-size: 1.875rem;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.m07000-section__lead {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--color-ink-mute);
}

/* ---------- Course cards (LMS markup) ---------- */
body .scorm-courses-grid {
  margin: 0;
}

body .scorm-courses-grid-container {
  gap: 22px;
  margin-bottom: 0;
}

body .scorm-course-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: none;
}

body .scorm-course-card:hover {
  box-shadow: var(--shadow-card);
}

.scorm-course-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  background-color: var(--color-tone);
}

.scorm-course-thumbnail > a,
.m07000-pattern__link {
  display: block;
  width: 100%;
  height: 100%;
}

.scorm-course-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .scorm-course-thumbnail .scorm-status-badge {
  position: absolute;
  top: 10px;
  bottom: auto;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--radius-button);
  background: #fff;
  box-shadow: none;
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
  text-transform: none;
}

body .scorm-status-badge .dashicons {
  display: none;
}

body .scorm-course-thumbnail .scorm-status-badge::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-varmgra);
}

body .scorm-course-thumbnail .scorm-status-badge.status-completed::before {
  background: var(--color-ink);
}

body .scorm-course-thumbnail .scorm-status-badge.status-in-progress::before {
  background: var(--color-bla);
}

/* courses-grid.js fades badges in one by one with inline styles. The portal has no animation, so they stay solid. */
body .scorm-course-thumbnail .scorm-status-badge {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body .scorm-access-badge {
  display: none;
}

body .scorm-course-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}

body .scorm-course-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

body .scorm-course-title a {
  color: var(--color-ink);
  text-decoration: none;
}

body .scorm-course-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .scorm-course-excerpt {
  margin: 0;
  color: var(--color-ink-mute);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.scorm-course-level,
.scorm-course-duration,
.scorm-course-price {
  display: none;
}

body .scorm-course-meta {
  margin: 0;
}

body .scorm-course-actions {
  margin-top: auto;
  padding-top: 8px;
}

body .scorm-course-actions .scorm-btn {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 0.9063rem;
}

/* ---------- Catalog (/kurs/) ---------- */
.post-type-archive-scorm_package .ast-archive-entry-banner {
  display: none;
}

.scorm-archive-page {
  padding-block: 52px;
}

/* Astra narrows the archive container to 0.5em on phones; keep the shared side margin. */
.post-type-archive-scorm_package #content > .ast-container {
  padding-inline: var(--m07000-pad);
}

.scorm-archive-page .scorm-container {
  max-width: none;
  padding: 0;
}

.scorm-archive-page .archive-header {
  max-width: 720px;
  margin-bottom: 26px;
}

.scorm-archive-page .archive-title {
  margin: 0 0 8px;
  font-size: 1.875rem;
}

.scorm-archive-page .archive-title::before {
  content: "Kurs";
  display: block;
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.scorm-archive-page .archive-description {
  margin: 0;
  color: var(--color-ink-mute);
}

/* ---------- Plugin variables the LMS pages derive their surfaces from ---------- */
:root {
  --scorm-group-navy: var(--color-ink);
  --scorm-group-navy-deep: var(--color-ink);
  --scorm-group-cream: #fff;
  --scorm-group-gold: var(--color-rod);
}

/* ---------- My profile ---------- */
.scorm-my-profile {
  --scorm-profile-identity-bg: #fff;
  --scorm-profile-border: var(--color-line);
  --scorm-profile-border-strong: var(--color-ink);
  --scorm-profile-progress-track: var(--color-varmgra-60);
  --scorm-profile-pill-done-bg: var(--color-tone);
  --scorm-profile-pill-done-text: var(--color-ink);
  --scorm-profile-pill-active-bg: #fff;
  --scorm-profile-pill-active-text: var(--color-ink);
  --scorm-profile-pill-warn-bg: var(--color-tone);
  --scorm-profile-pill-warn-text: var(--color-ink);
  --scorm-profile-pill-muted-bg: #fff;
  --scorm-profile-pill-muted-text: var(--color-ink-mute);

  padding-block: 32px 52px;
}

body .scorm-my-profile {
  max-width: none;
}

/* The LMS derives a percentage from the status alone (0/50/75/100). It is not a measurement, so it is not shown. */
.scorm-profile-progress,
.scorm-profile-resume__progress {
  display: none;
}

body .scorm-my-profile .scorm-profile-identity,
body .scorm-my-profile .scorm-profile-stat,
body .scorm-my-profile .scorm-profile-two-col > *,
body .scorm-my-profile .scorm-profile-list,
body .scorm-my-profile .scorm-profile-course-list {
  border-radius: var(--radius-card);
  box-shadow: none;
}

body .scorm-my-profile .scorm-profile-identity {
  background: #fff;
  border: 1px solid var(--color-line);
}

body .scorm-my-profile .scorm-profile-identity__avatar,
body .scorm-my-profile .scorm-profile-avatar-tile {
  border-radius: var(--radius-card);
  background: var(--color-ink);
}

body .scorm-my-profile .scorm-profile-stat {
  border: 0;
  background: var(--color-tone);
  text-align: left;
}

body .scorm-my-profile .scorm-profile-stat__value {
  color: var(--color-ink);
  font-weight: 600;
}

body .scorm-my-profile .scorm-profile-stat__label {
  color: var(--color-ink-mute);
  font-size: 0.875rem;
  letter-spacing: normal;
  text-transform: none;
}

body .scorm-my-profile .scorm-profile-resume {
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-rod);
  border-radius: var(--radius-button);
  background: #fff;
}

body .scorm-my-profile .scorm-profile-resume__eyebrow {
  color: var(--color-ink);
  font-weight: 300;
}

body .scorm-my-profile .scorm-profile-chip,
body .scorm-my-profile .scorm-profile-pill {
  border-radius: var(--radius-button);
}

body .scorm-my-profile a:not(.scorm-btn) {
  color: var(--color-ink);
  text-decoration-color: var(--color-varmgra);
  text-underline-offset: 3px;
}

body .scorm-my-profile .scorm-btn--outline,
body .scorm-my-profile .scorm-btn-secondary {
  border-color: var(--color-ink);
  background: #fff;
  color: var(--color-ink);
}

body .scorm-my-profile .scorm-btn--ghost {
  border-color: var(--color-line);
  color: var(--color-ink-mute);
}

body .scorm-my-profile .scorm-btn-primary {
  border-color: var(--color-rod);
  background: var(--color-rod);
  color: #fff;
}

/* ---------- Course page ---------- */
.scorm-course-container {
  max-width: none;
}

body .scorm-course-btn {
  min-height: 44px;
  border-radius: var(--radius-button);
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

body .scorm-course-btn-primary {
  border-color: var(--color-rod);
  background: var(--color-rod);
  color: #fff;
}

body .scorm-course-btn-primary:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
}

body .scorm-course-hero-title {
  font-size: 2.375rem;
  letter-spacing: -0.01em;
}

body .scorm-course-hero-image,
body .scorm-group-hero-image {
  border-radius: var(--radius-button);
}

/* No featured image: the brand pattern with the red triangle on its upper left corner, as on the group page. */
body .scorm-course-hero-image-placeholder,
body .scorm-group-hero-image-placeholder {
  background-color: var(--color-varmgra);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24'%3E%3Cpath d='M6 0h9l-4 11H2z' fill='%23D7D4CE'/%3E%3Cpath d='M17 0h5l-4 11h-5z' fill='%23EFEDEB'/%3E%3Cpath d='M20 12h9l-4 11h-9z' fill='%23D7D4CE'/%3E%3Cpath d='M-8 12h9l-4 11h-9z' fill='%23D7D4CE'/%3E%3Cpath d='M3 12h5l-4 11h-5z' fill='%23EFEDEB'/%3E%3C/svg%3E");
  background-size: 56px 48px;
}

.scorm-course-hero-image-placeholder::before,
.scorm-group-hero-image-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 62%;
  aspect-ratio: 34 / 100;
  background: var(--color-rod);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- Group page ---------- */
.scorm-group-container {
  max-width: none;
}

body .scorm-group-hero-title {
  font-size: 2.375rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.scorm-group-meta-text {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* The decor stripe from the car livery (DESIGN.md: 132x14px under the title), drawn from the prototype's paths. */
body .scorm-group-hero-rule {
  width: 132px;
  height: 14px;
  margin-block: 18px 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 14' width='132' height='14'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop offset='0' stop-color='%23D60000'/%3E%3Cstop offset='1' stop-color='%23D60000' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5 0h26l-5 14H0z' fill='%23D60000'/%3E%3Cpath d='M36 0h8l-5 14h-8z' fill='%23D60000'/%3E%3Cpath d='M49 0h8l-5 14h-8z' fill='%23D60000' opacity='.85'/%3E%3Cpath d='M62 0h70l-5 14H57z' fill='url(%23g)'/%3E%3C/svg%3E") no-repeat;
}

body .scorm-group-btn {
  min-height: 44px;
  padding: 0.6875rem 1.5rem;
  border: 1.5px solid var(--color-rod);
  border-radius: var(--radius-button);
  font-family: var(--font);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  transition: none;
}

body .scorm-group-btn-primary {
  background: var(--color-rod);
  color: #fff;
}

body .scorm-group-btn-primary:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
}

body .scorm-group-btn-secondary {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

body .scorm-group-btn-secondary:hover {
  background: var(--color-tone);
  color: var(--color-ink);
}

/* Rows: a ruled list, as in the prototype, not cards. */
body .scorm-group-modules-head h2 {
  font-size: 1.375rem;
}

body .scorm-group-module-list {
  gap: 0;
}

body .scorm-group-module-row {
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
}

body .scorm-group-module-row:hover {
  border-color: var(--color-line);
  box-shadow: none;
  transform: none;
}

body .scorm-group-module-row.is-locked,
body .scorm-group-module-row.is-empty,
body .scorm-group-module-row.is-no-content {
  border-style: solid;
  border-width: 0 0 1px;
  border-color: var(--color-line);
}

body .scorm-group-module-row.is-locked .scorm-group-module-num,
body .scorm-group-module-row.is-locked .scorm-group-module-body h3,
body .scorm-group-module-row.is-empty .scorm-group-module-num,
body .scorm-group-module-row.is-empty .scorm-group-module-body h3 {
  opacity: 1;
}

/* Number marker in the logo's parallelogram: done ink, in progress rod, otherwise tone. */
body .scorm-group-module-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
  background: var(--color-tone);
  clip-path: polygon(26% 0, 100% 0, 74% 100%, 0 100%);
  color: var(--color-ink-mute);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

body .scorm-group-module-row.is-done .scorm-group-module-num {
  background: var(--color-ink);
  color: #fff;
}

body .scorm-group-module-row.is-progress .scorm-group-module-num {
  background: var(--color-rod);
  color: #fff;
}

body .scorm-group-module-body h3 {
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 400;
}

body .scorm-group-module-row.is-locked .scorm-group-module-body h3 {
  color: var(--color-ink-mute);
}

/* Status tags: 2px, sentence case. Done = tone, in progress = rod, start = ink outline, locked = muted outline. */
body .scorm-group-module-pill {
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  box-shadow: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.4;
  text-transform: none;
  transform: none;
  transition: none;
}

body .scorm-group-module-pill.is-done {
  background: var(--color-tone);
  color: var(--color-ink);
}

body .scorm-group-module-pill.is-progress,
body a.scorm-group-module-action.is-progress:hover,
body a.scorm-group-module-action.is-progress:focus-visible {
  border-color: var(--color-rod);
  background: var(--color-rod);
  box-shadow: none;
  color: #fff;
}

body .scorm-group-module-pill.is-go,
body a.scorm-group-module-action.is-go:hover,
body a.scorm-group-module-action.is-go:focus-visible {
  border-color: var(--color-ink);
  background: #fff;
  box-shadow: none;
  color: var(--color-ink);
}

body .scorm-group-module-pill.is-locked,
body .scorm-group-module-pill.is-empty,
body .scorm-group-module-pill.is-no-content {
  border-color: var(--color-line);
  background: #fff;
  color: var(--color-ink-mute);
}

/* The LMS drops the action under the title on phones; keep it on the row, to the right. */
body a.scorm-group-module-action {
  grid-column: auto;
  justify-self: end;
  margin-top: 0;
  padding: 3px 10px;
  text-align: center;
}

/* ---------- Sign-in and lost password ---------- */
body .scorm-auth-form input[type="text"],
body .scorm-auth-form input[type="email"],
body .scorm-auth-form input[type="password"] {
  padding: 0.625rem 1rem;
  border: 1.5px solid var(--color-ink-mute);
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--color-ink);
  font-family: var(--font);
  transition: none;
}

body .scorm-form-group input:focus {
  border-color: var(--color-ink);
  box-shadow: none;
  outline: 3px solid var(--color-rod);
  outline-offset: 2px;
}

body .scorm-auth-form .checkmark {
  border: 1.5px solid var(--color-ink-mute);
  border-radius: var(--radius-button);
  transition: none;
}

body .scorm-checkbox-label input[type="checkbox"]:focus-visible + .checkmark {
  outline: 3px solid var(--color-rod);
  outline-offset: 2px;
}

body .scorm-auth-wrapper h1 {
  font-size: 1.5rem;
}

body .scorm-form-links a,
body .scorm-auth-footer a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-varmgra);
  text-underline-offset: 3px;
}

/* Error: white, 1px danger line, always with an icon (never colour alone). */
body .scorm-auth-errors,
body .scorm-message {
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-button);
  background: #fff;
  text-align: left;
}

body .scorm-auth-errors p,
body .scorm-message {
  color: var(--color-danger);
  font-size: 0.9375rem;
}

body .scorm-auth-errors p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body .scorm-auth-errors p::before {
  content: "!";
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--color-danger);
  clip-path: polygon(26% 0, 100% 0, 74% 100%, 0 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

body .scorm-login-notice,
body .scorm-profile-empty {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
}

body .scorm-login-notice h3 {
  font-size: 1.5rem;
}

/* ---------- Leader dashboard (the LMS has no radius or colour variables for it, so selector overrides) ---------- */
.scorm-leader-dashboard {
  max-width: none;
  padding: 40px 0 72px;
}

body .scorm-leader-dashboard .gld-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

body .scorm-leader-dashboard .gld-summary-item,
body .scorm-leader-dashboard .gld-card,
body .scorm-leader-dashboard .gld-stat-card,
body .scorm-leader-dashboard .gld-invite-card,
body .scorm-leader-dashboard .gld-single-add {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

body .scorm-leader-dashboard .gld-summary-icon,
body .scorm-leader-dashboard .gld-stat-icon,
body .scorm-leader-dashboard .gld-card-icon,
body .scorm-leader-dashboard .gld-step-num {
  border-radius: var(--radius-button);
  background: var(--color-tone);
  color: var(--color-ink);
}

body .scorm-leader-dashboard .gld-stat-green,
body .scorm-leader-dashboard .gld-stat-orange,
body .scorm-leader-dashboard .gld-stat-gray {
  color: var(--color-ink);
}

body .scorm-leader-dashboard .gld-mini-stat,
body .scorm-leader-dashboard .gld-mini-stat-accent {
  border: 0;
  border-radius: var(--radius-button);
  background: var(--color-tone);
}

body .scorm-leader-dashboard .gld-bar {
  background: var(--color-varmgra-60);
}

body .scorm-leader-dashboard .gld-bar-fill,
body .scorm-leader-dashboard .gld-bar-green {
  background: var(--color-rod);
}

body .scorm-leader-dashboard .gld-search-field,
body .scorm-leader-dashboard .gld-filter-chip,
body .scorm-leader-dashboard .gld-filter-button,
body .scorm-leader-dashboard .gld-btn,
body .scorm-leader-dashboard .gld-seg,
body .scorm-leader-dashboard .gld-seg__btn,
body .scorm-leader-dashboard .gld-icon-btn,
body .scorm-leader-dashboard .gld-group-menu {
  border-radius: var(--radius-button);
}

body .scorm-leader-dashboard .gld-search-field,
body .scorm-leader-dashboard .gld-filter-chip,
body .scorm-leader-dashboard .gld-filter-button,
body .scorm-leader-dashboard .gld-seg {
  border: 1px solid var(--color-ink-mute);
  background: #fff;
  color: var(--color-ink);
}

body .scorm-leader-dashboard .gld-filter-chip.is-active,
body .scorm-leader-dashboard .gld-filter-chip[aria-pressed="true"],
body .scorm-leader-dashboard .gld-seg__btn.is-active,
body .scorm-leader-dashboard .gld-seg__btn[aria-pressed="true"],
body .scorm-leader-dashboard .gld-seg__btn[aria-checked="true"] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
}

body .scorm-leader-dashboard .gld-btn,
body .scorm-leader-dashboard .gld-btn-outline,
body .scorm-leader-dashboard .gld-btn-secondary {
  border: 1.5px solid var(--color-ink);
  background: #fff;
  color: var(--color-ink);
  font-weight: 600;
}

body .scorm-leader-dashboard .gld-btn-primary {
  border-color: var(--color-rod);
  background: var(--color-rod);
  color: #fff;
}

body .scorm-leader-dashboard .gld-btn-primary:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
}

body .scorm-leader-dashboard .gld-btn-outline:hover,
body .scorm-leader-dashboard .gld-btn-secondary:hover,
body .scorm-leader-dashboard .gld-btn-ghost:hover {
  background: var(--color-tone);
}

body .scorm-leader-dashboard input,
body .scorm-leader-dashboard select,
body .scorm-leader-dashboard textarea,
body .scorm-leader-dashboard .gld-invite-message-preview,
body .gld-input,
body .gld-select,
body .gld-textarea {
  border-radius: var(--radius-button);
}

body #content textarea,
body #content select,
body #content .gld-input {
  border-radius: var(--radius-button);
}

body .gld-input,
body .gld-select,
body .gld-textarea {
  border: 1.5px solid var(--color-ink-mute);
  background: #fff;
  color: var(--color-ink);
}

body .scorm-leader-dashboard textarea,
body .scorm-leader-dashboard .gld-invite-message-preview,
body .scorm-leader-dashboard input[type="text"],
body .scorm-leader-dashboard input[type="email"] {
  background: #fff;
  color: var(--color-ink);
  font-family: var(--font);
}

body .scorm-leader-dashboard input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 15px;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body .scorm-leader-dashboard :is(h2, h3, summary, strong, label, .gld-when-label, .gld-invite-message-row__label) {
  color: var(--color-ink);
}

body .scorm-leader-dashboard :focus-visible {
  outline: 3px solid var(--color-rod);
  outline-offset: 2px;
}

body .scorm-leader-dashboard .gld-dot-completed,
body .scorm-leader-dashboard .gld-dot-green {
  background: var(--color-ink);
}

body .scorm-leader-dashboard .gld-dot-in_progress,
body .scorm-leader-dashboard .gld-dot-orange {
  background: var(--color-bla);
}

body .scorm-leader-dashboard .gld-dot-not_started,
body .scorm-leader-dashboard .gld-dot-gray {
  background: var(--color-varmgra);
}

body .scorm-leader-dashboard [class*="gld-badge-"],
body .scorm-leader-dashboard [class*="gld-manual-pill-"],
body .scorm-leader-dashboard .gld-role-tag {
  border-radius: var(--radius-button);
  background: var(--color-tone);
  color: var(--color-ink);
}

body .scorm-leader-dashboard .gld-role-badge {
  color: var(--color-ink);
}

body .scorm-leader-dashboard a:not(.gld-btn):not(.gld-card) {
  color: var(--color-ink);
}

body .scorm-leader-dashboard .gld-user img,
body .scorm-leader-dashboard .gld-people-initials {
  border-radius: var(--radius-card);
}

/* ---------- Footer ---------- */
.site-below-footer-wrap {
  background: var(--color-ink);
  color: var(--color-varmgra-60);
}

.site-below-footer-wrap .ast-builder-grid-row-container-inner {
  padding-block: 30px;
}

.m07000-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  font-size: 0.9063rem;
}

.m07000-footer__logo {
  display: block;
  width: auto;
  height: 20px;
}

.m07000-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.m07000-footer__links a,
.m07000-footer__links a:hover {
  color: #fff;
  text-decoration: none;
}

.m07000-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 921px) {
  #masthead .ast-primary-header-bar {
    min-height: 64px;
  }

  #masthead .site-logo-img img,
  #masthead .custom-logo-link img {
    height: 20px;
  }

  .m07000-kurs {
    padding-left: 10px;
    font-size: 0.75rem;
  }

  #masthead .ast-header-html-2 {
    margin-left: 10px;
  }
}

@media (max-width: 900px) {
  .m07000-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .m07000-hero__visual {
    order: -1;
    height: 250px;
    clip-path: none;
  }

  .m07000-hero__triangle {
    bottom: auto;
    height: 250px;
    z-index: 3;
  }

  .m07000-hero__text {
    padding: 28px var(--m07000-pad) 36px;
  }

  .m07000-hero h1,
  .m07000-hero--member h1 {
    font-size: 34px;
  }

  .m07000-slik__grid {
    grid-template-columns: 1fr;
  }

  body .scorm-courses-grid .scorm-courses-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --m07000-pad: 18px;
  }

  .m07000-hero__visual,
  .m07000-hero__triangle {
    height: 200px;
  }

  .m07000-hero__text {
    padding: 24px var(--m07000-pad) 30px;
  }

  .m07000-hero h1,
  .m07000-hero--member h1 {
    font-size: 29px;
  }

  .m07000-hero__lead {
    font-size: 1rem;
  }

  .m07000-hero__actions .scorm-btn,
  .m07000-resume + .m07000-hero__actions .scorm-btn {
    flex: 1 1 100%;
  }

  .m07000-section {
    padding-block: 36px;
  }

  .m07000-section__title {
    font-size: 1.5625rem;
  }

  body .scorm-courses-grid .scorm-courses-grid-container {
    grid-template-columns: 1fr;
  }

  body .menu-btn {
    gap: 8px;
    padding-left: 12px;
  }
}

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