/**
 * MD Teacher: front page ([mdt_forside]).
 *
 * Everything is scoped to the page wrapper #mdt-f, so the theme and Elementor do not affect the page, and the page
 * does not affect them. Colours and fonts are variables at the top. Tablet and mobile: each @media block sits next
 * to the part it changes, and responsive.css is loaded on top at the end.
 */

#mdt-f {
  --bg: #0b2129;
  --bg-2: #122d36;
  --bg-3: #16333d;
  --panel: #1a3944;
  --line: #254753;
  --line-soft: #1e3e4a;
  --white: #ffffff;
  --mist: #c9d6da;
  --dim: #8fa6ad;
  --red: #e41e2e;
  --red-deep: #b8151f;
  --sun: #6edad3;
  --sand: #6edad3;
  --paper: #ffffff;
  --ink: #122d36;
  --ink-2: #2e4e58;
  --slate: #69828a;
  --rule: #e3e8ea;
  --sun-soft: #e2f8f6;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 22px 44px -24px rgba(0, 0, 0, 0.5);
  --f-display: "IBM Plex Serif", Georgia, serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
#mdt-f,
#mdt-f * {
  box-sizing: border-box;
}
#mdt-f {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#mdt-f .wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
#mdt-f p {
  margin: 0 0 1rem;
}
#mdt-f p:last-child {
  margin-bottom: 0;
}
#mdt-f em {
  font-style: italic;
}
#mdt-f a {
  color: var(--mist);
  text-underline-offset: 2px;
}
#mdt-f a:hover {
  color: var(--white);
}
#mdt-f a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
#mdt-f .btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
}
#mdt-f .btn.primary {
  background: var(--red);
  color: #fff;
}
#mdt-f .btn.primary:hover {
  background: var(--red-deep);
  color: #fff;
}
#mdt-f .btn.ghost {
  border-color: #3e5f6b;
  color: var(--white);
}
#mdt-f .btn.ghost:hover {
  border-color: var(--white);
  color: var(--white);
}
#mdt-f h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  max-width: 19ch;
  text-wrap: balance;
  color: var(--white);
}
#mdt-f .lede {
  font-size: 1.13rem;
  line-height: 1.65;
  color: var(--mist);
  max-width: 37rem;
}
#mdt-f .hvem {
  margin-top: 1.2rem;
  font-size: 0.98rem;
  color: var(--dim);
  max-width: 37rem;
}
#mdt-f .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.9rem;
}
#mdt-f section.dark {
  padding: 3.9rem 0;
}
#mdt-f section.dark.alt {
  background: var(--bg-2);
}
#mdt-f .center {
  text-align: center;
}
#mdt-f .center p {
  margin-left: auto;
  margin-right: auto;
}
#mdt-f h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
  color: var(--white);
}
#mdt-f .kick {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.8rem;
}
#mdt-f .mute {
  color: var(--mist);
  max-width: 40rem;
}
#mdt-f .seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin-top: 2.6rem;
  text-align: center;
}
@media (max-width: 860px) {
  #mdt-f .seg {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
#mdt-f .seg .ic {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1rem;
  color: var(--red);
}
#mdt-f .seg b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
}
#mdt-f .seg p {
  font-size: 0.97rem;
  color: var(--mist);
  max-width: 22rem;
  margin: 0 auto 0.6rem;
}
#mdt-f .capture {
  background: var(--bg-3);
  padding: 3.4rem 0;
  text-align: center;
}
#mdt-f .capture h2 {
  margin-bottom: 0.6rem;
}
#mdt-f .capture p {
  color: var(--mist);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
