/* Space Heater Owner's Manual (Space Heater + Mini) additions on top of ../styles.css, ../lite/lite.css,
   ../owners/owners.css, ../fan/fan.css and ../purifier/purifier.css. */

.hz-sub { margin: 28px 0 14px; font-weight: 700; }
/* long numbered lists: flowing columns (down the left first, as printed) so a long rule doesn't leave a gap beside a short one */
.fn-rules { display: block; columns: 2; column-gap: 48px; }
.fn-rules li { break-inside: avoid; margin-bottom: 16px; }
.hz-hint { margin-top: -8px; }
.lw-ico.sm svg { width: 34px; margin-left: 0; }
.hz-row a, .hz-warnbox a, .pu-box a { overflow-wrap: anywhere; } /* the support email can't push a narrow column wider */
.hz-tip { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(14, 34, 64, .55); background: #fff; }
.hz-ol { margin: 8px 0 0; padding-left: 20px; }
.hz-ol li { margin-bottom: 6px; }

/* the heater's front view, cut from the manual's "Get to know" drawing (left 41% of it) */
.hz-front { background: var(--img) 16.9% 0 / 244% auto no-repeat; aspect-ratio: .363; mix-blend-mode: multiply; }

/* Important safety instructions panel */
.hz-important { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, .8fr); gap: 22px 30px; align-items: start; padding: 22px 26px; border-radius: 18px; border: 1px solid rgba(14, 34, 64, .55); background: var(--lw-panel); }
.hz-imp-a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.hz-imp-a .fn-chip { grid-column: 1 / -1; justify-self: start; margin: 0; }
.hz-imp-a p { margin: 0; font-size: 14px; }
.hz-important figure { margin: 0; display: grid; gap: 10px; font-size: 13.5px; }
.hz-important img { height: 120px; width: auto; mix-blend-mode: multiply; }

/* 3-foot clearance diagram */
.hz-clear { margin-top: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 20px 24px; border-radius: 18px; background: var(--lw-panel); }
.hz-clear .kicker { grid-column: 1 / -1; margin: 0; }
.hz-clear .lw-small { margin: 0; max-width: 48ch; }
.hz-room { position: relative; width: 280px; height: 150px; }
.hz-room img { position: absolute; left: 0; bottom: 0; height: 140px; width: auto; mix-blend-mode: multiply; clip-path: inset(0 52% 0 0); }
.hz-zone { position: absolute; left: var(--zl); bottom: 6px; width: 210px; height: 120px; border-radius: 0 60px 60px 0; background: radial-gradient(120% 90% at 0% 60%, rgba(255, 138, 31, .32), rgba(255, 138, 31, .06) 70%, transparent 72%); border: 1.5px dashed rgba(233, 121, 43, .7); border-left: 0; animation: zone 3s var(--ease-io) infinite; }
@keyframes zone { 50% { opacity: .55; } }
.hz-ft { position: absolute; right: 14px; top: 8px; font-size: 12px; font-weight: 700; color: #c4561a; }

/* Hyperthermia page */
.hz-warnbox { display: grid; gap: 18px; padding: 22px 26px; border-radius: 18px; border: 1px solid rgba(14, 34, 64, .55); background: var(--lw-panel); font-size: 14.5px; }
.hz-warnbox > div { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; }
.hz-warnbox p { margin: 0 0 10px; }
.hz-warnbox p:last-child { margin: 0; }
.hz-specs { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.hz-specs .hz-sub { margin: 0 0 10px; }
.hz-spec { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--navy); font-size: 14px; text-align: center; }
.hz-spec > div { padding: 10px 12px; border: .75px solid var(--navy); }
.hz-hot { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; align-items: center; font-size: 14px; }
.hz-hot p { margin: 0 0 8px; }
.hz-hot img { width: 110px; height: auto; mix-blend-mode: multiply; }

/* Get to know */
.hz-fig { max-width: 560px; }
.hz-fig img { mix-blend-mode: multiply; }

/* Display & controls simulator */
.hz-sim { --heat: 0; position: relative; margin-top: 12px; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--ink-08); box-shadow: 0 30px 60px -40px rgba(14, 34, 64, .4);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 36px; align-items: center; }
.hz-unit { display: grid; justify-items: center; perspective: 600px; }
/* --fsize / --fpos / --fasp / --fw / --glow / --ledx / --ledy come from MODEL[...].front in app.js */
.hz-body { position: relative; width: var(--fw); }
.hz-body::before { content: ""; display: block; background: var(--img) var(--fpos) 0 / var(--fsize) auto no-repeat; aspect-ratio: var(--fasp); mix-blend-mode: multiply; }
.hz-sim.osc .hz-body { animation: swing 6s var(--ease-io) infinite; }
@keyframes swing { 0%, 100% { transform: rotateY(-28deg); } 50% { transform: rotateY(28deg); } }
/* heat glowing out of the front grille, stronger at higher heat levels */
.hz-glow { position: absolute; inset: var(--glow); border-radius: 6px; background: linear-gradient(180deg, rgba(255, 106, 0, .55), rgba(255, 166, 61, .4)); opacity: calc(var(--heat) * .9); transition: opacity 1.2s; mix-blend-mode: multiply; }
.hz-sim.heating .hz-glow { animation: glowPulse 2.4s var(--ease-io) infinite; }
@keyframes glowPulse { 50% { filter: brightness(1.25); } }
.hz-body::after { content: ""; position: absolute; left: 100%; top: 22%; width: 70px; height: 56%; opacity: 0; transition: opacity .6s;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 138, 31, calc(.15 + var(--heat) * .35)) 8px 10px); -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); }
.hz-sim.blowing .hz-body::after { opacity: 1; animation: waves 1.4s linear infinite; }
@keyframes waves { to { background-position: 18px 0; } }
.hz-led { position: absolute; left: var(--ledx); top: var(--ledy); width: 5px; height: 5px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; } /* plugged in: always on */

