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

body {
    min-height: 100dvh;
    background-color: whitesmoke;
    color: black;
    font-size: 3rem;
    font-family: system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0;
}

main {
    padding: 1rem;
    flex: 1;
}

section {
    display: flex;
    flex-flow: column;
    gap: 1rem;
}

h1,
h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: rgb(180, 2, 2);
}

a:hover {
    opacity: .85;
}

.study-actions {
    font-size: 1rem;
}

.study-actions form {
    display: inline;
}

.report-action-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgb(180, 2, 2);
    cursor: pointer;
    font: inherit;
}

.report-action-button:hover {
    opacity: .85;
}

.simple-page-header {
    max-width: 980px;
    margin: 2rem auto 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #f3f8ff 0%, #eef8f3 100%);
    box-shadow: 0 10px 25px rgba(30, 37, 51, 0.04);
}

.simple-page-header h1 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: #1e2533;
}

.simple-page-header p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #334155;
}

.simple-page-section {
    max-width: 980px;
    margin: 0 auto 2rem;
    padding: 1.5rem 1rem 0;
    text-align: center;
}

.simple-page-section h2 {
    margin-bottom: 1rem;
    color: #1e2533;
}

.simple-page-section p {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
}

.dashboard-header {
    max-width: 1100px;
    margin: 2rem auto 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #f3f8ff 0%, #eef8f3 100%);
    box-shadow: 0 10px 25px rgba(30, 37, 51, 0.04);
}

.dashboard-header h1 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: #1e2533;
}

.dashboard-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #334155;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.dashboard-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 1.5rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #dfe7f1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    color: #1e2533;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.dashboard-panel h2 {
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    line-height: 1.3;
    color: #1e2533;
}

.dashboard-panel p {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

.team-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.team-name-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1.2;
}

.team-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e2533;
}

.team-affiliation {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
}

.orcid-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.orcid-link img {
    height: 0.82rem;
    width: auto;
    vertical-align: middle;
}

