/* Replies (#guests?ap=tracker), js/occasi-ap-replies.js. Layout B's tokens (css/occasi-app-couple.css: --b-*), so light, dark
   and the couple's colours follow. Serif titles, hairlines, one filled button for what is still to do, a quiet text
   button for the rest. Charts read without colour: Coming solid, Can't come hatched, Waiting outlined.
   Motion (Premium, calm): a folding group's rows rise 4 px into place in 220 ms, the chevron turns in 180 ms; nothing
   moves under "reduce motion". Nothing floats over the page. */
html.ap-couple .rp{--rp-ease:cubic-bezier(.23,1,.32,1);display:grid;gap:24px;margin-top:10px;min-width:0}
html.ap-couple .rp-sec{min-width:0;padding:16px;border-radius:16px;background:var(--b-paper);box-shadow:0 0 0 .5px var(--b-line)}
html.ap-couple .rp-h{margin:0 0 2px;font:500 23px/1.15 var(--b-serif);color:var(--b-ink);letter-spacing:0}
html.ap-couple .rp-cap{margin:10px 0 0;font:400 13px/1.45 var(--b-sans);color:var(--b-muted)}
html.ap-couple .rp-cap.rp-c0{margin:0 0 12px}
html.ap-couple .rp-cap b{color:var(--b-ink);font-weight:600}
html.ap-couple .rp-cap a{color:var(--b-acc);text-underline-offset:3px}
html.ap-couple .rp b,html.ap-couple .rp-sv{font-variant-numeric:lining-nums tabular-nums}

/* 1. the headline */
/* Batch D polish P6: one big figure ("64 of 114 replied") in the serif at 32 px, alone on its line, 24 px clear below; the
   reply-by date its own line under it. Sections 24 px apart (.rp gap) */
