:root { --ink:#1d2433; --mute:#6b7385; --line:#e3e6ee; --ok:#1f8a4c; --warn:#b26a00; --bad:#c62828; --sun:#f5a524; }
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; color:var(--ink); background:#f6f7fb; line-height:1.55; }
header { padding:28px 20px 8px; max-width:880px; margin:0 auto; }
h1 { margin:0 0 6px; font-size:26px; }
h1 .tag { font-size:13px; background:var(--sun); color:#3a2500; padding:2px 8px; border-radius:999px; vertical-align:middle; }
.sub { margin:0; color:var(--mute); }
main { max-width:880px; margin:0 auto; padding:8px 20px 40px; display:grid; gap:14px; }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px 20px; }
h2 { margin:0 0 10px; font-size:18px; display:flex; align-items:center; gap:8px; }
form { display:flex; gap:8px; }
input[type=search] { flex:1; font-size:16px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; }
button { font-size:15px; padding:10px 16px; border-radius:10px; border:0; background:var(--ink); color:#fff; cursor:pointer; }
button:disabled { background:#b8bdc9; cursor:not-allowed; }
#run { margin-top:12px; background:var(--sun); color:#3a2500; font-weight:600; }
#run:disabled { background:#e9dcc3; color:#8a7a5c; }
.hint { color:var(--mute); font-size:13px; margin:8px 0; }
.err { color:var(--bad); }
.cand { display:flex; gap:10px; align-items:flex-start; padding:10px; border:1px solid var(--line); border-radius:10px; margin-top:8px; cursor:pointer; }
.cand:has(input:checked) { border-color:var(--sun); background:#fff8ea; }
.cand small { color:var(--mute); }
#steps { list-style:none; padding:0; margin:0; display:grid; gap:6px; }
#steps li { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; background:#f2f3f7; }
#steps .n { display:inline-grid; place-items:center; min-width:34px; height:24px; border-radius:6px; background:#fff; font-size:12px; font-weight:700; }
#steps .st { margin-left:auto; font-style:normal; font-size:13px; color:var(--mute); }
#steps li.ok .st { color:var(--ok); font-weight:600; } #steps li.warn .st { color:var(--warn); font-weight:600; }
#steps li.bad .st { color:var(--bad); font-weight:600; } #steps li.run .st { color:var(--ink); }
#steps li.out, #steps li.skip { opacity:.55; }
.badge { font-size:12px; padding:2px 8px; border-radius:999px; background:#eee; }
.badge.ok { background:#e3f4ea; color:var(--ok); } .badge.warn { background:#fff1dc; color:var(--warn); } .badge.bad { background:#fde7e7; color:var(--bad); }
.msg { margin:0 0 10px; color:var(--mute); font-size:14px; }
table { border-collapse:collapse; width:100%; font-size:14px; }
th, td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { width:38%; color:var(--mute); font-weight:500; }
.none { color:var(--warn); background:#fff6e6; padding:1px 6px; border-radius:6px; font-size:13px; }
.row { display:grid; grid-template-columns: 1fr 220px; gap:14px; align-items:start; }
.parcel { margin:0; text-align:center; } .parcel svg { width:100%; max-height:220px; } .parcel path { fill:#fff1d6; stroke:var(--sun); stroke-width:2; }
.parcel figcaption { font-size:12px; color:var(--mute); }
.bld { border:1px solid var(--line); border-radius:10px; padding:8px 12px; margin-top:8px; }
.bld summary { cursor:pointer; font-weight:600; }
footer { max-width:880px; margin:0 auto; padding:0 20px 30px; color:var(--mute); font-size:12px; }
@media (max-width:640px) { .row { grid-template-columns:1fr; } form { flex-direction:column; } }
.note { font-size:13px; color:var(--warn); background:#fffaf0; border:1px solid #f3e2c2; border-radius:8px; padding:8px 10px; margin:0 0 10px; }

:root { color-scheme: light; --ink: #142e32; }
[hidden] { display: none !important; }
body { color: var(--ink); background: #f1f6f4; }
body > header { background: #14343c; color: #fff; max-width: none; padding: 3rem max(1rem, calc((100% - 960px)/2)); }
header .sub { color: #d5e8e6; }
main, footer { max-width: 960px; margin-inline: auto; }
.card { border-color: #d8e5e2; border-radius: 16px; padding: clamp(14px, 3vw, 24px); }
button { min-height: 44px; background: #075b50; }
button.secondary { color: #12483e; background: #e2f2ed; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #a74a14; outline-offset: 3px; }
#example { margin-top: .7rem; }
#mode:empty { display: none; }
#conditions-form, #consult-form, #admin-auth { display: grid; gap: 12px; }
#conditions-form label, #consult-form label:not(.cand), #admin-auth label { display: grid; gap: 4px; }
input:not([type=radio]):not([type=checkbox]), select, textarea { min-width: 0; max-width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #839991; border-radius: 8px; font: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#steps li { display: grid; grid-template-columns: 2rem minmax(0,1fr) auto; align-items: center; gap: 8px; }
#steps .st { justify-self: end; text-align: right; }
.evidence-row, .building-choice { padding: 10px; margin-block: 8px; border: 1px solid #d8e5e2; border-radius: 9px; }
.evidence-row summary { cursor: pointer; padding: 4px; }
.evidence-row summary .badge { float: right; }
table { width: 100%; table-layout: fixed; overflow-wrap: anywhere; }
td, th { vertical-align: top; }
.parcel svg { display: block; width: 100%; height: 200px; }
.map-tools button { flex: 1 1 auto; }
.site-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  background: #0a252c;
  color: #e8eefc;
}
html:has(.site-bar) { scroll-padding-top: calc(50px + env(safe-area-inset-top)); }
.report-brand { display: flex; align-items: center; gap: .4em; margin: 0 0 5px; color: #05263b; font-size: .9rem; font-weight: 750; }
.print-title { display: none; }
@media (max-width: 480px) {
  body > header { padding-block: 1.6rem; }
  .card .row { display: block; }
  #evidence .actions button { width: 100%; }
}
@media print {
  .review-map-mount { display:none !important; }
  body { background: white; }
  .site-bar, body > header, footer, main > section:not(#evidence), #evidence .actions, #installation-status { display: none !important; }
  #evidence { border: 0; box-shadow: none; padding: 0; }
  #evidence details { break-inside: avoid; }
  #evidence .result-title { display: none; }
  #evidence .print-title { display: inline; }
}
.review-map-mount { margin:16px 0; min-width:0; }
.review-map-mount .vector-map { padding:12px; border:1px solid #cdded7; border-radius:12px; background:#f9fcfa; overflow:hidden; }
.review-map-mount .map-canvas { height:clamp(310px,53vh,510px); }
.review-map-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:9px; }
.review-map-head h3 { margin:0; }
.map-basemaps { display:flex; gap:6px; flex-wrap:wrap; }
.map-basemaps button { background:#e0eeeb; color:#174640; min-height:39px; padding:6px 11px; }
.map-basemaps button[aria-pressed="true"] { background:#075b50; color:white; }
.map-canvas.is-aerial { background:#142933; }
.map-canvas.is-aerial .review-distance-vector { stroke:#f9e7af; stroke-width:3; filter:drop-shadow(0 1px 1px #152432); }
.map-canvas.is-aerial .leaflet-overlay-pane svg path[fill="#94d5cb"] { stroke:#86fff0; }
.result-shortcuts .result-consult { display:inline-flex; align-items:center; min-height:44px; padding:7px 14px; border-radius:9px; color:white; background:#08715f; font-weight:750; text-decoration:none; }
.result-shortcuts .result-consult:hover { background:#095c54; }
#print-aerial { display:none; }
@media print {
  #print-aerial:not([hidden]) { display:block; break-inside:avoid; margin:9px 0 14px; }
  #print-aerial figcaption strong { display:block; }
  #print-aerial figcaption span { font-size:11px; }
  #print-aerial canvas { display:block; width:100%; height:auto; }
}

/* Integrated prototype typography and responsive task layout */
body { margin:0; font-family:"Noto Sans KR","Noto Sans CJK KR","Malgun Gothic",sans-serif; color:#173138; background:#fff; overflow-wrap:anywhere; }
body > header.hero { padding:0 18px 34px; background:linear-gradient(125deg,#0a252c,#143b43 70%,#215158); }
.hero .hero-in { max-width:1080px; padding-top:24px; }
.hero h1 { margin:0 0 14px; color:white; background:none; }
.hero .sub { margin-bottom:14px; color:#e3eeec; }
.hero .sun { opacity:.55; animation:none; }
.hero .rays { animation:none; }
#run { margin-top:12px; }
#review-main, footer { max-width:1080px; }
.card .row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:16px; }
.map-canvas { height:clamp(240px,34vw,380px); border-radius:10px; background:#eaf2ed; background-image:linear-gradient(#ccdcd3 1px,transparent 1px),linear-gradient(90deg,#ccdcd3 1px,transparent 1px); background-size:24px 24px; isolation:isolate; }
.map-canvas.measuring { cursor:crosshair; }
.map-controls button { background:#e0eeeb; color:#174640; padding-inline:10px; }
.map-controls button[aria-pressed=true] { background:#075b50; color:white; }
.map-controls button:disabled { opacity:.6; }
.map-canvas .leaflet-control-zoom a { width:44px;height:44px;line-height:44px; }
.map-controls { gap:6px; }
.result-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:16px; }
#map-summary { background:#eef5f1; border-radius:10px; padding:12px; align-self:start; }
#map-summary figure { margin:0; }
#map-summary .parcel svg { width:100%; }
#distance-report { margin: 18px 0; padding: 16px; background: #f9fcfa; border: 1px solid #cdded7; border-radius: 12px; }
#distance-report h3 { margin: 0 0 5px; color: #153c34; font-size: 19px; }
.distance-basis { margin: 5px 0 12px; font-size: 14px; }
.distance-basis span { display: block; color: #51635d; font-size: 13px; }
.distance-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0; margin: 0 0 9px; }
.distance-card { display: grid; gap: 3px; align-content: start; width: 100%; height: 100%; padding: 8px; border: 1px solid #ceddd6; border-radius: 9px; background: #fff; color: #173138; text-align: left; }
.distance-card[aria-pressed="true"] { border-color: var(--distance-color); box-shadow: inset 0 0 0 1px var(--distance-color); }
.distance-label { font-weight: 700; font-size: 13px; color: var(--distance-color); }
.distance-label span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--distance-color); font-size: 11px; }
.distance-card strong { font-size: clamp(15px, 2.5vw, 23px); font-variant-numeric: tabular-nums; }
.distance-card small { line-height: 1.35; color: #435b54; }
.distance-map { display: block; width: 100%; max-height: 330px; overflow: hidden; border-radius: 8px; background: #edf4f1; }
.distance-site { fill: #a4d9cb; fill-rule: evenodd; stroke: #0e6459; stroke-width: 2; }
.distance-target { fill: none; stroke: currentColor; opacity: .55; stroke-width: 2; vector-effect: non-scaling-stroke; }
.distance-line { stroke: currentColor; stroke-width: 3; stroke-dasharray: 6 3; vector-effect: non-scaling-stroke; }
.distance-origin { fill: #fff; stroke: currentColor; stroke-width: 2; }
.distance-dot { fill: currentColor; stroke: #fff; stroke-width: 1.5; }
.distance-pin { fill: #fff; text-anchor: middle; dominant-baseline: central; font-size: 10px; font-weight: 700; }
.distance-layer.muted { opacity: .24; }
.distance-scale text, .distance-north text { fill: #27463b; font-weight: 700; font-size: 13px; }
.distance-north text { text-anchor: middle; }
.distance-scale path { fill: none; stroke: #27463b; stroke-width: 2; }
.distance-north path { fill: #27463b; }
@media (max-width: 420px) {
  #distance-report { padding: 11px; }
  .distance-card { padding: 6px 4px; }
  .distance-label { font-size: 12px; }
}
@media print {
  #distance-report { break-inside: avoid; margin: 10px 0; padding: 10px; }
  .distance-map { max-height: 222px; }
  .distance-layer.muted { opacity: 1; }
}
#conditions-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
#conditions-form button { justify-self:start; grid-column:1/-1; }
#auth,#draft { display:grid; gap:10px; }
#auth label,#draft label { display:grid; gap:4px; }
#versions pre { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:767px) {
  .card .row,.result-grid,#conditions-form { grid-template-columns:minmax(0,1fr); }
  #map-summary { grid-row:1; }
}
@media(max-width:480px) {
  .site-bar { padding-inline: 14px; }
  body > header.hero { padding-inline:10px; }
  #run { width:100%; }
  .map-controls button { flex:1 0 40%; }
  #steps li { padding-inline:5px; }
}
@media (max-height: 640px) {
  .hero .hero-in { padding-top: 12px; }
  .hero h1 { font-size: clamp(26px, 4.5vw, 42px); margin-bottom: 8px; }
  .hero .sub { font-size: 14px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important; } }
@media print {
  #map-summary { display:none; }
  .result-grid { display:block; }
}
.cand input { position:static; opacity:1; pointer-events:auto; margin-top:5px; flex:none; accent-color:#075b50; }
.cand:focus-within { outline:2px solid #a74a14; outline-offset:2px; }
main:not(#review-main) { margin-top:16px; }
#review-main { margin-top:16px; }
@media(max-width:767px) { #map-summary { grid-row:auto; } }
#r1,#evidence { scroll-margin-top:12px; }
.conditions-note { grid-column:1/-1; margin:0; }
.yield-report { border:1px solid #bdd9d0; border-radius:14px; padding:22px; margin:20px 0; background:#f4faf7; }
.yield-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.yield-heading h3 { margin:0; font-size:21px; }
.yield-basis { font-size:14px; color:#405a52; }
.yield-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:18px 0; }
.yield-metrics > div { display:flex; flex-direction:column; gap:6px; padding:16px; border:1px solid #d8e7e1; border-radius:10px; background:white; }
.yield-metrics span { font-size:12px; color:#47645a; }
.yield-metrics strong { font-size:28px; font-variant-numeric:tabular-nums; line-height:1.2; }
.yield-metrics small { font-size:14px; font-weight:500; }
.yield-chart { margin:20px 0 4px; break-inside:avoid; }
.yield-chart figcaption { font-size:13px; font-weight:600; }
.yield-chart svg { display:block; width:100%; height:auto; max-height:250px; }
.yield-chart text { fill:#35564b; font:12px sans-serif; }
.yield-report h4 { margin:20px 0 8px; }
.yield-report ul { padding-left:20px; font-size:13px; line-height:1.65; }
.monthly-details { margin:10px 0; }
.monthly-details summary { cursor:pointer; font-size:14px; }
@media(max-width:600px) { .yield-report { padding:14px; } .yield-metrics { grid-template-columns:1fr; gap:8px; } .yield-metrics > div { padding:12px; } }
@media print { .yield-report { padding:12px; background:white; } .yield-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); break-inside:avoid; } .yield-metrics strong { font-size:22px; } .yield-chart { max-width:680px; } .yield-report details { break-inside:auto !important; } .yield-report tr { break-inside:avoid; } .yield-report h3,.yield-report h4 { break-after:avoid; } }

.engineering-fields{grid-column:1/-1;border:1px solid #dce6df;border-radius:14px;padding:12px 16px}
.engineering-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.engineering-grid input{width:100%}
.legal-check{break-inside:avoid}
@media print { .legal-sources { break-inside: avoid; } }
@media(max-width:620px){.engineering-grid{grid-template-columns:1fr}}

.hero .hero-in { padding-block: clamp(32px, 6vh, 72px) 16px; }
.hero h1 { font-size: clamp(29px, 5vw, 62px); line-height: 1.12; }
.hero .sub { max-width: 490px; margin-bottom: 22px; line-height: 1.65; }
#result-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 16px 0; }
#result-overview a { display: grid; align-content: start; gap: 5px; border: 1px solid #cde0d9; border-radius: 10px; padding: 12px; color: #153c34; background: #f3f9f6; text-decoration: none; }
#result-overview a:hover, #result-overview a:focus-visible { border-color: #087b68; }
#result-overview span { font-size: 13px; }
#result-overview strong { font-size: 14px; }
.edit-conditions { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #075b50; }
@media (max-width: 620px) {
  #result-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero .hero-in { padding-top: 28px; }
}
@media (max-height: 640px) {
  .hero .hero-in { padding-block: 12px 0; }
  .hero h1 { font-size: clamp(25px, 4.3vw, 42px); }
  .hero .sub { margin-bottom: 12px; }
}
@media print { #result-overview { display: none; } }

.site-bar {
  padding-block: max(8px, env(safe-area-inset-top)) 8px;
  background: #fff;
  border-bottom: 1px solid #dce5e7;
}
.site-bar-inner {
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.site-bar .brand { position: relative; flex: 0 1 auto; min-width: 0; width: clamp(178px, 24vw, 222px); margin: 0; }
.brand picture { display: block; width: 100%; }
.brand picture img { display: block; width: 100%; height: auto; }
/* The mark and wordmark sit at different heights in the original artwork. */
.site-bar .brand-mark {
  clip-path: inset(0 72% 0 0);
  transform: translateY(calc(0.5px - 0.6%));
}
.site-bar .brand-wordmark {
  position: absolute;
  inset: 0;
  clip-path: inset(43% 0 13% 28%);
  transform: translateY(calc(0.5px - 15.85%));
}
@media (prefers-reduced-motion: no-preference) {
  /* Blend the pale background of the animated artwork into the header. */
  .site-bar :is(.brand-mark, .brand-wordmark) {
    filter: brightness(1.025);
    mix-blend-mode: multiply;
  }
  .site-bar .brand-mark { transform: translateY(calc(0.5px + 1.25%)); }
  .site-bar .brand-wordmark { transform: translateY(calc(0.5px - 13.375%)); }
}
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 34px); }
.site-nav a { color: #05263b; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.landing-cta { display: inline-flex; align-items: center; min-height: 44px; border-radius: 9px; padding-inline: 15px; }
html:has(.site-bar) { scroll-padding-top: calc(94px + env(safe-area-inset-top)); }
body > header.hero { position: relative; isolation: isolate; padding: 0 max(24px, calc((100% - 1160px)/2)); background: #092731; }
.hero .hero-in {
  --hero-row-gap: 24px;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 610px);
  align-content: center;
  justify-content: start;
  min-height: clamp(510px, 72svh, 700px);
  gap: var(--hero-row-gap);
  padding-block: 92px;
  pointer-events: none;
}
.hero-intro, .hero-search { pointer-events: auto; }
.hero-search { min-width: 0; width: min(100%, 560px); }
#search-form {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  margin: 0;
  border-radius: 15px;
  background: #fffdf4;
}
#search-form:focus-within { outline: 2px solid #a5ead6; outline-offset: 3px; }
#search-form .field { padding: 0 clamp(3px, 1vw, 12px); gap: 8px; border: 0; background: transparent; box-shadow: none; }
#search-form .field input { width: 100%; padding: 10px 0; border: 0; background: transparent; font-size: 16px; }
#search-form .field input::placeholder { color: #536663; opacity: 1; }
.search-submit { display: flex; flex: none; }
#search-form .btn-search {
  min-height: 48px;
  padding: 0 clamp(10px, 1.5vw, 20px);
  color: #fff;
  background: #075b50;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
#search-form .btn-search:disabled { color: #4e605a; background: #dce4d9; pointer-events: none; }
#search-form .btn-search span {
  display: inline-block;
  margin-inline-start: 4px;
}
#search-form .search-submit:hover .btn-search,
#search-form .btn-search:focus-visible {
  color: #000;
  background: #73e1ff;
}
#search-form .btn-search:active:not(:disabled) {
  color: #000;
  background: #58cbe9;
  transform: none;
}
.search-feedback { color: #e3eeec; font-size: 14px; }
.search-feedback #mode, .search-feedback #candidates:not(:empty) { margin: 10px 0 0; }
.search-feedback .cand { color: #173138; background: #fffdf4; }
.search-feedback .cand:has(input:checked) { background: #e1f3ec; border-color: #75c2aa; }
#installation-status:empty { display: none; }
.hero h1 { margin: 0 0 20px; color: #fffdf4; background: none; font-size: clamp(34px, 4.15vw, 60px); line-height: 1.24; }
.hero .sub {
  --hero-cue-space: 35px;
  --hero-cue-offset: .16em;
  position: relative;
  margin: 0;
  padding-block-end: var(--hero-cue-space);
  max-width: none;
  color: #e2efe9;
  line-height: 1.75;
  word-break: keep-all;
}
.hero-cue-letter { anchor-name: --hero-cue-letter; }
.hero-search-cue {
  position: absolute;
  inset-inline-start: 1.66em;
  inset-inline-start: anchor(--hero-cue-letter center, 1.66em);
  /* Center the cue between the visible text and the top of the search form. */
  inset-block-end: calc((var(--hero-cue-space) - var(--hero-row-gap)) / 2 + var(--hero-cue-offset));
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 34px;
  color: #a5ead6;
  pointer-events: none;
  transform: translate(-50%, 50%);
}
.hero-search-cue span {
  width: 14px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 20%, 12% 0, 50% 67%, 88% 0, 100% 20%, 50% 100%);
}
@media (prefers-reduced-motion: no-preference) {
  /* Start in the middle of the downward travel so the cue appears centered. */
  .hero-search-cue { animation: point-to-search 1.5s ease-in-out -.3375s infinite; }
  .hero-search-cue span { animation: search-cue-fade 1.5s ease-in-out infinite; }
  .hero-search-cue span:nth-child(2) { animation-delay: .14s; }
  .hero-search-cue span:nth-child(3) { animation-delay: .28s; }
}
@keyframes point-to-search {
  0%, 100% { transform: translate(-50%, calc(50% - 2px)); }
  45% { transform: translate(-50%, calc(50% + 2px)); }
}
@keyframes search-cue-fade {
  0%, 100% { opacity: .55; }
  45% { opacity: 1; }
}
@media (max-width: 375px) {
  .hero .sub { --hero-cue-offset: 3px; }
}
.landing-measurement { width: min(100%, 760px); margin-inline: auto; }
.hero-measurement {
  position: relative;
  isolation: isolate;
  margin: 0;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  border-radius: 16px;
  background: #102936;
  box-shadow: 0 0 0 1px #81c4c538, 0 13px 35px #071c2555;
}
.hero-measurement-image, .hero-measurement-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-measurement-image { filter: brightness(.62) saturate(.72); }
.hero-measurement-overlay { pointer-events: none; }
.hero-measurement-site { fill: #73e1ff46; stroke: #73e1ff; stroke-width: 3; }
.hero-measurement-overlay g { color: #e6f9ff; }
.hero-measurement-overlay .hero-measurement-river { color: #83e6ff; }
.hero-measurement-overlay .hero-measurement-residential { color: #dbfbd3; }
.hero-measurement-overlay .hero-measurement-road { color: #ffe1a6; }
.hero-measurement-line, .hero-measurement-leader { fill: none; stroke: currentColor; stroke-width: 3; }
.hero-measurement-leader { stroke-dasharray: 4 5; }
.hero-measurement-overlay circle { fill: currentColor; stroke: #0d2632; stroke-width: 2; }
.hero-measurement-overlay rect { fill: #0a2230; fill-opacity: .93; stroke: currentColor; stroke-opacity: .38; }
.hero-measurement-overlay text { fill: currentColor; font-size: 25px; font-weight: 650; }
.hero-measurement-overlay tspan { fill: #fff; font-size: 28px; font-weight: 800; }
.hero-measurement-scale path { fill: none; stroke: currentColor; stroke-width: 3; }
.hero-measurement-scale path:last-of-type { fill: currentColor; }
.hero-measurement-scale text { font-size: 19px; paint-order: stroke; stroke: #0d2632; stroke-width: 3px; }
.hero-measurement figcaption, .hero-measurement-credits {
  position: absolute;
  z-index: 1;
  color: #e9f8fc;
  background: #0b2431ee;
}
.hero-measurement figcaption { top: 10px; left: 10px; padding: 6px 9px; border-radius: 7px; }
.hero-measurement figcaption strong { display: block; color: #a3eeff; font-size: 13px; }
.hero-measurement figcaption span { display: block; font-size: 11px; }
.hero-measurement-credits { right: 0; bottom: 0; padding: 4px 7px; border-top-left-radius: 5px; font-size: 9px; }
.hero-measurement-credits a { color: inherit; text-underline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-measurement-line { stroke-dasharray: 1; animation: draw-measurement .75s ease-out both; }
  .hero-measurement-residential .hero-measurement-line { animation-delay: .15s; }
}
@keyframes draw-measurement { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-photo, .gallery-images, .gallery-markup, .gallery-lines { position: absolute; inset: 0; }
.hero-photo { z-index: -1; overflow: hidden; }
.hero-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #062027f2, #062027dd 29%, #06202775 55%, #06202722 82%), linear-gradient(0deg, #06202762, transparent 31%);
}
.gallery-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 53%;
}
.gallery-images .gallery-outgoing { z-index: 0; }
.gallery-images .gallery-current { z-index: 1; }
.gallery-markup { z-index: 2; pointer-events: none; }
.gallery-lines { width: 100%; height: 100%; overflow: hidden; }
.gallery-lines path { fill: none; stroke: #b1fcfb; stroke-width: 1.6; }
.gallery-lines .gallery-leader { stroke-dasharray: 3 4; stroke: #e4fefc; }
.gallery-lines circle { fill: #b1fcfb; stroke: #0c3036; stroke-width: 1.5; }
.gallery-lines .gallery-focus { fill: #092d36; stroke: #a7f6ff; stroke-width: 2; }
.gallery-labels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.gallery-labels li {
  position: absolute;
  width: max-content;
  padding: 5px 9px;
  color: #f4ffff;
  background: #072931e8;
  border: 1px solid #cbf9f57a;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}
.hero-subject-line, .hero-question { display: block; }
.hero-subject-line { color: #a5ead6; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .hero-shine {
      background-image: linear-gradient(112deg, currentColor 38%, #45b7fc 46%, #e4faff 50%, #73e1ff 54%, currentColor 62%);
      background-size: 300% 100%;
      background-position: 100% 50%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: hero-shine 4.6s ease-in-out infinite;
    }
    .hero-shine + .hero-shine { animation-delay: .16s; }
  }
}
@keyframes hero-shine {
  0%, 18% { background-position: 100% 50%; }
  48%, 100% { background-position: 0% 50%; }
}
#hero-subject { display: inline-block; }
@keyframes gallery-fade { from { opacity: 0; } to { opacity: 1; } }
.gallery-images .gallery-current, .gallery-markup:not([hidden]) { animation: gallery-fade .32s ease both; }
@media (prefers-reduced-motion: reduce) { .gallery-images .gallery-current, .gallery-markup:not([hidden]) { animation: none; } }
#review-main:not(:has(> section:not([hidden]))) { display: none; }
.landing { max-width: 1160px; margin-inline: auto; padding: 0 20px; }
.landing-section { padding-block: clamp(38px, 6vw, 78px); }
.landing-section h2 { font-size: clamp(25px, 3.2vw, 38px); letter-spacing: -.04em; line-height: 1.25; margin-bottom: 22px; }
.site-types > h2 { letter-spacing: -.02em; }
.site-types-grid, .verdict-grid { display: grid; gap: 16px; }
.site-types-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-types-grid article { display: grid; align-content: start; gap: 8px; }
.site-types-grid img { display: block; width: 100%; height: auto; max-height: 225px; object-fit: cover; aspect-ratio: 2.25; border-radius: 12px; }
.site-types-grid h3, .site-types-grid p { margin: 0; }
.site-types-grid p, .verdict-grid dd { color: #405e56; font-size: 14px; }
.verdict-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.verdict-grid div { border-top: 4px solid var(--verdict-color); background: #fff; padding: 15px; border-radius: 6px; }
.verdict-grid div:nth-child(1) { --verdict-color: #0c7751; }
.verdict-grid div:nth-child(2) { --verdict-color: #996000; }
.verdict-grid div:nth-child(3) { --verdict-color: #bd4e28; }
.verdict-grid div:nth-child(4) { --verdict-color: #a72432; }
.verdict-grid dt { color: var(--verdict-color); font-weight: 800; }
.verdict-grid dd { margin: 6px 0 0; }
.verdict-note { padding: 12px 15px; border-radius: 8px; background: #dcebe6; }
.review-progress-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.review-progress-header .hint { margin: 0; }
#steps-progress { display: block; width: 100%; height: 14px; margin-top: 12px; accent-color: #075b50; }
.result-shortcuts { margin: 0 0 12px; }
.result-metrics, .grid-capacity-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-block: 14px; }
.result-metrics > div, .grid-capacity-levels article { padding: 13px; border: 1px solid #d5e4df; border-radius: 9px; background: #f3f8f6; }
.result-metrics :is(span, strong, small, a) { display: block; }
.result-metrics strong { font-size: clamp(16px, 3vw, 23px); color: #123b43; }
.result-metrics :is(a, small) { font-size: 13px; margin-top: 3px; }
.review-detail { margin: 16px 0; border: 1px solid #d5e4df; border-radius: 10px; padding: 14px; }
.review-detail h3 { margin: 0 0 4px; }
#capacity-scenario label { display: block; margin: 8px 0 3px; }
#desired-capacity { max-width: 220px; }
#scenario-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#distance-report table { width: 100%; }
.grid-capacity-levels h4, .grid-capacity-levels dl { margin: 0; }
.grid-capacity-levels dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; padding: 5px 0; font-size: 13px; }
.grid-capacity-levels dd { margin: 0; font-weight: 700; }
.assessment-guide { margin-top: 6px; }
.actions a.secondary { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid #cdded7; border-radius: 9px; text-decoration: none; }
.check-grid, .how-grid { display: grid; gap: 12px; }
.check-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.check-grid article, .how-grid li { padding: 20px; background: #fff; border: 1px solid #d6e6df; border-radius: 12px; }
.check-grid h3 { margin: 0 0 7px; font-size: 17px; color: #075b50; }
.check-grid p, .how-grid p { margin: 0; font-size: 14px; color: #405e56; }
.how-section, .faq-section { border-top: 1px solid #d0e1da; }
.how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style-position: inside; }
.how-grid li::marker { color: #087765; font-weight: 750; }
.how-grid p { margin-top: 6px; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; }
.landing-actions #example { margin: 0; min-height: 44px; }
.landing-cta { background: #075b50; color: #fff; text-decoration: none; font-weight: 700; }
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.faq-section details { border-bottom: 1px solid #d0e1da; }
.faq-section summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.faq-section details p { margin: 0 0 15px; color: #405e56; }
.site-footer { max-width: none; padding: 26px max(20px, calc((100% - 1120px)/2)); background: #fff; color: #405e56; border-top: 1px solid #dce5e7; }
.site-footer strong { font-size: 19px; color: #173138; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 15px; }
.photo-credits { margin-top: 12px; }
.photo-credits summary { cursor: pointer; }
.photo-credits li + li { margin-top: 5px; }
.site-footer a { color: #075b50; }
.assessment, .finance-report { padding: 16px; border: 1px solid #d6e6df; border-radius: 12px; background: #f5faf7; }
.assessment h3, .finance-report h3 { margin: 0 0 8px; }
.assessment p, .assessment ul { margin: 0; }
.assessment ul { padding-inline-start: 21px; }
.assessment li + li { margin-top: 4px; }
#review-main { grid-template-columns: minmax(0,1fr); }
.finance-report { min-width: 0; margin-block: 16px; }
.finance-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-block: 12px; }
.finance-metrics div { padding: 10px 14px; border: 1px solid #d0e5dd; border-radius: 9px; background: #fff; }
.finance-metrics span { display: block; color: #47645a; font-size: 13px; }
.finance-metrics output { display: block; font-weight: 800; font-size: clamp(19px,3.3vw,28px); color: #075b50; }
.finance-report td { text-align: right; font-variant-numeric: tabular-nums; }
.finance-report th { width: 52%; }
.finance-sources { padding-inline-start: 18px; font-size: 13px; }
.finance-sources li + li { margin-top: 3px; }
.finance-sources a { color: #075b50; }
.finance-options { padding-top: 8px; }
.finance-options summary { cursor: pointer; font-weight: 700; }
.finance-inputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-block: 12px; }
.finance-inputs label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.finance-inputs input { width: 100%; background: #fff; }
.equity-inputs { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.equity-inputs select { width: 100%; }
#equity-status:empty, #equity-basis:empty, #equity-deficit:empty, .equity-milestone:empty { display: none; }
.equity-milestone { margin-block: .45rem; font-size: 14px; color: #234f47; }
.equity-table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
.equity-table { min-width: 610px; }
.repayment-comparison { margin-block: 14px; }
.repayment-comparison h4 { margin-bottom: 0; }
.repayment-table { min-width: 555px; }
.repayment-table th { width: 26%; }
.repayment-table .selected-method { background: #e1f3ec; color: #075b50; }
.equity-table thead th { width: auto; font-size: 12px; font-weight: 700; }
.equity-table tbody th { width: auto; }
.map-canvas .leaflet-control-attribution { padding: 0 5px; }
@media (max-width: 1000px) {
  .hero .hero-in { grid-template-columns: minmax(0, min(56vw, 510px)); }
}
@media (max-width: 840px) {
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict-grid, .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .site-bar-inner { min-height: 54px; }
  .site-bar .brand { width: clamp(144px, 43vw, 190px); }
  .site-nav a:not(.nav-inquiry, .nav-services) { display: none; }
  .site-nav :is(.nav-inquiry, .nav-services) { display: inline-flex; align-items: center; min-height: 44px; }
  body > header.hero { padding-inline: 14px; }
  .hero .hero-in {
    --hero-row-gap: 18px;
    grid-template-columns: 1fr;
    min-height: 590px;
    padding-block: 42px 320px;
    align-content: start;
  }
  .hero h1 { font-size: clamp(28px, 8.5vw, 45px); }
  .hero .sub { font-size: clamp(13px, 3.65vw, 16px); }
  .hero-photo::after { background: linear-gradient(180deg, #062027f2, #062027c7 35%, #06202745 57%, #06202736); }
  .gallery-labels li { font-size: 12px; padding: 4px 7px; }
  #search-form .btn-search { min-height: 44px; font-size: 14px; }
  .how-grid, .faq-section { grid-template-columns: 1fr; }
  .site-types-grid, .grid-capacity-levels { grid-template-columns: 1fr; }
  .result-metrics { gap: 5px; }
  .result-metrics > div { padding: 8px; }
  .faq-section h2 { margin-bottom: 0; }
}
@media (max-width: 375px) { .check-grid { grid-template-columns: 1fr; } }
@media (max-width: 450px) {
  .finance-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-metrics div { padding: 9px; }
}
@media print {
  .landing, #finance-options, .equity-inputs { display: none !important; }
  .result-metrics, .review-detail, .grid-capacity-levels article { break-inside: avoid; }
  #result-capacity-edit, .assessment-guide, #capacity-scenario:not(.scenario-filled), #capacity-scenario label, #desired-capacity { display: none !important; }
  .assessment, .finance-metrics, .finance-report tr { break-inside: avoid; }
  .finance-report h3 { break-after: avoid; }
  #equity-schedule { display: block; break-inside: auto !important; }
  .equity-table-scroll { overflow: visible; }
  .equity-table, .repayment-table { min-width: 0; font-size: 11px; }
  .equity-table th, .equity-table td, .repayment-table th, .repayment-table td { padding-inline: 3px; }
  .repayment-comparison h4 { break-after: avoid; }
}

/* company info footer */
.company-info { flex-basis: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e2e9eb; color: #5b6f76; font-size: 13px; line-height: 1.75; }
.site-footer .company-info { display: block; }
.company-info p { display: flex; flex-wrap: wrap; column-gap: 18px; margin: 0; }
.company-info a { color: inherit; text-decoration: none; }
.company-info .copyright { margin-top: 8px; color: #7a8c92; }
