/* ==========================================================================
   EA Bullion price, guide and vaulting pages. Loaded after styles.css.
   The struck price is the one loud thing; everything around it stays quiet.
   ========================================================================== */

.page { padding-top: 1.5rem; padding-bottom: 2rem; }

.crumbs { font-size: var(--s-13); color: var(--ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------ Price quote ------------------------------ */

.quote {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end;
  padding-top: clamp(1.5rem, 4vw, 2.75rem); padding-bottom: 2rem; border-bottom: 1px solid var(--ink);
}
.quote h1 { font-stretch: var(--semi); font-size: clamp(1.6rem, 3.2vw, var(--s-32)); }
.quote__lede { margin-top: 0.5rem; color: var(--ink-soft); max-width: 34em; }
.quote__price {
  display: block; margin-top: 1.25rem;
  font-stretch: var(--wide); font-weight: 750; letter-spacing: -0.02em; line-height: 0.95;
  font-size: clamp(2.9rem, 8.4vw, 6.25rem); white-space: nowrap; transition: color 0.6s ease;
}
.quote__unit { display: block; margin-top: 0.6rem; font-size: var(--s-15); color: var(--ink-soft); }
.quote__move { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; align-items: baseline; font-size: var(--s-15); }
.quote__chg { font-weight: 650; font-size: var(--s-17); }
.quote__status { color: var(--ink-soft); }
.quote__status .feed__dot { display: inline-block; margin-right: 0.4rem; vertical-align: 0.05em; }
.quote__status[data-status="live"] .feed__dot { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 20%, transparent); }
.quote__status[data-status="stale"] .feed__dot, .quote__status[data-status="down"] .feed__dot { background: var(--down); }
.quote__status[data-status="closed"] .feed__dot { background: #8a7a3a; }

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.figures > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.figures > div:nth-child(odd) { padding-right: 1.25rem; }
.figures > div:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.figures dt { color: var(--ink-soft); font-size: var(--s-15); }
.figures dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* --------------------------------- Chart --------------------------------- */

.chart { margin-top: 2rem; }
.chart__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; }
.chart__title { font-size: var(--s-20); }
.chart__controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ranges { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.ranges button {
  border: 0; background: transparent; padding: 0.4rem 0.8rem; font-size: var(--s-15); font-weight: 600; min-width: 2.75rem;
}
.ranges button + button { border-left: 1px solid var(--ink); }
.ranges button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ranges button:hover:not([aria-pressed="true"]) { background: var(--paper-deep); }
.ranges button:focus-visible { outline-offset: -4px; outline-color: currentColor; }
.chart__toggle { height: 2.15rem; padding: 0 0.85rem; }

.chart__surface {
  position: relative; margin-top: 0.9rem; background: var(--paper-raised);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.75rem 0.5rem 0.25rem;
}
.chart__plot { position: relative; height: 340px; touch-action: pan-y; }
.chart__plot:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart__plot text { font-family: var(--font); font-size: 12px; fill: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chart__plot .chart__end { fill: var(--ink); font-weight: 650; font-size: 13px; }
.chart__empty {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 0.35rem;
  padding: 1rem; color: var(--ink-soft); font-size: var(--s-15);
}
.chart__empty strong { color: var(--ink); font-weight: 600; }
.chart__tip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 0.4rem 0.6rem; font-size: var(--s-13); line-height: 1.35; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(27, 41, 50, 0.6);
}
.chart__tip strong { display: block; font-size: var(--s-15); font-weight: 650; }
.chart__note { margin-top: 0.6rem; font-size: var(--s-13); color: var(--ink-soft); max-width: 60em; }
.chart__table { max-height: 340px; overflow: auto; }
.chart__table table { width: 100%; border-collapse: collapse; font-size: var(--s-15); }
.chart__table caption { text-align: left; font-size: var(--s-13); color: var(--ink-soft); padding: 0 0.5rem 0.5rem; }
.chart__table th, .chart__table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--rule); }
.chart__table th { font-size: var(--s-13); color: var(--ink-soft); font-weight: 600; position: sticky; top: 0; background: var(--paper-raised); }
.chart__table td:last-child, .chart__table th:last-child { text-align: right; }

