/* The marketplace home page (views/home.js, 2026-11-26): its own file, app.css is at its budget. Linked by the
   worker in the head and by the view. */
.hero.hero-compact{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start;padding-block:16px 4px;max-width:760px}
.hero-compact h1{font-size:clamp(26px,3.6vw,40px);line-height:1.1;margin:0}
.hero-search{display:flex;gap:8px;min-width:0}
.hero-search input{flex:1 1 auto;min-width:0;height:48px;padding-inline:16px;font-size:16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);box-sizing:border-box}
.hero-search input:focus-visible{outline:2px solid var(--spruce);outline-offset:1px}
.hero-search .btn{flex:none;height:48px;border-radius:999px;padding-inline:20px}
.hero-compact .mkt-stats{margin:0;font-size:15px;font-weight:600;color:var(--spruce)}
.home-rail .sec-h{align-items:flex-end}
/* A rail with no subtitle under its heading: "See all" on the heading's line (2026-11-27, Mars's screenshot). */
.home-rail[data-rail="games"] .sec-h{align-items:baseline}
.deal-tile .deal-was{margin-left:6px;font-size:13px;color:var(--muted)}
/* Phones: the header's own search sits right above; the hero keeps the title and the live count. */
@media (max-width:760px){
  .hero.hero-compact{padding-block:8px 0}
  .hero-search{display:none}
}
/* Phones (owner 2026-11-26): every rail scrolls sideways, Just listed included (app.css made it a grid of 6), and the
   latest articles are a rail too. The articles rule carries #app: home.css comes before app.css in the page, so a tie
   went to app.css's ".latest-cards.n3 {1fr}" and the first article became a 1fr column squeezed to nothing between two
   auto columns, its title under the second card (owner report 2026-11-27; ux homerails). */
@media (max-width:560px){
  #app #feed .sec:first-child .rail{grid-auto-flow:column;grid-template-columns:none;overflow-x:auto}
  #app #feed .sec:first-child .rail>:nth-child(n+7){display:block}
  #app [data-rail=guides] .latest-cards{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:min(78vw,280px);gap:14px;overflow-x:auto;scroll-snap-type:x proximity;
    margin-inline:calc(var(--gut) * -1);padding-inline:var(--gut);padding-bottom:10px;scroll-padding-inline:var(--gut)}
  #app [data-rail=guides] .latest-cards>li{scroll-snap-align:start;min-width:0}
}
/* Kontora Weekly box (newsletter.js, source home): its place kept before the form loads, so nothing below moves. */
/* Kontora Weekly band (owner 2026-11-28): right under "Just listed", Kontora green in both themes (fixed colours, so the band reads the same at night), a big two-line headline, the field and a bright gold button. Contrast: white on #1D5A4A 7.9:1, ink on #E8B656 10:1, the gold button against the green 4.6:1. min-height keeps the rails below still while newsletter.js loads; a subscribed member or a closed list hides the slot. */
.home-nl{margin-top:32px;min-height:270px}:lang(fr) .home-nl{min-height:312px}.home-nl .nl{margin-top:0;background:#1D5A4A;color:#fff;border:0;border-radius:var(--r);padding:clamp(22px,4vw,40px) clamp(18px,4vw,44px);gap:10px}.home-nl .nl .nl-eyebrow{margin:0;font:700 12.5px/1.2 var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:#CFE6DD}.home-nl .nl .nl-h.nl-big{margin:0;font-size:clamp(26px,4.2vw,40px);line-height:1.08;max-width:17ch;color:#fff;text-wrap:balance}.home-nl .nl .nl-lede{margin:0;font-size:15.5px;line-height:1.45;color:#fff;max-width:52ch}.home-nl .nl .nl-how{color:#fff;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;display:inline-block}.home-nl .nl .nl-form{gap:10px}.home-nl .nl .nl-row .fld label{color:#fff;font-weight:600}.home-nl .nl .nl-row input{background:#fff;color:#13201B;border:2px solid #fff;min-height:48px;font-size:16px}.home-nl .nl .nl-row input:focus-visible{outline:3px solid #E8B656;outline-offset:2px}.home-nl .nl .btn.primary{background:#E8B656;color:#13201B;border-color:#E8B656;min-height:48px;padding-inline:22px;font-weight:700}.home-nl .nl .btn.primary:hover{background:#F2C973;border-color:#F2C973}.home-nl .nl .btn.primary:focus-visible{outline:3px solid #fff;outline-offset:3px}.home-nl .nl .nl-fine,.home-nl .nl .nl-fine a,.home-nl .nl .nl-done,.home-nl .nl .nl-msg{color:#fff}.home-nl .nl a:focus-visible{outline:2px solid #fff;outline-offset:2px}.home-nl .nl .nl-msg.bad{color:#FFD9D4}@media (min-width:900px){.home-nl .nl{grid-template-columns:minmax(0,1fr) minmax(320px,440px);column-gap:48px;align-items:center}.home-nl .nl>*{grid-column:1}.home-nl .nl>.nl-form{grid-column:2;grid-row:1/span 3}.home-nl .nl .nl-row .fld{flex-basis:200px}}@media (min-width:600px) and (max-width:899px){.home-nl{min-height:340px}:lang(fr) .home-nl{min-height:395px}}@media (max-width:599px){.home-nl .nl .nl-row .btn{flex:1 1 100%}.home-nl{min-height:385px}:lang(fr) .home-nl{min-height:417px}}@media (max-width:479px){.home-nl{min-height:403px}:lang(fr) .home-nl{min-height:453px}}@media (max-width:359px){.home-nl{min-height:425px}:lang(fr) .home-nl{min-height:493px}}
/* A rail's spare tiles (views/home.js feedRails) stay hidden until a picture fails, whatever a rule above says. */
.rail>[hidden]{display:none!important}

/* Other games in stock (owner 2026-11-27: "weak", a picture per game): a card per game with its newest set's sealed
   product (views/homegames.js, our own catalogue), its name and how many are for sale. Fewer games than a row holds:
   the group is centred, with the usual gap. The picture's square is
   kept from the first paint, tinted with the game's colour until the picture comes. */
.home-games{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,260px));justify-content:start;gap:16px}
.home-game{display:grid;gap:4px;align-content:start;padding:10px 10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);color:var(--ink);text-decoration:none;min-width:0}
.home-game:hover{border-color:var(--muted)}
.home-game b{font:700 15px/1.2 var(--f-display);overflow-wrap:anywhere}
.home-game .muted{font-size:13px}
.hg-img{display:grid;place-items:center;aspect-ratio:1;margin-bottom:4px;border-radius:calc(var(--r) - 4px);background:hsl(var(--h) 60% 50% / .12);overflow:hidden}
.hg-img>*{width:100%;height:100%;object-fit:contain}
/* The game's tint only while the picture loads (or when there is none): no coloured bands around a wide box. */
.hg-img:not(:empty){background:none}
@media (max-width:520px){.home-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
