
/* Reset */

body {
  margin: 0;
}

*,
*:before,
*:after {
  box-sizing: border-box;

  &:focus:not(:focus-visible) {
    outline: none;
  }
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

img {
  display: block;
  width: 100%;
}

/* Fonts */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-Italic-VariableFont_opsz,wght.ttf")
    format("truetype");
}

/* Base */

:root {
  font-size: 125%;
  --m__radius: 1.5em;
}

body {
  font-family: "Inter";
  -webkit-font-smoothing: antialiased;
  font-weight: var(--m__font-weight-regular);
  line-height: var(--m__line-height-base);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

:root,
.light-mode {
  /* TEXT */
  --m__text-color: rgb(30, 30, 35);
  --m__text-link-color: rgb(50, 50, 70);
  --m__text-hover-color: rgb(40, 95, 235);
  --m__text-caption-color: rgb(150, 150, 170);
  --m__text-inverted-color: rgb(242, 242, 246);
  --m__text-accent-color: rgb(20, 20, 50);

  /* BACKGROUND */
  --m__background-color: rgb(255, 255, 255);
  --m__bg-surface-color: rgb(242, 242, 246);
  --m__bg-accent-color: rgb(20, 20, 50);
  --m__bg-hover-color: var(--m__text-hover-color);
  --m__bg-mark-color: rgb(255, 200, 29);

  /* UI */
  --m__ui-control-color: var(--m__bg-surface-color);
  --m__ui-border-color: rgb(220, 220, 230);
  --m__ui-error-color: rgb(255, 53, 84);
  --m__ui-success-color: rgb(21, 207, 135);

  /* CODE */
  --m__code-color: rgb(124, 58, 237);
}

.dark-mode {
  /* TEXT */
  --m__text-color: rgb(180, 180, 190);
  --m__text-caption-color: rgb(128, 128, 128);
  --m__text-link-color: rgb(255, 255, 255);
  --m__text-inverted-color: rgb(20, 20, 30);
  --m__text-hover-color: rgb(120, 180, 255);

  /* BACKGROUND */
  --m__background-color: rgb(20, 20, 25);
  --m__bg-surface-color: rgb(27, 27, 39);
  --m__bg-accent-color: rgb(20, 20, 50);
  --m__bg-hover-color: rgb(100, 110, 140);
  --m__bg-mark-color: rgb(255, 200, 29);

  /* UI */
  --m__ui-control-color: var(--m__bg-surface-color);
  --m__ui-border-color: var(--m__bg-surface-color);
  --m__ui-error-color: rgb(255, 53, 84);
  --m__ui-success-color: rgb(21, 207, 135);

  /* CODE */
  --m__code-color: rgb(167, 139, 250);

  color: var(--m__text-color);
  background-color: var(--m__background-color);
}

.modulate-legacy-dark-theme {
  /* TEXT */
  --m__text-color: rgb(255, 255, 255);
  --m__text-caption-color: rgb(128, 128, 128);
  --m__text-link-color: rgb(255, 255, 255);
  --m__text-inverted-color: rgb(20, 20, 30);
  --m__text-hover-color: rgb(120, 180, 255);

  /* BACKGROUND */
  --m__background-color: rgb(33, 20, 67);
  --m__bg-surface-color: rgb(33, 20, 67);
  --m__bg-accent-color: rgb(33, 20, 67);
  --m__bg-hover-color: rgb(100, 110, 140);
  --m__bg-mark-color: rgb(255, 200, 29);

  /* UI */
  --m__ui-control-color: var(--m__bg-surface-color);
  --m__ui-border-color: rgb(60, 50, 90);
  --m__ui-error-color: rgb(255, 53, 84);
  --m__ui-success-color: rgb(21, 207, 135);

  /* CODE */
  --m__code-color: rgb(167, 139, 250);

  color: var(--m__text-color);
  background-color: var(--m__background-color);
}

body {
  color: var(--m__text-color);
  background-color: var(--m__background-color);
}

:root {
  --m__space-xs: 0.7rem;
  --m__space-s: 0.9rem;
  --m__space-m: 1.2rem;
  --m__space-l: 2.4rem;
  --m__space-xl: 4.8rem;

  --m__default-margin-bottom: 0.5rem;
}

:root {
  --m__font-size-xs: 0.65rem;
  --m__font-size-s: 0.8rem;
  --m__font-size-m: 1rem;
  --m__font-size-l: 1.15rem;
  --m__font-size-xl: 1.25rem;
  --m__font-size-xxl: 1.4rem;
  --m__font-size-xxxl: 2rem;

  --m__font-weight-regular: 400;
  --m__font-weight-bold: 600;
  --m__font-weight-medium: 500;

  --m__line-height-base: 1.3;
}

.m__space {
  height: var(--m__space-m);

  &.XS {
    height: var(--m__space-xs);
  }
  &.S {
    height: var(--m__space-s);
  }
  &.M {
    height: var(--m__space-m);
  }
  &.L {
    height: var(--m__space-l);
  }
  &.XL {
    height: var(--m__space-xl);
  }
}

.m__wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 1000px;
  padding: 0 0.7rem;

  @media (width < 767px) {
    width: 100%;
  }

  & .m__text-width {
    width: 85%;

    @media (width < 767px) {
      width: 100%;
    }
  }
}

