/* ============================================================
   Story — Figma node 39:668
   1440 canvas · 1045 + 20 + 335 · related 3×2
   ============================================================ */

.story {
  --caption-blue: #d3f1fc;
  --card-line: #efefef;
  --card-r: 5px;
  background: var(--white);
  padding-bottom: 20px;
}

.story-wrap {
  padding-top: 18px;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1045px) 335px;
  gap: 20px;
  align-items: start;
}

.story-main {
  display: flex;
  flex-direction: column;
  gap: 23px;
  min-width: 0;
}

.story-article {
  padding: 26px 18px 28px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--card-r);
  box-shadow: var(--shadow-card);
}

.story-kicker {
  color: var(--blue);
  font-size: 17px;
  font-weight: 900;
  line-height: 28px;
}

.story-kicker a {
  color: inherit;
  text-decoration: none;
}

.story-article h1 {
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.story-dek {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.story-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 8px 0 16px;
  border-top: 0.5px solid var(--card-line);
  border-bottom: 0.5px solid var(--card-line);
}

.story-byline--end {
  margin-top: 24px;
  margin-bottom: 0;
}

.story-byline__name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.story-byline__name a {
  color: inherit;
}

.story-byline__name a:hover {
  color: var(--orange);
}

.story-byline__meta {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}

.story-share {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.story-share a {
  display: flex;
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.story-share svg {
  width: 24px;
  height: 24px;
}

.story-share a:hover {
  color: var(--orange);
}

.story-share a:hover svg rect {
  stroke: currentColor;
}

.story-share a:hover svg path {
  fill: currentColor;
}

.story-hero-media {
  margin-top: 16px;
  width: 100%;
  background: #ececec;
}

.story-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-body {
  margin-top: 9px;
}

.story-body__lead {
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.story-body p {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 900;
  line-height: 28px;
}

.story-body p + p {
  margin-top: 28px;
}

.story-body__lead {
  font-weight: 400;
  color: var(--ink);
  font-size: 18px;
}

.story-quote {
  margin-top: 14px;
  padding: 10px;
  background: var(--gold);
  border: 1px solid var(--orange);
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.story-tags a,
.story-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  padding: 0 15px;
  background: var(--caption-blue);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
}

.story-tags a:hover {
  background: #c4e8f8;
}

.story-ad {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  overflow: visible;
  height: 138px;
  margin-top: 18px;
  padding: 20px 32px;
  background: #0f172a;
  color: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.1);
}

.story-ad__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.story-ad h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.story-ad p:not(.ad-brand) {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.story-ad__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.story-ad .ad-btn--gold {
  width: auto;
  flex: none;
  height: 44px;
  padding: 0 16px;
}

.story-ad__media {
  width: 180px;
  height: 98px;
  border-radius: 14px;
}

.story-related {
  padding: 14px 11px 28px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--card-r);
}

.story-related > h2 {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 0.5px solid var(--card-line);
}

.story .listing-rail {
  width: 335px;
}

.story .fb-widget,
.story .ig-widget {
  width: 100%;
}

.story .listing-fb {
  height: 429px;
}

.story .listing-ig {
  height: 120px;
}

.story .ad-lumina--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.05);
}

.story .ad-lumina--stack h2 {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  letter-spacing: 0;
  line-height: 1.15;
}

.story .ad-lumina--stack p:not(.ad-brand) {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.story .ad-lumina--stack .ad-btn {
  width: 100%;
  padding: 0 16px;
}

@media (max-width: 1280px) {
  .story-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .story .listing-rail {
    width: auto;
  }

  .story-article h1 {
    font-size: 28px;
  }
}

@media (max-width: 1100px) {
  .story-layout {
    grid-template-columns: 1fr;
  }

  .story .listing-rail {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
  }

  .story .ad-lumina--stack {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 960px) {
  .story-article h1 {
    font-size: 24px;
    white-space: normal;
  }

  .story-ad {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 20px;
  }

  .story-ad__right {
    width: 100%;
  }

  .story-ad .ad-btn--gold {
    flex: 1;
  }

  .story-quote {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .story {
    padding-bottom: 28px;
  }

  .story-wrap {
    padding-top: 12px;
  }

  .story-article {
    padding: 16px 12px 20px;
  }

  .story-kicker {
    font-size: 15px;
    line-height: 22px;
  }

  .story-article h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .story-dek {
    font-size: 14px;
  }

  .story-byline {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .story-body__lead,
  .story-quote {
    font-size: 16px;
    line-height: 26px;
  }

  .story-body p {
    font-size: 15px;
    line-height: 26px;
  }

  .story-body p + p {
    margin-top: 18px;
  }

  .story-tags {
    gap: 8px;
  }

  .story-ad__media {
    width: 100%;
    height: 110px;
  }

  .story-ad__right {
    flex-direction: column;
    align-items: stretch;
  }

  .story .listing-rail {
    display: flex;
    flex-direction: column;
  }

  .story .ad-lumina--stack {
    max-width: none;
  }

  .story-related {
    padding: 12px 10px 20px;
  }
}

@media (max-width: 420px) {
  .story-article h1 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-article,
  .story-hero-media img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
