/* The feature sheet (row A1.2): the listing page printed. Linked with media="print" from
   listing.html, so none of this applies on screen and it never holds up the first paint.
   Today's site links a generated PDF; here the browser's own print (or "Save as PDF") is the
   sheet: one photo, the price, address and facts, open houses, the description, the details
   and rooms, the listing office, the "Listing updated" line and CREA's footer. What only works
   on a screen is left off. listing.html's own <style> comes after this link, so a rule here
   that overrides one of its rules carries one more class or element to win. */

/* Row L2.15: today's sheet sits about 12 mm from the top and the sides; the foot is 8 mm so
   CREA's badge and trademark lines (not on today's sheet) still fit on the one sheet */
@page {
  size: auto;
  margin: 12mm 12mm 8mm;
}

body {
  font-size: 11pt;
  line-height: 1.35;
  color: #000;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: none;
  padding: 0;
}

/* screen-only parts. Row A1.8: the page chrome's header (.site-header), its footer bands and
   links, the phone menu and the chat bubble; the chrome footer's fine print and CREA's footer
   inside it still print. Row L2.1: the listing page's blocks (the share menu, the photo grid,
   the section tabs, the sidebar, the second REALTOR.ca block and the photo count) stay off.
   Row L2.8: the Contact Seller box and the "List Your Property" form are named on their own
   too, so the sheet never prints the form's empty navy band wherever it sits. */
.site-header,
.chrome-foot-main,
.chrome-drawer,
#sa-chat-widget,
.listing-topbar,
.listing-actions,
.strip-nav,
.location,
.similar,
.mortgage,
.report-link,
.report,
.lp-share-menu,
.lp-grid,
.lp-tabs,
.lp-side,
.lp-seller,
.contact-form,
.lp-realtor-bottom,
.strip-count,
form,
script {
  display: none !important;
}

/* Row L2.15: today's printed sheet, one Letter page (Liam's own picture of today's print box,
   scratch/like-for-like/live/live-feature-sheet-print-liam-2026-11-23.png). Its column is 451 CSS
   px wide, centred (the picture: 410 of the page's 741 px, starting 166 px in); every size below is
   read off that picture at the same scale. What prints: the logo and the price box (_lp_top.html's
   own print rules), one photo, the sheet's own Basic Details / Features / Address Map blocks and
   ComFree's office line (`.lp-sheet`, _lp_panels.html), then CREA's footer under a rule. The
   page's panels, the open-house strip, "Listing Information" and the page footer stay off. */
.lp,
.chrome-footer .crea-footer {
  box-sizing: border-box;
  width: 451px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.lp-main > .lp-section,
#co-listing-section,
.listing-footer,
.lp-open {
  display: none !important;
}

/* the photo strip prints its first photo only, the column's full width */
.page .photos {
  max-width: none;
  margin: 0 0 16px;
}

.photos .strip {
  display: block;
  overflow: visible;
  background: none;
  border-radius: 0;
}

.strip .shot {
  display: none;
  aspect-ratio: auto;
  background: none;
}

.strip .shot:first-child {
  display: block;
  margin: 0;
}

.strip .shot img {
  display: block;
  width: 100%;
  height: 300px;
  max-width: none;
  margin: 0;
  object-fit: cover;
}

/* the sheet's blocks: a small blue title, then label and bold value on one line, two columns */
.lp-sheet {
  display: block;
  font-size: 9px;
  line-height: 1.3;
  color: #000;
}

.lp-sheet .lp-sheet-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #19465A;
  break-after: avoid;
  page-break-after: avoid;
}

.lp-sheet-basic,
.lp-sheet-feature-box,
.lp-sheet-address {
  margin: 0 0 14px;
}

/* Basic Details and Address Map read down the left column, then the right, as today's */
.lp-sheet-data {
  margin: 0;
  column-count: 2;
  column-gap: 0;
}

.lp-sheet-row {
  break-inside: avoid;
  page-break-inside: avoid;
}

.lp-sheet-data .lp-sheet-row {
  display: flex;
  gap: 6px;
  margin: 0 0 5px;
}

.lp-sheet-data dt,
.lp-sheet-features .lp-sheet-row > span {
  color: #333;
}

.lp-sheet-data dt::after,
.lp-sheet-features .lp-sheet-row > span::after {
  content: ":";
}

.lp-sheet-data dd {
  margin: 0;
  font-weight: 700;
}

/* Features: two columns read down the left, then the right, as today's (row L2.17). Today's 9
   fields split 4 | 5, which is where their heights balance (a bullet list is taller), not a
   count: a two-column flow balances the same way */
.lp-sheet-features {
  margin: 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 0;
}

.lp-sheet-features > .lp-sheet-row {
  box-sizing: border-box;
  margin: 0 0 6px;
  padding: 0 6px 0 0;
}

.lp-sheet-features > .lp-sheet-row > strong {
  margin: 0 0 0 6px;
  font-weight: 700;
}

/* Row L2.20: under a bullet list the next field starts 13 px down, today's gap (Liam's Kitchener
   print preview: 24 to 25 px from the last bullet's letters to the next label, ours 17 to 18
   before). The list's bottom margin collapses through its row's own 6 px, so it is the gap. */
.lp-sheet-many ul {
  margin: 6px 0 13px;
  padding: 0 0 0 13px;
  list-style: disc;
  font-weight: 700;
  line-height: 1.15;
}

.lp-sheet-many ul li {
  list-style-type: disc;
}

/* the foot: ComFree's office line in italics, a rule, then CREA's footer with the copyright line
   first (right, bold, as today's sheet). CREA's badge and its lines print under it, small, the
   badge beside the text: today's sheet has none of them, but CREA's footer is never hidden
   (tests/test_listing_layout.py), so the page chrome's "* Only when the buyer comes direct" line
   handed into it prints with them. */
.lp-sheet .lp-sheet-office {
  margin: 0;
  padding: 0 0 4px;
  font-size: 7px;
  font-style: italic;
}

/* Row L2.23: the page footer's light grey (style.css, --chrome-grey) printed as a band behind
   CREA's lines when Background graphics is ticked; today's sheet is white paper there. Only the
   wrapper's colour goes: everything in it but CREA's footer is hidden above. */
.chrome-footer {
  background: none;
}

.chrome-footer .crea-footer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  margin-top: 0;
  padding: 4px 0 0;
  border-top: 1px solid #000;
  font-size: 6px;
  line-height: 1.3;
  color: #333;
  background: none;
}

.chrome-footer .crea-footer small {
  font-size: 6px;
}

.chrome-footer .crea-footer > p {
  grid-column: 2;
  margin: 0 0 1px;
}

.chrome-footer .crea-footer > p:first-child {
  grid-column: 1;
  grid-row: 2 / span 3;
}

.chrome-footer .crea-footer > p:last-child {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 3px;
  text-align: right;
  font-weight: 700;
  color: #000;
}

.crea-footer .crea-badge img {
  display: block;
  width: 48px;
  height: auto;
}
