
.qcalc,.qcalc-hub {
  min-width:0;
  overflow-wrap:anywhere;
}

.qcalc-eyebrow {
  color:#8dd8ff!important;
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.qcalc-note,.qcalc-form,.qcalc-results,.qcalc-explanation {
  background:#101721;
  border:1px solid #344356;
  border-radius:16px;
  padding:clamp(16px,3vw,28px);
  margin:20px 0;
}

.qcalc h2 {
  color:#f1f5f9;
  line-height:1.3;
}

.qcalc-input-grid,.qcalc-result-grid {
  display:grid;
  grid-template-columns:repeat(
    auto-fit,minmax(min(100%,240px),1fr)
  );
  gap:16px;
}

.qcalc-field {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}

.qcalc-field label {
  color:#f1f5f9;
  font-weight:650;
}

.qcalc-field small {
  color:#b5c2d1;
  line-height:1.5;
}

.qcalc-field input,.qcalc-field select {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:48px;
  padding:12px;
  border:1px solid #52647a;
  border-radius:9px;
  background:#090d12;
  color:#f1f5f9;
  font:inherit;
  color-scheme:dark;
}

.qcalc-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.qcalc button {
  font:inherit;
  cursor:pointer;
  min-height:48px;
}

.qcalc button:disabled {
  opacity:.55;
  cursor:not-allowed;
}

.qcalc-field input:focus-visible,
.qcalc-field select:focus-visible,
.qcalc button:focus-visible {
  outline:3px solid #8dd8ff;
  outline-offset:3px;
}

.qcalc-result-card {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  min-width:0;
  padding:18px;
  border:1px solid #344356;
  border-radius:12px;
  background:#161f2d;
}

.qcalc-result-card span {
  color:#b5c2d1;
  line-height:1.4;
}

.qcalc-result-card strong {
  color:#f1f5f9;
  font-size:clamp(1.25rem,3vw,2rem);
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}

.qcalc-result-card:first-child {
  border-color:#159deb;
  background:#122638;
}

.qcalc-error {
  color:#ffd0d0!important;
  border:1px solid #ce6c6c;
  border-radius:10px;
  padding:16px;
  background:#30191c;
}

.qcalc [hidden] {
  display:none!important;
}

@media(max-width:480px) {

  .qcalc-actions .ql-button {
    flex:1 1 100%;
  }

  .qcalc .qcalc-print-actions button {
    width:100%;
  }
}

@media print {

  body.qcalc-active {
    background:white!important;
    color:black!important;
  }

  body.qcalc-active .site-header,
  body.qcalc-active .site-footer,
  body.qcalc-active .qcalc-crumbs,
  body.qcalc-active .ql-crumbs,
  body.qcalc-active .qcalc-actions,
  body.qcalc-active .qcalc-print-actions,
  body.qcalc-active .qcalc-related,
  body.qcalc-active .qcalc-app {
    display:none!important;
  }

  .qcalc,.qcalc * {
    color:#111!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  .qcalc {
    width:100%!important;
    padding:0!important;
  }

  .qcalc-form,.qcalc-results,.qcalc-result-card,
  .qcalc-explanation {
    border-color:#aaa!important;
  }

  .qcalc-field input,.qcalc-field select {
    border-color:#aaa!important;
    color:#111!important;
    color-scheme:light;
  }

  .qcalc-result-card,.qcalc-field {
    break-inside:avoid;
  }
}


/* G11/G12-R3: grouped calculator directory only */

.qcalc-hub .qcalc-category-links {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:24px 0 32px;
}

.qcalc-hub .qcalc-category-links a {
  min-height:46px;
  overflow-wrap:anywhere;
}

.qcalc-hub .qcalc-group {
  border-top:1px solid #344356;
  padding-top:24px;
  margin-top:32px;
  scroll-margin-top:110px;
  min-width:0;
}

.qcalc-hub .qcalc-group-title {
  color:#f1f5f9;
  font-size:clamp(1.35rem,3vw,1.8rem);
  line-height:1.4;
  margin:0 0 8px;
}

.qcalc-hub .qcalc-card-title {
  color:#f1f5f9;
  font-size:1.2rem;
  line-height:1.4;
  margin:0 0 8px;
}

.qcalc-hub .ql-card > a {
  margin-top:auto;
  align-self:flex-start;
}

@media(max-width:480px) {

  .qcalc-hub .qcalc-category-links a {
    flex:1 1 100%;
  }

  .qcalc-hub .ql-card > a {
    align-self:stretch;
  }

}
