/**
 * Automation service detail (/automation-service/{slug}) — theme-aware sections.
 */

body.capnis-automation-service-detail-page #smooth-wrapper,
body.capnis-automation-service-detail-page #smooth-content {
    background-color: var(--capnis-surface-2);
}

body.capnis-automation-service-detail-page .capnis-automation-service-detail-page__deck {
    position: relative;
    overflow: hidden;
}

body.capnis-automation-service-detail-page .capnis-asd-overview,
body.capnis-automation-service-detail-page .capnis-asd-process,
body.capnis-automation-service-detail-page .capnis-asd-features,
body.capnis-automation-service-detail-page .capnis-asd-stack,
body.capnis-automation-service-detail-page .capnis-asd-gallery,
body.capnis-automation-service-detail-page .capnis-asd-video,
body.capnis-automation-service-detail-page .capnis-asd-faq,
body.capnis-automation-service-detail-page .capnis-asd-testimonials {
    border-top: 1px solid var(--capnis-border);
}

body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-rich {
    color: var(--capnis-slate);
    line-height: 1.72;
}

body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-rich :is(h1, h2, h3, h4) {
    color: var(--capnis-ink);
}

body.capnis-automation-service-detail-page .ar-about-us-4-icon {
    color: var(--capnis-ink);
}

body.capnis-automation-service-detail-page .tp-career-title.fs-60 {
    color: var(--capnis-ink);
}

body.capnis-automation-service-detail-page .tp-section-subtitle.pre {
    color: var(--capnis-slate);
}

body.capnis-automation-service-detail-page section#automation-quote.capnis-asd-estimate-wizard {
    border-top: 1px solid var(--capnis-border);
    border-bottom: 1px solid var(--capnis-border);
}

body.capnis-automation-service-detail-page .capnis-svc-quote-wizard__lead {
    max-width: 42rem;
    line-height: 1.65;
    opacity: 0.88;
}

