/* Gallery and reading detail. Artwork dimensions and selection logic stay source-owned. */
.gallery-breadcrumb {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 28px;color:#82717a;font:400 12px/1.6 var(--font-body,var(--font-sans,system-ui));}
.gallery-breadcrumb a {display:inline-flex;align-items:center;min-height:32px;color:#5c5c5c;text-decoration:none;}
.gallery-breadcrumb a:hover {text-decoration:underline;text-underline-offset:4px;}
.gallery-breadcrumb>span:last-child {color:#474747;}
.gallery-section-heading {display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 21px;padding:0 2px;}
.gallery-section-heading h2 {margin:0;color:#393939;font:400 29px/1.2 var(--font-editorial,serif);}
.gallery-section-heading p {margin:0;color:#6b6b6b;font:400 13px/1.6 var(--font-sans,system-ui);}

body.character-showcase .showcase-intro {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,300px);
  align-items:start;column-gap:clamp(24px,5vw,76px);row-gap:0;padding-bottom:34px;
  background:none;
}
body.character-showcase .showcase-intro>.eyebrow {grid-column:1;margin:0 0 13px;}
body.character-showcase .showcase-intro>h1 {grid-column:1;max-width:14ch;margin:0 0 16px;}
body.character-showcase .showcase-intro>p:not(.eyebrow):not(.atelier-gallery-availability) {grid-column:1;margin:0;max-width:54ch;}
body.character-showcase .showcase-intro>.atelier-gallery-availability {
  grid-column:2;grid-row:1/4;align-self:end;margin:0;padding:20px 22px;
  color:#575757;font:400 14px/1.7 var(--font-sans);border:1px solid #e6d5de;
  border-radius:5px 14px 5px 14px;background:#fffaf4;
  box-shadow:4px 4px 0 #EAD5DE;
}
.atelier-availability-label {display:block;margin-bottom:9px;color:#2d2d2d;font:500 15px/1.4 var(--font-sans);}
.atelier-gallery-availability a {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-top:12px;border-top:1px solid #e8d7e0;color:#585858;text-decoration:none;font-weight:500;}
body.character-showcase #studio-portrait-grid {gap:24px;}
body.character-showcase .exhibition-card>a {
  height:100%;box-sizing:border-box;padding:8px;border:1px solid #d9c6cd;
  border-radius:9px 9px 15px 9px;background:#fffdf9;
  box-shadow:4px 4px 0 #EAD5DE,0 7px 14px #2828280a;
}
body.character-showcase .r3-portrait-frame {
  padding:0;aspect-ratio:auto;border-color:#e5d8d3;border-radius:5px;background:#f1e9e2;
  box-shadow:inset 0 1px 0 #fff,0 3px 9px #2a2a2a08;
}
body.character-showcase .r3-portrait-frame img {height:auto;aspect-ratio:1/2;object-fit:contain;border-radius:4px;}
body.character-showcase .exhibition-card-copy {
  display:grid;grid-template-columns:minmax(0,1fr);gap:11px;margin-top:0;padding:18px 8px 8px;border:0;
}
body.character-showcase .exhibition-card-copy strong {line-height:1.15;font-size:27px;}
body.character-showcase .portrait-editorial-mark {font-size:12px;padding:6px 0 0;}
body.character-showcase .exhibition-card-copy>span {
  display:flex;align-items:center;min-height:36px;padding-top:9px;border-top:1px solid #eee3e9;
  color:#5b5b5b;font-size:13px;justify-content:space-between;
}
/* The frame is light; the original scene continues to choose its own text tone and placement. */
body.character-showcase #portrait-dialog {
  background:#fffdf9;border-color:#ceb3c0;
  color:#242126;box-shadow:4px 4px 0 #EAD5DE,0 12px 28px #1b1b1b35;
}
body.character-showcase #portrait-dialog>.portrait-dialog-controls:first-child {
  background:#fffdf9;border-bottom-color:#e2d3dc;
}
body.character-showcase .portrait-dialog-controls button {
  border-color:#decfd8;background:#fff;color:#373737;
}
body.character-showcase .portrait-dialog-controls button:hover:not(:disabled) {background:#f7e8ef;border-color:#c889a5;}
body.character-showcase .portrait-dialog-controls button:disabled {background:#fff;color:#595959;border-color:#decfd8;opacity:.42;}
body.character-showcase #portrait-dialog-position {color:#5f5260;font-variant-numeric:tabular-nums;}
body.character-showcase .portrait-scene[data-copy-placement=outside] .portrait-scene__copy {background:#faf2ec;border:1px solid #e4d5d6;border-top:0;}
body.character-showcase .portrait-dialog-rail {
  gap:10px;margin-top:12px;padding:12px 5px 8px;border-top:1px solid #e5d7df;
  scroll-padding-inline:5px;
}
body.character-showcase .portrait-dialog-rail button {
  padding:5px 5px 8px;min-height:44px;border:1px solid transparent;border-radius:13px;
  color:#5a4e59;background:transparent;
}
body.character-showcase .portrait-dialog-rail img {border-color:#ded3db;border-radius:8px;}
body.character-showcase .portrait-dialog-rail button[aria-current=true] {background:#F3DCE6;border-color:#c884a2;color:#4a4a4a;}
body.character-showcase .portrait-dialog-rail button[aria-current=true] img {outline:none;}
body.character-showcase .portrait-dialog-rail button:focus-visible {outline:3px solid #616161;outline-offset:1px;}
body.character-showcase .portrait-dialog-rail span {font-size:13px;}
/* A house preview sits in a framed panel; controls have their own ledge below the art. */
body.sfw-homes-page .homes-primary {gap:24px;align-items:start;}
body.sfw-homes-page .homes-gallery {
  padding:9px;box-sizing:border-box;border:1px solid #D9CDD3;border-radius:16px;
  background:#fffdf9;box-shadow:var(--sfw-paper-shadow);
}
body.sfw-homes-page .house-preview {border-radius:11px;box-shadow:0 0 0 1px #e6dce3;}
body.sfw-homes-page .house-preview-label {top:12px;left:12px;font-size:13px;}
body.sfw-homes-page .house-gallery-controls {
  position:relative;inset:auto;margin:0;padding:10px 4px 2px;border:0;border-radius:0;
  background:none;box-shadow:none;gap:12px;color:#575757;font-size:13px;
}
body.sfw-homes-page .house-gallery-controls button {border-color:#dfcbd7;background:#fff;box-shadow:inset 0 1px 0 #fff;}
body.sfw-homes-page .house-information {
  position:relative;padding:25px;border-color:#e2d3dd;
  background:#fffaf4;
  color:#2c2c2c;border-radius:14px;box-shadow:var(--sfw-paper-shadow);
}
body.sfw-homes-page .house-information .house-eyebrow {color:#5d5d5d;font-size:12px;letter-spacing:.1em;}
body.sfw-homes-page .house-information :is(.house-eyebrow>svg,dt svg) {color:#6c6c6c;}
body.sfw-homes-page .house-information h2 {color:#272727;margin-bottom:24px;}
body.sfw-homes-page .house-information .house-secondary {color:#464646;border-color:#e3cfdc;background:#fff;margin-top:8px;}
body.sfw-homes-page .house-information dl {border-color:#e9dce4;gap:16px;margin:23px 0 18px;padding-top:20px;}
body.sfw-homes-page .house-information dt {color:#343434;font-size:14px;}
body.sfw-homes-page .house-information dd {color:#6b606b;font-size:13px;line-height:1.6;}
body.sfw-homes-page .house-information>.house-closed {
  padding:12px 14px;margin:0;border:1px solid #eadce4;border-radius:12px;background:#fff9fc;
  color:#595959;font-size:13px;
}
body.sfw-homes-page .house-information .house-resource-link {display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:#565656;font-size:13px;text-underline-offset:4px;}
.atelier-room-heading {display:flex;align-items:end;justify-content:space-between;gap:16px;margin:31px 3px 15px;}
.atelier-room-heading>div>p {margin:0 0 7px;color:#626262;font:500 12px/1.5 var(--font-sans);letter-spacing:.09em;text-transform:uppercase;}
.atelier-room-heading h2 {margin:0;font:400 32px/1.1 var(--font-editorial);color:#2c2c2c;}
.atelier-room-heading>p {max-width:33ch;margin:0;color:#6a606a;font:400 14px/1.6 var(--font-sans);}
body.sfw-homes-page .house-related {margin-top:0;gap:18px;}
body.sfw-homes-page .house-view-card {padding:6px;border-radius:16px;border-color:#D9CDD3;background:#fffdf9;box-shadow:var(--sfw-paper-shadow);}
body.sfw-homes-page .house-crop {border-radius:14px 14px 8px 8px;}
body.sfw-homes-page .house-thumb-copy {border:0;padding:15px 45px 11px 10px;background:none;}
body.sfw-homes-page .house-thumb-copy>span {display:grid;place-items:center;width:30px;height:30px;top:15px;right:7px;border:1px solid #ead8e2;border-radius:50%;color:#686868;font-size:17px;}
body.sfw-homes-page .house-thumb-copy small {font-size:13px;line-height:1.55;}
body.sfw-homes-page .house-furniture {padding:16px;gap:18px;border-radius:12px;border-color:#D9CDD3;background:#f7e9ed;box-shadow:var(--sfw-paper-shadow);}
body.sfw-homes-page .house-furniture>img {border:1px solid #eadce4;padding:5px;border-radius:12px;box-shadow:0 3px 12px #23232308;}
body.sfw-homes-page .house-furniture a {min-height:44px;border-color:#e3d0dc;}
body.sfw-homes-page .house-source-note {padding-top:14px;margin-top:18px;border-top:1px solid #e6dbe2;font-size:13px;}
body.sfw-homes-page #house-image-dialog {background:#fffdfd;border-color:#decfd8;color:#2a2a2a;box-shadow:0 24px 70px #1b1b1b45;}
body.sfw-homes-page #house-image-dialog header {padding-bottom:13px;border-bottom:1px solid #eadce4;}
body.sfw-homes-page #house-image-dialog h2 {color:#2a2a2a;}
body.sfw-homes-page #house-image-dialog button {background:#fff;border-color:#dfcbd7;color:#494949;}
body.sfw-homes-page #house-image-dialog>img {border-radius:12px;}
body.sfw-homes-page #house-image-dialog>p {color:#606060;}
/* Reading gets a compact introduction, a three-step route, and discrete reference drawers. */
body.atelier-guide-page .customer-reading-shell {background:var(--sfw-canvas,#f7f1eb);}
body.atelier-guide-page .customer-reading-title {
  padding:40px 0 38px;background:#f3e6e5;
  border-top:1px solid #fffdf9;border-bottom:1px solid #d6bdc6;box-shadow:0 4px 0 #e8d5dc;
}
body.atelier-guide-page .customer-reading-title>.site-container {display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,300px);align-items:center;gap:clamp(28px,5vw,70px);}
body.atelier-guide-page .customer-reading-title .atelier-guide-eyebrow {margin:0 0 15px;color:#676767;font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;}
body.atelier-guide-page .customer-reading-title h1 {max-width:19ch;margin-bottom:16px;font-size:clamp(36px,4.2vw,57px);line-height:1.1;color:#303030;}
body.atelier-guide-page .atelier-guide-heading>p:last-child {max-width:58ch;color:#666666;font-size:15px;}
.atelier-guide-note {padding:23px;border:1px solid #d6bdc6;border-radius:5px 15px 5px 15px;background:#fffaf2;box-shadow:4px 4px 0 #dcbecb;}
.atelier-guide-note>svg {display:block;width:42px;height:42px;margin-bottom:13px;color:#747474;}
.atelier-guide-note strong {display:block;margin-bottom:9px;color:#3f3f3f;font:400 24px/1.1 var(--font-editorial);}
body.atelier-guide-page .customer-reading-title .atelier-guide-note>p {font-size:14px;line-height:1.75;color:#676767;}
body.atelier-guide-page .atelier-guide-note>a {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-top:16px;border-top:1px solid #e6d3dc;color:#5f5f5f;font-size:13px;text-decoration:none;}
body.atelier-guide-page .r6-shell {padding-top:28px;padding-bottom:48px;}
body.atelier-guide-page .customer-guide-intro {max-width:78ch;margin:0 0 23px;padding:0;color:#595959;font-size:15px;line-height:1.8;}
body.atelier-guide-page .customer-guide-steps {gap:18px;margin:0 0 28px;}
body.atelier-guide-page .customer-guide-steps li {
  display:flex;flex-direction:column;min-width:0;padding:23px;border:1px solid #D9CDD3;border-radius:16px;
  background:#fffdf9;box-shadow:4px 4px 0 #EAD5DE,0 7px 14px #2828280a;
}
body.atelier-guide-page .customer-guide-steps .customer-guide-number {
  display:grid;place-items:center;align-self:start;width:43px;height:43px;margin-bottom:19px;
  border:1px solid #e1bfd1;border-radius:50%;background:#fff6fa;color:#656565;
  font:400 20px/1 var(--font-editorial);font-variant-numeric:tabular-nums;
}
body.atelier-guide-page .customer-guide-steps h2 {font-size:24px;line-height:1.15;color:#333333;}
body.atelier-guide-page .customer-guide-steps p {line-height:1.75;color:#655b65;overflow-wrap:anywhere;}
body.atelier-guide-page .customer-guide-steps a {min-height:44px;margin-top:auto;padding-top:11px;border-top:1px solid #eadce4;font-size:14px;color:#5a5a5a;text-decoration-thickness:1px;text-underline-offset:4px;}
body.atelier-guide-page .customer-guide-membership {position:relative;margin:0 0 28px;padding:26px 28px;border-color:#d5bcc8;background:#f4e5eb;box-shadow:inset 3px 0 0 #bf829f;}
body.atelier-guide-page .customer-guide-membership h2 {font-size:30px;color:#3d3d3d;}
body.atelier-guide-page .customer-guide-membership p {max-width:92ch;color:#595959;font-size:15px;}
body.atelier-guide-page .customer-guide-section {margin:10px 0;padding:0 21px;border:1px solid #e4d6df;border-radius:16px;background:#fff;}
body.atelier-guide-page .customer-guide-section summary {min-height:58px;box-sizing:border-box;padding:18px 2px;color:#393939;font:500 16px/1.4 var(--font-sans);cursor:pointer;}
body.atelier-guide-page .customer-guide-section summary::marker {color:#727272;}
body.atelier-guide-page .customer-guide-section[open] {border-color:#cfa7bd;box-shadow:3px 3px 0 #EAD5DE;}
body.atelier-guide-page .customer-guide-section[open] summary {border-bottom:1px solid #eee2e8;}
body.atelier-guide-page .customer-guide-section p {color:#5a5a5a;line-height:1.75;}
body.atelier-guide-page .atelier-guide-help {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;margin:30px 0 0;padding-top:19px;border-top:1px solid #e4d6df;color:#595959;font-size:14px;}
body.atelier-guide-page .atelier-guide-help>a {display:inline-flex;align-items:center;justify-content:space-between;gap:18px;min-height:44px;padding:0 16px;border:1px solid #dfc6d5;border-radius:13px;background:#fff;color:#5a5a5a;text-decoration:none;}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  body.character-showcase .exhibition-card>a {transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;}
  body.character-showcase .exhibition-card>a:hover {border-color:#c995ae;box-shadow:0 10px 26px #4d4d4d12;}
  body.character-showcase .portrait-dialog-rail button:hover:not([aria-current=true]) {background:#faf0f5;border-color:#e1ceda;}
}
@media(max-width:900px) {
  body.character-showcase .showcase-intro {grid-template-columns:minmax(0,1fr) 245px;gap:0 24px;}
  body.sfw-homes-page .homes-primary {gap:14px;}
  body.sfw-homes-page .house-information {padding:21px;}
  body.atelier-guide-page .customer-reading-title>.site-container {grid-template-columns:minmax(0,1fr) 245px;gap:24px;}
  body.atelier-guide-page .customer-guide-steps {grid-template-columns:1fr;}
  body.atelier-guide-page .customer-guide-steps li {display:grid;grid-template-columns:43px minmax(0,1fr);gap:0 18px;padding:21px;}
  body.atelier-guide-page .customer-guide-steps .customer-guide-number {grid-column:1;grid-row:1/4;}
  body.atelier-guide-page .customer-guide-steps :is(h2,p,a) {grid-column:2;}
}
@media(max-width:620px) {
  .gallery-breadcrumb {margin-bottom:20px;}
  .gallery-section-heading {display:block;margin-bottom:18px;}
  .gallery-section-heading p {margin-top:7px;}
  body.character-showcase .showcase-intro {display:block;padding-bottom:22px;margin-bottom:22px;}
  body.character-showcase .showcase-intro>.atelier-gallery-availability {margin-top:22px;padding:16px 18px;font-size:13px;}
  body.character-showcase .showcase-intro h1 {max-width:14ch;}
  body.character-showcase #studio-portrait-grid {gap:16px 12px;}
  body.character-showcase .exhibition-card>a {padding:6px;border-radius:18px;}
  body.character-showcase .r3-portrait-frame {padding:0;border-radius:5px;}
  body.character-showcase .r3-portrait-frame img {border-radius:4px;}
  body.character-showcase .exhibition-card-copy {padding:13px 4px 3px;gap:9px;}
  body.character-showcase .exhibition-card-copy strong {font-size:23px;}
  body.character-showcase .exhibition-card-copy>span {font-size:12px;min-height:32px;}
  body.character-showcase .portrait-editorial-mark {font-size:12px;}
  body.character-showcase .portrait-dialog-rail {gap:8px;margin-top:8px;}
  body.sfw-homes-page .homes-gallery {padding:7px;border-radius:16px;}
  body.sfw-homes-page .house-information {margin-top:14px;padding:22px;}
  body.sfw-homes-page .house-information h2 {margin-bottom:18px;}
  .atelier-room-heading {display:block;margin-top:28px;}
  .atelier-room-heading>p {margin-top:9px;max-width:none;}
  body.sfw-homes-page .house-related {gap:14px;}
  body.sfw-homes-page .house-furniture {padding:13px;gap:14px;}
  body.atelier-guide-page .customer-reading-title {padding:28px 0;}
  body.atelier-guide-page .customer-reading-title>.site-container {grid-template-columns:1fr;gap:23px;}
  body.atelier-guide-page .customer-reading-title h1 {font-size:38px;}
  .atelier-guide-note {padding:18px 20px;}
  .atelier-guide-note>svg {float:left;width:35px;height:35px;margin:0 12px 5px 0;}
  .atelier-guide-note strong {font-size:22px;}
  body.atelier-guide-page .atelier-guide-note>a {clear:both;margin-top:12px;}
  body.atelier-guide-page .customer-guide-steps li {grid-template-columns:36px minmax(0,1fr);gap:0 13px;padding:18px;}
  body.atelier-guide-page .customer-guide-steps .customer-guide-number {width:36px;height:36px;font-size:18px;}
  body.atelier-guide-page .customer-guide-steps h2 {font-size:23px;}
  body.atelier-guide-page .customer-guide-membership {padding:21px 22px;}
  body.atelier-guide-page .customer-guide-membership h2 {font-size:28px;}
  body.atelier-guide-page .customer-guide-section {padding-inline:17px;}
}
@media(prefers-reduced-motion:reduce) {
  body.character-showcase .exhibition-card>a {transition:none;transform:none;}
}
@media(forced-colors:active) {
  body.character-showcase .portrait-dialog-rail button[aria-current=true],body.sfw-homes-page .house-view-card[aria-pressed=true] {outline:2px solid Highlight;outline-offset:2px;}
  body.atelier-guide-page .customer-guide-steps .customer-guide-number {border-color:CanvasText;}
}
