/* profile-v2.css - lighter /profile page (desktop and phone), in the style of the approved desktop design:
   each part of the form in its own soft card, compact chips and fields, smaller headings.
   Loads after profile.css and desktop-v2.css. Rollback: remove its <link> from index.html. */

/* cards instead of long hairline-separated blocks */
.pf .pf-sec {
  margin: 0 0 14px; padding: 18px 18px 20px; border: 0; background: var(--s1);
  border-radius: 20px; animation: none;
}
.pf .pf-sec > h3, .pf .pf-sh h3 {
  margin: 0 0 14px; font: 700 17px/1.3 var(--font-d); text-transform: none; letter-spacing: 0; color: var(--t1);
}
.pf .pf-sh { align-items: center; }
.pf .pf-sh h3 { margin-bottom: 14px; }
.pf .pf-count { font-size: 12px; font-weight: 500; }
.pf-id h2 { margin: 2px 0 14px; font: 700 26px/1.2 var(--font-d); text-transform: none; letter-spacing: 0; }

/* fields */
.pf .pf-f { margin-top: 14px; }
.pf .pf-f:first-child, .pf .pf-sec > h3 + .pf-f { margin-top: 0; }
.pf .pf-f label, .pf .pf-l {
  margin: 0 0 6px; font: 500 13px/1.4 var(--font-b); letter-spacing: 0; text-transform: none; color: var(--t3);
}
.pf input:not([type="checkbox"]):not([type="file"]), .pf select, .pf textarea {
  width: 100%; box-sizing: border-box; min-height: 42px; padding: 9px 14px; margin: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--t1);
  font: 15px/1.4 var(--font-b); clip-path: none; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.pf input:focus, .pf select:focus, .pf textarea:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(255, 107, 94, .16);
}
.pf textarea { min-height: 96px; resize: vertical; }
.pf .pf-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.pf .pf-cnt { font-size: 11px; }

/* chips: small, tail-cornered, like the Discover filters */
.pf .pf-seg { gap: 6px; }
.pf .chip {
  min-height: 36px; padding: 7px 14px; border: 0; border-radius: 16px; clip-path: none;
  background: var(--s2); color: var(--t1); font: 500 13px/1.3 var(--font-b); text-transform: none; letter-spacing: 0;
}
.pf .chip:hover { background: var(--s3); }
.pf .chip.on { background: var(--t1); color: var(--bg); }

/* photos */
.pf .slots { gap: 6px; margin-bottom: 8px; }
/* 10 photos: the main photo runs the full width (3:2), the other 9 fill three even rows of 3 */
.pf .slots .slot:first-child { grid-column: 1 / -1; grid-row: span 2; }
.pf .slot { border-radius: 14px; clip-path: none; overflow: hidden; }
.pf .slot.add { background: var(--s2); }
.pf .pf-photos .muted.sm { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }

/* buttons inside the page */
.pf .pf-vc .btn, .pf .pf-sec .btn.ghost.sm {
  width: auto; min-height: 0; padding: 9px 16px; border: 0; border-radius: 12px; clip-path: none;
  font: 700 14px var(--font-b); text-transform: none; letter-spacing: 0;
}
.pf .pf-sec .btn.ghost.sm { margin-top: 12px; background: var(--s2); color: var(--t1); }
.pf .pf-sec .btn.ghost.sm:hover { background: var(--s3); }
.pf .pf-vc { gap: 12px; }
.pf .pf-vc .muted { font-size: 13px; line-height: 1.45; }
.pf #geost { display: inline-block; margin: 12px 0 0 8px; }

/* account: quiet, outlined */
.pf .pf-acct { background: none; border: 1px dashed var(--line2); }
.pf .pf-acct .muted { margin: 0; }
.pf .pf-del { min-height: 0; padding: 8px 0 0; font-size: 14px; }

/* the "Advertise" link at the end of the page matches the cards */
.adp-prof { margin: 0 0 14px !important; border-radius: 20px !important; }

/* phones */
@media (max-width: 899px) {
  .pf .pf-sec { padding: 16px 14px 18px; margin-bottom: 12px; }
  .pf-id h2 { font-size: 24px; margin-bottom: 12px; }
}

/* desktop: page title, photos and verification on the left, the form on the right */
@media (min-width: 900px) {
  .wrap:has(#nav) #view:has(.pf) { max-width: 1120px !important; padding: 28px 40px 48px !important; }
  .wrap:has(#nav) #view:has(.pf) > .dv-head { display: flex; margin: 0 0 22px; }
  .pf { grid-template-columns: 340px minmax(0, 1fr) !important; gap: 24px !important; }
  .pf-side { top: 24px; }
  .pf .pf-bar { border-radius: 16px; }
}
/* end of profile-v2.css */

/* phones: the save bar is one slim floating pill above the bottom menu (dot + message, Cancel, Save) */
@media (max-width: 899px) {
  .pf .pf-bar { flex-wrap: nowrap !important; align-items: center; gap: 6px !important; width: min(calc(100% - 24px), 420px) !important;
    min-height: 54px; padding: 6px 6px 6px 16px !important; border-radius: 999px !important;
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55) !important; }
  .pf .pf-bar .pf-msg { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 13.5px var(--font-b); }
  .pf .pf-bar .btn { flex: none !important; min-height: 42px !important; padding: 0 16px !important; border-radius: 999px !important; white-space: nowrap !important; font: 700 14px var(--font-b) !important; }
  .pf .pf-bar .btn.ghost { padding: 0 10px !important; text-decoration: none !important; opacity: .75; }
}