/* ------------------------------ Article body ----------------------------- */

.article {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); gap: 3rem clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem); align-items: start;
}
.article__body > section + section { margin-top: 2.75rem; }
.article__body h2 { font-stretch: var(--semi); font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 0.75rem; }
.article__body h3 { font-size: var(--s-17); margin: 1.25rem 0 0.25rem; }
.article__body p { max-width: 38em; }
.article__body p + p { margin-top: 0.9rem; }
.article__body ul { max-width: 38em; padding-left: 1.2rem; margin: 0.75rem 0 0; }
.article__body li + li { margin-top: 0.5rem; }
.article__body li strong { font-weight: 650; }
.cite { font-size: var(--s-13); color: var(--ink-soft); }

/* Demand split: one hue per page, text in ink */
.uses { list-style: none; padding: 0 !important; margin: 1.25rem 0 0.5rem !important; max-width: 38em; display: grid; gap: 0.85rem; }
.uses li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1rem; margin: 0 !important; }
.uses__name { font-weight: 600; }
.uses__val { font-weight: 600; white-space: nowrap; }
.uses__track { grid-column: 1 / -1; height: 8px; background: var(--paper-deep); border-radius: 0 4px 4px 0; }
.uses__fill { display: block; height: 100%; width: 0; border-radius: 0 4px 4px 0; background: var(--line, var(--ink)); }
.uses__note { grid-column: 1 / -1; font-size: var(--s-15); color: var(--ink-soft); }
.line-gold { --line: #a06d00; }
.line-silver { --line: #2a78d6; }
.line-platinum { --line: #16876a; }
.line-copper { --line: #a04a1c; }

.aside { position: sticky; top: 5.5rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.aside h2 { font-size: var(--s-20); }
.aside p { margin-top: 0.4rem; color: var(--ink-soft); font-size: var(--s-15); }
.stock { list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.stock li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); font-size: var(--s-15); }
.stock li:first-child { border-top: 1px solid var(--rule); }
.stock .is-out { color: var(--ink-soft); }
.stock__price { font-weight: 600; white-space: nowrap; }
.aside .btn { width: 100%; }

.faq { border-top: 1px solid var(--rule); max-width: 46em; }
.block > h2 + .faq { margin-top: 1.25rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 0.9rem 2rem 0.9rem 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.3rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.45rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.faq details > div { padding: 0 0 1rem; color: var(--ink-soft); }
.faq details > div p { max-width: 38em; }

.sources { font-size: var(--s-15); color: var(--ink-soft); }
.sources h2 { color: var(--ink); }
.sources ol { padding-left: 1.2rem; margin: 0.5rem 0 0; max-width: 46em; }
.sources li + li { margin-top: 0.35rem; }
.disclaimer {
  margin-top: 2.5rem; padding: 0.8rem 1rem; border-left: 3px solid var(--ink); background: var(--paper-deep);
  font-size: var(--s-15); max-width: 46em;
}

/* ------------------------------ Prices board ----------------------------- */

.board {
  margin-top: 1.5rem; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: minmax(9rem, 1.1fr) minmax(8rem, 1fr) minmax(6rem, 0.8fr) minmax(6rem, 0.7fr) minmax(7rem, 9rem) auto;
  column-gap: 1.5rem;
}
.board__row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 0.3rem;
  align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
}
.board__head { padding: 0.5rem 0; font-size: var(--s-13); color: var(--ink-soft); }
.board__head span { font-weight: 400 !important; font-size: var(--s-13) !important; font-stretch: normal !important; }
.board__metal { display: flex; align-items: center; gap: 0.75rem; font-weight: 650; font-size: var(--s-20); font-stretch: var(--semi); }
.board__metal .swatch { width: 1.1rem; height: 1.5rem; }
.board__price { font-stretch: var(--wide); font-weight: 750; font-size: clamp(1.25rem, 2.4vw, 1.75rem); white-space: nowrap; }
.board__price [data-live] { transition: color 0.6s ease; }
.board__gram { font-weight: 600; white-space: nowrap; }
.board__chg { font-weight: 600; white-space: nowrap; }
.board__spark { height: 40px; }
.board__spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.board__link { font-weight: 600; white-space: nowrap; justify-self: end; }
.board__copper { color: var(--ink-soft); font-size: var(--s-15); }
.board__copper .board__metal { color: var(--ink); }
.board__copper p { grid-column: 2 / -1; }

/* ------------------------------ Guide hero ------------------------------- */

.guide-hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2rem 3rem; align-items: center;
  padding-top: clamp(1.5rem, 4vw, 2.75rem); padding-bottom: 2rem; border-bottom: 1px solid var(--ink);
}
.guide-hero h1 { font-stretch: var(--wide); font-weight: 700; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; max-width: 14ch; text-wrap: balance; }
.guide-hero p { margin-top: 1rem; font-size: var(--s-20); color: var(--ink-soft); max-width: 32em; }
.guide-hero__art { display: flex; justify-content: center; gap: 1.25rem; align-items: center; }
.guide-hero__art .mint--round { transform: rotate(-8deg); }
.guide-hero__art .mint--minted-bar { transform: rotate(5deg); }

/* -------------------------------- Vaulting ------------------------------- */

.vault-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem 4rem; align-items: center;
  padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem);
}
.vault-hero__flag { display: inline-block; font-size: var(--s-15); font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; padding: 0.15rem 0.75rem; }
.vault-hero h1 { margin-top: 1rem; font-stretch: var(--wide); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.02; max-width: 12ch; text-wrap: balance; }
.vault-hero p { margin-top: 1.25rem; font-size: var(--s-20); color: var(--ink-soft); max-width: 31em; }

/* A vault drawer: struck bars resting on a shelf */
.drawer-art {
  position: relative; height: 300px; border-radius: 6px;
  background: linear-gradient(180deg, #2e3f49, #1b2932 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1.2rem 2rem -1.4rem rgba(27, 41, 50, 0.8);
  display: flex; align-items: flex-end; justify-content: center; gap: 0.9rem; padding: 0 1.5rem 2.2rem; overflow: hidden;
}
.drawer-art::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2rem;
  background: linear-gradient(180deg, #56636b, #39464e); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.18);
}
.drawer-art::after {
  content: ""; position: absolute; left: 50%; bottom: 0.75rem; width: 4.5rem; height: 0.55rem; margin-left: -2.25rem;
  border-radius: 999px; background: #1b2932; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.15);
}
.drawer-art > * { position: relative; z-index: 1; flex: none; }
.drawer-art .mint { font-size: 15px; }
.drawer-art .mint--cast-bar { font-size: 13px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; margin-top: 1.5rem; }
.plans > div { border-top: 1px solid var(--ink); padding-top: 0.9rem; }
.plans h3 { font-size: var(--s-17); margin-bottom: 0.35rem; }
.plans p { color: var(--ink-soft); font-size: var(--s-15); }

.block { padding-top: clamp(3rem, 6vw, 4.5rem); }
.block > h2 { font-stretch: var(--semi); font-size: clamp(1.5rem, 3vw, var(--s-32)); }
.block > p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 40em; }

.notify {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius);
}
.notify h2 { font-stretch: var(--semi); font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.notify > div > p { margin-top: 0.6rem; color: var(--ink-soft); }
.notify__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; align-items: end; }
.notify__row .btn { height: 2.75rem; }
.notify__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify__done { margin-top: 0.75rem; font-weight: 600; }
.notify .fine-print { margin-top: 0.75rem; }
.notify .form-error { margin-top: 0.6rem; }

