/*!
 * Sauna Heat-Up Time Estimator — styles
 * (c) 2026 DIVELUX Inc. MIT License. https://diveluxsaunahat.com
 * Mobile first. Light paper, dark ink, one ember accent.
 */
.dvx {
  --paper: #f6f3ee;
  --card: #fffdf9;
  --ink: #1c110b;
  --ink-2: #4a3a30;
  --muted: #66564b;
  --line: #d9cfc1;
  --wood-dark: #2a1b13;
  --wood: #7a4e2d;
  --wood-soft: #c99b6c;
  --rest: #e9dfd0;
  --ember: #f0762e;
  --spruce: #1d5c45;
  --r: 6px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html { background: #f6f3ee; -webkit-text-size-adjust: 100%; }
body.dvx { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; }
.dvx *, .dvx *::before, .dvx *::after { box-sizing: border-box; }
:where(.dvx) :where(h1, h2, h3, p, ul, ol, dl, dd, dt, fieldset, legend) { margin: 0; padding: 0; border: 0; min-width: 0; }
:where(.dvx) :where(input, button, select, output) { font: inherit; color: inherit; }
.dvx a { color: var(--spruce); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dvx a:hover { text-decoration-thickness: 2px; }
.dvx :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.dvx [hidden] { display: none !important; }
.dvx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dvx-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.dvx-skip { position: absolute; left: -999px; top: 8px; padding: 10px 14px; background: var(--ink); color: #fff !important; border-radius: var(--r); z-index: 5; }
.dvx-skip:focus { left: 8px; }

/* ---------- page chrome ---------- */
.dvx-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.dvx-bar img { display: block; width: 128px; height: auto; }
.dvx-bar a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.dvx-hero { padding-top: 24px; padding-bottom: 28px; }
.dvx h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw + 12px, 88px); line-height: .98; letter-spacing: -0.03em; max-width: 12ch; }
.dvx-lead { margin-top: 16px; font-size: clamp(17px, .5vw + 15px, 20px); line-height: 1.5; color: var(--ink-2); max-width: 50ch; }
.dvx-h { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw + 16px, 34px); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 12px; }
.dvx-h--s { font-size: clamp(20px, 1vw + 17px, 24px); }
.dvx-kicker { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--muted); margin-bottom: 8px; }

/* ---------- tool layout ---------- */
.dvx-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; padding-bottom: 40px; }
.dvx-form { display: grid; gap: 24px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.dvx-out { display: grid; gap: 24px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.dvx-out > *, .dvx-top > * { min-width: 0; }
.dvx-field { display: block; min-width: 0; }
.dvx-label { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.dvx-hint { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 8px; }
.dvx-err { font-size: 14px; line-height: 1.45; color: #8a2a12; margin-top: 8px; font-weight: 500; }

/* segmented radios + chips */
.dvx-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.dvx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dvx-seg, .dvx-chip { position: relative; display: block; margin: 0; cursor: pointer; min-width: 0; }
.dvx-seg input, .dvx-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dvx-seg span, .dvx-chip span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--ink-2); text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.dvx-chip span { border-radius: var(--r); padding: 8px 14px; font-variant-numeric: tabular-nums; }
.dvx-seg + .dvx-seg span { border-left-width: 0; }
.dvx-seg:first-child span { border-radius: var(--r) 0 0 var(--r); }
.dvx-seg:last-child span { border-radius: 0 var(--r) var(--r) 0; }
.dvx-seg:hover span, .dvx-chip:hover span { border-color: var(--ink-2); }
.dvx-seg input:checked + span, .dvx-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.dvx-seg input:focus-visible + span, .dvx-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* number inputs */
.dvx-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.dvx-num { display: block; min-width: 0; margin: 0; }
.dvx-num > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; line-height: 1.3; }
.dvx-inp { position: relative; display: flex; align-items: stretch; }
.dvx-inp input {
  width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; margin: 0; border: 1px solid var(--ink-2); border-radius: var(--r);
  background: #fff; font-family: var(--display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.dvx-inp input::-webkit-outer-spin-button, .dvx-inp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dvx-inp input[aria-invalid="true"] { border-color: #8a2a12; box-shadow: inset 0 0 0 1px #8a2a12; }
.dvx-inp i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--muted); pointer-events: none; }
.dvx-inp--u input { padding-right: 52px; }
.dvx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dvx-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.dvx-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }

/* range */
.dvx-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; }
.dvx-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }
.dvx-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.dvx-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--ink); }
.dvx-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--ink); }
.dvx-range:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-radius: var(--r); }
.dvx-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -4px; font-variant-numeric: tabular-nums; }
.dvx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dvx-row .dvx-label { margin-bottom: 0; }
.dvx-row output { font-family: var(--display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- results ---------- */
.dvx-headline { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw + 12px, 60px); line-height: 1.02; letter-spacing: -0.025em; max-width: 14ch; text-wrap: balance; font-variant-numeric: tabular-nums; }
.dvx-sub { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; max-width: 50ch; }
.dvx-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 2px solid var(--ink); }
.dvx-stat { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dvx-stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.dvx-stat dt { font-size: 13px; color: var(--muted); line-height: 1.3; }
.dvx-stat dd { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.dvx-stat dd small { display: block; font-family: var(--text); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.dvx-list { margin: 12px 0; border-top: 1px solid var(--line); list-style: none; }
.dvx-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.dvx-list li strong { color: var(--ink); }
.dvx-callout { padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--card); font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 68ch; }
.dvx-callout strong { color: var(--ink); font-weight: 700; }
.dvx-callout--warn { border-left-color: var(--ember); font-size: 16px; }

.dvx-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; margin: 0;
  border: 1px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink);
  font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, transform .15s;
}
.dvx-btn:hover { background: var(--ink); color: #fff; }
.dvx-btn:active { transform: translateY(1px); }
.dvx-btn--go { background: var(--ember); border-color: var(--ember); color: var(--ink); min-width: 132px; }
.dvx-btn--go:hover { background: #ff8a45; border-color: #ff8a45; color: var(--ink); }
.dvx-btn[disabled] { opacity: .45; cursor: default; }
.dvx-btn[disabled]:hover { background: transparent; color: var(--ink); }
.dvx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dvx-status { font-size: 14px; color: var(--ink-2); }

/* tables */
.dvx-scroll { overflow-x: auto; margin: 20px 0 8px; -webkit-overflow-scrolling: touch; }
.dvx table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.dvx caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.dvx th, .dvx td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dvx thead th { border-top: 2px solid var(--ink); font-weight: 600; font-size: 14px; }
.dvx tbody th { font-weight: 600; }

/* ---------- method + footer ---------- */
.dvx-method { border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 56px; }
.dvx-method p, .dvx-method li { font-size: 16px; color: var(--ink-2); max-width: 68ch; }
.dvx-method p + p { margin-top: 12px; }
.dvx-method ol, .dvx-method ul.dvx-plain { padding-left: 20px; margin: 16px 0; }
.dvx-method li { margin-top: 8px; }
.dvx-method h3 { font-family: var(--display); font-size: 20px; line-height: 1.2; margin: 32px 0 8px; }
.dvx-method .dvx-callout { margin-top: 24px; }
.dvx-foot { background: var(--ink); color: #e9dccb; padding: 32px 0 40px; font-size: 15px; }
.dvx-foot p { margin: 0 0 8px; max-width: 68ch; }
.dvx-foot a { color: #fff; }
.dvx-foot a:focus-visible { outline-color: #fff; }
.dvx-foot strong { color: #fff; font-family: var(--display); font-size: 18px; }

@media (min-width: 640px) {
  .dvx-form { padding: 28px; }
  .dvx-stats { grid-template-columns: repeat(4, 1fr); }
  .dvx-stat { padding-left: 16px; border-left: 1px solid var(--line); }
  .dvx-stat:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 900px) {
  .dvx-hero { padding-top: 40px; padding-bottom: 48px; }
  .dvx-top { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; padding-bottom: 64px; }
  .dvx-out { gap: 40px; }
  .dvx-form { position: sticky; top: 20px; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .dvx *, .dvx *::before, .dvx *::after { transition: none !important; animation: none !important; }
}

/* ---------- heat-up estimator ---------- */
.shx-gap { margin-top: 12px; }
.dvx-inp input[type="time"] { font-size: 20px; min-height: 48px; -webkit-appearance: none; appearance: none; }
.dvx-check.shx-off { opacity: .5; cursor: default; }
.dvx-form .dvx-check { padding-top: 4px; }
.shx-notes { list-style: none; margin-top: 16px; }
.shx-notes li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 6px; max-width: 68ch; }
.shx-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 2px; background: var(--wood); }
.shx-quotes { list-style: none; border-top: 1px solid var(--line); margin-top: 12px; }
.shx-quotes li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.shx-quotes q { display: block; font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 62ch; }
.shx-quotes cite { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 4px; }
.shx-src { min-width: 640px; }
.dvx-stat dd { overflow-wrap: anywhere; }
