/* ---- The board: every listing is a notice hung on a string ------------------------------ */

.board {
  --tilt: 0deg;
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  margin-top: 30px;
  padding: 26px 16px 14px;
  background-color: var(--board);
  /* the two string holes in the top corners */
  background-image: radial-gradient(circle at 14px 12px, var(--ink) 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) 12px, var(--ink) 0 3px, transparent 3.6px);
  background-repeat: no-repeat;
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 3px 0 rgba(26, 25, 24, 0.14);
  transform: rotate(var(--tilt));
}

/* the string, from the two holes up to one nail */
.board::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: -30px;
  height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 42' preserveAspectRatio='none'%3E%3Cpath d='M0 42 50 3 100 42' fill='none' stroke='%231a1918' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  pointer-events: none;
}

.board::after {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  top: -32px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.wall > li:nth-child(4n + 1) .board {
  --tilt: -0.7deg;
}

.wall > li:nth-child(4n + 2) .board {
  --tilt: 0.5deg;
}

.wall > li:nth-child(4n + 3) .board {
  --tilt: -0.2deg;
}

.wall > li:nth-child(4n + 4) .board {
  --tilt: 0.8deg;
}

.board-yellow {
  background-color: var(--yellow);
}

.board-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.board-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.board-label-en {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-heading {
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.15;
}

.board-heading a {
  text-decoration: none;
}

/* the whole board is the link's target area */
.board-heading a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.board-heading a:focus-visible {
  outline: none;
  box-shadow: none;
}

.board:has(.board-heading a:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  box-shadow: 0 0 0 9px var(--yellow);
}

.board:hover .board-heading a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.board-where {
  font-size: 0.9rem;
  color: var(--dust);
  margin-top: -6px;
}

.board-yellow .board-where,
.board-yellow .board-small,
.board-yellow .board-foot {
  color: var(--ink);
}

.board-photo {
  position: relative;
  margin: 2px 0 0;
  border: 2px solid var(--ink);
}

.board-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.board-photo figcaption:empty {
  display: none;
}

.board-photo figcaption {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 0 6px;
  background: var(--board);
  border: 1.5px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.board-facts {
  display: grid;
  gap: 4px;
  margin: 0;
}

.board-facts > div {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1.5px dotted var(--ink);
}

.board-facts dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board-facts dd {
  margin: 0;
}

.big {
  font-weight: 800;
  font-size: 1.15rem;
}

.board-small {
  display: block;
  font-size: 0.86rem;
  color: var(--dust);
}

.board-caveat {
  font-family: var(--hand);
  font-size: 1.12rem;
  line-height: 1.3;
}

.board-caveat::before {
  content: "लक्षात ठेवा · ";
  font-size: 0.85em;
}

.board-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.82rem;
  color: var(--dust);
}

/* Rented, sold, under offer: one black strip across the board; the photo stays honest. */
.strip {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 38%;
  z-index: 2;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--board);
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* ---- MahaRERA block: number, web address and QR together, top right, set apart --------- */

.rera {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px;
  background: var(--ink);
  color: var(--board);
  border-radius: 2px;
  flex-wrap: wrap;
  max-width: 100%;
}

.rera a {
  color: var(--board);
}

.rera-qr {
  width: 96px;
  height: 96px;
  background: #fff;
  image-rendering: pixelated;
}

.rera-lines {
  min-width: 0;
  display: grid;
  gap: 1px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.rera-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d8d3c7;
}

.rera-no,
.rera-site {
  font-weight: 800;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.rera-lines .sample {
  justify-self: start;
}

.rera-large {
  padding: 10px;
  gap: 12px;
}

.rera-large .rera-qr {
  width: 120px;
  height: 120px;
}

.rera-large .rera-no,
.rera-large .rera-site {
  font-size: 1.15rem;
}

/* ---- The wall ------------------------------------------------------------------------- */

.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.wall > li {
  min-width: 0;
}

.wall {
  align-items: start;
}

.empty {
  padding: 20px;
  border: 2px dashed var(--ink);
}

/* ---- Hero: the society noticeboard ------------------------------------------------------ */

.hero {
  background: var(--wall);
  border-bottom: 2px solid var(--ink);
  padding: 22px 0 34px;
}

.hero-wall {
  display: grid;
  gap: 8px;
}

.hero-board {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 18px 20px;
  background: var(--board);
  border: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: 6px 6px 0 var(--ink);
}

.hero-word {
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1;
}

.hero-board h1 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2.3rem, 10vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-text {
  font-size: 1.05rem;
  max-width: 34em;
}

.hero-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-counts a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.hero-counts a:hover {
  background: var(--yellow);
}

.hero-counts .num {
  font-weight: 800;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-rera {
  font-size: 0.88rem;
  padding-top: 10px;
  border-top: 1.5px dotted var(--ink);
}

.hero-hung {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 78%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.hero-hung > li {
  scroll-snap-align: start;
  padding-top: 4px;
}

.hero-hung > li:nth-child(1) .board {
  --tilt: -1.2deg;
}

.hero-hung > li:nth-child(2) .board {
  --tilt: 0.9deg;
}

.hero-hung > li:nth-child(3) .board {
  --tilt: -0.5deg;
}

/* ---- Sections ----------------------------------------------------------------------------- */

.section {
  margin-top: 56px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-head h2,
.page-head h1 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
}

.lede {
  font-size: 1.06rem;
  max-width: 44em;
}

.sub-head {
  font-size: 1.3rem;
  margin: 34px 0 12px;
}

.page-head {
  display: grid;
  gap: 10px;
  padding: 30px 0 18px;
}

.page-head-sub {
  font-family: var(--text);
  font-weight: 800;
  font-size: 0.5em;
}

.crumbs {
  font-size: 0.9rem;
  font-weight: 700;
}

.next-link {
  margin-top: 20px;
}

.notes {
  margin: 20px 0 0;
  padding-left: 1.2em;
  color: var(--dust);
  font-size: 0.92rem;
}

.note-small {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--dust);
}

/* ---- Filters: links pinned along the top of the wall ------------------------------------ */

.filters {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-name {
  width: 3.4em;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pin {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 40px;
  padding: 7px 12px 5px;
  background: var(--board);
  border: 2px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
}

.pin .num {
  color: var(--dust);
  font-weight: 800;
}

.pin:hover {
  background: var(--yellow);
}

.pin[aria-current="page"] {
  background: var(--ink);
  color: var(--board);
}

.pin[aria-current="page"] .num {
  color: var(--board);
}

.empty-board {
  margin-top: 30px;
  padding: 22px;
  border: 2px dashed var(--ink);
  display: grid;
  gap: 10px;
  font-family: var(--hand);
  font-size: 1.3rem;
}

.unpin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

/* ---- Fees, on black ----------------------------------------------------------------------- */

.section-dark {
  background: var(--ink);
  color: var(--board);
  padding: 44px 0 50px;
}

.section-dark a {
  color: var(--board);
}

.fees {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.fee {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--board);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.fee-what {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fee-fee {
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1.15;
}

.fee-note {
  font-size: 0.92rem;
}

/* ---- Areas -------------------------------------------------------------------------------- */

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--ink);
}

.area-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 12px 4px;
  border-bottom: 1.5px solid var(--ink);
  text-decoration: none;
}

.area-list a:hover {
  background: var(--yellow);
}

.area-name {
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1.2;
}

.area-mr {
  color: var(--dust);
}

.area-civic,
.area-count {
  font-size: 0.85rem;
  font-weight: 700;
}

.area-count {
  text-align: right;
}

.area-table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.area-table th,
.area-table td {
  padding: 10px 8px;
  border-bottom: 1.5px solid var(--ink);
  text-align: left;
  vertical-align: baseline;
}

.area-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom-width: 2px;
}

.area-table tbody th a {
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.3rem;
}

.r {
  text-align: right !important;
}

.street-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.street-notes li {
  padding: 10px 12px;
  background: var(--board);
  border: 2px solid var(--ink);
  font-family: var(--hand);
  font-size: 1.1rem;
  line-height: 1.35;
}

.link-grid ul {
  margin: 40px 0 0;
  padding: 16px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 2px solid var(--ink);
  font-weight: 700;
}

.closed-list {
  padding-left: 1.2em;
}

/* ---- Listing page ------------------------------------------------------------------------- */

.listing .crumbs {
  padding-top: 22px;
}

.status-line {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--board);
  font-weight: 800;
}

.listing-board {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 20px 16px;
  background: var(--board);
  border: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: 6px 6px 0 var(--ink);
}

.listing-board-top {
  display: grid;
  gap: 14px;
}

.listing-body {
  display: grid;
  gap: 14px;
}

.listing-text {
  display: grid;
  gap: 14px;
  align-content: start;
}

.listing-photo {
  margin: 0;
  border: 2px solid var(--ink);
}

.listing-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.listing-photo figcaption {
  padding: 4px 8px;
  border-top: 2px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.listing-board h1 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  line-height: 1.05;
}

.board-facts-large > div {
  grid-template-columns: 9em minmax(0, 1fr);
  padding: 8px 0;
}

.board-facts-large .big {
  font-size: 1.5rem;
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listing-code {
  font-size: 0.92rem;
}

.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.photo-grid figure {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--board);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-grid figcaption {
  padding: 6px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  border-top: 2px solid var(--ink);
}

.photo-kind {
  color: var(--dust);
  font-weight: 500;
}

.listing-cols {
  display: grid;
  gap: 0 40px;
}

.facts {
  display: grid;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(8em, 42%) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1.5px dotted var(--ink);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.facts .unknown {
  color: var(--dust);
  font-style: italic;
}

.facts-inline {
  max-width: 560px;
}

.about {
  margin-top: 14px;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.ticks li::before {
  content: "✓ ";
  font-weight: 800;
}

.checked {
  margin-top: 30px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-size: 0.9rem;
  color: var(--dust);
}

/* ---- How we work -------------------------------------------------------------------------- */

.fees-light .fee {
  box-shadow: 4px 4px 0 var(--ink);
}

.never {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.never-board {
  padding: 14px 16px;
  background: var(--board);
  border: 2px solid var(--ink);
}

.never-say {
  font-family: var(--hand);
  font-size: 1.3rem;
}

.never-say s {
  text-decoration-thickness: 3px;
}

.never-why {
  margin-top: 4px;
}

.scam {
  margin-top: 40px;
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--yellow);
  border: 3px solid var(--ink);
}

.scam h2 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.8rem;
}

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.people li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.initials {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 800;
}

.person-name {
  display: block;
  font-weight: 800;
}

.person-role {
  display: block;
  font-size: 0.9rem;
  color: var(--dust);
}

/* ---- Visit, thanks ------------------------------------------------------------------------ */

.visit-band {
  display: grid;
  gap: 28px;
}

.visit-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.visit-copy h2:not(.sub-head) {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
}

.form-board {
  padding: 20px 16px;
  background: var(--board);
  border: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: 6px 6px 0 var(--ink);
}

.privacy {
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--dust);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  column-gap: 10px;
}

.steps li::before {
  content: counter(step);
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.step-title {
  font-weight: 800;
}

.step-when {
  font-size: 0.9rem;
  font-weight: 700;
}

.step-text {
  font-size: 0.92rem;
  color: var(--dust);
}

.thanks {
  display: grid;
  gap: 16px;
  padding: 40px 0 10px;
  max-width: 760px;
}

.thanks h1 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1.05;
}
