/* Articles (site/articles/): long reading pages that answer one question.
   Type scale: H1 (hero), H2 (section titles), body text, and one small label size. Nothing else. */
:root { --fs-body: 17px; --fs-label: 15px; }
@media (max-width: 760px) { :root { --fs-body: 16px; } }

.article-hero { padding-bottom: calc(clamp(48px, 6vw, 80px) + var(--slope) * .6); }
.article-hero h1 { max-width: 22ch; font-size: clamp(34px, 4.4vw, 60px); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 28px; color: var(--muted-dark); font-size: var(--fs-label); }
.article-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--violet); }
.article-meta a { text-decoration: none; color: var(--white); font-weight: 500; }
.article-meta .sep { opacity: .5; }

.article-main { padding-top: clamp(32px, 4vw, 56px); }
.article-body { max-width: 740px; }
.article-body h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; margin: 56px 0 14px; }
.article-body h3 { font-weight: 700; letter-spacing: 0; margin: 32px 0 6px; }
.article-body p, .article-body li, .article-body h3, .article-body .faq summary { font-size: var(--fs-body); line-height: 1.6; }
.article-body p, .article-body li { color: #33374f; }
.article-body p + p, .article-body ul + p, .article-body .copy-map + p { margin-top: 18px; }
.article-body .chips + p { margin-top: 18px; }
.article-body ul, .article-body ol { margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.article-body li strong { color: var(--ink); }
.article-body a { color: var(--violet); text-underline-offset: 3px; }

.answer { background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--violet); border-radius: var(--radius-sm); padding: 22px 26px; }
.answer h2 { font-size: var(--fs-label); font-weight: 600; letter-spacing: .01em; color: var(--violet); margin: 0 0 8px; }
.article-body .answer p { color: var(--ink); }

.copy-map { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.copy-map table { width: 100%; border-collapse: collapse; font-size: var(--fs-label); line-height: 1.45; }
.copy-map th, .copy-map td { text-align: start; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.copy-map thead th { background: var(--violet-soft); color: var(--violet); font-weight: 600; padding-block: 10px; border-bottom: 0; }
.copy-map .route { color: var(--ink); }
.copy-map .route .to { color: var(--violet); padding-inline: 6px; }
.copy-map .route .to::before { content: "←" / ""; }
html[dir="ltr"] .copy-map .route .to::before { content: "→" / ""; }
html[dir="ltr"] .flow .hand .arrow { transform: scaleX(-1); }
.copy-map td:last-child { color: var(--muted); }
.copy-map tbody tr:last-child td { border-bottom: 0; }
.copy-map td:first-child { font-weight: 600; color: var(--ink); }

.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.article-cta-who { display: flex; align-items: center; gap: 18px; }
.article-cta-who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--violet); flex: none; }
.article-cta .statement { font-size: clamp(24px, 2.4vw, 32px); }
.article-cta .note { color: var(--muted-dark); font-size: var(--fs-label); margin-top: 6px; }

/* Rows: parallel items in one component. Full-width rows, marker on the right (RTL),
   a one-line title and a short text, so every item has the same shape. */
.case-trio { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.case-item { display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; align-items: start; padding: 16px 20px; }
.case-item + .case-item { border-top: 1px solid var(--line); }
.case-item .mark { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-label); font-weight: 700; background: var(--violet-soft); color: var(--violet); }
.article-body .case-item h3 { margin: 2px 0 2px; }
.article-body .case-item p { margin: 0; color: var(--muted); }
.article-body .case-item p + p { grid-column: 2; margin-top: 10px; }

/* Numbered steps joined by a line; the number leads the line (right in Hebrew). */
.article-body .case-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.case-steps > li { position: relative; padding-inline-start: 46px; padding-bottom: 22px; }
.case-steps > li::before { content: attr(data-step); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: var(--fs-label); display: grid; place-items: center; }
.case-steps > li::after { content: ""; position: absolute; inset-inline-start: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.case-steps > li:last-child { padding-bottom: 0; }
.case-steps > li:last-child::after { display: none; }

/* FAQ: the site's accordion, with the +/- marker leading the question. */
.article-body .faq { margin-top: 6px; }
.article-body .faq summary { padding: 16px 0; justify-content: flex-start; font-weight: 700; }
.article-body .faq summary .pm { order: -1; width: 22px; height: 22px; }
.article-body .faq summary .pm::before, .article-body .faq summary .pm::after { inset-inline: 6px; }
.article-body .faq .ans { padding-inline-start: 40px; padding-bottom: 16px; margin: 0; }

/* Short-answer bullets inside the answer box. */
.answer ul { margin: 0; padding-inline-start: 20px; gap: 8px; }
.article-body .answer li { color: var(--ink); }

/* Chips: short parallel labels, such as the questions to ask about each copy. */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.article-body .chips { display: flex; padding: 0; margin-top: 14px; }
.article-body .chips li { font-size: var(--fs-label); line-height: 1.3; font-weight: 600; color: var(--violet); background: var(--violet-soft); border-radius: 999px; padding: 7px 12px; }

/* One highlighted phrase per article at most. */
.article-body .hl { color: var(--ink); }

/* Step cards: the site's work method, side by side, number leading. */
.article-body .step-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 0; padding: 0; }
.step-cards > li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 20px; }
.step-cards .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.article-body .step-cards h3 { margin: 12px 0 4px; }
.article-body .step-cards p { margin: 0; color: var(--muted); }
.article-body .step-cards + p { margin-top: 18px; }
@media (max-width: 600px) { .article-body .step-cards { grid-template-columns: 1fr; } }

