/* Shared theme rules for the owner preview and the standalone public profile. */
.profile-theme--classic {
  --profile-paper:#f9f6ee; --profile-canvas:#e9dec7; --profile-text:#272c28;
  --profile-hero:#eee6d2; --profile-hero-text:#252a23; --profile-accent:#284940;
  --profile-line:#8a806c; --profile-chip:#e6dfca; --profile-display: Georgia, serif;
  --profile-radius:4px; --profile-hero-rule:solid; --profile-hero-inset:14px;
}
.profile-theme--midnight {
  --profile-paper:#18172a; --profile-canvas:#101224; --profile-text:#f7eefa;
  --profile-hero:#312453; --profile-hero-text:#fff5ff; --profile-accent:#dcbeff;
  --profile-line:#a99acb; --profile-chip:#3c2f57; --profile-display: "Trebuchet MS", sans-serif;
  --profile-radius:20px; --profile-hero-rule:dashed; --profile-hero-inset:0;
}
.profile-theme--sunset {
  --profile-paper:#fff0e7; --profile-canvas:#fbd2be; --profile-text:#3c242b;
  --profile-hero:#9d354a; --profile-hero-text:#fff8ed; --profile-accent:#842e42;
  --profile-line:#a35362; --profile-chip:#f9d8cb; --profile-display: Georgia, serif;
  --profile-radius:34px; --profile-hero-rule:double; --profile-hero-inset:0;
}
.profile-theme--garden {
  --profile-paper:#f2f6e7; --profile-canvas:#d3e1c5; --profile-text:#283222;
  --profile-hero:#233f31; --profile-hero-text:#f8f9e7; --profile-accent:#285738;
  --profile-line:#6d8056; --profile-chip:#dfe9cb; --profile-display: "Palatino Linotype", Georgia, serif;
  --profile-radius:4px 32px 4px 32px; --profile-hero-rule:solid; --profile-hero-inset:10px;
}
.profile-theme--lavender {
  --profile-paper:#f8f1fb; --profile-canvas:#e6daef; --profile-text:#322044;
  --profile-hero:#d4b9ed; --profile-hero-text:#2c1b46; --profile-accent:#5f347d;
  --profile-line:#8c67a2; --profile-chip:#e9d9f3; --profile-display: "Segoe UI", sans-serif;
  --profile-radius:26px 8px 26px 8px; --profile-hero-rule:dotted; --profile-hero-inset:10px;
}
.profile-theme-page {
  margin:0; min-height:100vh; background:var(--profile-canvas,#e9dec7);
}
.profile-theme-page__layout {
  width:min(100% - 2rem, 48rem); margin-inline:auto; padding-block:clamp(1rem,6vw,6rem);
}
.profile-theme {
  overflow:hidden; overflow-wrap:anywhere; border:1px solid var(--profile-line,#8a806c);
  border-radius:var(--profile-radius,4px); background:var(--profile-paper,#f9f6ee);
  color:var(--profile-text,#272c28); font-family:"Segoe UI",system-ui,sans-serif;
}
.profile-theme__hero {
  display:grid; gap:.4rem; background-color:var(--profile-hero,#eee6d2);
  color:var(--profile-hero-text,#252a23); margin:var(--profile-hero-inset,0);
  margin-bottom:0; padding:clamp(1rem,4vw,3rem); border-radius:inherit;
  border-bottom:3px var(--profile-hero-rule,solid) var(--profile-line,#8a806c);
}
.profile-theme__hero p { margin:0; }
.profile-theme .profile-theme__title {
  color:inherit; font:600 clamp(1.5rem,5vw,4.1rem)/1.04 var(--profile-display,Georgia,serif);
  letter-spacing:-.03em; margin:0;
}
.profile-theme__handle { font-weight:650; }
.profile-theme--midnight .profile-theme__hero { border-top:8px solid #a987db; }
.profile-theme--sunset .profile-theme__hero { grid-template-columns:minmax(0,1fr); text-align:center; }
.profile-theme--garden .profile-theme__hero { padding-inline-start:clamp(1.25rem,5vw,4rem); }
.profile-theme--lavender .profile-theme__hero { border-inline-start:8px solid #9167b8; }
.profile-theme__content { padding:clamp(1rem,4vw,3rem); }
.profile-theme__content:empty { display:none; }
.profile-theme__bio { margin:0; max-width:60ch; white-space:pre-wrap; line-height:1.65; }
.profile-theme__music { display:grid; gap:.65rem; }
.profile-theme__bio+.profile-theme__music { margin-top:1.5rem; }
.profile-theme__music :is(h2,h3,h4) {
  margin:0; color:var(--profile-accent,#284940); font:650 1.1rem/1.3 "Segoe UI",system-ui,sans-serif;
  letter-spacing:normal;
}
.profile-theme__genres { display:flex; flex-wrap:wrap; list-style:none; gap:.5rem; margin:0; padding:0; }
.profile-theme__genres li {
  padding:.25rem .65rem; border:1px solid var(--profile-line,#8a806c);
  background:var(--profile-chip,#e6dfca); border-radius:1.1rem;
}
.profile-theme-options { display:grid; gap:.55rem; }
.profile-theme-choice {
  display:grid; grid-template-columns:auto 1.25rem minmax(0,1fr); align-items:center; gap:.55rem;
  padding:.5rem; border:1px solid #a4afa4; border-radius:.5rem; cursor:pointer;
}
.profile-theme-choice:has(input:checked) { outline:2px solid #23614d; }
.profile-theme-choice:focus-within { outline:3px solid #a94c35; outline-offset:2px; }
.profile-theme-choice small { display:block; }
.profile-theme-swatch {
  display:block; aspect-ratio:1; border-radius:50%; border:1px solid var(--profile-line);
  background:linear-gradient(135deg,var(--profile-hero) 0 50%,var(--profile-paper) 50%);
}


.profile-appearance { grid-column:1 / -1; }
.profile-theme-workspace {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:1.25rem;
}
@media (max-width:680px) {
  .profile-theme-workspace { grid-template-columns:minmax(0,1fr); }
}
.profile-color-workspace { display:grid; gap:1rem; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); align-items:start; }
.profile-color-choice { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.8rem; }
.profile-color-choice input { padding:.25rem; width:3rem; height:3rem; cursor:pointer; }
.profile-color-choice output { font-family:monospace; }
.profile-color-preview { border-radius:1rem; padding:clamp(.65rem,3vw,1.5rem); }
.profile-theme__links { display:grid; gap:.65rem; }
.profile-theme__content > * + .profile-theme__links { margin-top:1.5rem; }
.profile-theme__links :is(h2,h4) { margin:0; color:inherit; font:650 1.1rem/1.3 "Segoe UI",system-ui,sans-serif; }
.profile-theme__links ul { margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.6rem 1rem; list-style:none; }
.profile-theme__links a { color:var(--profile-accent); text-decoration:underline; text-underline-offset:.2em; }
.custom-page-link { min-width:0; }
@media (max-width:720px) {
 .profile-color-workspace { grid-template-columns:minmax(0,1fr); }
}
.profile-theme__featured {
  display: block;
  width: min(100%, 18rem);
  max-height: 19rem;
  object-fit: contain;
  object-position: left center;
  margin-top: 1rem;
  border-radius: .75rem;
}
.studio-star{display:inline-flex;align-items:center;gap:.35em;justify-self:start;width:fit-content;padding:.22em .72em;border-radius:2em;border:1px solid #ad782e;color:#512e18;background:#ffe4a0;font-weight:700;font-size:.85rem;letter-spacing:.02em}

.profile-gallery {grid-column:1/-1;min-width:0}
.profile-gallery__grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9.5rem),1fr));gap:.8rem}
.profile-gallery__grid figure {min-width:0;margin:0}
.profile-gallery__grid a {display:block}
.profile-gallery__grid img {display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:.5rem}
.profile-gallery__grid figcaption {margin-block-start:.35rem;overflow-wrap:anywhere;white-space:pre-line}

/* Record sleeve uses the member's own portrait sequence, music and liner notes. */
.profile-theme--sleeve {
  --profile-paper:#f4eee1; --profile-canvas:#242032; --profile-text:#292238;
  --profile-hero:#53394f; --profile-hero-text:#fff2db; --profile-accent:#53314d;
  --profile-line:#977f83; --profile-chip:#e8dcd4; --profile-display:Georgia,"Times New Roman",serif;
  --profile-radius:4px; --profile-hero-rule:solid; --profile-hero-inset:0;
}
.profile-theme-page.profile-theme--sleeve .profile-theme-page__layout {
  width:min(100% - 2rem,72rem); padding-block:clamp(1rem,4vw,3.5rem);
}
.profile-theme.profile-theme--sleeve {
  font-family:"Segoe UI",system-ui,sans-serif; border:0; border-radius:4px;
  background-color:var(--profile-paper); background-image:none;
}
.profile-theme.profile-theme--sleeve .profile-theme__hero {
  isolation:isolate; position:relative; overflow:hidden; align-content:center;
  width:100%; max-width:none; box-sizing:border-box; margin:0;
  padding:clamp(1.5rem,5cqi,3.6rem); gap:.75rem;
  color:var(--profile-hero-text); background:var(--profile-hero); border:0; border-radius:0;
}
.profile-theme.profile-theme--sleeve .profile-theme__hero::after {
  content:""; z-index:-1; position:absolute; width:22rem; aspect-ratio:1; border-radius:50%;
  right:-11rem; bottom:-15rem; opacity:.35;
  background:repeating-radial-gradient(circle,transparent 0 5px,currentColor 5px 6px,transparent 6px 9px);
}
.profile-theme.profile-theme--sleeve .profile-theme__hero>p:first-child {
  margin-bottom:.5rem; font:650 1rem/1.2 "Segoe UI",system-ui,sans-serif;
}
.profile-theme--sleeve .profile-theme__hero a {text-underline-offset:.25em}
.profile-theme.profile-theme--sleeve .profile-theme__title {
  max-width:13ch; font:500 clamp(3.1rem,8.5cqi,7.1rem)/.94 var(--profile-display);
  letter-spacing:-.065em; text-wrap:balance;
}
.profile-theme.profile-theme--sleeve .profile-theme__handle {
  font:500 .9rem/1.45 ui-monospace,Consolas,monospace; color:inherit; letter-spacing:.01em;
}
.profile-theme.profile-theme--sleeve .profile-theme__content {padding:clamp(1.3rem,4cqi,3rem)}
.profile-theme.profile-theme--sleeve .profile-theme__content [data-profile-section] {
  min-width:0; padding:.7rem 0 1.15rem; margin:0; border:0; border-radius:0;
  background:transparent; color:var(--profile-text); box-shadow:none;
}
.profile-theme.profile-theme--sleeve [data-profile-section]+[data-profile-section] {
  border-top:1px solid var(--profile-line); padding-top:1.15rem;
}
.profile-theme.profile-theme--sleeve [data-profile-section] :is(h2,h3,h4),
.profile-theme.profile-theme--sleeve .profile-gallery :is(h2,h4) {
  margin:0 0 .55rem; font:650 1rem/1.3 "Segoe UI",system-ui,sans-serif;
  letter-spacing:normal; color:inherit;
}
.profile-theme.profile-theme--sleeve .profile-theme__bio p,
.profile-theme.profile-theme--sleeve p.profile-theme__bio {
  max-width:52ch; margin:0; font:400 clamp(1.03rem,1.8cqi,1.27rem)/1.55 var(--profile-display);
}
.profile-theme.profile-theme--sleeve [data-profile-section=music] a {
  display:inline-flex; align-items:center; gap:.75rem; min-height:44px;
  color:var(--profile-accent); font-weight:650; text-decoration-thickness:1px; text-underline-offset:.22em;
}
.profile-theme.profile-theme--sleeve [data-profile-section=music] a::before {
  content:""; flex:0 0 2.5rem; width:2.5rem; height:2.5rem; border-radius:50%;
  background:radial-gradient(circle,var(--profile-paper) 0 5%,#aa829e 6% 26%,transparent 27%),
    repeating-radial-gradient(circle,#392b3e 0 3px,#635168 4px,#392b3e 5px);
}
.profile-theme.profile-theme--sleeve [data-profile-section=music] ul:not(.profile-theme__genres) {
  padding:0; margin:0; list-style:none;
}
.profile-theme.profile-theme--sleeve [data-profile-section=music] h3:has(+ul:not(.profile-theme__genres)) {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
}
.profile-theme.profile-theme--sleeve .profile-gallery {min-width:0}
.profile-theme.profile-theme--sleeve .profile-gallery__grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:1rem .75rem;
}
.profile-theme.profile-theme--sleeve .profile-gallery__grid figure:first-child {grid-column:1/-1}
.profile-theme.profile-theme--sleeve .profile-gallery__grid img {
  border-radius:2px; object-fit:cover; aspect-ratio:4/3; object-position:50% 35%;
}
.profile-theme.profile-theme--sleeve .profile-gallery__grid figcaption {
  margin-top:.45rem; font-size:.85rem; line-height:1.35;
}
.profile-theme-page.profile-theme--sleeve .profile-page-actions {background:var(--profile-canvas)}
.profile-theme-page.profile-theme--sleeve .profile-page-actions a {color:#f1dbed}
@media (min-width:58rem) {
  .profile-theme-page .profile-theme.profile-theme--sleeve:has(.profile-gallery-side) {
    display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
    grid-template-rows:auto 1fr;
  }
  .profile-theme-page .profile-theme--sleeve:has(.profile-gallery-side) .profile-theme__hero {grid-column:1;grid-row:1}
  .profile-theme-page .profile-theme.profile-theme--sleeve .profile-theme__content.profile-gallery-side {display:contents}
  .profile-theme-page .profile-theme--sleeve .profile-gallery-side__sections {
    grid-column:1; grid-row:2; display:block; padding:1.4rem clamp(1.5rem,4vw,3.4rem) 2.6rem;
  }
  .profile-theme-page .profile-theme.profile-theme--sleeve .profile-gallery-side>.profile-gallery {
    grid-column:2; grid-row:1/3; align-self:stretch; padding:clamp(1.3rem,3vw,2.35rem);
    background:var(--profile-chip); border-left:1px solid var(--profile-line);
  }
}
@media (max-width:40rem) {
  .profile-theme-page.profile-theme--sleeve .profile-theme-page__layout {width:calc(100% - 1rem)}
  .profile-theme.profile-theme--sleeve .profile-theme__content.profile-gallery-side {display:flex;flex-direction:column}
  .profile-theme.profile-theme--sleeve .profile-gallery-side>.profile-gallery {order:-1}
}
/* The member's chosen portrait anchors the identity fields in the page editor. */
profile-picture {display:block;min-width:0}
.profile-picture-picker {margin:.5rem 0;padding:1rem;border:1px solid var(--line,#cbbcc6);border-radius:12px;min-width:0}
.profile-picture-picker legend {padding-inline:.35rem;font-weight:700}
.profile-picture-row {display:grid;grid-template-columns:clamp(4rem,18vw,7rem) minmax(0,1fr);align-items:center;gap:clamp(.7rem,3vw,1.25rem)}
.profile-picture-row .stack,.profile-picture-row input,.profile-picture-row select {min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.profile-picture-tile {display:grid;place-items:center;aspect-ratio:1;overflow:hidden;border-radius:50%;background:#51364b;color:#fff1d2;font:600 clamp(1.8rem,6vw,3.4rem)/1 Georgia,serif}
.profile-picture-tile img {width:100%;height:100%;object-fit:cover}
.profile-picture-picker [role=status]:empty {display:none}
.picture-options {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(6rem,100%),1fr));gap:.6rem;border:0;padding:.65rem 0}
.picture-options label {position:relative;display:grid;gap:.3rem;align-content:start;overflow-wrap:anywhere;cursor:pointer;font-size:.85rem}
.picture-options input {position:absolute;top:.25rem;left:.25rem;width:1.15rem;height:1.15rem}
.picture-options img {width:100%;aspect-ratio:1;object-fit:cover;border-radius:.5rem}
.picture-options input:checked + img,.picture-options input:focus-visible + img {outline:3px solid #764765;outline-offset:-3px}
.people-identity {display:inline-flex;align-items:center;gap:.7rem;overflow-wrap:anywhere}
.people-identity img {border-radius:50%;object-fit:cover;flex:none}
page-checklist > details > summary {font-size:1.08rem;font-weight:700;cursor:pointer;padding-block:.35rem}
@media (max-width:650px) {
 page-checklist .setup-tasks {list-style:none;grid-template-columns:1fr;gap:0;padding:0;margin-block:.5rem 0}
 page-checklist .setup-tasks li {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:.5rem;padding:.65rem 0}
 page-checklist .setup-tasks li strong,page-checklist .setup-tasks li span {grid-column:1;margin:0}
 page-checklist .setup-tasks li :is(a,button) {grid-column:2;grid-row:1 / span 2;min-height:44px;align-content:center}
 profile-picture input[type=file] {font-size:1rem}
 [data-profile-theme-editor] :is(input,select,textarea) {font-size:max(1rem,16px)}
 [data-profile-theme-editor] .actions {row-gap:.6rem}
}
