/* The phone-first Pennyworth house front (auctions/house_front.py, owner 2026-11-25).
   One type system: two families (the bidder sans and the brand serif) and five sizes.
   One primary action (the theme's action colour), one quiet secondary style.
   One icon set (templates/auctions/_house_front_icons.html); no emoji or text symbols.
   Meaning never rides on colour alone: every state carries words.
   Gold (#D4AF37) appears only as an accent on the dark brand band. */
.pw-front {
  --f-xs:.8125rem; --f-sm:.9375rem; --f-md:1rem; --f-lg:1.25rem; --f-xl:1.75rem;
  --f-serif:var(--serif,"Hoefler Text",Georgia,"Times New Roman",serif);
  --f-radius:14px; --f-navy:#10243b; --f-gold:#D4AF37;
  /* Filled shapes (state pill, step numbers): navy on light, a lighter navy with a rim on dark. */
  --f-shape:#10243b; --f-shape-rim:#10243b;
  font-size:var(--f-md); line-height:1.5;
}
html.calm:not(.light) .pw-front { --f-shape:#2c4a70; --f-shape-rim:#9db3cf; }
.pw-front [id] { scroll-margin-top:calc(var(--bhnav-height, 68px) + 12px); }
.pw-front h1,.pw-front h2,.pw-front h3 { overflow-wrap:anywhere; }
.pw-front a { text-underline-offset:.18em; }
.front-icon-set { position:absolute; width:0; height:0; overflow:hidden; }
.front-icon { width:1.1em; height:1.1em; flex:none; fill:none; stroke:currentColor; stroke-width:2;
  stroke-linecap:round; stroke-linejoin:round; vertical-align:-.15em; }
.front-visually-hidden { font-size:var(--f-lg); position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* Owner-only status line (preview, or "On"). */
.front-owner-bar { margin:0; padding:.6rem 1rem; background:var(--f-navy); color:#fff; font-size:var(--f-sm); text-align:center; }
.front-owner-bar a { color:#fff; }

/* Brand block: one short band, then the house tabs on one row. */
.front-brand { color:#fff; }
.front-band { background:var(--f-navy); border-bottom:3px solid var(--f-gold); }
.front-brand-inner { max-width:1120px; margin:0 auto; padding:.45rem 1rem; display:flex; align-items:center; gap:.75rem; }
.front-badge { width:46px; height:auto; flex:0 0 46px; display:block; }
.front-brand-copy { min-width:0; }
.front-brand h1 { margin:0; font-family:var(--f-serif); font-weight:500; font-size:var(--f-lg); line-height:1.2; color:#fff; }
.front-brand-line { margin:.1rem 0 0; font-size:var(--f-xs); line-height:1.35; color:#dfe6ee; }
/* The narrowest phones keep the brand to two lines: the name and where pickup is. */
@media (max-width:399px) { .front-brand-what { display:none; } }
.front-tabs { display:flex; padding:0 .25rem; background:var(--card); border-bottom:1px solid var(--line); }
.front-tabs a { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; min-height:44px; padding:0 .35rem;
  font-size:var(--f-sm); font-weight:600; line-height:1.2; text-align:center; color:var(--ink); text-decoration:none;
  border-bottom:2px solid transparent; }
.front-tabs a[aria-current="page"] { border-bottom-color:var(--ink); font-weight:750; }
.front-tabs a:hover { text-decoration:underline; }
/* Short tab names on phones (up to about 460 px, so 412 px phones keep one line); the full name
   stays the link's name for screen readers. */
.front-tab-short { display:none; }
@media (max-width:460px) {
  .front-tab-short { display:inline; }
  .front-tab-long { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}

/* Page rhythm. */
.pw-front .front-main { padding:.5rem 0 1.25rem; }
.pw-front .front-main > .wrap { max-width:1120px; padding:0 1rem; }
.pw-front .storefront-page { display:flex; flex-direction:column; gap:1rem; }
.pw-front .storefront-module { min-width:0; }
.front-section { min-width:0; }
.pw-front .front-h2 { margin:0 0 .5rem; font-family:var(--f-serif); font-weight:500; font-size:var(--f-lg); line-height:1.25; color:var(--ink); }
.front-count { font-family:var(--sans); font-size:var(--f-xs); font-weight:700; color:var(--muted); vertical-align:middle;
  border:1px solid var(--line); border-radius:999px; padding:.05rem .5rem; margin-left:.3rem; }
.front-more { margin:.5rem 0 0; font-size:var(--f-sm); }
.front-more a { font-weight:650; color:var(--ink); }

/* Buttons: one primary; Share is a quiet icon button beside it. */
.pw-front .share-btn { font-size:var(--f-sm); }
.front-enter { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:48px; padding:.6rem 1.2rem;
  border-radius:10px; background:var(--gold); color:var(--on-gold); font-size:var(--f-md); font-weight:750; text-decoration:none; }
.front-enter:hover { filter:brightness(1.08); text-decoration:underline; }
.front-enter:focus-visible,.front-secondary:focus-visible,.front-row-link:focus-visible,.front-chips a:focus-visible,
.front-video:focus-visible,.sold-card:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.front-secondary { display:inline-flex; align-items:center; gap:.4rem; min-height:44px; padding:.5rem 1rem; border-radius:10px;
  border:1.5px solid var(--ink); background:transparent; color:var(--ink); font-size:var(--f-sm); font-weight:700; text-decoration:none; }
.front-secondary:hover { text-decoration:underline; }
.pw-front .front-actions .share-btn { flex:none; width:48px; min-width:48px; height:48px; min-height:48px; padding:0;
  justify-content:center; border-radius:10px; border:1.5px solid var(--line); background:transparent; color:var(--ink); }
.pw-front .front-actions .share-btn-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* The next sale to close. */
.pw-front .home-auctions { display:block; }
.front-sale { display:flex; flex-direction:column; background:var(--card); color:var(--ink); border:1px solid var(--line);
  border-radius:var(--f-radius); overflow:hidden; }
/* An explicit frame height, so every engine draws the same card (Chromium ignored an
   aspect-ratio here). It follows the visible screen height: the small viewport (100svh) is the
   page area while the browser's own bars show, so a tall phone gets a large photo and the
   shortest screens still show the bid button. Browsers without svh use the width rule. The
   band is white in both themes: stock photographs are shot on white and sit in it, not on it. */
.front-photo { flex:none; display:flex; flex-direction:column; height:clamp(108px,30vw,200px);
  height:clamp(108px, calc(100svh - 380px), 240px); min-height:0; margin:0;
  padding:.5rem .5rem .3rem; box-sizing:border-box; background:#fff; border-bottom:1px solid var(--line); }
.front-photo img { display:block; flex:1 1 auto; min-height:0; width:100%; height:100%; object-fit:contain; }
/* The truth-in-listing label: quiet caption text under the photo, never over the product. */
.front-photo-tag { flex:none; margin:.2rem 0 0; font-size:var(--f-xs); line-height:1.35; color:#58665f; }
.front-photo-tag[hidden] { display:none; }
.front-photo-empty { display:flex; align-items:center; justify-content:center; height:100%; color:var(--muted); font-size:var(--f-sm); }
.front-sale-body { padding:.6rem 1rem .85rem; display:flex; flex-direction:column; gap:.4rem; }
.front-sale-body p { margin:0; }
.front-state { align-self:flex-start; display:inline-flex; align-items:center; gap:.35rem; padding:.15rem .6rem; border-radius:999px;
  font-size:var(--f-xs); font-weight:750; border:1px solid var(--line); color:var(--ink); background:var(--card); }
.front-state.is-next,.front-state.is-closing_now { background:var(--f-shape); color:#fff; border-color:var(--f-shape-rim); }
.front-state.is-next .front-icon,.front-state.is-closing_now .front-icon { color:var(--f-gold); }
.pw-front .front-sale-title { margin:0; font-family:var(--f-serif); font-weight:500; font-size:var(--f-lg); line-height:1.25; }
.front-sale-title a { color:var(--ink); text-decoration:none; }
.front-sale-title a:hover { text-decoration:underline; }
.front-when { font-size:var(--f-sm); color:var(--ink); }
.front-when-label { color:var(--muted); }
.front-when time { white-space:nowrap; }
.front-countdown { font-weight:750; white-space:nowrap; }
.front-actions { display:flex; align-items:center; gap:.5rem; }
.front-actions .front-enter { flex:1 1 auto; }
.front-facts { font-size:var(--f-xs); color:var(--muted); }
.front-facts strong { color:var(--ink); }
/* A larger touch target for the inline link without changing the line. */
.front-facts a { color:var(--ink); display:inline-block; padding:.65rem 0; margin:-.65rem 0; }
.front-featured-empty { padding:1.25rem 1rem; border:1px solid var(--line); border-radius:var(--f-radius); background:var(--card); }
.pw-front .front-featured-empty h2 { margin:0 0 .4rem; font-family:var(--f-serif); font-weight:500; font-size:var(--f-lg); }
.front-featured-empty p { margin:0 0 .8rem; color:var(--muted); font-size:var(--f-sm); }

/* Compact rows: other open sales, previews, past auctions. */
.front-row-list { list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.front-row-link { display:flex; align-items:center; gap:.75rem; min-height:72px; padding:.5rem .75rem .5rem .5rem; border:1px solid var(--line);
  border-radius:12px; background:var(--card); color:var(--ink); text-decoration:none; }
.front-row-link:hover strong { text-decoration:underline; }
.front-row-photo { flex:0 0 56px; width:56px; height:56px; border-radius:8px; background:var(--media); overflow:hidden; }
.front-row-photo img { width:100%; height:100%; object-fit:contain; display:block; }
.front-row-copy { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:.1rem; }
.front-row-copy strong { font-size:var(--f-md); font-weight:700; line-height:1.3; }
.front-row-when,.front-row-facts { font-size:var(--f-xs); color:var(--muted); line-height:1.4; }
.front-row-when { color:var(--ink); }
.front-row-go { flex:none; font-size:var(--f-lg); font-weight:700; color:var(--ink); }

/* Search. Its border meets 3:1 against the field in both themes. */
.front-search { display:flex; gap:.5rem; }
.front-search input[type=search] { flex:1; min-width:0; min-height:48px; border:1.5px solid var(--muted); border-radius:10px;
  background:var(--field); color:var(--ink); font:inherit; font-size:var(--f-md); padding:.5rem .8rem; }
.front-search button { min-height:48px; padding:.5rem 1rem; border:1.5px solid var(--ink); border-radius:10px; background:transparent;
  color:var(--ink); font:inherit; font-size:var(--f-sm); font-weight:700; cursor:pointer; }

/* Trust: how it works and the house's own terms, each fact once. */
.front-trust { padding:.8rem 1rem; border:1px solid var(--line); border-radius:var(--f-radius); background:var(--card); }
.front-steps { list-style:none; margin:0 0 .55rem; padding:0; display:grid; gap:.35rem; }
.front-steps li { display:flex; gap:.6rem; margin:0; align-items:flex-start; font-size:var(--f-sm); line-height:1.45; }
.front-step-n { flex:0 0 1.6rem; height:1.6rem; border-radius:50%; background:var(--f-shape); color:#fff; border:1px solid var(--f-shape-rim);
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; font-size:var(--f-xs); font-weight:750; }
.front-facts-list { list-style:none; margin:0; padding:.6rem 0 0; border-top:1px solid var(--line); display:grid; gap:.4rem; }
.front-facts-list li { display:flex; gap:.6rem; align-items:flex-start; font-size:var(--f-sm); line-height:1.45; }
.front-facts-list .front-icon { width:1.6rem; height:1.25rem; margin-top:.05rem; color:var(--ink); }
.front-facts-list a,.front-steps a { color:var(--ink); font-weight:650; }
.front-links { margin:.3rem 0 0; font-size:var(--f-sm); }
.front-links a { display:inline-flex; align-items:center; gap:.3rem; min-height:44px; color:var(--ink); font-weight:650; }

/* Marketplace shelf: today's component, seated full width (its colour emoji hidden on this page:
   the front uses one monochrome icon set). */
.pw-front .front-market > .market-shelf { margin:0; }
.pw-front .front-market .market-shelf-mark { display:none; }

/* Recently sold: a short strip of proof (titles and months, never prices). */
.front-recent .sold-grid { list-style:none; margin:0; padding:3px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.front-recent .sold-grid li { min-width:0; }
.front-recent .sold-card { display:flex; flex-direction:column; gap:.25rem; height:100%; box-sizing:border-box; padding:.5rem;
  border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--ink); text-decoration:none; }
.front-recent .sold-card img { width:100%; height:80px; object-fit:contain; background:var(--media); border-radius:8px; }
.front-recent .sold-mark,.front-recent .sold-more { font-size:var(--f-xs); color:var(--muted); }
.front-recent .sold-more { text-decoration:underline; }
.pw-front .front-recent .sold-card h3 { margin:0; font-family:var(--sans); font-size:var(--f-sm); font-weight:650; line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.front-recent .sold-card:hover h3 { text-decoration:underline; }

/* Account shortcuts: one wrapped line of links. */
.front-inline-links { display:flex; flex-wrap:wrap; gap:0 1.1rem; font-size:var(--f-sm); }
.front-inline-links a { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); font-weight:650; }

/* Chips: departments. */
.front-chips { display:flex; flex-wrap:wrap; gap:.5rem; margin:0; }
.front-chips a { display:inline-flex; align-items:center; min-height:44px; padding:.35rem .85rem; border:1px solid var(--line);
  border-radius:999px; background:var(--card); color:var(--ink); font-size:var(--f-sm); font-weight:600; text-decoration:none; }
.front-chips a:hover { text-decoration:underline; border-color:var(--ink); }
.front-open-now { margin-top:.5rem; }
.front-open-now > summary { list-style:none; display:inline-flex; align-items:center; gap:.4rem; min-height:44px; padding:0 .85rem;
  border:1px solid var(--muted); border-radius:10px; cursor:pointer; font-size:var(--f-sm); font-weight:650; color:var(--ink); }
.front-open-now > summary::-webkit-details-marker { display:none; }
.front-open-now[open] .front-chevron { transform:rotate(180deg); }
.front-open-now .front-chips { padding-top:.5rem; }

/* Phones: long lists scroll sideways inside themselves; every link stays in the page. */
@media (max-width:699px) {
  .front-departments > .front-chips { display:grid; grid-auto-flow:column; grid-template-rows:repeat(2,auto);
    justify-content:start; overflow-x:auto; padding:3px 3px .3rem; scroll-padding-inline:3px; }
  .front-departments > .front-chips a { white-space:nowrap; }
  .front-archives-list { grid-auto-flow:column; grid-auto-columns:82%; overflow-x:auto; padding:3px; scroll-padding-inline:3px; }
  .front-recent .sold-grid { grid-auto-flow:column; grid-template-columns:none; grid-auto-columns:minmax(150px,44%);
    overflow-x:auto; scroll-padding-inline:3px; }
  /* Focus rings stay inside a row that scrolls. */
  .front-departments > .front-chips a:focus-visible,.front-archives-list a:focus-visible,
  .front-recent .sold-card:focus-visible { outline-offset:-3px; }
}

/* LIVE and selling: today's components, quieter. */
.pw-front .front-live .live-entrance { margin:0; }
.front-sell { display:flex; flex-direction:column; gap:.4rem; padding:.9rem 1rem; border:1px solid var(--line); border-radius:var(--f-radius); background:var(--card); }
.front-sell p { margin:0; font-size:var(--f-sm); color:var(--muted); }
.front-sell .front-sell-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem 1rem; margin-top:.2rem; }
.front-sell-actions a:not(.front-secondary) { color:var(--ink); font-size:var(--f-sm); font-weight:650; }

/* Videos: posters in one row that scrolls sideways inside itself. Nothing loads from
   YouTube until a poster is pressed (house-front.js); without scripts it opens YouTube. */
.front-video-row { display:grid; grid-auto-flow:column; grid-auto-columns:min(70%,320px); gap:.75rem; overflow-x:auto;
  scroll-snap-type:x mandatory; padding:3px 3px .4rem; }
.front-video { scroll-snap-align:start; aspect-ratio:16/9; border-radius:12px; overflow:hidden; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:.4rem; background:var(--f-navy); color:#fff; text-decoration:none;
  border:1px solid var(--f-shape-rim); }
.front-video:hover .front-video-label { text-decoration:underline; }
.front-video-play { display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%;
  border:2px solid var(--f-gold); color:var(--f-gold); }
.front-video-play .front-icon { width:22px; height:22px; margin-left:3px; }
.front-video-label { font-size:var(--f-md); font-weight:650; text-align:center; padding:0 .75rem; }
.front-video-site { color:#dfe6ee; font-size:var(--f-xs); font-weight:500; }
.front-video-even { background:#1b3a5c; }
.front-video-frame { width:100%; aspect-ratio:16/9; border:0; border-radius:12px; display:block; }

/* Wider screens: the same order, more room. Phones (under 700 px) never read anything below.
   Desktop and tablet were rebuilt after the owner's review on a desktop screen (2026-11-27:
   "the hero is massive and the other auction tiles are too small"): a compact next-sale card,
   other open sales as real tiles, and no half-empty rows. */
@media (min-width:700px) {
  .front-brand-inner { padding:.9rem 1.5rem; gap:1.1rem; }
  .front-badge { width:68px; flex-basis:68px; }
  .front-brand h1 { font-size:var(--f-xl); }
  .front-brand-line { font-size:var(--f-sm); }
  .front-tabs { justify-content:center; }
  .front-tabs a { flex:0 0 auto; padding:0 1.1rem; }
  .pw-front .front-main > .wrap { padding:0 1.5rem; }

  /* The next sale: a compact card, the photo beside the words, no dead space. */
  .front-sale { flex-direction:row; align-items:stretch; }
  .front-photo { flex:0 0 240px; width:240px; height:240px; min-height:0; border-bottom:0; border-right:1px solid var(--line); }
  .front-sale-body { flex:1 1 auto; min-width:0; padding:1rem 1.25rem; justify-content:center; gap:.5rem; }
  .pw-front .front-sale-title { font-size:1.5rem; line-height:1.2; }
  .front-actions .front-enter { flex:0 0 auto; }

  /* The next sale's name: three lines at most (the link's title and screen readers carry it whole).
     The clamp sits on the link itself, so nothing clips the link's own focus ring. */
  .pw-front .front-sale-title a { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

  /* Other open sales: two to a row, every tile laid across. A square photo on the left, the sale,
     its close, its lots and "View lots" beside it. The photo is always shown whole, never cropped:
     a cover carries its condition badge and the house mark in its corners. A square cover fills its
     box; any other shape sits whole on the neutral box. A sale without a cover says so. */
  [data-storefront-module="sales"] .front-rows .front-row-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  [data-storefront-module="sales"] .front-rows .front-row-link { display:grid; grid-template-columns:160px minmax(0,1fr); grid-template-rows:auto auto 1fr;
    align-items:start; column-gap:.75rem; row-gap:.45rem; height:100%; box-sizing:border-box; min-height:0; padding:.5rem; }
  [data-storefront-module="sales"] .front-rows .front-row-photo { position:relative; grid-column:1; grid-row:1 / -1; align-self:start; flex:none; width:160px; height:160px;
    min-height:0; background:var(--media); border-radius:8px; overflow:hidden; }
  [data-storefront-module="sales"] .front-rows .front-row-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
  [data-storefront-module="sales"] .front-rows .front-row-photo:empty { display:flex; align-items:center; justify-content:center; }
  [data-storefront-module="sales"] .front-rows .front-row-photo:empty::after { content:"No photo yet"; color:var(--muted); font-size:var(--f-sm); font-weight:650; }
  [data-storefront-module="sales"] .front-rows .front-row-copy { grid-column:2; grid-row:1; padding:.15rem 0 0; gap:.2rem; }
  /* The sale's name in full: a name of up to 60 characters fits in four lines in the narrowest
     tile (157 px of words beside a 160 px photo). Only a longer name is clamped there; the link's
     title and screen readers carry it whole. */
  [data-storefront-module="sales"] .front-rows .front-row-copy strong { display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
  /* The action reads as one: the whole tile is the link; this is its visible label. */
  [data-storefront-module="sales"] .front-rows .front-row-go { grid-column:2; grid-row:2; justify-self:start; display:inline-flex; align-items:center; gap:.35rem; margin:0;
    min-height:36px; padding:0 .8rem; border:1.5px solid var(--ink); border-radius:10px; font-size:var(--f-sm); }
  [data-storefront-module="sales"] .front-rows .front-row-go::before { content:"View lots"; }
  [data-storefront-module="sales"] .front-rows .front-row-link:hover .front-row-go { text-decoration:underline; }
  /* One tile, or the odd last tile, takes the full width (a larger photo), never a half-width orphan. */
  .front-rows .front-row:last-child:nth-child(odd) { grid-column:1 / -1; }
  [data-storefront-module="sales"] .front-rows .front-row:last-child:nth-child(odd) .front-row-link { grid-template-columns:200px minmax(0,1fr); }
  [data-storefront-module="sales"] .front-rows .front-row:last-child:nth-child(odd) .front-row-photo { width:200px; height:200px; }

  /* How it works: three steps, then the card line and pickup as two equal columns. */
  .front-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .front-facts-list { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:1.5rem; }
  .front-archives-list { grid-template-columns:repeat(2,minmax(0,1fr)); }

  /* Recently sold: the photo fills its box (white, as the stock photos are shot), one height for all. */
  .front-recent .sold-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .front-recent .sold-card img { height:170px; background:#fff; border:1px solid var(--line); box-sizing:border-box; }

  /* Departments: one grid of equal chips; the open-now list sits under it, full width. */
  .front-departments > .front-chips { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); }
  .front-departments > .front-chips a { justify-content:center; text-align:center; }
  .front-open-now { display:block; }

  /* Pennyworth LIVE: the name on the left, its four ways in as one row on the right. */
  .pw-front .front-live .live-entrance { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2.6fr); align-items:center;
    gap:.5rem 1.5rem; }
  .pw-front .front-live .live-entrance-modes { grid-template-columns:repeat(4,minmax(0,1fr)); }

  .front-sell { flex-direction:row; align-items:center; justify-content:space-between; gap:1.5rem; }
  /* Its two ways in sit together at the right edge. */
  .front-sell > div { flex:1 1 auto; min-width:0; }
  .front-sell .front-sell-actions { flex:0 0 auto; flex-direction:column; align-items:flex-end; text-align:right; }
}
@media (min-width:1024px) {
  .front-photo { flex-basis:260px; width:260px; height:260px; }
  /* A little less air in the next sale's words, so a three-line name still keeps the card compact. */
  .front-sale-body { padding:.75rem 1.25rem; gap:.4rem; }
  .front-rows .front-row-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  /* Halves and the full width get a larger square photo. This two-to-a-row list is also the whole
     layout where the row below cannot apply (an older browser, the owner's own section order, or
     exactly two other sales: the next sale then takes the full width, compact, and the two sit
     under it as halves). */
  [data-storefront-module="sales"] .front-rows .front-row-link { grid-template-columns:200px minmax(0,1fr); }
  [data-storefront-module="sales"] .front-rows .front-row-photo { width:200px; height:200px; }
  .front-video-row { grid-auto-columns:calc((100% - 1.5rem) / 3); }

  /* The next sale and the next other sale share one row (15 and 9 of 24 columns), two cards with
     one top edge and one bottom edge, their photos' tops level. Further open sales fill full rows
     under it, at most three to a row so the words beside each photo keep their room: thirds, and a
     last row of two as halves (four left over make two rows of halves). The gaps are pixels, so a
     larger text setting never widens the grid past the page. Only where the browser can tell the
     two sections sit together (:has), they do in the owner's order, and the other sales are not
     exactly two. With the row here the "Also open" heading is read by screen readers and not
     shown: the tiles beside and under the next sale say what they are. */
  @supports selector(:has(*)) {
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) {
      display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); gap:16px; }
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > * { grid-column:1 / -1; }
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"],
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-rows,
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row-list { display:contents; }
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-h2 {
      position:absolute; width:1px; height:1px; margin:0; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="featured"] { grid-column:1 / span 15; display:flex; }
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="featured"] .front-featured-list { flex:1 1 auto; display:flex; }
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="featured"] .front-sale { flex:1 1 auto; }
    /* Beside the next sale: the same height as the next sale, a 160 px photo level with its photo. */
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:first-child { grid-column:16 / -1; }
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:first-child .front-row-link { grid-template-columns:160px minmax(0,1fr); }
    .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:first-child .front-row-photo { width:160px; height:160px; }
    /* Under the row from 1024 to 1279 px: halves (a 200 px photo), an odd last one the full width,
       so the words beside each photo keep their room. */
    @media (max-width:1279px) {
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row { grid-column:span 12; }
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:last-child:nth-child(2n) { grid-column:span 24; }
    }
    /* From 1280 px: thirds (a 160 px photo); a last row of two, or the last four as two rows of
       two, as halves (a 200 px photo). */
    @media (min-width:1280px) {
      /* Beside the next sale: a 200 px photo (the words keep 162 px, room for a 60-character name). */
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:first-child .front-row-link { grid-template-columns:200px minmax(0,1fr); }
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:first-child .front-row-photo { width:200px; height:200px; }
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row { grid-column:span 8; }
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row .front-row-link { grid-template-columns:160px minmax(0,1fr); }
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row .front-row-photo { width:160px; height:160px; }
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:last-child:nth-child(3n),
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(2):nth-child(3n+2),
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:last-child:nth-child(3n+2),
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(2):nth-child(3n+1),
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(3):nth-child(3n),
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(4):nth-child(3n+2) { grid-column:span 12; }
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:last-child:nth-child(3n) .front-row-link,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(2):nth-child(3n+2) .front-row-link,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:last-child:nth-child(3n+2) .front-row-link,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(2):nth-child(3n+1) .front-row-link,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(3):nth-child(3n) .front-row-link,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(4):nth-child(3n+2) .front-row-link { grid-template-columns:200px minmax(0,1fr); }
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:last-child:nth-child(3n) .front-row-photo,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(2):nth-child(3n+2) .front-row-photo,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:last-child:nth-child(3n+2) .front-row-photo,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(2):nth-child(3n+1) .front-row-photo,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(3):nth-child(3n) .front-row-photo,
      .pw-front .storefront-page:has(> [data-storefront-module="featured"] + [data-storefront-module="sales"] .front-row):not(:has(> [data-storefront-module="sales"] .front-row:first-child:nth-last-child(2))) > [data-storefront-module="sales"] .front-row:nth-last-child(4):nth-child(3n+2) .front-row-photo { width:200px; height:200px; }
    }
  }
}
@media (forced-colors:active) {
  .front-enter,.front-secondary,.front-chips a,.front-row-link,.front-state,.front-step-n,.front-video { border:1px solid ButtonText; }
  .front-icon { stroke:CanvasText; }
}
@media print {
  .front-brand { background:#fff; color:#17231f; }
  .front-brand h1 { color:#17231f; }
  .front-video-row,.front-owner-bar { display:none; }
}

/* The shared footer, on this page only (today's page does not load this file): the contact
   block is short (the address and hours are in "Bidding at Pennyworth"), dark mode sits here,
   and on a phone the link columns become two tidy columns. Text separators between links are
   set to zero size; every link is kept. */
.front-footer-appearance { margin-top:.6rem; }
.front-footer-appearance .theme-toggle { font-size:var(--f-sm); }
@media (max-width:699px) {
  body:has(.pw-front) footer.site { padding:1.25rem 0 1.5rem; }
  body:has(.pw-front) footer.site .cols { gap:.75rem; }
  body:has(.pw-front) footer.site .cols > div:has(> a:first-child) { display:flex; flex-wrap:wrap; width:100%; font-size:0; }
  body:has(.pw-front) footer.site .cols > div:has(> a:first-child) > br { display:none; }
  body:has(.pw-front) footer.site .cols > div:has(> a:first-child) > a { flex:0 0 50%; box-sizing:border-box; display:flex;
    align-items:center; min-height:44px; padding:0 .5rem 0 0; font-size:.875rem; line-height:1.25; }
}