.hz-right { display: grid; justify-items: center; gap: 18px; }
.hz-disp { --n: 3; display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 14px; background: #3a3d44; color: #fff; transition: opacity .9s; }
.hz-col { display: grid; gap: 6px; justify-items: center; }
.hz-col i { display: grid; place-items: center; width: 26px; height: 22px; font-style: normal; color: rgba(255, 255, 255, .14); transition: color .3s; }
.hz-col i svg { width: 22px; height: 22px; }
.hz-col i.txt { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.hz-col i.lit { color: #fff; }
.hz-sim.degflash [data-ic="deg"] { animation: blink 1s steps(2, end) infinite; }
.hz-digits { display: flex; gap: 8px; }
.hz-digits svg { width: 44px; height: 64px; }
.hz-digits path { fill: rgba(255, 255, 255, .08); transition: fill .2s; }
.hz-digits path.on { fill: #fff; }
.hz-sim.faded .hz-disp { opacity: .15; }
.hz-sim.flash .hz-disp { animation: dispFlash .45s steps(2, end) var(--n); }
@keyframes dispFlash { 50% { opacity: .1; } }
.hz-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hz-btns button {
  position: relative; width: 50px; height: 50px; padding: 0; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .15s var(--ease-out), background .2s;
}
.hz-btns button svg { width: 22px; height: 22px; }
.hz-btns button.txt { font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.hz-btns button:hover { background: var(--blob); }
.hz-btns button:active { transform: scale(.93); }
.hz-btns button.holding::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(var(--navy) calc(var(--p, 0) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: holdRing 3s linear forwards;
}
.hz-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; font-size: 12.5px; }
.hz-demo { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.hz-sim .ctl-toast { top: -16px; right: 24px; max-width: calc(100% - 48px); }
.sim-info .hz-tip { margin-top: 10px; }
.hz-legend { margin: 22px 0 0; }
.hz-legend img { width: 100%; max-width: 760px; height: auto; }
.hz-legend figcaption { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink-70); }

/* Cleaning */
.hz-clean { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.hz-card { border: 1px solid rgba(14, 34, 64, .55); border-radius: 18px; padding: 20px 22px; background: #fff; }
.hz-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 16px; font-size: 14.5px; }
.hz-row:last-child { margin-bottom: 0; }
.hz-row img { width: 100%; max-height: 150px; object-fit: contain; }
.hz-row.sm { grid-template-columns: 68px minmax(0, 1fr); font-size: 13.5px; }
.hz-row p { margin: 0; }
.hz-att { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; }
.hz-donts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; font-size: 12.5px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.hz-donts figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.hz-donts img { width: auto; height: 84px; }

/* Remote */
.hz-remote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.hz-remote .fn-k { text-align: center; }
.hz-rimg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.hz-bimg { width: 150px; height: auto; display: block; margin: 14px auto 0; }
.hz-batwarn { margin-top: 22px; }

/* Welcome hero: the front + back drawing on a soft card */
.hz-hero { background: rgba(255, 255, 255, .7); border-radius: 22px; padding: 14px 22px; margin: 10px 0 16px; box-shadow: 0 30px 50px -36px rgba(30, 40, 90, .5); }
.hz-hero img { height: min(230px, 30vh); width: auto; mix-blend-mode: multiply; }

@media (max-width: 1180px) {
  .hz-important { grid-template-columns: 1fr 1fr; }
  .hz-imp-a { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hz-sim, .hz-clean, .hz-remote, .hz-specs, .hz-clear { grid-template-columns: 1fr; }
  .fn-rules { columns: 1; }
  .hz-sim { padding: 18px 12px; justify-items: center; }
  .hz-important img { height: 96px; }
  .hz-digits svg { width: 36px; height: 52px; }
  .hz-disp { padding: 12px 14px; gap: 10px; }
  .hz-btns { gap: 8px; }
  .hz-btns button { width: 42px; height: 42px; } /* all six fit one row on a phone */
  .hz-room { width: 240px; }
  .hz-zone { width: 170px; }
}
@media (max-width: 480px) {
  .hz-btns { gap: 4px; }
  .hz-btns button { width: 37px; height: 37px; } /* six still fit one row at 320px */
  .hz-btns button svg { width: 19px; height: 19px; }
  .hz-body::after { width: 48px; } /* the heat ribbon stays inside the panel next to the Mini's wider body */
  .hz-donts img { height: 64px; }
  .hz-row { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hz-sim *, .hz-zone { animation: none !important; }
}
