/*
Theme Name: Nerve
Theme URI: https://nerve.io
Author: Michael Cyger
Author URI: https://nerve.io
Description: The technology backbone for domain management that powers your tools, apps, agents & workflows.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nerve
*/

/* Responsive table styles for mobile devices */
@media (max-width: 768px) {
    /* Ensure table container allows horizontal scrolling */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: #cbd5e0 #f7fafc; /* Firefox scrollbar colors */
        position: relative; /* For scroll indicators */
    }
    
    /* Custom scrollbar for webkit browsers */
    .overflow-x-auto::-webkit-scrollbar {
        height: 6px;
    }
    
    .overflow-x-auto::-webkit-scrollbar-track {
        background: #f7fafc;
        border-radius: 3px;
    }
    
    .overflow-x-auto::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 3px;
    }
    
    .overflow-x-auto::-webkit-scrollbar-thumb:hover {
        background: #a0aec0;
    }
    
    /* Ensure table maintains minimum width for readability */
    #registrarsTable {
        min-width: 600px; /* Minimum width to prevent squishing */
    }
    
    /* Add visual indicator for scrollable content */
    .overflow-x-auto::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
        pointer-events: none;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Show scroll indicator when not at the end */
    .overflow-x-auto:not(.scroll-at-end)::after {
        opacity: 1;
    }
    
    /* Add left scroll indicator */
    .overflow-x-auto::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.8));
        pointer-events: none;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Show left scroll indicator when not at the start */
    .overflow-x-auto:not(.scroll-at-start)::before {
        opacity: 1;
    }
    
    /* Hide scroll indicators when scrolling */
    .overflow-x-auto.scrolling::before,
    .overflow-x-auto.scrolling::after {
        opacity: 0;
    }
    
    /* Ensure table cells don't wrap unnecessarily */
    #registrarsTable th,
    #registrarsTable td {
        white-space: nowrap;
        min-width: 120px; /* Minimum column width */
    }
    
    /* Registrar column can be slightly narrower */
    #registrarsTable th:first-child,
    #registrarsTable td:first-child {
        min-width: 140px;
    }
    
    /* Actions column should be compact */
    #registrarsTable th:last-child,
    #registrarsTable td:last-child {
        min-width: 80px;
    }
    
    /* Improve touch targets for mobile */
    .registrar-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Ensure dropdown menus are properly positioned on mobile */
    .registrar-menu {
        min-width: 200px;
        max-width: 280px;
    }
    
    /* Add subtle animation for better mobile UX */
    .overflow-x-auto {
        transition: scroll-behavior 0.3s ease;
    }
    
    /* Improve table row touch targets */
    #registrarsTable tr {
        min-height: 60px;
    }
    
    /* Add visual feedback for touch interactions */
    #registrarsTable tr:active {
        background-color: #f3f4f6;
    }
}

/* Mobile-only line break utility for content following an em-dash (or any manual break)
   Usage: insert <br class="docs-mobile-break"> where the break should occur.
   Hidden on >= 641px so desktop/tablet remains single-line. */
@media (min-width: 641px) {
    .docs-mobile-break { display: none !important; }
}

/* API Documentation Styles - Based on ScrapeCreators layout with Nerve.io branding */

/* Main Layout - Force three-column layout - Full width */
.docs-container {
    display: flex !important;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 120px); /* Adjusted for main header/footer */
    background: white;
    flex-direction: row !important;
    width: 100% !important;
    margin-top: 64px; /* Account for fixed public header */
}

/* Desktop Sidebar Navigation - Force display */
.docs-sidebar {
    width: 280px !important;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 24px 0;
    position: sticky;
    top: 64px; /* Adjusted for public header height */
    height: calc(100vh - 64px); /* Adjusted for public header height */
    overflow-y: auto;
    flex-shrink: 0;
    display: block !important;
    min-width: 280px;
    max-width: 280px;
}
.docs-nav .nav-link {
    display: flex;
    align-items: center;
}

