/* Support rules for pages converted from the design canvas. Loaded after the canvas stylesheets.
   No colors or sizes are defined here. */
st-root, st-if, st-t { display: contents; }
[hidden], [data-if][hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.st-canvas { margin: 0; }
/* WordPress admin bar: keep the floating header and fixed bars clear of it for signed-in users. */
body.st-canvas.admin-bar .st-header { top: 32px; }
@media screen and (max-width: 782px) { body.st-canvas.admin-bar .st-header { top: 46px; } }
@media screen and (max-width: 600px) { body.st-canvas.admin-bar .st-header { top: 0; } }

/* Build fix, not in the canvas: the design was drawn for 390px phones and its header is 28px too wide
   at 320px. Below 360px the logo and Contact button tighten so nothing scrolls sideways. */
@media (max-width: 359px) {
  .st-header__bar { gap: var(--space-2); padding-left: var(--space-3); }
  .st-header .st-header__logo img { height: 18px; }
  .st-header__bar .hp-header-contact { padding-inline: var(--space-3); letter-spacing: .08em; }
}

/* Build fix, not in the canvas: the Agents profile panel assumes every agent has a phone and an email.
   An agent entered in WordPress may not, so a contact link with nothing to open is not shown. */
.tp-panel a[href=""], .tp-panel a[href="tel:"], .tp-panel a[href="sms:"], .tp-panel a[href="mailto:"] { display: none; }

/* Build addition, not in the canvas: live IDX output (inc-idx.php). .ix-live wraps what iHomefinder prints,
   in a slot or on one of its own pages. iHomefinder's text inherits its font from here. .ix-shell is the
   section used on iHomefinder's own pages; its top padding clears the floating header the same way the
   Search page intro does. */
.ix-live { min-width: 0; max-width: 100%; font-family: var(--font-body); font-weight: 400; color: var(--charcoal); }
.ix-shell { padding-top: calc(var(--header-height-mobile) + var(--space-3) + var(--space-7)); padding-bottom: var(--space-10); }
@container page (min-width: 720px) {
  .ix-shell { padding-top: calc(var(--header-height) + var(--space-7) + var(--space-8)); }
}
/* Layout check block shown to administrators only (?st_idx_preview=slots or =shell). */
.ix-preview { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--blue-100); }
.ix-preview__label { margin: 0; font-size: 15px; font-weight: 600; color: var(--charcoal); }
.ix-preview__grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.ix-preview__cell { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--white); }

/* Build fix: error text inside the contact conversation sits on the white chat panel, so it keeps the
   dark error red even when the panel is inside a dark section. Without this the light red meant for
   dark grounds applied and the message was hard to read. */
.st-on-dark .hp-chat .hp-error { color: var(--hp-error); }

/* Build additions for blog articles that come from WordPress, not in the canvas.
   An article with no cover photo: the header keeps the normal section padding below the title block
   (the canvas header ends flush because a cover photo follows it). */
.bp-head--plain { padding-bottom: var(--space-9); }
@container page (min-width: 720px) {
  .bp-head--plain { padding-bottom: var(--space-10); }
}
/* Article text written in the WordPress editor can hold elements the canvas sample did not use. */
.bp-prose h3, .bp-prose h4 { margin-top: var(--space-7); font-family: var(--font-display); font-weight: 700; line-height: 1.25; text-wrap: balance; }
.bp-prose h3 { font-size: clamp(21px, 2.1cqi, 24px); }
.bp-prose h4 { font-size: 19px; }
.bp-prose h3 + *, .bp-prose h4 + * { margin-top: var(--space-3); }
.bp-prose ol { display: grid; gap: var(--space-3); padding-left: 1.4em; }
.bp-prose strong { font-weight: 600; }
.bp-prose img, .bp-prose video, .bp-prose iframe { max-width: 100%; height: auto; }
.bp-prose figure { margin-inline: 0; }
.bp-prose blockquote { margin-inline: 0; padding-left: var(--space-5); border-left: 3px solid var(--schulman-blue); }
.bp-prose { overflow-wrap: break-word; }
/* The Blog list: with no photo cards above it, the row list starts right under the status line. */
.bl-grid[hidden] + .bl-empty[hidden] + .bl-archive { margin-top: 0; }

/* Build change, 2026-12-03: the footer's legal block follows the NOUSS standard footer and is printed by
   schulman_team_footer_legal() in inc-canvas-data.php. As in the standard, its lines run the full width
   of the footer, and the lead words of a line ("Equal Housing Opportunity.") are darker than the rest. */
.hp-foot__legal .hp-foot__info p { max-width: none; }
.hp-foot__info b { font-weight: 600; color: var(--charcoal); }

/* Build change, 2026-12-03: the NOUSS logo in the "Built by" credit is 18px tall, the size it has in the
   standard footer on www.debbiegates.com (measured there at 1280px and 375px), on Isaiah's instruction.
   The canvas's own rule sets 30px. */
.hp-foot__credit .hp-builtby img { height: 18px; }

/* Build change, 2026-12-03: the homepage search bar sends visitors to the IDX search (assets/js/dc-lite.js).
   The note under the bar now holds a link, and the field uses the browser's own suggestion list (a
   datalist), shown without the drop-down arrow some browsers add to the field. */
.hp-search-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.st-search input::-webkit-calendar-picker-indicator { display: none !important; }
