@font-face {
    font-family: 'Adamina';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/adamina-400.ttf') format('truetype');
}

:root {
    --pico-font-family: 'Adamina', Georgia, serif;
    --app-navbar-height: 64px;
}

html {
    height: 100%;
}

body {
    font-family: 'Adamina', Georgia, serif;
    min-height: 100%;
    margin: 0;
}

.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding-block: 0;
}

.site-main > section,
.site-main > div[id] > section {
    margin-block: 0;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.site-menu-toggle {
    display: none;
    margin: 0;
    padding: 0.35rem 0.55rem;
    min-height: auto;
    border-color: transparent;
    color: var(--app-text);
    background: transparent;
}

.site-menu-toggle:hover {
    color: var(--app-text);
    background: rgba(31, 111, 235, 0.08);
}

.site-mobile-nav {
    display: none;
}

.admin-card {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.admin-card hr {
    margin-top: auto;
}

.site-icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

.site-brand-img {
    display: block;
    height: 52px;
    width: auto;
}

.site-brand-link {
    padding: 0 !important;
}

input, textarea, select {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.login-form {
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form input {
    max-width: 100%;
    width: 100%;
}

.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 8rem);
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    margin: 0.5rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--pico-del-color);
    border-left-width: 0.35rem;
    border-radius: var(--pico-border-radius);
    background: color-mix(in srgb, var(--pico-del-color) 12%, transparent);
    color: var(--pico-del-color);
    font-weight: 600;
}

[role="alert"],
.form-alert {
    margin: 0.75rem 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--app-border-soft);
    border-left-width: 0.35rem;
    border-radius: var(--pico-border-radius);
    background: var(--app-surface-muted);
    color: var(--app-text);
    box-shadow: var(--app-shadow-sm);
}

.form-alert p:last-child,
[role="alert"] p:last-child {
    margin-bottom: 0;
}

.form-alert-danger {
    border-color: var(--pico-del-color);
    background: color-mix(in srgb, var(--pico-del-color) 12%, transparent);
    color: var(--pico-del-color);
}

.form-alert-success {
    border-color: var(--pico-ins-color);
    background: color-mix(in srgb, var(--pico-ins-color) 12%, transparent);
    color: var(--pico-ins-color);
}

.form-alert-warning {
    border-color: #b7791f;
    background: rgba(245, 158, 11, 0.12);
    color: #7c4a03;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

:root {
    --app-surface: #ffffff;
    --app-surface-muted: #f8fafc;
    --app-background: #f5f7fb;
    --app-border: #dfe5ec;
    --app-border-soft: #edf1f5;
    --app-text: #1f2937;
    --app-muted: #667085;
    --app-primary: #1f6feb;
    --app-primary-hover: #1559c7;
    --app-danger: #b42318;
    --app-success: #027a48;
    --app-radius-sm: 0.375rem;
    --app-radius-md: 0.625rem;
    --app-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
    --app-shadow-md: 0 8px 24px rgba(16, 24, 40, 0.10);

    --pico-font-family: 'Adamina', Georgia, serif;
    --pico-line-height: 1.6;
    --pico-border-radius: var(--app-radius-sm);
    --pico-outline-width: 0.125rem;
    --pico-transition: 160ms ease;
    --pico-spacing: 0.875rem;
    --pico-typography-spacing-vertical: 0.875rem;
    --pico-block-spacing-vertical: 0.875rem;
    --pico-block-spacing-horizontal: 1rem;
    --pico-form-element-spacing-vertical: 0.625rem;
    --pico-form-element-spacing-horizontal: 0.75rem;
    --pico-nav-link-spacing-vertical: 0.5rem;
    --pico-nav-link-spacing-horizontal: 0.65rem;

    --pico-primary: var(--app-primary);
    --pico-primary-background: var(--app-primary);
    --pico-primary-border: var(--app-primary);
    --pico-primary-hover: var(--app-primary-hover);
    --pico-primary-hover-background: var(--app-primary-hover);
    --pico-primary-focus: rgba(31, 111, 235, 0.18);
    --pico-primary-inverse: #ffffff;
    --pico-background-color: var(--app-background);
    --pico-card-background-color: var(--app-surface);
    --pico-card-border-color: var(--app-border-soft);
    --pico-card-box-shadow: var(--app-shadow-sm);
    --pico-card-sectioning-background-color: var(--app-surface-muted);
    --pico-form-element-background-color: var(--app-surface);
    --pico-form-element-border-color: var(--app-border);
    --pico-form-element-color: var(--app-text);
    --pico-form-element-placeholder-color: var(--app-muted);
    --pico-form-element-active-background-color: var(--app-surface);
    --pico-form-element-active-border-color: var(--app-primary);
    --pico-form-element-focus-color: var(--app-primary);
    --pico-muted-color: var(--app-muted);
    --pico-heading-color: var(--app-text);
    --pico-del-color: var(--app-danger);
    --pico-ins-color: var(--app-success);
    --pico-table-border-color: var(--app-border-soft);
    --pico-table-stripped-row-background-color: var(--app-surface-muted);
    --pico-code-background-color: #eef2f7;
    --pico-code-color: var(--app-text);

    --app-footer-bg: #e0e0e0;
    --app-footer-text: #424242;
    --app-footer-heading: #212121;
    --app-footer-border: rgba(0, 0, 0, 0.1);
}

body {
    background: var(--app-background);
    color: var(--app-text);
}

article {
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-md);
    box-shadow: var(--app-shadow-sm);
    transition: border-color var(--pico-transition), box-shadow var(--pico-transition), transform var(--pico-transition);
}

