/* The page layout rules of slice BA (UX_RULES 4 and 5), over every screen's own CSS: loaded last, after realtor.css.
   They reach classes older than look v2 (section(), the job page, the firm bar), so they live here, not in base.css. */
/* ================================================================ one readable column at every width (UX_RULES 5, slice BA)
   The phone's single column carries up to 1440: about 720 px of content, centred beside the rail. Two-column layouts
   (the job page, the building and property pages, a list beside its record) stack as on a phone. The first-run frames
   (sign in, set up) keep their photo beside the form. */
@media (min-width: 1024px) {
  #main > .view > .v2:not(.v-si):not(.v-ob), .v2.fb { max-width: 816px; margin-left: auto; margin-right: auto; }
  .v2.jp-v2 .jp-grid, .v2.jp-v2 .jp-nowgrid.has-clock, .ls-two, .v2.v-lists .ls-two, .v2 .fx-grid, .v2.home-v2 .home-grid { display: block; }
  .v2.jp-v2 .jp-side, .v2 .fx-side { position: static; margin-top: var(--v-sec); }
  .ll-reqs { grid-template-columns: 1fr; }
  .v2 .fb-in { display: block; }
  .v2 .fb-row { width: auto; max-width: 480px; }
  .v2 .fb-chips { margin-top: 12px; }
}

/* ================================================================ one section head everywhere (UX_RULES 4, slice BA)
   The old section() head (DIN caps with an orange tick) reads as v2's: the label at body weight over a hairline. Sections
   are told apart by weight and space, never by caps or colour. */
.ds-sec > .sec-h { align-items: baseline; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--v-hair-2, #D6DADF); }
.ds-sec > .sec-h h2 { padding: 0; font: 600 15px/20px var(--v-sans, var(--font)); letter-spacing: 0; text-transform: none; color: var(--v-ink-2, #343A42); }
.ds-sec > .sec-h h2::after { content: none; }
.ds-sec > .sec-h .sec-side { padding: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute, #5C6570); }

/* ================================================================ Approve is green on the older buttons too (slice BA)
   The quote page, the approve sheets and the inspection report still draw .btn: an Approve there carries v-approve and
   reads as the v2 green button, loaded last so it wins over each area's orange or ink restyle. */
.v2 .btn.v-approve { background: var(--v-approve); color: var(--v-white); border-color: var(--v-approve); box-shadow: none; }
.v2 .btn.v-approve:hover { background: #1A6835; border-color: #1A6835; box-shadow: none; }
.v2 .btn.v-approve:active { background: #155A2D; border-color: #155A2D; }
.v2 .btn.v-approve:disabled, .v2 .btn.v-approve[aria-busy="true"] { background: var(--v-hair); border-color: var(--v-hair); color: var(--v-soft); opacity: 1; }
html.kbd .v2 .btn.v-approve:focus-visible { outline: 2px solid var(--v-ink); outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--v-white); }

/* The black button is the main button off the Order (UX_RULES 3, Nov 2). Here, the last sheet, so it wins the ties with
   each screen's white hover (onboarding, sign in, the order sheet, lists): black on hover with white words, grey when it
   cannot be pressed (hover too), a white inner ring on keyboard focus. */
.v2 .btn.btn-ink:hover { background: #262B33; border-color: #262B33; color: var(--v-white); box-shadow: none; }
.v2 .btn.btn-ink:disabled, .v2 .btn.btn-ink:disabled:hover, .v2 .btn.btn-ink[aria-busy="true"], .v2 .btn.btn-ink[aria-busy="true"]:hover {
  background: var(--v-hair); border-color: var(--v-hair); color: var(--v-soft); box-shadow: none; opacity: 1; cursor: default; }
html.kbd .v2 .btn.btn-ink:focus-visible { box-shadow: inset 0 0 0 2px var(--v-white); }
