:root {
  --market-paper: #fbfaf6;
  --market-surface: #fffefd;
  --market-ink: #17201d;
  --market-muted: #66706b;
  --market-green: #0f5a49;
  --market-green-dark: #0b493c;
  --market-green-pale: #eaf3ed;
  --market-rust: #b24d20;
  --market-line: #ddd7ce;
  --market-line-dark: #c9c1b7;
  --market-content: 1336px;
}

.market-reference-page {
  color: var(--market-ink);
  background: var(--market-paper);
}

.market-reference-page .site-header {
  background: rgba(255, 254, 251, 0.97);
}

.market-reference-main {
  min-height: calc(100vh - 72px);
  padding: 17px 0 72px;
}

.market-shell {
  width: min(calc(100% - 64px), var(--market-content));
  margin-inline: auto;
}

.market-page-heading {
  padding: 0 8px 14px;
}

.market-kicker {
  margin: 0 0 7px;
  color: var(--market-rust);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.market-page-heading h1 {
  margin: 0;
  color: #111815;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: clamp(38px, 3.3vw, 52px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.22;
  text-wrap: balance;
}

.market-page-lead {
  margin: 11px 0 0;
  color: var(--market-muted);
  font-size: 17px;
}

.market-region-panel,
.market-stage,
.market-region-summary,
.market-total-result {
  border: 1px solid var(--market-line);
  border-radius: 11px;
  background: var(--market-surface);
}

.market-region-panel {
  padding: 20px 26px 26px;
}

.market-region-panel h2,
.market-stage-heading h2 {
  margin: 0;
  color: #151c19;
  font-size: 22px;
  line-height: 1.4;
}

.market-region-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 8px;
  align-items: end;
  margin-top: 16px;
}

.market-region-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.market-region-step-arrow {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding-bottom: 1px;
  color: var(--market-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

.market-field-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
}

.market-field-label b,
.market-stage-number {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--market-green);
  font-size: 15px;
  line-height: 1;
}

.market-reference-page select,
.market-reference-page input,
.market-reference-page button {
  font: inherit;
}

.market-reference-page select,
.market-region-field input,
.market-area-control input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--market-line-dark);
  border-radius: 5px;
  color: var(--market-ink);
  background: #fff;
}

.market-reference-page select {
  padding: 0 44px 0 13px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #17201d 50%), linear-gradient(135deg, #17201d 50%, transparent 50%);
  background-position: calc(100% - 21px) 20px, calc(100% - 15px) 20px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.market-region-field input {
  padding: 0 13px;
}

.market-town-help {
  display: block;
  grid-column: 5;
  margin: 0;
  color: var(--market-muted);
  font-size: 12px;
  line-height: 1.45;
}

.market-town-suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 216px;
  overflow-y: auto;
  border: 1px solid #b7c5bd;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(26, 43, 35, 0.12);
  background: #fffefa;
}

