/*
 * MH Planner styles.
 * Every rule is scoped under .mhp so nothing here can reach the theme, and the reset below only
 * touches elements inside the planner. Colours follow the store: dark navy, red call to action, blue rule.
 */
.mhp {
  --mhp-ink: #141A24; --mhp-mut: #4A5563; --mhp-line: #DCE1EA; --mhp-ground: #F3F5F9; --mhp-accent: #DD0E1C; --mhp-accent-d: #B50B17;
  --mhp-blue: #0F3A8D; --mhp-ok: #17645A; --mhp-warn: #8F1D14; --mhp-r: 8px;
  color: var(--mhp-ink); font-size: 16px; line-height: 1.45; text-align: left; clear: both;
}
.mhp, .mhp *, .mhp *::before, .mhp *::after { box-sizing: border-box; }
.mhp h2, .mhp h3, .mhp p, .mhp ul, .mhp ol, .mhp table { margin: 0; padding: 0; }   /* note: this outranks a single class, so classes that put spacing on these elements are written as .mhp .class */
.mhp ul, .mhp ol { list-style: none; }
.mhp img { max-width: 100%; height: auto; }
.mhp a { color: var(--mhp-blue); }
.mhp [hidden] { display: none !important; }
.mhp-mono, .mhp output { font-family: "Roboto Mono", Consolas, "Courier New", monospace; }

