/* ==========================================================================
   Auction sale page: "the sale sheet" (src/auctions/auction.njk).
   Type-led, like the front of an auction catalogue: no picture. Spec and the
   reasons: docs/superpowers/specs/2026-11-21-auction-sale-sheet-design.md.
   Tokens from tokens.css only. The page sits inside div.container (1600px,
   32px side padding), so nothing here pads the sides except the venue band,
   which breaks out to the full width and puts the frame back inside.
   ========================================================================== */

.sale { color: var(--ink-700); }
.sale a { color: inherit; }

/* ---- breadcrumbs (markup and trail as before) ------------------------------ */
.sale .breadcrumbs-container { padding-top: 1.25rem; margin: 0; }
.sale .breadcrumbs { font-family: var(--font-display); font-size: 0.8rem; margin: 0; }
.sale .breadcrumbs li a { color: var(--ink-500); }
.sale .breadcrumbs li:not(:last-child)::after { color: var(--line-200); }

/* ---- head: title left, date plate right ------------------------------------- */
.sale-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: stretch; padding: 2.25rem 0 2.75rem; }
.sale-head__main { min-width: 0; }

.sale-house { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem; margin: 0 0 1.4rem; font-family: var(--font-display); font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--teal-700); }
.sale-house__mark { display: block; text-decoration: none; }
.sale-house__mark img { display: block; height: 52px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.sale-house__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: normal; text-transform: none; color: var(--ink-900); text-decoration: none; }
.sale .sale-house__name { color: var(--ink-900); }
.sale-house__rule { width: 1px; height: 34px; background: var(--line-200); }
.sale-house__cat { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.sale-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.025em; color: var(--ink-900); margin: 0 0 1.25rem; max-width: 24ch; text-wrap: balance; overflow-wrap: break-word; }
.sale-standfirst { font-family: var(--font-body); font-size: 1.45rem; line-height: 1.4; font-style: italic; color: var(--ink-700); margin: 0 0 1.9rem; max-width: 62ch; }

/* "This sale has taken place" / "is under way", under the title. */
.sale-status-note { margin: 0 0 1.5rem; padding: 0.75rem 1rem; border-left: 4px solid var(--teal-700); background: var(--wash-green); color: var(--ink-700); }
.sale .sale-status-note a { color: var(--teal-700); text-decoration: underline; }

.sale-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; }
.sale .sale-go { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--teal-700); color: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; padding: 1rem 1.6rem; transition: background var(--ease-calm); }
.sale .sale-go:hover { background: var(--teal-900); }
.sale-cal { font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-500); margin: 0; }
.sale .sale-cal a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; margin-left: 0.6rem; }

/* The date plate. */
.sale-date { display: flex; flex-direction: column; justify-content: space-between; width: 280px; background: var(--teal-700); color: var(--paper); padding: 1.5rem 1.75rem 1.4rem; }
.sale-date--past { background: var(--ink-700); }
.sale-date__when { display: block; }
.sale-date__when > span { display: block; }
.sale-date__day { font-family: var(--font-display); font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--mint-300); }
.sale-date__num { font-family: var(--font-body); font-weight: 500; font-size: 9.5rem; line-height: 0.8; letter-spacing: -0.03em; margin: 1.1rem 0 1rem -0.04em; font-variant-numeric: lining-nums; }
.sale-date__month { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.sale-date__end { margin-top: 0.5rem; font-family: var(--font-display); font-size: 0.9rem; color: var(--mint-300); }
.sale-date__time { margin: 1.1rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.28); font-family: var(--font-display); font-size: 0.9rem; color: var(--mint-300); }
.sale-date__time strong { color: var(--paper); font-weight: 600; }
.sale-date--past .sale-date__day,
.sale-date--past .sale-date__end,
.sale-date--past .sale-date__time { color: var(--line-200); }

