/* Model pages (/mcp/models/<slug>/ and the hub /mcp/models/) on top of use-cases.css and
   mcp-page.css, and the models section of /mcp/ on top of mcp-catalog.css.
   Written by scripts/render_models.py. */

/* ---------- one model page ---------- */
.mm-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 26px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.mm-hero .pitch-connect { margin-bottom: 0; }
.mm-inputs th { width: 30%; }
.mm-inputs td { font-size: 12px; }
.mm-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.mm-in .tag { letter-spacing: .06em; }
.mm-in span:not(.tag) { color: var(--muted); overflow-wrap: anywhere; }
.mm-in code { font: 11.5px/1.6 var(--mono); color: var(--purple); overflow-wrap: anywhere; }
.mm-rates { margin-top: 4px; }
.mm-rates th, .mm-rates td { padding: 10px 14px; font-weight: 400; text-align: left; }
.mm-code h3 { margin: 26px 0 0; font-size: 15px; }
.mm-code h3:first-child { margin-top: 0; }
.mm-code p { margin: 8px 0 0; font-size: 13px; color: var(--muted); max-width: 860px; }
.mm-code p code { font: 12px/1.6 var(--mono); color: var(--purple); overflow-wrap: anywhere; }
.mm-code pre.prompt { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--purple); overflow-x: auto; }
.mm-code pre.prompt code { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.mm-faq { border: 1px solid var(--line); background: var(--paper); padding: 0 18px; margin: 0 0 10px; }
.mm-faq summary { cursor: pointer; padding: 15px 0; font-size: 14px; font-weight: 500; list-style-position: inside; }
.mm-faq summary:hover { color: var(--purple); }
.mm-faq p { margin: 0 0 16px; font-size: 13px; line-height: 1.75; color: var(--muted); max-width: 900px; }
#about .uc-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
#about .uc-head p { max-width: 900px; font-size: 14px; line-height: 1.8; }

/* ---------- model cards (related models, the hub) ---------- */
.mm-card { overflow: hidden; }
.mm-thumb { display: block; width: calc(100% + 36px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: -18px -18px 10px; border-bottom: 1px solid var(--line); background: #ece9f6; }
.mm-thumb-empty { background: linear-gradient(140deg, #f1edfc, #fafaf8); }
.mm-count { font-size: .55em; color: var(--purple); vertical-align: middle; margin-left: 6px; }
.mm-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.mm-cats a { padding: 7px 12px; border: 1px solid var(--line); background: var(--paper); font-size: 12px; text-decoration: none; }
.mm-cats a:hover { border-color: var(--purple); color: var(--purple); }
.mm-cats b { color: var(--purple); font-weight: 600; margin-left: 4px; }

/* ---------- the models section of /mcp/ ---------- */
.mm-section h2 > span { color: var(--acc); }
.mm-section .mc-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 8px; }
.mm-section .mc-cats a { padding: 8px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg2); font-size: 12px; color: var(--fg2); text-decoration: none; }
.mm-section .mc-cats a:hover { border-color: var(--acc); color: var(--acc); }
.mm-section .mc-cats b { color: var(--acc); font-weight: 600; margin-left: 4px; }
.mm-group { margin-top: 38px; }
.mm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 16px; }
.mm-head h3 { margin: 0; font-size: 18px; }
.mm-head p { margin: 0; font-size: 12px; color: var(--fg3); max-width: 560px; }
.mm-section .mc-count { font-size: 11px; color: var(--acc); margin-left: 6px; }
.mm-tile { min-height: 0; }
.mm-section .mc-more { margin-top: 14px; }
.mm-section .mc-more summary { cursor: pointer; font-size: 12px; color: var(--acc); }
.mm-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; font-size: 13px; }
.mm-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 7px 0; min-width: 0; }
.mm-list a { color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.mm-list a:hover { color: var(--acc); }
.mm-list span { color: var(--fg3); font-size: 11px; white-space: nowrap; }
.mm-section > .fine { margin-top: 30px; }

@media (max-width: 900px) {
  .mm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mm-grid { grid-template-columns: minmax(0, 1fr); }
  .mm-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .mm-inputs th { width: auto; }
}
