/* In-person calendar: cream paper, raspberry binding, and quiet jewel details. */
.markets-page{background:var(--stripe-paper);border-block:2px solid var(--purple)}
.market-shell{max-width:1120px;padding:54px 5% 72px}
.market-heading{text-align:center;position:relative;margin-bottom:42px}
.market-heading-jewel{margin:0 auto 18px;object-fit:contain;transform:rotate(-10deg)}
.market-heading h1{color:var(--rose);font-size:clamp(34px,4.6vw,60px);line-height:1.08;margin:14px 0 20px}
.market-heading .page-lead{font:600 clamp(23px,2.5vw,29px)/1.35 var(--editorial);margin:0}
.market-section-heading h2{font:400 clamp(22px,2.5vw,30px)/1.2 var(--display);margin:0 0 12px;text-transform:uppercase}
.market-section-heading>p:not(.eyebrow){font:500 24px/1.3 var(--editorial);margin:0}
.market-calendar-section>.market-section-heading{text-align:center;margin-bottom:26px}
.market-calendar-layout{display:grid;grid-template-columns:1.05fr 1fr;border:2px solid var(--purple);border-radius:24px;overflow:hidden;background:var(--paper)}
.market-calendar{min-width:0;padding:0 24px 18px;border-right:1px solid var(--purple)}
.market-calendar-top{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--rose);color:var(--stripe-paper);margin:0 -24px 12px;padding:18px 16px;border-bottom:2px solid var(--purple)}
.market-calendar-top h3{font:600 clamp(23px,2.6vw,30px)/1.2 var(--editorial);margin:0;text-align:center}
.market-calendar-top button{background:transparent;color:inherit;border:1px solid #fef4e866;border-radius:50%;width:40px;height:40px;flex:0 0 40px;font-size:24px;line-height:1;transition:background .2s,transform .2s}
.market-calendar-top button:hover{background:var(--purple);transform:scale(1.07)}
.market-month-table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:center;font:500 15px/1.2 var(--sans)}
.market-month-table th{height:32px;font-weight:500;color:var(--muted);font-size:12px}
.market-month-table td{height:48px;padding:3px 0}
.market-day{display:grid;place-items:center;border:0;background:transparent;color:var(--purple);height:38px;width:38px;margin:auto;border-radius:50%;font:inherit}
.market-day[aria-current=date]{outline:1px solid var(--rose);outline-offset:2px}
button.market-day{background:var(--pink);border:1px solid var(--rose);font-weight:600;position:relative;transition:transform .2s,background .2s}
button.market-day::after{content:"";position:absolute;width:5px;height:5px;bottom:3px;border-radius:50%;background:var(--rose)}
button.market-day:hover{transform:scale(1.12)}
button.market-day[aria-pressed=true]{background:var(--purple);color:var(--paper)}
button.market-day[aria-pressed=true]::after{background:var(--pink)}
.market-calendar-key{border-top:1px solid var(--border);padding-top:14px;margin-top:10px;display:flex;align-items:center;justify-content:space-between;font:400 12px/1.4 var(--sans);gap:8px}
.market-calendar-key span{display:inline-flex;align-items:center;gap:7px}
.market-key-dot{width:10px;height:10px;border-radius:50%;background:var(--pink);border:1px solid var(--rose)}
.market-calendar-key button,#market-clear-day{font:500 13px/1.4 var(--sans);color:var(--purple);padding:6px 0;background:none;border:0;text-decoration:underline;text-underline-offset:4px}
.market-month-details{padding:32px;align-self:center}
.market-month-details>.eyebrow{color:var(--rose);margin:0 0 12px}
.market-month-details h3{font:600 32px/1.15 var(--editorial);margin:0 0 18px}
.market-month-details p,.market-empty{font:500 23px/1.4 var(--editorial)}
.market-month-details p{margin:0 0 16px}
.market-empty-link{font:600 21px/1.4 var(--editorial);text-decoration:underline;text-underline-offset:4px}
.market-future-section{padding:40px 0;margin-top:30px;border-bottom:1px solid var(--purple)}
.market-future-section .eyebrow{color:var(--rose);margin:0 0 10px}
.market-future-events{margin-top:24px}
.market-empty{margin:0;max-width:50ch}
.market-event{padding:20px 0;border-top:1px solid var(--border)}
.market-event:first-child{border-top:0;padding-top:0}
.market-event time{font:600 13px/1.4 var(--sans);color:var(--rose)}
.market-event h4{font:600 28px/1.2 var(--editorial);margin:8px 0}
.market-event p{font:400 15px/1.6 var(--sans);margin:3px 0}
.market-event a{display:inline-block;margin-top:10px;text-decoration:underline;text-underline-offset:4px;font:600 19px/1.3 var(--editorial)}
.market-studio{display:flex;gap:28px;align-items:center;background:var(--pink);border:2px solid var(--purple);border-radius:26px;padding:36px 40px;margin-top:40px}
.market-studio>img{object-fit:contain;flex-shrink:0}
.market-studio h2{font:400 clamp(22px,2.5vw,29px)/1.2 var(--display);margin:8px 0 18px;text-transform:uppercase}
.market-studio p:not(.eyebrow){font:500 24px/1.35 var(--editorial);max-width:40ch;margin:0 0 22px}
.market-studio .eyebrow{margin:0}
.market-studio .button{font:600 22px/1.2 var(--editorial)}
@media(max-width:760px){.market-calendar-layout{grid-template-columns:1fr}.market-calendar{border-right:0;border-bottom:1px solid var(--purple)}.market-month-details{padding:28px}.market-studio{padding:28px;gap:16px}.market-studio>img{width:70px;height:auto}.market-shell{padding:36px 6% 48px}}
@media(max-width:420px){.market-calendar{padding-inline:16px}.market-calendar-top{margin-inline:-16px}.market-day{width:32px;height:32px}.market-month-table td{height:42px}.market-studio{display:block}.market-studio>img{margin-bottom:20px}.market-heading h1{font-size:34px}.market-calendar-top h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.market-calendar-top button,button.market-day{transition:none}}
body.motion-paused .market-calendar-top button,body.motion-paused button.market-day{transition:none}

