/**
 * Public CMS pages (blog / privacy / terms) — dark airtime theme alignment.
 */
:root {
    --cyan: #22d3ee;
    --orange: #fb923c;
    --voltrex-orange: #f97316;
    --voltrex-bg: #0b0e14;
    --voltrex-panel: rgba(18, 21, 28, 0.78);
    --voltrex-border: rgba(255, 255, 255, 0.08);
}

html.mm-airtime-theme,
html.dark {
    color-scheme: dark;
    background: #0b0e14;
}

body.mm-cms-public {
    font-family: var(--mm-font-sans, 'IBM Plex Sans', system-ui, sans-serif);
    background: transparent;
    min-height: 100vh;
    color: #e2e8f0;
}

/* Keep PWA / overlays above mesh */
body.mm-airtime-theme .mm-pwa-install,
body.mm-airtime-theme [data-mm-pwa],
.mm-pwa-banner,
.mm-pwa-install-banner {
    position: fixed !important;
    z-index: 1600 !important;
}

.voltrex-card {
    background: var(--voltrex-panel);
    border: 1px solid var(--voltrex-border);
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.65);
}

.voltrex-nav-pill {
    border-radius: 9999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    transition: background 0.15s, color 0.15s;
}

.voltrex-nav-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.voltrex-nav-pill--active {
    background: rgba(249, 115, 22, 0.14);
    color: #fdba74;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.mm-cms-panel {
    background: var(--voltrex-panel);
    border: 1px solid var(--voltrex-border);
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.65);
    padding: 1.5rem 1.35rem;
}

@media (min-width: 640px) {
    .mm-cms-panel {
        padding: 1.75rem 1.75rem;
    }
}

.mm-cms-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--voltrex-orange), #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mm-cms-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.mm-cms-sub {
    margin: 0.65rem 0 0;
    max-width: 40rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

.mm-cms-meta {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.mm-cms-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(165deg, rgba(18, 21, 28, 0.92), rgba(11, 14, 20, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.mm-cms-post-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.08);
    transform: translateY(-2px);
}

.mm-cms-post-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.mm-cms-post-card h2 a {
    color: #f8fafc;
    text-decoration: none;
}

.mm-cms-post-card h2 a:hover {
    color: #67e8f9;
}

.mm-cms-post-card .excerpt {
    margin: 0 0 1rem;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #94a3b8;
}

.mm-cms-post-card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
}

.mm-cms-post-card .meta a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
}

.mm-cms-post-card .meta a:hover {
    color: #67e8f9;
}

/* Legal / blog body — force dark readable prose (override any light defaults) */
.mm-cms-prose {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
}

.mm-cms-prose h2,
.mm-cms-prose h3,
.mm-cms-prose h4 {
    color: #f8fafc !important;
    font-weight: 650;
    margin: 1.75rem 0 0.65rem;
    letter-spacing: -0.01em;
}

.mm-cms-prose h2 { font-size: 1.25rem; }
.mm-cms-prose h3 { font-size: 1.1rem; }

.mm-cms-prose p {
    margin: 0 0 1rem;
    color: #cbd5e1;
}

.mm-cms-prose strong,
.mm-cms-prose b {
    color: #f1f5f9;
    font-weight: 650;
}

.mm-cms-prose a {
    color: #22d3ee !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mm-cms-prose a:hover {
    color: #67e8f9 !important;
}

.mm-cms-prose ul,
.mm-cms-prose ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: #cbd5e1;
}

.mm-cms-prose li {
    margin: 0.35rem 0;
}

.mm-cms-prose li::marker {
    color: #64748b;
}

.mm-cms-prose blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid rgba(249, 115, 22, 0.55);
    background: rgba(15, 23, 42, 0.55);
    border-radius: 0 0.75rem 0.75rem 0;
    color: #e2e8f0;
}

.mm-cms-prose hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.5rem 0;
}

.mm-cms-footer {
    position: relative;
    z-index: 2;
}

.mm-cms-header,
.mm-cms-main {
    position: relative;
    z-index: 2;
}
