/* Space Telescope Research Program - shared stylesheet
   Extracted from the per-page inline <style> blocks so every page
   pulls from one source instead of duplicating ~100 lines each. */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #222;
}

header {
    background: #0d1b2a;
    color: white;
    padding: 20px 40px;
}

header h1 {
    margin: 0;
    font-size: 32px;
}

header p {
    margin: 5px 0 0;
    color: #c9d6df;
}

nav {
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.hero {
    background: linear-gradient(135deg, #1b263b, #415a77);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.hero h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.hero p {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
    line-height: 1.6;
}

/* Larger hero variant, used on the homepage only */
.hero-lg {
    padding: 80px 40px;
}

.hero-lg h2 {
    font-size: 42px;
}

.section {
    max-width: 1100px;
    margin: auto;
    padding: 50px 25px;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h3 {
    margin-top: 0;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}

.stat {
    margin: 20px;
}

.stat h2 {
    color: #1b263b;
    margin-bottom: 5px;
}

/* Team page */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.member {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.member h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.role {
    color: #415a77;
    font-weight: bold;
    margin-bottom: 15px;
}

.email {
    margin-top: 15px;
}

/* Publications page */
.publication {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.publication h3 {
    margin-top: 0;
}

.publication h3 a {
    color: #1b263b;
    text-decoration: none;
}

.publication h3 a:hover {
    color: #415a77;
    text-decoration: underline;
}

.meta {
    color: #415a77;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Contact page */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-card h3 {
    margin-top: 0;
}

.contact-card a {
    color: #1b4f91;
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

th {
    background: #eef2f7;
}

/* Projects page */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project h3 {
    margin-top: 0;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    background: #e8eef5;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
}

.lead {
    color: #415a77;
    font-weight: bold;
    margin-bottom: 15px;
}

/* About page */
.timeline {
    border-left: 3px solid #415a77;
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 25px;
}

.timeline-item h3 {
    margin-bottom: 5px;
}

footer {
    background: #0d1b2a;
    color: white;
    padding: 30px;
    text-align: center;
}

footer a {
    color: #9ec5fe;
    text-decoration: none;
}
