/* The archive by month (archive.html, 6 Nov 2026). Front-page tokens only, so dark mode follows. */
.ar-back{margin:14px 0 4px;font-size:13px;font-weight:600}
.ar-back a{color:var(--muted);text-decoration:none}
.ar-back a:hover{text-decoration:underline}
.ar-cal{margin-top:6px;padding:14px 12px 10px;border:1px solid var(--hair);border-radius:14px;background:var(--paper)}
.ar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.ar-month{font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:-.01em;margin:0}
.ar-nav{width:44px;height:44px;border-radius:999px;border:1px solid var(--hair);background:var(--canvas);color:var(--ink);
  font:600 22px/1 var(--body);cursor:pointer}
.ar-nav:disabled{opacity:.35;cursor:default}
.ar-dow,.ar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.ar-dow span{text-align:center;font-size:11px;font-weight:600;color:var(--faint);padding:2px 0}
.ar-c{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;border-radius:9px;
  border:1px solid transparent;background:transparent;color:var(--ink);font:inherit;padding:2px 0;cursor:pointer}
.ar-c b{font-size:14px;font-weight:600;line-height:1.2}
.ar-c small{font-size:11px;line-height:1.2;color:var(--faint);min-height:13px;font-variant-numeric:tabular-nums}
button.ar-c{border-color:var(--hair)}
.ar-c.part{border-color:var(--faint)}
.ar-c.part{background:var(--canvas);border-style:dashed}
.ar-c.full{background:var(--accent-soft);border-color:transparent}
.ar-c.full small{color:var(--accent);font-weight:600}
.ar-c.sel{outline:2px solid var(--accent);outline-offset:1px}
.ar-none{color:var(--faint);cursor:default}
.ar-none b{font-weight:500}
.ar-key{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin:10px 2px 0;font-size:12px;color:var(--muted)}
.ar-sw{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid var(--hair)}
.ar-sw.full{background:var(--accent-soft);border-color:transparent}
.ar-sw.part{background:var(--canvas);border-style:dashed;border-color:var(--faint)}
.ar-status{margin:12px 2px;font-size:14px;color:var(--muted)}
.ar-status:empty{display:none}
.ar-retry{margin-left:6px;font:600 13px var(--body);padding:6px 12px;border-radius:999px;border:1px solid var(--accent);
  color:var(--accent);background:transparent;cursor:pointer}
