 .fathercalc{
  --fc-bg: #f7f9fc;
  --fc-surface: #ffffff;
  --fc-surface-2: #f8fbff;
  --fc-border: #e6edf5;
  --fc-text: #16202a;
  --fc-muted: #66758a;

  --fc-primary: #2f6fed;
  --fc-primary-dark: #1f5bd6;

  --fc-tab-bg: #eef4ff;
  --fc-tab-text: #26415f;
  --fc-tab-active-1: #5da8ff;
  --fc-tab-active-2: #2f6fed;
  --fc-tab-active-text: #ffffff;

  --fc-tooltip-bg: #e9f4ff;
  --fc-tooltip-border: #b9dbff;
  --fc-tooltip-text: #12324f;

  --fc-btn-1: #5da8ff;
  --fc-btn-2: #2f6fed;
  --fc-btn-text: #ffffff;

  --fc-radius: 1.25rem;
  --fc-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --fc-shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.fathercalc .fc-hidden{
  display:none !important;
}

/* panel-animation */
.fathercalc #fc-panel-lineage,
.fathercalc #fc-panel-tree,
.fathercalc #fc-panel-two{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

.fathercalc #fc-panel-lineage.fc-hidden,
.fathercalc #fc-panel-tree.fc-hidden,
.fathercalc #fc-panel-two.fc-hidden{
  display:block !important;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.fathercalc .fc-card{
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: visible;
}

.fathercalc .fc-muted{
  color: var(--fc-muted);font-size:1rem;
}

.fathercalc .fc-chart-wrap{
  height: 260px;
  position: relative;
}

.fathercalc #fc-chart{
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.fathercalc .fc-grid-5{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:12px;
}

.fathercalc .card-body{
  padding: 2rem !important;
}

.fathercalc h2,
.fathercalc h3{
  color: var(--fc-text);
  letter-spacing: -0.02em;
}

.fathercalc h2.h4{
  font-size: 2rem;
  font-weight: 750;
  margin-bottom: .35rem;
}

.fathercalc h3.h6{
  font-size: 1rem;
  font-weight: 700;
}

.fathercalc hr{
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--fc-border), transparent);
  opacity: 1;
  margin: 1.75rem 0;
}

.fathercalc .badge.text-bg-dark{
  background: #eaf2ff !important;
  color: #244a7c !important;
  border: 1px solid #d7e7ff;
  font-weight: 700;
  padding: .45rem .7rem;
  border-radius: 999px;
}

.fathercalc .form-label{
  font-size: .95rem;
  font-weight: 600;
  color: var(--fc-text);
  margin-bottom: .5rem;
}

.fathercalc .form-control,
.fathercalc .form-select{
  min-height: 48px;
  border-radius: .85rem;
  border: 1px solid var(--fc-border);
  background: #fff;
  box-shadow: none;
  color: var(--fc-text);
}

.fathercalc .form-control::placeholder{
  color: #98a5b5;
}

.fathercalc .form-control:focus,
.fathercalc .form-select:focus{
  border-color: #bfd5ff;
  box-shadow: 0 0 0 .22rem rgba(37, 99, 235, 0.10);
}

/* testtyp buttons */
.fathercalc .btn-group{
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--fc-border);
  background: #fff;
}

.fathercalc .btn-group .btn{
  min-height: 52px;
  border-radius: 0 !important;
  border-color: var(--fc-border);
  font-weight: 700;
  color: var(--fc-tab-text);
  background: var(--fc-tab-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.fathercalc .btn-check:checked + .btn{
  background: linear-gradient(180deg, var(--fc-tab-active-1) 0%, var(--fc-tab-active-2) 100%);
  color: var(--fc-tab-active-text);
  border-color: var(--fc-tab-active-2);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.18);
}

.fathercalc .btn-group .btn:hover{
  background: #e4efff;
  color: #17385b;
}

/* räkna ut-knappar */
.fathercalc .btn-primary,
.fathercalc #btn-two.btn-dark{
  background: linear-gradient(180deg, var(--fc-btn-1) 0%, var(--fc-btn-2) 100%);
  border: none;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: .95rem;
  font-weight: 700;
  color: var(--fc-btn-text);
  box-shadow: 0 8px 20px rgba(47, 111, 237, .20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.fathercalc .btn-primary:hover,
.fathercalc #btn-two.btn-dark:hover{
  filter: brightness(.99);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 111, 237, .24);
}

.fathercalc .btn-outline-secondary{
  border-radius: .8rem;
  border-color: var(--fc-border);
  color: #344256;
  background: #fff;
}

.fathercalc .btn-outline-secondary:hover{
  background: #f5f8fc;
  color: #16202a;
  border-color: #d6e1ee;
}

.fathercalc .form-check-input{
  border-color: #c8d5e4;
  width: 1.1rem;
  height: 1.1rem;
}

.fathercalc .form-check-input:checked{
  background-color: var(--fc-primary);
  border-color: var(--fc-primary);
}

