/* Calculator preview uses the site's typography, paper, botanical colors and controls. */
.blend-page {
  --blend-forest: var(--forest, #183d35);
  --blend-muted: #506353;
  --blend-paper: var(--paper, #fbfbf8);
  --blend-line: var(--line, #dde2da);
  --blend-soft: var(--soft, #eef1e9);
  color: var(--ink, #203a33);
  background: var(--blend-paper);
  font: 16px/1.8 var(--sans);
  overflow-wrap: anywhere;
}
.blend-page [hidden] { display: none !important; }
.blend-page *, .blend-page *::before, .blend-page *::after { box-sizing: border-box; }
.blend-page :is(button,input,select,textarea,a,summary):focus-visible { outline: 2px solid var(--gold, #9b713b); outline-offset: 3px; }
.blend-page :is(button,a,summary) { touch-action: manipulation; }
.blend-page button:disabled { opacity: .5; cursor: not-allowed; }
.blend-header { min-height: 100px; height: auto; padding: 20px max(20px, calc((100% - 1120px) / 2)); gap: 20px; }
.blend-header .brand { min-width: 0; gap: 12px; }
.blend-header .hella-logo { width: 52px; height: 52px; }
.blend-header .brand-type { font: 22px/1.4 var(--serif); letter-spacing: 1.5px; }
.blend-header .brand-type small { font: 12px/1.5 var(--sans); letter-spacing: 1px; margin-top: 5px; }
.blend-back { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; font-size: 16px; color: var(--blend-forest); }
.blend-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.blend-main { width: min(760px, calc(100% - 40px)); max-width: 760px; margin: 0 auto; padding: 40px 0; }
.blend-title { margin-bottom: 24px; }
.blend-title .eyebrow { font-size: 14px; letter-spacing: 1.7px; margin-bottom: 8px; }
.blend-title h1 { font: 500 36px/1.5 var(--serif); margin: 0 0 12px; }
.blend-title > p:not(.eyebrow) { font-size: 16px; line-height: 1.85; color: var(--blend-muted); }
.blend-preview-badge { display: inline-block; margin-top: 12px; padding: 3px 10px; border: 1px solid var(--blend-line); border-radius: 4px; font-size: 15px; color: var(--blend-muted); background: var(--blend-soft); }
.blend-steps { display: flex; align-items: center; gap: 12px; list-style: none; padding: 0; margin: 24px 0; }
.blend-steps li { display: flex; align-items: center; flex: 1; gap: 8px; color: var(--blend-muted); font-size: 16px; }
.blend-steps li:not(:last-child)::after { content: ''; height: 1px; background: var(--blend-line); flex: 1; margin-left: 4px; }
.blend-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--blend-line); border-radius: 50%; font-size: 15px; }
.blend-steps strong { font-weight: 400; white-space: nowrap; }
.blend-steps [aria-current=step] { color: var(--blend-forest); }
.blend-steps [aria-current=step] > span { color: #fff; background: var(--blend-forest); border-color: var(--blend-forest); }
.blend-steps [aria-current=step] strong { font-weight: 600; }
.blend-sheet { background: #fff; border: 1px solid var(--blend-line); border-radius: 9px; padding: 32px; }
.blend-sheet form { margin: 0; }
.blend-step-heading { margin-bottom: 24px; }
.blend-step-heading > span { display: block; color: var(--blend-muted); font-size: 15px; margin-bottom: 8px; }
.blend-step-heading h2 { font: 500 26px/1.5 var(--serif); letter-spacing: .4px; }
.blend-step-heading p { margin-top: 10px; color: var(--blend-muted); font-size: 16px; }
.blend-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.blend-field, .blend-row-main > label, .blend-spec-grid > label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 16px; }
.blend-field small, .blend-row small { font-size: 15px; line-height: 1.8; color: var(--blend-muted); }
.blend-page :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { width: 100%; min-width: 0; min-height: 52px; padding: 13px 14px; border: 1px solid #bcc9bf; border-radius: 5px; color: var(--ink, #203a33); background: #fff; font: 16px/1.5 var(--sans); }
.blend-page :is(input,textarea)::placeholder { color: #6d7f6e; opacity: 1; }
.blend-page textarea { resize: vertical; min-height: 100px; }
.blend-page select { padding-right: 28px; }
.blend-page :is(input,select,textarea):disabled { background: var(--blend-soft); color: var(--blend-muted); }
.blend-page :is(input,select,textarea)[aria-invalid=true] { border-color: #873e32; }
.blend-input-unit { position: relative; display: block; }
.blend-input-unit input { padding-right: 48px !important; }
.blend-input-unit em { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 16px; font-style: normal; color: var(--blend-muted); pointer-events: none; }
.blend-help, .blend-ratio-note, .blend-example-note { font-size: 15px; line-height: 1.85; color: var(--blend-muted); }
.blend-help + :is([data-rows],[data-stock-settings]) { margin-top: 18px; }
.blend-example, .blend-add { min-height: 44px; padding: 10px 0; color: var(--blend-forest); font: 16px/1.6 var(--sans); text-align: left; text-decoration: underline; text-decoration-color: #a8b9a5; text-underline-offset: 5px; }
.blend-example { margin-top: 20px; }
.blend-example-note { margin-top: 4px; }
.blend-page details > summary { min-height: 48px; padding: 12px 0; color: var(--blend-forest); cursor: pointer; font-size: 16px; }
.blend-page details:not([open]) > :not(summary) { display: none; }
.blend-page details[open] > summary { margin-bottom: 12px; }
.blend-more { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--blend-line); }
.blend-more .blend-help { margin-top: 10px; }
.blend-block-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.blend-block-heading h3, .blend-advanced-section h3 { font: 500 22px/1.6 var(--serif); letter-spacing: .3px; color: var(--blend-forest); }
.blend-block-heading span, .blend-block-heading small { color: var(--blend-muted); font: 400 15px/1.7 var(--sans); }
.blend-base-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--blend-line); }
.blend-row { margin-bottom: 18px; min-width: 0; }
.blend-row-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(88px,.55fr) 44px; gap: 12px; align-items: end; }
.blend-row-main.has-unit { grid-template-columns: minmax(0,1fr) minmax(80px,.6fr) minmax(112px,.6fr) 44px; }
.blend-row-main.single-row { grid-template-columns: minmax(0,1fr); }
.blend-row-main.single-row:has(.blend-row-delete:not([hidden])) { grid-template-columns: minmax(0,1fr) 44px; }
.blend-row-delete { display: grid; place-items: center; min-width: 44px; min-height: 52px; border-radius: 5px; color: var(--blend-muted); font-size: 22px; padding: 8px 0; }
.blend-row-delete:hover { color: #873e32; background: #fbf2ef; }
.blend-identity-check { margin-top: 12px; padding: 14px; border-left: 2px solid var(--gold); background: #f4f3eb; font-size: 16px; color: #546052; }
.blend-identity-check button { min-height: 44px; margin-right: 16px; padding: 8px 0; font-size: 16px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.blend-stock-item { margin-top: 20px; }
.blend-stock-item + .blend-stock-item { padding-top: 20px; border-top: 1px solid var(--blend-line); }
.blend-stock-item > h4 { margin: 0 0 8px; color: var(--blend-forest); font: 500 18px/1.6 var(--sans); }
.blend-spec-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 12px; padding: 18px; border: 1px solid var(--blend-line); border-radius: 5px; background: #f7faf4; }
.blend-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; font-size: 16px; cursor: pointer; }
.blend-page :is(input[type=checkbox],input[type=radio]) { width: 20px; height: 20px; flex: 0 0 20px; margin: 4px 0 0; accent-color: var(--blend-forest); }
.blend-zero-note { padding: 16px 18px; font-size: 16px; background: var(--blend-soft); border-radius: 5px; }
.blend-step-actions { display: flex; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--blend-line); }
.blend-primary, .blend-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border-radius: 5px; font: 16px/1.6 var(--sans); }
.blend-primary { color: #fff; background: var(--blend-forest); border: 1px solid var(--blend-forest); }
.blend-primary:not(:disabled):hover { background: #285347; border-color: #285347; }
.blend-secondary { color: var(--blend-forest); background: #fff; border: 1px solid #bcc9bf; }
.blend-secondary:not(:disabled):hover { background: var(--blend-soft); }
.blend-step-actions > .blend-primary { flex: 1; }
.blend-status { margin-top: 16px; color: var(--blend-muted); font-size: 16px; }
.blend-status:empty { display: none; }
.blend-error, .blend-inline-error { margin: 18px 0; padding: 14px 16px; font-size: 16px; line-height: 1.8; color: #873e32; background: #fbf2ef; border-left: 2px solid #873e32; border-radius: 5px; }
.blend-footer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--blend-line); color: var(--blend-muted); font-size: 15px; line-height: 1.85; }
.blend-footer > span { font: 16px/1.7 var(--serif); letter-spacing: 1px; }
.blend-footer p { margin-top: 8px; }
[data-result] { scroll-margin-top: 24px; }
.blend-result-list { list-style: none; margin: 0; padding: 0; }
.blend-result-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--blend-line); }
.blend-result-line > span { min-width: 0; font-size: 18px; }
.blend-result-line > span > small { display: block; margin-top: 5px; color: var(--blend-muted); font-size: 15px; }
.blend-result-line > strong { font-size: 26px; font-weight: 500; line-height: 1.5; text-align: right; font-variant-numeric: tabular-nums; }
.blend-result-line > strong > small { font-size: 16px; font-weight: 400; color: var(--blend-muted); }
.blend-result-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 22px 0 10px; font-size: 16px; }
.blend-result-total strong { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
[data-result-notes]:not(:empty) { margin-top: 20px; padding: 16px; color: #546052; background: #f4f3eb; border-left: 2px solid var(--gold); font-size: 15px; line-height: 1.85; }
[data-result-notes] p + p { margin-top: 10px; }
.blend-result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.blend-result-actions > .blend-primary { flex: 1 0 100%; }
.blend-result-actions > .blend-secondary { flex: 1; }
[data-result-detail] { color: var(--blend-muted); font-size: 15px; line-height: 1.85; }
[data-result-detail] p { white-space: pre-wrap; }
[data-result-detail] p + p { margin-top: 12px; }
.blend-page pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 16px/1.8 var(--sans); max-width: 100%; }
.blend-dialog { width: min(560px,calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 28px; overflow-y: auto; background: var(--blend-paper); color: var(--ink); border: 1px solid var(--blend-line); border-radius: 9px; box-shadow: 0 20px 80px #10251d30; }
.blend-dialog:not([open]) { display: none; }
.blend-dialog::backdrop { background: #172c2570; }
.blend-dialog h2 { font: 500 26px/1.5 var(--serif); margin-bottom: 18px; }
.blend-dialog p { margin: 12px 0; font-size: 16px; }
.blend-dialog textarea { min-height: 220px; }
.blend-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.blend-confirm-list p { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--blend-line); padding-bottom: 12px; }
@media (max-width: 600px) {
  .blend-header { min-height: 90px; padding: 16px 20px; gap: 12px; flex-wrap: wrap; }
  .blend-header .hella-logo { width: 44px; height: 44px; }
  .blend-header .brand-type { font-size: 20px; letter-spacing: 1px; }
  .blend-header .brand-type small { font-size: 12px; letter-spacing: .6px; }
  .blend-back { font-size: 16px; }
  .blend-main { padding-top: 28px; }
  .blend-title h1 { font-size: 32px; }
  .blend-steps { gap: 8px; }
  .blend-steps li { gap: 6px; font-size: 15px; }
  .blend-steps li:not(:last-child)::after { margin-left: 0; }
  .blend-sheet { padding: 24px 18px; }
  .blend-step-heading h2 { font-size: 24px; }
  .blend-field-grid { grid-template-columns: 1fr; gap: 22px; }
  .blend-row-main { grid-template-columns: minmax(0,1fr) 72px 44px; gap: 8px; }
  .blend-row-main.has-unit { grid-template-columns: minmax(0,1fr) minmax(112px,1.1fr) 44px; }
  .blend-row-main.has-unit > label:first-child { grid-column: 1 / -1; }
  .blend-row-main.has-unit > .blend-row-delete { grid-column: 3; }
  .blend-row-main input, .blend-row-main select { padding-inline: 10px; }
  .blend-spec-grid { grid-template-columns: 1fr; padding: 16px; }
  .blend-step-actions { gap: 10px; }
  .blend-primary, .blend-secondary { padding-inline: 16px; }
  .blend-result-line { gap: 12px; }
  .blend-result-line > strong { font-size: 24px; }
  .blend-dialog { padding: 24px 18px; }
}
@media (max-width: 360px) {
  .blend-main { width: calc(100% - 32px); }
  .blend-sheet { padding-inline: 14px; }
  .blend-steps { gap: 6px; }
  .blend-steps li { gap: 4px; }
  .blend-row-main.has-unit { grid-template-columns: minmax(0,1fr) minmax(112px,1.1fr); }
  .blend-row-main.has-unit > .blend-row-delete { grid-column: 2; justify-self: end; }
  .blend-row-main > label > span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html:has(.blend-page) { scroll-behavior: auto; } }
