/* ドキュメント（ⓘ・マニュアル・検索）の見た目。docs/nece-docs-feature.md 4章
   ⓘ の吹き出しの元の形（.tooltip-bubble）は resources/css/admin/nece.css にある */

/* ⓘ はボタン。見た目はこれまでのアイコンのまま */
.docs-tip-btn {
    background: none;
    border: 0;
    margin: 0;
    padding-right: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: help;
    vertical-align: top;
}
.docs-tip-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 50%;
}

/* 固定した吹き出し。中の「詳しく」を押せるようにする */
.docs-tip {
    max-width: 360px;
    line-height: 1.7;
}
.docs-tip.is-pinned {
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35);
}
.docs-tip__more {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.docs-tip__more:hover,
.docs-tip__more:focus {
    color: #fff;
    opacity: .85;
}

/* ヘッダーの「この画面の説明」と検索は、管理画面の外枠（public/css/admin/theme.css）へ移した */

/* ---- 【ver6 の旧レイアウト用】上部の「この画面の説明」と検索（admin.layouts.docs.legacy.navbar）。nece 本体では使っていない ---- */
.docs-screen-link {
    white-space: nowrap;
    font-weight: 600;
}
.docs-navbar-search {
    margin: 0;
    min-width: 0;
}
/* 狭い画面：上の行に「サイト確認」とメニューのボタン、その下の行いっぱいに「説明」と検索
   （検索に最小幅を付けると行が画面より広がり、メニューのボタンが画面の外に出る） */
@media (max-width: 991px) {
    #navbar { flex-wrap: wrap; }
    #navbar > .navbar-nav { order: 1; margin-left: auto; }
    .docs-navbar-wrap { order: 2; flex: 0 0 100%; min-width: 0; padding-right: 0 !important; margin-top: .5rem; }
    .docs-navbar { width: 100%; flex-wrap: nowrap; gap: .75rem !important; }
    .docs-navbar-search { flex: 1 1 auto; min-width: 0; }
}
