/* alhamdulillah.net 3.0.0 – consistent public desktop workspace width.
   Loaded after prior UI/area styles; does not touch admin, auth or mobile layouts.
   Do not apply padding to body: the site header and footer must remain edge-to-edge. */
:root { --alh300-side-space: clamp(14px, 1.5vw, 32px); }

@media screen and (min-width: 1024px) {
  /* Keep Quran, Tafsir, search, bookmarks, Hadith, Dua and subpages on the
     same fluid desktop canvas, instead of 1060/1120/1600px page limits. */
  body.alh160-main > main.layout.reader-layout,
  body.alh160-subpage > main.wrap,
  body.alh160-subpage > main.shell.main,
  body.alh280-app > main.wrap {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--alh300-side-space)) !important;
    max-width: none !important;
    min-width: 0;
    margin-inline: auto !important;
  }

  /* The semantic Quran compare and source-research wrappers have their own
     width caps; scope the override to the top-level main, not cards or text. */
  body.alh160-subpage > main.q200-wrap,
  body.alh160-subpage > main.alh220-wrap,
  body.alh160-subpage > main.alh240-page {
    width: calc(100% - 2 * var(--alh300-side-space)) !important;
    max-width: none !important;
  }

  /* Header and footer line up with the main work surface. */
  body .alh160-site-header > .alh160-nav-wrap,
  body .alh160-footer > .alh160-footer-inner {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--alh300-side-space));
    max-width: none !important;
    margin-inline: auto;
  }

  /* Avoid grid or long-text overflow at very wide and intermediate sizes. */
  body.alh160-main > main.reader-layout :is(.cards,.translation-grid,.inline-translations,.pro-single-grid),
  body.alh160-subpage > main.wrap :is(.q200-grid,.alh220-topic-grid) {
    min-width: 0;
  }
  body:is(.alh160-main,.alh160-subpage,.alh280-app) > main :is(pre, table) {
    max-width: 100%;
  }
  body:is(.alh160-main,.alh160-subpage,.alh280-app) > main pre {
    overflow-x: auto;
  }
}

/* Mid-size / mobile widths, area colors, and print styles stay as in v2.9. */
