@font-face {
  font-family: "KBBH Inter";
  src: url("/wp-content/fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.kbbh,
.kbbh * {
  box-sizing: border-box;
}

.kbbh {
  --kbbh-accent: #e30215;
  --kbbh-ink: #17191e;
  --kbbh-muted: #747a85;
  --kbbh-line: #e7e9ed;
  --kbbh-soft: #f6f7f8;
  width: 100%;
  max-width: 100%;
  margin: 24px 0 34px;
  color: var(--kbbh-ink);
  font-family: "KBBH Inter", Inter, Arial, sans-serif;
  direction: ltr;
  text-align: left;
  container: kbbh / inline-size;
  isolation: isolate;
}

.kbbh--width-full {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 42px 0;
  background: linear-gradient(180deg, #fbfbfc 0%, #f6f7f8 100%);
}

.kbbh button,
.kbbh input,
.kbbh select {
  min-width: 0;
  margin: 0;
  font: inherit;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.kbbh button {
  appearance: none;
  -webkit-appearance: none;
}

.kbbh svg {
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kbbh__outer {
  width: min(1140px, calc(100% - 20px));
  margin: 0 auto;
}

.kbbh__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.kbbh__intro-copy {
  max-width: 760px;
}

.kbbh__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px !important;
  color: var(--kbbh-accent);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.kbbh__eyebrow span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--kbbh-accent);
}

.kbbh__title {
  margin: 0 !important;
  color: var(--kbbh-ink) !important;
  font-size: clamp(27px, 3.4vw, 42px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em;
  font-weight: 830 !important;
}

.kbbh__description {
  max-width: 700px;
  margin: 9px 0 0 !important;
  color: var(--kbbh-muted);
  font-size: 13.5px;
  line-height: 1.62;
}

.kbbh__intro-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 300px;
}

.kbbh__intro-points span {
  padding: 7px 10px;
  border: 1px solid var(--kbbh-line);
  border-radius: 999px;
  color: #5f6570;
  background: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 690;
  white-space: nowrap;
}

.kbbh__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  grid-template-areas:
    "type type"
    "calc result";
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--kbbh-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(18, 23, 32, .085);
}

.kbbh__type-section {
  grid-area: type;
  min-width: 0;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--kbbh-line);
  background: #fff;
}

.kbbh__calculator {
  grid-area: calc;
  min-width: 0;
  padding: 21px 22px 23px;
  background: #fff;
}

.kbbh__result {
  grid-area: result;
  min-width: 0;
  padding: 22px 20px 20px;
}

.kbbh__toolbar,
.kbbh__measure-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kbbh__toolbar {
  margin-bottom: 13px;
}

.kbbh__measure-head {
  margin-bottom: 13px;
}

.kbbh__toolbar-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.kbbh__toolbar-title > div {
  min-width: 0;
}

.kbbh__toolbar-title strong {
  display: block;
  margin: 0;
  color: #20232a;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 780;
}

.kbbh__toolbar-title small {
  display: block;
  margin-top: 2px;
  color: #898f99;
  font-size: 9.5px;
  line-height: 1.4;
  font-weight: 500;
}

.kbbh__step {
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--kbbh-accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 840;
  box-shadow: 0 6px 15px rgba(227, 2, 21, .18);
}

.kbbh__reset {
  flex: 0 0 auto;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid #e2e4e8 !important;
  border-radius: 9px !important;
  color: #636a75 !important;
  background: #fff !important;
  cursor: pointer;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 690 !important;
  box-shadow: none !important;
}

.kbbh__reset:hover {
  border-color: rgba(227, 2, 21, .35) !important;
  color: var(--kbbh-accent) !important;
  background: rgba(227, 2, 21, .025) !important;
}

.kbbh__types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.kbbh__type {
  position: relative;
  min-width: 0;
  min-height: 61px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px !important;
  overflow: hidden;
  border: 1px solid #e3e6ea !important;
  border-radius: 12px !important;
  color: #1f2228 !important;
  background: #fff !important;
  text-align: left !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.kbbh__type:hover {
  border-color: #cbd0d7 !important;
  color: #1f2228 !important;
  background: #fafbfc !important;
  box-shadow: 0 6px 16px rgba(18, 23, 32, .055) !important;
}

.kbbh__type.is-active {
  border-color: rgba(227, 2, 21, .58) !important;
  color: #1f2228 !important;
  background: rgba(227, 2, 21, .025) !important;
  box-shadow: 0 0 0 3px rgba(227, 2, 21, .055) !important;
}

.kbbh__type-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  overflow: hidden;
  border-radius: 10px;
  color: #69717d;
  background: #eff1f3;
}

.kbbh__type-icon svg,
.kbbh__type:hover .kbbh__type-icon svg,
.kbbh__type.is-active .kbbh__type-icon svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  flex-basis: 17px !important;
  transform: none !important;
}

