/**
 * /blog/ — the Latest Case Studies band.
 *
 * WHY IT LOOKS LIKE /case-studies/ AND NOT LIKE /blog/. The index is a cream gallery; the
 * case-study landing page is an ink-dark dossier. This band is the doorway between them, so
 * it borrows the dossier's palette (deep brown ground, cream Playfair, gold hairlines,
 * method-coloured chips) rather than pretending to be another crop of article cards. It is
 * the only dark block in the page's upper half, which is what makes it read as a different
 * kind of content.
 *
 * ⚠️ IT SITS ABOVE THE MUST-READS SHOWCASE, WHICH FADES IN FROM CREAM. That fade is right when
 * a cream section is above it and wrong when a dark band is: it would paint a 120px cream
 * smear between two dark sections. `main[data-blog-case-studies]` is only set on the one page
 * that renders the band, so the override cannot follow it anywhere else.
 *
 * ⚠️ Shared.css clamps h1–h6 and forces line-height on p/span/a with !important. Every size
 * below is therefore deliberate and !important too, exactly as /case-studies.css does it.
 */

.bcs {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.25rem 2rem 4.5rem;
  background:
    radial-gradient(110% 80% at 10% 0%, rgba(214, 173, 96, 0.1), transparent 58%),
    #241c16;
  color: var(--msc-cream-light, #f5eed8);
  border-top: 1px solid rgba(214, 173, 96, 0.28);
  border-bottom: 1px solid rgba(214, 173, 96, 0.28);
}
/* The shared grain overlay is z-index:10; behind the content here, not over it. */
.bcs .msc-grain { z-index: 0; }
.bcs-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── header ───────────────────────────────────────────────────────────────────────────── */
.bcs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(214, 173, 96, 0.22);
}
.bcs-eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--msc-font-accent, 'Jost', sans-serif);
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.26em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--msc-gold, #d6ad60);
}
.bcs-title {
  margin: 0;
  font-family: var(--msc-font-heading, 'Playfair Display', Georgia, serif);
  font-weight: 400 !important;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem) !important;
  line-height: 1.15 !important;
  color: var(--msc-cream-light, #f5eed8);
}
.bcs-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(214, 173, 96, 0.4);
  font-family: var(--msc-font-body, 'Public Sans', sans-serif);
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  line-height: 1.2 !important;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--msc-gold, #d6ad60);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bcs-browse svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.bcs-browse:hover { color: var(--msc-cream-light, #f5eed8); border-color: var(--msc-cream-light, #f5eed8); }
.bcs-browse:hover svg { transform: translateX(3px); }

/* ── cards ────────────────────────────────────────────────────────────────────────────── */
.bcs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
}
.bcs-card { display: flex; flex-direction: column; min-width: 0; }
.bcs-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #191310;
  border: 1px solid rgba(214, 173, 96, 0.18);
}
.bcs-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.bcs-card:hover .bcs-media img,
.bcs-card:focus-within .bcs-media img { transform: scale(1.035); }
.bcs-media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: rgba(214, 173, 96, 0.35);
}
.bcs-body { display: flex; flex-direction: column; flex: 1; padding-top: 1rem; }
.bcs-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.7rem;
  margin-bottom: 0.45rem;
}
.bcs-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(214, 173, 96, 0.35);
  font-family: var(--msc-font-body, 'Public Sans', sans-serif);
  font-size: 0.66rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--msc-gold, #d6ad60);
}
.bcs-chip[data-method='financial'] { color: #c98354; border-color: rgba(201, 131, 84, 0.4); }
.bcs-chip[data-method='qimen'] { color: #9aa88c; border-color: rgba(154, 168, 140, 0.4); }
.bcs-chip[data-method='zwds'] { color: #b18a9c; border-color: rgba(177, 138, 156, 0.4); }
.bcs-chip[data-method='technicals'],
.bcs-chip[data-method='western'],
.bcs-chip[data-method='fengshui'],
.bcs-chip[data-method='other'] { color: #9c8f78; border-color: rgba(156, 143, 120, 0.35); }

.bcs-card-title {
  margin: 0 0 0.55rem;
  font-family: var(--msc-font-heading, 'Playfair Display', Georgia, serif);
  font-weight: 400 !important;
  font-size: 1.3rem !important;
  line-height: 1.3 !important;
  color: var(--msc-cream-light, #f5eed8);
}
.bcs-card-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 0.2s ease, background-size 0.25s ease;
}
.bcs-card-title a:hover { color: var(--msc-gold, #d6ad60); background-size: 100% 1px; }
.bcs-ex {
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  color: #c9bca2;
}
.bcs-date {
  margin-top: auto;
  font-family: var(--msc-font-accent, 'Jost', sans-serif);
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.13em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: #9c8f78;
}
.bcs a:focus-visible { outline: 2px solid var(--msc-gold, #d6ad60); outline-offset: 3px; }

/* ── the seam below ───────────────────────────────────────────────────────────────────── */
/* Only the page that renders the band carries this attribute — see the header. */
main[data-blog-case-studies] .must-reads-section::after { display: none; }

/* ── responsive ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bcs { padding: 3.5rem 1.5rem 3.75rem; }
  .bcs-grid { gap: 1.5rem; }
  .bcs-card-title { font-size: 1.2rem !important; }
}
@media (max-width: 860px) {
  .bcs-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .bcs-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .bcs-media { aspect-ratio: 16 / 9; }
  .bcs-ex { -webkit-line-clamp: 4; }
}
@media (max-width: 480px) {
  .bcs { padding: 3rem 1.25rem 3.25rem; }
  .bcs-title { font-size: 1.9rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .bcs-media img,
  .bcs-card-title a,
  .bcs-browse,
  .bcs-browse svg { transition: none; }
  .bcs-card:hover .bcs-media img,
  .bcs-card:focus-within .bcs-media img { transform: none; }
}