#mdt-f .choice {
  display: grid;
  gap: 0.6rem;
  margin: 0.3rem 0 1.6rem;
}
#mdt-f .choice.row {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 620px) {
  #mdt-f .choice.row {
    grid-template-columns: 1fr;
  }
}
#mdt-f #om .mute {
  max-width: 44rem;
}
#mdt-f h1,
#mdt-f h2,
#mdt-f h3 {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
#mdt-f {
  color-scheme: dark;
}
#mdt-f .wrap {
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  #mdt-f .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}
#mdt-f .center-cta {
  justify-content: center;
  margin: 1.5rem 0 1rem;
}
#mdt-f .kc {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  min-width: 0;
}
#mdt-f .kc:hover {
  transform: translateY(-3px);
  border-color: var(--sand);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.7);
}
#mdt-f .kc:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #mdt-f .kc {
    transition: none;
  }
  #mdt-f .kc:hover {
    transform: none;
  }
}
#mdt-f .kc-img {
  position: relative;
  height: 10.5rem;
  background: radial-gradient(22rem 12rem at 50% 0%, #27505f 0%, var(--bg-3) 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
#mdt-f .kc-img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
#mdt-f .kc-b {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
}
#mdt-f .kc h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.25;
  margin: 0;
  color: var(--white);
}
#mdt-f .kc p {
  font-size: 0.88rem;
  color: var(--mist);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
#mdt-f .kc-meta {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
#mdt-f .kc-meta b {
  color: var(--sand);
  font-family: var(--f-body);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
#mdt-f .kc-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#mdt-f .fs-hero {
  background: radial-gradient(90rem 40rem at 70% -20%, #1b4150 0%, var(--bg-2) 45%, var(--bg) 100%);
  padding: 4rem 0 3.4rem;
}
#mdt-f .fs-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
}
@media (max-width: 900px) {
  #mdt-f .fs-hero .wrap {
    grid-template-columns: 1fr;
  }
}
#mdt-f .fs-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
}
#mdt-f .video {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
#mdt-f .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#mdt-f .logos {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.4rem 0;
}
#mdt-f .logos .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.6rem;
  align-items: center;
  justify-content: center;
}
#mdt-f .logos .lbl {
  font-size: 0.9rem;
  color: var(--mist);
  font-weight: 600;
  flex-basis: 100%;
  text-align: center;
}
#mdt-f .logos img {
  height: 34px;
  width: auto;
  display: block;
  opacity: 0.92;
}
#mdt-f .kurs-rk {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 17rem);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1.2rem;
  scroll-snap-type: x mandatory;
  margin-top: 2rem;
  text-align: left;
  scrollbar-color: var(--line) transparent;
}
#mdt-f .kurs-rk .kc {
  scroll-snap-align: start;
}
#mdt-f .kc-img.fill {
  align-items: stretch;
}
#mdt-f .kc-img.fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
}
#mdt-f .kc .ud {
  font-size: 0.84rem;
  color: var(--mist);
}
#mdt-f .kc .ud span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
#mdt-f .citater {
  columns: 3 18rem;
  column-gap: 1rem;
  margin-top: 2.2rem;
  text-align: left;
}
#mdt-f .cit {
  break-inside: avoid;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.25rem;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
