/* Loaded after each page's inline styles. */

.footer-social a { color: inherit; }

.consent {
  z-index: 35;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0.55rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom, 0px));
  gap: 0.75rem;
}

.consent .t-small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-consent-showing] body {
  padding-bottom: 5.5rem;
}

.consent__h { margin-bottom: 0; }

.toast {
  top: calc(var(--header-h, 4.25rem) + env(safe-area-inset-top, 0px) + 8px);
  bottom: auto;
  z-index: 80;
}

[data-tray-remove] {
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
}

@media (max-width: 480px) {
  .form__grid--2 { grid-template-columns: 1fr; }
}

.search-results .t,
.search-results .x {
  display: block;
}

.search-results .t {
  margin-bottom: 0.15rem;
}

/* A note under one field must not stretch the control beside it. */
.field {
  align-items: start;
  align-content: start;
}

/* Reviews and Trustpilot styles */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.review-card {
  background: var(--polish);
  border: 1px solid var(--rule);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.review-card:hover {
  border-color: var(--verde);
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.review-stars {
  color: #c98218;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  line-height: 1;
}

.platform-pill {
  font-family: var(--f-display);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--pietra);
  white-space: nowrap;
}

.platform-pill--trustpilot {
  color: #00875a;
  border-color: #00b67a;
  font-weight: 600;
}

.review-card__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--basalt);
  margin: 0;
  flex-grow: 1;
}

.review-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
  margin-top: auto;
  gap: 0.5rem;
}

.review-card__author {
  font-family: var(--f-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--basalt);
  line-height: 1.3;
}

.review-card__date {
  font-size: 0.75rem;
  color: var(--pietra);
  white-space: nowrap;
}

.reviews-hero-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--polish);
  border: 1px solid var(--rule);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem;
}

.score-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.score-box__number {
  font-family: var(--f-display);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--basalt);
}

.score-box__scale {
  font-size: 1.25rem;
  color: var(--pietra);
}

.trustpilot-card {
  background: var(--basalt);
  color: var(--polish);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.trustpilot-card .btn {
  background: #00b67a;
  border-color: #00b67a;
  color: #ffffff;
}

.trustpilot-card .btn:hover {
  background: #009e6a;
  border-color: #009e6a;
}

.review-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}

.review-filter-btn {
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--basalt);
  cursor: pointer;
  transition: all 0.15s ease;
}

.review-filter-btn:hover,
.review-filter-btn.is-active {
  background: var(--basalt);
  color: var(--polish);
  border-color: var(--basalt);
}

@media (width <= 719px) {
  .consent {
    gap: 0.55rem;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  }

  .consent__h {
    margin-bottom: 0;
  }

  .consent .t-small {
    line-height: 1.35;
  }

  html[data-consent-showing] body {
    padding-bottom: var(--consent-h, 8.5rem);
  }

  figcaption {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  figcaption .t-label {
    order: -1;
    flex-basis: 100%;
  }

  .filter > button {
    min-height: 44px;
  }

  .filter__panel {
    position: fixed;
    z-index: 45;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--header-h) + 8px);
    bottom: auto;
    width: auto;
    min-width: 0;
    max-height: min(60vh, calc(100dvh - var(--header-h) - var(--consent-h, 0px) - 24px));
  }

  .search-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
  }

  .search-dialog__head {
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  }
}

.guide-card > .ph {
  aspect-ratio: 16 / 10;
  width: 100%;
  pointer-events: none;
}

.guide-card a::after {
  z-index: 1;
}

@media (width >= 1100px) {
  .toc,
  .article__aside {
    position: sticky;
    top: calc(var(--header-h, 72px) + 24px);
    align-self: start;
    max-height: calc(100dvh - var(--header-h, 72px) - 48px);
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-width: 0;
  }

  .article__aside .ph,
  .article__aside .ph picture,
  .article__aside .ph img {
    max-width: 100%;
  }
}
