/*
 * Shared components (theme 1.292.0), from Claude Design's account handoff
 * of 28 Oct 2026 (design/handoff-account-web, ph-components.css): the type
 * scale and spacing tokens, the pill, segmented control, select, menu and
 * sheet, dialog, the "..." button, switch, buttons and toast. Loaded on
 * every page. The account area uses them first; the rest of the site moves
 * over to them in the next release (rule 2.2).
 *
 * Differences from the design file, because a real page is not the
 * design's scrolling phone frame: menus, sheets, dialogs and the toast are
 * fixed to the window, and the breakpoints are media queries.
 */
:root{--t-xs:12px;--t-sm:13.5px;--t-md:15px;--t-lg:17px;--t-xl:20px;--t-2xl:26px;--t-3xl:32px;
--pill-h:36px;--pill-px:14px;--pill-fs:var(--t-sm);--pill-bg:rgba(27,42,74,.06);--pill-bgh:rgba(27,42,74,.11);
--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px;--s10:40px;--r-sm:10px;--r-md:14px;--r-lg:18px;--r-xl:24px;--hit:44px}
@media (min-width:900px){:root{--pill-h:40px;--pill-px:16px;--pill-fs:var(--t-md)}}
/* pill: same look as the search page type pills. Grey off, white raised on. Never wraps. */
.pills{display:flex;gap:var(--s2);overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--pad,16px));padding:2px var(--pad,16px) 6px}.pills::-webkit-scrollbar{display:none}
.pills.wrap{flex-wrap:wrap;overflow:visible;margin:0;padding:0}
.pill{flex:none;display:inline-flex;align-items:center;gap:6px;height:var(--pill-h);padding:0 var(--pill-px);border-radius:999px;border:0;background:var(--pill-bg);color:var(--ink);font:800 var(--pill-fs)/1 var(--font);white-space:nowrap;text-decoration:none;cursor:pointer;transition:background .15s,box-shadow .15s}
.pill:hover{background:var(--pill-bgh)}
.pill:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.pill[aria-pressed="true"],.pill.on{background:#fff;box-shadow:0 4px 14px rgba(22,24,31,.16),0 0 0 1px rgba(22,24,31,.04)}
.pill i{font-style:normal;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(27,42,74,.1);font:800 var(--t-xs)/20px var(--font);text-align:center}
.pill.on i,.pill[aria-pressed="true"] i{background:var(--pink);color:#fff}
.pill[disabled]{opacity:.4;cursor:default}
.pill svg{width:15px;height:15px}
/* segmented: two or three views, as the search List / Map / Videos */
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:4px;gap:4px}
.seg button{min-height:var(--hit);border-radius:var(--r-sm);border:0;background:none;font:800 var(--t-sm) var(--font);color:var(--ink-2);cursor:pointer;white-space:nowrap}
.seg button.on{background:var(--ink);color:#fff}
/* select trigger: replaces browser dropdowns */
.sel{display:flex;align-items:center;gap:var(--s2);width:100%;min-height:48px;padding:0 var(--s4);border:1.5px solid var(--line-2);border-radius:var(--r-md);background:#fff;font:600 var(--t-md) var(--font);color:var(--ink);cursor:pointer;text-align:left}
.sel span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sel small{color:var(--ink-3);font-weight:600;font-size:var(--t-sm);margin-right:2px}
.sel svg{width:18px;height:18px;color:var(--ink-3);transition:transform .2s;flex:none}
.sel[aria-expanded="true"]{border-color:var(--ink)}.sel[aria-expanded="true"] svg{transform:rotate(180deg)}
.sel.sm{width:auto;min-height:40px;border-radius:999px;font-size:var(--t-sm);font-weight:800;padding:0 var(--s3) 0 var(--s4)}
/* menu (desktop popover) and sheet (mobile) share the option rows */
.mn{position:fixed;z-index:120;min-width:220px;max-width:320px;background:#fff;border:1px solid var(--line);border-radius:var(--r-md);box-shadow:0 18px 40px rgba(22,24,31,.16);padding:6px;opacity:0;transform:translateY(-4px);transition:opacity .15s,transform .15s}
.mn.on{opacity:1;transform:none}
.opt{display:flex;align-items:center;gap:var(--s3);width:100%;min-height:var(--hit);padding:0 var(--s3);border:0;border-radius:var(--r-sm);background:none;font:700 var(--t-md) var(--font);color:var(--ink);text-align:left;cursor:pointer}
.opt:hover,.opt:focus-visible{background:var(--surface);outline:0}
.opt svg{width:18px;height:18px;color:var(--ink-2);flex:none}.opt span{flex:1;min-width:0}.opt small{display:block;font-weight:500;font-size:var(--t-sm);color:var(--ink-3)}
.opt .ck{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:transparent}.opt .ck svg{width:14px;height:14px;color:inherit}
.opt[aria-selected="true"]{font-weight:800}.opt[aria-selected="true"] .ck{background:var(--ink);color:#fff}
.opt.red,.opt.red svg{color:#c23a3a}
.opt+.sep,.sep{height:1px;background:var(--line);margin:4px 6px}
.shb{position:fixed;inset:0;z-index:130;background:rgba(10,12,18,.42);opacity:0;transition:opacity .25s}
.shp{position:fixed;left:0;right:0;bottom:0;z-index:131;background:#fff;border-radius:var(--r-xl) var(--r-xl) 0 0;padding:8px var(--s4) var(--s6);max-height:86%;overflow:auto;overscroll-behavior:contain;transform:translateY(100%);transition:transform .32s cubic-bezier(.32,.72,0,1)}
.shp:before{content:"";display:block;width:40px;height:5px;border-radius:9px;background:var(--line-2);margin:0 auto 10px}
.shp h3{font-size:var(--t-lg);margin:0 0 var(--s3);padding:0 var(--s3)}.shp p.sub{font-size:var(--t-sm);color:var(--ink-3);margin:-6px var(--s3) var(--s3)}
.shp.on{transform:none}.shb.on{opacity:1}
.shp.dlg{left:50%;right:auto;bottom:auto;top:50%;width:min(520px,calc(100% - 40px));border-radius:var(--r-xl);padding:var(--s6);transform:translate(-50%,-46%);opacity:0;transition:transform .25s,opacity .2s}.shp.dlg:before{display:none}.shp.dlg.on{transform:translate(-50%,-50%);opacity:1}
/* icon button for "…" */
.ib2{width:var(--hit);height:var(--hit);border-radius:50%;border:0;background:none;display:grid;place-items:center;color:var(--ink-2);cursor:pointer;flex:none}.ib2:hover{background:var(--surface)}.ib2 svg{width:20px;height:20px}
/* switch */
.swi{position:relative;width:50px;height:30px;border-radius:999px;background:var(--line-2);border:0;flex:none;cursor:pointer;transition:background .2s}.swi:after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}.swi[aria-checked="true"]{background:var(--ink)}.swi[aria-checked="true"]:after{transform:translateX(20px)}
/* buttons on the scale */
.btn2{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 var(--s5);border-radius:999px;border:1.5px solid var(--line-2);background:#fff;font:800 var(--t-md) var(--font);color:var(--ink);cursor:pointer;white-space:nowrap;text-decoration:none}
.btn2.pk{background:var(--pink);border-color:var(--pink);color:#fff}.btn2.pk:hover{background:var(--pink-press);color:#fff}
.btn2.dk{background:var(--ink);border-color:var(--ink);color:#fff}.btn2.red{background:#c23a3a;border-color:#c23a3a;color:#fff}
.btn2.sm{height:40px;padding:0 var(--s4);font-size:var(--t-sm)}.btn2[disabled]{opacity:.4;cursor:default}.btn2 svg{width:16px;height:16px}
.lnk{background:none;border:0;padding:0;font:800 var(--t-sm) var(--font);color:var(--pink-press);cursor:pointer;text-decoration:none}.lnk:hover{color:var(--ink)}
.toast2{position:fixed;left:50%;bottom:24px;z-index:140;transform:translate(-50%,16px);background:var(--ink);color:#fff;border-radius:999px;padding:12px 18px;font:700 var(--t-sm) var(--font);opacity:0;transition:.25s;pointer-events:none;white-space:nowrap}.toast2.on{opacity:1;transform:translate(-50%,0)}

html.phc-lock{overflow:hidden}
/* Sized from the outside edge, whatever the page around them sets. */
.shp *,.mn *{box-sizing:border-box}
@media (prefers-reduced-motion:reduce){.mn,.shb,.shp,.toast2,.swi,.swi:after{transition:none}}
/* Accordion (theme 1.295.0, Components page of the web handoff of 28 Oct):
   the listing menu's sections as a component. Shaded header, plus when
   closed, minus when open, pink header when open; one open at a time is the
   page's job (name="" on the details, or a script). */
details.acc2{border-bottom:1px solid var(--line);background:#fff}
details.acc2>summary{list-style:none;display:flex;align-items:center;gap:var(--s3);min-height:60px;padding:var(--s2) var(--pad,16px);background:var(--surface);cursor:pointer;transition:background .2s}
details.acc2>summary::-webkit-details-marker{display:none}
details.acc2>summary:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.acc2 .at{flex:1;min-width:0;display:grid;gap:2px}
.acc2 .at b{font:800 var(--t-sm) var(--font);letter-spacing:.05em;text-transform:uppercase;color:var(--ink);font-weight:700;font-size:12.5px}
.acc2 .at small{font-size:var(--t-xs);color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acc2 .pm{position:relative;width:28px;height:28px;border-radius:50%;background:#fff;flex:none}
.acc2 .pm:before{content:"";position:absolute;left:8px;right:8px;top:13px;height:2px;border-radius:2px;background:var(--ink-2)}
.acc2 .pm:after{content:"";position:absolute;left:8px;right:8px;top:13px;height:2px;border-radius:2px;background:var(--ink-2);transform:rotate(90deg);transition:transform .22s}
details.acc2[open]:not(.closing)>summary{background:var(--pink-soft,#fdeef4);box-shadow:inset 0 -1px 0 #f6d3df}
details.acc2[open]:not(.closing) .at b{color:var(--pink-press)}
details.acc2[open]:not(.closing) .pm:after{transform:rotate(0);background:var(--pink-press)}
details.acc2[open]:not(.closing) .pm:before{background:var(--pink-press)}
.acc2 .ab{padding:var(--s4) var(--pad,16px) var(--s5);overflow:hidden}
