/* Measure and quote: the planner's own styles. It sits on the blueprint ground; the plan is drawn in pale
   "existing" lines and sage "new work", like the rest of the site's drawings. Lifts out with planner.js. */
.mq { --mq-bp: #0f2433; --mq-line: #d5e4f0; --mq-soft: #8fa9bf; --mq-sage: #98d09a; --mq-ink: #e6eef5;
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; color: var(--mq-ink); }
@media (min-width: 940px) { .mq { grid-template-columns: 1.25fr 1fr; } .mq-board { position: sticky; top: calc(var(--header-h, 3.4rem) + 1.2rem); } }

/* the board: the plan on its sheet, and a sentence that says what it shows */
.mq-board { margin: 0; }
.mq-sheet { position: relative; border: 1px solid rgb(152 208 154 / .35); border-radius: 4px; background: #0b1d2a; aspect-ratio: 4 / 3; overflow: hidden; }
.mq-plan { display: block; width: 100%; height: 100%; font-family: var(--head, system-ui, sans-serif); }
.mq-readout { margin: .8rem 0 0; font-size: .98rem; color: #c9d8e4; min-height: 3em; }
.no-js .mq-board { display: none; }
/* on a phone the plan stays pinned under the header while the questions scroll beneath it */
@media (max-width: 939px) {
  .mq-board { position: sticky; top: var(--header-h, 3.4rem); z-index: 3; margin: 0 -1rem; padding: .6rem 1rem .4rem; background: #0f2433; box-shadow: 0 10px 18px -12px rgb(0 0 0 / .6); }
  .mq-sheet { max-height: 34vh; aspect-ratio: auto; height: min(34vh, calc((100vw - 2rem) * .75)); }
  .mq-readout { font-size: .85rem; min-height: 0; margin-top: .45rem; line-height: 1.4; }
}

.mq-plan .mq-g1 { stroke: rgb(143 169 191 / .3); stroke-width: .8; }
.mq-plan .mq-g5 { stroke: rgb(143 169 191 / .14); stroke-width: .6; }
.mq-plan .mq-wall { fill: none; stroke: var(--mq-line); stroke-width: 7; }
.mq-plan .mq-new .mq-wall { stroke: var(--mq-sage); }
.mq-plan .mq-deckedge .mq-wall { stroke-width: 2.5; }
.mq-plan .mq-gap { fill: #0b1d2a; stroke: none; }
.mq-plan .mq-win { stroke: var(--mq-line); stroke-width: 1; }
.mq-plan .mq-f { fill: none; stroke: var(--mq-sage); stroke-width: 1.5; }
.mq-plan .mq-bench { fill: rgb(152 208 154 / .08); }
.mq-plan .mq-thin { stroke-width: .9; stroke-opacity: .8; }
.mq-plan .mq-glass { stroke-width: 2.4; }
.mq-plan .mq-part { stroke-width: 3; }
.mq-plan .mq-rail { stroke-dasharray: 6 4; }
.mq-plan .mq-board { stroke-width: .7; stroke-opacity: .55; }
.mq-plan .mq-post { fill: var(--mq-sage); }
.mq-plan .mq-pale { stroke: var(--mq-soft); }
.mq-plan .mq-cloud { stroke-width: 1.8; fill: rgb(152 208 154 / .06); }
.mq-plan .mq-door { stroke-width: 2; }
.mq-plan .mq-swing { fill: none; stroke: var(--mq-soft); stroke-width: 1; stroke-dasharray: 4 3; }
.mq-plan .mq-roof { fill: none; stroke: var(--mq-sage); stroke-width: 1.2; stroke-dasharray: 9 5; }
.mq-plan .mq-exhouse { fill: rgb(213 228 240 / .04); stroke: var(--mq-line); stroke-width: 2; }
.mq-plan .mq-hatch { stroke: rgb(143 169 191 / .35); stroke-width: .8; }
.mq-plan .mq-slider { stroke: #0b1d2a; stroke-width: 9; }
.mq-plan .mq-exlbl { fill: var(--mq-line); font-size: 11px; font-weight: 600; letter-spacing: 2px; }
.mq-plan .mq-lbl { fill: var(--mq-sage); font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px; }
.mq-plan .mq-sm { fill: var(--mq-sage); font-size: 9.5px; font-weight: 600; letter-spacing: 1.2px; }
.mq-plan .mq-dim, .mq-plan .mq-ext { stroke: #a9c0d3; stroke-width: .8; }
.mq-plan .mq-ext { stroke-opacity: .5; }
.mq-plan .mq-tick { stroke: #a9c0d3; stroke-width: 1.4; }
.mq-plan .mq-dimt { fill: #cfe0ee; font-size: 12px; letter-spacing: 1px; }
.mq-plan .mq-tb { fill: none; stroke: rgb(213 228 240 / .5); stroke-width: .8; }
.mq-plan .mq-tbt { fill: #cfe0ee; font-size: 9.5px; letter-spacing: 1.1px; font-weight: 500; }
.mq-plan .mq-tbs { fill: var(--mq-sage); font-size: 9px; letter-spacing: 1.4px; font-weight: 600; text-anchor: middle; }
.mq-plan .mq-north circle { fill: none; stroke: #a9c0d3; stroke-width: .8; }
.mq-plan .mq-north path { fill: #a9c0d3; }
@media (prefers-reduced-motion: no-preference) {
  .mq-plan.mq-drawing [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: mq-draw .9s cubic-bezier(.55,.1,.25,1) forwards; }
  .mq-plan.mq-drawing .mq-fx [pathLength] { animation-delay: .25s; }
  .mq-plan.mq-drawing .mq-marks [pathLength] { animation-delay: .5s; }
  .mq-plan.mq-drawing text { animation: mq-fade .6s ease .55s backwards; }
  @keyframes mq-draw { to { stroke-dashoffset: 0; } }
  @keyframes mq-fade { from { opacity: 0; } }
  .mq-plan .mq-g { transition: opacity .2s; }
}

/* the questions */
.mq-steps { min-width: 0; }
.mq fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.mq legend { padding: 0; margin: 0 0 .9rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.mq-n { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mq-sage); margin-bottom: .35rem; }
.mq-sub { margin: 1.1rem 0 .6rem; font-weight: 600; color: #fff; }
.mq .hint { font-size: .92rem; color: #a9c0d3 !important; margin: .6rem 0 0; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opts + .opts { margin-top: .5rem; }
.opts-col { flex-direction: column; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .55rem 1rem; border: 1.5px dashed rgb(230 238 245 / .45); border-radius: 4px; font-weight: 500; line-height: 1.25; color: var(--mq-ink); transition: background-color .2s, border-color .2s, color .2s; }
.opt input[type="checkbox"] + span::before { content: ""; width: .95rem; height: .95rem; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.opt input[type="checkbox"]:checked + span::before { background: #0c1a12; border-color: #0c1a12; box-shadow: inset 0 0 0 2px var(--mq-sage); }
.opt input:hover + span { border-style: solid; }
.opt input:checked + span { background: var(--mq-sage); border: 1.5px solid var(--mq-sage); color: #0c1a12; }
.opt input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.opt input:disabled + span { opacity: .45; }
.opts-col .opt span { width: 100%; }

.mq-nums { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.mq-num label { display: block; font-weight: 600; margin-bottom: .35rem; color: #fff; }
.mq-num-in { display: flex; align-items: stretch; border: 1.5px solid rgb(230 238 245 / .5); border-radius: 4px; background: #0b1d2a; }
.mq-num-in:focus-within { outline: 3px solid var(--mq-sage); outline-offset: 1px; }
.mq-num-in input { width: 100%; min-width: 0; min-height: 3rem; padding: .5rem .3rem .5rem .7rem; background: transparent; border: 0; color: #fff; font: 600 1.25rem/1 var(--head, system-ui); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.mq-num-in input::-webkit-outer-spin-button, .mq-num-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mq-num-in input:focus { outline: none; }
.mq-unit { align-self: center; padding-right: .4rem; color: #a9c0d3; }
.mq-step-btn { flex: none; width: 2.9rem; border: 0; background: rgb(152 208 154 / .12); color: var(--mq-sage); font: 600 1.35rem/1 var(--head, system-ui); cursor: pointer; }
.mq-step-btn:first-child { border-right: 1px solid rgb(230 238 245 / .2); }
.mq-step-btn:last-child { border-left: 1px solid rgb(230 238 245 / .2); }
.mq-step-btn:hover { background: rgb(152 208 154 / .24); }
.mq-step-btn:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.mq-go { width: 100%; }

/* the full planner's progress and step buttons */
.mq-progress { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; counter-reset: mqp; }
.mq-progress li { counter-increment: mqp; font-size: .75rem; letter-spacing: .06em; color: #8fa9bf; padding-top: .55rem; border-top: 3px solid rgb(143 169 191 / .3); }
.mq-progress li.is-done { border-top-color: rgb(152 208 154 / .55); color: #c9d8e4; }
.mq-progress li.is-now { border-top-color: var(--mq-sage); color: #fff; font-weight: 600; }
.no-js .mq-progress { display: none; }
.mq-nav { display: flex; gap: .6rem; justify-content: space-between; margin-top: .4rem; }
.mq-nav[hidden], .mq-nav [hidden] { display: none; }
.mq-nav .mq-next { margin-left: auto; background: var(--mq-sage); color: #0c1a12; border-color: var(--mq-sage); }
.mq-nav .mq-back { color: var(--mq-ink); border-color: rgb(230 238 245 / .5); }
.mq-step:focus { outline: none; }
.mq .field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.mq .field label { color: #fff; }
.mq .opt-note { color: #a9c0d3; }
.mq .form-note { color: #a9c0d3; font-size: .88rem; margin-top: .9rem; }
.mq .btn-solid { width: 100%; background: var(--mq-sage); color: #0c1a12; border-color: var(--mq-sage); }
.mq-summary { margin: 0 0 1.4rem; padding: 1rem 1.1rem; border: 1px solid rgb(152 208 154 / .4); border-left: 5px solid var(--mq-sage); border-radius: 4px; background: rgb(11 29 42 / .8); }
.mq-summary .mq-sub { margin-top: 0; }
.mq-sumlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
.mq-sumlist b { color: var(--mq-sage); font-weight: 600; }
.mq-more[hidden] { display: none; }
