/* ══════════════════════════════════════════════════
   STORY DETAIL  (single.php)
══════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────── */
.story-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #0a7f7d 0%, #10b3b0 60%, #5fc7c4 100%);
  background-size: cover;
  background-position: center;
  padding-bottom: 56px;
}
.story-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.55) 60%,
    rgba(0,0,0,.75) 100%
  );
}
.story-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.story-hero__badge {
  display: inline-block;
  background: #fff;
  color: var(--red);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-decoration: none;
  transition: opacity .18s;
}
.story-hero__badge:hover { opacity: .85; }
.story-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
  font-style: italic;
}
.story-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  letter-spacing: .04em;
}
.story-hero__dot { opacity: .5; }

/* ── Breadcrumb ──────────────────────────────────── */
.story-breadcrumb {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 10px 0;
}
.story-breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.story-breadcrumb__link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal, #10b3b0);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .15s;
}
.story-breadcrumb__link:hover { color: var(--teal-dark, #0a7f7d); text-decoration: none; }
.story-breadcrumb__sep {
  font-size: .75rem;
  color: #b0aabb;
}
.story-breadcrumb__current {
  font-size: .75rem;
  color: #7e7a8b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

/* ── Article layout ──────────────────────────────── */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 60px;
  padding: 36px 0 80px;
  align-items: start;
}
@media (max-width: 860px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Body copy ───────────────────────────────────── */
.story-body {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.story-body p         { margin: 0 0 1.4em; }
.story-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--teal);
  margin: 2em 0 .6em;
}
.story-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 1.8em 0 .5em;
}
.story-body ul,
.story-body ol {
  padding-left: 1.4em;
  margin: 0 0 1.4em;
}
.story-body li { margin-bottom: .5em; }
.story-body blockquote {
  border-left: 3px solid var(--teal);
  margin: 2em 0;
  padding: 12px 24px;
  font-style: italic;
  color: var(--teal);
  background: rgba(0,168,157,.06);
  border-radius: 0 8px 8px 0;
}
.story-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-body img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}

/* Drop cap on first paragraph */
.story-body > p:first-child::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.8em;
  line-height: .82;
  margin: .06em .12em 0 0;
  color: var(--teal);
  font-style: normal;
}

/* ── Share bar ───────────────────────────────────── */
.story-share {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.story-share__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .4;
  margin: 0 0 4px;
}
.story-share__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, border-color .18s;
  width: 100%;
}
.story-share__btn:hover {
  background: var(--cream);
  border-color: rgba(0,0,0,.22);
  text-decoration: none;
  color: var(--ink);
}
@media (max-width: 860px) {
  .story-share {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 24px;
  }
  .story-share__btn { width: auto; }
}

/* ── Related posts ───────────────────────────────── */
.story-related {
  background: #fcf8ee;
  padding: 64px 0 80px;
  border-top: 1px solid rgba(0,0,0,.07);
}
.story-related__heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--teal);
  margin: 0 0 32px;
}
.story-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .story-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .story-related__grid { grid-template-columns: 1fr; }
}

/* ── Story cards (used in related posts) ─────────── */
.story-card--grid {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ece5da;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.story-card--grid:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}
.story-card__img {
  position: relative;
  background: linear-gradient(135deg, #10b3b0, #0a7f7d);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.story-card__img--medium { height: 180px; }
.story-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: #a8281d;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 1;
}
.story-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-card__title--sm {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f1f2e;
  margin: 0;
}
.story-card__excerpt--sm {
  font-size: .85rem;
  color: #7e7a8b;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.story-card__meta {
  font-size: .75rem;
  color: #7e7a8b;
  letter-spacing: .04em;
  font-weight: 600;
  margin: 0;
}
