/* Shared editorial heroes own a full-width surface, regardless of template. */
.main-content-wrapper:has(.toptech-editorial-hero),
.main:has(.toptech-editorial-hero) {
  width: 100%;
  max-width: none;
}

.main-content-wrapper:has(.toptech-editorial-hero) {
  margin-right: 0;
  margin-left: 0;
}

.toptech-editorial-page {
  width: 100%;
  overflow: clip;
  color: var(--toptech-ink);
}

.toptech-editorial-page .container {
  width: calc(100% - 30px);
  max-width: var(--max-width-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.toptech-editorial-hero__inner > *,
.toptech-editorial-content { min-width: 0; }

.toptech-editorial-eyebrow {
  margin: 0 0 16px;
  color: var(--theme-color-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.toptech-editorial-hero {
  position: relative;
  overflow: hidden;
  background: var(--toptech-ink);
  color: var(--toptech-on-dark);
}

.toptech-editorial-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at 78% 22%, rgba(109, 93, 243, .46), transparent 31%);
  background-size: 58px 58px, 58px 58px, auto;
  content: "";
  pointer-events: none;
}

.toptech-editorial-hero__inner {
  position: relative;
  display: grid;
  min-height: 590px;
  padding-top: clamp(72px, 8vw, 116px);
  padding-bottom: clamp(72px, 8vw, 116px);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(52px, 8vw, 120px);
  align-items: center;
}

.toptech-editorial-hero__inner--single {
  min-height: 520px;
  grid-template-columns: minmax(0, 860px);
}

.toptech-editorial-hero__inner > div {
  animation: toptech-editorial-rise .58s ease both;
}

.toptech-editorial-hero .toptech-editorial-eyebrow { color: #b9afff; }

.toptech-editorial-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--toptech-on-dark);
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -.062em;
  line-height: .96;
}

.toptech-editorial-lead {
  max-width: min(740px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.62;
}

.toptech-editorial-hero__index {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  animation: toptech-editorial-rise .68s .08s ease both;
}

.toptech-editorial-hero__index > span {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.toptech-editorial-hero__index a {
  display: grid;
  min-height: 62px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  color: rgba(255, 255, 255, .44);
  font-size: 11px;
  text-decoration: none;
  transition: color var(--toptech-transition), padding var(--toptech-transition);
}

.toptech-editorial-hero__index a strong {
  color: var(--toptech-on-dark);
  font-size: 15px;
}

.toptech-editorial-hero__index a:hover {
  padding-left: 8px;
  color: #b9afff;
}

.toptech-editorial-layout {
  display: grid;
  padding-top: clamp(74px, 9vw, 126px);
  padding-bottom: clamp(90px, 11vw, 150px);
  grid-template-columns: 235px minmax(0, 820px);
  justify-content: space-between;
  gap: clamp(54px, 8vw, 112px);
}

.toptech-editorial-toc {
  position: sticky;
  top: 108px;
  align-self: start;
  padding-top: 5px;
}

.toptech-editorial-toc p {
  margin: 0 0 16px;
  color: var(--toptech-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.toptech-editorial-toc a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--toptech-border);
  color: var(--toptech-ink-soft);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--toptech-transition), padding var(--toptech-transition);
}

.toptech-editorial-toc a:hover {
  padding-left: 5px;
  color: var(--theme-color-dark);
}

.toptech-editorial-content > section {
  padding: clamp(56px, 7vw, 86px) 0;
  border-top: 1px solid var(--toptech-border-strong);
  scroll-margin-top: 100px;
}

.toptech-editorial-content > section:first-child { padding-top: 0; border-top: 0; }

.toptech-editorial-content h2,
.toptech-guide-list h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 4.8vw, 60px);
  letter-spacing: -.05em;
  line-height: 1.02;
}

.toptech-editorial-content section > p:not(.toptech-editorial-eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--toptech-ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.toptech-method-labels {
  margin-top: 42px;
  border-top: 1px solid var(--toptech-border-strong);
}

.toptech-method-labels > div {
  display: grid;
  padding: 24px 0;
  border-bottom: 1px solid var(--toptech-border-strong);
  grid-template-columns: minmax(150px, .32fr) minmax(0, .68fr);
  gap: 28px;
}

.toptech-method-labels strong { font-size: 15px; }
.toptech-method-labels span { color: var(--toptech-muted); line-height: 1.65; }

.toptech-method-steps {
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--toptech-border-strong);
  list-style: none;
}

.toptech-method-steps li {
  display: grid;
  padding: 28px 0;
  border-bottom: 1px solid var(--toptech-border-strong);
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 24px;
}

.toptech-method-steps li > span {
  color: var(--theme-color-dark);
  font-size: 11px;
  font-weight: 850;
}

