/* Wide-screen layout (2026-11-13).
   The three sites were capped at 1160-1320px, which leaves a narrow center column on a
   laptop or desktop. This layer uses the viewport while keeping a readable gutter.
   Loaded last so it wins over the per-site containers. */

:root {
  --max: min(1680px, calc(100vw - 64px));
  --c42-wide: min(1680px, calc(100vw - 64px));
}

/* cainstudio.online */
.c42-wrap { max-width: var(--c42-wide); }
.c42-sec > .c42-wrap { max-width: var(--c42-wide); }
#agentic-75-paradigm .e75p-wrap,
#proof-loop .pl-wrap,
#pl-evidence { max-width: min(1600px, calc(100vw - 64px)); }
/* Inline-styled section wrappers on the homepage need !important to widen. */
.c42 #claim-evidence,
.c42 #pl-live-cta,
.c42 #lv-player { max-width: min(1600px, calc(100vw - 64px)) !important; }
/* The long-form "everything" page. */
.ci { max-width: min(1600px, calc(100vw - 64px)); }

/* mcpgate.online */
.mg-wrap { max-width: var(--c42-wide); }

/* clawx.click */
.cxr-wrap { max-width: var(--c42-wide); }

/* Other major homepage wrappers (Top 100, workstation, swarm, product bands). */
.c100-wrap,
.c42-command-wrap,
.cain-swarm-wrap,
.cws-wrap,
.cpa-crewwrap,
.ma-wrap,
.op-wrap,
.dl-wrap,
.tb-wrap,
.hm-fit-wrap,
.hm-matrix-wrap,
.hm-scatter-wrap { max-width: var(--c42-wide); }

/* Phones keep a small, comfortable gutter. */
@media (max-width: 700px) {
  :root { --max: calc(100vw - 24px); --c42-wide: calc(100vw - 24px); }
}

/* Prose stays readable even when the grid is wide. */
.c42-wrap > p,
.mg-wrap > p,
.cxr-wrap > p { max-width: 96ch; }

/* Wide screens: let the main card grids use the extra space. */
@media (min-width: 1200px) {
  .hm-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #agentic-75-paradigm .e75p-item,
  #proof-loop .pl-wrap { max-width: none; }
}
