/* v0.3 · owner art direction, draft publishing, page-specific composition */
.skip-to-content{position:fixed;top:-100px;left:16px;z-index:200;padding:13px 17px;background:var(--ink);color:var(--surface);border-radius:8px}.skip-to-content:focus{top:12px}
.topnav{max-width:40vw;overflow-x:auto;scrollbar-width:none;white-space:nowrap;min-width:0}.topnav::-webkit-scrollbar{display:none}.topnav a[aria-current='page']{opacity:1;color:var(--accent)}
.design-release{background:linear-gradient(112deg,#1a1321,#2b1a32 62%,#422238);color:#fff;display:flex;justify-content:space-between;gap:25px;border-radius:22px;padding:30px;margin:22px 0 18px;position:relative;overflow:hidden;box-shadow:0 15px 40px #1008182b}
.design-release:after{content:'✳';font-size:188px;color:#ff5daf;opacity:.1;position:absolute;right:13%;top:-69px;pointer-events:none;transform:rotate(14deg)}
.release-copy,.release-actions{z-index:1;position:relative}.release-copy{max-width:650px}.release-copy h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(23px,2.9vw,37px);letter-spacing:-.045em;margin:12px 0 7px}.release-copy p{line-height:1.6;color:#e9dce9;font-size:12px;margin:0 0 12px}.release-copy small{font-size:10px;color:#d7bbce}.release-pill{display:inline-flex;align-items:center;font-size:10px;font-weight:900;letter-spacing:.05em;border:1px solid #ffffff44;padding:7px 10px;border-radius:20px}.release-pill.pending{color:#ffd06c}.release-pill.synced{color:#a9f0d4}.release-actions{display:grid;gap:9px;align-content:center;flex-shrink:0;min-width:196px}.release-actions .btn{width:100%;justify-content:center}.design-release .btn.dark{background:#fff;color:#221627}.design-release .btn.outline{border-color:#ffffff70;color:#fff}
.page-studio-panel{gap:17px}.page-studio-panel .setting-stack{margin:0}.page-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.page-studio-panel .setting-footnote{margin-bottom:3px}
.page-design-preview{padding:14px;border:1px solid var(--stroke);border-radius:14px;display:flex;align-items:center;gap:16px;background:var(--bg)}.mini-page-tile{width:135px;min-height:95px;flex-shrink:0;border-radius:10px;background:var(--tile-bg);color:var(--tile-ink);padding:12px;display:flex;flex-direction:column;align-items:start;position:relative;overflow:hidden}.mini-page-tile span{font-size:12px;font-weight:1000;font-style:italic;letter-spacing:-.06em}.mini-page-tile b{font-family:Georgia,serif;font-size:21px;font-weight:400;line-height:1.1;margin:auto 0 5px;max-width:120px}.mini-page-tile i{height:7px;width:50px;border-radius:20px;background:var(--tile-accent)}.page-design-preview>div:last-child{display:grid;gap:8px}.page-design-preview strong{font-size:14px}.page-design-preview p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}
.nav-editor{padding:14px 18px}.nav-editor>.setting-footnote{margin:0 0 12px}.nav-edit-row{display:flex;align-items:center;gap:9px;padding:10px 2px;border-top:1px solid var(--stroke)}.nav-number{font-size:10px;color:var(--muted);font-weight:900;width:21px;flex-shrink:0}.nav-edit-row input[type='text'],.nav-edit-row input:not([type]){min-width:0;flex:1;max-width:340px}.nav-edit-row .order-arrow{flex-shrink:0}.nav-visibility{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:var(--muted);white-space:nowrap}.nav-visibility input{accent-color:var(--accent);width:17px;height:17px}
.draft-preview-ribbon{position:sticky;top:0;z-index:50;min-height:51px;padding:9px 29px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#1a1423;color:#fff;box-shadow:0 4px 16px #0003}.draft-preview-ribbon>span{font-size:12px;font-weight:900;letter-spacing:.03em}.draft-preview-ribbon>div{display:flex;align-items:center;gap:8px}.draft-preview-ribbon .btn.outline{color:#fff;border-color:#ffffff7a}.draft-preview-ribbon .btn.dark{background:#fff;color:#1a1423}.draft-preview-ribbon .btn{font-size:11px}
body:has(.draft-preview-ribbon) .topbar{top:51px}
/* The page-level theme is applied as CSS tokens. The page layout changes the arrangement, not data. */
.heading-has-cover{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,36%);align-items:stretch;gap:18px;min-height:205px;padding:0!important;overflow:hidden;background:var(--surface);border-radius:var(--round);border:1px solid var(--stroke);margin-bottom:24px!important}
.heading-has-cover>div:first-child{padding:30px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:1}.page-cover{min-height:225px;background-position:center 35%;background-size:cover;position:relative}.page-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--surface),transparent 30%)}
[data-page-layout='gallery'] .standard-page .heading{background:var(--soft);padding:25px 28px;border-radius:calc(var(--round) + 6px);margin-bottom:28px;min-height:224px;display:flex;align-items:center}
[data-page-layout='gallery'] .standard-page .heading h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(44px,6.5vw,83px);line-height:1;max-width:690px;letter-spacing:-.07em;font-weight:400}
[data-page-layout='gallery'] .standard-page .heading-has-cover{display:grid;grid-template-columns:minmax(0,1fr) 44%;padding:0}
[data-page-layout='gallery'] .standard-page .posts-grid{grid-template-columns:1fr}
[data-page-layout='gallery'] .standard-page .post-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,42%);grid-template-rows:auto 1fr auto;min-height:292px}
[data-page-layout='gallery'] .standard-page .post-card .post-media,[data-page-layout='gallery'] .standard-page .post-card .text-poster{grid-column:2;grid-row:1/4;height:100%;min-height:280px}
[data-page-layout='gallery'] .standard-page .post-card .post-actions{grid-column:1;grid-row:3}
[data-page-layout='gallery'] .standard-page .post-card .post-content{grid-column:1;grid-row:2}
[data-page-layout='gallery'] .standard-page .post-card .post-meta{grid-column:1;grid-row:1}
[data-page-layout='gallery'] .standard-page .people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-page-layout='gallery'] .standard-page .person-photo{height:240px}
[data-page-layout='gallery'] .standard-page .group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-page-layout='minimal'] .standard-page .heading{padding:10px 0 28px;border-radius:0;background:transparent;border-bottom:1px solid var(--ink);margin-bottom:30px}
[data-page-layout='minimal'] .standard-page .heading h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.075em;max-width:700px}
[data-page-layout='minimal'] .standard-page .heading-has-cover{border:1px solid var(--stroke);border-radius:3px;display:grid;grid-template-columns:1fr 33%;padding:0}
[data-page-layout='minimal'] .standard-page .post-card,[data-page-layout='minimal'] .standard-page .person-card,[data-page-layout='minimal'] .standard-page .event-card{border-radius:3px;box-shadow:none}
[data-page-layout='minimal'] .standard-page .posts-grid{gap:10px}
[data-page-layout='minimal'] .standard-page .person-card-body h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}
[data-page-layout='minimal'] .standard-page .section-head h2{font-family:Georgia,'Times New Roman',serif;font-weight:400}
[data-page-layout='minimal'] .standard-page .group-card{border-radius:4px}
/* Homepage hero art direction: no effect on content or underlying routes */
.hero-photo{background-position:var(--hero-position) 43%}
[data-hero-composition='visual-first'] .hero{grid-template-columns:44% 56%;min-height:455px}
[data-hero-composition='visual-first'] .hero-copy{padding:37px 0 28px 30px}
[data-hero-composition='visual-first'] .hero-copy h1{font-size:clamp(38px,3.7vw,62px)}
[data-hero-composition='visual-first'] .hero-photo{inset:-10px -3px -10px -35px;background-position:var(--hero-position) 43%}
[data-hero-composition='copy-first'] .hero{grid-template-columns:68% 32%;min-height:440px}
[data-hero-composition='copy-first'] .hero-copy{padding:44px 28px 30px 42px}
[data-hero-composition='copy-first'] .hero-copy h1{font-size:clamp(46px,4.3vw,71px)}
[data-hero-composition='copy-first'] .hero-photo{inset:-5px -8px -5px -32px;background-position:var(--hero-position) 43%}
/* Highlight demo owner controls without suggesting authenticated privileges */
.theme-card.selected{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 25%,transparent),var(--shadow)}
.studio-side-card .snapshot-list{max-height:350px;overflow:auto}
@media(max-width:1120px){.design-release{padding:24px;gap:14px}.release-actions{min-width:175px}.topnav{max-width:32vw}}
@media(max-width:830px){.design-release{flex-direction:column}.release-actions{display:flex;flex-wrap:wrap}.release-actions .btn{width:auto;flex:1;min-width:150px}.draft-preview-ribbon{padding:9px 15px}}
@media(max-width:600px){
 .design-release{padding:19px;border-radius:17px}.design-release:after{right:-16%;top:-34px;font-size:160px}.release-copy h2{font-size:29px}
 .release-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.release-actions .btn{min-width:0;font-size:10px}.release-actions .btn:last-child{grid-column:1/-1}
 .page-settings-grid{grid-template-columns:1fr}.page-design-preview{gap:9px}.mini-page-tile{width:103px;padding:9px}.mini-page-tile b{font-size:17px}
 .nav-edit-row{gap:5px}.nav-number{display:none}.nav-edit-row input[type='text'],.nav-edit-row input:not([type]){width:100px}.nav-visibility span{display:none}.nav-edit-row .order-arrow{width:30px;height:34px}
 .draft-preview-ribbon{align-items:start;flex-direction:column;padding:7px 11px;gap:5px}.draft-preview-ribbon>div{width:100%;gap:5px}.draft-preview-ribbon .btn{flex:1;min-width:0;font-size:9px;padding:7px 6px;min-height:30px}.draft-preview-ribbon>span{font-size:10px}
 body:has(.draft-preview-ribbon) .topbar{top:72px}
 .heading-has-cover,[data-page-layout='gallery'] .standard-page .heading-has-cover,[data-page-layout='minimal'] .standard-page .heading-has-cover{grid-template-columns:1fr;min-height:0}.heading-has-cover>div:first-child{padding:25px 22px}.page-cover{min-height:150px;max-height:220px}.page-cover:after{background:linear-gradient(0deg,transparent,var(--surface))}
 [data-page-layout='gallery'] .standard-page .heading h1{font-size:47px}
 [data-page-layout='gallery'] .standard-page .post-card{display:block;min-height:0}
 [data-page-layout='gallery'] .standard-page .post-card .post-media,[data-page-layout='gallery'] .standard-page .post-card .text-poster{height:220px;min-height:0}
 [data-page-layout='gallery'] .standard-page .people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 [data-page-layout='gallery'] .standard-page .person-photo{height:180px}
 [data-hero-composition='visual-first'] .hero,[data-hero-composition='copy-first'] .hero{grid-template-columns:1fr;min-height:495px}
 [data-hero-composition='visual-first'] .hero-copy,[data-hero-composition='copy-first'] .hero-copy{padding:26px 22px 30px;min-height:495px}
 [data-hero-composition='visual-first'] .hero-copy h1,[data-hero-composition='copy-first'] .hero-copy h1{font-size:clamp(41px,9vw,59px)}
 [data-hero-composition='visual-first'] .hero-photo,[data-hero-composition='copy-first'] .hero-photo{inset:0}
}

