/* labs-site-seo-2: /adaisecure/ layout fixes at phone width. Wrapper CSS only: the page text, the live block's
   markup, live-stats.css, live-stats.js and the live figures are unchanged. */

/* 1. Hero headline "Blocked in 0.5 s": one line at every width. The size is the page's own clamp(32px,4vw,42px) unless
   the card is too narrow for it; then it shrinks with the card (container units) so the line still fits (the text
   as laid out is 8.56em wide; 8.9em leaves about 4% room). The number never splits from its unit; a much longer value would wrap whole,
   past the dot. */
#main .live{container-type:inline-size}
#main .live .answer{display:block;padding-left:28px;text-indent:-28px;line-height:1.15;font-size:min(clamp(32px,4vw,42px),calc((100cqi - 28px) / 8.9))}
#main .live .answer .bulb{display:inline-block;margin-right:12px;vertical-align:calc(.36em - 8px);text-indent:0}
#main .live .answer [data-live="p50"]{white-space:nowrap}

/* 2. One-column hero (900px and below): one gap (24px) from the buttons to the live result card and from that card to
   the live figures panel. */
@media (max-width:900px){
  #main > section.hero.wrap{row-gap:16px;margin-bottom:24px}
  #main > section.live-stats{margin-top:24px}
}

/* 8. Live result card: the same 12px from the paragraph to the first tile as between the tiles. */
#main .live .mini{margin-top:9px;gap:12px}

/* 9. Phone width: the two hero buttons are full width, one above the other. */
@media (max-width:520px){
  #main .hero .ctas .btn{flex:1 1 100%;text-align:center}
}

/* 3. Live figures grid: no figure left alone on its last row, and the last-block value (up to "under a minute ago")
   never broken. 5 in a row from 1000px (the last column widens to fit its value, else all equal); 3 + 2 from 572px;
   2 + 2 + 1 below (the last one a full-width row, value and label side by side); one column below 386px (as before). */
#main > section.live-stats .live-grid{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(max-content,1fr)}
#main > section.live-stats .live-v{text-wrap:balance}
@media (min-width:572px) and (max-width:999.98px){
  #main > section.live-stats .live-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  #main > section.live-stats .live-grid > .live-cell{grid-column:span 2}
  #main > section.live-stats .live-grid > .live-cell:nth-child(n+4){grid-column:span 3}
}
@media (min-width:386px) and (max-width:571.98px){
  #main > section.live-stats .live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #main > section.live-stats .live-grid > .live-cell:last-child:nth-child(odd){grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.6rem}
}
@media (max-width:385.98px){
  #main > section.live-stats .live-grid{grid-template-columns:minmax(0,1fr)}
}

/* 4. Section headers: when the grey line beside a heading wraps below it (a long line, or phone width), it sits close
   under its heading and keeps the same gap to the content as the heading has (16px), instead of floating between. */
#main .sh{row-gap:0}
#main .sh > .small{margin-bottom:12px}
#main .sh > h2 + .small{margin-top:-4px}

/* 5. Line breaks: no lone last word in headings, figure labels, list items, notes and the live figures' callout. */
#main h2{text-wrap:balance}
#main .col li,#main ul.why li > span,#main .sh > .small,#main .note,
#main > section.live-stats .live-k,#main > section.live-stats .live-burst,#main > section.live-stats .live-note{text-wrap:pretty}

/* 6. The live figures' status line: a wrapped second line starts under the text, not under the dot. */
#main > section.live-stats .live-badge{padding-left:1.05rem;text-indent:-1.05rem}

/* 7. A note that follows a list inside a card lines up with the list text, not the bullets. */
#main .col ul + .note{padding-left:18px}
