/* calc-pack widget.css — build 5
 *
 * One product look. Build 4 kept priceguide's screens and flow — landing,
 * photo-tile service picker, "X of Y" question steps, lead gate, result
 * with a range and a per-service breakdown — and this build keeps every
 * one of them. What changes is the CHROME, which now comes from the
 * RuufPro estimate widget (roofer-template EstimateWidget.astro): one white
 * card, one radius, one grey scale, one button system.
 *
 * The shape, in one paragraph: a single white card, 720px at its widest,
 * centred on whatever page it is pasted into. A hairline accent progress
 * bar under a small "X of Y" label. Left-aligned headings on every working
 * screen and one centred landing screen. A grid of photo tiles that wear
 * the card's own border and radius. An action row hairlined off the bottom
 * of the card, Back on the left and the primary on the right.
 *
 * ONE radius, everywhere:
 *   --calc-radius: 10px   card, tiles, inputs, buttons, chips, panels
 * The only round things left are icons, not controls: the tile's selected
 * mark. An icon is not a control, so it sits outside the radius rule — the
 * same carve-out the reference makes for its own check badge.
 *
 * The owner edits colors and copy through the `brand` block (see README).
 * An embed can override the same tokens per-instance:
 *   <div class="calc-widget" style="--calc-accent:#0f766e">
 */

.calc-widget {
  /* --- owner-editable ------------------------------------------------ */
  --calc-accent: #e08b2e;

  /* One accent drives every accent role: the progress fill, the selected
     tile ring, the primary button, the underline under "free". */
  --calc-accent-hover: color-mix(in srgb, var(--calc-accent) 88%, black);
  --calc-accent-soft: color-mix(in srgb, var(--calc-accent) 9%, transparent);
  --calc-accent-ring: color-mix(in srgb, var(--calc-accent) 26%, transparent);

  /* --- fixed ---------------------------------------------------------- */
  --calc-surface: #ffffff;
  --calc-panel: #f9fafb;
  --calc-fg: #111827;
  --calc-fg-2: #4b5563;
  --calc-muted: #6b7280;
  --calc-line: #e5e7eb;
  --calc-bad: #dc2626;
  --calc-bad-bg: #fef2f2;
  --calc-bad-text: #b42318;

  /* The one radius. mount(el, config, { radius }) overrides it per embed. */
  --calc-radius: 10px;

  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  min-height: 440px;
  margin: 0 auto;
  padding: 24px 20px;
  font-family: -apple-system, "Avenir Next", "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--calc-fg);
  background: var(--calc-surface);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  /* A light form on whatever page it is pasted into, including a dark one. */
  color-scheme: light;
}
@media (min-width: 640px) {
  .calc-widget { padding: 32px 32px 28px; }
}
.calc-widget * { box-sizing: border-box; }

/* ---- header strip: "X of Y" label + 3px accent progress hairline ------ */

.calc-topbar {
  flex: none;
  width: 100%;
  margin-bottom: 24px;
}
.calc-topbar-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.calc-progress {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--calc-muted);
}
.calc-startover {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--calc-muted);
  cursor: pointer;
}
.calc-startover:hover { color: var(--calc-accent); }

/* A flat hairline, not a pill: the same accent stroke that underlines
   "free" on the landing screen, drawn across the top of every step. */
.calc-progress-track {
  width: 100%;
  height: 3px;
  background: var(--calc-line);
  overflow: hidden;
}
.calc-progress-bar-fill {
  display: block;
  height: 100%;
  background: var(--calc-accent);
  transition: width 0.45s ease-out;
}

/* ---- content column --------------------------------------------------- */

.calc-body { flex: 1 1 auto; }
.calc-body-first { padding-top: 0; }

/* ---- heading stack (eyebrow / heading / sub-line) --------------------- */
/* Type scale: eyebrow 12/600, heading 20-22/600, body 15/1.6, label 13/500. */

.calc-brand { margin-bottom: 12px; }
.calc-brand-logo {
  display: block;
  max-height: 36px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}
.calc-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--calc-accent);
}
.calc-step-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--calc-fg);
  text-wrap: balance;
}
@media (min-width: 640px) {
  .calc-step-title { font-size: 22px; }
}
/* The picker's heading and the question headings are the same size now —
   one scale, one card. The modifier stays so the markup keeps its meaning. */
