/* ---------------------------------------------------------------------
   Articles: the list page and the single article.

   Its own file, loaded only by articles.php and article.php through
   $extraStyles, so the blog cannot move a pixel anywhere else — and so a
   change here is not stuck behind the year-long cache on style.css.
   --------------------------------------------------------------------- */

/* A reading column. ~68 characters a line at the body size below — past
   about 75 the eye starts losing its place on the way back. */
.article-narrow{width:min(calc(100% - 48px),760px);margin-inline:auto}

.article-hero{padding:48px 0 40px}
.article-title{margin:10px 0 0;font:400 clamp(34px,4.4vw,54px)/1.08 var(--serif);letter-spacing:-.03em;color:var(--navy)}
.article-meta{margin:18px 0 0;color:var(--muted);font-size:13.5px;display:flex;flex-wrap:wrap;gap:6px 10px}
.article-translation{margin:14px 0 0;font-size:14px;font-weight:700}
.article-translation a{color:var(--teal)}
.breadcrumb{display:flex;gap:8px;align-items:center;margin-bottom:22px;font-size:13px;color:var(--muted)}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--teal)}

.article-section{padding-top:36px}
.article-figure{margin:0 0 38px}
.article-figure img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}

/* The body. Headings are serif like the rest of the site; the text is set
   larger and looser than the marketing pages because it is read, not
   skimmed. */
.prose{font-size:17px;line-height:1.78;color:#23384f}
.prose>*:first-child{margin-top:0}
.prose p{margin:0 0 20px}
.prose h2{margin:46px 0 14px;font:400 clamp(26px,2.6vw,32px)/1.18 var(--serif);letter-spacing:-.02em;color:var(--navy)}
.prose h3{margin:32px 0 10px;font-size:19px;line-height:1.35;color:var(--navy)}
.prose ul,.prose ol{margin:0 0 22px;padding-left:22px}
.prose li{margin:0 0 10px;padding-left:4px}
.prose li::marker{color:var(--teal);font-weight:700}
.prose strong{color:var(--navy)}
.prose a{color:var(--teal);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.prose a:hover{text-decoration-thickness:2px}
.prose blockquote{margin:28px 0;padding:18px 22px;border-left:3px solid var(--teal);background:var(--soft);border-radius:0 var(--radius) var(--radius) 0}
.prose blockquote p:last-child{margin:0}
/* Short "do this today" boxes inside an article. */
.prose .note{margin:28px 0;padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.prose .note p:last-child,.prose .note ul:last-child{margin-bottom:0}

/* Tables scroll sideways on a phone rather than squashing their columns
   into a column of single words. */
.table-wrap{margin:26px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--radius)}
.prose table{width:100%;min-width:520px;border-collapse:collapse;font-size:15px;line-height:1.55}
.prose th,.prose td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.prose th{background:var(--soft);color:var(--navy);font-weight:700}
.prose tr:last-child td{border-bottom:0}

/* Closing offer. */
.article-cta{margin-top:48px;padding:30px;border-radius:var(--radius);background:linear-gradient(120deg,#f8fbfa,#e9f5f3);border:1px solid var(--line)}
.article-cta-text{margin:8px 0 22px;font-size:17px;line-height:1.65;color:var(--ink)}
.article-cta-actions{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center}

/* Cards — list page and "keep reading". */
.article-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:26px;margin-top:22px}
.article-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden}
.article-card a{display:flex;flex-direction:column;height:100%}
.article-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.article-card-body{padding:22px 22px 24px}
.article-card h2{margin:0 0 10px;font:400 22px/1.22 var(--serif);letter-spacing:-.01em;color:var(--navy)}
.article-card p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.6}
.article-card:hover h2{color:var(--teal)}
.article-card p.article-card-views{margin-top:14px;font-size:12.5px;font-weight:600;color:var(--teal)}
.article-lang{display:inline-block;margin-bottom:10px;padding:2px 8px;border-radius:999px;background:var(--soft);color:var(--teal);font-size:11px;font-weight:700;letter-spacing:.08em}
.article-subhead{margin:4px 0 0;font:400 clamp(28px,3vw,38px)/1.1 var(--serif);color:var(--navy)}

@media(max-width:820px){
  .article-narrow{width:min(calc(100% - 32px),760px)}
  .article-hero{padding:34px 0 28px}
  .prose{font-size:16px;line-height:1.72}
  .prose h2{margin-top:38px}
  .article-cta{padding:24px 20px}
  .article-grid{gap:18px}
}