.dashboard-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 1000px;
  padding: 0 0.7rem;

  @media (width < 767px) {
    width: 100%;
  }

  & .m__text-width {
    width: 85%;

    @media (width < 767px) {
      width: 100%;
    }
  }
}

.m__sequence {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  --gap: 0em;
  gap: var(--gap);

  &.gap-L {
    --gap: 1.5em;
    margin-bottom: calc(var(--gap) * 1.5);
  }

  &.gap-M {
    --gap: 1em;
    margin-bottom: calc(var(--gap) * 1.5);
  }

  &.gap-S {
    --gap: 0.5em;
    margin-bottom: calc(var(--gap) * 1.5);
  }

  .m__sequence-item {
    --columns: 4;
    width: calc((100% - var(--gap) * (var(--columns) - 1)) / var(--columns));

    @media (width < 767px) {
      --columns: 2;
    }
  }

  &.XL {
    .m__sequence-item {
      --columns: 2;

      @media (width < 767px) {
        --columns: 1;
      }
    }
  }

  &.L {
    .m__sequence-item {
      --columns: 3;

      @media (width < 767px) {
        --columns: 2;
      }
    }
  }

  &.S {
    .m__sequence-item {
      --columns: 6;

      @media (width < 767px) {
        --columns: 3;
      }
    }
  }
}


.m__rounded {
  border-radius: var(--m__radius);
  corner-shape: squircle;
  overflow: hidden;
}

@supports not (corner-shape: squircle) {
  .m__rounded {
    border-radius: 0;
    border-radius: initial;
    mask:
      url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="m0,1 c0,-1 0,-1 1,-1 l99,0 l0,100 l-100,0 Z"/></svg>')
        top left / calc(var(--m__radius) * 100) no-repeat intersect,
      url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="m0,0 l99,0 c1,0 1,0 1,1 l0,99 l-100,0 l0,-100 Z"/></svg>')
        top right / calc(var(--m__radius) * 100) no-repeat intersect,
      url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="m0,0 l100,0 l0,99 c0,1 -0,1 -1,1 l-99,0 Z"/></svg>')
        bottom right / calc(var(--m__radius) * 100) no-repeat intersect,
      url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="m0,0 l100,0 l0,100 l-99,0 c-1,0 -1,-0 -1,-1 Z"/></svg>')
        bottom left / calc(var(--m__radius) * 100) no-repeat intersect;
  }
}

