/* Extra styles for /pay/:handle, /proof and /whitepaper. Builds on app.css tokens. */

.pg-gap { margin-top: 28px; }
.pg-missing { padding: 40px 0 24px; }
.pg-missing-title { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }

/* Pay */
.pg-pay-title { word-break: break-word; }
.pg-form { margin-top: 36px; padding: 28px; }
.pg-form .input.big input { font-size: 40px; letter-spacing: -0.04em; padding: 18px 0; }
.pg-form .input.big .post { font-size: 14px; color: var(--ink-2); }
.pg-under { margin-top: 12px; min-height: 36px; }
.pg-quick { display: flex; gap: 6px; }
.pg-q { font: 500 14px var(--mono); color: var(--ink); background: #fff; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 8px 14px; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.pg-q:hover { background: #faf9f6; box-shadow: inset 0 0 0 1px var(--ink-3); }
.pg-q:active { transform: scale(0.97); }
.pg-wallet { margin-top: 22px; display: flex; gap: 8px; align-items: baseline; }
.pg-wallet a { text-decoration: none; }
.pg-wallet a:hover { text-decoration: underline; }
.pg-actions { margin-top: 18px; }
.pg-actions .btn { padding: 16px 20px; font-size: 16px; }
#status { margin-top: 14px; overflow-wrap: anywhere; }

.pg-done { margin-top: 36px; padding: 32px 28px; }
.pg-done .figure { margin-top: 4px; }
.pg-done #done-usd { margin-top: 8px; }
.pg-done-head { margin-top: 26px !important; font-family: var(--serif); font-weight: 400 !important; font-style: italic; font-size: 26px !important; letter-spacing: -0.02em !important; }
.pg-kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 22px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.pg-kv dt { color: var(--ink-3); }
.pg-kv dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-kv a { text-decoration: none; }
.pg-kv a:hover { text-decoration: underline; }

.pg-how { margin-top: 56px; }
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pg-steps li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.pg-steps li:first-child { border-top: 0; padding-top: 4px; }
.pg-n { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; color: var(--ink); width: 18px; flex: none; }
.pg-bridge { margin: 28px 0 0; }

/* Proof */
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pg-stats > div { background: rgba(255, 255, 255, 0.78); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.pg-k { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pg-stats b { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.pg-stats b small { font-size: 0.5em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.pg-stats .pg-block a, .pg-stats .pg-block span { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.pg-stats .pg-block a:hover { text-decoration: underline; }
.pg-table-panel { margin-top: 20px; }
.pg-table-head { margin-bottom: 14px; }
.pg-table-head h3 { margin: 0 !important; }
.pg-proof-table td { vertical-align: middle; }
.pg-proof-table td b { font-weight: 600; }
.pg-usd { display: block; font-size: 12px; margin-top: 2px; }
.pg-check { margin-top: 56px; }
.pg-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pg-check-grid b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.pg-check-grid p { margin: 0; color: var(--ink-2); font-size: 14px; }
.pg-api { margin-top: 28px; }
.pg-api a { text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* Whitepaper */
.wp .lede { max-width: 52ch; }
.wp-toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 36px 0 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.wp-toc a { color: var(--ink-2); text-decoration: none; }
.wp-toc a:hover { color: var(--ink); }
.wp-sec { margin-top: 52px; scroll-margin-top: 90px; }
.wp-sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.wp-n { font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; }
.wp-sec p { font-size: 16.5px; line-height: 1.7; color: #2b2a27; margin: 0 0 14px; max-width: 64ch; }
.wp-list { margin: 0; padding: 0; list-style: none; max-width: 64ch; }
.wp-list li { position: relative; padding: 10px 0 10px 22px; font-size: 16px; line-height: 1.6; color: #2b2a27; border-top: 1px solid var(--line); }
.wp-list li:first-child { border-top: 0; }
.wp-list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 8px; height: 1px; background: var(--ink-2); }
.wp-rules { padding: 8px 24px; }
.wp-rules table { font-size: 14px; }
.wp-rules thead th { padding-top: 16px; }
.wp-rules tbody th { font: 600 14px var(--sans); letter-spacing: -0.01em; text-transform: none; color: var(--ink); padding: 14px 20px 14px 0; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.wp-rules td { color: var(--ink-2); line-height: 1.6; }

@media (max-width: 720px) {
  .pg-form, .pg-done { padding: 20px; }
  .pg-form .input.big input { font-size: 32px; }
  .pg-stats { grid-template-columns: 1fr 1fr; }
  .pg-stats > div:last-child { grid-column: 1 / -1; }
  .pg-stats b { font-size: 24px; }
  .pg-check-grid { grid-template-columns: 1fr; gap: 18px; }
  /* Proof table becomes stacked rows */
  .pg-proof-table thead { display: none; }
  .pg-proof-table, .pg-proof-table tbody, .pg-proof-table tr, .pg-proof-table td { display: block; width: 100%; }
  .pg-proof-table tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .pg-proof-table tr:first-child { border-top: 0; }
  .pg-proof-table td { border: 0; padding: 3px 0; text-align: left; display: flex; justify-content: space-between; gap: 12px; }
  .pg-proof-table td::before { content: attr(data-k); font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  .pg-proof-table td.num { text-align: right; }
  .pg-usd { display: inline; margin-left: 6px; }
  .wp-sec h2 { font-size: 28px; }
  .wp-rules { padding: 4px 16px; }
  .wp-rules thead { display: none; }
  .wp-rules tr, .wp-rules tbody th, .wp-rules td { display: block; }
  .wp-rules tbody th { border-top: 1px solid var(--line); padding: 14px 0 2px; white-space: normal; }
  .wp-rules tbody tr:first-child th { border-top: 0; }
  .wp-rules td { border: 0; padding: 0 0 14px; }
}