.market-town-suggestion {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #e2e8e3;
  color: var(--market-ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.market-town-suggestion:last-child { border-bottom: 0; }
.market-town-suggestion:hover,
.market-town-suggestion:focus-visible { color: #0e614e; background: #edf6f0; outline: none; }

.market-town-suggestion-status {
  display: block;
  padding: 9px 12px;
  color: var(--market-muted);
  font-size: 13px;
}

.market-reference-page select:disabled {
  cursor: not-allowed;
  color: #8d948f;
  background-color: #f5f3ee;
}

.market-region-help,
.market-initial-caption {
  margin: 11px 0 0;
  color: var(--market-muted);
  font-size: 15px;
}

.market-region-availability {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 12px 0 0;
  padding: 8px 12px;
  border-left: 3px solid #4c7766;
  color: #244c3d;
  background: #f0f6f2;
  font-size: 15px;
  line-height: 1.55;
}

.market-region-availability[hidden] { display: none; }

.market-region-availability[data-status="checking"] {
  border-left-color: #7b745d;
  color: #5e5846;
  background: #f7f5ee;
}

.market-region-availability[data-status="unavailable"] {
  border-left-color: #8b684f;
  color: #65493a;
  background: #faf4ef;
}

.market-form-error {
  margin: 10px 0 0;
  color: #a33e1e;
  font-weight: 700;
}

.market-primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--market-green);
  border-radius: 5px;
  color: #fff;
  background: var(--market-green);
  box-shadow: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.market-primary-button:hover {
  border-color: var(--market-green-dark);
  background: var(--market-green-dark);
}

.market-primary-button:disabled,
.market-primary-button:disabled:hover {
  border-color: #b6c2bb;
  color: #718078;
  background: #dfe6e1;
  cursor: not-allowed;
}

.market-region-panel .market-primary-button {
  width: 100%;
  margin-top: 11px;
}

.market-initial-caption {
  margin-top: 24px;
  text-align: center;
}

.market-loading {
  display: grid;
  min-height: 315px;
  place-items: center;
  align-content: center;
  padding: 34px;
  border: 1px solid var(--market-line);
  border-radius: 11px;
  text-align: center;
}

.market-loading[hidden],
.market-result[hidden] {
  display: none;
}

.market-loading h2 {
  margin: 0;
  font-size: 25px;
}

.market-loading p:last-child {
  margin: 7px 0 0;
  color: var(--market-muted);
}

.market-loading-mark {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.market-loading-mark span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--market-green);
  animation: market-loading-bounce 900ms ease-in-out infinite;
}

.market-loading-mark span:nth-child(2) { animation-delay: 120ms; }
.market-loading-mark span:nth-child(3) { animation-delay: 240ms; }

@keyframes market-loading-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-7px); opacity: 1; }
}

.market-region-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 25px;
  padding: 11px 17px;
}

.market-region-summary > p {
  display: flex;
  min-height: 35px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 26px;
  border-right: 1px solid var(--market-line);
}

.market-region-summary > p:first-child { padding-left: 0; }

.market-region-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--market-green);
}

.market-region-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.market-region-summary-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 22px;
}

.market-price-status,
.market-data-status {
  margin: 0;
  color: var(--market-muted);
  font-size: 13px;
  line-height: 1.55;
}

.market-price-status {
  max-width: 310px;
}

.market-region-change {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--market-green);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.market-stage {
  padding: 10px 14px 14px;
}

.market-stage + .market-stage { margin-top: 18px; }

.market-stage-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.market-stage-number {
  width: 34px;
  height: 34px;
  font-size: 20px;
}

.market-land-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(540px, 1.28fr);
  gap: 18px;
}

.market-map {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d7ddd8;
  border-radius: 7px;
  color: #101513;
  background: #edf1ec;
}

.market-map-viewport {
  position: absolute;
  inset: 0;
  min-height: 282px;
  overflow: hidden;
  isolation: isolate;
  background: #e7eeea;
}

.market-map::before {
  display: block;
  padding-top: min(57.2%, 282px);
  content: "";
}

.market-map-tile-layer,
.market-map-boundary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.market-map-tile-layer { z-index: 0; }

