/* TechErics — in-depth guide cards inside the tool content hub */
.te-guide-card p,.te-guide-card li{color:#334155;font-size:1rem;line-height:1.75}
.te-guide-card p{margin:0 0 14px}
.te-guide-card ul,.te-guide-card ol{margin:0 0 14px;padding-left:1.4em}
.te-guide-card li{margin:0 0 6px}
.te-guide-card h3{font-size:1.1rem;font-weight:700;color:#0f172a;margin:20px 0 8px}
.te-guide-card code{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;padding:1px 6px;font-size:.9em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#0f172a;word-break:break-word}
.te-guide-card pre{background:#0f172a;color:#e2e8f0;border-radius:10px;padding:14px 16px;overflow-x:auto;margin:0 0 14px;font-size:.88rem;line-height:1.6}
.te-guide-card pre code{background:none;border:0;padding:0;color:inherit}
.te-guide-card table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:.95rem;display:block;overflow-x:auto}
.te-guide-card th,.te-guide-card td{border:1px solid #e2e8f0;padding:8px 12px;text-align:left;vertical-align:top}
.te-guide-card th{background:#f8fafc;font-weight:700;color:#0f172a}
.te-guide-card a{color:#2563eb;text-decoration:underline}
.te-guide-card > :last-child{margin-bottom:0}
.ms-faq-a p{margin:0 0 8px}
.ms-faq-a p:last-child{margin:0}
@media (max-width:640px){.te-guide-card p,.te-guide-card li{font-size:.97rem}}

/* ---- Mobile: nothing may push the page wider than the screen (Google indexes the mobile view) ---- */
@media (max-width:640px){
  /* guide & FAQ content */
  .ms-seo-content-hub pre{max-width:100%;overflow-x:auto}
  .ms-seo-content-hub table,.ms-data-table,.te-table{display:block;max-width:100%;overflow-x:auto}
  .ms-seo-content-hub code,.ms-step-text{overflow-wrap:anywhere}
  /* tool layouts: wrappers whose padding was added on top of 100% width */
  .bc-wrap,.m-wrap,.u-wrap,.tz-wrap,.sc-hero-wrap,.sc-workbench-container,.bc-input,.tz-input{box-sizing:border-box!important;max-width:100%!important}
  .tz-wrap div:has(>table){overflow-x:auto;max-width:100%}
  /* single-column grids must not grow wider than the screen because of long content inside */
  .inv-workspace,.qr-workbench-grid,.calc-grid,.workspace-grid{grid-template-columns:minmax(0,1fr)!important}
  .inv-workspace>*,.qr-workbench-grid>*,.calc-grid>*,.workspace-grid>*{min-width:0;max-width:100%}
  .controlCard table{display:block;max-width:100%;overflow-x:auto}
  .sequences-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .size-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  /* rows of buttons / tabs wrap instead of running off the edge */
  .m-tabs,.u-categories,.url-input-group,.status-bar,.controlsBar,#toolbar,.binary-display{flex-wrap:wrap!important;max-width:100%}
  .controlsBar>*,#toolbar>*{min-width:0}
  .controlsBar div,#toolbar div{flex-wrap:wrap!important;max-width:100%}
  .url-input-group>input{min-width:0;flex:1 1 180px}
  /* drawing canvas scrolls inside its own box */
  .canvas-container{overflow:auto;justify-content:flex-start}
}