.fathercalc [data-bs-toggle="tooltip"]{
  color: #7d8ba0;
  cursor: help;
  font-size: .9em;
}
.fathercalc .fc-result-card .card-body,
.fathercalc #fc-chart-card .card-body{
  padding: 1.6rem 1.6rem 1.4rem !important;
}

.fathercalc .fc-result-title{
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--fc-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.fathercalc .fc-metric-list{
  display: grid;
  gap: .7rem;
}

.fathercalc .fc-metric{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem .95rem;
  border: 1px solid #e9eff6;
  background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
  border-radius: .95rem;
}

.fathercalc .fc-metric-label{
  color: #5d6c80;
  font-weight: 600;
  font-size: 1rem;
}

.fathercalc .fc-metric-value{
  color: var(--fc-text);
  font-weight: 750;
  font-size: 1.08rem;
}

.fathercalc .fc-metric-value.is-danger{
  color: #c2410c;
}

.fathercalc .fc-metric-value.is-good{
  color: #1d4ed8;
}

.fathercalc #fc-chart-card .fw-semibold{
  font-size: 1.35rem;
  font-weight: 750 !important;
  color: var(--fc-text);
  margin-bottom: .4rem !important;
}

.fathercalc #fc-chart-caption{
  font-size: 1rem !important;
  line-height: 1.5;
  margin-bottom: 1rem !important;
}

.fathercalc .fc-chart-wrap{
  height: 340px;
}

@media (max-width: 767px){
  .fathercalc .fc-chart-wrap{
    height: 280px;
  }

  .fathercalc .fc-metric{
    padding: .75rem .85rem;
  }

  .fathercalc .fc-metric-label,
  .fathercalc .fc-metric-value{
    font-size: .95rem;
  }
}
.tooltip{
  --bs-tooltip-bg: #fff4b8 !important;
  --bs-tooltip-color: #4d3c00 !important;
  --bs-tooltip-opacity: 1 !important;
  --bs-tooltip-padding-x: .9rem;
  --bs-tooltip-padding-y: .7rem;
  --bs-tooltip-border-radius: .9rem;
  --bs-tooltip-max-width: 320px;
  z-index: 9999 !important;
}

.tooltip.show{
  opacity: 1 !important;
  z-index: 9999 !important;
}

.tooltip .tooltip-inner{
  background: #fff4b8 !important;
  color: #4d3c00 !important;
  border: 1px solid #e4cb66 !important;
  box-shadow: 0 10px 24px rgba(18, 50, 79, .12);
  text-align: left;
  line-height: 1.45;
  opacity: 1 !important;
}

.tooltip .tooltip-arrow::before{
  border-top-color: #fff4b8 !important;
}
.fathercalc #fc-adv-lineage-block .card,
.fathercalc #fc-adv-tree-block .card,
.fathercalc #fc-adv-two-block .card{
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%) !important;
  border: 1px solid var(--fc-border) !important;
  box-shadow: var(--fc-shadow-soft);
}

.fathercalc .fc-result-card{
  border: 1px solid var(--fc-border);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--fc-shadow-soft);
  height: 100%;
}

.fathercalc .fc-result-card .card-body{
  padding: 1.35rem 1.35rem 1.2rem !important;
}

.fathercalc .fc-statlist{
  display: grid;
  gap: .45rem;
}

.fathercalc .fc-stat{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:.55rem .75rem;
  border-radius:.8rem;
  background:#f8fbff;
  border:1px solid #edf3fa;
}

.fathercalc .fc-stat span:first-child{
  color: var(--fc-muted);
  font-weight: 600;
}

.fathercalc .fc-stat span:last-child{
  color: var(--fc-text);
  font-weight: 750;
}

.fathercalc .fc-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:.25rem;
}

.fathercalc .fc-panel-head .fc-panel-copy{
  color: var(--fc-muted);
  font-size: .95rem;
  max-width: 720px;
}

@media (max-width: 991px){
  .fathercalc .card-body{
    padding: 1.25rem !important;
  }
}

@media (max-width: 767px){
  .fathercalc .fc-grid-5{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .fathercalc h2.h4{
    font-size: 1.45rem;
  }

  .fathercalc .btn-group{
    display:grid;
    grid-template-columns:1fr;
  }

  .fathercalc .btn-group .btn{
    border-radius:0 !important;
  }
}
.fc-header-desc {
  margin-top: 6px;

}
   .fc-header {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  border: 1px solid #dfe9f6;
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.fc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fc-header-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

    .fc-header-main img {
        height: 150px;
        width: auto;
        object-fit: contain;
        border-radius: 12px;
        background: transparent;
        mix-blend-mode: multiply;
    }

.fc-header-copy {
  max-width: 620px;
}

.fc-header-kicker {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #17324d;
  margin-bottom: .45rem;
}

.fc-header-intro {
  font-size: 1rem;
  line-height: 1.65;
  color: #5f7186;
}

.fc-badge {
  background: #dfeeff;
  color: #23466e;
  border: 1px solid #c7ddf7;
  padding: .45rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .fc-header-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .fc-header-main img {
    height: 120px;
  }

  .fc-header-kicker {
    font-size: 1.15rem;
  }
}