/* Case study page (Figma node 116:537) */
.cs {
  display: flex; justify-content: flex-start; gap: 20px;
/*  max-width: 1728px; */
  margin: 0 auto; padding: 41px 50px 80px;
  background-color: rgb(255, 253, 250);
}

/* Section navigation */
.toc { flex: 0 0 300px; align-self: flex-start; position: sticky; top: 100px; font-family: var(--mono); font-size: 12px; line-height: normal; }
.toc ol { list-style: none; padding: 0; }
.toc a { display: flex; align-items: center; gap: 21px; opacity: 0.5; }
.toc a[aria-current="true"] { opacity: 1; }
.toc .dot { width: 5px; height: 5px; border-radius: 50%; border: 1px solid currentColor; }
.toc a[aria-current="true"] .dot { background: currentColor; }
.toc li + li::before { content: ""; display: block; width: 1px; height: 15px; margin: 4px 0 2px 2px; background: currentColor; opacity: 0.2; }

/* Content */
.content { flex: 1 1 0; max-width: 1100px; min-width: 0; display: flex; flex-direction: column; gap: 24px;}
.hero { position: relative; aspect-ratio: 1216 / 636; overflow: hidden; background: var(--placeholder); }
.hero img { position: absolute; max-width: 100%; /*height: 191.19%; width: 192.24%; left: -64.97%; top: 0.14%; */}
.block { display: flex; flex-direction: column; gap: 8px; padding-bottom: 48px; line-height: normal; scroll-margin-top: 84px; }
.label, .meta-line { font-family: var(--mono); font-size: 13px; opacity: 0.3; }
h1 { font-size: 20px; font-weight: 600; }
h2 { font-size: 16px; font-weight: 500; }
.block p:not(.label):not(.meta-line), .block li { font-size: 14px; opacity: 0.5; }
.block p + p { margin-top: 1lh; }
.shot { background: var(--placeholder); }
/*.shot img { position: absolute; object-position: top left; pointer-events: none; inset: 0; width: 100%; height: 100%; object-fit: contain; border:1px solid #EDEEEE;}*/


/* Standalone full-width shot: height follows the image */
.block > .shot:has(img) { aspect-ratio: auto; height: auto; background: none; }
.block > .shot img { display: block; width: 100%; height: auto; }
.block p a {font-weight:500; opacity:100% !important; text-decoration: underline;}

/* Feature and pair shots: keep the existing box size, image fills it */
.feature .shot img,
.pair .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left;}


.feature { display: flex; align-items: center; gap: 20px; padding-bottom: 48px; line-height: normal; }
.feature > * { flex: 1 1 0; min-width: 0; }
.feature .shot { aspect-ratio: auto; height: 429px; margin-bottom: 24px; }
.feature .text { display: flex; flex-direction: column; gap: 10px; }
.feature p { font-size: 14px; opacity: 0.5; }

.pair { display: flex; gap: 24px; align-items: flex-start; line-height: normal; }
.pair > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 48px; }
.pair .shot { aspect-ratio: auto; height: 429px; margin-bottom: 24px; }
.pair p { font-size: 14px; opacity: 0.5; }

@media (max-width: 1100px) {
  .cs { flex-direction: column; }
  .toc { display: none; }
}

@media (min-width: 1101px) {
  .content { padding-bottom: 2vh; }
}

@media (max-width: 768px) {
  .cs { padding: 24px 25px 48px; }
  .feature { flex-direction: column; align-items: stretch; gap: 16px; }
  .feature .shot { height: auto; aspect-ratio: 16 / 10; margin-bottom: 0; }
  .feature > * { flex: 0 0 auto; }  /* in a column, flex-basis 0 would collapse the image to 0 height */
  .pair { flex-direction: column; align-items: stretch; gap: 0; }
  h1 { font-size: 18px; }
  h2 { font-size: 14px; }
  .block p:not(.label):not(.meta-line), .feature p { font-size: 14px; }
  .label, .meta-line {font-size:12px;}
}
@media (max-width: 576px) {
  h1 { font-size: 18px; }
  h2 { font-size: 14px; }
  .block p:not(.label):not(.meta-line), .feature p { font-size: 14px; }
  .label, .meta-line {font-size:12px;}
}