.modulate-design-system-tags {
  & p {
    font-size: var(--m__font-size-m);
    margin: 0 0 var(--m__default-margin-bottom);
  }

  & strong,
  & b {
    font-weight: 600;
  }

  & a {
    color: var(--m__text-link-color);
    text-decoration: underline;
    will-change: color;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-skip-ink: none;
    text-decoration-color: color-mix(
      in srgb,
      var(--m__text-link-color) 20%,
      transparent
    );
    transition:
      color 0.5s ease,
      text-decoration 0.5s ease;

    &:hover {
      color: var(--m__text-hover-color);
      text-decoration-color: color-mix(
        in srgb,
        var(--m__text-hover-color) 20%,
        transparent
      );
      transition:
        color 0s ease,
        text-decoration 0s ease;
    }
  }

  & h1,
  & h2,
  & h3,
  & h4,
  & h5,
  & h6 {
    margin: 0 0 var(--m__default-margin-bottom);
    font-weight: var(--m__font-weight-bold);
    line-height: var(--m__line-height-base);
  }

  & h1 {
    font-size: var(--m__font-size-xxxl);
  }

  & h2 {
    font-size: var(--m__font-size-xxl);
  }

  & h3 {
    font-size: var(--m__font-size-xl);
  }

  & h4 {
    font-size: var(--m__font-size-l);
  }

  & h5 {
    font-size: var(--m__font-size-m);
  }

  & h6 {
    font-size: var(--m__font-size-s);
    text-transform: uppercase;
  }

  & code {
    font-size: var(--m__font-size-s);
    font-family: "Inter";
    letter-spacing: 0.02em;
    font-weight: var(--m__font-weight-medium);
    padding: 0.1rem 0.25rem;
    border-radius: 0.2rem;
    color: var(--m__code-color);
    border: 1px solid color-mix(in srgb, var(--m__code-color) 10%, transparent);
    background: color-mix(in srgb, var(--m__code-color) 10%, transparent);
  }

  & ul,
  & ol {
    margin: 0 0 var(--m__default-margin-bottom) 0;
    padding: 0;

    & li {
      position: relative;
      margin-bottom: var(--m__default-margin-bottom);
    }
  }

  & ol {
    & li {
      list-style: decimal inside none;
    }
  }

  & ul {
    & li {
      list-style-type: none;
      padding-left: 0.8rem;
      margin-bottom: var(--m__default-margin-bottom);

      &:before {
        position: absolute;
        left: 0;
        content: "⋅ ";
      }
    }
  }
}

.ids {
  & mark {
    color: var(--m__text-color);
    background-color: var(--m__bg-mark-color);
  }

  & blockquote {
    font-size: 1.4em;
    line-height: 1.3;
    margin: 0;
    padding-left: 0.975em;
    margin-bottom: 1.3em;
  }

  & aside {
    margin: 0;
    margin-bottom: 0.65em;
    background: var(--m__bg-surface-color);
    padding-top: 0.52em;
    padding-right: 1.95em;
    padding-bottom: 0.52em;
    padding-left: 0.65em;
    border-radius: 0.2em;

    @media (width < 767px) {
      padding-right: 0.975em;
    }

    &.code {
      color: var(--m__code-color);
      background: color-mix(in srgb, var(--m__code-color) 10%, transparent);

      & h4 {
        font-size: 0.8rem;
        opacity: 0.5;
      }
    }
  }

  & figure {
    margin: 0 0 0.65em 0;

    &.XXS,
    &.ids__figure__XXS {
      width: 25%;
    }
    &.XS,
    &.ids__figure__XS {
      width: 50%;
    }
    &.S,
    &.ids__figure__S {
      width: 75%;
    }

    & figcaption {
      margin-top: 0.325em;
      font-size: 0.8em;
      line-height: 1.3;
      opacity: 0.7;
    }
  }

  & details {
    padding: 0.5em;
    cursor: pointer;
    border-radius: var(--m__radius);

    & summary {
      padding-bottom: var(--ids__micro-padding);
    }
  }

  & table {
    border-spacing: 0;
    background-color: inherit;

    @media (max-width: 768px) {
      font-size: 0.7em;
    }

    thead {
      background-color: inherit;
    }

    tr {
      background-color: inherit;

      & th {
        position: sticky;
        top: 0px;
        text-align: left;
        font-size: 0.75em;
        font-weight: 400;
        border-bottom: 1px solid
          color-mix(in srgb, var(--m__text-color) 30%, transparent);
        padding-bottom: 0.3em;
        background-color: var(--m__background-color);

        @media (max-width: 768px) {
          padding-top: 0.8em;
        }
      }

      & td {
        padding: 0.8em 0.5em 1em 0;
        border-bottom: 1px solid
          color-mix(in srgb, var(--m__text-color) 12%, transparent);
        vertical-align: top;
      }

      &:last-child {
        & td {
          border-bottom: none;
        }
      }
    }
  }

  & hr {
    border-top-color: color-mix(in srgb, var(--m__text-color) 20%, transparent);
    border-bottom: 0;
  }
}

