/* SG Hub Pages (sg-hub-pages.php): /for-sale/, /view/nature/, /investment-opportunities/. Site standard: black, white,
one gold #c9a24b, 8px controls, 44px taps, 13px smallest text, one 760px text column under a 760px title. */

/* Investment page: the text column takes the 760px of the title and the contents box above it (was 1120px). */
html body.category-9 .elementor-35612 .elementor-element-1079230:not(#_){width:100%!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important}

/* Our homes come right under the title block on the category frame: the same space as between the other sections. */
html body main#content.sgct-page .sghub-homes{margin-top:24px}
/* Four figures on the investment page: two by two, never three and one. */
.sghub-invest .sgcc-figures:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))!important}

/* Four figures (price-band pages), in the site's figure look: 2 by 2, one on a phone. */
.sghub-figs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0 32px}
.sghub-fig{display:grid;grid-template-rows:auto auto 1fr;padding:20px;border:1px solid #2b2b2b;border-top:2px solid #c9a24b;border-radius:8px;background:#0d0d0d}
.sghub-fig-l{margin:0 0 8px;color:#b3b3b3;font:600 13px/1.4 Inter,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.sghub-fig-v{color:#fff;font:700 30px/1.2 Inter,Arial,sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}
.sghub-fig-n{margin-top:8px;color:#b3b3b3;font:400 14px/1.5 Inter,Arial,sans-serif}
.sghub-table tr.sghub-total th,.sghub-table tr.sghub-total td{font-weight:600;color:#fff}
.sgct-page .sghub h3{margin-top:32px}

/* Small second line under a name in a table (region, number of sales). */
.sghub-sub{display:block;margin-top:2px;color:#b3b3b3;font-weight:400;font-size:14px;line-height:1.45}
.sghub-muted{color:#b3b3b3}
.sghub-table th[scope="row"]{font-weight:500}
.sghub-table td,.sghub-table th{vertical-align:top}
.sghub-table td{white-space:nowrap;font-variant-numeric:tabular-nums}
.sghub-table.sghub-bands td:last-child,.sghub-table.sghub-towns td:nth-child(2){white-space:normal}
.sghub-table.sghub-towns td:nth-child(2){min-width:240px}
.sgct-page .sghub-table caption:not(#_):not(#__),.sghub-invest .sghub-table caption:not(#_):not(#__){position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}

/* Our tables fit the text column at every width (the site makes tables in a scroll box as wide as their longest line
from 1024px down, which pushed the towns table to 1196px); long text wraps instead. */
html body #content .sgct-table-scroll > table.sghub-table:not(#_):not(#__):not(#___){width:100%!important;min-width:0!important;max-width:100%!important}

/* Sort switch: the same framed row of equal parts as the sale-band finder; the chosen one is gold. */
.sghub-sortbox{margin:24px 0 16px}
.sghub-label{display:block;margin:0 0 8px;color:#b3b3b3;font:400 15px/1.4 Inter,Arial,sans-serif}
.sghub-sort{box-sizing:border-box;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:4px;border:1px solid #2b2b2b;border-radius:12px;background:#0d0d0d}
.sghub-sort button:not(#_){-webkit-appearance:none;appearance:none;box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:8px 10px;border:0!important;border-radius:8px;background:transparent;box-shadow:none;color:#b3b3b3!important;font:500 15px/1.3 Inter,Arial,sans-serif;text-align:center;text-transform:none;letter-spacing:0;cursor:pointer}
.sghub-sort button:not(#_):hover{color:#fff!important;background:transparent}
.sghub-sort button[aria-pressed="true"]:not(#_){background:#c9a24b;color:#000!important}
.sghub-sort button:not(#_):focus-visible{outline:2px solid #c9a24b;outline-offset:2px}

/* Link lists on the investment page, in the look of the category frame's link list. */
.sghub-invest ul.sghub-links:not(#_){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:24px 0!important;padding:0!important;list-style:none}
.sghub-invest ul.sghub-links li:not(#_){display:block;margin:0!important;padding:0!important;border-bottom:1px solid #333;list-style:none}
.sghub-invest ul.sghub-links li:not(#_)::before,.sghub-invest ul.sghub-links li:not(#_)::marker{content:none}
.sghub-invest ul.sghub-links a:not(#_){display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:12px 0;text-decoration:none;border:0}
.sghub-invest ul.sghub-projects li{margin:10px 0}

@media(max-width:700px){
.sghub-sort{grid-template-columns:repeat(2,minmax(0,1fr))}
.sghub-invest ul.sghub-links:not(#_){grid-template-columns:minmax(0,1fr)}
/* Phones: each table row becomes a short card (name, then each figure under its label); no sideways scrolling. */
html body .sgct-table-scroll:has(> table.sghub-table){overflow:visible}
html body table.sghub-table:not(#_):not(#__){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto;border:0!important}
html body table.sghub-table thead{display:none}
html body table.sghub-table :is(tbody,th,td):not(#_):not(#__){display:block!important;width:auto!important;min-width:0!important;white-space:normal}
/* Each card: the name across, then the figures two by two; a text cell (.sghub-wide) runs across too. */
html body table.sghub-table tr:not(#_):not(#__){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;width:auto!important}
html body table.sghub-table tr > th:not(#_):not(#__),html body table.sghub-table td.sghub-wide:not(#_):not(#__){grid-column:1/-1}
.sghub-invest .sgcc-figures:not(#_):not(#__){grid-template-columns:minmax(0,1fr)!important}
.sghub-figs{grid-template-columns:minmax(0,1fr)}
html body table.sghub-table tbody tr:not(#_):not(#__){padding:16px 0!important;border:0!important;border-bottom:1px solid #2b2b2b!important;background:transparent!important}
html body table.sghub-table tbody tr:first-child:not(#_):not(#__){border-top:1px solid #2b2b2b!important}
html body table.sghub-table tbody :is(th,td):not(#_):not(#__){padding:0!important;border:0!important;background:transparent!important;text-align:left!important}
html body table.sghub-table tbody td:not(#_):not(#__){margin-top:8px!important}
html body table.sghub-table tbody th:not(#_):not(#__){font-size:18px!important;line-height:1.4!important}
html body table.sghub-table td[data-label]::before{content:attr(data-label);display:block;color:#b3b3b3;font-size:14px;line-height:1.5}
}
