/* Minimalist Black Design System */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
    --footer-h: 44px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Layout */
#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--ticker-h, 64px) + var(--footer-h));
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 400px;
    right: 0;
    background: #000000;
    padding: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    border-bottom: none;
}

/* Profile Name - under profile image */
.profile-name {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

#header nav {
    display: flex;
    gap: 0;
}

#header nav a {
    display: block;
    padding: 20px 30px;
    background: #000000;
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: all 0.2s ease;
}

#header nav a:hover {
    background: #333333;
    color: #ffffff;
}

#header nav a.active {
    background: #ffffff;
    color: #000000;
}

/* Remove old menu system */
#menu {
    display: none;
}

/* Main Content */
#main {
    margin-top: 60px;
    flex: 1;
    padding: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    align-items: start;
    height: calc(100vh - 60px - var(--ticker-h, 64px) - var(--footer-h));
    overflow: hidden;
    position: relative;
}

#main > div:first-child {
    height: calc(100vh - 60px - var(--ticker-h, 64px) - var(--footer-h));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 5%;
    padding-right: 2rem;
    position: sticky;
    top: 60px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#main > div:first-child::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#main > div:last-child {
    height: calc(100vh - 60px - var(--ticker-h, 64px) - var(--footer-h));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 5%;
    padding-left: 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#main > div:last-child::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Profile Section */
.profile-section {
    position: relative;
    width: 100%;
}

.profile-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    width: 100%;
    padding: 0;
    gap: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Introduction Text */
.intro-text {
    text-align: center;
    width: 100%;
}

.intro-prefix {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.intro-main {
    font-size: 1.1rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

/* CURRENT Label */
.current-label-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.current-label-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.current-label-line {
    height: 1px;
    background: #666666;
    flex: 1;
    margin-right: 15px;
    min-width: 0;
}

.current-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
}

.current-degrees {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.current-degrees p {
    margin: 0;
}

/* CONFERRED Label */
.conferred-label-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.conferred-label-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.conferred-degrees {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.conferred-degrees p {
    margin: 0 0 0.5rem 0;
}

.conferred-degrees .ba-details {
    font-size: 0.7rem;
    margin-top: -0.3rem;
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.conferred-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 15px;
}

.conferred-label-line {
    height: 1px;
    background: #666666;
    flex: 1;
    margin-left: 15px;
    min-width: 0;
}

/* News Section */
.news-section {
    margin-top: 3rem;
}

.news-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333333;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.news-item p {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Right Column Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Sections */
section {
    margin-bottom: 4rem;
}

section:last-child {
    margin-bottom: 0;
}

.inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero/Banner */
#banner {
    text-align: center;
    padding: 8rem 5% 6rem;
    margin-top: 0;
}

#banner h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#banner h3 {
    font-size: 1.2rem;
    font-weight: 300;
    color: #cccccc;
    margin-bottom: 2rem;
}

#banner p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tiles/Grid */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tiles article {
    background: #000000;
    border: 1px solid #333333;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tiles article:hover {
    border-color: #666666;
}

.tiles .image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #111111;
}

.tiles .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tiles article:hover .image img {
    transform: scale(1.05);
}

.tiles header {
    padding: 2rem;
}

.tiles h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tiles h3 a {
    color: #ffffff;
}

.tiles p {
    font-size: 0.95rem;
    color: #cccccc;
    margin: 0;
}

/* Spotlights */
.spotlights {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.spotlights section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 0;
}

.spotlights .image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #111111;
}

.spotlights .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlights .content {
    padding: 0;
}

.spotlights h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.spotlights p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #cccccc;
}

/* Buttons */
.button, button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.button:hover, button:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

.button.next {
    margin-top: 2rem;
}

.actions {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Images */
.image.main {
    margin-bottom: 3rem;
}

.image.main img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bio Page Specific */
.top-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.bio-image {
    flex-shrink: 0;
}

.bio-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
}

.section-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.toggle-header {
    display: block;
    padding: 1rem;
    background: #111111;
    border: 1px solid #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.toggle-header:hover {
    background: #222222;
    border-color: #666666;
}

