/* /wallet: an account's Hyperliquid trading, priced elsewhere. Built on style.css: hero, find, say, fig, cta, panel, plain, left-out. */
.whero { padding: 24px 0 40px; }
.whero h1 { max-width: 24em; }
.whero .lead { max-width: 62ch; }
.wfind { grid-template-columns: minmax(0, 32em) auto; justify-content: start; }
.wfind input { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.wfind input::placeholder { color: var(--text-2); }
.whelp { grid-column: 1 / -1; color: var(--sea-text); font-size: .9375rem; }
/* before a result: what the visitor will get, beside the form */
.wpeeked { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 24px 56px; align-items: end; }
.wpeek { border-left: 3px solid var(--brass); padding: 4px 0 4px 20px; color: var(--sea-text); }
.wpeek h2 { font-size: 1.0625rem; color: #ffffff; }
.wpeek ol { margin: 8px 0 0; padding-left: 1.25em; display: grid; gap: 8px; font-size: 1rem; line-height: 1.5; }
.wpeek li::marker { color: var(--brass); font-weight: 700; } .wpeek b { color: #ffffff; font-weight: 600; }

/* the answer: the platform, the figure and the button on the left; the sums it comes from on the right */
.wanswer { margin-top: 32px; display: grid; gap: 12px; max-width: 760px; }
.wanswer:empty { display: none; }
.wanswer.wsplit { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 24px 56px; align-items: start; }
.wanswer .who { max-width: 24em; }
.wanswer .fig { margin-top: 4px; }
.wper { display: block; color: #ffffff; font: 600 1.125rem/1.3 var(--body); }
.wanswer .say p.wfor { margin-top: 12px; color: #ffffff; font-size: 1.0625rem; }
.wanswer .say p.wperiod { margin-top: 16px; font-size: .9375rem; }
.werr { border-left: 3px solid var(--brass); padding-left: 16px; }
.werr p { margin-top: 8px; }

.wsum { background: var(--petrol-dark); border: 1px solid #1d5654; border-radius: var(--r); padding: 16px 24px 20px; color: var(--sea-text); }
.wsum caption { text-align: left; padding-bottom: 4px; font: 700 1.0625rem/1.4 var(--display); font-stretch: 106%; color: #ffffff; }
.wsum th, .wsum td { padding: 12px 0; border-top: 1px solid #23605d; vertical-align: top; }
.wsum th { font-weight: 600; color: #ffffff; padding-right: 16px; }
.wsum td { text-align: right; white-space: nowrap; font: 700 1.25rem/1.3 var(--display); font-stretch: 104%; font-variant-numeric: tabular-nums; color: #ffffff; }
.wsum th span, .wsum td span { display: block; margin-top: 2px; font: 400 .875rem/1.4 var(--body); color: var(--sea-text); }
.wsum td span { font-weight: 600; color: #9fdcbf; }
.wsum .wsum-b td { color: var(--brass); }
.wsum p { margin-top: 12px; font-size: .9375rem; line-height: 1.5; } .wsum b { color: #ffffff; } .wsum a { color: #ffffff; }

/* since the first trade: three sums Hyperliquid recorded, side by side */
.wlife-p { margin-bottom: 24px; }
.wlife { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 16px; border-top: 1px solid var(--line); }
.wlife div { padding: 12px 24px 12px 0; }
.wlife dt { font-weight: 400; font-size: .9375rem; color: var(--text-2); }
.wlife dd { margin: 2px 0 0; font: 700 1.75rem/1.2 var(--display); font-stretch: 106%; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.wlife-n { margin: 0; padding: 4px 16px 12px; max-width: 78ch; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }

/* the other platforms that save something */
.walt-p { margin-bottom: 24px; }
.walt { list-style: none; margin: 0; padding: 0 8px 4px; }
.walt li { display: grid; grid-template-columns: 32px minmax(0, 1fr) 11em minmax(12em, auto); gap: 8px 24px; align-items: center; padding: 12px 8px; border-top: 1px solid var(--line); }
.walt .what { margin-top: 2px; }
.walt-s { font-size: .9375rem; color: var(--text-2); white-space: nowrap; text-align: right; } .walt .act { justify-self: end; }
.walt-s strong { font: 700 1.25rem/1.2 var(--display); font-stretch: 106%; color: #1f6b4f; font-variant-numeric: tabular-nums; }
.walt-n { padding: 4px 16px 12px; font-size: .9375rem; color: var(--text-2); }

/* each coin */
.gain { color: #1f6b4f; font-weight: 600; } .wnil { color: var(--text-2); }
.wcoins-p { margin-bottom: 8px; }
.wcoins { margin: 0 8px; width: calc(100% - 16px); }
.wcoins th[scope="row"] { min-width: 260px; }
.wcoins th[scope="row"] .what { max-width: 36ch; }
.wcoins td small { display: block; font-size: .8125rem; color: var(--text-2); font-weight: 400; }
.wcoins td strong { font-weight: 700; }
.wcoins td a { font-weight: 600; }
.whl { font-weight: 600; }
.wname { font-weight: 600; color: var(--ink); }

/* how we count: open on the empty page, folded under a result */
#result { padding-bottom: 8px; }
.wnotes { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.wnotes summary { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.wnotes summary::-webkit-details-marker { display: none; }
.wnotes summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border: solid var(--petrol-mid); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wnotes[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.wnotes summary h2 { font-size: 1.25rem; } .wnotes summary:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.wnotes dl { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; font-size: 1rem; }
.wnotes dd { color: var(--text-2); }
.wnotes-only .wnotes { margin-top: 0; border-top: 0; }

@media (max-width: 980px) {
  .wpeeked { grid-template-columns: minmax(0, 1fr); } .wpeek { max-width: 560px; }
  .wanswer.wsplit { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}
/* a phone: each coin is a card of label / value pairs, nothing scrolls sideways */
@media (max-width: 720px) {
  .wfind { grid-template-columns: minmax(0, 1fr); } .wfind button { min-height: 48px; }
  .wsum { padding: 12px 16px 16px; }
  .walt li { grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; align-items: start; } .walt .badge { margin-top: 2px; }
  .walt-s { grid-column: 2; white-space: normal; text-align: left; } .walt .act { grid-column: 2; justify-self: start; margin-top: 6px; } .walt .act a { width: auto; }
  .wcoins, .wcoins tbody, .wcoins tr, .wcoins th, .wcoins td { display: block; }
  .wcoins { margin: 0; width: 100%; } .wcoins thead { display: none; }
  .wcoins tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 16px 8px; border-top: 1px solid var(--line); }
  .wcoins tr:first-child { border-top: 0; }
  .wcoins th, .wcoins td { border: 0; padding: 0; min-width: 0; text-align: left; white-space: normal; }
  .wcoins th[scope="row"] { grid-column: 1 / -1; min-width: 0; }
  .wcoins td::before { content: attr(data-l); display: block; font-size: .8125rem; color: var(--text-2); font-weight: 400; }
  .wcoins td[colspan], .wcoins td:last-child { grid-column: 1 / -1; } .wcoins td.wnil { display: none; }
  .wnotes dl { grid-template-columns: minmax(0, 1fr); }
  .wlife { grid-template-columns: minmax(0, 1fr); margin: 0 12px; }
  .wlife div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 12px 0; }
  .wlife div + div { border-top: 1px solid var(--line); }
  .wlife dd { margin: 0; font-size: 1.375rem; }
  .wlife-n { padding-inline: 12px; }
}