.ids__navbar {
  display: inline-block;

  & ul {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    border: 2px solid var(--m__text-color);
    border-radius: 0.4em;
    overflow: hidden;

    @media (width < 767px) {
      flex-direction: column;
      width: max-content;
    }
  }

  & ul li {
    margin: 0;
    padding: 0;
    border-right: 1px solid
      color-mix(in srgb, var(--m__text-color) 20%, transparent);

    &:last-child {
      border-right: none;
    }

    @media (width < 767px) {
      border-right: none;
      border-bottom: 1px solid
        color-mix(in srgb, var(--m__text-color) 20%, transparent);

      &:last-child {
        border-bottom: none;

        & a {
          padding-bottom: 0.5em;
        }
      }
    }

    &::before {
      content: "";
    }

    & a {
      display: block;
      padding: 0.3em 0.8em;
      font-size: 0.8em;
      font-weight: 500;
      text-decoration: none;
      color: var(--m__text-color);

      @media (width < 767px) {
        padding-right: 2em;
      }

      &:hover {
        color: var(--m__text-hover-color);
        background-color: color-mix(
          in srgb,
          var(--m__text-hover-color) 10%,
          transparent
        );
        text-decoration: none;
      }
    }
  }

  & .current {
    & a {
      background-color: color-mix(
        in srgb,
        var(--m__text-link-color) 8%,
        transparent
      );

      &:hover {
        background-color: color-mix(
          in srgb,
          var(--m__text-hover-color) 10%,
          transparent
        );
        color: var(--m__text-hover-color);
      }
    }
  }
}

@import 'lib/photoswipe.css';

ids-gallery, .ids__gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5em;


    figure {
        flex: 0 0 5em;

        &:focus-within:has(a:focus-visible) {
            outline: 2px solid var(--m__text-link-color);
            outline-offset: 2px;
        }

        a:hover, a:focus-visible {
            opacity: 0.9;
        }

        img {
            object-fit: contain;
            max-height: 100%;
            max-width: 100%;
        }

        figcaption {
            margin-right: -25%;
        }
    }
}

/* PhotoSwipe lightbox caption */
.pswp .pswp__caption {
    position: absolute;
    display: grid;
    left: 0;
    right: 0;
    bottom: 1.3em;

    figcaption {
        place-self: center;
        color: var(--m__background-color);
        background: color-mix(in srgb, var(--m__text-color) 80%, transparent);
        font-size: 0.8em;
        line-height: 1.3;
        padding: 0.4em 0.8em;
        text-align: center;
        max-width: 80%;

        a {
            color: inherit;
            text-decoration: underline;
            text-underline-offset: 0.15em;

            &:hover {
                opacity: 0.7;
            }
        }
    }


}

