/* Clean print stylesheet for Sandy Margolin Real Estate.
   Loaded with media="print" so it only applies in print / Save-as-PDF.
   The printed output is: a small mast head with the site name and page
   title, then only the guide body. Header, footer, forms, widgets, video
   and other chrome are hidden. */

/* .print-only is hidden on screen and revealed in print. */
.print-only {
  display: none !important;
}

@media print {
  @page {
    margin: 1.4cm;
  }

  html {
    scroll-behavior: auto;
  }

  html,
  body {
    background: #ffffff !important;
    color: #1a1a1a !important;
  }

  body {
    margin: 0;
    padding: 0 !important;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 11.5pt;
    line-height: 1.55;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Shared site chrome that should never appear on a saved guide. */
  header,
  footer,
  nav,
  aside,
  .print-hide,
  .no-print,
  .nl-root,
  .tavus-widget,
  tavus-widget,
  [role="navigation"] {
    display: none !important;
  }

  /* Interactive controls and rich media that don't print cleanly. */
  form,
  input,
  select,
  textarea,
  option,
  iframe,
  video,
  canvas,
  .featured-widget,
  bb-widget,
  .umb-search,
  [data-nl-banner],
  [data-nl-modal] {
    display: none !important;
  }

  /* Let the printable guide body render on a clean white page. */
  main {
    display: block !important;
    background: #ffffff !important;
    text-align: left;
  }

  section,
  article,
  figure,
  table,
  .guide-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* The print-specific document header (site name + page title). */
  .print-only {
    display: block !important;
  }

  .print-mast-head {
    border-bottom: 2px solid #1b489b;
    padding-bottom: 6px;
    margin-bottom: 16px;
  }

  .print-mast-brand {
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1b489b !important;
    margin: 0;
  }

  .print-mast-rule {
    border: 0;
    border-top: 1px solid #cdbe9c;
    margin: 8px 0 16px;
  }

  .print-title {
    font-size: 20pt;
    font-weight: 700;
    line-height: 1.15;
    color: #111111 !important;
    margin: 2px 0 0;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }

  /* Force readable, dark-on-white copy. */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #111111 !important;
    break-after: avoid;
    page-break-after: avoid;
    font-family: "Oswald", "Arial Narrow", sans-serif;
  }

  h2 {
    font-size: 17pt;
    margin: 1.1em 0 0.4em;
  }

  h3 {
    font-size: 14pt;
    margin: 1em 0 0.35em;
  }

  h4,
  h5,
  h6 {
    font-size: 12pt;
    margin: 0.9em 0 0.3em;
  }

  p,
  li,
  blockquote,
  td,
  th,
  figcaption {
    color: #1a1a1a !important;
    font-size: 11.5pt;
    line-height: 1.55;
  }

  p {
    margin: 0 0 0.9em;
  }

  ul,
  ol {
    margin: 0 0 1em;
    padding-left: 1.3em;
  }

  li {
    margin: 0 0 0.35em;
  }

  a {
    color: #16356b !important;
    text-decoration: underline;
    word-break: break-word;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555555;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  /* De-emphasize decorative stamps and keep dimmed label tones readable. */
  .stamp,
  .woodtype,
  .tracked,
  .font-mono,
  .text-denim,
  .text-ink-soft,
  .text-ink-faint,
  .text-teal,
  .text-brand {
    color: #1a1a1a !important;
  }

  i,
  em {
    font-style: italic;
  }
}