/* =========================================================
   Skandia Guld – Calculator UI (Nordic Heritage)
   ========================================================= */

/* Variables are bridged from Additional CSS via inline styles on .sgc-wrap:
   --sgc-panel, --sgc-text, --sgc-gold, --sgc-width
   We set strong defaults here as a safety net. */
:root{
  --sgc-width: 1100px;
  --sgc-panel: #1E2A26;     /* deep green */
  --sgc-text:  #F6F3EA;     /* light ivory on dark panel */
  --sgc-gold:  #C6A45B;
  --sgc-gold-deep:#9B7A31;
  --sgc-line:  rgba(198,164,91,.28);
  --sgc-shadow:0 12px 28px rgba(0,0,0,.25);
}

.sgc-grid{
  max-width: var(--sgc-width);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
}

/* Heading + updated time */
.sgc-heading{
  margin: 0 0 2px 0;
  color: #1E2A26;           /* page text (dark ink) */
  font-weight: 800;
  font-size: clamp(22px,2.4vw,30px);
}
.sgc-updated{
  margin: 0 0 12px;
  color: #54615C;
  font-size: 14px;
}

/* Panel card (dark green) */
.sgc-card{
  background: var(--sgc-panel);
  color: var(--sgc-text);
  border: 1px solid var(--sgc-line);
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow: var(--sgc-shadow);
}

/* Tabs */
.sgc-tabs{
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--sgc-line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.sgc-tab{
  background: transparent;
  border: 0;
  color: var(--sgc-text);
  opacity: .9;
  font-weight: 800;
  font-size: 12.5px;
  padding: 6px 0;
  cursor: pointer;
}
.sgc-tab[aria-selected="true"]{ opacity: 1; }
.sgc-tab[aria-selected="true"]::after{
  content:""; display:block; height:3px; border-radius:2px;
  background: var(--sgc-gold);
  margin-top: 6px;
}

/* Price & labels */
.sgc-label{
  margin-top: 2px;
  font-size: 14px;
  color: rgba(246,243,234,.85);
}
.sgc-price{
  margin: 6px 0 14px;
  color: var(--sgc-text);
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 38px);
}

/* Controls */
.sgc-control{
  display:flex; align-items:center; gap:12px;
  margin-bottom: 14px;
}
.sgc-range{
  flex:1;
  height: 8px; border-radius: 999px;
  background:
    linear-gradient(90deg, var(--sgc-gold) 0%, var(--sgc-gold) 0%) left/0% 100% no-repeat,
    rgba(255,255,255,.18);
  -webkit-appearance: none; appearance: none;
}
.sgc-range::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:18px; height:18px; border-radius:50%;
  background:#111; border:3px solid var(--sgc-gold);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor:pointer;
}
.sgc-range::-moz-range-thumb{
  width:18px; height:18px; border-radius:50%;
  background:#111; border:3px solid var(--sgc-gold);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor:pointer;
}
.sgc-number{
  width: 76px; height: 36px;
  background: #0F1613;
  color: var(--sgc-text);
  border: 1px solid var(--sgc-line);
  border-radius: 10px;
  padding: 0 10px;
  font-weight: 800;
}
.sgc-control > span{ color: var(--sgc-text); }

/* Totals */
.sgc-total{
  display:flex; justify-content:space-between;
  border-top: 1px dashed var(--sgc-line);
  margin-top: 10px; padding-top: 10px;
}
.sgc-total .label{ color: rgba(246,243,234,.85); }
.sgc-total .sum{ color: var(--sgc-text); font-weight: 900; }

/* Note under the card (same panel style) */
.sgc-note{
  margin-top: 14px;
  background: var(--sgc-panel);
  color: var(--sgc-text);
  border: 1px solid var(--sgc-line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--sgc-shadow);
}
.sgc-note p{ margin:0; line-height:1.7; }

/* Mobile */
@media (max-width: 900px){
  .sgc-grid{ padding: 0 14px; }
}
