/* Magazine portrait and a ruled chronology. */
#card.editorial .hero { flex-direction:row; align-items:flex-start; gap:5%; padding-block:32px }
#card.editorial .hero #portrait { width:27%; max-width:220px; border-bottom:2px solid currentColor }
.editorial #intro { max-width:48em; line-height:1.85 }
.editorial #case-list { border-inline-start:1px solid currentColor; padding-inline-start:18px }
.editorial #case-list p { grid-template-columns:minmax(5em,1fr) 3fr; padding-block:8px }
.editorial #page-nav { justify-content:flex-end }
/* Gallery opening, followed by the career record. */
#card.folio { display:flex; flex-direction:column }
.folio #page-nav { justify-content:center }
#card.folio .hero { flex-direction:column; gap:14px; text-align:center; padding-block:30px }
#card.folio .hero #portrait { width:108px; border-radius:50% }
.folio #quick { justify-content:center }
.folio #intro { max-width:48em; margin-inline:auto }
.folio #work-section { order:1 }
.folio #case-section { order:2 }
.folio #profile-section { order:3 }
.folio #contact-section { order:4 }
.folio .content-grid { gap:clamp(12px,2vw,32px); margin-block:30px }
.folio .content-grid h4 { margin-top:16px }
@media(max-width:600px){
 #card.editorial .hero { display:block }
 #card.editorial .hero #portrait { float:right; width:25%; margin:0 0 10px 12px }
 .editorial #page-nav { justify-content:flex-start }
 .editorial #case-list p { display:block }
 .editorial #case-list strong { display:block }
}
#themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:28px}#themes legend{font-weight:bold;margin-bottom:10px}#themes button{position:relative;padding:12px;border:1px solid currentColor;text-align:left;font-weight:700}#themes button[aria-pressed=true]{outline:3px solid #193a35;outline-offset:2px}#themes button[aria-pressed=true]::after{content:'✓';position:absolute;right:8px;top:4px}
#themes [data-theme=editorial],#card.editorial{background:#fff9f2;color:#70283d;border-top-color:#70283d}#themes [data-theme=night]{background:#152e39;color:#ffe8a8}#themes [data-theme=folio],#card.folio{background:#ddf3e7;color:#174438;border-color:#51866d}#card.folio{--pill-light:#e8faef;--pill-dark:#b0d9c0;--pill-ink:#174438;--pill-edge:#68947a}#card.night{font-family:'Avenir Next','PingFang HK',sans-serif}
.sample{display:flex;align-items:center;gap:10px;height:48px;margin-bottom:6px}.sample i{display:block;width:26px;height:34px;background:currentColor;opacity:.55}.sample b{width:38%;height:15px;border-block:4px solid currentColor}.sample{border-bottom:1px solid currentColor}[data-theme=night] .sample{flex-direction:row-reverse;justify-content:space-around}[data-theme=night] i,[data-theme=folio] i{border-radius:50%;height:25px;width:25px}[data-theme=folio] .sample{flex-direction:column;gap:3px;justify-content:center}[data-theme=folio] b{height:4px;border-bottom:0}
@media(max-width:600px){#themes{gap:7px}#themes button{padding:7px;font-size:14px}}
@media (max-width: 640px) {
  #card { padding: clamp(16px, 5vw, 28px); overflow-wrap: anywhere; }
  #card #page-nav { flex-wrap: wrap; gap: 4px 14px; }
  #page-nav a, #quick a, #quick button { display: inline-flex; align-items: center; min-height: 44px; }
  #card #quick { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #card #quick > * { justify-content: center; min-width: 0; }
  #card .hero > * { min-width: 0; }
  #card.night .hero { display: flex; flex-direction: column; align-items: flex-start; }
  #card.night #portrait { width: 96px; align-self: flex-end; }
  #card.editorial .hero { display: flow-root; }
  #card.folio .content-grid, #card .content-grid { grid-template-columns: minmax(0,1fr); }
  #card .content-grid img { max-width: 100%; object-fit: contain; }
  #card #intro { line-height: 1.75; }
}
