/* ==========================================================================
   Shepparton house prices page. Extends area.css and the shared layer in
   styles.css (.visually-hidden lives there too). Loaded after both.
   ========================================================================== */

/* ---- Masthead: the answer sits beside the title ------------------------- */

.prices-head h1 {
  font-size: var(--text-display);
  line-height: 1;
  text-wrap: balance;
}
.prices-head .prices-answer { color: var(--ink); }
.prices-head .stat-row { margin-top: clamp(40px, 5vw, 72px); }
/* Three figures: one row of three tiles on desktop; stacked on phones, where
   two columns would squeeze "$545,000" past the edge and orphan the third. */
@media (max-width: 900px) {
  .prices-head .stat-row { grid-template-columns: minmax(0, 1fr); }
}
.prices-head .source-line { margin-top: 24px; }
.prices-head .source-line + .source-line { margin-top: 8px; }

/* ---- 01 The numbers: one ruled table ----------------------------------- */

.prices-table-wrap { border-top: 1px solid var(--ink); }

.prices-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.prices-table thead th {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--grey);
  text-align: left;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.prices-table tbody th,
.prices-table td {
  text-align: left;
  vertical-align: top;
  padding: 24px 16px 24px 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 400;
}
.prices-table thead th:nth-child(1) { width: 19%; }
.prices-table thead th:nth-child(2) { width: 15%; }
.prices-table thead th:nth-child(3) { width: 13%; }
.prices-table thead th:nth-child(4) { width: 29%; }
.prices-table thead th:nth-child(5) { width: 13%; }
.prices-table thead th:nth-child(6) { width: 11%; }
.prices-table th:last-child,
.prices-table td:last-child { padding-right: 0; }

.src-name {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}
.src-label,
.src-area {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--grey);
}
.src-median {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.2;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.prices-table td.src-median { padding-top: 22px; }

/* Phones and small tablets: each source becomes a ruled block with the
   column name printed above each value. No sideways scrolling. */
@media (max-width: 900px) {
  .prices-table thead { display: none; }
  .prices-table { table-layout: auto; }
  .prices-table,
  .prices-table tbody,
  .prices-table tr,
  .prices-table tbody th,
  .prices-table td { display: block; width: 100%; }
  .prices-table tr { padding: 24px 0; border-bottom: 1px solid var(--hairline); }
  .prices-table tbody th,
  .prices-table td { padding: 0; border: 0; }
  .prices-table td { margin-top: 14px; }
  .prices-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 2px;
  }
  .prices-table td.src-median { padding-top: 0; }
}

/* ---- 02 Why they differ: a ruled 3 x 2 grid of short notes ------------- */

.prices-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  border-top: 1px solid var(--hairline);
}
.prices-reason {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--hairline);
}
.prices-reason h3 {
  font-weight: 400;
  font-size: clamp(21px, 1.8vw, 24px);
  line-height: 1.3;
  margin-bottom: 12px;
}
.prices-reason p { color: var(--grey); max-width: 46ch; }

@media (max-width: 1080px) {
  .prices-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .prices-reasons { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 03 What it means: sellers left, buyers right ----------------------- */

.prices-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
  border-top: 1px solid var(--hairline);
}
.prices-col { padding-top: 32px; max-width: 60ch; }
.prices-col h3 {
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.25;
  margin-bottom: 16px;
}
.prices-col p + p { margin-top: 16px; }
.prices-col .source-line { margin-top: 24px; }
.prices-col .source-line a { color: inherit; }

@media (max-width: 820px) {
  .prices-split { grid-template-columns: minmax(0, 1fr); }
  .prices-col + .prices-col { margin-top: 40px; border-top: 1px solid var(--hairline); }
}

/* ---- 04 Suburb by suburb: typographic rows ----------------------------- */

.prices-suburbs { list-style: none; border-top: 1px solid var(--hairline); }
.prices-suburbs li { border-bottom: 1px solid var(--hairline); }
.prices-suburb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 22px 0;
  color: var(--ink);
  text-decoration: none;
}
.prices-suburb-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}
.prices-suburb-meta {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--grey);
}
.prices-suburb:hover .prices-suburb-meta,
.prices-suburb:focus-visible .prices-suburb-meta { color: var(--ink); }
.src-bed { display: block; }
.src-bed + .src-bed { margin-top: 12px; }
.src-bed .src-area { margin-top: 2px; font-family: var(--sans); }
