/* Item page story: the clips side by side and three steps under the hero, plus the hero bullets (see item-story.js).
   Accent comes from --story-accent, set per item from its own colour. */
.item-story {
  --story-accent: #38bdf8;
  position: relative;
  padding: 56px 24px 20px;
  color: #f4f4ef;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, color-mix(in srgb, var(--story-accent) 12%, transparent), transparent 70%),
    #07090b;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.item-story-inner { max-width: 1100px; margin: 0 auto; }

.item-story-hook { margin: 0; max-width: 780px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; color: #f4f4ef; }

.item-story-save { margin: 16px 0 0; font-size: 15px; font-weight: 700; color: var(--story-accent); }

/* the clips, all at once */
.item-story-media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.item-story-media[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.item-story-media[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.item-story-media figure { margin: 0; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #05080c; border: 1px solid rgba(255, 255, 255, .12); }
.item-story-media video, .item-story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-story-media video.is-compare { object-position: 100% 50%; }

/* three steps, one line */
.item-story-steps { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.item-story-steps li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: rgba(244, 244, 239, .85); }
.item-story-steps li + li::before { content: ""; width: 26px; height: 2px; margin-right: 2px; background: rgba(255, 255, 255, .22); border-radius: 2px; }
.item-story-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--story-accent); color: #061018; }
.item-story-meta { margin: 14px 0 0; font-size: 13px; color: rgba(244, 244, 239, .5); white-space: pre-wrap; }

/* sticky buy bar on phones */
.item-sticky-cta { position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); z-index: 60; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(10, 13, 16, .94); backdrop-filter: blur(10px); box-shadow: 0 10px 34px rgba(0, 0, 0, .5); }
.item-sticky-cta[hidden] { display: none !important; }
.item-sticky-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.item-sticky-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.item-sticky-text span { font-size: 13px; color: rgba(244, 244, 239, .65); }
.item-sticky-btn { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: #38bdf8; color: #06121c; font: 800 15px/1 inherit; cursor: pointer; }
@media (max-width: 820px) { .item-sticky-cta:not([hidden]) { display: flex; } }

@media (max-width: 900px) {
  .item-story { padding: 40px 16px 8px; }
  .item-story-media, .item-story-media[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .item-story-steps li + li::before { width: 14px; }
}

/* hero: one concise sentence and a few bullets */
body.item-template-page .item-plain-hook { margin: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; color: #f4f4ef; }
body.item-template-page .item-plain-bullets { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
body.item-template-page .item-plain-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.4; color: rgba(244, 244, 239, .82); }
body.item-template-page .item-plain-bullets svg { flex: none; margin-top: 2px; color: var(--story-accent, #38bdf8); }
@media (max-width: 900px) { .item-story-media[data-count="3"] figure:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; } }
