@import url(fontawesome-all.min.css);
@import 'https://fonts.googleapis.com/css?family=Source Code Pro';
@import 'https://fonts.googleapis.com/css?family=Open Sans';
@import "myriad_pro.css";

body {
    font-family: "Myriad-Pro", "Open Sans", sans-serif;
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
    font-variant: small-caps;
}

.dcliport {
    font-variant: small-caps;
}

.dvima {
    /* TODO specific VIMA font */
    /* font-variant: small-caps; */
}


.teaser .hero-body {
    padding-top: 0;
    padding-bottom: 3rem;
}

.teaser {
    font-family: "Myriad-Pro", "Open Sans", sans-serif;
}

.teaser video {
    object-fit: fill;

}

#glass {
    margin-left: -10px;
}

.publication-title {}

.publication-banner {
    max-height: parent;

}

.publication-banner video {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    object-fit: fit;
}

.publication-header .hero-body {}

.publication-title {
    font-family: "Myriad-Pro", "Open Sans", sans-serif;
}

.publication-authors {
    font-family: "Myriad-Pro", "Open Sans", sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {}

.publication-authors a {
    color: hsl(204, 86%, 53%) !important;
}

.conference-authors a {
    color: hsl(0, 0%, 16%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
    display: inline-block;
}

.publication-banner img {}

.publication-authors {
    /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {}

.results-carousel {
    overflow: hidden;
}

.results-carousel .item {
    margin: 5px;
    overflow: hidden;
    border: 1px solid #bbb;
    border-radius: 10px;
    padding: 0;
    font-size: 0;
}

.results-carousel video {
    margin: 0;
}


.wrong-panel {
    background: #cc0606;
    border-radius: 10px;
}

.interpolation-panel {
    background: #f5f5f5;
    border-radius: 10px;
}

.interpolation-panel .interpolation-image {
    width: 100vh;
    background-size: cover;
    border-radius: 5px;
}

.interpolation-video-column {}

.interpolation-panel .slider {
    margin: 0 !important;
}

.interpolation-panel .slider {
    margin: 0 !important;
}

#interpolation-image-wrapper {
    width: 100%;
}

#interpolation-image-wrapper img {
    border-radius: 5px;
}

#interpolation-image img {
    padding: 0;
    display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
}

.dropdown-item {
    white-space: pre-wrap;
}






/* custom */


.custom-heading {
    font-weight: 800;
    /* 更粗的字体 */
    color: #2a2a2a;
    /* 深黑灰色（更清晰） */
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    /* 可选字体，或继承 Bulma 默认 */
    letter-spacing: 0.5px;
    /* 稍微拉开字符间距更稳重 */
    background-color: #f5f5f5;
    /* 灰色背景 */
    padding: 15px 30px;
    /* 内边距 */
    display: block;
    /* 让背景占满整行 */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 30px);
    padding-right: calc(50vw - 50% + 30px);

}

.custom-heading.no-bg {
    background-color: transparent !important;
}






.section-title {
    font-weight: 800;
    color: #2a2a2a;
    /* 深黑灰色（更清晰） */
    font-size: 2rem;
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    /* 可选字体，或继承 Bulma 默认 */
    letter-spacing: 0.3px;
    /* 稍微拉开字符间距更稳重 */
    text-align: left !important;
    /* 明确左对齐 */
    margin-bottom: 0.2rem;
    /* 控制标题和线之间的距离 */
}

.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    /* 细浅灰线 */
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}



.sidebar {
    position: sticky;
}

@media screen and (max-width: 1000px) {
    d-contents {
        display: none;
    }
}




html {
    scroll-behavior: smooth;
}

d-contents {
    display: block;
    position: fixed;
    /* 固定在页面左侧 */
    top: 150px;
    /* 与页面顶部间距 */
    left: 0;
    width: 220px;
    font-weight: 600;
    font-size: 18px;
    height: 100vh;
    /* 占满视口高度 */
    padding: 1.5em;
    /* background-color: white; */
    /* border-right: none; */
    /* box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05); */
    overflow-y: auto;
    z-index: 1000;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;

    /* ✅ 删除 grid/flex 相关属性 */
    /* max-width, grid-column, grid-row, justify-self, etc. 都不需要 */
}

d-contents nav {
    display: block;
}

d-contents nav h4 {
    margin-top: 0;
    margin-bottom: 1em;
}

d-contents nav div {
    color: rgba(91, 184, 73, 0.8);
    font-weight: bold;
}

d-contents nav a {
    color: rgba(0, 0, 0, 0.8);
    border-bottom: none;
    text-decoration: none;
}

d-contents nav a.active {
    color: #1d4ed8;
    font-weight: bold;
    /* text-decoration: underline; */
}

d-contents li {
    list-style-type: none;
}

d-contents ul {
    padding-left: 1em;
}

d-contents nav ul li {
    margin-bottom: 0.25em;
}

d-contents nav a:hover {
    /* text-decoration: underline solid rgba(0, 0, 0, 0.6); */
    text-decoration: solid rgba(0, 0, 0, 0.6);

}

d-contents nav ul {
    margin-top: 0;
    margin-bottom: 6px;
}

