/* ===================================
   CSS Variables & Root Styles
   =================================== */
:root {
    font-family: Roboto, Avenir, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;

    background-color: #edf2f8;
    color: #1a1b1e;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

html {
    overflow-y: scroll;
}

/* ===================================
   Base & Reset Styles
   =================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 600px;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.25;
}

p,
ol,
ul {
    margin: 0;
}

a {
    text-decoration: none;
    color: #0066b2;
    line-height: 1;
}

img {
    max-width: 100%;
    height: auto;
    background-size: cover;
}

/* ===================================
   Layout Styles
   =================================== */
main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 45rem;
    margin: auto auto 4rem;
    padding: 0 1.5rem;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* ===================================
   Navigation & Header Styles
   =================================== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1;
    padding: 1rem 0;
    background-color: #edf2f8;
    font-size: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.nav-bar-title-left {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: baseline;
    gap: 1em;
}

.nav-bar-title-right {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 1em;
}

.nav-bar-title {
    font-family: 'Oleo Script Swash Caps', 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 28px;
    font-weight: normal;
}

.nav-bar-link {
    font-size: 20px;
}

.nav-bar-social-link {
    line-height: 0;
}

/* ===================================
   Section Title
   =================================== */
.section-title {
    text-align: center;
}

h2.section-title {
    font-weight: 300;
}

/* ===================================
   Category Section Styles
   =================================== */
.category-section {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.category-label {
    width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.category-label h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    line-height: 1.5;
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (max-width: 600px) {
    .category-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-label {
        width: auto;
        text-align: left;
    }
}

/* ===================================
   Content Item Styles
   =================================== */
.content-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    gap: 10px;
}

.content-text {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-image {
    flex: 0 0 200px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image img {
    width: 100%;
    height: auto;
}

/* ===================================
   Typography Styles
   =================================== */
.small {
    font-size: 16px;
    line-height: 1.5;
}

.text-justify {
    text-align: justify;
}

.content-item h3 {
    margin-bottom: 0.5em;
}

.content-item p {
    margin: 0;
}

/* ===================================
   Career Path Layout (centered arrow)
   =================================== */
.career-path {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
}

.career-degree {
    width: 200px;
    text-align: right;
    flex-shrink: 0;
}

.career-arrow {
    width: 1.5em;
    text-align: center;
    flex-shrink: 0;
}

.career-position {
    flex: 1;
    text-align: left;
}

@media (max-width: 600px) {
    .career-path {
        flex-wrap: wrap;
    }

    .career-degree {
        width: auto;
        text-align: left;
    }

    .career-arrow {
        width: auto;
    }
}

/* ===================================
   Icons
   =================================== */
.arrow-right {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===================================
   Utility Classes
   =================================== */
.spacer-sm {
    height: 20px;
}

.spacer-md {
    height: 5px;
}

.subtext {
    color: #696969;
    line-height: 1;
}

.subtext-black {
    color: #000000;
    line-height: 1;
}

/* ===================================
   Toggle Switch
   =================================== */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    cursor: pointer;
    user-select: none;
}

.toggle-container input {
    width: 1em;
    height: 1em;
    cursor: pointer;
}

.toggle-label {
    font-size: 0.9em;
    color: #666;
}

/* ===================================
   Source Info (metadata under links)
   =================================== */
/* Entry header with link and info button */
.entry-header {
    display: flex;
    align-items: center;
    gap: 0.25em;
    flex-wrap: nowrap;
}


/* Title toggle button (expands details) */
.title-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: #0066b2;
}




/* Source info - hidden by default */
.source-info {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    margin-top: 0.5em;
    color: #555;
    font-size: 0.85em;
    line-height: 1.4;
}

.content-item.expanded .source-info {
    display: flex;
}

.source-details {
    flex: 1;
    text-align: justify;
}

.source-attribution {
    display: block;
    text-align: center;
    margin-bottom: 0.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-description {
    display: block;
}

.open-links {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.5em;
}

.open-link {
    flex-shrink: 0;
    padding: 0.75em 1em;
    background-color: rgba(0, 102, 178, 0.08);
    color: #0066b2;
    border: 1.5px solid #0066b2;
    border-radius: 0.3em;
    font-weight: 500;
}

.open-link:hover {
    background-color: rgba(0, 102, 178, 0.15);
}

.open-links-compact .open-link {
    padding: 0.45em 1em;
}

/* Extra spacing between expanded entries (not after last item) */
.content-item.expanded:not(:last-child) {
    margin-bottom: 0.75rem;
}

/* ===================================
   Content Type Badges
   =================================== */
.content-type {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 500;
    padding: 0.15em 0.5em;
    margin-left: 0.5em;
    background-color: #d0d7de;
    color: #555;
    border-radius: 1em;
    vertical-align: 0.15em;
    text-transform: lowercase;
}

.content-type[data-type="blog"] {
    background-color: #d4edda;
    color: #2e7d46;
}

.content-type[data-type="video"] {
    background-color: #e8d4f0;
    color: #7b3f9e;
}

.content-type[data-type="book"] {
    background-color: #ffe4c9;
    color: #c45c10;
}
