/* Phone layer (William, 2026-11-14): loaded last, phone widths only. Every page goes through the mobile loop (build/mobile/). */
@media (max-width:760px){
  :root{--gut:22px;--pad:72px}
  /* grids never push text past the margins */
  .readwrap{grid-template-columns:minmax(0,1fr)!important;gap:30px}
  .readwrap>*,.split>*,.split2>*,.grid2>*,.cmp>*,.biogrid>*{min-width:0}
  .wrap{min-width:0}
  img,video,svg,canvas{max-width:100%}
  .prose h2::before{display:none}
  .prose table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .prose blockquote{font-size:22px}
  .prose h2{font-size:32px;line-height:1.08;text-wrap:balance}
  h1,h2,.h-l,.h-xl{text-wrap:balance;overflow-wrap:break-word}

  /* body text fully justified (William) */
  main p,main li,main dd,main blockquote p,.tcard blockquote,details .a p{text-align:justify;text-justify:inter-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:7 3 3}
  main p.center,main .center p,.thanks p,.e404 p,main figcaption,main .disc,main .tdisc,.btn,.eyebrow,.toc li,.toc a,.chips *,.logos span{text-align:left;-webkit-hyphens:manual;hyphens:manual}

  /* "On this page" box: inside the margins, compact card */
  .toc{background:rgba(13,26,25,.04);border-radius:16px;padding:20px 18px 6px;font-size:15px}
  .toc ol{margin:12px 0 14px}
  .toc a{padding:8px 0 8px 14px}

  /* chapter bands: one column, headline gets the full width */
  .chapband{grid-template-columns:minmax(0,1fr)!important;padding:64px var(--gut)!important;gap:0;margin:16px 0 40px}
  .chapband h2{font-size:40px!important;line-height:1.04}
  .chapband .chemb{grid-column:1;grid-row:auto;width:120px;margin-top:22px;opacity:.85}

  /* curtain footer: readable stack */
  .curtain .in{padding:40px var(--gut) 20px}
  .curtain .cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:22px 18px;font-size:15px}
  .curtain .cols>div:first-child{grid-column:1/-1}
  .curtain .word{font-size:25vw;margin-top:18px}
  .curtain .legal{flex-direction:column;gap:6px;padding-right:0;padding-bottom:56px;font-size:12px}

  /* motion switch stays out of the way */
  .mswitch{right:10px;bottom:10px;transform:scale(.88);transform-origin:right bottom}

  /* truck trailer: stencils flow, tape sits below them */
  .flank{height:auto;padding:28px var(--gut) 64px}
  .flank .stens{position:relative;inset:auto;gap:10px 14px}
  .flank .tape{bottom:22px}
}
@media (max-width:760px){
  .h-xl{font-size:clamp(46px,13.5vw,60px);line-height:.96}
  .h-l{font-size:clamp(36px,10.5vw,44px);line-height:1}
  .srow .name{font-size:22px;line-height:1.1}
  /* civil litigation file: tabs scroll, sheets stack in place */
  .file .tabs{padding-left:0;overflow-x:auto;scrollbar-width:none}
  .file .tab{flex:none;padding:10px 14px 12px;font-size:12px}
  .sheet{padding:28px 22px!important;transform:none!important;rotate:none}
  .sheet:not(.on){display:none}
  .sheet h3,.sheet h2.sh{font-size:28px}
  /* results ledger becomes stacked cards; the per-result note stays visible */
  .ledger,.ledger tbody,.ledger tr,.ledger td{display:block;width:auto!important}
  .ledger thead{display:none}
  .ledger tr{padding:20px 0;border-bottom:1px solid rgba(13,26,25,.14)}
  .ledger td{padding:0 0 6px;border:0!important}
  .ledger .amt{font-size:34px}
  .ledger tbody tr:first-child .amt{font-size:44px}
  .ledger .dc{font-size:13px;opacity:.85;padding-top:4px}
  /* 404 search */
  .s404{flex-direction:column}
  .s404 .btn{align-self:flex-start}
  /* footer labels readable */
  .curtain .cols b{font-size:12px}
}
/* ---------- m3: systemic phone pass ---------- */
@media (max-width:760px){
  /* footer: the big word never sets the grid width */
  .curtain .in{grid-template-columns:minmax(0,1fr)}
  .curtain .word{font-size:19vw;overflow:hidden;margin-top:26px}
  .curtain .cols>div:first-child span{text-align:justify;-webkit-hyphens:auto;hyphens:auto}
  .curtain .legal{margin-top:14px}

  /* justified body text that reads evenly */
  main p,main li,main dd{text-wrap:pretty;word-spacing:-.02em}
  .cta p,.cta .lede,.thanks p,.e404 p,.cta .disc{text-align:center!important;-webkit-hyphens:manual!important;hyphens:manual!important;text-wrap:balance}
  summary,summary *{text-align:left!important;-webkit-hyphens:manual!important;hyphens:manual!important;text-wrap:balance}
  .lede{font-size:17px;line-height:1.6}

  /* heroes: less dead space, headline uses the width, buttons full width */
  main>header{padding-top:118px!important;padding-bottom:64px!important;min-height:0!important}
  .h-xl{max-width:none!important}
  .eyebrow+h1,.eyebrow+.h-xl,.eyebrow+.h-l,.shield+.h-xl{margin-top:16px!important}
  .ctas{flex-direction:column;align-items:stretch;gap:12px}
  .ctas .btn{justify-content:center;width:100%;box-sizing:border-box}
  .band{padding-top:64px;padding-bottom:64px}
  .cta{padding-bottom:110px}

  /* "On this page": the call link is not a numbered item */
  .toc .tcall::before{content:none!important}
  .toc .tcall{font-size:24px;margin:2px 0 16px 14px}

  /* reading pages: tighter rhythm */
  .prose .sec{padding-bottom:36px;margin-bottom:36px}
  .prose h2{margin-bottom:16px}
  details.sources summary,.sources>summary{min-height:48px;display:flex;align-items:center}

  /* rows with number gutters: number above, text full width */
  .srow{grid-template-columns:1fr!important;gap:6px!important}
  .srow .n,.srow .fig,.srow .name{grid-column:1!important}
  .srow .fig{font-size:16px}
  .srow .fig a{white-space:nowrap}
  .evlist li{grid-template-columns:1fr;gap:6px;font-size:17px;padding:22px 0}
  .evlist li.lost{opacity:.6}

  /* car: intersection drawing becomes a band under the text, never behind it */
  .hero-car{display:flex;flex-direction:column}
  .hero-car::after{display:none}
  .hero-car .xbg{position:relative;inset:auto;order:3;height:230px;margin:36px calc(var(--gut) * -1) 0;opacity:.95}
  .hero-car>*:not(.xbg){position:relative;z-index:1}

  /* motorcycle: lean line sits below the text; wedge panel without the skew */
  .hero-moto{flex-direction:column;align-items:stretch}
  .hero-moto .lean{position:relative;inset:auto;order:3;height:200px;margin:30px calc(var(--gut) * -1) 0}
  .leaning{padding:28px 20px 22px!important}
  .leaning .tilt{transform:none!important}

  /* home film beats: less empty video between messages */
  .vbeat{min-height:82vh;padding-bottom:12vh}

  /* testimonials */
  .tcard{padding:30px 22px 24px}
  .tcard blockquote{font-size:20px;margin-top:30px}
  .tcard blockquote::before{top:-30px;left:-2px;font-size:58px}

  /* attorneys roster: names and bios use the full width */
  .rmeta .re{display:none}
  .rmeta{grid-template-columns:1fr!important}
  .rmeta h2{font-size:34px}

  /* small labels readable */
  .step .k,.tcard .tk,.pass .pk,.card .t,.cover .tk,.fld .fl,.ct span{font-size:12px}
}
/* ---------- m4 ---------- */
.jl{text-align:left!important;-webkit-hyphens:manual!important;hyphens:manual!important}
@media (max-width:760px){
  main p,main li,main dd{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 3}
  /* curtain footer: Practice and Firm side by side, Visit full width; height set from content in pages.js */
  .curtain .cols>div:last-child{grid-column:1/-1}
  .curtain .legal span:last-child{display:flex;flex-wrap:wrap;gap:4px 10px}
  /* full-bleed chapter bands without JS math */
  .chapband{width:auto!important;margin-left:calc(var(--gut) * -1)!important;margin-right:calc(var(--gut) * -1)!important;left:0!important}
  /* TOC call link reads as a call row */
  .toc .tcall{display:block;margin:4px 0 14px;padding:12px 0 0 14px;border-bottom:0;border-top:1px solid rgba(13,26,25,.12);font-size:22px}
  .toc .tcall::before{content:"Call "!important;font:inherit!important;color:inherit!important}
  /* FAQ and list rows: number column narrow, question uses the width */
  details.row summary{grid-template-columns:30px minmax(0,1fr) 28px;gap:12px;padding:20px 0}
  details.row .q{font-size:24px;line-height:1.12}
  details.row.ww .q::after{display:none}
  details.qa summary{gap:14px;font-size:18px;padding:18px 0}
  details.qa summary>span{flex:1;min-width:0}
  details.sources{margin-top:8px}
  details.sources summary{justify-content:space-between;border-top:1px solid rgba(13,26,25,.14);border-bottom:1px solid rgba(13,26,25,.14)}
  .fq summary{grid-template-columns:30px minmax(0,1fr) 28px!important;gap:12px!important}
  /* thank you steps, medical form rail, legal heroes */
  .next3 li{grid-template-columns:34px 1fr!important;gap:10px!important}
  .record{padding-left:0}
  .record .rail{display:none}
  .record .sn{position:static;flex:none}
  .record legend{font-size:30px;gap:12px}
  .hero-small{min-height:0!important}
  .hero-small .wrap{width:100%;max-width:none;margin:0}
  /* maps: readable labels */
  .scmap .lbl.m{font-size:34px;stroke-width:6}
  .contactmap{gap:24px}
  /* products drawing: the tabs carry the names on a phone */
  .ortho .lead text{display:block}
  /* areas of practice: the emblem fan becomes a tidy row of links */
  .areas3 .door{grid-template-columns:minmax(0,1fr)!important;gap:22px;padding:44px 0}
  .door h2{font-size:48px!important}
  .door p{font-size:17px!important;max-width:none}
  .door .fan{position:relative!important;width:100%!important;height:auto!important;display:grid!important;grid-template-columns:repeat(3,1fr);gap:10px;padding:0!important;background:none!important;transform:none!important;border-radius:0!important}
  .door .fan .fe{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;width:auto!important;height:auto!important;margin:0!important;transform:none!important;aspect-ratio:3/2;display:grid;place-items:center;border-radius:14px;background:var(--abyss);color:var(--pl);padding:10px}
  .door .fan .fe .emb{width:100%;height:auto}
  /* results */
  .ledger{margin-top:28px}
  /* blog byline and buttons */
  .byline,.hero-art .by{white-space:normal}
  .s404 .btn,.form .btn.go,form .btn.go{width:100%;justify-content:center}
}
/* ---------- m5 ---------- */
@media (max-width:760px){
  main p,main li,main dd{word-spacing:normal;hyphenate-limit-chars:6 3 2}
  summary,summary *{text-wrap:pretty!important}
  details.sources summary{border-top:0;border-bottom:0}
  details.sources{border-bottom:1px solid rgba(13,26,25,.14);margin-top:22px}
  .curtain .word{overflow:visible}
  .curtain .cols a{padding:7px 0;margin:0}
  .curtain .legal .lk{display:flex;flex-direction:column;gap:6px}
  .curtain .legal .lk>*+*::before{content:none}
  .curtain .legal .lk a{padding:4px 0}
  .chapband .chemb{width:170px!important;justify-self:center;margin:30px auto 0!important}
  h1+p,.h-xl+p,.h-xl+.lede,.h-l+p,.h-l+.lede,h1+.lede{margin-top:22px!important}
  .nw{white-space:nowrap}
  .consent>span:last-child,.record .chk span,.record .chk{text-align:justify;-webkit-hyphens:auto;hyphens:auto}
  .search input{font-size:15px}
  .result{min-height:0}
  .door .mini{max-width:none;padding:14px}
  .door .mini .emb{width:56%;margin:0 auto;display:block}
  .arcdetail{display:none}
  .biorail .be{width:120px}
  .artcover{aspect-ratio:16/9}
  .artcover .emb{width:52%}
  .scmap .lbl.m{font-size:30px}
}
/* ---------- m6 ---------- */
.lock{display:grid;grid-template-columns:14px 1fr;gap:10px;align-items:start}
.lock::before{width:14px;height:16px;border:0;border-radius:0;margin:1px 0 0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 0 1 8 0v2h1.5v9h-11V7zm1.6 0h4.8V5a2.4 2.4 0 0 0-4.8 0z'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 0 1 8 0v2h1.5v9h-11V7zm1.6 0h4.8V5a2.4 2.4 0 0 0-4.8 0z'/%3E%3C/svg%3E") no-repeat center/contain}
@media (max-width:760px){
  /* headings never inherit justification */
  main h1,main h2,main h3,main h4,main h5,main h6,main dt,main summary,main strong:only-child{text-align:left;-webkit-hyphens:manual;hyphens:manual}
  main h3,main h4,main h5{text-wrap:balance}
  /* disclaimers are body text too */
  main .disc,main .tdisc{text-align:justify;-webkit-hyphens:auto;hyphens:auto}
  /* tap targets 44px */
  .curtain .cols a,.curtain .legal .lk a{min-height:44px;display:flex;align-items:center;padding:0}
  .curtain .cols a br{display:none}
  .toc a{min-height:44px;display:flex;align-items:center;gap:8px;padding-top:4px;padding-bottom:4px}
  .chip{min-height:44px}
  .file .tab{min-height:44px}
  .doors a,.card404 a,.e404 a,.more,a.more,.rcard .go{display:inline-flex;align-items:center;min-height:44px}
  .consent{min-height:44px}
  .consent .cbox{width:24px;height:24px}
  .consent .cbox::after{left:8px;top:3px}
  .record button:not(.btn):not(.addp){min-width:44px;min-height:44px;border-radius:50%;justify-self:end;box-shadow:inset 0 0 0 1px rgba(13,26,25,.25)}
  /* footer word: no reveal motion on phones, never crosses the rule */
  .curtain .word span{transform:none!important;opacity:1!important}
  .curtain .word{margin-bottom:10px;line-height:.9}
  /* the FAQ block ends cleanly into Sources */
  .prose .sec:has(+ details.sources){border-bottom:0;padding-bottom:0;margin-bottom:0}
  details.sources{margin-top:6px}
  /* county maps: labels collide at phone size; the copy names the counties, keep only the office */
  .scmap .lbl.m{display:none}
  .scmap .lbl.m.office,.scmap .lbl.o{display:block}
  /* blog: the light card gets a panel like the others */
  .cv-dui{background:#E9E2D4!important}
  /* about: letter card and film caption get even insets */
  .letter{padding:28px 22px!important}
  .filmcard figcaption,.film2 figcaption,.collection figcaption{padding-left:20px;padding-right:20px}
  /* rows without a statistic say where they lead */
  a.srow:not(:has(.fig))::after{content:"Read more \2192";font-size:15px;color:#0B5E5A;grid-column:1}
}
/* ---------- m7 ---------- */
@media (max-width:760px){
  .curtain .cols a{flex-direction:column;justify-content:center;align-items:flex-start}
  .curtain .cols a br{display:initial}
  .runin,.exhibits b,.whyl b{display:block;text-align:left;margin-bottom:4px}
  .exhibits span{display:block}
  .srow .fig:empty::before{content:"Read more \2192";font-family:var(--sans);font-size:15px;color:#0B5E5A}
  .cta .h-l{max-width:none!important}
  .fc-print,.back,a.back{min-height:44px;display:inline-flex;align-items:center}
  .sound .fig p{font-size:17px!important}
  .sound .fig p br{display:none}
  .sound .disc{font-size:14px}
}

@media (max-width:760px){main p,main li,main dd,main .disc,main .tdisc{hyphenate-limit-chars:5 2 2}}
@media (max-width:760px){
  .vbeat{min-height:68vh}
  .sound canvas{opacity:.3}
  .disc.under,.band .disc{text-align:justify!important;margin-left:0!important;margin-right:0!important;font-weight:400}
  .snd{min-height:44px}
  .solo-link,.hero-small.nf a:not(.btn),.doors a{display:inline-flex;align-items:center;min-height:44px}
  p.solo-p{margin-top:12px}
  .prose a,main p a{overflow-wrap:anywhere}
  a[href^="tel:"]{white-space:nowrap}
  [data-page=contact] main div>b{font-size:12px}
}
@media (max-width:760px){.vbeat.first{min-height:100svh}.vbeat .eyebrow{font-size:12px;letter-spacing:.08em}}
@media (max-width:760px){
  .toc a{display:block!important;min-height:0!important;padding-top:11px!important;padding-bottom:11px!important}
  .toc .tcall{padding-top:14px!important}
  .flank .stens{justify-content:flex-start}
  .flank .sten{text-align:left;text-wrap:balance}
}
/* ---------- William 2026-11-14: flush left on phones, justified on desktop ---------- */
@media (max-width:760px){
  main p,main li,main dd,main .disc,main .tdisc,.tcard blockquote,details .a p,.consent>span:last-child,.record .chk,.record .chk span,.curtain .cols>div:first-child span{text-align:left!important;-webkit-hyphens:manual!important;hyphens:manual!important;word-spacing:normal}
}
@media (min-width:761px){
  main p,main li,main dd,main .disc,main .tdisc,.tcard blockquote,details .a p{text-align:justify;text-justify:inter-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:6 3 2}
  main h1,main h2,main h3,main h4,main h5,main h6,main summary,main dt,.toc li,.toc a,.btn,.eyebrow,.chips *,.logos span,.cta p,.cta .lede,.thanks p,.e404 p,main figcaption,.srow .fig,.door p{text-align:inherit}
  .cta p,.cta .lede{text-align:center}
}
/* footer clears the fixed nav pill at the bottom of the page (William, phone screenshot 2026-11-14) */
@media (max-width:760px){
  .curtain .in{padding-top:96px!important}
  /* phones: footer always in flow from first paint (no JS class swap, which caused CLS 0.85) */
  .page{margin-bottom:0!important}
  .curtain{position:relative!important;height:auto!important;margin-top:-36px;padding-top:36px}
  .curtain .in{height:auto}
}
@media (max-width:760px){
  .curtain .legal .lk{flex-direction:row!important;flex-wrap:wrap;gap:0 20px!important}
  .curtain .legal .lk em{flex-basis:100%;padding-bottom:6px}
  .curtain .cols{gap:14px 18px}
}
@media (max-width:760px){
  nav.nav{transition:transform .45s var(--ease),opacity .3s}
  .nav-tuck nav.nav{transform:translateY(-140%);opacity:0;pointer-events:none}
}
@media (max-width:760px){.vbeat .cue{display:none}}
/* phones: nothing in the reading flow may stick (WD .quiet .toc was sticky and slid over the prose; William 2026-11-14) */
@media (max-width:760px){
  .toc,.quiet .toc,.readwrap .toc,.sticky,.split2 .sticky{position:relative!important;top:auto!important}
}
@media (max-width:760px){
  .flank{padding-bottom:104px!important}
  .flank .tape{bottom:14px!important}
  .flank .road{bottom:39px;height:56px}
  .rig{width:180px;animation-duration:8s}
}
