.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-page { min-height: 100vh; background: var(--ink); }
.pc-top { display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 3vw, 28px); border-bottom: 2.5px solid var(--edge); background: var(--ink); position: sticky; top: 0; z-index: 20; }
.pc-top .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font: 900 22px var(--display); }
.pc-top .brand svg { width: 30px; height: 30px; }
.pc-top .spacer { flex: 1; }
.pc-cur select { padding: 7px 10px; font-size: 14px; }
.pc-main { max-width: none; margin: 0; padding: 24px clamp(14px, 3vw, 28px) 64px; }
.pc-h1 { margin: 0; font: 900 clamp(36px, 6vw, 60px)/1 var(--display); letter-spacing: -0.03em; }
.pc-sub { margin: 10px 0 22px; max-width: 640px; font-size: 16px; color: var(--text-2); }

.pc-spot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pc-spot-c { border: 2.5px solid var(--edge); border-radius: 16px; box-shadow: 4px 4px 0 var(--hard); padding: 12px 14px; color: #000; background: #fff; }
.pc-spot-c.XAU { background: #FFCF4D; } .pc-spot-c.XAG { background: #F8998E; } .pc-spot-c.XPT { background: #6FCFC2; }
.pc-spot-c .k { margin: 0; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.pc-spot-c .v { margin: 6px 0 2px; font: 900 26px/1.05 var(--display); font-variant-numeric: tabular-nums; }
.pc-spot-c .s { margin: 0; font-size: 12.5px; color: #2A1A19; min-height: 1.3em; }
.pc-spot-c .up, .pc-spot-c .down { font-weight: 700; color: #000; }
.pc-asof { margin: 10px 0 0; font-size: 13px; }

.pc-explain dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.pc-explain dt { font-weight: 700; } .pc-explain dd { margin: 0; color: var(--text-2); }
.pc-cta { margin: 18px 0 0; font-size: 15px; }

@media (max-width: 820px) {
  .pc-spot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-spot-c .v { font-size: 22px; }
  .pc-explain dl { grid-template-columns: 1fr; gap: 2px; }
  .pc-explain dd { margin-bottom: 10px; }
  .pc-top .btn { padding-inline: 10px; }
}
.pc-asof:empty { display: none; }

.pc-eyebrow { margin: 0 0 6px; font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.pc-faq { margin-top: var(--gap); }
.pc-faq h2 { margin: 0 0 8px; }
.pc-faq details { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.pc-faq details:first-of-type { border-top: 0; }
.pc-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.pc-faq details p { margin: 8px 0 0; color: var(--text-2); max-width: 70ch; line-height: 1.55; }
/* Hold the calculator's space until it's drawn, so the page doesn't jump while loading. */
#pcMount:empty { min-height: 610px; }
@media (max-width: 820px) { #pcMount:empty { min-height: 1110px; } }
@media (max-width: 560px) { #pcMount:empty { min-height: 1270px; } }

/* Page title block: plain on phones, one full-width box on computers. */
@media (min-width: 1100px) {
  .pc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 44px; align-items: center; background: var(--panel); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); padding: 26px 30px; margin: 0 0 var(--gap); }
  .pc-head.solo { grid-template-columns: 1fr; }
  .pc-head .pc-sub, .pc-head .mt-answer { max-width: none; margin: 0; }
  .pc-head .mt-answer + .pc-sub { margin-top: 12px; }
  .pc-head-a > :last-child { margin-bottom: 0; }
  .pc-head .pc-h1 { font-size: clamp(40px, 3.6vw, 64px); }
}
@media (min-width: 1100px) {
  .pc-main > .pc-faq { columns: 3; column-gap: 32px; }
  .pc-main > .pc-faq > h2 { column-span: all; }
  .pc-main > .pc-faq details { break-inside: avoid; }
}
@media (min-width: 1100px) { .pc-main > .pc-faq details { border-top: 0; } }