.toptech-method-steps strong { display: block; margin-bottom: 8px; font-size: 20px; }
.toptech-method-steps p { margin: 0; color: var(--toptech-muted); line-height: 1.65; }

.toptech-editorial-action {
  display: inline-flex;
  margin-top: 34px;
  align-items: center;
  gap: 9px;
  color: var(--theme-color-dark);
  font-weight: 800;
  text-decoration: none;
}

.toptech-editorial-action span { transition: transform var(--toptech-transition); }
.toptech-editorial-action:hover span { transform: translateX(5px); }

.toptech-editorial-byline {
  display: flex;
  max-width: 690px;
  margin-top: 34px;
  align-items: center;
  gap: 14px;
}

.toptech-editorial-byline__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  place-items: center;
}

.toptech-editorial-byline__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toptech-editorial-byline p,
.toptech-editorial-byline strong,
.toptech-editorial-byline span {
  display: block;
  margin: 0;
}

.toptech-editorial-byline p {
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.toptech-editorial-byline strong { margin-top: 2px; font-size: 14px; }
.toptech-editorial-byline strong a { color: var(--toptech-on-dark); text-decoration: none; }
.toptech-editorial-byline span { margin-top: 2px; color: rgba(255, 255, 255, .58); font-size: 12px; }

.toptech-comparison-verdict {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  animation: toptech-editorial-rise .68s .08s ease both;
}

.toptech-comparison-verdict span {
  color: #b9afff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.toptech-comparison-verdict p {
  margin: 18px 0 0;
  color: var(--toptech-on-dark);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
}

.toptech-comparison-table-wrap {
  max-width: calc(100vw - 32px);
  margin-top: 40px;
  overflow-x: auto;
  border-top: 2px solid var(--toptech-ink);
  outline: none;
}

.toptech-comparison-table-wrap:focus-visible { box-shadow: var(--toptech-shadow-focus); }

.toptech-comparison-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  box-shadow: none;
}

.toptech-comparison-table th,
.toptech-comparison-table td {
  padding: 19px 18px;
  border: 0;
  border-bottom: 1px solid var(--toptech-border-strong);
  background: transparent;
  color: var(--toptech-ink-soft);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.toptech-comparison-table thead th {
  color: var(--toptech-ink);
  font-size: 13px;
  font-weight: 850;
}

.toptech-comparison-table tbody th {
  width: 150px;
  color: var(--toptech-ink);
  font-weight: 750;
}

.toptech-comparison-table tbody tr { transition: background-color var(--toptech-transition); }
.toptech-comparison-table tbody tr:hover { background: var(--toptech-surface-lilac); }

.toptech-comparison-recommendations > div,
.toptech-comparison-reviews > div {
  margin-top: 38px;
  border-top: 1px solid var(--toptech-border-strong);
}

.toptech-comparison-recommendations > div p {
  display: grid;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px 0;
  border-bottom: 1px solid var(--toptech-border-strong);
  grid-template-columns: minmax(160px, .34fr) minmax(0, .66fr);
  gap: 26px;
  font-size: 16px !important;
}

.toptech-comparison-recommendations strong { color: var(--toptech-ink); }

.toptech-comparison-reviews > div a,
.toptech-comparison-sources li a {
  display: flex;
  min-height: 62px;
  padding: 16px 0;
  border-bottom: 1px solid var(--toptech-border-strong);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--toptech-ink);
  font-weight: 750;
  text-decoration: none;
}

.toptech-comparison-reviews a strong,
.toptech-comparison-sources a strong {
  color: var(--theme-color-dark);
  transition: transform var(--toptech-transition);
}

.toptech-comparison-reviews a:hover strong,
.toptech-comparison-sources a:hover strong { transform: translate(4px, -2px); }

.toptech-comparison-sources ol { margin: 34px 0 0; padding: 0; border-top: 1px solid var(--toptech-border-strong); list-style: none; }

.toptech-guide-list {
  padding-top: clamp(86px, 10vw, 140px);
  padding-bottom: clamp(92px, 11vw, 150px);
}

.toptech-guide-list > header {
  display: grid;
  margin-bottom: clamp(48px, 7vw, 82px);
  grid-template-columns: minmax(180px, .3fr) minmax(0, .7fr);
  gap: 42px;
}

.toptech-model-highlights > header {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--toptech-border-strong);
  grid-template-columns: minmax(180px, .27fr) minmax(0, .73fr);
  grid-template-areas:
    "eyebrow title"
    ". description";
  column-gap: clamp(42px, 7vw, 96px);
  row-gap: 18px;
}

.toptech-model-highlights > header::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--theme-color);
  content: "";
  transform-origin: left;
  animation: toptech-benchmark-rule .58s ease both;
}

.toptech-model-highlights > header .toptech-editorial-eyebrow {
  grid-area: eyebrow;
  padding-top: 6px;
}