.kbbh__type.is-active .kbbh__type-icon {
  color: #fff;
  background: var(--kbbh-accent);
}

.kbbh__type > span:last-child {
  min-width: 0;
  display: block;
}

.kbbh__type strong,
.kbbh__type:hover strong,
.kbbh__type.is-active strong {
  display: block;
  width: 100%;
  margin: 0;
  color: #22252b !important;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 760;
  white-space: normal;
  overflow-wrap: anywhere;
}

.kbbh__type small,
.kbbh__type:hover small,
.kbbh__type.is-active small {
  display: block;
  width: 100%;
  margin-top: 3px;
  color: #747b86 !important;
  font-size: 8.2px;
  line-height: 1.3;
  font-weight: 520;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 1 !important;
  visibility: visible !important;
}

.kbbh__select-label {
  position: relative;
  display: block;
}

.kbbh__select {
  width: 100%;
  height: 46px;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 42px 0 13px !important;
  border: 1px solid #dce0e5 !important;
  border-radius: 11px !important;
  color: #20232a !important;
  background: #fff !important;
  cursor: pointer;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 720 !important;
}

.kbbh__select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #777e89;
  border-bottom: 2px solid #777e89;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.kbbh__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.kbbh__field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.kbbh__label {
  display: block;
  color: #3d424b;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 720;
}

.kbbh__input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.kbbh__input-wrap input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 56px 0 12px !important;
  border: 1px solid #dce0e5 !important;
  border-radius: 10px !important;
  outline: 0;
  color: #171a20 !important;
  -webkit-text-fill-color: #171a20;
  background: #fff !important;
  font-size: 12.5px !important;
  line-height: normal !important;
  font-weight: 670 !important;
  box-shadow: none !important;
}

.kbbh__input-wrap input::placeholder {
  color: #aeb4bd !important;
  -webkit-text-fill-color: #aeb4bd;
  opacity: 1;
  font-weight: 500;
}

.kbbh__input-wrap input:focus {
  border-color: var(--kbbh-accent) !important;
  box-shadow: 0 0 0 3px rgba(227, 2, 21, .07) !important;
}

.kbbh__input-wrap input.is-invalid {
  border-color: #d92d20 !important;
  background: #fff8f7 !important;
}

.kbbh__suffix {
  position: absolute;
  right: 10px;
  top: 50%;
  min-width: 34px;
  padding-left: 8px;
  border-left: 1px solid #e5e7eb;
  color: #7f8690;
  text-align: center;
  font-size: 9px;
  line-height: 1;
  font-weight: 680;
  transform: translateY(-50%);
  pointer-events: none;
}

.kbbh__field small {
  min-height: 12px;
  color: #8e949d;
  font-size: 8.3px;
  line-height: 1.35;
  font-weight: 500;
}

.kbbh__advanced {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--kbbh-line);
  border-radius: 11px;
}

.kbbh__advanced-toggle {
  width: 100% !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #4f5661 !important;
  background: #fafafb !important;
  cursor: pointer;
  font-size: 10px !important;
  line-height: 1.2 !important;
  font-weight: 710 !important;
  box-shadow: none !important;
}

.kbbh__advanced-toggle svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex-basis: 15px !important;
  transition: transform .16s ease;
}

.kbbh__advanced-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.kbbh__advanced-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--kbbh-line);
}

.kbbh__advanced-body:not([hidden]) {
  display: grid;
}

.kbbh__result {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 85% 3%, rgba(227, 2, 21, .36), transparent 34%),
    linear-gradient(145deg, #121318 0%, #20232a 100%);
}

.kbbh__result::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 24px 24px;
}

.kbbh__result > * {
  position: relative;
  z-index: 1;
}

.kbbh__result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kbbh__result-head span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  line-height: 1.25;
  font-weight: 650;
}

.kbbh__result-head strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 750;
}

.kbbh__live {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  color: rgba(255,255,255,.66) !important;
  background: rgba(255,255,255,.045);
  font-size: 8px !important;
  white-space: nowrap;
}

.kbbh__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #36d17e;
  box-shadow: 0 0 0 3px rgba(54,209,126,.12);
}

.kbbh__volume {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 12px;
}