article:hover {
    border-color: var(--app-border);
    box-shadow: var(--app-shadow-md);
    transform: translateY(-1px);
}

button, [role=button], input[type=submit], input[type=reset], input[type=button] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: var(--app-radius-sm);
    box-shadow: none;
    transition: background-color var(--pico-transition), border-color var(--pico-transition), color var(--pico-transition), box-shadow var(--pico-transition), transform var(--pico-transition);
}

button:not(:disabled):hover, [role=button]:not(:disabled):hover, input[type=submit]:not(:disabled):hover {
    transform: translateY(-1px);
}

button.secondary, [role=button].secondary {
    color: var(--app-text);
}

button.outline, [role=button].outline {
    border-color: var(--app-border);
    color: var(--app-primary);
    background-color: transparent;
}

button.outline:hover, [role=button].outline:hover {
    border-color: var(--app-primary);
    background-color: rgba(31, 111, 235, 0.06);
}

button.danger, [role=button].danger {
    --pico-primary: var(--app-danger);
    --pico-primary-background: var(--app-danger);
    --pico-primary-border: var(--app-danger);
    --pico-primary-hover: #912018;
    --pico-primary-hover-background: #912018;
}

button.danger.outline, [role=button].danger.outline {
    border-color: color-mix(in srgb, var(--app-danger) 55%, white);
    color: var(--app-danger);
}

button.danger.outline:hover, [role=button].danger.outline:hover {
    border-color: var(--app-danger);
    background-color: rgba(180, 35, 24, 0.06);
}

input, textarea, select {
    width: 100%;
    max-width: 100%;
    border-radius: var(--app-radius-sm);
    transition: border-color var(--pico-transition), box-shadow var(--pico-transition), background-color var(--pico-transition);
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
}

label {
    color: var(--app-text);
    font-weight: 600;
}

table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
}

table th {
    background: var(--app-surface-muted);
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

table th, table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: var(--app-border-soft);
}

table tbody tr:hover td,
table tbody tr:hover th {
    background: color-mix(in srgb, var(--app-primary) 4%, var(--app-surface));
}

table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
}

th.sortable::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid var(--app-muted);
    opacity: 0.35;
}

th.sortable.asc::after {
    border-bottom: none;
    border-top: 5px solid var(--app-primary);
    opacity: 1;
}

th.sortable.desc::after {
    border-top: none;
    border-bottom: 5px solid var(--app-primary);
    opacity: 1;
}

.table-wrap {
    background: var(--app-surface);
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-md);
    box-shadow: var(--app-shadow-sm);
    overflow: auto;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--app-border-soft);
}

.table-toolbar-left, .table-toolbar-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-search input {
    max-width: 18rem;
}

.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--app-border-soft);
}

.pagination-btn {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0;
}

