/* Additions for the Ezina case study v2: disclosures, video blocks, phone
   panels and the provenance stat band. Scoped to .cs so nothing here can
   reach the other case studies. Everything else still comes from
   case-study.css — this file only adds what that file has no pattern for. */

/* ---- disclosure ------------------------------------------------------- */
/* A real <details>, so it works with no JS, is keyboard reachable, and its
   contents stay in the DOM for Cmd-F and for crawlers. */
.cs .cs-details {
  margin: 20px 0 0;
  border: 1px solid rgba(255, 249, 209, 0.22);
  border-radius: 2px;
}
.cs .cs-details__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-body, "Archivo", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream, #fff9d1);
}
.cs .cs-details__summary::-webkit-details-marker { display: none; }
.cs .cs-details__summary::before {
  content: "+";
  flex: none;
  width: 20px;
  font-size: 20px;
  line-height: 1;
  color: var(--orange, #ed8c11);
}
.cs details[open] > .cs-details__summary::before { content: "\2212"; }
.cs .cs-details__summary:focus-visible {
  outline: 2px solid var(--orange, #ed8c11);
  outline-offset: 2px;
}
.cs .cs-details__hint {
  margin-left: auto;
  font-weight: 400;
  font-size: 12px;
  color: var(--blue, #b5cfde);
}
.cs .cs-details__body { padding: 4px 18px 20px; }
.cs .cs-details__body p { margin: 0 0 16px; }
.cs .cs-details__body p:last-child { margin-bottom: 0; }
.cs .cs-details__status {
  font-weight: 600;
  color: var(--orange, #ed8c11);
}

/* ---- video block ------------------------------------------------------ */
/* Nothing autoplays until it is on screen, and the poster is what loads
   first, so a video never becomes the page's largest paint. */
.cs .cs-video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0a121f;
}
.cs .cs-video video {
  display: block;
  width: 100%;
  height: auto;
}
.cs .cs-video__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 249, 209, 0.35);
  border-radius: 50%;
  background: rgba(14, 24, 40, 0.78);
  color: var(--cream, #fff9d1);
  cursor: pointer;
}
.cs .cs-video__toggle:hover { border-color: var(--orange, #ed8c11); }
.cs .cs-video__toggle:focus-visible {
  outline: 2px solid var(--orange, #ed8c11);
  outline-offset: 2px;
}
.cs .cs-video__icon { width: 15px; height: 15px; fill: currentColor; }
/* aria-pressed carries the state, so the glyph can be driven straight off it */
.cs .cs-video__toggle[aria-pressed="false"] .cs-video__icon--play,
.cs .cs-video__toggle[aria-pressed="true"] .cs-video__icon--pause { display: none; }

/* The add-a-plant clip has a text column of its own, so the control sits
   above that column's kicker instead of floating in the empty corner.
   489/1168 and 212/960 are where the kicker starts inside the frame. */
.cs .cs-video--flow .cs-video__toggle {
  right: auto;
  bottom: auto;
  left: 41.87%;
  top: calc(22.13% - 50px);
}

/* ---- phone panel ------------------------------------------------------ */
.cs .cs-panel {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  padding: 40px;
  border-radius: 12px;
  background: #a7ac82;
}
.cs .cs-panel__screen {
  flex: 1 1 0;
  min-width: 0;
  max-height: 660px;
  overflow: hidden;
  border-radius: 12px;
  background: #faf6ec;
}
.cs .cs-panel__screen img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .cs .cs-panel { flex-wrap: wrap; padding: 20px; gap: 16px; }
  .cs .cs-panel__screen { flex: 1 1 44%; max-height: 420px; }
}

/* ---- caption ---------------------------------------------------------- */
.cs .cs-caption {
  margin: 12px 0 0;
  font-family: var(--f-body, "Archivo", system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--blue, #b5cfde);
}


/* ---- closing figure in a disclosure ----------------------------------- */
/* Each disclosure ends on the one number that grounds it (Figma 1904:4999,
   1904:5008): small label, the figure, then what the figure measures. */
.cs .cs-figure { margin: 4px 0 0; }
.cs .cs-figure__kicker {
  margin: 0;
  font-family: var(--f-body, "Archivo", system-ui, sans-serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--cream, #fff9d1);
}
.cs .cs-figure__num {
  margin: 0;
  font-family: var(--font-display, "Clash Display", system-ui, sans-serif);
  font-weight: 500;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.3px;
  color: var(--orange, #ed8c11);
}
.cs .cs-figure__note {
  margin: 0;
  font-family: var(--font-display, "Clash Display", system-ui, sans-serif);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cream, #fff9d1);
}

/* ---- provenance stat band --------------------------------------------- */
/* The first band is a link out to the live product, so it gets a hover. */
.cs .cs-stat__num--word { font-size: 0.72em; }
.cs a.cs-stat { text-decoration: none; }
.cs a.cs-stat:hover .cs-stat__num { color: var(--orange, #ed8c11); }

@media (prefers-reduced-motion: reduce) {
  .cs .cs-video video { animation: none !important; }
}