html.ap-couple .rp-lede{margin:0 0 24px;font:500 32px/1.15 var(--b-serif);color:var(--b-ink)}
html.ap-couple .rp-lede>b{display:block;font-weight:500}
html.ap-couple .rp-byl{margin:0 0 16px;font:400 17px/1.35 var(--b-sans);color:var(--b-ink)}
html.ap-couple .rp-by{display:inline;padding:0;border:0;background:none;font:inherit;color:var(--b-acc);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.ap-couple .rp-by span{color:var(--b-muted);text-decoration:none;display:inline-block}
html.ap-couple .rp-unit{margin:12px 0 4px;font:400 14px/1.4 var(--b-sans);color:var(--b-muted)}
html.ap-couple .rp-stack{display:block;width:100%;height:14px;overflow:visible}
html.ap-couple .rp-ev .rp-stack{height:10px;margin:10px 0 8px}
html.ap-couple .rp-s-yes{fill:var(--b-tb);stroke:var(--b-tb);stroke-width:1}
html.ap-couple .rp-s-no{stroke:var(--b-ink2);stroke-width:1}
html.ap-couple .rp-hbg{fill:var(--b-paper)}
html.ap-couple .rp-hln{stroke:var(--b-ink2);stroke-width:2.2}
html.ap-couple .rp-s-wait{fill:var(--b-paper);stroke:var(--b-chev);stroke-width:1}
html.ap-couple .rp-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
html.ap-couple .rp-num{transition:background-color .15s ease,transform .14s var(--rp-ease);display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:7px;min-height:56px;padding:8px 6px;border:0;border-radius:0;background:none;text-align:left;color:var(--b-ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.ap-couple .rp-num b{font:500 28px/1 var(--b-serif)}
html.ap-couple .rp-num span{grid-column:1/-1;margin-top:4px;font:600 12.5px/1.2 var(--b-sans);color:var(--b-ink2);text-decoration:underline;text-decoration-color:var(--b-line);text-underline-offset:3px}
/* owner 15:20: no chips; the chosen count is marked like a tab, an ink line under it, never a filled block */
html.ap-couple .rp-num[aria-pressed="true"]{box-shadow:inset 0 -2px 0 var(--b-ink)}
html.ap-couple .rp-num[aria-pressed="true"] span{color:var(--b-ink);text-decoration:none}
html.ap-couple .rp-key{display:block;width:12px;height:12px;border-radius:3px}
html.ap-couple .rp-k-yes{background:var(--b-tb)}
html.ap-couple .rp-k-no{background:repeating-linear-gradient(45deg,var(--b-ink2) 0 1.6px,var(--b-paper) 1.6px 4px);box-shadow:inset 0 0 0 1px var(--b-ink2)}
html.ap-couple .rp-k-wait{background:var(--b-paper);box-shadow:inset 0 0 0 1px var(--b-chev)}
html.ap-couple .rp-chg{margin-top:14px;box-shadow:0 0 0 .5px var(--b-line)}

/* 2. how far they got */
html.ap-couple .rp-step{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:30px}
html.ap-couple .rp-sl{font:500 15px/1.2 var(--b-sans);color:var(--b-ink)}
html.ap-couple .rp-sv{min-width:2.2em;text-align:right;font:500 20px/1 var(--b-serif);color:var(--b-ink)}
html.ap-couple .rp-fbar{display:block;width:100%;height:10px}
html.ap-couple .rp-f-track{fill:var(--b-paper);stroke:var(--b-line);stroke-width:1}
html.ap-couple .rp-f-fill{fill:var(--b-tb)}
html.ap-couple .rp-drop{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;width:100%;min-height:44px;margin:2px 0 6px;padding:8px 12px 8px 86px;border:0;border-radius:0;background:none;text-align:left;font:inherit;color:var(--b-ink2);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,transform .14s var(--rp-ease)}
html.ap-couple .rp-drop span{font:400 14px/1.3 var(--b-sans)}
html.ap-couple .rp-drop b{font-weight:600;color:var(--b-ink)}
html.ap-couple .rp-drop em{font:600 14px/1.3 var(--b-sans);font-style:normal;color:var(--b-acc);text-decoration:underline;text-underline-offset:3px}
html.ap-couple .rp-drop[aria-pressed="true"]{box-shadow:inset 0 -2px 0 var(--b-ink)}
@media (max-width:374px){html.ap-couple .rp-drop{padding-left:12px}html.ap-couple .rp-step{grid-template-columns:68px minmax(0,1fr) auto}}

/* 3. replies over time */
html.ap-couple .rp-dwrap{position:relative}
html.ap-couple .rp-days{display:block;width:100%;height:72px}
html.ap-couple .rp-d-bar{fill:var(--b-tb)}
html.ap-couple .rp-d-zero{fill:var(--b-line)}
html.ap-couple .rp-d-future{fill:none}
html.ap-couple .rp-d-base{stroke:var(--b-line);stroke-width:1}
html.ap-couple .rp-d-by{stroke:var(--b-ink);stroke-width:1.5;stroke-dasharray:4 3}
html.ap-couple .rp-d-now{stroke:var(--b-chev);stroke-width:1}
html.ap-couple .rp-axis{display:flex;justify-content:space-between;gap:8px;margin-top:6px;font:500 12px/1.2 var(--b-sans);color:var(--b-muted)}
html.ap-couple .rp-dash{display:inline-block;width:14px;height:0;margin:0 7px 3px 0;border-top:1.5px dashed var(--b-ink);vertical-align:middle}

/* 4. by event */
html.ap-couple .rp-evl{margin:0;padding:0;list-style:none}
html.ap-couple .rp-evl li+li{margin-top:4px;padding-top:4px;border-top:.5px solid var(--b-line)}
html.ap-couple .rp-ev{display:block;padding:10px 0 12px;color:var(--b-ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
html.ap-couple .rp-evh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
html.ap-couple .rp-evh b{font:500 20px/1.2 var(--b-serif)}
html.ap-couple .rp-evh span{font:500 13px/1.2 var(--b-sans);color:var(--b-muted)}
html.ap-couple .rp-evc{flex:none;align-self:center;width:9px;height:9px;border-radius:50%;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.2)}
html.ap-couple .rp-evn{display:flex;flex-wrap:wrap;gap:2px 14px;font:400 14px/1.35 var(--b-sans);color:var(--b-ink2)}
html.ap-couple .rp-evn b{font-weight:600;color:var(--b-ink)}
html.ap-couple .rp-el{margin:6px 0 0;font:400 14px/1.4 var(--b-sans);color:var(--b-ink2);overflow-wrap:anywhere}
html.ap-couple .rp-el b{display:inline-block;margin-right:6px;font-weight:600;color:var(--b-ink)}
html.ap-couple .rp-alg b{color:var(--b-red)}

/* 5. the lists: folding groups of phone-list rows */
html.ap-couple .rp-lists .rp-h{margin-bottom:8px}
html.ap-couple .rp-lists{scroll-margin-top:96px}
html.ap-couple .rp-fbarline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin:0 0 6px;font:500 14px/1.3 var(--b-sans);color:var(--b-muted)}
html.ap-couple .rp-grp{border-top:.5px solid var(--b-line)}
html.ap-couple .rp-grp:first-of-type{border-top:0}
html.ap-couple .rp-grp>summary{display:flex;align-items:center;gap:10px;min-height:60px;padding:8px 0;list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.ap-couple .rp-grp>summary::-webkit-details-marker{display:none}
html.ap-couple .rp-gt{flex:1 1 auto;min-width:0}
html.ap-couple .rp-gt b{display:block;font:600 17px/1.25 var(--b-sans);color:var(--b-ink)}
html.ap-couple .rp-gt span{display:block;margin-top:2px;font:400 13px/1.35 var(--b-sans);color:var(--b-muted)}
html.ap-couple .rp-gc{flex:none;min-width:2em;text-align:right;font:500 22px/1 var(--b-serif);color:var(--b-ink);font-variant-numeric:lining-nums tabular-nums}
html.ap-couple .rp-chev{flex:none;width:18px;height:18px;fill:none;stroke:var(--b-chev);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s cubic-bezier(.2,0,0,1)}
html.ap-couple .rp-grp[open]>summary .rp-chev{transform:rotate(180deg)}
html.ap-couple .rp-gb{padding:0 0 10px}
html.ap-couple .rp-gnote{margin:0 0 8px;font:400 14px/1.4 var(--b-sans);color:var(--b-muted)}
html.ap-couple .rp-rows{margin:0;padding:0;list-style:none}
html.ap-couple .rp-ball{flex:none;min-height:38px;padding:0 16px;border:0;border-radius:19px;background:var(--b-tb);color:var(--b-tf);font:600 14.5px/38px var(--b-sans);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .14s var(--rp-ease)}
html.ap-couple .rp-ball:active{transform:scale(.97)}
html.ap-couple .rp-ball{display:block;width:100%;margin:0 0 6px;min-height:44px;line-height:44px;border-radius:22px}
html.ap-couple .rp-q:not(.ap-pq){flex:none;min-height:38px;padding:0 6px;border:0;background:none;font:600 14.5px/38px var(--b-sans);color:var(--b-acc);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.ap-couple .rp-more{display:block;margin:4px auto 0}
html.ap-couple .rp-b:focus-visible,html.ap-couple .rp-q:focus-visible,html.ap-couple .rp-num:focus-visible,html.ap-couple .rp-drop:focus-visible,html.ap-couple .rp-by:focus-visible,html.ap-couple .rp-who:focus-visible,html.ap-couple .rp-ev:focus-visible,html.ap-couple .rp-grp>summary:focus-visible{outline:2px solid var(--b-acc);outline-offset:2px;border-radius:10px}
@media (max-width:374px){html.ap-couple .rp-sec{padding:14px 12px}html.ap-couple .rp-num b{font-size:25px}html.ap-couple .rp-num span{font-size:12px}}

@media (prefers-reduced-motion:no-preference){
  html.ap-couple .rp-grp.rp-anim[open]>.rp-gb{animation:rp-rise .22s var(--rp-ease) both}
  html.ap-couple .rp-num:active,html.ap-couple .rp-drop:active{transform:scale(.98)}
}
@keyframes rp-rise{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){html.ap-couple .rp *{transition:none!important;transform:none!important}html.ap-couple .rp-grp.rp-anim[open]>.rp-gb{animation:rp-fade .16s ease both}}
@keyframes rp-fade{from{opacity:0}to{opacity:1}}

/* wider screens (a tablet, or the app on an iPad): the same sections side by side, the lists across the width */
@media (min-width:760px){
  html.ap-couple .rp{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  html.ap-couple .rp-lists{grid-column:1/-1}
}
html.ap-couple .rp-autol{margin:4px 0 0}
html.ap-couple .rp-autol .rp-q{display:inline-block;min-height:44px;line-height:44px;padding:0}
/* Batch D (fresh users Run 1): who a reminder can reach, said under Remind before anyone presses; quiet links are 44 px to
   the finger; a narrower list's "Remind these n" is quiet text (one filled Remind on the page) */
html.ap-couple .rp-reach{margin:0 0 6px;font:400 14px/1.4 var(--b-sans);color:var(--b-ink,#1d2a44)}
html.ap-couple .rp-q:not(.ap-pq){min-height:44px;line-height:44px}
html.ap-couple .rp-unit .rp-q{display:inline-block;min-height:44px;line-height:44px;padding:0;font-size:14px}
html.ap-couple .rp-gact{margin:0 0 4px}
html.ap-couple .rp-ball{min-height:44px}
