﻿/* /css/knowledgebase.css */

@theme {
    --font-sans: "Aptos", "Bierstadt", "Helvetica Neue", Arial, sans-serif;
    --color-epcorange: #F15A22;
    --color-ccgreen: #8DC63F;
    /* Light Green Scale */
    --color-lightgreen-50: #f3f8f7;
    --color-lightgreen-100: #e3efed;
    --color-lightgreen-200: #cbdcd9;
    --color-lightgreen-300: #adccc8;
    --color-lightgreen-400: #86b3ad;
    --color-lightgreen-500: #649791;
    --color-lightgreen-600: #4f7a75;
    --color-lightgreen-700: #426460;
    --color-lightgreen-800: #375250;
    --color-lightgreen-900: #304644;
    /* Dark Blue Scale */
    --color-darkblue-50: #f1f8fa;
    --color-darkblue-100: #ddeff3;
    --color-darkblue-200: #c0e1eb;
    --color-darkblue-300: #93cbdd;
    --color-darkblue-400: #5faec9;
    --color-darkblue-500: #3b93b2;
    --color-darkblue-600: #287593;
    --color-darkblue-700: #13536a;
    --color-darkblue-800: #164758;
    --color-darkblue-900: #173d4b;
    /* Primary Blue Scale */
    --color-primaryblue-50: #f0f9fc;
    --color-primaryblue-100: #def2f8;
    --color-primaryblue-200: #bce4f1;
    --color-primaryblue-300: #86cfe6;
    --color-primaryblue-400: #46b4d6;
    --color-primaryblue-500: #0083a9;
    --color-primaryblue-600: #00698b;
    --color-primaryblue-700: #025470;
    --color-primaryblue-800: #06475e;
    --color-primaryblue-900: #0a3c50;
    /* Purple Scale */
    --color-purple-50: #faf5fc;
    --color-purple-100: #f3e9f7;
    --color-purple-200: #e9d5f0;
    --color-purple-300: #d9b4e3;
    --color-purple-400: #c18cd0;
    --color-purple-500: #9554a1;
    --color-purple-600: #7d4187;
    --color-purple-700: #673470;
    --color-purple-800: #562d5d;
    --color-purple-900: #48284e;
}

@layer components {
    .topic {
        @apply border border-lightgreen-100 rounded-lg overflow-hidden;
    }

    .topicButton {
        @apply cursor-pointer w-full flex items-center justify-between px-4 py-3 bg-lightgreen-50 hover:bg-lightgreen-50 text-sm font-semibold text-primaryblue-500 transition;
    }

    .topicUL {
        @apply py-1 px-2 space-y-1 bg-white;
    }

    .articleLI {
        @apply cursor-pointer w-full text-left px-3 py-2 rounded-md text-sm font-medium text-gray-600 hover:bg-lightgreen-50 hover:text-primaryblue-500 transition;
    }

    .articleLICurrent {
        @apply cursor-pointer w-full text-left px-3 py-2 rounded-md text-sm font-medium bg-lightgreen-50 text-gray-900 transition;
    }
}

/* Standard plain CSS rules */
.platformBox {
    max-width: 414px;
}

.author-isolated-scope *,
.author-isolated-scope {
    all: revert;
}

#contentArticleBody img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Forces everything inside the div to center perfectly */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures original proportions are kept */
}


@media print {
    /* 1. Un-trap the document root from full-viewport limits */
    html, body, #root, #app, [class*="h-screen"], [class*="max-h-screen"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        position: static !important;
    }

    /* 2. Hide any persistent navigation sidebar if it exists */
    aside, .sidebar, [id*="sidebar"] {
        display: none !important;
    }

    /* 3. Ensure the main content takes up the full width of the page */
    main {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}