/* common.css */
body { background: linear-gradient(180deg, #fffaf3 0%, var(--color-bg) 100%); color: var(--color-text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
main { min-height: calc(100vh - 240px); }
.container { width: min(100% - 2rem, var(--container)); margin: 0 auto; }
.section-block { padding: 5rem 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3vw, 3rem); }
h3 { font-size: 1.3rem; }
p { color: var(--color-text-soft); }
img { width: 100%; height: auto; }
button { cursor: pointer; border: 0; background: none; }
input, select, textarea { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.9rem 1rem; background: var(--color-surface); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
label { display: grid; gap: 0.45rem; color: var(--color-text); font-size: 0.95rem; }
textarea { resize: vertical; min-height: 140px; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--color-primary); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm); z-index: 999; }
.skip-link:focus { top: 1rem; }
.screen-reader { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.eyebrow { display: inline-block; margin-bottom: 0.75rem; color: var(--color-accent); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; }
.flash {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 20px);
    left: 50%;
    z-index: 2200;
    width: min(calc(100% - 24px), 640px);
    padding: 0;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    animation:
        flash-toast-in 0.22s ease-out forwards,
        flash-toast-out 0.28s ease-in 4.2s forwards;
}

.flash__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 18px;
    border: 1px solid rgba(142, 118, 81, 0.18);
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.96);
    box-shadow: 0 18px 42px rgba(72, 50, 20, 0.14);
    backdrop-filter: blur(14px);
}

.flash p {
    margin: 0;
    color: #231a11;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.flash--success .flash__inner {
    border-color: rgba(13, 90, 74, 0.18);
    background: rgba(236, 248, 243, 0.96);
}

.flash--error .flash__inner {
    border-color: rgba(182, 61, 43, 0.2);
    background: rgba(255, 241, 238, 0.98);
}

@keyframes flash-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, -12px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes flash-toast-out {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -10px);
        visibility: hidden;
    }
}
.text-link { color: var(--color-primary); font-weight: 600; }
.text-link--danger { color: var(--color-danger); }
.empty-panel { display: grid; gap: 1rem; place-items: center; text-align: center; padding: 3rem; border: 1px dashed var(--color-border); border-radius: var(--radius-lg); background: rgba(255,255,255,0.75); }
.empty-panel img { width: 96px; }
@media (max-width: 767px) {
    .section-block { padding: 3.5rem 0; }

    .flash {
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        width: min(calc(100% - 16px), 560px);
    }

    .flash__inner {
        min-height: 50px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .flash p {
        font-size: 0.9rem;
    }
}
