/* RS2-M4.7.3 · the home page's own rules (site-owned; everything else in /home/ is the
 * approved prototype, copied by design/home-sync). Loaded after the copied styles. */

/* Type: each copied rule pins its family's drawn weight (--rd-w, sync.mjs). Elements the
 * browser or the kit makes bold by default (strong, headings, th) follow the same weight. */
:where(#main) :is(strong, b, h1, h2, h3, h4, h5, h6, th):not(:where(.lf *)) {
  font-weight: var(--rd-w, 400);
}

/* The kit's element defaults (base.css) the prototype never had; only the prototype's own
 * class rules style these elements on this page. Element specificity (0,0,1), loaded after the
 * kit, so the kit's element rules yield and every class rule of the copied styles still wins. */
:where(#main) img {
  max-width: none;
}

:where(#main) :is(h1, h2, h3, h4, h5, h6) {
  line-height: inherit;
}

:where(#main) li + li {
  margin-top: 0;
}

:where(#main) blockquote {
  padding-left: 0;
  border-left: 0;
  color: inherit;
}

:where(#main) :is(strong, b):not(:where(.lf *)) {
  font-family: inherit;
}

/* The prototype's "talk to us" controls were buttons; here they are links to the form. */
:where(#main) a[data-enquiry] {
  text-align: center;
}

/* Arrows are not in the Plex files; the system face draws them at the weight the element
 * asks for, and the prototype asked 400 for these. */
.contact-dock .whatsapp b,
.dock-enquiry span,
.phone-arrow {
  font-weight: 400;
}

/* The animation pack mounts when it nears the viewport (home.js); until then its stage
 * height (pack-gallery.css: 540px) is held, so nothing below it moves. */
#animation-gallery:not(.pack-gallery) {
  min-height: 540px;
}

/* The page's one lead form (RS2-M4.8; its whole look is /lead.css, served by the lead Worker;
 * never styled in a site file): on the page's own background, no band of its own, one
 * centred column as wide as the prototype's enquiry dialog. The form is never styled here.
 * No top padding: the closing section's own bottom space sits above the form, about the
 * same as the space below it. */
.home-lead {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  padding: 0 var(--gutter) 72px;
}

@media (max-width: 600px) {
  .home-lead {
    padding: 0 var(--gutter) 48px;
  }
}
