/* FW Real Estate theme: layout glue around the plugin's design. Colours, type and the site chrome
   come from the design tokens (--fwre-*); the fallbacks apply only when the plugin is missing. */

body {
    margin: 0;
    background: var(--fwre-white, #fff);
    color: var(--fwre-black, #323232);
    font-family: var(--fwre-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: var(--fwre-text-lg, 15px);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.fwre-site-main { flex: 1 0 auto; width: 100%; }

img { max-width: 100%; height: auto; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link:focus {
    clip: auto;
    width: auto;
    height: auto;
    z-index: 100000;
    top: 8px;
    left: 8px;
    padding: 10px 16px;
    background: var(--fwre-white, #fff);
    color: var(--fwre-black, #323232);
}

/* Without the plugin the frame is dressed by assets/css/standalone/ (the official tokens and site chrome);
   these rules stand in for the UIkit navbar and off-canvas, whose CSS and script come with the plugin. */
.fwre-theme-no-plugin { margin: 0; font-family: var(--fwre-font); color: var(--fwre-color-text); background: var(--fwre-color-surface, #fff); }
.fwre-theme-no-plugin .fwre-site-menu-toggle,
.fwre-theme-no-plugin #fwreSiteOffcanvas,
.fwre-theme-no-plugin [fwk-icon] { display: none; }
.fwre-theme-no-plugin .fwre-site-brandbar { display: flex; align-items: center; justify-content: space-between; gap: var(--fwre-space-20); min-height: 64px; padding-top: 0; padding-bottom: 0; }
.fwre-theme-no-plugin .fwre-site-nav { display: flex; align-items: center; margin: 0; padding: 0; }
.fwre-theme-no-plugin .fwre-site-brand { text-decoration: none; }
.fwre-theme-no-plugin .fwre-site-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--fwre-space-26); margin: 0; padding: 0; list-style: none; }
.fwre-theme-no-plugin .fwre-site-header .fwre-site-menu > li > a { display: flex; align-items: center; min-height: 64px; padding: 0; color: var(--fwre-color-text); font-size: var(--fwre-text-sm); font-weight: var(--fwre-weight-medium); text-decoration: none; }
.fwre-theme-no-plugin .fwre-site-menu a:hover,
.fwre-theme-no-plugin .fwre-site-menu .fwk-active > a { color: var(--fwre-color-primary); }
.fwre-theme-no-plugin .fwk-navbar-dropdown { display: none; }
.fwre-theme-no-plugin .fwre-site-breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--fwre-space-8); margin: 0; padding: var(--fwre-space-12) 0; list-style: none; font-size: var(--fwre-text-sm); }
.fwre-theme-no-plugin .fwre-site-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: var(--fwre-space-8); color: var(--fwre-color-text-muted); }
.fwre-theme-no-plugin .fwre-site-breadcrumbs a { color: var(--fwre-color-text-muted); text-decoration: none; }
.fwre-theme-no-plugin .fwre-site-main a { color: var(--fwre-color-primary); }
.fwre-theme-no-plugin .fwre-site-main a:hover { color: var(--fwre-color-primary-hover, var(--fwre-color-primary)); }
@media (max-width: 640px) {
    /* No off-canvas script without the plugin: the menu is one row that scrolls sideways inside itself. */
    .fwre-theme-no-plugin .fwre-site-brandbar { flex-wrap: wrap; gap: 0; padding-top: var(--fwre-space-10); }
    .fwre-theme-no-plugin .fwre-site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
    .fwre-theme-no-plugin .fwre-site-menu { flex-wrap: nowrap; gap: var(--fwre-space-20); white-space: nowrap; }
    .fwre-theme-no-plugin .fwre-site-header .fwre-site-menu > li > a { min-height: 44px; }
}

/* Logo */
.fwre-theme-logo .custom-logo-link { display: inline-flex; align-items: center; }
.fwre-theme-logo .custom-logo { max-height: 60px; width: auto; }

/* Before content */
.fwre-theme-before-content { padding-top: var(--fwre-space-20, 20px); }
.fwre-theme-before-content .fwre-theme-widget + .fwre-theme-widget { margin-top: var(--fwre-space-20, 20px); }

/* Content with an optional sidebar */
.fwre-theme-layout { display: block; }
.fwre-theme-layout--sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--fwre-space-40, 40px);
    align-items: start;
}
.fwre-theme-content { min-width: 0; }
@media (max-width: 959px) {
    .fwre-theme-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
}

.fwre-theme-sidebar .fwre-theme-widget + .fwre-theme-widget { margin-top: var(--fwre-space-30, 30px); }
.fwre-theme-widget-title {
    margin: 0 0 var(--fwre-space-12, 12px);
    font-size: var(--fwre-text-xl, 16px);
    font-weight: var(--fwre-weight-semibold, 600);
}
.fwre-theme-sidebar ul { list-style: none; margin: 0; padding: 0; }
.fwre-theme-sidebar li { padding: 4px 0; }

/* Classes WordPress prints in post content */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; margin-bottom: 1em; }
.wp-caption-text,
.gallery-caption { margin-top: 6px; color: var(--fwre-grey-dark-deep, #6e7683); font-size: var(--fwre-text-md, 14px); }
.sticky .fwre-theme-summary-title::before { content: "\2605"; margin-right: 6px; color: var(--fwre-green, #0CAB9B); }
.bypostauthor > .comment-body .fn { font-weight: var(--fwre-weight-semibold, 600); }

/* Entry content */
.fwre-theme-entry-content > * { max-width: 100%; }
.fwre-theme-entry-content h2,
.fwre-theme-entry-content h3,
.fwre-theme-entry-content h4 { line-height: 1.3; margin: 1.6em 0 0.6em; font-weight: var(--fwre-weight-semibold, 600); }
.fwre-theme-entry-content a { color: var(--fwre-green, #0CAB9B); }
.fwre-theme-entry-content a:hover { color: var(--fwre-green-hover, #0A8F82); }
.fwre-theme-entry-content blockquote {
    margin: 1.5em 0;
    padding: 0 0 0 20px;
    border-left: 3px solid var(--fwre-green, #0CAB9B);
}
.fwre-theme-entry-content table { width: 100%; border-collapse: collapse; }
.fwre-theme-entry-content th,
.fwre-theme-entry-content td { padding: 8px; border-bottom: 1px solid var(--fwre-grey-border, #e5e5e5); text-align: start; }
.fwre-theme-entry-content pre { overflow-x: auto; padding: 16px; background: var(--fwre-grey-light, #F3F3F3); }
.fwre-theme-entry-meta { margin: 0 0 var(--fwre-space-20, 20px); color: var(--fwre-grey-dark-deep, #6e7683); font-size: var(--fwre-text-md, 14px); }
.fwre-theme-entry-image { margin: 0 0 var(--fwre-space-20, 20px); }
.fwre-theme-entry-tags { margin-top: var(--fwre-space-20, 20px); font-size: var(--fwre-text-md, 14px); }

/* Full width template: blocks sit in the site width, alignwide and alignfull break out. On a pattern page
   the blocks are wrapped in the product root the theme adds (#fwre.fwre-home), so both parents are
   listed. A product root printed by the plugin itself (the listing, the search, a property) is a page of
   its own and takes the product frame below instead of the reading column. */
.fwre-theme-full > #fwre.fwre-home { max-width: none; margin: 0; padding: 0; }
/* `:where()` keeps the id out of the weight: `:not(#fwre)` counts as an id, and out-ranked the
   alignfull rule below, so every band of the front page sat in the 820 px reading column. */
.fwre-theme-full > :where(:not(#fwre)),
.fwre-theme-full > #fwre.fwre-home > * {
    box-sizing: border-box;
    max-width: var(--wp--style--global--content-size, 820px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--fwre-space-20, 20px);
    padding-right: var(--fwre-space-20, 20px);
}
/* The agent profile is two product roots side by side inside the plugin's `.fwre-agent-layout` grid (the
   agent and listing, then message, booking and reviews). The grid isn't #fwre, so the reading-column rule
   above caught it and squeezed the main column to 390 px; it takes the wide frame like a product page. */
.fwre-theme-full > .fwre-agent-layout,
.fwre-theme-full > .alignwide,
.fwre-theme-full > #fwre.fwre-home > .alignwide,
.fwre-theme-full > [class*="wp-block-fwre-"],
.fwre-theme-full > #fwre.fwre-home > [class*="wp-block-fwre-"] { max-width: var(--fwre-theme-wide); }
.fwre-theme-full > .alignfull,
.fwre-theme-full > #fwre.fwre-home > .alignfull { max-width: none; margin-top: 0; margin-bottom: 0; }
.fwre-theme-full > .wp-block-cover.alignfull,
.fwre-theme-full > #fwre.fwre-home > .wp-block-cover.alignfull { padding-left: var(--fwre-space-20, 20px); padding-right: var(--fwre-space-20, 20px); }

.fwre-site-page .alignwide { margin-left: 0; margin-right: 0; }

/* Post lists */
.fwre-theme-summary {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--fwre-space-20, 20px);
    padding: var(--fwre-space-20, 20px) 0;
    border-bottom: 1px solid var(--fwre-grey-border, #e5e5e5);
}
.fwre-theme-summary:not(:has(.fwre-theme-summary-image)) { grid-template-columns: minmax(0, 1fr); }
.fwre-theme-summary-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--fwre-radius, 4px); }
.fwre-theme-summary-title { margin: 0 0 6px; font-size: var(--fwre-text-2xl, 20px); font-weight: var(--fwre-weight-semibold, 600); line-height: 1.3; }
.fwre-theme-summary-title a { color: inherit; text-decoration: none; }
.fwre-theme-summary-title a:hover { color: var(--fwre-green, #0CAB9B); }
@media (max-width: 639px) {
    .fwre-theme-summary { grid-template-columns: minmax(0, 1fr); }
}

.navigation.pagination,
.navigation.post-navigation { margin-top: var(--fwre-space-30, 30px); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.pagination .nav-links { justify-content: flex-start; }
.page-numbers {
    display: inline-block;
    min-width: 36px;
    padding: 6px 10px;
    text-align: center;
    border-radius: var(--fwre-radius, 4px);
    background: var(--fwre-grey-light, #F3F3F3);
    color: inherit;
    text-decoration: none;
}
.page-numbers.current { background: var(--fwre-green, #0CAB9B); color: #fff; }

/* Comments */
.fwre-theme-comments { margin-top: var(--fwre-space-40, 40px); }
.fwre-theme-comment-list { list-style: none; padding: 0; }
.fwre-theme-comment-list .children { list-style: none; padding-left: 24px; }
.fwre-theme-comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--fwre-grey-border, #e5e5e5); }
.fwre-theme-comment-list .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form .search-field {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--fwre-grey-border, #ccc);
    border-radius: var(--fwre-radius, 4px);
    font: inherit;
}
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.comment-form .submit,
.search-form .search-submit {
    padding: 8px 18px;
    border: 0;
    border-radius: var(--fwre-radius, 4px);
    background: var(--fwre-green, #0CAB9B);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

/* ── The footer (brain_biz spec 2026-11-17-fwre-real-estate-theme, FR-027) ──
   Four columns, brand and contacts, property types, cities, company, over a bottom bar with the copyright
   and the legal links. The design's site.css dresses the same classes for every host (and its copy in
   standalone/ without the plugin); these rules set the theme's own column count and spacing. Two columns
   on a tablet, one on a phone, every link a 44 px tap target there. */
/* The theme's footer palette (owner's walks, 18 Nov 2026: the grey read dull): the navy ground the design's
   tokens now give every host, under a primary-coloured rule, so the footer closes the page with the brand's
   colour. The values are restated here for a host whose design re-tints the footer. */
.fwre-theme .fwre-site-footer.fwre-theme-footer {
    --fwre-color-footer-surface: var(--fwre-navy-deep, #252f4b);
    --fwre-color-footer-text: rgba(255, 255, 255, 0.72);
    --fwre-color-footer-heading: var(--fwre-white, #fff);
    --fwre-color-footer-divider: rgba(255, 255, 255, 0.12);
    border-top: 4px solid var(--fwre-color-primary, #13a89e);
}
.fwre-theme-footer .fwre-site-footer-col h4 { color: var(--fwre-color-footer-heading, #fff); }
.fwre-theme .fwre-site-footer-grid.fwre-theme-footer-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: var(--fwre-space-30, 30px) var(--fwre-space-40, 40px);
    padding-top: var(--fwre-space-60, 56px);
    padding-bottom: var(--fwre-space-40, 40px);
}
.fwre-theme-footer .fwre-site-footer-brand a { color: inherit; text-decoration: none; font-family: var(--fwre-font-heading, var(--fwre-font)); }
.fwre-theme-footer .fwre-site-footer-brand .custom-logo { display: block; max-height: 48px; width: auto; }
.fwre-theme-footer-tagline { max-width: 34ch; margin: 0 0 var(--fwre-space-16, 16px); color: var(--fwre-color-footer-text, #c5ccd6); }
.fwre-theme-footer .fwre-site-footer-col h4 { margin-bottom: var(--fwre-space-16, 16px); font-size: var(--fwre-text-xs, 12px); letter-spacing: 0.08em; text-transform: uppercase; }
.fwre-theme-footer .fwre-site-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--fwre-space-10, 10px); }
.fwre-theme-footer .fwre-site-footer-col a { color: var(--fwre-color-footer-text, #c5ccd6); text-decoration: none; }
.fwre-theme-footer .fwre-site-footer-col a:hover { color: var(--fwre-color-footer-heading, #fff); text-decoration: underline; }
.fwre-site-footer-col .fwre-theme-widget + .fwre-theme-widget { margin-top: var(--fwre-space-20, 20px); }
.fwre-theme-footer-social-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.fwre-theme-footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--fwre-space-8, 8px) var(--fwre-space-20, 20px); }
.fwre-theme-footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--fwre-space-8, 8px) var(--fwre-space-20, 20px); margin: 0; padding: 0; list-style: none; }
.fwre-theme-footer .fwre-site-footer-bottom-row a { color: var(--fwre-color-footer-text, #c5ccd6); text-decoration: none; }
.fwre-theme-footer .fwre-site-footer-bottom-row a:hover { color: var(--fwre-color-footer-heading, #fff); text-decoration: underline; }
.fwre-theme-footer-bottom-widgets p { margin: 0; }
/* Without the plugin there is no icon font: the social links show their names instead of empty circles. */
.fwre-theme-no-plugin .fwre-theme-footer .fwre-site-footer-social a { width: auto; padding: 0 var(--fwre-space-14, 14px); border-radius: var(--fwre-radius, 4px); }
.fwre-theme-no-plugin .fwre-theme-footer-social-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
@media (max-width: 959px) {
    .fwre-theme .fwre-site-footer-grid.fwre-theme-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fwre-theme .fwre-theme-footer-grid > .fwre-site-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
    .fwre-theme .fwre-site-footer-grid.fwre-theme-footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--fwre-space-26, 26px); padding-top: var(--fwre-space-40, 40px); }
    .fwre-theme-footer .fwre-site-footer-col ul { gap: 0; }
    .fwre-theme-footer :is(.fwre-site-footer-brand, .fwre-site-footer-col, .fwre-site-footer-contact, .fwre-site-footer-bottom-row) a { display: inline-flex; align-items: center; min-height: 44px; }
    .fwre-theme-footer .fwre-site-footer-social a { width: 44px; height: 44px; }
    .fwre-theme-footer .fwre-site-footer-bottom-row { flex-direction: column; align-items: flex-start; }
}

/* The Features band (FR-036): the product's pages in four columns under one heading, between the link
   columns and the bottom bar, on the same navy, set apart by the footer's hairline. It renders only when a
   Features menu is assigned (inc/footer.php). */
.fwre-theme-footer-features { border-top: 1px solid var(--fwre-color-footer-divider, rgba(255, 255, 255, 0.12)); padding: var(--fwre-space-30, 30px) 0 var(--fwre-space-40, 40px); }
.fwre-theme-footer .fwre-theme-footer-features-title { margin: 0 0 var(--fwre-space-20, 20px); color: var(--fwre-color-footer-heading, #fff); font-size: var(--fwre-text-md, 16px); font-weight: var(--fwre-weight-semibold, 600); }
.fwre-theme-footer-features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fwre-space-30, 30px) var(--fwre-space-40, 40px); }
.fwre-theme-footer .fwre-theme-footer-features h5 { margin: 0 0 var(--fwre-space-12, 12px); color: var(--fwre-color-footer-heading, #fff); font-family: var(--fwre-font); font-size: var(--fwre-text-xs, 12px); font-weight: var(--fwre-weight-semibold, 600); letter-spacing: 0.08em; text-transform: uppercase; }
.fwre-theme-footer-features .fwre-site-footer-col a { overflow-wrap: anywhere; }
/* A long list (more than 12 links, inc/footer.php) takes three of the four tracks and sets its links in three
   columns of their own, two below 960px and on a phone (FR-045). */
.fwre-theme-footer-features .fwre-theme-footer-features-wide { grid-column: span 3; }
/* A block, not the footer lists' flex column: CSS columns only lay out a block's children. */
.fwre-theme-footer .fwre-theme-footer-features .fwre-theme-footer-features-wide ul { display: block; column-count: 3; column-gap: var(--fwre-space-30, 30px); }
.fwre-theme-footer-features .fwre-theme-footer-features-wide li { break-inside: avoid; margin: 0 0 var(--fwre-space-10, 10px); }
@media (max-width: 959px) {
    .fwre-theme-footer-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fwre-theme-footer-features .fwre-theme-footer-features-wide { grid-column: 1 / -1; }
    .fwre-theme-footer .fwre-theme-footer-features .fwre-theme-footer-features-wide ul { column-count: 2; }
}
@media (max-width: 639px) {
    .fwre-theme-footer-features-grid { grid-template-columns: minmax(0, 1fr); gap: var(--fwre-space-20, 20px); }
    .fwre-theme-footer .fwre-theme-footer-features .fwre-theme-footer-features-wide ul { column-gap: var(--fwre-space-20, 20px); }
    .fwre-theme-footer-features .fwre-theme-footer-features-wide li { margin: 0; }
    /* Every list in the band sets its links in two columns on a phone, the short ones too, so the band reads as
       two columns under its title (FR-047). */
    .fwre-theme-footer .fwre-theme-footer-features .fwre-site-footer-col ul { display: block; column-count: 2; column-gap: var(--fwre-space-20, 20px); }
    .fwre-theme-footer-features .fwre-site-footer-col li { break-inside: avoid; }
}

/* The Features dropdown (FR-036): the overview leads the panel as one row over the captioned columns; the
   panel keeps the design's container radius and stays inside the window (the walker sizes it to at most
   four columns). */
.fwre-site-menu .fwre-site-menu-head { margin: 0 0 var(--fwre-space-16, 16px); padding: 0 0 var(--fwre-space-12, 12px); border-bottom: 1px solid var(--fwre-color-border, #e1e1e1); }
.fwre-site-menu .fwre-site-menu-head > li > a { font-weight: var(--fwre-weight-semibold, 600); }
.fwre-site-menu .fwk-navbar-dropdown { max-width: calc(100vw - 32px); box-sizing: border-box; }

/* Mobile menu: a group's name is a caption over its links, not a link to nowhere. */
.fwre-site-offcanvas .fwre-site-offcanvas-caption { display: block; padding: 12px 0 4px; color: var(--fwre-color-menu-caption, var(--fwre-color-text-muted)); font-size: var(--fwre-text-xs, 12px); font-weight: var(--fwre-weight-semibold, 600); letter-spacing: 0.06em; text-transform: uppercase; }

/* Mobile menu: nested levels and the accent button. */
.fwre-site-offcanvas .fwk-nav { gap: 0; }
.fwre-site-offcanvas .fwk-nav a { display: block; padding: 6px 0; }
.fwre-site-offcanvas .sub-menu { list-style: none; margin: 0; padding: 0 0 0 16px; }
.fwre-site-offcanvas li.fwre-nav-cta { display: block; margin: 12px 0 0; padding: 0; background: none; }
.fwre-site-offcanvas li.fwre-nav-cta > a {
    display: inline-flex;
    padding: var(--fwre-space-8, 8px) var(--fwre-space-20, 20px);
    background: var(--fwre-amber, #ffc107);
    color: var(--fwre-on-amber, #323232);
    border-radius: var(--fwre-radius, 4px);
    font-weight: var(--fwre-weight-semibold, 600);
}

/* Front page patterns: the bands and headings take the design's home classes; these rules only fit the
   core blocks around them. */
.alignfull.fwre-home-band { padding-left: var(--fwre-space-20, 20px); padding-right: var(--fwre-space-20, 20px); }
.fwre-home-band-head > * { margin-left: auto; margin-right: auto; }
.wp-block-cover.fwre-theme-hero { padding: var(--fwre-space-40, 40px) var(--fwre-space-20, 20px); }
.fwre-theme-hero .wp-block-cover__inner-container { width: 100%; max-width: 1240px; }
@media (max-width: 639px) {
    .wp-block-cover.fwre-theme-hero { min-height: 460px !important; }
}

/* ── The front page (brain_biz spec 2026-11-17-fwre-real-estate-theme, FR-008) ──
   The hero and every band hold their content on the site width the header uses (1352 px inside a
   1400 px frame), whether or not the plugin wrapped the page in its #fwre root, so both parents are
   listed. The hero is at least 640 px tall (660 on a phone), under 80% of the screen, with the search as
   one bar on its lower edge; each band opens with one head row, the heading and View all, 16 px above its
   cards. */
:root { --fwre-theme-inset: max(var(--fwre-theme-gutter), (100% - var(--fwre-theme-wide)) / 2 + var(--fwre-theme-gutter)); }
.fwre-theme-full > .alignfull.fwre-home-band,
.fwre-theme-full > #fwre.fwre-home > .alignfull.fwre-home-band,
.fwre-theme-full > .wp-block-cover.fwre-theme-hero,
.fwre-theme-full > #fwre.fwre-home > .wp-block-cover.fwre-theme-hero {
    padding-left: var(--fwre-theme-inset);
    padding-right: var(--fwre-theme-inset);
}
.fwre-theme-full > .wp-block-cover.fwre-theme-hero,
.fwre-theme-full > #fwre.fwre-home > .wp-block-cover.fwre-theme-hero {
    min-height: max(640px, 38vw) !important; /* the cover block writes its own height inline */
    padding-top: var(--fwre-space-16, 16px);
    padding-bottom: var(--fwre-space-16, 16px);
}
/* The house on its lawn (owner's second walk, 18 Nov 2026, FR-029): the headline and lead stand in the sky at
   the top, the search sits at the foot. The photo is anchored to its foot and drawn 17% taller than the
   hero, so its lawn (the bottom 14% of the photo, from the terrace's edge at 86% down) is deep enough for the
   80 px search bar while the roof line (37% down) stays under the headline at 1280 to 1920 px. */
.fwre-theme-hero .wp-block-cover__image-background {
    top: auto;
    bottom: 0;
    height: 117%;
    object-position: 50% 100%;
}
.fwre-theme-hero .wp-block-cover__inner-container {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    max-width: none;
}
/* the search (the last block) drops to the foot; without the plugin there is no search, and the lead stays
   under the headline */
.fwre-theme-hero .wp-block-cover__inner-container > :not(.fwre-home-hero-title, .fwre-theme-hero-lead):last-child { margin-top: auto; }
.fwre-theme-hero .fwre-home-hero-title { margin: 0 0 var(--fwre-space-8, 8px); text-align: start; }
.fwre-theme-hero .fwre-theme-hero-lead {
    margin: 0 0 var(--fwre-space-24, 24px);
    color: var(--fwre-color-on-media, #fff);
    font-size: var(--fwre-text-xl, 18px);
    line-height: 1.4;
}
.fwre-theme-band-head.fwre-home-band-head {
    align-items: center;
    max-width: none;
    min-height: 48px;
    margin: 0 0 var(--fwre-space-16, 16px);
    text-align: start;
}
.fwre-theme-band-head > * { margin: 0; }
.fwre-theme-band-head .fwre-home-band-title { font-size: var(--fwre-text-3xl, 26px); line-height: 1.25; }
.fwre-theme-band-more { flex: 0 0 auto; font-weight: var(--fwre-weight-semibold, 600); }
.fwre-theme-band-more a { color: var(--fwre-color-primary, #0CAB9B); text-decoration: none; }
.fwre-theme-band-more a:hover { text-decoration: underline; }
.fwre-theme-full .fwre-home-band > #fwre,
.fwre-theme-full .fwre-home-band > #fwre.fwre-mod-agent-card { box-sizing: border-box; max-width: none; margin: 0; }
/* A page that ends on a full-width band (the call to action) meets the footer with no strip between. */
.fwre-theme .fwre-site-main:has(> .fwre-theme-full > :is(.alignfull, #fwre.fwre-home > .alignfull):last-child) { padding-bottom: 0; }
@media (max-width: 639px) {
    .fwre-theme-full > .wp-block-cover.fwre-theme-hero,
    .fwre-theme-full > #fwre.fwre-home > .wp-block-cover.fwre-theme-hero { min-height: 660px !important; }
    /* A phone's search is a stacked form, taller than the lawn, so the photo ends 160 px above the hero's foot
       and the search stands on a ground of the lawn's own dark green (sampled from the photo's foot) that
       continues it: the terrace's edge stays above the search and the roof under the headline. */
    .wp-block-cover.fwre-theme-hero { background-color: #16210f; }
    .fwre-theme-hero .wp-block-cover__image-background { top: 0; bottom: auto; height: calc(100% - 160px); }
    .fwre-theme-hero .fwre-home-hero-title { font-size: var(--fwre-text-4xl, 30px); line-height: 1.2; }
    .fwre-theme-hero .fwre-theme-hero-lead { margin-bottom: var(--fwre-space-16, 16px); font-size: var(--fwre-text-md, 15px); }
    .fwre-theme-band-head .fwre-home-band-title { font-size: var(--fwre-text-2xl, 22px); }
}

/* The header lies over the hero's photo, clear with white text, and turns solid over its own height of
   scroll. Scroll-driven; a browser without scroll timelines keeps the solid header above the photo.
   Every offset is the header's DRAWN height (--fwre-theme-header-h, set by assets/js/header-height.js),
   because a long menu wraps onto a second line and the header grows past 64 px: offset by 64 px alone, the
   rest of it hung below the photo, white text on the white page. Without the script, the fixed height. */
@supports (animation-timeline: scroll()) {
    .fwre-theme-over-hero .fwre-site-header {
        margin-bottom: calc(-1 * var(--fwre-theme-header-h, var(--fwre-theme-header)));
        animation: fwre-theme-header-solid linear both;
        animation-timeline: scroll(root);
        animation-range: 0 var(--fwre-theme-header-h, var(--fwre-theme-header));
    }
    .fwre-theme-over-hero .fwre-site-header :is(.fwre-site-brand, .fwre-site-brand-name, .fwre-site-brand-tagline, .fwre-site-menu > li > a:not(.fwre-nav-cta), .fwre-site-menu-toggle) { color: inherit; }
    .fwre-theme-over-hero .fwre-theme-full > .wp-block-cover.fwre-theme-hero,
    .fwre-theme-over-hero .fwre-theme-full > #fwre.fwre-home > .wp-block-cover.fwre-theme-hero {
        padding-top: calc(var(--fwre-theme-header-h, var(--fwre-theme-header)) + var(--fwre-space-16, 16px));
    }
}
@keyframes fwre-theme-header-solid {
    from { background-color: transparent; box-shadow: none; color: var(--fwre-color-on-media, #fff); }
    to { background-color: var(--fwre-color-surface, #fff); box-shadow: var(--fwre-shadow-header, 0 1px 3px rgba(0, 0, 0, .08)); color: var(--fwre-color-text, #323232); }
}
.fwre-home-cta .fwre-theme-button .wp-block-button__link,
#fwre .fwre-home-cta .fwre-theme-button .wp-block-button__link {
    padding: var(--fwre-space-12, 12px) var(--fwre-space-26, 26px);
    border-radius: var(--fwre-radius, 4px);
    background: var(--fwre-green, #0CAB9B);
    color: #fff;
    font-weight: var(--fwre-weight-semibold, 600);
    font-size: var(--fwre-text-md, 14px);
    text-decoration: none;
}
.fwre-home-cta .fwre-theme-button .wp-block-button__link:hover { background: var(--fwre-green-hover, #0A8F82); }

/* ── The agency front page's further bands (brain_biz spec 2026-11-17-fwre-real-estate-theme, FR-027) ──
   Browse by city (four photo tiles), browse by property type (chips), the alerts prompt (a primary wash),
   the selling call to action (the dark band) and the latest posts (cards). The band frame below stands in
   for the design's home styles when the plugin, which carries them, is missing. */
.fwre-theme-no-plugin .fwre-home-band { padding-top: var(--fwre-space-40, 40px); padding-bottom: var(--fwre-space-40, 40px); background: var(--fwre-color-surface, #fff); }
.fwre-theme-no-plugin .fwre-home-band-title { margin: 0; font-weight: var(--fwre-weight-semibold, 600); color: var(--fwre-color-text, #323232); }
.fwre-theme-no-plugin .fwre-home-cta { background: var(--fwre-color-band-inverse, #252f4b); }
.fwre-theme-no-plugin .fwre-home-cta-title { margin: 0 0 var(--fwre-space-12, 12px); color: var(--fwre-color-on-inverse, #fff); font-size: var(--fwre-text-4xl, 30px); font-weight: var(--fwre-weight-semibold, 600); }
.fwre-theme-no-plugin .fwre-home-cta-actions { display: flex; justify-content: center; gap: var(--fwre-space-12, 12px); }

.fwre-home-cities #fwre.fwre-home-cities-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 959px) {
    .fwre-home-cities #fwre.fwre-home-cities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The alerts prompt is a tinted panel on a white band (FR-029): a full-width wash here would run into the
   Featured agents band's tint right under it, and the two would read as one band. */
.fwre-home-alerts.alignfull { background: var(--fwre-color-surface, #fff); }
.fwre-home-alerts-row {
    gap: var(--fwre-space-20, 20px) var(--fwre-space-40, 40px);
    padding: var(--fwre-space-28, 28px) var(--fwre-space-30, 30px);
    border: 1px solid var(--fwre-color-border, #e1e1e1);
    border-radius: var(--fwre-radius-card, 8px);
    background: var(--fwre-color-band-tint, #EEF7F6);
}
@media (max-width: 639px) {
    .fwre-home-alerts-row { padding: var(--fwre-space-20, 20px); }
}
.fwre-home-alerts-text { flex: 1 1 420px; max-width: 720px; }
.fwre-home-alerts-text > * { margin: 0; }
.fwre-home-alerts-text p { margin-top: var(--fwre-space-8, 8px); color: var(--fwre-color-text-muted, #5A5A5A); font-size: var(--fwre-text-lg, 16px); }
.fwre-home-alerts .fwre-home-band-title { font-size: var(--fwre-text-3xl, 26px); line-height: 1.25; }

.fwre-home-cta-lead { max-width: 640px; margin: 0 auto var(--fwre-space-24, 24px); color: var(--fwre-color-on-inverse, #fff); opacity: .85; font-size: var(--fwre-text-lg, 16px); }

:is(.fwre-home-alerts, .fwre-home-cta) .fwre-theme-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: var(--fwre-space-12, 12px) var(--fwre-space-26, 26px);
    border-radius: var(--fwre-radius, 4px);
    background: var(--fwre-color-primary, #0CAB9B);
    color: var(--fwre-color-on-primary, #fff);
    font-weight: var(--fwre-weight-semibold, 600);
    font-size: var(--fwre-text-md, 14px);
    text-decoration: none;
}
:is(.fwre-home-alerts, .fwre-home-cta) .fwre-theme-button .wp-block-button__link:hover { background: var(--fwre-color-primary-hover, #0A8F82); color: var(--fwre-color-on-primary, #fff); }
/* The selling call to action's button is the one place the logo's coral shows (FR-029), with navy ink: white
   on this coral is 2.9:1, navy is 4.5:1. The id-scoped selector out-ranks the green CTA rule above. */
.fwre-home-sell .fwre-theme-button .wp-block-button__link,
#fwre .fwre-home-sell .fwre-theme-button .wp-block-button__link {
    background: var(--fwre-color-accent-coral, #F26F5A);
    color: var(--fwre-color-on-accent-coral, #252f4b);
}
.fwre-home-sell .fwre-theme-button .wp-block-button__link:hover,
#fwre .fwre-home-sell .fwre-theme-button .wp-block-button__link:hover {
    background: var(--fwre-color-accent-coral-hover, #F5826F);
    color: var(--fwre-color-on-accent-coral, #252f4b);
}

.fwre-home-posts .wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fwre-space-20, 20px); margin: 0; padding: 0; }
.fwre-home-posts .wp-block-latest-posts.is-grid > li {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0;
    padding: 0 0 var(--fwre-space-20, 20px);
    overflow: hidden;
    border: 1px solid var(--fwre-color-border, #e5e5e5);
    border-radius: var(--fwre-radius-card, 8px);
    background: var(--fwre-color-surface, #fff);
}
.fwre-home-posts .wp-block-latest-posts__featured-image { margin: 0 0 var(--fwre-space-16, 16px); }
.fwre-home-posts .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.fwre-home-posts .wp-block-latest-posts__post-title { margin: 0 var(--fwre-space-20, 20px); color: var(--fwre-color-text, #323232); font-size: var(--fwre-text-xl, 18px); font-weight: var(--fwre-weight-semibold, 600); line-height: 1.35; text-decoration: none; }
.fwre-home-posts .wp-block-latest-posts__post-title:hover { color: var(--fwre-color-primary, #0CAB9B); }
.fwre-home-posts .wp-block-latest-posts__post-date { margin: var(--fwre-space-6, 6px) var(--fwre-space-20, 20px) 0; color: var(--fwre-color-text-muted, #5A5A5A); font-size: var(--fwre-text-sm, 13px); }
.fwre-home-posts .wp-block-latest-posts__post-excerpt { margin: var(--fwre-space-10, 10px) var(--fwre-space-20, 20px) 0; color: var(--fwre-color-text-muted, #5A5A5A); font-size: var(--fwre-text-md, 14px); line-height: 1.6; }
.fwre-home-posts .wp-block-latest-posts__post-excerpt a { color: var(--fwre-color-primary, #0CAB9B); }
@media (max-width: 959px) {
    .fwre-home-posts .wp-block-latest-posts.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .fwre-home-posts .wp-block-latest-posts.is-grid { grid-template-columns: minmax(0, 1fr); }
    .fwre-home-alerts .fwre-home-band-title { font-size: var(--fwre-text-2xl, 22px); }
}

/* ── The frame (brain_biz spec 2026-11-17-fwre-real-estate-theme, FR-004 and FR-005) ──
   One sticky header of 64 px (56 on a phone), a 1400 px site width, and product pages framed at that
   width with no title band. The design's site.css dresses the same markup for every host; these rules
   carry the theme's body class, so they out-rank it without the important flag. */
:root { --fwre-theme-wide: 1400px; --fwre-theme-gutter: 24px; --fwre-theme-header: 64px; }

.fwre-theme .fwre-site-shell { max-width: var(--fwre-theme-wide); padding-left: var(--fwre-theme-gutter); padding-right: var(--fwre-theme-gutter); box-sizing: border-box; }

.fwre-theme .fwre-site-header { position: sticky; top: 0; z-index: 100; }
.admin-bar.fwre-theme .fwre-site-header { top: 32px; }
/* An anchor never lands under the sticky header (FR-024): the listing's #fwretop after a layout switch,
   and any other in-page link. The plugin's own offset (--fwre-sticky-offset) stays 0 here, or the two
   would add up. */
html:has(> body.fwre-theme) { scroll-padding-top: var(--fwre-theme-header-h, var(--fwre-theme-header)); }
html:has(> body.admin-bar.fwre-theme) { scroll-padding-top: calc(var(--fwre-theme-header-h, var(--fwre-theme-header)) + 32px); }
.fwre-theme .fwre-site-brandbar { min-height: var(--fwre-theme-header); gap: var(--fwre-space-26, 26px); }
.fwre-theme .fwre-site-brand-name { font-family: var(--fwre-font-heading, var(--fwre-font)); font-size: var(--fwre-text-2xl, 20px); }
.fwre-theme .fwre-site-brand-tagline { font-size: var(--fwre-text-xs, 12px); }
.fwre-theme .fwre-theme-logo .custom-logo { max-height: 40px; }
.fwre-theme .fwre-site-menu > li > a { min-height: var(--fwre-theme-header); padding-left: 14px; padding-right: 14px; }
.fwre-theme .fwre-site-menu > li > a.fwre-nav-cta,
.fwre-theme .fwre-site-menu .fwre-nav-cta { min-height: 40px; padding: 0 var(--fwre-space-20, 20px); margin-left: var(--fwre-space-12, 12px); }

/* The crumb band is one quiet line, shown on a property and on ordinary pages (header.php). */
.fwre-theme .fwre-site-breadcrumbs { padding: var(--fwre-space-10, 10px) 0; font-size: var(--fwre-text-sm, 13px); }

/* A product page: the plugin's output on the site width, no reading column. The default template marks
   it (page.php); on the full-width template the plugin's own roots are framed the same way. */
.fwre-theme .fwre-site-page.fwre-theme-product { padding-top: var(--fwre-space-20, 20px); padding-bottom: var(--fwre-space-40, 40px); }
.fwre-theme .fwre-theme-product .fwre-theme-entry-content > #fwre { max-width: none; }
/* The property page's photos span the window (the design's `fwre-bleed` rule); the shell clips the
   scrollbar's width of overflow that leaves, and the photos sit straight under the crumb line. */
.fwre-theme.fwre-bleed .fwre-site-main { overflow-x: clip; }
/* Framed by margin, not padding: a root that draws its own box (the search bar's border) then lines
   up with the header's content edge, as a root without one does. */
.fwre-theme-full > #fwre:not(.fwre-home) {
    box-sizing: border-box;
    width: auto;
    max-width: calc(var(--fwre-theme-wide) - 2 * var(--fwre-theme-gutter));
    margin-left: max(var(--fwre-theme-gutter), (100% - var(--fwre-theme-wide)) / 2 + var(--fwre-theme-gutter));
    margin-right: max(var(--fwre-theme-gutter), (100% - var(--fwre-theme-wide)) / 2 + var(--fwre-theme-gutter));
}
.fwre-theme-full:has(> #fwre:not(.fwre-home)) { padding-top: var(--fwre-space-20, 20px); padding-bottom: var(--fwre-space-40, 40px); }
/* A property page: the photos sit straight under the crumb line. */
.fwre-theme .fwre-site-page.fwre-theme-product:has(#fwre.fwre-property-lead),
.fwre-theme .fwre-theme-full:has(> #fwre.fwre-property-lead) { padding-top: 0; }

@media (max-width: 959px) {
    :root { --fwre-theme-header: 56px; --fwre-theme-gutter: 16px; }
    .fwre-theme .fwre-site-brandbar { min-height: var(--fwre-theme-header); }
}
/* Between the phone menu and a wide screen the brand and a seven-item menu didn't fit: at 1024px the menu
   ran 150px past the window and every page scrolled sideways. Here the tagline steps aside and the links
   close up, which fits a menu of that size from 960px; a longer one wraps onto a second line rather than
   widen the page. Up to 1439px, because an eight-item menu with the tagline wrapped onto three lines at
   1280px (the demo's, 27 Nov 2026); header-height.js keeps the hero under a header that still wraps. */
@media (min-width: 960px) and (max-width: 1439px) {
    .fwre-theme .fwre-site-brand-tagline { display: none; }
    .fwre-theme .fwre-site-menu { column-gap: 4px; }
    .fwre-theme .fwre-site-menu > li > a { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 960px) {
    .fwre-theme .fwre-site-nav { min-width: 0; }
    .fwre-theme .fwre-site-menu { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 782px) {
    .admin-bar.fwre-theme .fwre-site-header { top: 46px; }
}
@media (max-width: 600px) {
    .admin-bar.fwre-theme .fwre-site-header { top: 0; }
}

/* ── Posts, pages and the 404 (brain_biz spec 2026-11-17-fwre-real-estate-theme, phase 6) ──
   A post and an ordinary page read in one 760 px column: the title at 40 px, the date line, the
   featured image at the column's width, then the text. Lists and archives keep their sidebar, whose
   links take the accent instead of the browser's blue. */
.fwre-theme-reading,
.fwre-theme .fwre-site-page:not(.fwre-theme-product) > .fwre-theme-entry {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-top: var(--fwre-space-30, 30px);
    padding-bottom: var(--fwre-space-60, 60px);
}
.fwre-theme-reading .fwre-page-title,
.fwre-theme .fwre-site-page:not(.fwre-theme-product) > .fwre-theme-entry > .fwre-page-title {
    margin: 0 0 var(--fwre-space-10, 10px);
    font-size: 40px;
    line-height: 1.2;
}
.fwre-theme-reading .fwre-theme-entry-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--fwre-radius, 4px); }
.fwre-theme-reading .fwre-theme-entry-content { font-size: var(--fwre-text-lg, 17px); line-height: 1.7; }
.fwre-theme-sidebar a { color: var(--fwre-color-text, #323232); text-decoration: none; }
.fwre-theme-sidebar a:hover { color: var(--fwre-color-primary, #0CAB9B); }
@media (max-width: 639px) {
    .fwre-theme-reading .fwre-page-title,
    .fwre-theme .fwre-site-page:not(.fwre-theme-product) > .fwre-theme-entry > .fwre-page-title { font-size: 30px; }
    .fwre-theme-reading .fwre-theme-entry-content { font-size: var(--fwre-text-md, 16px); }
}

/* The 404: the heading, one line, the property search as a bar, then the newest listings. */
.fwre-theme-404 { padding-top: var(--fwre-space-30, 30px); padding-bottom: var(--fwre-space-60, 60px); }
.fwre-theme-404 .fwre-page-title { margin: 0 0 var(--fwre-space-8, 8px); font-size: var(--fwre-text-3xl, 26px); }
.fwre-theme-404-lead { margin: 0 0 var(--fwre-space-20, 20px); color: var(--fwre-color-text-muted, #5A5A5A); }
.fwre-theme-404 .alignfull.fwre-home-band { padding: var(--fwre-space-40, 40px) 0 0; background: none; }

/* The member panel beside the plugin's sign-in card (inc/account.php, FR-038): the theme's light teal band
   inside the card, a heading and four features, each a teal disc, a title and a line. The card's frame and
   columns are the design's; this dresses only the panel the theme puts in it. */
#fwre .fwre-sign-in-aside:has(.fwre-theme-member-panel) { background: var(--fwre-color-band-tint, #EEF7F6); }
.fwre-theme-member-title { margin: 0 0 var(--fwre-space-20, 20px); color: var(--fwre-color-text, #323232); font-family: var(--fwre-font-heading, inherit); font-size: var(--fwre-text-3xl, 20px); font-weight: var(--fwre-weight-semibold, 600); line-height: 1.3; }
.fwre-theme-member-list { margin: 0; padding: 0; list-style: none; }
.fwre-theme-member-item { display: flex; align-items: flex-start; gap: var(--fwre-space-14, 14px); }
.fwre-theme-member-item + .fwre-theme-member-item { margin-top: var(--fwre-space-20, 20px); }
.fwre-theme-member-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fwre-color-primary, #0CAB9B); color: var(--fwre-color-on-primary, #fff); }
.fwre-theme-member-text { display: flex; flex-direction: column; gap: var(--fwre-space-4, 4px); color: var(--fwre-color-text-muted, #5A5A5A); font-size: var(--fwre-text-lg, 15px); line-height: 1.5; }
.fwre-theme-member-text strong { color: var(--fwre-color-text, #323232); font-weight: var(--fwre-weight-semibold, 600); }

/* The site's icon at the head of the sign-in card, above its title (inc/site-icon.php on WordPress, the
   fwre.sign_in_card layout on Joomla): the owner's Site Icon, or the FW Real Estate icon until one is set. */
#fwre .fwre-theme-sign-in-mark { display: block; width: 56px; height: 56px; margin: 0 0 var(--fwre-space-16, 16px); border-radius: var(--fwre-radius-card, 8px); object-fit: cover; }

/* Joomla's own controls inside the sign-in card (tpl_fwre's com_users overrides): the password field and its
   show button on one line, the button's screen-reader text kept off the screen, and a plugin button's icon
   (the passkey sign-in's SVG, which has no size of its own) at the size of its label. */
#fwre .fwre-sign-in-form .input-group { display: flex; }
#fwre .fwre-sign-in-form .input-group > .fwk-input { flex: 1 1 auto; min-width: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
#fwre .fwre-sign-in-form .input-group > .input-password-toggle { flex: 0 0 auto; padding: 0 var(--fwre-space-14, 14px); border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: -1px; }
#fwre .fwre-sign-in-form .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#fwre .fwre-sign-in-form button svg,
#fwre .fwre-sign-in-form button img.icon { width: 1.25em; height: 1.25em; margin-inline-end: var(--fwre-space-8, 8px); vertical-align: -0.25em; fill: currentColor; }
