/*
    styles.css – Mobile-first layout and components.
    Base styles target small/mobile screens; min-width media queries enhance for larger viewports.
*/
/* UTILITIES */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

#tag {
    position: fixed;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background-color: #CC0000;
    z-index: 99999;
}

:root {
    --blue-gray: #1F3E50;
    --teal-gray: #77ACA2;
    --light-teal-gray: #a6c9c4;
    --dark-teal-gray: #1B7967;
    --maroon: #821B3F;
    --light-maroon: #f5ccda;
    --peach: #CE796B;
    --yellow: #F0CF65;
    --black: #0B171D;
    --white: #F0F6F9;
    --light-gray: #d6e4e9;
    --dark-gray: #304C55;
}

/* Bootstrap Navbar Customization */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 
    GENERAL
*/
body {
    margin: 0;
    background-color: var(--white);
    line-height: 1.5;
    padding-top: 105px; /* Account for fixed navbar */
}

/* About page: match body to main so no white strip shows below navbar */
/* About page: match body to main so no white strip below navbar */
body#about {
    background-color: var(--light-gray);
}

#navbar-container {
    min-height: 0;
}

/* 
    TYPOGRAPHY
*/
p,
a,
li,
td,
figcaption {
    font-family: "Roboto", sans-serif;
    color: var(--black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Slab", serif;
    color: var(--black);
}

h1 {
    font-size: 40px;
    font-weight: 700;
    padding: 0.25em 0 0.5em;
    color: var(--blue-gray);
    margin-bottom: 0;
    padding-bottom: 0.2em;
}

#about h1 {
    padding-bottom: 0.5em;
}

h2 {
    font-size: 30px;
    font-weight: 700;
    padding: 0.25em 0 0.5em;
    color: var(--blue-gray);
}

#project h2 {
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 32px;
}

.results-header {
    padding-top: 1em;
}

h3 {
    margin-bottom: 0.25em;
}

#project h3 {
    margin: 0.75em 0 0;
    font-size: 24px;
    text-decoration: underline;
}

p,
li {
    font-size: 18px;
}

#project p {
    margin: 0.5em 0 0;
}

#project h4 {
    margin: 1.5em 0 0;
    font-size: 21px;
}

h5 {
    font-size: 20px;
    margin-bottom: 0;
    margin-top: 0.5em;
}

/* General list styling */
ul {
    margin: 0;
    padding: 0;
}

li {
    list-style-type: none;
}


/*
    HEADER
*/
/* Home hero: mobile-first base (small screens) */
#home header h1 {
    color: var(--maroon);
    text-shadow: 2px 2px var(--black);
    -webkit-text-stroke: 1px var(--black);
    font-size: 40px;
    padding-bottom: 0.25em;
    margin-bottom: 0 !important;
    line-height: 1.1;
}

header {
    margin: 0 1.25em 2em;
    text-align: center;
}

/* Project banner with overlapping content */
.project-banner {
    width: 100vw; /* Full viewport width */
    max-width: 100vw;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    /* Remove any borders/shadows that might be applied to #project img */
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0;
}

#project header {
    position: relative;
    text-align: left;
    display: flex;
    flex-flow: row wrap;
    margin: -80px 1.25em 2em; /* Override base header margin, pull up to overlap banner */
    background-color: var(--white);
    padding: 2rem 1.25em;
    border-radius: 0.5em 0.5em 0 0;
    z-index: 2;
}

#project .subhead {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-gray);
}

#home header ul li {
    font-size: 16px;
    padding-bottom: 0.5em;
    color: var(--blue-gray);
}

/* Project summary: mobile-first stacked columns */
.project-summary {
    display: flex;
    flex-direction: column;
    gap: 2em;
    justify-content: space-between;
}

.project-summary > div {
    flex: none;
    width: 100%;
}

.project-bullets {
    padding-left: 1.5em;
    position: relative;
}

.project-bullets-narrow {
    padding-left: 1em;
}

.project-bullets li::before {
    content: "•";
    color: var(--maroon);
    font-weight: bold;
    position: relative;
    left: -0.2em;
    top: 2px;
    font-size: 28px;
}

main .project-bullets li::before {
    font-size: 24px;
}

/* MAIN */
main {
    background-color: var(--light-gray);
    padding: 2em;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
}

#about main {
    /* padding: 5em 1.25em 2em; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Centered column, left-aligned text (like index header) */
