/* Five distinct compositions. IDs remain stable for saved member profiles. */
body[data-theme=blue]{--blue:#1c327a;--paper:#f3f5fa;--surface:#fff;--muted:#68768c;--rule:#dce2ee}
body[data-theme=blue] .hero{gap:45px;align-items:stretch}
body[data-theme=blue] .hero-copy{padding:35px;background:#fff;border-top:4px solid var(--blue)}
body[data-theme=blue] .portrait{border-radius:6px;aspect-ratio:3/4}
body[data-theme=blue] .services{grid-template-columns:repeat(2,1fr)}
body[data-theme=blue] .service{border-radius:0;border-top:3px solid var(--blue)}
body[data-theme=forest]{--blue:#214e43;--paper:#f0f4ee;--surface:#fafcf8;--muted:#697e73;--rule:#cfddd1}
body[data-theme=forest] .hero{grid-template-columns:.9fr 1.1fr;gap:60px}
body[data-theme=forest] .portrait{order:-1;border-radius:220px 220px 12px 12px;aspect-ratio:4/5}
body[data-theme=forest] h1{font-family:SimSun,serif;font-weight:400}
body[data-theme=forest] .service{border-radius:24px;border:0;padding:32px}
body[data-theme=forest] .contact{border-radius:35px;background:#dfeae0;color:#214e43}
body[data-theme=forest] .contact p,body[data-theme=forest] .qr p{color:#61786b!important}
body[data-theme=forest] .brand img,body[data-theme=forest] footer>img{filter:grayscale(1) sepia(1) hue-rotate(90deg) saturate(1.6);mix-blend-mode:multiply}
body[data-theme=charcoal]{--blue:#e7d7b5;--paper:#171a20;--surface:#22262f;--muted:#a7aeba;--rule:#3b414d;--gold:#c6ad7e;color:#eceef2}
body[data-theme=charcoal] header{background:#171a20;border-color:#3b414d}
body[data-theme=charcoal] .brand img,body[data-theme=charcoal] footer>img{filter:grayscale(1) invert(1) brightness(3);mix-blend-mode:screen}
body[data-theme=charcoal] .hero{gap:45px}
body[data-theme=charcoal] h1{color:#fff;font-family:SimSun,serif;font-weight:400}
body[data-theme=charcoal] .portrait{border-radius:0;aspect-ratio:3/4;filter:none}
body[data-theme=charcoal] .services{grid-template-columns:1fr}
body[data-theme=charcoal] .service{display:grid;grid-template-columns:60px 220px 1fr;align-items:center;border-radius:0;border-width:0 0 1px;background:transparent;gap:20px}
body[data-theme=charcoal] .service h3{margin:0;color:#eceef2}
body[data-theme=charcoal] .contact{background:#22262f;border:1px solid #3b414d;color:#eceef2;border-radius:0}
body[data-theme=charcoal] .primary{background:#e7d7b5;color:#171a20}
body[data-theme=charcoal] .hero-copy>.role,body[data-theme=charcoal] .stat b,body[data-theme=charcoal] .timeline-row b{color:#e7d7b5}
body[data-theme=burgundy]{--blue:#7b354e;--paper:#faf1f2;--surface:#fff8f8;--muted:#916f7c;--rule:#e7ced7;--gold:#b6816e}
body[data-theme=burgundy] .hero{position:relative;grid-template-columns:1.15fr .85fr;gap:25px}
body[data-theme=burgundy] h1{font-family:SimSun,serif;font-size:78px;font-weight:400}
body[data-theme=burgundy] .hero-copy{padding:30px 0;border-left:3px solid #7b354e;padding-left:30px}
body[data-theme=burgundy] .portrait{border-radius:6px 110px 6px 6px;aspect-ratio:3/4;margin-top:40px}
body[data-theme=burgundy] .service{border:0;border-left:2px solid #b6816e;border-radius:0;background:transparent}
body[data-theme=burgundy] .brand img,body[data-theme=burgundy] footer>img{filter:grayscale(1) sepia(1) hue-rotate(295deg) saturate(2);mix-blend-mode:multiply}
body[data-theme=sand]{--blue:#6d563a;--paper:#efe7d9;--surface:#faf6ed;--muted:#8a7964;--rule:#d6c8b3;--gold:#ae8f5e}
body[data-theme=sand] .hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:30px;padding-top:35px}
body[data-theme=sand] .portrait{order:-1;width:300px;aspect-ratio:1;border-radius:50%;margin:0}
body[data-theme=sand] .portrait-label,body[data-theme=sand] .vertical{display:none}
body[data-theme=sand] .hero-copy{max-width:720px}
body[data-theme=sand] .intro{max-width:none}
body[data-theme=sand] .tags{justify-content:center}
body[data-theme=sand] h1{font-family:SimSun,serif;font-weight:400;letter-spacing:7px}
body[data-theme=sand] .services{grid-template-columns:repeat(2,1fr)}
body[data-theme=sand] .service{border:0;border-radius:14px;box-shadow:0 7px 20px #6d563a08}
body[data-theme=sand] .brand img,body[data-theme=sand] footer>img{filter:grayscale(1) sepia(1) saturate(1.2);mix-blend-mode:multiply}
body.customer[data-theme=sand] header{justify-content:center}
body.customer[data-theme=sand] .hero:has(.portrait[hidden]){display:flex}
@media(max-width:800px){
body[data-theme=blue] .hero-copy{padding:25px 20px;margin-top:-4px}
body[data-theme=blue] .hero{gap:0}
body[data-theme=blue] .portrait{aspect-ratio:4/3;border-radius:8px 8px 0 0}
body[data-theme=blue] .services{grid-template-columns:1fr}
body[data-theme=forest] .hero{gap:26px}
body[data-theme=forest] .portrait{max-width:290px;aspect-ratio:1;border-radius:50% 50% 12px 12px}
body[data-theme=forest] .hero-copy{padding:0 4px}
body[data-theme=forest] .service{padding:25px;border-radius:18px}
body[data-theme=charcoal] .hero-copy{border-top:1px solid #c6ad7e;padding-top:22px}
body[data-theme=charcoal] .portrait{aspect-ratio:4/3}
body[data-theme=charcoal] .service{display:block;padding:22px 0}
body[data-theme=charcoal] .service h3{margin:12px 0}
body[data-theme=burgundy] .hero{gap:20px}
body[data-theme=burgundy] .hero-copy{padding:10px 0 10px 18px}
body[data-theme=burgundy] .portrait{width:100%;margin-top:0;aspect-ratio:4/3;border-radius:4px 70px 4px 4px}
body[data-theme=burgundy] h1{font-size:48px}
body[data-theme=sand] .hero{gap:25px;text-align:center}
body[data-theme=sand] .portrait{width:220px;aspect-ratio:1;border-radius:50%}
body[data-theme=sand] .hero-copy{order:1}
body[data-theme=sand] .services{grid-template-columns:1fr}
body[data-theme=sand] .section-head{text-align:center;justify-content:center}
body.customer[data-theme=sand] .hero-copy{max-width:none}
}

body.customer[data-theme=charcoal] header{background:#171a20}
body.customer[data-theme=charcoal] header .brand img{filter:grayscale(1) invert(1) brightness(3);mix-blend-mode:screen}
body.customer[data-theme=charcoal] h1{color:#fff}
body.customer[data-theme=forest] header .brand img{filter:grayscale(1) sepia(1) hue-rotate(90deg) saturate(1.6);mix-blend-mode:multiply}
body.customer[data-theme=burgundy] header .brand img{filter:grayscale(1) sepia(1) hue-rotate(295deg) saturate(2);mix-blend-mode:multiply}
body.customer[data-theme=sand] header .brand img{filter:grayscale(1) sepia(1) saturate(1.2);mix-blend-mode:multiply}

/* Unified business profile: photo and copy are parts of one continuous card. */
body[data-theme=blue] .hero{
 display:grid;grid-template-columns:1.08fr 1fr;gap:0;align-items:stretch;
 margin:30px 0 42px;padding:0;background:#fff;border:1px solid #dce2ee;
 border-top:3px solid #1c327a;border-radius:12px;overflow:hidden;
 box-shadow:0 16px 45px #1c327a08;
}
body[data-theme=blue] .hero-copy{background:transparent;border:0;padding:48px 40px;min-width:0}
body[data-theme=blue] .portrait{width:100%;max-width:none;margin:0;border:0;border-radius:0;aspect-ratio:auto;min-height:100%;position:relative;background:#e6ebf1}
body[data-theme=blue] .portrait>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%}
body[data-theme=blue] .portrait:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#fff 0%,#ffffff70 7%,transparent 22%)}
body[data-theme=blue] .portrait-label{z-index:1;padding:26px 32px;background:linear-gradient(transparent,#162844cc)}
body[data-theme=blue] .vertical{display:none}
body[data-theme=blue] #placeholder{min-height:560px;background:linear-gradient(115deg,#f8faff,#dce4ee)}
body.customer[data-theme=blue] .hero{padding:0;gap:0}
body.customer[data-theme=blue] .hero:has(.portrait[hidden]){display:block}
body.customer[data-theme=blue] .hero:has(.portrait[hidden]) .hero-copy{max-width:none}
@media(max-width:800px){
 body[data-theme=blue] .hero{display:flex;flex-direction:column;margin:18px 0 30px;gap:0;border-radius:12px}
 body[data-theme=blue] .portrait{order:0;aspect-ratio:4/3;min-height:0;border-radius:0}
 body[data-theme=blue] .portrait:after{background:linear-gradient(0deg,#fff 0%,#ffffff40 7%,transparent 22%)}
 body[data-theme=blue] .hero-copy{order:1;margin:0;padding:26px 22px 30px}
 body[data-theme=blue] .portrait-label{padding:20px 22px;background:linear-gradient(transparent,#162844b0)}
 body[data-theme=blue] #placeholder{min-height:0;height:100%}
 body.customer[data-theme=blue] .hero{padding:0;gap:0}
}

/* Each complete profile keeps its theme through every section. */
body[data-theme=blue] .stats{background:#fff;padding:30px 20px;border-radius:10px;border:1px solid #dce2ee}
body[data-theme=blue] .contact{border-radius:12px;background:#1c327a}
body[data-theme=forest] .stats{border:0;background:#e4eee3;border-radius:28px;padding:30px 20px}
body[data-theme=forest] .section-head h2{font-family:SimSun,serif;font-weight:400}
body[data-theme=forest] .timeline-row{border-left:2px solid #9db59f;border-bottom:0;padding-left:24px;margin-bottom:14px}
body[data-theme=forest] .gallery img{border-radius:22px}
body[data-theme=charcoal] .section-head{border-bottom:1px solid #3b414d;padding-bottom:24px}
body[data-theme=charcoal] .stats{border-block:1px solid #c6ad7e;padding:32px 0}
body[data-theme=charcoal] .gallery img{border-radius:0;filter:none}
body[data-theme=charcoal] .timeline-row{padding:25px 0;border-bottom:1px solid #3b414d}
body[data-theme=charcoal] .section-head h2{font-weight:400}
body[data-theme=burgundy] .stats{border-block:0;gap:14px}
body[data-theme=burgundy] .stat{background:#fff8f8;border:1px solid #e7ced7;padding:24px!important}
body[data-theme=burgundy] .section-head h2{font-family:SimSun,serif;font-weight:400;font-size:30px}
body[data-theme=burgundy] #timeline{display:grid;grid-template-columns:1fr 1fr;gap:18px}
body[data-theme=burgundy] .timeline-row{display:block;border-top:2px solid #7b354e;background:#fff8f8;padding:24px}
body[data-theme=burgundy] .timeline-row p{margin-top:15px}
body[data-theme=burgundy] .contact{border-radius:0;background:#7b354e}
body[data-theme=sand] .stats{gap:16px;border:0}
body[data-theme=sand] .stat{border:0;background:#faf6ed;text-align:center;padding:28px 15px!important;border-radius:12px}
body[data-theme=sand] .section-head{justify-content:center;text-align:center}
body[data-theme=sand] .section-head>p{display:none}
body[data-theme=sand] .section-head h2{font-family:SimSun,serif;font-weight:400}
body[data-theme=sand] .contact{display:flex;flex-direction:column;align-items:center;text-align:center;background:#faf6ed;color:#6d563a;border:1px solid #d6c8b3;border-radius:24px}
body[data-theme=sand] .contact p{color:#8a7964!important}
body[data-theme=sand] #contact-links{justify-content:center}
body[data-theme=sand] .qr{align-self:center}
.profile-theme-options{display:grid!important;grid-template-columns:1fr 1fr;gap:12px}
.profile-theme-options .profile-template{display:block;padding:10px;text-align:left;border:1px solid #dce1e9;background:#fff;border-radius:9px}
.profile-theme-options .profile-template:before{display:none}
.profile-template>span{display:block;font-size:12px;color:#24324b;margin-top:10px}
.profile-template>small{display:block;font-size:9px;color:#7a8699;margin-top:5px;line-height:1.5}
.template-miniature{height:150px;position:relative;overflow:hidden;background:#f2f5fa;color:#1c327a;border-radius:4px;padding:12px;display:grid;grid-template-columns:1fr .8fr;gap:6px}
.template-photo{background:#bccbdc;border-radius:2px;overflow:hidden}
.template-photo img{width:100%;height:100%;object-fit:cover}
.template-copy{align-self:center;min-width:0}.template-copy b{font-size:9px;font-weight:400;display:block;overflow:hidden;white-space:nowrap}
.template-copy i{height:3px;background:currentColor;opacity:.3;display:block;margin-top:7px;width:90%}.template-copy i:last-child{width:60%}
.template-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:5px}
.template-grid i{background:currentColor;opacity:.08;min-height:13px}
[data-template=blue] .template-photo{order:1}[data-template=blue] .template-copy{order:0}[data-template=blue] .template-grid{order:2}
[data-template=forest] .template-miniature{background:#edf3e9;color:#214e43}
[data-template=forest] .template-photo{border-radius:45px 45px 2px 2px;background:#b4c8b2}
[data-template=forest] .template-grid i{border-radius:8px}
[data-template=charcoal] .template-miniature{background:#171a20;color:#e7d7b5}
[data-template=charcoal] .template-photo{background:#6c7078;filter:none}
[data-template=charcoal] .template-grid{grid-template-columns:1fr}
[data-template=burgundy] .template-miniature{background:#faf1f2;color:#7b354e;border-left:3px solid #7b354e}
[data-template=burgundy] .template-photo{order:1;border-radius:2px 20px 2px 2px;background:#cbb2bb}
[data-template=burgundy] .template-copy{order:0}[data-template=burgundy] .template-grid{order:2}
[data-template=sand] .template-miniature{background:#efe7d9;color:#6d563a;display:flex;flex-direction:column;align-items:center;text-align:center}
[data-template=sand] .template-photo{width:52px;height:52px;flex:none;border-radius:50%;background:#c7b79e}
[data-template=sand] .template-copy{width:85%;align-self:center}
[data-template=sand] .template-copy i{margin:5px auto 0}
[data-template=sand] .template-grid{width:100%;height:30px}
@media(max-width:800px){
body[data-theme=burgundy] #timeline{grid-template-columns:1fr}
body[data-theme=burgundy] .section-head h2{font-size:23px}
body[data-theme=blue] .stats,body[data-theme=forest] .stats{padding:24px 10px}
body[data-theme=sand] .stats{gap:12px}
}

.gallery.proportional-gallery{display:flex;flex-direction:column;gap:8px;background:var(--surface,#fff);border:1px solid var(--rule,#dce2ee);padding:8px;border-radius:14px}
.gallery.proportional-gallery:empty{display:none}
.gallery-row{display:flex;gap:8px;align-items:stretch;width:100%}
.gallery-row figure{flex-basis:0;min-width:0;margin:0;position:relative;overflow:hidden;border-radius:7px;max-height:520px}
.gallery.proportional-gallery .gallery-row img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;display:block;border-radius:0}
body[data-theme=charcoal] .gallery.proportional-gallery img{filter:none}
body[data-theme=charcoal] .gallery.proportional-gallery{border-radius:0}
body[data-theme=forest] .gallery.proportional-gallery{border-radius:20px}
@media(max-width:800px){.gallery-row{gap:5px}.gallery.proportional-gallery{gap:5px;padding:5px}.gallery-row figure{max-height:360px;border-radius:5px}}

.profile-album{margin-top:32px}.profile-album h3{font-size:19px;font-weight:500;color:var(--blue);margin:0 0 10px}.profile-album>p{font-size:14px;line-height:1.9;color:var(--muted);white-space:pre-line}.profile-album .album-photos:empty{display:none}

.about-module-title{font-size:18px;font-weight:500;margin:24px 0 14px;color:var(--blue)}.section-head h2,.contact h2{white-space:pre-line}.section-head>p{white-space:pre-line}.module-rich-text{font-size:14px;line-height:1.95;color:var(--muted)}.module-rich-text p{margin:0 0 12px}.module-rich-text strong{color:var(--blue);font-weight:600}.module-badge{font-size:10px;padding:4px 10px;background:var(--paper);color:var(--muted);display:inline-block;border-radius:20px;margin:0 0 12px}.module-bullet{padding-left:12px}.custom-module .stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.module-timeline .timeline-row p{white-space:pre-line}.module-rich-text:empty{display:none}
@media(max-width:800px){.custom-module .stats{grid-template-columns:repeat(2,1fr)}.about-module-title{font-size:17px}.module-rich-text{font-size:14px}}

body[data-theme=charcoal] .custom-module .service{grid-template-columns:52px 1fr}body[data-theme=charcoal] .custom-module .service>.module-rich-text,body[data-theme=charcoal] .custom-module .service>.module-badge{grid-column:2}.custom-module .module-rich-text p{line-height:1.9}

.module-empty-hint{padding:24px;border:1px dashed var(--rule);border-radius:8px;color:var(--muted);font-size:14px;line-height:1.9;background:var(--surface)}
