:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #65707a;
  --line: #d8dde3;
  --paper: #ffffff;
  --wash: #f5f7f9;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --ok: #146c43;
  --bad: #a52828;
  --warn: #8a5a00;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}
a { color: var(--accent); }
.hero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 28px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 700;
}
h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}
.lede {
  max-width: 860px;
  margin: 18px 0 0;
  font-size: 18px;
  color: #3f4852;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.stat {
  border: 1px solid var(--line);
  background: #fbfcfd;
  padding: 10px 12px;
  min-width: 150px;
}
.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.stress-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.stress-samples a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 64px;
}
.content-page {
  width: min(1040px, calc(100% - 32px));
  margin: 28px auto 64px;
}
.content-page section {
  margin-top: 28px;
}
.content-page h2 {
  margin: 0 0 10px;
  font-size: 26px;
}
.content-page p {
  max-width: 820px;
}
.usage-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
.usage-table th,
.usage-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.usage-table th {
  background: #fbfcfd;
  font-size: 13px;
}
.usage-table td:first-child {
  white-space: nowrap;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.report-card,
.report-table {
  background: #fff;
  border: 1px solid var(--line);
}
.report-card {
  padding: 16px;
  border-radius: 8px;
}
.report-card h3 {
  margin: 0;
  font-size: 15px;
}
.report-number {
  margin: 10px 0 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 750;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
}
.report-table th,
.report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.report-table th {
  background: #fbfcfd;
  font-size: 13px;
}
.report-table tr:last-child td {
  border-bottom: 0;
}
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.media-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.media-gallery a {
  display: grid;
  place-items: center;
  height: 140px;
  background: #f7f9fb;
}
.media-gallery img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.media-gallery figcaption {
  display: grid;
  gap: 2px;
  padding: 9px 10px 10px;
  font-size: 12px;
  color: var(--muted);
}
.media-gallery figcaption strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.compact-table td:first-child {
  white-space: nowrap;
}
.report-page code,
.content-page code,
.usage-table code {
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #eef1f5;
  padding: 1px 4px;
}
.format-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.format-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.format-section {
  margin-top: 28px;
}
.format-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}
.format-heading h2 {
  margin: 0;
  font-size: 28px;
}
.format-heading span {
  color: var(--muted);
}
.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
  align-items: stretch;
}
.original,
.converted {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.panel-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}
.meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.original-body {
  padding: 14px;
}
.source-preview {
  margin: 0;
  max-height: 390px;
  overflow: auto;
  padding: 12px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 6px;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.download-only {
  border: 1px dashed var(--line);
  padding: 18px;
  background: #fbfcfd;
}
.converted-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.conversion-pane {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #fff;
}
.conversion-pane:last-child {
  border-right: 0;
}
.pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 43px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.pane-title {
  font-weight: 700;
  font-size: 13px;
}
.pane-status {
  font-size: 12px;
}
.view-source {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  margin-left: auto;
}
.status-ok { color: var(--ok); }
.status-fail { color: var(--bad); }
.status-warn { color: var(--warn); }
.render-frame {
  width: 100%;
  height: 520px;
  border: 0;
  background: #fff;
  display: block;
}
.error-box,
.source-box {
  margin: 0;
  height: 520px;
  overflow: auto;
  padding: 14px;
  background: #111827;
  color: #f8fafc;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.source-box {
  display: none;
}
.source-mode .render-frame,
.source-mode .error-box {
  display: none;
}
.source-mode .source-box {
  display: block;
}
.note {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 860px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .conversion-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .conversion-pane:last-child {
    border-bottom: 0;
  }
  h1 {
    font-size: 38px;
  }
  .view-source {
    margin-left: 0;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-table {
    display: block;
    overflow-x: auto;
  }
}