/* Local Lift (/local-lift/, lib/render/main-site.js), on top of site.css and main.css. Its own file so the home
   page's first screen, which has a weight limit (tests/e2e/mobile.spec.js), never downloads it. */

/* The counter, last month's winner, and the application's choices and boxes. Each choice is a whole-row tap target. */
.lift-count { font-weight: 650; color: var(--accent-ink); margin: 0 0 1rem; }
.lift-winner-name { font-size: 1.3rem; margin-bottom: 0.25rem; }
/* Last month's winner, with their site on a laptop and a phone (the Worker sets each picture or removes it; a missing
   one leaves no empty frame). Each picture is a button that opens it big (lift.js). Phones show the phone picture only;
   from 640 px both, side by side at the same height; from 900 px they sit beside the text. */
.lift-winner-inner { display: grid; gap: 1.5rem; align-items: center; }
.lift-winner-shots { display: flex; align-items: flex-end; justify-content: center; gap: 1.5rem; }
.lift-shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.lift-shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.lift-shot:not(:has(img[src])), .lift-shot--laptop { display: none; }
/* The phone shot is a phone frame on white (npm run shots, 600 x 1220): clip it to the frame's own outline, so no
   white corners show. The frame starts 24 px in from each side and 12 px from the top and bottom, corners about 56 px. */
.lift-shot--phone img, .lift-zoom img[data-kind="phone"] { clip-path: inset(1% 4% round 9.3% / 4.6%); }
.lift-shot--phone img { display: block; width: 200px; height: auto; }
/* The laptop shot is a plain 1440 x 900 screenshot: a dark bezel around it and a base under it, drawn here. */
.lift-shot--laptop img { display: block; box-sizing: border-box; border: 8px solid #1d1d1f; border-radius: 10px 10px 0 0; background: #fff; }
.lift-shot--laptop::after { content: ""; display: block; height: 12px; margin: 0 -6%; border-radius: 0 0 10px 10px; background: linear-gradient(#d4d4d8, #9b9ba1); }
@media (min-width: 640px) {
  .lift-winner-shots { --shot-h: 280px; justify-content: flex-start; }
  .lift-shot--laptop:has(img[src]) { display: block; }
  .lift-shot--phone img { width: auto; height: var(--shot-h); }
  .lift-shot--laptop img { width: auto; height: calc(var(--shot-h) - 12px); } /* with its base, as tall as the phone */
}
@media (min-width: 900px) {
  .lift-winner-inner { grid-template-columns: minmax(0, 20rem) auto; justify-content: start; column-gap: 3rem; }
  .lift-winner-shots { --shot-h: 320px; }
}
/* The big view: a native dialog (Escape closes it, focus comes back to the picture), dark around it. */
.lift-zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lift-zoom::backdrop { background: rgb(0 0 0 / 0.8); }
.lift-zoom-inner { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.lift-zoom-close { background: #fff; }
.lift-zoom img { display: block; width: auto; height: auto; max-width: 94vw; max-height: calc(94vh - 4rem); border-radius: 8px; }
.form-choice { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.form-choice legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; color: var(--ink); }
.form-choice label, .form-agree label { display: flex; gap: 0.6rem; align-items: center; min-height: 44px; font-weight: 400; }
.form-agree label { align-items: flex-start; padding: 0.6rem 0; }
.form-agree input { margin-top: 0.2rem; }
.form-choice input, .form-agree input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.lift-form .form-hint { margin: 0.3rem 0 0; color: var(--muted); }
/* A refusal shown under its field ("Please leave out web addresses and emails."), in the form's error colour. */
.lift-form .form-field-note { margin: 0.35rem 0 0; color: var(--accent); font-weight: 600; }
/* The form shares the try form's width and its centred bot check. */
.lift-form .form-turnstile { display: flex; justify-content: center; justify-content: safe center; min-height: 65px; margin: 0.25rem 0 0.75rem; }
