/* Invariant Institute Website Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.powered-by {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.powered-by a {
    color: white;
    text-decoration: underline;
}

nav {
    background-color: #333;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 2rem;
}

h3 {
    color: #764ba2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

h4 {
    color: #555;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th, table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #667eea;
    color: white;
    font-weight: bold;
}

table tr:hover {
    background-color: #f5f5f5;
}

.paper-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.paper-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.paper-item h4 {
    margin-top: 0;
}

.paper-item p {
    margin: 0.5rem 0;
}

.paper-item a {
    color: #667eea;
    text-decoration: none;
    margin-right: 1rem;
}

.paper-item a:hover {
    text-decoration: underline;
}

ul, ol {
    margin-left: 2rem;
    margin-top: 1rem;
}

li {
    margin: 0.5rem 0;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* Status badges */
.status-closed {
    color: #28a745;
    font-weight: bold;
}

.status-conditional {
    color: #ffc107;
    font-weight: bold;
}

.status-obstructed {
    color: #dc3545;
    font-weight: bold;
}

.status-formulation {
    color: #17a2b8;
    font-weight: bold;
}
