/*
 * Wokuo ASO unified visual layer
 * Aligns legacy and topic pages with the current home-page design language.
 */
:root {
    --brand-navy: #0f2742;
    --brand-navy-deep: #0b1d34;
    --brand-blue: #087fad;
    --brand-cyan: #37afd0;
    --brand-green: #22a66f;
    --brand-surface: #ffffff;
    --brand-soft: #f3f8fb;
    --brand-line: #d7e3eb;
    --brand-ink: #173b57;
    --brand-muted: #58738a;
    --brand-radius: 18px;
    --brand-shadow: 0 12px 34px rgba(15, 39, 66, .08);
    --brand-shadow-hover: 0 20px 48px rgba(15, 39, 66, .14);
    --brand-motion: 260ms cubic-bezier(.2, .8, .2, 1);
}

body.theme-home-unified {
    background: var(--brand-surface);
    color: var(--brand-ink);
}

body.theme-home-unified main,
body.theme-home-unified section {
    isolation: isolate;
}

/* Shared typography and section rhythm */
.theme-home-unified .topic-page {
    color: var(--brand-ink);
    background: var(--brand-surface);
}

.theme-home-unified .topic-section {
    position: relative;
    padding: clamp(72px, 8vw, 108px) 0;
}

.theme-home-unified .topic-section-soft {
    background:
        radial-gradient(circle at 92% 8%, rgba(55, 175, 208, .08), transparent 28%),
        var(--brand-soft);
}

.theme-home-unified .topic-section-dark {
    background:
        radial-gradient(circle at 8% 92%, rgba(55, 175, 208, .14), transparent 28%),
        linear-gradient(135deg, var(--brand-navy-deep), var(--brand-navy));
}

.theme-home-unified .topic-section-head {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}

.theme-home-unified .topic-kicker,
.theme-home-unified .topic-eyebrow {
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.theme-home-unified .topic-section-dark .topic-kicker {
    color: #81dbf4;
}

.theme-home-unified .topic-section h2 {
    color: var(--brand-navy);
    font-size: clamp(30px, 4vw, 46px);
}

.theme-home-unified .topic-section-dark h2 {
    color: #fff;
}

.theme-home-unified .topic-section-head p {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--brand-muted);
}

/* Topic hero now follows the centered home hero */
.theme-home-unified .topic-hero {
    min-height: clamp(580px, 72vh, 720px);
    text-align: center;
    background:
        linear-gradient(100deg, rgba(15, 23, 42, .9), rgba(8, 71, 101, .76)),
        var(--topic-image) center/cover no-repeat;
}

.theme-home-unified .topic-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 84%);
}

.theme-home-unified .topic-hero::after {
    right: -140px;
    bottom: -210px;
    width: 520px;
    height: 520px;
    border-width: 72px;
    border-color: rgba(55, 175, 208, .14);
}

.theme-home-unified .topic-hero .container {
    max-width: 980px;
    padding-top: 112px;
    padding-bottom: 112px;
}

.theme-home-unified .topic-breadcrumb {
    display: flex;
    justify-content: center;
}

.theme-home-unified .topic-eyebrow {
    justify-content: center;
    color: #bdeeff;
}

.theme-home-unified .topic-hero h1,
.theme-home-unified .topic-hero .topic-lead {
    margin-right: auto;
    margin-left: auto;
}

.theme-home-unified .topic-hero h1 {
    max-width: 900px;
    font-size: clamp(40px, 5.6vw, 66px);
}

.theme-home-unified .topic-hero .topic-lead {
    max-width: 760px;
}

.theme-home-unified .topic-hero-actions {
    justify-content: center;
}

/* Shared button language */
.theme-home-unified .topic-button,
.theme-home-unified .btn-round,
.theme-home-unified .btn-primary,
.theme-home-unified .btn-default {
    min-height: 50px;
    border-radius: 999px !important;
    font-weight: 750;
    transition:
        transform var(--brand-motion),
        background-color var(--brand-motion),
        border-color var(--brand-motion),
        box-shadow var(--brand-motion);
}

.theme-home-unified .topic-button-primary {
    background: var(--brand-cyan);
    color: #08263d !important;
    box-shadow: 0 10px 24px rgba(55, 175, 208, .24);
}

.theme-home-unified .topic-button-primary:hover,
.theme-home-unified .topic-button-primary:focus-visible {
    background: #59c0dc;
    box-shadow: 0 14px 30px rgba(55, 175, 208, .32);
}