.calc-step-title-sm { font-size: 20px; }
@media (min-width: 640px) {
  .calc-step-title-sm { font-size: 22px; }
}
.calc-subline {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--calc-fg-2);
}
.calc-multi-note {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--calc-muted);
}

/* ---- photo tiles ------------------------------------------------------ */

.calc-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}
@media (min-width: 640px) {
  .calc-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.calc-tile-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.calc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  background: var(--calc-surface);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  font: inherit;
  color: var(--calc-fg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s ease-out;
}
/* The photo sits at the top of the tile and the label reads underneath it
   on the tile's own white — the reference's card anatomy. Over-photo
   labels needed a heavy scrim, and a three-line one swallowed the picture
   at 390. One 4:3 frame serves both kinds: services and answers never
   share a screen, so a second aspect ratio would only cost consistency.
   The kind classes stay — the markup still says which is which. */
.calc-tile-service .calc-tile-image,
.calc-tile-option .calc-tile-image { aspect-ratio: 4 / 3; }

.calc-tile:hover {
  border-color: var(--calc-accent);
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.calc-tile:active { transform: none; }
/* Selected: an inset accent ring, never a scale bump — a grown tile clips
   against its neighbours in a grid. */
.calc-tile.is-selected {
  border-color: var(--calc-accent);
  box-shadow: inset 0 0 0 2px var(--calc-accent);
  transform: none;
}

.calc-tile-image {
  position: relative;
  flex: none;
  width: 100%;
  overflow: hidden;
  background: var(--calc-panel);
}
.calc-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* A whisper of a scrim that lifts on hover — a cue that the photo is part
   of a control, not a heading image. The label no longer sits on it, so it
   never has to carry contrast. */
.calc-tile-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.1);
  opacity: 1;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}
.calc-tile:hover .calc-tile-scrim,
.calc-tile:focus-visible .calc-tile-scrim { opacity: 0; }

/* No photo for this option: a quiet panel with one "?" — never a broken
   image, never an emoji. */
.calc-tile-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--calc-panel);
}
.calc-tile-glyph {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #d1d5db;
}

/* The label strip under the photo. */
.calc-tile-plate {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--calc-line);
  color: var(--calc-fg);
  text-align: left;
}
/* A photoless tile is a text tile: just the strip, taller, no top rule. */
.calc-tile-text { min-height: 64px; }
.calc-tile-text .calc-tile-plate-plain { border-top: 0; padding: 14px 14px; min-height: 64px; }
.calc-tile-text .calc-tile-label { font-size: 14px; }

.calc-tile-label {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  min-width: 0;
}
.calc-tile.is-selected .calc-tile-label { color: var(--calc-accent); }
/* The outline circle that fills in when the tile is picked. An icon, not a
   control, so it is the one round thing in the card. */
.calc-tile-mark {
  position: relative;
  flex: none;
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
}
.calc-tile.is-selected .calc-tile-mark {
  background: var(--calc-accent);
  border-color: var(--calc-accent);
  color: #fff;
}
.calc-tile.is-selected .calc-tile-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* ---- "Learn more" ------------------------------------------------------ */

.calc-learn-more { margin: 12px 0 0; }
.calc-learn-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  background: var(--calc-surface);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--calc-fg);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.calc-learn-more-toggle:hover,
.calc-learn-more-toggle:focus-visible { border-color: var(--calc-accent); color: var(--calc-accent); }
.calc-learn-more-body {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: var(--calc-panel);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  font-size: 13px;
  line-height: 1.6;
  color: var(--calc-fg-2);
}
/* Option-level: a strip pinned under its own tile. */
.calc-tile-wrap .calc-learn-more { margin-top: 8px; }

/* Rich text inside learn-more bodies and the disclaimer (build 5). */
.calc-rich-heading { margin: 10px 0 4px; font-weight: 700; color: var(--calc-fg); }
.calc-rich-heading:first-child { margin-top: 0; }
.calc-rich-para { margin: 0 0 8px; }
.calc-rich-para:last-child { margin-bottom: 0; }
.calc-rich-list { margin: 0 0 8px; padding-left: 20px; }
.calc-rich-list li { margin: 0 0 4px; }
.calc-tile-wrap .calc-learn-more-toggle { width: 100%; min-height: 36px; }

/* ---- number question --------------------------------------------------- */

