/* Visitor-first cafe details and photo-led coffee entries. */
.cafe-page .cafe-hero-grid { align-items: center; }
.cafe-page .cafe-hero-text-only { grid-template-columns: minmax(0, 820px); }
.cafe-page .cafe-title { font-size: clamp(38px, 4.5vw, 64px); }
.cafe-address { color: var(--fg-2); font-size: 16px; margin: 16px 0 0; }
.cafe-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cafe-page .hero-meta-row:empty { display: none; }
.cafe-owner-tools { padding: 8px 4px; display: grid; gap: 16px; }
.cafe-owner-tools > a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cafe-qr-details { display: flex; align-items: flex-start; gap: 16px; margin: 16px 0; }
.cafe-qr-details svg { flex: none; }
.cafe-qr-details p { margin: 0; font-size: 14px; color: var(--fg-2); }
.quiet-disclosure { border-top: 1px solid var(--border-hairline); padding-top: 16px; }
.quiet-disclosure > summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 6px 0; }
.quiet-disclosure > summary:focus-visible { outline: 2px solid var(--fg-1); outline-offset: 5px; }

/* All uploaded images remain available. Feed crops open the full entry. */
.entry-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.entry-photo-grid > a:first-child { grid-column: 1 / -1; }
.entry-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.entry-heading { flex: 1; min-width: 0; }
.entry-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.entry-title { color: inherit; font-size: 15px; font-weight: 700; text-decoration: none; }
.entry-date, .entry-meta time { color: var(--fg-3); font-size: 13px; }
.entry-context { color: var(--fg-2); font-size: 13px; margin-top: 5px; }
.entry-score { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.entry-notes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.coffee-entry-card .checkin-foot a { display: inline-flex; align-items: center; gap: 7px; }
.coffee-entry-card .checkin-body, .posted-caption { overflow-wrap: anywhere; }

.posted-entry { max-width: min(var(--site-max), 900px); padding-top: 40px; padding-bottom: 72px; }
.posted-header { margin-bottom: 28px; }
.posted-header h1 { margin: 12px 0; font-size: clamp(34px, 5vw, 54px); }
.posted-header .lede { font-size: 17px; margin: 16px 0 0; }
.posted-photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.posted-photo-gallery > a:first-child { grid-column: 1 / -1; }
.posted-photo-gallery img { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: var(--r-md); background: var(--bg-3); }
.posted-photo-gallery a:first-child img { max-height: 85vh; }
.posted-details { padding: 16px 0 24px; }
.posted-caption { font-size: 19px; line-height: 1.6; margin: 0 0 16px; white-space: pre-line; }
.posted-actions, .posted-related { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.posted-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.posted-related { margin-top: 28px; font-size: 14px; }
.share-export { margin-top: 28px; }
.share-export > .btn { margin-top: 16px; }
.share-card-preview { margin-top: 20px; max-width: 100%; overflow-x: auto; }
.share-card-preview > div { max-width: 100%; }
.copy-fallback { margin-top: 16px; }
.copy-fallback label { display: block; margin-bottom: 8px; }
#copy-status:empty { display: none; }
#copy-status { margin-top: 12px; }

.composer-page { max-width: min(var(--site-max), 680px); padding-top: 36px; padding-bottom: 64px; }
.composer-page > h1 { margin: 14px 0 8px; }
.composer-page > .lede { font-size: 18px; margin: 0; }
.coffee-composer { display: grid; gap: 24px; margin-top: 28px; }
.coffee-composer p { margin: 0; }
.composer-field { display: grid; gap: 10px; min-width: 0; }
fieldset.composer-field { border: 0; margin: 0; padding: 0; }
.composer-field legend { margin-bottom: 12px; padding: 0; }
.composer-hints { display: flex; justify-content: space-between; gap: 12px; }
.composer-hints #caption-count { white-space: nowrap; }
.composer-detail-fields { display: grid; gap: 28px; padding-top: 24px; }
.coffee-composer .file-field { flex-wrap: wrap; margin-top: 0; }
.coffee-composer .file-field-name { overflow-wrap: anywhere; }
.coffee-composer .choice-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.coffee-composer .chip:has(input:checked) { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }
.coffee-composer .chip:focus-within, .coffee-composer .file-field label:focus-within { outline: 2px solid var(--fg-1); outline-offset: 4px; }
.coffee-composer .text-input:focus-visible, .coffee-composer .score-slider:focus-visible { outline: 2px solid var(--fg-1); outline-offset: 3px; }
.score-field { margin-top: 20px; }
.score-controls { display: flex; align-items: center; gap: 24px; }
.score-controls > div { min-width: 100px; }
#score-num { font-family: var(--font-display); font-size: 48px; line-height: 1; }
#score-word { margin-top: 6px; }
.brew-fields { margin-top: 24px !important; }
.brew-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brew-inputs label { display: grid; gap: 7px; font-size: 13px; color: var(--fg-2); }
.brew-inputs input { min-width: 0; }
.composer-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border-hairline); padding-top: 24px; }
@media (max-width: 600px) {
  .cafe-page .cafe-hero-grid { padding-top: 28px; padding-bottom: 28px; }
  .cafe-page .cafe-title { margin: 12px 0 16px; }
  .cafe-page .btn-lg { padding: 12px 18px; }
  .coffee-entry-card .checkin-head { flex-wrap: wrap; }
  .coffee-entry-card .entry-score { margin-left: auto; }
  .posted-entry, .composer-page { padding-top: 28px; }
  .posted-photo-gallery { gap: 8px; }
  .posted-actions { gap: 10px; }
  .composer-submit { align-items: stretch; flex-direction: column; }
  .composer-submit .btn { width: 100%; }
}

.composer-page > .lede { font-family: var(--font-body); font-style: normal; font-size: 16px; line-height: 1.55; color: var(--fg-2); }
.coffee-composer { gap: 20px; margin-top: 24px; }
.composer-hints { justify-content: flex-end; }
.composer-photo-preview { margin: 0; position: relative; }
.composer-photo-preview[hidden] { display: none; }
.composer-photo-preview img { display: block; width: 100%; max-height: 340px; object-fit: contain; border-radius: 12px; background: var(--bg-2); }
.composer-photo-preview button { margin-top: 8px; }
