/* ELIXIR University of Bologna node — extracted from the live elixir.unibo.it
   placeholder page (inline <style> block) and extended with page-content
   components (cards, tables, badges, person boxes, news items) using the
   same palette: navy #00233b, accent blue #0077be, light backgrounds. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* favicon asset generated from the DNA/X mark cropped out of img/elixir_bologna.png */
/* brand-bar title updated to "ELIXIR University of Bologna" for consistency with the page <title> and node-title H1 */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1e2b3c;
    line-height: 1.5;
}

a { color: #0077be; }

.top-bar {
    background-color: #00233b;
    color: white;
    font-size: 0.9rem;
    padding: 0;
    border-bottom: 1px solid #1a3f5a;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.top-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.top-nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 1rem;
    display: inline-block;
}

.top-nav a:hover { color: white; background: rgba(255,255,255,0.06); }
.top-nav a.active { color: white; border-bottom: 2px solid #0077be; }

.brand-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeef2;
    padding: 1rem 0;
}

.brand-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand-logo-elixir img { height: 56px; width: auto; }
.brand-logo-unibo img { height: 56px; width: auto; }

.brand-title {
    flex: 1;
    text-align: center;
    font-size: 2.1rem;
    font-weight: 700;
    color: #00233b;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.node-identity {
    background: linear-gradient(145deg, #f8fbfe 0%, #ecf3f9 100%);
    border-bottom: 1px solid #d6e2ed;
}

.node-identity .container { padding-top: 2rem; padding-bottom: 2rem; }

.breadcrumb { font-size: 0.85rem; color: #5a6f7e; margin-bottom: 0.8rem; }
.breadcrumb a { color: #0077be; text-decoration: none; }

.node-title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.node-title h1 { font-size: 1.6rem; font-weight: 600; color: #00233b; letter-spacing: -0.02em; }

.page-intro { margin-top: 0.8rem; font-size: 1.1rem; max-width: 760px; color: #1e405e; }

/* main content area */
.content { padding: 2.5rem 0; }

.content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00233b;
    margin: 2rem 0 1rem 0;
    padding-left: 0.7rem;
    border-left: 4px solid #0077be;
}
.content h2:first-child { margin-top: 0; }

.content p { margin-bottom: 1rem; color: #1e2b3c; }

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1rem 0 1.5rem 0;
}

/* fixed 3-columns x 2-rows layout, e.g. the Home page "What you'll find" grid */
.card-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 1rem 0 1.5rem 0;
}
.card-grid-3col .card { margin: 0; }

.card {
    flex: 1 1 260px;
    background: #f8fbfe;
    border: 1px solid #d6e2ed;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
}

.card h3 { color: #00233b; font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; color: #3a4b5c; margin-bottom: 0; }

table.node-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1.8rem 0;
}

table.node-table th, table.node-table td {
    text-align: left;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #e3eaf1;
    vertical-align: top;
    font-size: 0.95rem;
}

table.node-table th { background: #f0f6fc; color: #00233b; }

.badge-biotools {
    display: inline-block;
    background: #0077be;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.1rem 0.6rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.callout {
    background: #f8fbfe;
    border: 1px solid #cde0f0;
    border-left: 4px solid #0077be;
    border-radius: 8px;
    padding: 1rem 1.3rem;
    margin: 1.2rem 0;
    font-size: 0.95rem;
    color: #1e405e;
}

.person-box {
    border: 1px solid #d6e2ed;
    border-radius: 12px;
    padding: 1rem 1.3rem;
    margin-bottom: 1rem;
    background: #f8fbfe;
}
.person-box h3 { margin: 0 0 0.2rem 0; color: #00233b; font-size: 1.05rem; }
.person-box .role { color: #0077be; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.person-box p { font-size: 0.93rem; color: #3a4b5c; margin-bottom: 0; }
.person-box .email { font-size: 0.9rem; margin-top: 0.3rem; }
.person-box .email a { color: #0077be; text-decoration: none; }
.person-box .email a:hover { text-decoration: underline; }

.news-item { border-bottom: 1px solid #e3eaf1; padding: 1.1rem 0; }
.news-item .date-tag {
    display: inline-block;
    background: #00233b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.4rem;
}
.news-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.news-item h3 a { color: #00233b; text-decoration: none; }
.news-item h3 a:hover { color: #0077be; }

.network-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.network-links a {
    color: #00233b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 1rem;
    background: #ecf3f9;
    border-radius: 40px;
    border: 1px solid #bdd8ec;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}
.network-links a:hover { background: #dae9f5; }

.footer {
    background: #00233b;
    color: #d0dfee;
    padding: 2.5rem 0 1.5rem;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.footer a { color: #b6d0e6; text-decoration: none; }
.footer h5 { color: white; margin-bottom: 1rem; }

.copyright {
    border-top: 1px solid #154a6e;
    padding-top: 1.5rem;
    text-align: center;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .node-title h1 { font-size: 1.3rem; }
    .brand-title { font-size: 1.5rem; }
    .card-grid-3col { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 980px) {
    .card-grid-3col { grid-template-columns: repeat(2, 1fr); }
}
