/**
 * Breadcrumb Navigation for Blog Posts
 */
.content .insights-breadcrumb {
    margin: 0;
    font-size: 45px;
    font-weight: 700;
}

.content .insights-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.content .insights-breadcrumb a:hover {
    opacity: 0.7;
}

/**
 * Lightweight Image Lightbox Styles
 * For expanding blog post images
 */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox-overlay.is-active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-caption {
    margin-top: 1rem;
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Close button - Brand styled */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00e5e3 0%, #00c9a7 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 229, 227, 0.3);
}

.lightbox-close:hover {
    background: linear-gradient(135deg, #00fff9 0%, #00e5c3 100%);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 229, 227, 0.5);
}

.lightbox-close:focus {
    outline: 3px solid #00e5e3;
    outline-offset: 3px;
}

/* Navigation buttons - Brand styled */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00e5e3;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #00e5e3;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: linear-gradient(135deg, #00e5e3 0%, #00c9a7 100%);
    color: #ffffff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 229, 227, 0.5);
}

.lightbox-prev:focus,
.lightbox-next:focus {
    outline: 3px solid #00e5e3;
    outline-offset: 3px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 0.875rem;
        max-width: 90%;
    }

    .lightbox-image {
        max-height: 85vh;
    }
}

/* Prevent scrolling when lightbox is open */
body:has(.lightbox-overlay.is-active) {
    overflow: hidden;
}

/**
 * Blog Post Content Images
 * Make images responsive and centered
 */
.insights-post-body article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
}

/**
 * Floating Images
 * Use {.float-left} or {.float-right} markdown attributes to float images
 * Example: ![Alt text](/path/to/image.jpg){.float-left}
 */
.insights-post-body article p.float-left,
.insights-post-body article .float-left {
    float: left;
    margin: 0 2rem 1.5rem 0;
    max-width: 50%;
}

.insights-post-body article p.float-right,
.insights-post-body article .float-right {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 50%;
}

.insights-post-body article p.float-left img,
.insights-post-body article p.float-right img,
.insights-post-body article .float-left img,
.insights-post-body article .float-right img {
    margin: 0;
    width: 100%;
}

/* Clear floats after paragraphs with floated images */
.insights-post-body article p.float-left::after,
.insights-post-body article p.float-right::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile: disable float on small screens */
@media (max-width: 768px) {
    .insights-post-body article p.float-left,
    .insights-post-body article p.float-right,
    .insights-post-body article .float-left,
    .insights-post-body article .float-right {
        float: none;
        margin: 1.5rem auto;
        max-width: 100%;
    }
}

/**
 * Reading Progress Bar
 * Shows below the sticky nav on blog posts
 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 9999;
    transition: width 0.2s ease-out;
    box-shadow: 0 2px 6px rgba(0, 229, 227, 0.4);
}

/* Add animated shimmer effect */
.reading-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        right: -50px;
    }
    100% {
        right: 100%;
    }
}

/* For blog posts, position below nav */
body.is-post .reading-progress-bar {
    top: 130px; /* Below both sticky navs: .nav-secondary (~35px) + .nav-primary (95px) */
}

/**
 * YouTube Video Embed Styles
 * Responsive 16:9 aspect ratio container
 * Styled to match AxisOps brand guidelines
 */
.youtube-embed-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    margin: 2.5rem 0;
    border: 3px solid #1a1a2e;
}

.youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Ensure proper spacing in blog posts */
.insights-post-body .youtube-embed-wrapper {
    margin: 2.5rem auto;
}

@media (max-width: 768px) {
    .youtube-embed-wrapper {
        margin: 1.5rem 0;
    }
}

/**
 * CodePen Embed Styles
 * Styled to match AxisOps brand guidelines
 */
.codepen-embed-wrapper {
    position: relative;
    width: 100%;
    margin: 2.5rem 0;
    overflow: hidden;
    border: 3px solid #1a1a2e;
}