.ids__inline-gallery {
  display: grid;
  gap: 0.2em;
  position: relative;
  touch-action: pan-y;

  & > img {
    display: block;
    grid-area: 1/1;
    width: 100%;
    aspect-ratio: var(--img-aspect-ratio, 1/1);
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    visibility: hidden;
    transition: filter 500ms ease;
  }

  & > img:first-child {
    visibility: visible;
  }

  & > a::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
  }

  &:hover {
    &:has(a) > img {
      filter: brightness(105%);
      transition: filter 0s;
    }
  }

  .ids__inline-gallery__pos {
    text-align: center;
    font-variant-numeric: tabular-nums;

    &::before {
      content: attr(data-index) "/" attr(data-count);
    }
  }

  .ids__inline-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 0.6em;

    .ids__inline-gallery__dot {
      width: 0.3em;
      aspect-ratio: 1/1;
      border-radius: 50%;
      background-color: color-mix(in srgb, var(--m__text-color) 20%, transparent);
    }

    .ids__inline-gallery__dot-active {
      background-color: var(--m__text-color);
      order: var(--index) !important;
    }
  }

  .ids__inline-gallery__dashes {
    display: flex;
    justify-content: center;
    gap: 0.4em;

    .ids__inline-gallery__dash {
      width: 0.5em;
      height: 0.1em;
      border-radius: 0.05em;
      background-color: color-mix(in srgb, var(--m__text-color) 50%, transparent);
      transition: width 100ms ease, background-color 100ms ease;
    }

    .ids__inline-gallery__dash-active {
      width: 1.5em;
      background-color: var(--m__text-color);
    }
  }
}


/* ============================================
   IDS Footnote Link
   ============================================ */

ids-footnote-link {
  display: inline;
  white-space: nowrap;

  label {
    cursor: pointer;
    white-space: nowrap;
  }
}

.ids-footnote-link__button {
  appearance: none;
  cursor: pointer;
  padding: 0.5em 0.15em;
  margin: 0 0 0.15em 0.15em;
  transform: translateY(-0.3em);

  /* Circle styling */
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  display: inline-grid;
  font-size: 0.65em;
  line-height: 1;
  place-content: center;

  /* Not selected state: outlined circle */
  background: transparent;
  border: 1px solid var(--m__text-color);
  color: var(--m__text-color);

  &.enlarge {
    font-size: 0.85em;
  }

  /* Selected state: filled circle */
  &.open {
    background: var(--m__text-color);
    border: 1px solid transparent;
    color: var(--m__background-color);
  }

  /* Hover state for non-selected */
  &:not(.open):hover {
    border-color: var(--m__text-hover-color);
    color: var(--m__text-hover-color);
  }
}

/* ============================================
   IDS Footnote
   ============================================ */

.ids-footnote-wrap {
  left: 100%;
  width: max-content;
  height: auto;
  position: relative;
  top: var(--top);

  > :not(aside) {
    display: none;
  }
}

aside.ids-footnote {
  position: absolute;
  width: 20em;
  padding: 0.975em;
  font-size: 0.8em;
  z-index: 150;
  box-shadow: 0 0.5em 1em color-mix(in srgb, var(--m__text-color) 30%, transparent);
  background: var(--m__background-color);
  border-radius: 0.3em;

  /* First paragraph badge - black filled circle */
  p:first-child::before {
    content: attr(data-index);
    display: inline-grid;
    place-items: center;
    width: 1.3em;
    height: 1.3em;
    border-radius: 50%;
    background: var(--m__text-color);
    color: var(--m__background-color);
    font-size: 1em;
    line-height: 1;
    margin-right: 0.3em;
    vertical-align: middle;
  }

  &.enlarge-number p:first-child::before {
    font-size: 1.1em;
  }

  /* Scrollability */
  &.scrollable {
    box-shadow:
      0 0.5em 1em color-mix(in srgb, var(--m__text-color) 50%, transparent),
      0 -10em 0 color-mix(in srgb, var(--m__text-color) 30%, transparent);
    overflow: auto;
  }
}

