/* The zen front page, second version (Leon, 27 Nov 2026): Carrie's order, and on a phone "the mini page goes up and
   it says card, card, card ... each card is roughly fitted to one screen with maybe some padding. Topic can be covered
   by more than one card, but there should be some semantic binding between them as well."
   cards.py puts every part into .card > .cin > .cbody, with a .ctop line on the cards of a topic that has several.
   On a phone the page stops on every card (the whole page snaps; cards.js loosens it if a card ever outgrows the
   screen). From a tablet up there are no cards: the wrappers vanish and each part lays out as on the zen page.
   Loaded after zen.css, on the front page only. Rules that change a zen rule start the way zen.css's own do
   (html.pal-zen:not([data-skin])) plus .v-cards, so they win. */

.v-cards .ctop{display:none}
html.pal-zen.v-cards:not([data-skin]).js .scard{position:relative;top:auto;clip-path:none;opacity:1}

/* the new pieces, at every width: the picture beside the three steps, the steps, the nurse */
.v-cards .spic{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:3/2}
.v-cards .spic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.v-cards .steps3{list-style:none;margin:0;padding:0;display:grid;gap:22px}
.v-cards .steps3 li{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.v-cards .steps3 .ph{position:relative;width:96px;height:96px;flex:none}
.v-cards .steps3 .ph img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.v-cards .steps3 .ph::before{content:"";position:absolute;inset:-9px;background:var(--enso) center/contain no-repeat;transform:rotate(var(--rot,0deg))}
.v-cards .steps3 li:nth-child(2){--rot:120deg}
.v-cards .steps3 li:nth-child(3){--rot:240deg}
.v-cards .steps3 .ph b{position:absolute;right:-4px;bottom:-2px;width:30px;height:30px;border-radius:50%;background:var(--honey);color:var(--plum);display:grid;place-items:center;font:600 19px/1 var(--serif);font-variant-numeric:lining-nums}
.v-cards .steps3 h3{font-size:24px}
.v-cards .steps3 p{margin-top:4px;font-size:17px;line-height:1.5;color:var(--muted)}
.v-cards .nbox{display:flex;flex-direction:column}
.v-cards .nbox .nurse{margin:0}
.v-cards .ntext .lede{margin-top:8px}

@media (min-width:700px){
  /* the front page only: the inner pages have boxes of their own called .card */
  html.v-cards:not([data-skin]) .card,html.v-cards:not([data-skin]) .cin,html.v-cards:not([data-skin]) .cbody{display:contents}
  /* ivory and linen still take turns in the new order */
  html.pal-zen.v-cards:not([data-skin]) #voice,html.pal-zen.v-cards:not([data-skin]) #join{background:transparent}
  html.pal-zen.v-cards:not([data-skin]) #questions{background:var(--grain),var(--linen)}
  html.pal-zen.v-cards:not([data-skin]) :is(#theirs,#back){display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
  html.pal-zen.v-cards:not([data-skin]) :is(#theirs,#back) .head{grid-column:1/-1;margin-bottom:14px}
  /* the row that swipes on a phone is only a holder here: the three stand side by side as before */
  html.pal-zen.v-cards:not([data-skin]) :is(#theirs,#back) .rail.swipe{display:contents}
  html.pal-zen.v-cards:not([data-skin]) :is(#theirs,#back) .rdots{display:none}
  /* a question only a phone asks: from a tablet up the pilot's card still says it */
  html.v-cards:not([data-skin]) .ph-only{display:none}
  html.pal-zen.v-cards:not([data-skin]) #start .spic{margin-bottom:28px}
  .v-cards .nbox{margin-top:16px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);border-radius:24px;overflow:hidden}
  .v-cards .nbox .nurse{border-radius:0;aspect-ratio:16/9}
  .v-cards .ntext{padding:26px 28px 24px}
}
@media (min-width:960px){
  html.pal-zen.v-cards:not([data-skin]) #voice{display:grid;grid-template-columns:1.15fr 1fr;column-gap:16px;align-items:stretch}
  html.pal-zen.v-cards:not([data-skin]) #voice .head{grid-column:1/-1}
  html.pal-zen.v-cards:not([data-skin]) #voice .vcard{grid-column:1;grid-row:2}
  html.pal-zen.v-cards:not([data-skin]) #voice .vfeat{grid-column:2;grid-row:2;display:grid}
  /* five points since 28 Nov (Leon's new wording): one column of short rows beside the demo, not a grid of boxes with
     one left over */
  html.pal-zen.v-cards:not([data-skin]) #voice .vfeat .rail{grid-template-columns:minmax(0,1fr);gap:10px;align-content:space-between}
  html.pal-zen.v-cards:not([data-skin]) #voice .vfeat .feat{flex-direction:row;align-items:center;gap:16px;padding:14px 18px;min-height:0;justify-content:flex-start}
  html.pal-zen.v-cards:not([data-skin]) #voice .vfeat .feat .ic{width:46px;height:46px;flex:none}
  html.pal-zen.v-cards:not([data-skin]) #voice .vfeat .feat .ic svg.i{width:22px;height:22px}
  html.pal-zen.v-cards:not([data-skin]) #voice .vfeat .feat h3{font-size:22px;margin-bottom:2px}
  html.pal-zen.v-cards:not([data-skin]) #voice .vfeat .feat p{font-size:15.5px;line-height:1.45}
  html.pal-zen.v-cards:not([data-skin]) #start{display:grid;grid-template-columns:1fr 1fr;column-gap:56px;align-items:center}
  html.pal-zen.v-cards:not([data-skin]) #start .head{grid-column:1/-1}
  html.pal-zen.v-cards:not([data-skin]) #start .spic{grid-column:1;grid-row:2/span 2;margin:0}
  html.pal-zen.v-cards:not([data-skin]) #start .steps3{grid-column:2;grid-row:2;align-self:end}
  html.pal-zen.v-cards:not([data-skin]) #start .more{grid-column:2;grid-row:3;justify-self:start;align-self:start}
  html.pal-zen.v-cards:not([data-skin]) #safety{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:start}
  html.pal-zen.v-cards:not([data-skin]) #safety .head{grid-column:1/-1}
  html.pal-zen.v-cards:not([data-skin]) #safety .layers{grid-column:1;grid-row:2}
  html.pal-zen.v-cards:not([data-skin]) #safety .nbox{grid-column:2;grid-row:2;margin:0}
}

/* ================= a phone: card by card ================= */
@media (max-width:699px){
  html.pal-zen.v-cards:not([data-skin]){scroll-snap-type:y mandatory}
  html.pal-zen.v-cards:not([data-skin]).soft{scroll-snap-type:y proximity}
  html.pal-zen.v-cards:not([data-skin]) body{background:var(--grain),var(--linen)}
  html.pal-zen.v-cards:not([data-skin]) #top>.sec{padding:0;background:none}
  html.pal-zen.v-cards:not([data-skin]) .hero-art{min-height:420px}
  html.pal-zen.v-cards:not([data-skin]) .hero-copy{padding:6px 6px 12px}
  /* the top bar gets a ground of its own, so a card leaves under it cleanly instead of showing through around it */
  html.pal-zen.v-cards:not([data-skin]) .px-top{background:var(--grain),var(--linen)}

  /* a card: one screen under the top bar, less a strip where the next card shows */
  html.pal-zen.v-cards:not([data-skin]) .card{box-sizing:border-box;display:flex;min-height:calc(100svh - var(--hdr,66px) - 20px);padding:6px 10px;scroll-snap-align:start;scroll-snap-stop:always}
  html.pal-zen.v-cards:not([data-skin]) .cin{--pad:20px;flex:1;min-width:0;display:flex;flex-direction:column;padding:16px var(--pad) 20px;background:var(--card);border-radius:26px;box-shadow:inset 0 0 0 1px var(--line),0 18px 30px -26px rgba(43,33,41,.45);overflow:clip}
  html.pal-zen.v-cards:not([data-skin]) .cbody{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
  html.pal-zen.v-cards:not([data-skin]) .fill>.cin>.cbody{justify-content:flex-start}
  /* Getting started is one card on a phone: its words and the three steps; the big picture is for a wider screen
     (Leon, 28 Nov 2026: "if the picture is to enhance the card, is not to be the card ... it needs to be removed") */
  html.pal-zen.v-cards:not([data-skin]) #start .spic{display:none}

  /* a topic's cards: the same name on each, and which of them this is */
  html.pal-zen.v-cards:not([data-skin]) .ctop{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:26px;margin:0 0 10px}
  html.pal-zen.v-cards:not([data-skin]) .ctop .kick{margin:0}
  html.pal-zen.v-cards:not([data-skin]) .ctop+.cbody .kick{display:none}
  html.pal-zen.v-cards:not([data-skin]) .pips{display:flex;align-items:center;gap:6px;flex:none}
  html.pal-zen.v-cards:not([data-skin]) .pips i{width:7px;height:7px;border-radius:50%;background:var(--dot)}
  html.pal-zen.v-cards:not([data-skin]) .pips i.on{width:22px;border-radius:4px;background:var(--honey)}
  /* a later card of a topic begins with whatever came next: the space above it belonged to what stood before */
  html.pal-zen.v-cards:not([data-skin]) .ctop+.cbody>:first-child,
  html.pal-zen.v-cards:not([data-skin]) .ctop+.cbody>:first-child>:first-child,
  html.pal-zen.v-cards:not([data-skin]) .ctop+.cbody>:first-child>:first-child>:first-child{margin-top:0!important}
  /* a picture that would have been a card on its own, or cost its topic a card, stays off the phone (cards.js) */
  html.pal-zen.v-cards:not([data-skin]) .ph-off{display:none!important}
  /* while cards.js cuts the page for this screen: no stops, no card stretched to the screen, nothing moved or scaled */
  html.pal-zen.v-cards:not([data-skin]).measure{scroll-snap-type:none!important}
  html.pal-zen.v-cards:not([data-skin]).measure .card{min-height:0!important}
  html.pal-zen.v-cards:not([data-skin]).measure :is(.cin,.rv){animation:none!important;transition:none!important}
  html.pal-zen.v-cards:not([data-skin]).measure .rv{transform:none!important}

  /* inside a card: a little smaller, so one screen holds it */
  html.pal-zen.v-cards:not([data-skin]) .cin .head{margin-bottom:16px}
  html.pal-zen.v-cards:not([data-skin]) .cin .lede{font-size:17.5px;line-height:1.55;margin-top:10px}
  html.pal-zen.v-cards:not([data-skin]) .cin .rdots{margin-top:2px}
  html.pal-zen.v-cards:not([data-skin]) .cin .rdots button{height:34px}
  html.pal-zen.v-cards:not([data-skin]) .cin .more{margin-top:10px}

  /* the three questions */
  html.pal-zen.v-cards:not([data-skin]) #asking .askq{margin-top:10px}
  html.pal-zen.v-cards:not([data-skin]) #asking .askq li{--ring:min(156px,42vw,23svh)}
  html.pal-zen.v-cards:not([data-skin]) #asking .lede{text-align:center;margin-top:14px}

  /* rows of short points run down the card, not sideways (Leon, 28 Nov 2026: "Try to get rid of the side carousels on
     every card, you can"; "Disconnect does not need a carousel"); "What you get back" still swipes, below */
  html.pal-zen.v-cards:not([data-skin]) :is(.rail:not(.swipe),.nights){display:grid;grid-template-columns:minmax(0,1fr);gap:8px;overflow:visible;margin:0;padding:0;scroll-snap-type:none}
  html.pal-zen.v-cards:not([data-skin]) :is(.rail:not(.swipe),.nights)>*{flex:none;min-height:0}
  html.pal-zen.v-cards:not([data-skin]) .rdots{display:none}
  html.pal-zen.v-cards:not([data-skin]) .rail.swipe+.rdots{display:flex}
  /* a short point: its sign, its name and its line, side by side */
  html.pal-zen.v-cards:not([data-skin]) :is(.vfeat,.rail.trial) .feat{flex-direction:row;align-items:flex-start;gap:12px;padding:12px 14px;justify-content:flex-start;border-radius:18px}
  html.pal-zen.v-cards:not([data-skin]) :is(.vfeat,.rail.trial) .feat .ic{width:38px;height:38px;flex:none}
  html.pal-zen.v-cards:not([data-skin]) :is(.vfeat,.rail.trial) .feat .ic svg.i{width:20px;height:20px}
  html.pal-zen.v-cards:not([data-skin]) :is(.vfeat,.rail.trial) .feat>div{flex:1;min-width:0;align-self:center}
  html.pal-zen.v-cards:not([data-skin]) :is(.vfeat,.rail.trial) .feat h3{font-size:20px;margin-bottom:2px}
  html.pal-zen.v-cards:not([data-skin]) :is(.vfeat,.rail.trial) .feat p{font-size:15.5px;line-height:1.45}
  /* the night story: a list down the card, each night its number beside its name */
  html.pal-zen.v-cards:not([data-skin]) .nights{gap:0}
  html.pal-zen.v-cards:not([data-skin]) .nights li{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:center;padding:8px 0}
  html.pal-zen.v-cards:not([data-skin]) .nights .n{grid-row:1/span 2;width:44px;height:44px;margin:0;font-size:16px}
  html.pal-zen.v-cards:not([data-skin]) .nights h3{grid-column:2;margin:0;font-size:20px}
  html.pal-zen.v-cards:not([data-skin]) .nights p{grid-column:2;margin-top:2px;font-size:15.5px;line-height:1.45}
  /* folded to its titles when the screen is small (cards.js): a tap opens one */
  html.pal-zen.v-cards:not([data-skin]) .ph-fold>*{cursor:pointer;-webkit-tap-highlight-color:transparent}
  html.pal-zen.v-cards:not([data-skin]) .ph-fold>:not(.open) p{display:none}
  html.pal-zen.v-cards:not([data-skin]) .rail.ph-fold>.feat{align-items:center;padding-top:7px;padding-bottom:7px}
  html.pal-zen.v-cards:not([data-skin]) .rail.ph-fold>.open.feat{align-items:flex-start}
  html.pal-zen.v-cards:not([data-skin]) .rail.ph-fold>.feat .ic{width:32px;height:32px}
  html.pal-zen.v-cards:not([data-skin]) .rail.ph-fold>.feat .ic svg.i{width:18px;height:18px}
  html.pal-zen.v-cards:not([data-skin]) .nights.ph-fold li{padding:5px 0}
  html.pal-zen.v-cards:not([data-skin]) .nights.ph-fold .n{width:38px;height:38px;font-size:15px}
  html.pal-zen.v-cards:not([data-skin]) .steps3.ph-fold{gap:10px}
  html.pal-zen.v-cards:not([data-skin]) .ph-fold h3{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}
  html.pal-zen.v-cards:not([data-skin]) .ph-fold h3::after{content:"+";flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--honey);font:400 19px/1 'Lato',system-ui,sans-serif;color:var(--plum);transition:transform .35s}
  html.pal-zen.v-cards:not([data-skin]) .ph-fold>.open h3::after{transform:rotate(45deg)}
  html.pal-zen.v-cards:not([data-skin]) .ph-fold>.open p{margin-top:4px}

  /* the voice demo: the four ways of speaking in one row that swipes, so the demo stays short */
  html.pal-zen.v-cards:not([data-skin]) .vcard{min-height:340px}
  html.pal-zen.v-cards:not([data-skin]) .regs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 -18px 12px;padding:0 18px;scroll-padding:0 18px}
  html.pal-zen.v-cards:not([data-skin]) .regs::-webkit-scrollbar{display:none}
  html.pal-zen.v-cards:not([data-skin]) .regs button{flex:none}

  /* how it works */
  html.pal-zen.v-cards:not([data-skin]) .spic{flex:1;min-height:150px;aspect-ratio:auto}
  html.pal-zen.v-cards:not([data-skin]) .steps3{gap:16px}
  html.pal-zen.v-cards:not([data-skin]) .steps3 li{gap:16px}
  html.pal-zen.v-cards:not([data-skin]) .steps3 .ph{width:70px;height:70px}
  html.pal-zen.v-cards:not([data-skin]) .steps3 .ph::before{inset:-7px}
  html.pal-zen.v-cards:not([data-skin]) .steps3 .ph b{width:26px;height:26px;font-size:16px}
  html.pal-zen.v-cards:not([data-skin]) .steps3 h3{font-size:22px}
  html.pal-zen.v-cards:not([data-skin]) .steps3 p{font-size:16px}

  /* who answers */
  html.pal-zen.v-cards:not([data-skin]) #choice .seg{margin:14px 0 14px}
  html.pal-zen.v-cards:not([data-skin]) #choice .viz{height:min(190px,23svh)}
  html.pal-zen.v-cards:not([data-skin]) #choice .face{padding:8px 8px 18px}
  html.pal-zen.v-cards:not([data-skin]) #choice .face h3{margin-top:14px}

  /* the three layers: each its name and its promise; the rest is on Safety and privacy. On a short screen they sit
     closer together, so the heading does not end up on a card of its own */
  html.pal-zen.v-cards:not([data-skin]) .layer{padding:10px 14px;align-items:center}
  @media (max-height:700px){
    html.pal-zen.v-cards:not([data-skin]) .layer{padding:6px 12px}
    html.pal-zen.v-cards:not([data-skin]) .ov{padding:0 0 0 36px}
    html.pal-zen.v-cards:not([data-skin]) .cin .head{margin-bottom:12px}
  }
  html.pal-zen.v-cards:not([data-skin]) .layer p:not(.s){display:none}
  html.pal-zen.v-cards:not([data-skin]) .ov{padding:3px 0 3px 36px}
  html.pal-zen.v-cards:not([data-skin]) .ov::before{height:16px}

  /* the nurse, without her picture on a phone (Leon, 28 Nov 2026: "if you get rid of a picture ... you could easily
     use the, card, you know, take one card"): her words go under the layers */
  html.pal-zen.v-cards:not([data-skin]) #safety .nbox .nurse{display:none}
  html.pal-zen.v-cards:not([data-skin]) .nbox{flex:none;margin-top:14px}
  html.pal-zen.v-cards:not([data-skin]) .ntext h3{font-size:22px}
  html.pal-zen.v-cards:not([data-skin]) .ntext .lede{font-size:16.5px;margin-top:6px}

  /* what you get back: one card, the three pictures swiped sideways, the next one showing at the edge and dots below
     (Leon, 28 Nov 2026: "I would make a scrollable, sideways and just indicate how it could be scrolled") */
  html.pal-zen.v-cards:not([data-skin]) :is(#theirs,#back) .rail.swipe>.scard{flex:0 0 84%;display:flex;flex-direction:column;overflow:hidden;border-radius:20px;box-shadow:inset 0 0 0 1px var(--line)}
  html.pal-zen.v-cards:not([data-skin]) :is(#theirs,#back) .scard .ph{flex:none;aspect-ratio:auto;height:clamp(140px,calc(100svh - var(--hdr,66px) - 430px),340px)}
  html.pal-zen.v-cards:not([data-skin]) :is(#theirs,#back) .scard .cap{flex:1}
  /* her side says a little more under each picture, so its pictures give up some height: with them as tall as the
     other part's, a 390x844 phone lost its cards altogether (measured 30 Nov 2026) */
  html.pal-zen.v-cards:not([data-skin]) #theirs .scard .ph{height:clamp(120px,calc(100svh - var(--hdr,66px) - 480px),340px)}
  html.pal-zen.v-cards:not([data-skin]) :is(#theirs,#back) .head{margin-bottom:14px}

  /* the pilot: one card (two points, then how to start; Leon, 30 Nov 2026) */
  html.pal-zen.v-cards:not([data-skin]) #join .start{margin-top:12px;padding:16px 18px}
  html.pal-zen.v-cards:not([data-skin]) #join .start h3{font-size:23px}
  html.pal-zen.v-cards:not([data-skin]) #join .cbody>.lede{margin-top:10px}

  /* a few questions */
  html.pal-zen.v-cards:not([data-skin]) .qa summary{min-height:50px;padding:8px 2px;font-size:18px}
  html.pal-zen.v-cards:not([data-skin]) .qa details p{font-size:16.5px;line-height:1.55;padding-bottom:14px}

  /* the last card and the foot */
  html.pal-zen.v-cards:not([data-skin]) .closing{margin:6px 10px;min-height:calc(100svh - var(--hdr,66px) - 32px);scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:6px}
  html.pal-zen.v-cards:not([data-skin]) .px-foot{margin:6px 10px 10px;scroll-snap-align:start;scroll-margin-top:6px}
  html.pal-zen.v-cards:not([data-skin]) .px-foot>:last-child{scroll-snap-align:end}
}

/* the mini page comes up: a card rises into place as it enters and settles back as it leaves */
@keyframes card-pass{
  entry 0%{opacity:.3;transform:translateY(28px) scale(.955)}
  entry 75%{opacity:1;transform:none}
  exit 25%{opacity:1;transform:none}
  exit 100%{opacity:.45;transform:scale(.955)}
}
@supports (animation-timeline:view()){
  @media (max-width:699px) and (prefers-reduced-motion:no-preference){
    html.pal-zen.v-cards:not([data-skin]) .cin{animation:card-pass linear both;animation-timeline:view()}
  }
}

/* ================= a PC: card by card too (Leon, 27 Nov 2026, late: "on PC, when you scroll, can we also do like a
   card at the time and roughly have a cards centered so it feels like kind of going through presentation instead of
   scrolling the site"). Each part is one card on the linen, centred under the top bar, with a strip of the next card
   showing so it is plain there is more; the pilot is two cards, as on a phone. The page stops on every card with the
   browser's own scrolling (wheel, keys, the scrollbar and links all work as usual). cards.js sets --z per card: a card
   that is taller than the window is drawn smaller, down to .8; if one still does not fit, the stops go (.soft) and the
   page scrolls freely, so nobody is held away from the foot of a card. The browser's stops alone send one notch of a
   mouse wheel back to the card it left, so cards.js turns one turn of the wheel into one card. Only for a mouse or trackpad on a window at least 600px tall. */
/* PC, 29 Nov 2026 (Leon: "we need to switch to smooth scrolling because she is reporting a problem on her PC ... we could
   even keep the card and let it free scroll"): the cards keep their look and the page scrolls freely through them, at
   their own height. No stops, no wheel stepping, no shrinking to fit a screen, no fades. */
@media (min-width:960px) and (min-height:600px) and (hover:hover) and (pointer:fine){
  html.pal-zen.v-cards:not([data-skin]){scroll-padding-top:var(--hdr,76px)}
  html.pal-zen.v-cards:not([data-skin]) body{background:var(--grain),var(--linen)}
  html.pal-zen.v-cards:not([data-skin]) .px-top{background:var(--grain),var(--linen)}

  html.pal-zen.v-cards:not([data-skin]) :is(#top>.sec:not(#join),#join>.card){
    box-sizing:border-box;width:min(1296px,calc(100% - 56px));margin:10px auto 26px;padding:44px 64px;
    background:var(--card);border-radius:34px;box-shadow:inset 0 0 0 1px var(--line),0 22px 36px -30px rgba(43,33,41,.5);
    scroll-margin-top:10px}
  /* the parts laid out in columns stay as they are and only centre their rows; the others become one column, so
     they can be centred the same way */
  html.pal-zen.v-cards:not([data-skin]) :is(#asking,#disconnect,#choice,#questions,#join>.card){display:grid;grid-template-columns:minmax(0,1fr)}
  html.pal-zen.v-cards:not([data-skin]) :is(#top>.sec,#join>.card) .head{margin-bottom:32px}
  /* the pilot: the part itself is only a holder; its card is the card */
  html.pal-zen.v-cards:not([data-skin]) #join{display:block;padding:0;margin:0;background:none}
  html.pal-zen.v-cards:not([data-skin]) #join>.card>.cin,html.pal-zen.v-cards:not([data-skin]) #join>.card>.cin>.cbody{display:block}
  /* the first screen and the last are whole screens too */
  html.pal-zen.v-cards:not([data-skin]) .hero{box-sizing:border-box;min-height:calc(100vh - var(--hdr,76px) - 26px);padding-top:10px}
  html.pal-zen.v-cards:not([data-skin]) .hero-art{min-height:0}
  html.pal-zen.v-cards:not([data-skin]) .closing{box-sizing:border-box;display:grid;align-content:center;justify-items:center;margin:10px 28px 26px;padding:72px 0;scroll-margin-top:10px}
  /* while cards.js measures a card's own height */
  html.pal-zen.v-cards:not([data-skin]).measure :is(#top>.sec:not(#join),#join>.card,.hero,.closing){--z:1!important;min-height:0!important}
}
@keyframes card-fade{
  entry 0%{opacity:.25}
  entry 70%{opacity:1}
  exit 30%{opacity:1}
  exit 100%{opacity:.4}
}
@supports (animation-timeline:view()){
}

/* ================= the inner pages: the same cards (Leon, 28 Nov 2026: "You need same card-like architecture and
   features for, safety and privacy and who we are and [the science pages], but caregiver guide can live it in its own
   thing"). cards.js cuts each part of an inner page into .dcard > .dcin > .dcbody in the reader's own window and puts
   .deck on <html> when it has; a part that needs several cards gets a .ctop line on each (its name, and which of its
   cards this is). These rules only apply then. From a tablet up to a PC without a mouse there are no cards (.flat)
   and the page is the zen page. The legal pages (Privacy, Terms) are not cut: they are documents to read through.
   Until the page is cut it stays out of sight for a moment, so nobody watches it jump; if the script never runs it
   shows by itself after 1.2s. */
@keyframes deck-wait{from{visibility:hidden}to{visibility:visible}}
html.pal-zen.v-cards[data-skin]:not(.deck):not(.flat) main{animation:deck-wait 0s linear 1.2s both}

html.pal-zen.deck[data-skin] main>section:not(.closing){padding:0;background:none}
html.pal-zen.deck[data-skin] .dcard .wrap{padding-left:0;padding-right:0}
/* the page's own boxes sit on a white card now: linen keeps them apart from it */
html.pal-zen.deck[data-skin] .dcard .card{background:var(--grain),var(--linen)}
html.pal-zen.deck[data-skin] .ctop{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:26px;margin:0 0 14px}
html.pal-zen.deck[data-skin] .ctop .kicker{margin:0}
html.pal-zen.deck[data-skin] .ctop+.dcbody .kicker{display:none}   /* the card's top line already says it */
/* a later card of a part begins with whatever came next on the page: the space above it belonged to what stood before */
html.pal-zen.deck[data-skin] .ctop+.dcbody>:first-child,
html.pal-zen.deck[data-skin] .ctop+.dcbody>:first-child>:first-child,
html.pal-zen.deck[data-skin] .ctop+.dcbody>:first-child>:first-child>:first-child,
html.pal-zen.deck[data-skin] .ctop+.dcbody>:first-child>:first-child>:first-child>:first-child{margin-top:0!important}
html.pal-zen.deck[data-skin] .kicker.in-top{display:none}
html.pal-zen.deck[data-skin] .pips{display:flex;align-items:center;gap:6px;flex:none}
html.pal-zen.deck[data-skin] .pips i{width:7px;height:7px;border-radius:50%;background:var(--dot)}
html.pal-zen.deck[data-skin] .pips i.on{width:22px;border-radius:4px;background:var(--honey)}
/* while cards.js cuts the page again its cards are gone for a moment: nothing may snap then, or the page jumps to its foot */
html.pal-zen.v-cards[data-skin].measure{scroll-snap-type:none!important}
/* while cards.js measures: nothing may be moved or scaled by an animation */
html.pal-zen.deck[data-skin].measure :is(.dcard,.dcin,.rv){animation:none!important;transition:none!important}
html.pal-zen.deck[data-skin].measure .rv{transform:none!important}

@media (max-width:699px){
  html.pal-zen.deck[data-skin]{scroll-snap-type:y mandatory;scroll-padding-top:var(--hdr,66px)}
  html.pal-zen.deck[data-skin].soft{scroll-snap-type:y proximity}
  html.pal-zen.deck[data-skin] body,html.pal-zen.deck[data-skin] .px-top{background:var(--grain),var(--linen)}
  html.pal-zen.deck[data-skin] .dcard{box-sizing:border-box;display:flex;min-height:calc(100svh - var(--hdr,66px) - 20px);padding:6px 10px;scroll-snap-align:start;scroll-snap-stop:always}
  html.pal-zen.deck[data-skin] .dcin{flex:1;min-width:0;display:flex;flex-direction:column;padding:16px 20px 20px;background:var(--card);border-radius:26px;box-shadow:inset 0 0 0 1px var(--line),0 18px 30px -26px rgba(43,33,41,.45);overflow:clip}
  html.pal-zen.deck[data-skin] .dcbody{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
  html.pal-zen.deck[data-skin] .closing{box-sizing:border-box;display:grid;align-content:center;margin:6px 10px;padding:24px 0;min-height:calc(100svh - var(--hdr,66px) - 32px);scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:6px}
  html.pal-zen.deck[data-skin] .px-foot{margin:6px 10px 10px;scroll-snap-align:start;scroll-margin-top:6px}
  html.pal-zen.deck[data-skin] .px-foot>:last-child{scroll-snap-align:end}
  html.pal-zen.deck[data-skin].measure .dcard{min-height:0!important}
  /* inside a card: a little tighter, so one screen holds more of a part */
  html.pal-zen.deck[data-skin] .dcard .photo:not(.person .photo){aspect-ratio:auto;height:min(26svh,200px)}
  html.pal-zen.deck[data-skin] .dcard .people{margin-top:20px;gap:26px}
  /* the wheel on a phone card: a lower picture, and the two arrows beside the step's name, not under it */
  html.pal-zen.deck[data-skin] .dcard .wpanel{margin-top:14px;padding-bottom:10px}
  html.pal-zen.deck[data-skin] .dcard .wpic{aspect-ratio:2/1}
  html.pal-zen.deck[data-skin] .dcard .wheel{height:206px}
  html.pal-zen.deck[data-skin] .dcard .wdesc{font-size:15px;min-height:4.4em}
  html.pal-zen.deck[data-skin] .dcard .wnav{position:absolute;left:6px;right:6px;top:calc(var(--pin,100px) + 51px);margin:0;justify-content:space-between;pointer-events:none}
  html.pal-zen.deck[data-skin] .dcard .wnav button{width:38px;height:38px;pointer-events:auto;background:var(--card)}
  html.pal-zen.deck[data-skin] .dcard .wlabel{font-size:15px;padding-right:14px}
  /* on a short screen the wheel is drawn a little lower, so its heading stays on its card */
  @media (max-height:700px){
    html.pal-zen.deck[data-skin] .dcard .wpic{aspect-ratio:2.4/1}
    html.pal-zen.deck[data-skin] .dcard .wheel{height:186px}
  }
  /* a row of items, each a picture with its heading and words ("Every day after"): on a phone the picture is small and
     round beside the words, as the steps on the front page, so the row is one card instead of one card each (Leon,
     28 Nov 2026: "You very poorly using vertical space ... do the same logic on rest of the pages we have") */
  html.pal-zen.deck[data-skin] .dcard .grid3:has(>div>.photo){gap:18px}
  html.pal-zen.deck[data-skin] .dcard .grid3>div:has(>.photo){display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:14px;align-content:start}
  html.pal-zen.deck[data-skin] .dcard .grid3>div>.photo:not(.person .photo){grid-row:1/span 2;width:72px;height:72px;aspect-ratio:1;border-radius:50%;margin:0}
  html.pal-zen.deck[data-skin] .dcard .grid3>div:has(>.photo)>h3{margin-top:2px}
  html.pal-zen.deck[data-skin] .dcard .appshot{width:min(56%,214px)}
  html.pal-zen.deck[data-skin] .dcard [style*="margin-top:48px"]{margin-top:20px!important}
  /* a picture that would have been a card on its own, or cost its part a card, stays off the phone (cards.js) */
  html.pal-zen.deck[data-skin] .ph-off{display:none!important}
}
/* the other way for a phone, to compare (Leon, 28 Nov 2026: "or we have to, see if we'll do a continuous scrolling on
   the phone"): with data-phone="scroll" on <html> every part is one card of its own height and the page scrolls
   through them without stops */
@media (max-width:699px){
  html.pal-zen.v-cards[data-phone="scroll"]{scroll-snap-type:none!important}
  html.pal-zen.v-cards[data-phone="scroll"] :is(.card,.dcard){min-height:0;scroll-snap-align:none}
}

@media (min-width:960px) and (min-height:600px) and (hover:hover) and (pointer:fine){
  html.pal-zen.deck[data-skin]{scroll-padding-top:var(--hdr,76px)}
  html.pal-zen.deck[data-skin] body,html.pal-zen.deck[data-skin] .px-top{background:var(--grain),var(--linen)}
  html.pal-zen.deck[data-skin] .dcard{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);
    width:min(1296px,calc(100% - 56px));margin:10px auto 26px;padding:44px 64px;
    background:var(--card);border-radius:34px;box-shadow:inset 0 0 0 1px var(--line),0 22px 36px -30px rgba(43,33,41,.5);
    scroll-margin-top:10px}
  html.pal-zen.deck[data-skin] .closing{box-sizing:border-box;display:grid;align-content:center;margin:10px 28px 26px;padding:72px 0;scroll-margin-top:10px}
  html.pal-zen.deck[data-skin].measure :is(.dcard,.closing){--z:1!important;min-height:0!important}
  /* the double arrow on Who we are stays inside its own card and points at the card above */
  html.pal-zen.deck[data-skin] .dcard .grid2.sys{margin-top:26px}
  html.pal-zen.deck[data-skin] .dcard .wpanel{margin-top:26px}
  /* a wide picture under a heading is drawn no taller than the card has room for */
  html.pal-zen.deck[data-skin] .dcard .wrap>.diagram:not(.wide){width:min(100%,calc((100vh - 370px) * 1.777));margin-left:auto;margin-right:auto}
  html.pal-zen.deck[data-skin] .dcard .people{margin-top:36px}
}
@supports (animation-timeline:view()){
  @media (max-width:699px) and (prefers-reduced-motion:no-preference){
    html.pal-zen.deck[data-skin] .dcin{animation:card-pass linear both;animation-timeline:view()}
  }
}

/* the top bar with larger text (cards.js tighten): a smaller logo and button first, then no search in the bar */
.px-bar.tight1{gap:2px;padding-left:10px}
.px-bar.tight1 .px-join{padding:0 10px}
.px-bar.tight1 .lg{font-size:10px}
.px-bar.tight2 .tools{display:none}
