/* ============================================================================= */
/* SNT CODE LIBRARY - CUSTOM STYLES                                             */
/* ============================================================================= */

/* TABLE OF CONTENTS:
 * 1. SITE DESIGN - DESKTOP
 * 2. SITE DESIGN - MOBILE
 * 3. QUARTO DOCUMENT FEATURES
 * 4. CUSTOM COMPONENTS
 */

/* ============================================================================= */
/* 1. SITE DESIGN - DESKTOP                                                     */
/* ============================================================================= */

/* === NAVIGATION BAR === */

/* Logo styling */
.navbar-logo {
    max-height: 55px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navbar container */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 8px 16px;
    height: auto;
    overflow: visible;
}

/* Optional title styling */
.navbar-title {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.2;
    margin: 0;
}

/* Navigation link colors */
a.nav-link {
    color: #FFC225 !important;
}

a.nav-link:hover {
    color: #4682B4 !important;
}

span.navbar-title:hover {
    color: #FFC225 !important;
}

/* === SIDEBAR NAVIGATION === */

/* Language-specific sidebar menu */
a.sidebar-item-text.sidebar-link {
    color: #0F2333;
}

a.sidebar-item-text.sidebar-link:hover {
    color: #FFC225;
}

/* === TABLE OF CONTENTS (RIGHT SIDEBAR) === */

/* Top-level TOC links */
.sidebar nav[role="doc-toc"] ul li a {
    color: #628DA5 !important;
    background-color: transparent;
}

.sidebar nav[role="doc-toc"] ul li a:hover {
    color: #FFC225 !important;
    background-color: transparent;
}

.sidebar nav[role="doc-toc"] ul li a.active {
    color: #FFC225 !important;
    background-color: transparent;
    /* font-weight: bold; */
}

/* Lower-level TOC links */
.sidebar nav[role="doc-toc"] ul li > ul li a {
    color: #628DA5 !important;
    background-color: transparent;
}

.sidebar nav[role="doc-toc"] ul li > ul li a:hover {
    color: #FFC225 !important;
    background-color: transparent;
}

.sidebar nav[role="doc-toc"] ul li > ul li a.active {
    color: #FFC225 !important;
    background-color: transparent;
    /* font-weight: bold; */
}

/* === GENERAL LINK STYLING === */

/* Regular content links */
a {
    color: #4682B4 !important;
}

a:hover {
    color: #FFC225 !important;
}

/* Grid listing links */
a.quarto-grid-link:hover {
    color: #FFC225 !important;
}

/* === TYPOGRAPHY === */

/* Headers hierarchy */
.title {
    color: #0F2333 !important;
}

h1 {
    color: #0F2333 !important;  /* Deep navy blue */
}

h2 {
    color: #628DA5 !important;  /* Muted steel blue */
}

h3 {
    color: #5EAADD !important;  /* Soft sky blue */
}

h4 {
    color: #70B0CC !important;  /* Light azure */
}

h5 {
    color: #96C8E2 !important;  /* Pale cornflower blue */
}

h6 {
    color: #BEDFF0 !important;  /* Very light ice blue */
}

/* === BREADCRUMBS === */

.breadcrumbs {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 1em;
}

.breadcrumbs a {
    color: #0F2333;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================================================= */
/* 2. SITE DESIGN - MOBILE                                                      */
/* ============================================================================= */

@media (max-width: 768px) {
    /* === NAVIGATION BAR === */

    .navbar {
        justify-content: space-between;
    }

    .navbar-logo {
        max-width: 100%;
        max-height: 60px;
        height: auto;
        width: auto;
        object-fit: contain;
        display: block;
    }

    /* Search button adjustments */
    .search-button svg,
    .search-button img {
        width: 20px;
        height: 20px;
        display: block;
    }
}

/* ============================================================================= */
/* 3. QUARTO DOCUMENT FEATURES                                                  */
/* ============================================================================= */

/* === CALLOUT CARDS === */

.callout-note {
    border-left: 5px solid #5EAADD !important;
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding-left: 15px;
}

.callout-tip {
    border-left: 5px solid #628DA5 !important;
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding-left: 15px;
}

.callout-warning {
    border-left: 5px solid #FFC225 !important;
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding-left: 15px;
}

.callout-caution {
    border-left: 5px solid #fcae91 !important;
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding-left: 15px;
}

.callout-important {
    border-left: 5px solid #fcae91 !important;
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding-left: 15px;
}

/* === TABSETS === */

/* Tab navigation links */
html > body > div:nth-child(2) > main > section:nth-child(4) > div:nth-child(2) > ul li a {
    font-size: 16px;
    color: #FFC225;
}

html > body > div:nth-child(2) > main > section:nth-child(4) > div:nth-child(2) > ul li a:hover {
    color: #4682B4;
}

/* ============================================================================= */
/* 4. CUSTOM COMPONENTS                                                         */
/* ============================================================================= */

/* === TABLE STYLING === */

.tg-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1.25px solid #444;
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-size: 15px;
    table-layout: auto;
}

.tg-table colgroup col:nth-child(1),
.tg-table colgroup col:nth-child(2),
.tg-table colgroup col:nth-child(3) {
    width: auto;
}

.tg-table th {
    background-color: #efefef;
    border-bottom: 1.5px solid #444;
    font-weight: bold;
    text-align: left;
    padding: 8px 10px;
}

.tg-table td {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 6px 10px;
    text-align: left;
}

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

/* === SKILL LEVEL TAGS === */

/* Base tag styling */
.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15em 0.6em;
    margin-top: 0.2em;
    margin-bottom: 0.8em;
    margin-left: 0.4em;
    border-radius: 0.3em;
    color: white;
    line-height: 1.4;
}

/* Skill level variations */
.tag-beginner {
    background-color: #2dba4e;
    color: white;
}

.tag-intermediate {
    background-color: #FFC225;
    color: black;
}

.tag-advanced {
    background-color: #ff7a7a;
    color: white;
}

/* make the navbar container a positioning context */
header.quarto-header .navbar .container-fluid {
    position: relative;
}

/* center the two-badge block without affecting other navbar items */
#center-badges {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    pointer-events: none;
    /* let clicks pass through container */
}

#center-badges a {
    pointer-events: auto;
}

/* links remain clickable */

/* remove layout footprint of the nav item that holds #center-badges */
.navbar .nav-link:has(#center-badges) {
    padding: 0 !important;
    margin: 0 !important;
    width: 0 !important;
}
