.site-editor {
  --ed-ink: #19362d;
  --ed-muted: #56675d;
  --ed-edge: #d3d9cd;
  --ed-paper: #fffefa;
  --ed-bg: #f5f4ec;
  --ed-green: #194c3a;
  --ed-focus: #8e5929;
  color: var(--ed-ink);
  font-family: var(--sans, "Avenir Next", sans-serif);
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 48px);
}
.site-editor *,
.site-editor *::before,
.site-editor *::after {
  box-sizing: border-box;
}
.site-editor [hidden] {
  display: none !important;
}
.site-editor button,
.site-editor select,
.site-editor input,
.site-editor textarea {
  font: inherit;
}
.site-editor :is(button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ed-focus);
  outline-offset: 3px;
}
.site-editor button,
.site-editor summary,
.site-editor select {
  cursor: pointer;
}
.site-editor :disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.ed-head,
.ed-cart-head,
.ed-actions,
.ed-stages,
.ed-buttons,
.ed-legend {
  display: flex;
  align-items: center;
}
.ed-head,
.ed-cart-head {
  justify-content: space-between;
  gap: 20px;
}
.ed-head {
  padding: 0 0 clamp(16px, 2vw, 32px);
}
.ed-crumb {
  margin: 0 0 5px;
  font: 600 10px/1.15 var(--sans, sans-serif);
  color: var(--ed-muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.ed-head h1,
.ed-cart h3,
.ed-panel h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 450;
  color: var(--ed-ink);
  letter-spacing: -0.038em;
  margin: 0;
  text-wrap: balance;
}
.ed-head h1 {
  font-size: clamp(36px, 4vw, 55px);
  line-height: 1.04;
}
.ed-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.77fr) minmax(0, 1.38fr);
  gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.ed-panel,
