.top-companies-page {
  background: #f5f9fb;
}

.top-companies-container {
  width: 100%;
  max-width: var(--container-content);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.top-companies-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(234, 149, 36, 0.24), transparent 26%),
    linear-gradient(135deg, #2f4427 0%, #4d6f3d 100%);
  color: #fff;
}

.top-companies-hero .top-companies-container {
  padding-top: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(38px, 4.5vw, 60px);
}

.top-companies-hero .authority-eyebrow {
  color: #ffca66;
}

.top-companies-hero h1 {
  max-width: 1040px;
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(2.25rem, 3.7vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.top-companies-hero__intro {
  max-width: 680px;
  margin: 0;
  color: #d8e1d3;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.6;
}

.top-companies-hero__focus {
  max-width: 720px;
  margin: 18px 0 0;
  color: #e5ecdf;
  font-size: 0.95rem;
  line-height: 1.55;
}

.top-companies-hero__focus strong {
  color: #ffca66;
}

.top-companies-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.top-companies-hero__actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.78);
  color: #fff;
}

.top-companies-hero__actions .btn-outline:hover,
.top-companies-hero__actions .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.top-companies-content {
  padding-top: clamp(32px, 3.5vw, 48px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.top-companies-heading {
  align-items: flex-end;
}

.top-companies-heading h2 {
  max-width: 760px;
}

.top-companies-updated {
  flex: 0 0 auto;
  margin: 0;
  color: var(--authority-muted);
  font-size: 0.88rem;
}

.top-companies-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 0 30px;
  padding: 16px 0;
  border-bottom: 1px solid var(--authority-line);
}

.top-companies-scope p {
  max-width: 860px;
  margin: 0;
  color: var(--authority-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.top-companies-scope .authority-text-link {
  white-space: nowrap;
}

.top-companies-coverage-note {
  margin: 0 0 18px;
  color: var(--authority-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.top-companies-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-companies-list__item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.top-companies-rank {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #c7dce6;
  border-radius: 50%;
  background: #fff;
  color: #38522e;
  font-family: var(--font-family-heading);
  font-size: 1.35rem;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px rgba(16, 42, 60, 0.07);
}

.top-companies-list .provider-card {
  width: 100%;
}

@media (min-width: 761px) {
  .top-companies-list .provider-card {
    display: grid;
    grid-template-columns: clamp(200px, 24vw, 300px) minmax(0, 1fr);
    align-items: stretch;
  }

  .top-companies-list .provider-card--no-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .top-companies-list .provider-card .provider-image {
    width: auto;
    min-height: 228px;
    aspect-ratio: auto;
  }

  .top-companies-list .provider-card .provider-info {
    padding: 20px 24px;
  }

  .top-companies-list .provider-summary-row {
    gap: 16px;
    margin-bottom: 12px;
  }

  .top-companies-list .provider-facts {
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 0;
  }

  .top-companies-list .provider-services {
    gap: 6px;
    margin-bottom: 10px;
  }

  .top-companies-list .provider-services li {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .top-companies-list .provider-card .provider-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .top-companies-list .provider-card .provider-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
  }

  .top-companies-list .provider-card .provider-actions .compare-toggle {
    grid-column: auto;
  }
}

.top-companies-methodology {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 84px);
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--authority-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 42, 60, 0.06);
}

.top-companies-methodology h2,
.top-companies-empty h2 {
  margin: 10px 0 0;
  color: var(--authority-ink);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.top-companies-methodology__copy p,
.top-companies-empty p {
  margin: 0 0 18px;
  color: var(--authority-muted);
  line-height: 1.75;
}

.top-companies-empty {
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--authority-line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.top-companies-regions {
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--authority-line);
}

.top-companies-regions__heading {
  max-width: 720px;
}

.top-companies-regions h2 {
  margin: 10px 0 0;
  color: var(--authority-ink);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.top-companies-regions__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.top-companies-regions__list li {
  border-top: 1px solid var(--authority-line);
}

.top-companies-regions__list a {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  color: var(--authority-ink);
  text-decoration: none;
}

.top-companies-regions__list a:hover span,
.top-companies-regions__list a:focus-visible span {
  color: var(--sica-green, #4d6f3d);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.top-companies-regions__list span {
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  line-height: 1.2;
}

.top-companies-regions__list small {
  color: var(--authority-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .top-companies-hero .top-companies-container {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .top-companies-hero h1 {
    max-width: 17ch;
    font-size: clamp(2.2rem, 11vw, 3.1rem);
    line-height: 1.02;
  }

  .top-companies-hero__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .top-companies-hero__actions .btn {
    justify-content: center;
    min-height: 44px;
  }

  .top-companies-content {
    padding-top: 36px;
  }

  .top-companies-hero__focus {
    margin-top: 16px;
    font-size: 0.88rem;
  }

  .top-companies-heading,
  .top-companies-methodology {
    display: block;
  }

  .top-companies-updated {
    margin-top: 16px;
  }

  .top-companies-scope {
    display: block;
    margin-bottom: 24px;
    padding: 14px 0;
  }

  .top-companies-scope .authority-text-link {
    display: inline-block;
    margin-top: 12px;
    white-space: normal;
  }

  .top-companies-list__item {
    position: relative;
    display: block;
  }

  .top-companies-rank {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    margin: 0;
    border-color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
    box-shadow: 0 6px 16px rgba(16, 42, 60, 0.12);
  }

  .top-companies-list .provider-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .top-companies-list .provider-card--no-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .top-companies-list .provider-card .provider-info {
    display: contents;
    padding: 0;
  }

  .top-companies-list .provider-card .provider-image {
    grid-column: 1;
    grid-row: 1;
    width: 88px;
    height: 88px;
    min-height: 0;
    aspect-ratio: 1;
    align-self: start;
    border-radius: 10px;
  }

  .top-companies-list .provider-summary-row {
    grid-column: 2;
    grid-row: 1;
    min-height: 88px;
    gap: 8px;
    margin: 0;
    align-items: center;
  }

  .top-companies-list .provider-card--no-image .provider-summary-row {
    grid-column: 1 / -1;
    padding-left: 34px;
  }

  .top-companies-list .provider-card .provider-name {
    margin-top: 2px;
  }

  .top-companies-list .provider-name a {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .top-companies-list .provider-location {
    font-size: 0.64rem;
    line-height: 1.25;
  }

  .top-companies-list .provider-score-inline .sica-score-badge {
    min-width: 54px;
    padding: 6px;
  }

  .top-companies-list .provider-score-inline .score-value {
    font-size: 1.05rem;
  }

  .top-companies-list .provider-facts,
  .top-companies-list .provider-services,
  .top-companies-list .provider-card .provider-actions {
    grid-column: 1 / -1;
  }

  .top-companies-list .provider-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 10px;
    padding: 10px 0;
  }

  .top-companies-list .provider-facts dt {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .top-companies-list .provider-facts dd {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .top-companies-list .provider-services {
    gap: 6px;
    margin-bottom: 12px;
  }

  .top-companies-list .provider-services li {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .top-companies-list .provider-services li:nth-child(n + 3),
  .top-companies-list .provider-card .provider-excerpt {
    display: none;
  }

  .top-companies-list .provider-card .provider-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .top-companies-list .provider-card .provider-actions .btn-sm {
    min-height: 44px;
  }

  .top-companies-list .provider-card .provider-actions .compare-toggle {
    grid-column: 1 / -1;
  }

  .top-companies-regions {
    margin-top: 64px;
  }

  .top-companies-regions__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .top-companies-regions__list a {
    padding: 14px 0;
  }

  .top-companies-methodology__copy {
    margin-top: 24px;
  }
}
