/* ============================================================================
   Demo article pages in the FW Real Estate theme's design (brain_biz spec
   2026-11-17-fwre-real-estate-theme, FR-039).

   The demo's article pages (MLS/IDX, All fields, the add-ons overview and the
   module pages) are bodies written by demo_fwre's renderers and dressed by
   demo-tokens-fwre.css, demo-pages.css and demo-property.css. Those three stay
   as they are: the other demo frames still read them. This
   file loads after them, only where the FW Real Estate theme is active, and
   maps the same markup onto the theme's language:

   - the hero: the theme's photo hero (the home's scrim, white title in the
     heading face) and, for the split hero, the theme's light teal band;
   - two buttons only: the primary (teal fill, white text) and the secondary
     (muted fill, teal text), 4 px corners;
   - 8 px corners on every content container, 4 px on every control;
   - tables headed like the theme's: no fill, a hairline under the head;
   - chips in the theme's palette, and the notice band of the home's alerts
     prompt (a teal tint inside a hairline) in place of the yellow box;
   - flat dark bands in the theme's navy, never a gradient.

   The markup and the copy stay demo_fwre's own. A composed module page
   (.fwre-page-cols) is left to the official design, which owns its look.
   ========================================================================== */

/* ---- Tokens this file reads, with the theme's values as fallbacks ---- */
.fwre-info-port {
    --fwre-pt-primary: var(--fwre-color-primary, #0CAB9B);
    --fwre-pt-primary-hover: var(--fwre-color-primary-hover, #0A8F82);
    --fwre-pt-on-primary: var(--fwre-color-on-primary, #fff);
    --fwre-pt-secondary-bg: var(--fwre-color-surface-muted, #F3F3F3);
    --fwre-pt-secondary-hover: var(--fwre-color-surface-strong, #E1E1E1);
    --fwre-pt-surface: var(--fwre-color-surface, #fff);
    --fwre-pt-tint: var(--fwre-color-band-tint, #EEF7F6);
    --fwre-pt-soft: var(--fwre-color-primary-soft, rgba(12, 171, 155, .075));
    --fwre-pt-ink: var(--fwre-color-text, #323232);
    --fwre-pt-muted: var(--fwre-color-text-muted, #6E7683);
    --fwre-pt-line: var(--fwre-color-border, #E1E1E1);
    --fwre-pt-inverse: var(--fwre-color-band-inverse, #252F4B);
    --fwre-pt-on-inverse: var(--fwre-color-on-inverse, #fff);
    --fwre-pt-card: var(--fwre-radius-card, 8px);
    --fwre-pt-control: var(--fwre-radius, 4px);
    --fwre-pt-shadow: var(--fwre-shadow-sm, 0 4px 13px rgba(30, 35, 66, .11));
}

/* ---- The hero: the theme's photo hero ---- */
.fwre-info-port .fwre-info-hero { background-color: var(--fwre-color-hero-fallback, #2A2F33); }
/* The home's scrim is light because its title sits on a dark sky; these heroes centre a title, a lead and
   figures on any photo, so the same neutral scrim runs darker (no colour, never the navy). */
.fwre-info-port .fwre-info-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .62) 100%); }
.fwre-info-port .fwre-info-hero-title {
    font-family: var(--fwre-font-heading, inherit);
    font-size: clamp(var(--fwre-text-hero, 36px), 3.4vw, 48px);
    line-height: 1.17;
    font-weight: var(--fwre-weight-bold, 700);
    color: var(--fwre-color-on-media, #fff);
    text-shadow: var(--fwre-shadow-text-title, 0 1px 3px rgba(0, 0, 0, .45));
}
.fwre-info-port .fwre-info-hero-sub { font-size: var(--fwre-text-xl, 16px); line-height: 1.6; }
.fwre-info-port .fwre-info-hero-stat strong {
    color: var(--fwre-color-on-media, #fff);
    font-family: var(--fwre-font-heading, inherit);
    font-weight: var(--fwre-weight-semibold, 600);
}

/* The split hero (All fields): the theme's light band, dark copy, the capture in an 8 px frame. */
.fwre-info-port .fwre-info-hero.fwre-info-hero-split {
    background-color: var(--fwre-pt-tint);
    background-image: none;
    border-bottom: 1px solid var(--fwre-pt-line);
}
.fwre-info-port .fwre-info-hero-split .fwre-info-hero-title { color: var(--fwre-pt-ink); text-shadow: none; }
.fwre-info-port .fwre-info-hero-split .fwre-info-hero-sub,
.fwre-info-port .fwre-info-hero-split .fwre-info-hero-stat { color: var(--fwre-pt-muted); text-shadow: none; }
.fwre-info-port .fwre-info-hero-split .fwre-info-hero-stat strong { color: var(--fwre-pt-primary); }
.fwre-info-port .fwre-info-hero-panel .fwre-frame {
    border: 1px solid var(--fwre-pt-line);
    border-radius: var(--fwre-pt-card);
    box-shadow: var(--fwre-pt-shadow);
}

/* ---- Buttons: the theme's primary and secondary, nothing else ---- */
/* `:is()` with the id carries the id's weight, so these out-rank the design's
   `:is(#fwre, .fwre-site-main) .fwre-nav-cta` colour and demo-property.css's island rules. */
.fwre-info-port :is(#fwre, .fwre-info-hero, .fwre-info-ctaband) .fwre-nav-cta,
.fwre-info-port :is(#fwre, .fwre-info-hero, .fwre-info-ctaband) .fwre-lead-card-go {
    display: inline-flex;
    align-items: center;
    gap: var(--fwre-space-6, 6px);
    min-height: 44px;
    margin-left: 0;
    padding: var(--fwre-space-12, 12px) var(--fwre-space-26, 26px);
    border: 1px solid var(--fwre-pt-primary);
    border-radius: var(--fwre-pt-control);
    background: var(--fwre-pt-primary);
    color: var(--fwre-pt-on-primary) !important;
    font-family: var(--fwre-font, inherit);
    font-size: var(--fwre-text-md, 14px);
    font-weight: var(--fwre-weight-semibold, 600);
    line-height: 1.3;
    text-decoration: none;
    filter: none;
    box-shadow: none;
}
.fwre-info-port :is(#fwre, .fwre-info-hero, .fwre-info-ctaband) .fwre-nav-cta:hover,
.fwre-info-port #fwre .fwre-lead-card:hover .fwre-lead-card-go {
    border-color: var(--fwre-pt-primary-hover);
    background: var(--fwre-pt-primary-hover);
    color: var(--fwre-pt-on-primary) !important;
    filter: none;
}
.fwre-info-port :is(#fwre, .fwre-info-hero, .fwre-info-ctaband) .fwre-info-cta-lg {
    padding: var(--fwre-space-12, 12px) var(--fwre-space-30, 30px) !important;
    font-size: var(--fwre-text-xl, 16px) !important;
}
/* The demo's white ghost buttons become the theme's secondary. */
.fwre-info-port :is(#fwre, .fwre-info-hero, .fwre-info-ctaband) :is(.fwre-info-ghost-btn, .fwre-pack-ghost) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: var(--fwre-space-12, 12px) var(--fwre-space-30, 30px);
    border: 1px solid var(--fwre-pt-secondary-bg);
    border-radius: var(--fwre-pt-control);
    background: var(--fwre-pt-secondary-bg);
    color: var(--fwre-pt-primary) !important;
    font-family: var(--fwre-font, inherit);
    font-size: var(--fwre-text-xl, 16px);
    font-weight: var(--fwre-weight-semibold, 600);
    line-height: 1.3;
    text-decoration: none;
}
.fwre-info-port :is(#fwre, .fwre-info-hero, .fwre-info-ctaband) :is(.fwre-info-ghost-btn, .fwre-pack-ghost):hover {
    border-color: var(--fwre-pt-secondary-hover);
    background: var(--fwre-pt-secondary-hover);
    color: var(--fwre-pt-primary) !important;
}
/* On the split hero's light band (All fields) the grey secondary all but vanished, so there it is white
   with a primary border (owner, sixth walk, 20 Nov 2026: "white bg with green border"). The same :is()
   as the rule above, so this one outranks it on the split hero alone. */
.fwre-info-port :is(#fwre, .fwre-info-hero).fwre-info-hero-split :is(.fwre-info-ghost-btn, .fwre-pack-ghost) {
    border-color: var(--fwre-pt-primary);
    background: var(--fwre-pt-surface);
}
.fwre-info-port :is(#fwre, .fwre-info-hero).fwre-info-hero-split :is(.fwre-info-ghost-btn, .fwre-pack-ghost):hover {
    border-color: var(--fwre-pt-primary-hover);
    background: var(--fwre-pt-soft);
}

/* ---- Sections: white and the theme's teal tint in turn, 8 px corners ---- */
.fwre-info-port #fwre .fwre-prose-sec:nth-of-type(even),
.fwre-info-port #fwre.fwre-features > .fwre-feat-group:nth-of-type(even) {
    border: 1px solid var(--fwre-pt-line);
    border-radius: var(--fwre-pt-card);
    background: var(--fwre-pt-tint);
}
.fwre-info-port #fwre :is(.fwre-prose-h, .fwre-feat-group-title, .fwre-lead-card-name, .fwre-pack-title) {
    font-family: var(--fwre-font-heading, inherit);
    font-weight: var(--fwre-weight-semibold, 600);
}

/* ---- Cards: 8 px containers on the theme's soft shadow ---- */
.fwre-info-port #fwre :is(.fwk-card, .fwre-step, .fwre-provider-card, .fwre-spec-card, .fwre-lead-card,
    .fwre-photo-card, .fwre-icon-tile, .fwre-map, .fwre-feat-card) {
    border-radius: var(--fwre-pt-card);
}
.fwre-info-port #fwre :is(.fwre-provider-card, .fwre-lead-card, .fwre-photo-card, .fwre-icon-tile, .fwre-spec-card, .fwre-map) {
    box-shadow: var(--fwre-pt-shadow);
}
.fwre-info-port #fwre .fwre-step { border: 1px solid var(--fwre-pt-line); border-top: 3px solid var(--fwre-pt-primary); }
.fwre-info-port #fwre .fwre-frame { border-radius: var(--fwre-pt-card) var(--fwre-pt-card) 0 0; }
.fwre-info-port #fwre :is(.fwre-photo-card, .fwre-lead-card) .fwre-frame { border-radius: 0; }
.fwre-info-port #fwre .fwre-frame-bar { background: var(--fwre-pt-secondary-bg); }
.fwre-info-port #fwre a.fwre-icon-tile:hover { border-color: var(--fwre-pt-primary); }

/* ---- Tables: headed like the theme's, no fill and a hairline under the head ---- */
.fwre-info-port #fwre :is(thead th, .fwre-spec-card-head, .fwre-map-head) {
    background: var(--fwre-pt-surface);
    border-bottom: 1px solid var(--fwre-pt-line);
    color: var(--fwre-pt-ink);
}
.fwre-info-port #fwre .fwre-spec-card-head { font-family: var(--fwre-font-heading, inherit); font-weight: var(--fwre-weight-semibold, 600); }
.fwre-info-port #fwre .fwre-map-head { color: var(--fwre-pt-muted); }
/* The live custom-fields card keeps its teal outline; its head reads like the others. */
.fwre-info-port #fwre .fwre-spec-card-live .fwre-spec-card-head { background: var(--fwre-pt-surface); color: var(--fwre-pt-ink); }
.fwre-info-port #fwre .fwre-spec-card-live .fwre-spec-card-head .fwre-fieldcat-n { background: var(--fwre-pt-primary); color: var(--fwre-pt-on-primary); }
/* A feed field is code: the theme's muted chip with a 4 px corner, not a navy block. */
.fwre-info-port #fwre .fwre-map-feed {
    border: 1px solid var(--fwre-pt-line);
    border-radius: var(--fwre-pt-control);
    background: var(--fwre-pt-secondary-bg);
    color: var(--fwre-pt-ink);
}

/* ---- Chips and badges: the theme's palette ---- */
.fwre-info-port #fwre .fwre-tier-core { border-color: var(--fwre-pt-primary); background: var(--fwre-pt-soft); color: var(--fwre-pt-primary); }
.fwre-info-port #fwre .fwre-tier-addon { border-color: var(--fwre-pt-line); background: var(--fwre-pt-secondary-bg); color: var(--fwre-pt-ink); }
.fwre-info-port #fwre :is(.fwre-photo-badge, .fwre-unlimited-badge) {
    border: 1px solid var(--fwre-pt-primary);
    background: var(--fwre-pt-soft);
    color: var(--fwre-pt-primary);
}
.fwre-info-port #fwre .fwre-spec-card-live .fwre-unlimited-badge { background: var(--fwre-pt-surface); }
/* The shop's package chip on each add-on card, and the Docs line of an add-on with no front end (FR-040). */
.fwre-info-port #fwre .fwre-feat-badge { border: 1px solid var(--fwre-pt-line); background: var(--fwre-pt-secondary-bg); color: var(--fwre-pt-ink); }
.fwre-info-port #fwre .fwre-feat-docs { margin-top: .4rem; font-size: .85rem; color: var(--fwre-pt-muted); }
.fwre-info-port #fwre .fwre-feat-docs-screen { color: var(--fwre-pt-ink); font-weight: var(--fwre-weight-semibold, 600); }
.fwre-info-port #fwre .fwre-feat-docs-path {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: .2rem;
    padding: .05rem .4rem;
    border: 1px solid var(--fwre-pt-line);
    border-radius: var(--fwre-pt-control);
    background: var(--fwre-pt-secondary-bg);
    color: var(--fwre-pt-ink);
    font-size: .78rem;
    word-break: break-all;
}

/* ---- The provider band: the theme's light band, not the navy gradient ---- */
.fwre-info-port #fwre .fwre-chip-band {
    border: 1px solid var(--fwre-pt-line);
    border-radius: var(--fwre-pt-card);
    background: var(--fwre-pt-tint);
}
.fwre-info-port #fwre .fwre-chip-band-providers::before { opacity: .1; }
.fwre-info-port #fwre .fwre-chip-band-title { color: var(--fwre-pt-ink); font-family: var(--fwre-font-heading, inherit); font-weight: var(--fwre-weight-semibold, 600); }
.fwre-info-port #fwre .fwre-provider-region { color: var(--fwre-pt-muted); }
.fwre-info-port #fwre .fwre-chip { border-color: var(--fwre-pt-line); background: var(--fwre-pt-surface); color: var(--fwre-pt-ink); }

/* ---- Notice bands: the home's alerts prompt, a teal tint inside a hairline ---- */
.fwre-info-port #fwre .fwre-prose-callout,
.fwre-info-port #fwre .fwre-pack-band {
    border: 1px solid var(--fwre-pt-line);
    border-left: 4px solid var(--fwre-pt-primary);
    border-radius: var(--fwre-pt-card);
    background: var(--fwre-pt-tint);
    color: var(--fwre-pt-ink);
}
.fwre-info-port #fwre .fwre-prose-callout :is(.fwre-prose-h, p, .fwre-prose-list li),
.fwre-info-port #fwre .fwre-pack-band :is(.fwre-pack-title, .fwre-pack-points li) { color: var(--fwre-pt-ink); }
.fwre-info-port #fwre .fwre-prose-callout p { color: var(--fwre-pt-muted); }
/* On a section that is already tinted the band turns white, as the home's prompt sits on a white band. */
.fwre-info-port #fwre .fwre-prose-sec:nth-of-type(even) :is(.fwre-prose-callout, .fwre-chip-band),
.fwre-info-port #fwre.fwre-features > .fwre-feat-group:nth-of-type(even) :is(.fwre-chip-band, .fwre-pack-band) { background: var(--fwre-pt-surface); }
.fwre-info-port #fwre :is(.fwre-prose-callout .fwre-callout-check, .fwre-pack-points .fwre-pack-check) {
    background: var(--fwre-pt-primary);
    color: var(--fwre-pt-on-primary);
}

/* ---- The closing band: the theme's flat navy band, as the home's selling band ---- */
.fwre-info-port .fwre-info-ctaband { background: var(--fwre-pt-inverse); }
.fwre-info-port .fwre-info-ctaband-title {
    color: var(--fwre-pt-on-inverse);
    font-family: var(--fwre-font-heading, inherit);
    font-size: var(--fwre-text-4xl, 24px);
    font-weight: var(--fwre-weight-semibold, 600);
}
.fwre-info-port .fwre-info-ctaband-text { color: var(--fwre-pt-on-inverse); opacity: .85; font-size: var(--fwre-text-xl, 16px); }

@media (min-width: 960px) {
    .fwre-info-port .fwre-info-ctaband-title { font-size: 30px; }
}
