/* ==========================================================================
   Auction house page (src/auction-houses/auction-house.njk): the same sheet
   as the sale pages. Loaded after auction-sale.css and auction-fees.css; it
   reuses the .sale-* rules and only adds or overrides here, every rule
   prefixed .house- or scoped under .house. Do not edit a .sale-* rule to
   suit this page. Spec and reasons:
   docs/superpowers/specs/2026-11-21-auction-house-sheet-design.md.
   Tokens from tokens.css only.
   ========================================================================== */

/* ---- head ------------------------------------------------------------------ */
/* No upcoming sale: no plate, so the head is one column. */
.house .house-head--solo { grid-template-columns: minmax(0, 1fr); }

/* The mark is bigger here: this is the house's own page. */
.house .sale-house__mark img { height: 84px; max-width: 320px; }
.house .sale-house__rule { height: 48px; }

.house .house-fees-link { 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; }

/* The next-sale plate is one link to that sale's page. */
.house a.house-plate { color: var(--paper); text-decoration: none; transition: background var(--ease-calm); }
.house a.house-plate:hover { background: var(--teal-900); }
.house .house-plate__foot { display: block; }
.house .house-plate__foot strong { display: block; font-size: 1rem; line-height: 1.3; overflow-wrap: break-word; }
.house .house-plate__foot span { display: block; margin-top: 0.3rem; }
.house a.house-plate:hover .house-plate__foot strong { text-decoration: underline; text-underline-offset: 3px; }

/* ---- body ------------------------------------------------------------------- */
/* A house we hold no fees for: one column. */
.house .house-body--solo { grid-template-columns: minmax(0, 1fr); }

.house .house-label { margin-top: 3.25rem; }
.house-none { margin: 0; font-family: var(--font-body); font-size: 1.25rem; line-height: 1.6; }
.house-note { margin: 1.4rem 0 0; font-family: var(--font-body); font-size: 1.1rem; line-height: 1.6; color: var(--ink-500); }
.house .house-note a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }

/* From the Classic Chronicle: ruled like the rows, title then date. */
.house-chronicle { list-style: none; margin: 0; padding: 0; }
.house-chronicle li { padding: 1rem 0; border-bottom: 1px solid var(--line-200); }
.house .house-chronicle a { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; color: var(--ink-900); text-decoration: none; overflow-wrap: break-word; }
.house .house-chronicle a:hover { text-decoration: underline; text-underline-offset: 3px; }
.house-chronicle__date { display: block; margin-top: 0.3rem; font-family: var(--font-body); font-size: 1.02rem; color: var(--ink-500); }

/* ---- fees and house rules, in the 5-part column ---------------------------- */
/* The component and auction-fees.css are shared and stay as they are; only
   its size inside this column changes. */
.house-side { min-width: 0; }
.house .house-rules { margin-top: 0; }
.house .house-rules h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink-900); margin: 0; padding-bottom: 1rem; border-bottom: 2px solid var(--ink-900); }
.house .house-rules__list { margin-top: 0; border-top: 0; }
.house .house-rules__row { grid-template-columns: 10rem minmax(0, 1fr); }
.house .house-rules__row dd { overflow-wrap: break-word; }

/* Below this the column is too narrow for label and value side by side. */
@media (max-width: 1280px) {
  .house .house-rules__row { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
}

/* ---- phone ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .house .sale-house__mark img { height: 56px; }
  /* Whose page this is comes first on a phone; the next sale follows the
     button. (On a sale page the plate leads, because it is that sale's date.) */
  .house .sale-date { order: 0; }
  .house .sale-house__rule { height: 34px; }
  .house .house-label { margin-top: 2.5rem; }

  /* The plate stays one row for the date, but its foot is a sale title, too
     long to sit at the right of a phone screen, so it goes beneath, under a
     rule, as it does on the desktop plate. */
  .house a.house-plate { flex-wrap: wrap; row-gap: 0.85rem; }
  .house .house-plate .sale-date__when { flex: 1 1 100%; }
  .house .house-plate__foot { flex: 1 1 100%; margin: 0; padding: 0.8rem 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
  .house .house-plate__foot strong { font-size: 1rem; }
}
