/* ========================================
   Tech Docs specific styles
   Note: Background styling is centralized in styles.css
   ======================================== */

/* Tech docs specific styles */
.tech-docs-page {
    position: relative;
    z-index: 1;
    padding: 2em;
    max-width: none !important;
    width: 100%;
    margin: 0;
    min-height: calc(100vh - 200px);
    background: transparent !important;
}

.dropdown-content a,
.dark-mode .dropdown-content a {
    color: white !important;
}

.tech-docs-page > * {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.tech-docs-page h1 {
    font-size: 2em;
    margin-top: 1.5em;
    margin-bottom: 1em;
    text-align: left;
}

.tech-docs-page p {
    margin-bottom: 1em;
    line-height: 1.6;
    text-align: left;
}

.tech-docs-page a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tech-docs-page a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.tech-docs-page a:focus {
    outline: 2px solid rgba(93, 143, 179, 0.5);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.tech-docs-page a:focus:not(:focus-visible) {
    outline: none;
}

/* Extend hover area below menu links so dropdown stays open while mouse moves down */
.menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
}

pre, code {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-x: auto;
}

/* Image width control */
.half-width {
    width: 50%;
    display: block;
    margin: 2em auto;
}

@media (max-width: 768px) {
    .tech-docs-page {
        padding: 1em;
    }

    .tech-docs-page h1 {
        font-size: 1.5em;
    }

    .half-width {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tech-docs-page {
        padding: 0.5em;
    }

    .tech-docs-page h1 {
        font-size: 1.3em;
        margin-top: 1em;
    }

    .half-width {
        width: 100%;
        margin: 1em auto;
    }
}