/* Preserve the approved outlined Inter Black typography before contrast enhancements. */
@layer monteloft-readable;
/* MONTELOFT: approved photo contrast, slightly stronger than the review.
   Only type and tonal overlays change. Scene assets, geometry and motion are untouched.
   Load before readable-ivory: the first important layer owns the type reset. */
@layer monteloft-contrast {
  body {
    --ml-contrast-fill: #1b352d;
    --ml-contrast-shadow: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 500 !important;
    font-size: 22px !important;
  }
  body:is(.home-immersive,.section-immersive,.bathroom-immersive,.apartment-immersive,.house-immersive,.pool-immersive,.calculator-hub-immersive) {
    --ml-contrast-fill: #fffdf7;
    --ml-contrast-shadow: 0 2px 5px rgba(0,0,0,.82);
  }
  body, body :is(div,span,h1,h2,h3,h4,h5,h6,p,a,label,legend,strong,b,small,summary,li,dt,dd,caption,figcaption,button,input,textarea,select,th,td,blockquote,em,time,output) {
    color: var(--ml-contrast-fill) !important;
    -webkit-text-fill-color: currentColor !important;
    -webkit-text-stroke: 0 !important;
    paint-order: normal !important;
    text-shadow: var(--ml-contrast-shadow) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 500 !important;
  }
  body :is(h1,h2,h3,h4,h5,h6), body :is(h1,h2,h3,h4,h5,h6) span {
    font-weight: 700 !important;
  }
  body :is(strong,b,legend,.consumer-choice strong,.ap-mode strong,.ap-choice strong) {
    font-weight: 650 !important;
  }
  body :is(p,li,dt,dd,blockquote,td,th),
  body :is(.consumer,.guide-prose,.prose,.intro-text,.hero-description,.hero-tagline,.section-heading>p,.detail-list li,.case-copy p,.process-grid p,.service-item p,.guide-intro,.guide-category p,.guide-article-list p,.guide-cta p,.cr-parameters p,.cr-saved-main p,.cr-saved-main li) {
    font-size: 24px !important;
    line-height: 1.6 !important;
  }
  body :is(small,.small-note,.muted,.eyebrow,.consumer-hint,.consumer-why,.consumer-local-note,.consumer-current-variant,.consumer-choice small,.consumer-panel label>small,.file-field small,.guide-meta,.guide-breadcrumbs,.guide-card-link,.guide-sources,.guide-related a,.cr-reference,.cr-result [data-cr-status],.pool-scene-note,.section-scene-note,.home-scene-caption,.carousel-counter,.carousel-hint,.viewer-caption,.viewer-counter,.viewer-hint) {
    font-size: 20px !important;
    line-height: 1.55 !important;
    letter-spacing: normal !important;
  }
  body :is(label,legend,.consumer-choice strong,.consumer-panel label,.consumer-panel legend,.consumer-check,.consumer-area label,.consumer-budget label) {
    font-size: 23px !important;
    line-height: 1.5 !important;
  }
  body :is(button,.button,.text-link,.consumer-primary,.consumer-secondary,.cr-text,.consumer-edit-options button,.home-planner-button,.form-submit,.guide-contact) {
    font-size: 22px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
  }
  body :is(.consumer-edit-options button,.cr-copy-actions button,.consumer-steps span) { font-size: 20px !important; }
  body .home-cost-label, body .home-gallery-index { font-size: 20px !important; }
  body .home-cost-answer { font-size: 25px !important; }
  body .hero-credentials strong { font-size: 28px !important; }
  body .hero-credentials span { font-size: 21px !important; }
  body .home-gallery-link p { font-size: 24px !important; }
  body .home-scene-caption__number { font-size: 19px !important; }
  body .consent, body .footer-bottom, body .footer-bottom :is(span,a,button) { font-size: 20px !important; }
  body :is(.footer-links a,.footer-contact>a) { font-size: 22px !important; }

  body .site-footer { --ml-contrast-fill: #fffdf7; }

  /* Existing light controls and dialogs remain light, with dark unoutlined type. */
  body :is(.site-header,.cookie-dialog,.nav-menu,.cr-saved-header,.project-carousel .carousel-slide figcaption,.base-price-box,.base-price-details,.enquiry-result) {
    --ml-contrast-fill: #1b352d;
    --ml-contrast-shadow: none;
  }
  body.calculator-hub-immersive .site-header {
    --ml-contrast-fill: #fffdf7;
    --ml-contrast-shadow: 0 2px 5px rgba(0,0,0,.82);
  }
  body .site-header .ml-navigation { --ml-contrast-fill: #1b352d; --ml-contrast-shadow: none; }
  @media(min-width:921px) {
    body.calculator-hub-immersive .site-header .ml-navigation { --ml-contrast-fill: #fffdf7; --ml-contrast-shadow: 0 2px 5px rgba(0,0,0,.82); }
  }
  body :is(input,textarea,select) {
    --ml-contrast-fill: #1b352d;
    --ml-contrast-shadow: none;
    font-size: 22px !important;
    line-height: 1.5 !important;
    caret-color: #1b352d !important;
    font-weight: 500 !important;
  }
  body :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=file]),textarea,select) { background: rgba(255,255,255,.32) !important; }
  body :is(input,textarea)::placeholder {
    color: #52655c !important;
    -webkit-text-fill-color: #52655c !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    font-weight: 400 !important;
    opacity: 1 !important;
  }
  body select option { color: #1b352d !important; -webkit-text-fill-color:#1b352d !important; background: #fffdf7 !important; text-shadow:none !important; font-weight:500 !important; }
  body input[type=file] { --ml-contrast-fill: inherit; color: inherit !important; }
  body .site-header .language-switch a.active { --ml-contrast-fill: #0d625b; --ml-contrast-shadow: none; font-weight: 700 !important; }
  body .site-header .brand-mark { color: #0d625b !important; }
  body .site-header .brand-word { font-weight: 700 !important; }
  body .site-header .brand-word>span { font-size: 18px !important; }
  body .site-header .language-switch a { font-size: 17px !important; }
  body .site-header .ml-navigation>a { font-size: 19px !important; }
  body .ml-navigation :is(small,.ml-nav-index), body .ml-nav-foot a { font-size: 18px !important; }
  body :is(.photo-viewer,.viewer-shell) { --ml-contrast-fill: #fffdf7; --ml-contrast-shadow: none; }

  /* The shading is painted above existing scenes; no scene box or image is resized. */
  :is(.home-scene,.section-scene,.bathroom-scene,.apartment-scene,.house-scene,.pool-scene,.calculator-hub-scene)::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(90deg,rgba(3,17,13,.43) 0%,rgba(3,17,13,.25) 42%,rgba(3,17,13,.07) 62%,transparent 80%) !important;
  }
  body :is(.consumer-choice:has(input:checked),.consumer-choice[aria-pressed=true]) {
    border-color: #79e4c8 !important;
    box-shadow: 0 0 0 2px rgba(121,228,200,.8) !important;
  }
  body :is(.consumer-choice input[type=radio],.consumer-choice input[type=checkbox]) { accent-color: #098875 !important; }
  @media(max-width:1039px) {
    :is(.home-scene,.section-scene,.bathroom-scene,.apartment-scene,.house-scene,.pool-scene,.calculator-hub-scene)::after {
      background: linear-gradient(90deg,rgba(3,17,13,.37),rgba(3,17,13,.18)) !important;
    }
  }
  @media(max-width:700px) {
    body :is(p,li,dt,dd,blockquote,td,th), body :is(.consumer,.guide-prose,.prose,.intro-text,.hero-description,.hero-tagline,.section-heading>p,.detail-list li,.case-copy p,.process-grid p,.service-item p,.guide-intro,.guide-category p,.guide-article-list p,.guide-cta p,.cr-parameters p,.cr-saved-main p,.cr-saved-main li) { font-size: 23px !important; line-height: 1.6 !important; }
    body :is(small,.small-note,.muted,.eyebrow,.consumer-hint,.consumer-why,.consumer-local-note,.consumer-current-variant,.consumer-choice small,.consumer-panel label>small,.file-field small,.guide-meta,.guide-breadcrumbs,.guide-card-link,.guide-sources,.guide-related a,.cr-reference,.cr-result [data-cr-status],.pool-scene-note,.section-scene-note,.home-scene-caption,.carousel-counter,.carousel-hint) { font-size: 19px !important; }
    body :is(label,legend,.consumer-choice strong,.consumer-panel label,.consumer-panel legend,.consumer-check,.consumer-area label,.consumer-budget label) { font-size:22px !important; }
    body .hero-credentials span { font-size:20px !important; }
    body .home-gallery-link p { font-size:23px !important; }
    body .site-header .brand-word { font-size:16px !important; }
    body .site-header .brand-word>span { display:none !important; }
    body .site-header .language-switch a { font-size:16px !important; }
    body .site-header .ml-navigation>a { font-size:24px !important; }
    body .ml-navigation :is(small,.ml-nav-index),body .ml-nav-foot a { font-size:18px !important; }
  }
  @media print {
    body,body * { color:#111 !important; -webkit-text-fill-color:#111 !important; -webkit-text-stroke:0 !important; text-shadow:none !important; }
    :is(.home-scene,.section-scene,.bathroom-scene,.apartment-scene,.house-scene,.pool-scene,.calculator-hub-scene)::after { display:none !important; }
  }
  @media(forced-colors:active) {
    body,body * { color:CanvasText !important; -webkit-text-fill-color:CanvasText !important; -webkit-text-stroke:0 !important; text-shadow:none !important; }
  }
}
