/* Static comparison articles (/alternatives, /best-mac-volume-mixers). Mirrors the main site's look. */
:root {
  --text: #1d1d1f;
  --muted: #5f5f66;
  --border: rgba(29, 29, 31, 0.1);
  --surface: #fff;
  --bg: #f5f5f7;
  --red: #e3121b;
  --red-strong: #c40d17;
  --blue: #0a84ff;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red-strong);
}

:focus-visible {
  outline: 3px solid rgba(227, 18, 27, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1040px, 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.header-inner {
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wordmark span {
  color: var(--red);
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.site-header nav a:not(.button),
.site-footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-header nav a:not(.button):hover,
.site-footer nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ea1d1f, #cf0d17);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(227, 18, 27, 0.6);
}

.button--small {
  padding: 8px 16px;
  font-size: 0.92rem;
}

.button--ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.article {
  max-width: 820px;
  padding: 40px 0 88px;
}

.crumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--muted);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h2 {
  margin: 48px 0 14px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin: 28px 0 6px;
  font-size: 1.12rem;
}

.meta,
.fine {
  color: var(--muted);
  font-size: 0.9rem;
}

.answer {
  margin: 20px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 14px;
  background: var(--surface);
  font-size: 1.08rem;
}

ul {
  padding-left: 1.2em;
}

li + li {
  margin-top: 6px;
}

.choose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.choose section {
  padding: 4px 22px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.choose section:first-child {
  border-color: rgba(227, 18, 27, 0.35);
}

.choose h2 {
  margin-top: 16px;
  font-size: 1.2rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: #fafafb;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

thead th:nth-child(2) {
  color: var(--red-strong);
}

tbody th {
  width: 24%;
  font-weight: 600;
}

.ranking-table {
  min-width: 920px;
  font-size: 0.88rem;
}

.ranking-table thead th:nth-child(2) {
  color: var(--muted);
}

.ranking-table tr.winner {
  background: rgba(227, 18, 27, 0.05);
}

.ranked {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.ranked h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.rank {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 1.05rem;
}

.ranked:first-of-type .rank {
  background: var(--red);
}

.ranked-meta {
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pros-cons h3 {
  margin-top: 8px;
}

.cta {
  margin: 48px 0 8px;
  padding: 28px;
  border-radius: 20px;
  background: #1d1d1f;
  color: #f5f5f7;
  text-align: center;
}

.cta h2 {
  margin-top: 0;
  color: #fff;
}

.cta .fine {
  color: #a1a1a6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cards li + li {
  margin: 0;
}

.cards a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.cards a:hover {
  border-color: rgba(227, 18, 27, 0.4);
  transform: translateY(-2px);
}

.cards span {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-feature {
  grid-column: 1 / -1;
}

.card-feature a {
  border-color: rgba(227, 18, 27, 0.35);
}

.related ul {
  columns: 2;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .choose,
  .pros-cons,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .related ul {
    columns: 1;
  }

  .site-header nav a:not(.button) {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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