/* /whats-new.html and /licenses.html only. Shared tokens and components come from /style.css. */

.page { max-width: 62rem; padding-top: clamp(1rem, 3vw, 2.5rem); }
.page .tool-head { grid-template-columns: 1fr; grid-template-areas: "crumbs" "title" "lede"; }
.page h1 { grid-area: title; margin: 0; font-size: var(--text-h2); letter-spacing: -0.03em; line-height: 1.05; }

/* Releases */
.releases { display: grid; gap: 1.25rem; }
.release {
  padding: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  box-shadow: var(--shadow);
}
.release.is-latest { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
.release-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.release-version { padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 0.75rem var(--font-mono); }
.release.is-latest .release-version { background: var(--brand); color: var(--on-accent); }
.release-head time { color: var(--ink-2); font: 0.8rem var(--font-mono); }
.release-summary { margin: 0.6rem 0 1rem; color: var(--ink-2); }
.release-items { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.release-items li { padding-left: 1rem; border-left: 2px solid var(--line); color: var(--ink-2); }
.release-items a { color: var(--ink); font-weight: 650; }
.release-items a:hover { color: var(--brand); }

/* Licenses */
.table-wrap { overflow-x: auto; padding: 0; }
.license-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.license-table th, .license-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.license-table thead th { color: var(--ink-2); font: 600 0.7rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.license-table tbody tr:last-child > * { border-bottom: 0; }
.license-table a { color: var(--ink); font-weight: 600; }
.license-tag { display: inline-block; padding: 0.15rem 0.45rem; border: 1px solid var(--line); border-radius: 6px; font: 500 0.72rem/1.4 var(--font-mono); }
.licenses { display: grid; gap: 1rem; margin-top: 2rem; }
.license { scroll-margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.license:target { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.license h2 { margin: 0; font-size: 1.2rem; }
.license-meta { margin: 0.4rem 0 0.75rem; color: var(--ink-2); font-size: 0.85rem; }
.license-meta a { color: var(--ink); }
.license-note { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.license details { margin-top: 0.5rem; }
.license summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.license pre {
  max-height: 22rem;
  margin: 0.6rem 0 0;
  padding: 0.9rem;
  overflow: auto;
  border-radius: 10px;
  background: var(--field);
  font: 0.72rem/1.5 var(--font-mono);
  white-space: pre-wrap;
}
