/* Prices by county (15 Oct 2026; SEO plan rank 3; site reskin, preview only).
   The table on /trends (includes/inc_rs_county_table.cfm) and the list on the homepage
   (includes/inc_rs_county_home.cfm). Loaded through request.reskinCss = "county-prices"
   by price-trends.cfm and index.cfm, and only in the preview. One dark green #194F35,
   hairline rules, no coloured edge bars, nothing under 13px. */

/* ---------- /trends: the tables, inside the page's own .pt-panel card ---------- */
body.ft-reskin .rs-county-table { scroll-margin-top: 110px; }
/* The same gap as between the other cards on /trends (22px on a phone, 28px from 768px, as the page's
   Brent card and the answers card leave): it sat flush against the chart card above it. */
body.ft-reskin .rs-county-table { margin-top: 22px; }
@media (min-width: 768px) {
    body.ft-reskin .rs-county-table { margin-top: 28px; }
}
/* The card has no padding of its own (price-trends.css pads its heading 28px, 18px
   under 768px); the tables and the note use the same, so everything lines up. */
body.ft-reskin .rs-county-table .rs-ct-nations { display: grid; grid-template-columns: 1fr; gap: 6px 36px; padding: 0 28px; }
body.ft-reskin .rs-county-table .rs-ct-note { padding: 0 28px 26px; }
@media (max-width: 767px) {
    body.ft-reskin .rs-county-table .rs-ct-nations { padding: 0 18px; }
    body.ft-reskin .rs-county-table .rs-ct-note { padding: 0 18px 22px; }
}
body.ft-reskin .rs-county-table .rs-ct-nation-name {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #183F2F;
    margin: 24px 0 4px;
}
/* No scroll box: the columns are fixed from 576px and long names wrap, so nothing can
   overflow (an overflow box here drew a stray vertical scrollbar on each table). */
body.ft-reskin .rs-county-table .rs-ct-wrap { overflow: visible; }
body.ft-reskin .rs-ct {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #183F2F;
}
/* price-trends.css makes every th in the page sticky with a pale fill (for its daily
   table); none of that here */
