/* ==========================================================================
   Case-study pages (spec 9a). Loaded after the case-study theme so the
   reused sections pick up the site's type and colours.
   ========================================================================== */

/* Hero */
.lc-cs-hero { padding-bottom: 56px; }
.lc-cs-label { font-size: 14px; font-weight: 600; color: var(--lc-coral-ink); margin: 0 0 16px; letter-spacing: .01em; }
.lc-cs-hero h1 { max-width: 20ch; font-size: 46px; }
.lc-cs-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--lc-line); }
.lc-cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 64px 0 0; border-top: 1px solid var(--lc-line); }
.lc-cs-facts div { padding: 22px 24px 0 0; }
.lc-cs-facts div + div { padding-left: 24px; border-left: 1px solid var(--lc-line); }
.lc-cs-facts dt { order: 2; font-size: 14px; font-weight: 400; color: var(--lc-muted); margin: 6px 0 0; }
.lc-cs-facts dd { order: 1; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: var(--lc-ink); margin: 0; font-variant-numeric: tabular-nums; }
.lc-cs-facts div { display: flex; flex-direction: column; }

/* Reused case-study sections: site type, no forced capitals */
.lc-cs h1, .lc-cs h2, .lc-cs h3, .lc-cs h4, .lc-cs h5, .lc-cs .meta-label, .lc-cs .label { text-transform: none !important; }
.lc-cs .laracorecs_section--wrapper .section-heading { font-weight: 600; letter-spacing: -0.02em; }
.lc-cs .laracorecs_section--wrapper .section-sub-heading { font-weight: 600; }
.lc-cs .laracorecs_section--wrapper p,
.lc-cs .laracorecs_section--wrapper li { line-height: 1.7; }
.lc-cs .laracorecs_sidebar--wrapper .sidebar-title { letter-spacing: .08em; }

/* Sidebar download link */
.lc-cs-side-download { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--lc-line); max-width: 260px; }
.lc-cs-side-download p { font-size: 14px; color: var(--lc-muted); margin: 0 0 6px; line-height: 1.5; }
.lc-cs-side-download button { background: none; border: 0; padding: 0; font-size: 15px; text-align: left; cursor: pointer; }

/* Download dialog */
.lc-cs-dialog { border: 0; padding: 0; width: min(460px, calc(100vw - 32px)); height: fit-content; max-height: calc(100vh - 32px); overflow: auto; background: transparent; position: fixed; inset: 0; margin: auto; }
.lc-cs-dialog::backdrop { background: rgba(18, 19, 21, .72); }
.lc-cs-dialog .lc-form { margin: 0; }
.lc-cs-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lc-cs-dialog-head .lc-h3 { margin-bottom: 8px; }
.lc-cs-dialog-close { background: none; border: 0; font-size: 28px; line-height: 1; padding: 0 4px; color: var(--lc-muted); cursor: pointer; }
.lc-cs-dialog-close:hover { color: var(--lc-ink); }
.lc-cs-dialog-text { font-size: 15px; color: var(--lc-muted); margin: 0 0 20px; }
.lc-cs-error { font-size: 14px; color: var(--lc-coral-ink); margin: -6px 0 14px; }

@media (max-width: 991px) {
  .lc-cs-hero h1 { font-size: 38px; }
  .lc-cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-cs-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .lc-cs-facts div:nth-child(n+3) { margin-top: 24px; }
}
@media (max-width: 575px) {
  .lc-cs-hero h1 { font-size: 32px; }
  .lc-cs-facts dd { font-size: 24px; }
  .lc-cs-facts div { padding-right: 12px; }
  .lc-cs-facts div + div { padding-left: 12px; }
}
