/* Nordmann Sauna configurator. Every rule is scoped to .nmc (the mount element); no resets, no global selectors. */
.nmc {
  --nmc-green: #146346; --nmc-cream: #F5EDD9; --nmc-charcoal: #252525; --nmc-ink: #121331;
  --nmc-paper: #F6EDDB;            /* matches the studio background of the renders */
  --nmc-line: rgba(37, 37, 37, .14); --nmc-muted: rgba(37, 37, 37, .62);
  --nmc-font-heading-default: "TAY Dreamboat", "tay-dreamboat", "Schibsted Grotesk", sans-serif;
  container-type: inline-size; container-name: nmc;
  display: block; width: 100%; max-width: 1440px; margin: 0 auto; box-sizing: border-box;
  color: var(--nmc-charcoal); font-family: inherit; font-size: 16px; line-height: 1.5; text-align: left;
  -webkit-font-smoothing: antialiased;
}
.nmc *, .nmc *::before, .nmc *::after { box-sizing: border-box; }
.nmc .nmc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

/* ---------- stage (image) ---------- */
.nmc .nmc-stage {
  position: sticky; top: var(--nmc-top, 0px); z-index: 2; background: var(--nmc-paper);
  margin: 0 calc(-1 * var(--nmc-bleed, 0px));
}
.nmc .nmc-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 42svh; background: var(--nmc-paper); overflow: hidden; }
.nmc .nmc-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0;
  object-fit: contain; opacity: 0; transition: opacity .35s ease; user-select: none; -webkit-user-select: none;
}
.nmc .nmc-img.is-on { opacity: 1; }
.nmc .nmc-frame.is-plan .nmc-img { background: #fff; }
.nmc .nmc-loading {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--nmc-green);
  transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .2s;
}
.nmc .nmc-frame.is-busy .nmc-loading { opacity: .8; animation: nmc-load 1.2s ease-in-out infinite; }
@keyframes nmc-load { 0% { transform: scaleX(0); } 60% { transform: scaleX(.85); } 100% { transform: scaleX(1); opacity: 0; } }
.nmc .nmc-viewnote {
  position: absolute; left: 12px; bottom: 10px; margin: 0; padding: 4px 10px; max-width: calc(100% - 24px);
  font-size: 12px; line-height: 1.4; color: var(--nmc-charcoal); background: rgba(246, 237, 219, .9);
}
.nmc .nmc-views { display: flex; gap: 2px; padding: 8px 16px 0; overflow-x: auto; scrollbar-width: none; }
.nmc .nmc-views[hidden], .nmc [hidden] { display: none !important; }
.nmc .nmc-tab {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  background: none; padding: 6px 10px; font: inherit; font-size: 13px; letter-spacing: .02em; text-transform: none;
  color: var(--nmc-muted); cursor: pointer; white-space: nowrap; line-height: 1.3; min-height: 36px; box-shadow: none;
}
.nmc .nmc-tab[aria-selected="true"] { color: var(--nmc-charcoal); border-bottom-color: var(--nmc-charcoal); }
.nmc .nmc-caption { padding: 10px 16px 12px; border-bottom: 1px solid var(--nmc-line); }
.nmc .nmc-title {
  margin: 0; padding: 0; font-family: var(--nmc-font-heading, var(--nmc-font-heading-default)); font-weight: 400;
  font-size: clamp(18px, 5.2cqw, 26px); line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; color: var(--nmc-ink);
}
.nmc .nmc-sub { margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--nmc-muted); line-height: 1.4; }

