/* School: indicator guides library (/School/Indicators) and one guide (/School/Indicators/{slug}). */

.ind-search { position: relative; max-width: 40rem; margin-inline: auto; }
.ind-search .bx { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.35rem; opacity: .55; pointer-events: none; }
.ind-search input { padding-inline-start: 2.9rem; border-radius: 2rem; height: 3.2rem; font-size: 1.05rem; }
.ind-search-count { text-align: center; margin-top: .5rem; min-height: 1.4rem; }

.ind-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: .35rem; padding-bottom: .35rem; }
.ind-tabs .nav-link { white-space: nowrap; border-radius: 2rem; padding: .45rem 1rem; }
.ind-tabs .nav-link .badge { margin-inline-start: .35rem; }
.ind-searching .ind-tabs { display: none !important; }
.ind-searching .tab-pane { display: block !important; opacity: 1 !important; }
.ind-searching .tab-pane.ind-hidden { display: none !important; }
.ind-searching .ind-pane-title { display: flex !important; }
.ind-pane-title { display: none; align-items: center; gap: .5rem; margin: 1.25rem 0 .75rem; font-weight: 600; }

.ind-card { transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; }
.ind-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12); }
.ind-card .ind-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ind-conds { display: flex; flex-wrap: wrap; gap: .3rem; }
.ind-conds .badge { font-weight: 500; white-space: normal; text-align: start; }
.ind-conds .ind-cond-hit { background: rgba(245, 158, 11, .22) !important; color: inherit !important; }
.ind-hidden { display: none !important; }
mark.ind-mark { padding: 0 .1rem; background: rgba(245, 158, 11, .35); color: inherit; border-radius: .2rem; }

.ind-side .list-group-item { display: flex; align-items: center; gap: .5rem; }
.ind-side-cat { padding: .6rem 1rem .3rem; font-size: .8rem; font-weight: 600; border-top: 1px solid var(--bs-border-color); color: var(--bs-secondary-color); }
.ind-side .list-group-item.active { z-index: 0; }
@media (min-width: 992px) { .ind-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; } }

/* The guide itself (same fragment the strategy builder's "?" button shows). */
.ig-page .ig { line-height: 1.9; font-size: 1.05rem; }
.ig-page .ig h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .25rem; }
.ig-page .ig h3 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .75rem; padding: .35rem .9rem; scroll-margin-top: 90px;
    border-inline-start: 4px solid var(--bs-primary, #696cff); background: rgba(var(--bs-primary-rgb, 105, 108, 255), .06); border-radius: .35rem; }
.ig-page .ig-disclaimer { font-size: .9rem; opacity: .7; }
.ig-page .ig code { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.ig-page .ig-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.ig-page .ig-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ig-page .ig-table th, .ig-page .ig-table td { border: 1px solid rgba(127, 127, 127, .25); padding: .5rem .7rem; vertical-align: top; text-align: start; }
.ig-page .ig-table th { background: rgba(127, 127, 127, .08); }
.ig-page .ig-table tr:target td, .ig-page .ig-table tr.ig-row-active td { background: rgba(245, 158, 11, .16); }
.ig-page .ig-fig { margin: 1.25rem 0; text-align: center; }
.ig-page .ig-fig img { max-width: 100%; height: auto; border-radius: 12px; }
.ig-page .ig-fig figcaption { font-size: .9rem; opacity: .75; margin-top: .4rem; }
.ig-toc a { text-decoration: none; }
.ig-toc a:hover { text-decoration: underline; }
