:root {
  --bs-link-color-rgb: 188, 0, 49;
  --bs-border-radius: 6px;

  --cc-blue: #115B97;
  --cc-blue-rgb: 17, 91, 151;
  --cc-blue-hover: rgba(54, 129, 189, 1);
  --cc-blue-active: rgba(7, 67, 116, 1);
  --cc-blue-light: rgba(197, 224, 243, 1);
  --cc-blue-light-active: rgba(176, 213, 240, 1);
  --cc-red: #9F0F1E;
  --cc-separator: #A1A1A1;
  --cc-text-muted: rgba(110, 105, 105, 1);
  --cc-footer-text: rgba(246, 246, 246, 1);
  --cc-link-hover: #3681BD;
  --cc-link-active: #074374;
  --cc-footer-link-hover: var(--cc-separator);
  --cc-footer-link-active: rgba(180, 180, 180, 1);
  --cc-border-dark: #6E6969;
  --cc-bg-muted: #F6F6F6;
  --cc-page-px: 0.5rem;
  --cc-page-px-lg: 1.5rem;
  --cc-slider-track: #052A47;
  --cc-slider-range: #5CAFF0;
  --cc-slider-track-hover: #0A3D5F;
  /* Breakpoints (can't use in @media, documented here for reference)
     md: 768px
     lg: 992px
     xxl: 1400px
  */
}

.btn-primary {
  --bs-btn-bg: var(--cc-blue);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--cc-blue-hover);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow: rgb(0, 0, 0);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--cc-blue-active);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: rgba(36, 44, 48, 0.25);
  --bs-btn-disabled-bg: rgba(24, 119, 159, 0.25);
  --bs-btn-disabled-border-color: transparent;
}

.btn-outline-primary {
  --bs-btn-bg: rgb(250, 250, 250);
  --bs-btn-color: rgb(1, 8, 13);
  --bs-btn-border-color: var(--cc-blue);
  --bs-btn-hover-bg: var(--cc-blue-hover);
  --bs-btn-hover-border-color: var(--cc-blue);
  --bs-btn-focus-shadow: rgb(0, 0, 0);
  --bs-btn-active-color: rgb(0, 0, 0);
  --bs-btn-active-bg: var(--cc-blue-active);
  --bs-btn-active-border-color: rgb(0, 0, 0);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: rgba(36, 44, 48, 0.25);
  --bs-btn-disabled-bg: rgba(24, 119, 159, 0.25);
  --bs-btn-disabled-border-color: rgb(0, 0, 0);
}



.btn-secondary {
  --bs-btn-color: rgba(0, 0, 0, 1);
  --bs-btn-bg: rgba(255, 255, 255, 1);
  --bs-btn-border-color: var(--cc-blue);
  --bs-btn-hover-color: rgba(0, 0, 0, 1);
  --bs-btn-hover-bg: var(--cc-blue-light);
  --bs-btn-hover-border-color: var(--cc-blue);
  --bs-btn-focus-shadow-rgb: var(--cc-blue-rgb);
  --bs-btn-active-color: rgba(0, 0, 0, 1);
  --bs-btn-active-bg: var(--cc-blue-light-active);
  --bs-btn-active-border-color: var(--cc-blue);
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: rgba(120, 120, 120, 1);
  --bs-btn-disabled-bg: rgba(235, 235, 235, 1);
  --bs-btn-disabled-border-color: rgba(200, 200, 200, 1);
}

/* Set fonts 

NB: check if the first part of the path corresponds with the STATIC_URL in settings.py

*/

@font-face {
    font-family: General-Sans;
    src: url("/static/font/GeneralSans-Regular.82dccf33188f.woff2")
}

@font-face {
    font-family: General-Sans-Medium;
    src: url("/static/font/GeneralSans-Medium.5b10ff4d624f.woff2");
}

@font-face {
    font-family: General-Sans-Semibold;
    src: url("/static/font/GeneralSans-Semibold.f74baa005bd5.woff2");
}

