.nexo-home__engagement {
  margin: 16px 0 0;
  color: #2f3a46;
  font-size: 14px;
}
.nexo-home__resume {
  flex-basis: 100%;
  margin: 0;
  color: #2f3a46;
  font-size: 14px;
}
/* The overview has its own visual hierarchy; other application screens are untouched. */
.moodle-layout .nexo-home {
  --home-ink: #0c305b;
  --home-text: #0a1726;
  --home-muted: #2f3a46;
  --home-line: #e0e3e5;
  --home-surface: #ffffff;
  --home-soft: #f5f1e9;
  --home-accent: #f36c21;
  --home-accent-text: #994013;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin-inline: auto;
  color: var(--home-text);
}

.moodle-layout .nexo-home,
.moodle-layout .nexo-home * {
  box-sizing: border-box;
}

.moodle-layout .nexo-home :where(h1, h2, figure, dl, dd) {
  margin: 0;
}

.moodle-layout .nexo-home :is(h1, h2, h3, p, strong, span, dd, dt) {
  overflow-wrap: anywhere;
}

.moodle-layout .nexo-home button {
  min-height: 44px;
  max-width: 100%;
  border-radius: 0;
  line-height: 1.4;
  white-space: normal;
}

.moodle-layout .nexo-home svg {
  display: block;
  flex: 0 0 auto;
}

.moodle-layout .nexo-home__masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 22px;
}

.moodle-layout .nexo-home__masthead h1 {
  color: var(--home-text);
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.25;
}

.moodle-layout .nexo-home__masthead p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.5;
}

.moodle-layout .nexo-home__welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.85fr);
  align-items: center;
  gap: 12px 24px;
  min-height: 300px;
  padding: 28px 44px;
  border: 1px solid #e9e2d8;
  border-radius: 0;
  background: var(--home-soft);
}

.moodle-layout .nexo-home__welcome-copy {
  min-width: 0;
  padding-block: 6px;
}

.moodle-layout .nexo-home__welcome h2 {
  max-width: 20ch;
  color: var(--home-text);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.14;
  text-wrap: initial;
}

.moodle-layout .nexo-home__welcome-description {
  max-width: 49ch;
  margin: 17px 0 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.7;
}

.moodle-layout .nexo-home__welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.moodle-layout .nexo-home .nexo-home__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 13px 19px;
  border: 1px solid var(--home-ink);
  background: var(--home-ink);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.moodle-layout .nexo-home .nexo-home__primary svg {
  width: 18px;
  height: 18px;
}

.moodle-layout .nexo-home .nexo-home__primary:hover {
  background: #174574;
  border-color: #174574;
}

.moodle-layout .nexo-home__mascot {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  max-width: 315px;
  justify-self: center;
}

.moodle-layout .nexo-home__mascot::before {
  position: absolute;
  z-index: -1;
  inset: 12% 8% 6%;
  border-radius: 50%;
  background: #f3dfcb;
  content: "";
}

.moodle-layout .nexo-home__mascot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.moodle-layout .nexo-home__numbers {
  margin-top: 20px;
}

.moodle-layout .nexo-home__contract {
  margin-top: 32px;
}

.moodle-layout .nexo-home__contract > h2 {
  margin: 0 0 16px;
}

.moodle-layout .nexo-home__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.moodle-layout .nexo-home__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.moodle-layout .nexo-home__metric {
  min-width: 0;
  padding: 21px 24px;
  border: 1px solid var(--home-line);
  border-radius: 0;
  background: var(--home-surface);
}

.moodle-layout .nexo-home__metric dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.moodle-layout .nexo-home__metric-value {
  margin-top: 10px;
  color: var(--home-text);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.moodle-layout .nexo-home__metric-note {
  margin-top: 7px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.5;
}

.moodle-layout .nexo-home__courses {
  min-width: 0;
  margin-top: 36px;
}

.moodle-layout .nexo-home__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 19px;
}

.moodle-layout .nexo-home__section-heading > div {
  min-width: 0;
}

