/* primedha.net (PRIMEDHA Connect): what the shared style.css (primedha.com) and nexus.css do not already provide. Same colours and fonts; every class starts with "cn-". */

/* --- The menu: the page you are on, and the console button --- */
.nav-link.cn-current { color: var(--primary); }
.nav-link.cn-current::after { width: 100%; }
.cn-nav-console { border: 2px solid var(--primary); border-radius: 6px; padding: 8px 18px !important; color: var(--primary) !important; font-weight: 600; }
.cn-nav-console:hover { background: var(--primary); color: var(--white) !important; }

/* --- A compact page header for the inner pages --- */
.cn-page-hero { background: radial-gradient(circle at 20% 25%, #2d1440 0%, #0b1120 55%); color: var(--white); padding: 140px 0 60px; position: relative; }
.cn-page-hero .container { position: relative; z-index: 1; max-width: 900px; }
.cn-page-hero h1 { font-size: 2.6rem; line-height: 1.2; margin: 10px 0 14px; }
.cn-page-hero p { font-size: 1.15rem; color: #e2e8f0; max-width: 760px; }

/* --- Reading width for text-heavy sections --- */
.cn-prose { max-width: 900px; margin: 0 auto; color: var(--secondary); }
.cn-prose h2 { color: var(--secondary); font-size: 1.7rem; margin: 46px 0 14px; }
.cn-prose h2:first-child { margin-top: 0; }
.cn-prose h3 { color: var(--primary); font-size: 1.15rem; margin: 26px 0 8px; }
.cn-prose p { margin-bottom: 14px; line-height: 1.7; }
/* style.css (shared with primedha.com) removes every list's bullets; the lists of the text pages keep theirs, aligned with the paragraphs around them. */
.cn-prose ul { list-style: disc outside; margin: 0 0 16px; padding-left: 1.25em; }
.cn-prose li { margin-bottom: 8px; line-height: 1.6; padding-left: 4px; }
.cn-prose li::marker { color: #a855f7; }
.cn-prose a { color: var(--primary); font-weight: 600; }
.cn-prose a:hover { text-decoration: underline; }
.cn-prose code { background: var(--light-purple); color: var(--primary-dark); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }

/* --- Tables --- */
.cn-table-wrap { overflow-x: auto; margin: 8px 0 22px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.cn-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.95rem; }
.cn-table th, .cn-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.cn-table th { background: var(--light-purple); color: var(--primary-dark); font-weight: 700; }
.cn-table tr:last-child td { border-bottom: none; }
.cn-table td:first-child { font-weight: 600; color: var(--secondary); }

/* --- A numbered, detailed step list (How it works) --- */
.cn-flow { list-style: none; counter-reset: cn-step; padding: 0; margin: 0; }
.cn-flow > li { position: relative; padding: 0 0 34px 64px; counter-increment: cn-step; }
.cn-flow > li::before {
    content: counter(cn-step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.cn-flow > li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--light-purple); }
.cn-flow > li:last-child::after { display: none; }
.cn-flow h3 { margin-top: 6px; }

/* --- Document cards (Docs) --- */
.cn-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.cn-doc { background: var(--white); border-radius: 8px; padding: 28px 26px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.cn-doc h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.15rem; }
.cn-doc p { color: var(--secondary); margin-bottom: 18px; flex: 1; }
.cn-doc a { color: var(--primary); font-weight: 700; }
.cn-doc a:hover { text-decoration: underline; }
.cn-doc i { margin-right: 6px; }

/* --- A short highlighted note --- */
.cn-note { background: var(--light-purple); border-left: 5px solid var(--primary); border-radius: 8px; padding: 16px 20px; margin: 18px 0 22px; color: var(--secondary); }
.cn-note p { margin: 0; }

/* --- The closing call to action --- */
.cn-cta { text-align: center; }
.cn-cta p { color: var(--gray); max-width: 640px; margin: 0 auto 26px; }
.cn-cta .nx-hero-actions { justify-content: center; }
.cn-cta .btn-secondary { color: var(--primary); border-color: var(--primary); }

.nx-plans-center { justify-content: center; }

/* --- A specification example --- */
.cn-code { background: #0b1120; color: #e2e8f0; border-radius: 8px; padding: 20px 22px; overflow-x: auto; margin: 8px 0 24px; font-size: 0.9rem; line-height: 1.55; }
.cn-code code { background: none; color: inherit; padding: 0; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

/* --- Read by screen readers, not shown --- */
.cn-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --- Footer: the company logo, to primedha.com --- */
.cn-footer-company { display: inline-block; margin-bottom: 14px; }
.cn-footer-company img { height: 34px; width: auto; display: block; background: transparent; transition: opacity 0.2s ease; }
.cn-footer-company:hover img { opacity: 0.8; }

/* --- The product logo: in the menu bar, and as the home page's title on the dark hero --- */
.logo-image img { max-width: 56vw; height: 30px; object-fit: contain; }
.cn-hero-logo { display: block; height: 44px; width: auto; max-width: 100%; margin: 8px 0 6px; }
.cn-tagline { font-size: 1.6rem; font-weight: 700; color: var(--white); line-height: 1.3; margin: 14px 0 12px; }

@media screen and (max-width: 768px) {
    .cn-page-hero { padding: 115px 0 44px; }
    .cn-page-hero h1 { font-size: 1.9rem; }
    .cn-flow > li { padding-left: 54px; }
    .cn-nav-console { display: inline-block; margin-top: 6px; }
    .cn-hero-logo { height: auto; width: 100%; max-width: 290px; }
    .cn-tagline { font-size: 1.25rem; }
}

/* --- Dark, as on primedha.com: every section on the same radial gradient (#2d1440 -> #0b1120), the glow moving from section to section; cards stay white --- */
body { background: #0b1120; }
main > section { background: radial-gradient(circle at 80% 15%, #2d1440 0%, #0b1120 55%); color: #e2e8f0; position: relative; }
main > section:nth-of-type(odd) { background: radial-gradient(circle at 20% 8%, #2d1440 0%, #0b1120 55%); }
main > section.nx-muted, main > section.nx-status-section { background: radial-gradient(circle at 80% 20%, #2d1440 0%, #0b1120 55%); }
main > section.nx-hero, main > section.cn-page-hero { background: radial-gradient(circle at 20% 25%, #2d1440 0%, #0b1120 55%); }
.section-header h2 { color: var(--white); }
.subtitle { color: #d8b4fe; }
.line { background: #a855f7; }
.cn-prose { color: #e2e8f0; }
/* The white boxes on the dark sections keep dark text: without this their cells and paragraphs inherited the section's light text and vanished on white (tables of how-it-works and security). */
.cn-table, .cn-doc, .nx-steps li, .nx-notice, .nx-panel { color: var(--secondary); }
.cn-prose h2 { color: var(--white); }
.cn-prose h3 { color: #d8b4fe; }
.cn-prose a { color: #d8b4fe; }
.cn-prose code { background: rgba(216, 180, 254, 0.15); color: #f3e8ff; }
.cn-flow > li::after { background: rgba(216, 180, 254, 0.25); }
.cn-cta p { color: #cbd5e1; }
.cn-cta .btn-secondary { color: var(--white); border-color: var(--white); }
.cn-cta .btn-secondary:hover { background: var(--white); color: var(--secondary); }
.nx-status-intro { color: #e2e8f0; }
.nx-notices h3 { color: #d8b4fe; }
.nx-updated, .nx-empty { color: #94a3b8; }
/* Status page: one line per part of the service, checked live from the visitor's browser (status.js). */
.nx-components { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; gap: 8px; }
.nx-components li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 8px; border: 1px solid rgba(216, 180, 254, 0.2); background: rgba(15, 23, 42, 0.55); color: #e2e8f0; }
.nx-component-state { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.nx-component-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #64748b; }
.nx-component-up .nx-component-state { color: #86efac; }
.nx-component-up .nx-component-state::before { background: #16a34a; }
.nx-component-down .nx-component-state { color: #fca5a5; }
.nx-component-down .nx-component-state::before { background: #dc2626; }
.nx-component-checking .nx-component-state { color: #cbd5e1; }
.nx-plans li { background: rgba(216, 180, 254, 0.15); color: #f3e8ff; }
.nx-panel .nx-plans li { background: var(--light-purple); color: var(--primary-dark); }

/* --- Connect-only additions --- */
.cn-trademark { font-size: 0.78rem; opacity: 0.7; margin-top: 6px; }

/* --- Pricing and terms --- */
.cn-prose.cn-wide { max-width: 1100px; }
.cn-plans-table { min-width: 760px; font-size: 0.9rem; }
.cn-plans-table th, .cn-plans-table td { padding: 10px 12px; }
.cn-plans-table td:not(:first-child), .cn-plans-table th:not(:first-child) { min-width: 120px; }
.cn-actions { margin: 24px 0 8px; }
