/* =========================================================================
   DPH Case Studies — front-end styles
   Adapted from the approved single case study design, scoped to .dph-cs so it
   never touches the theme's global header/footer. Variables are scoped too.
   ========================================================================= */

.dph-cs{
  --ink:#0B0B0D;
  --ink-2:#141416;
  --text:#EDEBE6;
  --muted:#9A968E;
  --muted-2:#78746D;
  --gold:#E7B94A;
  --gold-2:#C99A3A;
  --gold-ink:#B8892E;
  --line:rgba(231,185,74,.18);
  --line-soft:rgba(255,255,255,.08);
  --paper:#FFFFFF;
  --paper-ink:#1A1A1A;
  --serif:'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw:1180px;

  background:var(--ink);
  color:var(--text);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

.dph-cs *{box-sizing:border-box}
.dph-cs img{max-width:100%;display:block;height:auto}
.dph-cs a{color:inherit;text-decoration:none}
.dph-cs .serif{font-family:var(--serif)}
.dph-cs :focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:3px}

.dph-cs .cs-container{max-width:var(--maxw);margin:0 auto;padding:0 26px}
.dph-cs .cs-main{display:block}

.dph-cs .cs-eyebrow{
  font-size:12px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);
  margin:0 0 8px;
}

/* ---------- hero / report header ---------- */
.dph-cs .cs-hero{position:relative;padding:84px 0 60px;overflow:hidden}
.dph-cs .cs-hero::before{
  content:"";position:absolute;top:-160px;left:50%;transform:translateX(-50%);
  width:900px;height:520px;pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(231,185,74,.14), rgba(231,185,74,0) 62%);
}
.dph-cs .cs-hero-inner{position:relative;max-width:900px}
.dph-cs .cs-hero-title{
  font-family:var(--serif);font-weight:700;
  font-size:clamp(2.4rem,6vw,4.2rem);line-height:1.04;letter-spacing:-.01em;
  margin:6px 0 8px;color:var(--text);
}
.dph-cs .cs-hero-sub{
  font-family:var(--serif);font-style:italic;font-weight:600;
  font-size:clamp(1.1rem,2.4vw,1.5rem);color:var(--gold-2);margin:0;
}
.dph-cs .cs-hero-meta{display:flex;flex-wrap:wrap;gap:11px 12px;margin-top:30px}
.dph-cs .cs-meta-chip{
  display:inline-flex;align-items:center;gap:9px;
  font-size:13.5px;color:#CBC7BF;border:1px solid var(--line);border-radius:100px;padding:9px 16px;
}
.dph-cs .cs-meta-chip b{color:var(--gold);font-weight:600;letter-spacing:.1em;text-transform:uppercase;font-size:10.5px}
.dph-cs .cs-meta-link{color:var(--gold);font-weight:600}
.dph-cs .cs-meta-link:hover{border-color:var(--gold);background:rgba(231,185,74,.06)}

/* ---------- generic section ---------- */
.dph-cs .cs-section{padding:74px 0}
.dph-cs .cs-section.cs-alt{background:var(--ink-2);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.dph-cs .cs-head{max-width:760px;margin-bottom:30px}
.dph-cs .cs-head h1,.dph-cs .cs-head h2,.dph-cs .cs-head h3,.dph-cs .cs-head h4,.dph-cs .cs-head h5,.dph-cs .cs-head h6{
  font-family:var(--serif);font-weight:700;font-size:clamp(1.8rem,3.6vw,2.7rem);
  line-height:1.1;letter-spacing:-.01em;position:relative;padding-bottom:18px;margin:0;color:var(--text);
}
.dph-cs .cs-head h1::after,.dph-cs .cs-head h2::after,.dph-cs .cs-head h3::after,
.dph-cs .cs-head h4::after,.dph-cs .cs-head h5::after,.dph-cs .cs-head h6::after{
  content:"";position:absolute;left:0;bottom:0;width:54px;height:3px;background:var(--gold);border-radius:2px;
}

/* ---------- prose ---------- */
.dph-cs .cs-prose{max-width:770px}
.dph-cs .cs-prose.cs-prose-wide{max-width:860px}
.dph-cs .cs-prose.cs-prose-after{margin-top:30px}
.dph-cs .cs-prose p{color:#C6C2BA;font-size:16.5px;line-height:1.72;margin:0 0 18px}
.dph-cs .cs-prose p:last-child{margin-bottom:0}
.dph-cs .cs-prose a{color:var(--gold);border-bottom:1px solid var(--line)}
.dph-cs .cs-prose a:hover{border-color:var(--gold)}

/* ---------- KPI grid ---------- */
.dph-cs .cs-kpi-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--line-soft);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-top:34px;
}
.dph-cs .cs-kpi{background:var(--ink-2);padding:32px 26px;text-align:center}
.dph-cs .cs-kv{font-family:var(--serif);font-weight:700;color:var(--gold);font-size:clamp(1.9rem,4.4vw,2.9rem);line-height:1;letter-spacing:-.01em}
.dph-cs .cs-kl{font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-top:13px;line-height:1.42}
.dph-cs .cs-kl-strong{font-family:var(--serif);font-weight:700;font-size:1.02rem;letter-spacing:0;text-transform:none;color:var(--text);margin-top:12px}
.dph-cs .cs-ksub{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.4}

