/* Presentation-only grouping pass. Preserve category layouts and data controls. */
.legacy,.v4{--read-title:1.125rem;--read-subtitle:1rem}
.legacy .section-title,.legacy .tab-title,.legacy .review-gallery-head{margin-bottom:8px;padding-bottom:6px}
.legacy .section-title,.legacy .tab-title,.legacy .review-gallery-head h2,
.v4 .v4-sectionhead h2,.v4 .review-gallery-head h2{font-size:1.125rem;line-height:1.4;font-weight:600}
.legacy .section-title button,.legacy .review-gallery-head a,
.v4 .v4-sectionhead>button{font-weight:400;color:#60758a}

/* Approved logo pixels, framed without stretching or editing the source asset. */
:is(.legacy,.v4) .site-logo{display:block;flex:0 0 auto;width:220px;max-width:100%;aspect-ratio:5.8;overflow:hidden}
:is(.legacy,.v4) .site-logo>img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 43%;opacity:1;margin:0}
:is(.legacy,.v4) footer .site-logo{width:190px}

/* A header: three aligned areas, no promotional placeholder boxes. */
.legacy .masthead{display:grid;grid-template-columns:220px minmax(0,1fr) 290px;gap:24px;align-items:center;height:auto;min-height:100px;padding:16px 0}
.legacy .masthead:after{content:none}
.legacy .a-header-intro{display:flex;flex-direction:column;gap:4px;min-width:0;padding-left:20px;border-left:1px solid #dbe3ed;color:#36516d}
.legacy .a-header-intro b{font-size:.875rem;font-weight:600;line-height:1.5;word-break:keep-all}
.legacy .a-header-intro span{font-size:.8125rem;color:#65788c;line-height:1.5;word-break:keep-all}
.legacy .masthead>.a-parcel-search{display:flex;flex-direction:column;gap:2px;min-width:0;width:100%;height:auto;margin:0;padding:0;border:0;background:none}
.legacy .a-parcel-search>label{font-size:.8125rem;font-weight:600;line-height:1.4;color:#174574}
.legacy .a-parcel-inputrow{display:flex;align-items:stretch;min-width:0;height:38px;overflow:hidden;border:1px solid #9cb3c9;border-radius:4px;background:#fff}
.legacy .a-parcel-search input{box-sizing:border-box;width:100%;min-width:0;flex:1;padding:8px;border:0;background:#fff;color:#243d54;font-size:.875rem}
.legacy .a-parcel-search button{flex:0 0 auto;padding:0 12px;border:0;background:#174574;color:#fff;font-size:.875rem;white-space:nowrap}
.legacy .a-parcel-search button:hover{background:#102f51;color:#fff}
.legacy .a-parcel-inputrow:focus-within{outline:2px solid #75a6d5;outline-offset:2px}
@media(max-width:850px){.legacy .masthead{grid-template-columns:200px minmax(0,1fr);gap:14px 20px}.legacy .masthead .site-logo{width:200px}.legacy .a-header-intro{grid-column:1/-1;grid-row:2;padding:8px 0 0;border-left:0;border-top:1px solid #e4eaf1;flex-direction:row;flex-wrap:wrap;gap:4px 12px}}
@media(max-width:500px){.legacy .masthead{grid-template-columns:minmax(0,1fr);gap:12px}.legacy .a-header-intro{grid-row:auto}.legacy .masthead>.a-parcel-search{grid-column:1}}
.legacy .utility{padding-top:6px;padding-bottom:6px}
.legacy .nav button{font-size:.9375rem;font-weight:500;padding:6px 10px;min-height:40px}
.legacy .subnav{min-height:32px;padding:3px 0}
.legacy .inner-columns{margin-top:16px}
.legacy .content>section,.legacy .content .review-gallery{margin-top:20px}
.legacy .a-list-guide{margin-bottom:8px;gap:8px}
.legacy .small-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin-bottom:8px}
.legacy .small-search input,.legacy .small-search button{min-height:38px}
.legacy .a-office-list{gap:10px}
.legacy .a-office-list>button{padding:12px;gap:6px}
.legacy .a-office-list b{font-size:1rem;margin-bottom:3px}
.legacy .review-gallery-grid{gap:10px}
.legacy .a-notices{margin-top:14px;padding-top:10px}
.legacy .a-notices li>button,.legacy .flea li>button{padding-top:7px;padding-bottom:7px}
.legacy .v4-banner-column h3{margin-bottom:8px;font-size:1rem}
.legacy .partners{margin-top:24px}

/* B: consistent title/content rhythm; sidebar remains on the right. */
.v4 .v4-head{gap:10px 12px;padding-top:10px;padding-bottom:10px}
.v4 .v4-head nav{gap:3px;padding:4px;border-radius:5px}
.v4 .v4-head nav>button{font-size:.875rem;min-height:38px;padding:7px 10px;background:transparent;font-weight:500}
.v4 .v4-head nav>button:first-child{background:#194f87;color:#fff}
.v4 .v4-head>.v4-outline{font-size:.875rem;min-height:38px;padding:7px 10px}
.v4 .v4-main{padding-top:14px}
.v4 .v4-shortcuts{margin:10px 0 18px;padding:4px;gap:4px}
.v4 .v4-shortcuts>button{padding:9px 10px;gap:8px}
.v4 .v4-shortcuts b{font-size:.9375rem;font-weight:500}
.v4 .v4-shortcuts small{font-size:.8125rem}
.v4 .v4-bodygrid{column-gap:32px;align-items:start}
.v4 .v4-sectionhead{margin-bottom:8px;padding-bottom:7px;gap:6px 10px}
.v4 .v4-listsection>.v4-featured{margin:20px 0;padding-top:16px}
.v4 .v4-featuregrid{gap:12px}
.v4 .v4-featurebody{padding:12px 14px}
.v4 .v4-listsection>.review-search-section{margin:20px 0;padding:14px 16px;border-top-width:1px;border-radius:5px}
.v4 .review-search-section>.v4-sectionhead{margin-bottom:8px;padding-bottom:6px}
.v4 .v4-filterrow{margin:8px 0;gap:8px}
.v4 .v4-hint{margin-top:6px;gap:4px 10px}
.v4 .v4-listsection>.b-brokers-compact{margin:20px 0;padding:14px}
.v4 .b-brokers-compact>.b-brokers-heading{margin-bottom:8px}
.v4 .review-gallery{margin:20px 0;padding:14px 0}
.v4 .review-gallery-head{margin-bottom:8px}
.v4 .review-gallery-grid{gap:12px}
.v4 .v4-noticelist>button{padding:8px 0}
.v4 .review-flea{margin:20px 0;padding-top:14px}
.v4 .v4-side>.v4-banner-column{margin-top:16px;margin-bottom:20px}
.v4 .v4-banner-column h3,.v4 .v4-recent h3{font-size:1rem;margin-bottom:8px}
.v4 .v4-hero-row>.v4-inquiry{padding:16px}
.v4 .v4-hero-row>.v4-inquiry h2{font-size:1.25rem;font-weight:500;margin:6px 0}
.v4 .v4-hero-row>.v4-inquiry p{margin-bottom:10px}
@media(max-width:850px){.v4 .v4-bodygrid{column-gap:0}.v4 .v4-sectionhead h2{font-size:1.125rem}}

/* B listing table only: compact rows with unchanged data and actions. */
.v4 .v4-listtable th{padding:7px 10px;font-size:.8125rem;line-height:1.4;vertical-align:middle}
.v4 .v4-listtable td{padding:7px 10px;font-size:.875rem;line-height:1.4;vertical-align:middle}
.v4 .v4-listtable .v4-property{display:block;margin:0;padding:0;line-height:1.4}
.v4 .v4-listtable .v4-property b{font-size:.875rem;font-weight:500;line-height:1.4}
.v4 .v4-listtable .v4-property small{margin-top:1px;font-size:.75rem;line-height:1.35}
.v4 .v4-listtable .v4-trade{display:inline-block;padding:3px 7px;font-size:.75rem;line-height:1.4}
.v4 .v4-listtable .v4-amount{font-size:.875rem;font-weight:600;white-space:nowrap}
.v4 .v4-listtable .v4-amount small{margin-top:1px;font-size:.75rem;line-height:1.35}
.v4 .v4-listtable .v4-rowlink{min-width:32px;min-height:32px;padding:3px 6px;line-height:1}
.v4 .v4-listtable th:last-child,.v4 .v4-listtable td:last-child{text-align:center}

/* Official association news and member marketplace have separate visual roles. */
:is(.legacy,.v4) .home-association-notices{margin-top:14px;padding-top:12px;border-top:1px solid #dce5ee}
:is(.legacy,.v4) .home-community-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
:is(.legacy,.v4) .home-community-heading h2{margin:0;font-size:1.125rem;line-height:1.4;font-weight:600;color:#203b58}
:is(.legacy,.v4) .home-community-heading h3{margin:0;font-size:1rem;line-height:1.4;font-weight:600;color:#203b58}
:is(.legacy,.v4) .home-community-heading>button{padding:4px 0;border:0;background:none;font-size:.8125rem;font-weight:400;color:#53677d;white-space:nowrap}
:is(.legacy,.v4) .home-notice-rows>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 0;border:0;border-bottom:1px solid #e4eaf1;background:none;text-align:left;color:#203b58;font-size:.875rem;line-height:1.5}
:is(.legacy,.v4) .home-notice-rows small{flex-shrink:0;font-size:.75rem;color:#637487}
:is(.legacy,.v4) .home-community-market{margin:22px 0 0;padding:16px;background:#f7f9f8;border:1px solid #dce5df;border-radius:5px}
:is(.legacy,.v4) .home-community-note{margin:0 0 10px;color:#607168;font-size:.8125rem;line-height:1.5}
:is(.legacy,.v4) .home-market-head,:is(.legacy,.v4) .home-market-rows>button{display:grid;grid-template-columns:minmax(0,1fr) 64px 76px;align-items:center;gap:10px;text-align:left}
:is(.legacy,.v4) .home-market-head{padding:7px 0;border-bottom:1px solid #cfdcd3;font-size:.75rem;color:#5b7063}
:is(.legacy,.v4) .home-market-rows>button{width:100%;padding:9px 0;border:0;border-bottom:1px solid #e0e8e2;background:none;font-size:.875rem;line-height:1.5;color:#203b58}
:is(.legacy,.v4) .home-market-head>span:not(:first-child),:is(.legacy,.v4) .home-market-rows small{text-align:center}
:is(.legacy,.v4) .home-market-rows small{font-size:.75rem;color:#637168}
:is(.legacy,.v4) .home-market-status{padding:3px 5px;border:1px solid #dce4de;border-radius:4px;background:#edf2ee}
:is(.legacy,.v4) .home-market-rows>button:hover,:is(.legacy,.v4) .home-notice-rows>button:hover{background:#edf3f8}
:is(.legacy,.v4) :is(.home-market-rows,.home-notice-rows,.home-community-heading)>button:focus-visible{outline:2px solid #29629d;outline-offset:2px}
@media(max-width:540px){:is(.legacy,.v4) .home-community-market{padding:12px}:is(.legacy,.v4) .home-market-head,:is(.legacy,.v4) .home-market-rows>button{grid-template-columns:minmax(0,1fr) 46px 62px;gap:6px}}

/* Simple matching lists below the gallery, equal-width columns on monitors. */
:is(.legacy,.v4) .home-community-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:20px 0;align-items:start}
:is(.legacy,.v4) .home-community-columns>section{min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none}
:is(.legacy,.v4) .home-community-columns .home-community-heading{min-height:32px;margin:0;padding-bottom:7px;border-bottom:1px solid #cfdbe6}
:is(.legacy,.v4) .home-community-columns .home-community-heading h2{font-size:1rem;line-height:1.4}
:is(.legacy,.v4) .home-community-columns :is(.home-market-rows,.home-notice-rows)>button{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;width:100%;padding:9px 0;border-bottom:1px solid #e4eaf1;font-size:.875rem;line-height:1.5;background:none}
:is(.legacy,.v4) .home-community-columns button>span:first-child{min-width:0;overflow-wrap:anywhere;text-align:left}
:is(.legacy,.v4) .home-community-columns button>span:last-child{flex-shrink:0;color:#64788f}
:is(.legacy,.v4) .home-community-columns :is(.home-market-rows,.home-notice-rows)>button:hover{background:#f3f7fa}
@media(max-width:600px){:is(.legacy,.v4) .home-community-columns{grid-template-columns:minmax(0,1fr);gap:20px}}

/* Marketplace belongs below sponsor banners, not in the main news column. */
:is(.legacy,.v4) .home-community-columns.home-notices-only{grid-template-columns:minmax(0,1fr)}
:is(.legacy,.v4) .home-sidebar-market{box-sizing:border-box;width:150px;max-width:100%;min-width:0;margin:16px auto 20px}
:is(.legacy,.v4) .home-sidebar-market>.home-community-market{margin:0;padding:0;background:none;border:0;border-radius:0}
:is(.legacy,.v4) .home-sidebar-market .home-community-heading{gap:4px;margin-bottom:4px;padding-bottom:6px;border-bottom:1px solid #d5e0e9}
:is(.legacy,.v4) .home-sidebar-market .home-community-heading h2{font-size:.875rem;white-space:nowrap}
:is(.legacy,.v4) .home-sidebar-market .home-community-heading>button{font-size:.75rem;white-space:nowrap}
:is(.legacy,.v4) .home-sidebar-market .home-market-rows>button{display:flex;gap:4px;align-items:center;justify-content:space-between;width:100%;min-width:0;min-height:32px;padding:6px 0;font-size:.75rem;line-height:1.5;background:none;border-bottom:1px solid #e4eaf1}
:is(.legacy,.v4) .home-sidebar-market .home-market-rows>button>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.legacy,.v4) .home-sidebar-market .home-market-rows>button>span:last-child{flex-shrink:0;color:#64788f}
.legacy .ads>.home-sidebar-market{grid-column:1/-1}

/* A main blue menu: one line, with horizontal access on narrow screens. */
.legacy .nav{height:auto}
.legacy .nav>.wrap{display:flex;flex-wrap:nowrap;align-items:stretch;height:auto;min-width:0;padding-left:0;overflow-x:auto;scrollbar-width:thin}
.legacy .nav>.wrap>button{flex:1 0 auto;width:auto;min-width:0;min-height:38px;height:auto;margin:0;padding:8px 9px;font-size:.8125rem;font-weight:500;line-height:1.4;white-space:nowrap;word-break:keep-all}

/* Keep the source institutions' own marks and lettering inside the existing shortcut grid. */
.v4 .v4-shortcuts.b-service-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:10px 0 18px;padding:0;border:0;background:none;border-radius:0}
.v4 .v4-shortcuts.b-service-buttons>a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:84px;padding:14px;border:1px solid #d9e2ec;border-radius:8px;background:#fff;box-shadow:0 2px 8px rgba(24,48,72,.06);text-decoration:none;transition:border-color .18s,box-shadow .18s}
.v4 .b-service-buttons .institution-logo{display:flex;align-items:center;justify-content:center;flex:0 1 auto;width:205px;height:52px;max-width:100%}
.v4 .b-service-buttons .institution-logo img{display:block;width:100%;height:100%;object-fit:contain}
.v4 .b-service-buttons .institution-logo-kar{width:239px}
.v4 .b-service-buttons .institution-logo-gov{width:175px}
.v4 .v4-shortcuts.b-service-buttons>a:hover{border-color:#426b96;box-shadow:0 4px 14px rgba(24,48,72,.11)}
.v4 .b-service-buttons>a:focus-visible{outline:3px solid #72a8dc;outline-offset:3px}
@media(max-width:1050px){.v4 .v4-shortcuts.b-service-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
@media(max-width:420px){.v4 .v4-shortcuts.b-service-buttons>a{min-height:72px;padding:8px}.v4 .b-service-buttons .institution-logo,.v4 .b-service-buttons .institution-logo-kar,.v4 .b-service-buttons .institution-logo-gov{width:132px;height:42px}}
@media(prefers-reduced-motion:reduce){.v4 .b-service-buttons>a{transition:none}}

/* Table alignment and rent labels: data values remain unchanged. */
.legacy .listing-table{table-layout:fixed}
.legacy .listing-table th:first-child,.legacy .listing-table td:first-child{width:25%}
.legacy .listing-table th:last-child,.legacy .listing-table td:last-child{width:30%}
.legacy .listing-table td{vertical-align:middle}
.legacy .listing-table th:nth-child(2),.legacy .listing-table td:nth-child(2){text-align:left}
:is(.legacy,.v4) .listing-price-label{display:inline-block;margin-right:5px;color:#5b7189;font-size:.75rem;font-weight:400}
.legacy .listing-table .price{font-variant-numeric:tabular-nums}
.legacy .listing-table .price small{display:block;font-size:.75rem;font-weight:400;color:#5b7189;line-height:1.4;margin-top:1px}
.v4 .v4-listtable{table-layout:fixed;min-width:650px}
.v4 .v4-table-scroll{position:relative;min-width:0;max-width:100%;overflow-x:auto}
.v4 .v4-listtable th:first-child{width:64px}
.v4 .v4-listtable th:nth-child(3){width:90px;text-align:right}
.v4 .v4-listtable td:nth-child(3){text-align:right}
.v4 .v4-listtable th:nth-child(4){width:190px;text-align:right}
.v4 .v4-listtable th:last-child{width:48px}
.v4 .v4-listtable .v4-property{width:100%;white-space:normal;word-break:keep-all}
.v4 .v4-listtable :is(td:nth-child(3),.v4-amount){font-variant-numeric:tabular-nums}

/* Right rail: preserve the original banners and unify section edges. */
:is(.legacy .ads,.v4 .v4-side)>.v4-banner-column{width:150px;max-width:100%;margin:0 auto 20px;padding:0}
.v4 .v4-side>.v4-sideinfo{padding-top:0;padding-bottom:0;margin-bottom:20px}
:is(.legacy .ads,.v4 .v4-side)>.home-sidebar-market{margin:0 auto 20px}
:is(.legacy .ads,.v4 .v4-side) .v4-banner-column h3,
:is(.legacy .ads,.v4 .v4-side) .home-community-heading h2{position:relative;margin:0;padding:0 0 0 8px;border:0;border-left:3px solid #29629d;font-size:.875rem;font-weight:600;line-height:1.5;color:#203b58}
:is(.legacy .ads,.v4 .v4-side) .v4-banner-column h3{margin-bottom:10px}
:is(.legacy .ads,.v4 .v4-side) .home-community-heading{min-height:21px;margin-bottom:10px;padding:0;border:0}
:is(.legacy .ads,.v4 .v4-side) .v4-banner-column h3:before{content:none}

/* Keep the original desktop layout; avoid whole-page overflow at intermediate widths. */
.legacy{min-width:0}
.legacy>.wrap,.legacy .nav>.wrap,.legacy .subnav>.wrap{width:calc(100% - 32px);max-width:995px}
.legacy .columns{grid-template-columns:175px minmax(0,1fr) 150px}
.legacy .middle,.legacy .content,.legacy .left,.legacy .ads{min-width:0}
.legacy .middle{width:auto}
.legacy .utility>span:last-child{min-width:0}
.legacy .small-search input{flex:1 1 180px}
:is(.legacy,.v4) footer .site-logo{margin:0}
.v4 .v4-footer{padding:12px 0;background:#fff;border-top:1px solid #dce4ec}
.v4 .v4-footer>.v4-wrap{max-width:996px;align-items:center;gap:16px}
.v4 .v4-footer-brand{display:block;flex:0 0 150px}
.v4 .v4-footer .site-logo{width:150px}
.v4 .v4-footer .site-logo>img{opacity:1}
.v4 .v4-footer-info{min-width:0;flex:1 1 0}
.v4 .v4-footer-headline{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 8px}
.v4 .v4-footer .v4-footer-info p,.v4 .v4-footer-headline a{font-size:11px;line-height:1.45;color:#515151}
.v4 .v4-footer-headline a{font-weight:600;text-decoration:underline;text-underline-offset:2px}
.v4 .v4-footer .v4-footer-description{margin-top:2px}
@media(max-width:650px){.v4 .v4-footer>.v4-wrap{align-items:flex-start;gap:8px 14px}.v4 .v4-footer-brand{flex-basis:150px}.v4 .v4-footer-info{flex-basis:100%}}
@media(max-width:760px){.legacy .columns{display:flex}.legacy .middle{width:100%}.legacy .ads{display:flex;flex-direction:column;align-items:center;width:100%}.legacy .left{width:100%}.legacy .partners{grid-template-columns:repeat(3,minmax(0,1fr))}.legacy footer{flex-wrap:wrap}}
@media(max-width:600px){.legacy .listing-table .listing-price-label{display:block;margin-right:0}.legacy .small-search button{padding-left:10px;padding-right:10px}}
