/* ==========================================================================
   Profile — the noticeboard redesign
   and images/profile-no-house-*.

   .profile-top      header sheet + Achievements/trophy note (2fr / 1fr from 1000px;
                     .solo when there is no note, so the header takes the row)
   .profile-house    the House sheet, present only when the view sent house_ctx
                     (invariant #7) — the sections below simply move up without it
   .profile-section  Pufflings / Seekers / Gallery under wooden plaques, calm grids
   The pagedoll's phone rules (72px, in the page flow) live in pagedolls.css.
   ========================================================================== */

.profile-top{ display:grid; grid-template-columns:minmax(0, 1fr); gap:30px 24px; align-items:start; }
@media (min-width:1000px){
  .profile-top{ grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); }
  .profile-top.solo{ grid-template-columns:minmax(0, 1fr); }
}

/* Header: 180px picture, 38px name, handle, edit link, bio, link chips. */
.profile-hero.sheet{ padding:30px 30px 26px; }
.profile-hero .profile-header{ display:flex; flex-wrap:wrap; align-items:center; gap:22px 28px; }
.profile-hero .profile-header .avatar{ width:180px; height:180px; border-width:5px; margin:0; flex:0 0 auto; }
.profile-hero .profile-header-name{ flex:1 1 280px; min-width:0; display:block; }
.profile-hero h1{ font-size:38px; line-height:1.1; margin:0 0 4px; overflow-wrap:anywhere; }
.profile-hero .profile-handle{ margin:2px 0 0; font-size:14px; font-weight:700; color:var(--ink-soft); }
/* The worn title (apps/achievements/titles.py), under the name like a Discord role. */
.profile-hero .profile-title{ margin:0 0 2px; font-size:16px; font-weight:700; font-style:italic; color:var(--accent-dark); overflow-wrap:anywhere; }
.profile-hero .profile-edit-link{ display:inline-flex; align-items:center; min-height:44px; font-weight:700; }
.profile-hero .profile-bio{ margin:8px 0 14px; font-size:16px; line-height:1.6; max-width:60ch; }
.profile-hero .profile-links{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.profile-hero .profile-links .fchip, .profile-hero .profile-links .button{ min-height:44px; display:inline-flex; align-items:center; }

/* The Achievements / trophy note. */
.trophy-panel.notice{ display:block; padding:24px 20px 18px; }
.trophy-panel .showcase-heading{ margin:0 0 4px; }
.trophy-panel h2.showcase-heading{ font-size:19px; }
.trophy-panel h3.showcase-heading{ font-size:15px; margin-top:12px; }
.trophy-panel-achievements{ margin:0; text-align:left; min-width:0; }
.trophy-panel .ach-summary{ margin:0 0 6px; font-weight:800; color:var(--ink); font-size:14px; }
.trophy-panel .showcase-grid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:6px 0 0; }
.trophy-panel .showcase-item{ width:auto; min-width:0; background:var(--parch-2); border:2px solid var(--line); border-radius:10px;
  padding:8px 4px 6px; }
.trophy-panel .showcase-link{ min-height:44px; width:100%; }
.trophy-panel .showcase-name{ font-size:12px; font-weight:800; color:var(--ink); line-height:1.25; overflow-wrap:anywhere; }
.trophy-panel .showcase-item img, .trophy-panel .showcase-item .thumb-placeholder{ width:48px; height:48px; }

/* House sheet */
.profile-house{ margin-top:34px; padding:22px 22px 18px; }
.profile-house .sec-head{ margin:0; }
.profile-house .sec-head h2{ font-size:20px; }
.profile-house .house-figure{ margin:0; }

/* Sections under wooden plaques */
.profile-section{ margin-top:40px; }
.profile-section .board-head{ align-items:center; margin-bottom:22px; }
.profile-section .board-head .button{ min-height:44px; display:inline-flex; align-items:center; }
.section-plaque{ padding:6px 22px 8px; }
.section-plaque h2{ font-size:22px; margin:0; }

@media (max-width:640px){
  .profile-hero .profile-header{ justify-content:center; text-align:center; }
  .profile-hero .profile-header .avatar{ width:140px; height:140px; }
  .profile-hero h1{ font-size:30px; }
  .profile-hero .profile-bio{ margin-left:auto; margin-right:auto; }
  .profile-hero .profile-links{ justify-content:center; }
  .profile-section .board-head{ gap:10px 12px; }
}
@media (max-width:480px){
  .profile-hero.sheet{ padding:26px 14px 18px; }
  .section-plaque h2{ font-size:20px; }
}
.profile-house .house-zoomable > .house-zoom-btn{ width:44px; height:44px; }

/* House fold: same disclosure look as inventory's `.inv-section` (chevron + heading in the
   summary). Closed, the summary row is the whole sheet, so it drops its bottom margin. */
.profile-house .house-fold > summary{ cursor:pointer; list-style:none; min-height:44px; margin-bottom:12px; }
.profile-house .house-fold > summary::-webkit-details-marker{ display:none; }
.profile-house .house-fold:not([open]) > summary{ margin-bottom:0; }
.profile-house .house-fold > summary:focus-visible{ outline:3px solid var(--accent-dark); outline-offset:2px; border-radius:8px; }
/* The chevron is the main "this opens" cue, so it is big and in full ink, with a Show / Hide
   word beside the heading (same wording as the ownership-history fold). */
.profile-house .inv-chev{ font-size:20px; line-height:1; color:var(--ink); display:inline-block; transition:transform .15s ease; }
.profile-house .house-fold-hint{ font-family:"Fredoka"; font-weight:500; font-size:13.5px; color:var(--rose-ink); white-space:nowrap; }
.profile-house .house-fold-hint::after{ content:" ▴"; }
.profile-house .house-fold:not([open]) .house-fold-hint::after{ content:" ▾"; }
.profile-house .house-fold[open] .house-fold-hint .when-closed,
.profile-house .house-fold:not([open]) .house-fold-hint .when-open{ display:none; }
.profile-house .house-fold:not([open]) .inv-chev{ transform:rotate(-90deg); }
