/* ============================================================
   Corbel Partners — insights / article styles
   ============================================================ */

/* ---------- insights index ---------- */
.article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  padding: 32px 0 0;
  max-width: 760px;
}
.article-card .tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}
.article-card h3 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 14px; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--rust); }
.article-card .standfirst { color: var(--gray-dark); margin-bottom: 16px; }
.article-card .meta {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ---------- article ---------- */
.article-head { background: var(--ink); color: var(--cream); padding: 84px 0 56px; }
.article-head .wrap { max-width: 860px; }
.article-head h1 { color: var(--white); max-width: 20ch; }
.article-head .byline {
  font-family: var(--mono, var(--sans));
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gray);
  margin-top: 26px;
}
.article-head .byline .sep { color: var(--rust); padding: 0 6px; }

.article-body { padding: 64px 0 88px; }
.article-body .wrap { max-width: 860px; }
.article-body .measure { max-width: 66ch; }
.article-body > .wrap > .measure > p { font-size: 1.06rem; line-height: 1.72; margin-bottom: 1.15em; }
.article-body .standfirst {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.42;
  margin-bottom: 1.1em;
}
.article-body h2 {
  font-size: 1.5rem;
  margin: 52px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 24ch;
}
.article-body ul, .article-body ol { max-width: 66ch; padding-left: 20px; margin: 0 0 1.15em; }
.article-body li { margin-bottom: 12px; line-height: 1.68; }
.article-body li strong { color: var(--ink); }
.article-body .closing {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
  font-style: italic;
  color: var(--gray-dark);
  font-size: 0.96rem;
  max-width: 66ch;
}

/* ---------- chart figure ---------- */
.chart-figure { margin: 36px 0 40px; }
.chart-card {
  background: var(--cream);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 20px;
}
.chart-card .chart-title {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0 0 4px;
  max-width: 44ch;
}
.chart-card .chart-sub {
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin: 0 0 18px;
}
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-scroll svg { display: block; width: 100%; height: auto; min-width: 580px; }
.chart-figure figcaption {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--gray-dark);
  margin-top: 14px;
  max-width: 66ch;
}
.chart-figure .scroll-hint {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 8px;
  display: none;
}
@media (max-width: 640px) {
  .chart-figure .scroll-hint { display: block; }
}

details.data-table {
  margin-top: 18px;
  max-width: 66ch;
}
details.data-table summary {
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  padding: 8px 0;
}
details.data-table summary:hover { color: var(--rust-dark); }
details.data-table table { margin-top: 12px; font-size: 0.86rem; }
details.data-table td.num, details.data-table th.num { font-variant-numeric: tabular-nums; }


/* ---------- charts for papers 2 and 3: HTML labels, SVG marks ----------
   Labels are HTML so they reflow on a phone; the marks are inline SVG drawn to scale. */
.chart-figure--v2 .chart-card { font-family: var(--sans); }
.chart-figure--v2 .chart-card .chart-title { font-family: var(--serif); font-size: 1.22rem; max-width: 40ch; margin-bottom: 6px; }
.chart-figure--v2 .chart-card .chart-sub { font-family: var(--sans); font-size: 0.86rem; margin-bottom: 4px; }
.chart-figure figcaption.chart-source {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--gray-dark);
}

.sq-chart { display: grid; gap: 20px; margin-top: 22px; }
.sq-row { min-width: 0; }
.sq-row .sq-label { font-size: 0.95rem; line-height: 1.35; color: var(--ink); margin: 0 0 8px; }
.sq-row .sq-marks { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sq-row svg { display: block; flex: none; height: 36px; width: auto; max-width: 100%; }
.sq-row .sq-count { font-size: 0.98rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.bar-chart { display: grid; gap: 28px; margin-top: 24px; }
.bar-row { min-width: 0; }
.bar-row .bar-label { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.bar-row .bar-vals {
  display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  font-size: 0.92rem; margin: 0 0 8px; font-variant-numeric: tabular-nums;
}
.bar-row .bar-vals .v-small { color: var(--rust); font-weight: 600; }
.bar-row .bar-vals .v-large { color: var(--gray-dark); }
.bar-row svg { display: block; width: 100%; height: 44px; }

/* tables inside an article body */
.article-body .article-table { margin: 8px 0 1.6em; }
.article-body .article-table table.data { font-size: 0.9rem; min-width: 560px; }
.article-body .article-table td a { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 3px; }
.article-body .article-table td { font-variant-numeric: tabular-nums; }
.article-body .measure a { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 3px; }
.article-body .measure a:hover { color: var(--rust); }

/* insights index: a list of cards */
.article-list { display: grid; gap: 56px; }

/* held cards stay out of view until published (.article-card sets display:grid, which would beat the browser default) */
.article-card[hidden] { display: none; }

/* article titles are full sentences, so in caps they run smaller than the short page headings */
.article-head h1.h1-caps { font-size: clamp(2.1rem, 4.3vw, 3.75rem); line-height: 1.06; max-width: none; text-wrap: balance; }
