/* DPN for Routers page (page-dpn-for-routers.php). Everything is scoped to .sx-rt so nothing
 * reaches the header, menu or footer. Body text uses the site font picked in the Customizer
 * (--stospn-body); titles Orbitron, labels JetBrains Mono. stospn-custom.css sets the body font
 * on every element and styles every button and link with !important, so the accent fonts and
 * the few rules that must beat it carry !important too. */
.sx-rt {
    --rt-bg: #06030A;
    --rt-alt: #0A0614;
    --rt-card: rgba(255, 255, 255, 0.03);
    --rt-line: rgba(255, 255, 255, 0.08);
    --rt-cyan: #00F0FF;
    --rt-blue: #3B82F6;
    --rt-violet: #A855F7;
    --rt-green: #00FF9C;
    --rt-amber: #FFC857;
    --rt-text: #E8E6F5;
    --rt-muted: #A9A6C2;
    display: block;
    background: var(--rt-bg);
    color: var(--rt-text);
    font-size: 1rem;   /* the old theme's body size is smaller */
    line-height: 1.65;
    overflow-x: clip;
}
.sx-rt *, .sx-rt *::before, .sx-rt *::after { box-sizing: border-box; }
.sx-rt h1, .sx-rt h2, .sx-rt h3 {
    font-family: 'Orbitron', 'Segoe UI', sans-serif !important;
    color: #fff;
    margin-top: 0; margin-bottom: 0;
    letter-spacing: 0.5px;
}
.sx-rt p { margin-top: 0; margin-bottom: 0; }
.sx-rt code {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 0.85em;
    color: var(--rt-cyan);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 5px;
    padding: 1px 6px;
}
.sx-rt strong { color: #fff; }

/* Jump targets stop below the sticky header */
.sx-rt [id] { scroll-margin-top: 130px; }

/* Jump links */
.sx-rt-jump {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    padding: 28px 20px 0;
}
.sx-rt .sx-rt-jump a {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
    color: var(--rt-muted) !important; text-decoration: none !important;
    padding: 7px 14px; border: 1px solid var(--rt-line); border-radius: 999px;
    transition: color .2s, border-color .2s, box-shadow .2s;
}
.sx-rt .sx-rt-jump a:hover {
    color: var(--rt-cyan) !important; border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

/* Hero */
.sx-rt-hero {
    max-width: 900px; margin: 0 auto; text-align: center;
    padding: 70px 20px 56px;
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.14), transparent 65%);
}
.sx-rt-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: var(--rt-cyan);
}
.sx-rt-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.2; margin: 16px 0 20px; }
.sx-rt-grad {
    font-family: inherit !important;
    background: linear-gradient(90deg, #3eefff, #5495fa 50%, #b878fb);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.sx-rt-hero p { color: var(--rt-muted); font-size: 1.08rem; max-width: 760px; margin: 0 auto 30px; }
.sx-rt-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.sx-rt .sx-rt-btn {
    display: inline-block;
    font-family: 'Orbitron', 'Segoe UI', sans-serif !important;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--rt-cyan) !important; text-decoration: none !important;
    padding: 13px 26px; border-radius: 10px;
    border: 1.5px solid var(--rt-cyan); background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35), 0 0 26px rgba(168, 85, 247, 0.15);
    transition: background .2s, box-shadow .2s, transform .2s;
}
.sx-rt .sx-rt-btn:hover {
    background: rgba(0, 240, 255, 0.14);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.55), 0 0 34px rgba(168, 85, 247, 0.25);
    transform: translateY(-1px);
}
.sx-rt .sx-rt-btn-ghost {
    color: #fff !important; border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03); box-shadow: none;
}
.sx-rt .sx-rt-btn-ghost:hover { border-color: var(--rt-violet); box-shadow: 0 0 14px rgba(168, 85, 247, 0.35); background: rgba(168, 85, 247, 0.08); }

/* Specs bar */
.sx-rt-specs {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    max-width: 1100px; margin: 0 auto; padding: 26px 20px;
    border-top: 1px solid var(--rt-line); border-bottom: 1px solid var(--rt-line);
    text-align: center;
}
.sx-rt-specs b {
    display: block; font-family: 'Orbitron', 'Segoe UI', sans-serif !important; font-size: 1.25rem; font-weight: 700;
    color: var(--rt-cyan); text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}
.sx-rt-specs span { font-size: 0.85rem; color: var(--rt-muted); }

/* Sections */
.sx-rt-sec { padding: 80px 20px; }
.sx-rt-sec > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.sx-rt-alt { background: var(--rt-alt); border-top: 1px solid var(--rt-line); border-bottom: 1px solid var(--rt-line); }
.sx-rt-sec > h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.sx-rt-sub { text-align: center; color: var(--rt-muted); font-size: 1.02rem; max-width: 720px; margin-bottom: 46px !important; }

