/* ---- Floating "On this page" panel (see _templates/layout.html) ---- */

.on-this-page {
    position: fixed;
    top: 0;
    /* 300px theme sidebar + 800px content column: sits flush against the text */
    left: 1100px;
    width: 16rem;
    height: 100vh;
    overflow-y: auto;
    padding: 2.5rem 1.25rem 3rem;
    box-sizing: border-box;
    border-left: 1px solid #d2d5d7;
    background: #ededed;
    font-size: 0.95rem;
    line-height: 1.55;
    z-index: 5;
}

.on-this-page__title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #808080;
}

.on-this-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.on-this-page ul ul {
    padding-left: 0.85rem;
}

.on-this-page li {
    margin: 0;
}

.on-this-page a {
    display: block;
    padding: 0.3rem 0 0.3rem 0.6rem;
    border-left: 2px solid #d2d5d7;
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.on-this-page a:hover {
    border-left-color: #9b9b9b;
    color: #2980b9;
}

.on-this-page a.is-active {
    border-left-color: #2980b9;
    color: #2980b9;
    font-weight: 700;
}

/* Only show the panel when there is genuinely room beside the content.
   Above that width, pin the content column left so the panel touches it
   (the theme centres .wy-nav-content by default, leaving a gap). */
@media (min-width: 1400px) {
    .wy-nav-content { margin-left: 0; }
}

@media (max-width: 1399px) {
    .on-this-page { display: none; }
}

/* Panel is chrome, not content: never print it. */
@media print {
    .on-this-page { display: none; }
}

/* ---- File / parameter guides (.. container:: file-guide in prepare.rst) ---- */

.file-guide {
    margin: 1.2em 0 1.8em;
    padding: 1.2em 1.6em 0.6em;
    background: #eaf3fa;
    border: 1px solid #c5dcee;
    border-left: 4px solid #2980b9;
    border-radius: 3px;
}

/* Term: the column / field name */
.file-guide dl dt {
    margin-top: 0.9em;
    color: #1b5e88;
    font-size: 1.02em;
}

.file-guide dl:first-of-type dt:first-of-type {
    margin-top: 0;
}

/* Definition: what the field means */
.file-guide dl dd {
    margin: 0.15em 0 0 1.4em;
    color: #34495e;
}

/* The theme adds bottom margin to every <dl>; keep the box tight. */
.file-guide dl {
    margin-bottom: 0.6em;
}

.file-guide > p {
    margin-bottom: 0.6em;
    color: #1b5e88;
    font-weight: 600;
}

/* ---- Sidebar brand: ONTOLOGY wordmark + "by CBG" (see _templates/layout.html) ---- */

.wy-side-nav-search > a.site-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
}

/* The theme's generic `.wy-side-nav-search img` rule forces every sidebar
   image into a 45px blue circle; this out-specifies it. */
.wy-side-nav-search > a.site-brand img.site-brand__logo {
    display: block;
    width: 150px;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

/* Inherits the theme's brand colour/weight from .wy-side-nav-search a. */
.site-brand__by {
    white-space: nowrap;
}

/* ---- ONTOLOGY icon centred in the breadcrumb bar (see _templates/breadcrumbs.html) ---- */

.wy-breadcrumbs {
    position: relative;
}

.wy-breadcrumbs li.breadcrumb-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    line-height: 0;
}

.wy-breadcrumbs li.breadcrumb-icon img {
    height: 28px;
    width: auto;
    display: block;
}

/* No room to centre an icon over a narrow bar. */
@media (max-width: 768px) {
    .wy-breadcrumbs li.breadcrumb-icon { display: none; }
}

/* ---- Footer: CBG logo + copyright (see _templates/footer.html) ---- */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-brand__logo {
    width: 200px;
    height: auto;
}

.footer-brand__copyright {
    margin: 0;
}