.toggle-content {
    padding: 1.5rem;
    background: #111111;
    border-left: 2px solid #333333;
    margin-bottom: 2rem;
    color: #cccccc;
}

/* Section Titles - Left Column */
.degrees-title,
.cv-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

/* Degrees Section */
.degrees-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.degrees-list {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.degrees-list p {
    margin: 0 0 0.75rem 0;
}

.degrees-list .ba-details {
    font-size: 0.7rem;
    margin-top: -0.3rem;
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.pdf-viewer {
    margin-top: 0;
    padding: 2rem;
    background: #111111;
    border: 1px solid #333333;
}

.cv-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cv-buttons .button {
    width: 100%;
}

#verification-container input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333333;
    background: #000000;
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: inherit;
}

#verification-container input[type="checkbox"] {
    margin-right: 0.5rem;
}

#verification-container label {
    display: inline-block;
    margin-bottom: 1rem;
    cursor: pointer;
    color: #ffffff;
}

#pdf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffffff;
    color: #000000;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: #cccccc;
}

.pdf-overlay-content iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #333333;
    flex: 1;
}

/* News Ticker Footer */
#news-ticker {
    position: fixed;
    bottom: var(--footer-h);
    left: 0;
    right: 0;
    height: 64px;
    background: #000000;
    border-top: 1px solid #333333;
    display: flex;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

#news-ticker .news-label {
    padding: 0 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 1px solid #333333;
}

#news-ticker .news-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

#news-ticker .news-scroll {
    display: flex;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #ffffff;
    position: relative;
    width: 100%;
}

.news-item {
    position: absolute;
    left: 0;
    right: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(100%);
    animation: news-cycle 70s infinite;
}

.news-item:nth-child(1) {
    animation-delay: 0s;
}

.news-item:nth-child(2) {
    animation-delay: 70s;
}

.news-item:nth-child(3) {
    animation-delay: 140s;
}

.news-item:nth-child(4) {
    animation-delay: 210s;
}

@keyframes news-cycle {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    3% {
        transform: translateX(0);
        opacity: 1;
    }
    88% {
        transform: translateX(0);
        opacity: 1;
    }
    91% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

#news-ticker .news-scroll:hover .news-item {
    animation-play-state: paused;
}

/* News ticker in script-driven mode (assets/js/news-ticker.js):
   one item at a time, text wraps, bar grows to fit the longest item, prev/next arrows at each end */
#news-ticker.news-js {
    height: auto;
    min-height: 64px;
    align-items: stretch;
}

#news-ticker.news-js .news-label {
    display: flex;
    align-items: center;
}

#news-ticker.news-js .news-content {
    height: auto;
    align-items: stretch;
}

#news-ticker.news-js .news-scroll {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    white-space: normal;
    line-height: 1.4;
}

#news-ticker.news-js .news-item {
    position: static;
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    padding: 0.7rem 1.25rem;
    margin: 0;
    border: none;
    white-space: normal;
    animation: none;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.45s ease, opacity 0.45s ease;
    pointer-events: none;
}

#news-ticker.news-js .news-item.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

#news-ticker.news-js .news-item.is-prev {
    transform: translateX(-100%);
}

.news-arrow {
    flex-shrink: 0;
    width: 3rem;
    padding: 0;
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.news-arrow:hover,
.news-arrow:focus-visible {
    background: #1a1a1a;
    color: #ffffff;
}

.news-prev {
    border-right: 1px solid #333333;
}

.news-next {
    border-left: 1px solid #333333;
}

@media (prefers-reduced-motion: reduce) {
    #news-ticker.news-js .news-item {
        transition: none;
    }
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
    padding: 0 5%;
    border-top: 1px solid #333333;
    background: #000000;
    z-index: 1000;
    display: flex;
    align-items: center;
}

#footer .inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#footer ul {
    margin: 0;
}

#footer .icons {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

#footer .icons a {
    color: #8a8a8a;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

#footer .icons a:hover {
    color: #ffffff;
}

#footer .copyright {
    list-style: none;
    color: #8a8a8a;
    font-size: 0.9rem;
}

/* Left side panel (About / Publications / Stuff):
   light panel that fills the height between the top and the ticker, and never scrolls */