/* ---------- note ---------- */
.dph-cs .cs-note{max-width:820px;margin:34px 0 0;padding-left:18px;border-left:2px solid var(--gold-2);
  font-style:italic;color:var(--muted);font-size:14.5px;line-height:1.62}

/* ---------- tables ---------- */
.dph-cs .cs-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:14px;margin:30px 0 8px}
.dph-cs .cs-table{width:100%;border-collapse:collapse}
.dph-cs .cs-table.cs-table-wide{min-width:640px}
.dph-cs .cs-table th,.dph-cs .cs-table td{text-align:left;padding:16px 20px;font-size:15.5px;line-height:1.45;font-variant-numeric:tabular-nums}
.dph-cs .cs-table thead th{
  background:rgba(231,185,74,.06);color:var(--gold);font-size:11.5px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;border-bottom:1px solid var(--line);white-space:nowrap;
}
.dph-cs .cs-table tbody td{border-bottom:1px solid var(--line-soft);color:#C6C2BA}
.dph-cs .cs-table tbody tr:last-child td{border-bottom:none}
.dph-cs .cs-table tbody tr:hover td{background:rgba(231,185,74,.03)}
.dph-cs .cs-td-key{color:var(--text);font-weight:600}
.dph-cs .cs-td-was{color:var(--muted)}
.dph-cs .cs-td-now{color:var(--gold);font-weight:600}
.dph-cs .cs-td-chg{color:var(--gold);font-weight:600;white-space:nowrap}
.dph-cs .cs-td-vol{color:#C6C2BA;white-space:nowrap}
.dph-cs .cs-td-jump{color:var(--gold);font-weight:600;white-space:nowrap}
.dph-cs .cs-td-area{color:var(--muted-2);font-size:13px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}

.dph-cs .cs-subhead{
  font-family:var(--serif);font-weight:600;font-size:1.32rem;color:var(--text);
  margin:40px 0 4px;display:flex;align-items:center;gap:13px;
}
.dph-cs .cs-subhead::before{content:"";width:22px;height:2px;background:var(--gold);border-radius:2px;flex:0 0 auto}

/* ---------- figures ---------- */
.dph-cs .cs-figs-single .cs-figure{margin:30px 0 0}
.dph-cs .cs-figs-single .cs-figure:first-child{margin-top:30px}
.dph-cs .cs-figs-grid{display:grid;gap:28px;margin-top:30px}
.dph-cs .cs-figs-grid2{grid-template-columns:repeat(2,1fr)}
.dph-cs .cs-figs-grid3{grid-template-columns:repeat(3,1fr)}
.dph-cs .cs-figs-grid4{grid-template-columns:repeat(2,1fr)}
.dph-cs .cs-figure{margin:0}
.dph-cs .cs-fig-label{font-family:var(--serif);font-weight:600;color:var(--text);font-size:1.05rem;margin-bottom:12px}
.dph-cs .cs-frame{background:#FFFFFF;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:0 16px 40px rgba(0,0,0,.34)}
.dph-cs .cs-frame img{border-radius:7px;width:100%}
.dph-cs .cs-figcaption{margin-top:15px;text-align:center;font-style:italic;color:var(--muted);font-size:13.5px;line-height:1.55}

/* ---------- AI question columns ---------- */
.dph-cs .cs-ai-cols{display:grid;gap:26px;margin-top:30px}
.dph-cs .cs-ai-1{grid-template-columns:1fr}
.dph-cs .cs-ai-2{grid-template-columns:repeat(2,1fr)}
.dph-cs .cs-ai-3{grid-template-columns:repeat(3,1fr)}
.dph-cs .cs-ai-card{background:var(--ink-2);border:1px solid var(--line);border-radius:16px;padding:30px}
.dph-cs .cs-ai-badge{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--gold);border:1px solid var(--line);border-radius:100px;padding:6px 13px;margin-bottom:18px}
.dph-cs .cs-qlist{list-style:none;margin:0;padding:0}
.dph-cs .cs-qlist li{position:relative;padding:12px 0 12px 30px;border-bottom:1px solid var(--line-soft);color:#CFCBC3;font-size:15.5px;line-height:1.5}
.dph-cs .cs-qlist li:last-child{border-bottom:none}
.dph-cs .cs-qlist li::before{content:"";position:absolute;left:2px;top:19px;width:9px;height:9px;border-radius:50%;
  background:var(--gold);box-shadow:0 0 0 4px rgba(231,185,74,.12)}

/* ---------- program lists ---------- */
.dph-cs .cs-program{list-style:none;max-width:900px;margin:26px 0 0;padding:0}
.dph-cs .cs-program li{padding:20px 0;border-bottom:1px solid var(--line-soft);color:#C6C2BA;font-size:16px;line-height:1.66}
.dph-cs .cs-program li:first-child{padding-top:0}
.dph-cs .cs-program li:last-child{border-bottom:none}
.dph-cs .cs-program li b{color:var(--gold);font-weight:600}

/* ---------- buttons ---------- */
.dph-cs .cs-btns{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.dph-cs .cs-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:15px;font-weight:600;
  padding:14px 26px;border-radius:6px;border:1px solid transparent;transition:transform .18s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease}
.dph-cs .cs-btn-gold{background:var(--gold);color:#171308;border-color:var(--gold)}
.dph-cs a.cs-btn-gold:hover{background:#F0C55E;transform:translateY(-2px);box-shadow:0 10px 26px rgba(231,185,74,.22)}
.dph-cs .cs-btn-ghost{background:transparent;color:var(--gold);border-color:var(--line)}
.dph-cs a.cs-btn-ghost:hover{border-color:var(--gold);background:rgba(231,185,74,.06);transform:translateY(-2px)}

/* ---------- closing (paper box) ---------- */
.dph-cs .cs-closing{padding:60px 0 90px}
.dph-cs .cs-closing-box{background:var(--paper);border-radius:18px;padding:clamp(40px,6vw,64px) clamp(26px,5vw,58px);
  text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.4)}
.dph-cs .cs-closing-statement{font-family:var(--serif);font-weight:700;color:var(--gold-ink);
  font-size:clamp(1.4rem,2.9vw,2.05rem);line-height:1.22;max-width:820px;margin:0 auto}
.dph-cs .cs-prepared{margin:26px 0 0;color:var(--paper-ink);font-weight:700;font-size:16.5px}
.dph-cs .cs-sources{margin:8px 0 0;color:#6A665F;font-style:italic;font-size:13.5px;line-height:1.55}
.dph-cs .cs-closing-box .cs-btns{justify-content:center;margin-top:26px}
.dph-cs .cs-back{display:inline-flex;align-items:center;gap:8px;margin-top:26px;color:var(--gold-ink);font-weight:600;font-size:15px;border-bottom:1px solid rgba(184,137,46,.4)}
.dph-cs .cs-back:hover{border-color:var(--gold-ink)}
.dph-cs .cs-back svg{width:15px;height:15px}

/* ---------- reveal (progressive enhancement: hidden only when JS is on) ---------- */
.dph-cs.dph-anim .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease, transform .7s ease}
.dph-cs.dph-anim .reveal.in{opacity:1;transform:none}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .dph-cs .cs-figs-grid2,.dph-cs .cs-figs-grid3,.dph-cs .cs-figs-grid4{grid-template-columns:1fr}
  .dph-cs .cs-ai-2,.dph-cs .cs-ai-3{grid-template-columns:1fr}
}
@media (max-width:720px){
  .dph-cs{font-size:16px}
  .dph-cs .cs-section{padding:54px 0}
  .dph-cs .cs-hero{padding:60px 0 46px}
  .dph-cs .cs-kpi-grid{grid-template-columns:repeat(2,1fr)}
  .dph-cs .cs-kpi{padding:26px 18px}
  .dph-cs .cs-table th,.dph-cs .cs-table td{padding:14px 16px;font-size:14.5px}
  .dph-cs .cs-closing{padding:46px 0 66px}
}
@media (max-width:460px){
  .dph-cs .cs-kpi-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .dph-cs.dph-anim .reveal{opacity:1;transform:none;transition:none}
  .dph-cs .cs-btn:hover{transform:none}
}
