/* The Container: 1 column on mobile, 2 columns on desktop */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 20px;
}

/* Update your search bar style */
#archiveSearch {
    width: 100%;
    padding: 12px;
    border-bottom: 1px solid lightgray;
    font-size: 1rem;
    outline: none;
}

/* Optional: Make it white when the user clicks inside to type */
#archiveSearch:focus {
    background-color: #ffffff;
    border-color: #1e3a8a;
}


/* The Parent Container */
.archive-grid {
    display: grid;
    /* This says: create as many columns as fit, at least 300px wide each */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem; /* Space between columns */
    margin-top: 20px;
}

/* Make sure the paper-row doesn't have a 100% width restriction */
.paper-row {
    background: white;
    padding: 20px;
}




/* Container for the whole list */
.archive-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Individual Paper Row */
.paper-row {
    border-bottom: 1px solid #e5e7eb; /* Light separator line */
    display: flex;
    flex-direction: column;
}

/* Title: Clean and bold like JBS */
.paper-title {
    font-size: 1.15rem;
    color: #121212; /* Academic Navy */
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.paper-title:hover {
    text-decoration: underline;
}

/* Author Line */
.paper-author {
    font-size: 0.95rem;
    color: #374151; /* Dark Gray */
    margin-bottom: 0.5rem;
}

/* The Meta-Row: PDF link, Pages, Keywords */
.paper-meta {
    display: flex;
    gap: 1rem; /* Space between PDF link and keywords */
    align-items: center;
    font-size: 0.85rem;
}

/* PDF link styling */
.pdf-link {
    color: #181414;  
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pdf-link:hover {
    color: #4f54e0;
}


/* abstract link styling */
.abstract-link {
    color: #181414;  
    display: flex;
    align-items: center;
    text-decoration: none;
}

.abstract-link:hover {
    color: #4f54e0;
}


/* Keywords/Abstract Toggle Text */
.paper-keywords {
    color: #6b7280;
}



/* Hide the citation by default */
.citation-details {
    display: none; 
    background-color: #f8fafc;
    border-left: 4px solid #1e3a8a;
    padding: 10px 15px;
    font-size: 1rem;
}

/* A simple style for the toggle link */
.cite-toggle {
    color: black;
    text-decoration: none;
    font-weight: 600;

    cursor: pointer;
    font-size: 0.85rem;
    background: none;
    border: none;
}

.cite-toggle:hover {
    color: #4f54e0;
}


/* GAA Modal Reinforcement */
#abstract-modal {
    z-index: 9999 !important;
}

#abstract-modal .bg-white {
    padding: 3rem !important; /* Forces the internal breath */
    position: relative;
}

#abstract-modal button {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important; /* Stops it from jumping to the left */
}

@media print {
    /* 1. Hide things that aren't useful on paper */
    nav, .language-bar, footer, .download-link-icon {
        display: none !important;
    }

    /* 2. Reset the grid to a simple list for paper */
    .archive-grid {
        display: block !important;
        padding: 0;
    }


    /* 4. Show the actual URL next to links so they know where to go online */
    .download-link::after {
        content: " (Available at: " attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
}