.banner {
    display: block;
    width: 100%;
    max-width: 800px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #eaf4ff 0%, #f7fbff 45%, #eef5ef 100%);
    box-shadow: 0 20px 45px rgba(30, 37, 51, 0.08);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eyebrow {
    display: inline-block;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #dfeeff;
    color: #1d4f91;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    color: #1e2533;
}

.hero-copy p {
    max-width: 640px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #334155;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    background: #1d4f91;
    color: white;
    box-shadow: 0 10px 25px rgba(29, 79, 145, 0.2);
}

.secondary-button {
    background: white;
    color: #1e2533;
    border: 1px solid #dbe3ee;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.hero-panel {
    display: flex;
    justify-content: center;
}

.feature-card {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(30, 37, 51, 0.95);
    color: white;
    box-shadow: 0 18px 35px rgba(30, 37, 51, 0.14);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: white;
}

.feature-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-card li::before {
    content: '✓';
    color: #8fe3b0;
    margin-right: 0.6rem;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.feature-box {
    padding: 1.5rem;
    border-radius: 18px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.feature-box h3 {
    margin-bottom: 0.75rem;
    color: #1e2533;
}

.feature-box p {
    color: #475569;
    line-height: 1.7;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;    
}

.form-with-validation {
    width: min(100%, 900px);
    margin: 0 auto;
    font-size: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-flow: column;
    align-items: stretch;
    gap: 1.25rem;
    background: white;
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.new-study-page {
    max-width: 980px;
    margin: 0 auto;
}

.new-study-page > h1 {
    max-width: 900px;
    margin: 1rem auto;
    color: #1e2533;
}

.form-header {
    margin-bottom: 1.25rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3f8ff 0%, #eef8f3 100%);
    box-shadow: 0 10px 25px rgba(30, 37, 51, 0.04);
}


.reviewers-page {
    max-width: 900px;
    margin: 1rem auto 2rem;
    color: #1e2533;
}

.reviewers-header {
    margin-bottom: 1.25rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3f8ff 0%, #eef8f3 100%);
    box-shadow: 0 10px 25px rgba(30, 37, 51, 0.04);
}

.reviewers-eyebrow {
    margin-bottom: 0.5rem;
    color: #1d4f91;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reviewers-header h1 {
    margin-bottom: 0.45rem;
    font-size: 2.25rem;
}

.reviewers-header h2 {
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.reviewers-title {
    max-width: 720px;
    margin: 0 auto;
    color: #475569;
    line-height: 1.6;
}

.review-page {
    max-width: 980px;
    margin: 1rem auto 2rem;
}

.review-citation {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

.review-study-info {
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3f8ff 0%, #eef8f3 100%);
    box-shadow: 0 10px 25px rgba(30, 37, 51, 0.04);
}

.review-study-info > p {
    margin-bottom: 1rem;
    color: #475569;
}

.review-study-info .study-summary-layout {
    justify-content: center;
}

.reviewer-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #dfe7f1;
}

.reviewer-summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
    background: white;
}

.reviewer-summary span {
    color: #64748b;
    font-size: 0.85rem;
}

.reviewer-summary strong {
    color: #1e2533;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

.reviewer-list {
    grid-column: 1 / -1;
}

.reviewer-form {
    padding: 1.5rem;
    background: white;
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.reviewer-form-intro {
    margin-bottom: 1.25rem;
}

.reviewer-form-intro h2 {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.reviewer-form-intro p {
    color: #475569;
}

#formset-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reviewer-form .form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.reviewer-form .form-row label {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.reviewer-form input[type="email"] {
    width: min(100%, 480px);
    padding: 0.7rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.reviewer-form input[type="email"]:focus {
    outline: 3px solid rgba(29, 79, 145, 0.18);
    border-color: #1d4f91;
}

.reviewer-form .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.reviewer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-with-validation fieldset {
    min-width: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
}

.form-with-validation legend {
    padding: 0 0.5rem;
    color: #1e2533;
    font-size: 1.35rem;
    font-weight: 700;
}

.form-with-validation div {
    display: flex;
    flex-flow: row;
    align-items: center;
    gap: 0.5rem;
}

.form-with-validation .specificity-sentence {
    display: block;
}

.form-with-validation input {
    padding: 0.25rem;
    max-width: 300px;
}

.form-submit {
    align-self: center;
    padding: 0.5rem;
    border-radius: 10px;
    width: 125px;
}

@media (max-width: 640px) {
    .form-with-validation {
        padding: 1rem;
    }

    .form-with-validation fieldset {
        padding: 1rem;
    }

    .form-with-validation div {
        align-items: flex-start;
        flex-direction: column;
    }

    .reviewers-header {
        padding: 1.35rem 1rem;
    }

    .reviewers-header h1 {
        font-size: 1.9rem;
    }

    .reviewer-summary {
        grid-template-columns: 1fr;
    }

    .reviewer-list {
        grid-column: auto;
    }

    .reviewer-form {
        padding: 1rem;
    }

    .reviewer-actions {
        flex-direction: column;
    }

    .reviewer-actions button {
        width: 100%;
    }
}

.helptext {
    font-size: 1rem;
    margin-left: 1rem;
}

.helptext ul {
    list-style-type: none;
}

.errorlist {
    color: #F00;
    font-size: 1rem;
    margin-left: 2rem;
}

.errorlist li::marker {
    content: '🚨 ';
}

/* Navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 2rem;
    height: 70px;

    background: #1e2533;
    color: white;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-link {
    color: white;
    text-decoration: none;

    padding: .75rem 1rem;
    border-radius: 6px;

    transition: background .2s ease;
}

.nav-link:hover {
    background: #4a5568;
}

.username {
    color: #e2e8f0;
    margin-right: .5rem;
}

.logout-button {
    color: white;
    background: transparent;
    border: none;

    padding: .75rem 1rem;
    border-radius: 6px;

    cursor: pointer;
    font: inherit;

    transition: background .2s ease;
}

.logout-button:hover {
    background: #c53030;
}

/* Footer */
footer {
  display: flex;
  justify-content: center;
  padding: 5px;
  background-color: #1e2533;
  color: white;
}

/* Epidemiology Table */

.epi-table {
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 1rem;
    width: auto;
    display: inline-table;
    align-self: flex-start;
}

.epi-table th,
.epi-table td {
    border: 1px solid #444;
    padding: 8px 12px;
    text-align: center;
    min-width: 60px;
}

.epi-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.epi-table input {
    width: 70px;
    text-align: center;
}