#about .about-inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    min-width: 0;
    box-sizing: border-box;
}

#project main {
    text-align: left;
    align-items: center;
    justify-content: center;
    /* max-width: 1000px; */
    padding: 2em 1.5em;
    max-width: 100%;
    overflow-wrap: break-word; /* long words/URLs wrap instead of overflowing */
}

/* Wrapper for side nav and content */
#project .main-content-wrapper {
    display: flex;
    gap: 2em;
    width: 100%;
    max-width: 1000px;
    min-width: 0;
    /* align-items: center; */
    /* justify-content: center; */
}

#project .main-content-inner {
    flex: 1;
    min-width: 0;
    overflow-x: hidden; /* clip any wide content on narrow viewports */
    max-width: 100%;
    /* Horizontal padding pushes overflow clip edge out so 8px box-shadows aren't cut off */
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

/* Add spacing to sections on project pages */
#project main > section {
    margin-bottom: 2em;
    text-align: left; /* Ensure left alignment on mobile too */
}

.project-preview {
    display: flex;
    flex-flow: row wrap;
    text-align: left;
    justify-content: center;
    background-color: var(--white);
    box-shadow: 8px 8px var(--black);
    border-radius: 0.5em;
    border: 3px solid var(--black);
    padding: 1.5em;
    margin-bottom: 2em;
    max-width: 1000px;

}

/* Project role pills container */
.project-role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Individual role pill/badge */
.role-pill {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 2px solid var(--black);
    border-radius: 50px; /* Makes it oval/rounded */
    color: var(--black);
    font-weight: 600;
    /* font-size: 14px; */
}

/* Legacy support - keep for any remaining project-role spans */
.project-role {
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 18px;
}

/* Tools list - horizontal layout with logos */
.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-logo {
    width: 80px;
    height: auto;
    margin-bottom: 0.25rem !important;
    /* Override project page image styles - no border, shadow, or border-radius */
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.tool-name {
    color: var(--dark-gray);
    font-weight: 600;
    /* font-size: 16px; */
}

#about .container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    font-size: 20px;
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.feedback-form {
    display: flex;
    flex-flow: row wrap;
    gap: 2em;
}

/* Two-column layout for side-by-side divs */
.two-column-container {
    display: flex;
    flex-flow: row wrap;
    gap: 2em;
    margin-top: 0.75em;
    min-width: 0;
    max-width: 100%;
}

.two-column {
    flex: 1;
    min-width: 250px; /* forces wrap when container is narrow; 768px+ uses 300px */
}

/* Text-image layout: 1/3 text, 2/3 image */
.text-image-layout .two-column:first-child {
    flex: 1;
}

.text-image-layout .two-column:last-child {
    flex: 2;
}

/* Image-text layout: 2/3 image, 1/3 text - image on left on widescreen, text above on mobile */
.image-text-layout .two-column:first-child {
    flex: 2;
    order: 2; /* Image appears second on mobile */
}

.image-text-layout .two-column:last-child {
    flex: 1;
    order: 1; /* Text appears first on mobile */
}

/* Make iframes responsive */
.two-column iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border: 3px solid var(--black);
    border-radius: 0.5em;
    box-shadow: 8px 8px var(--black);
    display: block;
}

/* Video demo section spacing */
.video-demo-section {
    margin-bottom: 3em;
}

/* Persona card styling - Mobile First */
.persona-card {
    background-color: var(--white);
    border: 3px solid var(--black);
    border-radius: 0.5em;
    box-shadow: 8px 8px var(--black);
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 2em;
    margin-bottom: 2em;
    width: 100%;
}

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

.persona-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 0.5em;
    border: 2px solid var(--black);
    margin: 0 auto 1em;
    display: block;
}

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

.persona-header {
    text-align: center;
    margin-bottom: 0.5em;
}

.persona-header h3 {
    margin-bottom: 0.25em;
    font-size: 24px;
    text-decoration: underline;
}

.persona-details {
    color: var(--dark-gray);
    font-size: 16px;
    margin: 0;
}

.persona-bio {
    /* font-style: italic; */
    margin: 0 !important;
}

.persona-quote {
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    padding: 0.75em;
    background-color: var(--light-gray);
    border-left: 4px solid var(--dark-gray);
    margin: 0.5em 0;
}

.persona-sections {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 0;
}

