/*!
 * Sauna Session Planner — styles
 * (c) 2026 DIVELUX Inc. MIT License. https://diveluxsaunahat.com
 * Every rule is scoped under .ssp and every class starts with ssp-,
 * so the tool can sit inside another site's theme without collisions.
 */
.ssp {
  --ssp-paper: #f6f3ee;
  --ssp-card: #fffdf9;
  --ssp-ink: #1c110b;
  --ssp-ink-2: #4a3a30;
  --ssp-muted: #66564b;
  --ssp-line: #d9cfc1;
  --ssp-wood-dark: #2a1b13;
  --ssp-wood: #7a4e2d;
  --ssp-wood-soft: #c99b6c;
  --ssp-rest: #e9dfd0;
  --ssp-ember: #f0762e;
  --ssp-spruce: #1d5c45;
  --ssp-r: 6px;
  --ssp-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ssp-text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: block;
  color: var(--ssp-ink);
  font-family: var(--ssp-text);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.ssp *, .ssp *::before, .ssp *::after { box-sizing: border-box; }
.ssp p, .ssp ul, .ssp ol, .ssp dl, .ssp dd, .ssp dt, .ssp fieldset, .ssp legend,
.ssp h2, .ssp h3, .ssp h4 { margin: 0; padding: 0; border: 0; min-width: 0; }
.ssp ul, .ssp ol { list-style: none; }
.ssp input, .ssp button, .ssp output { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.ssp small, .ssp i, .ssp em { font-style: normal; }
.ssp a { color: var(--ssp-spruce); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ssp a:hover { text-decoration-thickness: 2px; }
.ssp :focus-visible { outline: 2px solid var(--ssp-ink); outline-offset: 2px; border-radius: 2px; }
.ssp .ssp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ssp [hidden] { display: none !important; }
.ssp .ssp-printonly { display: none; }

.ssp .ssp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- headings ---------- */
.ssp .ssp-kicker {
  font-family: var(--ssp-text); font-size: 14px; line-height: 1.3; font-weight: 600;
  color: var(--ssp-muted); letter-spacing: 0; text-transform: none; margin-bottom: 8px;
}
.ssp .ssp-h {
  font-family: var(--ssp-display); font-weight: 700; font-size: clamp(24px, 2.2vw + 16px, 34px);
  line-height: 1.12; letter-spacing: -0.015em; color: inherit; text-transform: none; margin-bottom: 12px;
}
.ssp .ssp-h--s { font-size: clamp(20px, 1vw + 17px, 24px); }

/* ---------- top: form + plan ---------- */
.ssp .ssp-top { display: grid; gap: 24px; padding-top: 8px; padding-bottom: 40px; }
.ssp .ssp-form {
  display: grid; gap: 24px; align-content: start;
  background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r); padding: 20px;
}
.ssp .ssp-field { display: block; }
.ssp .ssp-label {
  display: block; float: none; width: auto; font-family: var(--ssp-text); font-size: 15px; font-weight: 600;
  line-height: 1.3; color: var(--ssp-ink); margin-bottom: 10px;
}
.ssp .ssp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ssp .ssp-row .ssp-label { margin-bottom: 0; }
.ssp .ssp-hint { font-size: 14px; line-height: 1.45; color: var(--ssp-muted); margin-top: 8px; }

/* chips (sauna type) */
.ssp .ssp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ssp .ssp-chip, .ssp .ssp-seg { position: relative; display: block; margin: 0; cursor: pointer; }
.ssp .ssp-chip input, .ssp .ssp-seg input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.ssp .ssp-chip span, .ssp .ssp-seg span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--ssp-line); border-radius: var(--ssp-r); background: #fff;
  font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--ssp-ink-2); text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.ssp .ssp-chip:hover span, .ssp .ssp-seg:hover span { border-color: var(--ssp-ink-2); }
