.mycalc-matrix { max-width: 100%; margin: 0 0 28px; color: #353b32; }
.mycalc-matrix *, .mycalc-matrix *::before, .mycalc-matrix *::after { box-sizing: border-box; }
.mycalc-matrix [hidden], .mycalc-matrix .msg_hidden { display: none !important; }
.mycalc-matrix .calculator { max-width: 440px; margin-bottom: 24px; }
.mycalc-matrix .matrix-field { margin: 0 0 14px; }
.mycalc-matrix label { display: block; margin-bottom: 6px; font-size: 15px; line-height: 1.4; font-weight: 700; }
.mycalc-matrix input.bd__input,
.mycalc-matrix select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #aab4a1;
  border-radius: 8px;
  background: #fff;
  color: #353b32;
  box-shadow: none;
}
.mycalc-matrix input.bd__input { height: 56px; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mycalc-matrix input.bd__input::placeholder { color: #73796e; opacity: 1; font-size: 24px; }
.mycalc-matrix select { font-size: 16px; line-height: 1.4; }
.mycalc-matrix .form_button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 9px;
  background: #507d2b;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}
.mycalc-matrix .form_button:hover { background: #3d6320; }
.mycalc-matrix .form_button:disabled { cursor: wait; opacity: .7; }
.mycalc-matrix :is(input, select, button, a):focus-visible { outline: 2px solid #336305; outline-offset: 3px; }
.mycalc-matrix #msg_not_valid { margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: #a82323; }
.mycalc-matrix #mtrx_dsc { scroll-margin-top: 16px; }
.mycalc-matrix .matrix-result-heading { margin: 0 0 12px; }
.mycalc-matrix .matrix-birthday { margin: 0 0 6px; font-size: 18px; line-height: 1.45; }
.mycalc-matrix .matrix-summary { margin: 0 0 8px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.mycalc-matrix .matrix-view-name { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: #606856; }
.mycalc-matrix .matrix-placeholder { margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: #606856; }
.mycalc-matrix .matrix-copy {
  display: inline-block; padding: 4px 0; border: 0; border-radius: 0; background: none;
  color: #316c80; box-shadow: none; text-shadow: none; text-decoration: underline;
  font: inherit; line-height: inherit; cursor: pointer;
}
.mycalc-matrix table { width: 100%; max-width: 440px; margin: 0; table-layout: fixed; border-collapse: collapse; }
.mycalc-matrix table td { width: 25%; padding: 12px 3px; border: 1px solid #a8b09f; text-align: center; vertical-align: middle; background: #fff; }
.mycalc-matrix table td[colspan="3"] { width: 75%; }
.mycalc-matrix table td.outsq { background: #f2f5ed; }
.mycalc-matrix table td.empty { border: 0; background: transparent; }
.mycalc-matrix .sector_title { font-size: 14px; line-height: 1.35; hyphens: auto; overflow-wrap: anywhere; }
.mycalc-matrix .sector_value { font-size: 22px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.mycalc-matrix div.sector_value { margin-top: 7px; }
.mycalc-matrix #psymatrix-result[data-state="empty"] .sector_value { color: #8b9582; font-weight: 400; }
.mycalc-matrix .matrix-analysis-note { max-width: 560px; margin: 14px 0 22px; font-size: 13px; line-height: 1.5; color: #606856; }
.mycalc-matrix .matrix-analysis-heading { margin: 24px 0 12px; font-size: 17px; line-height: 1.5; font-weight: 700; }
.mycalc-matrix .an_list { margin: 0; padding-left: 22px; overflow-wrap: anywhere; }
.mycalc-matrix .an_list li { padding-bottom: 12px; }
.mycalc-matrix .matrix-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 479px) {
  .mycalc-matrix .calculator { margin-bottom: 20px; }
  .mycalc-matrix table td { padding: 10px 2px; }
  .mycalc-matrix .sector_title { font-size: clamp(12px, 3.25vw, 14px); }
  .mycalc-matrix .sector_value { font-size: 20px; }
}
.mycalc-matrix .matrix-child-analysis { max-width: 720px; line-height: 1.65; overflow-wrap: anywhere; }
.mycalc-matrix .matrix-child-analysis > p { margin: 0 0 16px; }
.mycalc-matrix .matrix-child-analysis h3 { margin: 28px 0 12px; font-size: 21px; line-height: 1.35; }
.mycalc-matrix .matrix-child-section { margin: 0 0 24px; }
.mycalc-matrix .matrix-analysis-error { padding: 12px 14px; border-left: 3px solid #a8b09f; background: #f2f5ed; font-size: 14px; }

/* Keep the numeric line the same height even when a long value needs smaller type. */
.mycalc-matrix:is([data-mycalc-matrix], [data-mycalc-relations]) .sector_value {
  font-size: 18px;
  line-height: 24px;
}
.mycalc-matrix:is([data-mycalc-matrix], [data-mycalc-relations]) div.sector_value {
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}

