/* S1 tokens stay local to the service content, public header and future opt-in modules. */
.xy-v21,
.service-theme-orange,
.xy-v21-header {
    --xy-ink-950: #0B110D;
    --xy-ink-900: #111814;
    --xy-ink-800: #1A221D;
    --xy-on-ink-1: #EEF2EC;
    --xy-on-ink-2: #A9B5AC;
    --xy-paper-50: #FAF9F4;
    --xy-paper-100: #F2F0E9;
    --xy-paper-300: #D8D3C4;
    --xy-text-900: #15181E;
    --xy-text-700: #474D59;
    --xy-text-500: #5E646F;
    --xy-gold-400: #E3A93B;
    --xy-copper-700: #8A5310;
    --xy-copper-100: #F6EBDA;
    --xy-redline: #B8321A;
    --xy-fs-h1: clamp(28px, 2.8vw, 40px);
    --xy-fs-h2: clamp(24px, 2.23vw, 32px);
    --xy-fs-h3: clamp(18px, 1.53vw, 22px);
    --xy-fs-body: 16px;
    --xy-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
    font-family: var(--xy-font);
}

.service-theme-orange { font-size: var(--xy-fs-body); line-height: 1.8; }
.service-theme-orange .hero h1 { font-size: var(--xy-fs-h1); line-height: 1.28; }
.service-theme-orange .section-header h2 { font-size: var(--xy-fs-h2); line-height: 1.35; }
.service-theme-orange :is(.service-card, .ie-focus-card) h3 { font-size: var(--xy-fs-h3); line-height: 1.35; }

.xy-v21-header .logo {
    margin: 0;
    top: 10px;
    width: clamp(140px, 15vw, 211px);
    height: 60px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
}

.xy-v21-header .logo a {
    width: 100%;
    height: 100%;
}

.xy-v21-header .menu_wrap {
    border: 0;
    padding: 0;
    cursor: pointer;
}

.xy-v21-header :is(a, button):focus-visible,
.xy-v21 :is(a, button, summary):focus-visible {
    outline: 2px solid var(--xy-redline);
    outline-offset: 3px;
}

.xy-v21-header .h_a1 {
    animation: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Keep the existing 1100px navigation handoff until its separate redesign. */
@media (max-width: 1100px) {
    .xy-v21-header .logo {
        top: 0;
        left: 16px;
        width: min(180px, calc(100vw - 88px));
        height: 60px;
    }

    .xy-v21-header .menu_wrap {
        top: 8px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xy-v21 *, .xy-v21 *::before, .xy-v21 *::after,
    .xy-v21-header *, .xy-v21-header *::before, .xy-v21-header *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