@font-face {
    font-family: General-Sans-Italic;
    src: url("/static/font/GeneralSans-Italic.1955b6caece9.woff2");
}

@font-face {
    font-family: General-Sans-MediumItalic;
    src: url("/static/font/GeneralSans-MediumItalic.1a430b5d3494.woff2");
}

@font-face {
    font-family: General-Sans-SemiboldItalic;
    src: url("/static/font/GeneralSans-SemiboldItalic.647a61d85b0a.woff2");
}

strong, b {
  font-family: General-Sans-Semibold, Verdana, sans-serif;
  font-weight: normal;
}

em, i {
  font-family: General-Sans-Italic, Verdana, sans-serif;
  font-style: normal;
}

strong em, strong i, b em, b i,
em strong, i strong, em b, i b {
  font-family: General-Sans-SemiboldItalic, Verdana, sans-serif;
}

h2 {
  font-family: General-Sans-Medium, Verdana, sans-serif;
  font-size: 24px;
}

h3 {
  font-family: General-Sans-Medium, Verdana, sans-serif;
  font-size: 20px;
}

body {
  font-family: General-Sans, Verdana, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-wrapper > footer {
  margin-top: auto;
}


a {
  color: var(--cc-blue);
}

a:hover {
  color: var(--cc-link-hover);
}

a:active {
  color: var(--cc-link-active);
}

.form-control {
  border: 1px solid var(--cc-separator);
  border-radius: var(--bs-border-radius);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  height: 34px;
}

.form-control:focus {
  border-color: var(--cc-blue);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.25rem rgba(17, 91, 151, 0.25);
}

.form-select {
  border: 1px solid var(--cc-separator);
  border-radius: var(--bs-border-radius);
  background-image: url("/static/assets/caret-down-bold.8abd4c8a4d55.svg");
  background-size: 16px;
  color: black;
  height: 34px;
}

.form-select:focus {
  border-color: var(--cc-blue);
  box-shadow: 0 0 0 0.25rem rgba(17, 91, 151, 0.25);
}

.form-control.year.small {
  width: 5em !important;
  height: 1.7rem !important;
}

.btn {
  font-family: General-Sans-Medium, Verdana, sans-serif;
  border-width: 2px;
  white-space: nowrap;
}

.btn-circle {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-square {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-square-sm {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-square-sm img,
.btn-square img {
  width: 24px;
  height: 24px;
}

.label-semibold {
  font-family: General-Sans-Semibold, Verdana, sans-serif;
  font-size: 1rem;
}

.label {
  font-family: General-Sans-Medium, Verdana, sans-serif;
}

.label-medium {
  font-family: General-Sans-Medium, Verdana, sans-serif;
  font-size: 1rem;
}

.related-items .d-table {
  margin-bottom: 0.35rem;
}

.icon-invert {
  filter: brightness(0) invert(1);
}


#content-wrapper {
  margin-top: 30px;
}

body.home #content-wrapper,
#content-wrapper:has(.facets) {
  margin-top: 0;
}

.px-page {
  padding-left: var(--cc-page-px);
  padding-right: var(--cc-page-px);
}

@media (min-width: 992px) {
  .px-page {
    padding-left: var(--cc-page-px-lg);
    padding-right: var(--cc-page-px-lg);
  }
}

.content-narrow {
  max-width: 720px;
}

.content-feature-detail {
  max-width: 900px;
}

.results {
  min-width: 0;
  overflow: hidden;
}

.main-navigation {
  background-color: white;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 992px) {
  .main-navigation {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* Nav toggler icon swap */
.main-navigation .nav-toggle .nav-icon-close { display: none; }
.main-navigation .nav-toggle[aria-expanded="true"] .nav-icon-menu { display: none; }
.main-navigation .nav-toggle[aria-expanded="true"] .nav-icon-close { display: inline-block; }

/* Nav menu */
.main-navigation .navbar-nav {
  align-items: flex-start;
}
.main-navigation .navbar-nav .nav-item {
  padding: 0.5rem 0;
}
.main-navigation .navbar-nav .nav-item a {
  font-family: General-Sans-Medium, Verdana, sans-serif;
  font-size: 1.125rem;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .main-navigation .navbar-nav .nav-item {
    padding: 0;
  }
  .main-navigation .navbar-nav .nav-item.my-data {
    border-left: var(--bs-border-width) solid var(--bs-border-color);
    border-right: var(--bs-border-width) solid var(--bs-border-color);
  }
}

.main-navigation .branding {
  width: fit-content;
}

.main-navigation .branding a.home-link{
  font-family: General-Sans-Semibold, Verdana, sans-serif;
  font-size: 26px;
  color: black;
  text-decoration: none;
  white-space: nowrap;
}


.main-navigation .navbar-nav a.active {
  text-decoration: underline;
  color: black;
}


.main-navigation .navbar-nav .count-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: 1rem;
  border: 1px solid var(--cc-border-dark);
  border-radius: 5px;
  padding: 0 0.5em;
}

.main-navigation .navbar-nav .count-wrapper img {
  width: 1em;
  height: 1em;
}

.navbar-nav > .nav-item:has(.dropdown .dropdown-menu .nav-item a.active.sub) {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: black;
}

.navbar-nav > .nav-item:has(.dropdown .dropdown-menu .nav-item a.active.sub):hover {
  text-underline-offset: 4px;
}


.main-navigation .navbar-nav .nav-item a {
  text-decoration: none;
  color: black;
}

body.home .main-navigation .nav-item a.home-link,
.main-navigation .nav-item a:hover,
.main-navigation .nav-item a.active,
.main-navigation .nav-item a.show {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Dropdown menu */
.dropdown-menu {
  border: 1px solid var(--cc-blue);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}

.dropdown-menu li.nav-item {
  border-bottom: 1px solid var(--cc-separator);
}

.dropdown-menu li.nav-item:last-child {
  border-bottom: none;
}

.dropdown-menu li.nav-item a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: black;
  white-space: nowrap;
}

.dropdown-menu li.nav-item a:hover {
  background-color: var(--cc-blue-light);
  text-decoration: none;
}

.dropdown-menu li.nav-item a:active {
  background-color: var(--cc-blue-light-active);
  text-decoration: none;
}

.dropdown-menu li.nav-item a.active {
  text-decoration: none;
}

.dropdown-menu li.nav-item a.active::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  -webkit-mask-image: url("/static/assets/check-bold.e8dd364134ef.svg");
  mask-image: url("/static/assets/check-bold.e8dd364134ef.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: var(--cc-blue);
  vertical-align: middle;
}

/* Dropdown caret */
a.btn.dropdown-toggle {
  height: 34px;
  display: inline-flex;
  align-items: center;
}

a.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: none;
  background-image: url("/static/assets/caret-down-bold.8abd4c8a4d55.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

a.dropdown-toggle[aria-expanded="true"]::after {
  background-image: url("/static/assets/caret-up-bold.9afed9f6b539.svg");
}


.main-navigation .navbar-nav a.nav-link{
  padding: 0;
  color: black;
}

.main-navigation .navbar-nav a.nav-link:hover,
.main-navigation .navbar-nav a.nav-link.active{
  text-decoration: underline;
}


.reel-strip {
  height: 22px;
  width: 100%;
  background-color: var(--cc-red);
  background-image: linear-gradient(
    to right,
    white 0 8px,
    transparent 8px 32px
  );
  background-size: 32px 12px;
  background-repeat: repeat-x;
  background-position: center;
}

/* Browse sub-navigation */
.browse-subnav {
  background-color: var(--cc-red);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 992px) {
  .browse-subnav {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.browse-subnav ul {
  row-gap: 0.25rem;
}

.browse-subnav a {
  color: var(--cc-footer-text);
  text-decoration: none;
  white-space: nowrap;
  font-family: General-Sans-Medium, Verdana, sans-serif;
}

.browse-subnav a:hover {
  color: #fff;
  text-decoration: underline;
}

.browse-subnav a.active {
  color: #fff;
  text-decoration: underline;
}

.footer-navigation {
  color: var(--cc-footer-text);
  background-color: var(--cc-red);
}

.footer-navigation .navbar-nav .nav-item a {
  color: var(--cc-footer-text);
}

.footer-navigation .navbar-nav .nav-item a:hover {
  color: var(--cc-footer-link-hover);
}

.footer-navigation .navbar-nav .nav-item a:active {
  color: var(--cc-footer-link-active);
}

/* Film reel decorations */
.row.reel:before,
.row.reel:after {
  content: '';
  display: block;
  width: 100%;
  height: 22px;
  background-color: var(--cc-red);
  background-image: linear-gradient(
    to right,
    white 0 8px,
    transparent 8px 32px
  );
  background-size: 32px 12px;
  background-repeat: repeat-x;
  background-position: center;
}

.home-search {
  padding-top: 0.5rem;
}

.home-search .btn {
  border: none;
  margin-left: 1em;
}

.database-info h1.home-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin-top: 2rem;
}

.database-info h2.home-subtitle {
  font-family: General-Sans, Verdana, sans-serif;
  font-size: 1.25rem;
  color: var(--cc-text-muted);
}

.database-info .metrics {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.database-info .metrics ul li {
  padding: 0.25rem 0;
}

.row.reel {
  background-image: url("/static/assets/left-image.8d99bc9705cb.png");
  background-repeat: no-repeat;
  background-size: auto 75%;
  background-position-y: 100px;
}

@media (min-width: 992px) {
  .row.reel {
    background-size: auto 100%;
    background-position-y: 0;
  }
}

/* Width utility Bootstrap doesn't ship: w-lg-75 */
@media (min-width: 992px) {
  .w-lg-75 { width: 75% !important; }
}

/* Hero — desktop decorations + sizing */
@media (min-width: 992px) {
  .row.reel {
    height: 380px;
  }

  .row .page-header {
    height: 302px;
  }

  .home-search {
    margin-top: -64px;
    padding-top: 22px;
  }

  .database-info h1.home-title {
    font-size: 36px;
  }

  .database-info h2.home-subtitle {
    font-size: 24px;
  }

  .database-info .metrics {
    margin-top: 36px;
    font-size: 20px;
  }

  .database-info .metrics ul li {
    padding: 0;
  }
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

ul.explore {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
}

@media (min-width: 768px) {
  ul.explore {
    grid-template-columns: 1fr 1fr;
  }
}

.explore .explore-item {
  padding: 20px 18px;
  border: 1px solid var(--cc-separator);
  border-radius: var(--bs-border-radius);
  font-size: 1rem;
}

.explore .explore-item h3 {
  font-size: 1rem;
  margin-bottom: 1em;
}

.explore .explore-item .metrics {
  margin-bottom: 1em;
}

.explore .explore-item .text {
  color: rgba(102, 102, 102, 1);
  margin-bottom: 1em;
}

.explore .explore-item .btn {
  width: fit-content;
}

.home-content {
  margin-top: 30px;
}

@media (min-width: 992px) {
  .home-content-wrapper {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
}


.workflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.workflow .workflow-item {
  padding: 20px 18px;
  border: 1px solid var(--cc-separator);
  border-radius: var(--bs-border-radius);
  font-size: 18px;
  text-align: center;
  width: 100%;
}

.workflow .workflow-spacer {
  width: 24px;
  height: 24px;
  background-image: url("/static/assets/arrow-down.3d90533b79c4.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .workflow {
    flex-direction: row;
    align-items: center;
  }
  .workflow .workflow-item {
    width: auto;
    flex: 1;
  }
  .workflow .workflow-spacer {
    background-image: url("/static/assets/arrow-right.f3b3a8f8a434.svg");
    width: 32px;
    height: 24px;
  }
}


h1 {
  font-family: General-Sans, Verdana, sans-serif;
  font-size: 32px;
  color: var(--cc-red);
}


h2.type-header {
  color: var(--cc-red);
}


/* In content images */
p {
  clear: right;
}

figure {
  @media (max-width: 768px) {
    width: 100% !important;
  }
}

figure.image-style-align-center {
  text-align: center;
}

figure.image-style-align-left {
  float: left;
  margin-right: 1em;
}

figure.image-style-align-right {
  float: right;
  margin-left: 1em;
}

figure img {
  width: 100%;
  height: auto;
}

figure figcaption {
  font-size: 1rem;
  color: rgb(0, 0, 0);
  background-color: rgb(220, 220, 220);
  padding: 0 0.5em;
}

/* Search results */

.facets-block {
  color: black;
  font-family:   General-Sans, Verdana, sans-serif;
}

.facets-block .facet label {
  color: black;
  text-decoration: none;
}

div.facets-links li a {
  font-size: 1rem;
}


/* Back to top */
#toTop {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  display: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
  #toTop {
    right: 3rem;
  }
}


.facets .search {
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.active-filter {
  line-height: 34px;
}

.active-filter .btn-square-sm {
  align-self: flex-start;
}


.rotate-90 { transform: rotate(90deg); }
.rotate-270 { transform: rotate(270deg); }

/* Pager */
.newpage {
  width: 4em;
}

ul.pager li a {
  color: black;
  text-decoration: none;
}

ul.pager li:hover a {
  color: var(--cc-blue);
}

ul.pager li.active a {
  color: var(--cc-blue);
  font-family: General-Sans-Semibold, Verdana, sans-serif;
  text-decoration: underline;
}

/* Filter section */
div.selected-fields div {
  color: black;
}

div.selected-fields div a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  margin-right: 1em;
  display: table
}

div.selected-fields div a:before {
  display:table-cell;
  padding: 7px;
  color: black;
  content:  "\00a0";
  background-image: url("/static/assets/cross.adc6605fa876.png");
  background-repeat: no-repeat;
  background-position: center;
}





table.search-results {
  --bs-table-border-color: var(--cc-separator);
  background-color: transparent;
  display: block;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  table.search-results {
    border-left: 1px solid var(--cc-separator);
    border-right: 1px solid var(--cc-separator);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
  }
}

table.search-results thead {
  display: none;
}

table.search-results tbody {
  display: block;
  counter-reset: table-row var(--start-index, 0);
}

table.search-results tbody tr::before {
  content: counter(table-row);
  counter-increment: table-row;
  display: block;
  padding: 0.5rem 1rem;
  font-family: General-Sans-Medium, Verdana, sans-serif;
  color: black;
  font-size: 1rem;
  border-bottom: 1px solid var(--cc-separator);
}

table.search-results tr {
  display: block;
  border: 1px solid var(--cc-separator);
  border-radius: var(--bs-border-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

table.search-results tr td {
  display: block;
  background: none;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--cc-separator);
}

table.search-results tr td:last-child {
  border-bottom: none;
}



table.search-results tr td::before {
  content: attr(data-label);
  font-family: General-Sans-Medium, Verdana, sans-serif;
  display: block;
  margin-bottom: 0.15rem;
}

.btn-glyph-text,
.btn-glyph {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

.btn-glyph-text img,
.btn-glyph img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .btn-glyph-text span {
    display: none;
  }
  .btn-glyph-text {
    width: 34px;
    padding: 0;
    justify-content: center;
  }
}

table.search-results tr td[data-label=""]::before {
  display: none;
}

@media (min-width: 992px) {
  table.search-results {
    display: grid;
  }

  table.search-results thead,
  table.search-results tbody,
  table.search-results tr {
    display: contents;
  }

  table.search-results tbody tr::before {
    display: none;
  }

  table.search-results tr td {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--cc-separator);
  }

  table.search-results tr td:last-child {
    border-bottom: 1px solid var(--cc-separator);
  }

  table.search-results tr td.td-action {
    justify-content: center;
    padding: 0;
    overflow: visible;
  }

  table.search-results tr td::before {
    display: none;
  }
}

table.search-results tr th {
  border-top: 1px solid var(--cc-separator);
  border-bottom: 1px solid var(--cc-separator);
  border-left: none;
  border-right: 1px solid var(--cc-separator);
  background-color: var(--cc-bg-muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 18px;
  color: black;
  padding: 0.5rem 1rem;
}

table.search-results tr th:last-child {
  border-right: none;
}

table.search-results tr th a {
  text-decoration: none;
  font-size: 18px;
  color: black;
  display: block;
}

table.search-results tr th a:after{
  width: 18px;
  height: 20px;
  display: inline-block;
  margin-left: 8px;
  content:  "\00a0";
  background-image: url("/static/assets/inactive-arrow-down.51f058eb85a0.png");
  background-repeat: no-repeat;
  background-position: bottom;
}

table.search-results tr th a.active-asc:after {
  content:  "\00a0";
  background-image: url("/static/assets/active-arrow-up.0a7dfb07c418.png");
  width: 18px;
  height: 20px;
  display: inline-block;
}

table.search-results tr th a.active-desc:after{
  content:  "\00a0";
  background-image: url("/static/assets/active-arrow-up.0a7dfb07c418.png");
  transform: rotate(180deg) translate(0px, -6px);
  width: 18px;
  height: 20px;
  display: inline-block;
}


table.search-results tr td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  background-color: var(--cc-bg-muted);
}

table.search-results tr td a {
  color: var(--cc-blue);
  font-size: 18px;
}

table.search-results tr td .truncated {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}


/* Facets */

.facets .search,
.facets #filters {
  padding-left: var(--cc-page-px);
  padding-right: var(--cc-page-px);
}

@media (min-width: 992px) {
  .facets .search,
  .facets #filters {
    padding-left: var(--cc-page-px-lg);
    padding-right: var(--cc-page-px-lg);
  }
}

#filters.offcanvas-lg {
  --bs-offcanvas-width: 90vw;
  --bs-offcanvas-padding-x: 0;
  --bs-offcanvas-padding-y: 0;
  overflow-y: auto;
}

@media (min-width: 992px) {
  .facets {
    position: sticky;
    top: 0;
    height: 100vh;
    min-width: 280px;
    flex: 0 0 25%;
  }

  .results {
    border-left: 1px solid var(--cc-separator);
    min-height: 100vh;
  }

  .results table.search-results {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .facets .sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .facets .search {
    flex-shrink: 0;
  }

  .facets #filters {
    flex: 1;
    overflow-y: auto;
  }
}

.facet {
    border: none;
    border-bottom: 1px solid var(--cc-separator);
}

.collapse-button {
  background-color: white;
  border: none;
  font-family: General-Sans-Medium, Verdana, sans-serif;
  font-size: 19px;
}

.collapse-button::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  background-image: url("/static/assets/caret-up-bold.9afed9f6b539.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

.collapse-button.collapsed::after {
  background-image: url("/static/assets/caret-down-bold.8abd4c8a4d55.svg");
}

input[type=text].facet-text-search-input {
  width: 100%;
}

ul li a.facet-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: black;
  font-size: 1rem;
  margin: 0.5rem 0;
}

ul li a.facet-link::before {
  content: '';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 2px solid var(--cc-border-dark);
  border-radius: 4px;
  background-color: white;
}

ul li a.facet-link:hover::before {
  background-color: var(--cc-blue-light);
  border-color: var(--cc-text-muted);
}

ul li a.facet-link:active::before {
  background-color: var(--cc-blue-light);
  border-color: var(--cc-text-muted);
}

ul li a.facet-link.selected::before {
  border-color: var(--cc-text-muted);
  -webkit-mask-image: none;
  mask-image: none;
  background-color: white;
  background-image: url("/static/assets/check-bold.e8dd364134ef.svg");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}

ul li a.facet-link.selected:hover::before {
  background-color: var(--cc-blue-light);
}



/* Range sliders */


.number-input-wrapper .range-input {
  width: 6em;
  border: 1px solid var(--cc-separator);
  border-radius: var(--bs-border-radius);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  padding: 0.375rem 0.75rem;
  font-family: General-Sans, Verdana, sans-serif;
  font-size: 1rem;
}

.number-input-wrapper .range-input:focus {
  border-color: var(--cc-blue);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.25rem rgba(17, 91, 151, 0.25);
  outline: none;
}


.range-facet  .ui-widget.ui-widget-content {
  background-color: var(--cc-slider-track);
  background-image: none;
  cursor: pointer;
}

.range-facet  .ui-widget.ui-widget-content:hover {
  background-color: var(--cc-slider-track-hover);
}

.range-facet .facet-range-slider .ui-slider-range {
  background-image: none;
  background-color: var(--cc-slider-range);
  cursor: pointer;
}

.range-facet .facet-range-slider,
.range-facet .number-label-wrapper,
.range-facet .number-input-wrapper {
  margin: 0 16px;
}

.range-facet .facet-range-slider .ui-slider-handle {
    background-image: none;
    background-color: var(--cc-blue);
    border: none;
    border-radius: 50%;
    height: 33px;
    width: 33px;
    margin-top: -6px;
    cursor: pointer;
}

.range-facet .facet-range-slider .ui-slider-handle:hover {
    background-color: var(--cc-blue-hover);
}

.range-facet .facet-range-slider .ui-slider-handle:active {
    background-color: var(--cc-blue-active);
}

/* Specific lists with objects on search detail pages */

ul.programme li:last-child{
  list-style: none;
  margin-left: -10px;
}

ul.opening_periods li .open {
  width: 5em;
  display: inline-block;
}

ul.opening_periods li .closed {
  width: 5em;
  text-align: right;
  display: inline-block;
}

ul.related_objects{
  list-style: none;
}

/* Add a bit more space between related objects, but not for the last child. */
ul.related_objects > li:not(:last-child) {
  padding-bottom: 1em;
}

/* Set bottom padding to show a more compact programme list. */
ul.related_objects.programme > li {
  padding-bottom: 0em;
}

ul .related-items .label{
  width: 8em;
}  


/* Specific items on detail pages */


#content-wrapper:has(.search-history) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-column:has(.search-history) {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.search-history {
  flex: 1;
  margin-bottom: 0;
  padding: 0 0.5rem;
  counter-reset: history-item;
}

@media (min-width: 992px) {
  .search-history {
    padding: 0 var(--cc-page-px-lg);
  }
}

.history-card {
  background-color: var(--cc-bg-muted);
  border: 1px solid var(--cc-separator);
  border-radius: var(--bs-border-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.history-card-cell {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--cc-separator);
}

.history-card-cell:last-child {
  border-bottom: none;
}
.search-history li {
  counter-increment: history-item;
}

.search-history li h2.search-item {
  color: black;
  font-size: 1rem;
}

.search-history li h2.search-item::before {
  content: counter(history-item) " • ";
}


.mydata-empty {
  background-color: var(--cc-bg-muted);
  border: 1px solid var(--cc-separator);
  border-radius: var(--bs-border-radius);
  padding: 3rem 1rem;
  text-align: center;
  font-size: 1rem;
  color: black;
}

.history-filters-title {
  font-family: General-Sans-Medium, Verdana, sans-serif;
  font-size: 1rem;
}


.search-history li h2.search-item .search-item-type {
  color: var(--cc-red);
}



/* modals */
.modal-content {
  border-radius: var(--bs-border-radius);
  padding: 1rem;
}

.modal-header,
.modal-body,
.modal-footer {
  border: none;
  padding: 0 0 1rem 0;
}

.modal-footer {
  padding-bottom: 0;
}

.modal-check {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 2px solid var(--cc-border-dark);
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
}

.modal-check:hover {
  background-color: var(--cc-blue-light);
}

.modal-check:checked {
  background-image: url("/static/assets/check-bold.e8dd364134ef.svg");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}