/* ========================================
   OKPW — Search pages from the keyword map (/guides/*, /areas/surrey), 26 Oct 2026
   ========================================
   Built by scripts/build_guides.py on the borough pages' shell (area-page.css). White ground, olive and light green
   accents only. The price table, the tick lists and the Surrey councils list. */

.gd-hero { display: flex; justify-content: center; }
.gd-hero img { width: min(100%, 520px); height: auto; border-radius: 0; }

/* the price table: one row per size, the calculator's figures */
.gd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.gd-table th, .gd-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #ECEAE3; vertical-align: middle; }
.gd-table thead th { font: 600 .8rem 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #6E6E68;
                     border-bottom: 2px solid #CCF4D9; }
.gd-table tbody th { font-weight: 400; display: flex; align-items: center; gap: 12px; min-height: 62px; }
.gd-table tbody th img { width: 70px; height: auto; flex: none; mix-blend-mode: multiply; }
.gd-table tbody tr:not(.gd-first) th { padding-left: 92px; }
.gd-table tbody th span { display: flex; flex-direction: column; }
.gd-table tbody th b { font-family: 'Sora', sans-serif; color: #1A1A1A; }
.gd-table tbody th em { font-style: normal; color: #555; }
.gd-table tr.gd-first td, .gd-table tr.gd-first th { border-top: 1px solid #DCDAD2; }
.gd-num { white-space: nowrap; }
.gd-num strong { color: #1A1A1A; font-weight: 600; }
.gd-table td a { color: #556B2F; font-weight: 600; white-space: nowrap; }
.gd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* what is in, and not in, the price */
.gd-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 24px; max-width: 760px; }
.gd-list li { position: relative; padding-left: 26px; color: #444; line-height: 1.5; }
.gd-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.gd-yes li::before { content: '✓'; color: #556B2F; }
.gd-no li::before { content: '–'; color: #9A9A92; }

/* what changes the price */
.gd-point { padding: 16px 0; border-top: 1px solid #ECEAE3; max-width: 720px; }
.gd-point:last-child { border-bottom: 1px solid #ECEAE3; }
.gd-point h3 { font: 600 1.05rem 'Sora', sans-serif; color: #1A1A1A; margin: 0 0 6px; }
.gd-point p { color: #555; line-height: 1.65; margin: 0; }

.gd-faq .sp-faq-item p a { color: #556B2F; text-decoration: underline; text-underline-offset: 3px; }

/* Surrey: the councils and their towns */
.gd-councils { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
.gd-councils li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid #ECEAE3; }
.gd-councils b { color: #1A1A1A; font-weight: 600; }
.gd-councils span { color: #6E6E68; font-size: .9rem; }

@media (max-width: 900px) {
    .gd-hero img { width: min(100%, 360px); }
}

/* the price table on a phone: each size is a small card (name and size, then the price, then per m² and the link) */
.gd-rep, .gd-u { display: none; }
@media (max-width: 700px) {
    .gd-table-wrap { overflow: visible; }
    .gd-table, .gd-table tbody { display: block; min-width: 0; }
    .gd-table thead { display: none; }
    .gd-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 0;
                         border-bottom: 1px solid #ECEAE3; }
    .gd-table tbody tr.gd-first { border-top: 1px solid #DCDAD2; }
    .gd-table td, .gd-table tr.gd-first td { display: block; padding: 0; border: 0; }
    .gd-table tbody th, .gd-table tr.gd-first th { grid-column: 1 / -1; min-height: 0; padding: 0 0 4px; border: 0; }
    .gd-table tbody tr:not(.gd-first) th { padding-left: 0; }
    .gd-table tbody th span { flex-direction: row; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
    .gd-table tbody th img { width: 52px; }
    .gd-rep { display: inline; }
    .gd-dim { grid-column: 1; color: #555; font-size: .9rem; }
    .gd-table .gd-price { grid-column: 2; text-align: right; }
    .gd-m2 { grid-column: 1; color: #6E6E68; font-size: .85rem; }
    .gd-u { display: inline; }
    .gd-table .gd-go { grid-column: 2; text-align: right; font-size: .9rem; }
}

/* the planning rules table: plain words, no prices */
.gd-plain { min-width: 0; table-layout: auto; }
.gd-plain tbody th, .gd-plain tbody tr:not(.gd-first) th { display: table-cell; min-height: 0; vertical-align: top; width: 27%; padding: 12px 10px; }
.gd-plain td { vertical-align: top; }
.gd-plain td.gd-num { white-space: normal; width: 19%; }
@media (max-width: 700px) {
    .gd-plain tbody tr { display: block; padding: 14px 0; }
    .gd-plain tbody th, .gd-plain tbody tr:not(.gd-first) th, .gd-plain td, .gd-plain td.gd-num { display: block; width: auto; padding: 0 0 4px; }
    .gd-plain td.gd-num { color: #556B2F; }
}