/* ── Light theme ──────────────────────────────────────────────────────────── */
html.capnis-light body.capnis-automation-service-detail-page .automation-service-detail-page.capnis-auto-detail-elevated {
    background:
        linear-gradient(180deg, var(--capnis-surface-2) 0%, var(--capnis-surface) 28%, var(--capnis-surface-2) 100%) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__bg {
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(var(--ais-brand-rgb), 0.1), transparent 55%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(var(--ais-secondary-bg-rgb), 0.2), transparent 50%),
        linear-gradient(165deg, var(--capnis-surface-2) 0%, var(--capnis-surface) 55%) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__title {
    color: var(--capnis-ink) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__lede,
html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__bullets li {
    color: var(--capnis-slate) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__eyebrow {
    color: var(--capnis-ink) !important;
    background: var(--capnis-surface-3) !important;
    border-color: var(--capnis-border) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__badge {
    background: var(--capnis-surface) !important;
    border-color: var(--capnis-border) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__badge-k,
html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__badge-v {
    color: var(--capnis-ink) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__ghost-link {
    color: var(--capnis-slate) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-overview {
    background:
        radial-gradient(900px 420px at 10% 0%, rgba(14, 76, 135, 0.05), transparent 55%),
        linear-gradient(180deg, var(--capnis-surface) 0%, var(--capnis-surface-2) 100%) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-aside-card {
    background: var(--capnis-surface) !important;
    border: 1px solid var(--capnis-border) !important;
    box-shadow: 0 24px 48px var(--capnis-shadow) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-aside-title {
    color: var(--capnis-ink);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-aside-text,
html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-aside-meta {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-process {
    background: var(--capnis-surface) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-process .tp-service-4-process-list p,
html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-process .tp-service-4-process-wrapper > p {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-process .tp-service-4-process-list span {
    color: var(--capnis-ink);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-highlight .tp-service-5-feature-content span {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-features {
    background: linear-gradient(180deg, var(--capnis-surface-2) 0%, var(--capnis-surface) 100%) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-features .ais-agntix-feature-card {
    background: var(--capnis-surface) !important;
    border: 1px solid var(--capnis-border) !important;
    box-shadow: 0 16px 40px var(--capnis-shadow) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-features .ais-agntix-feature-title {
    color: var(--capnis-ink);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-features .ais-agntix-feature-text {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-stack.ais-agntix-stack-v2 {
    background:
        radial-gradient(ellipse 960px 360px at 82% -8%, rgba(var(--ais-brand-rgb), 0.06), transparent 58%),
        linear-gradient(180deg, var(--capnis-surface-2) 0%, var(--capnis-surface) 100%) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-stack .capnis-stack-lede {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-stack .capnis-stack-count-pill {
    color: var(--capnis-slate);
    background: var(--capnis-surface-3);
    border-color: var(--capnis-border);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-stack .capnis-stack-tile {
    background: var(--capnis-surface) !important;
    border-color: var(--capnis-border) !important;
    box-shadow: 0 16px 40px var(--capnis-shadow) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-stack .ais-agntix-stack-title {
    color: var(--capnis-ink);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-stack .ais-agntix-stack-text {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-gallery {
    background: var(--capnis-surface) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-gallery .ais-agntix-gallery-card {
    background: var(--capnis-surface) !important;
    border: 1px solid var(--capnis-border) !important;
    box-shadow: 0 16px 40px var(--capnis-shadow) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-gallery .ais-agntix-gallery-cap h3 {
    color: var(--capnis-ink);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-gallery .ais-agntix-gallery-cap p {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-video {
    background: var(--capnis-surface-2);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-faq {
    background: linear-gradient(180deg, var(--capnis-surface-2) 0%, var(--capnis-surface) 100%);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-faq .ais-agntix-faq-aside img {
    border-radius: 18px;
    border: 1px solid var(--capnis-border);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-testimonials {
    background:
        radial-gradient(1000px 400px at 10% -20%, rgba(0, 0, 0, 0.04), transparent 55%),
        linear-gradient(180deg, var(--capnis-surface-2) 0%, var(--capnis-surface) 100%);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-testimonials .ais-agntix-testimonials-intro p {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-testimonials .pbminfotech-post-item {
    background: var(--capnis-surface);
    border: 1px solid var(--capnis-border);
    border-radius: 18px;
    box-shadow: 0 16px 40px var(--capnis-shadow);
    padding: 1.5rem;
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-testimonials .pbminfotech-box-title,
html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-testimonials .pbminfotech-testimonial-text p {
    color: var(--capnis-ink);
}

html.capnis-light body.capnis-automation-service-detail-page .capnis-asd-testimonials .pbminfotech-testimonial-detail {
    color: var(--capnis-slate);
}

html.capnis-light body.capnis-automation-service-detail-page .tp-btn-border {
    border-color: var(--capnis-border) !important;
    color: var(--capnis-ink) !important;
}

html.capnis-light body.capnis-automation-service-detail-page .tp-btn-border:hover {
    background: var(--capnis-surface-3) !important;
    border-color: var(--capnis-border) !important;
    color: var(--capnis-ink) !important;
}

/* ── Dark theme ───────────────────────────────────────────────────────────── */
html.capnis-dark body.capnis-automation-service-detail-page #smooth-wrapper,
html.capnis-dark body.capnis-automation-service-detail-page #smooth-content {
    background-color: var(--capnis-surface);
}

html.capnis-dark body.capnis-automation-service-detail-page .automation-service-detail-page.capnis-auto-detail-elevated {
    background: linear-gradient(180deg, var(--capnis-surface) 0%, var(--capnis-surface-2) 100%) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__bg {
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(var(--ais-brand-rgb), 0.12), transparent 55%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(var(--ais-secondary-bg-rgb), 0.15), transparent 50%),
        linear-gradient(165deg, var(--capnis-surface) 0%, var(--capnis-surface-2) 55%) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__grid {
    opacity: 0.12 !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__title {
    color: var(--capnis-ink) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__lede,
html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__bullets li {
    color: var(--capnis-slate) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__eyebrow {
    color: var(--capnis-ink) !important;
    background: var(--capnis-surface-3) !important;
    border-color: var(--capnis-border) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__visual-frame {
    border-color: var(--capnis-border) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__badge {
    background: var(--capnis-surface-3) !important;
    border-color: var(--capnis-border) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__badge-k,
html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__badge-v {
    color: var(--capnis-ink) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-hero .capnis-auto-hero__ghost-link {
    color: var(--capnis-slate) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-overview {
    background: linear-gradient(180deg, var(--capnis-surface) 0%, var(--capnis-surface-2) 100%) !important;
    border-top-color: var(--capnis-border) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-aside-card {
    background: var(--capnis-surface-3) !important;
    border: 1px solid var(--capnis-border) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-aside-title {
    color: var(--capnis-ink);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-aside-text,
html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-overview .ais-agntix-aside-meta {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-process {
    background: var(--capnis-surface) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-process .tp-service-4-process-list p,
html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-process .tp-service-4-process-wrapper > p {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-process .tp-service-4-process-list span {
    color: var(--capnis-ink);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-highlight .tp-service-5-feature-content span {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-features {
    background: var(--capnis-surface) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-features .ais-agntix-feature-card {
    background: var(--capnis-surface-3) !important;
    border: 1px solid var(--capnis-border) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-features .ais-agntix-feature-title {
    color: var(--capnis-ink);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-features .ais-agntix-feature-text {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-stack.ais-agntix-stack-v2 {
    background: linear-gradient(180deg, var(--capnis-surface-2) 0%, var(--capnis-surface) 100%) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-stack .capnis-stack-head-dash {
    background: linear-gradient(90deg, var(--capnis-ink), transparent);
    opacity: 0.2;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-stack .capnis-stack-lede {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-stack .capnis-stack-count-pill {
    color: var(--capnis-slate);
    background: var(--capnis-surface-3);
    border-color: var(--capnis-border);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-stack .capnis-stack-tile {
    background: var(--capnis-surface-3) !important;
    border-color: var(--capnis-border) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-stack .capnis-stack-tile .ais-agntix-stack-logo {
    background: var(--capnis-surface-2) !important;
    border-color: var(--capnis-border) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-stack .ais-agntix-stack-title {
    color: var(--capnis-ink);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-stack .ais-agntix-stack-text {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-gallery {
    background: var(--capnis-surface-2) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-gallery .ais-agntix-gallery-card {
    background: var(--capnis-surface-3) !important;
    border: 1px solid var(--capnis-border) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-gallery .ais-agntix-gallery-cap h3 {
    color: var(--capnis-ink);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-gallery .ais-agntix-gallery-cap p {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-video {
    background: var(--capnis-surface);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-faq {
    background: var(--capnis-surface);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-faq .ais-agntix-faq-aside img {
    border-radius: 18px;
    border: 1px solid var(--capnis-border);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-testimonials {
    background: linear-gradient(180deg, var(--capnis-surface-2) 0%, var(--capnis-surface) 100%);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-testimonials .ais-agntix-testimonials-intro p {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-testimonials .pbminfotech-post-item {
    background: var(--capnis-surface-3);
    border: 1px solid var(--capnis-border);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-testimonials .pbminfotech-box-title,
html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-testimonials .pbminfotech-testimonial-text p {
    color: var(--capnis-ink);
}

html.capnis-dark body.capnis-automation-service-detail-page .capnis-asd-testimonials .pbminfotech-testimonial-detail {
    color: var(--capnis-slate);
}

html.capnis-dark body.capnis-automation-service-detail-page .tp-section-subtitle.pre {
    border-color: var(--capnis-border) !important;
    color: var(--capnis-slate) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .tp-btn-border {
    border-color: var(--capnis-border) !important;
    color: var(--capnis-ink) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page .tp-btn-border:hover {
    background: var(--capnis-surface-3) !important;
    border-color: var(--capnis-border) !important;
    color: var(--capnis-ink) !important;
}

html.capnis-dark body.capnis-automation-service-detail-page section#automation-quote.capnis-asd-estimate-wizard {
    background: linear-gradient(180deg, var(--capnis-surface) 0%, var(--capnis-surface-2) 100%) !important;
}