/* ---- server-rendered marketing block (works without JavaScript) ---- */
.mhp-hero { background: var(--mhp-ink); color: #fff; border-radius: var(--mhp-r); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.mhp-hero > div { flex: 1 1 420px; min-width: 0; }
.mhp-hero .mhp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9AA6BB; margin-bottom: 12px; }
.mhp-hero h2 { font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; font-weight: 800; color: #fff; text-wrap: balance; }
.mhp-hero p { font-size: 18px; color: #D6DBE6; margin-top: 16px; max-width: 34em; }
.mhp .mhp-hero .mhp-btn { margin-top: 22px; }
.mhp .mhp-trust { display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 20px 0; border-bottom: 1px solid var(--mhp-line); }
.mhp-trust li { flex: 1 1 180px; min-width: 0; font-size: 14px; color: var(--mhp-mut); }
.mhp-trust b { display: block; font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: 18px; font-weight: 800; color: var(--mhp-ink); line-height: 1.2; }
.mhp-section { margin-top: 36px; }
.mhp-section > h2 { font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 800; margin-bottom: 16px; }
.mhp-howto { display: flex; flex-wrap: wrap; gap: 16px; counter-reset: mhp; }
.mhp-howto li { flex: 1 1 260px; min-width: 0; background: #fff; border: 1px solid var(--mhp-line); border-radius: var(--mhp-r); padding: 20px 20px 20px 84px; position: relative; counter-increment: mhp; color: var(--mhp-mut); font-size: 15px; }
.mhp-howto li::before { content: counter(mhp); position: absolute; left: 20px; top: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--mhp-accent); color: #fff; font: 800 22px/48px Montserrat, "Segoe UI", Arial, sans-serif; text-align: center; }
.mhp-howto b { display: block; font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: 18px; font-weight: 800; color: var(--mhp-ink); line-height: 1.25; margin-bottom: 6px; }
.mhp-links { display: flex; flex-wrap: wrap; gap: 10px; }
.mhp-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--mhp-line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 500; }
.mhp-links a:hover { border-color: var(--mhp-blue); }
.mhp .mhp-noscript { background: #FFF4D6; border: 1px solid #8A5A00; border-radius: var(--mhp-r); padding: 16px 20px; }

/* ---- the tool ---- */
.mhp-app { display: flex; flex-direction: column; gap: 20px; }
.mhp-tool { min-height: 420px; scroll-margin-top: 90px; }
#mh-planner-tool { scroll-margin-top: 190px; }   /* the theme header is sticky: a jump to the tool must stop below it */
.mhp-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--mhp-mut); }
.mhp-steps li { display: flex; align-items: center; gap: 10px; }
.mhp-steps span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #8A949B; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #fff; }
.mhp-steps .is-on { color: var(--mhp-ink); font-weight: 700; }
.mhp-steps .is-on span { background: var(--mhp-accent); border-color: var(--mhp-accent); color: #fff; }
.mhp-steps .is-done span { background: var(--mhp-ink); border-color: var(--mhp-ink); color: #fff; }
.mhp-card { background: #fff; border: 1px solid var(--mhp-line); border-radius: var(--mhp-r); padding: clamp(16px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mhp-card > h3, .mhp-card-head > h3, .mhp-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mhp-mut); line-height: 1.3; }
.mhp-card > h3 label { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.mhp-card-head { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: baseline; }
.mhp-row { display: flex; flex-wrap: wrap; gap: 20px; }
.mhp-card--s { flex: 1 1 200px; } .mhp-card--m { flex: 2 1 320px; } .mhp-card--l { flex: 3 1 460px; }
.mhp-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.mhp-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.mhp-col--form { flex: 1 1 300px; gap: 20px; } .mhp-col--draw { flex: 999 1 420px; }
.mhp-col--plan { flex: 999 1 520px; } .mhp-col--side { flex: 1 1 300px; }
.mhp-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mhp-field > label, .mhp-field > .mhp-label { font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--mhp-ink); margin: 0; }
.mhp-inline { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.mhp-hint { font-size: 14px; color: var(--mhp-mut); }
.mhp .mhp-error { background: #FDECEE; border: 1px solid var(--mhp-accent); color: var(--mhp-warn); border-radius: 6px; padding: 10px 14px; font-weight: 500; }
.mhp-warn { color: var(--mhp-warn); font-weight: 700; }
.mhp-box { border: 1px solid var(--mhp-line); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.mhp .mhp-input { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #8A949B; border-radius: 6px; background: #fff; color: var(--mhp-ink); font: inherit; font-size: 16px; box-shadow: none; margin: 0; }
.mhp .mhp-input:focus { outline: 3px solid rgba(15, 58, 141, .35); outline-offset: 1px; border-color: var(--mhp-blue); }
.mhp .mhp-input--big { width: 140px; min-height: 56px; font: 600 26px/1 "Roboto Mono", Consolas, monospace; border-width: 2px; border-color: var(--mhp-ink); }
.mhp-inline > .mhp-input { width: 120px; }
.mhp textarea.mhp-input { resize: vertical; }
.mhp .mhp-range { width: 100%; height: 44px; margin: 0; accent-color: var(--mhp-ink); }
.mhp-range-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--mhp-mut); }
.mhp .mhp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; margin: 0; cursor: pointer; }
.mhp .mhp-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.mhp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mhp .mhp-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--mhp-ink); border-radius: 6px; background: #fff; color: var(--mhp-ink); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; margin: 0; }
.mhp .mhp-btn:hover { background: var(--mhp-ground); color: var(--mhp-ink); }
.mhp .mhp-btn:focus-visible, .mhp .mhp-choice:focus-visible, .mhp .mhp-no:focus-visible, .mhp .mhp-link:focus-visible { outline: 3px solid rgba(15, 58, 141, .45); outline-offset: 2px; }
.mhp .mhp-btn.is-on { background: var(--mhp-ink); color: #fff; }
.mhp .mhp-btn[disabled] { opacity: .6; cursor: progress; }
.mhp .mhp-btn--primary { background: var(--mhp-accent); border-color: var(--mhp-accent); color: #fff; font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-weight: 800; }
.mhp .mhp-btn--primary:hover { background: var(--mhp-accent-d); border-color: var(--mhp-accent-d); color: #fff; }
.mhp .mhp-btn--xl { min-height: 56px; padding: 0 28px; font-size: 17px; }
.mhp .mhp-btn--s { min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; }
.mhp .mhp-link { appearance: none; background: none; border: 0; padding: 6px 4px; color: var(--mhp-blue); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; min-height: 32px; }
@media (pointer: coarse) { .mhp .mhp-link { min-height: 44px; padding: 10px 6px; } }
.mhp .mhp-or .mhp-phone { white-space: nowrap; }
.mhp-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.mhp .mhp-choice { appearance: none; flex: 1 1 150px; min-height: 64px; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 2px solid #8A949B; border-radius: 6px; background: #fff; color: var(--mhp-ink); font: inherit; text-align: left; cursor: pointer; text-transform: none; }
.mhp .mhp-choice b { font-size: 16px; font-weight: 700; } .mhp .mhp-choice small { font-size: 13px; color: var(--mhp-mut); }
.mhp .mhp-choice.is-on { border-color: var(--mhp-accent); background: #FDECEE; }
.mhp-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.mhp-stepper { display: flex; align-items: center; gap: 10px; }
.mhp-stepper span { flex: 1 1 0; font-size: 14px; }
.mhp .mhp-stepper button { appearance: none; width: 44px; height: 44px; border: 1px solid var(--mhp-ink); border-radius: 6px; background: #fff; color: var(--mhp-ink); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; }
.mhp-stepper output { width: 76px; text-align: center; font-weight: 600; }
/* 1.3.1: sizes typed by hand — the two sides of the room, the width of a door or window, a jog to the centimetre */
.mhp .mhp-input--num { width: 84px; min-height: 44px; text-align: right; font: 600 16px/1 "Roboto Mono", Consolas, monospace; }
.mhp-stepper em, .mhp-open-list em { font-style: normal; font-size: 14px; color: var(--mhp-mut); }
.mhp-dims > .mhp-input--big { width: 112px; }
.mhp-seg { margin-bottom: 10px; }
.mhp-open-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mhp-open-list li { display: flex; align-items: center; gap: 8px; }
.mhp-open-list li > span { flex: 1 1 0; font-size: 14px; }
/* 1.4.9: what the door is for — on its own line under the door, so it fits a phone */
.mhp-open-list li.has-use { flex-wrap: wrap; }
.mhp .mhp-open-list .mhp-use { order: 9; flex: 1 0 100%; width: 100%; min-height: 44px; font-size: 15px; }
.mhp .mhp-x { appearance: none; width: 44px; height: 44px; border: 1px solid #8A949B; border-radius: 6px; background: #fff; color: var(--mhp-ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }

/* photos of the site */
.mhp-ai { background: #EAF0FB; border: 1px solid var(--mhp-blue); border-radius: var(--mhp-r); padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.mhp-ai-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.mhp-ai-head b { display: block; font-size: 16px; } .mhp-ai-head span { font-size: 14px; color: var(--mhp-mut); }
/* 1.4.3: room to work in — the numbers on the plan and the sentence under it */
.mhp-clear { margin: 8px 0 0; font-size: 14px; color: var(--mhp-blue); }
.mhp-clear.is-tight { color: var(--mhp-warn); font-weight: 600; }
.mhp-clear.is-snug { color: #8A5A00; font-weight: 600; }
/* 1.4.4: the tape measure */
.mhp-meas-box { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; align-items: flex-start; }
.mhp-meas-bar { align-self: stretch; background: #F3F4F6; border: 2px solid #111827; border-radius: 6px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.mhp-meas-bar p { margin: 0; font-size: 15px; } .mhp-meas-bar .mhp-inline { align-items: center; }
.mhp .mhp-meas-bar .mhp-btn[aria-pressed="true"] { background: #111827; color: #fff; border-color: #111827; }
.mhp-meas-list { list-style: none; margin: 0; padding: 0; align-self: stretch; display: flex; flex-direction: column; gap: 6px; }
.mhp-meas-list li { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 12px; border: 1px solid var(--mhp-line); border-radius: 6px; background: #fff; font-size: 15px; }
.mhp-meas-list li span { flex: 1 1 auto; } .mhp-meas-list li b { font-family: "Roboto Mono", monospace; white-space: nowrap; }
.mhp-canvas.is-meas { outline: 3px solid #111827; outline-offset: -1px; } .mhp-canvas.is-meas .mhp-svg, .mhp-canvas.is-meas .mhp-it { cursor: crosshair; }
.mhp-ai-head--plan { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mhp-line); }   /* 1.4.0: a ready drawing, next to the photos */
.mhp-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mhp-file:focus-visible + *, .mhp .mhp-btn:has(+ .mhp-file:focus-visible) { outline: 3px solid rgba(15, 58, 141, .45); outline-offset: 2px; }
.mhp-ai-verdict { font: 800 18px/1.3 Montserrat, "Segoe UI", Arial, sans-serif; color: #0E4A42; } .mhp-ai-verdict.is-no { color: #7A4B00; }
.mhp-ai-lists { display: flex; flex-wrap: wrap; gap: 14px 32px; } .mhp-ai-lists > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.mhp-tasks .is-ask { font-weight: 500; }
.mhp-tasks .is-ask::before { content: "?"; background: #8A5A00; color: #fff; font: 700 14px/20px Roboto, Arial, sans-serif; text-align: center; }

/* drawings */
.mhp-canvas { background: var(--mhp-ground); border: 1px solid var(--mhp-line); border-radius: 6px; padding: 4px; overflow: hidden; }
.mhp-svg { display: block; width: 100%; height: auto; max-height: 78vh; user-select: none; -webkit-user-select: none; }
.mhp-svg--room { max-height: 420px; }
.mhp-walls rect { fill: transparent; cursor: crosshair; }
@media (hover: hover) { .mhp-walls rect:hover { fill: rgba(221, 14, 28, .16); } }   /* on touch screens hover sticks after a tap */
.mhp-opening { cursor: pointer; }
.mhp-block { cursor: grab; touch-action: none; }
.mhp-block.is-sel { stroke: var(--mhp-accent); stroke-width: 50; }
.mhp-it, .mhp-it * { touch-action: none; }   /* on the group alone it does nothing: the finger lands on the shapes inside it */
.mhp-it { cursor: grab; }
.mhp-opening--hit { cursor: pointer; }
.mhp .mhp-zoom { display: none; align-self: flex-start; }
.mhp-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; } .mhp-nudge span { flex: 1 0 100%; font-size: 13px; color: var(--mhp-mut); }
.mhp .mhp-nudge .mhp-btn { min-width: 48px; min-height: 44px; padding: 0 12px; font-size: 20px; line-height: 1; }
@media (max-width: 900px) {
  /* on a phone the chosen appliance and its buttons sit right under the plan, before the checklist */
  .mhp-col--side { display: contents; } .mhp-col--plan { order: 1; flex-basis: 100%; } .mhp-selected { order: 2; flex: 1 1 100%; } .mhp-col--side > :not(.mhp-selected) { order: 3; flex: 1 1 100%; }
  .mhp .mhp-zoom { display: inline-flex; }
  .mhp-canvas.is-zoom { overflow: auto; -webkit-overflow-scrolling: touch; max-height: 74vh; } .mhp-canvas.is-zoom .mhp-svg { width: 220%; max-width: none; max-height: none; }
}
.mhp-it:active { cursor: grabbing; }
.mhp-it.is-sel > rect:first-of-type { stroke: var(--mhp-accent); stroke-width: 44; }
.mhp-it:focus, .mhp-block:focus, .mhp-opening:focus { outline: none; }
.mhp-it:focus-visible > rect:first-of-type, .mhp-block:focus-visible, .mhp-opening:focus-visible { stroke: var(--mhp-blue); stroke-width: 54; }
.mhp-handle { cursor: grab; }
.mhp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; }
.mhp-legend span, .mhp-page-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mhp-legend i, .mhp-page-legend i { width: 18px; height: 14px; border: 1.5px solid; display: inline-block; }
.mhp-legend i.is-dash, .mhp-page-legend i.is-dash { border: 1.5px dashed #9A4312; }
.mhp-legend .mhp-btn { margin-left: auto; }

/* readiness */
.mhp-score { background: var(--mhp-ground); border-radius: var(--mhp-r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mhp-score-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mhp-score-head span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mhp-mut); }
.mhp-score-head b { font: 800 22px/1 Montserrat, "Segoe UI", Arial, sans-serif; color: var(--mhp-accent); white-space: nowrap; }
.mhp-bar { height: 12px; border-radius: 999px; background: var(--mhp-line); overflow: hidden; }
.mhp-bar i { display: block; height: 12px; border-radius: 999px; background: var(--mhp-accent); transition: width .25s ease; }
.mhp-score.is-done .mhp-score-head b { color: var(--mhp-ok); } .mhp-score.is-done .mhp-bar i { background: var(--mhp-ok); }
.mhp-score-msg { font-weight: 700; color: var(--mhp-warn); } .mhp-score.is-done .mhp-score-msg { color: var(--mhp-ok); }
.mhp-tasks { display: flex; flex-direction: column; gap: 7px; }
.mhp-tasks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.3; min-height: 20px; }
.mhp-tasks li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; }
.mhp-tasks .is-ok::before { background: var(--mhp-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.6 10.3l2.9 2.9 5.9-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/20px no-repeat; }
.mhp-tasks .is-no { color: var(--mhp-warn); font-weight: 700; }
.mhp-tasks .is-no::before { border: 2px dashed #B42318; background: #fff; }
.mhp-free { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--mhp-line); padding-top: 10px; font-size: 14px; color: var(--mhp-mut); }
.mhp-free b { color: var(--mhp-ink); font-size: 16px; }
.mhp-selected { min-height: 150px; }
.mhp-sel-head { display: flex; gap: 12px; align-items: flex-start; }
.mhp-sel-head b { display: block; font-size: 16px; line-height: 1.3; } .mhp-sel-head small { display: block; font-size: 13px; color: var(--mhp-mut); margin-top: 4px; }
.mhp-sel-head small.mhp-warn { color: var(--mhp-warn); }
.mhp-thumb { flex: none; border-radius: 4px; background: #fff; object-fit: contain; border: 1px solid var(--mhp-line); }
.mhp .mhp-notes { background: #FFF4D6; border: 1px solid #8A5A00; border-radius: 6px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.mhp-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-end; }
.mhp-title { font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: clamp(24px, 3.2vw, 30px); font-weight: 800; line-height: 1.15; }
.mhp .mhp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.mhp-chips span { padding: 6px 12px; background: #fff; border: 1px solid var(--mhp-line); border-radius: 999px; font-size: 14px; }
.mhp-levels { display: flex; flex-wrap: wrap; gap: 8px; }

/* offer */
.mhp-table-wrap { overflow-x: auto; border: 1px solid var(--mhp-line); border-radius: 6px; }
.mhp .mhp-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 15px; background: #fff; }
.mhp .mhp-table th { background: #ECEDEA; text-align: left; font-size: 13px; font-weight: 700; padding: 8px 12px; border: 0; white-space: nowrap; }
.mhp .mhp-table td { padding: 6px 12px; border: 0; border-top: 1px solid var(--mhp-line); vertical-align: middle; }
.mhp .mhp-table tr.is-sel td { background: #FDECEE; }
.mhp .mhp-table small { display: block; font-size: 12px; color: var(--mhp-mut); }
.mhp .mhp-table small.mhp-warn { color: var(--mhp-warn); }
.mhp .mhp-table .mhp-mono { font-size: 13px; white-space: nowrap; }
.mhp-td-name { display: flex; gap: 12px; align-items: center; min-width: 260px; }
.mhp-td-name a { font-weight: 500; text-decoration: none; color: var(--mhp-ink); } .mhp-td-name a:hover { text-decoration: underline; color: var(--mhp-blue); }
.mhp-td-act { white-space: nowrap; text-align: right; } .mhp-td-act .mhp-btn + .mhp-btn { margin-left: 6px; }
.mhp .mhp-no { appearance: none; width: 44px; height: 44px; border: 1.5px solid; border-radius: 0; font: 700 14px/1 "Roboto Mono", Consolas, monospace; color: var(--mhp-ink); cursor: pointer; padding: 0; }
.mhp-price { text-align: right; white-space: nowrap; font: 600 15px/1.3 "Roboto Mono", Consolas, monospace; }
.mhp-price s { display: block; font-weight: 400; font-size: 12px; color: var(--mhp-mut); }
.mhp-instock { color: var(--mhp-ok); font-weight: 700; } .mhp-order { color: var(--mhp-mut); }
.mhp-totals { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; border-top: 1px solid var(--mhp-line); padding-top: 16px; }
.mhp-totals > div { flex: 1 1 150px; display: flex; flex-direction: column; gap: 2px; }
.mhp-totals span, .mhp-totals small { font-size: 13px; color: var(--mhp-mut); }
.mhp-totals b { font: 600 26px/1.15 "Roboto Mono", Consolas, monospace; }

/* consultant */
.mhp-consult { background: var(--mhp-ink); color: #fff; border-radius: var(--mhp-r); padding: clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: flex-start; }
.mhp-consult-who { flex: none; width: 150px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.mhp-consult-who img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.mhp-consult-who small { font-size: 13px; color: #D6DBE6; line-height: 1.35; }
.mhp-consult-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mhp-consult h3 { font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: clamp(22px, 2.8vw, 26px); line-height: 1.2; font-weight: 800; color: #fff; }
.mhp-consult p { color: #D6DBE6; } .mhp-consult p b { color: #fff; }
.mhp-consult-cta { flex: 1 1 240px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mhp-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.mhp-form-grid { display: flex; flex-wrap: wrap; gap: 14px; } .mhp-form-grid > .mhp-field { flex: 1 1 200px; }
.mhp-consult .mhp-field > label { color: #fff; font-size: 14px; font-weight: 500; }
.mhp-consult .mhp-hint, .mhp-consult .mhp-check { color: #D6DBE6; } .mhp-consult a { color: #fff; }
.mhp .mhp-consult .mhp-link { color: #fff; font-weight: 700; padding: 0 2px; min-height: 0; }
@media (pointer: coarse) { .mhp .mhp-consult [data-email-hint] .mhp-link { min-height: 44px; padding: 10px 6px; } } .mhp-consult [data-email-hint][hidden] { display: none; }
.mhp-consult--done .mhp-consult-cta .mhp-btn:not(.mhp-btn--primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.mhp-consult input[type="file"] { color: #D6DBE6; font-size: 14px; max-width: 100%; }
.mhp-or { color: #D6DBE6; font-size: 15px; }
.mhp .mhp-phone { font: 800 clamp(19px, 5.4vw, 24px)/1.15 Montserrat, "Segoe UI", Arial, sans-serif; color: #fff; text-decoration: none; display: inline-flex; flex-wrap: wrap; min-height: 44px; align-items: center; max-width: 100%; }
.mhp .mhp-warnline { margin-top: 8px; padding: 8px 12px; border-radius: var(--mhp-r); background: #FFF4D6; color: #5C4300; font-size: 14px; }

/* dialog */
.mhp-dialog { border: 0; border-radius: var(--mhp-r); padding: 20px; width: min(680px, calc(100vw - 24px)); max-height: 86vh; overflow: auto; color: var(--mhp-ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.mhp-dialog:not([open]) { display: none; }
.mhp-dialog::backdrop { background: rgba(20, 26, 36, .55); }
.mhp-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.mhp-dialog-head h3 { font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: 20px; font-weight: 800; }
.mhp .mhp-plist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mhp .mhp-plist button { appearance: none; width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; min-height: 64px; border: 1px solid var(--mhp-line); border-radius: 6px; background: #fff; color: var(--mhp-ink); font: inherit; cursor: pointer; text-transform: none; }
.mhp .mhp-plist button:hover { border-color: var(--mhp-blue); background: var(--mhp-ground); }
.mhp-plist span { flex: 1 1 0; min-width: 0; } .mhp-plist b { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; } .mhp-plist small { display: block; font-size: 13px; color: var(--mhp-mut); }
.mhp-plist em { font: 600 15px/1 "Roboto Mono", Consolas, monospace; font-style: normal; white-space: nowrap; }

/* ---- printable sheet: one A3 landscape page, the same on screen and on paper ---- */
.mhp-sheet-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 16px; }
.mhp-sheet-scroll { overflow-x: auto; padding-bottom: 8px; }
.mhp-page { box-sizing: border-box; width: 404mm; height: 281mm; overflow: hidden; background: #fff; border: 0.5mm solid var(--mhp-ink); padding: 4.5mm 5mm; display: grid; grid-template-columns: minmax(0, 1fr) 162mm; grid-template-rows: auto minmax(0, 1fr); gap: 3mm 6mm; font-size: 8pt; line-height: 1.3; color: var(--mhp-ink); }
.mhp-page.is-long { height: auto; overflow: visible; }
.mhp-page-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 8mm; border-bottom: 0.5mm solid var(--mhp-ink); padding-bottom: 2mm; }
.mhp .mhp-page h1 { font: 800 15pt/1.15 Montserrat, "Segoe UI", Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase; margin: 0; }
.mhp .mhp-page-head p { font-size: 9.5pt; margin-top: 1mm; }
.mhp-page-no { text-align: right; white-space: nowrap; } .mhp-page-no small { display: block; font-size: 6.5pt; text-transform: uppercase; letter-spacing: .05em; color: var(--mhp-mut); }
.mhp-page-no b { font: 600 15pt/1.1 "Roboto Mono", Consolas, monospace; } .mhp-page-no span { font: 500 9pt/1 "Roboto Mono", Consolas, monospace; margin-left: 4mm; }
.mhp-page-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 2.5mm; }
.mhp-page-plan { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.mhp-page-plan .mhp-svg { display: block; width: 100%; height: auto; max-height: none; }
.mhp-page-legend { display: flex; flex-wrap: wrap; gap: 1.5mm 4.5mm; align-items: center; font-size: 8pt; }
.mhp-page-legend .mhp-mono { font-weight: 600; margin-right: 2mm; }
.mhp-mark { display: inline-flex; width: 4.4mm; height: 4.4mm; border-radius: 50%; border: 1px solid var(--mhp-ink); align-items: center; justify-content: center; font-size: 6.5pt; }
.mhp-mark--g { background: #F3B98F; } .mhp-mark--w { background: var(--mhp-ink); color: #fff; }
.mhp-page-boxes { display: grid; grid-template-columns: 5fr 7fr; gap: 4mm; }
.mhp-page-boxes section { border: 1px solid var(--mhp-ink); padding: 2mm 2.6mm; min-width: 0; max-height: 48mm; overflow: hidden; }
.mhp-box-list.is-note li span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mhp .mhp-page-boxes h2 { font: 800 8pt/1.2 Montserrat, "Segoe UI", Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1.2mm; }
.mhp .mhp-box-lead { margin: 0 0 1mm; } .mhp .mhp-box-list { list-style: none; padding: 0; margin: 0; }
.mhp .mhp-box-list li { position: relative; padding-left: 4mm; margin-top: .5mm; }
.mhp-box-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: #1B6E3A; }
.mhp-box-list.is-no li::before { content: "!"; color: #B42318; left: 1mm; } .mhp-box-list.is-note li::before { content: "•"; color: var(--mhp-ink); left: .8mm; }
.mhp .mhp-box-quote { margin: 1.5mm 0 0; padding-left: 2.2mm; border-left: 0.6mm solid var(--mhp-blue); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mhp-box-quote small { display: block; font-size: 6.5pt; text-transform: uppercase; letter-spacing: .05em; color: var(--mhp-mut); }
.mhp .mhp-box-fine { margin: 0; font-size: 6.8pt; line-height: 1.25; color: var(--mhp-mut); }
.mhp-page-side { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 3mm; }
.mhp-page-foot { margin-top: auto; display: grid; grid-template-columns: 64mm minmax(0, 1fr); gap: 3mm; align-items: end; }
.mhp .mhp-spec, .mhp .mhp-sum, .mhp .mhp-stamp { width: 100%; border-collapse: collapse; font-size: 7.6pt; }
.mhp .mhp-spec { table-layout: fixed; }
.mhp .mhp-spec th, .mhp .mhp-spec td, .mhp .mhp-sum td, .mhp .mhp-stamp td { border: 1px solid var(--mhp-ink); padding: .9mm 1.3mm; text-align: left; vertical-align: middle; }
.mhp .mhp-spec th { background: #ECEDEA; font-weight: 700; font-size: 6.8pt; }
.mhp .mhp-spec th:nth-child(1) { width: 14mm; } .mhp .mhp-spec th:nth-child(3) { width: 7.5mm; } .mhp .mhp-spec th:nth-child(4) { width: 25mm; } .mhp .mhp-spec th:nth-child(5) { width: 9.5mm; }
.mhp .mhp-spec th:nth-child(6) { width: 9.5mm; } .mhp .mhp-spec th:nth-child(7) { width: 9mm; } .mhp .mhp-spec th:nth-child(8) { width: 8mm; } .mhp .mhp-spec th:nth-child(9) { width: 18.5mm; }
.mhp .mhp-spec td:nth-child(1) { font: 600 7.6pt/1.2 "Roboto Mono", Consolas, monospace; }
.mhp .mhp-spec td:nth-child(n+3) { white-space: nowrap; font-family: "Roboto Mono", Consolas, monospace; font-size: 7pt; } .mhp .mhp-spec td:nth-child(3), .mhp .mhp-spec td:nth-child(7), .mhp .mhp-spec td:nth-child(8) { text-align: center; }
.mhp .mhp-spec td:last-child, .mhp .mhp-sum td:last-child { text-align: right; white-space: nowrap; font-family: "Roboto Mono", Consolas, monospace; }
.mhp-spec-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .mhp-spec-name a { color: inherit; text-decoration: none; }
.mhp-page.is-dense .mhp-spec-name { -webkit-line-clamp: 1; } .mhp-page.is-dense .mhp-spec td { padding-top: .7mm; padding-bottom: .7mm; }
.mhp .mhp-spec tr { break-inside: avoid; page-break-inside: avoid; } .mhp .mhp-spec thead { display: table-header-group; }
.mhp .mhp-spec tfoot td { font-weight: 700; font-size: 8.5pt; background: #ECEDEA; }
.mhp .mhp-stamp small { display: block; font-size: 6.3pt; color: var(--mhp-mut); text-transform: uppercase; letter-spacing: .05em; } .mhp .mhp-stamp b { font-size: 10.5pt; }
.mhp .mhp-stamp td { vertical-align: top; }

@media (max-width: 640px) {
  .mhp-howto li { padding-left: 76px; }
  .mhp-consult-who { width: 100%; flex-direction: row; text-align: left; align-items: center; gap: 14px; }
  .mhp-consult-who img { width: 72px; height: 72px; }
  .mhp .mhp-btn--xl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mhp-bar i { transition: none; } }
@media screen and (max-width: 900px) {
  /* a phone cannot show an A3 page: the same sheet, stacked and readable */
  .mhp-page { width: auto; height: auto; overflow: visible; display: block; padding: 12px; font-size: 13px; line-height: 1.4; }
  .mhp-page > * + *, .mhp-page-main > * + *, .mhp-page-side > * + * { margin-top: 14px; }
  .mhp-page-main, .mhp-page-side { display: block; }
  .mhp-page-head { flex-wrap: wrap; } .mhp .mhp-page h1 { font-size: 17px; } .mhp .mhp-page-head p { font-size: 13px; } .mhp-page-no { text-align: left; }
  .mhp-page-plan > div { width: 100% !important; }
  .mhp-page-legend { font-size: 12px; } .mhp-mark { width: 18px; height: 18px; font-size: 10px; }
  .mhp-page-boxes, .mhp-page-foot { display: block; } .mhp-page-boxes section + section, .mhp-page-foot table + table { margin-top: 12px; }
  .mhp .mhp-page-boxes h2 { font-size: 12px; } .mhp .mhp-box-fine, .mhp-box-quote small, .mhp .mhp-stamp small { font-size: 11px; }
  .mhp .mhp-spec, .mhp .mhp-sum, .mhp .mhp-stamp { font-size: 12.5px; table-layout: auto; }
  .mhp .mhp-spec th, .mhp .mhp-spec td:nth-child(n) { font-size: 12.5px; padding: 6px 5px; width: auto; }
  .mhp .mhp-spec th:nth-child(n+4):nth-child(-n+8), .mhp .mhp-spec td:nth-child(n+4):nth-child(-n+8) { display: none; }
  .mhp .mhp-spec tfoot td:nth-child(3) { display: none; } .mhp .mhp-spec tfoot td:nth-child(n+4):nth-child(-n+8) { display: table-cell; }
  .mhp-spec-name, .mhp-page.is-dense .mhp-spec-name { -webkit-line-clamp: 3; }
  .mhp-page-boxes section { max-height: none; } .mhp-box-list.is-note li span, .mhp .mhp-box-quote { -webkit-line-clamp: 8; }
  .mhp .mhp-box-list li { padding-left: 16px; } .mhp .mhp-box-quote { padding-left: 8px; }
}
@media print {
  @page { size: A3 landscape; margin: 7mm; }
  .mhp-sheet-tools { display: none !important; }
  .mhp-sheet-scroll { overflow: visible; padding: 0; }
  .mhp-page { zoom: 1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
