/* Integration of the six approved modules into the existing CakePHP page. */
#novum-estate #novum-method {
  position: relative;
}

/* The established text bronze meets AA on both approved light backgrounds. */
#novum-estate #novum-focus :is(.nf-eyebrow, .nf-code),
#novum-estate #novum-types .nm-eyebrow,
#novum-estate #novum-comparison .nd-eyebrow,
#novum-estate #novum-faq .nq-eyebrow,
#novum-estate .nvd-contact.nvc-closing .nvc-eyebrow {
  color: #806742;
}

#novum-estate #novum-focus .nf-capability p {
  hyphens: auto;
}

/* Retain the previously approved shared bronze icons in the visual modules. */
#novum-estate #novum-focus .nf-capability h3,
#novum-estate #novum-types .nm-type h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

#novum-estate #novum-focus .nf-capability h3 > span,
#novum-estate #novum-types .nm-type h3 > span {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

#novum-estate #novum-focus .nf-capability h3 .nv-icon,
#novum-estate #novum-types .nm-type h3 .nv-icon {
  margin-top: max(0px, calc(.62em - 15px));
}

/* Number, icon and title begin on the same row, with long titles free to wrap. */
#novum-estate #novum-types .nm-type {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 12px;
}

#novum-estate #novum-types .nm-number {
  grid-row: 1;
  min-width: 28px;
  margin-bottom: 0;
}

#novum-estate #novum-types .nm-type p,
#novum-estate #novum-types .nm-link {
  grid-column: 1 / -1;
}

#novum-estate #novum-types .nm-link {
  justify-self: start;
  align-self: end;
}

#novum-estate #novum-comparison .nd-heading {
  display: grid;
  grid-template-columns: max-content 30px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  line-height: 2.15;
}

#novum-estate #novum-comparison .nd-heading .nd-index {
  min-width: 28px;
  margin-bottom: 0;
}

#novum-estate #novum-comparison .nd-heading > span:last-child {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#novum-estate #novum-comparison .nd-heading .nv-icon {
  margin-top: max(0px, calc(1.075em - 15px));
}

#novum-estate #novum-comparison .nd-table col:first-child { width: 22%; }
#novum-estate #novum-comparison .nd-table col:nth-child(2) { width: 38%; }
#novum-estate #novum-comparison .nd-table col:nth-child(3) { width: 40%; }

@media (max-width: 959px) {
  #novum-estate #novum-focus .nf-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  #novum-estate #novum-focus .nf-capabilities {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The real form keeps its existing typeface and all original field styles. */
#novum-estate .nvc-closing .nvd-contact-form {
  font-family: 'DM Sans', Arial, sans-serif;
}

/* Keep keyboard outlines visible inside the decorative section boundaries. */
#novum-estate :is(#novum-focus, #novum-types, #novum-comparison, #novum-faq, #novum-method, .nvc-closing) :is(a, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Size the three introductory illustrations from their height, independently
   of the viewport width, so the depicted objects remain fully visible. */
#novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-art, .nm-art, .nd-art) {
  inset: 0;
  width: calc(100% - 96px);
  max-width: 1192px;
  height: 100%;
  margin: 0 auto;
}

#novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-art, .nm-art, .nd-art) img {
  top: 50%;
  right: 0;
  width: auto;
  height: 122%;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  transform: translateY(-46%);
}

#novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-art, .nm-art, .nd-art)::after {
  background:
    linear-gradient(90deg, #fbfaf6 0%, rgba(251,250,246,0) 65%),
    linear-gradient(0deg, #fbfaf6 0%, rgba(251,250,246,0) 12%),
    linear-gradient(180deg, #fbfaf6 0%, rgba(251,250,246,0) 9%),
    linear-gradient(270deg, #fbfaf6 0%, rgba(251,250,246,0) 5%);
}

/* Carry a soft brass reflection towards the page centre without enlarging
   the original photographs or adding height to either introduction. */
@media (min-width: 1100px) {
  #novum-estate :is(#novum-types, #novum-comparison) :is(.nm-art, .nd-art)::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 16% 24% 0 32%;
    background:
      conic-gradient(from 247deg at 100% 53%, transparent 0deg,
        rgba(146,114,69,.12) 6deg, rgba(224,201,159,.32) 11deg,
        rgba(255,255,255,.85) 14deg, rgba(190,158,106,.16) 19deg, transparent 29deg),
      conic-gradient(from 261deg at 100% 53%, transparent 0deg,
        rgba(255,255,255,.7) 5deg, rgba(185,152,98,.12) 9deg, transparent 17deg);
    mask-image: radial-gradient(ellipse 58% 72% at 50% 61%,
      #000 12%, rgba(0,0,0,.75) 45%, transparent 92%);
  }

  #novum-estate :is(#novum-types, #novum-comparison) :is(.nm-art, .nd-art)::after {
    z-index: 2;
    background:
      linear-gradient(90deg, #fbfaf6 0%, rgba(251,250,246,0) 55%),
      linear-gradient(0deg, #fbfaf6 0%, rgba(251,250,246,0) 12%),
      linear-gradient(180deg, #fbfaf6 0%, rgba(251,250,246,0) 9%),
      linear-gradient(270deg, #fbfaf6 0%, rgba(251,250,246,0) 5%);
  }
}

/* On narrower screens the entire object sits below the heading. Reserving its
   height in padding also keeps the two apart when the text is enlarged. */
@media (max-width: 899px) {
  #novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-intro, .nm-intro, .nd-intro) {
    display: block;
    min-height: 0;
    padding: 40px 0 336px;
  }

  #novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-title-block, .nm-title, .nd-title) {
    width: 100%;
  }

  #novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-art, .nm-art, .nd-art) {
    top: auto;
    width: calc(100% - 48px);
    max-width: 400px;
    height: 320px;
  }

  #novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-art, .nm-art, .nd-art)::after {
    background:
      linear-gradient(90deg, #fbfaf6 0%, rgba(251,250,246,0) 10%),
      linear-gradient(0deg, #fbfaf6 0%, rgba(251,250,246,0) 14%),
      linear-gradient(180deg, #fbfaf6 0%, rgba(251,250,246,0) 8%),
      linear-gradient(270deg, #fbfaf6 0%, rgba(251,250,246,0) 5%);
  }
}

@media (max-width: 359px) {
  #novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-intro, .nm-intro, .nd-intro) {
    padding-bottom: 296px;
  }

  #novum-estate :is(#novum-focus, #novum-types, #novum-comparison) :is(.nf-art, .nm-art, .nd-art) {
    width: calc(100% - 36px);
    height: 280px;
  }
}
