/* mobile pass: pages — every rule must sit inside a phone/tablet media query (max-width:900px or narrower); desktop must not change.
   Linked after each inner page's own stylesheets: get-started, privacy, terms, 404, insights/guides/compare indexes,
   articles + comparisons (templates), tools index, LinkedIn preview tool. Footer is styled elsewhere (css/m/system.css). */

/* ================= /get-started (booking) ================= */
@media (max-width:900px){
  /* the three outcomes: one tidy row of three, each split by a bronze rule (was a wrapped line with a stray rule) */
  .gsb .lb{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;text-align:left}
  .gsb .lb li{white-space:normal;padding:2px 12px;line-height:1.3;text-wrap:balance}
  .gsb .lb li:first-child{padding-left:0}
  /* quote dots: a finger-sized hit area around the 2px dashes */
  .gsb .rq__dots{margin:-12px 0 2px -6px}
  .gsb .rq__dots button{padding:20px 6px}
  /* one testimonial, compact (the four rotating quotes stacked to the tallest one's height); no dots */
  .gsb .rq{margin-top:22px;padding-left:16px}
  .gsb .rq__q:not(:first-of-type),.gsb .rq__dots{display:none}
  .gsb .rq__q:first-of-type{grid-area:1/1;opacity:1!important;transform:none!important;filter:none!important}
  .gsb .rq__q p{font-size:1rem;line-height:1.45}
  .gsb .rq__q figcaption{margin-top:10px}
  /* the email is already in the footer bar */
  .gsb__mail{display:none}
  /* footer bar: the copyright line only, no tagline */
  .bk-foot__tag{display:none}
  /* slim footer: tappable legal links */
  .bk-foot__links a:not(.bk-foot__soc){display:inline-flex;align-items:center;min-height:44px}
  .bk-foot__soc{width:44px;height:44px}
}
@media (max-width:560px){
  .gsb .lb{font-size:.95rem}
  /* the textarea is the only multi-line answer: room for the sentence we ask for */
  .gs-field textarea{min-height:84px}
  /* error state: the hint sits tight under its field */
  .gs-err{font-size:.86rem}
}
@media (max-width:380px){
  .gsb .lb{font-size:.9rem}
  .gsb .lb li{padding:2px 9px}
  .gs-chip{font-size:.92rem}
}

/* ================= privacy / terms ================= */
@media (max-width:900px){
  /* "Last updated · Terms" wraps on phones; the dot then dangles at the line end */
  .lg1__meta{flex-wrap:wrap;row-gap:10px}
  .lg1__dot{display:none}
}
@media (max-width:560px){
  /* the 12-item contents list: tighter rows so it reads as a list, not a screen */
  .lg1__side{padding:16px 16px 12px}
  .lg1 .lg-toc{gap:0}
  .lg1 .lg-toc a{padding-block:8px;font-size:.94rem}
  .lg1 .lg-toc a::before{top:9px;bottom:9px}
  /* privacy's purpose / data / legal-basis table: the 3rd column sat off-screen behind a sideways scroll.
     Phones get one card per purpose, each value labelled. */
  .lg1 .tbl{overflow:visible;background:none;border:0;border-radius:0}
  .lg1 .tbl table,.lg1 .tbl tbody,.lg1 .tbl tr,.lg1 .tbl td{display:block;width:auto;min-width:0}
  .lg1 .tbl thead{display:none}
  .lg1 .tbl tr{padding:14px 16px;border-radius:16px;border:1px solid rgba(16,36,26,.1);background:rgba(255,255,255,.45)}
  .lg1 .tbl tr+tr{margin-top:8px}
  .lg1 .tbl td{padding:0;border:0;font-size:.96rem;line-height:1.5}
  .lg1 .tbl td:first-child{font-weight:500;color:var(--ink);margin-bottom:4px}
  .lg1 .tbl td+td{margin-top:10px;padding-top:10px;border-top:1px solid rgba(16,36,26,.08)}
  .lg1 .tbl td+td::before{display:block;margin-bottom:3px;font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--bronze-d)}
  .lg1 .tbl td:nth-child(2)::before{content:"Data"}
  .lg1 .tbl td:nth-child(3)::before{content:"Legal basis (GDPR)"}
  html[data-theme=dark] .lg1 .tbl tr{border-color:rgba(242,239,230,.1);background:rgba(242,239,230,.03)}
  html[data-theme=dark] .lg1 .tbl td+td{border-color:rgba(242,239,230,.08)}
}

/* ================= insights / guides / compare indexes ================= */
@media (max-width:900px){
  /* one rule between topics, not two with a blank screen-third between them */
  .ix1-g{padding-block:40px 32px}
  .ix1-list li:last-child{border-bottom:0}
  .ix1-row__go{width:44px;height:44px}
  /* topic chips: thumb-sized */
  .ix1-jumps .chip{min-height:40px}
}

/* ================= articles + comparisons ================= */
@media (max-width:600px){
  /* table cards: label above its value, so the value gets the full width (was a narrow 2nd column) */
  .a-body .a-table td:not(:first-child){display:block}
  .a-body .a-table td:not(:first-child)::before{display:block;padding:0 0 4px}
  .a-body .a-table tr{padding:16px 18px 14px}
  /* numbered steps: a little more line length */
  .a-steps li{padding:16px 16px 16px 52px}
  .a-steps li::before{left:16px}
  /* keep reading: a swipe row instead of three full-height cards in a stack */
  .a-rel__g{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    margin-inline:calc(var(--pad,20px) * -1);padding:4px var(--pad,20px) 8px;scroll-padding-inline:var(--pad,20px)}
  .a-rel__g::-webkit-scrollbar{display:none}
  .a-rel__g .a-card{flex:0 0 84%;scroll-snap-align:start}
  .js .a-rel__g .a-card.rv{opacity:1;transform:none}
  .a-card__f i{width:40px;height:40px}
}

/* ================= tools index ================= */
@media (max-width:900px){
  .tl1-r__go{width:40px!important;height:40px!important}
  .tl1-r{grid-template-columns:24px minmax(0,1fr) 40px}
}

/* ================= LinkedIn post preview ================= */
@media (max-width:560px){
  /* device switch: real tap targets */
  .lpx-dev label span{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
}
@media (max-width:560px){
  /* preview card at phone width: the name was cut to "Nick de l…" by the Post button, and the action
     labels to "Co…/Re…". Button drops under the name; actions stack icon over label, as in LinkedIn's app. */
  .lpx .lip-card__header{flex-wrap:wrap;row-gap:8px}
  .lpx .lip-identity{flex:1 1 calc(100% - 60px)}
  .lpx .lip-post-action{margin-left:60px}
  .lpx .lip-actions button{flex-direction:column;gap:3px;padding:6px 2px;font-size:11.5px}
}
@media (max-width:900px){
  /* LinkedIn tool: the how-it-works notes sat ~150px below the editor and ~140px above the ending box */
  .lpx.t1-work{padding-bottom:28px}
  .t1-method{padding-block:8px 8px;gap:24px}
  /* inner pages' "Book your GTM Engine Review" box: less dead cream above it on phones */
  .pg .endbox,.pgb .endbox{padding-top:48px}
}
@media (max-width:900px){
  /* booking card: clip instead of hidden, so it can never hold an inner scroll offset (after submitting from
     the bottom of the form it kept ~250px of scroll, hiding "Almost there" and the top of the calendar) */
  .gsb__card{overflow:clip}
}
