/* css/common/common.css */
html {
    box-sizing: border-box;
    overflow-y: scroll;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

:root {
    --color-bg: #f6faf7;
    --color-surface: #ffffff;
    --color-surface-soft: #fcfefd;
    --color-text: #1f2a22;
    --color-text-muted: #66756c;
    --color-line: #e3ece5;
    --color-line-strong: #d4e3d8;
    --color-primary: #2f9e5b;
    --color-primary-strong: #267f49;
    --color-secondary: #2d3a31;
    --color-secondary-strong: #1f2922;
    --color-danger: #d9485f;
    --color-danger-soft: #fff5f5;
    --color-danger-line: #ffd7d7;

    --green-50: #f3fbf6;
    --green-100: #def4e5;
    --green-200: #bfe8cc;
    --green-300: #93d5aa;
    --green-400: #63bf86;
    --green-500: #2f9e5b;
    --green-600: #25874c;
    --green-700: #1d6e3d;
    --green-800: #165732;
    --green-900: #0f4124;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-700: #1d4ed8;

    --gray-50: #f8faf9;
    --gray-100: #edf1ee;
    --gray-200: #d9e1db;
    --gray-300: #c7d2cb;
    --gray-400: #90a095;
    --gray-500: #66756b;
    --gray-600: #526057;
    --gray-700: #334038;
    --gray-800: #28322b;
    --gray-900: #1d251f;

    --white: #ffffff;

    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow: 0 18px 40px rgba(27, 53, 36, 0.08);
    --shadow-sm: 0 6px 18px rgba(27, 53, 36, 0.08);
    --shadow-md: 0 12px 30px rgba(27, 53, 36, 0.06);
    --shadow-lg: 0 20px 50px rgba(27, 53, 36, 0.08);
    --shadow-xl: 0 18px 40px rgba(27, 53, 36, 0.08);

    --sidebar-width: 264px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.field__control {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select.field__control {
    padding-right: 40px;
}

textarea.field__control {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

.field__control::placeholder {
    color: var(--color-text-muted);
}

.field__control:hover {
    border-color: var(--green-300);
}

.field__control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(47, 158, 91, 0.14);
}

.ajax-error-card {
    flex: 1;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 56px 24px 64px;
    text-align: center;
    background: var(--color-surface);
}

.ajax-error-card__icon {
    font-size: 42px;
    line-height: 1;
}

.ajax-error-card__title {
    margin: 14px 0 0;
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 900;
}

.ajax-error-card__desc {
    margin: 8px 0 0;
    max-width: 360px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.is-hidden {
    display: none !important;
}

/* 접근성 숨김 */
.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;
    clip: rect(0,0,0,0);

    border: 0;
}