.theme-home-unified .topic-button-secondary {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

/* Cards across old and new pages share one material system */
.theme-home-unified .topic-card,
.theme-home-unified .topic-metric,
.theme-home-unified .topic-scope-list li,
.theme-home-unified .service-item,
.theme-home-unified .service-item-hv2,
.theme-home-unified .studies-item,
.theme-home-unified .contact-boxv1-item,
.theme-home-unified .team-item,
.theme-home-unified .history-item,
.theme-home-unified .panel {
    border: 1px solid var(--brand-line) !important;
    border-radius: var(--brand-radius) !important;
    background: var(--brand-surface);
    box-shadow: var(--brand-shadow);
}

.theme-home-unified .topic-card {
    padding: 30px;
}

.theme-home-unified .topic-card-icon {
    border-radius: 14px;
    background: #e8f7fb;
    color: var(--brand-blue);
}

.theme-home-unified .topic-card h3,
.theme-home-unified .topic-metric strong {
    color: var(--brand-navy);
}

.theme-home-unified .topic-card p,
.theme-home-unified .topic-metric span {
    color: var(--brand-muted);
}

@media (hover: hover) and (pointer: fine) {
    .theme-home-unified .topic-card:hover,
    .theme-home-unified .topic-metric:hover,
    .theme-home-unified .topic-scope-list li:hover,
    .theme-home-unified .service-item:hover,
    .theme-home-unified .studies-item:hover {
        transform: translateY(-5px);
        border-color: #a8ddec !important;
        box-shadow: var(--brand-shadow-hover);
    }
}

.theme-home-unified .topic-scope-list li::before {
    color: var(--brand-green);
}

.theme-home-unified .topic-process {
    gap: 18px;
}

.theme-home-unified .topic-step {
    border-color: rgba(190, 226, 239, .2);
    background: rgba(255, 255, 255, .065);
}

.theme-home-unified .topic-step::before {
    color: #70d5ef;
}

.theme-home-unified .topic-faq {
    border-top: 1px solid var(--brand-line);
}

.theme-home-unified .topic-faq summary {
    min-height: 64px;
    color: var(--brand-navy);
}

.theme-home-unified .topic-faq details[open] {
    background: rgba(243, 248, 251, .66);
}

.theme-home-unified .topic-faq details {
    padding: 0 18px;
    border-bottom-color: var(--brand-line);
    transition: background-color var(--brand-motion);
}

.theme-home-unified .topic-cta {
    background:
        radial-gradient(circle at 82% 20%, rgba(55, 175, 208, .22), transparent 28%),
        linear-gradient(125deg, var(--brand-navy), var(--brand-blue));
}

/* Ambient iOS-inspired SVG ornaments */
.ios-ambient {
    position: absolute;
    z-index: 0;
    width: clamp(72px, 9vw, 132px);
    height: clamp(72px, 9vw, 132px);
    display: grid;
    place-items: center;
    color: var(--brand-blue);
    opacity: .105;
    pointer-events: none;
    user-select: none;
}

.ios-ambient svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.ios-ambient--right {
    top: clamp(24px, 5vw, 72px);
    right: max(18px, calc((100vw - 1240px) / 2 - 58px));
    transform: rotate(7deg);
}

.ios-ambient--left {
    bottom: clamp(20px, 4vw, 60px);
    left: max(18px, calc((100vw - 1240px) / 2 - 58px));
    transform: rotate(-7deg);
}

.topic-section-dark .ios-ambient,
.bg-primary .ios-ambient,
.bg-black .ios-ambient,
#contact .ios-ambient {
    color: #7dd3fc;
    opacity: .12;
}

/* Unified motion: visible by default, enhanced only when JS is ready */
.topic-reveal,
.topic-grid > .topic-reveal {
    animation: none !important;
}

