/* GoldHub Calculators — extends the theme's design system, adds nothing to it. */

.ghk-page{max-width:820px;margin-inline:auto}

.ghk-crumbs{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--gh-tx-3,#8D96A8);
  margin-bottom:14px;flex-wrap:wrap}
.ghk-crumbs a{color:var(--gh-tx-2,#5A6376);font-weight:600}
.ghk-crumbs a:hover{color:var(--gh-gold-2,#C9821F)}

.ghk-head{margin-bottom:18px}
.ghk-answer{margin-top:14px;padding:14px 18px;border-radius:var(--gh-r-lg,18px);
  background:var(--gh-gold-soft,#FDF3E3);border:1px solid rgba(232,163,61,.3);
  font-size:17px;line-height:1.5;color:var(--gh-tx,#141720)}
.ghk-answer__sub{display:block;font-size:13.5px;color:var(--gh-tx-2,#5A6376);margin-top:5px;font-weight:500}
.ghk-lede{margin-top:14px;font-size:16px;line-height:1.75;color:var(--gh-tx-2,#5A6376)}

/* ---- the calculator ---- */
.ghk{margin-top:16px}
.ghk__row{display:grid;grid-template-columns:1fr;gap:12px}
.ghk__field{display:block}
.ghk__lab{display:block;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  color:var(--gh-tx-3,#8D96A8);margin-bottom:6px}
.ghk__field input,.ghk__field select{width:100%;padding:12px 14px;font-size:16px;font-weight:600;
  border:1.5px solid var(--gh-line,#E3E8F0);border-radius:var(--gh-r-md,14px);
  background:var(--gh-bg-2,#F6F8FB);color:var(--gh-tx,#141720);outline:none;transition:.16s;
  -webkit-appearance:none;appearance:none}
.ghk__field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238D96A8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:38px}
.ghk__field input:focus,.ghk__field select:focus{border-color:var(--gh-gold,#E8A33D);background:#fff;
  box-shadow:0 0 0 3px rgba(232,163,61,.16)}
.ghk__go{width:100%;padding:13px 20px;font-size:15px}

/* ---- result ---- */
.ghk__out{margin-top:20px;padding-top:20px;border-top:1px solid var(--gh-line,#E3E8F0)}
.ghk__out[hidden]{display:none}
.ghk__melt{text-align:center;padding:6px 0 18px}
.ghk__melt-lab{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--gh-tx-3,#8D96A8)}
.ghk__melt-n{display:block;font-size:clamp(34px,9vw,46px);font-weight:800;letter-spacing:-.035em;
  line-height:1.1;margin-top:6px;color:var(--gh-tx,#141720)}
.ghk__melt-sub{display:block;font-size:13px;color:var(--gh-tx-2,#5A6376);margin-top:6px;font-weight:600}

.ghk__band{background:var(--gh-bg-2,#F6F8FB);border-radius:var(--gh-r-lg,18px);padding:16px}
.ghk__band-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;
  font-size:14px;color:var(--gh-tx,#141720)}
.ghk__band-range{font-weight:800;font-size:17px;letter-spacing:-.02em;white-space:nowrap}
/* The gradient is pre-lightened rather than dimmed with opacity — opacity on the
   track would cascade to the marker inside it and wash it out too. */
.ghk__bar{position:relative;height:9px;border-radius:5px;margin:14px 0 6px;
  background:linear-gradient(90deg,#FAD4CF 0%,#FBE6C4 55%,#C6E9DA 100%)}
.ghk__bar b{position:absolute;top:-3px;height:15px;border-radius:4px;
  background:var(--gh-tx,#141720);box-shadow:0 1px 4px rgba(20,23,32,.28)}
.ghk__bar i{display:none}
.ghk__scale{display:flex;justify-content:space-between;font-size:11px;font-weight:700;
  color:var(--gh-tx-3,#8D96A8);letter-spacing:.03em}
.ghk__band-note{font-size:12.5px;line-height:1.65;color:var(--gh-tx-2,#5A6376);margin-top:12px}

.ghk__work{width:100%;border-collapse:collapse;margin-top:18px;font-size:14px}
.ghk__work caption{text-align:left;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--gh-tx-3,#8D96A8);padding-bottom:8px}
.ghk__work th{text-align:left;font-weight:600;color:var(--gh-tx-2,#5A6376);padding:8px 0;
  border-bottom:1px solid var(--gh-line,#E3E8F0)}
.ghk__work td{text-align:right;padding:8px 0;border-bottom:1px solid var(--gh-line,#E3E8F0);
  color:var(--gh-tx,#141720);font-weight:600}
.ghk__work-total th,.ghk__work-total td{border-bottom:none;padding-top:12px;font-size:16px;font-weight:800}
.ghk__hint{display:block;font-size:11px;font-weight:500;color:var(--gh-tx-3,#8D96A8);margin-top:2px}
.ghk__spot{font-size:12.5px;color:var(--gh-tx-3,#8D96A8);margin-top:14px;text-align:center}

/* ---- tables ---- */
.ghk__quick,.ghk__compare,.ghk__weights{margin-top:22px}
.ghk__quick table,.ghk__compare table,.ghk__weights table{width:100%;border-collapse:collapse;font-size:14px}
.ghk__quick caption,.ghk__compare caption,.ghk__weights caption{text-align:left;padding:14px 16px 10px;
  font-size:13px;font-weight:800;letter-spacing:-.01em;color:var(--gh-tx,#141720)}
.ghk__quick th,.ghk__compare th,.ghk__weights th{text-align:left;padding:9px 16px;font-weight:600}
.ghk__quick thead th,.ghk__compare thead th,.ghk__weights thead th{font-size:11px;text-transform:uppercase;
  letter-spacing:.05em;color:var(--gh-tx-3,#8D96A8);background:var(--gh-bg-2,#F6F8FB)}
.ghk__quick td,.ghk__compare td,.ghk__weights td{padding:9px 16px;text-align:right;
  border-top:1px solid var(--gh-line,#E3E8F0);color:var(--gh-tx-2,#5A6376)}
.ghk__quick tbody th,.ghk__compare tbody th,.ghk__weights tbody th{border-top:1px solid var(--gh-line,#E3E8F0);
  color:var(--gh-tx,#141720)}
.ghk__compare tr.is-on th,.ghk__compare tr.is-on td{background:var(--gh-gold-soft,#FDF3E3);
  color:var(--gh-gold-2,#C9821F);font-weight:800}
.ghk__weights-note{font-size:12.5px;color:var(--gh-tx-3,#8D96A8);margin-top:10px;line-height:1.6}

/* ---- karat grid ---- */
.ghk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gh-gap,14px)}
.ghk-card{display:flex;flex-direction:column;min-height:96px;padding:14px;border-radius:var(--gh-r-lg,18px);
  background:var(--gh-card,#fff);box-shadow:var(--gh-sh-1);transition:.18s}
.ghk-card:hover{transform:translateY(-2px);box-shadow:var(--gh-sh-2)}
.ghk-card__k{font-size:11px;font-weight:800;letter-spacing:.09em;color:var(--gh-tx-3,#8D96A8)}
.ghk-card__n{font-size:22px;font-weight:800;letter-spacing:-.03em;margin-top:auto;color:var(--gh-tx,#141720)}
.ghk-card__u{font-size:11.5px;font-weight:700;color:var(--gh-tx-3,#8D96A8);margin-top:2px}
.ghk-card--scrap{background:var(--gh-gold-soft,#FDF3E3)}
.ghk-card--scrap .ghk-card__k{color:var(--gh-gold-2,#C9821F)}

.ghk-body{margin-top:26px}
.ghk-disclaimer{margin-top:30px;padding-top:18px;border-top:1px solid var(--gh-line,#E3E8F0);
  font-size:12px;line-height:1.7;color:var(--gh-tx-3,#8D96A8)}

@media(min-width:620px){
  .ghk__row{grid-template-columns:1.3fr 1fr 1fr auto;align-items:end}
  .ghk__go{width:auto}
  .ghk-grid{grid-template-columns:repeat(4,1fr)}
}
