/* Full-bleed hero: when the paper's art is already a painting, it fills the card edge to
   edge and the controls are fine print on a cream strip. The card opts in with .full-bleed. */
.standard1 .cover-card.full-bleed { padding: 0; background: #f7f2e6; }
.standard1 .cover-card.full-bleed::before { display: none; }
.standard1 .cover-card.full-bleed > * { max-width: none; }
.standard1 .cover-card.full-bleed .lens-art { margin: 0; border-radius: 0; }
.standard1 .cover-card.full-bleed .lens-controls { margin: 0; padding: 10px 18px; border-top: 1px solid rgba(60,48,20,.12); }

/* Hung hero: the interactive piece is a paper object hung on the calm side of the
   paper's painting. Loaded after standard1.css; the card opts in with .hung, names its
   painting in --card-image and its object's header in data-label on [data-lens]. */
.standard1 .cover-card.hung { display: flex; align-items: center; min-height: 600px; padding: 48px 0 48px 9%;
  background: #0b3a26 var(--card-image) center / cover no-repeat; }
.standard1 .cover-card.hung::before { display: none; }
.standard1 .cover-card.hung > [data-lens] { flex: none; max-width: 100%; margin: 0; }

/* Quiet surface: when a painting would compete with the object, the card is one calm
   green field with a faint fibre texture, and the object is centred on it. */
.standard1 .cover-card.hung.quiet { justify-content: center; min-height: 0; padding: 56px 16px;
  background: radial-gradient(ellipse at 30% 20%, #0f4a33, #0a3f2b 60%, #08382a); }
.standard1 .cover-card.hung.quiet::before { display: block; opacity: .09; }
.standard1 .cover-card.hung.quiet [data-lens] { --object-w: 420px; }
.standard1 .cover-card.hung.quiet .lens-art { aspect-ratio: 4 / 5; }

/* The object: warm paper, hairline edge, contact shadow, a mono header line. */
.standard1 .cover-card.hung [data-lens] { --object-w: 380px; width: var(--object-w); box-sizing: border-box; padding: 22px 20px 10px; background: #f7f2e6; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(60,48,20,.10), 0 2px 3px rgba(0,0,0,.18), 0 18px 40px -12px rgba(0,0,0,.45); }
.hung [data-lens]::before { content: attr(data-label); display: block; margin-bottom: 10px; text-align: center;
  font: 9px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #8a8576; }
.hung .lens-art { aspect-ratio: 3 / 4; min-height: 0; margin: 0; background: transparent; border: 0; --lens-min: 110px; }
/* Both layers take the object's shape, not the lens's default 2.2. */
.hung .lens-original, .hung .lens-reveal { aspect-ratio: auto; height: 100%; object-fit: cover; }

/* The controls are the object's fine print. */
.hung .lens-controls { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(60,48,20,.12); color: #8a8576; font: 9px/1.4 var(--font-mono); }
.standard1 .cover-card.full-bleed .lens-controls { color: #8a8576; font: 9px/1.4 var(--font-mono); }
.standard1 .cover-card:is(.hung, .full-bleed) .lens-controls [data-lens-hint] { padding: 0; background: none; color: #8a8576; }
.hung .lens-controls > * { white-space: nowrap; }
.standard1 :is(.hung, .full-bleed) .lens-controls button, .standard1 :is(.hung, .full-bleed) .lens-controls button[aria-pressed=true] { padding: 0; border: 0; background: none; color: #3f5d47; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hung .lens-ring { border-color: #3a3a34; }

/* Eye chart: a portrait card, each score beside its name. */
.hung .eyechart .ec-chart { aspect-ratio: auto; height: 100%; padding: 10px 0 14px; background: transparent; --k: .7; }
.hung .eyechart .ec-focus { background: #fffdf6; }
.hung .eyechart .ec-row { width: 100%; max-width: 560px; margin-inline: auto; grid-template-columns: 18px minmax(0, 1fr) 44px; }
.hung .eyechart .ec-score { color: #6b6a62; }
.hung .eyechart .ec-detail { grid-column: 1 / -1; white-space: normal; font-size: 8.5px; }

/* Help sheet: the dense answer is the printout; the glasses read it plainly. */
.hung .glasses-cover .lens-art { --lens-min: 92px; }
.hung .dense-answer { columns: 1; padding: 4px 2px; background: transparent; font-size: 10.5px; line-height: 1.5; color: #8d897f; }
.hung .plain-answer { padding: 0 8%; background: #fffdf6; font-size: 18px; }

/* Print: a landscape illustration, hung like a photograph. */
.standard1 .cover-card.hung [data-lens]:has(img.lens-original) { --object-w: 560px; padding: 14px 14px 8px; }
.hung [data-lens]:has(img.lens-original) .lens-art { aspect-ratio: 2.2; }

@media (max-width: 760px) {
  .standard1 .cover-card.hung { min-height: 0; padding: 28px 16px; justify-content: center; background-position: 80% center; }
  .standard1 .cover-card.hung [data-lens] { width: min(var(--object-w), 100%); }
  .standard1 .cover-card.hung [data-lens]:has(img.lens-original) { --object-w: 100%; }
}
@media (max-width: 480px) {
  .hung .eyechart .ec-chart { --k: .56; }
  .hung .plain-answer { font-size: 15px; }
  .hung .lens-controls { justify-content: flex-end; }
  .standard1 .cover-card:is(.hung, .full-bleed) .lens-controls [data-lens-hint] { display: none; }
  .standard1 .cover-card.full-bleed .lens-controls { justify-content: flex-end; }
}
@media (max-width: 360px) { .hung .eyechart .ec-chart { --k: .42; } .hung .eyechart .ec-letters { letter-spacing: .16em; text-indent: .16em; } }
