@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800&family=Rajdhani:wght@600;700&display=swap');

body {
    font-family: "Barlow", sans-serif;
    margin: 0;
}

.site-main--admin {
    max-width: 1240px;
    padding-top: 0.5rem;
}

.login-panel {
    display: grid;
    min-height: 60vh;
    place-items: center;
}

.login-panel__card {
    background: var(--site-surface);
    border: 1px solid color-mix(in srgb, var(--site-accent) 14%, white);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(18, 32, 43, 0.08);
    max-width: 34rem;
    padding: 2rem;
    width: min(100%, 34rem);
}

.login-panel__eyebrow {
    color: var(--site-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-panel__card h1 {
    margin-bottom: 0.5rem;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-form label {
    display: grid;
    gap: 0.45rem;
}

.login-form span {
    font-size: 0.95rem;
    font-weight: 600;
}

.login-form input,
.editor-shell__switcher select,
.editor-block-picker select,
.editor-field select,
.editor-field input,
.editor-field textarea {
    background: #fff;
    border: 1px solid #c7d0d8;
    border-radius: 14px;
    color: #13202b;
    font: inherit;
    padding: 0.85rem 1rem;
}

.login-form button,
.editor-actions button {
    background: var(--site-accent);
    border: 0;
    border-radius: 999px;
    color: var(--site-accent-contrast);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.85rem 1.2rem;
}

.login-form button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.login-panel__message {
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.login-panel__message--warning {
    background: #fff2d9;
    color: #7a4b00;
}

.login-panel__message--error {
    background: #fde3e0;
    color: #8d2419;
}

.editor-shell {
    background: var(--site-surface);
    border: 1px solid color-mix(in srgb, var(--site-accent) 14%, white);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(18, 32, 43, 0.08);
    display: grid;
    gap: 1.75rem;
    padding: 2rem;
}

.editor-admin-grid {
    align-items: start;
    display: grid;
    gap: 1.35rem;
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.25fr);
}

.editor-shell__topbar {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.editor-shell__title-stack {
    display: grid;
    gap: 0.55rem;
    justify-items: start;
}

.editor-shell__title-stack h1 {
    line-height: 0.96;
    margin: 0;
}

.editor-shell__topbar p {
    color: #5a6773;
    margin: 0;
}

.editor-shell__eyebrow {
    color: var(--site-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 0.15rem;
    text-transform: uppercase;
}

.editor-shell__status {
    background: color-mix(in srgb, var(--site-accent) 10%, white);
    border-radius: 999px;
    color: var(--site-accent);
    font-weight: 700;
    padding: 0.65rem 1rem;
}

.editor-shell__status-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.editor-shell__switcher {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.editor-shell__switcher label {
    color: #5a6773;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.editor-shell__switcher select {
    min-width: 19rem;
}

.editor-card {
    background: color-mix(in srgb, var(--site-surface) 92%, white);
    border: 1px solid color-mix(in srgb, var(--site-accent) 10%, white);
    border-radius: 24px;
    display: grid;
    gap: 1.2rem;
    padding: 1.65rem;
}

.editor-card h2 {
    line-height: 1;
    margin: 0;
}

.editor-card p {
    color: #5a6773;
    margin: 0;
    max-width: 62ch;
}

.editor-card__eyebrow {
    color: var(--site-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.editor-form-grid,
.editor-block-picker,
.editor-block-form,
.editor-section-form {
    display: grid;
    gap: 1rem;
}

.editor-field {
    display: grid;
    gap: 0.45rem;
}

.editor-field--inline {
    align-items: center;
    column-gap: 1.1rem;
    grid-template-columns: minmax(9.5rem, 12.5rem) minmax(0, 1fr);
}

.editor-field--stacked {
    gap: 0.65rem;
}

.editor-field--upload {
    align-items: center;
    grid-template-columns: minmax(9.5rem, 12.5rem) minmax(0, 1fr);
}

.editor-field label,
.editor-block-picker label {
    font-size: 0.92rem;
    font-weight: 600;
}

.editor-upload-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.editor-field--upload input[type="file"] {
    flex: 1 1 16rem;
    max-width: 100%;
    min-width: 0;
}

.editor-upload-button {
    background: color-mix(in srgb, var(--site-accent) 12%, white);
    border: 1px solid color-mix(in srgb, var(--site-accent) 18%, white);
    border-radius: 999px;
    color: #13202b;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.editor-richtext {
    display: grid;
    gap: 0.5rem;
}

.editor-richtext__toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.editor-richtext__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.editor-richtext__size {
    background: #f3f6f9;
    border: 1px solid #c9d3dc;
    border-radius: 999px;
    color: #17324e;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.5rem 2.2rem 0.5rem 0.85rem;
}

.editor-richtext__tool,
.editor-richtext__mode {
    background: #f3f6f9;
    border: 1px solid #c9d3dc;
    border-radius: 999px;
    color: #17324e;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
}

.editor-richtext__tool:disabled,
.editor-richtext__mode:disabled {
    color: #8695a5;
    cursor: not-allowed;
}

.editor-richtext__surface {
    background: #fff;
    border: 1px solid #c7d0d8;
    border-radius: 18px;
    min-height: 14rem;
    padding: 1rem;
}

.editor-richtext__surface:focus {
    outline: 2px solid color-mix(in srgb, var(--site-accent) 35%, white);
    outline-offset: 2px;
}

.editor-richtext__source {
    display: none;
    background: #fff;
    border: 1px solid #c7d0d8;
    border-radius: 18px;
    font: 500 0.98rem/1.55 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    min-height: 14rem;
    padding: 1rem;
    resize: vertical;
    width: 100%;
}

.editor-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.25rem;
}

.editor-card--full {
    margin-top: 1.5rem;
}

.editor-library {
    overflow: hidden;
}

.editor-library__summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
}

.editor-library__summary::-webkit-details-marker {
    display: none;
}

.editor-library__summary h2 {
    margin: 0.2rem 0 0;
}

.editor-library__hint {
    color: #5f7183;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.editor-library__content {
    margin-top: 1rem;
}

.editor-card-manager__create {
    margin-bottom: 1rem;
}

.editor-card-manager__list {
    display: grid;
    gap: 0.85rem;
}

.editor-card-manager__item {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #d7dfe7;
    border-radius: 18px;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.95rem 1rem;
}

.editor-card-manager__meta {
    display: grid;
    gap: 0.2rem;
}

.editor-card-manager__title {
    color: #13202b;
    font-weight: 700;
}

.editor-card-manager__detail {
    color: #5f7183;
    font-size: 0.88rem;
}

.editor-card-manager__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.editor-card-manager__actions form {
    margin: 0;
}

.editor-card-manager__link,
.editor-card-manager__actions button,
.editor-card-manager__create button {
    background: #f3f6f9;
    border: 1px solid #c9d3dc;
    border-radius: 999px;
    color: #17324e;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.6rem 0.95rem;
    text-decoration: none;
}

.editor-asset-library {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-asset-group {
    background: #f6f8fb;
    border: 1px solid #d7dfe7;
    border-radius: 20px;
    padding: 1rem;
}

.editor-asset-group h3 {
    color: #14304f;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.55rem;
    margin: 0 0 0.85rem;
}

.editor-asset-empty {
    color: #516275;
    margin: 0;
}

.editor-asset-list {
    display: grid;
    gap: 0.9rem;
}

.editor-asset-item {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dfe7;
    border-radius: 18px;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 5rem minmax(0, 1fr) auto;
    padding: 0.85rem;
}

.editor-asset-item__preview {
    align-items: center;
    background: #eef3f8;
    border-radius: 14px;
    display: flex;
    height: 5rem;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
}

.editor-asset-item__preview img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.editor-asset-item__preview--background img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.editor-asset-item__meta {
    display: grid;
    gap: 0.2rem;
}

.editor-asset-item__title {
    color: #13202b;
    font-weight: 700;
}

.editor-asset-item__path,
.editor-asset-item__usage {
    color: #5f7183;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.editor-asset-item__actions {
    align-self: stretch;
    display: flex;
}

.editor-asset-delete {
    align-self: center;
    background: #fff4f2;
    border: 1px solid #efc0b8;
    border-radius: 999px;
    color: #8d2415;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.editor-asset-delete:disabled {
    background: #f3f5f7;
    border-color: #d5dbe2;
    color: #8190a0;
    cursor: not-allowed;
}

.editor-toggle {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-top: 0.1rem;
}

.editor-toggle input[type="checkbox"] {
    height: 1rem;
    width: 1rem;
}

.editor-toggle span {
    font-size: 0.95rem;
    font-weight: 600;
}

.editor-subpanel {
    background: #f7f9fc;
    border: 1px solid #d7dfe7;
    border-radius: 18px;
    padding: 0.85rem 1rem;
}

.editor-subpanel__summary {
    color: #16324d;
    cursor: pointer;
    font-weight: 700;
}

.editor-subpanel__content {
    margin-top: 0.9rem;
}

.site-shell--public .announcement-body__content,
.site-shell--public .service-box__content {
    position: relative;
    z-index: 1;
}

.site-shell--public .announcement-body__content p,
.site-shell--public .service-box__content p,
.site-shell--public .service-box__content li {
    color: #d6deef;
    line-height: 1.55;
}

.site-shell--public .announcement-body__content p {
    margin: 0;
    max-width: 65ch;
}

.site-shell--public .service-box__content p {
    margin: 0 0 0.875rem;
}

.site-shell--public .service-box__content p:last-child,
.site-shell--public .service-box__content ul:last-child,
.site-shell--public .announcement-body__content p:last-child {
    margin-bottom: 0;
}

.site-shell--public .service-box__content ul {
    margin: 0;
    padding-left: 1.125rem;
}

@media (max-width: 920px) {
    .editor-admin-grid {
        grid-template-columns: 1fr;
    }

    .editor-asset-library {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-main--admin {
        padding-top: 0;
    }

    .login-panel__card,
    .editor-shell {
        border-radius: 20px;
        padding: 1.5rem 1.25rem;
    }

    .editor-shell__topbar {
        flex-direction: column;
    }

    .editor-shell__switcher select {
        min-width: 0;
        width: 100%;
    }

    .editor-field--inline {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .editor-field--upload {
        grid-template-columns: 1fr;
    }

    .editor-upload-row {
        align-items: stretch;
    }

    .editor-richtext__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-asset-item {
        grid-template-columns: 1fr;
    }

    .editor-asset-item__actions {
        justify-content: flex-start;
    }

    .editor-card-manager__item {
        grid-template-columns: 1fr;
    }

    .editor-card-manager__actions {
        justify-content: flex-start;
    }

    .editor-library__summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-library__hint {
        white-space: normal;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

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

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0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N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
