/* mobile.css: phone-first fixes. Linked LAST on every page so it wins.
   Keeps the brand system; only adjusts sizing, tap targets and small-screen layout. */

/* Images: width/height attributes are for layout stability only. Zero-specificity so
   any component rule (object-fit covers, fixed heights) still wins. */
:where(img[width][height]){height:auto}

@media (max-width:640px){
  /* Tap targets: at least 44px tall */
  .btn,.ml-btn,a.book,.tl,.tlink{min-height:44px}
  .btn,.ml-btn{display:inline-flex;align-items:center}
  .tl,.tlink{display:inline-flex;align-items:center}
  .mono,.ml-mono{display:inline-flex;align-items:center;min-height:44px}
  /* keep the space in "Marisha Lakhiani" (flex drops whitespace between text and <i>) */
  .top .mono,.ml-top .ml-mono,.foot .mono,.ml-foot .ml-mono,.lf .mono{gap:.26em}
  .foot a,.ml-foot a,.lf a{display:inline-flex;align-items:center;min-height:44px}
  .bar a{display:inline-flex;align-items:center;min-height:44px}
  .lh-soc a{width:44px;height:44px}

  /* Small labels: nothing under 12px on a phone */
  span.cap,p.q-stage,figcaption.cap,figcaption,.kicker,p.k,span.new,.text-gold-deep,.lh-proof dd{font-size:12px !important}

  /* Comfortable reading */
  body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  input,select,textarea{font-size:16px}
}

/* Header CTA: one line on small phones ("Apply"), full label kept for screen readers */
@media (max-width:560px){
  .top .wrap>a.btn,.ml-top .ml-btn{font-size:0 !important;letter-spacing:0;white-space:nowrap;padding:0 18px;min-height:44px;gap:0}
  .top .wrap>a.btn::before,.ml-top .ml-btn::before{content:"Apply";font:500 12px/1 "DM Sans",system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase}
  .top .wrap>a.btn::after,.ml-top .ml-btn::after{display:none}
}

/* Display type: trim the largest headlines on very small screens */
@media (max-width:380px){
  .d1{font-size:clamp(34px,10.5vw,44px) !important}
  .d2{font-size:clamp(28px,8.6vw,36px) !important}
}

/* /social hero: never clip the bio or icons. Icons move to their own full-width row. */
@media (max-width:480px){
  .lh{grid-template-columns:112px minmax(0,1fr);gap:0 16px;align-items:end}
  .lh-name{display:contents}
  .lh-photo{grid-row:1/3;grid-column:1}
  .lh h1{grid-column:2;grid-row:1;align-self:end;font-size:clamp(36px,10.5vw,46px)}
  .lh-line{grid-column:2;grid-row:2;align-self:start;font-size:14.5px}
  .lh-soc{grid-column:1/-1;grid-row:3;margin-top:16px;justify-content:space-between;gap:8px}
  .lh-soc a{flex:1 1 0;max-width:64px}
  .lh-proof{grid-row:4}
  .lh-proof dt{font-size:26px}
  /* Pull the first action up: shorter feature image */
  .feat-img{aspect-ratio:5/2}
}

/* Scorecard leak map: real tap targets on phones (3 groups per row) */
@media (max-width:600px){
  .sc-map{grid-template-columns:repeat(3,auto) !important;gap:10px 16px !important}
  .sc-map .lm-stage ul{gap:6px}
  .lm-t{width:44px !important;height:44px !important}
  .lm-t b{font-size:15px !important}
  .lm-stage .cap{font-size:12px !important;max-width:100px !important}
}

/* Round 2: remaining phone tap targets and labels */
@media (max-width:640px){
  a.book,#scLeft,a.b2,.work-sample,.tile-btn,.reveal-btn,.feat-alt{display:inline-flex;align-items:center;min-height:44px}
  .work-sample{display:flex;justify-content:center}
  .tile-btn{font-size:12px !important}
  .tick,.tick span,.tick i{font-size:12px !important}
  .ml-lb .kicker,.ml-lb .mini,.ml-lb .band-kicker,.ml-lb .ticker-track span{font-size:12px !important}
  .ap-tag,.ap-who{font-size:12px !important}
  label input[type=checkbox],.consent input[type=checkbox]{width:22px;height:22px;flex:none}
  label.consent,.consent{min-height:44px;display:flex;align-items:center;gap:10px}
}