/* ---- the facts, ruled like a catalogue table --------------------------------- */
/* Cells share the width equally, however many there are. */
.sale-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 2px solid var(--ink-900); border-bottom: 1px solid var(--line-200); margin: 0; }
.sale-fact { padding: 1.35rem 1.75rem 1.5rem; border-left: 1px solid var(--line-200); min-width: 0; }
.sale-fact:first-child { border-left: 0; padding-left: 0; }
.sale-facts dt { font-family: var(--font-display); font-size: var(--text-tag); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-500); margin-bottom: 0.55rem; }
.sale-facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--ink-900); overflow-wrap: break-word; }
.sale-facts dd a { text-decoration: none; }
/* A headline over 28 characters is set at sentence size, so it is never cut. */
.sale-fact--long dd { font-family: var(--font-body); font-weight: 400; font-size: 1.1rem; line-height: 1.35; }
.sale-facts dd small { display: block; margin-top: 0.35rem; font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; line-height: 1.35; color: var(--ink-500); }

/* ---- body: write-up left, details right -------------------------------------- */
.sale-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 5rem; padding: 3.5rem 0 4.5rem; align-items: start; }
.sale-label { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.4rem; font-family: var(--font-display); font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--teal-700); }
.sale-label::after { content: ""; flex: 1; height: 1px; background: var(--line-200); }
.sale-prose p { font-family: var(--font-body); font-size: 1.25rem; line-height: 1.65; margin: 0 0 1.15rem; }
.sale-prose p:first-child { font-size: 1.6rem; line-height: 1.42; color: var(--ink-900); margin-bottom: 1.5rem; }
.sale .sale-prose a,
.sale .sale-chronicle a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.sale-chronicle { margin: 1.5rem 0 0; font-family: var(--font-body); font-size: 1.2rem; line-height: 1.5; }
/* The day the write-up was last read against the house's own page. */
.sale-checked { margin: 1.25rem 0 0; font-family: var(--font-display); font-size: 0.9rem; line-height: 1.5; color: var(--ink-500); }
.sale-house-note { margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-200); font-family: var(--font-body); font-size: 1.1rem; line-height: 1.6; color: var(--ink-500); }
.sale .sale-house-note a { color: var(--teal-700); }

.sale-side { display: grid; gap: 2.5rem; min-width: 0; }
.sale-keys { list-style: none; margin: 0; padding: 0; }
.sale-keys li { position: relative; padding: 0.8rem 0 0.8rem 1.9rem; border-bottom: 1px solid var(--line-200); font-family: var(--font-body); font-size: 1.2rem; line-height: 1.4; }
.sale-keys li:first-child { border-top: 1px solid var(--line-200); }
.sale-keys li::before { content: ""; position: absolute; left: 0.15rem; top: 1.35rem; width: 0.7rem; height: 2px; background: var(--teal-500); }

/* The worked bill. */
.sale-bill { background: var(--wash-green); padding: 1.75rem 1.9rem 1.6rem; }
.sale-bill h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink-900); margin: 0 0 1.1rem; }
.sale-bill table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 1.15rem; }
.sale-bill td { padding: 0.5rem 0; border-bottom: 1px dotted rgba(9, 72, 74, 0.35); vertical-align: baseline; }
.sale-bill td:last-child { text-align: right; padding-left: 1rem; white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.sale-bill tr.sale-bill__total td { border-bottom: 0; border-top: 2px solid var(--teal-700); padding-top: 0.85rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-900); }
.sale-bill tr.sale-bill__total td:last-child { font-size: 1.7rem; color: var(--teal-700); letter-spacing: -0.01em; }
.sale-bill p { margin: 1rem 0 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: var(--ink-500); }
.sale .sale-bill p a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
/* The way into the auctions guide, under the key details and the bill. */
.sale-guide { margin: 0; font-family: var(--font-body); font-size: 1.1rem; line-height: 1.55; color: var(--ink-500); }
.sale .sale-guide a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---- the venue: a full-width band ------------------------------------------- */
/* The wash runs edge to edge by painting, not by width. A 100vw box is wider
   than the page on Windows, where the scrollbar takes space, and makes the
   page scroll sideways. The contents stay inside div.container. */