.ar-day{margin-top:14px;padding:12px 14px 6px;border:1px solid var(--hair);border-radius:14px;background:var(--paper)}
.ar-dayhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px}
.ar-dayhead h2{font-family:var(--display);font-size:18px;font-weight:700;margin:0}
.ar-dayhead span{font-size:12.5px;color:var(--muted)}
.ar-list{list-style:none;margin:0;padding:0}
.ar-list li:first-child .ar-row{border-top:0}
.ar-tk{vertical-align:-1px}
.ar-c small .ar-tk{color:var(--accent)}
.ar-row:hover .ar-name{text-decoration:underline}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* One row of controls (7 Nov 2026, as the app's Archive, option F): a picker for the puzzle type
   (its tile, or the noodle mark for All), "Hide done" with the finished cards' tick (list only),
   and a round calendar button. The list is the default view; the calendar is one tap away. */
.ar-bar{display:flex;align-items:center;gap:8px;margin:12px 0 4px}
.ar-pick,.ar-hide{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 9px;border-radius:999px;
  border:1px solid var(--hair);background:var(--paper);color:var(--ink);font:600 14px var(--body);cursor:pointer}
.ar-pick{min-width:0}
.ar-pick-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ar-chev{width:11px;height:8px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ar-ico{display:inline-flex;flex:none;width:26px;height:26px;border-radius:5px;overflow:hidden}
.ar-ico img{width:100%;height:100%}
.ar-mark{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--mono-bg);color:var(--mono-ink)}
.ar-mark svg{width:58%;height:auto}
.ar-hide{color:var(--muted);padding:0 14px 0 10px}
.ar-hide[aria-checked="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.ar-hide-tk{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--accent);color:#fff}
.ar-hide-tk svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ar-hide[hidden]{display:none}
.ar-view{margin-left:auto;flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--hair);background:var(--paper);
  color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.ar-view svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ar-view[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.ar-pick:focus-visible,.ar-hide:focus-visible,.ar-view:focus-visible,.ar-tile:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* the list: month headings, then one row per puzzle, newest first */
.ar-listview[hidden],.ar-cal[hidden]{display:none}
.ar-sec{margin:18px 2px 2px;font:600 12.5px var(--body);letter-spacing:.04em;text-transform:uppercase;color:var(--faint)}
.ar-empty{margin:28px 0;text-align:center;font-size:15px;color:var(--muted)}

/* the type sheet */
.ar-scrim{position:fixed;inset:0;z-index:40;background:rgba(10,12,18,.42);opacity:0;transition:opacity .18s}
.ar-scrim.open{opacity:1}
.ar-sheet{position:fixed;left:0;right:0;bottom:0;z-index:41;max-height:85vh;overflow:auto;background:var(--paper);color:var(--ink);
  border-radius:18px 18px 0 0;padding:8px 16px calc(20px + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 30px rgba(0,0,0,.18);
  transform:translateY(100%);transition:transform .22s ease-out}
.ar-sheet.open{transform:none}
.ar-sheet[hidden],.ar-scrim[hidden]{display:none}
.ar-grab{width:36px;height:4px;border-radius:2px;background:var(--hair);margin:2px auto 10px}
.ar-sheet-title{font-family:var(--display);font-size:18px;font-weight:700;margin:0 0 12px;text-align:center}
.ar-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px}
.ar-tile{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:44px;padding:10px 4px;border-radius:12px;
  border:1px solid transparent;background:transparent;color:var(--ink);font:600 13px var(--body);cursor:pointer}
.ar-tile .ar-ico{width:48px;height:48px;border-radius:10px}
.ar-tile[aria-checked="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
body.ar-locked{overflow:hidden}
@media (min-width:700px){
  .ar-sheet{left:50%;right:auto;bottom:auto;top:50%;width:440px;border-radius:18px;padding:18px 18px 20px;
    transform:translate(-50%,-46%);opacity:0;transition:transform .2s ease-out,opacity .2s}
  .ar-sheet.open{transform:translate(-50%,-50%);opacity:1}
  .ar-grab{display:none}
}
@media (prefers-reduced-motion:reduce){.ar-sheet,.ar-scrim{transition:none}}

/* Puzzle cards (7 Nov 2026, as Puzzles and the app): tile, then headline, two-line description and
   the callout row on the tile's foot; when on the left, the result or How to play on the right. */
.ar-item{position:relative}
.ar-all .ar-item{content-visibility:auto;contain-intrinsic-size:auto 137px}
.ar-row{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:start;padding:20px 0;border-top:1px solid var(--hair);
  color:var(--ink);text-decoration:none}
.ar-tile{position:relative;display:block;width:96px;height:96px}
.ar-tile img{display:block;width:96px;height:96px}
.ar-tick{position:absolute;top:-8px;right:-8px;width:26px;height:26px;box-sizing:border-box;border-radius:50%;
  background:var(--accent);color:var(--on-accent);border:2.5px solid var(--canvas);display:grid;place-content:center}
.ar-tick .ar-tk{width:12px;height:12px}
/* gold star (21 Nov 2026, Alec's option A): the tick's disc, a touch larger, gold face, dark star */
.ar-gold{position:absolute;top:-9px;right:-9px;width:28px;height:28px;box-sizing:border-box;border-radius:50%;
  border:2.5px solid var(--canvas);display:grid;place-content:center}
.ar-gold svg{display:block}
.ar-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ar-txt{display:flex;flex-direction:column;min-height:96px;min-width:0}
.ar-name{font-family:var(--display);font-weight:700;font-size:19px;line-height:1.22;letter-spacing:-.01em}
.ar-sf{font-size:14px;color:var(--muted);margin-top:4px;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ar-meta{margin-top:auto;padding-top:6px;min-height:24px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}
.ar-when{color:var(--faint);font-size:inherit}
.ar-res{margin-left:auto;color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.ar-how{position:absolute;right:0;bottom:20px;min-height:24px;display:inline-flex;align-items:center;padding:2px 0 2px 8px;
  font-size:12px;font-weight:600;color:var(--muted);text-decoration:none}
.ar-how::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
.ar-how:hover{text-decoration:underline;text-underline-offset:3px}
@media(min-width:560px){.ar-row{grid-template-columns:120px 1fr;gap:18px}.ar-tile,.ar-tile img{width:120px;height:120px}.ar-txt{min-height:120px}.ar-name{font-size:21px}}
/* The Lab in the Archive (20 Nov 2026, Alec, as the app): a small pink "Lab trial" label on a Lab puzzle's tile foot,
   as the tick sits on its corner; a part-played Lab puzzle says Continue */
.ar-lab{position:absolute;left:6px;bottom:-8px;padding:1px 7px;border-radius:8px;border:2px solid var(--canvas);
  background:var(--lab-soft);color:var(--lab);font:700 10px/1.4 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.ar-res.part{color:var(--muted)}
.ar-view[hidden]{display:none}
