/* Sightline illustration (tall-artificial-privacy-hedge). Page tokens come
   from the page's inline :root block. */
.sl {
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  border: 1px solid rgba(245, 242, 235, 0.16);
  background: var(--surface);
}
.sl-stage { padding: 1.25rem; border-right: 1px solid var(--border-subtle); min-width: 0; }
.sl-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sl-fig { color: var(--code); }
.sl-note { color: var(--accent-3); }
.sl-canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
}
.sl-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.sl-panel { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.sl-controls { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 1.3rem; }
.sl-controls:disabled { opacity: .55; }
.sl-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .5rem;
  color: var(--text-muted);
  font-size: .8rem;
}
.sl-label output { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }

.sl-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.sl-range::-webkit-slider-runnable-track { height: 2px; background: rgba(245, 242, 235, 0.25); }
.sl-range::-moz-range-track { height: 2px; background: rgba(245, 242, 235, 0.25); }
.sl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.sl-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.sl-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.sl-ticks {
  display: flex;
  justify-content: space-between;
  margin: .35rem 0 0;
  padding: 0 4px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--code);
}
.sl-ticks li { width: 14px; text-align: center; }
.sl-stop {
  margin-top: .55rem;
  min-height: 2.6em;
  color: var(--accent-3);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sl-assume { margin: 0; padding: 0; border: 0; min-width: 0; }
.sl-assume legend {
  padding: 0;
  margin-bottom: .6rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--code);
}
.sl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.sl-field label { display: block; margin-bottom: .3rem; color: var(--text-muted); font-size: .72rem; line-height: 1.35; }
.sl-field .sl-input { position: relative; }
.sl-field input {
  width: 100%;
  min-height: 44px;
  padding: .55rem 2.2rem .55rem .7rem;
  border: 1px solid rgba(245, 242, 235, 0.22);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: .95rem;
}
.sl-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sl-field .sl-unit {
  position: absolute;
  right: .7rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  color: var(--code);
  pointer-events: none;
}

.sl-readout { border-top: 1px solid var(--border-subtle); padding-top: 1.2rem; }
.sl-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sl-status::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.sl-status[data-state="blocked"] { color: var(--accent); }
.sl-status[data-state="open"] { color: var(--accent-2); }
.sl-readout p { margin-top: .6rem; font-size: .88rem; line-height: 1.65; color: var(--text-muted); }
.sl-readout .sl-next { color: var(--text); }
.sl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Drawing */
.sl-svg text { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; }
.sl-t { paint-order: stroke fill; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.sl-t-muted { fill: rgba(245, 242, 235, 0.62); }
.sl-t-blocked { fill: var(--accent); }
.sl-t-open { fill: var(--accent-2); }
.sl-ground { stroke: rgba(245, 242, 235, 0.35); stroke-width: 1; }
.sl-ground-ticks { stroke: rgba(245, 242, 235, 0.12); fill: none; }
.sl-patio { fill: rgba(245, 242, 235, 0.1); }
.sl-person, .sl-chair { fill: none; stroke: rgba(245, 242, 235, 0.7); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sl-chair { stroke: rgba(245, 242, 235, 0.35); }
.sl-head { fill: var(--bg); stroke: rgba(245, 242, 235, 0.7); stroke-width: 1.5; }
.sl-eye { fill: var(--text); }
.sl-house { fill: none; stroke: rgba(245, 242, 235, 0.55); stroke-width: 1.5; }
.sl-house-thin { fill: none; stroke: rgba(245, 242, 235, 0.3); stroke-width: 1; }
.sl-break { stroke: rgba(245, 242, 235, 0.2); stroke-dasharray: 6 4; }
.sl-hedge { fill: url(#sl-leaf); stroke: var(--accent); stroke-width: 1.25; }
.sl-leaf-bg { fill: #0f2f1c; }
.sl-leaf-a { fill: #1f6a3b; }
.sl-leaf-b { fill: #2a8a4c; }
.sl-fence { fill: #2a2522; stroke: rgba(245, 242, 235, 0.45); stroke-width: 1; }
.sl-fence-lines { stroke: rgba(245, 242, 235, 0.18); stroke-width: 1; }
.sl-ray { stroke-width: 1.75; stroke-linecap: round; }
.sl-ray-open { stroke: var(--accent-2); stroke-dasharray: 7 4; }
.sl-ray-blocked { stroke: var(--accent); }
.sl-ray-after { stroke: rgba(245, 242, 235, 0.22); stroke-dasharray: 3 4; }
.sl-cross { stroke-width: 2; }
.sl-cross.is-blocked { stroke: var(--accent); }
.sl-cross.is-open { stroke: var(--accent-2); }
.sl-dim line, .sl-dim path { stroke: var(--accent-3); stroke-width: 1; fill: none; }
.sl-dim .sl-ext { stroke: rgba(196, 162, 101, 0.4); }
.sl-dim text { fill: var(--accent-3); paint-order: stroke fill; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }

@media (max-width: 1024px) {
  .sl { grid-template-columns: 1fr; }
  .sl-stage { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
}
@media (max-width: 600px) {
  .sl { margin-left: -1.5rem; margin-right: -1.5rem; border-left: 0; border-right: 0; }
  .sl-stage, .sl-panel { padding: 1rem 1.5rem; }
  .sl-canvas { aspect-ratio: 4 / 3; }
}
