/* Editorial pages (blog, articles, HTS change radar). Loaded only by those pages. */
.editorial-page {
  --ed-ink: #17201b;
  --ed-muted: #5e6a63;
  --ed-line: #d9e0dc;
  --ed-panel: #f2f6f3;
  --ed-accent: #11756f;
  --ed-accent-soft: #e3f0ed;
  --ed-warn: #9a4f0c;
  --ed-warn-soft: #fbf1e4;
  --ed-chart-bg: #ffffff;
  max-width: 980px;
}
.editorial-page h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 22ch; }
.editorial-page h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 40px; }
.editorial-page p, .editorial-page li { line-height: 1.7; max-width: 72ch; }
.editorial-page a { text-underline-offset: 3px; }
.editorial-page a:focus-visible { outline: 3px solid var(--ed-accent); outline-offset: 4px; }
.editorial-page .kicker { color: var(--ed-accent); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.editorial-page .lede { font-size: 1.15rem; color: var(--ed-muted); }
.editorial-page .byline { color: var(--ed-muted); font-size: .92rem; }
.editorial-page .big-number { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.editorial-page .big-number div { flex: 1 1 180px; border: 1px solid var(--ed-line); border-radius: 12px; padding: 16px 18px; background: var(--ed-panel); }
.editorial-page .big-number strong { display: block; font-size: 2.2rem; line-height: 1.1; color: var(--ed-accent); }
.editorial-page .big-number span { color: var(--ed-muted); font-size: .95rem; }
.editorial-page .table-wrap { overflow-x: auto; border: 1px solid var(--ed-line); border-radius: 12px; margin: 16px 0; }
.editorial-page table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.editorial-page th, .editorial-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ed-line); vertical-align: top; }
.editorial-page th { background: var(--ed-panel); font-size: .85rem; }
.editorial-page tr:last-child td { border-bottom: 0; }
.editorial-page code { font-size: .95em; white-space: nowrap; }
.editorial-page .callout { padding: 16px 20px; border-left: 4px solid var(--ed-warn); background: var(--ed-warn-soft); border-radius: 0 10px 10px 0; margin: 20px 0; }
.editorial-page .callout p { margin: 0; }
.editorial-page .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; padding: 20px; border-radius: 12px; background: var(--ed-accent-soft); border: 1px solid var(--ed-line); }
.editorial-page .cta p { margin: 0 0 4px; flex-basis: 100%; }
.editorial-page .cta a { display: inline-block; padding: 12px 16px; border-radius: 8px; font-weight: 700; background: var(--ed-accent); color: #ffffff; text-decoration: none; }
.editorial-page .cta a.secondary { background: transparent; color: var(--ed-accent); border: 1px solid var(--ed-accent); }
.editorial-page .post-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.editorial-page .post-list li { border: 1px solid var(--ed-line); border-radius: 12px; padding: 18px 20px; background: var(--ed-panel); max-width: none; }
.editorial-page .post-list h2 { margin: 4px 0 6px; font-size: 1.3rem; }
.editorial-page .post-list p { margin: 0; }
.editorial-page .diff del { background: #f8dcd6; color: #6e1e12; text-decoration: line-through; }
.editorial-page .diff ins { background: #d6efe3; color: #0f4a31; text-decoration: none; font-weight: 700; }

.chart { margin: 24px 0; padding: 16px; border: 1px solid var(--ed-line); border-radius: 12px; background: var(--ed-chart-bg); color: var(--ed-ink); }
.chart svg { display: block; width: 100%; height: auto; max-width: 460px; }
.chart figcaption { color: var(--ed-muted); font-size: .9rem; margin-top: 10px; line-height: 1.5; }
.chart .c-ink { fill: var(--ed-ink); }
.chart .c-muted { fill: var(--ed-muted); }
.chart .c-grid { stroke: var(--ed-line); }
.chart .c-bar { fill: var(--ed-accent); }
.chart .c-bar-alt { fill: var(--ed-warn); }
.chart .c-box { fill: var(--ed-panel); stroke: var(--ed-line); }
.chart .c-box-strong { fill: var(--ed-accent-soft); stroke: var(--ed-accent); }
.chart text { font-family: inherit; }

@media (prefers-color-scheme: dark) {
  .chart {
    --ed-ink: #e6efe9;
    --ed-muted: #a9b8b0;
    --ed-line: #3a4a42;
    --ed-panel: #1d2a24;
    --ed-accent: #5cc4b9;
    --ed-accent-soft: #173733;
    --ed-warn: #f0a35e;
    --ed-chart-bg: #121a16;
  }
}

@media (max-width: 640px) {
  .editorial-page .big-number strong { font-size: 1.8rem; }
  .editorial-page table { min-width: 0; font-size: .88rem; }
  .editorial-page th, .editorial-page td { padding: 8px; }
  .chart { padding: 10px; }
}
