/* Teradix solutions and industry pages (solutions-*.html, industry-*.html): phone and tablet fixes.
   Loads AFTER css/teradix-solutions.css, as the last stylesheet. Only max-width rules, every selector
   scoped under .sol (the <main> of those five pages), logical properties so the same rules hold on a
   right-to-left page. Desktop is untouched. No motion is added here. */

/* ---------- touch widths: tablets and phones ---------- */
@media (max-width:1024px){
  /* text links were 30px tall: give every one a 44px tap height, text stays where it was */
  .sol .sol-link{min-height:44px;padding-block:0}
  /* two links in one answer card sit side by side: keep them a thumb apart */
  .sol .sol-ans__links{gap:0 28px;padding-top:clamp(10px,1.2vw,18px)}
  .sol .sol-proof__foot{gap:4px 28px}
  .sol .sol-story__acts{gap:8px 24px}
  /* the module pills are links too */
  .sol .sol-mod{min-height:48px}

  /* reading text never below 15px (it was 13.5 to 14.5 in these places) */
  .sol .sol-hero .proof li,
  .sol .sol-mod,
  .sol .sol-nums span,
  .sol .sol-story__pts span,
  .sol .sol-chips li,
  .sol .sol-also__c span,
  .sol .sol-also__c i,
  .sol .sol-proof__note,
  .sol .sol-sec{font-size:15px}
  .sol .sol-proof__note,
  .sol .sol-sec{line-height:1.6}
}

/* ---------- one-column layout (same breakpoint as the base file) ---------- */
@media (max-width:900px){
  /* both drawings sit centred under their text instead of one centred and one at the edge */
  .sol .sol-erp__art{margin-inline:auto;width:100%}
  .sol .sol-hero__art{margin-inline:auto}

  /* text blocks use the full column: no ragged half-empty cards on a tablet */
  .sol .sol-ans p,
  .sol .sol-story p{max-width:62ch}
  .sol .sol-story h3{max-width:26ch}

  /* the story card: the points list reads as part of the card, not a second column */
  .sol .sol-story{gap:clamp(22px,4vw,32px)}

  /* closing band: the drawing is hidden here, so the text takes the row */
  .sol .sol-cta h2{max-width:22ch}
}

/* ---------- phones ---------- */
@media (max-width:560px){
  /* headings: one size step down so three-line headlines do not fill the screen */
  .sol .sol-hero h1{font-size:clamp(30px,8.6vw,34px);line-height:1.06;max-width:none}
  .sol .sol-hero .lead{max-width:none}
  .sol .sect-head h2,
  .sol .sol-proof h2,
  .sol .sol-cta h2{max-width:none}

  /* hero drawing: full column width, a little air above it */
  .sol .sol-hero__art{max-width:none;margin-top:4px}

  /* proof ticks stack and wrap cleanly */
  .sol .sol-hero .proof{flex-direction:column;align-items:flex-start;gap:10px}
  .sol .sol-hero .proof li{white-space:normal;align-items:flex-start;text-align:start}

  /* answer cards: icons and the "Answers 01" tag share one row without squeezing */
  .sol .sol-ans__top{gap:12px}
  .sol .sol-ans__tag{letter-spacing:.08em}
  .sol .sol-ans__tag b{margin-left:0;margin-inline-start:6px}
  /* stacked links, each a full-width 44px row */
  .sol .sol-ans__links{flex-direction:column;align-items:stretch;gap:0}

  /* "Also in the platform": equal full-width rows instead of ragged pills */
  .sol .sol-mods{gap:10px}
  .sol .sol-mods__h{margin-right:0;margin-inline-end:0;margin-bottom:2px}
  .sol .sol-mod{flex:1 1 100%;min-height:52px;padding-inline:9px 16px;font-size:16px}

  /* customer story card */
  .sol .sol-story{padding:24px 20px 8px}
  .sol .sol-story__who{flex-direction:column;align-items:flex-start;gap:14px}
  .sol .sol-story__who img{height:34px}
  .sol .sol-story__who span{line-height:1.35;letter-spacing:.08em;padding:7px 10px;text-wrap:balance}
  .sol .sol-story__acts .btn{width:100%;justify-content:space-between;white-space:normal;
    text-align:start;line-height:1.25;min-height:52px}
  .sol .sol-story__pts li{padding:16px 0}
  .sol .sol-story__pts li:last-child{border-bottom:0}
  .sol .sol-story__pts b{font-size:19px}

  /* platform figures: two per row, the label wraps under its number */
  .sol .sol-nums{gap:22px 18px}
  .sol .sol-nums b{font-size:clamp(28px,8.4vw,34px)}
  .sol .sol-proof__foot{flex-direction:column;align-items:flex-start;gap:2px}

  /* ERP block */
  .sol .sol-chips{gap:8px}
  .sol .sol-chips li{padding:11px 14px}
  .sol .sol-facts{gap:14px}
  .sol .sol-erp__art{max-width:none}

  /* the other four pages: the whole card is the link, keep it compact */
  .sol .sol-also__c{padding:20px}
  .sol .sol-also__c b{margin-top:14px}
  .sol .sol-also__c i{padding-top:12px}

  /* closing band: both buttons full width, same as the hero */
  .sol .sol-cta .cta-actions{flex-direction:column;align-items:stretch}
  .sol .sol-cta .cta-actions .btn{justify-content:center;width:100%;min-height:52px}
  .sol .sol-cta .cta-list li{align-items:baseline}
}

/* ---------- small phones (320 to 360) ---------- */
@media (max-width:360px){
  .sol .sol-hero h1{font-size:28px}
  .sol .sol-nums{grid-template-columns:1fr}
  .sol .sol-ans__icos .ico3{width:44px;height:44px}
  .sol .sol-story{padding-inline:16px}
}
