/* One user's public pages (#106: /:user_name, drinks, favorites, wishes, homemade recipes and a shop's lineup).
   No approved mock-up: the composition comes from brand-list.css, the switch between the pages is the shared ume-subnav and
   the rows are the renewed parts. Shared controls live in /css/umeshu/umeshu.css and are not overridden here. */

/* Texts typed by the user keep their line breaks and spaces as the legacy .public-text did (no nofilter / nl2br). */
.user-text, .brand-list-comment { white-space: pre-wrap; overflow-wrap: anywhere; }

.user-title { overflow-wrap: anywhere; }
.user-nav { margin-top: 8px; }
.user-results, .user-section { margin-top: 48px; }
.user-section-title { font-size: 22px; font-weight: var(--ume-weight-bold); line-height: 1.6; }
.user-definitions { margin-top: 16px; }
.user-map-link { display: block; margin-top: 4px; font-size: var(--ume-text-sm); }
.user-owner-actions { margin-top: 20px; }
.user-more { margin-top: 16px; }
.user-note { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; }
.user-note a:not(.ume-text-link) { color: var(--ume-color-link); text-decoration: underline; }

/* Rows of _ume/brand_list.tpl with the member's or shop's comment, price and the owner's removal link. */
.brand-list-comment { margin-top: 8px; max-width: 46em; font-size: var(--ume-text-sm); line-height: 1.9; }
.brand-list-price { margin-top: 6px; font-size: var(--ume-text-sm); font-weight: var(--ume-weight-bold); }
.brand-list-owner { margin-top: 6px; font-size: var(--ume-text-sm); }
.brand-list-owner a { color: var(--ume-color-link); text-decoration: underline; }

/* A registered shop: notice, surveyed status, introduction and photos. */
.user-shop-notice { margin-top: 32px; max-width: 46em; }
.user-shop-notice .shop-account-review { margin-top: 12px; }
.user-shop-pr { margin-top: 24px; max-width: 46em; }
/* Shop photos have varied sizes: a fixed square frame contains each one, so a tall or wide photo never spills out (#95). */
.user-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; max-width: 760px; }
.user-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden;
  background: var(--ume-color-photo); border-radius: var(--ume-radius-control); }
.user-photo img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 600px) {
  .user-results, .user-section { margin-top: 36px; }
  .user-section-title { font-size: 19px; }
  .user-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .user-note { margin-top: 36px; }
}