.kbbh__volume strong {
  color: #fff;
  font-size: clamp(44px, 5.3vw, 60px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 850;
}

.kbbh__volume span {
  color: #ff5361;
  font-size: 18px;
  line-height: 1;
  font-weight: 820;
}

.kbbh__progress {
  height: 4px;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}

.kbbh__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--kbbh-accent), #ff5b68);
  transition: width .28s ease;
}

.kbbh__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.kbbh__summary > div {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.05);
}

.kbbh__summary span {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,255,255,.48);
  font-size: 7.4px;
  line-height: 1.25;
}

.kbbh__summary strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 9px;
  line-height: 1.25;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kbbh__summary b {
  font-weight: inherit;
}

.kbbh__formula {
  margin: 12px 0;
  padding: 10px 11px;
  border-left: 3px solid var(--kbbh-accent);
  border-radius: 0 9px 9px 0;
  background: rgba(255,255,255,.05);
}

.kbbh__formula span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.44);
  font-size: 7.5px;
  line-height: 1.2;
  font-weight: 710;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.kbbh__formula p {
  margin: 0 !important;
  color: rgba(255,255,255,.73);
  font-size: 9.4px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.kbbh__actions {
  width: 100%;
  margin: 0;
}

.kbbh__primary,
.kbbh__secondary button {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
}

.kbbh__primary {
  min-height: 45px !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px !important;
  border: 0 !important;
  border-radius: 11px !important;
  color: #fff !important;
  background: var(--kbbh-accent) !important;
  cursor: pointer;
  font-size: 10.2px !important;
  line-height: 1.25 !important;
  font-weight: 780 !important;
  box-shadow: 0 9px 20px rgba(227, 2, 21, .20) !important;
}

.kbbh__primary:hover:not(:disabled) {
  background: #c90012 !important;
}

.kbbh__primary:disabled {
  color: rgba(255,255,255,.58) !important;
  background: rgba(227, 2, 21, .22) !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

.kbbh__primary svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-basis: 16px !important;
}

.kbbh__secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 7px;
}

.kbbh__secondary button {
  min-width: 0 !important;
  min-height: 36px !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 9px !important;
  color: rgba(255,255,255,.68) !important;
  background: rgba(255,255,255,.043) !important;
  cursor: pointer;
  font-size: 8.8px !important;
  line-height: 1.2 !important;
  font-weight: 670 !important;
  box-shadow: none !important;
}

.kbbh__secondary button:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.20) !important;
  background: rgba(255,255,255,.075) !important;
}

.kbbh__secondary svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-basis: 14px !important;
}

.kbbh__notice {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.kbbh__notice svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-basis: 14px !important;
  color: #f1b84b;
}

.kbbh__notice p {
  margin: 0 !important;
  color: rgba(255,255,255,.51);
  font-size: 8.2px;
  line-height: 1.5;
}

.kbbh__guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: rgba(255,255,255,.78) !important;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 680;
  text-decoration: none !important;
}

.kbbh__guide-link svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-basis: 14px !important;
}

.kbbh__noscript {
  margin: 10px 0 0 !important;
  padding: 10px 12px;
  border: 1px solid #efc3c7;
  border-radius: 9px;
  color: #7d1a22;
  background: #fff5f5;
  font-size: 11px;
}

.kbbh__toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 999999;
  transform: translate(-50%, 18px);
  padding: 10px 13px;
  border-radius: 9px;
  color: #fff;
  background: #191b20;
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  opacity: 0;
  pointer-events: none;
  font-size: 11px;
  transition: opacity .16s ease, transform .16s ease;
}

.kbbh__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.kbbh__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Homepage mode stays deliberately compact. */
.kbbh--compact {
  margin: 18px 0;
}

.kbbh--compact .kbbh__intro {
  margin-bottom: 12px;
}

.kbbh--compact .kbbh__title {
  font-size: clamp(24px, 3vw, 34px) !important;
}

.kbbh--compact .kbbh__description {
  margin-top: 6px !important;
  font-size: 12px;
}

.kbbh--compact .kbbh__type-section {
  padding: 16px 18px 14px;
}

.kbbh--compact .kbbh__calculator {
  padding: 17px 18px 18px;
}

.kbbh--compact .kbbh__result {
  padding: 18px 17px 17px;
}

.kbbh--compact .kbbh__advanced,
.kbbh--compact .kbbh__field small,
.kbbh--compact .kbbh__notice {
  display: none;
}

.kbbh--compact .kbbh__form {
  gap: 9px;
}

.kbbh--compact .kbbh__input-wrap input {
  height: 40px !important;
}

.kbbh--compact .kbbh__summary {
  grid-template-columns: 1fr 1fr;
}

