/* Friends week (functions/_friendweek.js): 7 small cards in the empty space left of the home page's app cards and 7 right,
   below the first screen. The "New on iPip" section (.fwhost) sits in the 1180px wrap with 24px padding, so a rail at its
   outer edge has 140px at 1460px wide and more after. Under 1460px and on phones: one strip under the cards, wrapping, never
   scrolling sideways. Cleanup kit tokens, so night and CRT follow. Logical sides, so RTL pages flip. */
.fwhost{position:relative}
/* Each rail is as tall as its section (top:0; bottom:0), and its stack is sticky inside it: it follows the page under the
   header bar (.cltop, sticky, about 58px) and stops at the end of the app grid, so it never covers what comes after or the
   footer. --fw-top is the gap from the top of the window. Sticky is the browser's own, with nothing animated, so reduced
   motion has nothing to turn off; the hover lift is off then too. */
.fwrail{display:none;position:absolute;top:0;bottom:0;width:128px;z-index:1;--fw-top:72px}
.fwl{inset-inline-end:calc(100% + 14px)}
.fwr{inset-inline-start:calc(100% + 14px)}
.fwstack{display:flex;flex-direction:column;gap:10px;position:sticky;top:var(--fw-top);max-height:calc(100vh - var(--fw-top) - 16px);max-height:calc(100svh - var(--fw-top) - 16px);overflow:hidden auto;scrollbar-width:none;padding:0 4px 4px 0}
.fwstack::-webkit-scrollbar{display:none}
@media (prefers-reduced-motion:reduce){.fwcard,.fwcard:hover{translate:none;transition:none}}
.fwcard{display:block;position:relative;background:var(--paper);border:1.5px solid var(--ink);border-radius:8px;box-shadow:2px 2px 0 var(--ink);color:var(--ink);text-decoration:none;padding:8px;min-width:0}
.fwcard:hover{translate:0 -1px;box-shadow:3px 3px 0 var(--ink)}
.fwcard:focus-visible{outline:2px solid var(--b);outline-offset:3px}
.fwcard small.fwtag{display:inline-block;margin-top:3px;padding:1px 4px;border:1px solid #b98b10;border-radius:3px;background:#f3c63f;color:#1d1b17;font:normal 7px/1.3 var(--pixel);letter-spacing:.12em;text-transform:uppercase}
.fwgold{background:linear-gradient(160deg,#fff6d6,#f7dc84);border-color:#b98b10;color:#1d1b17}
.fwgold b{color:#1d1b17}
.fwtick{display:inline-block;margin-inline-start:4px;font-style:normal;font-size:11px;color:var(--b,#3e8fd6)}
.fwc{display:flex;gap:7px;align-items:center;min-width:0}
.fwc>span{min-width:0}
.fwcard .icon,.fwplus{flex:none;width:30px!important;height:30px!important;border-radius:7px}
.fwplus{display:grid;place-items:center;border:1.5px dashed var(--mute);font:600 15px/1 var(--sans);font-style:normal;color:var(--ink)}
.fwcard b{display:block;font:500 13.5px/1.15 var(--serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fwcard small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--mute);font:10.5px/1.25 var(--sans);margin-top:1px}
.fwcard.fwopen{border-style:dashed;border-color:var(--mute);box-shadow:none}
.fwcard.fwopen:hover{border-style:solid;border-color:var(--ink)}
/* the strip under the cards */
:root[data-theme=dark] .fwgold{background:linear-gradient(160deg,#4a3d16,#6b5418);border-color:#e7b52e;color:#fff3cf}
:root[data-theme=dark] .fwgold b{color:#fff3cf}
.fwstrip{margin-top:var(--cl-s5,20px)}
.fwhead{margin:0 0 4px;font:500 15px/1.2 var(--serif);color:var(--ink)}
.fwnote{margin:0 0 10px;font-size:13px;color:var(--mute)}
.fwnote a{color:var(--ink)}
/* MacPip's strip: auto-fill 170px columns, 2 columns at 640px and under */
.fwrow{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
@media (max-width:640px){.fwrow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1460px){.fwrail{display:block}.fwstrip{display:none}}
.fwcard.fwopen b{white-space:normal}
/* The onboarding box (v3.1): one small tidy box on the submit card, its done screen and Your apps */
.fwbox{display:grid;gap:6px;justify-items:start;margin:14px 0 0;padding:12px 14px;border:1.5px dashed #b98b10;border-radius:10px;background:linear-gradient(160deg,#fffaf0,#fbefc7);color:#1d1b17;max-width:560px}
.fwbox p{margin:0;font-size:13px;color:#4a3d16}
.fwboxt{font:500 16px/1.25 var(--serif,Georgia,serif)}
.fwbox .btn[disabled]{opacity:.55;cursor:not-allowed}
:root[data-theme=dark] .fwbox{background:linear-gradient(160deg,#2a2412,#3d3214);color:#fff3cf}
:root[data-theme=dark] .fwbox p{color:#e9dcb0}
