/* ===========================
   Step One article pages
   Static HTML, SEO-friendly
   =========================== */

:root {
  --brand: #f13e56;
  --brand-dark: #bf0000;
  --text: #111;
  --muted: #5a5a5a;
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #eaeaea;

  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

/* Layout */

.article-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.article-nav {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.article-logo {
  color: var(--brand);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  position: relative;
}

.article-logo::after {
  content: "Beta";
  position: absolute;
  top: -4px;
  right: -24px;
  color: var(--brand);
  font-size: 0.6rem;
  font-weight: 700;
}

.article-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-nav__link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.article-nav__link:hover,
.article-nav__link:focus {
  color: var(--brand-dark);
  text-decoration: underline;
}

.article-shell {
  flex: 1;
  width: 100%;
  padding: var(--space-3);
}

.article-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-6) var(--space-5);
}

/* Header */

.article-kicker {
  display: inline-block;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.article-title {
  color: var(--text);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

.article-description {
  color: var(--text);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 var(--space-4);
  padding-left: var(--space-3);
  border-left: 4px solid var(--brand);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-6);
}

/* Article body */

.article-content {
  color: var(--text);
}

.article-content h2 {
  color: var(--text);
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  line-height: 1.25;
  margin: var(--space-7) 0 var(--space-3);
}

.article-content h3 {
  color: var(--text);
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  line-height: 1.3;
  margin: var(--space-5) 0 var(--space-2);
}

.article-content p {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 var(--space-3);
}

.article-content strong {
  font-weight: 800;
}

.article-content a {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 700;
}

.article-content a:hover,
.article-content a:focus {
  color: var(--brand-dark);
}

/* Lists */

.article-content ul,
.article-content ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content li::marker {
  color: var(--brand);
  font-weight: 800;
}

/* Tables */

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.article-content thead {
  background: #fff5f6;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  min-width: 150px;
}

.article-content th {
  color: var(--text);
  font-weight: 800;
}

.article-content td {
  color: var(--text);
}

.article-content tr:last-child td {
  border-bottom: 0;
}

/* Callouts */

.article-callout {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff5f6;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

/* CTA */

.article-cta {
  margin-top: var(--space-7);
  padding: var(--space-5);
  border: 1px solid rgba(241, 62, 86, 0.25);
  border-radius: var(--radius);
  background: #fff5f6;
}

.article-cta__title {
  color: var(--text);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}

.article-cta__copy {
  color: var(--text);
  font-weight: 600;
  margin: 0 0 var(--space-4);
}

.article-cta__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.article-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition:
    transform 0.1s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.article-btn--primary {
  background: var(--brand);
  color: #fff;
}

.article-btn--primary:hover,
.article-btn--primary:focus {
  background: var(--brand-dark);
  color: #fff;
  transform: scale(1.02);
}

.article-btn--secondary {
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.article-btn--secondary:hover,
.article-btn--secondary:focus {
  background: var(--brand);
  color: #fff;
  transform: scale(1.02);
}

/* FAQ */

.article-faq {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px dashed var(--border);
}

.article-faq h2 {
  margin-top: 0;
}

/* Footer */

.article-footer {
  width: 100%;
  text-align: center;
  padding: var(--space-4) var(--space-3);
  color: var(--muted);
  font-size: 0.9rem;
}

.article-footer a {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 700;
}

.article-footer a:hover,
.article-footer a:focus {
  color: var(--brand-dark);
}

.article-content .article-faq {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px dashed var(--border);
}

/* Mobile */

@media (max-width: 640px) {
  .article-nav {
    padding: var(--space-3);
  }

  .article-nav__links {
    gap: var(--space-2);
    font-size: 0.9rem;
  }

  .article-shell {
    padding: var(--space-3);
  }

  .article-container {
    padding: var(--space-5) var(--space-4);
  }

  .article-description {
    font-size: 1rem;
  }

  .article-content p,
  .article-content li {
    font-size: 0.98rem;
  }

  .article-content th,
  .article-content td {
    padding: 10px 12px;
    min-width: 135px;
  }
}

@media (min-width: 720px) {
  .article-cta__buttons {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Article index page === */

.article-index-content h2 {
  margin-top: var(--space-6);
}

.article-index-featured h2 {
  margin-top: 0;
}

.article-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.article-index-grid--featured {
  margin-bottom: var(--space-6);
}

.article-index-card,
.article-index-row {
  display: block;
  width: 100%;
  color: var(--text);
  text-decoration: none !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.08s ease,
    background-color 0.2s ease;
}

.article-index-card {
  padding: var(--space-4);
}

.article-index-row {
  padding: 13px 14px;
  font-weight: 800 !important;
  line-height: 1.35;
}

.article-index-card:hover,
.article-index-card:focus,
.article-index-row:hover,
.article-index-row:focus {
  border-color: rgba(241, 62, 86, 0.45);
  background: #fffdfd;
  box-shadow: 0 0 0 3px rgba(241, 62, 86, 0.08);
  transform: translateY(-1px);
  outline: none;
  color: var(--brand);
}

.article-index-card__eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.article-index-card__title {
  display: block;
  color: var(--text);
  font-size: clamp(1rem, 3.6vw, 1.16rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.article-index-card__copy {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.article-index-section {
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border);
}

@media (min-width: 760px) {
  .article-index-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-index-section .article-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .article-index-card {
    padding: var(--space-3);
  }

  .article-index-row {
    padding: 12px;
    font-size: 0.88rem;
  }

  .article-index-card__eyebrow {
    font-size: 0.7rem;
  }

  .article-index-card__copy {
    font-size: 0.84rem;
  }
}