/* Mining page: Voyager and Holder reward modes. Builds on site.css. */

.mn-intro { padding: clamp(150px, 18vh, 200px) 0 clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--red-line); }
.mn-title { font-size: clamp(40px, 6vw, 88px); font-weight: 200; line-height: 1.05; letter-spacing: -.01em; }
.mn-lede { max-width: 760px; margin-top: 28px; font-size: clamp(17px, 1.5vw, 21px); color: var(--text); }
.mn-status { max-width: 760px; margin-top: 20px; font-size: 14px; color: var(--mute); }

.mn-sec { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--red-faint); }
.mn-sec .h { margin-bottom: clamp(36px, 4vw, 56px); }

/* Network status */
.net { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--red-line); }
.net-k { padding: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--red-line); }
.net-k:first-child { border-left: 0; }
.net dt { font: 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.net dd { margin-top: 16px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 200; line-height: 1.1; color: var(--fg); font-variant-numeric: tabular-nums; }
.net dd small { font-size: 14px; color: var(--mute); }
.net .net-sub { margin-top: 10px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--mute); }
.net-dot { display: inline-block; width: 9px; height: 9px; margin-right: 10px; vertical-align: 4px; border: 1px solid var(--mute); border-radius: 50%; }

/* Reward calculator */
.calc { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 44px); border: 1px solid var(--red-line); }
.calc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.calc-cap { font: 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.calc-in { display: flex; flex: 1; max-width: 420px; border: 1px solid var(--red-line); }
.calc-in:focus-within { border-color: var(--red); }
.calc-in input { flex: 1; min-width: 0; padding: 12px 14px; background: transparent; border: 0; outline: 0; color: var(--fg); font: 15px/1 var(--mono); }
.calc-in button { padding: 0 18px; background: transparent; border: 0; border-left: 1px solid var(--red-line); color: var(--fg); font: 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.calc-in button:hover, .calc-in button:focus-visible { background: var(--red); color: #fff; outline: 0; }
.calc-msg { width: 100%; min-height: 1em; font-size: 13px; color: var(--red-hi); }
.calc-msg:empty { display: none; }
.calc-era { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--red-faint); font: 12px/1.5 var(--mono); color: var(--mute); }
.calc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: 28px; }
.calc-head { padding-bottom: 12px; border-bottom: 1px solid var(--red-line); font-size: 17px; color: var(--fg); }
.calc-head b { font-weight: 400; color: var(--red); font-variant-numeric: tabular-nums; }
.calc-col dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--red-faint); }
.calc-col dt { font-size: 14px; color: var(--mute); }
.calc-col dd { font: 15px/1.4 var(--mono); color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.calc-col dd small { display: block; font: 12px/1.4 var(--sans); color: var(--mute); }
.calc-foot { margin-top: 24px; font-size: 14px; color: var(--text); }
.calc-foot b { font: 13px var(--mono); font-weight: 400; color: var(--fg); }

/* Two identities */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.mode { border: 1px solid var(--red-line); padding: clamp(28px, 3vw, 44px); }
.mode-tag { font: 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.mode h3 { margin: 18px 0 8px; font-size: clamp(34px, 3.4vw, 52px); font-weight: 200; line-height: 1.05; }
.mode-line { font-size: 18px; color: var(--fg); }
.mode .rule { margin: 28px 0; opacity: .6; }
.mode .facts { margin-top: 0; }
.mode .facts li { margin: 12px 0; font-size: 15px; }
.mode-sum { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--red-faint); font-size: 14px; color: var(--mute); }
.mode-sum b { display: block; margin-top: 6px; font-weight: 400; color: var(--fg); }

/* Split bars: widths are percentages of the miner base or the subsidy. */
.bar { display: flex; height: 44px; margin-top: 8px; border: 1px solid var(--red-line); }
.bar > span {
  display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden;
  font: 11px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; border-left: 1px solid var(--bg);
}
.bar > span:first-child { border-left: 0; }
.bar .w3 { width: 3%; } .bar .w5 { width: 5%; } .bar .w10 { width: 10%; } .bar .w20 { width: 20%; }
.bar .w60 { width: 60%; } .bar .w75 { width: 75%; } .bar .w87 { width: 87%; }
.bar .now { background: var(--red); color: #fff; }
.bar .lock { background: rgba(228, 54, 41, .38); color: #fff; }
.bar .pool { background: var(--red-faint); color: var(--red); }
.bar .burn { background: #262626; color: var(--mute); }
.bar .fund { background: rgba(255, 255, 255, .14); color: var(--fg); }
.bar-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--mute); }
.bar-key b { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; font-weight: 400; }
.bar-key .now { background: var(--red); }
.bar-key .lock { background: rgba(228, 54, 41, .38); }
.bar-key .pool { background: var(--red-faint); box-shadow: inset 0 0 0 1px var(--red); }
.bar-key .burn { background: #262626; box-shadow: inset 0 0 0 1px #444; }
.bar-key .fund { background: rgba(255, 255, 255, .14); }

/* Holder unlock timeline */
.unlocks { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 8px; border: 1px solid var(--red-line); }
.unlocks > div { padding: 14px 12px; border-left: 1px solid var(--red-line); }
.unlocks > div:first-child { border-left: 0; background: var(--red-faint); }
.unlocks b { display: block; font-size: 20px; font-weight: 300; color: var(--red); }
.unlocks span { display: block; margin-top: 4px; font: 11px/1.4 var(--mono); color: var(--mute); }

.split-wide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.mn-p { font-size: 16px; line-height: 1.75; color: var(--text); }
.mn-p + .mn-p { margin-top: 16px; }

.issuance { width: 100%; margin-top: clamp(36px, 4vw, 56px); border-collapse: collapse; border: 1px solid var(--red-line); font-variant-numeric: tabular-nums; }
.issuance th, .issuance td { padding: 14px 24px; border-top: 1px solid var(--red-line); text-align: right; font-size: 15px; }
.issuance th:first-child, .issuance td:first-child { text-align: left; }
.issuance th { font: 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 400; border-top: 0; }
.issuance td { color: var(--text); }
.mode .facts.mt-28 { margin-top: 28px; }
.mt-56 { margin-top: 56px; }
.mn-fine { margin-top: 16px; font-size: 13px; color: var(--mute); }

@media (max-width: 860px) {
  .modes, .split-wide, .calc-cols { grid-template-columns: 1fr; }
  .net { grid-template-columns: 1fr 1fr; }
  .net-k:nth-child(3) { border-left: 0; }
  .net-k:nth-child(n + 3) { border-top: 1px solid var(--red-line); }
  .unlocks { grid-template-columns: repeat(3, 1fr); }
  .unlocks > div:nth-child(4) { border-left: 0; }
  .unlocks > div:nth-child(n + 4) { border-top: 1px solid var(--red-line); }
}

@media (max-width: 560px) {
  .bar > span { font-size: 9px; letter-spacing: 0; }
  .unlocks { grid-template-columns: 1fr 1fr; }
  .unlocks > div:nth-child(4) { border-left: 1px solid var(--red-line); }
  .unlocks > div:nth-child(odd) { border-left: 0; }
  .unlocks > div:nth-child(n + 3) { border-top: 1px solid var(--red-line); }
  .issuance th, .issuance td { padding: 12px 14px; font-size: 13px; }
  .net { grid-template-columns: 1fr; }
  .net-k { border-left: 0; }
  .net-k:nth-child(n + 2) { border-top: 1px solid var(--red-line); }
  .calc-in { max-width: none; }
}
