/* ——— the articles: the site's own type and colour, set for long reading ——— */
.article { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; padding: clamp(128px, 18vh, 180px) 0 var(--s-16); }
.article .crumb { font-size: 13px; color: var(--moon-faint); }
.article .crumb a { color: var(--gold); border: 0; }
.article h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.3; margin: var(--s-4) 0 var(--s-3); text-wrap: balance; }
.article .meta { font-size: 13.5px; color: var(--dune); padding-bottom: var(--s-8); margin-bottom: var(--s-8); border-bottom: 1px solid var(--hair); }
.article h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.45; margin: var(--s-12) 0 var(--s-4); text-wrap: balance; }
.article h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.6; margin: var(--s-8) 0 var(--s-2); }
.article p, .article li { font-size: 17px; line-height: 2; color: var(--moon-dim); }
.article p + p { margin-top: var(--s-4); }
.article ul, .article ol { margin: var(--s-4) 0; padding-inline-start: 1.3em; display: grid; gap: var(--s-2); }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li::marker { color: var(--gold); }
.article strong { color: var(--moon); font-weight: 600; }
.article em { font-style: normal; color: var(--gold); }
.article a:not(.btn) { color: var(--gold); border-bottom: 1px solid rgba(231, 205, 146, .4); transition: border-color 160ms var(--ease-out); }
.article a:not(.btn):hover { border-color: var(--gold); }
.stat { border-inline-start: 2px solid var(--gold); padding: 4px 22px; margin-bottom: var(--s-8); }
.stat p { color: var(--moon); font-size: 19px; }

.table-wrap { margin: var(--s-6) 0; border: 1px solid var(--hair); border-radius: var(--radius); overflow-x: auto; background: var(--night-2); }
.ptable { width: 100%; min-width: 520px; border-collapse: collapse; }
.ptable th, .ptable td { padding: 14px 18px; text-align: start; vertical-align: top; font-size: 15px; line-height: 1.7; color: var(--moon-dim); border-bottom: 1px solid var(--hair); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable th { font-size: 13.5px; font-weight: 600; color: var(--gold); background: var(--night-3); }
.ptable td:first-child { color: var(--moon); font-weight: 600; }

.callout { margin: var(--s-12) 0; padding: clamp(24px, 4vw, 36px); border: 1px solid rgba(231, 205, 146, .3); border-radius: 20px; background: linear-gradient(180deg, var(--night-3), var(--night-2)); }
.callout p { color: var(--moon); }
.cta-row { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } }
.article .faq-q { margin-top: var(--s-6); color: var(--moon); font-weight: 600; }
.article .faq-q + p { margin-top: var(--s-1); }

/* the index and the "read next" rail reuse the home page's article cards */
.blog-hero { padding: clamp(150px, 22vh, 220px) 0 var(--s-8); }
.blog-hero h1 { margin-top: var(--s-4); }
.blog-hero .lede { margin-top: var(--s-6); max-width: 40em; }
.posts.all { padding-top: var(--s-8); }
.posts.all .posts__grid { margin-top: 0; }
.post p { margin-top: var(--s-3); font-size: 14.5px; line-height: 1.85; color: var(--moon-dim); }
.blog-cta { margin-top: var(--s-12); }
.blog-cta .ilink { color: var(--gold); border-bottom: 1px solid rgba(231, 205, 146, .4); }
.posts.more { border-top: 1px solid var(--hair); }
@media (min-width: 900px) {
  .post--feature { grid-column: 1 / -1; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: var(--s-10); border-color: rgba(231, 205, 146, .35); }
  .post--feature h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
  .post--feature p { max-width: 46em; font-size: 16px; }
}
.blog-hero.small { min-height: 100svh; display: grid; align-content: center; padding: 140px 0 var(--s-16); }
.blog-hero.small .cta-row { margin-top: var(--s-8); }
.lost-en { margin-top: var(--s-10); font-size: 14px; color: var(--moon-faint); }
.lost-en .ilink { color: var(--gold); border-bottom: 1px solid rgba(231, 205, 146, .4); }

