/* ==========================================================================
   Stories — Blog (list + article) and CSR (list + activity) pages
   Builds on home.css (--hp-* tokens), service.css (.sv glass system) and
   projects.css (.pj-card / filters). Dark default, light via data-theme.
   ========================================================================== */

/* ── Card extras ─────────────────────────────────────────────────── */
.st-card__media--blank {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 18% 10%, rgba(232, 201, 122, .32), transparent 55%),
    radial-gradient(90% 80% at 90% 100%, rgba(120, 140, 170, .22), transparent 60%),
    linear-gradient(145deg, #1F1F17, #0D0D0B);
}
html[data-theme="light"] .st-card__media--blank {
  background:
    radial-gradient(120% 90% at 18% 10%, rgba(232, 201, 122, .55), transparent 55%),
    radial-gradient(90% 80% at 90% 100%, rgba(120, 150, 190, .25), transparent 60%),
    linear-gradient(145deg, #F7F1E3, #E9E1CF);
}
.st-card__mark {
  font-family: var(--hp-serif);
  font-size: clamp(90px, 9vw, 140px);
  font-style: italic;
  line-height: 1;
  background: linear-gradient(180deg, #F6E3A8, #C9A84C 60%, #8B6E2E);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: .9;
  transition: transform 1.1s var(--hp-ease);
}
.pj-card:hover .st-card__mark { transform: scale(1.08) rotate(-3deg); }

.st-chip {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(13, 13, 11, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.st-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--hp-gold);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.st-meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.lux-home .st-card h3 { margin-top: 12px; }

.st-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hp-line);
}
.st-card .pj-card__text { margin-bottom: 18px; }
.st-card__foot .pj-card__cta { margin: 0; padding: 0; border: 0; }

.st-byline { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.st-byline strong { display: block; color: var(--hp-heading); font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-byline small { display: block; color: var(--hp-muted); font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }

.st-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F6E3A8, #C9A84C 55%, #8B6E2E 100%);
  box-shadow: 0 0 0 2px var(--hp-bg), 0 0 0 3px var(--hp-gold-line);
  color: #1A1408;
  font-family: var(--hp-serif);
  font-size: 17px;
  font-weight: 600;
}
.st-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* date badge on media (CSR events) */
.st-date {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 8px 10px 7px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(13, 13, 11, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-align: center;
  line-height: 1;
}
.st-date strong { font-family: var(--hp-serif); font-size: 26px; font-weight: 600; }
.st-date small { margin-top: 4px; color: #E8C97A; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

/* ── Pagination ──────────────────────────────────────────────────── */
.st-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 46px; }
.st-pager__num,
.st-pager__step {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--sv-glass-line);
  background: var(--sv-glass-bg);
  box-shadow: inset 0 1px 0 var(--sv-glass-hi);
  color: var(--hp-heading);
  font-size: 14px;
  text-decoration: none;
  transition: border-color .3s ease, color .3s ease, transform .3s var(--hp-ease);
}
.st-pager a:hover { border-color: var(--hp-gold); color: var(--hp-gold); transform: translateY(-2px); }
.st-pager__step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lux-home .st-pager__num.is-current { border-color: transparent; background: linear-gradient(180deg, #E8C97A, #B8902F); color: #0D0D0B; font-weight: 600; }

/* ══ Article ═════════════════════════════════════════════════════════ */
.st-progress {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}
.st-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8B6E2E, #E8C97A, #C9A84C);
  box-shadow: 0 0 12px rgba(232, 201, 122, .7);
  transform: scaleX(0);
  transform-origin: left;
}

.st-article-hero { min-height: clamp(520px, 72vh, 700px); }
.st-article-hero__inner { grid-template-columns: minmax(0, 880px); }
.lux-home .st-article-hero h1 { font-size: clamp(38px, 5vw, 70px); }
.st-eyebrow-link { text-decoration: none; }
.st-eyebrow-link:hover { color: #fff; }

.st-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.st-hero-meta__item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .82); font-size: 14px; }
.st-hero-meta__item svg { width: 17px; height: 17px; fill: none; stroke: #E8C97A; stroke-width: 1.5; stroke-linecap: round; }
.st-byline--hero strong { color: #fff; font-size: 14px; }
.st-byline--hero small { color: rgba(255, 255, 255, .62); }
.st-byline--hero .st-avatar { width: 44px; height: 44px; box-shadow: 0 0 0 2px rgba(13, 13, 11, .6), 0 0 0 3px rgba(232, 201, 122, .6); }

.st-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

/* long-form typography for admin-written HTML */
.st-prose { max-width: 760px; color: var(--hp-text); font-size: 17.5px; font-weight: 300; line-height: 1.9; overflow-wrap: anywhere; }
.st-prose > :first-child { margin-top: 0; }
.st-prose p { margin: 0 0 1.25em; }
.st-prose > p:first-of-type { font-size: 20px; color: var(--hp-heading); opacity: .92; }
.st-prose > p:first-of-type::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  font-family: var(--hp-serif);
  font-size: 4.1em;
  font-weight: 600;
  line-height: .78;
  color: var(--hp-gold);
}
.lux-home .st-prose h2,
.lux-home .st-prose h3,
.lux-home .st-prose h4 { margin: 1.8em 0 .6em; font-family: var(--hp-serif); font-weight: 600; line-height: 1.2; color: var(--hp-heading); }
.lux-home .st-prose h2 { font-size: clamp(28px, 2.6vw, 36px); }
.lux-home .st-prose h2::before { content: ''; display: block; width: 46px; height: 1px; margin-bottom: 18px; background: var(--hp-gold); }
.lux-home .st-prose h3 { font-size: clamp(23px, 2vw, 28px); }
.lux-home .st-prose h4 { font-size: 21px; }
.st-prose strong, .st-prose b { color: var(--hp-heading); font-weight: 600; }
.st-prose a { color: var(--hp-gold); text-decoration: none; border-bottom: 1px solid var(--hp-gold-line); transition: border-color .25s ease; }
.st-prose a:hover { border-color: var(--hp-gold); }
.st-prose ul, .st-prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.st-prose li { margin: .45em 0; padding-left: .3em; }
.st-prose ul li::marker { color: var(--hp-gold); }
.st-prose ol li::marker { color: var(--hp-gold); font-family: var(--hp-serif); font-weight: 600; }
.st-prose img, .st-prose video, .st-prose iframe { display: block; max-width: 100%; height: auto; margin: 2em 0; box-shadow: var(--hp-shadow); }
.st-prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.st-prose figure { margin: 2em 0; }
.st-prose figcaption { margin-top: 10px; color: var(--hp-muted); font-size: 13.5px; text-align: center; }
.st-prose blockquote {
  position: relative;
  margin: 2em 0;
  padding: 26px 28px 26px 34px;
  border: 1px solid var(--sv-glass-line);
  border-left: 3px solid var(--hp-gold);
  background: var(--sv-glass-bg);
  box-shadow: inset 0 1px 0 var(--sv-glass-hi);
  color: var(--hp-heading);
  font-family: var(--hp-serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.5;
}
.st-prose blockquote p:last-child { margin: 0; }
.st-prose hr { height: 1px; margin: 2.4em 0; border: 0; background: linear-gradient(90deg, transparent, var(--hp-gold-line), transparent); }
.st-prose code { padding: 2px 6px; background: var(--hp-gold-soft); color: var(--hp-heading); font-size: .9em; }
.st-prose pre { overflow-x: auto; padding: 18px; background: var(--hp-surface-2); }
.st-table { overflow-x: auto; margin: 2em 0; }
.st-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.st-prose th, .st-prose td { padding: 12px 14px; border-bottom: 1px solid var(--hp-line); text-align: left; }
.st-prose th { color: var(--hp-gold); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* sticky aside */
.st-aside { position: sticky; top: calc(var(--nav-h, 62px) + 30px); }
.st-aside__card { padding: 26px 24px 24px; }
.st-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.st-share a,
.st-share button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hp-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--hp-heading);
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s var(--hp-ease);
}
.st-share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st-share a:hover,
.st-share button:hover,
.st-share button.is-done { border-color: transparent; background: linear-gradient(180deg, #E8C97A, #B8902F); color: #0D0D0B; transform: translateY(-3px); }
.st-share__note { display: block; min-height: 18px; margin-bottom: 8px; color: var(--hp-gold); font-size: 12px; letter-spacing: .08em; }
.st-aside__facts { margin: 0 0 22px; }
.st-aside__cta { width: 100%; }

/* author card */
.st-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: clamp(48px, 6vw, 72px);
  padding: 28px 30px;
}
.st-author__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--hp-surface-2);
  box-shadow: 0 0 0 4px var(--hp-bg), 0 0 0 5px var(--hp-gold-line), var(--hp-shadow-sm);
}
.st-author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.lux-home .st-author h3 { margin: 6px 0 2px; font-family: var(--hp-serif); font-size: 28px; font-weight: 600; color: var(--hp-heading); }
.st-author__role { margin: 0; color: var(--hp-gold); font-size: 13px; letter-spacing: .08em; }
.st-author__bio { margin: 10px 0 0; color: var(--hp-muted); font-size: 14.5px; line-height: 1.7; }

.st-related .pj-card__cta { margin-top: auto; }

/* ══ CSR ═════════════════════════════════════════════════════════════ */
.cs-commit__layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.cs-commit__copy .hp-lead { margin-top: 22px; }
.cs-quote {
  margin: 30px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--hp-gold);
  color: var(--hp-heading);
  font-family: var(--hp-serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.45;
}
.cs-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cs-pillars { padding-bottom: 32px; }
.cs-pillars .sv-tile:nth-child(even) { top: 32px; }

/* impact numbers on activity cards */
.cs-impact-tag {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(232, 201, 122, .45);
  background: rgba(13, 13, 11, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cs-impact-tag strong { color: #E8C97A; font-family: var(--hp-serif); font-size: 22px; font-weight: 600; letter-spacing: 0; }

/* blood initiative band */
.cs-blood {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  overflow: hidden;
}
.cs-blood::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(70% 90% at 0% 0%, rgba(224, 52, 75, .22), transparent 60%);
  pointer-events: none;
}
.cs-blood__copy { position: relative; padding: clamp(32px, 4.4vw, 60px); }
.cs-blood .hp-eyebrow { color: #F07A88; }
.cs-blood .hp-eyebrow::before { background: #F07A88; }
html[data-theme="light"] .cs-blood .hp-eyebrow { color: #B4283A; }
html[data-theme="light"] .cs-blood .hp-eyebrow::before { background: #B4283A; }
.cs-blood__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 24px 0 30px; padding: 0; list-style: none; }
.cs-blood__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--hp-text); font-size: 14.5px; line-height: 1.5; }
.cs-blood__list li::before { content: ''; flex: none; width: 10px; height: 13px; margin-top: 4px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: linear-gradient(180deg, #F07A88, #C41E3A); }
.cs-blood__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lux-home .cs-btn--red {
  border-color: transparent;
  background: linear-gradient(180deg, #E8475C, #A51C30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 40px -16px rgba(196, 30, 58, .85);
  color: #fff;
}
.lux-home .cs-btn--red:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 22px 48px -14px rgba(196, 30, 58, .95); }
.cs-blood__media { position: relative; min-height: 360px; margin: 0; }
.cs-blood__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-blood__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 11, .35), transparent 40%); }
.cs-blood__groups {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-blood__groups span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(13, 13, 11, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  animation: cs-float 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.5s);
}
@keyframes cs-float { 50% { transform: translateY(-5px); } }

/* focus areas */
.cs-focus { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cs-focus__card { padding: 28px 24px 26px; transition: transform .45s var(--hp-ease); }
.lux-home .cs-focus__card.visible:hover { transform: translateY(-6px); }
.cs-focus__num {
  display: block;
  font-family: var(--hp-serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(180deg, #F6E3A8, #C9A84C 60%, #8B6E2E);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lux-home .cs-focus__card h3 { margin: 18px 0 8px; font-family: var(--hp-serif); font-size: 24px; font-weight: 600; color: var(--hp-heading); }
.cs-focus__card p { margin: 0; color: var(--hp-muted); font-size: 14px; line-height: 1.65; }
.cs-focus__count { display: inline-block; margin-top: 16px; color: var(--hp-gold); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* partner banner */
.cs-partner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 70px);
  text-align: center;
  overflow: hidden;
}
.cs-partner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(232, 201, 122, .2), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(224, 52, 75, .14), transparent 70%);
  pointer-events: none;
}
.cs-partner .hp-head { margin: 0 auto 0; }
.cs-partner .hp-intro { margin: 18px auto 0; max-width: 640px; }
.cs-partner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* CSR detail */
.cs-detail-figure { position: relative; margin: 36px 0 0; overflow: hidden; box-shadow: var(--hp-shadow); }
.cs-detail-figure img { display: block; width: 100%; max-height: 520px; object-fit: cover; transition: transform 1.2s var(--hp-ease); }
.cs-detail-figure:hover img { transform: scale(1.04); }
.cs-detail-figure::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(232, 201, 122, .35); pointer-events: none; }
.cs-approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.cs-approach .sv-tile { padding: 24px 20px 22px; }
.cs-approach .sv-tile strong { margin-top: 16px; font-size: 20px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .st-article__layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 991px) {
  .st-article__layout,
  .cs-commit__layout,
  .cs-blood { grid-template-columns: minmax(0, 1fr); }
  .st-aside { position: static; }
  .st-aside__card { max-width: 520px; }
  .st-author { grid-template-columns: auto minmax(0, 1fr); }
  .st-author__link { grid-column: 1 / -1; justify-self: start; }
  .cs-blood__media { min-height: 300px; order: -1; }
  .cs-blood__media::after { background: linear-gradient(0deg, rgba(13, 13, 11, .4), transparent 50%); }
}

@media (max-width: 760px) {
  .st-prose { font-size: 16.5px; }
  .st-prose > p:first-of-type { font-size: 18px; }
  .st-prose blockquote { padding: 20px 18px 20px 22px; font-size: 20px; }
  .st-author { grid-template-columns: 1fr; text-align: left; padding: 24px 20px; gap: 18px; }
  .st-author__photo { width: 88px; height: 88px; }
  .st-author__link { width: 100%; }
  .st-card__foot { flex-wrap: wrap; }
  .cs-pillars { grid-template-columns: 1fr; }
    .cs-pillars { padding-bottom: 0; }
  .cs-pillars .sv-tile:nth-child(even) { top: 0; }
  .cs-blood__list { grid-template-columns: 1fr; }
  .cs-blood__actions .sv-btn,
  .cs-partner__actions .sv-btn { width: 100%; }
  .cs-approach { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-blood__groups span { animation: none; }
  .st-progress { display: none; }
}

/* second CTA inside the sticky CSR card */
.cs-card-btn { margin-top: 10px; }
