:root {
    color-scheme: light;
    font-family: "Encode Sans Expanded", "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html {
    height: 100%;
}

body {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f7f5;
    color: #141414;
}

button,
input {
    font: inherit;
}

a,
button,
input {
    -webkit-tap-highlight-color: transparent;
}

.main-content {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.legacy-content-page {
    min-height: 100%;
    padding: 36px 42px;
    background: #f7f7f5;
}

.sep-project-page,
.sep-project-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
}

.sep-project-page {
    min-height: 100%;
    padding: 36px 42px;
    background: var(--ith-bg, #f7f7f5);
    color: var(--ith-ink, #141414);
    font-size: 14px;
    line-height: 1.65;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.card {
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px #e2e8f0;
}

@media (max-width: 640px) {
    .legacy-content-page {
        padding: 26px 18px;
    }
}

@media (max-width: 760px) {
    .sep-project-page {
        padding: 26px 18px;
    }

    .sep-project-page .content-grid {
        grid-template-columns: 1fr;
    }

    .sep-project-page .progress-meta {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
}