.docs-nav {
    padding: 0 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    margin: 2px 0;
}

.nav-link:hover {
    background: #e5e7eb;
    color: #374151;
}

.nav-link.active {
    background: #14146B;
    color: white;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px; /* slightly less padding */
    border-radius: 5px; /* squarer corners to avoid pill look */
    font-size: 13px; /* slightly larger */
    font-weight: 400; /* thinner weight */
    letter-spacing: 0; /* reduce tracking */
    text-transform: uppercase;
    line-height: 1;
    min-width: 0; /* hug text width */
}

/* Desktop + Mobile nav coloring to match mobile design */
.docs-nav .method-badge,
.mobile-nav .method-badge {
    background: #d1fae5; /* green-100 */
    color: #065f46;      /* green-800 */
    margin-right: 16px; /* add more breathing room before label */
}

/* POST badge color - handled with classes below */

.method-badge-large {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Specific method overrides for POST (desktop + mobile) */
.docs-nav .method-post,
.mobile-nav .method-post {
    background: #ffedd5; /* orange-100 */
    color: #9a3412;      /* orange-800 */
    padding: 6px 10px;   /* slightly less left/right padding for POST */
}

/* Main Content Area - Full width */
.docs-content {
    flex: 1;
    padding: 32px 40px;
    max-width: none;
    background: white;
    min-width: 0; /* Allow content to shrink */
}

.docs-header {
    margin-bottom: 32px;
}

/* Mobile Menu */
#mobile-menu-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 50;
    background: #14146B;
    color: white;
    padding: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

#mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

#mobile-menu.show {
    display: block;
}

/* Mobile navigation styles will be populated by JavaScript */

