/* Styles local to the homepage image samples. */
#image {
  --line: #dbe1e8;
  --muted: #556377;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #172239;
}
#image [hidden] { display: none !important; }
#image :is(figure, h2, h3, p, pre) { margin: 0; }
#image :is(button, summary) { font: inherit; color: inherit; cursor: pointer; }
#image .sample-heading h2 { font-size:clamp(30px,3.5vw,46px);font-weight:650;line-height:1.22;letter-spacing:-.025em }
#image .sample-heading p { margin:14px 0 28px;color:var(--muted);font-size:16px;line-height:1.7 }
#image .showcase { display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,31%);border:1px solid var(--line);background:white }
#image .stage, #image aside { min-width:0 }
#image .art { display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#eff1f3 }
#image .sample-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "model cost" "params note";
  align-items: baseline;
  gap: 4px 20px;
  padding: 16px 22px;
}
#image .sample-caption strong, #image .choices strong { display:block;font:500 14px/1.45 var(--mono);overflow-wrap:anywhere }
#image .sample-caption strong { grid-area: model; font-weight: 600; }
#image .sample-caption .cost { grid-area: cost; justify-self: end; white-space: nowrap; font-size: 13px; color: var(--muted); }
#image .sample-caption .cost b { margin-inline-start: 4px; font-size: 21px; line-height: 1.2; font-weight: 650; color: #18263b; font-variant-numeric: tabular-nums; }
#image .sample-caption .params { grid-area: params; font-size: 13px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
#image .sample-caption .price-note { grid-area: note; text-align: end; color: var(--muted); font-size: 12px; line-height: 1.5; }
#image aside { display:flex;flex-direction:column;border-left:1px solid var(--line) }
#image aside h3 { font-size:14px;padding:14px 16px;border-bottom:1px solid var(--line);font-weight:600 }
#image .choices { display:grid;grid-template-rows:none;grid-auto-rows:1fr;flex:1;min-width:0 }
#image .choices button { display:flex;align-items:center;gap:13px;background:#fff;width:100%;border:0;text-align:left;padding:12px 16px;min-width:0 }
#image .choices button+button { border-top:1px solid var(--line) }
#image .choices button:hover { background:#f8f9fa }
#image .choices button[aria-selected=true] { background:#f1f4f6;box-shadow:inset 3px 0 #273747 }
#image .choices img { width:64px;aspect-ratio:3/2;object-fit:cover }
#image .choices small { display:flex;gap:10px;flex-wrap:wrap;margin-top:5px;font-size:12px;color:var(--muted) }
#image .choices small b { color:#25374c;font-weight:600 }
#image :focus-visible { outline:2px solid #365fc1;outline-offset:-2px }
#image details { margin-top:14px;border:1px solid var(--line);background:#fff }
#image summary { list-style:none;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font-size:14px;font-weight:600 }
#image summary::-webkit-details-marker { display:none }
#image summary::after { content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-right:4px }
#image details[open] summary::after { transform:rotate(225deg) }
#image .codebar, #image pre { background:#222c37;color:#e5eaf0 }
#image .codebar { padding:10px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #495564;font-size:12px }
#image .codebar button { background:transparent;border:1px solid #738090;border-radius:4px;padding:4px 12px }
#image pre { padding:16px 18px;font:13px/1.8 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere }
#image .img-cta, #image .img-cta-links, #image .img-cta a { display:flex;align-items:center;gap:8px }
#image .img-cta { gap:14px;flex-wrap:wrap;margin-top:20px;font-size:14px }
#image .img-cta a { color:#28384a;text-decoration:none }
#image .img-cta a:hover { text-decoration:underline }
#image .img-cta .img-cta-primary { background:#20262e;color:white;padding:12px 18px;border-radius:8px;font-weight:600 }
#image .img-cta-note { color:var(--muted);font-size:13px }
#image .img-cta-links { margin-left:auto;gap:18px }
@media(max-width:799px) {
#image .showcase { display:block }
#image aside { border-left:0;border-top:1px solid var(--line) }
#image aside h3 { padding:10px 14px }
#image .choices { display:flex;overflow-x:auto;scroll-snap-type:x proximity }
#image .choices button { width:auto;flex:0 0 auto;scroll-snap-align:start;gap:9px;padding:10px 12px }
#image .choices button+button { border-top:0;border-left:1px solid var(--line) }
#image .choices button[aria-selected=true] { box-shadow:inset 0 -3px #273747 }
#image .choices img { width:49px }
#image .choices strong { font-size:12px }
#image .choices small { font-size:11px }
#image .img-cta-links { margin-left:0 }
#image .sample-caption { padding: 14px 16px; }
#image .sample-heading p { font-size:15px;margin-bottom:20px }
 }


#image .choices img { height: auto; flex-shrink: 0; }
#image .choices button { border-radius: 0; box-shadow: none; color: #172239; }
#image .img-cta-primary { box-shadow: none; min-height: 44px; }
#image .codebar .copy-button { display: inline-flex; align-items: center; gap: 6px; color: #e5eaf0; }
#image [data-image-code] pre.code { margin: 0; padding: 16px 18px; background: #222c37; color: #e5eaf0; max-height: none; }
#image [data-image-code] .code-row { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
#image [data-image-code] .line-no { display: none; }
#image [data-image-code] code { color: inherit; background: transparent; font: inherit; }

@media (max-width: 540px) {
  #image .sample-caption {
    grid-template-areas: "model cost" "params cost" "note note";
    gap: 4px 12px;
  }
  #image .sample-caption .cost { align-self: center; text-align: end; font-size: 12px; }
  #image .sample-caption .cost b { display: block; margin: 2px 0 0; }
  #image .sample-caption .price-note { text-align: start; margin-block-start: 2px; }
}
