/* Karmin BTU Hesaplayıcı — hesap makinesi görünümü: üstte ekran, altta tuşlar.
   Renk: gece mavisi #0B1430, kraliyet mavisi #1D4ED8, turuncu #FF6B3D, açık mavi #9CC9FF */
.kcalc, .kcalc * { box-sizing: border-box; }
.kcalc {
  max-width: 540px; margin: 0 auto; padding: 14px; border-radius: 26px;
  background: #0B1430; box-shadow: 0 22px 48px rgba(11, 20, 48, .28);
  font-family: 'Inter', system-ui, sans-serif; color: #0B1430;
}

/* Ekran */
.kcalc__screen {
  display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px; margin-bottom: 12px;
  background: linear-gradient(160deg, #18244A, #101B3D); border: 1px solid #2E3D66; text-align: right;
}
.kcalc__lbl { font: 700 11px 'Inter', sans-serif; letter-spacing: .14em; color: #9CC9FF; text-align: left; }
.kcalc__btu {
  display: block; font: 800 clamp(30px, 6vw, 40px)/1.1 'Plus Jakarta Sans', sans-serif; color: #FFFFFF;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(156, 201, 255, .35);
}
.kcalc__sub { font-size: 13px; color: #D5DEF0; font-variant-numeric: tabular-nums; }
.kcalc__advice { color: #9CC9FF; }

/* Tuş takımı */
.kcalc__keys { background: #F3F6FD; border-radius: 18px; padding: 12px; display: grid; gap: 10px; }
.kcalc__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kcalc__num label, .kcalc__seg legend { display: block; font: 600 12px 'Inter', sans-serif; color: #475569; margin-bottom: 4px; padding: 0; }
.kcalc__step { display: flex; align-items: stretch; height: 44px; border-radius: 12px; background: #FFFFFF; border: 1px solid #CBD5E1; overflow: hidden; }
.kcalc__step button {
  flex: 0 0 34px; border: 0; background: #E6ECF8; color: #0B1430; font: 700 18px 'Inter', sans-serif; cursor: pointer;
}
.kcalc__step button:hover { background: #D5DEF0; }
.kcalc__step button:active { background: #9CC9FF; }
.kcalc__step input {
  flex: 1 1 auto; min-width: 0; width: 100%; border: 0; text-align: center; background: transparent;
  font: 700 17px 'Inter', sans-serif; color: #0B1430; -moz-appearance: textfield; appearance: textfield;
}
.kcalc__step input::-webkit-outer-spin-button, .kcalc__step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kcalc__step:focus-within { outline: 3px solid #9CC9FF; outline-offset: 1px; border-color: #1D4ED8; }

.kcalc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.kcalc__seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.kcalc__opts { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: #FFFFFF; border: 1px solid #CBD5E1; }
.kcalc__opts label { position: relative; flex: 1 1 0; min-width: 0; }
.kcalc__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kcalc__opts span {
  display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 4px; border-radius: 9px;
  font: 600 13px/1.15 'Inter', sans-serif; text-align: center; color: #0B1430; cursor: pointer; transition: background .15s;
}
.kcalc__opts span:hover { background: #F3F6FD; }
.kcalc__opts input:checked + span { background: #0B1430; color: #FFFFFF; }
.kcalc__opts input:focus-visible + span { outline: 3px solid #9CC9FF; outline-offset: 1px; }

/* "=" tuşu */
.kcalc__eq {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; align-self: end;
  border-radius: 12px; background: #FF6B3D; color: #0B1430; font: 800 14px 'Inter', sans-serif; text-decoration: none; text-align: center; padding: 0 8px;
}
.kcalc__eq:hover { background: #FF8257; }
.kcalc__eq[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.kcalc__note { margin: 0; color: #475569; font-size: 12px; text-align: center; }

@media (max-width: 480px) {
  .kcalc { padding: 10px; border-radius: 22px; }
  .kcalc__keys { padding: 10px; }
  .kcalc__grid { grid-template-columns: 1fr; }
  .kcalc__step button { flex-basis: 30px; }
}