.codepen-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/**
 * GitHub Gist Embed Styles
 * Styled to match AxisOps brand guidelines
 */
.gist-embed-wrapper {
    margin: 2.5rem 0;
    overflow: hidden;
    border: 3px solid #1a1a2e;
}

/**
 * Twitter/X Embed Styles
 */
.tweet-embed-wrapper {
    margin: 2rem auto;
    max-width: 550px;
    display: flex;
    justify-content: center;
}

/**
 * Alert Boxes (Info, Warning, Success, Danger)
 * Styled to match AxisOps brand guidelines
 */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid;
    font-size: 1rem;
    line-height: 1.7;
}

.alert-box i {
    font-size: 1.5rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.alert-box span {
    flex: 1;
}

/* Info - Cyan/Turquoise (brand accent color) */
.alert-info {
    background: linear-gradient(135deg, #e6fffe 0%, #ccfffe 100%);
    border-color: #00e5e3;
    color: #004d4c;
}

.alert-info i {
    color: #00e5e3;
}

/* Warning - Amber/Orange */
.alert-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #ffefcc 100%);
    border-color: #ff9800;
    color: #7f4c00;
}

.alert-warning i {
    color: #ff9800;
}

/* Success - Green with cyan tint */
.alert-success {
    background: linear-gradient(135deg, #e6fff9 0%, #ccfff0 100%);
    border-color: #00c9a7;
    color: #004d3d;
}

.alert-success i {
    color: #00c9a7;
}

/* Danger - Red/Pink */
.alert-danger {
    background: linear-gradient(135deg, #ffe6e9 0%, #ffccd3 100%);
    border-color: #ff3366;
    color: #7f0019;
}

.alert-danger i {
    color: #ff3366;
}

/**
 * Pull Quotes
 * Styled to match homepage quote style
 */
.pullquote {
    float: right;
    width: 40%;
    margin: 1rem 0 1.5rem 2rem;
    padding: 2rem 2.5rem;
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.pullquote .big-quote {
    position: absolute;
    left: 10px;
    top: 0;
    font-size: 72px;
    font-family: Manrope, serif;
    color: #333;
    opacity: 0.2;
    line-height: 1;
}

.pullquote blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.pullquote cite {
    display: block;
    margin-top: 1.25rem;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    color: #333;
}

.pullquote cite::before {
    content: '— ';
}

@media (max-width: 768px) {
    .alert-box {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .alert-box i {
        font-size: 1.1rem;
    }

    .pullquote {
        float: none;
        width: 100%;
        margin: 1.5rem 0;
    }

    .pullquote blockquote {
        font-size: 1.1rem;
    }

    .tweet-embed-wrapper {
        margin: 1.5rem 0;
    }
}

/**
 * Table of Contents
 * Styled to match homepage quote style
 */
.table-of-contents {
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
}

.toc-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.toc-nav ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.toc-nav li {
    margin: 0.5rem 0;
    padding-left: 0;
    line-height: 1.6;
    list-style: none !important;
    list-style-type: none !important;
    display: block;
}

.toc-nav li::before {
    content: none !important;
    display: none !important;
}

.toc-nav li.toc-subsection {
    margin-left: 1.75rem;
    margin-top: 0.5rem;
    font-size: 1.05rem;
    list-style: none !important;
}

.toc-nav li.toc-subsubsection {
    margin-left: 3.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    list-style: none !important;
}

.toc-nav a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.35rem 0;
}

.toc-nav a:hover {
    color: var(--primary-color);
}

.toc-nav a::before {
    content: '▸ ';
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.toc-nav a:hover::before {
    transform: translateX(4px);
}

.toc-nav li.toc-subsection a {
    color: #666;
}

.toc-nav li.toc-subsection a::before {
    content: '▸ ';
    color: var(--primary-color);
    opacity: 0.7;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Add some spacing above heading anchors for better UX */
.insights-post-body article h2[id],
.insights-post-body article h3[id] {
    scroll-margin-top: 2rem;
}

@media (max-width: 768px) {
    .table-of-contents {
        padding: 1.25rem;
    }

    .toc-title {
        font-size: 1.1rem;
    }

    .toc-nav li.toc-subsection {
        margin-left: 1rem;
        font-size: 0.95rem;
    }

    .toc-nav li.toc-subsubsection {
        margin-left: 2rem;
        font-size: 0.85rem;
    }
}

/**
 * Copy Code Button
 * Adds copy functionality to code blocks
 */
.code-block-wrapper {
    position: relative;
    margin: 2rem 0;
}

.copy-code-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #00e5e3 0%, #00c9a7 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 229, 227, 0.3);
    z-index: 10;
}

.copy-code-button:hover {
    background: linear-gradient(135deg, #00fff9 0%, #00e5c3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 227, 0.5);
}

.copy-code-button:active {
    transform: translateY(0);
}

.copy-code-button.copied {
    background: linear-gradient(135deg, #00c9a7 0%, #00e5e3 100%);
}

.copy-code-button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .copy-code-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .copy-code-button i {
        font-size: 0.9rem;
    }
}

/**
 * Download/Whitepaper CTA
 * Styled to match AxisOps brand with prominent download button
 */
.download-cta-wrapper {
    margin: 2.5rem 0;
}

.download-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    padding: 2rem 2.5rem;
}

.download-cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00e5e3 0%, #00c9a7 100%);
    box-shadow: 0 4px 12px rgba(0, 229, 227, 0.3);
}

.download-cta-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.download-cta-content {
    flex: 1;
}

.download-cta-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.download-cta-content p {
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.download-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 40px;
    border-radius: 25px;
    background-color: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
    transition: all 0.5s ease;
}

.download-cta-button:hover {
    background-color: #000;
    color: #FFF;
    text-decoration: none;
}

.download-cta-button:active {
    transform: translateY(0);
}

.download-cta-button i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .download-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .download-cta-icon {
        width: 70px;
        height: 70px;
    }

    .download-cta-icon i {
        font-size: 2rem;
    }

    .download-cta-content h3 {
        font-size: 1.25rem;
    }

    .download-cta-content p {
        font-size: 0.9rem;
    }

    .download-cta-button {
        width: 100%;
        justify-content: center;
    }
}

/**
 * Service-Specific Color Coding for Category Pills
 * Colors align with main service offerings
 */

/* AI & ML - Cyan (#00e5e3) */
body.insights .insights-pill[data-category="ai-ml"],
body.insights .insights-pill[data-category="ai"],
body.insights .insights-pill[data-category="ml"],
body.insights .insights-pill[data-category="machine-learning"],
body.insights .insights-tag.category-ai-ml,
body.insights .insights-tag.category-ai,
body.insights .insights-tag.category-ml,
body.is-post .post-category-pill[href*="ai-ml"],
body.is-post .post-category-pill[href*="category=ai"] {
    background-color: #00e5e3 !important;
    border-color: #00e5e3 !important;
    color: #000 !important;
}

/* IoT - Mint Green (#69ffcd) */
body.insights .insights-pill[data-category="iot"],
body.insights .insights-tag.category-iot,
body.is-post .post-category-pill[href*="iot"] {
    background-color: #69ffcd !important;
    border-color: #69ffcd !important;
    color: #000 !important;
}

/* Security & Compliance - Lime Green (#b3f985) */
body.insights .insights-pill[data-category="security-compliance"],
body.insights .insights-pill[data-category="security"],
body.insights .insights-pill[data-category="compliance"],
body.insights .insights-tag.category-security,
body.insights .insights-tag.category-compliance,
body.is-post .post-category-pill[href*="security"],
body.is-post .post-category-pill[href*="compliance"] {
    background-color: #b3f985 !important;
    border-color: #b3f985 !important;
    color: #000 !important;
}

/* DevOps & Infrastructure - Yellow (#f9f871) */
body.insights .insights-pill[data-category="devops-infrastructure"],
body.insights .insights-pill[data-category="devops"],
body.insights .insights-pill[data-category="infrastructure"],
body.insights .insights-tag.category-devops,
body.insights .insights-tag.category-infrastructure,
body.is-post .post-category-pill[href*="devops"],
body.is-post .post-category-pill[href*="infrastructure"] {
    background-color: #f9f871 !important;
    border-color: #f9f871 !important;
    color: #000 !important;
}

/**
 * Before/After Image Slider
 * Interactive image comparison with drag handle
 */
.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 2.5rem auto;
    overflow: hidden;
    border-radius: 8px;
    cursor: ew-resize;
    user-select: none;
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: visible;
}

.before-after-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-after-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

.before-after-after img,
.before-after-before img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Labels */
.before-after-label {
    position: absolute;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 20;
    pointer-events: none;
}

.before-after-label-before {
    top: 1rem;
    left: 1rem;
}

.before-after-label-after {
    top: 1rem;
    right: 1rem;
}

/* Slider handle - constrained to image area */
.before-after-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 0;
    padding-bottom: 66.67%; /* Match wrapper aspect ratio */
    transform: translateX(-50%);
    z-index: 5;
    cursor: ew-resize;
    pointer-events: none;
}

.before-after-handle * {
    pointer-events: auto;
}

.before-after-handle:focus {
    outline: none;
}

.before-after-handle-line {
    position: absolute;
    top: 32px;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0, 229, 227, 0.6);
}

