/* ============================================================
   series.css — week-by-week series page styling (v9.4)
   Used by blog/series-X-week-N.html
   ============================================================ */

/* Per-week shell: a touch tighter than the original blog-shell so the
   "Continue the series" grid below it doesn't feel cramped. */
.blog-shell--week {
  max-width: 72ch;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0;
}
.blog-shell--week .eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  color: var(--orange-600, #C45A1A);
  font-weight: 600;
  margin-bottom: .55rem;
}
.blog-shell--week h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2.05rem;
  line-height: 1.18;
  margin: .25rem 0 1.1rem;
}

/* ---------- Prev / next slim nav ---------- */
.series-prevnext {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line, #E5E8ED);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .92rem;
}
.series-prevnext a {
  color: var(--orange, #D94A18);
  text-decoration: none;
  padding: .4rem .65rem;
  border-radius: 6px;
  transition: background .15s;
}
.series-prevnext a:hover { background: rgba(217, 74, 24, .08); }
.series-prevnext > span { display: inline-block; min-width: 1rem; }

/* ---------- Continue-the-series grid ---------- */
.series-continue {
  max-width: 1080px;
  margin: 2.5rem auto 4rem;
  padding: 2rem 1.25rem 0;
  border-top: 1px solid var(--line, #E5E8ED);
}
.series-continue__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  margin: 0 0 .25rem;
}
.series-continue__sub {
  font-size: .85rem;
  color: var(--muted, #6B7280);
  margin: 0 0 1.5rem;
}
.series-continue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* card */
.series-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line, #E5E8ED);
  border-radius: 10px;
  padding: 1rem 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.series-card:hover {
  border-color: var(--orange, #D94A18);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 33, 56, .08);
}
.series-card__eyebrow {
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .68rem;
  color: var(--orange-600, #C45A1A);
  font-weight: 700;
  margin-bottom: .4rem;
}
.series-card__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink, #0B1A2A);
  margin: 0 0 .5rem;
}
.series-card__summary {
  font-size: .88rem;
  line-height: 1.45;
  color: var(--muted, #4A5666);
  margin: 0 0 .8rem;
  /* clamp to ~3 lines, summaries are ~190 chars / ~2-3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-card__cta {
  margin-top: auto;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: var(--orange, #D94A18);
}

/* active "You are here" card */
.series-card--active {
  background: linear-gradient(160deg, #FFF6F0 0%, #FFFCFA 100%);
  border-color: var(--orange, #D94A18);
  cursor: default;
}
.series-card--active .series-card__eyebrow { color: var(--orange, #D94A18); }

/* ---------- Click-time email gate modal ---------- */
.series-gate {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 42, .55);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.series-gate.is-open { display: flex; }
.series-gate__panel {
  background: #fff;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(11, 26, 42, .2);
  position: relative;
}
.series-gate__close {
  position: absolute;
  top: .65rem;
  right: .8rem;
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted, #6B7280);
  cursor: pointer;
  padding: .25rem .5rem;
}
.series-gate__close:hover { color: var(--ink, #0B1A2A); }
.series-gate__eyebrow {
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  color: var(--orange-600, #C45A1A);
  font-weight: 700;
  margin: 0 0 .4rem;
}
.series-gate__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 .55rem;
}
.series-gate__body {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--muted, #4A5666);
  margin: 0 0 1.1rem;
}
.series-gate__form {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.series-gate__input {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--line, #E5E8ED);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
}
.series-gate__input:focus {
  outline: none;
  border-color: var(--orange, #D94A18);
  box-shadow: 0 0 0 3px rgba(217, 74, 24, .12);
}
.series-gate__submit {
  background: var(--orange, #D94A18);
  color: #fff;
  border: 0;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s;
}
.series-gate__submit:hover { background: #B83C12; }
.series-gate__submit:disabled {
  background: #C4C8CE;
  cursor: not-allowed;
}
.series-gate__error {
  font-size: .82rem;
  color: #B83C12;
  margin: 0;
  min-height: 1.1em;
}
.series-gate__fineprint {
  font-size: .72rem;
  color: var(--muted, #6B7280);
  margin: .55rem 0 0;
  line-height: 1.45;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  .blog-shell--week { padding-top: 1.5rem; }
  .blog-shell--week h1 { font-size: 1.65rem; }
  .series-continue { margin-top: 2rem; padding-top: 1.5rem; }
  .series-continue__grid { grid-template-columns: 1fr; }
  .series-gate__panel { padding: 1.4rem 1.15rem 1.15rem; }
}