/* Key Findings card styling */
.findings-card {
    background-color: var(--white);
    border: 3px solid var(--black);
    border-radius: 0.5em;
    box-shadow: 8px 8px var(--black);
    padding: 2em;
    margin: 2em 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.findings-title {
    font-size: 28px !important;
    color: var(--blue-gray);
    margin-bottom: 1.5em;
    text-align: center;
    text-decoration: underline;
    padding-bottom: 1em;
}

.findings-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    border-radius: 0.5em;
}

.findings-list li {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 1em;
    background-color: var(--light-gray);
    border-radius: 0.5em;
    border: 3px solid var(--black);
    box-shadow: 6px 6px var(--black);
    list-style: none;
}

.findings-label,
.finding-label {
    font-weight: 700;
    color: var(--blue-gray);
    font-size: 18px;
    display: block;
    margin-bottom: 0;
}

.findings-text,
.finding-text {
    color: var(--black);
    line-height: 1.6;
}

/* Features card styling - similar to findings card */
.features-card {
    background-color: var(--white);
    border: 3px solid var(--black);
    border-radius: 0.5em;
    box-shadow: 8px 8px var(--black);
    padding: 2em;
    margin: 2em 0;
    width: 100%;
}

/* Features title styling */
.features-title {
    font-size: 28px !important;
    color: var(--blue-gray);
    text-align: center;
    margin: 0 0 2em 0;
    padding-bottom: 1em;
    text-decoration: underline;
}

.architecture-diagram-title {
    margin-bottom: 0;
}

/* Features grid layout - Mobile First */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5em;
    background-color: var(--light-gray);
    border-radius: 0.5em;
    border: 3px solid var(--black);
    box-shadow: 6px 6px var(--black);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 3px solid var(--black);
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 40px;
    color: var(--black);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue-gray);
    margin: 0;
    text-align: center;
}

.feature-text {
    color: var(--black);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Architecture diagram: single column with arrows between feature items */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.architecture-diagram .feature-item {
    width: 100%;
    box-sizing: border-box;
}

.architecture-diagram-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25em 0;
    background: none;
    border: none;
}

.architecture-diagram-arrow i {
    font-size: 54px;
    color: var(--black);
}

.persona-section {
    margin-top: 0;
}

.persona-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue-gray);
    margin-bottom: 0;
    margin-top: 0.5em !important;
    text-decoration: underline;
}

.demographics,
.usage {
    display: flex;
    flex-flow: row wrap;
    padding-bottom: 0.75em;
    gap: 0.5em;
}

/* Prevent demographics chart (and other flex children) from overflowing on mobile */
.demographics > *,
.usage > * {
    min-width: 0;
}

.demographics img,
.usage img {
    max-width: 100%;
}

.results h2 {
    padding-top: 1em;
}

.results h2,
.results h3 {
    text-align: center;
}

.results-wrapper {
    background-color: var(--white);
    padding: 0.75em 2em 2em;
    margin: 2.5em auto;
    box-shadow: 8px 8px var(--black);
    border-radius: 0.5em;
    border: 3px solid var(--black);
    max-width: 1000px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.rating {
    display: flex;
    align-items: flex-start;
    flex-flow: column wrap;
    text-align: left;
    width: 100%;
    padding-bottom: 1.25em;
}

.rating-info {
    font-size: 20px;
}

.sentiment-lists {
    display: flex;
    flex-flow: row wrap;
    font-size: 18px;
    width: 100%;
    gap: 0.5em;
}

.sentiment-lists > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0; /* allow shrinking on mobile so tables don't force overflow */
}

.sentiment-lists h5 {
    text-align: center;
    margin-bottom: 0;
}

/* Table styling for sentiment lists */
.sentiment-lists table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0.5em;
    margin-bottom: 1em;
    border: 3px solid var(--black);
    box-shadow: 4px 4px var(--black);
    border-radius: 0.5em;
    overflow: hidden;
    /* min-width only at larger breakpoints to avoid mobile overflow */
}

.sentiment-lists th {
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    color: var(--blue-gray);
    text-align: left;
    padding: 0.5em;
    border-bottom: 2px solid var(--black);
    background-color: var(--light-gray);
}

.sentiment-lists th:nth-child(2) {
    text-align: center;
}

