#exo-sheet-story {
& {
  font-family: Montserrat, Arial, sans-serif;
  color: #202026;
  background: #fff;
  --ink: #202026;
  --muted: #57545e;
  --accent: #4b1f73;
  --accent-line: #6f2dbd;
  --accent-soft: #f4eef9;
  --line: #e6e2e8;
  --header-height: 74px;
  --sticky-top: calc(var(--header-height) + 16px);
  --gutter: clamp(20px, 3.5vw, 50px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
& { margin: 0; }
&, button { font: inherit; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
}
h2, h3, p, figure, dl, dd { margin: 0; }
p { color: var(--muted); line-height: 1.65; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header-inner, .page-width, .site-footer {
  width: min(calc(100% - 2 * var(--gutter)), 1440px);
  margin-inline: auto;
}
.site-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { width: clamp(133px, 14vw, 193px); height: auto; }
.product-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 720;
}
.product-link:hover { background: var(--accent-soft); }
.button { background: var(--accent); color: #fff; }
.button:hover { background: #3c165e; }
.text-link { font-weight: 665; text-underline-offset: 3px; }
.text-link:hover { color: var(--accent-line); }
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 11px;
  margin: 23px 0;
  font-size: .875rem;
  color: var(--muted);
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.sheet-guide { border-top: 1px solid var(--line); padding-top: clamp(25px, 3.2vw, 46px); }
.guide-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 26px;
}
.guide-intro h2, .guide-step h3, .fitting h2 {
  font-weight: 730;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.guide-intro h2 { font-size: clamp(2rem, 3.55vw, 2.875rem); }
.guide-intro p { margin-top: 12px; max-width: 67ch; }
.guide-intro > a { flex: none; font-size: .875rem; }
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.model-panel {
  position: sticky;
  z-index: 2;
  top: var(--sticky-top);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(32 32 38 / 3%);
}
.model-toolbar {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 13px;
  gap: 8px;
}
.model-toolbar > a { flex: none; font-size: .875rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.finishes, .model-tools { display: flex; align-items: center; gap: 4px; }
.finishes button, .model-tools button {
  min-height: 38px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 630;
  cursor: pointer;
}
.finishes button:hover, .model-tools button:hover { background: var(--accent-soft); color: var(--accent); }
.finishes button[aria-pressed='true'] { background: var(--accent-soft); border-color: #ded0e9; color: var(--accent); }
.swatch { inline-size: 13px; block-size: 13px; border: 1px solid rgb(32 32 38 / 24%); border-radius: 50%; }
.swatch.gold { background: linear-gradient(145deg, #ffed8e, #c18922); }
.swatch.silver { background: linear-gradient(145deg, #eeeef1, #95959c); }
.model-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(270px, min(calc(100svh - 438px), 55vw), 540px);
  background: #fff;
  overflow: hidden;
}
.poster-source { display: contents; }
.model-poster { width: 92%; height: 94%; object-fit: contain; }
.model-poster.photo-fit { border-radius: 8px; }
.model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.model-canvas:active { cursor: grabbing; }
.model-canvas:focus-visible { outline-offset: -4px; }
.model-controls {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 10px 3px 13px;
}
.model-hint { display: grid; gap: 1px; color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.model-hint [data-pass-label] { color: var(--accent); font-weight: 700; }
.model-hint [data-pass-label]:empty { display: none; }
.model-tools { flex: none; }
.fitting-jump { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; }
.model-tools button { min-height: 44px; border-color: var(--line); font-size: .8125rem; }
.model-tools button[aria-label] { min-width: 44px; justify-content: center; padding-inline: 6px; font-size: 1rem; }
.chapter-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px 12px 8px;
  border-top: 1px solid var(--line);
}
.chapter-nav a {
  display: grid;
  place-items: center;
  min-height: 41px;
  padding: 4px 2px;
  border-radius: 5px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 655;
}
.chapter-nav a:hover, .chapter-nav a[aria-current='step'] { background: var(--accent-soft); color: var(--accent); }
.chapter-nav a[aria-current='step'] { border-color: var(--accent-line); }
.guide-steps { padding-bottom: 65px; }
.guide-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(300px, 64svh, 650px);
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--sticky-top);
}
.guide-step:last-child { border-bottom: 0; }
.guide-step h3 { font-size: clamp(1.65rem, 3.15vw, 2.5625rem); }
.guide-step p { margin-top: 14px; max-width: 48ch; }
.underside-detail { border: 0; }
.template-step h3 { margin: 0; font-size: clamp(1.65rem, 3.15vw, 2.5625rem); line-height: 1.12; font-weight: 730; letter-spacing: -.035em; text-wrap: balance; }
.template-step { border: 0; }
.template-still { display: block; width: 100%; height: auto; margin-top: 12px; }
.model-poster.template-poster { width: 100%; height: 100%; object-fit: contain; }
.template-dissolve { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; object-fit: contain; pointer-events: none; }
.application-scroll { min-height: clamp(890px, 160svh, 1600px); padding: 20px 0 32px; }
.application-copy { position: sticky; top: var(--copy-top, 38svh); max-width: 48ch; }
.application-copy h3 { margin: 0 0 12px; font-size: clamp(1.4rem, 2.6vw, 2.15rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 730; text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .sheet-guide[data-scroll-model] .underside-detail { min-height: clamp(780px, 102svh, 1100px); }
  .sheet-guide[data-scroll-model] .template-step { min-height: clamp(535px, 77svh, 830px); }
  .sheet-guide[data-scroll-model] #sheet-template,
  .sheet-guide[data-scroll-model] #sheet-template-transfer { min-height: clamp(1160px, 165svh, 1580px); }
  .sheet-guide[data-scroll-model] #sheet-template-cardboard-cut { min-height: clamp(900px, 125svh, 1250px); }
  .sheet-guide[data-scroll-model] .template-copy { position: sticky; top: var(--copy-top, 36svh); }
  .sheet-guide[data-scroll-model] .application-scroll { min-height: clamp(3000px, 385svh, 4200px); }
}
.underside-photo { margin-top: 16px; height: auto; border-radius: 8px; }
@media (scripting: none) {
  .sheet-guide .application-scroll { min-height: 0; }
  .application-copy { position: static; }
}
.model-note { margin: 10px 0 0; font-size: .8125rem; }

.photo-dialog {
  margin: auto;
  padding: clamp(16px, 2.8vw, 28px);
  width: min(calc(100% - 24px), 850px);
  max-width: none;
  max-height: calc(100svh - 24px);
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  overscroll-behavior: contain;
  overflow-y: auto;
  box-shadow: 0 14px 65px #20132740;
}
.photo-dialog:not([open]) { display: none; }
.photo-dialog::backdrop { background: rgb(20 15 24 / 62%); }
.photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.photo-heading h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.2; font-weight: 730; }
.photo-close, .photo-choices button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px;
  font: inherit;
  font-weight: 630;
  font-size: .875rem;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--accent);
  background: white;
  cursor: pointer;
}
.photo-choices { display: flex; flex-wrap: wrap; margin: 12px 0; gap: 6px; }
.photo-choices button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.photo-frame { display: grid; place-items: center; background: #f3f2f4; border-radius: 8px; overflow: hidden; height: min(48svh, 475px); }
.photo-frame img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.photo-figure figcaption { margin-top: 10px; color: var(--ink); font-size: .9375rem; line-height: 1.45; }
.photo-original { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }

.fitting {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  gap: 30px clamp(24px, 5vw, 70px);
  margin: clamp(35px, 6vw, 85px) 0;
  padding: clamp(18px, 3.5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbf9fc;
  scroll-margin-top: var(--sticky-top);
}
.fitting h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.fitting-copy > p { margin-top: 14px; }
.sheet-specs { display: grid; margin-block: 19px; }
.sheet-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.4;
}
.sheet-specs dd { flex: none; font-weight: 720; }
.fitting-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.fitting-links .text-link { font-size: .875rem; }
.fitting-photo img { width: 100%; height: auto; border-radius: 8px; }
.fitting-photo figcaption { color: var(--muted); font-size: .8125rem; margin-top: 10px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 21px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .875rem;
}
.site-footer span { font-weight: 770; }

@media (max-width: 740px) {
  & { --header-height: 59px; --sticky-top: calc(var(--header-height) + 7px); }
  .breadcrumbs { margin: 15px 0; }
  .guide-intro { display: grid; margin-bottom: 18px; gap: 8px; }
  .guide-intro h2 { font-size: clamp(1.75rem, 7vw, 2.0625rem); }
  .guide-intro p { margin-top: 8px; line-height: 1.52; }
  .guide-grid { display: block; }
  .model-toolbar { min-height: 49px; padding: 3px 9px; }
  .finishes button { min-height: 42px; padding: 4px 8px; }
  .model-stage { height: clamp(170px, 35svh, 335px); }
  .model-controls { padding-inline: 8px; }
  .model-hint { font-size: .8125rem; }
  .model-tools button { padding-inline: 7px; }
  .chapter-nav { padding: 5px 6px; }
  .chapter-nav a { min-height: 44px; }
  .guide-steps { padding-bottom: 0; }
  .guide-step {
    min-height: max(270px, 44svh);
    padding-block: 28px 35px;
    scroll-margin-top: calc(var(--sticky-top) + clamp(170px, 35svh, 335px) + 160px);
  }
  .guide-step h3 { font-size: clamp(1.4rem, 5.8vw, 1.875rem); }
  .template-step h3 { font-size: clamp(1.4rem, 5.8vw, 1.875rem); }
  .guide-step p { margin-top: 10px; line-height: 1.58; }
  .application-scroll { min-height: max(730px, 126svh); }
  .application-copy { line-height: 1.58; }
  .fitting { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .photo-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-frame { height: min(39svh, 320px); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .model-stage { height: clamp(130px, 34svh, 175px); }
}

@media (max-width: 365px) {
  .chapter-nav { grid-template-columns: .85fr .65fr .84fr 1.34fr 1.09fr; gap: 1px; }
  .model-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding-block: 6px;
  }
  .model-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 6px; }
  .model-hint [data-pass-label] { white-space: nowrap; }
  .model-tools { justify-self: end; }
  .chapter-nav a { font-size: .8125rem; }
  .model-toolbar > a, .finishes button { font-size: .8125rem; }
}

}
.fashion.product:has(#exo-sheet-story) {
  /* Let the viewport scroll. The theme's full-height body otherwise captures sticky positioning. */
  overflow-x: clip;
  overflow-y: visible;
}
#exo-sheet-story {
  --sticky-top: 14px;
  display: block;
  min-width: 0;
  margin-block: clamp(32px, 5vw, 72px);
  color: #202026;
  font-family: Montserrat, Arial, sans-serif;
  font-size: max(1rem, 16px);
  text-align: start;
}
#exo-sheet-story :is(h2, h3, p, button, .button) { text-transform: none; }
#exo-sheet-story .sheet-guide { scroll-margin-top: var(--sticky-top); }
#exo-sheet-story .model-toolbar, #exo-sheet-story .chapter-nav { line-height: 1.25; }
#exo-sheet-story :is(.model-tools, .finishes) button {
  margin: 0;
  font-family: inherit;
  line-height: 1.25;
  letter-spacing: normal;
}
#exo-sheet-story .fitting-links .button { margin: 0; }
@media (max-width: 740px) {
  #exo-sheet-story { --sticky-top: 8px; }
  #exo-sheet-story .model-tools button { min-width: 44px; min-height: 44px; }
}