#main.has-side-panel {
    margin-top: 0;
    max-width: none;
    height: calc(100vh - var(--ticker-h, 64px) - var(--footer-h));
}

#main.has-side-panel > div:last-child {
    height: calc(100vh - var(--ticker-h, 64px) - var(--footer-h));
    padding-top: calc(60px + 2rem);
    justify-self: center;
    width: 100%;
    max-width: 1000px;
}

#main.has-side-panel > .side-panel {
    height: calc(100vh - var(--ticker-h, 64px) - var(--footer-h));
    overflow: hidden;
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    color: #000000;
}

.side-panel section {
    margin-bottom: 0;
}

.side-panel h1,
.side-panel h2,
.side-panel p {
    color: #000000;
}

.side-panel .profile-image-container {
    gap: 0.5rem;
}

.side-panel .profile-image {
    width: 120px;
    height: 120px;
}

.side-panel .profile-name {
    color: #000000;
    font-size: 1.3rem;
    margin: 0.15rem 0 0;
}

.side-panel .intro-prefix {
    color: #555555;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 0.2rem;
}

.side-panel .intro-main {
    color: #000000;
    font-size: 1.05rem;
    line-height: 1.3;
}

.side-panel .degrees-section {
    margin-top: 0.3rem;
}

.side-panel .degrees-title,
.side-panel .cv-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.side-panel .degrees-list {
    color: #000000;
    font-size: 0.92rem;
    line-height: 1.4;
}

.side-panel .degrees-list p {
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.side-panel .degrees-list .ba-details {
    color: #555555;
    font-size: 0.75rem;
    margin-top: -0.2rem;
    margin-bottom: 0;
}

/* Short windows: shrink the panel further so it still fits without scrolling */
@media screen and (min-width: 769px) and (max-height: 760px) {
    #main.has-side-panel > .side-panel {
        gap: 1rem;
    }

    .side-panel .profile-image {
        width: 100px;
        height: 100px;
    }
}

@media screen and (min-width: 769px) and (max-height: 640px) {
    .side-panel .profile-image {
        width: 72px;
        height: 72px;
    }

    .side-panel .intro-prefix {
        display: none;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    #main.has-side-panel {
        margin-top: 50px;
    }

    #main.has-side-panel > .side-panel {
        padding: 2rem 5%;
    }

    #main.has-side-panel > div:last-child {
        padding-top: 2rem;
        max-width: none;
    }

    #header {
        height: 50px;
        left: 0;
        justify-content: center;
    }


    #header nav a {
        padding: 15px 20px;
        font-size: 0.8rem;
    }

    /* Single column layout for mobile - stack everything vertically */
    #main {
        margin-top: 50px;
        grid-template-columns: 1fr !important;
        gap: 0;
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 0;
        display: flex !important;
        flex-direction: column !important;
        padding: 0;
        position: relative !important;
    }

    #main > div:first-child {
        height: auto !important;
        overflow: visible !important;
        padding: 2rem 5%;
        position: relative !important;
        top: auto !important;
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
    }

    #main > div:last-child {
        height: auto !important;
        overflow: visible !important;
        padding: 2rem 5%;
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
    }

    #banner {
        padding: 4rem 5% 3rem;
    }

    #banner h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .tiles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .spotlights section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Stack all content vertically on mobile - ensure no overlap */
    .profile-section {
        width: 100% !important;
        margin-bottom: 2rem;
        position: relative !important;
        display: block !important;
    }

    .profile-image-container {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        display: flex !important;
        position: relative !important;
    }

    .profile-image {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 1rem !important;
        display: block !important;
    }

    .profile-name {
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto 1rem !important;
        display: block !important;
    }

    .intro-text {
        width: 100% !important;
        margin: 0 auto 2rem !important;
        display: block !important;
    }

    .degrees-section {
        width: 100% !important;
        margin-bottom: 2rem;
        position: relative !important;
        display: block !important;
    }

    .pdf-viewer {
        width: 100% !important;
        margin-bottom: 2rem;
        position: relative !important;
        display: block !important;
    }

    .section-blocks {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .main-content {
        width: 100% !important;
        position: relative !important;
        display: block !important;
    }

    .top-section {
        flex-direction: column !important;
        width: 100% !important;
    }

    #news-ticker {
        height: 64px;
    }

    #news-ticker .news-label {
        padding: 0 1rem;
        font-size: 0.8rem;
    }

    #news-ticker .news-scroll {
        font-size: 0.8rem;
    }

    .news-arrow {
        width: 2.25rem;
    }

    /* On phones the bar fits the item being shown instead of the longest one */
    #news-ticker.news-js .news-item {
        padding: 0.5rem 0.75rem;
    }

    #news-ticker.news-js .news-item:not(.is-active) {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile-image-container {
        gap: 1.5rem;
        flex-direction: column !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure no absolute/fixed positioning causes overlap */
    .profile-section *,
    .degrees-section *,
    .pdf-viewer * {
        position: relative !important;
    }

    /* Remove any sticky positioning on mobile */
    #main > div:first-child * {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    #footer .icons {
        gap: 1rem;
    }

    #footer .copyright {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    #banner h1 {
        font-size: 1.75rem;
    }

    #banner h3 {
        font-size: 1rem;
    }

    .tiles header {
        padding: 1.5rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    /* Ensure everything fits on small screens */
    #main > div:first-child,
    #main > div:last-child {
        padding: 1.5rem 3%;
    }

    .section-blocks {
        gap: 1rem;
    }

    .toggle-header {
        font-size: 0.8rem;
        padding: 0.75rem;
    }

    .toggle-content {
        padding: 1rem;
    }
}