/* ---------- panel (controls) ---------- */
.nmc .nmc-panel { padding: 8px 16px 32px; position: relative; z-index: 1; }
.nmc .nmc-eyebrow { display: none; }
.nmc .nmc-sec { padding: 18px 0 20px; border-bottom: 1px solid var(--nmc-line); margin: 0; }
.nmc .nmc-h {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; padding: 0;
  font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--nmc-charcoal);
}
.nmc .nmc-val { font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: 13px; color: var(--nmc-muted); text-align: right; }
.nmc .nmc-subh { margin: 14px 0 8px; padding: 0; font-size: 12px; color: var(--nmc-muted); letter-spacing: .04em; }
.nmc .nmc-opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 0; padding: 0; }
.nmc .nmc-opts + .nmc-opts { margin-top: 10px; }
.nmc .nmc-opt {
  appearance: none; -webkit-appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 0;
  padding: 10px 12px; border: 1px solid var(--nmc-line); border-radius: 2px; background: transparent; box-shadow: none;
  font: inherit; font-size: 14px; line-height: 1.25; letter-spacing: 0; text-transform: none; text-align: left; color: var(--nmc-charcoal);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.nmc .nmc-opt:hover { border-color: rgba(37, 37, 37, .4); }
.nmc .nmc-opt[aria-pressed="true"] { border-color: var(--nmc-charcoal); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px var(--nmc-charcoal); }
.nmc .nmc-opt-t { display: flex; flex-direction: column; min-width: 0; }
.nmc .nmc-opt-l { font-weight: 500; }
.nmc .nmc-opt-n { font-size: 12px; color: var(--nmc-muted); margin-top: 2px; }
.nmc .is-cards .nmc-opt { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; min-height: 64px; }
.nmc .is-cards .nmc-opt-l { font-family: var(--nmc-font-heading, var(--nmc-font-heading-default)); font-weight: 400; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--nmc-ink); }
.nmc .is-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nmc .is-seg { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; }
.nmc .is-seg .nmc-opt { justify-content: center; min-height: 44px; border-radius: 0; }
.nmc .is-seg .nmc-opt + .nmc-opt { margin-left: -1px; }
.nmc .is-swatches { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.nmc .nmc-sw {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: #ddd center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.nmc .nmc-sw.is-metal { border-radius: 2px; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 7px, rgba(255,255,255,.14) 7px 8px, rgba(0,0,0,.18) 8px 9px); }
.nmc .nmc-opt[aria-pressed="true"] .nmc-sw { box-shadow: 0 0 0 2px var(--nmc-paper), 0 0 0 3px var(--nmc-charcoal); }
.nmc .nmc-toggle {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; padding: 6px 0;
  border: 0; background: none; box-shadow: none; font: inherit; font-size: 14px; color: var(--nmc-charcoal); cursor: pointer; text-transform: none; letter-spacing: 0;
}
.nmc .nmc-toggle-k { position: relative; width: 42px; height: 24px; border-radius: 12px; background: rgba(37, 37, 37, .22); transition: background .2s; flex: none; }
.nmc .nmc-toggle-k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.nmc .nmc-toggle[aria-checked="true"] .nmc-toggle-k { background: var(--nmc-green); }
.nmc .nmc-toggle[aria-checked="true"] .nmc-toggle-k::after { transform: translateX(18px); }
.nmc .nmc-notice { margin: 14px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.45; background: rgba(20, 99, 70, .08); color: var(--nmc-ink); border-left: 2px solid var(--nmc-green); }

/* summary + CTA */
.nmc .nmc-summary { padding: 22px 0 8px; margin: 0; }
.nmc .nmc-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; padding: 0; font-size: 14px; }
.nmc .nmc-dl dt { margin: 0; color: var(--nmc-muted); }
.nmc .nmc-dl dd { margin: 0; color: var(--nmc-charcoal); }
.nmc .nmc-cta {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 0; padding: 14px 20px;
  background: var(--nmc-green); color: var(--nmc-cream) !important; border: 0; border-radius: 2px; text-decoration: none !important;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: background .2s;
}
.nmc .nmc-cta:hover { background: #0f5139; }
.nmc .nmc-fine { margin: 8px 0 0; padding: 0; font-size: 12px; line-height: 1.45; color: var(--nmc-muted); }
.nmc .nmc-id { word-break: break-all; opacity: .8; }
.nmc .nmc-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.nmc .nmc-link {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 8px 0; min-height: 40px; border: 0; background: none; box-shadow: none;
  font: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--nmc-ink) !important;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(18, 19, 49, .35); cursor: pointer;
}
.nmc .nmc-yours { padding: 22px 0 0; margin-top: 16px; border-top: 1px solid var(--nmc-line); }
.nmc .nmc-p { margin: 0; padding: 0; font-size: 15px; line-height: 1.6; color: var(--nmc-charcoal); }

/* focus: visible, understated */
.nmc .nmc-opt:focus-visible, .nmc .nmc-tab:focus-visible, .nmc .nmc-toggle:focus-visible, .nmc .nmc-link:focus-visible, .nmc .nmc-cta:focus-visible {
  outline: 2px solid var(--nmc-green); outline-offset: 2px;
}

/* boot + error */
.nmc .nmc-boot-frame { width: 100%; aspect-ratio: 4 / 3; max-height: 70vh; background: var(--nmc-paper); }
.nmc .nmc-error { margin: 0; padding: 32px 20px; text-align: center; background: var(--nmc-paper); font-size: 15px; }
.nmc #nmc-selftest { font-size: 11px; white-space: pre-wrap; }

/* ---------- wide layout: two columns, sticky image (container query = works at any code-block width) ---------- */
@container nmc (min-width: 860px) {
  .nmc .nmc-grid { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: clamp(28px, 4cqw, 64px); align-items: start; }
  .nmc .nmc-stage { top: calc(var(--nmc-top, 0px) + 24px); margin: 0; background: transparent; }
  .nmc .nmc-frame { max-height: calc(100svh - var(--nmc-top, 0px) - 150px); min-height: 320px; }
  .nmc .nmc-views { padding: 12px 0 0; }
  .nmc .nmc-caption { padding: 14px 0 0; border: 0; }
  .nmc .nmc-title { font-size: clamp(22px, 2.4cqw, 32px); }
  .nmc .nmc-sub { font-size: 14px; }
  .nmc .nmc-panel { padding: 0 0 40px; }
  .nmc .nmc-eyebrow { display: block; margin: 0 0 4px; padding: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--nmc-green); font-weight: 600; }
  .nmc .nmc-sec:first-of-type { padding-top: 10px; }
}
/* narrow: compact sticky image so the sauna stays visible while choosing */
@container nmc (max-width: 859px) {
  .nmc .nmc-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 16px 10px; background: var(--nmc-paper); }
  .nmc .nmc-sub { margin: 0; text-align: right; font-size: 12px; }
  .nmc .nmc-views { padding: 4px 12px 0; }
  .nmc .nmc-tab { min-height: 32px; padding: 4px 8px; font-size: 12px; }
}
@container nmc (max-width: 420px) {
  .nmc .nmc-opts.is-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .nmc .is-cards .nmc-opt { padding: 10px; min-height: 58px; }
  .nmc .is-cards .nmc-opt-l { font-size: 14px; }
  .nmc .is-cards .nmc-opt-n { font-size: 11px; }
  .nmc .nmc-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nmc .nmc-opts.is-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nmc .nmc-opts.is-seg { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .nmc .nmc-opt { font-size: 13px; padding: 8px 10px; gap: 8px; }
  .nmc .nmc-sw { width: 28px; height: 28px; }
  .nmc .nmc-sub { display: none; }
  .nmc .nmc-title { font-size: 15px; letter-spacing: .03em; }
}
@media (prefers-reduced-motion: reduce) {
  .nmc .nmc-img, .nmc .nmc-loading, .nmc .nmc-toggle-k, .nmc .nmc-toggle-k::after { transition: none; animation: none; }
}
