/* Page-wide reading and navigation. Keep the existing type and route. */
main :is(h1,h2,h3){text-wrap:balance}
.top .brand span{line-height:1.15}

/* A persistent section index, including after the 3D story has finished. */
@media (max-width:999px){
  .top>.wrap{container-type:inline-size;gap:min(.5rem,8px)}
  .top .brand{min-width:0}
  .top .brand span{white-space:normal}
  .top nav .hide-s,.top nav>.btn-ghost{display:none}
  .top nav{gap:min(.5rem,8px);flex:none}
}
@container (max-width:16rem){
  .top .brand span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}
@media (max-width:380px){
  .top>.wrap{padding-inline:1rem;gap:.5rem}
  .top .brand{gap:.4rem;font-size:.85rem;min-width:0}
  .top .brand span{max-width:5.2rem;white-space:normal}
  .top nav .get-top{padding-inline:.8rem;font-size:.8rem}
}

/* Keep the evidence beside the safety image instead of below its empty column. */
@media (min-width:1000px){
  .trust>.wrap{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(16rem,.8fr);gap:1.5rem 3.5rem;align-items:start}
  .trust-head{display:contents}
  .trust-head h2{grid-column:1;grid-row:1;margin:0;max-width:25ch}
  .trust-head .still{grid-column:2;grid-row:1/4;align-self:start;position:sticky;top:calc(var(--top-h) + 1.5rem)}
  .trust .instr{grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
  .trust .instr>li:nth-child(odd){border-left:0;padding-left:0}
  .trust .instr>li:nth-child(n+3){border-top:1px solid var(--line)}
  .trust .instr p{max-width:46ch}
  .trust-foot{grid-column:1;grid-row:3;margin:0}
  .duo>div{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:.8rem 1.5rem;align-content:start}
  .duo .ph-still{grid-column:1;grid-row:1/4;aspect-ratio:4/5;height:auto;margin:0;object-position:50% 25%}
  .duo h4{grid-column:2;grid-row:1;display:block;margin:0}
  .duo h4 span{display:block;margin-top:.6rem}
  .duo .mini{grid-column:2;grid-row:2;display:block;line-height:1.7;margin:0}
  .duo .mini .sw{display:flex;margin-bottom:.25rem}
  .duo>div>p:not(.mini){grid-column:2;grid-row:3}
}
@media (min-width:1200px){
  ul.guides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:3rem}
  ul.guides li{grid-template-columns:2rem minmax(0,1fr) 1rem;gap:.5rem 1rem;align-content:start}
  ul.guides .n{grid-column:1;grid-row:1}
  ul.guides a{grid-column:2;grid-row:1}
  ul.guides li>span:not(.n){grid-column:2;grid-row:2;max-width:48ch}
  ul.guides li::after{grid-column:3;grid-row:1}
}
@media (min-width:2000px){
  main>section.solid>.wrap,footer>.wrap{max-width:calc(128rem + 2*var(--gutter))}
  .trust>.wrap{grid-template-columns:minmax(0,2fr) minmax(22rem,1fr);column-gap:clamp(3rem,4vw,6rem)}
  .duo{gap:3rem}
}