.ssp .ssp-chip input:checked + span, .ssp .ssp-seg input:checked + span {
  background: var(--ssp-ink); border-color: var(--ssp-ink); color: #fff;
}
.ssp .ssp-chip input:focus-visible + span, .ssp .ssp-seg input:focus-visible + span {
  outline: 2px solid var(--ssp-ink); outline-offset: 2px;
}
/* segmented controls */
.ssp .ssp-segs { display: grid; grid-template-columns: repeat(3, 1fr); }
.ssp .ssp-units { display: flex; flex: none; }
.ssp .ssp-segs .ssp-seg + .ssp-seg span, .ssp .ssp-units .ssp-seg + .ssp-seg span { border-left-width: 0; }
.ssp .ssp-segs .ssp-seg span, .ssp .ssp-units .ssp-seg span { border-radius: 0; }
.ssp .ssp-segs .ssp-seg:first-child span, .ssp .ssp-units .ssp-seg:first-of-type span { border-radius: var(--ssp-r) 0 0 var(--ssp-r); }
.ssp .ssp-segs .ssp-seg:last-child span, .ssp .ssp-units .ssp-seg:last-of-type span { border-radius: 0 var(--ssp-r) var(--ssp-r) 0; }
.ssp .ssp-units .ssp-seg span { min-width: 52px; }

/* big readouts */
.ssp .ssp-big {
  display: flex; align-items: baseline; gap: 4px; font-family: var(--ssp-display); font-weight: 700;
  font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 4px 0 6px;
}
.ssp .ssp-big small { font-size: 22px; font-weight: 600; }
.ssp .ssp-big i { margin-left: 10px; font-family: var(--ssp-text); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ssp-muted); }

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

/* ---------- plan ---------- */
.ssp .ssp-out { display: grid; gap: 24px; align-content: start; min-width: 0; }
.ssp .ssp-plan { min-width: 0; }
.ssp .ssp-headline {
  font-family: var(--ssp-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;
}
.ssp .ssp-sub { font-size: 17px; line-height: 1.5; color: var(--ssp-ink-2); margin-top: 12px; max-width: 46ch; }

.ssp .ssp-tl { position: relative; display: flex; gap: 2px; height: 48px; margin-top: 24px; }
.ssp .ssp-tlseg { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; overflow: hidden; }
.ssp .ssp-tlseg b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ssp .ssp-tlseg--heat { background: var(--ssp-wood-dark); color: #fff; }
.ssp .ssp-tlseg--rest, .ssp .ssp-tlseg--cool { background: var(--ssp-rest); color: var(--ssp-ink); }
.ssp .ssp-tlseg:first-child { border-radius: var(--ssp-r) 0 0 var(--ssp-r); }
.ssp .ssp-tlseg--cool { border-radius: 0 var(--ssp-r) var(--ssp-r) 0; }
.ssp .ssp-tlmark {
  position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; border-radius: 2px;
  background: var(--ssp-ember); box-shadow: 0 0 0 2px var(--ssp-paper); transition: left .25s linear;
}
.ssp .ssp-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; color: var(--ssp-muted); }
.ssp .ssp-legend span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.ssp .ssp-key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; background: var(--ssp-wood-dark); }
.ssp .ssp-key--rest::before { background: var(--ssp-rest); box-shadow: inset 0 0 0 1px var(--ssp-wood-soft); }

.ssp .ssp-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 2px solid var(--ssp-ink); }
.ssp .ssp-stat { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--ssp-line); min-width: 0; }
.ssp .ssp-stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ssp-line); }
.ssp .ssp-stat dt { font-size: 13px; color: var(--ssp-muted); line-height: 1.3; }
.ssp .ssp-stat dd { font-family: var(--ssp-display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ssp .ssp-stat dd small { display: block; font-family: var(--ssp-text); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.35; color: var(--ssp-muted); margin-top: 3px; }

.ssp .ssp-steps { margin-top: 24px; }
.ssp .ssp-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ssp-line); }
.ssp .ssp-at { font-size: 14px; line-height: 1.6; color: var(--ssp-muted); font-variant-numeric: tabular-nums; }
.ssp .ssp-what { font-size: 15px; line-height: 1.5; color: var(--ssp-ink-2); }
.ssp .ssp-what b { display: block; font-size: 16px; font-weight: 600; color: var(--ssp-ink); }
.ssp .ssp-step--heat .ssp-what b::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 2px; background: var(--ssp-wood-dark); vertical-align: 1px;
}
.ssp .ssp-notes { margin-top: 16px; }
.ssp .ssp-notes li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--ssp-ink-2); margin-top: 6px; }
.ssp .ssp-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 2px; background: var(--ssp-wood); }

