/* Experts: block inside the rating methodology, experts index, expert page.
   Docs: docs/features/01-trust-layer.md */

/* --- Weights line inside each methodology item --- */
.method-grid .method-weight {
  margin-top: 16px;
  color: #62656b;
  font-size: 13px;
  line-height: 1.5;
}

.method-grid .method-weight b {
  display: block;
  color: var(--color-title);
  font-weight: 600;
}

/* --- Experts block on a rating page --- */
.rating-experts {
  margin-top: 56px;
}

.rating-experts__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.rating-experts__head h2,
.rating-experts__head h3 {
  margin: 0;
  color: var(--color-title);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.rating-experts__head p {
  margin: 0;
  color: #62656b;
  font-size: 15px;
  line-height: 1.5;
}

.rating-experts__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expert-chip {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  height: 100%;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  transition: transform .2s ease;
}

.expert-chip:hover {
  transform: translateY(-3px);
}

.expert-chip img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.expert-chip__name {
  display: block;
  color: var(--color-title);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

/* The whole chip is one link target. */
.expert-chip__name::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.expert-chip__name:focus-visible {
  outline: none;
}

.expert-chip__name:focus-visible::after {
  outline: 2px solid var(--color-title);
  outline-offset: 2px;
}

.expert-chip__role {
  display: block;
  margin-top: 2px;
  color: #62656b;
  font-size: 14px;
  line-height: 1.4;
}

.expert-chip__lead {
  display: block;
  margin-top: 6px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.rating-experts__all {
  color: var(--color-primary);
  font-weight: 650;
  white-space: nowrap;
}

/* --- Experts index and expert page --- */
.experts-page main {
  background: #fff;
}

.experts-hero {
  padding: 136px 0 72px;
}

.experts-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.4;
}

.experts-breadcrumbs a:hover {
  color: var(--color-primary);
}

.experts-breadcrumbs [aria-current="page"] {
  color: var(--color-title);
}

.experts-hero h1 {
  max-width: 960px;
  margin: 24px 0 0;
  color: var(--color-title);
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.experts-hero h1 em {
  color: var(--color-primary);
  font-weight: 400;
}

.experts-hero__lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #4b5162;
  font-size: 18px;
  line-height: 1.6;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0 0 96px;
  list-style: none;
}

.experts-empty {
  margin: 0;
  padding: 0 0 96px;
  color: #4b5162;
  font-size: 17px;
  line-height: 1.6;
}

.expert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  background: #f6f6f6;
  overflow: hidden;
}

.expert-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 12%;
  background: #e1e1dd;
}

.expert-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.expert-card h2 {
  margin: 0;
  color: var(--color-title);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.expert-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.expert-card h2 a:focus-visible {
  outline: none;
}

.expert-card h2 a:focus-visible::after {
  outline: 2px solid var(--color-title);
  outline-offset: -2px;
}

.expert-card__role {
  margin: 8px 0 0;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.expert-card__text {
  margin: 16px 0 24px;
  color: #4b5162;
  font-size: 15px;
  line-height: 1.6;
}

.expert-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--color-title);
  font-size: 15px;
  font-weight: 600;
}

.expert-card__more svg,
.experts-link svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: var(--color-primary);
}

.expert-card:hover .expert-card__more {
  color: var(--color-primary);
}

.experts-band {
  padding: 96px 0;
  background: #f6f6f6;
}

.experts-band .category-section-head {
  display: block;
  margin-bottom: 40px;
}

.experts-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.experts-steps li {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  counter-increment: step;
}

.experts-steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 32px;
  color: var(--color-primary);
  font: 600 13px/1 'Iosevka Charon Mono', monospace;
}

.experts-steps h3 {
  margin: 0 0 8px;
  color: var(--color-title);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.experts-steps p {
  margin: 0;
  color: #4b5162;
  font-size: 15px;
  line-height: 1.6;
}

.experts-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  color: #4b5162;
  font-size: 15px;
  line-height: 1.6;
}

.experts-note p {
  max-width: 720px;
  margin: 0;
}

.experts-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-title);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.experts-link:hover {
  color: var(--color-primary);
}

/* --- Expert page --- */
.expert-profile {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.expert-profile__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 0;
  background: #e1e1dd;
}

.expert-profile h1 {
  margin-top: 16px;
}

.expert-profile__role {
  margin: 16px 0 0;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.expert-profile__summary {
  max-width: 640px;
  margin: 16px 0 0;
  color: #5e6372;
  font-size: 18px;
  line-height: 1.6;
}

.expert-facts {
  display: grid;
  gap: 0;
  max-width: 640px;
  margin: 40px 0 0;
}

.expert-facts div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #e6e6ea;
}

.expert-facts dt {
  color: #6b7080;
  font-size: 15px;
  line-height: 1.5;
}

.expert-facts dd {
  margin: 0;
  color: var(--color-title);
  font-size: 16px;
  line-height: 1.5;
}