.market-map-tile-layer img {
  position: absolute;
  display: block;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.market-map-boundary {
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.market-map-boundary path {
  fill: rgba(197, 221, 205, 0.38);
  stroke: #0f6a56;
  stroke-linejoin: round;
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
}

.market-map-focus-frame {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  border: 2px solid rgba(15, 106, 86, 0.92);
  border-radius: 2px;
  background: rgba(197, 221, 205, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 254, 251, 0.7), 0 1px 5px rgba(31, 54, 42, 0.18);
  pointer-events: none;
}

.market-map-focus-frame::before,
.market-map-focus-frame::after {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: #0f6a56;
  border-style: solid;
  content: "";
}

.market-map-focus-frame::before {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
}

.market-map-focus-frame::after {
  right: -4px;
  bottom: -4px;
  border-width: 0 2px 2px 0;
}

.market-map-location-pin {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 3px solid #b9542a;
  border-radius: 50% 50% 50% 0;
  background: #fffdf8;
  box-shadow: 0 2px 6px rgba(37, 31, 23, 0.22);
  pointer-events: none;
  transform: translate(-50%, -100%) rotate(-45deg);
}

.market-map-location-pin::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #b9542a;
  content: "";
}

.market-map-status,
.market-map-attribution {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: #33443d;
  background: rgba(255, 254, 251, 0.82);
  font-size: 11px;
  line-height: 1.4;
}

.market-map-status {
  top: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
  padding: 3px 6px;
}

.market-map-location-control {
  position: absolute;
  z-index: 4;
  left: 9px;
  bottom: 8px;
  max-width: min(300px, calc(100% - 18px));
}

.market-map-location-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 11px;
  border: 1px solid #0f6a56;
  border-radius: 4px;
  color: #0c5646;
  background: rgba(255, 254, 251, 0.96);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.market-map-location-button:hover { background: #e8f1eb; }
.market-map-location-button:focus-visible { outline: 3px solid #c46b43; outline-offset: 2px; }
.market-map-location-button span { color: #567166; font-size: 11px; font-weight: 600; }

.market-map-location-help {
  display: none;
  margin: 5px 0 0;
  padding: 6px 8px;
  border-radius: 4px;
  color: #33443d;
  background: rgba(255, 254, 251, 0.95);
  font-size: 11px;
  line-height: 1.5;
}

.market-map[data-location-picker="active"] .market-map-location-help { display: block; }
.market-map[data-location-picker="active"] .market-map-location-button { border-color: #b9542a; color: #8a381c; }

.market-zoning-reference {
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #b9d0c1;
  border-radius: 4px;
  color: #173f35;
  background: rgba(250, 253, 250, 0.97);
  font-size: 12px;
  line-height: 1.5;
}

.market-zoning-reference > p { margin: 0; font-weight: 800; }
.market-zoning-reference dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 7px 0 0; }
.market-zoning-reference dl div { min-width: 0; }
.market-zoning-reference dt { color: #567166; font-size: 10px; }
.market-zoning-reference dd { margin: 1px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.market-zoning-reference small { display: block; margin-top: 6px; color: #567166; font-size: 10px; }

.market-municipality-zoning-reference {
  margin-top: 9px;
  padding: 9px 11px;
  border-left: 3px solid #2f725f;
  background: #f4f8f5;
  color: #173f35;
  font-size: 12px;
  line-height: 1.65;
}

.market-municipality-zoning-reference p { margin: 0; font-weight: 800; }
.market-municipality-zoning-reference small { display: block; margin-top: 2px; color: #567166; }

.market-map-attribution {
  right: 7px;
  bottom: 6px;
  display: flex;
  gap: 4px;
  padding: 2px 5px;
}

.market-map-attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.market-map figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.market-land-details {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.market-unit-reference {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 1px minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  gap: clamp(8px, 1.1vw, 16px);
  padding: 0 22px;
  border-radius: 7px;
  background: #f6f5f1;
  font-size: 16px;
}

.market-unit-reference > span { color: #23322d; white-space: nowrap; }
.market-unit-reference strong { min-width: 0; font-family: "Yu Mincho", serif; font-size: clamp(14px, 1.55vw, 18px); font-weight: 500; white-space: nowrap; }
.market-unit-reference i { height: 18px; justify-self: center; border-left: 1px solid var(--market-line-dark); }

.market-land-total-flow {
  display: grid;
  grid-template-columns: minmax(205px, 0.78fr) auto minmax(330px, 1.22fr);
  align-items: center;
  gap: 19px;
  padding: 26px 8px 8px;
}

.market-data-status {
  margin: 9px 8px 0;
}

.market-trend-button {
  justify-self: start;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin: 9px 8px 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--market-green);
  color: #0c5646;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.market-trend-button[hidden] { display: none; }
.market-trend-button span { font-size: 24px; font-weight: 400; line-height: 0; }
.market-trend-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.market-trend-button:hover { color: #083f34; }

.market-trend-dialog {
  width: min(680px, calc(100% - 30px));
  max-height: min(720px, calc(100% - 30px));
  padding: 0;
  border: 1px solid #b9c8c0;
  border-radius: 8px;
  color: #101513;
  background: #fffdf8;
  box-shadow: 0 20px 70px rgba(27, 38, 32, 0.27);
}

.market-trend-dialog::backdrop { background: rgba(19, 31, 25, 0.48); }
.market-trend-dialog-inner { padding: clamp(20px, 4vw, 34px); }
.market-trend-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--market-line); padding-bottom: 15px; }
.market-trend-dialog-heading .market-kicker { margin: 0 0 3px; font-size: 13px; }
.market-trend-dialog-heading h2 { margin: 0; font-size: clamp(21px, 3vw, 28px); }
.market-dialog-close { display: inline-grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--market-line-dark); border-radius: 50%; color: #173f35; background: #fff; font: 28px/1 Arial, sans-serif; cursor: pointer; }
.market-dialog-close:hover { background: #eef5f0; }
.market-dialog-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.market-trend-chart-label { margin: 16px 0 7px; color: #3e4c46; font-size: 14px; font-weight: 700; line-height: 1.5; }
.market-trend-dialog-summary { margin: 14px 0 0; color: #3e4c46; font-size: 15px; line-height: 1.75; }
.market-trend-chart-wrap { overflow-x: auto; border: 1px solid #dae2dc; background: #fcfdfb; }
.market-trend-chart { display: block; width: 100%; min-width: 540px; height: auto; }
.market-trend-grid { stroke: #d8e1da; stroke-width: 1; }
.market-trend-axis { fill: #52635b; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 11px; }
.market-trend-band { fill: rgba(107, 159, 132, 0.24); }
.market-trend-line { fill: none; stroke: #0f6a56; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.market-trend-point { fill: #fffdf8; stroke: #0f6a56; stroke-width: 2.5; }
.market-trend-dialog-note { margin: 13px 0 0; color: var(--market-muted); font-size: 13px; line-height: 1.7; }

.market-area-field {
  display: grid;
  gap: 7px;
}

.market-area-field > span:first-child,
.market-land-total > span {
  font-weight: 800;
}

.market-area-control {
  display: flex;
  align-items: center;
  gap: 13px;
}

.market-area-control input {
  width: min(100%, 184px);
  padding: 0 13px;
  font-family: "Yu Mincho", serif;
  font-size: 26px;
  line-height: 1;
}

.market-area-control b { font-weight: 600; }
.market-area-field small { max-width: 230px; color: var(--market-muted); font-size: 14px; line-height: 1.75; }

.market-flow-arrow {
  font-size: 45px;
  font-weight: 300;
  line-height: 1;
}

.market-land-total {
  display: grid;
  min-width: 0;
  min-height: 136px;
  align-content: center;
  gap: 8px;
  padding-left: 32px;
  border-left: 1px solid var(--market-line-dark);
}

.market-land-total small {
  color: var(--market-muted);
  font-size: 13px;
  line-height: 1.45;
}

.market-land-total strong {
  color: var(--market-green);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.08;
  white-space: normal;
}

.market-land-total strong > span { white-space: nowrap; }
.market-land-total .market-currency-suffix { white-space: normal; }

.market-next-steps {
  margin-top: 24px;
  border-top: 4px solid var(--market-green);
  background: transparent;
}

.market-next-steps-heading { padding: 20px 0 15px; }

.market-next-steps-heading .market-kicker {
  margin-bottom: 4px;
  font-size: 14px;
}

.market-next-steps-heading h2 {
  margin: 0;
  color: #151c19;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
}

.market-next-steps-heading > p:last-child {
  margin: 7px 0 0;
  color: var(--market-muted);
  font-size: 16px;
  line-height: 1.7;
}

.market-next-step-list {
  overflow: hidden;
  border: 1px solid var(--market-line);
  border-radius: 10px;
  background: var(--market-surface);
}

.market-next-step {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(220px, 0.75fr);
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
}

.market-next-step + .market-next-step { border-top: 1px solid var(--market-line); }

.market-next-step-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 8px;
  border-radius: 8px;
  background: #edf1e9;
}

.market-next-step-copy h3 {
  margin: 0;
  color: #18221e;
  font-size: 20px;
  line-height: 1.4;
}

.market-next-step-copy p {
  margin: 5px 0 0;
  color: #4f5b55;
  font-size: 15px;
  line-height: 1.7;
}

.market-next-step--services { align-items: start; }

.market-service-paths {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-service-path {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 9px;
  min-height: 92px;
  padding: 14px 13px;
  border: 1px solid #bfd0c5;
  border-radius: 7px;
  color: #21392e;
  background: #fbfdf9;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.market-service-path strong { font-size: 16px; line-height: 1.5; }
.market-service-path span { grid-column: 1; color: #596960; font-size: 12px; line-height: 1.6; }
.market-service-path i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--market-green); font-family: Georgia, serif; font-size: 28px; font-style: normal; font-weight: 400; }
.market-service-path:hover { border-color: #5c8873; background: #f4f8f3; }
.market-service-path:active { border-color: var(--market-green); background: #f1f7f2; }
.market-service-path:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.market-service-dialog-content { display: grid; gap: 15px; margin-top: 18px; }
.market-service-dialog-content > p { margin: 0; color: #415248; font-size: 15px; line-height: 1.8; }
.market-service-dialog-content .market-affiliate-placement { justify-items: start; }
.market-inline-article-link { display: inline-flex; width: fit-content; min-height: 36px; align-items: center; gap: 6px; border-bottom: 1px solid currentColor; color: var(--market-green); font-size: 13px; font-weight: 700; line-height: 1.45; text-decoration: none; }
.market-inline-article-link:hover { color: var(--market-green-dark); }
.market-inline-article-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.market-inline-article-link span { font-family: Georgia, serif; font-size: 22px; font-weight: 400; }

.market-affiliate-placement {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 0;
}

.market-affiliate-placement > p {
  width: min(100%, 300px);
  margin: 0;
  color: #455d51;
  font-size: 12px;
  line-height: 1.55;
}

.market-affiliate-placement > p > span {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px 2px;
  border-radius: 2px;
  color: #fff;
  background: var(--market-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.market-affiliate-banner {
  display: block;
  width: min(100%, 300px);
  overflow: hidden;
  border: 1px solid #b9c8c0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(18, 48, 38, 0.08);
}

.market-affiliate-banner:hover { border-color: #658978; }
.market-affiliate-banner:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.market-affiliate-banner img { display: block; width: 100%; height: auto; }
.market-affiliate-tracking { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.market-affiliate-placement > small { width: min(100%, 300px); color: #5c685f; font-size: 11px; line-height: 1.5; }

.market-next-step-link {
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--market-green);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.market-next-step-link span { font-family: Georgia, serif; font-size: 24px; font-weight: 400; line-height: 0; }
.market-next-step-link:hover { color: var(--market-green-dark); }
.market-next-step-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.market-guide-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: min(720px, calc(100% - 30px));
  padding: 0;
  border: 1px solid #b9c8c0;
  border-radius: 8px;
  color: var(--market-ink);
  background: #fffdf8;
  box-shadow: 0 20px 70px rgba(27, 38, 32, 0.27);
}

.market-guide-dialog::backdrop { background: rgba(19, 31, 25, 0.48); }
.market-guide-dialog-inner { padding: clamp(20px, 4vw, 34px); }
.market-guide-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--market-line); }
.market-guide-dialog-heading .market-kicker { margin: 0 0 3px; font-size: 13px; }
.market-guide-dialog-heading h2 { margin: 0; font-size: clamp(21px, 3vw, 28px); }
.market-guide-dialog-lead { margin: 17px 0 0; color: #3e4c46; font-size: 16px; line-height: 1.8; }

.market-guide-checklist,
.market-guide-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: market-guide-step;
}

.market-guide-checklist li,
.market-guide-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  padding: 12px 13px;
  border-left: 3px solid #8eaa99;
  background: #f4f7f2;
}

.market-guide-checklist li::before { content: "✓"; color: var(--market-green); font-weight: 800; }
.market-guide-steps li::before { counter-increment: market-guide-step; content: counter(market-guide-step); display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--market-green); font-size: 12px; font-weight: 800; }
.market-guide-checklist strong,
.market-guide-checklist span,
.market-guide-steps strong,
.market-guide-steps span { grid-column: 2; }
.market-guide-checklist strong,
.market-guide-steps strong { color: #26362f; font-size: 15px; line-height: 1.55; }
.market-guide-checklist span,
.market-guide-steps span { margin-top: 3px; color: #55645c; font-size: 14px; line-height: 1.65; }
.market-guide-dialog-note { margin: 17px 0 0; color: var(--market-muted); font-size: 13px; line-height: 1.75; }

.market-related-articles {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #cfdbd2;
  border-radius: 7px;
  background: #f7faf6;
}

.market-related-articles h3 { margin: 0; color: #21342a; font-size: 17px; }
.market-related-articles > p { margin: 5px 0 0; color: #536259; font-size: 14px; line-height: 1.65; }
.market-related-articles ul { display: grid; gap: 1px; margin: 11px 0 0; padding: 0; list-style: none; }
.market-related-articles a { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #d6e0d9; color: var(--market-green); font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.market-related-articles li:last-child a { border-bottom: 0; }
.market-related-articles a:hover { color: var(--market-green-dark); }
.market-related-articles a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.market-related-articles a span { font-family: Georgia, serif; font-size: 22px; font-weight: 400; }

.market-local-support-results {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #c8d7ce;
  border-radius: 7px;
  background: #f4f8f5;
}

.market-local-support-results > p { margin: 0; color: #415248; font-size: 14px; line-height: 1.65; }
.market-local-support-results h3 { margin: 0; color: #20342a; font-size: 17px; line-height: 1.5; }
.market-local-support-results h3 + p { margin-top: 5px; }
.market-local-support-list { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.market-local-support-list li { padding: 10px 11px; border-left: 3px solid #85a894; background: #fff; }
.market-local-support-list strong { display: block; color: #293b32; font-size: 14px; line-height: 1.55; }
.market-local-support-list span { display: block; margin-top: 3px; color: #596961; font-size: 13px; line-height: 1.55; }
.market-official-support-link { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; margin-top: 13px; padding: 7px 11px; border: 1px solid var(--market-green); border-radius: 4px; color: #fff; background: var(--market-green); font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.market-official-support-link:hover { background: var(--market-green-dark); }
.market-official-support-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.market-official-support-link span { font-family: Georgia, serif; font-size: 22px; font-weight: 400; }

.market-building-stage { padding-bottom: 13px; }

.market-building-stage--unavailable {
  border-color: #d7ddd8;
  background: #fbfcfa;
}

.market-building-stage--unavailable .market-option-list span {
  color: #7c8881;
  background: #f4f6f3;
  cursor: not-allowed;
}

.market-building-stage--unavailable .market-option-list input:checked + span {
  border-color: var(--market-line);
  color: #7c8881;
  background: #f4f6f3;
}

.market-condition-groups {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.95fr;
  gap: 12px;
}

.market-condition-group {
  min-width: 0;
  margin: 0;
  padding: 0 10px 0 0;
  border: 0;
  border-right: 1px solid var(--market-line);
}

.market-condition-group:last-child { padding-right: 0; border-right: 0; }

.market-condition-group legend {
  margin: 0 0 7px;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
}

.market-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.market-option-list label {
  position: relative;
  display: block;
}

.market-option-list input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.market-option-list span {
  display: inline-grid;
  min-height: 44px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--market-line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.market-option-list input:checked + span {
  border-color: var(--market-green);
  color: #fff;
  background: var(--market-green);
}

.market-option-list input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.market-building-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.market-building-status {
  margin: 10px 0 0;
  text-align: right;
}

.market-building-action .market-primary-button { min-width: 357px; }

.market-total-result {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.72fr);
  gap: 22px;
  margin-top: 12px;
  padding: 14px 26px 13px;
  border-color: var(--market-green);
  background: linear-gradient(90deg, rgba(234, 243, 237, 0.62), rgba(255, 254, 251, 0.86));
}

.market-total-main {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 30px;
  align-items: center;
}

.market-total-main p {
  margin: 0;
  font-weight: 800;
}

.market-total-main strong {
  color: var(--market-green);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  max-width: 100%;
  font-size: clamp(46px, 4.4vw, 69px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.05;
  white-space: nowrap;
}

.market-total-main > span {
  grid-column: 1 / -1;
  margin-top: 6px;
  text-align: center;
  font-size: 15px;
}

.market-total-note {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 5px;
  padding-left: 25px;
  border-left: 1px solid var(--market-line);
  color: #38413d;
  font-size: 14px;
  line-height: 1.7;
}

.market-total-note p { margin: 0; }

.market-note-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  place-items: center;
  border: 1px solid var(--market-green);
  border-radius: 50%;
  color: var(--market-green);
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .market-shell { width: min(calc(100% - 40px), var(--market-content)); }
  .market-region-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 0; }
  .market-region-summary-actions { grid-column: 1 / -1; justify-content: flex-end; padding: 8px 0 0; border-top: 1px solid var(--market-line); }
  .market-land-grid { grid-template-columns: minmax(300px, 0.78fr) minmax(470px, 1.22fr); }
  .market-unit-reference { gap: 9px; padding-inline: 14px; }
  .market-land-total-flow { grid-template-columns: minmax(190px, 0.8fr) auto minmax(270px, 1.2fr); gap: 12px; }
  .market-land-total { padding-left: 18px; }
  .market-land-total strong { font-size: clamp(25px, 2.6vw, 34px); }
  .market-condition-groups { grid-template-columns: 1fr 0.9fr 1.7fr; gap: 12px; }
  .market-condition-group { padding-right: 12px; }
  .market-option-list span { padding-inline: 10px; }
}

@media (max-width: 880px) {
  .market-page-heading { padding-bottom: 20px; }
  .market-region-fields { column-gap: 7px; }
  .market-land-grid { grid-template-columns: 1fr; }
  .market-map-viewport { min-height: 250px; }
  .market-map::before { padding-top: min(62%, 250px); }
  .market-land-total-flow { padding: 18px 8px 8px; }
  .market-condition-groups { grid-template-columns: 1fr; gap: 13px; }
  .market-condition-group { padding: 0 0 13px; border-right: 0; border-bottom: 1px solid var(--market-line); }
  .market-condition-group:last-child { padding-bottom: 0; border-bottom: 0; }
  .market-total-result { grid-template-columns: 1fr; }
  .market-total-note { padding: 13px 0 0; border-top: 1px solid var(--market-line); border-left: 0; }
}

@media (max-width: 640px) {
  .market-reference-main { padding-top: 10px; }
  .market-shell { width: min(calc(100% - 28px), var(--market-content)); }
  .market-page-heading { padding: 0 0 18px; }
  .market-kicker { font-size: 15px; }
  .market-page-heading h1 { font-size: 39px; }
  .market-page-heading h1 span { display: block; white-space: nowrap; }
  .market-page-lead { font-size: 16px; }
  .market-region-panel { padding: 18px 15px 17px; }
  .market-region-panel h2, .market-stage-heading h2 { font-size: 20px; }
  .market-region-fields { grid-template-columns: 1fr; row-gap: 15px; }
  .market-region-step-arrow { display: none; }
  .market-town-help { grid-column: auto; margin-top: -7px; }
  .market-town-suggestions { position: static; margin-top: -3px; }
  .market-region-help { font-size: 14px; }
  .market-primary-button { min-height: 50px; font-size: 16px; }
  .market-region-summary { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 10px 12px; }
  .market-region-summary > p { min-height: 29px; padding: 0 11px; font-size: 14px; }
  .market-region-summary > p:first-child { padding-left: 0; }
  .market-region-summary-actions { width: 100%; justify-content: space-between; padding-top: 8px; font-size: 14px; }
  .market-price-status { max-width: 220px; font-size: 12px; }
  .market-stage { padding: 10px; }
  .market-stage-number { width: 30px; height: 30px; font-size: 18px; }
  .market-map-viewport { min-height: 210px; }
  .market-map::before { padding-top: 61%; }
  .market-map-attribution { font-size: 9px; }
  .market-map-location-control { right: 8px; bottom: 7px; max-width: none; }
  .market-map-location-button { width: 100%; font-size: 12px; }
  .market-zoning-reference { font-size: 11px; }
  .market-municipality-zoning-reference { font-size: 11px; }
  .market-unit-reference { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; font-size: 14px; }
  .market-unit-reference > span { grid-column: 1 / -1; }
  .market-unit-reference strong { font-size: 16px; }
  .market-unit-reference i { display: none; }
  .market-land-total-flow { grid-template-columns: 1fr; gap: 14px; padding: 18px 3px 3px; }
  .market-flow-arrow { display: none; }
  .market-land-total { min-height: auto; padding: 13px 0 0; border-top: 1px solid var(--market-line-dark); border-left: 0; }
  .market-land-total strong { font-size: clamp(25px, 6.6vw, 36px); white-space: normal; overflow-wrap: anywhere; }
  .market-area-control input { max-width: 170px; }
  .market-building-action .market-primary-button { width: 100%; min-width: 0; }
  .market-building-status { text-align: left; }
  .market-total-result { gap: 11px; padding: 16px; }
  .market-total-main { grid-template-columns: 1fr; gap: 5px; }
  .market-total-main strong { font-size: clamp(25px, 6.6vw, 36px); white-space: normal; overflow-wrap: anywhere; }
  .market-total-main > span { margin-top: 2px; text-align: left; font-size: 13px; }
  .market-total-note { font-size: 13px; }
  .market-next-steps { margin-top: 18px; }
  .market-next-steps-heading { padding: 17px 0 13px; }
  .market-next-step { grid-template-columns: 60px minmax(0, 1fr); gap: 13px; padding: 17px 15px; }
  .market-next-step-icon { width: 58px; height: 58px; padding: 6px; }
  .market-next-step-copy h3 { font-size: 18px; }
  .market-next-step-copy p { font-size: 15px; }
  .market-service-paths { grid-column: 1 / -1; }
  .market-service-paths { grid-template-columns: 1fr; padding-left: 73px; }
  .market-service-path { min-height: 76px; }
  .market-affiliate-placement,
  .market-next-step-link { grid-column: 1 / -1; justify-self: stretch; }
  .market-affiliate-placement { justify-items: start; padding-left: 73px; }
  .market-affiliate-placement > p,
  .market-affiliate-placement > small,
  .market-affiliate-banner { width: min(100%, 300px); }
  .market-service-dialog-content .market-affiliate-placement { justify-items: center; padding-left: 0; }
  .market-next-step-link { justify-content: space-between; padding-left: 73px; }
  .market-guide-checklist li,
  .market-guide-steps li { padding: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .market-loading-mark span { animation: none; }
}