/* Endpoint Information */
.endpoint-info {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

/* AI Assistant Integration */
.ai-assistant {
    background: linear-gradient(135deg, #14146B 0%, #1a1a7a 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

/* Section Blocks */
.section-block {
    margin-bottom: 32px;
}

.section-block h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

/* Code Panel - Force display */
.docs-code-panel {
    width: 400px !important;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    padding: 24px;
    position: sticky;
    top: 64px; /* Adjusted for public header height */
    height: calc(100vh - 64px); /* Adjusted for public header height */
    overflow-y: auto;
    flex-shrink: 0;
    display: block !important;
    min-width: 400px;
    max-width: 400px;
}

/* Code Tabs */
.code-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.code-tab {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-tab.active {
    background: #14146B;
    color: white;
}

.code-tab:hover:not(.active) {
    background: #e5e7eb;
    color: #374151;
}

/* Code Sample */
.code-sample {
    background: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-content {
    display: block;
}

.code-content.hidden {
    display: none;
}

.code-sample pre {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.code-sample code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Response Tabs */
.response-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.response-tab {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.response-tab.active {
    background: #14146B;
    color: white;
}

.response-tab:hover:not(.active) {
    background: #e5e7eb;
    color: #374151;
}

/* Response Example */
.response-example {
    background: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.response-content {
    display: block;
    max-height: 350px;
    overflow-y: auto;
}

.response-content.hidden {
    display: none;
}

.response-example pre {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.response-example code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Buttons */
.copy-path-btn,
.copy-ai-prompt,
.try-it-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.copy-path-btn {
    background: #f3f4f6;
    color: #374151;
}

.copy-path-btn:hover {
    background: #e5e7eb;
}

.copy-ai-prompt {
    background: white;
    color: #14146B;
}

.copy-ai-prompt:hover {
    background: #f9fafb;
}

.try-it-btn {
    background: #14146B;
    color: white;
}

.try-it-btn:hover {
    background: #1a1a7a;
}

/* Utility Buttons */
.expand-btn,
.settings-btn,
.copy-response-btn,
.expand-response-btn {
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expand-btn:hover,
.settings-btn:hover,
.copy-response-btn:hover,
.expand-response-btn:hover {
    background: #e5e7eb;
}

/* Prose Content */
.prose {
    color: #374151;
    line-height: 1.7;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #111827;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose p {
    margin-bottom: 1.5em;
}

.prose code {
    background: #f3f4f6;
    color: #14146B;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}

.prose pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ------------------------------------------------------
   Marketing Pages: Terms/Privacy typography refinements
   Target the generic page template wrapper `.page-content`
   so normal blog/docs prose remains unaffected.
   ------------------------------------------------------ */

/* Unordered and ordered lists */
.page-content ul,
.page-content ol {
    margin: 0 0 1.25rem 0; /* bottom spacing only */
    padding-left: 1.25rem; /* restore indent removed by Tailwind preflight */
}

.page-content li {
    margin: 0.4rem 0; /* comfortable vertical rhythm */
}

/* Brand-colored markers where supported */
.page-content ul li::marker,
.page-content ol li::marker {
    color: #14146B; /* primary */
    font-weight: 600;
}

/* Explicit list styles so bullets/numbers render */
.page-content ul { list-style: disc outside; }
.page-content ol { list-style: decimal outside; }

/* Ensure alpha ordered lists render consistently */
.page-content ol[type="a"] {
    list-style-type: lower-alpha;
}

/* Nested lists: slightly reduce margins for tighter grouping */
.page-content li ul,
.page-content li ol {
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
}

/* Tables */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
}

.page-content thead th {
    background: #f9fafb; /* gray-50 */
    color: #111827;      /* gray-900 */
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #14146B; /* brand accent rule */
    font-weight: 700;
}

.page-content tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    vertical-align: top;
}

.page-content tbody tr:hover {
    background: #f9fafb; /* subtle hover to aid scanability */
}

.page-content tbody tr:nth-child(even) {
    background: #fcfcfd; /* very light stripe */
}

.page-content table caption {
    caption-side: top;
    margin-bottom: 0.5rem;
    color: #6b7280; /* gray-500 */
    font-size: 0.875rem;
}

/* Responsive tables: allow horizontal scroll on small screens */
@media (max-width: 768px) {
    .page-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border: 1px solid #e5e7eb; /* visible boundary when scrolled */
    }
    .page-content thead th,
    .page-content tbody td {
        padding: 0.65rem 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
    }
    
    .docs-sidebar {
        display: none !important;
    }
    
    .docs-content {
        max-width: none;
        padding: 24px 20px;
    }
    
    .docs-code-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        position: static;
        height: auto;
    }
}

@media (min-width: 1025px) {
    .docs-sidebar {
        display: block !important;
    }
    
    .docs-code-panel {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 20px 16px;
    }
    
    .docs-code-panel {
        padding: 20px 16px;
    }
    
    .endpoint-info {
        padding: 20px;
    }
    
    .ai-assistant {
        padding: 20px;
    }
    
    .code-tabs,
    .response-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .code-tab,
    .response-tab {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* LAK Selector Styles */
.lak-selector {
    transition: all 0.3s ease;
}

.lak-selector:hover {
    border-color: #3b82f6;
}

#lak-selector {
    transition: border-color 0.2s ease;
}

#lak-selector:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#refresh-laks {
    transition: all 0.2s ease;
}

#refresh-laks:hover {
    transform: scale(1.05);
}

#refresh-laks:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.code-content.updated {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% { background-color: rgba(59, 130, 246, 0.1); }
    100% { background-color: transparent; }
}

#lak-info {
    transition: opacity 0.3s ease;
}

#lak-info.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ------------------------------------------------------
   Single Post Template Prose Typography Styles
   ------------------------------------------------------ */

.backdrop-blur-md { backdrop-filter: blur(12px); }
html { scroll-behavior: smooth; }

/* Single post template specific prose styles - more specific to avoid conflicts */
.single-post .prose {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

/* Force content container to respect padding */
.single-post .prose > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Override any global margin resets for single post content */
.single-post .prose p,
.single-post .prose div,
.single-post .prose section,
.single-post .prose article {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Override any Tailwind prose width constraints */
.single-post .prose.prose-lg,
.single-post .prose.lg\:prose-xl {
    max-width: none !important;
    width: 100% !important;
}

/* Comprehensive Tailwind prose overrides */
.single-post-content.prose,
.single-post-content.prose-lg,
.single-post-content.lg\:prose-xl {
    max-width: 64rem !important;
    width: 100% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Override any Tailwind prose utilities that might be applied to content */
.single-post-content .prose,
.single-post-content .prose-lg,
.single-post-content .lg\:prose-xl {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure any prose classes inside content don't override our spacing */
.single-post-content *[class*="prose"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Override any Tailwind prose max-width utilities */
.prose.max-w-4xl {
    max-width: 64rem !important;
}

/* Nuclear option: Override ALL prose-related classes */
.single-post-content [class*="prose"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure the content wrapper itself is never overridden */
.single-post-content {
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure content doesn't extend edge-to-edge */
.single-post .prose > *:first-child {
    margin-top: 0;
}

.single-post .prose > *:last-child {
    margin-bottom: 0;
}

/* Add proper spacing for embedded content like videos */
.single-post .prose iframe,
.single-post .prose video,
.single-post .prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Ensure the content container itself has proper spacing */
.single-post .prose > div,
.single-post .prose > section,
.single-post .prose > article {
    padding-left: 0;
    padding-right: 0;
}

/* Override any WordPress content width constraints */
.single-post .prose .wp-block-image,
.single-post .prose .wp-block-video,
.single-post .prose .wp-block-embed {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure WordPress blocks don't override our spacing */
.single-post .prose .wp-block-group,
.single-post .prose .prose .wp-block-columns,
.single-post .prose .wp-block-column {
    max-width: none !important;
    width: 100% !important;
}

/* Target the new content wrapper specifically */
.single-post-content .wp-block-group,
.single-post-content .wp-block-columns,
.single-post-content .wp-block-column,
.single-post-content .wp-block-image,
.single-post-content .wp-block-video,
.single-post-content .wp-block-embed {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Handle any WordPress content width classes */
.single-post .prose .wp-content,
.single-post .prose .entry-content {
    max-width: none !important;
    width: 100% !important;
}

/* Force the main content wrapper to have proper spacing */
.single-post .prose {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Target the specific content wrapper class */
.single-post-content {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 64rem !important; /* 1024px */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Header content wrapper - match the main content width behavior */
.single-post-header {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 64rem !important; /* 1024px */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure header content respects the container boundaries */
.single-post-header > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Override any Tailwind prose utilities that might be applied to header content */
.single-post-header .prose,
.single-post-header .prose-lg,
.single-post-header .lg\:prose-xl {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure content inside respects the container */
.single-post-content > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Content container styling - no more debug borders */
.single-post-content {
    background: white;
    border-radius: 0.5rem;
}

/* Ensure the prose class doesn't override our spacing */
.single-post-content.prose {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Force all content inside to respect container boundaries */
.single-post-content p,
.single-post-content div,
.single-post-content section,
.single-post-content article,
.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6,
.single-post-content ul,
.single-post-content ol,
.single-post-content li,
.single-post-content blockquote,
.single-post-content pre,
.single-post-content code {
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Typography styles for single post content */
.single-post-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.75;
    color: #374151;
}

.single-post-content p {
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

.single-post-content h1 {
    color: #111827;
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.single-post-content h2 {
    color: #111827;
    font-weight: 600;
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.single-post-content h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post-content h4 {
    color: #111827;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.5rem 0 !important;
    padding-left: 3.5rem !important;
}

/* Force list indentation with more specific selectors */
.single-post-content ol,
.single-post-content ul,
.single-post-content ol li,
.single-post-content ul li {
    padding-left: 1.25rem !important;
    margin-left: 0 !important;
}

/* Override any WordPress default list styling */
.single-post-content ol,
.single-post-content ul {
    list-style-position: outside !important;
    padding-left: 1.5rem !important;
}

.single-post-content li {
    margin-bottom: 0.75rem !important;
    line-height: 1.6 !important;
    font-size: 1.125rem !important;
    font-weight: 400 !important;
    color: #4b5563 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.single-post-content ul {
    list-style: disc;
}

.single-post-content ol {
    list-style: decimal;
    counter-reset: list-counter;
}

.single-post-content ol > li {
    counter-increment: list-counter;
    position: relative;
}

.single-post-content ol > li::marker {
    font-weight: 400;
    font-size: 1.125rem;
    color: #4b5563;
}

/* Position numbers exactly 20px from left edge */
.single-post-content ol {
    padding-left: 1.25rem !important;
}

.single-post-content ol li {
    padding-left: 0.5rem !important;
    text-indent: -0.5rem !important;
}

/* Ensure unordered list text aligns the same way */
.single-post-content ul li {
    padding-left: 0.5rem !important;
}

.single-post-content blockquote {
    border-left: 4px solid #14146B;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    font-size: 1.125rem;
}

.single-post-content code {
    background-color: #f3f4f6;
    color: #14146B;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", monospace;
}

.single-post-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", monospace;
}

.single-post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Embedded content styling */
.single-post-content img,
.single-post-content iframe,
.single-post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.single-post-content .wp-block-image img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* WordPress block styling */
.single-post-content .wp-block-image figcaption {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    font-style: italic;
}

.single-post-content .wp-block-video figcaption {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Handle WordPress blocks specifically */
.single-post-content .wp-block-image,
.single-post-content .wp-block-video,
.single-post-content .wp-block-embed,
.single-post-content .wp-block-group,
.single-post-content .wp-block-columns,
.single-post-content .wp-block-column {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure all direct children respect the container */
.single-post .prose > *:not(:first-child):not(:last-child) {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Add specific spacing for common content elements */
.single-post .prose > p:first-of-type {
    margin-top: 0 !important;
}

.single-post .prose > p:last-of-type {
    margin-bottom: 0 !important;
}

.single-post .prose h1 {
    color: #111827;
    font-weight: 700;
    font-size: 2.25rem; /* text-4xl */
    line-height: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .prose h2 {
    color: #111827;
    font-weight: 600;
    font-size: 1.875rem; /* text-3xl */
    line-height: 2.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.5rem; /* text-2xl */
    line-height: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.single-post .prose p {
    color: #4b5563; /* gray-600 */
    line-height: 1.75;
    margin-bottom: 1rem;
}

.single-post .prose ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.single-post .prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: decimal;
}

.single-post .prose ol ol { list-style: lower-alpha; }
.single-post .prose ul ul { list-style: circle; }

.single-post .prose li {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.single-post .prose code {
    background-color: #f3f4f6; /* gray-100 */
    color: #14146B;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.single-post .prose blockquote {
    border-left: 4px solid #14146B;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280; /* gray-500 */
}

/* Copy Button Styles - Single Post Template */
.single-post .copy-code-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 4px;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.2s ease;
    opacity: 1;
    z-index: 10;
    border: none;
    box-shadow: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-post .copy-code-btn:hover {
    background-color: #374151;
    transform: scale(1.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.single-post .copy-code-btn:active {
    transform: scale(0.95);
}

/* Ensure code blocks have relative positioning - Single Post Template */
.single-post .code-block,
.single-post pre {
    position: relative;
}

/* Documentation page link styles - Single Post Template - matching marketing site */
.single-post .faq-content a,
.single-post .prose a,
.single-post .text-gray-600 a,
.single-post .text-gray-500 a {
    color: #14146B !important;
    text-decoration: underline !important;
    text-decoration-color: #14146B !important;
    text-underline-offset: 2px !important;
    transition: all 0.3s ease !important;
}

.single-post .faq-content a:hover,
.single-post .prose a:hover,
.single-post .text-gray-600 a:hover,
.single-post .text-gray-500 a:hover {
    color: #1a1a7a !important;
    text-decoration-color: #1a1a7a !important;
    text-decoration-thickness: 2px !important;
    transform: translateY(-1px) !important;
}

/* Ensure links in dark backgrounds are visible - Single Post Template */
.single-post .bg-primary .faq-content a,
.single-post .bg-primary .prose a,
.single-post .text-white .faq-content a,
.single-post .text-white .prose a,
.single-post .text-blue-100 .faq-content a,
.single-post .text-blue-100 .prose a,
.single-post .text-blue-200 .faq-content a,
.single-post .text-blue-200 .prose a {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

.single-post .bg-primary .faq-content a:hover,
.single-post .bg-primary .prose a:hover,
.single-post .text-white .faq-content a:hover,
.single-post .text-white .prose a:hover,
.single-post .text-blue-100 .faq-content a:hover,
.single-post .text-blue-100 .prose a:hover,
.single-post .text-blue-200 .faq-content a:hover,
.single-post .text-blue-200 .prose a:hover {
    color: #e5e7eb !important;
    text-decoration-color: #e5e7eb !important;
}

/* ------------------------------------------------------
   Page Template Typography Styles
   ------------------------------------------------------ */

.page-template .backdrop-blur-md { backdrop-filter: blur(12px); }
.page-template html { scroll-behavior: smooth; }

/* Keep page content neutral to avoid overriding plugin styles */
.page-template .page-content p { color: #4b5563; line-height: 1.75; }
.page-template .page-content h2 { color: #111827; font-weight: 700; font-size: 1.875rem; margin: 1.5rem 0 1rem; }
.page-template .page-content h3 { color: #111827; font-weight: 600; font-size: 1.25rem; margin: 1.25rem 0 0.75rem; }
.page-template .page-content a { color: #14146B; text-decoration: underline; text-underline-offset: 2px; }
.page-template .page-content a:hover { color: #1a1a7a; }

/* Align Forminator forms flush with content container */
.page-template .page-content form.forminator-ui,
.page-template .page-content .forminator-ui { width: 100%; padding-left: 0 !important; padding-right: 0 !important; }
.page-template .page-content .forminator-ui .forminator-row { margin-left: 0 !important; margin-right: 0 !important; }
.page-template .page-content .forminator-ui .forminator-col,
.page-template .page-content .forminator-ui [class*="forminator-col-"] { padding-left: 0 !important; padding-right: 0 !important; }
.page-template .page-content .forminator-ui .forminator-field,
.page-template .page-content .forminator-ui .forminator-response-message { margin-left: 0 !important; margin-right: 0 !important; }

/* Add ~10px gap between two-column fields without disturbing outer alignment */
@media (min-width: 768px) {
    .page-template .page-content .forminator-ui .forminator-row[data-multiple="true"] .forminator-col-md-6:first-child { padding-right: 10px !important; }
    .page-template .page-content .forminator-ui .forminator-row[data-multiple="true"] .forminator-col-md-6:last-child  { padding-left: 10px !important; }
}

/* Brand button style for Forminator submit – matches primary button in brand-guidelines */
.page-template .page-content .forminator-button.forminator-button-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #14146B !important; /* primary */
    color: #ffffff !important;
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600; /* font-medium */
    border: none;
    box-shadow: none;
    transition: background-color 0.2s ease-in-out, transform 0.05s ease-in-out;
}
.page-template .page-content .forminator-button.forminator-button-submit:hover {
    background-color: #1a1a7a !important; /* primary-dark */
}
.page-template .page-content .forminator-button.forminator-button-submit:active {
    transform: translateY(1px);
}

/* ------------------------------------------------------
   Blog Template Typography Styles
   ------------------------------------------------------ */

.blog-template .backdrop-blur-md { backdrop-filter: blur(12px); }
.blog-template html { scroll-behavior: smooth; }

.blog-template .prose {
    max-width: none;
}
.blog-template .prose h1 {
    color: #111827;
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 1rem;
}
.blog-template .prose h2 {
    color: #111827;
    font-weight: 600;
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.blog-template .prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.blog-template .prose p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.blog-template .prose ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}
.blog-template .prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: decimal;
}
.blog-template .prose ol ol { list-style: lower-alpha; }
.blog-template .prose ul ul { list-style: circle; }
.blog-template .prose li {
    color: #4b5563;
    margin-bottom: 0.5rem;
}
.blog-template .prose code {
    background-color: #f3f4f6;
    color: #14146B;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.blog-template .prose blockquote {
    border-left: 4px solid #14146B;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

/* ------------------------------------------------------
   Security Template Typography Styles
   ------------------------------------------------------ */

.security-template .backdrop-blur-md { backdrop-filter: blur(12px); }
.security-template html { scroll-behavior: smooth; }

/* Typography improvements */
.security-template .prose h2 {
    color: #111827;
    font-weight: 600;
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
.security-template .prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.security-template .prose p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Bullet icons */
.security-template .icon-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.6;
}
.security-template .icon-list li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #14146B;
    border-radius: 50%;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M5 13l4 4L19 7"/></svg>') center/contain no-repeat;
            mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M5 13l4 4L19 7"/></svg>') center/contain no-repeat;
}

/* ------------------------------------------------------
   About Template Typography Styles
   ------------------------------------------------------ */

.about-template .backdrop-blur-md { backdrop-filter: blur(12px); }
.about-template html { scroll-behavior: smooth; }

/* ------------------------------------------------------
   Front Page Template Typography Styles
   ------------------------------------------------------ */

.front-page-template .backdrop-blur-md { backdrop-filter: blur(12px); }
.front-page-template html { scroll-behavior: smooth; }
.front-page-template .sr-only { position: absolute; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* Brand gradient card for use-cases visual panel */
.front-page-template .getting-started-hero {
    background: linear-gradient(135deg, #0F0F5A 0%, #14146B 25%, #1A1A7A 50%, #2E2E8A 75%, #4A4AA0 100%);
    box-shadow: 0 10px 25px -5px rgba(20, 20, 107, 0.30);
}

/* FAQ specific styles */
.front-page-template .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease-in-out;
}

.front-page-template .faq-content.expanded {
    max-height: 1000px; /* Increased to handle longer content */
}

/* Marketing page link styles - only for content areas */
.front-page-template .faq-content a,
.front-page-template .prose a,
.front-page-template .text-gray-600 a,
.front-page-template .text-gray-500 a {
    color: #14146B !important;
    text-decoration: underline !important;
    text-decoration-color: #14146B !important;
    text-underline-offset: 2px !important;
    transition: all 0.3s ease !important;
}

.front-page-template .faq-content a:hover,
.front-page-template .prose a:hover,
.front-page-template .text-gray-600 a:hover,
.front-page-template .text-gray-500 a:hover {
    color: #1a1a7a !important;
    text-decoration-color: #1a1a7a !important;
    text-decoration-thickness: 2px !important;
    transform: translateY(-1px) !important;
}

/* Ensure links in dark backgrounds are visible */
.front-page-template .bg-primary .faq-content a,
.front-page-template .bg-primary .prose a,
.front-page-template .text-white .faq-content a,
.front-page-template .text-white .prose a,
.front-page-template .text-blue-100 .faq-content a,
.front-page-template .text-blue-100 .prose a,
.front-page-template .text-blue-200 .faq-content a,
.front-page-template .text-blue-200 .prose a {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

.front-page-template .bg-primary .faq-content a:hover,
.front-page-template .bg-primary .prose a:hover,
.front-page-template .text-white .faq-content a:hover,
.front-page-template .text-white .prose a:hover,
.front-page-template .text-blue-100 .faq-content a:hover,
.front-page-template .text-blue-100 .prose a:hover,
.front-page-template .text-blue-200 .faq-content a:hover,
.front-page-template .text-blue-200 .prose a:hover {
    color: #e5e7eb !important;
    text-decoration-color: #e5e7eb !important;
} 