/* profile/css/profile-layout.css - THE PROFILE ON A COMPUTER'S FULL SCREEN (profile/js/profile-layout.js; Goliath,
 * 2026-10-28: "on PC we should be leveraging the full screen and this all be adaptable based on screen size /
 * resolution on what can sit side-by-side and what has to be below the fold"; lesson PH-18, convention 45).
 *
 * The script sets the profile's parts in columns from 1100 CSS px (two) and 1600 (three) and marks the page with
 * html[data-pp-cols]. Every rule here waits for that mark or for the columns themselves, so under 1100 px (a phone, a
 * tablet held upright, a narrow window) the page is exactly what it was. Each column is a size container: a part lays
 * itself out by its column's width, never by the window's.
 */

/* The page widens to the screen, up to 2560 CSS px, centred past that. The sign-in forms keep their own 900 px: only
   the signed-in sheet (.is-in) widens. */
html[data-pp-cols="2"] .page .page__sheet, html[data-pp-cols="3"] .page .page__sheet { max-width: 2560px; }
/* The page's gutters clear the FRIENDS tab (js/friends.js) at the screen's left edge: the sheet never runs under it. */
html[data-pp-cols="2"] .page, html[data-pp-cols="3"] .page { padding-left: 52px; padding-right: 52px; }
html[data-pp-cols="2"] .ud-page .ud-sheet.is-in, html[data-pp-cols="3"] .ud-page .ud-sheet.is-in { --pad: 36px; max-width: 2560px; }

/* THE COLUMNS: the account's column and the friends' at least 360 px (its forms and lists read at that), the play's
   the widest, so the wallet's two cards stand side by side in it. Each column's first part starts on one line. */
.pp-cols { display: grid; gap: 0 32px; align-items: start; }
.pp-cols[data-cols="2"] { grid-template-columns: minmax(360px, 1fr) minmax(0, 1.5fr); }
.pp-cols[data-cols="3"] { grid-template-columns: minmax(360px, 1fr) minmax(0, 1.7fr) minmax(360px, 1fr); }
.pp-col { min-width: 0; container: pp-col / inline-size; }
.pp-col > :first-child { margin-top: 22px; }
.pp-col > .ud-pp-h:first-child { margin-top: 28px; }

/* THE RECORD in a column narrower than its three cards: one card a row, as on a phone. */
@container pp-col (max-width: 639px) {
  .ud-page .ud-prof-stats { grid-template-columns: minmax(0, 1fr); }
}

/* THE TROPHY CASE under the columns, the full width: its cabinets side by side, each its own height (one opened grows
   alone), the head, the meter, the strip of games and Open all across the top. The strip spreads to one row. */
.pp-cols ~ .ud-pp-case { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 0 16px; align-items: start; }
.pp-cols ~ .ud-pp-case > :not(.ud-pp-cab) { grid-column: 1 / -1; }
.pp-cols ~ .ud-pp-case .ud-pp-games { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }

/* AT A GLANCE beside the name: the four numbers sit in the banner's part, to the right of the face and the words, from
   1280 px (under them before that). The words keep a column of their own, so nothing runs under the numbers. */
html[data-pp-cols] .ud-pp-hero > .ud-pp-glance { margin: 18px 0 6px; }
@media (min-width: 1280px) {
  html[data-pp-cols] .ud-page .ud-pp-hero:has(> .ud-pp-glance) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 560px); column-gap: 28px; }
  html[data-pp-cols] .ud-pp-hero:has(> .ud-pp-glance) > .ud-pp-banner { grid-column: 1 / -1; }
  html[data-pp-cols] .ud-pp-hero:has(> .ud-pp-glance) > .ud-prof-head { grid-column: 1; min-width: 0; }
  html[data-pp-cols] .ud-pp-hero > .ud-pp-glance { grid-column: 2; grid-row: 2; align-self: end; margin: 0 0 10px; }
}

/* GET MY UNICORNS, the full width at the foot (the founder, 2026-10-12: "at the bottom of the Profile"): its lines keep
   a reading length. */
.pp-cols ~ .ud-pp-import p { max-width: 90ch; }
