/* A-layout: the light editorial model cards stay within the mainline palette. */
.models .model-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 1.8vw, 28px);
  background: #fff;
  color: #171716;
  border: 1px solid #cbc9c1;
  border-radius: var(--media-radius);
  box-shadow: none;
  transform: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.models .model-card .model-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.models .model-top h3 { grid-column: 1; grid-row: 1; }
.models .model-card [data-model-option] { grid-column: 2; grid-row: 1; position: static; transform: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.models .model-purpose { margin-top: 12px; color: var(--light-muted); font-size: var(--type-body); line-height: 1.4; text-align: start; }
.models .model-memory { display: flex; align-items: center; gap: 10px 14px; flex-wrap: nowrap; margin-top: 14px; padding: 10px 0 12px; border-block: 1px solid #d7d5ce; line-height: 1.25; }
.models .model-memory-value { flex: 0 0 auto; color: #171716; font-family: var(--font-display); font-size: clamp(2.5rem, 3.5vw, 3.75rem); line-height: .9; letter-spacing: .01em; white-space: nowrap; }
.models .model-memory-value small { display: inline; font-family: var(--font-body); font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.models .model-memory p:last-child { margin: 0 0 2px; }
.models .model-memory b, .models .model-memory span { display: block; font-size: clamp(.75rem, .7rem + .1vw, .875rem); }
.models .model-memory span { margin-top: 3px; color: #666660; }
.models .model-specs { display: grid; grid-template-rows: none; grid-row: auto; gap: 0; list-style: none; padding: 0; margin: 0; flex: 1; line-height: 1.25; }
.models .model-specs li { display: grid; grid-template-columns: minmax(88px, .8fr) minmax(0, 1.2fr); grid-template-rows: auto auto; gap: 1px 10px; padding: 5px 0; border-top: 0; border-bottom: 1px solid #d7d5ce; }
.models .model-specs li:first-child { padding-top: 9px; }
.models .model-specs b { grid-column: 2; grid-row: 1; font-size: clamp(.75rem, .7rem + .1vw, .875rem); font-weight: 600; }
.models .model-specs span { grid-column: 2; margin-top: 0; font-size: clamp(.75rem, .7rem + .1vw, .875rem); color: #666660; }
.models .model-specs .model-spec-label { grid-column: 1; grid-row: 1 / span 2; color: #666660; font-size: clamp(.75rem, .7rem + .1vw, .875rem); }
.models .model-card .button { width: 100%; margin-top: 14px; padding: 10px 12px; min-height: 44px; font-size: clamp(.8125rem, .76rem + .1vw, .9375rem); }
.models .model-card:has([data-model-option]:checked) { background: #fff; color: #171716; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.models .model-card:has([data-model-option]:checked) .model-memory { border-color: #c8c6bf; }
.models .model-card:has([data-model-option]:checked) .model-memory-value { color: var(--red); }
.models .model-card:has([data-model-option]:checked) .model-purpose, .models .model-card:has([data-model-option]:checked) .model-specs span { color: #666660; }
.models .model-card:has([data-model-option]:focus-visible) { outline: 2px solid var(--red); outline-offset: 5px; }
.models .model-card .button-ink { background: var(--red); border-color: var(--red); color: #fff; }
.models .model-card .button-ink:hover { background: #080808; border-color: currentColor; }
.models-dimensions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 20px; color: #666660; font-size: var(--type-detail); }
.models-dimensions strong { color: #171716; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .models .model-card { cursor: pointer; }
  .models .model-card:not(:has([data-model-option]:checked)):hover, .models .model-card:has(.button:focus-visible) { border-color: #6b6962; transform: translateY(-2px); box-shadow: 0 5px 14px rgb(23 23 22 / .06); }
}
@media (min-width: 801px) {
  .models .model-grid { align-items: stretch; }
  .models .model-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    align-self: stretch;
    height: 100%;
    align-content: stretch;
  }
  .models .model-memory { min-height: 74px; }
  .models .model-specs { grid-row: auto; }
}
@media (max-width: 800px) {
  .models .model-card { padding: 20px; }
  .models .model-specs li {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    padding: 10px 0;
  }
  .models .model-specs .model-spec-label { grid-column: 1; grid-row: 1; }
  .models .model-specs b { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .models .model-specs span { grid-column: 1; grid-row: 3; }
}
@media (max-width: 600px) {
  .models .model-specs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .models .model-card { transition: none; } }
/* Centered configuration composition: quiet paper, precise rules, one red action. */
.models .model-heading { max-width: min(760px, 100%); margin: 0 auto clamp(28px, 4vw, 52px); text-align: center; }
.models .model-heading h2 { max-width: none; line-height: .96; }
.models .model-heading p { max-width: none; margin: var(--copy-gap) auto 0; color: var(--muted); font-size: var(--type-lead); line-height: 1.55; }
.models .model-card { background: #fff; }
.models .model-card:has([data-model-option]:checked) { background: #fff; color: #171716; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.models-dimensions { display: none; }
.models .model-card:has([data-model-option]:checked) { border-color: #171716; box-shadow: 0 0 0 1px #171716; }
.models .model-card:has([data-model-option]:checked) .model-memory-value { color: #171716; }
.models .model-card:has([data-model-option]:checked) .model-top h3::after { content: "Selected"; display: inline-block; margin-left: 10px; padding: 3px 7px; border: 1px solid #bdbbb3; border-radius: 999px; color: #666660; font: 600 .625rem/1 var(--font-body); letter-spacing: .04em; vertical-align: middle; }
.models .model-card:has([data-model-option]:checked) [data-model-option] { accent-color: #171716; }
.models .model-card:has([data-model-option]:checked) .button-ink { background: #171716; border-color: #171716; }
.models .model-card:has([data-model-option]:checked) .button-ink:hover { background: var(--red); border-color: var(--red); }
.models .model-card:not(:has([data-model-option]:checked)) .button-ink { background: transparent; border-color: #bdbbb3; color: #171716; }
.models .model-card:not(:has([data-model-option]:checked)) .button-ink:hover { background: #171716; border-color: #171716; color: #fff; }
/* Mainline red is the only accent; use it as a small signal, not a surface. */
.models .model-card { border-top: 3px solid var(--red); }
.models .model-card:has([data-model-option]:checked) { border-color: #171716; border-top-color: var(--red); box-shadow: 0 0 0 1px #171716; }
.models .model-card:not(:has([data-model-option]:checked)) [data-model-option] { accent-color: #9ca09e; }
.models .model-card:has([data-model-option]:checked) .model-memory-value { color: var(--red); }
.models .model-card:has([data-model-option]:checked) [data-model-option] { accent-color: var(--red); }
.models .model-card:has([data-model-option]:checked) .model-top h3::after { border-color: color-mix(in srgb, var(--red) 45%, #fff); color: var(--red); }
.models .model-card:has([data-model-option]:checked) .button-ink { background: #171716; border-color: #171716; }
.models .model-card:not(:has([data-model-option]:checked)) .button-ink { background: transparent; border-color: #d4d3cc; color: #171716; }
.models .model-card:not(:has([data-model-option]:checked)) .button-ink:hover { border-color: var(--red); color: #c02924; background: color-mix(in srgb, var(--red) 8%, #fff); }
.models .model-card:has([data-model-option]:checked) { border-color: var(--red); border-top-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.models .model-card .button-ink { background: var(--red); border-color: var(--red); color: #fff; }
.models .model-card .button-ink:hover { background: #171716; border-color: #171716; color: #fff; }
.models .model-card:has([data-model-option]:checked) .button-ink { background: var(--red); border-color: var(--red); color: #fff; }
.models .model-card:not(:has([data-model-option]:checked)) .button-ink { background: var(--red); border-color: var(--red); color: #fff; }
.models .model-card .button-ink:hover { background: #171716; border-color: #171716; color: #fff; }
.models .model-card:not(:has([data-model-option]:checked)) .button-ink { background: color-mix(in srgb, var(--red) 12%, #fff); border-color: color-mix(in srgb, var(--red) 42%, #fff); color: #c02924; }
.models .model-card:not(:has([data-model-option]:checked)) .button-ink:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Simplified spec composition: the memory figure stands alone as the hero,
   and every specification reads as a single line. */
.models .model-card .model-memory {
  display: block;
  min-height: 0;
  margin-top: clamp(16px, 1.4vw, 22px);
  padding: 0 0 clamp(14px, 1.1vw, 18px);
  border-top: 0;
  border-bottom: 1px solid #d7d5ce;
}
.models .model-memory-label {
  display: block;
  color: #6b6962;
  font-family: var(--font-body);
  font-size: clamp(.6875rem, .65rem + .06vw, .75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.models .model-card .model-memory p.model-memory-value {
  margin: clamp(22px, 1.7vw, 30px) 0 0;
  font-size: clamp(2.75rem, 4vw, 4.75rem);
  line-height: .84;
}
.models .card .model-memory-value small,
.models .model-memory-value small {
  margin-left: 6px;
  font-size: .3em;
  letter-spacing: .02em;
  vertical-align: baseline;
}
.models .model-card .model-specs {
  align-content: start;
  gap: 0;
  margin: 0;
}
.models .model-card .model-specs li {
  grid-template-columns: clamp(104px, 40%, 118px) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: baseline;
  gap: 0 18px;
  padding: clamp(9px, .85vw, 13px) 0;
  border-bottom: 1px solid #e4e2db;
}
.models .model-card .model-specs li:first-child { padding-top: clamp(11px, 1vw, 15px); }
.models .model-card .model-specs li:last-child { border-bottom: 1px solid #d7d5ce; }
.models .model-card .model-specs .model-spec-label {
  grid-column: 1;
  grid-row: 1;
  color: #6b6962;
  font-size: clamp(.6875rem, .65rem + .06vw, .75rem);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.models .model-card .model-specs b {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(.8125rem, .76rem + .14vw, .9375rem);
  font-weight: 600;
  letter-spacing: -.005em;
}
.models .model-card .model-specs b small {
  margin-left: 7px;
  color: #6b6962;
  font-size: .8em;
  font-weight: 600;
  letter-spacing: .01em;
}
.models .model-card .button { margin-top: clamp(18px, 1.6vw, 24px); }
@media (max-width: 1000px) {
  .models .model-card .model-specs li {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px;
    padding-block: 10px;
  }
  .models .model-card .model-specs .model-spec-label { grid-column: 1; grid-row: 1; }
  .models .model-card .model-specs b { grid-column: 1; grid-row: 2; }
}
@media screen and (min-width: 2800px) and (min-height: 1400px) {
  .models .model-card .model-memory-value { font-size: 5.25rem; }
}
