/* ==========================================================================
   Deets: Your place (place/index.html + place/<council id>.html).
   Loads after rates.css and reuses its page shell (.r-crumb, .r-main,
   .r-h1, .r-standfirst, .r-pill). This file adds the cards, the "Keep track
   of all of this" block and the few app field styles the address finder
   and the sign up form need (the website pages don't load css/app.css).
   ========================================================================== */

.p-main { max-width: 1000px; }
.p-main :where(button:not(.btn)) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.p-main [hidden] { display: none !important; }

/* ---- fields (the same look as css/app.css .field and .field-input) ------- */

.p-main .field { display: flex; flex-direction: column; gap: 6px; }
.p-main .field-label { font-size: var(--fs-label); line-height: 1.35; font-weight: 700; color: var(--ink-soft); }
.p-main .field-input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
}
.p-main .field-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.p-main .muted-note { font-size: var(--fs-label); color: var(--muted); }
.p-main .link-quiet {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 2px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--primary-d);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p-main .addr-field { position: relative; }
.p-main .addr-results { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.p-main .addr-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: var(--fs-body);
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.p-main .addr-result:last-child { border-bottom: 0; }
.p-main .addr-result.is-active { background: var(--primary-l); color: var(--primary-d); }
.p-main .addr-result small { display: block; font-size: var(--fs-micro); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .p-main .addr-result:hover { background: var(--primary-l); color: var(--primary-d); }
}
.p-main .addr-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 14px;
  font-size: var(--fs-body);
  color: var(--muted);
}
.p-main .addr-manual { flex-direction: column; gap: 10px; }
.p-main .addr-manual-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
.p-main .addr-manual-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.p-main .btn-ghost { white-space: normal; }

.p-main .pw-reveal { position: relative; }
.p-main .pw-reveal > .field-input.has-reveal { padding-right: 64px; }
.p-main .pw-reveal-btn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ---- the address and the council ------------------------------------------ */

.p-find { max-width: 560px; margin: 18px 0 10px; }
.p-council { font-size: var(--fs-body); font-weight: 700; color: var(--ink-soft); margin: 0 0 14px; }
.p-none { font-size: var(--fs-body); color: var(--ink-soft); margin: 0 0 14px; }

/* ---- cards ---------------------------------------------------------------- */

.p-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
  margin: 18px 0 26px;
}
.p-cards:empty { display: none; }
.p-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: var(--fs-body);
  color: var(--ink-soft);
}
.p-card p { margin: 0; overflow-wrap: anywhere; }
.p-card-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-card-t h2 { margin: 0; font-size: var(--fs-title); color: var(--ink); }
.p-card-f { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 4px; }
.p-big { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.p-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 700;
  white-space: nowrap;
}
.p-pill-b { background: var(--primary-l); color: var(--primary-d); }
.p-pill-a { background: var(--amber-l); color: var(--amber-ink); }
.p-pill-n { background: var(--soft); color: var(--ink-soft); border: 1px solid var(--line); }
.p-add, .p-out {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--primary-d);
}
.p-main .p-add { color: var(--primary-d); }
.p-out { text-decoration: underline; text-underline-offset: 2px; }
.p-zones, .p-towns, .p-areas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.p-zones b, .p-towns b, .p-areas b { color: var(--ink); }
.p-towns li, .p-areas li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.p-towns li span { min-width: 0; }
.p-towns li b, .p-areas li b { flex: none; }

/* ---- Keep track of all of this ------------------------------------------- */

.p-track {
  max-width: 520px;
  margin: 0 0 30px;
  padding: 20px;
  border: 2px solid var(--primary);
  border-radius: var(--r-md);
  background: #fff;
  scroll-margin-top: 84px;
}
.p-track-in { display: flex; flex-direction: column; gap: 14px; }
.p-track-h { margin: 0; font-size: var(--fs-d1); color: var(--ink); }
.p-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.p-list li + li { border-top: 1px solid var(--line); }
.p-tick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: var(--fs-body);
  color: var(--ink);
}
.p-tick input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--primary); }
.p-tick-l { font-weight: 700; }
.p-tick-w { margin-left: auto; color: var(--muted); text-align: right; font-size: var(--fs-label); }
.p-qs { display: flex; flex-direction: column; gap: 12px; }
.p-qs:empty { display: none; }
.p-q { display: flex; flex-direction: column; gap: 6px; }
.p-q-l { margin: 0; font-size: var(--fs-label); font-weight: 700; color: var(--ink-soft); }
.p-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.p-main .p-seg-b {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.p-seg[style] .p-seg-b { padding: 8px 0; font-size: 14px; }
.p-main .p-seg-b.is-on { border-color: var(--primary); color: var(--primary-d); background: var(--primary-l); }
.p-form { display: flex; flex-direction: column; gap: 12px; }
.p-err { margin: 0; color: var(--red); font-size: var(--fs-body); }
.p-start { width: 100%; justify-content: center; }
.p-legal { margin: 0; font-size: var(--fs-label); color: var(--muted); text-align: center; }
.p-legal a { color: var(--muted); text-decoration: underline; }
.p-email-line { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.p-badge { display: flex; }

@media (max-width: 480px) {
  .p-cards { grid-template-columns: minmax(0, 1fr); }
  .p-track { padding: 16px; }
}

/* ---- Moving house (moving/index.html, W5) --------------------------------- */

.m-fields { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin: 14px 0 18px; }
.m-fields + .m-track { margin: 0 0 18px; }
.m-lists { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.m-list { display: flex; flex-direction: column; gap: 8px; }
.m-h { margin: 0; font-size: var(--fs-title); color: var(--ink); }
.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 6px 12px;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  text-align: left;
}
button.m-row { cursor: pointer; }
.m-chev { flex: none; color: var(--ink-soft); font-size: 20px; line-height: 1; transition: transform 0.15s ease; }
.m-row[aria-expanded="true"] .m-chev { transform: rotate(90deg); }
.m-sub { padding: 0 12px 12px; font-size: var(--fs-body); color: var(--ink-soft); }
.m-sub[hidden] { display: none; }
.m-src { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 700; color: var(--primary-d); }
.m-new { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin-top: 22px; }
.m-signup { margin: 14px 0 0; }
.m-signin { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 700; color: var(--primary-d); }
.m-t { font-weight: 700; min-width: 0; }
.m-d { flex: none; margin-left: auto; color: var(--ink); text-align: right; font-size: 13px; }
.m-place { max-width: 520px; }
.m-link { text-decoration: none; }
.m-link .m-t { color: var(--primary-d); }
.m-track { max-width: 520px; min-height: 48px; font-size: 16px; margin: 22px 0 0; display: flex; align-items: center; justify-content: center; text-decoration: none; }
