/* Custom CSS for Pietro Mastro's Portfolio */

/* General Styles */
/* Fonts are loaded via <link> in index.html (Fraunces + Inter) */

:root {
    /* Light mode (default) — refined ink on ivory with muted gold accent */
    --primary-bg: #f7f5f0;
    --secondary-bg: #efece4;
    --tertiary-bg: #e7e3d8;
    --text-color: #0b1220;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-color: #8a6f1f;
    --accent-hover: #6b5515;
    --accent-light: #efe6c9;
    --border-color: #d8d3c5;
    --hover-color: #efece4;
    --container-bg: #fdfcf8;
    --shadow-sm: 0 1px 2px 0 rgb(11 18 32 / 0.04);
    --shadow-md: 0 4px 12px -2px rgb(11 18 32 / 0.08), 0 2px 4px -2px rgb(11 18 32 / 0.06);
    --shadow-lg: 0 14px 30px -10px rgb(11 18 32 / 0.10), 0 6px 12px -6px rgb(11 18 32 / 0.06);
    --shadow-xl: 0 30px 60px -20px rgb(11 18 32 / 0.14), 0 10px 20px -10px rgb(11 18 32 / 0.08);
    --gradient-primary: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(90deg, #8a6f1f 0%, #d4af37 100%);
    --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dark mode variables — deep navy paper with warm gold accent */
[data-theme="dark"] {
    --primary-bg: #0b1220;
    --secondary-bg: #101a2e;
    --tertiary-bg: #182842;
    --text-color: #f1ece1;
    --text-secondary: #b8c2d1;
    --text-muted: #7f8aa0;
    --accent-color: #d4af37;
    --accent-hover: #e8c760;
    --accent-light: #3a2f10;
    --border-color: #1f2c44;
    --hover-color: #162038;
    --container-bg: #0f1a2d;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.45), 0 2px 4px -2px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 14px 30px -10px rgb(0 0 0 / 0.55), 0 6px 12px -6px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 30px 60px -20px rgb(0 0 0 / 0.6), 0 10px 20px -10px rgb(0 0 0 / 0.45);
    --gradient-primary: linear-gradient(135deg, #0b1220 0%, #182842 100%);
    --gradient-accent: linear-gradient(90deg, #8a6f1f 0%, #d4af37 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Sticky footer layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.2vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.02em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2.25rem;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Editorial eyebrow / kicker */
.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    position: relative;
}

.eyebrow::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1.75rem;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.55;
}

/* Numbered section labels — editorial rhythm via CSS counter */
.main-content {
    counter-reset: section;
}

.content-section > h2 {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.content-section > h2::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--accent-color);
    background: var(--accent-light);
    padding: 0.3rem 0.55rem;
    border-radius: var(--border-radius-sm);
    line-height: 1;
    position: relative;
    top: -0.15em;
    flex-shrink: 0;
}

h3 {
    font-size: clamp(1.1rem, 2.4vw, 1.25rem);
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Enhanced link styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

a:hover {
    color: var(--accent-hover);
    transform: translateY(-1px);
}

a:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: var(--border-radius-sm);
}

/* Improved accessibility focus */
a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: var(--border-radius-sm);
}

/* Better button focus states */
.btn:focus,
.contact-btn:focus,
.email-btn:focus,
.theme-toggle:focus,
.sidebar-toggle:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px var(--primary-bg), 0 0 0 5px var(--accent-color);
}

/* Animated underline for content links */
.content-section a:not(.btn):not(.social-icon) {
    position: relative;
    display: inline-block;
}

.content-section a:not(.btn):not(.social-icon)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.content-section a:not(.btn):not(.social-icon):hover::after {
    width: 100%;
}

/* Enhanced container and layout */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
    flex: 1 0 auto; /* This makes the main content area grow to fill space */
}

