@font-face {
  font-family: 'Osifont';
  src: url(/assets/fonts/osifont.ttf);
  font-weight: normal;
}
@font-face {
  font-family: 'Osifont';
  src: url(/assets/fonts/osifont-italic.ttf);
  font-weight: normal;
  font-style: italic;
}

:root {
  --color-background: white;
  --color-text-1: black;
  --color-text-2: blue;

  --color-background-active: blue;
  --color-text-active: white;

  --border: 1px solid gainsboro;
  --border-active: 1px solid blue;

}

*::-webkit-scrollbar {
  display: none;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* line-height: 1; */
}

body {
  font-family: 'Osifont';
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    margin: 0;
    font-size: 1rem;
}

p {
  margin-top: 0;
}

a,a:visited {
  color: inherit;
}

.site-container {
  margin: 0 1rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 9;
  padding: 1rem 0;
  background-color: var(--color-background);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.header p {
  margin: 0;
}


/* INFO */
.info-button {
  cursor: pointer;
}
.info-button--open {
  /* position: fixed;
  bottom: 1rem;
  left: 1rem; */
}
.info-button--close {
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  display: none;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(1rem);
}

.info-overlay--open {
  display: block;
}

.info-overlay__content {
  font-size: 2rem;
  padding: 1rem;
  padding-top: 4rem;
  height: calc(100vh - 2rem);
  overflow: scroll;
}

/* ------ */

/* INDEX */

.index {
  /* font-size: 1vw; */
  /* display: flex;
  gap: 1rem;
  width: 100%; */
}
.index__menu {
  display: block;
  width: 24rem;
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  float: left;
  overflow: scroll;
  max-height: calc(100vh - var(--header-h));
  background-color: var(--color-background);
  border-bottom: var(--border);
}
.index__overview {
  position: relative;
  width: calc(100vw - 27rem);
  flex: 1;
  margin-left: 25rem;
  margin-bottom: 2rem;
  z-index: 1;
}
.index__menu-header {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0 1rem 0;
  background-color: var(--color-background);
}

.index__item:hover {
  background-color: var(--color-background-active);
  color: var(--color-text-active);
  align-items: center;
}

.index__item-link {
  text-decoration: none;
  color: inherit;
}

.index__item-link:hover::after,
.arrow::after {
  content: "\2197";
  padding-left: 0.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", helvetica,
  arial, sans-serif;
  font-size: 0.8rem;
}

.index__item-inner,
.index__overview-header {
  /* display: grid; */
  /* grid-template-columns: repeat(12, 1fr); */
  display: flex;
}

.index__item-title,
.index__item-platform {
  width: 5.5rem;
}
.index__item-videotitle,
.index__item-sector,
.index__item-geo {
  /* width: 5rem; */
  flex: 1;
}


.index__item-inner div,
.index__overview-header div {
  border-right: var(--border);
  padding-left: 0.25rem;
  padding-top: 0.25rem;
}
.index__item-inner div:last-of-type,
.index__overview-header div:last-of-type {
  border-right: none;
  padding-right: 0.25rem;
}

/* .index__menu-header, */
.index__overview-header {
  background: var(--color-background);
  position: sticky;
  top: var(--header-h);
  padding-top: 0.25rem;
  z-index: 2;
}


.index__overview-header,
.index__label {
  color: var(--color-text-2);
}

.index__item-videotitle,
.index__item-sector,
.index__item-geo {
  white-space: nowrap;
  overflow: hidden;
}

.index__item:hover .index__item-videotitle,
.index__item:hover .index__item-sector,
.index__item:hover .index__item-geo {
  white-space: wrap;
}
.index__item-platform {
  text-align: right;
}
.index__menu-content {
  height: var(--filters-h);
  transition: all 0.2s linear;
}
.index__menu-content--toggle {
  height: 0;
}

.index__filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
}
.index__filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
button,
.index__tag {
  background-color: var(--color-background);
  border: var(--border);
  padding: 0.25em;
  /* padding-bottom: 0; */
  color: inherit;
  cursor: pointer;
  /* transition: all 0.2s ease; */
}
button:hover,
.index__tag:hover {
  border: var(--border-active);
}
.index__tag.active {
  background-color: var(--color-background-active);
  color: var(--color-text-active);
}
.index__tag.is-faint {
  opacity: 0.15;
}
.index__tag.is-faint:hover {
  opacity: 1;
}

.index__reset {
  opacity: 0;
  border: var(--border);
  padding: 0.25em;
  padding-bottom: 0;
  cursor: pointer;
}
.index__reset.is-visible {
  opacity: 1;
}

@media screen and (max-width: 1200px) {
  .index__item-geo,
  .index__item-sector {
    display: none;
  }
}
@media screen and (max-width: 800px) {

  .header__title,
  .header__context {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .header__context {
    text-align: right;
  }

  .index__menu {
    width: 100%;
    float: none;
  }
  .index__overview {
    width: 100%;
    flex: 1;
    margin-left: 0;
  }
  .index__filters {
    flex-direction: row;
  }
  .index__filter-group {
    flex: 1;
  }
  .index__overview-header {
    top: calc(var(--header-h) + 2.75rem);
  }
  .index__menu-content {
    height: 0;
  }

  .index__menu-content--toggle {
    height: var(--filters-h);
  }
}
@media screen and (max-width: 400px) {
  .index__filters {
    flex-direction: column;
  }
}