/* ---------- buttons ---------- */
.ssp .ssp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; margin: 0;
  border: 1px solid var(--ssp-ink); border-radius: var(--ssp-r); background: transparent; color: var(--ssp-ink);
  font-family: var(--ssp-display); font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer;
  text-decoration: none; box-shadow: none; width: auto;
  transition: background-color .15s, color .15s, transform .15s;
}
.ssp .ssp-btn:hover { background: var(--ssp-ink); color: #fff; }
.ssp .ssp-btn:active { transform: translateY(1px); }
.ssp .ssp-btn--go { background: var(--ssp-ember); border-color: var(--ssp-ember); color: var(--ssp-ink); min-width: 132px; }
.ssp .ssp-btn--go:hover { background: #ff8a45; border-color: #ff8a45; color: var(--ssp-ink); }
.ssp .ssp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.ssp .ssp-status { font-size: 14px; color: var(--ssp-ink-2); }
.ssp .ssp-sharebox { flex: 1 1 100%; margin: 0; }
.ssp .ssp-sharebox input {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ssp-line); border-radius: var(--ssp-r);
  background: #fff; font-size: 14px; color: var(--ssp-ink-2);
}

/* ---------- timer ---------- */
.ssp .ssp-timer { background: var(--ssp-card); border: 1px solid var(--ssp-line); border-radius: var(--ssp-r); padding: 20px; }
.ssp .ssp-tphase { font-family: var(--ssp-display); font-size: 20px; font-weight: 700; line-height: 1.2; }
.ssp .ssp-clock {
  font-family: var(--ssp-display); font-weight: 700; font-size: clamp(72px, 22vw, 112px); line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 6px 0 6px -3px;
}
.ssp .ssp-tnext { font-size: 15px; color: var(--ssp-ink-2); }
.ssp .ssp-tbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ssp .ssp-tbtns .ssp-btn--go { grid-column: 1 / -1; }
.ssp .ssp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 10px 0 0; font-size: 15px; color: var(--ssp-ink-2); cursor: pointer; }
.ssp .ssp-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ssp-ink); flex: none; }
.ssp .ssp-timer .ssp-hint { margin-top: 2px; }