#mdt-f .cit blockquote {
  margin: 0;
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.6;
}
#mdt-f .cit blockquote::before {
  content: "“";
  font-family: var(--f-display);
  font-size: 2.4rem;
  line-height: 0.6;
  color: var(--red);
  display: block;
  margin-bottom: 0.2rem;
}
#mdt-f .cit figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
#mdt-f .cit figcaption img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
#mdt-f .cit figcaption b {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
}
#mdt-f .cit figcaption span {
  display: block;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.4;
}
#mdt-f .storcit {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
#mdt-f .storcit blockquote {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 1rem;
  text-wrap: balance;
}
#mdt-f .storcit cite {
  font-style: normal;
  color: var(--sand);
  font-weight: 600;
}
#mdt-f .hold {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 2rem;
}
#mdt-f .hold h2 {
  margin-bottom: 0.4rem;
}
#mdt-f .hold p {
  color: var(--mist);
  max-width: 40rem;
  margin: 0;
}
#mdt-f {
  overflow-x: clip;
}
#mdt-f .fs-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.4rem;
  isolation: isolate;
}
#mdt-f .fs-hero .mosaic {
  position: absolute;
  inset: -2rem -4rem -2rem 38%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  transform: rotate(-6deg);
  z-index: -2;
  opacity: 0.55;
}
#mdt-f .fs-hero .mosaic img {
  width: 100%;
  aspect-ratio: 8/7;
  object-fit: cover;
  border-radius: 12px;
  filter: saturate(0.8);
}
#mdt-f .fs-hero .mosaic img:nth-child(4n + 2) {
  transform: translateY(2.2rem);
}
#mdt-f .fs-hero .mosaic img:nth-child(4n + 4) {
  transform: translateY(1.1rem);
}
#mdt-f .fs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(11, 33, 41, 0.86) 58%, rgba(11, 33, 41, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 33, 41, 0) 30%);
}
#mdt-f .fs-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.06;
  max-width: 16ch;
}
#mdt-f .fs-hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  border-radius: 4px;
  background: var(--red);
  margin-top: 1.1rem;
}
#mdt-f .trust {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.88rem;
  color: var(--mist);
}
#mdt-f .trust li::before {
  content: "✓ ";
  color: var(--sun);
  font-weight: 700;
}
#mdt-f .vstage {
  position: relative;
}
#mdt-f .vstage .video {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(110, 218, 211, 0.08);
}
#mdt-f .fbadge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(18, 45, 54, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.84rem;
  color: var(--mist);
  line-height: 1.25;
}
#mdt-f .fbadge b {
  font-family: var(--f-display);
  font-size: 1.45rem;
  color: var(--sun);
  font-weight: 600;
}
#mdt-f .fbadge .chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
#mdt-f .fbadge.b1 {
  left: -1.4rem;
  bottom: -1.3rem;
}
#mdt-f .fbadge.b2 {
  right: -1rem;
  top: -1.1rem;
}
@media (max-width: 900px) {
  #mdt-f .fs-hero .mosaic {
    inset: auto -3rem -1rem -3rem;
    height: 60%;
    opacity: 0.35;
  }
  #mdt-f .fs-hero::before {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 45%, rgba(11, 33, 41, 0.8) 75%, var(--bg) 100%);
  }
  #mdt-f .vstage {
    margin-top: 1rem;
  }
  #mdt-f .fbadge.b1 {
    left: 0.6rem;
    bottom: -1.2rem;
  }
  #mdt-f .fbadge.b2 {
    right: 0.6rem;
    top: -1rem;
  }
}
#mdt-f .stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 2.4rem 0 1.4rem;
}
#mdt-f .stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
#mdt-f .stat {
  text-align: center;
  padding: 0.4rem 0.5rem;
  border-left: 1px solid var(--line-soft);
}
#mdt-f .stat:first-child {
  border-left: 0;
}
#mdt-f .stat b {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
#mdt-f .stat span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}
@media (max-width: 640px) {
  #mdt-f .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.6rem;
  }
  #mdt-f .stat:nth-child(3) {
    border-left: 0;
  }
}
#mdt-f .logos {
  border-top: 0;
  padding-top: 0.6rem;
}
#mdt-f .trin {
  counter-reset: st;
  position: relative;
}
#mdt-f .trin > div {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.3rem 1.4rem;
}
#mdt-f .trin > div::before {
  counter-increment: st;
  content: "0" counter(st);
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--dim);
}
#mdt-f .trin .ic {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0.65rem;
  border-radius: 999px;
  background: rgba(228, 30, 46, 0.14);
  color: var(--red);
  box-sizing: border-box;
}
#mdt-f .rail {
  position: relative;
}
#mdt-f .kurs-rk {
  grid-auto-columns: minmax(16rem, 18.5rem);
  scrollbar-width: thin;
}
#mdt-f .kurs-rk .kc-img {
  height: 13rem;
}
#mdt-f .kurs-rk .kc-img img {
  transition: transform 0.4s ease;
}
#mdt-f .kurs-rk .kc:hover .kc-img img {
  transform: scale(1.05);
}
#mdt-f .kurs-rk .kc-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(26, 57, 68, 0.95), rgba(26, 57, 68, 0));
}
#mdt-f .rail-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 33, 41, 0.92);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8);
}
#mdt-f .rail-btn:hover {
  border-color: var(--sand);
  color: var(--sand);
}
#mdt-f .rail-btn:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
#mdt-f .rail-btn.prev {
  left: -1.2rem;
}
#mdt-f .rail-btn.next {
  right: -1.2rem;
}
@media (max-width: 760px) {
  #mdt-f .rail-btn {
    display: none;
  }
}
#mdt-f .cit {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
#mdt-f .cit:hover {
  transform: translateY(-3px);
  border-color: #3e5f6b;
}
#mdt-f .cit.foto {
  background: linear-gradient(160deg, #1f4552 0%, var(--panel) 60%);
  border-color: #2e5664;
}
#mdt-f .cit.foto figcaption img {
  width: 56px;
  height: 56px;
  border: 2px solid var(--sand);
}
#mdt-f .citater .cit:nth-child(5n + 1) {
  border-top: 3px solid var(--red);
}
#mdt-f .storcit blockquote {
  position: relative;
}
#mdt-f .storcit blockquote::before {
  content: "“";
  display: block;
  font-size: 6rem;
  line-height: 0.6;
  color: var(--red);
  margin-bottom: 0.4rem;
}
#mdt-f .storcit cite {
  display: inline-block;
  border-top: 2px solid var(--sand);
  padding-top: 0.6rem;
}
#mdt-f .capture.hot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50rem 22rem at 50% 120%, rgba(228, 30, 46, 0.45) 0%, rgba(228, 30, 46, 0) 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line-soft);
}
#mdt-f .capture.hot h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
}
#mdt-f .rv.rv-pre {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
#mdt-f .rv.rv-pre.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  #mdt-f .kurs-rk .kc-img img,
  #mdt-f .cit {
    transition: none;
  }
}
#mdt-f .kurs-rk .kc-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
#mdt-f .kurs-rk .kc-meta span {
  overflow: visible;
}
#mdt-f h1,
#mdt-f h2 {
  hyphens: manual;
  -webkit-hyphens: manual;
}
@media (max-width: 640px) {
  #mdt-f .trin > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.2rem;
    text-align: left;
    padding: 1.1rem 1.1rem;
    align-items: start;
  }
  #mdt-f .trin > div .ic {
    grid-row: 1 / span 2;
    margin: 0;
  }
  #mdt-f .trin > div b {
    margin: 0;
  }
  #mdt-f .trin > div p {
    margin: 0;
  }
}
#mdt-f .bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
  text-align: left;
}
#mdt-f .bx {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}
#mdt-f .bx::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(28rem 14rem at 100% 0%, rgba(110, 218, 211, 0.08), rgba(110, 218, 211, 0) 70%);
}
#mdt-f .bx-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
}
#mdt-f .bx-wide .bx-txt {
  flex: 1 1 0;
}
#mdt-f .bx-wide .bx-vis {
  flex: 1.1 1 0;
}
#mdt-f .bx-txt b {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.5rem;
}
#mdt-f .bx-txt p {
  margin: 0;
  color: var(--mist);
  font-size: 0.96rem;
  line-height: 1.6;
}
#mdt-f .bx-vis {
  position: relative;
}
#mdt-f .faces {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.6rem;
  padding-left: 0.8rem;
}
#mdt-f .faces img {
  width: 72px;
  height: 72px;
  margin-left: -0.8rem;
  border-radius: 999px;
  border: 3px solid var(--panel);
  background: var(--bg-3);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.8);
}
#mdt-f .faces .more {
  margin-left: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(110, 218, 211, 0.1);
  border: 1px solid rgba(110, 218, 211, 0.35);
  color: var(--sun);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
