p img, li img, dt img, dd img, th img, td img {
    margin-bottom: 0.3em;
}

html[data-theme=light] {
    --pst-sidebar-font-size: 1rem;
    --pst-color-primary: #4c96ff;
    --pst-color-secondary: #4c96ff;
    --pst-color-accent: #4c96ff;
}

:root {
    --docsearch-primary-color: #4c96ff;
    --docsearch-modal-width: 900px;
    --docsearch-modal-height: 800px;
}

@media (max-width: 768px) {
    /* デフォルトだとmargin: 0になるのでそれを元どおりにする */
    .docsearch-modal {
        margin: 60px auto auto !important;
    }
}

.page-toc .nav-link {
    font-size: 0.9rem;
}

.form-control {
    background-color: #fff0;
}
div.bd-search {
    padding-left: 0;
    border: none;
}

.bd-search .icon {
    left: 10px;
}

@media (max-width: 959.98px) {
    .bd-sidebar-primary {
        width: 95%;
        max-width: 400px;
    }
}

.bd-main .bd-content .bd-article-container {
    max-width: 70em;  /* default is 60em */
}

.bd-page-width {
    max-width: 110rem;  /* default is 88rem */
}

/* sphinx-desgin tabs */
.bd-content .sd-tab-set>input:checked+label {
    border-width: .1rem .1rem 0 !important;
}

.bd-content .sd-tab-set .sd-tab-content {
    border-width: .1rem !important;
}

.sidebar-primary-item  p.caption:first-of-type {
    margin-top: 0;
}

div.header-article-item {
    height: auto !important;
}
p.logo__title {
    margin-bottom: 0.25em;
}

@media (max-width: 1050px) {
    p.logo__title {
        font-size: 0.9rem;
        margin-bottom: 0.15em;
    }
}

@media (max-width: 959.98px) {
    p.logo__title {
        display: none;
    }
}

div.sd-card-title {
    font-size: 1.1rem;
}

div.sd-card-title > svg.sd-material-icon {
    vertical-align: text-bottom;
}

/* PyData Sphinx Themeの a:visited:hoverの設定がdocsearch-modalの中には影響しないように */
.docsearch-modal a:visited:hover {
    color: inherit !important;
}

/* 表の行のhoverの際のスタイルを取り消し */
table tbody tr:nth-child(odd):hover {
    background-color: var(--pst-color-table-row-zebra-low-bg)
}

table tbody tr:nth-child(2n):hover {
    background-color: var(--pst-color-table-row-zebra-high-bg)
}

table.helm-values span.pre {
    white-space: pre-wrap;
}

table.helm-values td {
    word-break: break-word;
}

article.bd-article ol > li::marker {
    font-weight: bold;
}

table.detailed-table {
    font-size: 0.9rem;
}
span.header-app-version {
    border-color: var(--pst-gray-500) !important;
    color: var(--pst-gray-500) !important;
}

div.header-single-version {
    display: inline-block;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-weight: bold;
}

div.header-version-info-icon {
    display: inline-block;
    color: gray;
}

/* intdashサーバー構築・運用ガイド用 */
table span.normal-text {
    overflow-wrap: anywhere;
}

/* シンタックスハイライトのエラー個所を強調表示しない */
html[data-theme="light"] .highlight .err {
    color: unset;
}
html[data-theme="dark"] .highlight .err {
    color: unset;
}

/* ドロップダウンが目立たないようにする */
details.sd-dropdown {
    box-shadow: none !important;
    border: 1px solid var(--pst-color-border) !important;
}

details.sd-dropdown summary.sd-card-header {
    background-color: unset !important;
}

/* フィードバックボタン */
.feedback-section {
    text-align: center;
    margin: 1.5rem 0 1rem;
    font-size: 0.85rem;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.feedback-buttons .btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
}

.feedback-btn-wrapper {
    position: relative;
    display: inline-block;
}

.thanks-bubble {
    position: absolute;
    bottom: calc(100% + 0.4rem);  /* ボタン上に表示 */
    left: 50%;
    transform: translateX(-50%);
    background: #343a40;          /* ダークグレー（Bootstrap の text-dark 相当） */
    color: #fff;
    padding: 0.25rem 0.6rem;
    font-size: 0.70rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;                   /* 初期は非表示 */
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}
.thanks-bubble::after {         /* 吹き出しの矢印 */
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #343a40;
}
.show-bubble {
    opacity: 1;
}

.contact-support {
    margin-top: 0.75rem;
}
.contact-support .btn {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
    white-space: nowrap;
}

/* 内部レビュー個所マーク用 */
.review {
    border-left: yellow solid 10px;
}
