/* Insurer Scorecard, blog pages.
   Design tokens are locked by briefs/FRONTEND.md and shared with the main
   scorecard: IBM Plex Sans/Mono, one accent (#E4572E), hairline dividers,
   8pt spacing scale, max content width 1080px, dark mode via
   prefers-color-scheme. No shadows, no gradients, no border-box card soup. */

:root {
  --bg: #FAFAF7;
  --ink: #15171C;
  --muted: #6B7280;
  --hairline: #E5E5E0;
  --accent: #E4572E; /* signal orange; on the blog used only for the Key numbers marker and focus rings */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1080px;
  --measure: 44rem; /* article text column inside the 1080px grid */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --ink: #EDEEF0;
    --muted: #9CA3AF; /* dark-mode counterpart of #6B7280 (FRONTEND.md does not specify one) */
    --hairline: #23262C;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg); border: 1px solid var(--hairline);
  padding: 8px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--hairline); }
.head-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-top: 20px; padding-bottom: 20px;
}
.wordmark {
  font-family: var(--mono); font-weight: 500; font-size: 15px;
  letter-spacing: 0.04em; text-decoration: none;
}
.site-nav { display: flex; gap: 24px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* Breadcrumbs */
.crumbs {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  padding-top: 24px; padding-bottom: 24px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* Eyebrow */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--muted);
}

/* Article */
.article { max-width: var(--measure); margin: 0 auto; }
.article-head { padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15;
  font-weight: 600; letter-spacing: -0.01em; margin-top: 16px;
}
.byline {
  font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 16px;
}
.prose { padding-top: 32px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-top: 48px; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 600; }

/* Tables: hairline rows. Numeric columns are right-aligned in the markdown
   separator row (|---:|) and get mono tabular numerals; authoring convention
   for this blog is "numeric column = right-aligned column". */
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
.prose th {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-align: left;
  padding: 8px 12px; border-bottom: 1px solid var(--hairline);
}
.prose td { padding: 8px 12px; border-top: 1px solid var(--hairline); vertical-align: top; }
th.ta-l, td.ta-l { text-align: left; }
th.ta-c, td.ta-c { text-align: center; }
th.ta-r, td.ta-r { text-align: right; }
td.ta-r { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Key numbers callout: the blog's one accent moment */
.key-numbers {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  padding: 24px; margin-top: 32px;
}
.key-numbers::before {
  content: "Key numbers";
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.key-numbers ul { list-style: none; padding: 0; }
.key-numbers li {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 15px; line-height: 1.6; padding: 8px 0;
}
.key-numbers li + li { border-top: 1px solid var(--hairline); }

/* Mandatory end block: sources + disclosures */
.article-end { margin-top: 64px; border-top: 1px solid var(--hairline); padding-top: 8px; }
.end-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-top: 24px; margin-bottom: 8px;
}
.sources { list-style: none; }
.sources li {
  font-family: var(--mono); font-size: 13px; padding: 8px 0;
  overflow-wrap: break-word; word-break: break-all;
}
.sources li + li { border-top: 1px solid var(--hairline); }
.disclosure { font-size: 14px; color: var(--muted); max-width: 60ch; }

/* Blog index */
.list-head { max-width: var(--measure); margin: 0 auto; padding-top: 32px; padding-bottom: 24px; }
.list-head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; margin-top: 16px; }
.list-sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.post-list { list-style: none; max-width: var(--measure); margin: 0 auto; padding-bottom: 64px; }
.post-list li {
  display: grid; grid-template-columns: 140px 1fr; gap: 8px 24px;
  padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--hairline);
}
.post-date {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.post-list h2 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.post-desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.empty { max-width: var(--measure); margin: 0 auto; padding: 32px 0 64px; border-top: 1px solid var(--hairline); color: var(--muted); }
@media (max-width: 640px) {
  .post-list li { grid-template-columns: 1fr; gap: 4px; }
  .site-nav { gap: 16px; }
}

/* Footer */
.site-foot { border-top: 1px solid var(--hairline); margin-top: 64px; }
.foot-body { padding-top: 32px; padding-bottom: 48px; font-size: 13px; color: var(--muted); }
.foot-body p + p { margin-top: 8px; }
.foot-body a { color: var(--muted); }
.framing { max-width: 60ch; }
