/* RENIC Gold & Silver Rate Master — Public Shortcode Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ren-primary: #B4232F;
  --ren-primary-h: #941B25;
  --ren-primary-l: #FDF0F1;
  --ren-bg: #F7F8FA;
  --ren-white: #FFFFFF;
  --ren-border: #E5E7EB;
  --ren-border-l: #F3F4F6;
  --ren-text: #172033;
  --ren-text-2: #667085;
  --ren-text-3: #9CA3AF;
  --ren-ok: #079455;
  --ren-ok-bg: #ECFDF5;
  --ren-err: #D92D20;
  --ren-err-bg: #FEF2F2;
  --ren-r: 12px;
  --ren-r-sm: 8px;
  --ren-sh: 0 1px 3px rgba(16,24,40,.1), 0 1px 2px rgba(16,24,40,.06);
  --ren-sh-md: 0 4px 8px -2px rgba(16,24,40,.1), 0 2px 4px -2px rgba(16,24,40,.06);
  --ren-fn: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.renic-rate-wrap {
  font-family: var(--ren-fn);
  color: var(--ren-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 900px;
  margin: 0 auto;
}

/* Empty State */
.renic-rate-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--ren-white);
  border: 1px dashed var(--ren-border);
  border-radius: var(--ren-r);
}
.renic-rate-empty-icon {
  color: var(--ren-text-3);
  margin-bottom: 16px;
}
.renic-rate-empty h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ren-text);
}
.renic-rate-empty p {
  font-size: 13px;
  color: var(--ren-text-2);
  margin: 0;
}

/* Header */
.renic-rate-header {
  margin-bottom: 24px;
}
.renic-rate-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.03em;
  color: var(--ren-text);
}
.renic-rate-meta {
  font-size: 13px;
  color: var(--ren-text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.renic-rate-date-icon {
  display: inline-flex;
  color: var(--ren-text-3);
}
.renic-rate-meta-sep {
  color: var(--ren-border);
}
.renic-rate-updated {
  color: var(--ren-text-3);
}

/* Section */
.renic-rate-section {
  margin-bottom: 32px;
}
.renic-rate-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ren-text-2);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ren-border);
}

/* Rate Cards */
.renic-rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.renic-rate-card {
  background: var(--ren-white);
  border: 1px solid var(--ren-border);
  border-radius: var(--ren-r);
  padding: 20px;
  text-align: center;
  transition: all .2s ease;
}
.renic-rate-card:hover {
  box-shadow: var(--ren-sh-md);
  border-color: var(--ren-primary);
}
.renic-rate-card-gold {
  border-top: 3px solid #D4A017;
}
.renic-rate-card-silver {
  border-top: 3px solid var(--ren-text-3);
}
.renic-rate-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ren-text-3);
  margin-bottom: 8px;
}
.renic-rate-card-value {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ren-text);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.renic-rate-card-unit {
  font-size: 12px;
  color: var(--ren-text-3);
  margin-top: 4px;
}
.renic-rate-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 6px;
}
.renic-rate-card-change.renic-change-up {
  background: var(--ren-ok-bg);
  color: var(--ren-ok);
}
.renic-rate-card-change.renic-change-down {
  background: var(--ren-err-bg);
  color: var(--ren-err);
}
.renic-rate-card-change.renic-change-same {
  background: var(--ren-border-l);
  color: var(--ren-text-3);
}
.renic-rate-card-pct {
  font-size: 12px;
  opacity: .8;
}

/* Tables */
.renic-rate-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ren-border);
  border-radius: var(--ren-r);
  background: var(--ren-white);
}
.renic-rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.renic-rate-table thead th {
  background: var(--ren-primary-l);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  color: var(--ren-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid #F5C6C9;
  white-space: nowrap;
}
.renic-rate-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ren-border-l);
  font-variant-numeric: tabular-nums;
}
.renic-rate-table tbody tr:last-child td {
  border-bottom: none;
}
.renic-rate-table tbody tr:hover td {
  background: #FFF7F7;
}
.renic-rate-td-label {
  font-weight: 700;
}
.renic-rate-td-value {
  font-weight: 600;
}
.renic-rate-td-date {
  font-weight: 600;
  white-space: nowrap;
}

/* Change Badges */
.renic-change-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.renic-change-up {
  background: var(--ren-ok-bg);
  color: var(--ren-ok);
}
.renic-change-down {
  background: var(--ren-err-bg);
  color: var(--ren-err);
}
.renic-change-same {
  background: var(--ren-border-l);
  color: var(--ren-text-3);
}