.motion-ready .ui-reveal {
    opacity: 1;
    transform: translateY(12px);
    transition:
        transform 420ms cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .ui-reveal.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.theme-home-unified a,
.theme-home-unified button,
.theme-home-unified summary {
    -webkit-tap-highlight-color: transparent;
}

.theme-home-unified a:active,
.theme-home-unified button:active {
    transform: scale(.985);
}

/* White brand mark for consistent contrast on the dark footer surface. */
.theme-home-unified #contact .footer-logo img,
.theme-home-unified .contact .footer-logo img {
    filter: brightness(0) invert(1);
    opacity: .96;
}

@media (max-width: 991px) {
    .theme-home-unified .topic-hero {
        min-height: 620px;
    }

    .ios-ambient {
        width: 82px;
        height: 82px;
        opacity: .08;
    }
}

@media (max-width: 600px) {
    .theme-home-unified .topic-hero {
        min-height: 590px;
    }

    .theme-home-unified .topic-hero .container {
        padding-top: 88px;
        padding-bottom: 76px;
    }

    .theme-home-unified .topic-section {
        padding: 64px 0;
    }

    .theme-home-unified .topic-card {
        padding: 24px;
    }

    .ios-ambient {
        width: 64px;
        height: 64px;
        opacity: .065;
    }

    .ios-ambient--left {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    .motion-ready .ui-reveal,
    .motion-ready .ui-reveal.is-inview {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .theme-home-unified *,
    .theme-home-unified *::before,
    .theme-home-unified *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Header: compact, single-focus-ring language selector */
.theme-home-unified .language-toggle .language-divider,
.theme-home-unified .language-toggle .language-target {
    display: none !important;
}

.theme-home-unified .home1_menu .attr-nav ul li.language-menu a.language-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 108px;
    min-height: 44px;
    margin: 0 !important;
    padding: 5px 12px 5px 7px !important;
    border: 1px solid #cbdce7 !important;
    border-radius: 999px !important;
    outline: 0 !important;
    background: #fff !important;
    color: #123f5f !important;
    box-shadow: 0 6px 18px rgba(14, 54, 85, .08) !important;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: .01em;
}

.theme-home-unified .language-toggle .language-globe {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eaf7fc;
    color: #278fb5;
    font-size: 13px;
}

.theme-home-unified .language-toggle .language-caret {
    display: inline-block !important;
    margin-left: 1px;
    color: #6d8799;
    font-size: 12px;
}

.theme-home-unified .home1_menu .attr-nav ul li.language-menu a.language-toggle:hover,
.theme-home-unified .home1_menu .attr-nav ul li.language-menu.language-open a.language-toggle {
    border-color: #76bdd8 !important;
    background: #f7fcfe !important;
    color: #0e3655 !important;
    box-shadow: 0 9px 24px rgba(14, 54, 85, .12) !important;
}

.theme-home-unified .home1_menu .attr-nav ul li.language-menu a.language-toggle:focus-visible {
    border-color: #278fb5 !important;
    outline: 3px solid rgba(39, 143, 181, .22) !important;
    outline-offset: 3px !important;
    box-shadow: 0 6px 18px rgba(14, 54, 85, .09) !important;
}

.theme-home-unified nav.navbar.bootsnav .attr-nav .language-menu > ul.dropdown-menu.language-list {
    top: calc(100% + 12px) !important;
    right: 0 !important;
    width: 168px !important;
    min-width: 168px !important;
    padding: 7px !important;
    border-color: #d5e2ea !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 38px rgba(14, 54, 85, .15) !important;
}

.theme-home-unified nav.navbar.bootsnav .attr-nav .language-list > li.language-option h6 a {
    min-height: 46px;
    padding: 11px 36px 11px 13px !important;
    border-radius: 11px !important;
    color: #173f5d !important;
    font-size: 15px;
    font-weight: 700;
}

.theme-home-unified nav.navbar.bootsnav .attr-nav .language-list > li.language-option.is-current h6 a {
    background: #e5f6ed !important;
    color: #0e6845 !important;
}

.theme-home-unified nav.navbar.bootsnav .attr-nav .language-list > li.language-option h6 a:hover,
.theme-home-unified nav.navbar.bootsnav .attr-nav .language-list > li.language-option h6 a:focus-visible {
    background: #edf8fc !important;
    color: #096e8b !important;
    outline: 2px solid rgba(39, 143, 181, .2);
    outline-offset: -2px;
}

@media (max-width: 767px) {
    .theme-home-unified .home1_menu .attr-nav ul li.language-menu a.language-toggle {
        gap: 6px;
        min-width: 82px;
        min-height: 42px;
        padding: 4px 9px 4px 5px !important;
        font-size: 14px;
    }

    .theme-home-unified .language-toggle .language-globe {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .theme-home-unified .language-toggle .language-caret {
        display: inline-block !important;
    }

    .theme-home-unified nav.navbar.bootsnav .attr-nav .language-menu > ul.dropdown-menu.language-list {
        right: 0 !important;
        width: 154px !important;
        min-width: 154px !important;
    }
}

/* About: branching ASO development tree */
.theme-home-unified #leading:not(.bg-primary) .leading-content > p {
    color: #38566d !important;
}

.theme-home-unified .main-history .history-carousel {
    --history-branch-gap: clamp(76px, 8vw, 116px);
    margin-top: 46px;
}

.theme-home-unified .main-history .history-nav {
    overflow: visible;
    padding: 32px clamp(18px, 4vw, 52px);
    border: 1px solid #d9e7f0;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0, rgba(75, 175, 211, .11), transparent 32%),
        linear-gradient(180deg, #fff 0%, #f7fbfd 100%);
    box-shadow: 0 18px 46px rgba(14, 54, 85, .08);
}

.theme-home-unified .main-history .history-nav::before {
    content: "EVOLUTION";
    display: block;
    width: max-content;
    margin: 0 auto 24px;
    padding: 7px 14px;
    border: 1px solid rgba(22, 138, 91, .2);
    border-radius: 999px;
    background: rgba(22, 138, 91, .08);
    color: #168a5b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.theme-home-unified .main-history .history-nav .history-year-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px var(--history-branch-gap);
    width: 100%;
    margin: 0;
    padding: 10px 0 30px;
}

.theme-home-unified .main-history .history-nav .history-year-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #168a5b 0%, #4bafd3 52%, #b8d5e4 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 0 7px rgba(75, 175, 211, .07);
}

.theme-home-unified .main-history .history-nav .history-year-list::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #4bafd3;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px #b8d5e4;
}

.theme-home-unified .main-history .history-nav .history-year-list > li,
.theme-home-unified .main-history .history-nav .history-year-list > li.active {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 82px;
    margin: 0;
    padding: 15px 18px;
    border: 1px solid #d7e5ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    color: #123f5f;
    text-align: left;
    text-indent: 0;
    box-shadow: 0 8px 22px rgba(14, 54, 85, .06);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd) {
    grid-column: 1;
    align-items: flex-end;
    text-align: right;
}

.theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even) {
    grid-column: 2;
}

.theme-home-unified .main-history .history-nav .history-year-list > li::before {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(var(--history-branch-gap) / 2);
    height: 2px;
    background: #bad4e2;
    transform: translateY(-50%);
}

.theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd)::before {
    right: calc(var(--history-branch-gap) / -2);
}

.theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even)::before {
    left: calc(var(--history-branch-gap) / -2);
}

.theme-home-unified .main-history .history-nav .history-year-list > li::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #83b9d2;
    transform: translateY(-50%);
    box-shadow: 0 0 0 2px #83b9d2;
}

.theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd)::after {
    right: calc(var(--history-branch-gap) / -2 - 7px);
}

.theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even)::after {
    left: calc(var(--history-branch-gap) / -2 - 7px);
}

.theme-home-unified .main-history .history-nav .history-year-list > li:hover {
    border-color: #79bad3;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(14, 54, 85, .11);
}

.theme-home-unified .main-history .history-nav .history-year-list > li.active {
    border-color: #168a5b;
    background: linear-gradient(135deg, #168a5b, #1f9c70);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(22, 138, 91, .2);
}

.theme-home-unified .main-history .history-nav .history-year-list > li.active::before {
    background: #168a5b;
}

.theme-home-unified .main-history .history-nav .history-year-list > li.active::after {
    background: #168a5b;
    box-shadow: 0 0 0 2px #168a5b, 0 0 0 7px rgba(22, 138, 91, .13);
}

.theme-home-unified .main-history .history-nav .history-year-list > li > span {
    display: block;
    margin-bottom: 6px;
    color: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.theme-home-unified .history-node-label {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.theme-home-unified .history-carousel .carousel-inner {
    position: relative;
    margin-top: 34px;
    border-radius: 24px;
}

.theme-home-unified .history-carousel .carousel-inner::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -12px;
    left: 50%;
    width: 24px;
    height: 24px;
    border-top: 1px solid #d9e7f0;
    border-left: 1px solid #d9e7f0;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 767px) {
    .theme-home-unified .main-history .history-carousel {
        --history-branch-gap: 30px;
        margin-top: 32px;
    }

    .theme-home-unified .main-history .history-nav {
        padding: 26px 16px 28px;
        border-radius: 20px;
    }

    .theme-home-unified .main-history .history-nav::before {
        margin-bottom: 18px;
    }

    .theme-home-unified .main-history .history-nav .history-year-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 5px 0 22px 31px;
    }

    .theme-home-unified .main-history .history-nav .history-year-list::before {
        left: 12px;
        width: 3px;
        transform: none;
    }

    .theme-home-unified .main-history .history-nav .history-year-list::after {
        left: 5px;
        transform: none;
    }

    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd),
    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even) {
        grid-column: 1;
        align-items: flex-start;
        min-height: 74px;
        padding: 13px 15px;
        text-align: left;
    }

    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd)::before,
    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even)::before {
        right: auto;
        left: -19px;
        width: 19px;
    }

    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd)::after,
    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even)::after {
        right: auto;
        left: -26px;
    }

    .theme-home-unified .main-history .history-nav .history-year-list > li > span {
        font-size: 18px;
    }

    .theme-home-unified .history-carousel .carousel-inner {
        margin-top: 28px;
        border-radius: 20px;
    }
}