.main-wrapper {
    display: flex;
    min-height: 100vh;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1rem, 3vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Improved responsive grid system */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.main-content-wrapper {
    flex: 1;
    padding: 1rem 2rem;
    margin-right: 250px; /* Space for sidebar */
}

/* Header and profile — editorial hero */
.profile-header {
    background: var(--container-bg);
    border-radius: var(--border-radius-xl);
    padding: clamp(2rem, 4.5vw, 3.75rem) clamp(1.75rem, 4vw, 3.25rem);
    margin-bottom: 2.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.profile-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px circle at 88% -12%, color-mix(in srgb, var(--accent-color) 16%, transparent), transparent 55%),
        radial-gradient(520px circle at -5% 115%, color-mix(in srgb, var(--text-color) 6%, transparent), transparent 58%);
    pointer-events: none;
    z-index: -1;
}

.quote-container {
    padding: 1.5rem 1.75rem 1.25rem 3.5rem;
    background-color: transparent;
    color: var(--text-color);
    border-left: 3px solid var(--accent-color);
    border-radius: 0;
    margin: 0 0 2.25rem;
    max-width: 640px;
    transition: color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.quote-container::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 0.8;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    left: 0.65rem;
    top: -0.15rem;
    pointer-events: none;
}

.quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.25rem, 2.3vw, 1.6rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 0.9rem;
    letter-spacing: -0.005em;
}

.quote-author {
    text-align: left;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding-left: 2.75rem;
    position: relative;
    display: inline-block;
}

.quote-author::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.6;
}

    .profile-card {
    background-color: var(--secondary-bg);
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: 0;
}

/* Clean profile image */
.profile-image {
    width: clamp(130px, 16vw, 180px);
    height: clamp(130px, 16vw, 180px);
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    align-self: flex-start;
    border: 4px solid var(--container-bg);
    box-shadow:
        0 0 0 1px var(--border-color),
        0 0 0 10px color-mix(in srgb, var(--accent-color) 10%, transparent),
        var(--shadow-lg);
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(1.05) contrast(1.02);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 6px var(--secondary-bg);
}

.profile-image:hover img {
    filter: brightness(1.05) contrast(1.03);
}

.profile-info h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.85rem, 4.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.profile-social-icons {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start !important;
}

.job-title {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: var(--accent-color);
}

.location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.location .location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-right: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.location .location-icon:hover {
    color: var(--accent-hover);
}

.location .location-icon:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Content sections */
.content-section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

.content-section h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    margin-bottom: 1.4rem;
}

.section-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.section-content p {
    margin-bottom: 1rem;
}

/* Position / timeline styles — editorial */
.position {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.position:last-of-type {
    border-bottom: 0;
}

.position:hover {
    padding-left: 0.25rem;
}

.position-year {
    color: var(--accent-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-top: 0.2rem;
    padding-right: 1rem;
    border-right: 1px solid var(--border-color);
    line-height: 1.4;
}

.position-details h3 {
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.position-details p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
    line-height: 1.55;
}

.position-details p:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--secondary-bg);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1rem;
    transition: background-color 0.3s ease;
    border-left: 1px solid var(--border-color);
}

.sidebar-header {
    background-color: var(--secondary-bg);
    padding: 1rem 0 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    position: relative;
}

