.models-page { padding-top: 2rem; }
.models-page > section { margin-block: 2.5rem; }
.models-page .models-intro { margin-top: 0; max-width: 78ch; }
.models-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.models-jump { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-block: 1.5rem; }
.models-jump a { display: inline-flex; align-items: center; min-height: 44px; }
.models-note { padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.models-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: .75rem; }
.models-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .9rem; background: var(--panel); }
.models-table caption { padding: 1rem; text-align: left; color: var(--muted); }
.models-table :is(th, td) { padding: .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.models-table thead th { background: var(--raised); color: var(--cream); }
.models-table tbody th { width: 26%; font-weight: 650; }
.models-table tr:last-child :is(th, td) { border-bottom: 0; }
.models-table small { display: block; margin-top: .4rem; color: var(--muted); font-weight: 400; }
.models-table .model-purpose { color: var(--cream); font-size: .85rem; }
.models-table .models-memory { min-width: 8.25rem; }
.models-table .models-licence { min-width: 6.5rem; }
.models-table tbody th { min-width: 12.5rem; }
.models-table :is(th, td):nth-child(3) { min-width: 5.5rem; overflow-wrap: normal; }
.model-download { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .85rem; }
.model-download-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.model-download-meta { color: var(--cream); font-size: .82rem; font-weight: 500; }
.model-download-meta small { margin-top: .15rem; font-size: .75rem; }
.model-quantizer { flex-basis: 100%; color: var(--muted); font-size: .8rem; font-weight: 400; }
.models-table .model-gate { flex-basis: 100%; margin-top: 0; font-size: .8rem; }
.model-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .25rem; font-size: .85rem; font-weight: 400; }
.model-links a { display: inline-flex; align-items: center; min-height: 44px; }
.models-table :is(.model-download-button, .model-links a):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.models-tips { max-width: 80ch; padding-left: 1.25rem; }
.models-tips li + li { margin-top: .9rem; }
@media (max-width: 650px) {
  .models-page { padding-top: 1.25rem; }
  .models-page h2 { font-size: 1.5rem; }
  .models-page > section { margin-block: 2rem; }
  .models-table, .models-table caption, .models-table tbody { display: block; min-width: 0; width: 100%; }
  .models-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .models-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .models-table tbody :is(th, td) { min-width: 0; width: auto; border-bottom: 0; }
  .models-table tbody th { grid-column: 1 / -1; }
  .models-table td::before { content: attr(data-label); display: block; margin-bottom: .4rem; color: var(--muted); font-size: .8rem; font-weight: 650; }
  .model-download { flex-direction: column; align-items: flex-start; }
  .model-download :is(.model-quantizer, .model-gate) { flex-basis: auto; }
}