/* Browser-local uploaded hero art (compressed JPEG, never transmitted) */
[data-hero='custom'] .hero-photo{background-image:linear-gradient(90deg,var(--hero) 0%,transparent 46%),var(--custom-hero-image)!important;background-size:cover!important;background-position:var(--hero-position) center!important}
#hero-upload{font-size:12px;padding:10px}#hero-upload::file-selector-button{border:1px solid var(--stroke);background:var(--soft);color:var(--ink);border-radius:50px;padding:8px 12px;cursor:pointer;margin-right:9px}
/* Bespoke homepage compositions (in addition to global hero emphasis). */
[data-page='home'][data-page-layout='gallery'] .hero{min-height:530px;grid-template-columns:1fr;background:#181122}
[data-page='home'][data-page-layout='gallery'] .hero-visual{grid-area:1/1;min-height:530px}
[data-page='home'][data-page-layout='gallery'] .hero-photo{inset:0;background-position:var(--hero-position) 34%!important;background-size:cover}
[data-page='home'][data-page-layout='gallery'] .hero-copy{grid-area:1/1;max-width:70%;padding:52px 30px 39px 49px;background:linear-gradient(90deg,#181020f5 0%,#181020bb 68%,transparent 100%);z-index:4}
[data-page='home'][data-page-layout='gallery'] .hero-copy h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.06em;font-size:clamp(50px,5.2vw,79px);color:#fff;line-height:1.02}
[data-page='home'][data-page-layout='gallery'] .hero-copy p,[data-page='home'][data-page-layout='gallery'] .hero-bottom-note{color:#f5e7f1}
[data-page='home'][data-page-layout='gallery'] .hero .btn.outline{border-color:#f6e7f0;color:#fff}
[data-page='home'][data-page-layout='gallery'] .category-tile{min-height:114px;border-radius:7px}
[data-page='home'][data-page-layout='minimal'] .hero{grid-template-columns:60% 40%;min-height:440px;background:var(--surface);border:1px solid var(--stroke);border-radius:2px;box-shadow:none}
[data-page='home'][data-page-layout='minimal'] .hero-copy{padding:53px 20px 42px 39px}
[data-page='home'][data-page-layout='minimal'] .hero-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(48px,4.2vw,74px);font-weight:400;letter-spacing:-.072em;color:var(--ink)}
[data-page='home'][data-page-layout='minimal'] .hero-copy p,[data-page='home'][data-page-layout='minimal'] .hero-bottom-note{color:var(--muted)}
[data-page='home'][data-page-layout='minimal'] .hero-visual .hero-photo{inset:0;background-image:url('../assets/images/hero-clean.webp');background-position:var(--hero-position) 40%;filter:grayscale(1)}
[data-page='home'][data-page-layout='minimal'] .hero-sticker{display:none}
[data-page='home'][data-page-layout='minimal'] .hero .btn.outline{border-color:var(--ink);color:var(--ink)}
[data-page='home'][data-page-layout='minimal'] .category-tile{border-radius:2px;background:var(--surface);border:1px solid var(--stroke);min-height:115px}
[data-page='home'][data-page-layout='minimal'] .small-intro p{font-family:Georgia,serif;font-size:20px}
[data-page='home'][data-page-layout='minimal'] .section-head h2{font-family:Georgia,serif;font-weight:400}
@media(max-width:600px){
 [data-page='home'][data-page-layout='gallery'] .hero{min-height:525px;grid-template-columns:1fr}
 [data-page='home'][data-page-layout='gallery'] .hero-visual{position:absolute;inset:0;top:0;right:0;bottom:0;width:100%;opacity:1}
 [data-page='home'][data-page-layout='gallery'] .hero-copy{grid-area:1/1;min-height:525px;max-width:none;padding:30px 22px 24px;background:linear-gradient(180deg,#181020f9 0%,#181020c9 55%,#18102060 100%);z-index:5}
 [data-page='home'][data-page-layout='gallery'] .hero-copy h1{font-size:clamp(44px,10vw,62px)}
 [data-page='home'][data-page-layout='gallery'] .hero-copy p{max-width:300px}
 [data-page='home'][data-page-layout='minimal'] .hero{grid-template-columns:1fr;min-height:495px}
 [data-page='home'][data-page-layout='minimal'] .hero-copy{padding:30px 22px;min-height:495px}
 [data-page='home'][data-page-layout='minimal'] .hero-copy h1{font-size:clamp(45px,10vw,60px)}
 [data-page='home'][data-page-layout='minimal'] .hero-visual{top:46%;width:57%;opacity:.6}
}
[data-page='home'][data-page-layout='minimal'][data-hero='custom'] .hero-visual .hero-photo{background-image:var(--custom-hero-image)!important}

/* v0.14: owner media operations and server-clock recurring appearances */
.studio-schedule-form{display:grid;gap:12px;margin:14px 0}
.studio-schedule-hours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.studio-schedule-form input{width:100%;min-width:0}
.studio-schedule-status{border:1px solid var(--stroke);background:var(--soft);padding:10px 12px;border-radius:12px;font-weight:700}
.studio-schedule-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.server-asset-grid .server-asset{padding:7px;display:flex;flex-direction:column;min-width:0}
.server-asset-grid .studio-asset-select{background:transparent;border:0;padding:0;cursor:pointer;text-align:left;color:inherit;width:100%}
.server-asset-grid .studio-asset-select img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:8px}
.studio-asset-select b{display:block;overflow-wrap:anywhere;font-size:12px;margin:4px 0}
.studio-asset-actions{display:flex;gap:4px;flex-wrap:wrap}
.studio-asset-actions button{font-size:11px;padding:6px;border:1px solid var(--stroke);border-radius:7px;background:var(--surface);color:var(--ink);cursor:pointer}
@media(max-width:500px){.studio-schedule-hours{grid-template-columns:1fr}.studio-schedule-buttons .btn{flex:1 1 140px}}

/* v0.47: readable, keyboard-independent review of draft versus local publication. */
.design-change-summary{margin-top:12px;padding:12px 14px;border-radius:12px;background:#ffffff12;border:1px solid #ffffff38;max-width:560px}
.design-change-summary strong{font-size:12px;font-weight:800;color:#fff;letter-spacing:.01em}
.design-change-summary ul{display:flex;flex-wrap:wrap;gap:5px 8px;margin:10px 0 0;padding:0;list-style:none}
.design-change-summary li{font-size:11px;line-height:1.45;padding:5px 8px;border-radius:9px;border:1px solid #ffffff3b;color:#fff0f7;background:#ffffff12}
@media(max-width:550px){.design-change-summary{padding:11px}.design-change-summary li{font-size:10px}}
