/* Moonlit — website QA sheet, OPEN rows (19 Nov 2026). Loaded after every demo stylesheet so it wins at equal specificity.
   One block per sheet row; each says what was wrong and on which width. */

/* MOO-008 — a 2-column facts list with an odd number of items (Precious metals: 5 metals) left the last one alone beside an
   empty cell. From 3 items up, the odd last item sits centred across both columns. Pages with a form keep their own layout. */
@media (min-width: 768px) {
  .ml-tp__in:not(:has(.ml-tp__form)) .ml-tp__facts > li:nth-child(n+3):last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 16px); align-items: center; text-align: center;
  }
}

/* MOO-009 — the dark feature band (Talk to us / Lab-grown & natural / Lifetime promise / Size guide) ran edge to edge, its
   text 32px from the window; it now starts and ends at the content edge like every other section. The dark ground still
   runs full width; the hairlines stay between the tiles only. */
.ml-pfeat { background: var(--ml-midnight); }
.ml-pfeat__g { background: var(--ml-line); }
@media (min-width: 1024px) {
  .ml-pfeat__g > li:first-child > a { padding-left: 0; }
  .ml-pfeat__g > li:last-child > a { padding-right: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ml-pfeat__g > li:nth-child(odd) > a { padding-left: 0; }
  .ml-pfeat__g > li:nth-child(even) > a { padding-right: 0; }
}
@media (max-width: 767px) { .ml-pfeat__g a { padding-inline: 0; } }

/* MOO-011 — the step numbers were an old-style 16px display numeral ("1" read as a dot) in a pale circle. Shipping,
   Returns, The Moonlit Atelier, Design your own and Moonlit Care share this list. */
.ml-tp__n {
  font-family: var(--ml-sans); font-size: 15px; font-weight: 600; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: var(--ml-text); border-color: var(--ml-line-strong);
}

/* MOO-020 — the FAQ accordion drew a divider above the first question and below the last; dividers now only separate
   questions (page FAQ and the FAQ section's question list). */
.ml-tp__faq > .ml-acc:first-child { border-top: 0; }
.ml-tp__faq > .ml-acc:last-child { border-bottom: 0; }

/* MOO-023 — the event promo tile made 9 cells of an 8-piece collection (Lariat necklaces: a lone card in the last row of
   4). The tile now shows only when it completes the rows at the width's own column count (4 from 1024, 3 from 768, 2 below):
   cells counted WITH the tile must be a multiple of the columns, else the tile is hidden. A full page (11 + tile = 12) always
   shows it. Works on the server's grid and the filter script's alike (both insert the tile as an <li>). */
@media (min-width: 1024px) { .ml-cgrid .ml-grid:not(:has(> li:first-child:nth-last-child(4n))) > .ml-promo { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .ml-cgrid .ml-grid:not(:has(> li:first-child:nth-last-child(3n))) > .ml-promo { display: none; } }
@media (max-width: 767px) { .ml-cgrid .ml-grid:not(:has(> li:first-child:nth-last-child(2n))) > .ml-promo { display: none; } }

/* MOO-029 — text links had a 24px underline under the first word only ("VIEW ALL JEWELRY", "SHOP ALL BEST SELLERS",
   "START WITH A DIAMOND", "LENGTH GUIDE", "BACK TO THE JOURNAL"): the underline now runs under the whole link. */
.ml-link::after { width: 100%; }

/* MOO-034 — at tablet width the promise strip wrapped 3 + 2 (3 + 1 on a product page). From 768 to 1199 it is two
   columns: 2 + 2, and a fifth promise sits centred on its own row. */
@media (min-width: 768px) and (max-width: 1199px) {
  .ml-trust__s, .ml-trust__s--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-trust__s > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* MOO-035 — at tablet width the footer's four link columns wrapped 3 + 1 (Information alone under a wide gap): 2 × 2. */
@media (min-width: 768px) and (max-width: 1023px) {
  .ml-foot__cols { gap: 32px 24px; }
  .ml-foot__col, .ml-foot__col:first-child { flex: 0 0 calc(50% - 12px); }
}

/* MOO-036 — at tablet width the journal showed 4 articles 3 + 1: two columns (2 + 2) from 600 to 1023. */
@media (min-width: 600px) and (max-width: 1023px) {
  .ml-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* MOO-037 — the bracelet Size guide dialog (shares the Length guide's frame). */
.ml-bsg__b { display: flex; flex-direction: column; gap: 18px; padding: 18px 20px; }
.ml-bsg__steps { display: grid; gap: 12px; counter-reset: ml-bsg; }
.ml-bsg__steps li { display: grid; gap: 2px; padding-left: 30px; position: relative; counter-increment: ml-bsg; }
.ml-bsg__steps li::before {
  content: counter(ml-bsg); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border: 1px solid var(--ml-line-strong);
  border-radius: 99px; font: 600 11px/18px var(--ml-sans); text-align: center;
}
.ml-bsg .ml-tbl { width: 100%; }

/* MOO-005 — the Night List sign-up on Night Sky Rewards. */
.ml-tp__jform { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.ml-tp__jrow { display: flex; gap: 10px; }
.ml-tp__jrow .ml-select { flex: 1 1 auto; min-width: 0; max-width: none; }
.ml-tp__jrow .ml-btn { flex: 0 0 auto; }
@media (max-width: 559px) { .ml-tp__jrow { flex-direction: column; } .ml-tp__jrow .ml-btn { align-self: flex-start; } }

/* MOO-019 — on the home page "Gifts by price" (96px bottom padding) was followed by "Build your engagement ring" (96px top
   padding), with the empty "phases" section between them: ~190px of blank band where the home sections are ~90-120 apart.
   The build section drops its top padding when it follows the gift section (directly or after an empty section). */
.shopify-section:has(.ml-gift) + .shopify-section .ml-build,
.shopify-section:has(.ml-gift) + .shopify-section:not(:has(*)) + .shopify-section .ml-build { padding-top: 0; }

/* MOO-024 — on a desktop the five promises sat in five equal cells, so "Certified engagement diamonds" broke onto two lines
   while the other four stayed on one. From 1200px each promise takes the width of its own text and the space is shared
   evenly between them (one line each at 1200 / 1280 / 1366 / 1440, nothing overflows). The 4-item strip of a product page
   keeps its four equal cells (its labels fit). */
@media (min-width: 1200px) {
  .ml-trust__s:not(.ml-trust__s--4) { grid-template-columns: repeat(5, auto); justify-content: space-between; padding-inline: 24px; }
  .ml-trust__s:not(.ml-trust__s--4) a { padding-inline: 0; }
}