/* Mobile layout */
@media (width < 767px) {
  .ids-footnote-wrap {
    left: 0;
    bottom: 0;
  }

  aside.ids-footnote {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 1em;
    max-height: calc(100dvh - 5em);
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 0.5em 1em color-mix(in srgb, var(--m__text-color) 30%, transparent);
  }
}

/* Scrollability - lock body scroll */
html:has(.ids-footnote.scrollable) {
  overflow: hidden;
}

/* Close button */
:not(.scrollable) .ids-footnote__close {
  display: none;
}
.scrollable .ids-footnote__close {
  display: block;

  width: 100%;
  background-color: transparent;
  border: none;
  color: var(--m__text-link-color);
  cursor: pointer;
  font-size: 0.9em;
  padding: 0.5em 0;
  margin-top: 1em;

  &:hover,
  &:active {
    color: var(--m__text-hover-color);
  }

  svg {
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.5em;
    vertical-align: middle;
  }

  line {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  

  --pswp-root-z-index: 100000;
  
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;

  --pswp-error-text-color: var(--pswp-icon-color);
}


/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
	display: block;
}

.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
	background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
	overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
	cursor: move;
	cursor: -webkit-grab;
	cursor: -moz-grab;
	cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	cursor: zoom-out;
}


/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.pswp__item {
	/* z-index for fade transition */
	z-index: 1;
	overflow: hidden;
}

.pswp__hidden {
	display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}
.pswp__content > * {
  pointer-events: auto;
}


/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10; /* always overlap slide content */
	pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 1;
	pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
	position: relative;
	display: block;
	width: 50px;
	height: 60px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 0.85;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
	outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
	background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
  flex-direction: row;
  justify-content: flex-end;
	z-index: 10;

	/* allow events to pass through top bar itself */
	pointer-events: none !important;
}
.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}


/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}


/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}


/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
  display: none;
}

.header {
  padding: 0.5em 0 1em;
  margin-bottom: 5rem;

  & nav {
    font-size: 0.8em;
    font-weight: 480;
    display: flex;
    align-items: baseline;
    gap: 1em;
    flex-wrap: wrap;

    @media (width < 768px) {
      gap: 1em;
    }

    & span.nav-link {
      text-decoration: none;
    }

    & .nav-link {
      display: flex;
      align-items: baseline;
      gap: 0.3em;
    }

    & .nav-spacer {
      flex: 1;
    }
  }
}

.footer {
  margin-top: 12em;
  font-size: 0.8em;
  background-color: var(--m__bg-surface-color);
  padding-top: 2em;
  padding-bottom: 8em;
}

.color-palette-dark {
  background-color: var(--m__background-color);
  padding: 4rem 0;
}

/* Color palette plates (from modulate-design) */
.guide-color-plate {
  padding: 0.5em 0.5em 2.36em 0.5em;
  font-size: 0.7em;
  line-height: 1;
  min-height: 7em;
}

/* Emotion colors showcase (from modulate-design) */
.emotion-colors-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.2em;
  margin-bottom: 2em;
}

.emotion-group {
  background-color: var(--m__bg-surface-color);
  padding: 0.8em 2em 2em 1em;

  & .emotion-group-header {
    margin-bottom: 0.6em;

    & h3 {
      margin: 0;
      font-weight: 500;
      color: color-mix(in srgb, var(--m__text-color) 70%, transparent);
    }
  }

  & .emotion-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1em;

    & .emotion-color-sample {
      padding: 0.3em 0.6em;
      color: white;
    }
  }
}

/* UI Structure Visualizer */
.ui-structure-container {
  font-family: monospace;
  font-size: 0.7em;
  line-height: 1.3;
  white-space: pre;
}

.ui-route-block {
  margin: 0 0 1em 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre;
  background: none;
  border: none;
}