.kbbh--compact .kbbh__summary > div:last-child {
  display: none;
}

.kbbh--compact .kbbh__secondary {
  grid-template-columns: 1fr;
}

/* Respond to the actual article/container width, not browser width. */
@container kbbh (max-width: 780px) {
  .kbbh__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "type"
      "calc"
      "result";
  }

  .kbbh__types {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 1px 7px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .kbbh__type {
    flex: 0 0 175px;
    min-width: 175px;
    scroll-snap-align: start;
  }

  .kbbh__result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 10px 16px;
    align-items: center;
  }

  .kbbh__result-head,
  .kbbh__progress,
  .kbbh__summary,
  .kbbh__formula,
  .kbbh__notice,
  .kbbh__guide-link {
    grid-column: 1 / -1;
  }

  .kbbh__volume {
    margin: 0;
  }

  .kbbh__actions {
    min-width: 0;
  }
}

@container kbbh (max-width: 560px) {
  .kbbh {
    margin: 18px 0 26px;
  }

  .kbbh__outer {
    width: min(100% - 12px, 1140px);
  }

  .kbbh__intro {
    margin-bottom: 12px;
  }

  .kbbh__intro-points {
    display: none;
  }

  .kbbh__title {
    font-size: 25px !important;
  }

  .kbbh__description {
    font-size: 11.5px;
  }

  .kbbh__card {
    border-radius: 15px;
  }

  .kbbh__type-section {
    padding: 15px 13px 12px;
  }

  .kbbh__calculator {
    padding: 15px 13px 16px;
  }

  .kbbh__result {
    padding: 15px 13px 14px;
  }

  .kbbh__toolbar-title small {
    display: none;
  }

  .kbbh__type {
    flex-basis: 158px;
    min-width: 158px;
    min-height: 57px;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 8px;
    padding: 9px !important;
  }

  .kbbh__type-icon {
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    max-width: 31px;
    max-height: 31px;
  }

  .kbbh__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 8px;
  }

  .kbbh__label {
    font-size: 9.3px;
  }

  .kbbh__input-wrap input {
    height: 40px !important;
    padding-left: 9px !important;
    padding-right: 47px !important;
    font-size: 11.5px !important;
  }

  .kbbh__suffix {
    right: 7px;
    min-width: 29px;
    padding-left: 6px;
    font-size: 8px;
  }

  .kbbh__field small {
    display: none;
  }

  .kbbh__result {
    grid-template-columns: minmax(0, 1fr) minmax(132px, .78fr);
    gap: 8px 10px;
  }

  .kbbh__volume {
    grid-column: 1;
  }

  .kbbh__actions {
    grid-column: 2;
  }

  .kbbh__progress,
  .kbbh__summary,
  .kbbh__formula,
  .kbbh__notice,
  .kbbh__guide-link {
    grid-column: 1 / -1;
  }

  .kbbh__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kbbh__formula {
    margin: 2px 0 0;
  }

  .kbbh__secondary {
    display: none;
  }

  .kbbh__primary {
    min-height: 41px !important;
    padding: 9px 7px !important;
    font-size: 8.8px !important;
  }

  .kbbh__volume strong {
    font-size: 43px;
  }

  .kbbh__notice {
    margin-top: 3px;
  }

  .kbbh--compact .kbbh__summary,
  .kbbh--compact .kbbh__formula {
    display: none;
  }
}

@container kbbh (max-width: 365px) {
  .kbbh__form {
    grid-template-columns: 1fr;
  }

  .kbbh--compact .kbbh__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kbbh__result {
    grid-template-columns: 1fr;
  }

  .kbbh__volume,
  .kbbh__actions {
    grid-column: 1;
  }

  .kbbh__summary {
    grid-template-columns: 1fr 1fr;
  }

  .kbbh__summary > div:last-child {
    grid-column: 1 / -1;
  }
}

/* Fallback for browsers without container queries. */
@media (max-width: 760px) {
  .kbbh__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "type"
      "calc"
      "result";
  }
}

@media (prefers-reduced-motion: reduce) {
  .kbbh *,
  .kbbh *::before,
  .kbbh *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .kbbh,
  .kbbh * {
    visibility: visible !important;
  }

  .kbbh {
    position: absolute;
    inset: 0;
    margin: 0;
  }

  .kbbh__intro,
  .kbbh__type-section,
  .kbbh__calculator,
  .kbbh__actions,
  .kbbh__guide-link {
    display: none !important;
  }

  .kbbh__card {
    display: block;
    box-shadow: none;
    border: 0;
  }
}
