/* 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-layout {
  position: relative;
}

.navbar-primary {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* 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;
    background-color: #fff;
}

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

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

/* Evaluations admin */
.evaluation-admin-table {
  table-layout: fixed;
}

.evaluation-admin-table th,
.evaluation-admin-table td {
  border-color: #aeb4c2;
}

.evaluation-admin-logo-column {
  width: 15%;
}

.evaluation-admin-view-column {
  width: 11%;
}

.evaluation-admin-publish-column {
  width: 10%;
}

.evaluation-admin-delete-column {
  width: 7%;
}

.evaluation-admin-logo {
  width: 100%;
  max-width: 7rem;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.evaluation-admin-view-button {
  min-width: 3.5rem;
}

@media (max-width: 575.98px) {
  .evaluation-admin-logo-column {
    width: 24%;
  }

  .evaluation-admin-view-column,
  .evaluation-admin-publish-column {
    width: 18%;
  }

  .evaluation-admin-delete-column {
    width: 12%;
  }
}

.evaluation-detail-chart {
  position: relative;
  width: clamp(2rem, 10vw, 3.5rem);
  height: clamp(2rem, 10vw, 3.5rem);
}

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

.evaluation-detail-chart-percentage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.65rem, 2vw, 0.875rem);
  font-weight: 700;
  pointer-events: none;
}

.evaluation-score-card {
  border: 1px solid #dee2e6;
  border-top-width: 0.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.25rem rgba(17, 24, 39, 0.08);
}

.evaluation-score-card-mandatory {
  border-top-color: #2b8a3e;
  background-color: #f4faf5;
}

.evaluation-score-card-recommended {
  border-top-color: #b8c83d;
  background-color: #fbfced;
}

.evaluation-score-card-optional {
  border-top-color: #d39b3c;
  background-color: #fff9ef;
}

.evaluation-score-card-title {
  font-size: clamp(0.8rem, 2.8vw, 1rem);
}

.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;
}

.evaluation-list li {
    margin-bottom: 0.35rem;
}

.evaluation-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    max-width: 100%;
    color: #212529;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.evaluation-link .bi {
    flex-shrink: 0;
    margin-top: 0;
    font-size: 0.8em;
}

.evaluation-link .bi::before {
    vertical-align: 0;
}
