/* Behaviour and accessibility fixes for the framework-free static build. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

@media (width <= 900px) {
  .nav .menu {
    display: block;
    cursor: pointer;
    padding: 10px;
  }

  .nav:not(.is-menu-open) nav {
    display: none;
  }

  .nav.is-menu-open nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    width: 100%;
    padding: 12px 0 18px;
    overflow: visible;
    white-space: normal;
  }

  .nav.is-menu-open nav a {
    padding: 8px 0;
  }
}

@media (width > 900px) {
  .nav .menu {
    display: none;
  }
}

/* Fit the supplied square mark within the existing footer logo frame. */
.footer-logo {
  object-fit: contain;
  margin: -20px auto 5px;
  justify-self: center;
  float: none;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Prominent in-page regulatory warnings, deliberately separate from the footer. */
.risk-warning {
  padding: 34px 0;
  color: #172638;
  background: #f5ecef;
  border-top: 1px solid rgba(23, 38, 56, 0.12);
  border-bottom: 1px solid rgba(23, 38, 56, 0.12);
}

.risk-warning-inner h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.risk-warning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.risk-warning-grid p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.info-stars {
  flex-wrap: wrap;
}

.info-stars .rating-source {
  flex-basis: 100%;
  width: fit-content;
  margin-top: 5px;
  color: currentColor;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust-row .hero-rating-source {
  display: inline-block;
  margin-top: 5px;
  color: currentColor;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-disclaimer p + p {
  margin-top: 8px;
}

@media (width <= 700px) {
  .risk-warning-grid {
    grid-template-columns: 1fr;
  }
}

/* Single-adviser layout after team update */
.team-teaser-grid.team-teaser-single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.team-page.team-page-single { max-width: 1100px; }
.team-page-single .adviser-profile { margin-inline: auto; }
@media (max-width: 767px) { .team-teaser-grid.team-teaser-single { grid-template-columns: minmax(0, 1fr); } }
