/* The model page: the comps table is the page (V2 of Claude/mt-model-page-designs). It shares
   the top bar and the palette of the search page (search.css, profile.css) and owns everything
   under .modelp, so nothing here reaches the list or the lot window. */
.modelp .mwrap { width: min(1240px, calc(100% - 2rem)); margin: 1.2rem auto 4rem; }
.modelp .flash { margin: 0 0 1rem; padding: .5rem .7rem; background: var(--accent-bg); border: 2px solid #111; border-radius: 4px; font-weight: 600; }
.modelp .crumbs { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 600; margin-bottom: .5rem; }
.modelp .crumbs a { color: #111; text-decoration: none; } .modelp .crumbs i { font-style: normal; color: var(--muted); } .modelp .crumbs span { color: var(--muted); }
.modelp h1 { font-family: var(--hfont); font-weight: 400; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; margin: 0 0 .5rem; }
.modelp .mchips { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: .7rem; }
.modelp .mchips b { color: #111; font-family: var(--hfont); font-weight: 400; }
.modelp .ver { font-size: 11.5px; font-weight: 700; color: #111; background: #9be29e; border-radius: 2px; padding: 0 .4rem; line-height: 20px; }
.modelp .ver.cand { background: #ffd23f; }
.modelp .summary { font-size: 16px; line-height: 1.5; max-width: 980px; margin: 0 0 1rem; }

.modelp .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; color: #111; text-decoration: none; cursor: pointer; }
.modelp .btn.go { background: var(--accent); } .modelp .btn.big { padding: .8rem 1.2rem; font-size: 15px; } .modelp .btn.wide { width: 100%; }
.modelp .btn svg { width: 16px; height: 16px; flex: none; }
.modelp .btn.off { opacity: .55; cursor: not-allowed; box-shadow: none; background: #e8e5de; font-size: 12.5px; padding: .3rem .6rem; }

.modelp .offerbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; align-items: center; background: #111; color: #fff; border-radius: 4px; padding: .9rem 1rem; margin: .2rem 0 1.2rem; box-shadow: 4px 4px 0 var(--accent); }
.modelp .offerbar p { margin: 0; color: #e6e2d8; font-size: 14px; } .modelp .offerbar p b { color: #fff; }
.modelp .offerbar .exp { display: block; color: var(--accent); font-weight: 600; margin-top: .3rem; }
.modelp .offerbar form { margin: 0; }
.modelp .offerbar .right { display: flex; gap: .8rem; align-items: center; }
.modelp .offerbar .btn.go { box-shadow: 3px 3px 0 #fff; }
.modelp .offerbar .pr { font-family: var(--hfont); font-size: 22px; color: var(--accent); white-space: nowrap; }
.modelp .offerbar .pr small { display: block; font: 11.5px var(--font); color: #b9b4a8; }
.modelp .offerbar .subs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: 12px; color: #b9b4a8; }
.modelp .offerbar.thin { grid-template-columns: minmax(0, 1fr) auto; }

.modelp .two { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.4rem; align-items: start; }
.modelp .sec { margin: 0 0 1.6rem; }
.modelp .sec h2 { font-family: var(--hfont); font-weight: 400; font-size: 20px; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.modelp .sec h2 .n { font-family: var(--font); font-weight: 600; font-size: 12px; background: #111; color: #fff; border-radius: 2px; padding: 0 .4rem; line-height: 18px; }
.modelp .two > * { min-width: 0; }
.modelp .filters { display: flex; gap: .5rem 1rem; flex-wrap: wrap; align-items: center; font-size: 13px; margin-bottom: .6rem; }
.modelp .filters select { border: 2px solid #111; border-radius: 4px; background: #fff; padding: .2rem .4rem; }
.modelp .filters .cnt { margin-left: auto; font-weight: 600; }
.modelp .tablewrap { border: 2px solid #111; border-radius: 4px; background: #fff; overflow-x: auto; }
.modelp table.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.modelp table.ledger th { background: #111; color: #fff; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: .5rem .7rem; white-space: nowrap; }
.modelp table.ledger td { padding: .5rem .7rem; border-top: 1px solid #e8e5de; white-space: nowrap; }
.modelp table.ledger td a { color: #111; text-decoration: none; font-weight: 600; }
.modelp table.ledger th.n, .modelp table.ledger td.n { text-align: center; } .modelp table.ledger th.p, .modelp table.ledger td.p { text-align: right; font-weight: 700; }
.modelp table.ledger tbody tr { cursor: pointer; } .modelp table.ledger tbody tr:hover, .modelp table.ledger tbody tr:focus-visible { background: var(--accent-bg); outline: 0; }
.modelp table.ledger tr.free { background: #eaf6ea; }
.modelp .tag { background: #9be29e; color: #111; font-size: 10.5px; font-weight: 700; border-radius: 2px; padding: 0 .3rem; margin-left: .3rem; }
.modelp .tag.yours { background: #ffd23f; }
.modelp .lkc { display: inline-flex; align-items: center; gap: .3rem; background: #111; color: #fff; border-radius: 3px; padding: 0 .45rem 0 .35rem; font: 600 11.5px/20px var(--font); white-space: nowrap; }
.modelp .lkc .lockico { width: 11px; height: 11px; }
.modelp .hid { filter: blur(5px); user-select: none; pointer-events: none; font-weight: 600; }
.modelp .note { font-size: 12.5px; color: var(--muted); margin-top: .5rem; }

.modelp .strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.modelp .strip .tile { text-decoration: none; }
.modelp .strip .phw { aspect-ratio: 4 / 3; background: #e8e5de; border-bottom: 2px solid #111; }
.modelp .strip .phw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modelp .strip .price { font-weight: 700; } .modelp .strip .price small { font-weight: 400; color: var(--muted); } .modelp .strip .closes { font-size: 12px; color: var(--muted); }
.modelp .sibs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.modelp .sib { display: block; background: #fff; border: 2px solid #111; border-radius: 4px; padding: .5rem .7rem; color: #111; text-decoration: none; }
.modelp .sib:hover { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.modelp .sib b { display: block; } .modelp .sib span { font-size: 12.5px; color: var(--muted); }

.modelp .prail { display: grid; gap: .9rem; }
.modelp .model { border: 2px solid #111; border-radius: 4px; background: #fff; overflow: hidden; }
.modelp .model .mh { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; background: #111; color: #fff; }
.modelp .model .badge { width: 40px; height: 40px; border-radius: 4px; background: var(--accent); color: #111; display: grid; place-items: center; font-family: var(--hfont); font-size: 13px; flex: none; }
.modelp .model .nm { font-family: var(--hfont); font-weight: 400; font-size: 17px; line-height: 1.15; } .modelp .model .sub { color: #cfcac0; font-size: 12.5px; }
.modelp .model .mb { padding: .8rem .9rem; }
.modelp .model .specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; margin-top: .6rem; }
.modelp .model .specs .l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; } .modelp .model .specs .v { font-weight: 600; }
.modelp .stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid #111; border-radius: 4px; background: #fff; }
.modelp .stats > div { padding: .6rem .6rem; border-right: 2px solid #111; } .modelp .stats > div:last-child { border-right: 0; }
.modelp .stats b { display: block; font-family: var(--hfont); font-weight: 400; font-size: 20px; } .modelp .stats span { font-size: 11.5px; color: var(--muted); }
.modelp .offer.paid { background: #fff; border: 2px solid var(--ok); box-shadow: 5px 5px 0 var(--ok); border-radius: 4px; padding: 1rem; }
.modelp .offer.paid .oh { font-family: var(--hfont); font-size: 19px; line-height: 1.2; } .modelp .offer.paid p { color: var(--muted); margin: .4rem 0 .8rem; font-size: 13.5px; }
.modelp .offer.paid .row { margin-top: .8rem; }
.modelp .verdict { border: 2px solid #111; border-radius: 4px; background: #fff; padding: .8rem .9rem; }
.modelp .verdict .vl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.modelp .verdict .vv { font-family: var(--hfont); font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: .5rem; }
.modelp .verdict .vrow { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid #111; border-radius: 3px; margin-bottom: .5rem; }
.modelp .verdict .vrow > div { padding: .4rem .6rem; border-right: 2px solid #111; } .modelp .verdict .vrow > div:last-child { border-right: 0; }
.modelp .verdict .vrow span { display: block; font-size: 11.5px; color: var(--muted); } .modelp .verdict .vrow b { font-family: var(--hfont); font-weight: 400; font-size: 16px; }
.modelp .chart { border: 2px solid #111; border-radius: 4px; background: #fff; padding: .6rem; }
.modelp .chart .plot { position: relative; min-height: 120px; } .modelp .chart svg { width: 100%; height: auto; display: block; }
.modelp .chart text.axl { font-size: 10.5px; fill: var(--muted); }
.modelp .chart .lockover { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; grid-template-columns: auto auto; gap: 0 .6rem; align-items: center; background: #111; color: #fff; border: 2px solid #111; border-radius: 4px; padding: .5rem .8rem; text-align: left; white-space: nowrap; box-shadow: 3px 3px 0 var(--accent); font: inherit; }
.modelp .chart button.lockover { cursor: pointer; } .modelp .chart button.lockover:hover { border-color: var(--accent); }
.modelp .chart .lockover .lockico { grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--accent); }
.modelp .chart .lockover b { font-family: var(--hfont); font-weight: 400; font-size: 14px; } .modelp .chart .lockover span { font-size: 11.5px; color: #b9b4a8; }
.modelp .chart .chartkey { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: .3rem .2rem 0; }
.modelp .chart .chartkey i { display: inline-block; vertical-align: middle; margin-right: .3rem; }
.modelp .chart .chartkey .tick { width: 3px; height: 12px; background: #111; } .modelp .chart .chartkey .dot { width: 10px; height: 10px; border-radius: 50%; background: #111; } .modelp .chart .chartkey .dot.free { background: var(--ok); }
.modelp .chart a.lockover { text-decoration: none; cursor: pointer; } .modelp .chart a.lockover:hover { border-color: var(--accent); }
.modelp .ledger td a { color: #111; }
/* The pages above a model: the first page, a category, a make in a category. */
.modelp .hubgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .6rem; }
.modelp .hubgrid.small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.modelp .hub { display: block; border: 2px solid #111; border-radius: 4px; background: #fff; padding: .6rem .75rem; text-decoration: none; color: #111; }
.modelp .hub:hover { box-shadow: 3px 3px 0 #111; }
.modelp .hub b { display: block; font-size: 14.5px; } .modelp .hub span { font-size: 12.5px; color: var(--muted); }
.modelp .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.modelp .steps > div { border: 2px solid #111; border-radius: 4px; background: #fff; padding: .7rem .8rem; }
.modelp .steps b { font-family: var(--hfont); font-weight: 400; font-size: 22px; color: var(--accent); } .modelp .steps p { margin: .2rem 0 0; font-size: 14px; }
.modelp .prose { max-width: 820px; } .modelp .prose h2 { font-family: var(--hfont); font-weight: 400; font-size: 18px; margin: 1.4rem 0 .3rem; } .modelp .prose p { font-size: 15px; line-height: 1.55; margin: 0 0 .6rem; }
.modelp .method a { color: inherit; }
.modelp .method { font-size: 12.5px; color: var(--muted); max-width: 900px; margin-top: 1.5rem; }

@media (max-width: 900px) {
  .modelp .steps { grid-template-columns: 1fr; }
  .modelp .two { grid-template-columns: 1fr; }
  .modelp .offerbar, .modelp .offerbar.thin { grid-template-columns: 1fr; }
  .modelp .offerbar .right { flex-wrap: wrap; justify-content: space-between; }
  .modelp .filters .cnt { margin-left: 0; }
}
/* On paper: the table and the figures, without what is only there to be clicked. */
@media print {
  .modelp .topbar, .modelp .offerbar, .modelp .filters, .modelp .subs, .modelp [data-print], .modelp #live, .modelp .crumbs, .mttoast { display: none !important; }
  .modelp .two { grid-template-columns: 1fr; }
  .modelp .tablewrap { border: 1px solid #111; overflow: visible; }
  .modelp table.ledger td, .modelp table.ledger th { white-space: normal; }
  body.modelp { background: #fff; }
}
