/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.mw-720 {
    max-width: 720px;
    margin: auto;
}

.mw-960 {
    max-width: 960px;
    margin: auto;
}

.asteriskField, .errorlist {
    color: red;
}

.mw-100px {
    max-width: 100px;
}

.mh-100px {
    max-height: 100px;
}

/* MarkDown 相关 */
.markdown p {
    /*text-indent: 2em;*/
}

/* showMore.js 相关 */
.hidden {
    display: none !important;
}

.mw-50pc {
    max-width: 50% !important;
}

.toc-wrapper {
    max-height: 90vh;
    overflow-y: scroll;
}

/* 说明图标（站点标配）：hover 仅作用于图标，cursor 为 help */
.hint-icon {
    display: inline-flex;
    vertical-align: -0.125em;
    cursor: help;
    line-height: 1;
}

.hint-icon .icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

.hint-icon:hover {
    color: var(--tblr-body-color, #1f2937);
}

/* 表头标签 + 说明图标 */
.table-th-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1.2;
}

.table-th-hint__label {
    white-space: nowrap;
}

/* 全站可点击元素：显示 pointer 光标 */
a[href],
button:not(:disabled):not([disabled]),
[role="button"]:not([aria-disabled="true"]),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
input[type="file"]:not(:disabled),
input[type="image"]:not(:disabled),
select:not(:disabled),
summary,
label,
.btn:not(:disabled):not(.disabled),
.btn-close:not(:disabled),
.btn-action,
.page-link:not(.disabled),
.nav-link,
.dropdown-item,
.list-group-item-action,
.form-check-input:not(:disabled),
.form-check-label,
.form-select:not(:disabled),
.accordion-button:not(:disabled),
[data-bs-toggle]:not(.hint-icon),
[data-bs-target],
.cursor-pointer {
    cursor: pointer;
}

button:disabled,
button[disabled],
.btn:disabled,
.btn.disabled,
.disabled,
[aria-disabled="true"],
input:disabled,
select:disabled,
.page-link.disabled {
    cursor: not-allowed;
}

/* 说明图标保持 help，覆盖 data-bs-toggle 等通用规则 */
.hint-icon {
    cursor: help;
}

/* 暗色：VIP 姓名等 text-purple 改为浅丁香紫，贴合 Tabler 深色表面 */
[data-bs-theme=dark] .text-purple {
    color: #c4b5fd !important;
}

/* marked-footnote 输出 Bootstrap 4 的 sr-only，Bootstrap 5 只保留 visually-hidden */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Datepicker 挂 body：须压过 Bootstrap modal(1055)，否则弹窗里点日期会点到遮罩 */
[data-vc="calendar"][data-vc-input],
[data-vc="calendar"][role="dialog"] {
    --tblr-datepicker-zindex: 2000;
    z-index: 2000;
}
