/* Melt value pages and the junk silver calculator (rendered by the Worker, src/seo.js). */
.mt-main { max-width: none; }
.pc-eyebrow a { color: inherit; }
.mt-hero { margin: 4px 0 var(--gap); }
.mt-big { display: inline-block; min-width: min(100%, 420px); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); padding: 16px 20px; background: #FFCF4D; color: #000; }
.mt-hero[data-metal="XAG"] .mt-big { background: #D9DEFF; }
.mt-hero[data-metal="XPT"] .mt-big { background: #CDEFE8; }
.mt-hero[data-metal="XPD"] .mt-big { background: #F1DDF7; }
.mt-big .k { margin: 0; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.mt-big .v { margin: 6px 0 4px; font: 900 clamp(40px, 7vw, 58px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mt-big .s { margin: 0; font-size: 14px; color: #222; }
.mt-asof { margin: 10px 0 0; font-size: 13px; }
.mt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.mt-main .panel { margin-bottom: var(--gap); }
.mt-main .panel h2 { margin: 0 0 6px; font-size: 22px; }
.mt-main .panel > p.dim { margin: 0 0 12px; font-size: 14px; }
.mt-tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.mt-tbl th { white-space: normal; text-align: left; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 10px 6px 0; }
.mt-tbl td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line-soft); text-align: left; }
.mt-tbl td:nth-child(n+2) { white-space: nowrap; }
.mt-tbl td:first-child { white-space: normal; overflow-wrap: anywhere; }
.mt-tbl td:last-child, .mt-tbl th:last-child { text-align: right; padding-right: 0; }
.mt-about p { max-width: 70ch; line-height: 1.6; margin: 0 0 10px; }
.mt-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 14px 0 0; }
.mt-facts div { border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 12px; }
.mt-facts dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mt-facts dd { margin: 2px 0 0; font-weight: 600; }
.mt-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); background: #CDEFE8; color: #000; padding: 16px 20px; margin: 0 0 var(--gap); }
.mt-cta p { margin: 0; flex: 1 1 320px; }
.mt-related h2 { font-size: 18px; margin: 0 0 8px; }
.mt-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mt-related a { display: inline-block; padding: 6px 12px; border: 2px solid var(--edge); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.mt-group .mt-tbl td:first-child a { font-weight: 600; }
.mt-junk-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mt-junk-form small { font-weight: 500; color: var(--muted); }
.mt-junk-face { grid-column: 1 / -1; max-width: 360px; }
.mt-junk-out { margin: 12px 0 0; font-size: 16px; }
.mt-foot { max-width: none; margin: 0; padding: 0 clamp(14px, 3vw, 28px) 48px; font-size: 14px; }
.mt-foot p { margin: 6px 0; }
@media (max-width: 760px) {
  .mt-cols, .mt-junk-form { grid-template-columns: 1fr; }
  .pc-top .btn:not(.gold) { display: none; }
  .mt-tbl .mt-wide { display: none; }
  .mt-tbl { font-size: 14px; }
}
.mt-scroll { overflow-x: auto; }
.mt-deals td { vertical-align: top; }
.mt-deals td:nth-child(n+2) { white-space: normal; }
.mt-deals td .dim { font-size: 13px; }
.mt-chart { width: 100%; height: auto; margin: 6px 0 12px; font: 12px var(--mono); }
.mt-chart .g { stroke: var(--line-soft); }
.mt-chart text { fill: var(--muted); }
.mt-chart .l { fill: none; stroke: #7186F0; stroke-width: 2.5; stroke-linejoin: round; }
.mt-guide h2 { margin: 18px 0 6px; font-size: 21px; }
.mt-guide h2:first-child { margin-top: 0; }
.mt-guide p { max-width: 70ch; line-height: 1.65; margin: 0 0 10px; }
.mt-guide .btn { margin: 6px 8px 0 0; }
@media (max-width: 760px) {
  .mt-deals thead { display: none; }
  .mt-deals, .mt-deals tbody, .mt-deals tr, .mt-deals td { display: block; width: 100%; }
  .mt-deals tr { border-top: 1px solid var(--line-soft); padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .mt-deals td { border: 0; padding: 0; text-align: left !important; white-space: normal; }
  .mt-deals td:first-child { grid-column: 1 / -1; }
  .mt-deals td:nth-child(4) { display: none; }
  .mt-deals td:last-child { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
}

.mt-deals-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.mt-deals-head h2 { margin: 0; }
.mt-deals tr[hidden] { display: none !important; }
.pc-eyebrow a { color: inherit; text-decoration: none; }
.pc-eyebrow a:hover { text-decoration: underline; }
.mt-book { margin-top: 16px; padding: 14px 16px; border: 2px dashed var(--line-soft); border-radius: 14px; }
.mt-book p { margin: 0; line-height: 1.6; max-width: 72ch; }
.mt-bookcard h2 { margin: 2px 0 8px; font-size: 24px; }
.mt-bookcard p { max-width: 70ch; line-height: 1.6; margin: 0 0 10px; }
.mt-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; }
.mt-gcard { display: block; color: inherit; text-decoration: none; }
.mt-gcard h2 { margin: 0 0 6px; font-size: 19px; }
.mt-gcard p { margin: 0; color: var(--muted); line-height: 1.5; }
.mt-gcard:hover h2 { text-decoration: underline; }
.mt-guides .mt-gcard { margin: 0; }

/* Wide screens: use the width instead of one long column. */
.mt-main .mt-cols > .mt-hero { margin: 0; }
.mt-hero .mt-big { display: block; }
.mt-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-groups { columns: 2 480px; column-gap: var(--gap); }
.mt-groups .mt-group { break-inside: avoid; display: inline-block; width: 100%; }
.mt-guide { column-gap: 40px; }
.mt-sec { break-inside: avoid; }
.mt-sec h2 { margin-top: 0; }
.mt-sec + .mt-sec { padding-top: 2px; }
.mt-lead p { max-width: 90ch; font-size: 17px; }
.mt-after { column-span: all; }
.mt-after:empty { display: none; }
@media (min-width: 980px) {
  .mt-guide { columns: 2; }
  .mt-lead { column-span: all; margin-bottom: 8px; }
}
@media (min-width: 1380px) {
  .mt-guide { columns: 3; }
}
.mt-hub { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); gap: var(--gap); align-items: start; }
.mt-hub .mt-bookcard { margin: 16px 0 0; position: sticky; top: 16px; }
@media (max-width: 1100px) {
  .mt-cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-cols3 > .mt-hero { grid-column: 1 / -1; }
  .mt-hub { grid-template-columns: 1fr; }
  .mt-hub .mt-bookcard { position: static; }
}
@media (max-width: 760px) {
  .mt-cols3 { grid-template-columns: 1fr; }
  .mt-guide p { margin-bottom: 8px; }
}
.mt-ratio { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.mt-ratio .mt-hero { margin-bottom: var(--gap); }
@media (max-width: 760px) { .mt-ratio { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mt-ratio > div { display: contents; }
  .mt-ratio .pc-faq { order: 3; }
}
.mt-cols > .panel, .mt-cols > div > .panel { margin-top: 0; }
.mt-add { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0 0; }
.mt-add .dim { font-size: 14px; }

.mt-junk-out { margin-top: 14px; }
.mt-junk-total { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 8px; }
.mt-junk-total > div { display: grid; }
.mt-junk-total .k { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mt-junk-total .v { font: 900 clamp(28px, 4vw, 40px)/1.05 var(--display); letter-spacing: -0.02em; }
.mt-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.mt-qtile { border: 2.5px solid var(--edge); border-radius: 16px; box-shadow: 3px 3px 0 var(--hard); background: var(--panel); padding: 10px 14px; display: grid; gap: 2px; }
.mt-qtile .k { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mt-qtile .v { font: 900 26px/1.1 var(--display); }
.mt-quick .mt-asof { grid-column: 1 / -1; margin: 0; }
.mt-junk-tbl small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .mt-junk-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mt-answer { margin: 6px 0 14px; max-width: 82ch; font-size: 18px; line-height: 1.55; }
.mt-answer b { font-weight: 800; }
.mt-today-v { font-size: 34px; font-weight: 800; margin: 2px 0 0; }
.mt-today .mt-spark { width: 100%; height: 70px; margin: 10px 0; }
.mt-today.XAG .mt-spark { color: #b8c4d0; }
.mt-today.XAU .mt-spark { color: #e2b54a; }
.mt-today.XPT .mt-spark { color: #9fb2b8; }
.mt-today td.up { color: #3fb36b; font-weight: 700; }
.mt-today td.down { color: #e0605a; font-weight: 700; }
.mt-today td:last-child { text-align: right; }

/* Computers: boxes sit in an even grid. Every box in a row is the same height,
   rows fill the full width, and nothing is left hanging. Phones are unchanged. */
@media (min-width: 1100px) {
  .mt-main > section, .mt-main > .mt-cols, .mt-main > .mt-groups, .mt-main > .mt-hub, .mt-main > .pc-spot, .mt-main > article, .mt-main > nav { margin-top: 0; margin-bottom: var(--gap); }
  .mt-main > .mt-asof { margin: calc(var(--gap) * -0.5) 0 var(--gap); }
  .mt-cols { align-items: stretch; }
  .mt-cols > * { min-width: 0; }
  .mt-cols > .panel, .mt-cols > div > .panel:last-child, .mt-groups > .panel, .mt-hub > .panel { margin-bottom: 0; }
  .mt-cols.mt-stack { grid-template-columns: 1fr; }
  /* The big number box and its notes sit together inside one box. */
  .mt-cols > .mt-hero { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); padding: 18px 20px; }
  .mt-cols > .mt-hero > * { margin: 0; }
  .mt-cols > .mt-hero > .mt-big { flex: 1; display: flex; flex-direction: column; justify-content: center; box-shadow: none; min-width: 0; }
  .mt-cols > .mt-hero .mt-add { margin: 0; }
  .mt-cols > div:not(.panel):not(.mt-hero) { display: flex; flex-direction: column; }
  .mt-cols > div:not(.panel):not(.mt-hero) > .panel:last-of-type { flex: 1; }
  /* Coin and bar tables: two even columns, paired by length. */
  .mt-groups { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
  .mt-groups .mt-group { display: block; width: auto; margin: 0; }
  .mt-groups .mt-group:nth-child(1) { order: 1; }
  .mt-groups .mt-group:nth-child(4) { order: 2; }
  .mt-groups .mt-group:nth-child(2) { order: 3; }
  .mt-groups .mt-group:nth-child(5) { order: 4; }
  .mt-groups .mt-group:nth-child(3) { order: 5; }
  .mt-groups .mt-group:nth-child(6) { order: 6; }
  .mt-quick { display: flex; flex-wrap: wrap; }
  .mt-quick .mt-qtile { flex: 1 1 0; }
  .mt-quick .mt-asof { flex-basis: 100%; }
  .mt-junk-form { grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; }
  .mt-junk-form .mt-junk-face { grid-column: auto; max-width: none; }
  /* Full-width question boxes: answers open, laid out in columns. */
  .mt-main > .pc-faq, .mt-stack > .pc-faq { columns: 3; column-gap: 32px; }
  .mt-main > .pc-faq > h2, .mt-stack > .pc-faq > h2 { column-span: all; }
  .mt-main > .pc-faq details, .mt-stack > .pc-faq details { break-inside: avoid; }
  /* Guides hub: ebook on the left, guides in a 4 by 2 grid that fills its height. */
  .mt-hub { align-items: stretch; }
  .mt-hub .mt-bookcard { position: static; margin: 0; }
  .mt-hub .mt-guides { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .mt-related { background: var(--panel); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); padding: 16px 20px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
  .mt-related h2 { margin: 0; }
}
@media (min-width: 1100px) {
  .mt-main > .pc-faq details, .mt-stack > .pc-faq details { border-top: 0; }
}
@media (min-width: 1100px) {
  /* Guide and rules sections: each one its own box, in an even grid. */
  .mt-guide.g2, .mt-guide.g3 { columns: auto; display: grid; gap: var(--gap); align-items: stretch; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .mt-guide.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-guide.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-guide .mt-sec { background: var(--panel); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); padding: 18px 22px; margin: 0; min-width: 0; }
  .mt-guide .mt-sec > :last-child { margin-bottom: 0; }
  .mt-guide .mt-sec p { max-width: none; }
  /* Rules: one box, text flowing evenly across three columns. */
  .mt-flow .mt-sec { break-inside: auto; background: none; border: 0; box-shadow: none; padding: 0; }
  .mt-flow p { break-inside: avoid; }
  .mt-flow h2 { break-after: avoid; }
  .mt-guide .mt-lead, .mt-guide .mt-after { grid-column: 1 / -1; }
  .mt-guide .mt-lead { background: #FFF6D6; }
  .mt-guide .mt-lead p { max-width: none; }
  .mt-guide .span2 { grid-column: span 2; }
  .mt-guide .span3 { grid-column: span 3; }
  .mt-guide .mt-after:not(:empty) { background: var(--panel); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); padding: 16px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
  .mt-guide .mt-after > * { margin: 0; max-width: none; }
  .mt-guide .mt-after > p { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .mt-guide .mt-after .btn { flex: 1 1 auto; justify-content: center; margin: 0; }
  .mt-main .sl-contact p { max-width: none; }
}
@media (min-width: 1100px) {
  .mt-main > .mt-book { background: var(--panel); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); padding: 16px 22px; margin: 0 0 var(--gap); }
  .mt-main > .mt-book p { max-width: none; margin: 0; }
}
@media (min-width: 1100px) { .mt-flow .mt-sec h2 { margin-top: 16px; } .mt-flow .mt-sec:first-child h2 { margin-top: 0; } }
