/* LottoLuma V32 — restrained editorial layout polish
 * Source: V31. Scoped to learning/editorial panels; preserves the game studios,
 * menus, advertising, footer, print templates and user-facing logic.
 */

/* Long user-entered content and maths must not break their card width. */
main :is(.lq-section, .lq-grid > article, .lq-about-grid > article, .orbit-rp-content-card) {
  min-width: 0;
}
main .lq-section :is(p,li,td,th,a,.lq-result-number,.lq-mono) {
  overflow-wrap: anywhere;
}
main .lq-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prose-only blocks become properly balanced, readable editorial columns. */
.ll-prose-grid,
.ll-guidance-grid {
  display: grid;
  gap: clamp(16px, 2.3vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin: 10px 0 18px;
}
.ll-prose-grid > article,
.ll-guidance-grid > article {
  min-width: 0;
  padding: clamp(17px, 2vw, 26px);
  border: 1px solid var(--lq-line, #d6e2eb);
  border-radius: 16px;
  background: color-mix(in srgb, var(--lq-paper, #fff) 90%, var(--lq-accent, #0074ad) 10%);
  overflow-wrap: anywhere;
}
.ll-prose-grid > article > p,
.ll-guidance-grid > article > p {
  max-width: none;
  margin: 0;
}
.ll-guidance-grid > article > h3 {
  margin: 0 0 12px;
  line-height: 1.35;
}

/* Methods overview: information fills both halves of the oversized white panel.
 * Only this specifically identified section is changed. */
@media (min-width: 1024px) {
  .ll-methods-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: clamp(25px, 3.4vw, 52px);
    row-gap: 0;
    align-items: start;
  }
  .ll-methods-overview > .lq-kicker,
  .ll-methods-overview > h1 {
    grid-column: 1 / -1;
  }
  .ll-methods-overview > p {
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  .ll-methods-overview > p:nth-of-type(2) {
    border-left: 1px solid var(--lq-line, #d6e2eb);
    padding-left: clamp(22px, 2.5vw, 38px);
  }
}
@media (min-width: 701px) and (max-width: 1023px) {
  .ll-prose-grid,
  .ll-guidance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ll-prose-grid,
  .ll-guidance-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ll-prose-grid > article,
  .ll-guidance-grid > article { padding: 17px; border-radius: 14px; }
  .ll-methods-overview > p { max-width: 100%; }
}
@media print {
  .ll-prose-grid,.ll-guidance-grid { display: block; }
  .ll-prose-grid > article,.ll-guidance-grid > article {
    break-inside: avoid; background: #fff; border-color: #d6d6d6;
    margin-bottom: 14px;
  }
  .ll-methods-overview { display: block; }
  .ll-methods-overview > p:nth-of-type(2) { border: 0; padding: 0; }
}
