/* MykaPro — the product pages for Myka Fresh, Myka Connect and Myka Beauty (products/myka-fresh.php, -connect.php,
   -beauty.php; Myka TRENDS has its own myka-trends.css). Loaded after styles.css. Each page sets data-product on <main>,
   which gives it its product colour (--pc / --pc-soft, styles.css). The illustrations are the .spec-* rules in styles.css. */

.pd-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-bottom: 1.5rem; }
.pd-brand img { width: clamp(170px, 18vw, 236px); height: auto; }
.pd-brand .mono { color: var(--pc); }

.pd-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.pd-hero-grid .lead { margin-top: 1.25rem; }
.pd-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--c-line); font-size: var(--t-xs); }
.pd-checks li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 0.55rem; border-radius: 50%; background: var(--pc); }
.pd-hero-visual { margin-top: 1.5rem; }

/* A figure (illustration or real screen) with its caption. */
.pd-figure { margin: 0; }
.pd-figure figcaption { margin-top: 0.75rem; font-size: var(--t-xs); color: var(--c-muted); }
.pd-figure .spec + .spec { margin-top: 1rem; }

/* A numbered list beside the figure it describes. */
.pd-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-top: 2.5rem; }
.pd-split > .ledger { margin-top: 0; }
.pd-split > .ledger li { grid-template-columns: 3rem minmax(0, 1fr); row-gap: 0.25rem; }
.pd-split > .ledger li p { grid-column: 2; }
.pd-split > .stations { margin-top: 0; }
.pd-split > .stations li { grid-template-columns: 3rem minmax(0, 1fr); row-gap: 0.25rem; }
.pd-split > .stations li > p:last-child { grid-column: 2; }
.pd-split > .pd-figure { position: sticky; top: 6.5rem; }
.pd-split-flip > .pd-figure { order: -1; }
main[data-product] .ledger .ledger-no, main[data-product] .station-no { color: var(--pc); }
main[data-product] .station-dot { background: var(--pc); }

/* A short note under a list (edition, scope). */
.pd-note { margin-top: 1.25rem; max-width: 46rem; font-size: var(--t-xs); color: var(--c-muted); }

/* The real POS header, online and offline (Fresh). */
.pd-states { display: grid; gap: 0.75rem; }
.pd-states img { display: block; width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }

/* Mid-page call to action. */
.pd-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.pd-cta .t-l { max-width: 22em; }
.pd-cta .cta-row { margin-top: 0; }

@media (max-width: 1099px) {
  .pd-hero-grid, .pd-split { grid-template-columns: minmax(0, 1fr); }
  .pd-split > .pd-figure { position: static; }
  .pd-split-flip > .pd-figure { order: 0; }
}

/* A list on its own uses the full width as a two-column register (title over text), instead of a narrow
   column with the right third empty. Lists beside a figure (.pd-split) keep one column. */
@media (min-width: 900px) {
  main[data-product] .sec-body > .ledger { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); }
  main[data-product] .sec-body > .ledger li { grid-template-columns: 3rem minmax(0, 1fr); row-gap: 0.25rem; }
  main[data-product] .sec-body > .ledger li p { grid-column: 2; }
  main[data-product] .sec-body > .ledger li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--c-line); }
  main[data-product] .sec-body > .stations { max-width: none; }
  main[data-product] .sec-body > .stations li { grid-template-columns: 4rem minmax(0, 16rem) minmax(0, 1fr); }
}