/* ---------- heat ladder band ---------- */
.ssp .ssp-band { background: var(--ssp-wood-dark); color: #f6efe6; padding: 48px 0; }
.ssp .ssp-band :focus-visible { outline-color: #fff; }
.ssp .ssp-band-in { display: grid; gap: 40px; }
.ssp .ssp-band .ssp-h { color: #fff; }
.ssp .ssp-lead { font-size: 17px; line-height: 1.55; color: #e9dccb; max-width: 52ch; }
.ssp .ssp-ladder { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .22); }
.ssp .ssp-rung {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px;
  padding: 12px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.ssp .ssp-rname { font-size: 15px; color: #e9dccb; }
.ssp .ssp-rname em {
  display: inline-block; margin-left: 10px; padding: 1px 8px 2px; border-radius: 3px;
  background: var(--ssp-ember); color: var(--ssp-ink); font-size: 12px; font-weight: 600; vertical-align: 1px;
}
.ssp .ssp-rtemp { font-family: var(--ssp-display); font-weight: 700; font-size: 28px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ssp .ssp-rbar { grid-column: 1 / -1; display: block; height: 8px; margin-top: 6px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.ssp .ssp-rbar i { display: block; height: 100%; background: var(--ssp-wood-soft); border-radius: 2px; transition: width .22s ease; }
.ssp .ssp-fine { font-size: 13px; line-height: 1.5; color: #cdbba6; margin-top: 14px; max-width: 60ch; }
.ssp .ssp-hat { align-self: center; max-width: 52ch; }
.ssp .ssp-hat p { font-size: 16px; line-height: 1.6; color: #e9dccb; }
.ssp .ssp-hat p + p { margin-top: 12px; }
.ssp .ssp-band a { color: #fff; }

/* ---------- safety + converter ---------- */
.ssp .ssp-bottom { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.ssp .ssp-safety p { font-size: 16px; color: var(--ssp-ink-2); max-width: 56ch; }
.ssp .ssp-list { margin: 12px 0; border-top: 1px solid var(--ssp-line); }
.ssp .ssp-list li { padding: 10px 0; border-bottom: 1px solid var(--ssp-line); font-size: 16px; line-height: 1.45; }
.ssp .ssp-disclaimer { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--ssp-ink); background: var(--ssp-card); font-size: 15px !important; line-height: 1.55; }
.ssp .ssp-disclaimer strong { color: var(--ssp-ink); font-weight: 700; }
.ssp .ssp-convrow { display: flex; align-items: flex-end; gap: 12px; }
.ssp .ssp-num { flex: 1 1 0; min-width: 0; margin: 0; max-width: 180px; }
.ssp .ssp-num span { display: block; font-size: 14px; color: var(--ssp-muted); margin-bottom: 4px; }
.ssp .ssp-num input {
  width: 100%; min-height: 52px; padding: 8px 12px; margin: 0; border: 1px solid var(--ssp-ink-2); border-radius: var(--ssp-r);
  background: #fff; font-family: var(--ssp-display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ssp .ssp-eq { font-family: var(--ssp-display); font-size: 24px; font-weight: 700; padding-bottom: 10px; color: var(--ssp-muted); }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .ssp .ssp-form { padding: 28px; }
  .ssp .ssp-timer { padding: 28px; }
  .ssp .ssp-stats { grid-template-columns: repeat(4, 1fr); }
  .ssp .ssp-stat { padding-left: 16px; border-left: 1px solid var(--ssp-line); }
  .ssp .ssp-stat:first-child { padding-left: 0; border-left: 0; }
  .ssp .ssp-rung { grid-template-columns: 210px 1fr 64px; align-items: center; }
  .ssp .ssp-rname em { display: table; margin: 4px 0 0; }
  .ssp .ssp-rbar { grid-column: 2; grid-row: 1; margin-top: 0; height: 10px; }
  .ssp .ssp-rtemp { grid-column: 3; text-align: right; }
}
@media (min-width: 900px) {
  .ssp .ssp-top { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; padding-bottom: 64px; }
  .ssp .ssp-form { position: sticky; top: 20px; align-self: start; }
  .ssp .ssp-out { gap: 40px; }
  .ssp .ssp-band { padding: 72px 0; }
  .ssp .ssp-band-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; }
  .ssp .ssp-bottom { grid-template-columns: 1fr 1fr; gap: 48px 72px; padding-top: 72px; padding-bottom: 72px; }
  .ssp .ssp-timer { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: center; }
  .ssp .ssp-timer > * { grid-column: 1; }
  .ssp .ssp-timer .ssp-tbtns { grid-column: 2; grid-row: 2 / span 2; grid-template-columns: 1fr; margin-top: 0; }
  .ssp .ssp-timer .ssp-check, .ssp .ssp-timer .ssp-hint { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ssp *, .ssp *::before, .ssp *::after { transition: none !important; animation: none !important; }
}

/* ---------- print: only the plan ---------- */
@media print {
  html.ssp-printing body * { visibility: hidden !important; }
  html.ssp-printing .ssp .ssp-plan, html.ssp-printing .ssp .ssp-plan * { visibility: visible !important; }
  html.ssp-printing .ssp .ssp-plan { position: absolute; left: 0; top: 0; width: 100%; padding: 0 8mm; }
  html.ssp-printing .ssp .ssp-actions, html.ssp-printing .ssp .ssp-tlmark { display: none !important; }
  html.ssp-printing .ssp .ssp-printonly { display: block; margin-top: 16px; font-size: 12px; color: #000; }
  html.ssp-printing .ssp .ssp-tlseg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.ssp-printing .ssp .ssp-headline { font-size: 32pt; }
}
