/* === DS Nav/Footer Slot Reservations (prevent layout shift) === */
#ds-nav-slot {
    min-height: 116px; /* utility bar + main nav */
    background: #fff;
}
#ds-footer-slot {
    min-height: 400px;
    background: #2d2d2d;
}

/* === Utility Bar === */
.ds-utility-bar {
    background: #F5F5F5;
}
.ds-utility-bar a {
    font-size: 13px;
    color: #374151;
    text-decoration: none;
}
.ds-utility-bar a:hover {
    color: #304FFF;
}
.ds-utility-search-btn {
    color: #374151;
}
.ds-utility-search-btn:hover {
    color: #304FFF;
}

/* === Main Nav === */
.ds-main-nav {
    background: white;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e5e7eb;
}

/* === Nav Items === */
.ds-nav-item {
    position: relative;
}
.ds-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
}
.ds-nav-link:hover {
    color: #304FFF;
}

/* === Simple Dropdown === */
.ds-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 12px;
    min-width: 280px;
    z-index: 100;
}
.ds-nav-item:hover .ds-dropdown {
    display: block;
}
.ds-dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
}
.ds-dropdown a:hover {
    background: #f3f4f6;
    color: #304FFF;
}

/* === Services Mega Menu === */
.ds-services-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 8px;
    z-index: 100;
}
.ds-nav-item:hover .ds-services-mega {
    display: block;
}
.ds-services-inner {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 24px;
    min-width: 820px;
}
.ds-svc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.ds-svc-section h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 12px;
    padding-left: 12px;
}
.ds-svc-section a {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 2px;
}
.ds-svc-section a:hover {
    background: #f3f4f6;
}
.ds-svc-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.ds-svc-section a:hover .ds-svc-name {
    color: #304FFF;
}
.ds-svc-dur {
    font-size: 11px;
    color: #9ca3af;
    font-family: 'Roboto Mono', monospace;
}
.ds-svc-flagship {
    border-left: 2px solid #304FFF;
}
.ds-svc-flagship .ds-svc-name {
    font-weight: 600;
    color: #304FFF;
}
/* Enterprise column separator — visually distinct from 4 phases */
.ds-svc-section.ds-svc-enterprise {
    border-left: 2px solid #e5e7eb;
    margin-left: 8px;
    padding-left: 24px;
    background: #f3f4f6;
    margin-top: -12px;
    margin-bottom: -12px;
    margin-right: -12px;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
}
.ds-svc-section.ds-svc-enterprise h4 {
    color: #6b7280;
    font-size: 10px;
}

.ds-svc-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}
.ds-svc-cta a {
    background: #304FFF;
    color: white;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.ds-svc-cta a:hover {
    background: #050505;
}

/* === Healthcare Mega Menu === */
.ds-healthcare-mega {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 8px;
    z-index: 100;
}
.ds-nav-item:hover .ds-healthcare-mega {
    display: block;
}
.ds-healthcare-inner {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 24px;
    width: 700px;
}
.ds-hc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ds-hc-col .ds-hc-section + .ds-hc-section {
    margin-top: 20px;
}
.ds-hc-section h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 12px;
    padding-left: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}
.ds-hc-section a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: #374151;
    border-radius: 6px;
    text-decoration: none;
}
.ds-hc-section a:hover {
    background: #f3f4f6;
    color: #304FFF;
}
.ds-hc-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.ds-hc-cta-links {
    display: flex;
    gap: 20px;
}
.ds-hc-cta-links a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}
.ds-hc-cta-links a:hover {
    color: #304FFF;
}
.ds-hc-cta a {
    background: #304FFF;
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.ds-hc-cta a:hover {
    background: #050505;
}

/* === Contact Button === */
.ds-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #304FFF;
    color: white !important;
    padding: 12px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ds-contact-btn:hover {
    background: #050505;
}

/* === Mobile === */
.ds-mobile-btn {
    display: none;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
}
@media (max-width: 1023px) {
    .ds-desktop-nav { display: none !important; }
    .ds-mobile-btn { display: block !important; }
}
.ds-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 200;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
    -webkit-overflow-scrolling: touch;
}
.ds-mobile-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0s;
}
.ds-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}
.ds-mobile-close {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
}
.ds-mobile-accordion {
    border-bottom: 1px solid #f3f4f6;
}
.ds-mobile-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.ds-mobile-trigger svg {
    transition: transform 0.2s;
}
.ds-mobile-trigger.open svg {
    transform: rotate(180deg);
}
.ds-mobile-content {
    display: none;
    background: #f9fafb;
    padding: 8px 0 16px;
}
.ds-mobile-content.open { display: block; }
.ds-mobile-content a {
    display: block;
    padding: 14px 40px;
    min-height: 44px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
}
.ds-mobile-content h5 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 12px 40px 8px;
    margin-top: 8px;
}
.ds-mobile-link {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}
.ds-mobile-cta {
    padding: 24px;
}
.ds-mobile-cta a {
    display: block;
    background: #304FFF;
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ds-mobile-cta a:active {
    background: #050505;
}

/* Utility links at mobile menu bottom — enforce touch targets */
.ds-mobile-nav .ds-mobile-utility a,
.ds-mobile-nav .ds-mobile-utility button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Active tap feedback for mobile menu links */
.ds-mobile-content a:active,
.ds-mobile-link:active {
    background: #e5e7eb;
}
.ds-mobile-trigger:active {
    background: #f3f4f6;
}

/* ── Search Button ── */
.ds-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.ds-search-btn:hover {
    color: #304FFF;
    background: #f3f4f6;
}

/* ── Search Modal ── */
.ds-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}
.ds-search-overlay.open {
    display: flex;
}
.ds-search-dialog {
    width: 100%;
    max-width: 640px;
    margin: 0 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.ds-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.ds-search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #9ca3af;
}
.ds-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    color: #050505;
    background: transparent;
}
.ds-search-input::placeholder {
    color: #9ca3af;
}
.ds-search-kbd {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    flex-shrink: 0;
}
.ds-search-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}
.ds-search-empty {
    padding: 32px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}
.ds-search-result {
    border-radius: 10px;
    transition: background 0.1s;
}
.ds-search-result a {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}
.ds-search-result:hover,
.ds-search-result.ds-search-selected {
    background: #f3f4f6;
}
.ds-search-result-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ds-search-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.ds-search-title {
    font-size: 14px;
    font-weight: 600;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ds-search-desc {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .ds-search-overlay {
        padding-top: 0;
        align-items: stretch;
    }
    .ds-search-dialog {
        max-width: none;
        margin: 0;
        border-radius: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    .ds-search-results {
        flex: 1;
        max-height: none;
    }
}


/* ==========================================================================
   Blog Post Body Links
   In-body links inside .post-body were unstyled (inherited gray text color),
   making them invisible. Style them dsBlue with underline on hover.
   ========================================================================== */

.post-body a:not([class*="bg-"]):not([data-cta-tier]) {
    color: #304FFF;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.post-body a:not([class*="bg-"]):not([data-cta-tier]):hover {
    text-decoration-color: #304FFF;
}