/* Utility Classes */
.centered-header {
    text-align: center;
    margin-bottom: 2rem;
}

.current-work-section {
    margin-top: 4rem;
}

/* Preload */
.is-preload * {
    animation: none !important;
    transition: none !important;
}

@media screen and (max-width: 480px) {
    #news-ticker.news-js .news-label {
        display: none;
    }
}

@media screen and (min-width: 769px) and (max-height: 640px) {
    #main.has-side-panel > .side-panel {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Funding paragraph is a run of text, so set it a little smaller than the degree lines */
.side-panel .degrees-section + .degrees-section .degrees-list p {
    font-size: 0.72rem;
    line-height: 1.3;
    color: #595959;
}

/* Very short windows: trim the last few pixels so the panel still fits */
@media screen and (min-width: 769px) and (max-height: 720px) {
    #main.has-side-panel > .side-panel {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        gap: 0.6rem;
    }
}

@media screen and (min-width: 769px) and (max-height: 620px) {
    .side-panel .degrees-title,
    .side-panel .cv-title {
        margin-bottom: 0.15rem;
    }

    .side-panel .profile-name {
        margin: 0;
    }

    .side-panel .degrees-list p {
        margin-bottom: 0.2rem;
    }
}

/* CV button in the left panel */
.cv-open-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    font-size: 0.9rem;
}

.cv-open-button .cv-cookie-label {
    font-weight: 400;
    opacity: 0.85;
    margin-left: 0.15em;
}

.cv-open-button:hover,
.cv-open-button:focus-visible {
    background: #ffffff;
    color: #000000;
}

.cv-box #cv-consent-container strong {
    font-weight: 700;
}

/* CV dialog: the verification box, opened in the middle of the page */
.cv-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75);
}

.cv-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 2.25rem 2rem 2rem;
    background: #f2f2f2;
    color: #000000;
    border: 1px solid #d9d9d9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cv-box .cv-title {
    color: #000000;
    margin-bottom: 1.25rem;
}

.cv-box p {
    color: #000000;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.cv-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.cv-consent-buttons button {
    width: 100%;
}

.cv-box button.cv-consent-decline {
    background: #ffffff;
    color: #000000;
    border: 1px solid #c8c8c8;
}

.cv-box button.cv-consent-decline:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.cv-box #verification-container input[type="text"] {
    background: #ffffff;
    color: #000000;
    border: 1px solid #c8c8c8;
}

.cv-box #verification-container label {
    color: #000000;
}