/* A compact calendar and a prominent studio invitation, with stitched details. */
.market-shell{max-width:1100px;padding-top:26px;padding-bottom:42px}
.market-heading{margin-bottom:28px}
.market-heading>.eyebrow{margin:0 0 10px}
.market-heading h1{display:flex;align-items:center;justify-content:center;gap:20px;margin:8px 0 12px;font-size:clamp(30px,4vw,48px)}
.market-heading h1 img{width:42px;height:42px;object-fit:contain;transform:rotate(-14deg)}
.market-heading h1 img:last-child{transform:rotate(14deg)}
.market-heading .page-lead{font-size:24px}
.market-heading .page-lead a{text-decoration:underline;text-underline-offset:4px}
.market-planner{display:grid;grid-template-columns:1.1fr 1fr;gap:22px 30px;align-items:stretch}
.market-calendar-section,.market-calendar-layout{display:contents}
.market-calendar-section>.market-section-heading{grid-column:1/-1;grid-row:1;text-align:left;margin:0}
.market-section-heading h2{font-size:24px;margin-bottom:6px}
.market-section-heading>p:not(.eyebrow){font-size:22px}
.market-calendar{grid-column:1;grid-row:2;border:2px solid var(--purple);border-radius:22px;background:var(--paper);overflow:hidden;box-shadow:5px 5px 0 var(--pink)}
.market-calendar-top{padding-block:15px}
.market-month-table td{height:44px}
.market-calendar-key{margin-top:7px;padding-top:10px}
.market-studio{grid-column:2;grid-row:2;margin:0;position:relative;display:flex;flex-direction:column;justify-content:center;gap:8px;text-align:center;padding:28px 32px;border-radius:42px 18px 42px 18px;box-shadow:5px 5px 0 #b84c652b}
.market-studio::before{content:"";position:absolute;inset:9px;border:1px dashed #47254f66;border-radius:32px 10px 32px 10px;pointer-events:none}
.market-studio>img{width:86px;height:58px;transform:rotate(-9deg);margin-bottom:4px}
.market-studio h2{font-size:30px;margin:12px 0 14px;line-height:1.12;color:var(--purple)}
.market-studio p:not(.eyebrow){font-size:22px;line-height:1.3;margin:0 0 22px}
.market-studio .button{position:relative;isolation:isolate;background:transparent;border:0;border-radius:0;font-size:21px;padding:17px 27px}
.market-studio .button::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--purple);mask:url('assets/scalloped-filter.svg') center/100% 100% no-repeat;-webkit-mask:url('assets/scalloped-filter.svg') center/100% 100% no-repeat}
.market-studio .button:hover::before{background:#61366b}
.market-month-details{grid-column:1/-1;grid-row:3;padding:16px 0 0}
.market-month-details>.eyebrow{font:500 12px/1.5 var(--sans);letter-spacing:.08em;margin-bottom:7px}
.market-month-details h3{font:400 clamp(24px,2.5vw,30px)/1.2 var(--display);text-transform:uppercase;margin-bottom:16px}
#market-month-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#market-month-events>.market-event{border:1px solid #b84c6555;border-radius:16px;padding:18px 22px;background:var(--paper)}
#market-month-events>.market-event h4{font-size:26px}
#market-month-events>.market-event p{font:400 15px/1.6 var(--sans);margin:3px 0}
#market-month-events>p,#market-month-events>.market-empty-link{grid-column:1/-1;margin:0}
.market-future-section{margin-top:26px;padding:26px 0 6px;border-top:1px solid var(--purple);border-bottom:0}
.market-future-events{margin-top:18px}
button.market-day::after{width:12px;height:12px;right:-3px;bottom:-1px;background:url('assets/jewel-star-v2.png') center/contain no-repeat;border-radius:0}
button.market-day[aria-pressed=true]::after{background:url('assets/jewel-star-v2.png') center/contain no-repeat}
@media(max-width:760px){.market-shell{padding-top:24px}.market-planner{gap:20px;grid-template-columns:1fr}.market-calendar{grid-column:1;grid-row:2}.market-studio{grid-column:1;grid-row:3;padding:26px 30px;flex-direction:row;gap:24px;text-align:left}.market-studio>img{width:76px;height:51px}.market-studio h2 br{display:none}.market-studio h2{font-size:26px}.market-studio p:not(.eyebrow){font-size:22px}.market-month-details{grid-row:4}.market-heading h1{gap:10px;font-size:32px}.market-heading h1 img{width:28px;height:28px}.market-heading .page-lead{font-size:22px}}
@media(max-width:480px){.market-heading h1{gap:8px;font-size:28px}.market-heading h1 img{width:23px;height:23px}.market-heading h1 img:last-child{display:none}.market-studio{display:block;text-align:center;padding:28px}.market-studio>img{margin:0 auto 12px}#market-month-events{grid-template-columns:1fr}.market-month-table td{height:42px}}

/* Loose, asymmetrical clusters in the open space around the content. */
.markets-page{position:relative;isolation:isolate;overflow-x:clip;--gem-gutter:max(20px,calc((100% - min(960px,88%))/2))}
.market-gem-scatter{position:absolute;inset:0;pointer-events:none;z-index:0}
.market-shell{position:relative;z-index:1}
.scatter-gem{position:absolute;top:var(--gem-y);width:var(--gem-size);height:var(--gem-size);object-fit:contain;transform:rotate(var(--gem-turn));filter:hue-rotate(var(--gem-hue)) drop-shadow(0 2px 2px #47254f2b);user-select:none}
.scatter-left{left:calc(var(--gem-gutter)*var(--scatter-x))}
.scatter-right{right:calc(var(--gem-gutter)*var(--scatter-x))}
.scatter-gem:nth-child(1){--scatter-x:.14;top:18%}
.scatter-gem:nth-child(2){--scatter-x:.65;top:23%}
.scatter-gem:nth-child(3){--scatter-x:.66;top:40%}
.scatter-gem:nth-child(4){--scatter-x:.12;top:34%}
.scatter-gem:nth-child(5){--scatter-x:.32;top:46%}
.scatter-gem:nth-child(6){--scatter-x:.43;top:61%}
.scatter-gem:nth-child(7){--scatter-x:.06;top:70%}
.scatter-gem:nth-child(8){--scatter-x:.7;top:77%}
.scatter-gem:nth-child(9){--scatter-x:.6;top:87%}
.scatter-gem:nth-child(10){--scatter-x:.17;top:94%}
.scatter-top:nth-child(11){left:19%;top:15px;width:31px;height:31px}
.scatter-top:nth-child(12){left:8%;top:96px;width:43px;height:43px}
.scatter-top:nth-child(13){left:auto;right:9%;top:29px;width:29px;height:29px}
.scatter-top:nth-child(14){left:auto;right:29%;top:149px;width:36px;height:36px}
.market-heading h1 img:first-child{transform:translate(-8px,-9px) rotate(-27deg)}
.market-heading h1 img:last-child{transform:translate(13px,10px) rotate(16deg);width:31px;height:31px}
@media(max-width:1100px){.scatter-gem{width:calc(var(--gem-size)*.58);height:calc(var(--gem-size)*.58)}.scatter-left{left:calc(var(--gem-gutter)*var(--scatter-x)*.65)}.scatter-right{right:calc(var(--gem-gutter)*var(--scatter-x)*.65)}}
@media(max-width:760px){.scatter-top:nth-child(11){left:8%;top:12px;width:21px;height:21px}.scatter-top:nth-child(12){left:1%;top:120px;width:23px;height:23px}.scatter-top:nth-child(13){right:5%;top:72px;width:20px;height:20px}.scatter-top:nth-child(14){right:17%;top:178px;width:24px;height:24px}.market-heading h1 img:last-child{width:25px;height:25px}}
@media(max-width:480px){.scatter-gem{width:calc(var(--gem-size)*.38);height:calc(var(--gem-size)*.38)}.scatter-top:nth-child(11){top:4px;width:17px;height:17px}.scatter-top:nth-child(12){top:148px;width:18px;height:18px}.scatter-top:nth-child(13){top:118px;width:17px;height:17px}.scatter-top:nth-child(14){top:217px;right:10%;width:21px;height:21px}}

/* Equal section labels above the calendar and studio invitation. */
.market-calendar-section>.market-section-heading{grid-column:1}
.market-studio-heading{grid-column:2;grid-row:1;align-self:start}
.scatter-extra-heart{right:19%;top:99px}
.scatter-extra-oval{right:3%;top:139px}
.scatter-extra-star{right:12%;top:175px}
.scatter-top:nth-child(14){right:24%;top:128px}
@media(max-width:760px){
 .market-studio-heading{grid-column:1;grid-row:3;margin-top:10px}
 .market-studio{grid-row:4}
 .market-month-details{grid-row:5}
 .scatter-extra-heart{right:16%;top:143px;width:22px;height:22px}
 .scatter-extra-oval{right:1%;top:195px;width:18px;height:18px}
 .scatter-extra-star{right:8%;top:232px;width:17px;height:17px}
 .scatter-top:nth-child(14){right:26%;top:184px}
}
@media(max-width:480px){
 .scatter-extra-heart{right:17%;top:163px;width:18px;height:18px}
 .scatter-extra-oval{right:1%;top:200px;width:16px;height:16px}
 .scatter-extra-star{display:none}
 .scatter-top:nth-child(14){right:10%;top:217px}
}

/* Center each label over its corresponding panel. */
.market-calendar-section>.market-section-heading,.market-studio-heading{text-align:center}
