:root {
    --md-task-list-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.28-2.72a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5z"/></svg>');
    --md-task-list-icon--checked: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.28-2.72a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5z"/></svg>');
}

div.algorithm {
    justify-items: left;
}
mjx-mi.mjx-i {
    letter-spacing: -0.05em !important;
}

.task-list-control {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.task-list-indicator {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    position: relative;
    margin-right: 0.5em;
    flex-shrink: 0;
}


.task-list-indicator::before {
    content: "";
    position: absolute;
    top: 80%;
    left: 50%;
    width: 1.25em;
    height: 1.25em;
    background-color: hsla(232deg, 75%, 90%, 0.8); /* stronger but still light */
    -webkit-mask-image: var(--md-task-list-icon);
    mask-image: var(--md-task-list-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    transform: translate(-50%, -50%);
}

.task-list-control>input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1.25em;
    height: 1.25em;
    margin: 0;
    cursor: pointer;
}

.task-list-control>input[type="checkbox"]:checked+.task-list-indicator::before {
    background-color: hsl(122deg, 84%, 45%);
    -webkit-mask-image: var(--md-task-list-icon--checked);
    mask-image: var(--md-task-list-icon--checked);
}

.task-list-item {
    list-style-type: none; /* hide bullet */
    display: flex;
    align-items: center; /* Vertically centers checkbox and text */
    gap: 0.5rem; /* Optional: adds space between checkbox and text */
}

.task-list-item p {
    margin: 0;
}

.citation-box {
    border: 1px solid #ddd;
    border-left: 4px solid #007acc;
    padding: 10px;
    margin: 15px 0;
    background-color: #f9f9f9;
    font-style: italic;
}

.citation-box::before {
    content: "📚 ";
    font-style: normal;
}