.pagination-info {
    margin: 0 0.5rem;
    color: var(--app-muted);
    font-size: 0.85rem;
}

.sort-icon {
    cursor: pointer;
    user-select: none;
}

.sort-icon:hover {
    color: var(--pico-primary);
}

.post-list h2 a,
.post-list h2 a:hover {
    text-decoration: none;
}

.post-list-date {
    margin: 0.85rem 0 0.35rem;
    color: var(--app-muted);
    font-size: 0.9rem;
}

.table-fixed-header {
    max-height: 500px;
    overflow: auto;
}

.table-fixed-header thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--app-navbar-height);
    background: var(--app-background);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--app-border-soft);
}

.site-header nav {
    min-height: var(--app-navbar-height);
    margin-bottom: 0;
    padding: 0;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
}

.site-header nav ul,
.site-header nav li {
    min-height: var(--app-navbar-height);
    align-items: center;
}

.site-header nav ul li a {
    --pico-nav-link-spacing-vertical: 0.15rem;
    border-radius: 999px;
    color: var(--app-text);
    font-weight: 600;
    transition: background-color var(--pico-transition), color var(--pico-transition);
}

.site-header nav ul li a:hover {
    background: rgba(31, 111, 235, 0.08);
    color: var(--app-primary);
    text-decoration: none;
}

.site-header nav ul li strong a {
    color: var(--app-text);
}

.site-nav-links {
    margin-left: auto;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

small, .chip {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--app-border-soft);
    border-radius: 999px;
    background: var(--app-surface-muted);
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

small a, .chip a {
    color: inherit;
    text-decoration: none;
}

hr {
    border: none;
    height: 1px;
    background: var(--app-border-soft);
    margin: 1rem 0;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(28rem, 68vh, 42rem);
    overflow: hidden;
    padding: clamp(4rem, 10vw, 8rem) 1.5rem;
    color: #fff;
    text-align: center;
}

.hero-full-width {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.68));
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1,
.hero h2,
.hero p {
    max-width: 52rem;
    color: inherit;
}

.hero h1,
.hero h2 {
    margin-bottom: 1rem;
    text-wrap: balance;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-buttons .site-icon {
    flex: 0 0 auto;
}

.row-card-section {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.row-card-heading {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    margin-bottom: 2rem;
    text-align: center;
}

.row-card-heading .site-icon {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--pico-primary);
}

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

.row-card-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--pico-border-radius);
    overflow: hidden;
    background: var(--app-surface);
}

.row-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid var(--app-border-soft);
    border-radius: 0;
    box-shadow: none;
}

.row-card:last-child {
    border-bottom: 0;
}

.row-card-avatar img {
    display: block;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.row-card-body h3 {
    margin: 0 0 0.25rem;
}

.row-card-subtitle {
    margin: 0 0 0.25rem;
    color: var(--app-muted);
}

.row-card-description :last-child {
    margin-bottom: 0;
}

.row-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pico-primary);
}

.row-card-action .site-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.grid-card-section {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.grid-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

.portfolio-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--app-surface-muted);
}

.portfolio-card-image {
    position: absolute;
    inset: 0;
    display: block;
}

.portfolio-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card-titlebar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}

.portfolio-card-titlebar h3 {
    margin: 0;
}

.portfolio-card-titlebar button {
    margin: 0;
    padding: 0.25rem 0.45rem;
    min-height: auto;
}

.portfolio-card-reveal {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: auto;
    padding: 1rem;
    background: color-mix(in srgb, var(--app-surface) 94%, transparent);
    transform: translateY(0);
    box-shadow: inset 0 -1px 0 var(--app-border-soft);
}

.portfolio-card-reveal :last-child {
    margin-bottom: 0;
}

.portfolio-card-action {
    margin-top: auto;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--app-border-soft);
}

.portfolio-card-action a {
    color: var(--pico-primary);
    text-decoration: none;
}

