/* PICO-Cluster Project — custom styles */

/* Banner override for dark space theme */
#banner {
    background: #0a0e1a url("../images/banner.jpg") center center / cover no-repeat;
    position: relative;
    height: auto;
    min-height: 10em;
}
#banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 25, 0.72);
}
#banner header {
    position: relative;
    z-index: 1;
    padding: 5em 0 3.5em 0;
    background: none;
}
#banner header h2 {
    font-size: 2.8em;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
#banner header h2 em {
    color: #7ec8e3;
    font-style: normal;
}
#banner header p {
    color: #c8d8e8;
    font-size: 1.15em;
    margin: 0.6em 0 1.4em;
    line-height: 1.6;
}
#banner .button {
    background: #2a72b5;
    border-color: #2a72b5;
    color: #fff;
}
#banner .button:hover {
    background: #3a88cc;
    border-color: #3a88cc;
}

/* Accentuate highlight icons */
.box.highlight i.icon.major {
    color: #2a72b5;
}

/* Circular image used in place of a highlight icon */
.highlight-img-icon {
    display: inline-block;
    width: 5em;
    height: 5em;
    border-radius: 100%;
    object-fit: cover;
    box-shadow: 0 0 0 7px white, 0 0 0 8px #e0e0e0;
    margin: 0 0 2em 0;
}

/* Cluster/science table */
table.cluster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    margin-top: 1.5em;
}
table.cluster-table th {
    background: #2a72b5;
    color: #fff;
    padding: 0.55em 0.75em;
    text-align: left;
}
table.cluster-table td {
    padding: 0.45em 0.75em;
    border-bottom: 1px solid #dde4ee;
}
table.cluster-table tr:nth-child(even) td {
    background: #f2f5fa;
}

/* Resolution table */
table.res-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    margin-top: 1.2em;
}
table.res-table th {
    background: #1a3a5c;
    color: #fff;
    padding: 0.55em 0.75em;
}
table.res-table td {
    padding: 0.45em 0.75em;
    border-bottom: 1px solid #dde4ee;
}
table.res-table tr:nth-child(even) td {
    background: #f2f5fa;
}

/* Figure gallery */
.figure-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2em;
    margin-top: 1.5em;
}
.fig-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.fig-card embed, .fig-card iframe {
    width: 100%;
    height: 280px;
    border: none;
    display: block;
    background: #eee;
}
.fig-card img {
    width: 100%;
    height: auto;
    display: block;
}
.fig-card .fig-caption {
    padding: 0.85em 1em;
    font-size: 0.88em;
    color: #555;
    line-height: 1.5;
    flex: 1;
}
.fig-card .fig-caption strong {
    display: block;
    color: #1a3a5c;
    margin-bottom: 0.3em;
    font-size: 0.95em;
}
.fig-card .fig-link {
    display: block;
    padding: 0.55em 1em;
    background: #f4f7fb;
    font-size: 0.82em;
    color: #2a72b5;
    text-decoration: none;
    border-top: 1px solid #e0e8f0;
}
.fig-card .fig-link:hover { background: #e6eef8; }

/* People cards */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.8em;
    margin-top: 1.5em;
}
.person-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.4em 1.2em;
    text-align: center;
    transition: box-shadow 0.2s;
}
.person-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.person-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.9em;
    background: #dde4ee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.person-initials {
    width: 100%;
    height: 100%;
    background: #2a72b5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
}
.person-card h3 {
    font-size: 1.0em;
    color: #1a3a5c;
    margin-bottom: 0.3em;
}
.person-card h3 a {
    color: #1a3a5c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.person-card h3 a:hover {
    border-bottom-color: #2a72b5;
    color: #2a72b5;
}
.person-card .affil {
    font-size: 0.82em;
    color: #666;
    line-height: 1.5;
}

/* Science goal list */
ol.science-goals {
    list-style: decimal;
    padding-left: 1.5em;
    margin-top: 1em;
}
ol.science-goals > li {
    margin-bottom: 1.4em;
    line-height: 1.65;
    color: #444;
}
ol.science-goals > li strong {
    color: #1a3a5c;
    display: block;
    margin-bottom: 0.2em;
}

/* Publications list */
.pub-list {
    list-style: none;
    padding: 0;
    margin-top: 1em;
}
ol.pub-list {
    list-style: decimal;
    padding-left: 1.8em;
}
.pub-list li {
    padding: 1.1em 1.3em;
    background: #fff;
    border-left: 4px solid #2a72b5;
    margin-bottom: 1em;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    line-height: 1.6;
    font-size: 0.93em;
}
.pub-list li .pub-title {
    font-weight: 600;
    color: #1a3a5c;
    display: block;
    margin-bottom: 0.25em;
}
.pub-list li .pub-authors {
    color: #555;
    font-size: 0.92em;
}
.pub-list li .pub-journal {
    color: #2a72b5;
    font-size: 0.88em;
    margin-top: 0.3em;
    display: block;
}
.pub-list li a {
    color: #2a72b5;
}

/* Footer links section on style3 (blue) background */
.wrapper.style3 h3 {
    color: #fff;
}
.wrapper.style3 p {
    color: rgba(255,255,255,0.75);
}
.wrapper.style3 ul.links li a {
    color: rgba(255,255,255,0.85);
    border-bottom-color: rgba(255,255,255,0.2);
}
.wrapper.style3 ul.links li a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.6);
}

/* Abstract box */
.abstract-box {
    background: #fff;
    border-left: 4px solid #2a72b5;
    padding: 1.5em 1.8em;
    margin: 1.5em 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #444;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Key numbers banner */
.key-numbers {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2em 0;
}
.key-number {
    text-align: center;
    min-width: 120px;
}
.key-number .num {
    font-size: 2.5em;
    font-weight: 600;
    color: #2a72b5;
    display: block;
    line-height: 1;
}
.key-number .label {
    font-size: 0.82em;
    color: #666;
    margin-top: 0.3em;
}

/* News section */
.news-list {
    list-style: none;
    padding: 0;
}
.news-list li {
    padding: 0.8em 0;
    border-bottom: 1px solid #e8edf4;
    display: flex;
    gap: 1.2em;
    align-items: flex-start;
}
.news-list li:last-child { border-bottom: none; }
.news-list .news-date {
    min-width: 100px;
    font-size: 0.82em;
    color: #888;
    padding-top: 0.15em;
}
.news-list .news-text {
    font-size: 0.93em;
    color: #444;
    line-height: 1.5;
}
