/* HandCalc — public preview of a Pro calculator ("worked example", _deploy/onizleme.mjs). The page shows the calculation
   with example values; the inputs are locked and the calculator itself stays with Pro. */

/* ---------- The box under the tool bar ---------- */
.hc-preview {
  margin: -8px 0 24px; padding: 16px 16px 16px 18px; display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid #c9d8ee; border-inline-start: 4px solid #2f80ed; border-radius: 12px;
  box-shadow: 0 6px 20px rgba(11, 45, 94, .08);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #24344d; text-align: start;
}
.hc-preview-text { flex: 1; min-width: 0; }
.hc-preview-t { font-weight: 750; font-size: 15px; color: #0b2d5e; margin-bottom: 4px; }
.hc-preview-text p { margin: 0 0 4px; }
.hc-preview-text p:last-child { margin-bottom: 0; color: #5b6b82; font-size: 13px; }
.hc-preview-acts { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.hc-preview-go { padding: 10px 18px; border-radius: 10px; background: #2f80ed; color: #fff !important; font-weight: 650; text-decoration: none; white-space: nowrap; }
.hc-preview-go:hover { background: #1f6fdc; }
.hc-preview-in { font-size: 13px; color: #1f5fbf !important; text-decoration: none; }
.hc-preview-in:hover { text-decoration: underline; }
.hc-preview-go:focus-visible, .hc-preview-in:focus-visible, .hc-preview-bar:focus-visible { outline: 3px solid rgba(47, 128, 237, .4); outline-offset: 2px; }
@media (max-width: 640px) {
  .hc-preview { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .hc-preview-go { white-space: normal; }
}

/* ---------- Tool bar: "Unlock with Pro" in place of the units / reset / report buttons ---------- */
.hc-preview-bar { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.hc-preview-bar svg { width: 16px; height: 16px; flex: none; }

/* ---------- Locked inputs: read like the calculator's own fields, not greyed out ---------- */
.hc-preview-page .app input:disabled, .hc-preview-page .app select:disabled, .hc-preview-page .app textarea:disabled {
  opacity: 1; color: inherit; -webkit-text-fill-color: currentColor; cursor: default;
}
.hc-preview-page .app input[type="range"]:disabled { opacity: .55; }
.hc-preview-page .app button:disabled { opacity: 1; cursor: default; }
.hc-preview-page .card-header { cursor: default; }

@media print { .hc-preview, .hc-preview-bar { display: none !important; } }
