
@font-face {
    font-family: 'Athachantr';
    src: url('/fonts/AthachantrTrial-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Filena-Thin';
    src: url('/fonts/Filena-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'filena-bold';
    src: url('../fonts/filena-bold.ttf') format('truetype');
}

@font-face {
    font-family: 'athiti-bold';
    src: url('../fonts/athiti-bold.ttf') format('truetype');
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/*nav*/
.main-nav {
    font-family: 'Athiti', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

    .main-nav ul {
        list-style: none;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin: 0;
        padding: 0;
    }

    .main-nav li {
        display: inline-flex;
        align-items: center;
    }

    .main-nav a {
        text-decoration: none;
        color: teal;
        font-weight: 400;
        letter-spacing: 1px;
        transition: transform 0.2s ease, color 0.2s ease;
        font-variation-settings: "wght" 400;
        padding-bottom: 2px; /* Reserve space for border */
    }

        .main-nav a:hover {
            color: #008080;
        }

        .main-nav a.active {
            transform: scale(1.05); /* Slight emphasis without layout shift */
            border-bottom: 2px solid teal;
            font-variation-settings: "wght" 800;
        }
    .main-nav.open ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

.nav-logo img {
    height: 100px;
    width: auto;
}

/* Hamburger layout overrides */
.main-header {
    background-color: #156669;
    padding: 1rem;
    position: relative;
    z-index: 1000;
}

/* Logo layout fix */
    .nav-logo a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-logo img {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    #navbarSupportedContent {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

/*tree*/
/* green highlight when node has linked table rows */
.jstree-container-ul .jstree-anchor.has-link {
    background-color: teal !important;
    color: #fff !important;
    border-radius: 4px;
}
/*end tree*/

/*list*/
.card .card-body a.nav-link {
    color: var(--teal);
    font-family: 'Filena-Bold', sans-serif;
    font-weight: 800;
    font-size: 20px;
    text-decoration: underline;
}

    .card .card-body a.nav-link:hover {
        color: yellowgreen;
    }
/*end list*/
/*toast*/
.copilot-toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 13px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
    max-width: 320px;
}

    .copilot-toast-item.show {
        opacity: 1;
        transform: translateY(0);
    }

.copilot-toast-close {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}