d-contents nav>div {
    display: block;
    outline: none;
    margin-bottom: 0.5em;
}

d-contents nav>div>a {
    font-size: 13px;
    font-weight: 600;
}

d-contents nav>div>a:hover,
d-contents nav>ul>li>a:hover {
    text-decoration: none;
}

/* 

.reasoning-block {
    text-align: justify !important;
    font-size: 1.05em;
    line-height: 1.6;
    word-break: break-word;
}
 */


.reasoning-block {
    text-align: left;
    font-size: 1.05em;
    line-height: 1.6;
}

.justified-output {
    text-align: justify;
    text-justify: inter-word;
}

.tag-label {
    color: #888888;
    /* 浅灰色 */
    font-family: monospace;
}


.bbox-label {
    color: #ff6b81;
    font-family: monospace;
}




.zoomin-label {
    color: #6a7bff;
    font-family: monospace;
}

.tool-call-container {
    background-color: #ebf0ff;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    font-family: monospace;
    color: #6a7bff;
    display: block;
    white-space: pre-wrap;
}


.tool-call-container .tag-label {
    color: inherit;
}


.tool-call-block {
    font-family: monospace;
    /* 使用等宽字体以模仿代码块 */
    background-color: #e0f2ff;
    /* 浅蓝色背景 */
    border: 1px solid #90caf9;
    /* 蓝色边框 */
    padding: 10px 15px;
    /* 内部填充 */
    border-radius: 5px;
    /* 圆角 */
    color: #1565c0;
    /* 蓝色字体颜色 */
    display: inline-block;
    /* 确保背景只包裹内容 */
    white-space: pre-wrap;
    /* 保持换行和空格 */
}

.tool-tag-label {
    font-weight: bold;
    color: #004d40;
    /* 标签的颜色可以略微不同，这里使用深青色 */
}

.json-content {
    color: #1565c0;
    /* JSON内容的颜色 */
    /* padding-left: 10px; */
    /* display: block; */
}



.subsection-title {
    font-weight: 700;
    color: #4a4a4a;
    font-size: 1.75rem;
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    text-align: center !important;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.section-spacer {
    height: 3rem;
    display: block;
}

/* Leaderboard Table Styles */
#results,
#accuracy-results {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 0.95em;
    font-family: 'Open Sans', sans-serif;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); */
    border-radius: 8px;
    overflow: hidden;
    /* For rounded corners */
}

#results thead tr,
#accuracy-results thead tr {
    background-color: #f2f2f2;
    color: #333333;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

#results th,
#results td,
#accuracy-results th,
#accuracy-results td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}

#results th,
#accuracy-results th {
    font-weight: 600;
    text-transform: none;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    border-bottom: none;
    /* Header background handles separation */
}

/* Specific alignments */
#results th:first-child,
#results td:first-child,
#accuracy-results th:first-child,
#accuracy-results td:first-child {
    text-align: center;
    width: 40px;
}

#results th:nth-child(2),
#results td:nth-child(2),
#accuracy-results th:nth-child(2),
#accuracy-results td:nth-child(2) {
    text-align: left;
    font-weight: 600;
    color: #2a2a2a;
}

/* Center align data columns */
#results th:nth-child(n+3),
#results td:nth-child(n+3),
#accuracy-results th:nth-child(n+3),
#accuracy-results td:nth-child(n+3) {
    text-align: center;
}

/* Overall Accuracy columns (4th and 5th) should not be bold */
#accuracy-results td:nth-child(4),
#accuracy-results td:nth-child(5) {
    font-weight: normal !important;
}

/* MCC column (3rd column) in Mode Selection leaderboard should be bold */
#results td:nth-child(3) {
    font-weight: bold;
}

/* Adaptive rows in Accuracy leaderboard should have bold numbers */
#accuracy-results tr.adaptive-row td {
    font-weight: bold;
}

#results tbody tr,
#accuracy-results tbody tr {
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

/* Zebra Striping */
#results tbody tr:nth-of-type(even),
#accuracy-results tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

/* Hover Effect */
#results tbody tr:hover,
#accuracy-results tbody tr:hover {
    background-color: #f1f1f1;
    cursor: default;
}

/* Last row border removal for rounded corners effect */
#results tbody tr:last-of-type,
#accuracy-results tbody tr:last-of-type {
    border-bottom: 2px solid #4a4a4a;
}

/* Highlighted cells in Mode Selection - NOT bold (except MCC column uses td style) */
#results b {
    color: #2a2a2a !important;
    background-color: #e1f5fe;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 4px;
}

/* MCC column (3rd column) b tags should be bold */
#results td:nth-child(3) b {
    font-weight: bold;
}

/* Highlighted cells in Accuracy - bold */
#accuracy-results b {
    color: #2a2a2a !important;
    background-color: #e1f5fe;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Green highlight for Mode Selection - NOT bold */
#results b.green {
    color: #2a2a2a;
    background-color: #e8f5e9;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Green highlight for Accuracy - bold */
#accuracy-results b.green {
    color: #2a2a2a;
    background-color: #e8f5e9;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.gray-background {
    background-color: #f5f5f5;
}