.portfolio-card-action a:hover {
    color: var(--pico-primary-hover);
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .grid-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 576px) and (max-width: 1024px) {
    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding-block: 0.35rem;
    }

    .site-nav-brand,
    .site-nav-brand li,
    .site-nav-links,
    .site-nav-links li {
        min-height: auto;
        margin: 0;
    }

    .site-nav-links {
        justify-content: center;
        margin-left: 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .grid-card-grid {
        grid-template-columns: 1fr;
    }

    :root {
        --app-navbar-height: 56px;
    }

    .site-brand-img {
        height: 48px;
    }

    .site-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-nav-brand,
    .site-nav-brand li {
        margin: 0;
    }

    .site-nav-links {
        display: none;
    }

    .site-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-mobile-nav {
        display: grid;
        gap: 0.25rem;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid var(--app-border-soft);
    }

    .site-mobile-nav .site-nav-link {
        min-height: auto;
        padding: 0.65rem 0.25rem;
        color: var(--app-text);
        font-weight: 600;
        text-decoration: none;
    }

    .site-mobile-nav .site-nav-link:hover {
        color: var(--app-primary);
        text-decoration: none;
    }

    .row-card {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .row-card-action {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .table-toolbar {
        align-items: stretch;
    }

    .table-toolbar-left,
    .table-toolbar-right {
        width: 100%;
    }

    .table-toolbar button,
    .table-toolbar [role=button] {
        flex: 1 1 auto;
    }

    table {
        min-width: 42rem;
    }
}

@media (min-width: 768px) {
    .site-main {
        padding-block: 0;
    }
}
/* Image picker */
.image-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-picker-modal {
    width: min(960px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--pico-card-background-color);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.image-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    max-height: 48vh;
    overflow: auto;
    margin: 1rem 0;
}

.image-picker-tile {
    display: grid;
    gap: 0.4rem;
    padding: 0.4rem;
    background: transparent;
    border: 1px solid var(--app-border);
    color: inherit;
    text-align: left;
}

.image-picker-tile.selected {
    border-color: var(--pico-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--pico-primary) 30%, transparent);
}

.image-picker-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.35rem;
}

.image-picker-tile span {
    font-family: monospace;
    font-size: 0.7rem;
    word-break: break-all;
}

/* Icon picker */
.icon-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.icon-picker-modal {
    width: min(540px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--pico-card-background-color);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.3rem;
    max-height: 380px;
    overflow-y: auto;
}
.icon-picker-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.15rem;
    font-size: 0.55rem;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--pico-border-radius);
    transition: background 0.15s;
}
.icon-picker-tile:hover {
    background: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
}
.icon-picker-tile.selected {
    background: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
}
.icon-picker-tile span {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}

/* Section type selector */
.section-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem 0;
}

.section-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    min-height: 5rem;
    font-weight: 600;
    cursor: pointer;
}

.section-type-btn span {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Footer */
.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-consent input {
    width: 1.1rem;
    min-width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
}

.contact-actions {
    display: flex;
    justify-content: flex-end;
}

.contact-actions button {
    width: auto;
}

.site-footer {
    background: var(--app-footer-bg);
    color: var(--app-footer-text);
    padding: 2.5rem 0 0;
}

.site-footer h4 {
    color: var(--app-footer-heading);
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.footer-sections a,
.footer-connect a {
    color: var(--app-footer-text);
    text-decoration: none;
}

.footer-sections a:hover,
.footer-connect a:hover {
    color: var(--app-footer-heading);
    text-decoration: underline;
}

.footer-about a {
    color: var(--pico-primary);
    text-decoration: underline;
}

.footer-about a:hover {
    color: var(--pico-primary-hover);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.site-footer ul,
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li,
.footer-col ul li {
    list-style: none;
    margin-bottom: 0.4rem;
}

.site-footer li::marker {
    content: "";
}

.footer-sections li a,
.footer-connect-list li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--app-footer-text);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid var(--app-footer-border);
    margin-top: 2.5rem;
    padding: 1rem 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.85rem;
    color: var(--app-footer-text);
    margin: 0;
}

.footer-heart {
    color: #e11d48;
}

.three-col-icon-block {
    text-align: center;
}

.three-col-section {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.three-col-icon {
    color: var(--pico-primary);
    margin-bottom: 0.5rem;
}

.three-col-icon .site-icon {
    width: 2.75rem;
    height: 2.75rem;
}

.three-col-icon-block h3 {
    text-align: center;
}

.three-col-icon-block .content-body,
.three-col-icon-block p {
    text-align: left;
}

@media (max-width: 767.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
