.articles-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.articles-main {
  --article-text: #334155;
  --article-gutter: clamp(1rem, 4vw, 2rem);
  flex: 1;
  padding: clamp(2.5rem, 6vw, 5rem) var(--article-gutter);
}

.article-prose {
  width: min(100%, 44rem);
  margin-inline: auto;
  color: var(--article-text);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-title {
  color: var(--kanzy-ink);
  font-size: clamp(2rem, 5vw, 3.375rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.13;
  text-wrap: balance;
}

.article-prose p {
  margin-block-start: 0.875rem;
}

.article-prose h2,
.article-card h2 {
  color: var(--kanzy-ink);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.article-prose section + section {
  margin-block-start: 2.5rem;
}

.articles-index {
  max-width: 54rem;
  margin-inline: auto;
}

.article-card {
  margin-block-start: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #f1d9cd;
  border-radius: var(--radius-custom, 12px);
  background: var(--kanzy-surface-warm);
  color: var(--article-text);
  line-height: 1.65;
}

.article-card p {
  margin-block-start: 0.75rem;
}

.article-card h2 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.article-card h2 a:hover {
  color: var(--kanzy-action);
}

.article-link {
  color: var(--kanzy-action);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-back {
  display: inline-block;
  margin-block-end: 1rem;
  font-size: 0.9375rem;
}

.article-comparison {
  --comparison-green: #217653;
  --comparison-amber: #8d5906;
  --comparison-red: #b64038;
  width: min(100%, 76rem);
  margin: clamp(2rem, 5vw, 3rem) auto;
  color: var(--kanzy-ink);
}

.comparison-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  margin-block-end: 0.75rem;
  font-weight: 700;
}

.comparison-legend li,
.comparison-label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.comparison-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-block-start: 0.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comparison-icon--built,
.comparison-icon--pro {
  color: var(--comparison-green);
}

.comparison-icon--varies {
  color: var(--comparison-amber);
}

.comparison-icon--missing,
.comparison-icon--con {
  color: var(--comparison-red);
}

.comparison-hint {
  margin-block-end: 0.75rem;
  color: var(--article-text);
  font-size: 0.875rem;
}

.comparison-table {
  min-width: 65rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.comparison-table th:first-child {
  width: 15%;
  font-size: 0.875rem;
}

.comparison-table thead th {
  font-weight: 700;
  text-align: center;
}

.comparison-table :is(thead th:not(:first-child), td) {
  background: var(--kanzy-surface-lavender);
}

.comparison-table :is(thead th, td):last-child {
  background: var(--kanzy-surface-warm);
}

.comparison-table td {
  color: var(--article-text);
  vertical-align: top;
}

.comparison-label {
  color: var(--kanzy-ink);
}

.comparison-entry p {
  margin-inline-start: 1.4rem;
}

.comparison-entry + .comparison-entry {
  margin-block-start: 0.75rem;
}

html[lang="ar"] :is(.article-title, .article-prose h2, .article-card h2, .comparison-table th) {
  letter-spacing: normal;
}

html[lang="ar"] :is(.article-title, .article-prose h2, .article-card h2) {
  font-weight: 700;
  line-height: 1.35;
}

html[lang="ar"] .article-prose {
  font-size: 1.1875rem;
  line-height: 1.8;
}

html[lang="ar"] .comparison-table {
  font-size: 1.0625rem;
  line-height: 1.65;
}

html[lang="ar"] .comparison-table th:first-child {
  font-size: 1rem;
}

@media (max-width: 47.99rem) {
  .comparison-table {
    min-width: 60rem;
  }

  .comparison-table th:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    width: 8rem;
    padding-inline: 0.75rem;
  }
}

@media (min-width: 69.25rem) {
  .comparison-hint {
    display: none;
  }
}
