:root {
    --bg: #091521;
    --panel: rgba(10, 24, 39, 0.82);
    --panel-soft: rgba(255,255,255,0.08);
    --line: rgba(255,255,255,0.12);
    --text: #f8fbff;
    --muted: rgba(248, 251, 255, 0.78);
    --accent: #7dd3fc;
    --accent-strong: #2563eb;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background-color: #08131f;
    background-image: linear-gradient(180deg, #08131f 0%, #0d1e30 100%);
    background-repeat: no-repeat;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-shell.with-background {
    min-height: 100vh;
    background-color: #08131f;
    background-image: linear-gradient(rgba(5,15,25,0.58), rgba(5,15,25,0.86)), url('/ElbeMicrobiomeDB.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

main {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto 56px;
}

.hero {
    position: relative;
    padding: 72px 0 40px;
}

.hero-compact {
    padding: 40px 0 24px;
}

.hero-content {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-size: 0.8rem;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    margin: 0 0 12px;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
}

.detail-lead {
    max-width: 70ch;
}

.grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.24);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
}

h2 {
    margin: 0;
    font-size: 1.4rem;
}

.helper,
.form-note {
    color: var(--muted);
    line-height: 1.6;
}

.stacked-form {
    display: grid;
    gap: 14px;
}

label {
    color: #ffffff;
    font-weight: 600;
    display: grid;
    gap: 8px;
}

input,
select,
textarea,
button {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    padding: 14px 16px;
    font: inherit;
}

input,
select,
textarea {
    background: #ffffff;
    color: #000000;
}

select option {
    color: #000000;
    background: #ffffff;
}

textarea {
    min-height: 108px;
    resize: vertical;
}

button,
.button-link {
    appearance: none;
    background: linear-gradient(135deg, #0ea5e9, var(--accent-strong));
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
}

button.secondary,
.button-link.secondary {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
}

button.danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.small {
    width: auto;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.locked-panel {
    border: 1px dashed rgba(255,255,255,0.22);
    background: var(--panel-soft);
    border-radius: 18px;
    padding: 18px;
}

.map-panel {
    height: 420px;
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top;
}

th {
    color: var(--accent);
    font-size: 0.92rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.meta-grid .full {
    grid-column: 1 / -1;
}

dt {
    color: var(--accent);
    font-size: 0.88rem;
    margin-bottom: 6px;
}

dd {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
}

.site-footer {
    margin-top: 28px;
    padding: 8px 0 36px;
    text-align: center;
    color: var(--muted);
}

.partner-logos {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.partner-logos img {
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.large-logos img {
    max-height: 120px;
    max-width: 260px;
    image-rendering: -webkit-optimize-contrast;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(620px, calc(100% - 48px));
    margin: 36px auto;
}

.registry-header {
    align-items: flex-end;
}

.registry-summary {
    margin: 0;
    max-width: 44rem;
}

.registry-search-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.registry-search-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.registry-search-actions .button-link,
.registry-search-actions button {
    width: auto;
}

.clean-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.topbar-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.user-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--text);
}

.message-card {
    margin-bottom: 24px;
}

.home-link {
    color: var(--accent);
    text-decoration: none;
}

.home-link:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .registry-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    main,
    .hero-content {
        width: min(100% - 24px, 1280px);
    }

    .map-panel {
        height: 320px;
        min-height: 320px;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 720px) {
    .registry-search-form {
        grid-template-columns: 1fr;
    }

    .registry-search-actions {
        align-items: stretch;
    }

    .registry-search-actions .button-link,
    .registry-search-actions button {
        width: 100%;
    }
}

.metadata-section-heading {
    margin-top: 1rem;
}


/* Bot-trap field: available to simple automated form fillers, not human users. */
.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-main-title {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    line-height: 1.08;
}

.hero-main-title span {
    display: block;
}

.hero-brand-name {
    margin-bottom: 0.25em;
}

.hero-database-title {
    display: block;
}

.hero-content .lead {
    text-align: center;
}
