/* World Teachers' Day — /teachers-day */

.lg-page-teachers-day {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100vh;
    background: var(--lg-bg);
}

.lg-td {
    position: relative;
    flex: 1;
    padding: 28px 20px 48px;
    overflow: hidden;
}

.lg-td__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(5, 150, 105, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 80%, rgba(15, 45, 82, 0.06), transparent 50%),
        radial-gradient(ellipse 50% 35% at 0% 60%, rgba(5, 150, 105, 0.06), transparent 45%);
}

.lg-td__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.lg-td__hero {
    text-align: center;
    margin-bottom: 28px;
    animation: lg-td-rise 0.7s ease-out both;
}

.lg-td__logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.lg-td__logo {
    width: 72px;
    height: 72px;
    display: block;
    animation: lg-td-logo-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lg-td__brand {
    margin: 0;
    font-family: var(--lg-font-brand);
    font-weight: 800;
    font-size: clamp(1.75rem, 5vw, 2.125rem);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--lg-blue);
}

.lg-td__brand-z {
    color: var(--lg-emerald);
}

.lg-td__eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lg-emerald);
}

.lg-td__title {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 4.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--lg-blue);
}

.lg-td__lead {
    margin: 0 auto;
    max-width: 38ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--lg-muted);
}

.lg-td__message {
    padding: 24px 22px;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    box-shadow: 0 8px 28px rgba(15, 45, 82, 0.06);
    animation: lg-td-rise 0.75s ease-out 0.12s both;
}

.lg-td__from {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lg-border);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--lg-emerald);
}

.lg-td__body {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--lg-text);
}

.lg-td__body p {
    margin: 0 0 14px;
}

.lg-td__body p:last-child {
    margin-bottom: 0;
}

.lg-td__sign {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--lg-border);
}

.lg-td__sign-brand {
    font-family: var(--lg-font-brand);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--lg-blue);
}

.lg-td__sign-tag {
    font-size: 13px;
    color: var(--lg-muted);
}

.lg-td__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 28px 0 0;
    animation: lg-td-rise 0.75s ease-out 0.22s both;
}

.lg-td__link-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lg-muted);
    text-decoration: none;
}

.lg-td__link-home:hover {
    color: var(--lg-blue);
}

@keyframes lg-td-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lg-td-logo-in {
    from {
        opacity: 0;
        transform: scale(0.86);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-td__hero,
    .lg-td__message,
    .lg-td__actions,
    .lg-td__logo,
    .lg-td-wishes,
    .lg-td-wishes__item.is-new {
        animation: none;
    }
}

@media (min-width: 720px) {
    .lg-td {
        padding: 40px 24px 64px;
    }

    .lg-td__message {
        padding: 28px 32px;
    }
}

/* Visitor wishes wall */
.lg-td-wishes {
    margin-top: 28px;
    padding: 24px 22px;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    box-shadow: 0 8px 28px rgba(15, 45, 82, 0.05);
    animation: lg-td-rise 0.75s ease-out 0.18s both;
}

.lg-td-wishes__head {
    margin-bottom: 18px;
    text-align: center;
}

.lg-td-wishes__title {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--lg-blue);
}

.lg-td-wishes__cta {
    margin: 0 auto;
    max-width: 36ch;
    font-size: 15px;
    line-height: 1.5;
    color: var(--lg-muted);
}

.lg-td-wishes__done {
    margin: 0 auto;
    max-width: 40ch;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lg-muted);
}

.lg-td-wishes__count {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-emerald);
}

.lg-td-wishes__form {
    margin-bottom: 20px;
}

.lg-td-wishes__form .lg-btn {
    width: 100%;
}

.lg-td-wishes__form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lg-td-wishes__hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lg-td-wishes__status {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
}

.lg-td-wishes__status.is-ok {
    color: var(--lg-emerald);
}

.lg-td-wishes__status.is-error {
    color: #b42318;
}

.lg-td-wishes__empty {
    margin: 0;
    padding: 14px 0 4px;
    text-align: center;
    font-size: 14px;
    color: var(--lg-muted);
}

.lg-td-wishes__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lg-td-wishes__item {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--lg-bg-alt);
    border: 1px solid transparent;
}

.lg-td-wishes__item-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lg-td-wishes__item-top .lg-td-wishes__item-body {
    flex: 1;
    min-width: 0;
}

.lg-td-wishes__edit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: -4px -4px 0 0;
    padding: 0;
    border: 1px solid var(--lg-border);
    border-radius: 10px;
    background: var(--lg-surface);
    color: var(--lg-blue-soft);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lg-td-wishes__edit:hover {
    color: var(--lg-emerald);
    border-color: rgba(5, 150, 105, 0.35);
    background: #fff;
}

.lg-td-wishes__edit:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 2px;
}

.lg-td-wishes__item.is-new {
    border-color: rgba(5, 150, 105, 0.35);
    animation: lg-td-rise 0.45s ease-out both;
}

.lg-td-wishes__item-body {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--lg-text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.lg-td-wishes__item-meta {
    margin: 0;
    font-size: 13px;
    color: var(--lg-muted);
}

.lg-td-wishes__item-name {
    font-weight: 600;
    color: var(--lg-blue-soft);
}

@media (min-width: 720px) {
    .lg-td-wishes {
        padding: 28px 32px;
    }

    .lg-td-wishes__form .lg-btn {
        width: auto;
        min-width: 220px;
    }

    .lg-td-wishes__form-actions {
        flex-direction: row;
        align-items: center;
    }
}