.calc-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
input.calc-input {
  width: 110px;
  height: 44px;
  padding: 10px 12px;
  background: var(--calc-surface);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
  color: var(--calc-fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.calc-unit-suffix { font-size: 15px; color: var(--calc-fg-2); }

/* ---- the address question's two fields --------------------------------- */

.calc-field { margin: 0 0 16px; }
.calc-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--calc-fg-2);
}
.calc-field-req { margin-left: 2px; color: var(--calc-bad); }
.calc-field-hint { font-size: 13px; color: var(--calc-muted); margin-top: 6px; }
.calc-field-error { color: var(--calc-bad-text); font-size: 13px; margin-top: 6px; }
.calc-field-error:empty { display: none; }

input.calc-text {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  background: var(--calc-surface);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
  color: var(--calc-fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input.calc-text::placeholder { color: var(--calc-muted); }
input.calc-text:focus,
input.calc-input:focus,
select.calc-select:focus { border-color: var(--calc-accent); box-shadow: 0 0 0 3px var(--calc-accent-ring); }
input.calc-text.is-invalid { background: var(--calc-bad-bg); border-color: var(--calc-bad); }

select.calc-select {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--calc-surface);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  font: inherit;
  font-size: 16px;
  color: var(--calc-fg);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* ---- chips: step-mode choice / boolean, which has no photos ------------ */

.calc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
/* Chips share the button system's radius, padding and weight; only the
   selected state is styled differently. */
.calc-option-card {
  min-height: 44px;
  padding: 11px 18px;
  background: var(--calc-surface);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--calc-fg);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.calc-option-card:hover { border-color: var(--calc-accent); color: var(--calc-accent); }
.calc-option-card.is-selected {
  border-color: var(--calc-accent);
  background: var(--calc-accent-soft);
  color: var(--calc-accent);
}

input.calc-range { width: 100%; accent-color: var(--calc-accent); height: 44px; margin-top: 16px; }
.calc-range-value { font-size: 15px; font-weight: 600; }

/* ---- lead gate --------------------------------------------------------- */

.calc-lead-column { max-width: 460px; }
.calc-lead-form { margin-top: 20px; }
.calc-lead-form .calc-field { margin-bottom: 14px; }
.calc-lead-fine {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--calc-muted);
}
.calc-lead-privacy { margin: 10px 0 0; font-size: 13px; color: var(--calc-muted); }
.calc-lead-privacy a { color: var(--calc-accent); }

/* ---- results ----------------------------------------------------------- */

.calc-result { margin-top: 20px; }
.calc-result-range {
  margin: 0 0 4px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--calc-fg);
}
@media (min-width: 640px) {
  .calc-result-range { font-size: 40px; }
}
.calc-result-quantity { font-size: 13px; color: var(--calc-muted); margin-bottom: 20px; }
.calc-result-headline { font-size: 15px; font-weight: 600; }

.calc-lines {
  margin: 20px 0;
  padding: 4px 16px;
  background: var(--calc-surface);
  border: 1px solid var(--calc-line);
  border-radius: var(--calc-radius);
}
.calc-line-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--calc-fg-2);
  border-bottom: 1px solid var(--calc-line);
}
.calc-line-row:last-child { border-bottom: none; }
.calc-line-row > :last-child {
  font-weight: 700;
  color: var(--calc-fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc-disclaimer {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--calc-muted);
}
.calc-result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* ---- landing (brand.showLanding, on by default) ----------------------- */

.calc-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 0 48px;
}
@media (min-width: 640px) {
  .calc-landing { padding: 72px 0 64px; }
}
.calc-landing-logo { display: block; max-height: 40px; max-width: 200px; margin: 0 0 18px; object-fit: contain; }
.calc-landing-name {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--calc-accent);
}
.calc-landing-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--calc-fg);
  text-wrap: balance;
}
/* The one accent stroke on the page — the same hairline that draws the
   progress bar on every step that follows. */
.calc-landing-free {
  color: var(--calc-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.calc-landing-sub {
  margin: 0 0 28px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--calc-fg-2);
}

/* ---- the action row ---------------------------------------------------- */

.calc-actions {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--calc-line);
}
/* Back sits at the left edge whether or not it is the only button there. */
.calc-actions .calc-btn-secondary { margin-right: auto; }

/* One button system: primary is filled accent, secondary is outlined.
   Nothing else. Both take the card's own radius — no pills. */
.calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--calc-radius);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s, transform 0.12s ease-out;
}
.calc-btn:active:not(:disabled) { transform: translateY(1px); }

