/* Header */
.satre-logo {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link,
.navbar-nav .nav-link:visited,
.navbar-nav .nav-link:hover {
  color: #212529 !important;
}

.navbar-brand-spacer {
  width: 67px;
  flex-shrink: 0;
}

/* Footer */
.footer-copyright {
  background-color: #05033F;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.footer-copyright p {
  color: #7772F8;
}

.footer-links {
  background-color: #27255D;
}

.dare-uk-spacer {
  width: 160px;
  flex-shrink: 0;
}

.dare-uk-logo {
  height: 50px;
  width: auto;
  max-width: 160px;
}

.yt-logo {
  height: 24px;
  width: auto;
}

body {
  background-color: #F5F7FF;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Homepage — only custom colors / layout bits that Bootstrap utilities don't cover */
.home-title-accent,
.home-accent {
  color: #3452CB;
}

.card-btn-evaluation {
  background-color: #3452CB;
  border-color: #3452CB;
  color: #fff;
}

.card-btn-evaluation:hover {
  background-color: #2a42a3;
  border-color: #2a42a3;
  color: #fff;
}

.card-btn-spec {
  background-color: #2F2F46;
  border-color: #2F2F46;
  color: #fff;
}

.card-btn-spec:hover {
  background-color: #232336;
  border-color: #232336;
  color: #fff;
}

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
  width: 3rem;
  filter: invert(1) grayscale(100);
}

.home-carousel-img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background-color: #fff;
}

.home-carousel-img-bordered {
  border-bottom: 1px solid #6c757d;
}

.home-carousel-img-placeholder {
  background-color: #6c757d;
}

.home-carousel-card {
  min-height: 17rem;
}

.home-carousel-description {
  min-height: 4.5rem;
}

@media (min-width: 48em) {
  .home-carousel .carousel-inner {
    display: flex;
  }
  .home-carousel .carousel-item {
    margin-right: 0;
    flex: 0 0 25%;
    display: block;
  }
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/* Resources */
.resource-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background-color: #fff;
}

.resource-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.resource-image-preview {
  width: min(100%, 320px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
}

.resource-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Evaluation upload */
.evaluation-logo-preview {
  width: min(100%, 240px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
}

.evaluation-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Evaluation summary */
.evaluation-summary {
  width: 100%;
}

.evaluation-heat-map {
  min-height: 12rem;
}

.evaluation-tile-panel {
  max-height: 22rem;
  overflow-y: auto;
}

.evaluation-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.evaluation-tile {
  min-height: 8rem;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.evaluation-tile:hover,
.evaluation-tile:focus {
  border-color: #3452CB !important;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12) !important;
}

.evaluation-tile-logo {
  width: 3rem;
  height: 3rem;
  overflow: hidden;
}

.evaluation-tile-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evaluation-tile-title {
  overflow-wrap: anywhere;
}

.evaluation-tile-country {
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
}

.evaluation-detail-circle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
}

.evaluation-detail-panel {
  margin-left: calc((100% - 100vw) / 2 + 1rem);
  margin-right: calc((100% - 100vw) / 2 + 1rem);
}

.evaluation-detail-circle-mandatory {
  background-color: #2b8a3e;
}

.evaluation-detail-circle-recommended {
  background: conic-gradient(#ffe066 0 15%, #b8c83d 15% 100%);
}

.evaluation-detail-circle-optional {
  background: conic-gradient(#ffb300 0 14%, #d39b3c 14% 100%);
}

.evaluation-detail-accordion .accordion-button::after {
  width: 0.75rem;
  height: 0.75rem;
  background-size: 0.75rem;
}

.evaluation-detail-bar,
.evaluation-detail-section-bar {
  background-color: #D7DCE8;
}

.evaluation-detail-bar:not(.collapsed),
.evaluation-detail-section-bar:not(.collapsed) {
  background-color: #AEB4C2;
  color: #111827;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
