/* ============================================================
   Thought Pattern AI - Article pages
   Long-form article layout. Chrome lives in site.css.
   Classes are prefixed art- so they cannot collide with the
   .article section wrapper used by the service pages.
   ============================================================ */

/* -------- Masthead --------------------------------------- */
.art-head {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) var(--tp-space-8) var(--tp-space-8);
  border-bottom: 1px solid var(--tp-border);
}
.art-title {
  font-family: var(--tp-font-display);
  font-weight: var(--tp-fw-regular);
  letter-spacing: var(--tp-ls-display);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.03;
  text-transform: uppercase;
  color: var(--tp-fg);
  margin: 0 0 var(--tp-space-5);
}
.art-deck {
  font-family: var(--tp-font-serif);
  font-style: italic;
  font-size: var(--tp-fs-xl);
  line-height: 1.38;
  color: var(--tp-fg-body);
  margin: 0 0 var(--tp-space-6);
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tp-space-3);
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-xs);
  letter-spacing: 0.05em;
  color: var(--tp-fg-muted);
  margin: 0;
}
.art-meta .sep {
  color: var(--tp-line-yellow);
}

/* -------- Body ------------------------------------------- */
.art-body {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--tp-space-10) var(--tp-space-8) 0;
}
.art-body > section {
  scroll-margin-top: 88px;
}
.art-body h2 {
  font-family: var(--tp-font-display);
  font-weight: var(--tp-fw-regular);
  letter-spacing: var(--tp-ls-display);
  font-size: var(--tp-fs-2xl);
  line-height: var(--tp-lh-snug);
  color: var(--tp-fg);
  margin: var(--tp-space-12) 0 var(--tp-space-5);
}
.art-body p {
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-md);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-body);
  margin: 0 0 var(--tp-space-5);
}
.art-body p:last-child {
  margin-bottom: 0;
}
/* The opening paragraph carries the news, so it reads one step up. */
.art-lede {
  font-size: var(--tp-fs-lg);
  color: var(--tp-fg);
}
.art-body p strong,
.art-body li strong {
  color: var(--tp-fg);
  font-weight: var(--tp-fw-semi);
}
.art-body a {
  color: var(--tp-yellow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--tp-line-yellow);
  transition: text-decoration-color var(--tp-duration-base) var(--tp-ease-out);
}
.art-body a:hover {
  text-decoration-color: var(--tp-yellow);
}

/* -------- Element list ----------------------------------- */
.art-body ul {
  list-style: none;
  margin: 0 0 var(--tp-space-5);
  padding: 0;
}
.art-body li {
  position: relative;
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-md);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-body);
  padding-left: var(--tp-space-6);
  margin-bottom: var(--tp-space-3);
}
.art-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--tp-rule);
}

/* -------- Pull quote ------------------------------------- */
.art-pull {
  border-left: 2px solid var(--tp-line-yellow);
  background: var(--tp-bg-recessed);
  padding: var(--tp-space-5) var(--tp-space-6);
  margin: var(--tp-space-8) 0;
  border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0;
}
.art-pull p {
  margin: 0;
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-xl);
  line-height: 1.34;
  color: var(--tp-fg);
}

/* -------- Comparison table ------------------------------- */
/* The table is wider than the measure on a phone, so it scrolls
   inside its own frame rather than widening the page. */
.art-table-wrap {
  overflow-x: auto;
  margin: var(--tp-space-6) 0 var(--tp-space-8);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  background: var(--tp-bg-recessed);
}
/* The frame scrolls, so it has to be reachable and named for keyboard use. */
.art-table-wrap:focus-visible {
  outline: 2px solid var(--tp-yellow);
  outline-offset: 2px;
}
.art-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.art-table th,
.art-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--tp-space-4) var(--tp-space-5);
  border-bottom: 1px solid var(--tp-border);
}
.art-table thead th {
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-xs);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: var(--tp-ls-mono);
  text-transform: uppercase;
  color: var(--tp-yellow);
  background: var(--tp-bg-surface);
}
.art-table tbody th {
  width: 26%;
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-base);
  font-weight: var(--tp-fw-semi);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg);
}
.art-table td {
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-base);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-body);
}
.art-table tbody tr:last-child th,
.art-table tbody tr:last-child td {
  border-bottom: 0;
}

/* -------- Responsive ------------------------------------- */
@media (max-width: 560px) {
  .art-head,
  .art-body {
    padding-left: var(--tp-space-5);
    padding-right: var(--tp-space-5);
  }
  .art-table-wrap {
    border-radius: var(--tp-radius-sm);
  }
}
