/* General Settings  */

/* basic colors https://colorpalettes.net/color-palette-3702/ */

.bg-orange { background-color: #fa990e; }
.bg-skyblue { background-color: #a4dbe4; }
.bg-yellow { background-color: #fecc47; }
.bg-green { background-color: #5b8d27; }
.bg-darkgreen { background-color: #114b0b; }
.torange { color: #fa990e; }
.tblue { color: #a4dbe4; }
.tyellow { color: #fecc47; }
.tgreen { color: #5b8d27; }
.tdarkgreen { color: #114b0b; }


/* ---- Typography & Spacing ---- */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: #333;
}

h1 {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
}


/* ---- Content area ---- */

main {
    min-height: calc(100vh - 200px);
}

main .container-xl {
    max-width: 960px;
}


/* ---- Homepage layout (wider for sidebar) ---- */

main .container-xl.home-layout {
    max-width: 1200px;
}

.sidebar-recent {
    position: sticky;
    top: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
    border: 1px solid #e9ecef;
}

.sidebar-item a {
    font-weight: 500;
    text-decoration: none;
}

.sidebar-item a:hover {
    text-decoration: underline;
}


/* ---- Tables ---- */

table {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

thead th {
    background-color: #f1f3f5;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
}

tbody td {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

tbody tr:hover {
    background-color: #f8f9fa;
}


/* ---- Code blocks ---- */

pre {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

code {
    font-size: 0.875rem;
}

/* Inline code */
p code, li code, td code {
    background-color: #f0f2f4;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}


/* ---- Lists ---- */

ul, ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.4rem;
}

li > ul, li > ol {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}


/* ---- Horizontal rules ---- */

hr {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    border: none;
    border-top: 1px solid #dee2e6;
}


/* ---- Navbar ---- */

.navbar {
    border-radius: 0 0 8px 8px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-link {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}


/* ---- Footer ---- */

footer {
    font-size: 0.9rem;
}

footer a:hover {
    text-decoration: underline !important;
}


/* ---- Blockquotes ---- */

blockquote {
    border-left: 4px solid #0d6efd;
    padding: 0.8rem 1.2rem;
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}


/* ---- Images ---- */

main img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}


/* ---- Strong/Bold in headings ---- */

strong {
    font-weight: 600;
}
