:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --accent: #14b8a6;
  --border: #e2e8f0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; font-weight: 700; }
h1 { font-size: 48px; letter-spacing: -.035em; }
h2 { font-size: 28px; letter-spacing: -.02em; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: #1d4ed8; text-underline-offset: .18em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
svg { display: block; max-width: 100%; height: auto; }
figure { margin: 24px 0; }
figcaption { margin-top: 8px; font-size: 14px; }
code { font-size: 14px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.section, .prose > section { padding-block: 48px; border-bottom: 1px solid var(--border); }
.small, .badge, .breadcrumb, figcaption, caption { color: var(--muted); }
.small, .breadcrumb, caption { font-size: 14px; }
.kicker { color: #1d4ed8; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.actions, .status-strip, .site-nav, .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.skip-link { position: absolute; inset: 8px auto auto 8px; z-index: 2; }
.skip-link:not(:focus) { clip-path: inset(50%); }
.site-header, .site-footer { background: var(--card); }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 12px; }
.wordmark { display: inline-flex; gap: 8px; align-items: center; color: var(--text); font-size: 22px; font-weight: 700; text-decoration: none; }
.site-nav { gap: 4px 8px; }
.site-nav a { padding: 8px; border-radius: 12px; }
.site-nav a, .footer-nav a { color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current], .footer-nav a:hover { color: #1d4ed8; }
.site-nav a[aria-current] { background: #eaf1ff; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; padding-block: 32px; }
.footer-nav { justify-content: end; }
.article-head, .hero { padding-block: 48px 24px; }
.article-head p, .prose p, .faq p { max-width: 70ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.updated { margin-bottom: 16px; }
.status-strip, .related-grid { padding: 0; list-style: none; }
.status-strip { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.status-strip li + li { border-left: 1px solid var(--border); padding-left: 16px; }
.panel, .figure-panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.simulator { border-top: 4px solid var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.sim-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.sim-intro h2 { margin-bottom: 4px; font-size: 22px; }
.sim-grid, .decision-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.sim-controls { display: grid; align-content: start; gap: 12px; }
.sim-results, .table-wrap, .field { min-width: 0; }
.sim-results > .small { margin-top: 8px; }
.workload-note { margin: 0; }
.result-note { padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--bg); font-size: 14px; }
.badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
}
.badge-verified { color: #115e59; background: #ecfdf5; }
.badge-ablation { color: #1d4ed8; background: #eaf1ff; }
.badge-community { color: var(--text); }
.badge-pending { color: #854d0e; background: #fefce8; }

.spec-strip { border-block: 1px solid var(--border); background: var(--card); }
.spec-grid, .metric-grid, .related-grid, .card-grid, .fields { display: grid; gap: 12px; }
.spec-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 16px; }
.spec-grid > div { padding: 8px; }
.spec-grid > div + div { border-left: 1px solid var(--border); }
.spec-grid dt, .metric dt { color: var(--muted); font-size: 14px; }
.spec-grid dd, .metric dd { margin: 0; color: var(--text); font-size: 22px; font-weight: 700; }
.metric-grid, .card-grid, .related-grid, .fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { margin: 16px 0 0; }
.metric, .link-card { padding: 16px; }
.link-card a { font-weight: 700; }
.link-card p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; align-content: start; gap: 4px; font-size: 14px; font-weight: 600; }
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--muted);
  border-radius: 12px;
  color: var(--text);
  background: var(--card);
  font-size: 16px;
  font-weight: 400;
}
input[type="range"] { accent-color: var(--primary); padding: 0; }
input[type="checkbox"] { accent-color: var(--primary); margin: 0; flex: none; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
legend { padding-inline: 8px; font-weight: 600; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, .button[aria-pressed="true"] { background: #eaf1ff; }
.button-primary { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.button-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
table { width: 100%; min-width: 48ch; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; font-size: 14px; }
caption { padding: 8px 12px; text-align: left; background: var(--card); }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg); }
tbody tr:last-child > * { border-bottom: 0; }
.compact-table th, .compact-table td { padding: 8px; }
.compact-table td { white-space: nowrap; }
.prose .table-wrap, .prose .card-grid, .prose .decision-grid { margin-block: 16px; }
.prose h3 { margin-top: 16px; }
.prose ul { padding-left: 24px; }
.prose li + li { margin-top: 4px; }
.legal-prose { padding-bottom: 48px; }
.decision { border-left: 4px solid var(--accent); }
.pipeline { margin: 24px 0; border-left: 4px solid var(--primary); }
.pipeline-flow { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: stretch; gap: 8px; margin-top: 12px; }
.pipeline-step { display: grid; align-content: start; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.pipeline-loop { border-color: var(--accent); background: #ecfdf5; }
.pipeline-step span { font-size: 14px; }
.figure-panel svg { width: 100%; }
.tool-calc { display: grid; gap: 16px; }
.tool-calc .metric-grid { margin: 0; }
.tool-calc .small { margin: 0; }
.tool-calc .table-wrap + .table-wrap { margin-top: 8px; }
.tool-section { display: grid; gap: 12px; }
.tool-section h2 { margin: 0; font-size: 22px; }
.fit-label { display: inline-block; }
meter { width: 100%; height: 16px; accent-color: var(--accent); }
.faq details { padding: 12px 0; border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq details summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; }
.comment-list, .comment-form { margin-top: 16px; }
.comment-form { max-width: 70ch; display: grid; gap: 12px; }
.comment { margin-block: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.comment-replies { padding-left: 12px; }
.comment time { color: var(--muted); font-size: 14px; }
[data-gf-comments][data-gf-empty]::before { content: "No comments yet. Tested GLM-5.4 on coding, 3D shaders, or long-context prompts? Share your setup and token counts above."; color: var(--muted); font-size: 14px; }
[data-gf-c-owner], [data-gf-reply-cancel], [data-gf-reply-to]:empty { display: none; }
[data-gf-owner] > header [data-gf-c-owner], [data-gf-comment-form][data-gf-replying] [data-gf-reply-cancel] { display: inline-flex; }
[data-gf-c-text] { white-space: pre-wrap; }

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .header-inner { display: grid; }
  .site-nav a { padding: 4px 8px; }
  .status-strip { gap: 4px 8px; }
  .status-strip li + li { padding-left: 8px; }
  .footer-nav { justify-content: start; }
  .footer-inner, .sim-grid, .decision-grid, .fields.two, .fields.three,
  .spec-grid, .metric-grid, .related-grid, .card-grid, .pipeline-flow { grid-template-columns: minmax(0, 1fr); }
  .spec-grid > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .panel, .figure-panel { padding: 16px; }
  .table-wrap { overflow-x: auto; }
  .button:not(.skip-link) { width: 100%; }
  .check { width: 100%; }
}


.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.footer-brand { display: grid; align-content: start; gap: 12px; }
.footer-col { display: grid; align-content: start; gap: 12px; }
.footer-heading { font-size: 14px; font-weight: 700; color: var(--text); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-list a:hover { color: #1d4ed8; text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 16px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer-bottom-inner p { margin: 0; max-width: 70ch; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px 48px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 32px 24px; }
  .footer-bottom-inner { display: grid; gap: 8px; }
}


.data-figure { margin: 1.25rem 0; }
.data-figure img { display: block; width: 100%; height: auto; }
.data-figure figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; }


.home-answer { max-width: 70ch; font-size: 1.0625rem; }
.home-plan-result { padding: 0.875rem 1rem; margin-bottom: 0.875rem; background: #ecfdf5; }
.home-plan-result p { margin: 0.375rem 0 0; }