.moodle-layout .nexo-home__section-heading h2,
.moodle-layout .nexo-home__shortcuts > h2,
.moodle-layout .nexo-home__contract > h2 {
  color: var(--home-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.moodle-layout .nexo-home__section-heading p {
  margin: 5px 0 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.6;
}

.moodle-layout .nexo-home .nexo-home__text-button {
  flex-shrink: 0;
  padding: 10px 3px 10px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--home-text);
  font-size: 15px;
  font-weight: 600;
}

.moodle-layout .nexo-home .nexo-home__text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.moodle-layout .nexo-home__courses .cards {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.moodle-layout .nexo-home__courses .cards::-webkit-scrollbar {
  height: 6px;
}

.moodle-layout .nexo-home__courses .cards::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.moodle-layout .nexo-home__courses .course-card {
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
  scroll-snap-align: start;
}

.moodle-layout .nexo-home__courses .empty {
  padding: 32px 24px;
  border: 1px dashed #b9c1c8;
  border-radius: 0;
  background: var(--home-surface);
}

.moodle-layout .nexo-home__courses .empty p {
  margin-top: 8px;
  color: var(--home-muted);
}

.moodle-layout .nexo-home__workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 36px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--home-line);
}

.moodle-layout .nexo-home__shortcuts {
  min-width: 0;
}

.moodle-layout .nexo-home__shortcuts > h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.moodle-layout .nexo-home__shortcut-list {
  display: grid;
}

.moodle-layout .nexo-home .nexo-home__shortcut {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  padding: 15px 5px;
  border: 1px solid transparent;
  border-bottom-color: var(--home-line);
  border-radius: 0;
  background: transparent;
  color: var(--home-text);
  text-align: left;
}

.moodle-layout .nexo-home .nexo-home__shortcut:last-child {
  border-bottom-color: transparent;
}

.moodle-layout .nexo-home .nexo-home__shortcut:hover {
  border-radius: 0;
  background: var(--home-surface);
}

.moodle-layout .nexo-home__shortcut-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.moodle-layout .nexo-home__shortcut-copy strong {
  color: var(--home-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.moodle-layout .nexo-home__shortcut-copy > span {
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.moodle-layout .nexo-home__shortcut-arrow {
  width: 17px;
  height: 17px;
  color: var(--home-muted);
}

.moodle-layout .nexo-home__editorial {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1fr);
  min-width: 0;
  min-height: 277px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 0;
  background: var(--home-surface);
}

.moodle-layout .nexo-home__editorial > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 277px;
  object-fit: cover;
  object-position: 42% center;
}

.moodle-layout .nexo-home__editorial-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px;
}

.moodle-layout .nexo-home__eyebrow {
  color: var(--home-accent-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.moodle-layout .nexo-home__editorial h2 {
  margin-top: 9px;
  color: var(--home-text);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.35px;
  text-wrap: initial;
}

.moodle-layout .nexo-home__editorial p {
  margin: 11px 0 10px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.65;
}

.moodle-layout .nexo-home .nexo-home__editorial-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  padding: 8px 0 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--home-text);
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.moodle-layout .nexo-home .nexo-home__editorial-link svg {
  width: 17px;
  height: 17px;
}

.moodle-layout .nexo-home .nexo-home__editorial-link:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.moodle-layout .nexo-home :focus-visible {
  outline: 3px solid var(--home-ink);
  outline-offset: 4px;
}

@media (max-width: 1020px) {
  .moodle-layout .nexo-home__welcome {
    padding-inline: 32px;
  }

  .moodle-layout .nexo-home__workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 25px;
  }

  .moodle-layout .nexo-home__editorial {
    grid-template-columns: minmax(100px, 0.6fr) minmax(0, 1fr);
  }

  .moodle-layout .nexo-home__editorial-copy {
    padding: 21px 19px;
  }
}

