/* ─────────────────────────────────────────────────────────────
   Articles — index listing + long-form article pages.
   Sits on top of nule.css and reuses its tokens (--orange,
   --mint, --surface, --font-display …). No colours defined here
   that aren't already in the palette.
   ───────────────────────────────────────────────────────────── */

/* ─── Shared page hero ─── */
.article-hero {
  padding: 140px 0 40px;
  text-align: center;
}

/* Visible trail that matches the BreadcrumbList schema — Google cross-checks
   the two, and renders the trail in place of the raw URL in results. */
.article-breadcrumb {
  /* nule.css styles the bare `nav` element as the fixed site header, so this
     landmark has to opt out of all of it. */
  position: static;
  height: auto;
  padding: 0;
  z-index: auto;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--grey);
  margin-bottom: 18px;
}

.article-breadcrumb a {
  color: var(--grey);
  text-decoration: none;
}

.article-breadcrumb a:hover { color: var(--mint); }
.article-breadcrumb span { margin: 0 8px; }

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-hero-subtitle {
  font-size: 18px;
  color: var(--grey);
  max-width: 620px;
  margin: 0 auto;
}

/* ─── Index: card list ─── */
.article-list-section {
  padding: 40px 0 120px;
}

.article-list {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: 16px;
  padding: 28px 30px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover,
.article-card:focus-visible {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.article-card-meta {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.article-card h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.article-card p {
  color: var(--grey);
  font-size: 16px;
  margin-bottom: 14px;
}

.article-card-more {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--mint);
}

/* ─── Article body ─── */
.article-body-section {
  padding: 20px 0 100px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
}

.article-body > p {
  color: var(--light-grey);
  margin-bottom: 22px;
}

.article-body .lead {
  font-size: 20px;
  color: var(--white);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 52px 0 18px;
}

/* The doc's one-line pivot sentences ("Nule starts with the job.") carry the
   argument, so they get their own weight rather than sitting inside a paragraph. */
.article-body .pull {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--mint);
  border-left: 3px solid var(--orange);
  padding-left: 22px;
  margin: 30px 0 30px;
}

.article-body strong { color: var(--white); }

.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--white);
  margin: 34px 0 12px;
}

.article-body a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 157, 0.35);
}

.article-body a:hover { border-bottom-color: var(--mint); }

.article-body ul,
.article-body ol {
  color: var(--light-grey);
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--orange); }

/* Worked sums (quoted vs actual, the four parts of a price) read as a block,
   not as prose — boxed so the arithmetic is scannable. */
.article-sum {
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 26px 0;
}

.article-sum h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.article-sum dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 0;
  font-size: 16px;
  margin: 0;
}

/* The gap sits inside the cells, not between them, so the border-top on a
   total row reads as one rule across the block rather than two stubs. */
.article-sum dt { color: var(--grey); padding-right: 20px; }
.article-sum dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-display);
  color: var(--light-grey);
}

.article-sum .total {
  border-top: 1px solid var(--surface-3);
  padding-top: 10px;
  margin-top: 4px;
  color: var(--white);
}

.article-sum .total-value { color: var(--mint); }
.article-sum .total-value.negative { color: var(--red); }

/* ─── Comparison tables ─── */
.article-table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--surface-3);
  border-radius: 14px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  min-width: 520px;
}

/* The nine-app grid needs more room than a two-column comparison. Below the
   breakout width it still scrolls sideways inside its wrapper. */
.article-table--wide { min-width: 940px; font-size: 14px; }
.article-table--wide th,
.article-table--wide td { padding: 11px 12px; }

@media (min-width: 1080px) {
  .article-table-wrap--wide {
    width: 980px;
    margin-left: -130px;
  }
}

.article-table th,
.article-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--surface-3);
  vertical-align: top;
}

.article-table thead th {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--surface);
  white-space: nowrap;
}

.article-table tbody th {
  font-weight: 400;
  color: var(--light-grey);
}

.article-table td { color: var(--grey); }
.article-table tr:last-child th,
.article-table tr:last-child td { border-bottom: none; }
.article-table .yes { color: var(--mint); }
.article-table .no { color: var(--grey); }

/* Small print: source/date notes at the foot of an article. */
.article-note {
  font-size: 14px;
  color: var(--grey);
  border-top: 1px solid var(--surface-3);
  padding-top: 18px;
  margin-top: 40px;
}

/* Cross-links to the related pieces, at the end of the body. */
.article-related {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--surface-3);
}

.article-related h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.article-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-related li { margin-bottom: 8px; font-size: 16px; }

.article-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 22px;
}

.article-meta span + span::before {
  content: '·';
  margin-right: 14px;
}

/* ─── End-of-article CTA ─── */
.article-cta {
  max-width: 720px;
  margin: 60px auto 0;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: 16px;
  padding: 34px 32px;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.article-cta p {
  color: var(--grey);
  font-size: 16px;
  margin-bottom: 22px;
}

.article-back {
  display: block;
  max-width: 720px;
  margin: 40px auto 0;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--grey);
  text-decoration: none;
}

.article-back:hover { color: var(--mint); }

@media (max-width: 640px) {
  .article-hero { padding: 110px 0 30px; }
  .article-card { padding: 24px 22px; }
  .article-body { font-size: 17px; }
  .article-body .pull { padding-left: 16px; }
  .article-sum { padding: 20px 18px; }
  .article-sum dl { font-size: 15px; }
}
