/* Base rules the standalone page must supply itself.
   The mock-up got these from its host wrapper. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* Jiak Ranks — styles.
   Lifted from the approved mock-up so the live site looks identical. */

:root{
    --paper:#EEF2EE;
    --surface:#FFFFFF;
    --surface-2:#F5F8F4;
    --ink:#15242A;
    --ink-2:#3C5057;
    --muted:#6B8087;
    --line:#D6DFDA;
    --line-soft:#E5EBE6;
    --accent:#BF3527;
    --accent-soft:#F7E3DF;
    --up:#1C7A57;
    --up-soft:#DFF0E8;
    --down:#B2452F;
    --down-soft:#F7E6E0;
    --gold:#B5820F;
    --violet:#5B4B8A;
    --violet-soft:#EAE6F4;
    --shadow:0 1px 2px rgba(21,36,42,.06), 0 8px 24px -16px rgba(21,36,42,.28);
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      color-scheme: dark;
      --paper:#0E1517; --surface:#161F22; --surface-2:#1C2629;
      --ink:#E8EEEB; --ink-2:#BCC9C7; --muted:#84979D;
      --line:#28363A; --line-soft:#212D31;
      --accent:#E5705F; --accent-soft:#3A2220;
      --up:#54B88F; --up-soft:#16302A;
      --down:#E08469; --down-soft:#331F1B;
      --gold:#DFAE4C;
      --violet:#A99AD6; --violet-soft:#262239;
      --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -16px rgba(0,0,0,.7);
    }
  }
  :root[data-theme="dark"]{
    color-scheme: dark;
    --paper:#0E1517; --surface:#161F22; --surface-2:#1C2629;
    --ink:#E8EEEB; --ink-2:#BCC9C7; --muted:#84979D;
    --line:#28363A; --line-soft:#212D31;
    --accent:#E5705F; --accent-soft:#3A2220;
    --up:#54B88F; --up-soft:#16302A;
    --down:#E08469; --down-soft:#331F1B;
    --gold:#DFAE4C;
    --violet:#A99AD6; --violet-soft:#262239;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -16px rgba(0,0,0,.7);
  }

  *{box-sizing:border-box}
  body{
    margin:0; background:var(--paper); color:var(--ink);
    font-family:"Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size:15px; line-height:1.55; -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.disp{font-family:"Archivo", ui-sans-serif, system-ui, sans-serif; text-wrap:balance;}
  .mono{font-family:"IBM Plex Mono", ui-monospace, Menlo, monospace; font-variant-numeric:tabular-nums;}
  .wrap{max-width:800px; margin:0 auto; padding-inline:16px;}

  /* ---------- header ---------- */
  header.bar{
    position:sticky; top:env(safe-area-inset-top, 0px); z-index:30;
    background:color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
  }
  .bar-in{display:flex; align-items:center; justify-content:space-between; gap:12px; padding-block:11px;}
  .brand{display:flex; align-items:baseline; gap:8px; min-width:0;}
  .brand .mark{font-family:"Archivo",sans-serif; font-weight:800; font-size:19px; letter-spacing:-.025em;}
  .brand .mark em{font-style:normal; color:var(--accent);}
  .brand .tag{font-family:"IBM Plex Mono",monospace; font-size:10px; letter-spacing:.14em;
    text-transform:uppercase; color:var(--muted); white-space:nowrap;}
  .acct{display:flex; align-items:center; gap:8px;}
  .who{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--muted); white-space:nowrap;}
  .who b{color:var(--ink); font-weight:600;}

  /* ---------- buttons ---------- */
  .btn{
    font-family:"Archivo",sans-serif; font-weight:600; font-size:13.5px;
    background:var(--ink); color:var(--paper); border:1px solid var(--ink);
    border-radius:9px; padding:9px 16px; cursor:pointer;
  }
  .btn.ghost{background:transparent; color:var(--ink-2); border-color:var(--line);}
  .btn.sm{padding:6px 11px; font-size:12px; border-radius:7px;}
  .btn.ok{background:var(--up); border-color:var(--up); color:#fff;}
  .btn.no{background:transparent; border-color:var(--line); color:var(--down);}
  .btn:focus-visible, input:focus-visible, select:focus-visible,
  textarea:focus-visible, button:focus-visible, .track:focus-visible{
    outline:2px solid var(--accent); outline-offset:2px;
  }

  /* ---------- tier badge ---------- */
  .badge{
    display:inline-flex; align-items:center; gap:5px; white-space:nowrap;
    font-family:"Archivo",sans-serif; font-weight:600; font-size:11.5px;
    color:var(--tc); background:color-mix(in srgb, var(--tc) 13%, transparent);
    border:1px solid color-mix(in srgb, var(--tc) 36%, transparent);
    border-radius:999px; padding:3px 9px;
  }
  .badge i{width:6px; height:6px; border-radius:50%; background:var(--tc); display:block;}
  .badge.sm{font-size:10px; padding:2px 7px;}
  .badge.sm i{width:5px; height:5px;}
  .badgechip{
    display:inline-flex; align-items:center; gap:6px; cursor:pointer;
    font-family:"Archivo",sans-serif; font-weight:600; font-size:11.5px; color:var(--tc);
    background:color-mix(in srgb, var(--tc) 13%, transparent);
    border:1px solid color-mix(in srgb, var(--tc) 36%, transparent);
    border-radius:999px; padding:4px 9px;
  }
  .badgechip i{width:6px; height:6px; border-radius:50%; background:var(--tc); display:block;}
  .badgechip .bp{
    font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:var(--ink);
    border-left:1px solid color-mix(in srgb, var(--tc) 36%, transparent); padding-left:6px;
  }
  @media (max-width:620px){
    .badgechip .bn{display:none}
    .brand .tag{display:none}
    .acct .who{display:none}
  }

  /* ---------- points earned ---------- */
  .earned{
    display:flex; flex-wrap:wrap; align-items:baseline; gap:8px;
    background:var(--up-soft); border:1px solid color-mix(in srgb, var(--up) 30%, transparent);
    border-radius:9px; padding:8px 11px; margin-bottom:10px;
  }
  .earned b{font-family:"Archivo",sans-serif; font-size:14px; color:var(--up);}
  .earned span{font-size:12px; color:var(--ink-2);}

  /* ---------- balances ---------- */
  .bal{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px;}
  .balbox{flex:1 1 200px; border:1px solid var(--line); border-radius:11px; padding:12px 14px;}
  .balbox.life{background:var(--violet-soft); border-color:color-mix(in srgb, var(--violet) 30%, transparent);}
  .balbox.spend{background:var(--surface-2);}
  .balbox dt{font-family:"IBM Plex Mono",monospace; font-size:9.5px; letter-spacing:.12em;
    text-transform:uppercase; color:var(--muted); margin:0 0 3px;}
  .balbox dd{margin:0; font-family:"Archivo",sans-serif; font-weight:800; font-size:27px;
    letter-spacing:-.03em; line-height:1; font-variant-numeric:tabular-nums;}
  .balbox.life dd{color:var(--violet);}
  .balbox small{display:block; margin-top:6px; font-size:11.5px; color:var(--muted); line-height:1.4;}

  .prog{margin-bottom:14px;}
  .prog:last-child{margin-bottom:0;}
  .progtop{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:8px; margin-bottom:6px;}
  .plab{font-family:"IBM Plex Mono",monospace; font-size:9.5px; letter-spacing:.12em;
    text-transform:uppercase; color:var(--muted);}
  .pnext{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--muted);}
  .pbar{height:7px; border-radius:999px; background:var(--surface-2);
    border:1px solid var(--line-soft); overflow:hidden;}
  .pbar span{display:block; height:100%;}

  /* ---------- leaderboard ---------- */
  .lb{display:flex; flex-direction:column;}
  .lbrow{display:grid; grid-template-columns:28px 1fr auto auto; gap:9px; align-items:center;
    padding:9px 8px; border-bottom:1px solid var(--line-soft); border-radius:7px;}
  .lbrow:last-child{border-bottom:0;}
  .lbrow.me{background:var(--violet-soft);}
  .lbr{font-family:"Archivo",sans-serif; font-weight:800; font-size:14px; color:var(--muted);
    text-align:center; font-variant-numeric:tabular-nums;}
  .lbrow:nth-child(-n+3) .lbr{color:var(--gold);}
  .lbn{font-family:"Archivo",sans-serif; font-weight:600; font-size:14px; min-width:0;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .lbn em{font-style:normal; font-family:"IBM Plex Mono",monospace; font-size:9.5px;
    letter-spacing:.08em; text-transform:uppercase; color:var(--violet);}
  .lbp{font-family:"IBM Plex Mono",monospace; font-weight:600; font-size:13px;
    font-variant-numeric:tabular-nums;}
  .lbc{font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted); white-space:nowrap;}
  @media (max-width:520px){
    .lbrow{grid-template-columns:24px 1fr auto;}
    .lbrow .badge{grid-column:2; justify-self:start;}
    .lbc{display:none}
  }

  .tiers{display:flex; flex-direction:column; gap:8px;}
  .tier{display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:7px 0; border-bottom:1px solid var(--line-soft);}
  .tier:last-child{border-bottom:0;}
  .tat{font-family:"IBM Plex Mono",monospace; font-size:11.5px; color:var(--muted);
    font-variant-numeric:tabular-nums;}

  /* ---------- rewards ---------- */
  .rewards{display:flex; flex-direction:column; gap:9px;}
  .rw{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:10px; padding:11px 12px; background:var(--surface-2);
    border:1px solid var(--line); border-radius:10px;}
  .rw b{font-family:"Archivo",sans-serif; font-weight:600; font-size:13.5px; display:block;}
  .rwstock{font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted);}
  .rwact{display:flex; align-items:center; gap:10px;}
  .rwcost{font-family:"IBM Plex Mono",monospace; font-weight:600; font-size:13px;
    font-variant-numeric:tabular-nums;}
  .btn[disabled]{opacity:.45; cursor:not-allowed;}

  .ledger{display:flex; flex-direction:column;}
  .led{display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:baseline;
    padding:8px 0; border-bottom:1px solid var(--line-soft); font-size:13px;}
  .led:last-child{border-bottom:0;}
  .ledp{font-family:"IBM Plex Mono",monospace; font-weight:600; font-size:12.5px; color:var(--up);}
  .ledp.out{color:var(--down);}
  .ledw{font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted); white-space:nowrap;}

  /* ---------- notice ---------- */
  .notice{
    display:flex; gap:10px; align-items:flex-start; margin-top:14px; padding:11px 13px;
    background:var(--accent-soft); border:1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius:10px; font-size:12.5px; line-height:1.5; color:var(--ink-2);
  }
  .notice b{color:var(--ink); font-family:"Archivo",sans-serif; font-weight:700;}
  .notice .dot{flex:0 0 auto; width:7px; height:7px; border-radius:50%; background:var(--accent); margin-top:6px;}

  /* ---------- nav rails ---------- */
  /* Two rails, no labels over them: a cuisine and a dish are recognisable
     without being announced. */
  .rail{display:flex; gap:7px; overflow-x:auto; padding-bottom:3px; scrollbar-width:none;
    margin-top:14px;}
  #dishes{margin-top:8px;}
  .rail::-webkit-scrollbar{display:none}

  /* A thumb swipes a rail sideways. A mouse cannot: the scrollbar is hidden,
     and the wheel scrolls the page rather than the rail, so a chip past the
     right edge is simply unreachable. Where there is a pointer, the rail
     wraps instead and nothing is out of reach. Touch keeps the swipe. */
  @media (hover:hover) and (pointer:fine){
    .rail{flex-wrap:wrap; overflow-x:visible;}
  }
  .chip{
    flex:0 0 auto; border:1px solid var(--line); background:var(--surface); color:var(--ink-2);
    border-radius:999px; padding:7px 14px; cursor:pointer;
    font-family:"Archivo",sans-serif; font-weight:600; font-size:13px; white-space:nowrap;
  }
  .chip[aria-pressed="true"]{background:var(--ink); border-color:var(--ink); color:var(--paper);}
  .chip.dish{font-size:12.5px; padding:6px 12px;}
  .chip.dish[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:#fff;}
  .chip .q{font-family:"IBM Plex Mono",monospace; font-size:9px; opacity:.65; margin-left:5px;}

  /* ---------- run head ---------- */
  .runhead{margin:14px 0 2px;}
  .runhead h1{margin:0; font-size:clamp(32px,8.5vw,44px); font-weight:800;
    letter-spacing:-.035em; line-height:1.02; text-wrap:balance;}
  .lede{margin:8px 0 0; color:var(--ink-2); font-size:15.5px; max-width:48ch;}
  .meta{display:flex; align-items:baseline; justify-content:space-between; gap:16px;
    flex-wrap:wrap; margin:12px 0 0; font-size:14px; color:var(--muted);}
  .meta .month{font-family:"Public Sans",sans-serif; font-size:14px; color:var(--muted);
    background:transparent; border:0; border-bottom:1px solid var(--line); padding:0 0 1px;}
  .methodtoggle{
    flex:0 0 auto; border:0; background:none; padding:0; cursor:pointer;
    font-family:"Archivo",sans-serif; font-weight:600; font-size:14px; color:var(--accent);
    border-bottom:1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  }
  .methodbody{
    margin-top:12px; padding:16px 18px; background:var(--surface);
    border:1px solid var(--line-soft); border-radius:16px;
    font-size:15px; color:var(--ink-2); max-width:58ch;
  }
  .methodbody p{margin:0 0 10px;}
  .methodbody p:last-child{margin:0;}

  .sortbar{display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:14px 0 2px;}
  .seg{display:flex; background:var(--surface-2); border:1px solid var(--line-soft);
    border-radius:999px; padding:3px; gap:3px;}
  .seg button{font-family:"Archivo",sans-serif; font-weight:600; font-size:13.5px;
    padding:7px 14px; border:0; background:transparent; color:var(--muted);
    border-radius:999px; cursor:pointer;}
  .seg button[aria-selected="true"]{background:var(--surface); color:var(--ink);
    box-shadow:var(--shadow);}

  /* ---------- cards ----------
     Photo-led. The picture fills the card, the position sits top left of
     every photo so the ranks read straight down the page, and a caption
     rides on the image it describes rather than floating in the body. */
  .list{display:flex; flex-direction:column; gap:26px;}
  .card{background:var(--surface); border:1px solid var(--line-soft); border-radius:20px;
    box-shadow:var(--shadow); overflow:hidden;}
  .card.first{border-color:color-mix(in srgb, var(--accent) 34%, var(--line-soft));}
  .card.focus{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);}

  .shots{position:relative; background:var(--surface-2);}
  .track{display:flex; overflow-x:auto; scroll-snap-type:x mandatory;
    scrollbar-width:none; -webkit-overflow-scrolling:touch;}
  .track::-webkit-scrollbar{display:none}
  .slide{flex:0 0 100%; scroll-snap-align:center; margin:0; min-width:0;}
  .ph{aspect-ratio:4/3; max-width:100%; overflow:hidden; background:var(--surface-2);}
  @media (min-width:560px){ .ph{aspect-ratio:16/10;} }
  .ph img, .ph svg{display:block; width:100%; height:100%; object-fit:cover;}

  .rank{position:absolute; left:12px; top:12px; z-index:3;
    min-width:44px; height:44px; padding:0 11px; border-radius:14px;
    display:flex; align-items:center; justify-content:center;
    background:rgba(21,36,42,.88); color:#fff;
    font-family:"Archivo",sans-serif; font-weight:800; font-size:22px; letter-spacing:-.04em;
    font-variant-numeric:tabular-nums; box-shadow:0 2px 8px -3px rgba(0,0,0,.45);}
  .card.first .rank{background:var(--accent);}
  /* The picked list has no positions, so it gets no mark anywhere — not a
     badge on the photograph, not a bullet in the margin. A dark slab holding
     a dot is furniture claiming an importance the mark does not have, and a
     faint glyph in the gutter reads as something that failed to render
     rather than as a decision. The gap where a numeral would be says it
     better than any of them.

     The badge is positioned absolutely, so hiding it moves nothing; the row
     numeral holds a column, so it is hidden rather than removed and the
     entries stay lined up with the ranked list. */
  .rank.dot{display:none;}

  .dots{position:absolute; right:14px; top:31px; z-index:3; display:flex; gap:5px;}
  .dots i{width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.5); display:block;}
  .dots i.on{background:#fff;}

  .capstrip{position:absolute; left:0; right:0; bottom:0; z-index:2;
    padding:38px 14px 10px; color:#fff;
    background:linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.7));}
  .capstrip .cap{display:block; font-size:13.5px; line-height:1.35;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
  .capstrip .credit{display:block; margin-top:3px; font-size:11.5px; color:rgba(255,255,255,.72);}
  .capstrip .credit:empty{display:none}
  .capstrip.bare{display:none}
  .capstrip .credit a{color:inherit; text-decoration:underline; text-underline-offset:2px;}
  .capstrip .credit .shop{font-weight:600; color:#fff;}

  .cnav{position:absolute; top:50%; transform:translateY(-50%); z-index:3;
    width:32px; height:32px; border-radius:50%; cursor:pointer; padding:0;
    background:rgba(255,255,255,.92); border:0; color:#15242A;
    font-size:16px; line-height:1; display:none; align-items:center; justify-content:center;}
  @media (hover:hover){ .cnav{display:flex} }
  .cnav.prev{left:8px} .cnav.next{right:8px}

  .cbody{padding:16px 18px 18px;}
  .name{margin:0; font-family:"Archivo",sans-serif; font-weight:700; font-size:21px;
    letter-spacing:-.02em; line-height:1.2; text-wrap:balance;}
  .trust{display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin:9px 0 0;
    font-size:15.5px; color:var(--ink-2);}
  .score{font-family:"Archivo",sans-serif; font-weight:700; font-size:18px; color:var(--ink);
    font-variant-numeric:tabular-nums;}
  .star{color:var(--gold);}
  .moved{font-weight:600; font-size:14px;}
  .moved.u{color:var(--up);}
  .moved.d{color:var(--down);}
  .alt{margin:5px 0 0; font-size:14px; color:var(--muted);}
  .picked{margin:7px 0 0; font-size:13.5px; line-height:1.45; color:var(--ink-2);
    padding-left:10px; border-left:2px solid var(--gold);}

  .addr{margin:6px 0 0; font-size:14.5px; color:var(--muted); line-height:1.4;}

  .cross{display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:12px;}
  .cross .cl{font-size:13.5px; color:var(--muted);}
  .crosschip{
    display:inline-flex; align-items:baseline; gap:5px; cursor:pointer;
    font-family:"Archivo",sans-serif; font-weight:600; font-size:13px; color:var(--ink-2);
    background:var(--surface-2); border:1px solid var(--line);
    border-radius:999px; padding:4px 11px;
  }
  .crosschip:hover{border-color:var(--ink-2); color:var(--ink);}
  .crossmore{
    cursor:pointer; font-family:"Archivo",sans-serif; font-weight:600; font-size:13px;
    color:var(--muted); background:transparent; border:1px dashed var(--line);
    border-radius:999px; padding:4px 11px;
  }
  .crossmore:hover{color:var(--ink-2); border-color:var(--ink-2);}

  .blurb{margin:14px 0 0; font-size:16px; color:var(--ink); line-height:1.6; max-width:62ch;}

  /* ---------- the rest of the list ----------
     Past the headline cards the ranking carries on in a quieter rhythm:
     a number, a thumbnail, a name and a score, with the whole card one
     tap underneath. The list keeps its 26px gap for the big cards, so
     the rows pull themselves back together. */
  .row + .row{margin-top:-18px;}
  .row{background:var(--surface); border:1px solid var(--line-soft); border-radius:14px;
    overflow:hidden;}
  .row.open{box-shadow:var(--shadow); border-color:var(--line);}

  .rowtop{display:grid; width:100%; align-items:center; gap:12px; cursor:pointer;
    grid-template-columns:28px 54px 1fr auto;
    padding:9px 13px 9px 11px; border:0; background:transparent; text-align:left;
    font-family:inherit; color:inherit;}
  .rowtop:hover{background:var(--surface-2);}
  .rnum{font-family:"Archivo",sans-serif; font-weight:800; font-size:17px; color:var(--muted);
    letter-spacing:-.04em; font-variant-numeric:tabular-nums; text-align:center;}
  .thumb{display:block; width:54px; height:54px; border-radius:10px; object-fit:cover;
    background:var(--surface-2);}
  .rowname{min-width:0;}
  /* Two lines for a name, because half a stall's name is no use to anyone. */
  .rowname b{font-family:"Archivo",sans-serif; font-weight:650; font-size:15.5px;
    letter-spacing:-.01em; line-height:1.25; color:var(--ink); overflow:hidden;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
  .rowname span{display:block; margin-top:2px; font-size:12.5px; color:var(--muted);
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .rowscore{text-align:right; font-variant-numeric:tabular-nums;}
  .rowscore b{display:block; font-family:"Archivo",sans-serif; font-weight:700; font-size:16px;
    color:var(--ink);}
  .rowscore{font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted);}
  .row.open .rowtop{background:var(--surface-2); border-bottom:1px solid var(--line-soft);}
  .rowbody .shots{border-radius:0;}
  .rowbody .rank{display:none;}

  .divider{display:flex; align-items:baseline; justify-content:space-between; gap:12px;
    margin:4px 2px -8px; padding-top:6px; border-top:1px solid var(--line);}
  .divider span{font-family:"IBM Plex Mono",monospace; font-size:9.5px; letter-spacing:.09em;
    text-transform:uppercase; color:var(--muted);}
  .divider em{font-style:normal; font-size:12px; color:var(--muted);}
  .rnum.dot{visibility:hidden;}

  /* ---------- not ranked, on our say-so ----------
     Under the ranking and visibly not part of it: no shadow, no card
     surface, a rule above instead. It should read as an aside, because
     that is exactly what it is. */
  .alsoran{margin:26px 2px 0; padding-top:18px; border-top:2px solid var(--line);}
  .alsoran h2{margin:0 0 5px; font-family:"Archivo",sans-serif; font-weight:800;
    font-size:15px; letter-spacing:-.015em; color:var(--ink);}
  .alsoran > p{margin:0 0 12px; font-size:13px; line-height:1.55; color:var(--muted);
    max-width:62ch;}
  .alist{list-style:none; margin:0; padding:0; display:grid; gap:1px;
    background:var(--line-soft); border-radius:10px; overflow:hidden;}
  .alist li{display:flex; align-items:baseline; justify-content:space-between; gap:12px;
    padding:10px 12px; background:var(--surface);}
  .aname{min-width:0; font-family:"Archivo",sans-serif; font-weight:650; font-size:14px;
    letter-spacing:-.01em;}
  .aname a{color:var(--ink);}
  .arate{flex:0 0 auto; font-family:"IBM Plex Mono",monospace; font-size:12.5px;
    color:var(--ink-2); white-space:nowrap;}
  .anum{color:var(--muted); font-size:11px;}
  .amore{margin:11px 0 0; font-size:13px;}
  .amore a{color:var(--accent); font-weight:600; text-decoration:none;}
  .amore a:hover{text-decoration:underline;}

  /* ---------- finding one stall ---------- */
  .finder{margin:14px 0 2px;}
  .finder input{
    width:100%; max-width:340px; font-family:"Public Sans",sans-serif; font-size:14px;
    background:var(--surface); color:var(--ink);
    border:1px solid var(--line); border-radius:999px; padding:9px 15px;
  }
  .finder input:focus{outline:none; border-color:var(--ink-2);
    box-shadow:0 0 0 3px var(--accent-soft);}
  .finder .count{margin:7px 2px 0; font-size:12.5px; color:var(--muted);}

  /* ---------- review tabs ---------- */
  .revbar{display:flex; gap:7px; margin-top:12px; flex-wrap:wrap;}
  .revtab{
    font-family:"Archivo",sans-serif; font-weight:600; font-size:12px;
    background:var(--surface-2); border:1px solid var(--line); color:var(--ink-2);
    border-radius:8px; padding:6px 11px; cursor:pointer;
  }
  .revtab[aria-expanded="true"]{background:var(--ink); border-color:var(--ink); color:var(--paper);}
  .revtab .c{font-family:"IBM Plex Mono",monospace; font-size:10px; opacity:.7; margin-left:4px;}
  .revpanel{margin-top:10px; border-top:1px solid var(--line-soft); padding-top:11px;}
  .srcnote{font-family:"IBM Plex Mono",monospace; font-size:9.5px; letter-spacing:.08em;
    text-transform:uppercase; color:var(--muted); margin:0 0 9px;}
  .rev{padding:9px 0; border-bottom:1px solid var(--line-soft);}
  .rev:last-of-type{border-bottom:0;}
  .revtop{display:flex; flex-wrap:wrap; align-items:baseline; gap:8px;}
  .revwho{font-family:"Archivo",sans-serif; font-weight:600; font-size:13px;}
  .stars{font-size:11px; color:var(--gold); letter-spacing:.5px;}
  .stars .off{color:var(--line);}
  .revwhen{font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted);}
  .memb{font-family:"IBM Plex Mono",monospace; font-size:9px; letter-spacing:.07em;
    text-transform:uppercase; padding:2px 5px; border-radius:4px;
    background:var(--violet-soft); color:var(--violet);}
  .memb.guest{background:var(--surface-2); color:var(--muted); border:1px solid var(--line);}
  .sc.xref{font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:var(--muted);
    background:var(--surface-2); padding:5px 8px;}
  .revtext{margin:4px 0 0; font-size:13px; color:var(--ink-2); line-height:1.5;}

  /* ---------- comment form ---------- */
  .cform{margin-top:12px; background:var(--surface-2); border:1px solid var(--line);
    border-radius:10px; padding:12px;}
  .cform h4{margin:0 0 3px; font-family:"Archivo",sans-serif; font-size:13px; font-weight:700;}
  .cform .state{margin:0 0 10px; font-size:11.5px; color:var(--muted); line-height:1.45;}
  .rateline{display:flex; align-items:center; gap:9px; margin-bottom:9px; flex-wrap:wrap;}
  .rateline .lb{font-family:"IBM Plex Mono",monospace; font-size:9.5px; letter-spacing:.09em;
    text-transform:uppercase; color:var(--muted);}
  .starpick{display:flex; gap:2px;}
  .starpick button{background:none; border:0; cursor:pointer; padding:1px 2px;
    font-size:17px; line-height:1; color:var(--line);}
  .starpick button.on{color:var(--gold);}
  .cform textarea{
    width:100%; font-family:"Public Sans",sans-serif; font-size:13.5px; resize:vertical;
    background:var(--surface); color:var(--ink); border:1px solid var(--line);
    border-radius:8px; padding:9px 11px; min-height:64px;
  }
  .cform input[type="text"]{
    width:100%; max-width:240px; margin-bottom:8px;
    font-family:"Public Sans",sans-serif; font-size:13.5px;
    background:var(--surface); color:var(--ink); border:1px solid var(--line);
    border-radius:8px; padding:8px 11px;
  }
  .cform textarea::placeholder, .cform input::placeholder, input::placeholder{color:var(--muted)}
  .crow{display:flex; align-items:center; gap:10px; margin-top:9px; flex-wrap:wrap;}
  .cmsg{font-size:12px; color:var(--up); margin:0;}
  .cmsg.wait{color:var(--accent);}

  /* ---------- empty state ---------- */
  .empty{background:var(--surface); border:1px dashed var(--line); border-radius:12px;
    padding:26px 18px; text-align:center;}
  .empty h3{margin:0 0 5px; font-size:16px; font-weight:700;}
  .empty p{margin:0; font-size:13px; color:var(--muted); max-width:44ch; margin-inline:auto;}

  .foot{margin:14px 0 0; padding:12px 14px; background:var(--surface-2);
    border:1px dashed var(--line); border-radius:10px;
    font-size:12.5px; color:var(--muted); line-height:1.5;}
  .foot b{color:var(--ink-2); font-weight:600;}

  /* ---------- panels / admin ---------- */
  .panel{background:var(--surface); border:1px solid var(--line); border-radius:12px;
    padding:16px; margin-bottom:14px; box-shadow:var(--shadow);}
  .panel h2{margin:0 0 3px; font-size:16px; font-weight:700; letter-spacing:-.015em;}
  .panel p.hint{margin:0 0 14px; font-size:12.5px; color:var(--muted);}
  .field{display:flex; flex-wrap:wrap; gap:8px; align-items:center;}
  .field input[type="text"], .field select{
    flex:1 1 180px; min-width:0; font-family:"Public Sans",sans-serif; font-size:14px;
    background:var(--surface-2); color:var(--ink); border:1px solid var(--line);
    border-radius:9px; padding:10px 12px;
  }
  .field select{flex:0 1 190px;}
  .said{margin:10px 0 0; font-size:12.5px; color:var(--up);}
  .said.ok{color:var(--up);}
  .said.bad{color:var(--accent);}
  .wrow{padding:12px 0; border-top:1px solid var(--line-soft);}
  .wrow:first-of-type{border-top:0;}
  .wtop{display:flex; align-items:baseline; justify-content:space-between; gap:12px;
    flex-wrap:wrap; margin-bottom:6px;}
  .wtop b{font-family:"Archivo",sans-serif; font-weight:700; font-size:14px;}
  .exempt{display:inline-flex; align-items:center; gap:5px; margin-right:8px;
    font-size:11.5px; color:var(--muted); white-space:nowrap; cursor:pointer;}
  #q-hits{margin-top:12px;}
  #q-hits td{vertical-align:middle;}

  .wsearch{display:flex; gap:9px; align-items:flex-start; margin-top:12px;
    padding-top:12px; border-top:1px solid var(--line-soft);
    font-size:12.5px; line-height:1.5; color:var(--muted); cursor:pointer;}
  .wsearch input{margin-top:2px; flex:0 0 auto;}
  .wsrc{margin:6px 0 0; font-size:11.5px; line-height:1.6; color:var(--muted);}
  .wsrc a{color:var(--ink-2);}

  /* The house description sits under the note it is not: indented, labelled,
     and visibly the shop's rather than the dish's. */
  .wabout{display:block; margin-top:8px; padding-left:12px;
    border-left:2px solid var(--line);}
  .wabout > span{display:block; margin-bottom:4px; font-size:11.5px; color:var(--muted);}
  textarea.atext{
    width:100%; font-family:"Public Sans",sans-serif; font-size:13px; line-height:1.5;
    background:var(--surface); color:var(--ink); border:1px solid var(--line);
    border-radius:9px; padding:8px 11px; resize:vertical;
  }
  textarea.wtext, #w-paste{
    width:100%; font-family:"Public Sans",sans-serif; font-size:13.5px; line-height:1.55;
    background:var(--surface-2); color:var(--ink); border:1px solid var(--line);
    border-radius:9px; padding:9px 11px; resize:vertical;
  }
  #w-paste{font-family:"IBM Plex Mono",monospace; font-size:12px;}

  /* The library and the eatery editor. The rows are labelled fields rather
     than a form: each one is a separate decision and gets its own line of
     explanation underneath. */
  .field input[type="search"]{
    flex:1 1 180px; min-width:0; font-family:"Public Sans",sans-serif; font-size:14px;
    background:var(--surface-2); color:var(--ink); border:1px solid var(--line);
    border-radius:9px; padding:10px 12px;
  }
  #e-panel .wrow > label{
    display:block; margin-bottom:6px; font-family:"Archivo",sans-serif;
    font-weight:700; font-size:13px; letter-spacing:-.01em;
  }
  #e-panel .wrow > input[type="text"]{
    width:100%; font-family:"Public Sans",sans-serif; font-size:14px;
    background:var(--surface-2); color:var(--ink); border:1px solid var(--line);
    border-radius:9px; padding:10px 12px;
  }
  #e-panel .wrow .field .num{
    font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--muted);
  }
  #e-panel .wrow p.hint{margin:6px 0 0; font-size:11.5px;}
  /* The venue checkbox is the one row whose label sits beside its control. */
  #e-panel .wrow > label:has(#e-venue){
    display:flex; align-items:center; gap:7px; margin-bottom:0; font-weight:600;
  }
  #lib-done{
    margin:0 0 14px; padding:10px 12px; background:var(--up-soft); color:var(--up);
    border-radius:10px; font-size:12.5px;
  }
  #lib-done a{color:inherit;}
  #lib-hits{margin-top:12px;}
  #lib-hits td{vertical-align:middle;}

  .bulkbar{
    display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px;
    padding:10px 12px; background:var(--surface-2); border:1px solid var(--line-soft);
    border-radius:10px;
  }
  .bulkbar .bulkn{
    font-family:"Archivo",sans-serif; font-weight:600; font-size:12.5px; color:var(--ink-2);
    min-width:92px;
  }
  .bulkbar .bulksep{flex:1 1 auto;}
  .bulkbar .btn:disabled{opacity:.45; cursor:not-allowed;}
  .bulkbar .said{margin:0;}
  table input[type="checkbox"]{width:15px; height:15px; accent-color:var(--accent); cursor:pointer;}

  .seg button .qn{
    display:inline-block; margin-left:6px; font-family:"IBM Plex Mono",monospace;
    font-size:9.5px; opacity:.7;
  }

  .tree{margin-top:4px;}
  .tnode{border-bottom:1px solid var(--line-soft); padding:11px 0;}
  .tnode:last-child{border-bottom:0; padding-bottom:0;}
  .tname{display:flex; align-items:center; gap:9px; flex-wrap:wrap;}
  .tname b{font-family:"Archivo",sans-serif; font-weight:700; font-size:14px;}
  .tcount{font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted);}
  .tdish{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; padding-left:2px;}
  .tdish span{font-size:12px; border:1px solid var(--line); border-radius:6px;
    padding:4px 9px; color:var(--ink-2); background:var(--surface-2);
    display:inline-flex; align-items:center; gap:6px;}
  .tdish span i{font-style:normal; font-family:"IBM Plex Mono",monospace; font-size:9px;
    letter-spacing:.06em; text-transform:uppercase;}
  .tdish span.ranked i{color:var(--up);}
  .tdish span.queued i{color:var(--accent);}
  .searchgo{
    margin-left:8px; cursor:pointer; font-family:"Archivo",sans-serif; font-weight:600;
    font-size:10.5px; color:var(--ink); background:var(--surface);
    border:1px solid var(--line); border-radius:5px; padding:2px 7px;
  }
  .searchgo:hover:not(:disabled){border-color:var(--ink-2);}
  .searchgo:disabled{color:var(--muted); cursor:progress; border-style:dashed;}

  .tablewrap{overflow-x:auto;}
  table{border-collapse:collapse; width:100%; min-width:520px;}
  th{text-align:left; font-family:"IBM Plex Mono",monospace; font-weight:500;
    font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted);
    padding:0 10px 8px 0; border-bottom:1px solid var(--line);}
  td{padding:11px 10px 11px 0; border-bottom:1px solid var(--line-soft);
    font-size:13.5px; vertical-align:middle;}
  td:last-child, th:last-child{padding-right:0; text-align:right;}
  td.catname{font-family:"Archivo",sans-serif; font-weight:600;}
  .pill{display:inline-block; font-family:"IBM Plex Mono",monospace; font-size:10px;
    letter-spacing:.06em; text-transform:uppercase; padding:3px 7px; border-radius:5px;}
  .pill.live{background:var(--up-soft); color:var(--up);}
  .pill.queue{background:var(--accent-soft); color:var(--accent);}
  .pill.conn{background:var(--up-soft); color:var(--up);}
  .num{font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--ink-2);}

  .mod{border:1px solid var(--line); border-radius:10px; padding:12px; margin-bottom:9px;
    background:var(--surface-2);}
  .mod:last-child{margin-bottom:0;}
  .modtop{display:flex; flex-wrap:wrap; gap:8px; align-items:baseline; margin-bottom:5px;}
  .modtop b{font-family:"Archivo",sans-serif; font-size:13px; font-weight:700;}
  .modwhere{font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted);}
  .mod p{margin:0 0 9px; font-size:13px; color:var(--ink-2); line-height:1.5;}
  .modact{display:flex; gap:7px;}

  .setrow{display:flex; align-items:center; justify-content:space-between; gap:14px;
    padding:11px 0; border-bottom:1px solid var(--line-soft);}
  .setrow:last-child{border-bottom:0; padding-bottom:0;}
  .setrow .lab{font-size:13.5px;}
  .setrow .lab small{display:block; color:var(--muted); font-size:12px; line-height:1.4;}
  .setrow input[type="number"], .setrow select{
    font-family:"IBM Plex Mono",monospace; font-size:13px; width:100px;
    background:var(--surface-2); color:var(--ink); border:1px solid var(--line);
    border-radius:8px; padding:7px 9px;
  }
  .setrow select{width:auto; max-width:190px;}

  .srcrule{display:flex; flex-direction:column; gap:9px; margin-top:4px;}
  .srcrule > div{display:flex; gap:10px; align-items:flex-start; font-size:13px; color:var(--ink-2);}
  .srcrule .key{flex:0 0 auto; font-family:"IBM Plex Mono",monospace; font-size:9.5px;
    letter-spacing:.08em; text-transform:uppercase; padding:3px 6px; border-radius:5px; margin-top:1px;}
  .srcrule .key.rank{background:var(--ink); color:var(--paper);}
  .srcrule .key.ctx{background:var(--surface-2); color:var(--muted); border:1px solid var(--line);}
  .srcrule .key.own{background:var(--violet-soft); color:var(--violet);}

  /* ---------- admin gate ---------- */
  .gate{max-width:380px; margin:42px auto; background:var(--surface);
    border:1px solid var(--line); border-radius:13px; padding:22px; box-shadow:var(--shadow);}
  .gate .lockrow{display:flex; align-items:center; gap:9px; margin-bottom:14px;}
  .gate .lock{width:30px; height:30px; border-radius:8px; background:var(--ink); color:var(--paper);
    display:flex; align-items:center; justify-content:center; font-size:14px;}
  .gate h2{margin:0; font-size:16px; font-weight:700;}
  .gate .route{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--muted);}
  .gate label{display:block; font-family:"IBM Plex Mono",monospace; font-size:9.5px;
    letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:10px 0 4px;}
  .gate input{width:100%; font-family:"Public Sans",sans-serif; font-size:14px;
    background:var(--surface-2); color:var(--ink); border:1px solid var(--line);
    border-radius:9px; padding:10px 12px;}
  .gate .btn{width:100%; margin-top:14px;}
  .gate .note{margin:12px 0 0; font-size:11.5px; color:var(--muted); line-height:1.5;}

  footer.end{padding:20px 0 30px; color:var(--muted); font-size:11.5px; line-height:1.6;
    border-top:1px solid var(--line); margin-top:22px;}
  footer.end a, .linkish{color:var(--ink-2); text-decoration:underline; text-underline-offset:2px;
    cursor:pointer; background:none; border:0; padding:0; font:inherit;}

  /* ---------- one place ----------
     The list is about a dish; this is about a shop. It carries the house
     description, every list the place is ranked in with the note for each,
     and the block the owner will one day fill in. */
  .backlink{display:inline-block; margin:14px 0 0; font-family:"Archivo",sans-serif;
    font-weight:600; font-size:13.5px; color:var(--ink-2); text-decoration:none;}
  .backlink:hover{color:var(--ink);}
  .loading{margin:28px 2px; color:var(--muted); font-size:15px;}

  .pshots{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px;}
  .pshots > .ptile{flex:999 1 min(100%,520px);}
  .pgrid{flex:1 1 260px; min-width:0; display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;}
  .ptile{min-width:0; height:var(--h); border-radius:16px; overflow:hidden;
    background:var(--surface-2);}
  .ptile img, .ptile svg{display:block; width:100%; height:100%; object-fit:cover;}
  .ptile.more{position:relative;}
  .ptile.more > span{position:absolute; inset:0; display:flex; align-items:center;
    justify-content:center; background:rgba(21,36,42,.58); color:#fff;
    font-family:"Archivo",sans-serif; font-weight:700; font-size:17px;}
  /* A hero and four thumbnails is most of a phone screen before a word is
     read. Below the fold the page is writing, so on a phone the photographs
     are one picture and a count. */
  .pcount{position:absolute; right:12px; bottom:12px;
    background:rgba(21,36,42,.72); color:#fff; border-radius:999px;
    padding:6px 12px; font-family:"Archivo",sans-serif; font-weight:600; font-size:12.5px;}
  @media (min-width:700px){ .pcount{display:none} }
  @media (max-width:699px){
    .pgrid{display:none}
    .pshots > .ptile{position:relative; height:270px;}
  }

  .pcredit{margin:8px 2px 0; font-size:12.5px; color:var(--ink-2);}
  .pcredit b{font-weight:600;}

  .pcols{display:flex; flex-wrap:wrap; gap:40px; margin-top:26px;}
  .pmain{flex:999 1 min(100%,540px); min-width:0;}
  .pside{flex:1 1 280px; min-width:0;}

  .pname{margin:0; font-family:"Archivo",sans-serif; font-weight:800;
    font-size:clamp(27px,6vw,38px); line-height:1.08; letter-spacing:-.035em;
    text-wrap:balance;}
  .paddr{margin:8px 0 0; font-size:15.5px; color:var(--ink-2);}
  .ptrust{display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; margin-top:14px;
    font-size:15.5px; color:var(--ink-2);}
  .pabout{margin:20px 0 0; font-size:17px; line-height:1.62; max-width:62ch;}

  .ph2{margin:36px 0 0; font-family:"Archivo",sans-serif; font-weight:700; font-size:20px;
    letter-spacing:-.02em;}
  .psub{margin:6px 0 0; font-size:14.5px; color:var(--ink-2); max-width:62ch;}

  .apps{display:flex; flex-direction:column; gap:12px; margin-top:16px;}
  .app{display:flex; gap:18px; align-items:flex-start; background:var(--surface);
    border:1px solid var(--line-soft); border-radius:18px; padding:20px 22px;}
  .appnum{flex:0 0 auto; width:58px; text-align:right;
    font-family:"Archivo",sans-serif; font-weight:800; font-size:42px; line-height:1;
    letter-spacing:-.05em; color:var(--muted); font-variant-numeric:tabular-nums;}
  .appnum.first{color:var(--accent);}
  /* An appearance with no position keeps the column, so the entries stay
     lined up, and puts nothing in it. */
  .appnum.none{visibility:hidden;}
  .apptag{display:inline-block; margin-left:7px; vertical-align:middle;
    font-family:"IBM Plex Mono",monospace; font-size:9.5px; letter-spacing:.07em;
    text-transform:uppercase; color:var(--muted); border-bottom:0;}
  .appbody{flex:1 1 auto; min-width:0;}
  .appdish{font-family:"Archivo",sans-serif; font-weight:700; font-size:18px;
    color:var(--ink); text-decoration:none; border-bottom:2px solid var(--line);}
  .appdish:hover{border-bottom-color:var(--ink-2);}
  .appnote{margin:10px 0 0; font-size:15.5px; line-height:1.6;}
  .appnote.muted{color:var(--muted);}
  .appmore{display:inline-block; margin-top:11px; font-family:"Archivo",sans-serif;
    font-weight:600; font-size:13.5px; color:var(--accent); text-decoration:none;
    border-bottom:1px solid color-mix(in srgb, var(--accent) 35%, transparent);}

  .talk{background:var(--surface); border:1px solid var(--line-soft); border-radius:16px;
    padding:6px 18px 14px; margin-top:14px;}
  .talk .srcnote{margin:10px 0 0;}

  .pcard{background:var(--surface); border:1px solid var(--line-soft); border-radius:18px;
    padding:16px 18px; margin-bottom:14px;}
  .pcard h3{margin:0; font-family:"Archivo",sans-serif; font-size:15px; font-weight:700;}
  .pcard p{margin:8px 0 0; font-size:13.5px; line-height:1.6; color:var(--ink-2);}
  .pcard a{display:inline-block; margin-top:12px; font-family:"Archivo",sans-serif;
    font-weight:600; font-size:13.5px; color:var(--ink-2);
    text-decoration:none; border-bottom:1px solid var(--line);}
  .pcard.claim{background:var(--surface-2); border-style:dashed; border-color:var(--line);}
  .pcard .soon{font-family:"IBM Plex Mono",monospace; font-size:10.5px;
    letter-spacing:.06em; color:var(--muted);}

  .name a.toplace{color:inherit; text-decoration:none;
    border-bottom:2px solid color-mix(in srgb, var(--ink) 16%, transparent);}
  .name a.toplace:hover{border-bottom-color:var(--accent);}

  @media (min-width:1040px){
    .pshots > .ptile{flex:999 1 520px;}
    .pcols{gap:56px;}
    .pname{font-size:40px;}
  }

  @media (prefers-reduced-motion: reduce){*{animation:none !important; transition:none !important;}}

  /* ================= desktop =================
     Up to here the page is one column, which is right for a phone and wrong
     for a window three times as wide: the controls scroll away, the cards
     become slabs you see one and a half of at a time, and the ranking has to
     share its column with everything else.

     So the machinery goes into a column of its own that stays put, the
     ranking gets the rest, and the cards lie down. Nothing below this line
     reaches a phone. */
  @media (min-width:1040px){
    .wrap{max-width:1180px; padding-inline:28px;}

    #view-pub{
      display:grid;
      grid-template-columns:288px minmax(0,1fr);
      column-gap:56px;
      align-items:start;
    }
    .side{grid-column:1; grid-row:1; position:sticky; top:78px; padding-bottom:28px;}
    #list{grid-column:2; grid-row:1; margin-top:14px;}
    /* The aside follows the ranking down its own column, not into the sticky
       one. Row 2 of column 2, under the list rather than beside it. */
    #alsoran{grid-column:2; grid-row:2; margin-left:84px;}

    /* The list keeps a gutter down its left edge. The rank numerals live
       there — out of the photographs, where they had to sit on a phone, and
       into a column of their own that reads as a spine down the page. */
    .list{padding-left:84px;}

    .rank{
      left:-84px; top:-4px; background:none; box-shadow:none; padding:0;
      min-width:68px; height:auto; display:block; text-align:right;
      color:color-mix(in srgb, var(--ink) 40%, var(--paper));
      font-size:52px; line-height:1; letter-spacing:-.05em;
    }
    .card.first .rank{background:none; color:var(--accent); font-size:62px;}
    /* The spine stays empty on the picked list for the same reason, and the
       84px gutter is kept so its cards line up with the ranked list's. */

    /* A card lies down: the photograph beside the writing rather than above
       it, which is the difference between seeing one stall and seeing four. */
    .card{display:grid; grid-template-columns:42% minmax(0,1fr); align-items:stretch;
      overflow:visible;}
    .card.first{grid-template-columns:50% minmax(0,1fr);}
    /* The card stops clipping so the numeral can sit outside it. The rounding
       moves down to the photo track — not to .shots, which is the numeral's
       own parent and would clip it just as surely. */
    .card .shots{height:100%;}
    .card .track{height:100%; border-radius:19px 0 0 19px;}
    .card .capstrip{border-bottom-left-radius:19px;}
    .card .ph{aspect-ratio:auto; height:100%; min-height:238px;}
    .card.first .ph{min-height:300px;}
    .card .cbody{padding:22px 26px 24px; align-self:center;}
    .card.first .name{font-size:25px;}

    /* Rows line their numerals up with the cards' — one spine, not two. The
       row stops clipping for the same reason the card did, so the backgrounds
       that used to rely on it round themselves instead. A row that is open
       carries the card's own numeral inside it; on a phone that is the only
       one there is, here it would be the number twice. */
    .row{position:relative; overflow:visible;}
    .rowtop{border-radius:13px;}
    .row.open .rowtop{border-radius:13px 13px 0 0;}
    .rowbody .rank{display:none;}
    /* An opened row shows the same card as the five above it, so it is laid
       out the same way rather than reverting to the stacked phone shape. */
    .rowbody{display:grid; grid-template-columns:42% minmax(0,1fr); align-items:stretch;}
    .rowbody .shots{height:100%;}
    .rowbody .track{height:100%; border-radius:0 0 0 12px;}
    .rowbody .ph{aspect-ratio:auto; height:100%; min-height:220px;}
    .rowbody .cbody{padding:20px 24px 22px; align-self:center;}
    .row + .row{margin-top:-14px;}
    .rowtop{grid-template-columns:62px minmax(0,1fr) auto; padding:11px 16px;}
    .rnum{
      position:absolute; left:-84px; top:50%; transform:translateY(-50%);
      width:68px; text-align:right; font-size:30px;
    }
    .rowname b{font-size:16.5px; -webkit-line-clamp:1;}
    .thumb{width:62px; height:62px;}

    .divider{margin:14px 2px -4px;}

    /* In a column of its own the head can breathe, and the lede no longer
       needs a measure holding it back. */
    .runhead{margin:18px 0 0;}
    .runhead h1{font-size:40px;}
    .lede{font-size:16px; max-width:none;}
    .meta{flex-direction:column; align-items:flex-start; gap:10px;}
    .methodbody{max-width:none; font-size:14.5px;}
    .sortbar{margin-top:18px;}
    .seg{width:100%;}
    .seg button{flex:1 1 auto; text-align:center;}
    .finder{margin-top:14px;}
    .finder input{max-width:none;}
    .rail{margin-top:0;}
    #cuisines{margin-top:4px;}
  }

  /* A tall window is the one place a column can afford to sit still. A short
     one would cut the bottom off it, so there it scrolls with the page. */
  @media (min-width:1040px) and (max-height:700px){
    .side{position:static;}
  }

/* ---------- sign-in overlay ---------- */
.overlay{
  position:fixed; inset:0; z-index:60;
  background:color-mix(in srgb, var(--ink) 42%, transparent);
  backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center;
  padding:16px; overflow-y:auto;
}
.overlay .gate{margin:auto; width:100%; max-width:380px;}
.overlay .note .linkish{font-size:11.5px;}
.gate input[type="email"], .gate input[type="password"], .gate input[type="text"]{
  width:100%; font-family:"Public Sans",sans-serif; font-size:14px;
  background:var(--surface-2); color:var(--ink);
  border:1px solid var(--line); border-radius:9px; padding:10px 12px;
}

  /* A dish chip is an anchor so it can be opened in a new tab and followed
     by a crawler; these three lines make it sit like the buttons beside it. */
  a.chip{ display:inline-block; line-height:1.15; text-decoration:none; }