/* Cards (services + setup steps) */
.sx-rt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.sx-rt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.sx-rt-card {
    background: var(--rt-card); border: 1px solid var(--rt-line); border-radius: 14px;
    padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sx-rt-card:hover { border-color: rgba(0, 240, 255, 0.35); box-shadow: 0 0 22px rgba(168, 85, 247, 0.14); transform: translateY(-2px); }
.sx-rt-ico { font-size: 1.9rem; margin-bottom: 14px; }
.sx-rt-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.sx-rt-card p { color: var(--rt-muted); font-size: 0.92rem; }
.sx-rt-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important; font-size: 1.5rem; font-weight: 600;
    background: linear-gradient(90deg, #3eefff, #b878fb); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent; margin-bottom: 10px;
}

/* Router table: fixed columns, quiet dividers, pills on one line; cards on phones */
.sx-rt-table {
    border-radius: 14px; border: 1px solid rgba(0, 240, 255, 0.18);
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.12); background: var(--rt-card); overflow: hidden;
}
.sx-rt-table table { width: 100% !important; table-layout: fixed; border-collapse: collapse; margin: 0 !important; border: 0 !important; background: transparent; }
.sx-rt-table th, .sx-rt-table td {
    border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 18px 16px !important; text-align: left; vertical-align: middle;
    font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; color: #d6d8e4; background: transparent;
}
.sx-rt-table thead th {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.10), rgba(168, 85, 247, 0.10)) !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    color: var(--rt-cyan) !important; font-size: 0.72rem !important; font-weight: 600;
    letter-spacing: 1.2px; text-transform: uppercase; overflow-wrap: normal; line-height: 1.4;
}
.sx-rt-table tbody tr:last-child td { border-bottom: 0 !important; }
.sx-rt-table tbody tr { transition: background .2s; }
.sx-rt-table tbody tr:hover { background: rgba(0, 240, 255, 0.04); }
.sx-rt-table th:nth-child(1) { width: 19%; }
.sx-rt-table th:nth-child(2) { width: 27%; }
.sx-rt-table th:nth-child(3) { width: 17%; }
.sx-rt-table th:nth-child(4) { width: 21%; }
.sx-rt-table th:nth-child(5) { width: 16%; }
.sx-rt-table td:first-child strong { display: block; font-family: 'Orbitron', 'Segoe UI', sans-serif !important; font-size: 0.95rem; letter-spacing: 0.5px; }
.sx-rt-table td:first-child small { display: block; color: var(--rt-muted); font-size: 0.8rem; }
.sx-rt-table td:nth-child(2) { color: #fff; }
.sx-rt-pill {
    display: inline-block; white-space: nowrap; line-height: 1.4;
    padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 700;
}
.sx-rt-ready { color: var(--rt-green); background: rgba(0, 255, 156, 0.10); border: 1px solid rgba(0, 255, 156, 0.35); }
.sx-rt-manual { color: var(--rt-amber); background: rgba(255, 200, 87, 0.10); border: 1px solid rgba(255, 200, 87, 0.35); }
.sx-rt-check { color: #C9B6FF; background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.4); }
.sx-rt-card-pill { display: none; }

/* FAQ */
.sx-rt-faq { max-width: 820px !important; }
.sx-rt-q { background: var(--rt-card); border: 1px solid var(--rt-line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.sx-rt-q.is-open { border-color: rgba(0, 240, 255, 0.35); }
.sx-rt .sx-rt-q button {
    display: flex !important; justify-content: space-between; align-items: center; gap: 16px;
    width: 100% !important; margin: 0 !important; padding: 18px 22px !important;
    background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    color: #fff !important; text-align: left; text-transform: none !important; letter-spacing: 0 !important;
    font-family: inherit !important; font-size: 1rem !important; font-weight: 700 !important;
    line-height: 1.45 !important; cursor: pointer;
}
.sx-rt .sx-rt-q button span { flex: none; color: var(--rt-cyan); font-size: 1.3rem; transition: transform .2s; }
.sx-rt .sx-rt-q.is-open button span { transform: rotate(45deg); }
.sx-rt-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.sx-rt-a > p { overflow: hidden; padding: 0 22px; color: var(--rt-muted); font-size: 0.93rem; }
.sx-rt-q.is-open .sx-rt-a { grid-template-rows: 1fr; }
.sx-rt-q.is-open .sx-rt-a > p { padding-bottom: 18px; }

/* Call to action */
.sx-rt-cta {
    text-align: center; padding: 80px 20px 90px;
    background: radial-gradient(ellipse at bottom, rgba(0, 240, 255, 0.10), transparent 70%);
}
.sx-rt-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.sx-rt-cta p { color: var(--rt-muted); max-width: 640px; margin: 0 auto 28px; }

@media (max-width: 760px) {
    .sx-rt-hero { padding: 44px 16px 40px; }
    .sx-rt-sec { padding: 56px 16px; }
    .sx-rt-specs { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
    .sx-rt-table { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .sx-rt-table table, .sx-rt-table tbody, .sx-rt-table tr, .sx-rt-table td { display: block; width: 100% !important; }
    .sx-rt-table thead { display: none; }
    .sx-rt-table tbody tr {
        margin-bottom: 14px; border: 1px solid rgba(0, 240, 255, 0.18); border-radius: 14px;
        background: var(--rt-card); box-shadow: 0 0 18px rgba(168, 85, 247, 0.10); overflow: hidden;
    }
    .sx-rt-table td { padding: 10px 16px !important; }
    .sx-rt-table td:first-child {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: 14px 16px !important;
        background: linear-gradient(90deg, rgba(0, 240, 255, 0.10), rgba(168, 85, 247, 0.10));
    }
    .sx-rt-table td:not(:first-child)::before {
        content: attr(data-label); display: block;
        font-family: 'JetBrains Mono', ui-monospace, monospace !important;
        color: var(--rt-cyan); font-size: 0.68rem; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 2px;
    }
    .sx-rt-table td:last-child { display: none; }   /* status shown in the card header */
    .sx-rt-card-pill { display: inline-block; }
}