.toptech-model-highlights > header h2 {
  max-width: 780px;
  margin: 0;
  grid-area: title;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -.052em;
  line-height: 1.02;
  text-wrap: balance;
  animation: toptech-editorial-rise .52s ease both;
}

.toptech-model-highlights > header > p:not(.toptech-editorial-eyebrow) {
  max-width: 680px;
  margin: 0;
  grid-area: description;
  color: var(--toptech-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  animation: toptech-editorial-rise .52s .07s ease both;
}

.toptech-guide-list ol { margin: 0; padding: 0; border-top: 1px solid var(--toptech-border-strong); list-style: none; }

.toptech-guide-list li > a {
  display: grid;
  min-height: 164px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--toptech-border-strong);
  grid-template-columns: 50px minmax(0, 1fr) 32px;
  gap: 28px;
  align-items: start;
  color: var(--toptech-ink);
  text-decoration: none;
  transition: padding var(--toptech-transition), background-color var(--toptech-transition);
}

.toptech-guide-list li > a:hover { padding-right: 14px; padding-left: 14px; background: var(--toptech-surface-lilac); }
.toptech-guide-list li > a > span { color: var(--theme-color-dark); font-size: 11px; font-weight: 850; }
.toptech-guide-list li small { color: var(--toptech-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.toptech-guide-list h3 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
.toptech-guide-list li p { max-width: 680px; margin: 12px 0 0; color: var(--toptech-muted); line-height: 1.65; }
.toptech-guide-list li > a > strong { color: var(--theme-color-dark); transition: transform var(--toptech-transition); }
.toptech-guide-list li > a:hover > strong { transform: translate(4px, -4px); }
.toptech-guide-list__context {
  display: grid;
  max-width: 880px;
  margin-top: 54px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.toptech-guide-list__context p {
  margin: 0;
  color: var(--toptech-ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.toptech-guide-list__method { margin: 34px 0 0; color: var(--toptech-muted); }

.single-tool .toptech-editorial-byline {
  max-width: none;
  margin: 12px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--toptech-border);
  border-bottom: 1px solid var(--toptech-border);
}

.single-tool .toptech-editorial-byline__mark {
  border-color: var(--toptech-border-strong);
  background: var(--toptech-surface-lilac);
  color: var(--theme-color-dark);
}

.single-tool .toptech-editorial-byline p { color: var(--toptech-muted); }
.single-tool .toptech-editorial-byline strong a { color: var(--toptech-ink); }
.single-tool .toptech-editorial-byline span { color: var(--toptech-muted); }

.toptech-tool-comparison-links {
  display: flex;
  margin: 0 0 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--toptech-border);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.toptech-tool-comparison-links > span {
  color: var(--toptech-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.toptech-tool-comparison-links a { color: var(--theme-color-dark); font-size: 13px; font-weight: 750; text-decoration: none; }
.toptech-tool-comparison-links a span { display: inline-block; transition: transform var(--toptech-transition); }
.toptech-tool-comparison-links a:hover span { transform: translateX(4px); }

@keyframes toptech-editorial-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toptech-benchmark-rule {
  from { opacity: .4; transform: scaleX(.28); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 900px) {
  .toptech-editorial-hero__inner { min-height: auto; grid-template-columns: 1fr; gap: 48px; }
  .toptech-editorial-layout { grid-template-columns: 1fr; }
  .toptech-editorial-toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toptech-editorial-toc p { grid-column: 1 / -1; }
  .toptech-editorial-toc a { margin-right: 16px; }
}

@media (max-width: 640px) {
  .toptech-editorial-hero__inner { padding-top: 60px; padding-bottom: 66px; }
  .toptech-editorial-hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .toptech-editorial-lead { font-size: 17px; }
  .toptech-editorial-layout { padding-top: 64px; gap: 60px; }
  .toptech-editorial-toc { grid-template-columns: 1fr; }
  .toptech-method-labels > div,
  .toptech-comparison-recommendations > div p { grid-template-columns: 1fr; gap: 8px; }
  .toptech-guide-list > header { grid-template-columns: 1fr; gap: 12px; }
  .toptech-model-highlights > header {
    padding-top: 22px;
    grid-template-areas:
      "eyebrow"
      "title"
      "description";
    gap: 14px;
  }
  .toptech-model-highlights > header .toptech-editorial-eyebrow { padding-top: 0; }
  .toptech-model-highlights > header h2 { font-size: clamp(36px, 11vw, 50px); }
  .toptech-guide-list li > a { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 12px; }
  .toptech-guide-list__context { grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .toptech-editorial-hero__inner > div,
  .toptech-editorial-hero__index,
  .toptech-comparison-verdict,
  .toptech-model-highlights > header::before,
  .toptech-model-highlights > header h2,
  .toptech-model-highlights > header > p { animation: none; }
  .toptech-editorial-page * { scroll-behavior: auto !important; }
}
