.calculator-embed {
  background: var(--paper);
  overflow-wrap: anywhere;
}

.widget-content {
  max-width: 1160px;
  padding: clamp(12px, 3vw, 26px);
}

.widget-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.widget-title h1 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: -.035em;
}

.widget-title a {
  font-size: 13px;
  color: var(--ink);
}

.widget-terms {
  border-left: 3px solid #73a98a;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

.widget-picker form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 20px;
}

.widget-picker form > div {
  flex: 1 1 230px;
  min-width: 0;
}

.widget-examples-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
}

.widget-examples-heading h2 {
  margin: 0;
}

.widget-examples details p {
  font-size: 14px;
  padding: 0;
}

.widget-examples summary {
  font-size: 15px;
  font-weight: 700;
}

.widget-examples textarea {
  width: 100%;
  resize: vertical;
  color: var(--ink);
  background: var(--waterline);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: 13px/1.5 ui-monospace, monospace;
}

.widget-copy {
  width: auto;
  margin-top: 6px;
}

.widget-copy-status {
  color: var(--chart-net);
  margin: 0;
}

@media print {
  .calculator-embed .widget-title { margin-bottom: 12px; }
}