/* About history: years on the left, selected milestone on the right */
@media (min-width: 768px) {
    .theme-home-unified .main-history .history-carousel {
        display: grid;
        grid-template-columns: minmax(220px, 27%) minmax(0, 1fr);
        gap: clamp(22px, 3vw, 38px);
        align-items: start;
    }

    .theme-home-unified .main-history .history-nav {
        height: 100%;
        padding: 24px 18px;
        border-radius: 22px;
    }

    .theme-home-unified .main-history .history-nav::before {
        margin-bottom: 16px;
    }

    .theme-home-unified .main-history .history-nav .history-year-list {
        display: flex;
        flex-direction: column;
        gap: 7px;
        height: auto;
        padding: 4px 0 10px 34px;
    }

    .theme-home-unified .main-history .history-nav .history-year-list::before {
        top: 5px;
        bottom: 8px;
        left: 14px;
        width: 3px;
        transform: none;
        box-shadow: 0 0 0 5px rgba(75, 175, 211, .055);
    }

    .theme-home-unified .main-history .history-nav .history-year-list::after {
        bottom: 0;
        left: 7px;
        transform: none;
    }

    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd),
    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even),
    .theme-home-unified .main-history .history-nav .history-year-list > li.active {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        padding: 8px 12px;
        text-align: left;
    }

    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd)::before,
    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even)::before {
        right: auto;
        left: -20px;
        width: 20px;
    }

    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(odd)::after,
    .theme-home-unified .main-history .history-nav .history-year-list > li:nth-child(even)::after {
        right: auto;
        left: -27px;
    }

    .theme-home-unified .main-history .history-nav .history-year-list > li > span {
        margin: 0;
        font-size: 17px;
        line-height: 1.2;
    }

    .theme-home-unified .history-node-label {
        display: none;
    }

    .theme-home-unified .history-carousel .carousel-inner {
        align-self: start;
        min-height: 520px;
        margin-top: 0;
        border-radius: 22px;
    }

    .theme-home-unified .history-carousel .carousel-inner::before {
        top: 50%;
        left: -12px;
        border-top: 0;
        border-bottom: 1px solid #d9e7f0;
        transform: translateY(-50%) rotate(45deg);
    }

    .theme-home-unified .history-carousel .carousel-inner > .item.active,
    .theme-home-unified .history-carousel .carousel-inner > .item.active .history-stage {
        min-height: 520px;
    }

    .theme-home-unified .history-carousel .history-stage {
        grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
        align-content: center;
        padding: clamp(28px, 4vw, 54px);
    }
}
.footer-friendly-links {
  align-items: center;
  border-top: 1px solid rgba(148, 197, 231, 0.2);
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 18px auto 0;
  max-width: 960px;
  padding: 18px 0 0;
  text-align: center;
}
.footer-friendly-label {
  color: #8fdef3;
  flex: 0 0 auto;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.footer-friendly-links ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-friendly-links li {
  align-items: center;
  display: inline-flex;
}
.footer-friendly-links li::before {
  background: #38bdf8;
  border-radius: 50%;
  content: "";
  height: 4px;
  margin-right: 8px;
  opacity: 0.75;
  width: 4px;
}
.footer-friendly-links a {
  color: #cfe7f7 !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.footer-friendly-links a:hover,
.footer-friendly-links a:focus-visible {
  color: #fff !important;
  text-decoration: underline;
}
.footer-friendly-links--copyright {
  margin-top: 18px;
}
@media (max-width: 575px) {
  .footer-friendly-links {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
  }
  .footer-friendly-links ul {
    display: flex;
    gap: 8px 16px;
    justify-content: center;
  }
}

/* Keep the first homepage slide title consistent with the other carousel slides. */
#bootstrap-touch-slider .item:first-child .slide-text > h1 {
  font-size: 45px;
  line-height: 1.25;
}
@media (max-width: 991px) {
  #bootstrap-touch-slider .item:first-child .slide-text > h1 {
    font-size: 30px !important;
    line-height: 1.3 !important;
  }
}
