/* quote-matguide.css — Batch F (PETG default + material guide, PM 20261024-2054Z/2059Z): the upload page's material guide button and
   its in-page modal <dialog id="mat-guide-dialog" class="holo brackets qf-mat-dialog">. The quote screen's .t4c-dialog pattern
   (quote-t4c.css): padding 0 on the <dialog>, so a click on the backdrop is a click on the <dialog> itself and every click on the content
   lands on a child (quote-matguide.js closes only on the former). The cards reuse /capabilities' .mm-cards / .mm-card (site-pages.css).
   Tokens only; no inline style anywhere (the strict upload CSP). */

/* the button directly under the Material select */
.qf-mat-guide { margin-top: var(--s-2); }

/* the dialog: .holo gives it position: relative, which would take a modal <dialog> out of the viewport's fixed top layer; keep it
   fixed and centred, as the UA's dialog:modal is */
dialog.qf-mat-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0; overflow: visible;
  width: min(56rem, calc(100vw - 2 * var(--gutter))); max-width: none; height: fit-content; max-height: calc(100dvh - 2 * var(--gutter));
  color: var(--c-on-glass-2);
  background-color: var(--c-glass-menu); background-image: none; border-color: var(--c-holo-edge-strong);
  box-shadow: var(--glow-2), var(--shadow-glass);
}
dialog.qf-mat-dialog::backdrop { background: var(--c-scrim); }
/* the scrolling body sits INSIDE the dialog, so the .brackets ::after (inset -1px on the dialog) is never clipped */
.qf-mat-body { max-height: calc(100dvh - 2 * var(--gutter)); overflow: auto; overscroll-behavior: contain; padding: var(--s-6); }
.qf-mat-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.t4 .qf-mat-head h2 { margin: 0; font-size: var(--fs-h3); min-width: 0; }
/* the cross in the top corner */
.qf-mat-close { flex: 0 0 auto; padding: var(--s-2); }
.qf-mat-close svg { width: 1.25rem; height: 1.25rem; display: block; }

@media (max-width: 760px) {
  .qf-mat-body { padding: var(--s-5); }
}
@media (max-width: 560px) {
  dialog.qf-mat-dialog { width: calc(100vw - 2 * var(--gutter)); }
  .qf-mat-body { padding: var(--s-4); }
}
