/* Find My Jag. Look and feel follows Apple's Human Interface Guidelines (see docs/design.md):
   system fonts, 44px touch targets, text 11px or larger, strong contrast, roomy line height,
   FMHS colors (navy, royal blue, silver, white). No inline styles, so the security policy can block them. */
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2")}
:root{
  color-scheme:light dark;
  --navy:#0b2a5b;--royal:#1446a0;--silver:#c3cbd4;--gold:#f2a900;
  --cloud:#f5f6f8;--card:#fff;--fill:#eceff3;--ink:#16202e;--muted:#56637a;--line:#dde2e9;
  --bad:#b42318;--ok:#17803d;--link:#1446a0;--focus:#0a66ff;
  --bar:rgba(11,42,91,.94);--shadow:0 1px 2px rgba(16,32,58,.06),0 4px 16px rgba(16,32,58,.06);
  --r:16px;--r-sm:12px;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI Variable Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI Variable Display","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
@media (prefers-color-scheme:dark){:root{
  --cloud:#060d1a;--card:#0f1b2e;--fill:#18263c;--ink:#eef2f7;--muted:#a9b6c8;--line:#22324a;
  --link:#8fb3ff;--bad:#ff8a80;--ok:#6fd68f;--focus:#8fb3ff;--bar:rgba(6,13,26,.82);
  --shadow:0 0 0 1px rgba(255,255,255,.04)}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
body{margin:0;font-family:var(--font);font-size:17px;line-height:1.5;background:var(--cloud);color:var(--ink);
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:var(--link);text-underline-offset:2px}
img{max-width:100%}
h1,h2,h3,legend{font-family:var(--display);letter-spacing:-.01em;line-height:1.2}
h1{font-size:30px;font-weight:700;margin:6px 0 16px}
h2{font-size:21px;font-weight:600;margin:0 0 10px}
h3{font-size:18px;font-weight:600;margin:0 0 8px}

/* top bar: translucent navy, like iOS bars */
.top{background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  color:#fff;padding:8px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;position:sticky;top:0;z-index:5}
.top .brand{display:flex;align-items:center;gap:10px;min-height:44px;color:#fff;text-decoration:none;
  font-family:"Space Grotesk",var(--display);font-weight:700;font-size:19px;letter-spacing:-.01em}
.top nav{display:flex;gap:2px;flex-wrap:wrap;align-items:center;margin-left:auto}
.top nav a{display:inline-flex;align-items:center;min-height:44px;color:#fff;text-decoration:none;padding:0 12px;border-radius:10px;font-size:15px;font-weight:500}
.top nav a[aria-current=page],.top nav a:hover{background:rgba(255,255,255,.16)}
.top form{margin:0}
.top button.link{color:var(--silver);font-size:15px;padding:0 12px}
@media (display-mode:standalone){.top{padding-top:calc(8px + env(safe-area-inset-top))}}

main{max-width:1200px;margin:0 auto;padding:20px 16px 64px}
main.narrow{max-width:560px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;margin-bottom:16px;box-shadow:var(--shadow)}
@media (prefers-color-scheme:dark){.card{border-color:transparent}}

/* forms */
label{display:block;font-weight:600;font-size:15px;margin:14px 0 6px}
input,select,button,textarea{font:inherit;color:inherit}
input:not([type]),input[type=text],input[type=email],input[type=password],input[type=search],input[type=number],input[type=url],input[type=tel],input[type=date],select,textarea{
  width:100%;min-height:44px;border-radius:var(--r-sm);border:1px solid var(--line);padding:0 14px;background:var(--fill);font-size:17px}
textarea{padding:10px 14px;line-height:1.5}
input[type=file]{display:block;width:100%;min-height:44px;padding:8px 0;font-size:15px}
input[type=file]::file-selector-button{min-height:44px;margin-right:12px;padding:0 16px;border:0;border-radius:var(--r-sm);background:var(--fill);color:var(--link);font:inherit;font-weight:600;cursor:pointer}
/* a link that stands on its own (not inside a sentence) gets a full-size tap area */
a.go{text-decoration:none}
a.go{display:inline-flex;align-items:center;min-height:44px;font-weight:500}
input:focus,select:focus,textarea:focus{border-color:var(--focus);background:var(--card)}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* buttons: 44px tall at least, filled for the main action, outlined for the rest */
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 18px;
  border-radius:var(--r-sm);border:0;background:var(--royal);color:#fff;font-size:17px;font-weight:600;cursor:pointer;text-decoration:none;
  transition:transform .12s ease,filter .12s ease;-webkit-tap-highlight-color:transparent}
button:hover,.button:hover{filter:brightness(1.08)}
button:active,.button:active{transform:scale(.98)}
button:disabled{opacity:.5;cursor:default;transform:none}
button.quiet,.button.quiet{background:var(--fill);color:var(--link);border:0}
button.quiet:hover,.button.quiet:hover{filter:none;background:#e1e6ee}
@media (prefers-color-scheme:dark){button.quiet,.button.quiet{background:rgba(143,179,255,.14)}button.quiet:hover,.button.quiet:hover{background:rgba(143,179,255,.22)}}
button.danger,.button.danger{background:transparent;color:var(--bad);border:1px solid currentColor}
button.link{background:none;border:0;color:var(--link);font-weight:500;padding:0 8px;min-height:44px}
button.link.small{font-size:15px}
button.wide,.button.wide{width:100%;margin-top:18px}
button.saved{background:var(--royal);color:#fff}
.check{display:flex;gap:12px;align-items:flex-start;font-weight:400;font-size:17px;min-height:44px;padding:10px 0;margin:4px 0}
.check input{width:22px;height:22px;margin-top:2px;flex:none;accent-color:var(--royal)}
details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
fieldset{border:0;padding:0;margin:0 0 16px}legend{font-weight:700;font-size:19px;margin-bottom:6px}

/* alerts and messages */
.error{background:#fdecea;color:#8a1c12;border-radius:var(--r-sm);padding:12px 16px;margin:12px 0}
.msg{background:#e7effc;color:var(--navy);border-radius:var(--r-sm);padding:12px 16px;margin:12px 0}
@media (prefers-color-scheme:dark){.error{background:#3a1512;color:#ffb4ab}.msg{background:#15305c;color:#dfe8ff}}
.muted{color:var(--muted)}.small{font-size:15px}.tiny{font-size:13px}
.or{display:flex;align-items:center;gap:10px;color:var(--muted);margin:20px 0}.or:before,.or:after{content:"";flex:1;border-top:1px solid var(--line)}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row>*{flex:1 1 auto}

/* photo grids: square tiles, never stretched */
.filters{display:grid;grid-template-columns:1fr auto auto;gap:10px;margin-bottom:16px}
@media (max-width:640px){.filters{grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px}
.grid a{display:block;aspect-ratio:1;background:var(--fill);border-radius:6px;overflow:hidden}
.grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.grid a:hover img{transform:scale(1.03)}
@media (max-width:480px){.grid{grid-template-columns:repeat(3,1fr);gap:2px}.grid a{border-radius:2px}}
.loader{grid-column:1/-1;text-align:center;padding:20px;color:var(--muted)}
.events{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.events a,.picks a{display:block;background:var(--card);border-radius:var(--r);overflow:hidden;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:transform .15s ease}
.events a:hover,.picks a:hover{transform:translateY(-2px)}
.events img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;background:var(--fill)}
.events div{padding:12px 14px}.events b{display:block}
.photo{display:grid;gap:16px}
.photo img{max-width:100%;max-height:78vh;width:auto;height:auto;margin:0 auto;display:block;border-radius:var(--r-sm);background:var(--fill)}
.photo .bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.photo .actions{flex:0 1 auto;justify-content:flex-end}
.photo .actions form{margin:0}
@media (max-width:700px){.photo .actions{flex:1 1 100%;justify-content:flex-start}}
table{width:100%;border-collapse:collapse;font-size:15px}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:600}
.steps{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.steps li{display:flex;gap:12px;align-items:flex-start}
.steps .n{flex:none;width:30px;height:30px;border-radius:50%;background:var(--royal);color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px}
.steps .n.done{background:var(--ok)}
footer{text-align:center;color:var(--muted);font-size:13px;line-height:2;padding:24px 16px}
footer a{color:inherit;display:inline-block;padding:4px 2px}
.sr,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* chips: segmented-control style filters */
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.chips.tools{margin:14px 0 8px}
.chips a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:var(--fill);text-decoration:none;color:inherit;font-size:15px;font-weight:500}
.chips a[aria-current=page]{background:var(--royal);color:#fff}
.chip{display:inline-flex;align-items:center;border-radius:999px;background:var(--fill)}
.chips .chip a{background:none}
.chip form{margin:0}
.chip .x{min-height:44px;min-width:44px;padding:0 12px 0 4px;background:none;color:var(--muted);font-size:20px;border:0}
.tagbar{display:grid;gap:8px}
.tagbar .tagbox-title{font-size:.95rem;margin:0;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.tagbar.mine{margin-top:14px;padding-top:12px;border-top:1px solid var(--line, rgba(127,127,127,.25))}
.who-new{margin-top:10px;display:grid;gap:6px}
.report{margin:14px 0}.report form{display:grid;gap:8px;margin-top:8px}
fieldset.plain{border:0;padding:0;margin:0;display:grid;gap:6px}fieldset.plain legend{padding:0;margin-bottom:4px}
.addtag input{flex:1 1 200px}

/* faces */
.faces{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:16px}
.face{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.face img{width:96px;height:96px;border-radius:50%;object-fit:cover;background:var(--fill)}
.face form{margin:0}.face button{min-height:44px;padding:0 14px;font-size:15px}
.face.pick{position:relative;cursor:pointer;margin:0}
.face.pick input{position:absolute;top:4px;left:4px;width:22px;height:22px}
.face.pick input:not(:checked)+img{opacity:.35}

/* install nudge */
.install{display:flex;gap:12px;align-items:center;background:var(--card);border-bottom:1px solid var(--line);padding:12px 16px}
.install img{border-radius:10px;flex:none}
.install div{flex:1;display:flex;flex-direction:column;gap:2px}
.install svg{vertical-align:-2px}
.install button{flex:none}
.install button.link{color:var(--muted)}

/* phone tab bar */
.tabs{display:none}
.phone-only{display:none}
@media (max-width:700px){
  .top nav{display:none}
  .phone-only{display:flex}
  form.phone-only,nav.everything.phone-only,h2.phone-only{display:block;margin-top:8px}
  .tabs{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:6;background:var(--bar);
        -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
        border-top:1px solid rgba(255,255,255,.08);
        /* clears the iPhone's home bar (needs viewport-fit=cover, or env() is always 0) */
        padding:4px max(4px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))}
  .tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:49px;color:#c3cbd4;text-decoration:none;font-size:11px;font-weight:500;border-radius:10px}
  .tabs a[aria-current=page]{color:#fff}
  .tabs a[aria-current=page] svg{stroke-width:2.2}
  .tabs svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  body{padding-bottom:calc(64px + max(10px,env(safe-area-inset-bottom)))}
  h1{font-size:28px}
}

/* roar */
.roar-form{margin:0}
.roar{background:var(--fill);color:var(--link)}
.roar svg{width:20px;height:20px;fill:currentColor}
.roar.on{background:var(--gold);color:var(--navy)}
.tile{position:relative}
.badge{position:absolute;right:6px;bottom:6px;background:rgba(11,42,91,.88);color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:2px 8px}

/* slideshow */
body.show{background:#000;color:#fff;margin:0;height:100vh;overflow:hidden}
.show-stage{position:fixed;inset:0 0 64px 0;display:grid;place-items:center;cursor:pointer}
.show-stage img{max-width:100%;max-height:100%;object-fit:contain;opacity:0;transition:opacity .6s}
.show-stage img.in{opacity:1}
.show-bar{position:fixed;left:0;right:0;bottom:0;display:flex;gap:8px;align-items:center;padding:8px 12px calc(8px + env(safe-area-inset-bottom));
  background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.show-bar .button,.show-bar button{color:#fff;background:rgba(255,255,255,.14)}
.show-title{flex:1;font-size:15px;color:#c3cbd4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.show-empty{position:fixed;top:40%;width:100%;text-align:center}
.set-actions{margin:0 0 16px}.set-actions form{margin:0}
.album h2{margin-top:24px}
.card.new{outline:3px solid var(--focus)}

/* bursts, picks, memory book, uploads */
.burst{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x mandatory}
.burst a{position:relative;flex:none;width:110px;height:110px;border-radius:10px;overflow:hidden;border:3px solid transparent;scroll-snap-align:start}
.burst a[aria-current]{border-color:var(--royal)}
.burst img{width:100%;height:100%;object-fit:cover}
.picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.picks img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:var(--fill)}
.picks span{display:flex;flex-direction:column;padding:12px 14px}
.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.book-page p{margin:8px 0}
.sheet{background:var(--fill);box-shadow:0 2px 12px rgba(0,0,0,.15);overflow:hidden;border-radius:4px}
.sheet img{width:100%;height:100%;object-fit:contain;display:block}
.pick .tile{position:relative;aspect-ratio:1;display:block;border-radius:8px;overflow:hidden;cursor:pointer}
.pick .tile input{position:absolute;top:6px;left:6px;width:22px;height:22px;z-index:1}
.pick .tile img{width:100%;height:100%;object-fit:cover}
.pick .tile:has(input:checked){outline:3px solid var(--royal);outline-offset:-3px}
.chosen{min-height:44px;margin:10px 0}
.chosen img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.leaderboard ol{list-style:none;padding:0;margin:10px 0;display:grid;gap:6px}
.leaderboard li{display:flex;gap:10px;align-items:center;min-height:36px}
.leaderboard li span{width:28px;text-align:center}
.leaderboard li b{margin-left:auto}
.leaderboard li.me{font-weight:700}

/* theme pictures */
.looks{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin:8px 0 16px}
.look{display:flex;flex-direction:column;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-sm);padding:10px;position:relative}
.look img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:8px;background:#fff}
.looks.pick .look{cursor:pointer}.looks.pick .look input{position:absolute;top:10px;left:10px;width:22px;height:22px}
.looks.pick .look:has(input:checked){outline:3px solid var(--royal)}
.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.theme-pic img{width:100%;border-radius:var(--r-sm);display:block}

/* support */
.support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.support-pick{width:100%;display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;padding:16px;min-height:88px;
  background:var(--card);color:inherit;border:1px solid var(--line);border-radius:var(--r)}
.support-pick b{font-size:28px}.support-pick span{font-size:13px}

/* season recap and stats */
.recap-stats{margin:10px 0 16px}.recap-theme{max-width:360px;width:100%;border-radius:var(--r-sm);display:block}
.recap-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}
.stat b{display:block;font-family:var(--display);font-size:30px;letter-spacing:-.02em}.stat span{font-size:15px;color:var(--muted)}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:16px 0}
.stat-grid .card{display:flex;flex-direction:column;gap:2px;margin:0}
.big{font-family:var(--display);font-size:32px;line-height:1.1;letter-spacing:-.02em}
figure.card{margin:16px 0}figure.card svg{display:block;margin-top:8px;height:auto}

/* layout helpers */
.fx-none{flex:none}.fx-1{flex:1}.between{justify-content:space-between}.break-all{word-break:break-all}
.mt-8{margin-top:8px}.mt-10{margin-top:10px}.mt-12{margin-top:12px}.mt-14{margin-top:14px}.mt-16{margin-top:16px}.mt-18{margin-top:18px}
.mh-auto{min-height:auto}.stack-4{display:grid;gap:4px}
.upload-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.square-thumb{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.sheet-letter{aspect-ratio:8.5 / 11}.sheet-8x10{aspect-ratio:8 / 10}.sheet-9x12{aspect-ratio:9 / 12}.sheet-12x12{aspect-ratio:12 / 12}.sheet-letter-wide{aspect-ratio:11 / 8.5}
.htmx-indicator{opacity:0}.htmx-request .htmx-indicator,.htmx-request.htmx-indicator{opacity:1;transition:opacity .2s ease-in}
.scroll{overflow-x:auto}
form.inline{display:inline}
progress.fill{width:100%;height:14px;accent-color:var(--royal)}
.fill-img{width:100%;height:auto;border-radius:var(--r-sm);display:block}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* Upload Helper */
.drop{border:2px dashed var(--line);border-radius:var(--r);padding:4px 16px 16px;transition:border-color .15s ease,background .15s ease}
.drop.over{border-color:var(--royal);background:var(--fill)}
/* Best of the Week */
.week{margin:0 0 18px}.week h2{margin:0}
.week-strip a{width:150px;height:150px}
@media (max-width:480px){.week-strip a{width:120px;height:120px}}
/* Not My Kid Cleanup */
.matches{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.match{position:relative;display:grid;grid-template-columns:88px 1fr;gap:8px;align-items:center;background:var(--card);border-radius:var(--r-sm);padding:10px;box-shadow:var(--shadow);cursor:pointer}
.match:has(input:checked){outline:3px solid var(--bad);outline-offset:-3px}
.match input{position:absolute;top:8px;left:8px;width:22px;height:22px;z-index:1;accent-color:var(--bad)}
.match .face-crop{width:88px;height:88px;border-radius:50%;object-fit:cover;background:var(--fill)}
.match .photo-thumb{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:var(--fill)}
.match .photo-thumb.wide{grid-column:1/-1;aspect-ratio:3/2}
.match span{grid-column:1/-1}
/* Trips */
.story{list-style:none;padding:0;margin:0;border-left:3px solid var(--line);padding-left:18px}
.story>li{position:relative;margin-bottom:8px}
.story>li:before{content:"";position:absolute;left:-27px;top:8px;width:15px;height:15px;border-radius:50%;background:var(--royal);box-shadow:0 0 0 4px var(--cloud)}
.story h2{display:flex;gap:10px;align-items:baseline}
.story .day-n{color:var(--royal);font-weight:700}
@media (prefers-color-scheme:dark){.story .day-n{color:var(--link)}}
/* Photo of the Day */
.potd{position:relative;display:block;border-radius:var(--r);overflow:hidden;margin:0 0 18px;box-shadow:var(--shadow);background:var(--fill)}
/* the whole photo, never cropped, over a soft blurred copy of itself that fills the banner */
.potd{height:clamp(220px,42vh,460px)}
.potd img{position:absolute;inset:0;width:100%;height:100%;display:block}
.potd .potd-bg{object-fit:cover;filter:blur(28px) brightness(.7);transform:scale(1.15)}
.potd .potd-img{object-fit:contain}
.potd span{position:absolute;left:0;right:0;bottom:0;padding:28px 16px 14px;color:#fff;font-size:15px;
  background:linear-gradient(transparent,rgba(0,0,0,.72))}
.potd b{display:block;font-size:19px}
/* Who's This? name search: type, then tap a name */
.who-pick{flex:1 1 100%;display:grid;gap:8px}
.who-pick input[type=search]{width:100%}
.who-hits{display:grid;gap:4px;max-height:340px;overflow-y:auto}
.who-hits:empty{display:none}
.who-hit{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 12px;border-radius:12px;background:var(--fill);cursor:pointer}
.who-hit input{flex:none;width:22px;height:22px;margin:0}
.who-hit span{display:grid}
.who-hit small{font-size:13px;color:var(--muted)}
.who-hit:has(input:checked){background:var(--royal);color:#fff}
.who-hit:has(input:checked) small{color:rgba(255,255,255,.85)}
/* Error pages: one calm card in the middle of the screen */
body.oops{min-height:100vh;display:grid;align-items:center}
body.oops main{padding-top:24px;padding-bottom:24px}
.oops-card{text-align:center;padding:36px 28px}
.oops-mark{color:var(--royal);margin:0 auto 12px;display:block}
@media (prefers-color-scheme:dark){.oops-mark{color:var(--link)}}
.oops-card h1{margin:0 0 10px}
.oops-card p{margin:0 auto;max-width:42ch}
.oops-code{margin-top:16px!important}
/* My Albums */
.albums{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.album-card{display:grid;gap:4px;text-decoration:none;color:inherit}
.album-card img,.album-empty{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px;background:var(--fill);display:block}
.album-card b{margin-top:4px;line-height:1.3}
.add-album{position:relative}
.add-album>summary{list-style:none;cursor:pointer}
.add-album>summary::-webkit-details-marker{display:none}
.add-album-form{position:absolute;z-index:20;top:calc(100% + 6px);left:0;width:min(320px,calc(100vw - 32px));display:grid;gap:8px;
  padding:16px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(16,32,58,.18)}
.add-album-form label{font-size:14px;font-weight:600}
.add-album-form input,.add-album-form select{width:100%}
.add-album-form p{margin:0}
.add-album-form button.wide{margin-top:6px}
.album-tools{margin:8px 0 16px}
.album-tools>*{flex:none}
.pick-tile{position:relative;display:block;cursor:pointer;margin:0}
.pick-tile input{position:absolute;top:8px;left:8px;width:24px;height:24px;z-index:1;accent-color:var(--royal)}
.pick-tile img{display:block;width:100%}
.pick-tile:has(input:checked) img{outline:4px solid var(--royal);outline-offset:-4px;opacity:.75}
@media (max-width:600px){.add-album-form{position:fixed;left:16px;right:16px;top:auto;bottom:calc(84px + env(safe-area-inset-bottom));width:auto}}
.grid .pick-tile{aspect-ratio:1;background:var(--fill);border-radius:6px;overflow:hidden}
.grid .pick-tile img{height:100%;object-fit:cover}
/* Sign-in codes */
.center{text-align:center}
img.qr{background:#fff;padding:8px;border-radius:12px}
.backup-codes{columns:2;gap:24px;padding-left:24px;font-size:18px;line-height:2}
.backup-codes code{font-family:ui-monospace,"SF Mono",Consolas,monospace;letter-spacing:.06em}
.ok-text{color:#17803d}
@media (prefers-color-scheme:dark){.ok-text{color:#6fd68f}}
.token{font-family:ui-monospace,"SF Mono",Consolas,monospace;word-break:break-all;background:var(--fill);padding:12px;border-radius:10px;letter-spacing:.05em}

/* main menu on a computer: 4 groups (Photos, My Family, Save and Share, Account), each opens a short list.
   Phones keep the tab bar along the bottom. */
.top .group{position:relative}
.top .group summary{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:10px;color:#fff;
  font-size:15px;font-weight:500;cursor:pointer;list-style:none}
.top .group summary::-webkit-details-marker{display:none}
.top .group summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translate(-2px,-2px);opacity:.8}
.top .group summary:hover,.top .group[open] summary{background:rgba(255,255,255,.16)}
.top .group.is-here summary{background:rgba(255,255,255,.22);font-weight:600}
.top .group ul{position:absolute;top:calc(100% + 6px);right:0;min-width:210px;list-style:none;margin:0;padding:6px;
  background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(16,32,58,.18);z-index:10}
.top .group ul a{display:flex;color:var(--ink);font-weight:400}
.top .group ul a:hover{background:var(--fill)}
.top .group ul a[aria-current=page]{background:var(--royal);color:#fff;font-weight:600}
.top .group ul button.link{display:flex;align-items:center;width:100%;min-height:44px;padding:0 12px;color:var(--link);font-size:15px;text-align:left}

/* instrument tags: ✦ marks ones the instrument finder added; quick picks to add one */
.chip .auto{color:var(--gold);font-size:12px;margin-left:-6px;margin-right:6px}
.gear-pick{margin-top:10px}
.gear-pick summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--link)}
.gear-pick .chips{display:flex;flex-wrap:wrap;gap:6px}
.gear-pick form{margin:0}
.chip-btn{min-height:44px;padding:0 14px;border-radius:999px;border:0;background:var(--fill);color:var(--ink);font:inherit;font-size:15px;cursor:pointer}
.chip-btn:hover{filter:brightness(.96)}

/* By The Numbers: a public infographic in the Jaguar colors */
main.numbers{max-width:980px}
.nb-hero{position:relative;overflow:hidden;text-align:center;color:#fff;border-radius:24px;padding:36px 20px 30px;margin:8px 0 18px;
  background:radial-gradient(120% 140% at 50% 0%,var(--royal) 0%,var(--navy) 60%,#06152f 100%)}
.nb-hero h1{font-family:"Space Grotesk",var(--display);font-size:clamp(34px,7vw,58px);line-height:1;margin:4px 0 10px;letter-spacing:-.02em}
.nb-kicker{margin:0;color:var(--gold);font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:13px}
.nb-sub{margin:0 auto;max-width:520px;color:var(--silver)}
.nb-paw{position:absolute;width:220px;height:220px;right:-40px;top:-30px;opacity:.09}
.nb-paw g{fill:#fff}
.nb-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}
.nb-tile{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px 16px;text-align:center;box-shadow:var(--shadow)}
.nb-tile b{display:block;font-family:"Space Grotesk",var(--display);font-size:clamp(28px,4.5vw,44px);line-height:1.05;color:var(--royal)}
.nb-tile span{color:var(--muted);font-size:14px}
.nb-tile.gold{background:var(--gold);border-color:transparent}
.nb-tile.gold b,.nb-tile.gold span{color:#16202e}
.nb-band{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 18px;padding:16px;border-radius:20px;background:var(--navy);color:#fff}
.nb-stat{display:grid;justify-items:center;text-align:center;gap:2px}
.nb-stat svg{width:30px;height:30px;fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nb-stat b{font-family:"Space Grotesk",var(--display);font-size:26px}
.nb-stat span{color:var(--silver);font-size:13px}
.nb-card h2{margin-top:0}
.nb-chart .nb-axis{stroke:var(--line);stroke-width:2}
.nb-chart .nb-bar{fill:var(--royal)}
.nb-chart .nb-bar.now{fill:var(--gold)}
.nb-chart .nb-num{fill:var(--ink);font-size:12px;font-weight:600}
.nb-chart .nb-yr{fill:var(--muted);font-size:12px}
.nb-gear{display:grid;gap:8px}
.nb-gear-row{display:grid;grid-template-columns:130px 1fr 70px;gap:10px;align-items:center}
.nb-gear-row svg{width:100%;height:14px}
.nb-gear-row b{text-align:right}
.nb-track{fill:var(--fill)}
.nb-fill{fill:var(--gold)}
.nb-fun{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}
.nb-fact{border:2px dashed var(--gold);border-radius:20px;padding:16px;text-align:center}
.nb-fact b{display:block;font-family:"Space Grotesk",var(--display);font-size:28px;color:var(--royal)}
.nb-fact span{color:var(--muted);font-size:14px}
.nb-biggest p{font-size:18px;margin:0}
.center{text-align:center}
@media (prefers-color-scheme:dark){.nb-tile b,.nb-fact b{color:var(--link)}}
@media (max-width:700px){.nb-tiles,.nb-band,.nb-fun{grid-template-columns:1fr 1fr}.nb-gear-row{grid-template-columns:100px 1fr 56px}}

/* Reference Photos wizard */
.ref-steps{list-style:none;margin:16px 0;padding:0;display:grid;gap:8px}
.ref-step{display:flex;gap:12px;align-items:center;padding:10px 14px;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.ref-step span{display:grid}
.ref-step small{color:var(--muted)}
.ref-step.now{border:2px solid var(--royal)}
.ref-step.done small{color:var(--ok)}
.ref-head{width:46px;height:46px;flex:none}
.ref-head ellipse{fill:var(--fill);stroke:var(--muted);stroke-width:2}
.ref-head .eye{fill:var(--ink)}
.ref-head .nose{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ref-step.done .ref-head ellipse{fill:rgba(23,128,61,.14);stroke:var(--ok)}
.ref-now label.button{position:relative;cursor:pointer}
.phone-field{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--fill);overflow:hidden}
.phone-field:focus-within{border-color:var(--focus);background:var(--card)}
.phone-field input[type=tel]{border:0;border-radius:0;background:transparent;flex:1;min-width:0}
.phone-field input[type=tel]:focus{outline:none}
.phone-country{position:relative;display:flex;align-items:center;gap:8px;padding:0 10px 0 14px;border-right:1px solid var(--line)}
.phone-country .flag{width:28px;height:21px;border-radius:3px;box-shadow:0 0 0 1px var(--line)}
.phone-country .dial{font-weight:600;font-size:17px}
.phone-country select{position:absolute;inset:0;width:100%;min-height:44px;opacity:0;cursor:pointer;border:0}
.phone-country:focus-within{outline:3px solid var(--focus);outline-offset:-3px}
.phone-country::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translate(-2px,-2px)}

/* About Find My Jag (/about): a public tour with screenshots. Full-width bands, content held to 1080px. */
main.tour{max-width:none;padding:0 0 32px}
.tour-wrap{max-width:1080px;margin:0 auto;padding:0 16px}
.tour h2{font-size:28px;font-weight:700;letter-spacing:-.02em}
.tour-kicker,.tour-eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px}
.tour-kicker{color:var(--gold)}
.tour-eyebrow{color:var(--royal)}
@media (prefers-color-scheme:dark){.tour-eyebrow{color:var(--link)}}
.tour-hero{background:radial-gradient(120% 90% at 85% 10%,#1446a0 0%,#0b2a5b 55%,#06173a 100%);color:#fff;padding:56px 0 64px;overflow:hidden}
.tour-hero-grid{display:grid;grid-template-columns:1fr;gap:40px;align-items:center}
.tour-hero h1{font-size:40px;line-height:1.08;letter-spacing:-.025em;margin:0 0 16px}
.tour-lede{font-size:19px;line-height:1.55;color:#dbe4f3;margin:0 0 24px;max-width:36em}
.tour-ctas{display:flex;flex-wrap:wrap;gap:12px}
.tour-hero .button,.tour-end .button{background:var(--gold);color:#0b2a5b;font-weight:700}
.tour-hero .button.quiet,.tour-end .button.quiet{background:rgba(255,255,255,.14);color:#fff}
.tour-hero .button.quiet:hover,.tour-end .button.quiet:hover{background:rgba(255,255,255,.22)}
.tour-fine{font-size:14px;color:#b9c6dc;margin:16px 0 0}
.tour-hero-art{position:relative;padding:0 0 40px 0}
.tour .shot,.tour .shot img{display:block;width:100%;height:auto}
.tour-browser{border-radius:12px;overflow:hidden;background:#0f1b2e;box-shadow:0 30px 60px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.08)}
.tour-browser::before{content:"";display:block;height:22px;background:#1b2840 radial-gradient(circle,#ff5f57 4px,transparent 5px) 10px 50%/14px 14px no-repeat}
.tour-phone{border-radius:34px;padding:8px;background:#0b1220;box-shadow:0 24px 48px rgba(11,42,91,.22),0 0 0 1px rgba(255,255,255,.06);max-width:290px;margin:0 auto;width:100%}
.tour-phone .shot{border-radius:27px;overflow:hidden;aspect-ratio:390/844}
.tour-phone .shot img{height:100%;object-fit:cover;object-position:top}
.tour-phone-float{position:absolute;right:-6px;bottom:0;width:36%;max-width:200px;border-radius:26px;padding:6px}
.tour-phone-float .shot{border-radius:21px}
.tour-steps{padding-top:56px;padding-bottom:16px;text-align:center}
.tour-steps ol{list-style:none;padding:0;margin:24px 0 0;display:grid;gap:16px;grid-template-columns:1fr;text-align:left}
.tour-steps li{align-content:start;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:var(--shadow);display:grid;gap:6px}
.tour-steps li b{font-size:19px}
.tour-steps li span:last-child{color:var(--muted)}
.tour-steps .n{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--royal);color:#fff;font-weight:700}
.tour-feature{display:grid;grid-template-columns:1fr;gap:28px;align-items:center;padding-top:56px;padding-bottom:24px}
.tour-copy p{font-size:18px;line-height:1.6;margin:0 0 12px}
.tour-copy p.small{font-size:15px}
.tour-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:560px;margin:0 auto;width:100%}
.tour-pair .tour-phone{border-radius:28px;padding:6px}
.tour-pair .tour-phone .shot{border-radius:23px}
.tour-privacy{background:var(--navy);color:#fff;margin-top:56px;padding:56px 0}
.tour-privacy h2{max-width:20em}
.tour-cards{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:14px;grid-template-columns:1fr}
.tour-cards li{align-content:start;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:var(--r);padding:20px;display:grid;gap:6px}
.tour-cards svg{width:30px;height:30px;fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tour-cards b{font-size:18px}
.tour-cards span{color:#cdd8ea;font-size:16px}
.tour-links{margin:24px 0 0}
.tour-links a{color:#fff;font-weight:600;display:inline-block;padding:10px 2px}
.tour-faq{padding-top:56px;max-width:760px}
.tour-faq details{background:var(--card);border:1px solid var(--line);border-radius:var(--r-sm);margin:0 0 10px;padding:0 18px}
.tour-faq summary{min-height:52px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.tour-faq details p{margin:0 0 16px;color:var(--muted)}
.tour-end{background:linear-gradient(135deg,#0b2a5b,#1446a0);color:#fff;text-align:center;margin:56px 16px 0;border-radius:24px;padding:48px 0}
.tour-end .tour-ctas{justify-content:center}
@media (prefers-color-scheme:dark){
  .tour-privacy{background:#0a1730}
  .tour-faq details,.tour-steps li{border-color:transparent}}
@media (min-width:820px){
  .tour-hero{padding:80px 0 88px}
  .tour-hero-grid{grid-template-columns:1fr 1.15fr}
  .tour-hero h1{font-size:54px}
  .tour h2{font-size:34px}
  .tour-steps ol{grid-template-columns:repeat(3,1fr)}
  .tour-feature{grid-template-columns:1fr 1fr;gap:56px;padding-top:80px}
  .tour-feature.flip .tour-copy{order:2}
  .tour-cards{grid-template-columns:repeat(3,1fr)}
  .tour-end{max-width:1048px;margin:80px auto 0}}

/* Banners across the top (fmj/banners.py): admin messages and the gentle chip-in note */
.banner{background:#e8effc;color:#0b2a5b;border-bottom:1px solid #cfdcf5}
.banner.heads_up{background:#fff4d6;color:#4a3500;border-color:#f3dc9b}
.banner.good{background:#e3f4e8;color:#0f4d25;border-color:#bfe3c9}
.banner-in{max-width:1200px;margin:0 auto;padding:8px 16px;display:flex;align-items:center;gap:12px}
.banner p{margin:0;flex:1;font-size:15px;line-height:1.45;padding:6px 0}
.banner a{color:inherit;font-weight:600}
.banner form{margin:0}
.banner-x{background:transparent;color:inherit;padding:0;min-width:44px}
.banner-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.banner.chipin{background:var(--card);color:var(--ink);border-bottom:1px solid var(--line)}
.banner.chipin .banner-in{max-width:880px;padding:14px 16px;align-items:flex-start;flex-wrap:wrap}
.banner-words{flex:1 1 360px}
.banner-words b{font-family:var(--display);font-size:16px}
.banner-words p{color:var(--muted);padding:2px 0 0}
.banner-meter{display:flex;align-items:center;gap:10px;font-size:13px!important}
.banner-meter meter{width:120px;height:8px;flex:none}
.banner-actions{display:flex;align-items:center;gap:6px;flex:none}
.banner-actions .button{background:var(--gold);color:#0b2a5b;font-weight:700}
.banner-actions .link{color:var(--muted)}
@media (prefers-color-scheme:dark){
  .banner{background:#15305c;color:#dfe8ff;border-color:#22324a}
  .banner.heads_up{background:#3a2c05;color:#ffe3a1;border-color:#5a460f}
  .banner.good{background:#123622;color:#bff0cf;border-color:#1d4a30}
  .banner.chipin{background:var(--card);color:var(--ink);border-color:var(--line)}}
.banner-meter meter::-webkit-meter-bar{background:var(--fill);border:0;border-radius:4px}
.banner-meter meter::-webkit-meter-optimum-value{background:var(--gold);border-radius:4px}
.banner-meter meter::-moz-meter-bar{background:var(--gold);border-radius:4px}

/* Find People Together (/together) */
.together-chips{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:8px}
.together-chips li{display:inline-flex;align-items:center;gap:2px;background:var(--royal);color:#fff;border-radius:999px;padding-left:14px;font-weight:600}
.together-chips li .muted{color:#d6e2f7}
.together-chips a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:#fff}
.together-chips svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.together-found{list-style:none;padding:0;margin:12px 0 0;border-top:1px solid var(--line)}
.together-found a{display:grid;grid-template-columns:1fr auto;gap:0 12px;align-items:center;min-height:52px;padding:6px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.together-found .small{grid-column:1}
.together-found .go{grid-row:1/3;grid-column:2;color:var(--link);font-weight:600}
.together-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 0}
a.chip-link{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;background:var(--fill);color:var(--link);text-decoration:none;font-weight:600;font-size:15px}

/* Still Growing (/growing) and its note on the Photos page */
.grow-note{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:10px 16px;margin:0 0 16px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.grow-note .go{color:var(--link);font-weight:600;min-height:44px;display:inline-flex;align-items:center}
.grow-big{font-family:var(--display);margin:0 0 8px}
.grow-big b{font-size:44px;letter-spacing:-.02em}
.grow-big span{color:var(--muted);font-size:17px}
progress{appearance:none;-webkit-appearance:none;width:100%;height:12px;border:0;border-radius:6px;background:var(--fill);overflow:hidden}
progress::-webkit-progress-bar{background:var(--fill);border-radius:6px}
progress::-webkit-progress-value{background:var(--royal);border-radius:6px}
progress::-moz-progress-bar{background:var(--royal);border-radius:6px}
@media (prefers-color-scheme:dark){progress::-webkit-progress-value{background:var(--link)}progress::-moz-progress-bar{background:var(--link)}}
.grow-bar{height:16px;margin:4px 0 12px}
.grow-eta{background:var(--fill);border-radius:var(--r-sm);padding:12px 14px;margin:12px 0}
.grow-eta p{margin:6px 0 0}
.est{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:var(--gold);color:#0b2a5b;border-radius:6px;padding:2px 8px}
.grow-years{list-style:none;padding:0;margin:0}
.grow-years li{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;min-height:36px}
.grow-year{font-weight:600;font-variant-numeric:tabular-nums}
/* contact form: a field people never see (bots fill it in) */
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* version in the footer (small, out of the way) and the "was updated" notice */
footer .version{font-size:11px;font-variant-numeric:tabular-nums}
.update-note{position:fixed;left:16px;right:16px;bottom:calc(92px + env(safe-area-inset-bottom));z-index:20;max-width:520px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--navy);color:#fff;border-radius:var(--r);
  padding:10px 12px 10px 16px;box-shadow:0 12px 32px rgba(6,21,47,.35);font-size:15px}
.update-note button{background:var(--gold);color:#0b2a5b;font-weight:700;flex:none}
@media (min-width:820px){.update-note{bottom:24px}}

/* pages of 15 for every table and list */
.pager{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:14px 0 4px;font-size:14px;color:var(--muted)}
/* Is This Your Jag? one at a time (from the weekly email) */
.check-one{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.check-one h2{margin:0}
.check-face{width:160px;height:160px;border-radius:50%;object-fit:cover;background:var(--fill)}
.check-photo{max-width:100%;max-height:320px;border-radius:12px;background:var(--fill)}
.check-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:360px}
.check-buttons form{margin:0}.check-buttons button{min-height:52px;font-size:18px;width:100%}
.row.spread{justify-content:space-between;align-items:center;flex-wrap:wrap}
.row.spread h2{margin:0}
.check-buttons button.wide{margin-top:0}
/* What's New: a small dot until the newest family notes are opened */
.new-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--bad);vertical-align:middle;margin-left:4px}
.whats-new h2{margin-bottom:2px}.whats-new ul{margin:8px 0 0;padding-left:20px}.whats-new li{margin:6px 0}
.tabs a{position:relative}.tab-dot{position:absolute;top:6px;left:calc(50% + 8px);margin:0}
.row.spread form{margin:0 0 0 auto}
.row.spread>*{flex:0 1 auto}
/* Send a link every way (_send_sheet.html) */
.send-sheet{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.send-sheet textarea{width:100%;min-height:96px}
.send-buttons{display:flex;flex-wrap:wrap;gap:8px}
.send-buttons>*{flex:1 1 130px}
/* Help (fmj/help.py) */
.help-list{list-style:none;padding:0;margin:0;display:grid;gap:2px}
.help-list a{display:flex;flex-direction:column;gap:2px;padding:10px 0;min-height:44px;text-decoration:none;color:inherit;border-bottom:1px solid var(--line)}
.help-list li:last-child a{border-bottom:0}
.help-list a b{color:var(--link)}
.help-shot{margin:16px 0;text-align:center}
.help-shot img{width:300px;max-width:80%;height:auto;border-radius:22px;box-shadow:0 8px 30px rgba(0,0,0,.18);background:var(--fill)}
.help-steps li{margin:8px 0}
.help-crumbs{margin-bottom:4px}
.help-crumbs a{display:inline-block;min-height:44px;line-height:44px}
.lead{font-size:19px}
.help-next{margin-top:16px}

/* event videos */
.clips h2{margin:16px 0 8px}
.clip-strip a{width:180px;height:110px}
.clip-strip .play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:30px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.clip video{width:100%;height:auto;max-height:62vh;background:#000;border-radius:10px;display:block}
.timeline{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.tl-bar{display:block;width:100%;height:22px}
.tl-all{fill:var(--fill)}
.tl-on{fill:var(--royal)}
.tl-bar a:hover .tl-on,.tl-bar a:focus .tl-on{fill:var(--gold,#c9a227)}
.spans{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 14px}
.spans li{display:flex;align-items:center;gap:6px}
.spans .chip{min-height:44px;display:inline-flex;align-items:center;padding:0 14px;font-variant-numeric:tabular-nums}
.spans form{margin:0}

/* full-screen photo viewer (js/viewer.js) */
.viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#05070c;color:#fff;display:none;flex-direction:column}
.viewer[open]{display:flex}
.viewer::backdrop{background:rgba(5,7,12,.96)}
.viewer-on{overflow:hidden}
.viewer-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top))}
.viewer-count{font-variant-numeric:tabular-nums;font-size:15px;opacity:.85;white-space:nowrap}
.viewer-tools{display:flex;gap:6px;align-items:center}
.viewer-tools .button,.viewer-tools button{white-space:nowrap;min-height:44px}
@media (max-width:480px){.viewer-tools .button,.viewer-tools button{padding:0 12px;font-size:15px}}
.viewer .button.quiet,.viewer button.quiet{background:rgba(255,255,255,.12);color:#fff;border:0}
.viewer-x{min-width:44px;font-size:18px}
.viewer-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom;user-select:none}
.viewer-stage img{max-width:100%;max-height:100%;object-fit:contain;transition:opacity .15s ease}
.viewer-stage img.loading{opacity:.35}
.viewer-nav{position:absolute;top:50%;transform:translateY(-50%);width:56px;height:88px;border:0;border-radius:12px;background:rgba(0,0,0,.35);color:#fff;font-size:40px;line-height:1;z-index:1}
.viewer-nav[data-viewer-prev]{left:8px}
.viewer-nav[data-viewer-next]{right:8px}
.viewer-nav:disabled{opacity:.2}
.viewer-acts{display:flex;justify-content:center;gap:8px;padding:8px 12px 0}
.viewer-acts[hidden]{display:none}
.viewer-acts button{min-height:44px;min-width:110px;white-space:nowrap}
.viewer .viewer-acts button[aria-pressed="true"]{background:var(--gold);color:var(--navy)}
.viewer-hint{margin:0;padding:6px 12px max(8px,env(safe-area-inset-bottom));text-align:center;font-size:13px;opacity:.6}
@media (hover:none){.viewer-hint{display:none}.viewer-nav{background:transparent;width:44px}}
@media (prefers-reduced-motion:reduce){.viewer-stage img{transition:none}}

/* photo release (fmj/releases.py) */
.release-terms{padding-left:1.3em}
.release-terms li{margin:0 0 8px}
.release-lines p{display:flex;gap:10px;align-items:flex-end;margin:22px 0 0}
.release-lines .line{flex:1;border-bottom:1px solid currentColor;min-height:1.2em;opacity:.6}
@media print{
  header,nav,footer,.tabs,.no-print,.viewer{display:none!important}
  body{background:#fff;color:#000}
  .card{box-shadow:none;border:0;padding:0}
}

/* Who's This? (js/who.js): saved groups shrink to a line, and Save All rides along the bottom */
.who-done{padding:12px 16px}
.who-done p{margin:0}
.who-done.who-oops{border-color:var(--bad,#b42318)}
.face.answered{justify-content:center;min-height:96px;display:flex;align-items:center;text-align:center;opacity:.75}
.who-bar{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom));z-index:5;display:flex;justify-content:center;margin:12px 0}
.who-bar[hidden]{display:none}
.who-bar button{box-shadow:var(--shadow);min-height:48px;padding:0 22px}
@media (max-width:700px){.who-bar{bottom:calc(76px + env(safe-area-inset-bottom))}}

/* back link at the top of every page that isn't a main tab (_back.html) */
.back-bar{margin:0 0 10px}
.back-bar a{display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 10px 0 2px;margin-left:-4px;
  font-weight:600;text-decoration:none;color:var(--link);border-radius:10px;max-width:100%}
.back-bar a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.back-bar a:hover{background:var(--fill)}
.back-bar svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* Download Cart (js/cart.js): a floating Pick / Cart button on pages of photos, and checks while picking */
.cart-pill{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:7;display:flex;gap:6px;
  align-items:center;padding:6px;border-radius:999px;background:var(--card,#fff);box-shadow:var(--shadow)}
.cart-pill[hidden]{display:none}
.cart-pill button,.cart-pill a{min-height:44px;border-radius:999px;padding:0 16px;display:inline-flex;align-items:center;gap:6px;
  white-space:nowrap;font-weight:600;text-decoration:none}
.cart-pill a{color:var(--link)}
.cart-pill button[aria-pressed="true"]{background:var(--gold);color:var(--navy)}
@media (max-width:700px){.cart-pill{bottom:calc(76px + max(10px,env(safe-area-inset-bottom)))}}
.picking .grid a[href^="/p/"]{position:relative;outline:2px dashed var(--line,#ccd);outline-offset:-2px}
.picking .grid a.in-cart{outline:3px solid var(--gold)}
.picking .grid a.in-cart::after{content:"✓";position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;
  display:grid;place-items:center;background:var(--gold);color:var(--navy);font-weight:800}

/* swipe mode for Is This Your Jag? (js/swipe.js) */
.swipe{display:grid;gap:12px;justify-items:center}
.swipe-stack{position:relative;width:100%;max-width:420px}
.swipe-card{position:relative;background:var(--card);border-radius:20px;box-shadow:var(--shadow);padding:16px;
  display:grid;gap:10px;justify-items:center;touch-action:pan-y;user-select:none;transition:transform .2s ease,opacity .2s ease;cursor:grab}
.swipe-card.dragging{transition:none;cursor:grabbing}
.swipe-card.gone-right{transform:translateX(130%) rotate(18deg);opacity:0}
.swipe-card.gone-left{transform:translateX(-130%) rotate(-18deg);opacity:0}
.swipe-card h2{margin:0;font-size:20px;text-align:center}
.swipe-face{width:96px;height:96px;border-radius:50%;object-fit:cover;pointer-events:none}
.swipe-photo{position:relative;display:inline-block;max-width:100%;border-radius:12px;overflow:hidden;line-height:0}
.swipe-photo img{display:block;max-width:100%;max-height:min(42vh,420px);width:auto;height:auto;pointer-events:none}
.swipe-ring{position:absolute;border:3px solid var(--gold);border-radius:10px;box-shadow:0 0 0 2px rgba(0,0,0,.35)}
.swipe-tag{position:absolute;top:18px;font-size:40px;opacity:0;transition:opacity .1s;z-index:1}
.swipe-tag.yes{left:22px;color:var(--ok)}
.swipe-tag.no{right:22px;color:var(--bad)}
.leaning-right .swipe-tag.yes,.leaning-left .swipe-tag.no{opacity:1}
.swipe-buttons{display:flex;gap:12px;justify-content:center}
.swipe-buttons[hidden]{display:none}
.swipe-buttons button{min-height:52px;min-width:96px;font-size:18px}
.swipe-yes{background:var(--ok);color:#fff}
.swipe-no{background:var(--bad);color:#fff}
@media (prefers-reduced-motion:reduce){.swipe-card{transition:none}}
/* reference photos nudge and the callout on My Jag(s) */
.refs-nudge{border:2px solid var(--gold)}
.refs-nudge[hidden]{display:none}
.refs-nudge h2{margin-top:0}
.refs-callout{margin-top:12px;padding:14px;border-radius:14px;border:2px solid var(--gold);background:color-mix(in srgb,var(--gold) 10%,transparent)}
.refs-callout p{margin:0 0 8px}
.kid-edit summary{cursor:pointer;font-weight:600;color:var(--link)}
/* the phone's Everything list on Account: every page, grouped like the desktop menu */
.everything .card{padding:14px 16px}
.everything h2{margin:0 0 6px;font-size:15px;color:var(--muted);text-transform:none}
.everything ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:2px 12px}
.everything a{display:flex;align-items:center;gap:6px;min-height:44px;font-weight:600;text-decoration:none;color:var(--link)}
/* first-visit tips (_tip.html) */
.tip{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:12px 0;padding:12px 14px;
  border-radius:14px;background:color-mix(in srgb,var(--link) 10%,var(--card));border:1px solid color-mix(in srgb,var(--link) 30%,transparent)}
.tip[hidden]{display:none}
.tip p{margin:0;flex:1 1 220px}
.tip form{margin:0}
/* split families (fmj/households.py) */
.link-ask{border:2px solid var(--link)}
.link-ask h2{margin-top:0}
.note{padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--link) 10%,var(--card))}
.swipe-twins{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}

/* tap a picture to see it big (js/zoom.js) */
[data-zoom]{cursor:zoom-in}
dialog.zoom{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(0,0,0,.92);color:#fff}
dialog.zoom::backdrop{background:rgba(0,0,0,.92)}
dialog.zoom img{display:block;max-width:calc(100vw - 32px);max-height:calc(100vh - 90px);margin:24px auto 8px;object-fit:contain}
dialog.zoom p{text-align:center;margin:0 16px;font-size:14px;opacity:.85}
dialog.zoom button{position:fixed;min-width:48px;min-height:48px;border:0;border-radius:24px;background:rgba(255,255,255,.15);color:#fff;font-size:26px;cursor:pointer}
dialog.zoom .zoom-close{top:12px;right:12px;font-size:20px}
dialog.zoom .zoom-prev{left:12px;top:50%}
dialog.zoom .zoom-next{right:12px;top:50%}