.sidebar-header h3 {
    font-size: 0.8rem;
    letter-spacing: 0.05rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 600;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a,
.sidebar-nav a:visited {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    position: relative;
    border-bottom: 2px solid transparent;
}

.sidebar-nav a:focus,
.sidebar-nav a:focus-visible {
    outline: none;
    background-color: transparent;
    border-bottom-color: var(--accent-color);
}

.sidebar-nav a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.sidebar-nav a.active {
    color: var(--accent-color);
    font-weight: 500;
    border-bottom-color: var(--accent-color);
}

.sidebar-more-toggle {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.sidebar-more-toggle i {
    transition: transform 0.3s ease;
}

.sidebar-more-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.sidebar-more-toggle:hover {
    background-color: var(--hover-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.sidebar-more-toggle:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.sidebar-extra {
    margin-top: 0.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-extra.collapsed {
    max-height: 0;
}

.sidebar-extra.expanded {
    max-height: 900px;
}

/* Publication styles */
.publication-list {
    list-style-type: none;
    padding-left: 0;
}

.publication-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.view-more {
    color: var(--accent-color);
    font-weight: 500;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: background-color 0.3s ease;
}

.theme-toggle:focus-visible,
.sidebar-toggle:focus-visible,
.profile-info .social-icons a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .main-content-wrapper {
        margin-right: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        max-height: 60vh;
        min-height: unset;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        border-left: none;
        z-index: 1000;
        background-color: var(--secondary-bg);
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.visible {
        transform: translateY(0);
    }
    
    .position {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 4.25rem;
    }

    .sidebar-more-toggle {
        display: flex;
    }

    .sidebar-extra {
        max-height: 0;
    }
    
    .sidebar-toggle {
        display: flex !important; /* Ensure it's always visible in mobile view */
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        z-index: 1001;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--secondary-bg);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .contents.hidden {
        display: none;
    }
    
    .main-content-wrapper {
        padding-bottom: 0;
    }
}

/* Add a toggle button for mobile */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    background-color: var(--hover-color);
    color: var(--accent-color);
}

.sidebar-toggle i {
    font-size: 1rem;
    color: inherit;
}

/* Smaller screen adjustments */
@media (max-width: 480px) {
    .profile-area {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.5rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 0 1.5rem 0; /* Left-aligned margin */
        align-self: flex-start;
    }

    .theme-toggle {
        right: 4rem;
    }
}

/* Devices with width less than 935px (both portrait and landscape) */
@media (max-width: 935px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        max-height: 60vh;
        min-height: unset;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        border-left: none;
        z-index: 1000;
        background-color: var(--secondary-bg);
        transform: translateY(100%); /* Hidden by default */
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.visible {
        transform: translateY(0);
    }
    
    .main-content-wrapper {
        margin-right: 0;
        width: 100%;
        padding: 1rem;
        padding-bottom: 0;
    }
    
    .theme-toggle {
        position: fixed;
        top: 1rem;
        right: 4.25rem;
        z-index: 1001;
    }

    .sidebar-more-toggle {
        display: flex;
    }

    .sidebar-extra {
        max-height: 0;
    }
    
    .sidebar-toggle {
        display: flex !important; /* Ensure it's always visible in mobile view */
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        z-index: 1001;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--secondary-bg);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .sidebar-header {
        background-color: var(--secondary-bg);
        padding: 1rem 0 0.75rem 0;
        margin-bottom: 0.5rem;
        border-bottom: 2px solid var(--accent-color);
        position: relative;
    }
    
    .sidebar-nav ul {
        padding-bottom: 1rem;
        margin-top: 0;
        list-style: none;
    }
    
    .sidebar-nav li {
        margin-bottom: 0.25rem;
    }
    
    .sidebar-nav a,
    .sidebar-nav a:visited {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        color: var(--text-secondary);
        text-decoration: none;
        border-bottom: 2px solid transparent;
        min-height: 48px;
        position: relative;
    }
    
    .sidebar-nav a:hover {
        color: var(--accent-color);
        border-bottom-color: var(--accent-color);
    }
    
    .sidebar-nav a.active {
        color: var(--accent-color);
        font-weight: 500;
        border-bottom-color: var(--accent-color);
    }
    
    .position {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .position-year {
        margin-bottom: 0.25rem;
    }
}

@media (min-width: 935px) {
    .sidebar-more-toggle {
        display: none !important;
    }

    .sidebar-extra {
        max-height: none !important;
        overflow: visible;
    }

    .sidebar-extra.collapsed,
    .sidebar-extra.expanded {
        max-height: none !important;
    }
}
