/* Shared editorial layout for the three practice pages. */
.case-detail {
  --detail-ink: #101b32;
  --detail-blue: #102f97;
  --detail-accent: #00739b;
  color: var(--detail-ink);
  background: #f5f7fa;
}
.case-detail .case-intro {
  padding-block: 0;
  color: white;
  background: linear-gradient(128deg, #0b1536 4%, #102a78 47%, #1350c4 100%);
  border-bottom: 5px solid #39d3fc;
}
.case-detail .detail-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .82fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3.25rem, 6.5vw, 6.75rem);
}
.case-detail .detail-intro-copy { min-width: 0; }
.case-detail .case-intro .kicker { color: #85e6fe; }
.case-detail .case-intro h1 {
  margin: .2em 0 .22em;
  font-family: var(--display);
  font-size: clamp(3.65rem, 8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .94;
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-wrap: balance;
  color: #fff;
}
.case-detail .case-intro .lede {
  max-width: 58ch;
  margin: 1.15em 0 0;
  color: #e4ecff;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.case-detail .detail-cover {
  position: relative;
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid #55dafc;
}
.detail-cover > a { display: block; }
.detail-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #0a1021;
}
.detail-cover figcaption {
  margin-top: .65rem;
  color: #e3edff;
  font-size: .81rem;
  line-height: 1.5;
}
.detail-shortcuts { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin-top: 1.1rem; }
.detail-shortcuts a {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px;
  color: #baf7ff; font-weight: 700; font-size: .85rem; line-height: 1.4;
  text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #729ebe;
}
.detail-shortcuts a:hover, .detail-shortcuts a:focus-visible { color: white; text-decoration-color: currentColor; }
.detail-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.detail-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: clamp(1.3rem, 2.4vw, 2.4rem);
  border-left: 4px solid #55dafc;
  background: #102357;
}
.detail-spotlight .detail-overline {
  margin: 0 0 1rem;
  font-size: .78rem;
  font-weight: bold;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8ce7ff;
}
.case-detail .case-section { padding-block: clamp(2.8rem, 6vw, 6rem); }
.case-detail .case-section + .case-section { padding-top: 0; }
.case-detail :is(.case-section, .case-row, .piece)[id] { scroll-margin-top: .25rem; }
.detail-section-heading {
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--detail-ink);
}
.detail-section-heading h2 {
  margin: 0;
  color: var(--detail-ink);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.case-detail .case-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(1.5rem, 7vw, 7.5rem);
  padding: clamp(1.7rem, 4vw, 3.5rem) 0;
  border-top: 0;
  border-bottom: 1px solid #bec8d6;
}
.detail-affiliation,
.detail-story { min-width: 0; }
.case-detail .case-meta {
  margin: 0 0 .7rem;
  color: #315184;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .075em;
  line-height: 1.5;
}
.case-detail h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  letter-spacing: -.037em;
  line-height: 1.12;
  color: var(--detail-ink);
  text-wrap: balance;
}
.case-detail .job-title {
  color: #315184;
  margin: .65rem 0 0;
  line-height: 1.55;
}
.detail-story p,
.detail-description {
  margin: 0 0 .8rem;
  color: #263a52;
  line-height: 1.68;
  max-width: 66ch;
  text-wrap: pretty;
}
.detail-story p:last-child { margin-bottom: 0; }
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  color: var(--detail-blue);
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .27em;
}
.detail-spotlight .detail-link { margin-top: .7rem; color: #a9edff; }
.detail-cover a:focus-visible,
.detail-spotlight .detail-link:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.detail-link:hover { text-decoration-thickness: 2px; }
.detail-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.8rem;
  margin: 1.4rem 0 .65rem;
}
.detail-number {
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.detail-number strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--detail-blue);
}
.detail-number > span { font-size: .8rem; line-height: 1.45; color: #415575; }
.detail-spotlight .detail-number strong {
  font-size: clamp(4rem, 6.4vw, 6.25rem);
  color: white;
}
.detail-spotlight .detail-number > span { color: #e0efff; font-size: 1rem; }
.case-detail .pieces-grid {
  display: block;
}
.case-detail .piece {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  grid-template-areas: "heading cover" "copy cover";
  grid-template-rows: auto 1fr;
  gap: 1rem clamp(2rem,6vw,6rem);
  align-items: start;
  min-width: 0;
  padding-block: clamp(1.8rem,3.6vw,3.5rem);
  border-bottom: 1px solid #bec8d6;
}
.piece-heading { grid-area: heading; }
.piece-copy { grid-area: copy; min-width: 0; }
.case-detail .piece h3 { font-size: clamp(1.7rem,3.25vw,3.35rem); }
.case-detail .piece .detail-description { margin: 0; }
.case-detail .piece .detail-metrics { margin: 1.2rem 0 .55rem; }
.case-detail .piece .work-cover { grid-area: cover; align-self: start; margin: 0; }
.case-detail #rewrite .work-cover { max-width: 38rem; }
.case-detail .applied-row {
  grid-template-columns: minmax(0,1fr) minmax(0,1.08fr);
  align-items: start; gap: clamp(1.5rem,5vw,5rem);
}
.applied-copy { min-width: 0; }
.applied-copy .detail-story { margin-top: 1rem; }
.applied-copy .detail-metrics { margin: 1.1rem 0 .5rem; }
.applied-proof { min-width: 0; }
.applied-proof .role-source img { max-height: none; }
.applied-row#feedback-bot .role-source { max-width: 29rem; }
.case-detail .channel-links { display: flex; gap: .45rem 2rem; flex-wrap: wrap; margin-top: 1rem; }
.case-detail .detail-note { margin: .6rem 0 0; font-size: .84rem; line-height: 1.55; color: #415575; }
html[lang^="zh"] .case-detail .case-intro h1 { line-height: 1.13; letter-spacing: -.04em; }
html[lang^="zh"] .case-detail h3 { line-height: 1.35; }
@media (max-width: 760px) {
  .case-detail .detail-intro-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .case-detail .detail-cover, .case-detail .detail-spotlight { width: 100%; max-width: 30rem; }
  .case-detail .detail-cover { padding-left: .8rem; }
  .case-detail .case-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .case-detail .piece {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "heading" "cover" "copy";
    gap: .85rem;
  }
  .case-detail .detail-story p { max-width: none; }
  .case-detail .case-intro h1 { font-size: clamp(3.35rem, 12vw, 5.5rem); }
}
@media (max-width: 380px) {
  .case-detail .case-intro h1 { font-size: 2.95rem; }
  .case-detail .detail-metrics { column-gap: 1.2rem; }
}

.work-cover { width: 100%; min-width: 0; margin: 0; }
.work-cover-art { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; background: #0a142d; }
.work-cover-art img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.work-cover-art:focus-visible { outline: 3px solid #40b7ff; outline-offset: 3px; }
.work-cover figcaption { margin-top: .52rem; font: 650 .77rem/1.4 var(--body); }
.creator-desk .work-cover figcaption { color: #b7c9de; }
.piece .work-cover figcaption { color: #425875; }
.work-originals { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.4rem; }

.role-index { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid #647da5; background: #647da5; }
.role-index a { position: relative; display: grid; align-content: center; gap: 3px; min-height: 65px; padding: 10px 30px 10px 15px; background: #102c5f; color: white; }
.role-index a:hover, .role-index a:focus-visible { background: #d1fffa; color: #102147; }
.role-index small { font-size: .72rem; line-height: 1.3; opacity: .88; }
.role-index strong { font: 700 clamp(.92rem,1.18vw,1.1rem)/1.16 var(--body); }
.role-index i { position: absolute; right: .7rem; bottom: 1rem; font-style: normal; }
.publishing-detail .job-row {
  grid-template-columns: minmax(0,.62fr) minmax(0,1.55fr);
  gap: clamp(.9rem,1.7vw,1.7rem) clamp(1.25rem,4vw,4rem);
  padding-block: clamp(1.8rem,3.8vw,3.75rem);
}
.role-project { margin: 0 0 .65rem; color: #152c50; font: 700 clamp(1.25rem,1.85vw,1.85rem)/1.22 var(--body); letter-spacing: -.02em; text-wrap: balance; }
.role-material { grid-column: 1 / -1; min-width: 0; }
.role-spread { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1rem,3.4vw,3rem); align-items: start; }
.role-source { margin: 0; min-width: 0; }
.role-source > a { display: grid; place-items: center; background: #102747; border-top: 3px solid #315eb0; }
.role-source img { display: block; max-height: 330px; width: 100%; height: auto; object-fit: contain; }
.role-source figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; padding-top: .35rem; color: #364d6b; font: 600 .78rem/1.5 var(--body); }
.role-source .detail-link { margin-top: 0; font-size: .82rem; }
.role-evidence { min-width: 0; align-self: center; }
.role-method { color: #122c50; }
.role-method h5 { margin: 0 0 .4rem; font: 700 clamp(1rem,1.45vw,1.3rem)/1.35 var(--body); }
.role-method ol { margin: 0; padding: 0; list-style: none; border-block: 1px solid #8aa1b9; }
.role-method li { display: grid; grid-template-columns: minmax(80px, .47fr) minmax(0,1.2fr); gap: .85rem; align-items: baseline; padding: .55rem 0; }
.role-method li + li { border-top: 1px solid #c3cfda; }
.role-method strong { font-size: .94rem; line-height: 1.3; }
.role-method li p { margin: 0; font-size: .91rem; line-height: 1.52; }
.role-figures { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: .8rem; margin: .65rem 0 0; padding: .7rem 0 .3rem; }
.role-figures > div { display: flex; flex-direction: column; align-items: start; gap: .3rem; }
.role-figures dd { order: -1; margin: 0; font: 800 clamp(1.65rem,3.15vw,3.1rem)/1.08 var(--display); color: #174d99; letter-spacing: -.035em; }
.role-figures dt { color: #334e6d; font: 650 .81rem/1.4 var(--body); }
@media(min-width: 761px){
  .publishing-detail .job-row:is(#fantasy,#bluefocus) {
    grid-template-columns: minmax(0,1fr) minmax(0,1.08fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "identity evidence" "story evidence";
  }
  .job-row:is(#fantasy,#bluefocus) .detail-affiliation { grid-area: identity; }
  .job-row:is(#fantasy,#bluefocus) .detail-story { grid-area: story; }
  .job-row:is(#fantasy,#bluefocus) .role-material { grid-area: evidence; }
}
.role-kart-spread .role-evidence > h5 { margin: 0 0 .6rem; font: 700 clamp(1rem,1.45vw,1.3rem)/1.35 var(--body); }
.role-kart-spread .role-source img { max-height: 390px; }
.job-row:is(#bluefocus,#tencent) .role-figures { padding-top: .95rem; margin: 0; border-top: 1px solid #93aac0; }
.job-row .role-material > .detail-link { margin-top: .5rem; }
.application-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.application-photos img { display: block; width: 100%; height: auto; }
@media(min-width: 650px) and (max-width: 1000px){
  .publishing-detail .detail-intro-grid { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 2.75rem; }
  .publishing-detail .role-index { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .publishing-detail .role-index a { min-height: 61px; }
}
@media(max-width:760px){
  .publishing-detail .job-row { grid-template-columns: 1fr; }
  .role-spread { grid-template-columns: minmax(0,1fr); }
  .role-evidence { width: 100%; }
  .role-index a { min-height: 53px; }
  .role-source img { max-height: 300px; }
}
@media(max-width:400px){
  .role-index a { padding: 9px 16px 9px 9px; }
  .role-index i { right: 4px; }
  .role-method li { grid-template-columns: minmax(65px,.45fr) minmax(0,1.1fr); gap: .5rem; }
  .role-figures { gap: .5rem; }
}