.sale-venue { background: var(--wash-050); box-shadow: 0 0 0 100vmax var(--wash-050); clip-path: inset(0 -100vmax); }
.sale-venue__inner { padding: 3.5rem 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: center; }
.sale-venue h2 { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink-900); margin: 0 0 1rem; }
.sale-venue address { font-style: normal; font-family: var(--font-body); font-size: 1.3rem; line-height: 1.5; margin-bottom: 1.6rem; }
.sale-venue address strong { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: var(--tracking-caps); color: var(--teal-700); margin-top: 0.35rem; }
.sale .sale-dir { display: inline-flex; border: 1px solid var(--ink-900); background: var(--paper); color: var(--ink-900); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; padding: 0.9rem 1.5rem; }
.sale-venue__map { height: 400px; border: 1px solid var(--line-200); background: var(--wash-green); }
.sale-venue__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- other sales, as dated rows -------------------------------------------- */
.sale-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; padding: 4rem 0 4.5rem; }
.sale-more > section { min-width: 0; }
.sale-more h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.015em; color: var(--ink-900); margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink-900); }
/* Only the second list, six rows, in two columns. */
.sale-more--single { grid-template-columns: minmax(0, 1fr); }
.sale-more--single .sale-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 5rem; }
.sale-rows { list-style: none; margin: 0; padding: 0; }
.sale-rows li { border-bottom: 1px solid var(--line-200); }
.sale-rows a { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1rem 0; text-decoration: none; }
.sale-rows__d { display: block; font-family: var(--font-display); line-height: 1; }
.sale-rows__d b { display: block; font-family: var(--font-body); font-weight: 500; font-size: 2.2rem; color: var(--teal-700); font-variant-numeric: lining-nums; }
.sale-rows__d i { display: block; margin-top: 0.3rem; font-style: normal; font-size: var(--text-tag); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
.sale-rows__t { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; color: var(--ink-900); overflow-wrap: break-word; }
.sale-rows__t small { display: block; margin-top: 0.3rem; font-family: var(--font-body); font-weight: 400; font-size: 1.02rem; color: var(--ink-500); }
.sale-rows__tag { font-family: var(--font-display); font-size: var(--text-tag); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--teal-700); background: var(--wash-green); padding: 0.3rem 0.55rem; margin-left: 0.5rem; vertical-align: 2px; white-space: nowrap; }
.sale-rows__go { font-family: var(--font-display); font-size: 1.2rem; color: var(--teal-700); }
.sale-rows a:hover .sale-rows__t { text-decoration: underline; text-underline-offset: 3px; }
.sale .sale-more__all { display: inline-block; margin-top: 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--teal-700); text-decoration: underline; text-underline-offset: 4px; }

/* ---- phone ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .sale-head { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 1.5rem 0 2rem; }
  .sale-house__mark img { height: 40px; }
  .sale-standfirst { font-size: 1.25rem; }
  .sale .sale-go { width: 100%; justify-content: center; box-sizing: border-box; }

  /* The plate goes above the house line, as one row: the numeral, then
     weekday and month beside it, then the start time at the right. */
  .sale-date { order: -1; width: auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.1rem; padding: 1rem 1.25rem; }
  .sale-date__when { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: center; }
  .sale-date__num { grid-column: 1; grid-row: 1 / span 3; font-size: 4rem; margin: 0; }
  .sale-date__day, .sale-date__month, .sale-date__end { grid-column: 2; }
  .sale-date__end { margin-top: 0.2rem; }
  .sale-date__time { margin: 0 0 0 auto; padding: 0 0 0 1.1rem; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.28); }
  .sale-date__time strong { display: block; font-size: 1.1rem; }

  /* Two to a row; an odd last cell spans both. */
  .sale-facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale-fact { padding: 1.1rem 1rem 1.2rem; border-left: 0; }
  .sale-fact:nth-child(even) { border-left: 1px solid var(--line-200); }
  .sale-fact:nth-child(odd) { padding-left: 0; }
  .sale-fact:nth-child(n+3) { border-top: 1px solid var(--line-200); }
  .sale-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sale-facts dd { font-size: 1.1rem; }
  .sale-fact--long dd { font-size: 1.05rem; }

  .sale-body { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; padding: 2.25rem 0 3rem; }
  .sale-prose p:first-child { font-size: 1.35rem; }
  .sale-venue__inner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 2.5rem 0; }
  .sale-venue h2 { font-size: 1.8rem; }
  .sale-venue__map { height: 280px; }
  .sale-more { grid-template-columns: minmax(0, 1fr); gap: 3rem; padding: 2.75rem 0 3rem; }
  .sale-more--single .sale-rows { grid-template-columns: minmax(0, 1fr); }
  .sale-rows a { grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: 0.9rem; }
}
