:root {
    --bb-teal: #2b8f78;
    --bb-teal-light: #33a08a;
    --bb-brown: #a76f50;
    --bb-paper: #efeeed;
    --bb-ink: #111111;
    --bb-white: #ffffff;
    --bb-line: rgba(17, 17, 17, 0.12);
}

html,
body {
    background: var(--bb-paper);
    color: var(--bb-ink);
    font-family: "Open Sans", Arial, Roboto, sans-serif;
}

a {
    color: var(--bb-teal);
}

h1,
h2,
h3 {
    color: var(--bb-ink);
    font-weight: 800;
    letter-spacing: 0;
}

.content {
    padding: 0;
}

.top-row {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--bb-line);
    gap: 1rem;
}

.top-row a {
    color: var(--bb-ink);
    font-weight: 700;
    text-decoration: none;
}

.navbar-brand img {
    display: block;
    height: auto;
    max-width: 190px;
}

.nav-section-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 0.8rem;
    text-transform: uppercase;
}

.hero-band {
    align-items: end;
    background: linear-gradient(90deg, rgba(239, 238, 237, 0.96), rgba(239, 238, 237, 0.42)), url("images/hero-centre.jpg") center/cover;
    display: flex;
    min-height: 68vh;
    padding: clamp(2rem, 7vw, 6rem);
}

.hero-copy {
    max-width: 720px;
}

.hero-logo {
    background: var(--bb-white);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    max-width: 320px;
    padding: 0.8rem;
    width: min(80vw, 320px);
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: 0.96;
    margin-bottom: 1rem;
}

.hero-copy p {
    font-size: 1.2rem;
    max-width: 560px;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.btn-brand,
.btn-soft,
.text-button {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

.btn-brand {
    background: var(--bb-teal);
    color: var(--bb-white);
}

.btn-soft {
    background: var(--bb-white);
    color: var(--bb-teal);
}

.text-button {
    background: transparent;
    color: var(--bb-teal);
    min-height: 0;
    padding: 0.2rem 0.4rem;
}

.text-button.danger {
    color: #9d2c1f;
}

.content-band {
    padding: clamp(1.6rem, 5vw, 4rem);
}

.section-heading {
    margin-bottom: 1.4rem;
    max-width: 780px;
}

.section-heading p {
    color: var(--bb-brown);
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
}

.page-card-grid,
.admin-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page-card,
.admin-panel,
.success-panel,
.cms-section,
.document-row {
    background: var(--bb-white);
    border: 1px solid var(--bb-line);
    border-radius: 8px;
}

.page-card {
    color: var(--bb-ink);
    display: block;
    min-height: 150px;
    padding: 1.2rem;
    text-decoration: none;
}

.page-card span,
.document-row span {
    color: var(--bb-brown);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.image-band {
    align-items: center;
    background: var(--bb-white);
    display: grid;
    gap: clamp(1rem, 4vw, 3rem);
    grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 1fr);
    padding: clamp(1.6rem, 5vw, 4rem);
}

.image-band img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.cms-section {
    margin-bottom: 1rem;
    padding: 1.4rem;
}

.cms-form {
    display: grid;
    gap: 0.9rem;
}

.cms-form label {
    display: grid;
    font-weight: 800;
    gap: 0.35rem;
}

.cms-form input,
.cms-form select,
.cms-form textarea {
    border: 1px solid var(--bb-line);
    border-radius: 8px;
    font: inherit;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
}

.cms-form textarea {
    min-height: 120px;
}

.check-row {
    align-items: center;
    display: flex !important;
    gap: 0.6rem !important;
}

.form-page {
    max-width: 850px;
}

.admin-panel {
    min-width: 0;
    padding: 1rem;
}

.document-list {
    display: grid;
    gap: 0.7rem;
}

.document-row {
    align-items: center;
    color: var(--bb-ink);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.8rem;
    text-decoration: none;
}

.success-panel {
    border-color: rgba(43, 143, 120, 0.35);
    padding: 1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--bb-teal-light);
}

.invalid {
    outline: 1px solid #b32121;
}

.validation-message,
.validation-summary-errors {
    color: #b32121;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    right: 0;
    z-index: 1000;
}

@media (max-width: 780px) {
    .image-band {
        grid-template-columns: 1fr;
    }

    .hero-band {
        min-height: 58vh;
    }
}
