:root {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-text-muted: #4b5563;
  --color-heading: #101828;
  --color-link-hover: #005a7c;
  --color-table-row-alt: #f3f4f6;
  --color-table-row-hover: rgba(4, 121, 168, 0.08);
  --gallery-accent: #0f766e;
  --gallery-accent-soft: rgb(15 118 110 / 14%);
  --gallery-line: rgb(145 157 177 / 26%);
  --gallery-panel: #f7f9fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}

main { margin: 42px auto; }

main > .llm-architecture-changelog__back {
  height: 2.4rem;
  margin-bottom: 1.25rem;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

h1 {
  margin: 0;
  color: var(--color-heading);
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: 0;
}

.table-wrap {
  margin-top: 1.45rem;
  overflow: auto;
  border: 1px solid var(--gallery-line);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgb(23 32 51 / 5%);
}

table {
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--gallery-panel);
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

th, td { border-bottom: 1px solid var(--gallery-line); }
tbody tr:nth-child(even) { background: var(--color-table-row-alt); }
tbody tr:hover { background: var(--color-table-row-hover); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.table-wrap a {
  color: var(--color-link-hover);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.table-wrap a:hover { text-decoration-thickness: 2px; }

.table-wrap a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.rank,
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pct-label,
.share-label {
  display: inline-block;
  color: var(--color-heading);
  font-weight: 720;
}

.bar {
  display: inline-block;
  height: 8px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gallery-accent) var(--bar-width), var(--gallery-accent-soft) var(--bar-width));
  vertical-align: 1px;
}

.caveat,
.note {
  max-width: 68rem;
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.caveat strong,
.note strong {
  color: var(--color-heading);
  font-weight: 700;
}

/* Active parameter ratio */
.active-parameter-ratio {
  width: fit-content;
  max-width: calc(100vw - 32px);
}

.active-parameter-ratio .table-wrap {
  width: fit-content;
  max-width: 100%;
}

.active-parameter-ratio table { width: auto; }

.active-parameter-ratio thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.active-parameter-ratio th,
.active-parameter-ratio td {
  padding: 0.62rem 0.68rem;
  vertical-align: middle;
  white-space: nowrap;
}

.active-parameter-ratio th:nth-child(8),
.active-parameter-ratio td:nth-child(8) { min-width: 0; }

.active-parameter-ratio tbody th {
  color: var(--color-heading);
  font-size: 0.92rem;
  font-weight: 720;
}

.rank {
  width: 56px;
  color: var(--color-text-muted);
}

.pct { min-width: 180px; }
.pct-label { min-width: 3.8rem; }
.pct-label.approx::before { content: "~"; }
.active-parameter-ratio .bar { width: 96px; }

.pct--mid {
  --gallery-accent: #0479a8;
  --gallery-accent-soft: rgb(4 121 168 / 14%);
}

.pct--high {
  --gallery-accent: #b45309;
  --gallery-accent-soft: rgb(180 83 9 / 16%);
}

.pct--very-high {
  --gallery-accent: #c5050c;
  --gallery-accent-soft: rgb(197 5 12 / 14%);
}

/* Attention mechanism distribution */
.attention-mechanism-distribution { width: min(1220px, calc(100vw - 32px)); }

.dek {
  max-width: 58rem;
  margin: 0.8rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.attention-mechanism-distribution table { width: 100%; }

.attention-mechanism-distribution th,
.attention-mechanism-distribution td {
  padding: 0.72rem 0.78rem;
  vertical-align: top;
}

.mechanism-name,
.mechanism-description { display: block; }

.mechanism-name {
  color: var(--color-heading);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.25;
}

.mechanism-description {
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.attention-mechanism-distribution .numeric { white-space: nowrap; }

.count {
  color: var(--color-heading);
  font-weight: 720;
}

.share { min-width: 170px; }
.share-label { min-width: 3.4rem; }
.attention-mechanism-distribution .bar { width: 90px; }
.models { max-width: 42rem; }

.model-chip {
  display: inline-flex;
  margin: 0 0.28rem 0.34rem 0;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--gallery-line);
  border-radius: 7px;
  background: white;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
}

@media (max-width: 720px) {
  main { margin: 28px auto; }
  .active-parameter-ratio { width: min(100vw - 20px, 1180px); }
  .attention-mechanism-distribution { width: min(100vw - 20px, 1220px); }
  .attention-mechanism-distribution table { min-width: 900px; }
}
