/* Navy & Champagne brand layer over the legacy CMS pages (CADMORE_AGENTS.md).
   Loaded after legacy.css. `.legacy.legacy` outranks legacy.css's `.legacy x`
   rules without !important. Typography and colour only: page structure and
   legal copy are untouched. */
.legacy.legacy {
  /* Re-theme the old site's variables (cad.css) at the source. */
  --primary: #8a4138;
  --primary-hover: #7a3a32;
  --secondary: #ffffff;
  --secondary-hover: #f0ece0;
  --off-white: #faf5e8;
  --icon-color: #8a4138;
  --icon-hover: #86691f;
  --link-color: #8a4138;
  --link-hover: #86691f;
  --header: #8a4138;
  --navbar: #8a4138;
  --footer: #8a4138;
  --homepage-background: #faf5e8;
  --auction-page-background: #faf5e8;
  --standing-page-background: #faf5e8;
  --page-background: #faf5e8;
  --border-color: #e0e0e0;
  --search-border: #e8dfc8;
  --tab-border: #e0e0e0;
  --auction-tab-background: #f0ece0;
  --auction-tab-hover: #e0e0e0;
  --dropdown-hover: #f0ece0;
  --danger: #a13f45;
  --danger-hover: #8a353a;
  --title-font: var(--font-serif);
  --button-font-size: 0.8125rem;
  --body-font: var(--font-sans);
  font-family: var(--font-sans);
  color: #292929;
  background-color: #faf5e8;
  /* 15px body, the same as the rest of the site (Cadmore, 28 Oct). */
  font-size: 15px;
  line-height: 1.6;
}
.legacy.legacy h1, .legacy.legacy h2, .legacy.legacy h3,
.legacy.legacy .page-title, .legacy.legacy .auction-title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: #8a4138;
  letter-spacing: -0.005em;
}
.legacy.legacy h4, .legacy.legacy h5, .legacy.legacy h6 {
  font-family: var(--font-sans);
  color: #292929;
}
.legacy.legacy .page-title strong { font-weight: 500; }
.legacy.legacy a { color: #8a4138; }
.legacy.legacy a:hover, .legacy.legacy a:focus { color: #86691f; }
.legacy.legacy p, .legacy.legacy li { color: #292929; }

/* Buttons: primary navy, secondary navy outline (brief §11). */
.legacy.legacy .btn {
  border-radius: 3px;
  min-height: 44px;
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
}
.legacy.legacy .btn-primary, .legacy.legacy .btn-cta {
  color: #fff;
  background-color: #8a4138;
  border-color: #8a4138;
}
.legacy.legacy .btn-primary:hover, .legacy.legacy .btn-primary:focus,
.legacy.legacy .btn-cta:hover, .legacy.legacy .btn-cta:focus {
  color: #fff;
  background-color: #7a3a32;
  border-color: #7a3a32;
}
.legacy.legacy .btn-success, .legacy.legacy .btn-default {
  color: #8a4138;
  background-color: transparent;
  border: 1px solid #8a4138;
}
.legacy.legacy .btn-success:hover, .legacy.legacy .btn-default:hover {
  color: #fff;
  background-color: #8a4138;
}

/* Forms */
.legacy.legacy .form-control {
  min-height: 44px;
  border-radius: 3px;
  border-color: #e8dfc8;
  font-size: 16px;
  box-shadow: none;
}
.legacy.legacy .form-control:focus { border-color: #8a4138; outline: 2px solid #8a4138; outline-offset: 1px; }

/* Status text: muted rather than the old orange/green. */
.legacy.legacy .text-warning, .legacy.legacy .text-success { color: #666666; }

/* Past Auctions list (render.ts pastAuctionsHtml) */
.legacy.legacy .auction-closed .fav-container {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  margin-bottom: 16px;
  padding: 16px;
}
.legacy.legacy .auction-title { font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.legacy.legacy .auction-title a { color: #8a4138; }
.legacy.legacy .auction-departments { font-size: 14px; color: #666666; margin: 0 0 8px; }
.legacy.legacy .auction-summary, .legacy.legacy .auction-summary a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #86691f;
}
.legacy.legacy .auction-summary em { font-style: normal; }
.legacy.legacy .auction-date, .legacy.legacy .auction-venue { font-size: 14px; color: #292929; font-weight: 400; }
.legacy.legacy .auction-venue { color: #666666; }
.legacy.legacy .auction-closed img { background: #f0ece0; border-radius: 3px; object-fit: contain; aspect-ratio: 1 / 1; }

/* Breadcrumbs */
.legacy.legacy .breadcrumb { background: transparent; font-size: 13px; color: #666666; }
/* Touch: a breadcrumb link is a 44px target. The padding is cancelled by the
   negative margin, so the trail keeps its height and the hit area grows. */
@media (pointer: coarse) {
  .legacy.legacy .breadcrumb a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
}

/* The summary line and its link inherit the old serif; keep it on Inter. */
.legacy.legacy .auction-summary, .legacy.legacy .auction-summary a, .legacy.legacy .auction-summary em { font-family: var(--font-sans); }
.legacy.legacy .auction-closed .fa-wifi { color: #d4af37; }

/* Contrast (axe, WCAG AA): legacy greys and faded links up to the muted token. */
.legacy.legacy h6, .legacy.legacy small, .legacy.legacy .text-muted,
.legacy.legacy .auction-venue, .legacy.legacy .catalogue-time { color: #666666; opacity: 1; }
.legacy.legacy .auction-summary, .legacy.legacy .auction-summary a { color: #86691f; opacity: 1; }
.legacy.legacy .auction-date { color: #292929; opacity: 1; }
/* legacy.css dims closed auctions to 70% opacity, which takes their text below
   AA. The "Closed" label carries the state instead. */
.legacy.legacy .auction-closed { opacity: 1; }
/* Links inside running text must not rely on colour alone (WCAG 1.4.1). */
.legacy.legacy p a, .legacy.legacy li a, .legacy.legacy td a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Even line lengths on headings; no one-word last lines in paragraphs. */
.legacy.legacy h1, .legacy.legacy h2, .legacy.legacy h3, .legacy.legacy h4,
.legacy.legacy h5, .legacy.legacy h6, .legacy.legacy .page-title { text-wrap: balance; }
/* Section headings at the same weight as the rest of the site. */
.legacy.legacy h2 { font-weight: 400; }
.legacy.legacy p, .legacy.legacy li { text-wrap: pretty; }

/* Department tiles (/departments): the label sits in a white box with the
   brand colour, not white text over a dark wash. The pictures stay as
   photographed (Cadmore, 16 Oct: "the images are a bit dark"). 6.7:1. */
.legacy .gridBoxText.contrast-text-box{background:rgba(255,255,255,.94);color:#8a4138;font-weight:500;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.18)}
.legacy .gridBoxContainer img{filter:none}
/* Page banners on the department pages: lift the mid-tones a little so the
   dark header photographs read; a new set of banners is coming from Cadmore. */
.legacy .pageHeader.pageHeaderWithImage .pageHeaderImage img{filter:brightness(1.12) contrast(.96)}

/* "Browse <department> in the current sale" under a department's text. */
.legacy .department-browse{margin:0 0 28px}
.legacy .department-browse a{display:inline-flex;align-items:center;min-height:48px;padding:0 28px;background:#8a4138;color:#fff;font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase;border-radius:3px;text-decoration:none}
.legacy .department-browse a:hover,.legacy .department-browse a:focus-visible{background:#7a3a32;color:#fff}

/* Touch devices (phones, tablets) and any window narrower than 1024px:
   44px targets and a form that fits its column. */
@media (pointer: coarse), (max-width: 1023.98px) {
  /* The "Live - 26 Oct" link above each upcoming sale in the side widget. */
  .legacy.legacy .catalogueSectionContainer .slick-slide .upcomingAuctionDetails { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .legacy.legacy .catalogueSectionContainer .upcomingAuctionDescription a { display: block; padding: 8px 0; }
  /* Sale titles on the Past Results list: the padding is cancelled by the margin. */
  .legacy.legacy .auction-title a { display: inline-block; padding: 8px 0; margin: -8px 0; }
  .legacy.legacy .auction-summary a { display: inline-block; padding: 16px 0; margin: -16px 0; }
  /* A link standing alone in its paragraph. */
  .legacy.legacy .content p > a:only-child { display: inline-block; padding: 12px 0; margin: -12px 0; }
  /* Instagram / TikTok icons on the contact page. */
  .legacy.legacy .contactSocials a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  /* File picker on the enquiry and valuation forms: a 44px row, 16px text. */
  .legacy.legacy .lf-file { min-height: 44px; padding: 8px 0; font-size: 16px; }
  /* Remove-photo button on the enquiry and valuation forms. */
  .legacy .lf-remove { width: 32px !important; height: 32px !important; border-radius: 16px !important; line-height: 32px !important; top: -12px !important; right: -12px !important; }
}
/* A page card that ends in a button had no room under it (the button sat on the
   card's bottom border). Phones and tablets in portrait only. */
@media (max-width: 991px) {
  .legacy.legacy .content.page.custom-page-content { padding-bottom: 20px; }
}
/* The file picker on the enquiry and valuation forms was wider than its column
   on a phone (346px in 290px) and was cut off at the card edge. */
.legacy.legacy .lf-file { max-width: 100%; }
/* The sale name in the side widget wraps to as many lines as it needs
   (it was cut at two: "Three-Day General Auction · ..." lost the day). */
.legacy.legacy .catalogueSectionContainer .upcomingAuctionDescription p { -webkit-line-clamp: 4; }

/* Departments (Cadmore, 23 Oct): the card labels and the Upcoming Sales
   heading read all brown. Labels in charcoal on the white chip, the heading
   in the brand colour. */
.legacy.legacy .gridBoxText.contrast-text-box { color: #292929; font-weight: 600; }
.legacy.legacy .sectionHeader,
.legacy.legacy .upcomingAuctionHeader::before,
.legacy.legacy #auctionHighlightsV2 .sectionHeader { color: var(--primary); }

/* Phones (QA, 24 Oct): two things pushed the page wider than the screen.
   A long bare URL in the Instant Cash copy ("realdeal.cadmoreauctions.co.uk")
   could not break, and a department's highlights heading set in capitals
   ("EYEWEAR/SUNGLASSES, CLOTHING AND SUITCASE/HANDBAGS/WALLETS") has words
   longer than a 390px line. Let long words break and size the heading to the
   screen, so the page never scrolls sideways. */
/* break-word, not anywhere (16 Nov): anywhere also lets a shrink-to-fit box
   (the department tile labels) collapse to one letter wide, which split
   "Collectables" into "Collectable / s". break-word still breaks a word that
   cannot fit the line, so the page still never scrolls sideways. */
@media (max-width: 575.98px) {
  .legacy.legacy .page a,
  .legacy.legacy .page p,
  .legacy.legacy .page strong { overflow-wrap: break-word; }
  .legacy.legacy .sectionHeader { font-size: clamp(22px, 7vw, 32px); overflow-wrap: break-word; padding: 0 8px; }
}

/* Phones (16 Nov): the copied pages stacked five sets of side padding
   (container 15, content 10 to 20 plus a border, row -10, column 10, news
   card 30 plus a border), so an article's text ran in a 270px strip on a
   390px phone. Trimmed to one gutter and one card inset: about 325px of text. */
@media (max-width: 639.98px) {
  .legacy.legacy .container.container-bottom { padding-left: 12px; padding-right: 12px; }
  .legacy.legacy .content.page { padding-left: 16px; padding-right: 16px; }
  .legacy.legacy .content.page.news { padding-left: 0; padding-right: 0; }
  .legacy.legacy .newsArticle { padding: 20px 16px; }
  /* Article images fill the column instead of sitting small at the left. */
  .legacy.legacy .singleNewsArticle img { max-width: 100%; height: auto; }
  /* The news list cut every title to one line ("Honour in Metal: The
     Endurin..."); two lines show the whole title for most articles. */
  .legacy.legacy a > .newsArticle h3 {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: auto !important;
    max-height: none;
    padding-bottom: 4px;
  }
  /* The summary had a fixed 61.8px box, 2.76 lines, so its last line was
     cut through the middle. Three whole lines instead. */
  .legacy.legacy a > .newsArticle .newsArticleDesc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: auto !important;
    max-height: none;
    /* Room for the last line's descenders (g, y, p), which the clamp's
       overflow clipped; the clamp counts lines, so no fourth line shows. */
    padding-bottom: 4px;
  }
  /* Department tile labels: a size that fits the half-width tile. */
  .legacy.legacy .gridBoxText { font-size: 15px; }
  /* Upcoming sales widget (Departments and other copied pages): the sale
     cards were set to share the row (flex 1 1 0%), so live's three sale days
     squeezed into one phone width, about 170px each, titles on three lines and
     the next card cut through its buttons (16 Nov, live check). One card at a
     time, the next peeking in, snapping as it is swiped. */
  .legacy.legacy .ela-carousel > div { scroll-snap-type: x mandatory; gap: 12px; }
  .legacy.legacy .ela-carousel .catalogueAuctionColumn { flex: 0 0 88%; scroll-snap-align: start; }
}

/* Reading width on tablets. The copied pages let a paragraph run the whole
   column: about 680px on an iPad mini and 960px to 1160px on an iPad Pro or
   an iPad held sideways, which is 90 to 150 characters a line. Capped to
   about 80 characters. Phones (under 744px) and the desktop (a mouse, 1280px
   and up) keep the full width. */
@media (min-width: 744px) and (max-width: 1279.98px), (pointer: coarse) and (min-width: 1280px) and (max-width: 1400px) {
  .legacy.legacy .content.custom-page-content .row > [class*="col-"] p,
  .legacy.legacy .content.custom-page-content .row > [class*="col-"] li,
  .legacy.legacy .content.custom-page-content .row > [class*="col-"] dd,
  .legacy.legacy .form-group > [class*="col-"]:not(:has(input, textarea, select, button, div, p, img)),
  .legacy.legacy .content.custom-page-content div:not(:has(div, p, ul, ol, table, form, img, input, textarea, select, button, h1, h2, h3, h4)) { max-width: 40rem; }
}
/* The sale title link in the side widget was 43px tall on a tablet (27px line
   plus 8px above and below). One more pixel each side makes it 45px. */
@media (min-width: 744px) and (pointer: coarse), (min-width: 744px) and (max-width: 1023.98px) {
  .legacy.legacy .catalogueSectionContainer .upcomingAuctionDescription a { padding: 9px 0; }
}
