/* Real brand text stays server-rendered and readable while the light moves. */
.brand.brand-wordmark {
    --wordmark-ink: #165748;
    --wordmark-light: #915216;
    --wordmark-tail: #22589c;
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    gap: 0;
    white-space: normal;
    font-weight: 700;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.4;
    letter-spacing: .065em;
    text-decoration: none;
}
.brand-wordmark > .brand-wordmark-text {
    display: block;
    min-width: 0;
    max-width: 24rem;
    overflow-wrap: anywhere;
    font-family: "Yuanti SC", "YouYuan", "幼圆", "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-synthesis: weight;
    font-weight: 700;
    font-style: normal;
    transform: none;
    transform-origin: center;
    color: var(--wordmark-ink);
    animation: wordmark-blink 6s ease-in-out infinite;
}
/* Rounded, fuller lettering for the English brand as well. */
.brand-wordmark > .brand-wordmark-text:lang(en) {
    font-family: "Arial Rounded MT Bold", "Arial Rounded MT", "Nunito", "Trebuchet MS", sans-serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .025em;
    transform: none;
}
.theme-forest .site-header .brand-wordmark,
.site-footer .brand-wordmark,
.theme-midnight .brand-wordmark,
.admin-sidebar .brand-wordmark {
    --wordmark-ink: #e8f5b8;
    --wordmark-light: #ffffff;
    --wordmark-tail: #79ddca;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .brand-wordmark > .brand-wordmark-text {
        background-image: linear-gradient(100deg, var(--wordmark-ink) 0%, var(--wordmark-ink) 26%, var(--wordmark-light) 40%, var(--wordmark-tail) 50%, var(--wordmark-light) 60%, var(--wordmark-ink) 74%, var(--wordmark-ink) 100%);
        background-size: 240% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: wordmark-marquee 6.5s linear infinite, wordmark-blink 6s ease-in-out infinite;
    }
}
.theme-paper .header-inner > .brand.brand-wordmark { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.theme-midnight .header-inner > .brand.brand-wordmark { font-size: 1.6rem; }
.theme-midnight .header-inner > .brand.brand-wordmark > .brand-wordmark-text { max-width: 100%; }
.footer-brand .brand.brand-wordmark { font-size: 1.6rem; }
.admin-sidebar .brand.brand-wordmark { font-size: 1.45rem; }
.login-panel .brand.brand-wordmark { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.brand-wordmark:hover > .brand-wordmark-text,
.brand-wordmark:focus-visible > .brand-wordmark-text { animation-play-state: paused; }
@keyframes wordmark-marquee {
    from { background-position: 200% center; }
    to { background-position: -40% center; }
}
@keyframes wordmark-blink {
    0%, 84%, 92%, 100% { opacity: 1; }
    88%, 96% { opacity: .92; }
}
@media (max-width: 600px) {
    .header-inner > .brand.brand-wordmark { max-width: 100%; font-size: 1.35rem; }
    .theme-paper .header-inner > .brand.brand-wordmark { font-size: 1.55rem; }
    .theme-midnight .header-inner > .brand.brand-wordmark { font-size: 1.35rem; }
    .brand-wordmark > .brand-wordmark-text { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-wordmark > .brand-wordmark-text {
        animation: none !important;
        background: none;
        color: var(--wordmark-ink);
        opacity: 1;
    }
}
@media print {
    .brand-wordmark > .brand-wordmark-text { animation: none !important; background: none; color: #111; }
}
