/* Survey paper and instrument chrome are shared by the landing pages and editor. */
:root {
  --survey-ink: #16382f;
  --survey-dark: #112f28;
  --survey-paper: #f5f4ec;
  --survey-rule: #bac5b5;
  --survey-lime: #d6f28f;
  --survey-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
body:has(.site-shell), body:has(.pilot-shell) { background:var(--survey-paper);color:var(--survey-ink) }
.site-header,.mast { border-bottom:2px solid var(--survey-ink);background:var(--survey-paper) }
.hero-copy h1 span { color:#437047 }
.hero .button.primary,.open-workspace { background:var(--survey-dark);color:white }
.project-preview { border-color:var(--survey-ink) }
.survey-feature { display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:clamp(24px,5vw,84px);padding:clamp(22px,4vw,64px) 0;border-top:1px solid var(--survey-rule) }
.survey-feature h2 { max-width:15ch }
.survey-feature p { max-width:41ch;margin:1rem 0 1.5rem;line-height:1.55 }
figure.survey-sheet { margin:0;overflow:hidden;border:1px solid #344b40;border-radius:7px;background:var(--survey-dark);color:white }
.survey-sheet img { display:block;width:100%;height:auto;aspect-ratio:1183/700;object-fit:cover }
.survey-sheet figcaption { display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.35rem 1rem;padding:.7rem .9rem;background:var(--survey-dark);color:#deeade;font-size:.75rem;line-height:1.5 }
.survey-sheet figcaption strong { font:600 .78rem var(--survey-mono);color:var(--survey-lime) }
.survey-sheet figcaption a { color:inherit;text-underline-offset:2px }
.survey-link { display:inline-flex;justify-content:space-between;align-items:center;gap:1rem;min-height:44px;color:var(--survey-ink);font-weight:700;text-underline-offset:.25em }
.pilot-shell { max-width:84rem;align-items:start;gap:clamp(1.5rem,4vw,5rem);padding-block:clamp(1.6rem,4vw,4.5rem) }
.pilot-intro h1 { max-width:10ch;color:var(--survey-ink) }
.pilot-intro figure { display:block;margin-top:1.5rem }
.pilot-intro .terms { margin:.8rem 0;color:#42584d }
.pilot-questions { padding:clamp(1rem,3vw,2.3rem);background:#fffefa;border:1px solid var(--survey-rule);border-top:4px solid var(--survey-ink);border-radius:6px }
.setup-title { font-size:clamp(1.65rem,2.5vw,2.2rem);letter-spacing:-.055em;margin:0 0 1.45rem }
.choices label { background:#fffefa }
.choices label:has(:checked) { background:#e3efd4;border-color:#43643a;box-shadow:inset 0 0 0 1px #43643a }
.choices label:hover { border-color:#43643a }
.open-workspace { width:100% }
.workbench .masthead { background:var(--survey-dark);border-bottom:2px solid #87a075;color:#fff }
.workbench .masthead h1,.workbench .brand-byline { color:#f0f4e8 }
.workbench .masthead .brand-mark { background:#274e40;color:var(--survey-lime) }
.workbench .masthead .button { background:#204638;color:#f6f7ee;border-color:#769184 }
.workbench .masthead .button:hover { background:#315745 }
.workbench .masthead #export-menu { color:#152f22;background:var(--survey-lime);border-color:var(--survey-lime) }
.workbench .masthead .menu-list { color:var(--ink) }
.workbench .export-options .menu-list { width:min(318px,calc(100vw - 24px)) }
.workbench #export-dxf { background:#e9f1df;font-weight:700 }
.workbench .cad-scale { display:grid;gap:4px;margin:2px 3px 5px;padding:9px;color:#264838;background:#f2f4ea;border-left:3px solid #698645;font-size:12px;overflow-wrap:anywhere }
.cad-scale small { font-family:var(--survey-mono);font-size:11px;color:#405549 }
.draft-help .draft-length { display:block;font-family:var(--survey-mono);font-size:.85em }
@media(max-width:750px){
  .survey-feature { grid-template-columns:1fr;gap:1rem }
  .pilot-shell {display:flex;flex-direction:column}
  .pilot-questions,.pilot-intro {width:100%}
  .pilot-intro h1 {max-width:100%}
  .pilot-intro .survey-sheet img {max-height:190px}
}

.hero-survey { margin:clamp(1rem,3vw,3rem) 0 clamp(1rem,3vw,3rem) clamp(.3rem,2vw,2rem);padding:.55rem .55rem 0;border:1px solid var(--survey-rule);border-radius:8px;background:#fffefa;box-shadow:0 8px 22px #23352b12 }
.hero-survey .survey-link { padding:0 .45rem;font-size:.9rem;width:100% }
.survey-feature .project-preview { margin:0 }
@media(max-width:750px){.hero-survey { margin:0 0 1.25rem }}

.mobile-setup { display:none }
@media(max-width:750px){
  .mobile-setup { display:inline-flex;align-items:center;background:var(--survey-dark);color:white;text-decoration:none;border-radius:5px;min-height:44px;margin-top:1rem;padding:.45rem 1rem;font-weight:700 }
}
