:root {
    --site-bg: #f3f6f5;
    --site-surface: #ffffff;
    --site-surface-soft: #f8faf9;
    --site-surface-warm: #fffdfa;
    --site-reader-surface: #fffefb;
    --site-border: #dfe7e3;
    --site-border-strong: #ccd8d2;
    --site-text: #263a35;
    --site-text-soft: #5f7069;
    --site-text-muted: #74817b;
    --site-brand: #1f6d61;
    --site-brand-dark: #174d45;
    --site-brand-soft: #edf7f3;
    --site-brand-ring: rgba(31, 109, 97, 0.22);
    --site-gold: #b7791f;
    --site-warm-border: #eadfce;
    --site-shadow-sm: 0 0.35rem 1.25rem rgba(23, 58, 64, 0.05);
    --site-shadow-md: 0 0.75rem 2rem rgba(23, 58, 64, 0.07);
    --site-shadow-lg: 0 1rem 2.5rem rgba(23, 58, 64, 0.09);
    --site-radius-sm: 0.65rem;
    --site-radius-md: 0.95rem;
    --site-radius-lg: 1.25rem;
    --site-radius-pill: 999px;
}

html {
    background: var(--site-bg);
}

body {
    min-height: 100vh;
    background: var(--site-bg);
    color: var(--site-text);
    font-size: 1rem;
    line-height: 1.55;
}

#main-content {
    min-height: 45vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--site-text);
}

p {
    color: var(--site-text);
    font-size: 1rem;
    line-height: 1.65;
    text-indent: 0;
}

a {
    color: var(--site-brand);
    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

a:hover {
    color: var(--site-brand-dark);
}

a:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--site-brand-ring);
    outline-offset: 2px;
}

hr {
    border-color: var(--site-border);
    opacity: 1;
}

.card {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: var(--site-surface);
    box-shadow: var(--site-shadow-sm);
}

.btn {
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border-radius: 0.72rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: none;
    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.btn-sm {
    min-height: 36px;
    padding: 0.4rem 0.7rem;
    border-radius: 0.62rem;
    font-size: 0.82rem;
}

.btn-lg {
    min-height: 48px;
    padding: 0.7rem 1.1rem;
    border-radius: 0.85rem;
    font-size: 1rem;
}

.btn-success {
    --bs-btn-bg: var(--site-brand);
    --bs-btn-border-color: var(--site-brand);
    --bs-btn-hover-bg: var(--site-brand-dark);
    --bs-btn-hover-border-color: var(--site-brand-dark);
    --bs-btn-active-bg: var(--site-brand-dark);
    --bs-btn-active-border-color: var(--site-brand-dark);
    --bs-btn-disabled-bg: var(--site-brand);
    --bs-btn-disabled-border-color: var(--site-brand);
    --bs-btn-focus-shadow-rgb: 31, 109, 97;
}

.btn-outline-success {
    --bs-btn-color: var(--site-brand);
    --bs-btn-border-color: #8eb8ad;
    --bs-btn-hover-bg: var(--site-brand);
    --bs-btn-hover-border-color: var(--site-brand);
    --bs-btn-active-bg: var(--site-brand-dark);
    --bs-btn-active-border-color: var(--site-brand-dark);
    --bs-btn-focus-shadow-rgb: 31, 109, 97;
}

.btn-outline-secondary {
    --bs-btn-color: #53665f;
    --bs-btn-border-color: var(--site-border-strong);
    --bs-btn-hover-color: var(--site-text);
    --bs-btn-hover-bg: var(--site-surface-soft);
    --bs-btn-hover-border-color: #aebfb7;
    --bs-btn-active-color: var(--site-text);
    --bs-btn-active-bg: #edf2f0;
    --bs-btn-active-border-color: #aebfb7;
    --bs-btn-focus-shadow-rgb: 95, 112, 105;
}

.link-success,
.text-success {
    color: var(--site-brand) !important;
}

.link-success:hover,
.link-success:focus {
    color: var(--site-brand-dark) !important;
}

.bg-success {
    background-color: var(--site-brand) !important;
}

.form-control,
.form-select,
.input-group-text {
    border-color: var(--site-border-strong);
    background-color: var(--site-surface);
    color: var(--site-text);
    font-size: 0.95rem;
}

.form-control,
.form-select {
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    border-radius: 0.7rem;
}

.form-control::placeholder {
    color: #87958f;
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: #8eb8ad;
    background-color: var(--site-surface);
    box-shadow: 0 0 0 0.2rem rgba(31, 109, 97, 0.12);
}

.form-check-input {
    border-color: var(--site-border-strong);
}

.form-check-input:checked {
    border-color: var(--site-brand);
    background-color: var(--site-brand);
}

.dropdown-menu {
    border: 1px solid var(--site-border);
    border-radius: 0.8rem;
    background: var(--site-surface);
    box-shadow: var(--site-shadow-md);
}

.dropdown-item {
    color: var(--site-text);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active {
    background: var(--site-brand-soft);
    color: var(--site-brand-dark);
}

.badge {
    border-radius: var(--site-radius-pill);
    font-weight: 600;
}

.text-secondary {
    color: var(--site-text-soft) !important;
}

.text-bg-light {
    background: var(--site-surface-soft) !important;
    color: var(--site-text) !important;
}

.border,
.border-top,
.border-bottom {
    border-color: var(--site-border) !important;
}

.alert-light {
    border-color: var(--site-border) !important;
    border-radius: var(--site-radius-md);
    background: var(--site-surface-soft);
    color: var(--site-text-soft);
}

.pagination .page-link {
    min-height: 40px;
    border-color: var(--site-border);
    background: var(--site-surface);
    color: var(--site-brand);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    border-color: #9fc4ba;
    background: var(--site-brand-soft);
    color: var(--site-brand-dark);
}

.pagination .page-item.active .page-link {
    border-color: var(--site-brand);
    background: var(--site-brand);
    color: #ffffff;
}

.material-icons {
    line-height: 1;
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
