/* Shared layout for current-portfolio case-study pages:
   dialect-bias.html, llm-debugging.html, capstone.html.
   (The four HCI & Design Archive project pages keep their own per-page CSS
   and their original Fredoka headings as a deliberate nostalgic accent.) */

html {
    overflow-y: scroll;
}

main {
    padding-top: 60px;
    padding-bottom: 60px;
}

.content-container {
    display: flex;
    gap: 20px;
    margin-top: 0;
}

/* Sidebar */
.sidebar {
    flex: 1;
    max-width: 260px;
    padding: 20px;
}
.logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;
}
.sidebar-content {
    display: flex;
    flex-direction: column;
}
.sidebar p {
    margin: 0;
    padding: 5px 0;
}
.sidebar-section {
    margin-bottom: 16px;
}
.sidebar-section strong {
    font-family: "IBM Plex Mono", monospace;
    color: #5b5474;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Main column */
.right-column {
    flex: 3;
    padding: 20px;
}

.title-container {
    display: inline-flex;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: 42px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: #4b4566;
}

.case-study-subtitle {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13.5px;
    color: #5b5474;
    margin-bottom: 28px;
    font-weight: 500;
}

.main-content p {
    margin-bottom: 15px;
    line-height: 1.65;
    font-size: 15.5px;
    color: #1c2b33;
}

.main-content h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-top: 42px;
    margin-bottom: 14px;
    color: #4b4566;
}

.main-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}
.main-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15.5px;
    color: #1c2b33;
}

.main-content h4 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1c2b33;
}

.main-content strong {
    color: #DC8DAD;
}

.caption {
    text-align: center;
    margin-top: 5px;
    font-style: italic;
    font-size: 14px;
}

.case-study-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Stat highlight (used for quantitative results, only real reported numbers) */
.stat-highlight-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0 26px;
}
.stat-highlight {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    min-width: 160px;
}
.stat-value {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    font-size: 30px;
    color: #4b4566;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: #333;
    margin-top: 4px;
}

.links-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}
.links-list li {
    margin-bottom: 8px;
}
.links-list a {
    color: #5b5474;
    font-weight: 600;
    text-decoration: underline;
}
.links-list a:hover {
    color: #4b4566;
}

.related-projects {
    margin-top: 50px;
}
.related-projects h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
    color: #4b4566;
}

@media screen and (max-width: 768px) {
    main {
        padding: 30px 20px;
    }
    .content-container {
        flex-direction: column;
    }
    .sidebar {
        max-width: 100%;
    }
    .sidebar-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        column-gap: 20px;
    }
    .sidebar-section {
        width: calc(50% - 10px);
    }
    .logo {
        display: none;
    }
    .title-container {
        font-size: 32px;
    }
}