.cv-box .button,
.cv-box button:not(.cv-close):not(.close-button) {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.cv-box .button:hover,
.cv-box button:not(.cv-close):not(.close-button):hover {
    background: #ffffff;
    color: #000000;
}

.cv-box .cv-buttons {
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0;
}

.cv-box .cv-buttons .button {
    flex: 1;
    width: auto;
    padding: 0.75rem 0.25rem;
}

.cv-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    color: #000000;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.cv-close:hover {
    background: #000000;
    color: #ffffff;
}

/* After verifying, the CV dialog grows to show the PDF preview */
.cv-preview {
    display: none;
}

.cv-box.is-verified {
    max-width: 900px;
    height: 88vh;
    display: flex;
    flex-direction: column;
}

.cv-box.is-verified .cv-title {
    margin-bottom: 0.75rem;
}

.cv-box.is-verified #cv-actions {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 0.75rem;
}

.cv-box.is-verified .cv-preview {
    display: block;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #c8c8c8;
}

.cv-preview-msg {
    margin: 0.5rem 0 0;
    text-align: center;
}

/* Publications & Projects page: text-only entries */
.pub-heading {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.pub-item {
    padding: 1.5rem 0;
    border-top: 1px solid #333333;
}

.pub-item h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.pub-item p {
    margin-bottom: 0.75rem;
}

.pub-item .pub-venue {
    color: #999999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pub-item .pub-authors {
    color: #bbbbbb;
    font-size: 0.9rem;
}

.pub-item .actions {
    margin-top: 1rem;
}

/* Stuff page: dropdowns */
.stuff-dropdown {
    margin-bottom: 1rem;
}

.stuff-dropdown > summary {
    position: relative;
    display: block;
    padding: 1rem 3rem;
    background: #111111;
    border: 1px solid #333333;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    list-style: none;
    transition: all 0.2s ease;
}

.stuff-dropdown > summary::-webkit-details-marker {
    display: none;
}

.stuff-dropdown > summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.stuff-dropdown[open] > summary::after {
    content: "\2212";
}

.stuff-dropdown > summary:hover,
.stuff-dropdown[open] > summary {
    background: #222222;
    border-color: #666666;
}

.stuff-dropdown-body {
    padding: 1.5rem;
    background: #111111;
    border-left: 2px solid #333333;
}

.stuff-dropdown-body .spotlights section {
    margin-bottom: 2rem;
}

.project-note {
    color: #999999;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.project-note a {
    text-decoration: underline;
}

.creative-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.creative-list li {
    padding: 0.6rem 1.25rem;
    border: 1px solid #444444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scriptura-dropdown {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.scriptura-dropdown > summary {
    text-transform: none;
    letter-spacing: 0.04em;
}

.scriptura-body {
    border-left-color: #555555;
}

.scriptura-blurb {
    color: #bbbbbb;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.75rem;
}

.scriptura-post {
    max-width: 42rem;
}

.scriptura-date {
    display: block;
    color: #999999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.scriptura-post p {
    color: #dddddd;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.scriptura-post p:last-child {
    margin-bottom: 0;
    color: #bbbbbb;
}

/* Longer tab label: keep the three tabs on one line on phones */
@media screen and (max-width: 480px) {
    #header nav a {
        padding: 15px 10px;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }
}

/* Typewriter sections on index.html (assets/js/type-effects.js):
   "RESEARCH & ACADEMIA" types itself out on load; "WHO I AM" stays hidden until that
   finishes, then appears, and its own text stays hidden until its heading is clicked. */
.type-on-load-body,
.who-i-am-body {
    display: none;
    min-height: 1.7em;
}

.type-on-load-body.is-visible,
.who-i-am-body.is-visible {
    display: block;
}

.who-i-am-section {
    display: none;
}

.who-i-am-section.is-ready {
    display: block;
}

.who-i-am-toggle {
    cursor: pointer;
    display: inline-block;
    width: 100%;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    text-align: center;
    background: none;
    appearance: none;
    box-sizing: border-box;
    margin: 0;
    /* Barely-there outline hints it's clickable; fades away once it's been revealed */
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.3em 0.6em;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.who-i-am-toggle:hover,
.who-i-am-toggle:focus-visible {
    color: #cccccc;
    border-color: rgba(255, 255, 255, 0.4);
}

.who-i-am-toggle.is-revealed {
    border-color: transparent;
}
