.content-hero {
  padding: 82px max(24px, calc((100vw - 1180px) / 2)) 58px;
  background: #e8e5db;
}

.content-hero .eyebrow {
  margin-bottom: 20px;
}

.content-hero h1 {
  max-width: 900px;
  margin: 0;
  font: 700 clamp(45px, 7vw, 82px)/.96 'Space Grotesk';
  letter-spacing: -.06em;
}

.content-hero h1 em {
  color: var(--lime-dark);
  font-style: normal;
}

.content-hero p {
  max-width: 760px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 760px;
  margin-top: 18px;
  color: #565b53;
  font-size: 13px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-featured-image {
  max-width: 940px;
  margin: 34px 0 0;
}

.article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(23, 26, 22, .12);
  border-radius: 16px;
  background: #f7f6f0;
}

.article-featured-image figcaption {
  margin-top: 10px;
  color: #656a62;
  font-size: 13px;
  line-height: 1.5;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 75px 24px;
}

.content-layout-wide {
  grid-template-columns: minmax(0, 1fr);
}

.content-main section {
  margin-bottom: 62px;
  scroll-margin-top: 100px;
}

.content-main h2 {
  margin: 0 0 18px;
  font: 700 clamp(30px, 4vw, 46px)/1.05 'Space Grotesk';
  letter-spacing: -.04em;
}

.content-main h3 {
  margin: 28px 0 10px;
  font: 600 22px 'Space Grotesk';
}

.content-main p,
.content-main li {
  color: var(--muted);
}

.content-main li + li {
  margin-top: 9px;
}

.content-note {
  padding: 22px;
  background: #eef2df;
  border-left: 4px solid var(--lime-dark);
  border-radius: 0 12px 12px 0;
}

.quick-answer {
  margin: 0 0 34px;
  padding: 24px 26px;
  color: #eef1e9;
  background: var(--dark);
  border-radius: 16px;
}

.quick-answer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font: 700 12px 'DM Sans';
  letter-spacing: .1em;
  text-transform: uppercase;
}