#mdt-f .ajour {
  display: flex;
  justify-content: center;
}
#mdt-f .mini {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.8);
}
#mdt-f .mini img {
  width: 4.8rem;
  height: 4.2rem;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
#mdt-f .mini i {
  display: block;
  font-style: normal;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  margin-top: 0.35rem;
}
#mdt-f .mini .tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--sun);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
#mdt-f .pl {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.8);
  font-size: 0.82rem;
}
#mdt-f .pl-h {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  padding: 0.2rem 0.4rem 0.5rem;
}
#mdt-f .pl-h .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--sand);
}
#mdt-f .pl-i {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.5rem;
  border-radius: 7px;
  color: var(--mist);
}
#mdt-f .pl-i span {
  font-size: 0.6rem;
  color: var(--dim);
}
#mdt-f .pl-i em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--dim);
}
#mdt-f .pl-i.on {
  background: rgba(228, 30, 46, 0.12);
  box-shadow: inset 3px 0 0 var(--red);
  color: var(--white);
}
#mdt-f .pl-i.on span {
  color: var(--red);
}
#mdt-f .pl-q {
  margin-top: 0.3rem;
  padding: 0.42rem 0.5rem;
  border-radius: 7px;
  border: 1px dashed rgba(110, 218, 211, 0.35);
  color: var(--sun);
  font-weight: 600;
}
#mdt-f .cmp {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
#mdt-f .cmp .row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 0.8rem;
}
#mdt-f .cmp .lab {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
#mdt-f .cmp .bar {
  height: 2.6rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
