body{
    font-family: 'Open Sans', sans-serif;
    max-width: 63em;
    margin: 0 auto;
    color: #333;
    background-color: white;
}

p {
    margin: 0;
}

#title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
}

#paper-title {
    font-family: 'Lato', sans-serif;
    font-size: xx-large;
    font-weight: bold;
    text-align: center;
}

.title-gradient {
    background: linear-gradient(90deg, #4379ff, #7f00ff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#authors{
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.author-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.author {
    margin-right: 0.6em;
    font-weight: 600;
    color: #666;
    font-size: large;
    text-decoration: none;
}

.author:hover {
    text-decoration: underline;
}

#authors .author:last-child {
    margin-right: 0;
}

.author sup {
    font-size: 15px;
    font-weight: normal;
    color: #999;
}

#affiliations {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.affiliation {
    margin-right: 0.6em;
    font-size: medium;
    color: #333;
}

#affiliations .affiliation:last-child {
    margin-right: 0;
}

.affiliation sup {
    font-size: 15px;
    font-weight: normal;
    color: #999;
}

#conference-name {
    margin-top: 1em;
    font-size: medium;
    font-weight: bold;
    color: #333;
    text-align: center;
}

#social-buttons {
    margin-top: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.social-button {
    margin: 0.3em 0.8em;
    font-size: medium;
    color: #333;
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 1px solid #333;
    padding: 0.3em 1.8em;
    border-radius: 0.6em;
    cursor: pointer;
}

.social-button:hover {
    box-shadow: 0 0 0 0.1em #333;
}

.social-button i {
    margin-right: 0.4em;
}

.social-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-button-disabled:hover {
    box-shadow: none;
}

#tldr-container {
    margin-top: 2em;
    text-align: center;
    font-style: italic;
}

#tldr-first {
    font-weight: bold;
}

.section-container {
    margin-top: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    font-size: x-large;
    font-weight: bold;
    text-align: center;
}

.section-sub-header {
    font-size: larger;
    font-weight: bold;
    align-self: normal;
    margin-top: 2em;
}

.section-text {
    margin-top: 1em;
}

.section-text a {
    color: #333;
}

.highlighted-text {
    color: #4379ff;
    font-weight: bold;
}

.section-image {
    margin-top: 2em;
    max-width: 100%;
    margin-bottom: 1em;
}

.section-image:last-child {
    margin-bottom: 2em;
}

.section-video {
    margin-top: 1em;
    max-width: 80%;
}

.youtube-iframe {
    margin-top: 1em;
    width: 672px;
    height: 378px;
    max-width: 100%;
}

.video-placeholder {
    margin-top: 1em;
    width: 80%;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    border: 2px dashed #999;
    border-radius: 0.6em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

.video-placeholder i {
    font-size: 3em;
    margin-bottom: 0.4em;
    color: #999;
}

.citation-container {
    background-color: #f8f8f8;
    padding: 1em 1em 0.3em 1em;
    margin-top: 1em;
    max-height: 200px;
    max-width: -webkit-fill-available;
    overflow: auto;
}

.citation-container pre,
.citation-container code {
    margin: 0;
    padding: 0;
    white-space: pre;
    line-height: 1.5;
}

#syb-demo {
    margin-top: 1.5em;
    width: 100%;
    max-width: 56em;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8em;
}

.syb-controls {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.syb-control-row {
    display: flex;
    align-items: center;
    gap: 0.8em;
    flex-wrap: wrap;
}

.syb-control-label {
    flex: 0 0 5em;
    font-size: small;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.syb-tab-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.syb-tab {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    color: #333;
    background: white;
    border: 1px solid #333;
    border-radius: 0.5em;
    padding: 0.3em 1em;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.syb-tab:hover:not(:disabled):not(.active) {
    background: #f0f0f0;
}

.syb-tab.active {
    background: #4379ff;
    color: white;
    border-color: #4379ff;
}

.syb-tab.active:hover:not(:disabled) {
    background: #6195ff;
    border-color: #6195ff;
}

.syb-tab:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#syb-iter,
#syb-vx,
#syb-vy,
#syb-vyaw {
    flex: 1;
    min-width: 12em;
    accent-color: #4379ff;
}

.syb-control-buttons {
    gap: 0.4em;
}

#syb-iter-value,
#syb-vx-val,
#syb-vy-val,
#syb-vyaw-val {
    font-size: small;
    color: #666;
    min-width: 4em;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

#syb-iter-value {
    min-width: 8em;
}

#syb-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #6aaee1;
    border-radius: 0.6em;
    overflow: hidden;
}

#syb-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

#syb-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#syb-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-style: italic;
    font-size: 1.05em;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.syb-note {
    font-size: small;
    color: #666;
    text-align: center;
    margin-top: 0.4em;
}

@media (max-width: 720px) {
    .syb-control-row {
        gap: 0.5em;
    }
    .syb-control-label {
        flex: 0 0 100%;
        font-size: 0.75em;
    }
    #syb-canvas-wrap {
        aspect-ratio: 4 / 3;
    }
}

#website-inspiration {
    margin-top: 3em;
    text-align: center;
    margin-bottom: 3em;
    font-size: small;
}

#website-inspiration a {
    color: #333;
}

@media (max-width: 720px) {
    body {
        padding: 0 1em;
    }
    .youtube-iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .section-video {
        max-width: 100%;
    }
}

.equation-box {
    margin: 1.1rem auto;
    padding: 0.8rem 1rem;
    max-width: 780px;
    overflow-x: auto;
    text-align: center;
    background: rgba(80, 120, 200, 0.06);
    border: 1px solid rgba(80, 120, 200, 0.15);
    border-radius: 12px;
}

