html,
body {
    margin: 0;
}

h1:focus {
    outline: none;
}

.page-title {
    margin: 0 0 .15rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.page-lead {
    margin: 0 0 .75rem;
    color: var(--lumen-text-muted);
}

.section-title {
    margin: 1rem 0 .5rem;
    font-size: 1rem;
    font-weight: 600;
}

.card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.key-values {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .25rem 1rem;
    margin: .75rem 0;
}

.key-values dt {
    color: var(--lumen-text-muted);
}

.key-values dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.tab-body {
    padding-top: .75rem;
}

#blazor-error-ui {
    display: none;
}

.brand-logo {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
}

.brand-logo-dark {
    display: none;
}

:root[data-lumen-theme="dark"] .brand-logo-dark {
    display: block;
}

:root[data-lumen-theme="dark"] .brand-logo-light {
    display: none;
}

.home-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.home-new {
    justify-content: flex-start;
    margin: 0 0 1rem;
}

.link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    padding: .25rem 0;
    border-bottom: 1px solid var(--lumen-border);
}

.link-list li:last-child {
    border-bottom: 0;
}

.link-list a {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

.muted {
    color: var(--lumen-text-muted);
    font-size: .8125rem;
}

.guide-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
    .guide-layout {
        grid-template-columns: 16rem minmax(0, 1fr);
        align-items: start;
    }
}

.guide-topics .link-list a[aria-current="page"] {
    font-weight: 600;
}

.guide-body {
    min-width: 0;
    max-width: 52rem;
}

.guide-text h2,
.guide-text h3,
.guide-text h4 {
    margin: 1.25rem 0 .5rem;
    line-height: 1.3;
}

.guide-text p,
.guide-text ul,
.guide-text ol {
    margin: 0 0 .75rem;
    line-height: 1.6;
}

.guide-text blockquote {
    margin: 0 0 .75rem;
    padding: .25rem 1rem;
    border-inline-start: 4px solid var(--lumen-border);
    color: var(--lumen-text-muted);
}

.guide-text code {
    padding: .05rem .3rem;
    border-radius: .25rem;
    background: var(--lumen-surface-variant, rgba(127, 127, 127, .15));
    font-size: .9em;
}

.guide-code {
    overflow-x: auto;
    padding: .75rem 1rem;
    border: 1px solid var(--lumen-border);
    border-radius: .375rem;
}

.guide-code code {
    padding: 0;
    background: none;
}

.guide-table {
    overflow-x: auto;
    margin: 0 0 .75rem;
}

.guide-table th,
.guide-table td {
    padding: .375rem .75rem;
    border-bottom: 1px solid var(--lumen-border);
    text-align: start;
}

.count-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    margin-bottom: 1rem;
}

.count-tile {
    display: grid;
    gap: .125rem;
    text-align: center;
}

.count-tile strong {
    font-size: 1.5rem;
    line-height: 1.2;
}

.count-tile span {
    color: var(--lumen-text-muted);
    font-size: .8125rem;
}

.count-alert strong {
    color: var(--lumen-danger);
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: .5rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
}

.retired {
    opacity: .6;
}

.patient-banner {
    margin-bottom: .5rem;
}

.review-card {
    margin-top: .75rem;
}

.code-sample {
    margin: .5rem 0;
    padding: .5rem .75rem;
    overflow-x: auto;
    border: 1px solid var(--lumen-border);
    border-radius: var(--lumen-radius-md, 6px);
    font-size: .8125rem;
}

.grow {
    flex: 1 1 auto;
}

.switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: .25rem 1rem;
    margin: .5rem 0;
}

.ward-board {
    margin-bottom: 1.25rem;
}

.ward-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .75rem;
    margin-bottom: .5rem;
}

.room-row {
    margin-bottom: .75rem;
}

.room-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    margin-bottom: .25rem;
}

.bed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: .5rem;
}

.bed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .125rem;
    padding: .5rem .625rem;
    text-align: left;
    font: inherit;
    color: inherit;
    border: 1px solid var(--lumen-border);
    border-radius: var(--lumen-radius-md, 6px);
    background: var(--lumen-surface);
    cursor: pointer;
}

.bed:focus-visible {
    outline: 2px solid var(--lumen-primary);
    outline-offset: 2px;
}

.bed:disabled {
    cursor: default;
    opacity: .7;
}

.bed-code {
    font-weight: 600;
}

.bed-who,
.bed-since {
    font-size: .8125rem;
    color: var(--lumen-text-muted);
}

.bed-occupied {
    border-color: var(--lumen-primary);
}

.bed-occupied .bed-who {
    color: var(--lumen-text);
}

.bed-off {
    border-style: dashed;
}