.sentiment-lists td {
    padding: 0.5em;
    border-bottom: 1px solid var(--light-gray);
    text-align: left;
}

.sentiment-lists td:nth-child(2) {
    text-align: center;
}

.sentiment-lists tbody tr:last-child td {
    border-bottom: none;
}


/*
    BUTTONS AND LINKS
*/
a {
    text-decoration: none;
}

.button {
    background-color: var(--maroon);
    border-radius: 0.5em;
    box-shadow: 6px 6px var(--black);
    border: 3px solid var(--black);
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
} 

.button:hover {
    background-color: var(--light-maroon);
}

.button a {
    color: var(--white);
    display: block;
    padding: 0.75em 1em;
}

.button a:hover {
    color: var(--maroon);
}

.project-button {
    margin: 2em auto 0;
    font-size: 20px;
}

.project-button a {
    padding: 1em 2.75em;
}

/* 
    IMAGES
*/
img {
    max-width: 100%;
    height: auto;
}

.headshot {
    max-width: min(400px, 100%); /* scale to container on mobile, cap at 400px on desktop */
    height: auto;
    border-radius: 0.5em;
    border: 3px solid var(--black);
    box-shadow: 6px 6px var(--black);
    margin-bottom: 1em;
    object-fit: cover;
}

/* About page: dog photos side by side, same style as headshot */
.dog-photos {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 2em;
    margin-top: 1em;
}

.dog-photo {
    flex: 1 1 0;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.5em;
    border: 3px solid var(--black);
    box-shadow: 6px 6px var(--black);
    object-fit: cover;
}

.project-preview img {
    max-width: 90%;
    border-radius: 0.5em;
    border: 4px solid var(--dark-gray);
    margin-bottom: 1.5em;
    width: auto;
    height: auto;
}

#project img:not(.banner-image) {
    border-radius: 0.5em;
    box-shadow: 6px 6px var(--black);
    border: 3px solid var(--black);
    margin-bottom: 1em;
}

/* Side navigation wrapper styles - kept in styles.css as they're layout-specific */
#project .main-content-wrapper {
    display: flex;
    gap: 2em;
    align-items: flex-start;
}

/* ==========================================================================
   MEDIA QUERIES – MOBILE FIRST
   Base styles above assume mobile/small screens.
   Only min-width is used; breakpoints scale up from 500px.
   ========================================================================== */

@media (min-width: 400px) {
    #home header h1 {
        font-size: 48px;
    }

    #home header ul li {
        font-size: 18px;
    }
}

@media (min-width: 500px) {
    #home header h1 {
        font-size: 64px;
    }

    #home header ul li {
        font-size: 21px;
    }
}

@media (min-width: 600px) {
    .dog-photo {
        min-width: 0;
    }
}

