* {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

body, p, li {
  font-family: 'Lato', sans-serif;
}

code, pre {
  font-family: 'Fira Code', monospace;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff, #c3c3f3, #0046f6);
    background-size: 400% 400%;
}

header {
    top: 20px;
    background-color: #15256d;
    display: flex;
    justify-content: center;
    border-bottom: silver 5px solid;
}

.nav-bar {
    height: 3rem;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 1rem;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-bar li {
    display: inline-flex;
    flex-direction: column;
    padding: 0rem 1rem;
    color: white;
}

.nav-bar a {
    color: white;
    text-decoration: none;
}

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

.page-header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.project-page-link h3 {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.leaderboards-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 1rem;
}

.leaderboards-blurb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60%;
    max-width: 40rem;
}

.leaderboards-photo-container {
    display: flex;
    justify-content: center;
    align-content: center;
    padding: 1rem;
    margin: 1rem;
    width: 80%;
}

.leaderboards-photo-container img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 10px solid #15256d;
    border-radius: 25px;
}

.leaderboards-blurb {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    max-width: 80%;
}

.leaderboards-blurb h2 {
    text-align: center;
    padding-bottom: 1rem;
}

.leaderboards-blurb li {
    padding: 0.25rem;
}

.footer {
    display: flex;
    justify-content: center;
    align-content: center;
    height: 4em;
    background-color: #15256d;
    position: relative;
    border-top: silver 5px solid;
}

.copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.copyright p {
    color: silver;
    font-size: 1.25rem;
}

@media only screen and (max-width: 769px) {
    
    .leaderboards-blurb {
        width: 80%;
    }

}

/* Footer at the bottom: on a short page it sits at the foot of the window, on a long page after the content */
body {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  padding-bottom: calc(4em + 5px); /* room for the footer, which is 4em tall plus its 5px border */
}

footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ---- lb-pipeline-styles (moved from inline <style>) ---- */
.lb-section { width: calc(100% - 4rem); max-width: 1200px; margin: 1rem 2rem 2rem; padding: 2rem; background: #ffffff; border: #0046f6 5px solid; border-radius: 0.5rem; box-sizing: border-box; color: #1b2a5a; }
.lb-section h2 { text-align: center; color: #15256d; font-family: 'Poppins', sans-serif; margin-bottom: 0.75rem; }
.lb-section h3 { text-align: center; color: #15256d; font-family: 'Poppins', sans-serif; font-size: 1.2rem; margin: 2rem 0 1rem; }
.lb-intro, .lb-note { max-width: 900px; margin: 0 auto 1.25rem; line-height: 1.6; }
.lb-chain { display: flex; align-items: stretch; justify-content: center; gap: 0.5rem; }
.lb-node { flex: 1 1 0; min-width: 0; padding: 0.75rem; background: #eef2ff; border: 2px solid slateblue; border-radius: 0.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.3rem; }
.lb-node strong { color: #15256d; font-size: 0.95rem; }
.lb-node span { color: #2645c5; font-size: 0.8rem; line-height: 1.35; }
.lb-node code { background: #ffffff; border: 1px solid #c3c3f3; border-radius: 0.25rem; padding: 0.1rem 0.3rem; font-size: 0.74rem; color: #15256d; overflow-wrap: anywhere; }
.lb-arrow { align-self: center; color: #0046f6; font-size: 1.4rem; font-weight: 700; }
.lb-outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.lb-out { padding: 1rem 1.25rem; border-radius: 0.5rem; background: #f6f7ff; border-left: 5px solid; line-height: 1.5; font-size: 0.93rem; }
.lb-out h4 { margin: 0 0 0.4rem; color: #15256d; font-family: 'Poppins', sans-serif; font-size: 1.02rem; }
.lb-out.web { border-color: #3b82f6; } .lb-out.rew { border-color: #22c55e; }
.lb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.lb-card { padding: 1rem 1.25rem; background: #eef2ff; border-radius: 0.5rem; border-top: 4px solid #0046f6; line-height: 1.5; font-size: 0.93rem; }
.lb-card h4 { margin: 0 0 0.4rem; color: #15256d; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.lb-section code { font-family: 'Fira Code', monospace; font-size: 0.78rem; background: #eef2ff; padding: 0.05rem 0.3rem; border-radius: 0.2rem; overflow-wrap: anywhere; }
.lb-cards-4 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.lb-table-wrap { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.lb-table th { background: #15256d; color: #ffffff; text-align: left; padding: 0.6rem 0.7rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.8rem; }
.lb-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #d6dcf5; vertical-align: top; line-height: 1.45; }
.lb-table tr:nth-child(even) td { background: #f6f7ff; }
.lb-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.lb-period { border: 3px solid slateblue; border-radius: 0.5rem; overflow: hidden; }
.lb-period h4 { margin: 0; padding: 0.7rem 1rem; background: #15256d; color: #ffffff; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.lb-period ol { margin: 0; padding: 0.9rem 1rem 1rem 2.2rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.9rem; line-height: 1.45; }
.lb-timeline { list-style: none; max-width: 900px; margin: 0 auto; padding: 0 0 0 1.25rem; border-left: 4px solid #0046f6; display: flex; flex-direction: column; gap: 0.9rem; }
.lb-timeline li { line-height: 1.5; font-size: 0.93rem; position: relative; }
.lb-timeline li::before { content: ""; position: absolute; left: -1.7rem; top: 0.35rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #0046f6; }
.lb-timeline b { color: #15256d; }
.lb-refs { text-align: center; font-size: 0.9rem; line-height: 1.8; margin-top: 1.5rem; }
.lb-refs a { color: #0056b3; font-weight: 700; }
@media (max-width: 900px) { .lb-chain { flex-direction: column; } .lb-arrow { transform: rotate(90deg); } }
@media (max-width: 768px) {
  .lb-section { width: calc(100% - 1rem); margin: 1rem 0.5rem; padding: 1rem 0.75rem; border-width: 3px; }
  .lb-table thead { display: none; }
  .lb-table, .lb-table tbody, .lb-table tr, .lb-table td { display: block; width: 100%; box-sizing: border-box; }
  .lb-table tr { border: 2px solid slateblue; border-radius: 0.5rem; margin-bottom: 0.75rem; overflow: hidden; }
  .lb-table td { padding: 0.5rem 0.75rem; }
  .lb-table td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.75rem; color: #15256d; margin-bottom: 0.2rem; }
}
.lb-note.lb-note-gap { margin-top: 1.25rem; }
