.openehr-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #00758f;
    color: white;
}

.openehr-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.site-title {
    color: white;
}

/* ====== Main navbar styled with same colors ====== */
.header,
.navbar {
    background-color: #00758f !important;
    color: white !important;
}

.navbar-item,
.navbar-link {
    color: white !important;
}

.navbar-item:hover,
.navbar-link:hover {
    background-color: #005f73 !important;
    color: white !important;
}

/* burger icon */
.navbar-burger span {
    background-color: white !important;
}

/* dropdown background */
.navbar-dropdown {
    background-color: #00758f !important;
}

/* force dropdown text to white */
.navbar-dropdown .navbar-item {
    color: white !important;
}

/* dropdown hover */
.navbar-dropdown .navbar-item:hover {
    background-color: #005f73 !important;
}

/* smaller code font */
pre, code, kbd, samp {
    font-size: 0.85em;
}

/* spec status line (subspec landing pages) */
.spec-status-line {
    text-align: center;
    margin: 0.5rem 0 1rem;
}

/* spec status badges */
.spec-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    background: #6c757d;
    position: relative;
    cursor: help;
}

/* release version tag */
.release-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #495057;
    background: #e9ecef;
    border: 1px solid #ced4da;
}

/* meta line below main spec h1: Status: [badge]  Release: [badge] */
.spec-meta-line {
    margin-top: 0px !important;
    margin-bottom: 1.75rem !important;
}

.spec-meta-line p {
    font-size: 0.8rem;
    color: #6c757d;
    letter-spacing: 0.02em;
    margin: 0;
}

h1.page {
    margin-bottom: 0 !important;
}

.spec-meta-line .spec-status,
.spec-meta-line .release-tag {
    font-size: 0.85em;
    vertical-align: middle;
}

/* badges inline in subspec h1 title */
h1 .spec-status {
    font-size: 0.4em;
    vertical-align: top;
}

/* CSS tooltips */
.spec-status::after,
.release-tag::after {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
    letter-spacing: 0;
}

.spec-status:hover::after {
    content: "Status of the specification";
    opacity: 1;
}

/* smaller badge when inline in spec listings */
.ulist .spec-status {
    padding: 1px 6px;
    font-size: 0.7em;
    border-radius: 8px;
    vertical-align: middle;
    font-weight: 500;
    letter-spacing: 0;
}
.spec-status-stable     { background: #28a745; }
.spec-status-trial      { background: #007bff; }
.spec-status-development { background: #fd7e14; }
.spec-status-paused     { background: #6c757d; }
.spec-status-retired    { background: #dc3545; }

/* figure caption above image on landing pages */
.imageblock.block-diagram {
    display: flex;
    flex-direction: column;
}

.imageblock.block-diagram .title {
    order: -1;
    margin-bottom: 0.4rem;
    margin-top: 0;
}

/* search bar */
#search-input {
    border-radius: 4px;
    border: none;
    padding: 0.3rem 0.5rem;
}