/* ——— data reports (/report/…): key numbers, bars and a citation box, drawn in HTML so they read in both directions ——— */
.rp-article .lede { font-size: 19px; line-height: 1.95; color: var(--moon); }
.rp-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: var(--s-10) 0; border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; background: var(--hair); }
.rp-keys > div { background: var(--night-2); padding: clamp(20px, 3vw, 30px); }
.rp-keys b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.rp-keys span { display: block; margin-top: var(--s-2); font-size: 14.5px; line-height: 1.75; color: var(--moon-dim); }
.rp-fig { margin: var(--s-8) 0; padding: clamp(20px, 3.5vw, 32px); border: 1px solid var(--hair); border-radius: 20px; background: var(--night-2); }
.rp-fig figcaption { font-weight: 600; color: var(--moon); font-size: 16px; line-height: 1.7; }
.rp-fig figcaption small { display: block; font-weight: 400; font-size: 13.5px; color: var(--dune); margin-top: 2px; }
.rp-src { margin-top: var(--s-4); font-size: 12.5px; color: var(--moon-faint); }
.rp-split { display: flex; height: 44px; margin-top: var(--s-6); border-radius: 12px; overflow: hidden; gap: 2px; }
.rp-split i { display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 600; color: var(--night); min-width: 2.6em; }
.rp-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-4); font-size: 13.5px; color: var(--moon-dim); }
.rp-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 8px; background: var(--c); vertical-align: 0; }
.c-good { --c: var(--good); background: var(--good); } .c-mid { --c: var(--gold); background: var(--gold); } .c-poor { --c: var(--bad); background: var(--bad); }
.rp-hist { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: 6px; height: 190px; margin-top: var(--s-6); padding-bottom: 26px; position: relative; }
.rp-hist div { position: relative; border-radius: 6px 6px 2px 2px; min-height: 3px; }
.rp-hist div b { position: absolute; inset-inline: 0; top: -22px; text-align: center; font-size: 12px; font-weight: 600; color: var(--moon-dim); }
.rp-hist div em { position: absolute; inset-inline: 0; bottom: -24px; text-align: center; font-size: 11.5px; font-style: normal; color: var(--moon-faint); white-space: nowrap; }
.article .rp-hist div em { color: var(--moon-faint); }
.rp-bars { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.rp-bar { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr) 3.2em; align-items: center; gap: var(--s-3); font-size: 14.5px; color: var(--moon-dim); }
.rp-bar > span:first-child { line-height: 1.5; }
.rp-bar s { display: block; height: 12px; border-radius: 6px; background: var(--night-3); text-decoration: none; overflow: hidden; }
.rp-bar s i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
[dir="rtl"] .rp-bar s i { background: linear-gradient(270deg, var(--gold-deep), var(--gold)); }
.rp-bar b { font-variant-numeric: tabular-nums; color: var(--moon); font-weight: 600; text-align: end; }
@media (max-width: 560px) { .rp-bar { grid-template-columns: minmax(0, 1fr) 3em; } .rp-bar s { grid-column: 1 / -1; grid-row: 2; } }
.rp-lead { counter-reset: lead; display: grid; gap: 0; margin: var(--s-6) 0; border-top: 1px solid var(--hair); }
.rp-lead li { list-style: none; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: var(--s-3); align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; line-height: 1.6; }
@media (min-width: 720px) { .rp-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); } }
.article .rp-lead { padding: 0; }
.rp-lead li::before { counter-increment: lead; content: counter(lead); color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-lead li strong { font-weight: 600; }
.rp-lead li small { display: block; font-size: 13px; color: var(--dune); }
.rp-lead li b { font-variant-numeric: tabular-nums; color: var(--good); font-weight: 600; white-space: nowrap; }
.rp-cite { margin: var(--s-6) 0; padding: var(--s-6); border: 1px dashed rgba(231, 205, 146, .45); border-radius: 16px; background: var(--night-2); }
.rp-cite code { display: block; font-family: inherit; font-size: 15px; line-height: 1.9; color: var(--moon); user-select: all; }
.rp-method p, .rp-method li { font-size: 15px; line-height: 1.95; }
.rp-dl { margin-top: var(--s-4); }