/* Chart */
.renic-chart-container {
  background: var(--ren-white);
  border: 1px solid var(--ren-border);
  border-radius: var(--ren-r);
  padding: 20px;
  margin-bottom: 16px;
}
.renic-chart-container canvas {
  width: 100% !important;
  max-height: 350px;
}

/* Calculator */
.renic-calc-public {
  background: var(--ren-white);
  border: 1px solid var(--ren-border);
  border-radius: var(--ren-r);
  overflow: hidden;
}
.renic-calc-controls {
  padding: 24px;
  border-bottom: 1px solid var(--ren-border-l);
}
.renic-calc-row {
  margin-bottom: 16px;
}
.renic-calc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ren-text-2);
  margin-bottom: 6px;
}
.renic-calc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ren-border);
  border-radius: var(--ren-r-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--ren-fn);
  color: var(--ren-text);
  transition: border-color .2s;
  box-sizing: border-box;
}
.renic-calc-input:focus {
  outline: none;
  border-color: var(--ren-primary);
  box-shadow: 0 0 0 3px rgba(180,35,47,.1);
}
.renic-calc-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ren-border);
  border-radius: var(--ren-r-sm);
  font-size: 14px;
  font-family: var(--ren-fn);
  color: var(--ren-text);
  background: var(--ren-white);
  transition: border-color .2s;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L6 8L9 5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.renic-calc-select:focus {
  outline: none;
  border-color: var(--ren-primary);
  box-shadow: 0 0 0 3px rgba(180,35,47,.1);
}

/* Segmented Controls */
.renic-calc-segmented {
  display: flex;
  gap: 0;
  border: 1px solid var(--ren-border);
  border-radius: var(--ren-r-sm);
  overflow: hidden;
}
.renic-seg-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: var(--ren-white);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ren-fn);
  color: var(--ren-text-2);
  cursor: pointer;
  transition: all .2s;
  border-right: 1px solid var(--ren-border);
}
.renic-seg-btn:last-child {
  border-right: none;
}
.renic-seg-btn:hover {
  background: var(--ren-bg);
}
.renic-seg-btn.active {
  background: var(--ren-primary);
  color: #fff;
}

/* Purity Pills */
.renic-calc-purity-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.renic-purity-pill {
  padding: 7px 16px;
  border: 1px solid var(--ren-border);
  border-radius: 20px;
  background: var(--ren-white);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ren-fn);
  color: var(--ren-text-2);
  cursor: pointer;
  transition: all .2s;
}
.renic-purity-pill:hover {
  border-color: var(--ren-primary);
  color: var(--ren-primary);
}
.renic-purity-pill.active {
  background: var(--ren-primary);
  border-color: var(--ren-primary);
  color: #fff;
}

/* Weight Pills */
.renic-calc-weight-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.renic-weight-pill {
  padding: 6px 12px;
  border: 1px solid var(--ren-border);
  border-radius: 6px;
  background: var(--ren-white);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ren-fn);
  color: var(--ren-text-2);
  cursor: pointer;
  transition: all .2s;
}
.renic-weight-pill:hover {
  border-color: var(--ren-primary);
  color: var(--ren-primary);
}
.renic-weight-pill.active {
  background: var(--ren-primary);
  border-color: var(--ren-primary);
  color: #fff;
}

/* Calculator Results */
.renic-calc-results {
  padding: 24px;
  background: #FAFBFC;
}
.renic-calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ren-border-l);
  font-size: 14px;
}
.renic-calc-line:last-of-type {
  border-bottom: none;
}
.renic-calc-line span:first-child {
  color: var(--ren-text-2);
}
.renic-calc-line span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ren-text);
}
.renic-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 8px;
  margin-top: 8px;
  border-top: 2px solid var(--ren-border);
}
.renic-calc-total span:first-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--ren-text);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.renic-calc-total span:last-child {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ren-primary);
}
.renic-calc-disclaimer {
  font-size: 12px;
  color: var(--ren-text-3);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .renic-rate-wrap { padding: 0; }
  .renic-rate-header h2 { font-size: 18px; }
  .renic-rate-cards { grid-template-columns: 1fr; }
  .renic-rate-card-value { font-size: 24px; }
  .renic-calc-controls { padding: 18px; }
  .renic-calc-results { padding: 18px; }
  .renic-calc-total span:last-child { font-size: 20px; }
  .renic-calc-segmented { flex-direction: column; }
  .renic-seg-btn { border-right: none; border-bottom: 1px solid var(--ren-border); }
  .renic-seg-btn:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .renic-rate-cards { gap: 10px; }
  .renic-rate-card { padding: 16px; }
  .renic-rate-card-value { font-size: 22px; }
  .renic-calc-weight-pills { gap: 4px; }
  .renic-weight-pill { padding: 5px 10px; font-size: 11px; }
}
