/* Center the whole landing page; the menu continues to overlay the content. */
body.research-landing {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}
.research-landing > header,
.research-landing > .demo { flex-shrink: 0; }
.research-landing > .layout.research-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
}
.research-layout main.research-main {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 32px 28px;
    text-align: center;
}
.research-main > .notice { margin-inline: auto; }
.research-home { width: 100%; max-width: 740px; margin-inline: auto; }
.layout .research-home h1 { font-size: 38px; margin: 0 0 20px; }
.research-intro p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 14px;
    text-wrap: pretty;
}
.research-database-section,
.research-membership { border-top: 1px solid #c8beab; margin-top: 24px; padding-top: 20px; }
.layout .research-home h2 { font-size: 26px; margin: 0 0 14px; }
.research-databases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
}
.research-database {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    min-height: 74px;
    padding: 12px 20px;
    border: 1px solid #a39783;
    background: #f7f3e9;
    font-size: 20px;
    line-height: 1.25;
    color: #681f1b;
    text-decoration: none;
    overflow-wrap: anywhere;
}
a.research-database:hover,
a.research-database:focus-visible { border-color: #681f1b; background: #e5ddcd; }
.research-database-upcoming { color: #665d4b; background: transparent; }
.research-database-upcoming small { font-size: 13px; }
.research-membership p { max-width: 640px; margin: 0 auto 16px; font-size: 16px; line-height: 1.6; }
.research-membership-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.layout .research-membership-links a { display: inline-block; padding: 8px 22px; font-size: 16px; text-decoration: none; }
.research-membership-links .primary:hover { background: #501814; }
.research-membership-links .secondary:hover { background: #e5ddcd; }
@media (max-width: 600px) {
    .research-layout main.research-main { padding: 26px 20px; }
    .layout .research-home h1 { font-size: 32px; margin-bottom: 18px; }
    .research-database-section, .research-membership { margin-top: 20px; padding-top: 18px; }
}
