/* More & Chismes 4.9.28 — site-wide content width alignment.
   Navigation and content share a 1320px layout; text measures remain readable. */
:root { --mc-page-max: 1320px; --mc-page-gutter: 22px; }

/* This governs every page extending templates/base.html. */
body > header:has(.mc494-links),
body > main {
  width: 100%;
  max-width: var(--mc-page-max);
  margin-inline: auto;
}
body > main { padding-inline: var(--mc-page-gutter); min-width: 0; }
body > main > * { min-width: 0; }

/* Existing sections used smaller, competing desktop width limits. */
body > main :is(.top496, .mc494-page, .hub49, .mc24, .mc4918-page, .mc4922-page, .mc4923-page) {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}

/* Page-level panels and grids fill their newly available content area. */
body > main :is(.top496-grid, .mc4923-discover, .mc27-releases, .mc24-tiles,
  .mc4925-visuals, .cards, .admin-grid, .preview-actors, .mystery-groups,
  .hub49-discovery, .v3-content, .v3-table, .table-wrap) {
  max-width: 100%;
  min-width: 0;
}

/* Let each section's visual hero stretch, but avoid overly long paragraph lines. */
body > main > .hero { max-width: 100%; }
body > main > .hero > :is(h1, p) { max-width: 780px; }

/* Uniform premium treatment on internal page links and interactive card links.
   Does not change navigation, primary buttons, or voting controls. */
body > main a:not([class]):hover { color: #ffb4db; }
body > main a:focus-visible { outline: 2px solid #ffadd6; outline-offset: 3px; border-radius: 3px; }

@media (min-width: 1500px) {
  :root { --mc-page-gutter: 22px; }
}
@media (max-width: 760px) {
  :root { --mc-page-gutter: 18px; }
  body > main { padding-inline: var(--mc-page-gutter); }
}
@media (max-width: 480px) {
  :root { --mc-page-gutter: 14px; }
}