@media (max-width: 800px) {
  .moodle-layout .nexo-home__metric {
    padding: 18px;
  }

  .moodle-layout .nexo-home__metrics {
    gap: 12px;
  }

  .moodle-layout .nexo-home__metric dt {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .moodle-layout .nexo-home__workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
  }

  .moodle-layout .nexo-home__editorial {
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1fr);
    min-height: 240px;
  }

  .moodle-layout .nexo-home__editorial > img {
    min-height: 240px;
  }

  .moodle-layout .nexo-home__editorial-copy {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .moodle-layout .nexo-home__masthead {
    gap: 6px;
    margin-bottom: 18px;
  }

  .moodle-layout .nexo-home__masthead p {
    flex-basis: 100%;
    font-size: 15px;
  }

  .moodle-layout .nexo-home__welcome {
    grid-template-columns: minmax(0, 1fr) 124px;
    align-items: center;
    gap: 15px 6px;
    min-height: 0;
    padding: 19px 23px 23px;
    border-radius: 0;
  }

  .moodle-layout .nexo-home__welcome-copy {
    display: contents;
  }

  .moodle-layout .nexo-home__welcome h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(27px, 6.1vw, 34px);
    letter-spacing: -0.8px;
  }

  .moodle-layout .nexo-home__mascot {
    grid-column: 2;
    grid-row: 1;
    width: 124px;
    max-width: 100%;
  }

  .moodle-layout .nexo-home__mascot img {
    max-height: 136px;
  }

  .moodle-layout .nexo-home__welcome-description {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .moodle-layout .nexo-home__welcome-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 2px;
  }

  .moodle-layout .nexo-home .nexo-home__primary {
    gap: 15px;
    padding: 12px 16px;
  }

  .moodle-layout .nexo-home__metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .moodle-layout .nexo-home__metric {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 15px;
    padding: 15px 18px;
    border-radius: 0;
  }

  .moodle-layout .nexo-home__metric dt {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }

  .moodle-layout .nexo-home__metric-value {
    grid-column: 2;
    grid-row: 1 / 3;
    max-width: 6ch;
    margin-top: 0;
    font-size: 28px;
    text-align: right;
  }

  .moodle-layout .nexo-home__metric-note {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    padding-left: 40px;
    font-size: 13px;
  }

  .moodle-layout .nexo-home__courses {
    margin-top: 29px;
  }

  .moodle-layout .nexo-home__section-heading {
    align-items: flex-start;
    gap: 10px 12px;
  }

  .moodle-layout .nexo-home__section-heading h2 {
    font-size: 21px;
  }

  .moodle-layout .nexo-home__section-heading p {
    font-size: 14px;
  }

  .moodle-layout .nexo-home .nexo-home__text-button {
    padding: 3px 0;
    min-height: 44px;
    font-size: 14px;
  }

  .moodle-layout .nexo-home__workspace {
    gap: 26px;
    margin-top: 30px;
    padding-top: 25px;
  }

  .moodle-layout .nexo-home__editorial {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .moodle-layout .nexo-home__editorial > img {
    height: 174px;
    min-height: 0;
    object-position: center 44%;
  }

  .moodle-layout .nexo-home__editorial-copy {
    padding: 23px;
  }

  .moodle-layout .nexo-home__editorial h2 {
    max-width: 26ch;
    font-size: 21px;
  }

  .moodle-layout .nexo-home__editorial p {
    font-size: 15px;
  }

  .moodle-layout .nexo-home .nexo-home__editorial-link {
    font-size: 15px;
  }
}

body.high-contrast .moodle-layout .nexo-home {
  --home-ink: #000000;
  --home-text: #000000;
  --home-muted: #202020;
  --home-line: #000000;
  --home-surface: #ffffff;
  --home-soft: #ffffff;
  --home-accent-text: #000000;
}

body.high-contrast .moodle-layout .nexo-home__welcome,
body.high-contrast .moodle-layout .nexo-home__courses .empty {
  border-color: #000000;
}

body.high-contrast .moodle-layout .nexo-home__mascot::before {
  background: #ffffff;
}

body.high-contrast .moodle-layout .nexo-home .nexo-home__primary:hover {
  background: #000000;
  border-color: #000000;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .moodle-layout .nexo-home *,
  .moodle-layout .nexo-home *::before,
  .moodle-layout .nexo-home *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
