:root {
  color-scheme: light;
  --ink: #1f2b2c;
  --muted: #627071;
  --paper: #f6f3ec;
  --card: #fffdf8;
  --line: #d8ded9;
  --accent: #e39b34;
  --accent-dark: #9b5c13;
  --green: #2d6a5f;
  --green-soft: #e7f0eb;
  --red: #a73f34;
  --red-soft: #fae9e5;
  --shadow: 0 12px 28px rgba(31, 43, 44, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(227, 155, 52, .12), transparent 22rem),
    var(--paper);
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input {
  min-height: 48px;
}

button {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid #2e7d72;
  outline-offset: 3px;
}

.site-header,
.shell,
.site-footer {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.header-note {
  color: var(--muted);
  font-size: .78rem;
}

/* A breadcrumb, not a progress bar: it grows as the user advances and never shows a step
   that has not been earned, because what comes next depends on what they pick. */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.crumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.crumb-item:not(:first-child)::before {
  content: "›";
  color: #9aa5a4;
  font-size: .95rem;
}

.crumb-link,
.crumb-current {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 9px;
  padding: 0 9px;
  font-size: .84rem;
  font-weight: 740;
  letter-spacing: -.01em;
}

.crumb-link {
  border: 0;
  color: var(--green);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.crumb-link:hover {
  background: var(--green-soft);
}

.crumb-current {
  color: var(--ink);
  background: #ece7dc;
  cursor: default;
}

.unit-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.unit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--card);
  padding: 10px 15px;
  text-align: left;
}

.unit-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.unit-button[aria-pressed="true"] {
  border-color: var(--accent-dark);
  background: #fff0cc;
}

.unit-name {
  font-weight: 760;
}

.unit-floor {
  color: var(--muted);
  font-size: .84rem;
  text-align: right;
}

.unit-button.is-unavailable {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}

.unit-button.is-unavailable:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.refusal-card {
  border-color: #e8b4ac;
  background: var(--red-soft);
  margin-top: 18px;
}

.refusal-title {
  margin-bottom: 6px;
}

.refusal-reason {
  margin-bottom: 6px;
  color: var(--red);
  font-size: .92rem;
}

.refusal-card .quiet-note {
  margin-top: 0;
}

.shell {
  padding: 38px 0 60px;
}

.view {
  animation: appear .22s ease-out;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 14px;
  font-size: clamp(2rem, 10vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.intro,
.section-intro {
  max-width: 48ch;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.03rem;
}

.field {
  position: relative;
  margin-bottom: 21px;
}

label,
.subheading {
  display: block;
  margin-bottom: 8px;
  font-size: .88rem;
  font-weight: 760;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, .92);
  padding: 10px 14px;
  box-shadow: 0 2px 0 rgba(31, 43, 44, .02);
}

input::placeholder {
  color: #899494;
}

input[aria-expanded="true"] {
  border-color: var(--green);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.combobox-wrap {
  position: relative;
}

.field-spinner {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  opacity: 0;
  animation: spin .75s linear infinite;
}

.field-spinner.is-visible {
  opacity: 1;
}

.field-help,
.quiet-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: .82rem;
}

.options-wrap {
  position: relative;
  z-index: 4;
}

.options {
  position: absolute;
  top: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--green);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  list-style: none;
}

.options li {
  margin: 0;
}

.option-button {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  padding: 9px 10px;
  text-align: left;
}

.option-button:hover,
.option-button[aria-selected="true"] {
  background: var(--green-soft);
}

.option-meta {
  color: var(--muted);
  font-size: .76rem;
  white-space: nowrap;
}

.status {
  min-height: 28px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .9rem;
}

.status.is-error {
  color: var(--red);
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 22px;
}

.primary-button,
.secondary-button {
  width: 100%;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 780;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.primary-button {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
}

.primary-button:hover:not(:disabled) {
  background: #24594f;
  transform: translateY(-1px);
}

.primary-button:disabled {
  border-color: #bdc8c4;
  color: #75817e;
  background: #dfe5e1;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--green);
  background: transparent;
}

.secondary-button:hover {
  background: var(--green-soft);
}

.loading-panel {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  padding: 20px;
}

.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-card,
.empty-card {
  margin-bottom: 20px;
}

.error-card {
  border-color: #e8b4ac;
  color: var(--red);
  background: var(--red-soft);
}

.error-card p:last-child,
.empty-card p:last-child {
  margin-bottom: 0;
}

.footprint-frame {
  position: relative;
  min-height: 290px;
  margin: 8px 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(rgba(45, 106, 95, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 106, 95, .04) 1px, transparent 1px),
    #fbfaf5;
  background-size: 28px 28px;
}

.footprint {
  display: block;
  width: 100%;
  height: 340px;
}

.north-label {
  position: absolute;
  top: 13px;
  left: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, .88);
  font-size: .8rem;
  font-weight: 800;
}

.neighbour {
  fill: #dce3df;
  stroke: #aebbb5;
  stroke-width: 1.2;
}

.subject {
  fill: #fff5d8;
  stroke: #bd7922;
  stroke-width: 1.8;
}

.facade-edge {
  fill: none;
  stroke: #bdc8c4;
  stroke-linecap: round;
  stroke-width: 5;
}

.facade-edge-hit {
  fill: none;
  stroke: transparent;
  stroke-linecap: round;
  stroke-width: 22;
  cursor: pointer;
}

.facade-edge.is-selectable {
  stroke: var(--green);
}

.facade-edge.is-selected {
  stroke: var(--accent);
  stroke-width: 8;
}

.facade-edge-hit.is-disabled {
  cursor: default;
}

.selection-note {
  min-height: 28px;
  margin-bottom: 17px;
  color: var(--green);
  font-weight: 720;
}

.choice-group {
  margin: 14px 0 22px;
}

.subheading {
  margin-bottom: 9px;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-button {
  min-height: 42px;
  border: 1px solid #b7cbc4;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  padding: 7px 13px;
  font-size: .86rem;
  font-weight: 720;
}

.choice-button:hover,
.choice-button.is-selected {
  border-color: var(--accent-dark);
  color: #5c3a0e;
  background: #fff0cc;
}

.report-card {
  display: grid;
  gap: 20px;
}

.report-lede {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 760;
  line-height: 1.25;
}

.report-location {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border-radius: 13px;
  background: #f0f4ef;
  padding: 12px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: .76rem;
}

.metric-value {
  display: block;
  margin-top: 2px;
  font-size: 1.2rem;
  font-weight: 800;
}

.month-summary {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  min-height: 132px;
  padding-top: 10px;
}

.month-bar-wrap {
  display: grid;
  height: 120px;
  grid-template-rows: 1fr auto;
  gap: 6px;
  text-align: center;
}

.month-bar-track {
  display: flex;
  align-items: end;
  min-height: 90px;
  border-radius: 7px 7px 3px 3px;
  background: #edf0e9;
}

.month-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 7px 7px 3px 3px;
  background: var(--accent);
}

.month-label {
  color: var(--muted);
  font-size: .65rem;
}

.report-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.report-section h2 {
  margin-bottom: 7px;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.comparison {
  color: var(--muted);
  font-size: .9rem;
}

.trust-line {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.attribution {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .73rem;
}

.blocker-section {
  display: grid;
  gap: 12px;
}

.blocker-section h2 {
  margin-bottom: 0;
}

.blocker-map-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(rgba(45, 106, 95, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 106, 95, .04) 1px, transparent 1px),
    #fbfaf5;
  background-size: 24px 24px;
}

.blocker-map {
  display: block;
  width: 100%;
  min-height: 340px;
  height: 420px;
}

.blocker-neighbour {
  fill: #dce3df;
  stroke: #aebbb5;
  stroke-width: 1.1;
}

.blocker-subject {
  fill: #fff5d8;
  stroke: #bd7922;
  stroke-width: 1.7;
}

.blocker-bearing {
  stroke-width: .8;
  stroke-dasharray: 2 2;
  opacity: .45;
}

.blocker-arrow {
  stroke-width: 1.8;
  fill: none;
}

.blocker-marker {
  stroke: #fff;
  stroke-width: 1.1;
}

.blocker-number {
  fill: #fff;
  font-size: 3.2px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.blocker-window {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 1.2;
}

.blocker-direction {
  fill: var(--ink);
  font-size: 4px;
  font-weight: 850;
  text-anchor: middle;
  dominant-baseline: central;
}

.blocker-map-address {
  fill: var(--muted);
  font-size: 3.2px;
  font-weight: 700;
}

.blocker-scale {
  stroke: var(--ink);
  stroke-width: 1.2;
}

.blocker-scale-label {
  fill: var(--ink);
  font-size: 3.2px;
  font-weight: 700;
  text-anchor: middle;
}

.blocker-north,
.blocker-window-label {
  fill: var(--ink);
  font-size: 4px;
  font-weight: 800;
}

.blocker-window-label {
  font-size: 3px;
}

.blocker-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blocker-item {
  position: relative;
  display: grid;
  gap: 2px;
  border-left: 5px solid var(--blocker-color, var(--muted));
  padding-left: 11px;
}

.blocker-item strong {
  font-size: .95rem;
}

.blocker-item span {
  color: var(--muted);
  font-size: .82rem;
}

.site-footer {
  border-top: 1px solid rgba(98, 112, 113, .2);
  padding: 18px 0 32px;
  color: var(--muted);
  font-size: .76rem;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .site-header,
  .shell,
  .site-footer {
    width: min(100% - 56px, 760px);
  }

  .shell {
    padding-top: 64px;
  }

  .primary-button {
    width: auto;
    min-width: 210px;
  }

  .report-card {
    padding: 28px;
  }
}