#mdt-f .cmp .bar.big {
  width: 100%;
  background: repeating-linear-gradient(135deg, rgba(228, 30, 46, 0.28) 0 10px, rgba(228, 30, 46, 0.18) 10px 20px);
  border: 1px solid rgba(228, 30, 46, 0.5);
  color: #ffd3d6;
}
#mdt-f .cmp .bar.small {
  width: 46%;
  min-width: 10.5rem;
  background: var(--sun);
  color: var(--bg);
}
@media (max-width: 900px) {
  #mdt-f .bento {
    grid-template-columns: 1fr 1fr;
  }
  #mdt-f .bx-wide {
    grid-column: span 2;
  }
}
@media (max-width: 680px) {
  #mdt-f .bento {
    grid-template-columns: 1fr;
  }
  #mdt-f .bx-wide {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
  #mdt-f .faces img {
    width: 56px;
    height: 56px;
  }
  #mdt-f .cmp .row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
#mdt-f .bx-wide .bx-vis {
  flex: 1.35 1 0;
}
@media (min-width: 681px) {
  #mdt-f .faces {
    flex-wrap: nowrap;
  }
  #mdt-f .faces img {
    width: 60px;
    height: 60px;
  }
}
@media (min-width: 681px) and (max-width: 1100px) {
  #mdt-f .faces {
    flex-wrap: wrap;
  }
}
#mdt-f .cmp .bar {
  white-space: normal;
  height: auto;
  min-height: 2.6rem;
  padding: 0.5rem 0.9rem;
  line-height: 1.3;
}
#mdt-f .mini .tag {
  border-radius: 6px;
}
#mdt-f .bento .bx-wide:first-child {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}
#mdt-f .bento .bx-wide:first-child .bx-txt,
#mdt-f .bento .bx-wide:first-child .bx-vis {
  flex: none;
}
#mdt-f .bento .bx-wide:first-child .bx-txt p {
  max-width: 34rem;
}
#mdt-f .faces {
  flex-wrap: wrap !important;
}
@media (min-width: 681px) {
  #mdt-f .faces img {
    width: 68px;
    height: 68px;
  }
}
#mdt-f .bx-wide .bx-txt {
  min-width: 15rem;
}
@media (min-width: 1000px) {
  #mdt-f .faces img {
    width: 84px;
    height: 84px;
    margin-left: -1rem;
  }
  #mdt-f .faces {
    padding-left: 1rem;
  }
}

#mdt-f {
  display: block;
  width: 100%;
  overflow-x: clip;
}

/* On the front page the theme puts the menu on top of the content; here it sits above it, as on the other new pages */
body.home .site-header {
  position: relative;
}

/* ---------- A line that should not wrap on a desktop ---------- */
#mdt-f .mute.one-line {
  max-width: none;
}