@media (max-width:759px){
  main>section.solid{padding-block:3.5rem}
  .trust-head{gap:1.25rem}
  .trust-head h2{margin-bottom:0}
  .trust-head .still img{aspect-ratio:16/7;object-position:50% 38%}
  .trust-head .still figcaption{font-family:var(--sans);font-size:.8rem;line-height:1.45}
  .trust .instr{margin-top:1.5rem}
  .duo.tabbed>div{display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem;padding-block:1.2rem}
  .duo h4{grid-row:1;margin:0}
  .duo .ph-still{grid-row:2;aspect-ratio:16/9;object-position:50% 24%;margin:0}
  .duo .mini{grid-row:3;margin:0;flex-wrap:wrap;gap:.35rem .6rem}
  .duo>div>p:not(.mini){grid-row:4}
  /* two equal halves as wide as the longer name: with flex:1 from a zero basis "Android" got half of the pill's
     max-content and broke into "Androi / d" (UI-001) */
  .ph-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
  .ph-tabs button{min-width:0;padding-inline:min(1.2rem,4vw);white-space:nowrap}
  .steps4{margin-bottom:2.5rem}
  .steps4 li{padding:1.2rem 0 1.2rem 3.2rem!important;border-left:0!important;border-top:1px solid var(--line);margin-top:0!important}
  .steps4 li:first-child{border-top:0}
  .steps4 li::before{position:absolute;left:0;top:1.25rem;font-size:1.7rem;margin:0}
  .steps4 code{overflow-wrap:anywhere}
  .log kbd{white-space:normal;overflow-wrap:anywhere}
  .faq summary{padding-left:2rem}
  .faq details p{padding-left:0;max-width:65ch}
  .faq details[open] summary{background-position:2rem 100%;background-size:calc(100% - 2rem) 1px}
  .fgrid .fbrand{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem}
  .fgrid .fbrand p{margin:0;max-width:36ch}
  .fgrid nav{border-top:1px solid var(--line);padding-top:1rem}
}
@media (max-width:999px) and (max-height:540px) and (orientation:landscape){
  .duo.tabbed>div{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:.6rem 1.5rem}
  .duo .ph-still{grid-column:1;grid-row:1/4;aspect-ratio:4/3;max-height:260px;margin:0;object-position:50% 25%}
  .duo h4{grid-column:2;grid-row:1;margin:0}
  .duo .mini{grid-column:2;grid-row:2;margin:0;flex-wrap:wrap;gap:.3rem}
  .duo>div>p:not(.mini){grid-column:2;grid-row:3}
}

/* the phone: one kind of row for every list of links (the guides here, the FAQ's more answers, the related guides
   at the end of a guide, the 404's guides): a hairline under it, 16 px above and below, the title in the display face at
   18 px, a short grey line under it when there is one, the same small chevron at the end. The FAQ keeps its + and the same
   lines. No 01 to 14 and 01 to 05 in mono before them: the guide pages had none, and on a phone the numbers took a column */
@media (max-width:759px){
  ul.guides li{grid-template-columns:minmax(0,1fr) 1rem;gap:.25rem 1rem;padding:1rem 0;align-items:start}
  ul.guides .n{display:none}
  ul.guides a{grid-column:1;grid-row:1;font-size:1.125rem;line-height:1.3;letter-spacing:-.015em}
  ul.guides li>span:not(.n){grid-column:1;grid-row:2;font-size:.875rem;line-height:1.45}
  ul.guides li::after{grid-column:2;grid-row:1/span 2;align-self:center;width:.5rem;height:.5rem}
  .faq details::before{display:none}
  .faq summary{padding-left:0}
  .faq details p{padding-left:0}
  .faq details[open] summary{background-position:0 100%;background-size:100% 1px}
  .faq .more{border-top:0;padding-top:0;margin-top:2.5rem}
  /* its heading is a label (as the 404's Guides), not one more row: it read as a link without its chevron */
  .faq .more h3{margin-bottom:.5rem;color:var(--ink3);font:600 .8125rem/1.4 var(--sans);letter-spacing:0}
  .faq .more ul{border-top:1px solid var(--line)}
  .faq .more li{margin:0;border-bottom:1px solid var(--line)}
  .faq .more a{display:flex;justify-content:space-between;align-items:center;gap:1rem;width:100%;min-height:44px;padding:1rem 0;color:var(--ink);text-decoration:none;font:500 1.125rem/1.3 var(--disp);letter-spacing:-.015em}
  .faq .more a::after{content:"";flex:none;width:.5rem;height:.5rem;margin-right:.2rem;border-top:1.5px solid var(--ink3);border-right:1.5px solid var(--ink3);transform:rotate(45deg)}
  /* less mono in the running text after the story: the phone pages' words (Mobile data off and on, from the PC / USB or
     hotspot) read in the text face; mono stays for addresses, code, numbers and the app's own labels */
  .duo h4 span,.duo .mini,.duo .mini *{font-family:var(--sans);letter-spacing:0}
  /* the close's heading is 11ch wide: a long Turkish word (günlüklerinden) was cut in two; it may run past the 11ch, not
     past the screen, and in Turkish the heading is a little smaller so the word stays inside the card's 20 px */
  .cta h2{overflow-wrap:normal}
  html[lang=tr] .cta h2{font-size:min(clamp(2.6rem,1rem + 8vw,3.6rem),11.5vw)}
}