.quick-answer p {
  margin: 0;
  color: #eef1e9;
  font-size: 18px;
  line-height: 1.6;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.article-table-wrap table {
  width: 100%;
  min-width: 650px;
  margin: 0;
  border-collapse: collapse;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table-wrap th {
  color: white;
  background: var(--dark);
  font-size: 13px;
}

.article-table-wrap tr:last-child td {
  border-bottom: 0;
}

/*
 * Older editorial pages use a plain table, while newer guides place the
 * table inside .article-table-wrap. Keep both versions visually consistent
 * and make wide comparison data usable on smaller screens.
 */
.content-main table:not(.cpu-table) {
  width: 100%;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 14px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}

.content-main table:not(.cpu-table) th,
.content-main table:not(.cpu-table) td {
  padding: 15px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.content-main table:not(.cpu-table) th {
  color: white;
  background: var(--dark);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.content-main table:not(.cpu-table) tr:nth-child(even) td {
  background: rgba(244, 243, 236, 0.62);
}

.content-main table:not(.cpu-table) tr > :last-child {
  border-right: 0;
}

.content-main table:not(.cpu-table) tr:last-child td {
  border-bottom: 0;
}

.article-table-wrap table:not(.cpu-table) {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.article-review {
  margin-top: 54px;
  padding: 22px 24px;
  background: #f0eee5;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.article-review h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.article-review p:last-child {
  margin-bottom: 0;
}

.content-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.content-sidebar strong {
  display: block;
  margin-bottom: 10px;
  font-family: 'Space Grotesk';
}

.content-sidebar a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trust-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.trust-card strong {
  display: block;
  margin-bottom: 9px;
  font: 600 18px 'Space Grotesk';
}

.blog-card-image {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  height: auto;
  aspect-ratio: 1200 / 630;
  margin: -22px -22px 20px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}

.compare-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px;
}

.compare-controls {
  display: grid;
  grid-template-columns: 180px 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 24px;
  background: var(--dark);
  border-radius: 18px;
}

.compare-field label {
  display: block;
  margin-bottom: 8px;
  color: #b7bdb3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.compare-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--dark);
  background: white;
  border: 0;
  border-radius: 9px;
}

.compare-controls .compare-search-select .search-trigger,
.compare-controls .compare-search-select .search-trigger:hover,
.compare-controls .compare-search-select .search-trigger:focus,
.compare-controls .compare-search-select .search-trigger[aria-expanded="true"] {
  color: var(--dark);
  background: white;
  border-color: transparent;
}

.compare-controls .compare-search-select .search-trigger:focus,
.compare-controls .compare-search-select .search-trigger[aria-expanded="true"] {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(105, 122, 50, .18);
}

.compare-controls .compare-search-select .search-trigger.has-value span {
  color: var(--dark);
}

.compare-controls .compare-search-select .search-trigger b {
  color: var(--lime-dark);
}

.compare-controls button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--dark);
  background: var(--lime);
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.comparison-result {
  margin-top: 35px;
}

.comparison-empty {
  padding: 45px;
  color: var(--muted);
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 15px;
}

.comparison-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.comparison-component {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.comparison-component img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.comparison-component h2 {
  margin: 14px 0 5px;
  font: 700 25px 'Space Grotesk';
}

.comparison-kind {
  margin-top: 16px;
  color: var(--lime-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.comparison-component p {
  min-height: 72px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.comparison-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.comparison-facts span {
  padding: 7px 9px;
  color: var(--dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.comparison-component a {
  color: var(--lime-dark);
  font-size: 13px;
  font-weight: 700;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.comparison-summary {
  margin: 0 0 12px;
  padding: 24px;
  color: white;
  background: var(--dark);
  border-radius: 15px;
}

.comparison-calculator-action {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.comparison-calculator-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  color: white;
  background: #52682f;
  border: 1px solid #445727;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(23, 26, 22, .1);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.comparison-calculator-action a:hover,
.comparison-calculator-action a:focus-visible {
  background: #445727;
  box-shadow: 0 11px 28px rgba(23, 26, 22, .16);
  transform: translateY(-2px);
}

.comparison-summary > span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.comparison-summary h2 {
  margin: 7px 0 8px;
  color: white;
  font: 700 clamp(22px, 3vw, 32px) 'Space Grotesk';
}

.comparison-summary p {
  max-width: 880px;
  margin: 0;
  color: #d9ddd5;
  line-height: 1.6;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row > * {
  padding: 15px;
  border-left: 1px solid var(--line);
}

.comparison-row > *:first-child {
  border-left: 0;
  color: var(--muted);
}

.comparison-row.header {
  color: white;
  background: var(--dark);
  font-weight: 700;
}

@media (max-width: 850px) {
  .content-layout,
  .compare-controls {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .content-hero {
    padding-top: 58px;
  }

  .article-meta {
    display: grid;
    gap: 7px;
  }

  .quick-answer {
    padding: 21px;
  }
}

@media (max-width: 620px) {
  .comparison-head {
    grid-template-columns: 1fr;
  }

  .comparison-component p {
    min-height: 0;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .content-main table:not(.cpu-table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    white-space: normal;
  }

  .content-main table:not(.cpu-table) th,
  .content-main table:not(.cpu-table) td {
    min-width: 150px;
  }

  .article-table-wrap table:not(.cpu-table) {
    display: table;
    max-width: none;
    overflow: visible;
  }

  .comparison-row {
    min-width: 620px;
  }
}

/* Internal content links: theme green, bold and underlined. See styles.css for the note on lime vs lime-dark. */
.content-main p a:not(.primary-action),
.content-main li a:not(.primary-action),
.content-sidebar a,
.trust-card a {
  color: var(--lime-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
