/* ---------------------------
   Article Typography
---------------------------- */
.article {
  padding: 0;
}

.articleHeader {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.articleMeta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}

.articleMeta time {
  margin-left: 4px;
}

.articleTitle {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text-heading);
}

.articleSubtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 720px;
}

.articleFeaturedImage {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--t);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Consistent 16:9 aspect ratio */
  background: var(--surface-2);
}

/* Featured image in content section: match content width, no border/background, fit height */
.articleContent .articleFeaturedImage {
  margin-bottom: 40px;
  border: none;
  background: transparent;
  border-radius: 0;
  aspect-ratio: unset;
  height: auto;
  overflow: visible;
}

.articleContent .articleFeaturedImage:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.articleContent .articleFeaturedImage img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Tag bubbles below featured image - uses same .tag class as categories */
.articleTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  margin-top: -24px;
}

.articleFeaturedImage:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.articleFeaturedImage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: var(--t);
}

.articleContent {
  padding-bottom: 60px;
}

.articleBody {
  max-width: 680px;
  margin: 0 auto;
}

.articleBody > * + * {
  margin-top: 24px;
}

.articleBody > h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.articleBody > h3 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.articleBody > h4,
.articleBody > h5,
.articleBody > h6 {
  margin-top: 28px;
  margin-bottom: 10px;
}

/* Headings in article body */
.articleBody h1,
.articleBody h2,
.articleBody h3,
.articleBody h4,
.articleBody h5,
.articleBody h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.articleBody h1 {
  font-size: 36px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.articleBody h2 {
  font-size: 28px;
}

.articleBody h3 {
  font-size: 22px;
}

.articleBody h4 {
  font-size: 18px;
}

.articleBody h5 {
  font-size: 16px;
}

.articleBody h6 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs */
.articleBody p {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

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

/* Lists */
.articleBody ul,
.articleBody ol {
  margin: 20px 0;
  padding-left: 24px;
  color: var(--text);
}

.articleBody ul {
  list-style-type: disc;
}

.articleBody ol {
  list-style-type: decimal;
}

.articleBody li {
  margin: 8px 0;
  line-height: 1.7;
  font-size: 16px;
}

.articleBody li > ul,
.articleBody li > ol {
  margin: 8px 0;
  margin-left: 20px;
}

.articleBody li > ul {
  list-style-type: circle;
}

.articleBody li > ol {
  list-style-type: lower-alpha;
}

/* Definition lists */
.articleBody dl {
  margin: 20px 0;
}

.articleBody dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  font-size: 16px;
}

.articleBody dt:first-child {
  margin-top: 0;
}

.articleBody dd {
  margin: 6px 0 0 20px;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* Blockquotes */
.articleBody blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid rgba(208, 122, 92, 0.4);
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.articleBody blockquote p {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--text);
}

.articleBody blockquote p:last-child {
  margin-bottom: 0;
}

.articleBody blockquote footer {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.articleBody blockquote cite {
  font-style: normal;
}

/* Code */
.articleBody code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
  border: 1px solid var(--border);
}

.articleBody pre {
  margin: 24px 0;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.articleBody pre code {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 14px;
  line-height: 1.6;
  display: block;
}

/* Links */
.articleBody a {
  color: rgba(208, 122, 92, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--t);
}

.articleBody a:hover {
  color: rgba(208, 122, 92, 1);
  text-decoration: none;
}

/* Text formatting */
.articleBody strong {
  font-weight: 600;
  color: var(--text);
}

.articleBody em {
  font-style: italic;
}

.articleBody mark {
  background: rgba(208, 122, 92, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
  color: var(--text);
}

.articleBody small {
  font-size: 13px;
  color: var(--muted);
}

.articleBody del {
  text-decoration: line-through;
  opacity: 0.7;
}

.articleBody ins {
  text-decoration: underline;
}

.articleBody sub,
.articleBody sup {
  font-size: 12px;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.articleBody sup {
  top: -0.5em;
}

.articleBody sub {
  bottom: -0.25em;
}

/* Tables */
.articleBody table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.articleBody thead {
  background: var(--surface-2);
}

.articleBody th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.articleBody td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.articleBody tbody tr:last-child td {
  border-bottom: none;
}

.articleBody tbody tr:hover {
  background: var(--surface-2);
}

/* Responsive table behavior on small screens */
@media (max-width: 640px) {
  /* Make the WP table wrapper scrollable instead of the table itself */
  .articleBody figure.wp-block-table,
  .comparisonTable {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .articleBody figure.wp-block-table table,
  .comparisonTable table,
  .articleBody table[style*="border-collapse"] {
    min-width: 600px;
    /* Keep cells on a single line; user can scroll horizontally */
    white-space: nowrap;
  }
}

/* Horizontal rule */
.articleBody hr {
  margin: 32px 0;
  border: none;
  border-top: 1px solid var(--border);
  height: 0;
}

/* Figures and images */
.articleBody figure {
  margin: 28px 0;
  transition: var(--t);
}

.articleBody figure:hover {
  transform: translateY(-2px);
}

.articleBody figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--t);
}

.articleBody figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

@media (max-width: 640px) {
  /* Add horizontal padding to sections on mobile */
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
  .whatGrid {
    grid-template-columns: 1fr;
  }
  .actions .search {
    display: none;
  }
  .actions .btn {
    padding: 10px 10px;
  }
  .cover-product {
    height: 190px;
  }
  /* Stack header content and center on small screens */
  .nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto;
    padding: 8px 0 10px;
  }
  .logo {
    order: 0;
    justify-content: center;
  }
  .links {
    order: 1;
    gap: 4px;
    padding: 2px 4px;
    justify-content: center;
  }
  .actions {
    order: 2;
  }
  .navLink {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Footer stacks under logo/text on small screens */
  .footGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  footer {
    text-align: left;
  }

  .articleHeader {
    padding: 24px 0 20px;
  }

  .articleTitle {
    font-size: 28px;
  }

  .articleSubtitle {
    font-size: 16px;
  }

  .articleBody {
    max-width: 100%;
  }

  .articleBody h1 {
    font-size: 28px;
  }

  .articleBody h2 {
    font-size: 24px;
  }

  .articleBody h3 {
    font-size: 20px;
  }

  .articleBody p,
  .articleBody li,
  .articleBody dd {
    font-size: 15px;
  }

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

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

  /* Latest section: stack all three cards as equal-width rows */
  .sectionFeatured .featuredGrid {
    grid-template-columns: 1fr;
  }

  .sectionFeatured .featuredSide {
    grid-template-rows: auto;
  }

  .sectionFeatured .featuredMain .cover-product {
    height: 220px;
  }
}

