/* =========================================================================
 * SaltCrate — guide.css
 * Styles for the /melt-value/ guide cluster. Loads after style.css and
 * inherits its design tokens (colours, radius, fonts).
 * ========================================================================= */

.guide-header { justify-content: space-between; }
.guide-header .brand { text-decoration: none; }
.guide-header .brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.guide-header .site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-left: auto;
}
.guide-header .site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.guide-header .site-nav a:hover { color: var(--text); text-decoration: none; }
.guide-header .site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.guide-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0.5rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb span[aria-current] { color: var(--text-muted); }

/* ------------------------------- hero ---------------------------------- */
.guide-hero { margin-bottom: 1.5rem; }
.guide-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dim);
  margin: 0 0 0.4rem;
}
.guide-hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  margin: 0 0 0.6rem;
}
.guide-lede {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 1.25rem;
  max-width: 62ch;
}

/* ---------------------------- live value card -------------------------- */
.live-value {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.1rem;
}
.lv-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 0.9rem;
}
.lv-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  width: 100%;
}
.lv-amount {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ok);
  line-height: 1.1;
}
.lv-note { font-size: 0.82rem; color: var(--text-dim); margin-left: auto; }
.lv-table { margin: 0 0 0.75rem; }
.lv-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.live-value .btn { margin-top: 0.35rem; }

/* ------------------------------ sections ------------------------------- */
.guide-section { margin-top: 1.25rem; }
.guide-section > h2 { margin-top: 0; }
.guide-section p { margin: 0.55rem 0; }
.guide-section ul { margin: 0.5rem 0; padding-left: 1.15rem; }
.guide-section li { margin: 0.35rem 0; }
.spec-table td:first-child { color: var(--text-muted); white-space: nowrap; }
.formula {
  font-family: var(--font-mono);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  margin: 0.6rem 0;
  font-size: 0.92rem;
  color: var(--gold);
  overflow-x: auto;
}

/* --------------------------------- FAQ --------------------------------- */
.faq details {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 0.35rem 0.9rem;
  margin: 0.5rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--accent); font-weight: 700; }
.faq details[open] summary::before { content: "– "; }
.faq details p { margin: 0 0 0.75rem; color: var(--text-muted); }

/* ------------------------------- related -------------------------------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.rel-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0.85rem 0.95rem;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.rel-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.rel-card .rel-title { font-weight: 600; display: block; margin-bottom: 0.2rem; }
.rel-card .rel-sub { font-size: 0.83rem; color: var(--text-muted); }

/* hub page */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.hub-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.1rem;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.hub-card h3 { margin: 0 0 0.3rem; color: var(--gold); font-size: 1.05rem; }
.hub-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 620px) {
  .guide-wrap { padding: 1rem 1rem 2.5rem; }
  .lv-note { margin-left: 0; }
}