/* Icon markers in rows: same circle as .mark, with a small line icon. */
.case-item .mark svg, .flow svg, .step-cards svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-item .mark.neg { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
/* Mint marks the way forward (solutions, steps): a solid fill with an ink icon,
   as in the site's dark method section; thin mint lines on white are too faint. */
.case-item .mark.sol, .step-cards .num { background: var(--mint); color: var(--ink); }
.article-body .case-item .context-box { grid-column: 2; margin-top: 12px; background: var(--mint-soft); border-inline-start: 4px solid var(--mint); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--ink); }


/* Callout box: an aside that belongs to the step above it. */
.callout { margin-top: 32px; }
.article-body .callout h3 { margin: 0 0 4px; }
.article-body .callout ul { margin-top: 8px; }
.article-body .callout p { margin-top: 12px; }

/* Flow illustration: systems as tiles, the people who copy between them as connectors. */
.article-body .flow, .flow { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 6px; }
.flow .sys { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 8px; display: grid; justify-items: center; align-content: center; align-self: stretch; min-height: 104px; gap: 8px; text-align: center; font-size: var(--fs-label); font-weight: 600; color: var(--ink); line-height: 1.3; }
.flow .sys svg { width: 24px; height: 24px; color: var(--violet); }
.flow .hand { position: relative; display: grid; justify-items: center; font-size: var(--fs-label); color: var(--muted); text-align: center; width: 86px; line-height: 1.25; }
/* Arrow sits on the tiles' midline; the person above and the label below hang off it, so a two-line label doesn't shift the arrow. */
.flow .hand .who { position: absolute; bottom: calc(100% + 6px); }
.flow .hand > span:not(.who) { position: absolute; top: calc(100% + 4px); left: 0; right: 0; }
.flow .hand .who { width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; }
.flow .hand .arrow { width: 100%; height: 10px; }
.flow .hand .arrow path { stroke: var(--line); stroke-width: 2; fill: none; }

@media (max-width: 600px) {
  .article-body .flow { grid-template-columns: 1fr; gap: 4px; justify-items: stretch; }
  .flow .hand { width: auto; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 8px; padding: 2px 0; }
  .flow .hand .arrow { display: none; }
  .flow .hand .who, .flow .hand > span:not(.who) { position: static; }
  .flow .sys { grid-template-columns: auto auto; justify-content: center; padding: 10px; min-height: 0; }
}

.copy-map .m-label { display: none; }

@media (max-width: 600px) {
  .answer { padding: 18px 18px; }
  .case-item { padding: 14px 16px; column-gap: 12px; }
  /* The date gets its own line instead of a separator dangling at the line end. */
  .article-meta .sep-date { display: none; }
  .article-meta .meta-date { flex-basis: 100%; }
  /* The map table becomes one card per row on phones. */
  .copy-map thead { display: none; }
  .copy-map tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .copy-map tbody tr:last-child { border-bottom: 0; }
  .copy-map td { display: block; padding: 2px 0; border: 0; }
  .copy-map td:first-child { margin-bottom: 4px; }
  .copy-map .m-label { display: inline; color: var(--muted); }
  .article-cta-who { align-items: flex-start; }
}

@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .case-item, .case-steps > li, .step-cards > li, .faq details, .copy-map, .callout, .flow { break-inside: avoid; }
  .article-body h2 { break-after: avoid; }
}
