/* Concept 11: the Market Monitor. */

.mo {
  --mo-ink: hsl(var(--foreground)); --mo-mute: hsl(var(--muted-foreground)); --mo-line: hsl(var(--border));
  --mo-brass: var(--mf-brass, #a88f5c);
  position: relative; padding: 112px 0 120px; background: hsl(var(--secondary)); border-top: 1px solid var(--mo-line);
}
.mo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mo-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 64px; align-items: end; }
.mo-eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mo-brass);
}
.mo-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.mo h2 { margin: 0; font-family: var(--mf-serif, serif); font-weight: 500; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; }
.mo-dek { margin: 0 0 6px; max-width: 36em; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--mo-mute); }
.mo-asof { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--muted-foreground) / 0.8); }

/* Headline figures */
.mo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--mo-ink); border-bottom: 1px solid var(--mo-line); }
.mo-kpi { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px 0; }
.mo-kpi + .mo-kpi { padding-left: 24px; border-left: 1px solid var(--mo-line); }
.mo-kpi-n { font: 200 clamp(38px, 4vw, 56px)/1 "DM Sans", system-ui, sans-serif; letter-spacing: -0.035em; color: var(--mo-ink); font-variant-numeric: tabular-nums; }
.mo-kpi-l { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mo-mute); }

/* Panels */
.mo-grid { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); gap: 56px; margin-top: 64px; }
.mo-panel h3 { margin: 0 0 18px; font-family: var(--mf-serif, serif); font-weight: 500; font-size: 26px; }

.mo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mo-table thead th {
  padding: 0 10px 10px; text-align: left; vertical-align: bottom; font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mo-mute); border-bottom: 1px solid var(--mo-ink);
}
.mo-table thead th:first-child, .mo-table tbody th { padding-left: 0; }
.mo-table td, .mo-table tbody th { padding: 14px 10px; border-bottom: 1px solid var(--mo-line); text-align: left; font-weight: 400; vertical-align: middle; }
.mo-table .mo-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mo-table tbody th a { color: var(--mo-ink); text-decoration: none; white-space: nowrap; }
.mo-table tbody th a span { color: var(--mo-mute); opacity: 0; transition: opacity 0.2s; }
.mo-table tbody tr:hover th a span { opacity: 1; }
.mo-table tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mo-table tbody tr:hover { background: hsl(var(--background) / 0.6); }
.mo-axis-h { width: 46%; min-width: 220px; }
.mo-axis { position: relative; height: 14px; }
.mo-axis span { position: absolute; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.04em; text-transform: none; }

/* Range strip: faint span min–max, a dot per priced listing, brass tick at the median. */
.mo-range { position: relative; height: 22px; }
.mo-range::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: hsl(var(--foreground) / 0.08); }
.mo-range.is-empty { height: auto; font-size: 12px; font-style: italic; color: var(--mo-mute); }
.mo-range.is-empty::before { display: none; }
.mo-span { position: absolute; top: calc(50% - 3px); height: 6px; border-radius: 3px; background: hsl(var(--foreground) / 0.12); }
.mo-dot {
  position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: hsl(var(--foreground) / 0.55); box-shadow: 0 0 0 2px hsl(var(--secondary)); cursor: default;
}
.mo-dot::after, .mo-mid::after { content: ""; position: absolute; inset: -6px; } /* bigger hit target than the mark */
.mo-dot:hover { background: var(--mo-ink); }
.mo-mid { position: absolute; top: calc(50% - 9px); width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--mo-brass); }

.mo-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 14px 0 0; font-size: 11.5px; color: var(--mo-mute); }
.mo-key i { display: inline-block; margin-right: 2px; }
.mo-key-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--foreground) / 0.55); }
.mo-key-span { width: 22px; height: 6px; border-radius: 3px; background: hsl(var(--foreground) / 0.12); }
.mo-key-mid { width: 2px; height: 12px; background: var(--mo-brass); }

/* Regions */
.mo-regions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mo-ink); }
.mo-regions li { display: grid; grid-template-columns: 120px 1fr 28px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--mo-line); }
.mo-reg-l { font-size: 13.5px; }
.mo-reg-n { font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--mo-mute); }
.mo-bar-track { position: relative; height: 8px; }
.mo-bar { position: absolute; left: 0; top: 0; bottom: 0; min-width: 2px; border-radius: 0 4px 4px 0; background: hsl(var(--foreground) / 0.7); cursor: default; }
.mo-bar:hover { background: var(--mo-ink); }
.mo-regions li:last-child .mo-bar { background: hsl(var(--foreground) / 0.25); }

/* Tooltip */
.mo-tip {
  position: absolute; z-index: 5; max-width: 300px; padding: 8px 11px; pointer-events: none;
  font-size: 12px; line-height: 1.45; color: hsl(var(--background)); background: hsl(222 47% 8%);
  box-shadow: 0 10px 30px -10px hsl(222 47% 8% / 0.4);
}
.mo-tip[hidden] { display: none; }

/* Circular */
.mo-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; margin-top: 72px; padding: 34px 40px; background: hsl(var(--background)); border: 1px solid var(--mo-line); }
.mo-cta-t { margin: 0 0 6px; font-family: var(--mf-serif, serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.mo-cta p:not(.mo-cta-t) { margin: 0; max-width: 34em; font-size: 14px; color: var(--mo-mute); }
.mo-cta-a { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.mo-btn { display: inline-flex; padding: 14px 24px; font-size: 14px; letter-spacing: 0.03em; color: hsl(var(--background)); background: var(--mo-ink); text-decoration: none; transition: opacity 0.2s; }
.mo-btn:hover { opacity: 0.88; }
.mo-link { font-size: 13px; color: var(--mo-ink); text-decoration: none; border-bottom: 1px solid hsl(var(--foreground) / 0.3); padding-bottom: 2px; }
.mo-link:hover { border-bottom-color: var(--mo-ink); }
.mo-btn:focus-visible, .mo-link:focus-visible, .mo-table a:focus-visible { outline: 1px solid var(--mo-ink); outline-offset: 3px; }

@media (max-width: 1100px) {
  .mo-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 760px) {
  .mo { padding: 80px 0 88px; }
  .mo-head { grid-template-columns: 1fr; }
  .mo-kpis { grid-template-columns: 1fr 1fr; }
  .mo-kpi { padding: 20px 14px 18px 0; }
  .mo-kpi + .mo-kpi { padding-left: 14px; }
  .mo-kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .mo-kpi:nth-child(n+3) { border-top: 1px solid var(--mo-line); }
  .mo-kpi-l { font-size: 10px; letter-spacing: 0.1em; }
  /* The range strip needs width; on phones the table keeps sector, count and median asking. */
  .mo-table th:nth-child(3), .mo-table td:nth-child(3), .mo-table .mo-axis-h, .mo-table .mo-range-cell { display: none; }
  .mo-table tbody th a span { opacity: 1; }
  .mo-table tbody th a { white-space: normal; }
  .mo-table thead th { padding: 0 6px 10px; font-size: 9.5px; letter-spacing: 0.08em; white-space: normal; }
  .mo-table td, .mo-table tbody th { padding: 12px 6px; }
  .mo-table thead th:first-child, .mo-table tbody th { padding-left: 0; }
  .mo-table thead th:last-child, .mo-table td:last-child { padding-right: 0; }
  .mo-key { display: none; }
  .mo-regions li { grid-template-columns: 104px 1fr 24px; }
  .mo-cta { padding: 26px 20px; }
}
