/**
 * Public Mega 10 pages (/mega-10/ and /mega-10/<company>/). Site tokens only, so light and dark themes follow.
 */
.m10-wrap {
    max-width: 72rem;
    padding: 1.25rem 16px 3rem;
}

.m10-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.m10-crumbs li + li::before {
    content: "/";
    margin-right: 0.35rem;
}

.m10-crumbs a {
    color: var(--text-muted);
}

.m10-head {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.m10-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.m10-head h1 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
    color: var(--text);
}

.m10-lede {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-soft, var(--text));
}

.m10-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: 1rem;
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
}

.m10-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.m10-card-top {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.m10-rank {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
}

.m10-card h2 {
    flex: 1;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.m10-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.m10-card h2 a:hover,
.m10-card h2 a:focus-visible {
    text-decoration: underline;
}

.m10-sym {
    font-family: Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.m10-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0;
}

.m10-stats-wide {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    margin-top: 1rem;
}

.m10-stats div {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: var(--surface-2, var(--paper));
}

.m10-stats dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.m10-stats dd {
    margin: 0.15rem 0 0;
    font-family: Menlo, Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.m10-up {
    color: #1e7a4c !important;
}

.m10-down {
    color: #b23a2a !important;
}

.m10-story {
    flex: 1;
    margin: 0;
    line-height: 1.45;
}

.m10-story a,
.m10-stories a {
    color: var(--text);
    font-weight: 600;
}

.m10-story span,
.m10-stories span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.m10-story-none,
.m10-empty,
.m10-note {
    color: var(--text-muted);
}

.m10-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--primary);
}

.m10-panel,
.m10-explain,
.m10-others {
    max-width: 48rem;
    margin: 0 0 2.25rem;
}

.m10-panel h2,
.m10-explain h2,
.m10-others h2,
.m10-letter h2 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    color: var(--text);
}

.m10-panel p,
.m10-explain p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
}

.m10-stories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.m10-stories li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.m10-stories li:first-child {
    padding-top: 0;
}

.m10-note {
    margin-top: 0.75rem !important;
    font-size: 0.9rem !important;
}

.m10-others ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.m10-others li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.m10-others li a:hover,
.m10-others li a:focus-visible {
    border-color: var(--text-muted);
}

.m10-others li span {
    font-family: Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.m10-others p a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--primary);
}

.m10-letter {
    max-width: 48rem;
    margin: 0 0 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--ink);
    color: var(--on-ink);
}

.m10-letter h2 {
    color: var(--on-ink);
}

.m10-letter p {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: var(--on-ink-muted, var(--on-ink));
}

.m10-fine {
    max-width: 48rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .m10-grid {
        grid-template-columns: 1fr;
    }

    .m10-stats-wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Movers pages: /top-losers/ and /small-caps/ */
.mv-list {
    max-width: 48rem;
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
}

.mv-row {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.mv-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.mv-top h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text);
}

.mv-move {
    font-family: Menlo, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.mv-meta {
    margin: 0.2rem 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