/* ------------------------------- Responsive ------------------------------ */

@media (max-width: 1080px) {
  .board { grid-template-columns: minmax(7rem, 1fr) minmax(7rem, 1fr) minmax(5rem, 0.8fr) 7rem auto; }
  .board__gram { display: none; }
}
@media (max-width: 900px) {
  .quote, .guide-hero, .vault-hero, .notify { grid-template-columns: 1fr; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; order: -1; }
  .plans { grid-template-columns: 1fr; gap: 1.5rem; }
  .guide-hero__art { justify-content: flex-start; }
  .drawer-art { height: 260px; max-width: 520px; }
  .drawer-art .mint { font-size: 13px; }
  .drawer-art .mint--cast-bar { font-size: 11px; }
}
@media (max-width: 600px) {
  .chart__plot { height: 260px; }
  .board__head { display: none; }
  .board { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; }
  .board__metal { grid-column: 1; grid-row: 1; }
  .board__price { grid-column: 2; grid-row: 1; text-align: right; }
  .board__spark { grid-column: 1; grid-row: 2; height: 32px; max-width: 12rem; }
  .board__chg { grid-column: 2; grid-row: 2; text-align: right; }
  .board__link { grid-column: 1 / -1; grid-row: 3; justify-self: start; font-size: var(--s-15); }
  .board__copper p { grid-column: 1 / -1; grid-row: 2; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div { display: block; }
  .figures dd { margin-top: 0.1rem; }
  .notify__row { grid-template-columns: 1fr; }
  .drawer-art { height: 200px; gap: 0.5rem; }
  .drawer-art .mint { font-size: 10px; }
  .drawer-art .mint--cast-bar { font-size: 9px; }
}

.quote--hub { grid-template-columns: 1fr; padding-bottom: 1.25rem; border-bottom: 0; }

/* ------------------------------- Goldbacks ------------------------------- */

.guide-hero .spotline { margin-top: 1.5rem; font-size: var(--s-17); color: var(--ink); }
.spotline strong { font-weight: 700; }
.spotline__chg { font-weight: 600; font-size: var(--s-15); margin-left: 0.25rem; }
.spotline a { margin-left: 0.75rem; font-weight: 600; font-size: var(--s-15); }

.guide-hero__art.note-fan { display: block; position: relative; width: 19rem; height: 15rem; justify-self: center; }
.note-fan .note { position: absolute; }
.note-fan__a { left: 0; top: 0.5rem; transform: rotate(-9deg); }
.note-fan__b { left: 3rem; top: 4.25rem; transform: rotate(-2deg); }
.note-fan__c { left: 6rem; top: 8rem; transform: rotate(5deg); }

.denoms { margin-top: 1.25rem; max-width: 38em; overflow-x: auto; }
.denoms table { width: 100%; border-collapse: collapse; font-size: var(--s-15); }
.denoms caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; }
.denoms th, .denoms td { text-align: left; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.denoms thead th { font-size: var(--s-13); color: var(--ink-soft); font-weight: 600; border-bottom-color: var(--ink); }
.denoms tbody th { font-weight: 750; font-stretch: var(--wide); }
.denoms td:last-child { white-space: normal; font-size: var(--s-13); color: var(--ink-soft); padding-right: 0; }

.article__body .states {
  list-style: none; padding: 0; margin: 1.25rem 0 0.5rem; max-width: 46em;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); column-gap: 2rem;
}
.article__body .states li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.states__name { font-weight: 600; }
.states__year { color: var(--ink-soft); }
.states__note { grid-column: 1 / -1; font-size: var(--s-13); color: var(--ink-soft); }

@media (max-width: 900px) {
  .guide-hero__art.note-fan { justify-self: start; }
}
@media (max-width: 600px) {
  .guide-hero__art.note-fan { width: 15rem; height: 12rem; }
  .note-fan .note { font-size: 12.5px; }
  .note-fan__b { left: 2.4rem; top: 3.4rem; }
  .note-fan__c { left: 4.8rem; top: 6.4rem; }
}
@media (max-width: 600px) {
  .spotline a { display: block; margin: 0.35rem 0 0; }
  .guide-hero__art.note-fan { height: 11rem; }
  .denoms th:last-child, .denoms td:last-child { display: none; }
}
.board__metal .swatch--note { width: 1.45rem; height: 0.9rem; }