.expert-facts a,
.expert-copy a {
  text-decoration: underline;
  text-decoration-color: #b9bcc6;
  text-underline-offset: 3px;
}

.expert-facts a:hover,
.expert-copy a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}

.expert-section {
  padding: 0 0 96px;
}

.expert-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 64px;
  padding-top: 40px;
  border-top: 1px solid #e6e6ea;
}

.expert-section h2 {
  margin: 0;
  color: var(--color-title);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.expert-copy {
  max-width: 720px;
  color: #4b5162;
  font-size: 17px;
  line-height: 1.65;
}

.expert-copy p {
  margin: 0 0 16px;
}

.expert-copy p:last-child {
  margin-bottom: 0;
}

.expert-checks {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expert-checks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid #e6e6ea;
}

.expert-checks li:first-child {
  padding-top: 0;
}

.expert-checks strong {
  color: var(--color-title);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.expert-checks span {
  color: #6b7080;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}

.expert-checks p {
  grid-column: 1 / -1;
  margin: 0;
  color: #4b5162;
  font-size: 15px;
  line-height: 1.6;
}

.expert-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expert-ratings a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f1f1f3;
  color: var(--color-title);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.expert-ratings a:hover {
  background: #e8e8ec;
}

.expert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 24px;
}

.experts-page :is(.experts-breadcrumbs a, .experts-link, .expert-ratings a, .expert-facts a, .expert-copy a):focus-visible,
.rating-experts__all:focus-visible {
  outline: 2px solid var(--color-title);
  outline-offset: 2px;
}

.experts-others {
  padding: 96px 0;
  background: #f6f6f6;
}

.experts-others .rating-experts__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
}

.experts-others h2 {
  margin: 0 0 32px;
  color: var(--color-title);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
}

@media (max-width: 1100px) {
  .expert-profile,
  .expert-section__grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px;
  }

  .experts-grid {
    gap: 16px;
  }

  .experts-empty {
    padding-bottom: 56px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .rating-experts {
    margin-top: 72px;
  }

  .rating-experts__head {
    display: block;
    margin-bottom: 16px;
  }

  .rating-experts__head h2,
  .rating-experts__head h3 {
    font-size: 20px;
  }

  .rating-experts__head p {
    margin-top: 4px;
    font-size: 14px;
  }

  .rating-experts__list,
  .experts-others .rating-experts__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .expert-chip {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .expert-chip:hover {
    transform: none;
  }

  .expert-chip img {
    width: 48px;
    height: 48px;
  }

  .expert-chip__name {
    font-size: 16px;
  }

  .expert-chip__lead {
    margin-top: 4px;
  }

  main .method-grid .method-weight {
    margin-top: 8px;
    font-size: 13px;
  }

  .experts-hero {
    padding: 96px 0 40px;
  }

  .experts-breadcrumbs {
    margin-bottom: 24px;
  }

  .experts-hero h1 {
    margin-top: 16px;
    font-size: 34px;
  }

  .experts-hero__lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .experts-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 56px;
  }

  .expert-card__body {
    padding: 16px;
  }

  .expert-card h2 {
    font-size: 20px;
  }

  .expert-card__text {
    margin: 12px 0 16px;
  }

  .experts-band,
  .experts-others {
    padding: 56px 0;
  }

  .experts-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .experts-steps li {
    padding: 16px;
    border-radius: 14px;
  }

  .experts-steps li::before {
    margin-bottom: 16px;
  }

  .experts-steps h3 {
    font-size: 18px;
  }

  .experts-note {
    margin-top: 24px;
  }

  .expert-profile,
  .expert-section__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .expert-profile__photo {
    max-width: 240px;
    border-radius: 14px;
  }

  .expert-profile__role {
    margin-top: 12px;
    font-size: 17px;
  }

  .expert-profile__summary {
    margin-top: 12px;
    font-size: 16px;
  }

  .expert-facts {
    margin-top: 24px;
  }

  .expert-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 0;
  }

  .expert-facts dt {
    font-size: 13px;
  }

  .expert-section {
    padding-bottom: 56px;
  }

  .expert-section__grid {
    padding-top: 24px;
  }

  .expert-section h2,
  .experts-others h2 {
    font-size: 24px;
  }

  .experts-others h2 {
    margin-bottom: 16px;
  }

  .expert-copy {
    font-size: 16px;
  }

  .expert-checks li {
    padding: 12px 0;
  }

  .expert-checks strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expert-chip {
    transition: none;
  }
}

/* Experts as their own section right under the company list (owner, 13 Nov 2026):
   web development national and city pages. */
.rating-experts-section { padding: 0 0 104px; background: #fff; }
.rating-experts-section .rating-experts { margin-top: 0; padding-top: 56px; }
.rating-experts-section .rating-experts__head h2 { margin: 0; color: var(--color-title); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
@media (max-width: 768px) {
  .rating-experts-section { padding-bottom: 64px; }
  .rating-experts-section .rating-experts { padding-top: 32px; }
  .rating-experts-section .rating-experts__head h2 { font-size: 22px; }
}