.calc-btn-primary {
  background: var(--calc-accent);
  border-color: var(--calc-accent);
  color: #fff;
}
.calc-btn-primary:hover:not(:disabled) { background: var(--calc-accent-hover); border-color: var(--calc-accent-hover); }
.calc-btn-primary:disabled { opacity: 0.45; pointer-events: none; }

.calc-btn-secondary {
  background: var(--calc-surface);
  border-color: var(--calc-line);
  color: var(--calc-fg);
}
.calc-btn-secondary:hover { border-color: var(--calc-accent); color: var(--calc-accent); }

.calc-btn-full { width: 100%; }
.calc-btn svg { width: 16px; height: 16px; flex: none; }
.calc-landing-cta { padding: 13px 28px; font-size: 16px; }

/* One focus treatment for every control. */
.calc-widget :focus-visible,
.calc-settings :focus-visible {
  outline: 2px solid var(--calc-accent);
  outline-offset: 2px;
}

.calc-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- motion ------------------------------------------------------------ */

.calc-screen { animation: calc-rise 0.28s ease-out; }
@keyframes calc-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-screen { animation: none; }
  .calc-progress-bar-fill, .calc-tile, .calc-option-card, .calc-btn, .calc-tile-scrim { transition: none; }
}


/* ---------------------------------------------------------------------
   owner settings ("Your calculator") panel. This is the DASHBOARD side,
   not the embed — it keeps its own quiet chrome and does not follow the
   estimator's full-bleed look.
   ------------------------------------------------------------------ */
.calc-settings {
  --calc-accent: #6366f1;
  --calc-radius: 8px;
  --calc-accent-ring: color-mix(in srgb, var(--calc-accent) 22%, transparent);
  --calc-bg: #ffffff;
  --calc-fg: #111827;
  --calc-fg-2: #4b5563;
  --calc-muted: #6b7280;
  --calc-border: #e5e7eb;
  --calc-panel: #f7f8fa;

  box-sizing: border-box;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  font-family: -apple-system, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  color: var(--calc-fg);
  background: var(--calc-bg);
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 24px;
  color-scheme: light;
}
.calc-settings * { box-sizing: border-box; }

.calc-settings-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.calc-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--calc-border);
}
.calc-settings-row:last-of-type { border-bottom: none; }
.calc-settings-label { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; }
.calc-settings-fields { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* "Your business" rows carry a wide text input, so they stack rather than
   squeezing a 200px field into the right-hand column. */
.calc-settings-row-stacked {
  display: block;
  padding: 12px 0;
}
.calc-settings-row-stacked .calc-settings-label { display: block; margin-bottom: 6px; }
.calc-settings-row-stacked .calc-settings-fields { display: block; }
.calc-settings-text {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius);
  background: var(--calc-bg);
  color: var(--calc-fg);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.calc-settings-text::placeholder { color: var(--calc-muted); }
.calc-settings-text:focus { border-color: var(--calc-accent); box-shadow: 0 0 0 3px var(--calc-accent-ring); }
.calc-settings-hint { font-size: 12px; color: var(--calc-muted); margin-top: 5px; }

.calc-settings-currency, .calc-settings-percent {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius);
  padding: 5px 9px;
  background: var(--calc-bg);
}
.calc-settings-prefix, .calc-settings-suffix { font-size: 13px; color: var(--calc-muted); }
.calc-settings-input {
  width: 64px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: inherit;
  padding: 2px 0;
}
.calc-settings-input:focus { outline: none; }
.calc-settings-color {
  width: 40px;
  height: 32px;
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius);
  padding: 2px;
  background: var(--calc-bg);
  cursor: pointer;
}
.calc-settings-reset {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--calc-accent);
  text-decoration: none;
  cursor: pointer;
}
.calc-settings-reset:hover { text-decoration: underline; }

/* collapsible groups ("Your business" first, then one per service) */
.calc-settings-group { border-bottom: 1px solid var(--calc-border); }
.calc-settings-group:last-of-type { border-bottom: none; }
.calc-settings-group-header {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--calc-fg);
  cursor: pointer;
}
.calc-settings-group-header::before { content: '▾ '; color: var(--calc-muted); }
.calc-settings-group-header.is-collapsed::before { content: '▸ '; }
.calc-settings-group-body { padding-bottom: 6px; }
.calc-settings-group-body .calc-settings-row:last-of-type { border-bottom: none; }
