.calc { --evergreen: var(--ever); --gold-light: var(--goldl); --display: "Jost", sans-serif; --body: "Source Sans 3", sans-serif; }
.calc-start { text-align: center; padding: clamp(40px, 10vh, 120px) 20px 56px; }
.calc h1 { font: 200 clamp(36px, 7vw, 88px)/1.06 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--navy); margin-bottom: 44px; }

.calc-line { display: flex; align-items: center; max-width: 560px; margin: 0 auto; border-bottom: 1px solid var(--gold); transition: box-shadow .3s; }
.calc-line:focus-within { box-shadow: 0 1px 0 var(--gold); }
.calc-line input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 2px; font: 300 20px var(--display); outline: 0; }
.calc-line button { padding: 14px 2px 14px 16px; }
.calc-line svg { width: 28px; height: 14px; fill: none; stroke: var(--navy); stroke-width: 1.2; transition: translate .3s; }
.calc-line button:hover svg { translate: 5px 0; }
.calc-hint { margin-top: 12px; font-size: 13px; color: #6b6b78; }
.calc-found dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; }
.calc-found dt { font: 400 11px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--evergreen); }
.calc-found dd { font: 300 22px var(--display); color: var(--navy); }
.calc-link { margin-top: 18px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.calc-message { margin-top: 6px; min-height: 1.55em; font-size: 15px; }
.calc-zips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.calc-zips button { border: 1px solid var(--gold); border-radius: 999px; padding: 8px 16px; font: 300 15px var(--display); letter-spacing: .08em; }
.calc-zips button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.calc-details { max-width: 640px; margin: 0 auto; padding: 24px 20px 56px; display: grid; gap: 30px; text-align: center; animation: calc-in .7s both; }
.calc-where { font: 300 24px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.calc fieldset { border: 0; min-width: 0; }
.calc legend, .calc-field > span, .calc-eyebrow { font: 400 12px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--evergreen); }
.calc legend { margin: 0 auto 12px; }
.calc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.calc-chips label { position: relative; }
.calc-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-chips span { display: block; min-width: 54px; padding: 10px 20px; border: 1px solid rgba(184, 151, 77, .55); border-radius: 999px; font: 300 16px var(--display); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.calc-chips span:hover { border-color: var(--navy); }
.calc-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.calc-field { display: grid; justify-items: center; gap: 4px; }
.calc-field input { width: 180px; text-align: center; border: 0; border-bottom: 1px solid var(--gold); background: none; padding: 10px; font: 300 20px var(--display); }
.calc-field input::placeholder { color: #9a9aa6; }

.calc-result { position: relative; overflow: hidden; background: var(--navy); color: #fff; text-align: center; padding: clamp(56px, 9vw, 110px) 20px 40px; animation: calc-in .7s .1s both; }
.calc-result > :not(.calc-roof) { position: relative; }
.calc-roof { position: absolute; inset: 0 0 auto; width: 100%; height: 360px; fill: none; stroke: var(--gold); stroke-width: 1; opacity: .35; pointer-events: none; }
.calc-roof path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; animation: calc-draw 1.6s ease both; }
.calc-eyebrow { color: var(--gold-light); }
.calc-value { font: 200 clamp(52px, 11vw, 128px)/1.15 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.calc-range { font: 300 clamp(17px, 2.4vw, 22px) var(--display); letter-spacing: .08em; color: var(--gold-light); }
.calc-none { max-width: 420px; margin: 18px auto; font: 300 22px/1.4 var(--display); }

.calc-trend { max-width: 560px; margin: 44px auto 0; }
.calc-trend svg { display: block; width: 100%; height: 100px; overflow: visible; }
.calc-trend path { fill: none; stroke: var(--gold-light); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.calc-trend figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.calc-trend b { font-weight: 400; color: #fff; }

.calc-btn { display: inline-block; margin-top: 40px; padding: 15px 34px; border: 1px solid var(--gold); font: 400 13px var(--display); letter-spacing: .18em; text-transform: uppercase; color: #fff; transition: background .25s, color .25s; }
.calc-btn:hover { background: var(--gold-light); color: var(--navy); }
.calc-lead { display: grid; gap: 18px; max-width: 420px; margin: 36px auto 0; text-align: left; animation: calc-in .6s both; }
.calc-lead label span { display: block; font: 400 12px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.calc-lead input { width: 100%; border: 0; border-bottom: 1px solid rgba(214, 188, 124, .6); background: none; padding: 9px 0; color: #fff; }
.calc-lead .calc-btn { margin-top: 8px; justify-self: center; }
.calc-trap { position: absolute; left: -9999px; }
.calc-status { text-align: center; min-height: 1.55em; font-size: 15px; }
.calc-fine { max-width: 520px; margin: 36px auto 0; font-size: 13px; color: rgba(255, 255, 255, .65); }

@keyframes calc-in { from { opacity: 0; translate: 0 18px; } }
@keyframes calc-draw { from { stroke-dashoffset: 1; } }
@media (max-width: 520px) {
  .calc-chips span { padding: 10px 15px; min-width: 48px; font-size: 15px; }
  .calc-trend figcaption { flex-wrap: wrap; }
  .calc-trend b { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
