@import "quill-custom.css";
@import "modal-custom.css";

/* fonts */

@font-face {
  font-family: "Simplon-Mono";
  src: url('/static/global/fonts/SimplonMono/SimplonMono-Regular.otf') format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Simplon-Mono";
  src: url('/static/global/fonts/SimplonMono/SimplonMono-RegularItalic.otf') format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Simplon-Mono";
  src: url('/static/global/fonts/SimplonMono/SimplonMono-Light.otf') format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Simplon-Mono";
  src: url('/static/global/fonts/SimplonMono/SimplonMono-LightItalic.otf') format("truetype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Simplon-Mono";
  src: url('/static/global/fonts/SimplonMono/SimplonMono-Medium.otf') format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Simplon-Mono";
  src: url('/static/global/fonts/SimplonMono/SimplonMono-MediumItalic.otf') format("truetype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Simplon-Mono";
  src: url('/static/global/fonts/SimplonMono/SimplonMono-Bold.otf') format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Simplon-Mono";
  src: url('/static/global/fonts/SimplonMono/SimplonMono-BoldItalic.otf') format("truetype");
  font-weight: 700;
  font-style: italic;
}


/* Overriding general rules */


body {
  scroll-behavior: smooth;
  color: var(--bs-light);
  font-family: "Simplon-Mono", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

.figure-caption {
  color: var(--bs-light);
}

/* Table of contents */
.bd-aside a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
}

.bd-aside a:hover,
.bd-aside a:focus {
  color: rgba(255, 255, 255, .85);
  background-color: rgba(121, 82, 179, .1);
}

.bd-aside .active {
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

.bd-aside .btn {
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  border: 0;
}

.bd-aside .btn:hover,
.bd-aside .btn:focus {
  color: rgba(255, 255, 255, .85);
  background-color: rgba(121, 82, 179, .1);
}

.bd-aside .btn:focus {
  box-shadow: 0 0 0 1px rgba(121, 82, 179, .7);
}

.bd-aside .btn[aria-expanded="true"]::before {
  transform: rotate(90deg)/* rtl:ignore */;
}


/* Layout */
@media (min-width: 1200px) {
  body {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 4fr 1fr;
    grid-template-rows: auto;
  }

  .bd-header {
    position: fixed;
    top: 0;
    /* rtl:begin:ignore */
    right: 0;
    left: 0;
    /* rtl:end:ignore */
    z-index: 1030;
    grid-column: 1 / span 3;

    display:grid;
    grid-template-columns: 1fr 4fr 1fr;
  }

  .bd-aside,
  .bd-maincontent {
    padding-top: 4rem;
  }

  /**
   * 1. Too bad only Firefox supports subgrids ATM
   */
  .bd-maincontent,
  .bd-maincontent section,
  .bd-maincontent article {
    display: inherit; /* 1 */
    gap: inherit; /* 1 */
    grid-template-columns: 1fr 4fr;
    grid-column: 1 / span 2;
    grid-template-rows: auto;
  }

  .bd-aside {
    grid-area: 1 / 3;
    scroll-margin-top: 4rem;
  }

  .bd-maincontent section,
  .bd-maincontent section > div {
    top: 3rem;
    scroll-margin-top: 2rem;
  }

  .bd-maincontent section > div::before {
    position: absolute;
    /* rtl:begin:ignore */
    top: 0;
    right: 0;
    bottom: -2rem;
    left: 0;
    /* rtl:end:ignore */
    z-index: -1;
    content: "";
    background-image: linear-gradient(to bottom, rgba(33, 37, 41, 1) calc(100% - 2rem), rgba(33, 37, 41, .01));
    /* ABOVE rgba value is value of BS utilities bg-dark background-color */
  }

  .bd-maincontent article,
  .bd-maincontent .bd-heading {
    top: 5rem;
    scroll-margin-top: 8rem;
  }

  .bd-maincontent .bd-heading {
    z-index: 1;
  }
}

table.w-100 input:not([type="submit"])  {
  width: 100%;
}

.ui-sortable-handle {
  cursor: grab;
}

.cursor-pointer {
  cursor: pointer;
}

.link-no-marker {
  text-decoration: inherit;
  color: inherit;
  text-align: inherit;
}

/*
 * LOOK WIDGETS
 */
.look-widget-container {
  min-height: 150px;
  overflow-wrap: break-word;
}

.file-icon {
  font-size: 68px;
}

a:has(span.file-icon):hover {
  color: var(--bs-dark-text-emphasis);
  transition: 0.2s;
}

/*
 * RIGHT COLUMN
 */

.bd-header h1, .bd-header h2, .bd-header h3, .bd-header h4, .bd-header h5, .bd-header h6 {
  margin: 0;
}

.right-column-section {
  border-bottom: 1px solid var(--bs-dark-bg-subtle);
  padding: 20px 5px;
}

.right-column-section:first-of-type {
  margin-top: 20px;
  border-top: 1px solid var(--bs-dark-bg-subtle);
}