body.ft-reskin .rs-ct th,
body.ft-reskin .rs-ct td {
    position: static;
    background: transparent;
    padding: 9px 10px;
    border-bottom: 1px solid #DFE6D8;
    text-align: left;
    vertical-align: top;
}
body.ft-reskin .rs-ct th:first-child,
body.ft-reskin .rs-ct td:first-child { padding-left: 0; }
body.ft-reskin .rs-ct th:last-child,
body.ft-reskin .rs-ct td:last-child { padding-right: 0; }
body.ft-reskin .rs-ct thead th {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #5F754F;
    border-bottom: 1px solid #C9D6C2;
    vertical-align: bottom;
}
body.ft-reskin .rs-ct .rs-ct-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
body.ft-reskin .rs-ct thead .rs-ct-num { white-space: normal; }
body.ft-reskin .rs-ct .rs-ct-unit { display: block; font-weight: 400; }
body.ft-reskin .rs-ct tbody th { font-weight: 600; }
body.ft-reskin .rs-ct tbody th a { color: #194F35; text-decoration: none; text-underline-offset: 3px; }
body.ft-reskin .rs-ct tbody th a:hover,
body.ft-reskin .rs-ct tbody th a:focus-visible { text-decoration: underline; }
body.ft-reskin .rs-ct tbody td:nth-child(2) { font-weight: 700; }
body.ft-reskin .rs-ct tbody tr:hover > * { background: #F7F8F3; }
body.ft-reskin .rs-ct .rs-ct-sub { display: none; }
body.ft-reskin .rs-county-table .rs-ct-note {
    font-size: 13.5px;
    line-height: 1.6;
    color: #5F754F;
    margin: 20px 0 0;
}
body.ft-reskin .rs-county-table .rs-ct-note a { color: #194F35; }

/* Until two half tables sit side by side, the second half just continues the list:
   its column headings are kept for screen readers but not shown again */
@media (max-width: 991.98px) {
    body.ft-reskin .rs-ct-part2 thead {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Phones: three columns; the areas count moves under the county name */
@media (max-width: 575.98px) {
    body.ft-reskin .rs-ct { font-size: 14.5px; }
    body.ft-reskin .rs-ct th,
    body.ft-reskin .rs-ct td { padding-top: 9px; padding-bottom: 9px; }
    body.ft-reskin .rs-ct .rs-ct-areas { display: none; }
    body.ft-reskin .rs-ct tbody th:first-child { padding-right: 8px; }
    body.ft-reskin .rs-ct .rs-ct-sub {
        display: block;
        font-size: 13px;
        font-weight: 400;
        color: #5F754F;
        margin-top: 2px;
    }
    body.ft-reskin .rs-ct tbody th a { overflow-wrap: anywhere; }
}
/* From tablet width the columns line up from table to table */
@media (min-width: 576px) {
    body.ft-reskin .rs-ct { table-layout: fixed; }
    body.ft-reskin .rs-ct .rs-ct-c1 { width: 44%; }
    body.ft-reskin .rs-ct .rs-ct-c2 { width: 17%; }
    body.ft-reskin .rs-ct .rs-ct-c3 { width: 19%; }
    body.ft-reskin .rs-ct .rs-ct-c4 { width: 20%; }
    body.ft-reskin .rs-ct tbody th a { overflow-wrap: anywhere; }
}
/* Laptops: nations two to a row; a long nation spans the row as two half tables */
@media (min-width: 992px) {
    body.ft-reskin .rs-county-table .rs-ct-nations { grid-template-columns: 1fr 1fr; }
    body.ft-reskin .rs-county-table .rs-ct-wide { grid-column: 1 / -1; }
    body.ft-reskin .rs-county-table .rs-ct-wide .rs-ct-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 36px;
        align-items: start;
    }
}

/* ---------- Homepage: the short version (one card per nation) ---------- */
body.ft-reskin .rs-county-home {
    background: #F7F8F3;
    border-top: 1px solid #DFE6D8;
    padding: 36px 0 40px;
    color: #4F5D4A;
}
/* Laptop homepage sections are ordered by flexbox: after the market (3), before the
   price-alerts band (4). */
body.ft-reskin .ft-home-desktop .rs-county-home { order: 3; }
body.ft-reskin .rs-county-home .rs-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #5F754F;
    margin: 0 0 10px;
}
body.ft-reskin .rs-county-home .rs-ch-title {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.6px;
    color: #183F2F;
    margin: 0;
}
body.ft-reskin .rs-county-home .rs-ch-lead {
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 46em;
    margin: 10px 0 0;
}
body.ft-reskin .rs-county-home .rs-ch-nations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0 0;
}
body.ft-reskin .rs-county-home .rs-ch-nation {
    display: block;
    background: #fff;
    border: 1px solid #DFE6D8;
    border-radius: 16px;
    padding: 16px 18px;
    color: #183F2F;
    text-decoration: none;
}
body.ft-reskin .rs-county-home .rs-ch-nation:hover,
body.ft-reskin .rs-county-home .rs-ch-nation:focus-visible { border-color: #194F35; }
body.ft-reskin .rs-county-home .rs-ch-name {
    display: block;
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #183F2F;
}
body.ft-reskin .rs-county-home .rs-ch-from {
    display: block;
    font-size: 14px;
    color: #5F754F;
    margin-top: 4px;
}
body.ft-reskin .rs-county-home .rs-ch-from strong {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #194F35;
}
body.ft-reskin .rs-county-home .rs-ch-count {
    display: block;
    font-size: 13px;
    color: #5F754F;
    margin-top: 2px;
}
body.ft-reskin .rs-county-home .rs-ch-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    margin: 16px 0 0;
}
body.ft-reskin .rs-county-home .rs-ch-more {
    font-weight: 700;
    font-size: 14.5px;
    color: #194F35;
    text-decoration: none;
}
body.ft-reskin .rs-county-home .rs-ch-more:hover { text-decoration: underline; }
body.ft-reskin .rs-county-home .rs-ch-note { font-size: 13px; color: #5F754F; }

@media (min-width: 576px) {
    body.ft-reskin .rs-county-home .rs-ch-nations { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    body.ft-reskin .rs-county-home { padding: 52px 0 56px; }
    body.ft-reskin .rs-county-home .rs-ch-title { font-size: 42px; letter-spacing: -1.2px; line-height: 1.08; }
    body.ft-reskin .rs-county-home .rs-ch-nations { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
    body.ft-reskin .rs-county-home .rs-ch-nation { border-radius: 4px; padding: 20px 22px; }
}

/* ---------- Long nations: <details> headers, both pages ---------- */
body.ft-reskin .rs-ct-summary,
body.ft-reskin .rs-ch-summary {
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
body.ft-reskin .rs-ct-summary::-webkit-details-marker,
body.ft-reskin .rs-ch-summary::-webkit-details-marker { display: none; }
body.ft-reskin .rs-ct-count,
body.ft-reskin .rs-ch-count { font-size: 13px; color: #5F754F; }
body.ft-reskin .rs-ct-summary { margin: 24px 0 4px; }
body.ft-reskin .rs-ct-summary .rs-ct-nation-name { margin: 0; }
body.ft-reskin .rs-ch-summary {
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #DFE6D8;
}
body.ft-reskin .rs-county-home .rs-ch-summary h3 { margin: 0; padding: 0; border: 0; }
/* From tablet width the header is just a heading: it does not fold */
@media (min-width: 576px) {
    body.ft-reskin .rs-ct-summary,
    body.ft-reskin .rs-ch-summary { pointer-events: none; cursor: default; }
}
/* Phones: tap the header to show or hide the long list */
@media (max-width: 575.98px) {
    body.ft-reskin .rs-ct-summary,
    body.ft-reskin .rs-ch-summary { cursor: pointer; }
    body.ft-reskin .rs-ct-summary::after,
    body.ft-reskin .rs-ch-summary::after {
        content: "Show";
        margin-left: auto;
        font-size: 14px;
        font-weight: 700;
        color: #194F35;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    body.ft-reskin details[open] > .rs-ct-summary::after,
    body.ft-reskin details[open] > .rs-ch-summary::after { content: "Hide"; }
}

/* Links from the homepage's nation cards (and "See all counties") land on these ids: leave room
   for the sticky header (about 88px tall) so the heading is not hidden under it. */
body.ft-reskin [id^="prices-by-county"] { scroll-margin-top: 96px; }