.ed-cart {
  background: var(--ed-paper);
  border: 1px solid var(--ed-edge);
  border-radius: 6px;
}
.ed-panel {
  padding: clamp(18px, 2vw, 32px);
  min-width: 0;
}
.ed-stages {
  border-bottom: 1px solid var(--ed-edge);
  margin: 0 0 23px;
  gap: 5px;
}
.site-editor .ed-stages button {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--ed-muted);
  padding: 5px 5px 12px;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 550;
  min-width: 0;
  white-space: nowrap;
}
.site-editor .ed-stages button[aria-current] {
  border-color: var(--ed-green);
  color: var(--ed-green);
  font-weight: 700;
}
.ed-panel h2 {
  font-size: clamp(24px, 2.5vw, 37px);
  line-height: 1.09;
  margin-bottom: 19px;
}
.ed-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 15px;
  color: var(--ed-ink);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.4;
}
.ed-field input,
.ed-field textarea,
.ed-field select,
.ed-map-select select {
  border: 1px solid #aebbb0;
  background: #fffefb;
  color: #23372f;
  border-radius: 4px;
  line-height: 1.3;
  padding: 10px 11px;
  width: 100%;
  min-width: 0;
}
.ed-field input,
.ed-field textarea,
.ed-field select {
  font-size: 15px;
  font-weight: 400;
  min-height: 42px;
}
.ed-field textarea {
  resize: vertical;
}
.ed-field input::placeholder,
.ed-field textarea::placeholder {
  color: #677369;
}
.ed-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ed-pair .ed-field {
  justify-content: space-between;
}
.ed-intro,
.ed-more p,
.ed-hint,
.ed-message,
.ed-results,
.ed-map-caption,
.ed-selection span,
.ed-panel small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ed-muted);
}
.ed-intro {
  margin: -6px 0 19px;
  font-size: 15px;
}
.ed-message {
  margin: 14px 0 0;
  min-height: 0;
}
.ed-message:empty {
  display: none;
}
.ed-message.ed-error {
  color: #9c3d2c;
  font-weight: 550;
}
.ed-actions {
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--ed-edge);
  gap: 10px;
  flex-wrap: wrap;
}
.ed-buttons {
  flex-wrap: wrap;
  gap: 8px;
}
.site-editor button:not(.leaflet-control button) {
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.site-editor :is(.ed-actions, .ed-buttons, .ed-results) button,
.site-editor button.ed-outline,
.site-editor button.ed-link {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid var(--ed-edge);
  color: var(--ed-green);
  background: var(--ed-paper);
  border-radius: 4px;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 600;
}
.site-editor button.ed-link {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-editor button.ed-outline,
.site-editor .ed-actions button {
  padding: 9px 15px;
}
.site-editor .ed-actions button.ed-primary {
  background: var(--ed-green);
  color: #fffef9;
  border-color: var(--ed-green);
}
.site-editor :is(.ed-actions, .ed-buttons, .ed-results) button:hover:not(:disabled),
.site-editor button.ed-outline:hover {
  background: #eef1e8;
}
.site-editor .ed-actions button.ed-primary:hover:not(:disabled) {
  background: #113f2e;
}
.ed-results {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}
.ed-results p {
  margin: 0;
}
.ed-results .ed-hit {
  text-align: left;
  width: 100%;
}
.ed-results a,
.ed-cart a {
  color: #244d3a;
}
.ed-selection {
  padding: 12px 14px;
  margin: 16px 0;
  background: #eef2e8;
  border-left: 3px solid #6a886a;
  display: grid;
  gap: 3px;
}
.ed-selection strong {
  font-size: 14px;
}
.ed-selection .ed-buttons {
  margin: 7px 0 0;
}
.ed-more {
  margin-top: 16px;
  border-top: 1px solid var(--ed-edge);
  padding-top: 12px;
}
.ed-more summary {
  font-size: 13px;
  color: var(--ed-ink);
  font-weight: 600;
  line-height: 1.5;
}
.ed-more[open] summary {
  margin-bottom: 13px;
}
.ed-parcel {
  margin-bottom: 16px;
}
.ed-parcel summary {
  overflow-wrap: anywhere;
}
.ed-more small {
  display: block;
  margin-top: 8px;
}
.ed-data {
  border-block: 1px solid var(--ed-edge);
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ed-data div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 11px 4px 11px 0;
}
.ed-data span {
  font-size: 11px;
  color: var(--ed-muted);
  line-height: 1.3;
}
.ed-data strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ed-data.ed-pay {
  display: block;
}
.ed-data.ed-pay div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ed-data.ed-pay div + div {
  border-top: 1px solid var(--ed-edge);
}
.ed-pay span {
  font-size: 13px;
}
.ed-pay strong {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
}
.ed-cart {
  position: sticky;
  top: 12px;
  min-width: 0;
  overflow: hidden;
}
.ed-cart-head {
  padding: 14px 18px;
}
.ed-cart h3 {
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.ed-map-select {
  flex: none;
}
.ed-map-select select {
  font-size: 12px;
  font-weight: 550;
  padding: 7px 6px;
  max-width: 150px;
}
.ed-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ed-map {
  height: clamp(350px, 54vh, 625px);
  min-width: 0;
  background-color: #e7ede4;
  isolation: isolate;
}
.ed-crosshair,
.ed-crosshair .leaflet-interactive {
  cursor: crosshair !important;
}
.ed-map .leaflet-bar a {
  color: #194b37;
}
.ed-map .leaflet-control-attribution {
  font: 9px/1.4 var(--sans, sans-serif);
  background: #fffff0d9;
}
.ed-drawbar {
  padding: 12px 16px;
  display: grid;
  gap: 8px;
  background: #f8f1df;
  border-bottom: 1px solid #e8dab9;
}
.ed-drawbar strong {
  font-size: 14px;
}
.ed-map-caption,
.ed-legend {
  padding: 10px 17px;
}
.ed-map-caption {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.ed-map-caption [data-tile-status]:empty {
  display: none;
}
.ed-map-caption [data-tile-status] {
  font-size: 11px;
  color: #677262;
}
.ed-legend {
  border-top: 1px solid var(--ed-edge);
  font-size: 11px;
  line-height: 1.4;
  gap: 5px;
  flex-wrap: wrap;
  color: var(--ed-muted);
}
.ed-legend i {
  width: 12px;
  height: 9px;
  display: inline-block;
  margin-left: 10px;
  border: 1.4px solid;
  border-radius: 1px;
}
.ed-legend i:first-child {
  margin-left: 0;
}
.ed-dot-boundary {
  color: #1b624c;
  background: #d2dfce;
}
.ed-dot-foot {
  color: #a75120;
  background: #e7ad5d;
}
.ed-dot-hall {
  color: #58371c;
  background: #58371c;
}
.ed-dot-avoid {
  color: #95423e;
  background: #e6b8b4;
}
@media (max-width: 940px) {
  .site-editor {
    padding: 20px 17px;
  }
  .ed-layout {
    grid-template-columns: minmax(295px, 0.85fr) minmax(0, 1fr);
    gap: 14px;
  }
  .ed-panel {
    padding: 18px 15px;
  }
  .ed-map {
    height: 53vh;
  }
}
@media (max-width: 800px) {
  .ed-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .ed-panel,
  .ed-cart {
    width: 100%;
  }
  .ed-cart {
    position: relative;
    top: auto;
  }
  .ed-map {
    height: clamp(290px, 49vh, 450px);
  }
  .ed-panel h2 {
    font-size: 28px;
  }
  .ed-stages {
    margin-bottom: 17px;
  }
  .ed-head {
    align-items: flex-start;
  }
  .ed-head button.ed-link {
    max-width: 120px;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-editor *,
  .site-editor *::before {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.ed-scale-example {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f7f1e3;
  border: 1px solid #e0d2b8;
  border-radius: 4px;
}
.ed-scale-yard {
  position: relative;
  width: 68px;
  height: 68px;
  background: #e5b874;
  border: 1.5px solid #a75120;
  flex: none;
}
.ed-scale-yard i {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #58371c;
  box-shadow: 0 0 0 1px #fff1c9;
}
.ed-scale-example figcaption {
  display: grid;
  gap: 3px;
  line-height: 1.45;
  color: var(--ed-muted);
  font-size: 12px;
}
.ed-scale-example figcaption strong {
  color: var(--ed-ink);
  font-size: 13px;
}
.ed-map-entry {
  margin: 13px 0 15px;
}
.ed-map-entry > span {
  font-size: 12px;
  color: var(--ed-muted);
  margin-right: 2px;
}
.ed-site-name {
  margin-top: 18px;
}
.ed-cart-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}
.site-editor .ed-center {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ed-green);
  font-size: 12px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ed-cart h3 {
  font-size: clamp(20px, 1.9vw, 29px);
}
.ed-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ed-legend > span + span {
  margin-left: 8px;
}
.ed-dot-boundary {
  color: #8c5b18;
  background: #f6e3a8;
}
.ed-dot-foot {
  color: #956428;
  background: #dbac67;
}
.ed-dot-hall,
.ed-scale-yard i {
  background: #27483c;
}
.ed-dot-hall {
  color: #27483c;
}
.ed-is-pin .ed-dot-boundary {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  color: #173e34;
  background: #225343;
}
.ed-position {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ed-edge);
}
.ed-subtitle {
  font: 600 16px/1.4 var(--sans, sans-serif);
  color: var(--ed-ink);
  margin: 22px 0 12px;
}
.ed-pay span {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.ed-pay b {
  font-weight: 600;
  color: var(--ed-ink);
}
.ed-pay small {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ed-muted);
}
.ed-pay strong {
  font-variant-numeric: tabular-nums;
  font-size: clamp(18px, 1.7vw, 24px);
  white-space: nowrap;
}
.ed-assumption {
  margin: -7px 0 16px;
  color: var(--ed-muted);
  font: 400 12px/1.5 var(--sans, sans-serif);
}
.ed-assumption.ed-flag {
  padding: 8px 10px;
  background: #f8efdd;
  border-left: 2px solid #aa783a;
  color: #6c491e;
}
.ed-selection {
  margin-top: 0;
}
.ed-inline-map {
  margin: 10px 0 16px;
}
.ed-inline-map .ed-map {
  height: clamp(170px, 26vh, 240px);
}
.ed-inline-map .ed-cart-head {
  padding: 8px 10px;
}
.ed-inline-map [data-map-title] {
  font-size: 18px;
}
.ed-inline-map .ed-map-caption,
.ed-inline-map .ed-legend {
  padding: 6px 9px;
}
@media (max-width: 800px) {
  .ed-cart-tools {
    gap: 5px;
  }
  .ed-cart-head {
    gap: 8px;
    padding: 10px;
  }
  .ed-panel .ed-stages button,
  .ed-buttons button,
  .ed-actions button,
  .ed-field select {
    min-height: 42px;
  }
}
@media (max-width: 410px) {
  .ed-inline-map .ed-cart-tools .ed-center {
    display: none;
  }
  .ed-data.ed-pay {
    margin-block: 12px;
  }
  .ed-data.ed-pay div {
    padding: 9px 0;
    gap: 8px;
  }
}