/* min-width: 768px – tablets and up */
@media (min-width: 768px) {

    #tag {
        background-color: #FF9900;
    }

    #home header h1 {
        text-shadow: 2px 2px var(--black);
        font-size: 84px;
        padding-bottom: 0.15em;
    }

    #home header ul li {
        font-size: 24px;
    }

    /* Project summary: side-by-side columns */
    .project-summary {
        flex-flow: row nowrap;
        gap: 2em;
    }

    .project-summary > div {
        flex: 1;
        min-width: 0;
    }

    .project-preview {
        flex-flow: row-reverse nowrap;
        align-items: center;
        gap: 2em;

    }

    .project-preview img {
        max-width: 50%;
    }

    h2 {
        font-size: 40px;
    }

    #about main {
        /* padding: 7.5em 3em 3em; */
        align-items: center; /* keep .about-inner centered on page */
    }


    #about .container {
        flex-flow: row nowrap;
        align-items: flex-start;
        /* justify-content: center; */
        text-align: left;
        gap: 2em;
        padding-bottom: 2em;
    }

    #project img:not(.banner-image) {
        box-shadow: 8px 8px var(--black);
    }

    .sentiment-lists table {
        box-shadow: 6px 6px var(--black);
        /* min-width only at larger breakpoints to avoid mobile overflow */
    }

    .headshot {
        /* max-height: 450px; */
        width: auto;
    }

    .feedback-form {
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: flex-start;
    }

    /* Two-column layout - ensure side-by-side on widescreen */
    .two-column-container {
        flex-flow: row nowrap;
        gap: 3em;
    }

    .two-column {
        flex: 1;
        min-width: 300px;
    }

    /* Text-image layout: 1/3 text, 2/3 image - widescreen */
    .text-image-layout .two-column:first-child {
        flex: 1;
    }

    .text-image-layout .two-column:last-child {
        flex: 2;
    }

    /* Image-text layout: 2/3 image, 1/3 text - widescreen (image on left) */
    .image-text-layout .two-column:first-child {
        flex: 2;
        order: 0; /* Reset order - image appears first (on left) */
    }

    .image-text-layout .two-column:last-child {
        flex: 1;
        order: 0; /* Reset order - text appears second (on right) */
    }

    /* Persona card widescreen layout */
    .persona-top {
        flex-direction: row;
        align-items: flex-start;
        gap: 2em;
    }

    .persona-image {
        max-width: 50%;
        width: auto;
        margin: 0;
        flex-shrink: 0;
    }

    .persona-header {
        text-align: left;
    }

    .persona-quote {
        text-align: left;
    }

    .persona-sections {
        flex-direction: row;
        gap: 2em;
        margin-top: 0;
    }

    .persona-section {
        flex: 1;
    }

    /* Key Findings card widescreen adjustments */
    .findings-title {
        font-size: 32px;
    }

    .findings-list li {
        padding: 1.25em;
        padding-left: 2em;
    }

    /* Findings grid - 2 columns layout */
    .findings-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }

    .findings-grid li {
        padding-left: 1.25em;
    }

    .finding-label {
        font-size: 20px;
        font-weight: 700;
    }

    /* Features card widescreen adjustments */
    .features-title {
        font-size: 32px;
    }

    /* Features grid - 2x3 grid */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2em;
    }

    /* Modifier: force 2x2 grid (used on FRUX limitations card) */
    .features-grid.features-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item {
        padding: 2em 1.5em;
    }

    .feature-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1em;
    }

    .feature-icon i {
        font-size: 50px;
    }

    .feature-title {
        font-size: 22px;
    }

    .feature-text {
        font-size: 16px;
    }

    /* Highlights grid - 2x2 layout */
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #project main {
        padding: 3em;
    }

    /* Constrain content inside main to match header max-width */
    /* Note: On large screens (1600px+), sections are inside .main-content-inner, so this rule is overridden */
    #project main > section {
        max-width: 1000px; /* Match project header max-width for consistency */
        margin: 0 auto 3em; /* Center the content, add bottom margin */
        text-align: left; /* Ensure left alignment */
    }

    /* Adjust banner overlap for widescreen */
    #project header {
        margin: -140px auto 2em; /* Center header with auto left/right, more overlap on widescreen */
        max-width: 1000px; /* Match project preview max-width for consistency */
        padding: 2.5rem 1.5em;
    }

    .results {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    #project .results-header {
        /* align-self: center; */
        padding-bottom: 0.5em;

    }

    .demographics,
    .usage {
        gap: 2em;
        align-items: center;
    }

    .demographics {
        flex-flow: row nowrap;
        padding-bottom: 2em;
    }

    .usage {
        flex-flow: row-reverse nowrap;
    }

    .demographics img {
        min-width: 67%;
    }

    .results p {
        max-width: 300px;
    }

    .sentiment-lists {
        justify-content: space-around;
    }

    /* Restore table min-width on larger screens so tables don't get too narrow */
    .sentiment-lists table {
        min-width: 400px;
    }

}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {

    #tag {
        background-color: #00AA88;
    }

    #home header h1 {
        text-shadow: 3px 3px var(--black);
        font-size: 96px;
    }

    .project-summary {
        flex-flow: row nowrap;
        gap: 1.5em;
    }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    #tag {
        background-color: #674EA7;
    }

}

@media (min-width: 1600px) {
    /*
     * Keep same layout as 1024–1599px: side nav directly left of content with gap.
     * Wrapper max-width = nav (250px) + gap (2em) + content (1000px) so the nav
     * never jumps left; main centers the wrapper.
     */
    #project .main-content-wrapper {
        display: flex;
        gap: 2em;
        align-items: flex-start;
        position: relative;
        max-width: calc(250px + 2em + 1000px);
        width: 100%;
    }

    #project .main-content-inner {
        flex: 1;
        min-width: 0;
        max-width: 1000px;
    }

    #project .main-content-inner > section {
        max-width: 100%;
        margin: 0 0 2em 0;
    }
}