.before-after-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #00e5e3 0%, #00c9a7 100%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: 0 4px 16px rgba(0, 229, 227, 0.5);
    transition: all 0.3s ease;
}

.before-after-handle:hover .before-after-handle-circle,
.before-after-handle:focus .before-after-handle-circle {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 24px rgba(0, 229, 227, 0.7);
}

.before-after-handle-circle i {
    color: #ffffff;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .before-after-slider {
        margin: 1.5rem 0;
    }

    .before-after-handle-circle {
        width: 40px;
        height: 40px;
    }

    .before-after-handle-circle i {
        font-size: 0.75rem;
    }

    .before-after-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .before-after-label-before {
        top: 0.75rem;
        left: 0.75rem;
    }

    .before-after-label-after {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/**
 * Markdown Tables
 * Responsive, styled tables for blog post content
 */

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
}

.content table thead {
    background-color: #00e5e3;
    color: #1a1a1a;
}

.content table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content table tbody tr {
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.content table tbody tr:last-child {
    border-bottom: none;
}

.content table tbody tr:hover {
    background-color: #f8f8f8;
}

.content table tbody td {
    padding: 0.875rem 1rem;
    color: #333333;
    vertical-align: top;
}

/* Alternating row colors */
.content table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.content table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Column alignment support */
.content table th[align="center"],
.content table td[align="center"] {
    text-align: center;
}

.content table th[align="right"],
.content table td[align="right"] {
    text-align: right;
}

/* Responsive tables - horizontal scroll on mobile */
@media (max-width: 768px) {
    .content table {
        margin: 1.5rem 0;
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content table thead th {
        padding: 0.75rem 0.75rem;
        font-size: 0.75rem;
    }

    .content table tbody td {
        padding: 0.75rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Table wrapper for better mobile handling */
.content .table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.content .table-wrapper table {
    margin: 0;
}

/* Code blocks inside tables */
.content table code {
    padding: 0.2rem 0.4rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    font-size: 0.875em;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* Links inside tables */
.content table a {
    color: #00e5e3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content table a:hover {
    color: #00c9a7;
    text-decoration: underline;
}

/* Two-column layout for simple lists */
.content table.two-column {
    width: auto;
    max-width: 600px;
}

.content table.two-column thead th:first-child {
    width: 40%;
}

.content table.two-column thead th:last-child {
    width: 60%;
}

@media (max-width: 768px) {
    .content table.two-column {
        width: 100%;
        max-width: 100%;
    }
}
