/* PETROSAMOIRIDIS.COM — Desktop QC v61
   Golden desktop scale: original v45-era page dimensions.
   IMPORTANT: applies only >=1101px. Tablet/mobile are untouched. */
@media (min-width:1101px){

  /* Common guardrails */
  html,body{overflow-x:hidden}
  main,article,section,header,footer{min-width:0}
  img,svg,video,canvas{max-width:100%;height:auto}
  math,.pm-math{max-width:100%}

  /* Keep all "section-pad" pages on the site's original 1180px canvas.
     This repeats the original formula only as a guardrail. */
  .section-pad{
    padding-left:max(28px,calc((100vw - 1180px)/2));
    padding-right:max(28px,calc((100vw - 1180px)/2));
  }

  /* Header must use exactly the same desktop canvas. */
  .header{
    padding-left:max(28px,calc((100vw - 1180px)/2));
    padding-right:max(28px,calc((100vw - 1180px)/2));
  }

  /* SEO hub pages already use 1180px; lock accidental future expansion. */
  .seo-hub-main{
    width:100%;
    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
  }

  /* Reading / lesson pages: preserve the original compact editorial column. */
  .reading-layout{
    grid-template-columns:190px minmax(0,760px);
    gap:80px;
    justify-content:center;
  }
  .reading-content,.lesson-content{
    min-width:0;
    max-width:760px;
  }

  /* Long equations may scroll inside their own block instead of widening a page. */
  .collision-equation,
  .equation,
  .math-block,
  .formula-card{
    max-width:100%;
  }
  .collision-equation,
  .equation,
  .math-block{
    overflow-x:auto;
    overflow-y:hidden;
  }

  /* Tables can never force desktop page width beyond the golden canvas. */
  .table-wrap{
    max-width:100%;
    overflow-x:auto;
  }

  /* Grids: ensure one rogue child cannot stretch its whole section. */
  .material-grid,.article-grid,.experiment-grid,.seo-hub-grid,
  .collision-grid-v38,.energy-grid-v44,.osc-grid,.osc-formulas{
    min-width:0;
  }
  .material-card,.article-card,.seo-hub-card,.collision-card-v38,
  .energy-card-v44,.osc-card,.osc-formula{
    min-width:0;
  }

  /* Krouseis / oscillations: neutralize only accidental full-viewport widths. */
  #geometry,#energy,#plastic,#momentum,
  #aat,#lab,#positions,#damping,#forced{
    max-width:100%;
  }
}
