:root {
  color: #172637;
  background: #f7f5f0;
  font: 16px/1.55 Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
header { background: white; border-bottom: 3px solid #ad955f; padding: 20px max(5vw, 24px); }
header img { display: block; width: 220px; max-width: 70vw; }
main { max-width: 1280px; margin: auto; padding: 36px 24px 60px; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 22px 0 10px; }
h2 { font-size: 1.8rem; margin: 0 0 18px; }
.intro { max-width: 620px; margin-bottom: 32px; }
a { color: inherit; text-underline-offset: 3px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
section, aside { background: white; border: 1px solid #dce1e6; padding: clamp(18px, 3vw, 30px); margin-bottom: 22px; }
aside { border-top: 3px solid #ad955f; position: sticky; top: 16px; }
label { display: grid; gap: 6px; margin: 12px 0; font-weight: 600; font-size: .9rem; }
input, textarea, select { width: 100%; min-width: 0; font: inherit; font-weight: 400; color: inherit; background: white; padding: 10px; min-height: 44px; border: 1px solid #9ba8b5; border-radius: 3px; }
fieldset { border: 1px solid #dce1e6; margin: 14px 0; min-width: 0; }
legend { font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
button { background: #172637; border: 1px solid #172637; color: white; padding: 10px 15px; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer; border-radius: 3px; }
button.secondary { background: white; color: #172637; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #987238; outline-offset: 3px; }
.hint { color: #505e6c; font-size: .9rem; font-weight: 400; }
#map iframe { width: 100%; height: 300px; border: 0; }
#segments { padding-inline-start: 20px; overflow-wrap: anywhere; }
#segments li { margin: 8px 0; }
#totals { font-weight: 600; }
@media (max-width: 800px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  aside { position: static; }
  .layout > div { display: contents; }
  .layout > div > section:first-child { order: -2; }
  aside { order: -1; }
}
@media (max-width: 430px) { .fields { grid-template-columns: minmax(0, 1fr); } }