:root {
  /* Emotion group colors - base values */
  --emotion-attack-rejection-group: rgb(255, 53, 84);
  --emotion-threat-uncertainty-group: rgb(180, 100, 200);
  --emotion-excited-engaged-group: rgb(255, 120, 80);
  --emotion-low-energy-negative-group: rgb(0, 120, 200);
  --emotion-calm-grounded-group: rgb(110, 140, 190);
  --emotion-neutral-group: rgb(90, 90, 110);

  /* Individual emotion variables - map to group variables */
  /* attack / rejection */
  --emotion-angry: var(--emotion-attack-rejection-group);
  --emotion-contemptuous: var(--emotion-attack-rejection-group);
  --emotion-disgusted: var(--emotion-attack-rejection-group);

  /* threat / uncertainty */
  --emotion-afraid: var(--emotion-threat-uncertainty-group);
  --emotion-anxious: var(--emotion-threat-uncertainty-group);
  --emotion-stressed: var(--emotion-threat-uncertainty-group);
  --emotion-surprised: var(--emotion-threat-uncertainty-group);
  --emotion-ashamed: var(--emotion-threat-uncertainty-group);
  --emotion-frustrated: var(--emotion-threat-uncertainty-group);
  --emotion-fear: var(--emotion-threat-uncertainty-group);

  /* excited / engaged */
  --emotion-affectionate: var(--emotion-excited-engaged-group);
  --emotion-amused: var(--emotion-excited-engaged-group);
  --emotion-excited: var(--emotion-excited-engaged-group);
  --emotion-happy: var(--emotion-excited-engaged-group);
  --emotion-hopeful: var(--emotion-excited-engaged-group);
  --emotion-proud: var(--emotion-excited-engaged-group);
  --emotion-relieved: var(--emotion-excited-engaged-group);
  --emotion-curious: var(--emotion-excited-engaged-group);

  /* low energy, negative */
  --emotion-disappointed: var(--emotion-low-energy-negative-group);
  --emotion-bored: var(--emotion-low-energy-negative-group);
  --emotion-tired: var(--emotion-low-energy-negative-group);
  --emotion-concerned: var(--emotion-low-energy-negative-group);
  --emotion-confused: var(--emotion-low-energy-negative-group);
  --emotion-sad: var(--emotion-low-energy-negative-group);

  /* calm / grounded */
  --emotion-calm: var(--emotion-calm-grounded-group);
  --emotion-confident: var(--emotion-calm-grounded-group);
  --emotion-interested: var(--emotion-calm-grounded-group);

  /* no strong signal */
  --emotion-neutral: var(--emotion-neutral-group);
  --emotion-unknown: var(--emotion-neutral-group);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;

  @media (width < 767px) {
    grid-template-columns: 1fr;
  }
}

aside.nav-sidebar {
  background-color: transparent;
  padding: 0;

  & nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  & .nav-sidebar__link {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--m__text-color);
    text-decoration: none;
    font-size: 0.9rem;

    &:hover {
      background-color: var(--m__bg-surface-color);
    }

    &.active {
      background-color: var(--m__bg-surface-color);
      font-weight: 500;
    }
  }
}

.dashboard-content {
  & .dashboard-section {
    margin-bottom: 2rem;

    & h2 {
      font-size: 1rem;
      font-weight: 600;
      margin: 0 0 1rem 0;
    }
  }

  & .dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;

    @media (width < 767px) {
      grid-template-columns: 1fr;
    }
  }

  & .stat-card {
    background-color: var(--m__bg-surface-color);
    border-radius: 0.75rem;
    padding: 1rem 1rem;

    & .stat-card__label {
      font-size: 0.75rem;
      color: var(--m__text-caption-color);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin: 0 0 0.5rem 0;
    }

    & .stat-card__value {
      font-size: 1.6rem;
      font-weight: 600;
      margin: 0;
    }
  }
}

