/* The market's server-written pages (src/market_pages.php), on top of guides.css: wider, with tables. */

.m-main { max-width: 1080px; }
/* The whole window (2026-12-01), like the guides and the blog. */
.m-main.g-wide { max-width: none; }
.m-lead { font-size: 18px; color: var(--soft); margin-bottom: 22px; max-width: 74ch; }
.m-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.m-stats li { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.m-stats b { display: block; font-size: 24px; line-height: 1.2; }
.m-stats span { font-size: 13.5px; color: var(--soft); }
.m-table-wrap { overflow-x: auto; margin: 0 0 30px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.m-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.m-table th, .m-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.m-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); font-weight: 650; }
.m-table tr:last-child td { border-bottom: 0; }
.m-table td.m-app { white-space: normal; min-width: 220px; }
.m-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.m-app a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 650; text-decoration: none; }
.m-app a:hover { color: var(--green); }
.m-app small { display: block; font-weight: 400; color: var(--soft); font-size: 13px; }
.m-ico { width: 32px; height: 32px; border-radius: 8px; flex: none; background: var(--wash); object-fit: cover; }
.m-up { color: #12803f; font-weight: 650; }
.m-down { color: #c2410c; font-weight: 650; }
.m-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.m-hero img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.m-hero p { margin: 0; color: var(--soft); }
.m-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 26px; }
.m-facts dt { color: var(--soft); }
.m-facts dd { margin: 0; overflow-wrap: anywhere; }
.m-lock { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m-blur { filter: blur(5px); user-select: none; color: var(--soft); }
.m-lock a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.m-section { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.m-list { margin: 0 0 18px; padding-left: 20px; }
.m-list li { padding: 3px 0; }
.m-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 18px; margin: 0 0 24px; padding: 0; list-style: none; }
.m-links a { display: inline-flex; align-items: center; min-height: 44px; }
.m-note { font-size: 14px; color: var(--soft); }
.m-table td.m-term { white-space: normal; font-weight: 650; overflow-wrap: anywhere; }
/* History: charts with no script. The day under the pointer shows its own label (data-tip). */
.m-jump { margin: 0 0 14px; }
.m-jump a, .m-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.m-charts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.m-chart { flex: 1 1 min(100%, 330px); margin: 0; padding: 14px 16px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.m-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; color: var(--soft); }
.m-chart figcaption b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-plot { position: relative; height: 112px; }
.m-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.m-line { fill: none; stroke: #7c4dd8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.m-pos { fill: #7c4dd8; } .m-neg { fill: #c2410c; }
.m-hits { position: absolute; inset: 0; display: flex; }
.m-hits span { position: relative; flex: 1 1 0; min-width: 0; }
.m-hits span[data-tip]:hover { background: rgba(124, 77, 216, .10); }
.m-hits span[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 9px; background: #1d1238; color: #fff; font-size: 12.5px; font-weight: 650; white-space: nowrap; pointer-events: none; z-index: 3; }
.m-hits span:nth-child(-n+4)[data-tip]:hover::after { left: 0; transform: none; }
.m-hits span:nth-last-child(-n+4)[data-tip]:hover::after { left: auto; right: 0; transform: none; }
.m-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--soft); }
.m-spark { display: block; } .m-spark path { fill: none; stroke: #7c4dd8; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.m-days { margin: 0 0 22px; } .m-days summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 650; color: var(--green); }
.m-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 40px; margin: 0 0 20px; }
.m-two h3 { margin: 6px 0 8px; font-size: 15px; }
.m-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.m-rows li { display: grid; grid-template-columns: 84px 1fr 52px; gap: 10px; align-items: center; }
.m-rows li > span:first-child { color: var(--soft); } .m-rows b { text-align: right; font-variant-numeric: tabular-nums; }
.m-rowbar { height: 10px; border-radius: 999px; background: var(--wash); overflow: hidden; } .m-rowbar i { display: block; height: 100%; border-radius: 999px; background: #7c4dd8; }
.m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.m-pages { display: flex; flex-wrap: wrap; gap: 4px; margin: -12px 0 26px; }
.m-pages a, .m-pages span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px; font-weight: 650; text-decoration: none; }
.m-pages span { background: var(--wash); color: var(--green); }
@media (max-width: 620px) {
  .m-table th, .m-table td { padding: 8px; }
  .m-hide-phone { display: none; }
  .m-table td.m-app { min-width: 150px; }
}
