/* The public street page per postcode (/postcode/YO10-5AL/, public/postcode/index.php). On top of site.css: its
   tokens (light and dark), glass surfaces, chips, figures and fact lists. Phones first: works from 320px wide. */

.pc { max-width: 56rem; }
.pc section { min-width: 0; }

/* Grade */
.pc-hero { align-items: flex-start; }
.pc-hero .chip { min-width: 5rem; height: 5rem; font-size: 2.1rem; border-radius: 20px; }
.pc-hero h1 { font-size: clamp(1.75rem, 4.5vw + 0.6rem, 2.9rem); margin-top: 0.15rem; }
.pc-grade { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: none; }
.pc-grade-k { font-size: 0.72rem; font-weight: 650; color: var(--muted); text-align: center; line-height: 1.2; max-width: 5.5rem; }
.pc .pc-note { display: block; margin-top: 0.25rem; font-size: 0.85rem; color: var(--muted); }
.pc .lede { margin-bottom: 0.6rem; }
.pc-meta { margin-bottom: 1.4rem; }

/* Key figures: two across on a phone; wider, rows that share the figures evenly (never one left on its own) */
.pc-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.pc-figures[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.pc-figures b { font-size: 1.25rem; overflow-wrap: anywhere; }
@media (min-width: 40rem) {
  .pc-figures[data-n="3"], .pc-figures[data-n="5"], .pc-figures[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 56rem) {
  .pc-figures[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The six measures */
.pc-measures { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 0.6rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.pc-measures li { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.pc-measures li > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pc-measures .muted { font-size: 0.92rem; }

/* Strengths and things to know */
.pc-two { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 44rem) { .pc-two { grid-template-columns: 1fr 1fr; } }
.pc .pc-h { font-size: 1.2rem; margin: 0 0 0.6rem; }
.pc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.pc-list li { position: relative; padding-left: 1.4rem; }
.pc-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.pc-good li::before { background: var(--tint); }
.pc-know li::before { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }

/* Material information: label, value, detail and source per row */
.pc-rows {
  list-style: none; padding: 0.2rem 0; margin: 0 0 1rem; border-radius: var(--radius);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--glass-shadow);
}
.pc-rows li { display: grid; gap: 0.15rem 1.25rem; padding: 0.75rem 1rem; }
.pc-rows li + li { border-top: 1px solid var(--glass-line); }
.pc-rows .pc-k { color: var(--muted); font-size: 0.9rem; font-weight: 650; }
.pc-rows .pc-v { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.pc-rows .pc-v b { font-weight: 650; }
.pc-rows .pc-d { font-size: 0.92rem; }
.pc-src { font-size: 0.82rem; color: var(--muted); }
.pc-src a { color: var(--muted); }
@media (min-width: 40rem) {
  .pc-rows li { grid-template-columns: 11rem 1fr; padding: 0.75rem 1.2rem; }
  .pc-rows .pc-k { font-size: 0.95rem; padding-top: 0.05rem; }
}
.pc .note { max-width: none; }

/* The area: cards, two across from tablet width */
.pc-area { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .pc-area { grid-template-columns: 1fr 1fr; align-items: start; } }
.pc-area .card h3 { margin: 0 0 0.5rem; }
.pc-area .card > p { margin-bottom: 0.6rem; }
.pc-area .card > p.small.muted:last-child { margin: 0.6rem 0 0; }
/* Fact lists inside a card: no second glass layer */
.pc .pc-facts { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; padding: 0; margin: 0; max-width: none; }
.pc .pc-facts li { padding: 0.5rem 0; align-items: baseline; }
.pc .pc-facts li > span:last-child { max-width: 60%; }
.pc-schools li > span:first-child, .pc-sales li > span:first-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pc-schools li > span:first-child .muted, .pc-sales li > span:first-child .muted { font-size: 0.86rem; }
.pc-schools li > span:last-child { white-space: nowrap; }
.pc-sub { margin: 0.4rem 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Recent sales: street with month and type under it, price on the right */
.pc-sales b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Report call to action */
.pc-cta { margin: 2.5rem 0 1.25rem; max-width: none; }
.pc-cta h2 { margin-top: 0; }
.pc-cta .cta { margin-top: 1rem; }

/* Agents: sales/lettings toggle (radio buttons, works without JavaScript) and the copy blocks */
.pc-agents { margin: 0 0 1.5rem; }
.pc-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pc-seg {
  display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; margin: 0 0 0.8rem;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi);
}
.pc-seg label {
  font-size: 0.92rem; font-weight: 650; color: var(--muted); padding: 0.4rem 1rem; border-radius: 999px; min-height: 2.25rem;
  display: inline-flex; align-items: center; cursor: pointer; user-select: none;
}
.pc-seg label:hover { color: var(--text); }
#pc-aud-sales:checked ~ .pc-seg label[for="pc-aud-sales"],
#pc-aud-lettings:checked ~ .pc-seg label[for="pc-aud-lettings"] { color: var(--tint-text); background: var(--tint); }
#pc-aud-sales:focus-visible ~ .pc-seg label[for="pc-aud-sales"],
#pc-aud-lettings:focus-visible ~ .pc-seg label[for="pc-aud-lettings"] { outline: 3px solid var(--focus); outline-offset: 2px; }
#pc-aud-sales:checked ~ .pc-blocks .pc-blk-lettings,
#pc-aud-lettings:checked ~ .pc-blocks .pc-blk-sales { display: none; }
.pc-text {
  display: block; width: 100%; min-height: 12rem; resize: vertical; margin: 0 0 0.7rem; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 0.92rem; line-height: 1.5; color: var(--text);
  background: var(--glass-strong); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.pc-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0 0 0.8rem; }
.pc-copy[hidden] { display: none; }
.pc-agents-more { margin: 0; }

/* A branch's branded page (/postcode/<slug>/b/<code>/) */
.pc-branch { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.25rem; border-top: 4px solid var(--brand, #0B6B3A); }
.pc-branch-logo { flex: none; max-width: 7.5rem; max-height: 3.5rem; width: auto; height: auto; object-fit: contain; }
.pc-branch-text { min-width: 0; }
.pc-branch-text p { margin: 0 0 0.2rem; }
.pc-branch-name { font-weight: 800; font-size: 1.1rem; }
.pc-branch-contact { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; }
.pc-branch-contact a { overflow-wrap: anywhere; }

/* About this page */
.pc-foot { margin-top: 2rem; }
.pc-foot p { max-width: 46rem; }

@media (max-width: 26rem) {
  .pc .card { padding: 1rem; }
  .pc-hero { gap: 0.8rem; }
  .pc-hero .chip { min-width: 4.2rem; height: 4.2rem; font-size: 1.75rem; border-radius: 17px; }
  .pc-rows li { padding: 0.7rem 0.9rem; }
}

/* The postcode box (/postcode/ and the not-found page) */
.pc-lookup { padding-top: 2.5rem; padding-bottom: 3rem; }
.pc-form { max-width: 30rem; margin: 1.25rem 0 1rem; }
.pc-form label { display: block; font-weight: 700; margin-bottom: 0.45rem; }
.pc-form-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pc-form input {
  flex: 1 1 10rem; min-width: 0; min-height: 2.9rem; padding: 0.55rem 1rem; font: inherit; font-size: 1.05rem;
  text-transform: uppercase; color: var(--text); background: var(--glass-strong); border: 1px solid var(--border); border-radius: 999px;
}
.pc-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
