/* HermeticMind.com: the basket on the free decks page, for Put yourself in the pictures (build stage 1, 13 Nov 2026;
   spec 02 sections 2 and 3; the look Ken approved on 12 Nov 2026, basket_on_new_free_decks_page_2026_11_12.jpg).
   Linked on the free decks page only while PICTURE_YOURSELF_LIVE is on in src/build.py; the page's own styles.css is
   not changed. assets/pyp-basket.js keeps the basket. Its classes start pyb- (the home page already uses pyp-).
   Kept in src/pyp/assets/: the build copies it into the site's assets/ only while the switch is on. */

/* Step 2's heading, its count under it, and the line that says what the tick is beside them. */
.dkg-head:has(.pyb-line) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "h line" "n line"; align-items: start; gap: 8px 48px; }
.dkg-head:has(.pyb-line) h2 { grid-area: h; }
.dkg-head:has(.pyb-line) .dkg-count { grid-area: n; }
.pyb-line { grid-area: line; margin: 0; max-width: 58ch; font-size: 16px; line-height: 1.6; color: var(--slate); }
.pyb-line strong { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) {
  .dkg-head:has(.pyb-line) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "n" "line"; }
  .pyb-line { margin-top: 4px; font-size: 15px; }
}

/* The tick: on its own row under Download and See all 18, the card's full width, so the free download stays the main
   button. The same row sits in the panel's footer. */
.pyb-row { position: relative; flex: 1 1 100%; min-width: 0; margin-top: 6px; }
.pyb-row[hidden] { display: none; }
.pyb-tick { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border: 1.5px solid var(--rule); border-radius: 14px; background: var(--white); font: 600 15px/1.3 var(--font); color: var(--ink); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.pyb-tick:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--rule)); }
.pyb-tick input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--blue); border-radius: 6px; background: var(--white) no-repeat center / 14px 14px; cursor: pointer; transition: background-color .15s ease; }
.pyb-tick input:checked { background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pyb-tick input:focus-visible { outline: none; }
.pyb-tick:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.pyb-label { flex: 1 1 auto; min-width: 0; }
.pyb-price { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
/* Ticked: the row turns gold, and the card gets a gold edge, an outline set a little off it, so nothing moves. */
.pyb-row:has(input:checked) .pyb-tick { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, var(--white)); }
.dkg-card.pyb-in { border-radius: 12px; outline: 2px solid var(--gold); outline-offset: 14px; }
@media (max-width: 640px) { .dkg-card.pyb-in { outline-offset: 12px; } }

/* Before a gender is chosen, the tick asks in place, as Download does: over the card, above the tick. */
/* As wide as its widest line, and no wider than its card or panel, where the two buttons wrap if they must. */
.pyb-ask { position: absolute; z-index: 6; left: 0; bottom: calc(100% + 10px); width: max-content; max-width: 100%; padding: 14px; border: 1.5px solid var(--blue); border-radius: 16px; background: var(--white); box-shadow: 0 18px 40px -14px rgba(31, 35, 41, .35); }
.pyb-ask[hidden], .dk-page:has(input[name="who"]:checked) .pyb-ask { display: none; }
.pyb-ask p { max-width: none; margin: 0; font: 600 16px/1.3 var(--font); color: var(--ink); }
.pyb-ask p.pyb-why { margin-top: 4px; font: 400 14px/1.4 var(--font); color: var(--slate); }
.pyb-who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
/* On a card, the card's full width, covering the words above the tick, as in the approved design. */
.dkg-actions .pyb-ask { right: 0; width: auto; }
.pyb-ask .btn.btn-outline { padding: 7px 16px 7px 7px; gap: 8px; font-size: 15px; font-weight: 600; }
.pyb-ask .btn.btn-outline:hover { background: var(--cloud); }
.pyb-ask .faces img { width: 28px; height: 28px; }

/* The basket bar, at the foot of the window once a deck is ticked: the count and total, and Put me in these decks.
   While it shows, the page gets bottom padding of its height (--pyb-h), so it never covers the last card, and scroll
   padding, so a control reached with the keyboard is never under it. */
.pyb-bar { position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--rule); background: var(--white); box-shadow: 0 -14px 30px -24px rgba(31, 35, 41, .4); visibility: hidden; transform: translateY(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .4s; }
.pyb-bar.is-on { visibility: visible; transform: none; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.pyb-bar[hidden], .pyb-bar .wrap[hidden] { display: none; }
.pyb-main { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.pyb-sum { margin: 0; min-width: 0; font: 600 17px/1.3 var(--font); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pyb-bar .btn { flex: none; white-space: nowrap; }
.pyb-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 4px; }
.pyb-note p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.pyb-note:only-child, .pyb-note:has(+ .pyb-main[hidden]) { padding-bottom: 12px; }
.pyb-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--cloud); color: var(--ink); cursor: pointer; }
.pyb-x:hover { background: var(--rule); }
.pyb-x svg { width: 14px; height: 14px; }
html.pyb-pad { scroll-padding-bottom: calc(var(--pyb-h, 76px) + 16px); }
html.pyb-pad body { padding-bottom: var(--pyb-h, 76px); }
/* On a phone: one line, the count and total on the left, the button on the right. */
@media (max-width: 560px) {
  .pyb-main { min-height: 64px; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .pyb-sum { font-size: 15px; }
  .pyb-bar .btn { padding: 12px 18px; font-size: 15px; }
}
/* The narrowest phones: a smaller gutter and type, and a long total may take a second line rather than run into the
   button. */
@media (max-width: 359px) {
  .pyb-bar .wrap { padding-left: 14px; padding-right: 14px; }
  .pyb-main { gap: 10px; }
  .pyb-sum { font-size: 14px; line-height: 1.25; white-space: normal; }
  .pyb-bar .btn { padding: 11px 13px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pyb-bar, .pyb-bar.is-on, .pyb-tick, .pyb-tick input { transition: none; }
}
/* Windows high contrast: the browser's own tick box, so the tick always shows. */
@media (forced-colors: active) {
  .pyb-tick input { -webkit-appearance: auto; appearance: auto; width: 20px; height: 20px; }
  .dkg-card.pyb-in { outline-color: Highlight; }
}
