/* =============================================================================
   ZTE / uSmart Cloud Desktop case study — driven by DESIGN.md (repo root)
   -----------------------------------------------------------------------------
   Same DESIGN.md token set as the SyncCare new build:
   - p2 / h6 raised from 14px to 16px per Sinny's global "no text below 16px"
     rule (feedback_min_font_size_16px). Flagged for review.
   - Section rhythm (gaps, readable measure, meta grid, challenge-nav cards) is
     not in DESIGN.md — chosen here, easy to retune.
   Images are grey placeholder blocks (.zte-ph) until real assets land.
   ========================================================================== */

.zte-page *{ box-sizing:border-box; }
.zte-page{
  --ink:#0e0e0e;
  --muted:#6d6d6d;
  --bg:#ffffff;
  --card:#f5f5f5;
  --ph:#ededed;
  --radius-card:12px;

  --pad:32px;                 /* desktop + tablet */
  --content-max:1280px;
  --measure:760px;            /* readable text column */
  --fs-body:clamp(16px, 14.34px + 0.442vw, 20px);   /* body text, same scaling as SyncCare: 20px wide, 16px at phone width */

  --section-gap:120px;
  --block-gap:32px;
  --tight-gap:16px;

  background:var(--bg);
  color:var(--ink);
  font-family:"Inter", Arial, sans-serif;
  font-size:var(--fs-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;          /* safety net; layout already never overflows */
}
body.page-case-study{ margin:0; }   /* no UA 8px margin: side padding and title offset match the other case pages, and a hero image can touch both edges */

.zte-page img,
.zte-page video{ display:block; max-width:100%; }

/* ---------- structural wrappers ------------------------------------------- */
.zte-wrap{
  width:100%;
  max-width:var(--content-max);
  margin-inline:auto;
  padding-inline:var(--pad);
}
.zte-sections > * + *{ margin-top:var(--section-gap); }
.zte-sections{ padding-top:var(--case-top-offset, 140px); }   /* clears the fixed case-shell header */

/* Hero image, full browser width, fixed height, cropped to fill (same as SyncCare, Polar Beat and iQIYI) */
.zte-hero-image{ width:100%; height:750px; margin:0; overflow:hidden; background:var(--bg); }
.zte-sections > .zte-hero-image{ margin-top:var(--section-gap); }   /* same gap as between sections */
.zte-hero-image > img{ width:100%; height:100%; object-fit:cover; object-position:50% 50%; }

/* ---------- typography -------------------------------------------------- */
.zte-h1{
  font-family:"Inter Tight", "Inter", sans-serif;
  font-weight:600;
  font-size:80px;
  line-height:1.05;
  letter-spacing:-0.02em;
  color:var(--ink);
  margin:0;
}
.zte-h2{
  font-family:"Inter Tight", "Inter", sans-serif;
  font-weight:600;
  font-size:28px;
  line-height:1.3;
  color:var(--ink);
  margin:0;
}
.zte-h3{
  font-family:"Inter Tight", "Inter", sans-serif;
  font-weight:600;
  font-size:24px;
  line-height:1.35;
  color:var(--ink);
  margin:0;
}
.zte-h4{
  font-family:"Inter", sans-serif;
  font-weight:600;
  font-size:20px;
  line-height:1.4;
  color:var(--ink);
  margin:0;
}
.zte-eyebrow{                   /* DESIGN.md h6 */
  font-family:"Inter", sans-serif;
  font-weight:500;
  font-size:16px;              /* DESIGN.md 14 -> 16 (min-font rule) */
  line-height:1.4;
  letter-spacing:0.04em;
  color:var(--muted);
  margin:0;
}
.zte-p{
  font-family:"Inter", sans-serif;
  font-weight:400;
  font-size:var(--fs-body);
  line-height:1.6;
  color:var(--ink);
  margin:0;
}
.zte-p2{
  font-family:"Inter", sans-serif;
  font-weight:400;
  font-size:16px;             /* DESIGN.md 14 -> 16 (min-font rule) */
  line-height:1.6;
  color:var(--muted);
  margin:0;
}
.zte-p2-bold{
  font-weight:700;
  color:var(--ink);
}
.zte-measure{ max-width:var(--measure); }

/* ---------- section skeleton ----------------------------------------- */
.zte-section{
  display:flex;
  flex-direction:column;
  gap:var(--block-gap);
}
.zte-section .zte-eyebrow + .zte-h3,
.zte-section .zte-eyebrow + .zte-p,
.zte-section .zte-eyebrow + .zte-p2,
.zte-section .zte-h3 + .zte-p,
.zte-section .zte-h3 + .zte-p2{ margin-top:calc(var(--tight-gap) - var(--block-gap)); }

.zte-stack{ display:flex; flex-direction:column; gap:var(--tight-gap); }

/* ---------- hero / title ------------------------------------------- */
/* wide screens: h1 left, subtitle + meta in a vertically centred right column */
.zte-hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
.zte-hero-side{ display:flex; flex-direction:column; }

.zte-meta{
  margin-top:72px;
  display:flex;
  flex-wrap:wrap;
  gap:40px 64px;
}
.zte-meta-group{ display:flex; flex-direction:column; gap:10px; }
.zte-meta-group .zte-eyebrow{ margin-bottom:4px; }
.zte-meta-group .zte-h4{ font-size:var(--fs-body); }

/* ---------- challenge navigation cards --------------------------- */
.zte-nav{
  display:grid;
  grid-auto-flow:column;      /* one column per visible card (Challenge 3 is hidden for now) */
  grid-auto-columns:minmax(0, 1fr);
  gap:24px;
}
.zte-page [hidden]{ display:none !important; }   /* the class display rules would otherwise override the hidden attribute */
.zte-navcard{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:28px;
  border-radius:var(--radius-card);
  background:var(--card);
  text-decoration:none;
  color:var(--ink);
}
.zte-navcard__step{
  font-family:"Inter", sans-serif;
  font-weight:500;
  font-size:16px;
  letter-spacing:0.04em;
  color:var(--muted);
}
.zte-navcard__title{
  font-family:"Inter", sans-serif;
  font-weight:600;
  font-size:20px;
  line-height:1.4;
}
a.zte-navcard{ transition:transform .15s ease, background .15s ease; }
a.zte-navcard:hover,
a.zte-navcard:focus-visible{ transform:translateY(-2px); background:#ededed; }

/* ---------- what-I-did list ------------------------------------- */
.zte-list{
  margin:0;
  padding-left:1.2em;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.zte-list li{
  font-family:"Inter", sans-serif;
  font-size:var(--fs-body);
  line-height:1.6;
  color:var(--ink);
}

/* ---------- numbered analysis / feature blocks --------------- */
.zte-points{ display:flex; flex-direction:column; gap:40px; }
.zte-point{ display:flex; flex-direction:column; gap:12px; }
.zte-point > .zte-h4,
.zte-point > .zte-p{ max-width:var(--measure); }

/* ---------- three-up cards (layer cards) ------------------- */
.zte-cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.zte-card{ display:flex; flex-direction:column; gap:16px; }
.zte-card > .zte-p2{ flex:1; }
.zte-card > .zte-ph{ min-height:clamp(150px, 20vw, 220px); }
@media (max-width:900px){
  .zte-cards{ grid-template-columns:1fr; }
  .zte-card > .zte-ph{ min-height:clamp(200px, 42vw, 340px); }
}

/* ---------- pull statement (DESIGN.md h3, oversized) --------- */
.zte-pull{
  font-family:"Inter Tight", "Inter", sans-serif;
  font-weight:600;
  font-size:32px;
  line-height:1.3;
  color:var(--ink);
  margin:0;
  max-width:960px;
}

/* ---------- media --------------------------------------- */
/* same box as .zte-ph placeholders: full content width, inside section padding */
.zte-media{ width:100%; margin:0; }
.zte-media > img,
.zte-media > video{
  width:100%;
  height:auto;
  display:block;
  border-radius:var(--radius-card);
}
/* half the width of a full-bleed media block */
.zte-media--half{ width:50%; }
@media (max-width:767px){
  .zte-media--half{ width:100%; }
}

/* ---------- image placeholders ----------------------------- */
.zte-ph{
  width:100%;
  margin:0;
  border-radius:var(--radius-card);
  background:var(--ph);
  min-height:clamp(220px, 42vw, 460px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.zte-ph span{
  font-family:"Inter", sans-serif;
  font-size:16px;
  letter-spacing:0.04em;
  color:#9b9b9b;
}

/* ---------- impact block ---------------------------------- */
.zte-impact{ display:flex; flex-direction:column; gap:28px; }
.zte-impact-item{ display:flex; flex-direction:column; gap:8px; max-width:var(--measure); }

/* ---------- tablet -------------------------------------- */
@media (max-width:1024px){
  .zte-page{ --section-gap:96px; }
  .zte-h1{ font-size:48px; }
  .zte-h2{ font-size:24px; }
  .zte-pull{ font-size:26px; }
  /* stack hero: h1, then subtitle + meta */
  .zte-hero-grid{ grid-template-columns:1fr; gap:16px; align-items:start; }
  .zte-meta{ margin-top:40px; }
}

@media (max-width:900px){
  .zte-hero-image{ height:350px; }
  .zte-nav{ grid-auto-flow:row; grid-template-columns:1fr; }
}

/* ---------- mobile ------------------------------------ */
@media (max-width:767px){
  .zte-page{
    --pad:16px;
    --section-gap:72px;
    --block-gap:24px;
  }
  .zte-sections{ padding-top:var(--case-top-offset, 110px); }
  .zte-h1{ font-size:36px; }
  .zte-h2{ font-size:20px; }
  .zte-h3{ font-size:22px; }
  .zte-pull{ font-size:22px; }
  .zte-meta{ flex-direction:column; gap:28px; margin-top:40px; }
  .zte-navcard{ padding:20px; }
}
