/* LOCATIONS page reconstructed from locations.png on a fixed 1920 x 1754 artboard. */
:root {
    --locations-board-width: 1920;
    --locations-board-height: 1754;
    --board-scale: 1;
    --locations-blue: #175da9;
    --locations-home-blue: #01477f;
    --locations-ink: #282828;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ffffff;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

.bmi-locations-page,
.bmi-locations-page button,
.bmi-locations-page input {
    font-family: "Lato", Arial, Helvetica, sans-serif;
}

.bmi-locations-page * {
    box-sizing: border-box;
}

.bmi-locations-page .fit-shell {
    display: grid;
    width: 100%;
    place-items: start center;
    overflow: hidden;
    background: #ffffff;
}

.bmi-locations-page .fit-box {
    position: relative;
    width: 1920px;
    height: 1825px;
    overflow: hidden;
}

.bmi-locations-page .artboard {
    --site-footer-position: absolute;
    --site-footer-top: 1365px;
    position: relative;
    width: 1920px;
    height: 1825px;
    overflow: hidden;
    transform: scale(var(--board-scale));
    transform-origin: top left;
    background: #ffffff;
}

/* 公共页头按 locations.png 坐标锁定；主导航背景按用户要求沿用首页视觉。 */
.bmi-locations-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 144px;
    min-width: 0;
}

.bmi-locations-page .site-header .topbar {
    position: relative;
    height: 44px;
    padding: 0 160px;
    background: #222222;
}

.bmi-locations-page .site-header .topbar-list {
    width: auto;
    height: 44px;
    margin: 0 0 0 auto;
    gap: 31px;
}

.bmi-locations-page .site-header .topbar-list a {
    gap: 7px;
    color: #888888;
    font-size: 16px;
    line-height: 18px;
}

.bmi-locations-page .site-header .topbar-icon {
    width: 14px;
    max-height: 16px;
    object-fit: contain;
}

.bmi-locations-page .site-header .topbar-search {
    width: 240px;
    height: 30px;
    padding: 0 7px 0 14px;
    border-color: #707070;
    border-radius: 15px;
}

.bmi-locations-page .site-header .topbar-search input {
    font-size: 14px;
}

.bmi-locations-page .site-header .topbar-search button,
.bmi-locations-page .site-header .topbar-search button img {
    width: 16px;
    height: 16px;
}

.bmi-locations-page .site-header .header-main {
    height: 100px;
    padding: 0 160px;
    background-color: var(--locations-home-blue) !important;
    background-image: url("../img/v2/%E5%9B%BE%E5%B1%82%209@2x.png") !important;
    background-position: center top !important;
    background-size: 1920px 800px !important;
}

.bmi-locations-page .site-header .header-logo {
    top: 0;
    left: 160px;
    width: 200px;
    height: 110px;
    padding: 0;
    border-radius: 0 0 20px 20px;
    background: var(--locations-blue);
}

.bmi-locations-page .site-header .header-logo img {
    display: none;
}

.bmi-locations-page .site-header .header-logo::after {
    position: absolute;
    top: 25px;
    left: 30px;
    width: 141px;
    height: 60px;
    background: url("../about/illustrations/illustration-about-header-logo-01.png") center / 141px 60px no-repeat;
    content: "";
}

.bmi-locations-page .site-header .header-nav {
    flex: 0 0 auto;
}

.bmi-locations-page .site-header .nav-list {
    gap: 50px;
}

.bmi-locations-page .site-header .nav-list > li > a,
.bmi-locations-page .site-header .nav-list > li:first-child > a {
    color: #dee7ee;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0;
}

/* About Banner */
.bmi-locations-page .about-hero {
    position: absolute;
    top: 144px;
    left: 0;
    width: 1920px;
    height: 300px;
    overflow: hidden;
}

.bmi-locations-page .about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1920px;
    height: 300px;
    max-width: none;
}

.bmi-locations-page .about-hero h1 {
    position: absolute;
    top: 103px;
    left: 159px;
    width: auto;
    white-space: nowrap;
    height: 92px;
    margin: 0;
    color: #ffffff;
    font-size: 76px;
    font-weight: 700;
    line-height: 92px;
    letter-spacing: 0;
}

/* ABOUT 下的三个 CMS 子栏目 Tab。 */
.bmi-locations-page .about-breadcrumb {
    position: absolute;
    top: 479px;
    left: 160px;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 24px;
    color: var(--locations-ink);
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
}

.bmi-locations-page .about-breadcrumb a {
    color: var(--locations-ink);
    text-decoration: none;
}

.bmi-locations-page .about-breadcrumb a:hover,
.bmi-locations-page .about-breadcrumb a:focus-visible {
    color: var(--locations-blue);
}

.bmi-locations-page .about-breadcrumb a:focus-visible {
    outline: 2px solid rgba(23, 93, 169, 0.45);
    outline-offset: 3px;
}

.bmi-locations-page .about-breadcrumb-sep {
    margin: 0 3px;
}

.bmi-locations-page .about-breadcrumb-current {
    color: var(--locations-blue);
}

.bmi-locations-page .about-tabs {
    position: absolute;
    top: 515px;
    left: 0;
    width: 1920px;
    height: 71px;
    border-bottom: 1px solid #dddddd;
    background: #ffffff;
}

.bmi-locations-page .about-tabs-inner {
    position: absolute;
    top: 0;
    left: 160px;
    display: flex;
    gap: 42px;
    height: 71px;
}

.bmi-locations-page .about-tab {
    position: relative;
    display: flex;
    flex: 0 0 158px;
    width: 158px;
    height: 71px;
    align-items: center;
    justify-content: center;
    padding-top: 1px;
    color: #175da9;
    font-size: 18.5px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
}

.bmi-locations-page .about-tab:nth-child(1) {
    transform: translateX(1.5px);
}

.bmi-locations-page .about-tab:nth-child(2) {
    transform: translateX(-3px);
}

.bmi-locations-page .about-tab.is-active {
    color: var(--locations-blue);
}

.bmi-locations-page .about-tab.is-active::after {
    position: absolute;
    right: 2px;
    bottom: -1px;
    left: -2px;
    height: 3px;
    background: var(--locations-blue);
    content: "";
}

.bmi-locations-page .about-tab:nth-child(2).is-active::after {
    right: -1px;
    left: 1px;
}

/* Office & Plant content */
.bmi-locations-page .locations-content {
    position: absolute;
    top: 586px;
    left: 0;
    width: 1920px;
    height: 774px;
    background: #ffffff;
}

.bmi-locations-page .locations-content > h2 {
    position: absolute;
    top: 88px;
    left: -2px;
    width: 1920px;
    height: 60px;
    margin: 0;
    color: #175da9;
    font-size: 50px;
    font-weight: 700;
    line-height: 60px;
    text-align: center;
}

.bmi-locations-page .locations-content > div {
    position: absolute;
    top: 189px;
    left: 160px;
    width: 1600px;
    height: 430px;
}

.bmi-locations-page .locations-content > div > article {
    position: absolute;
    top: 0;
    width: 500px;
    height: 430px;
    margin: 0;
}

.bmi-locations-page .locations-content > div > article:nth-child(1) {
    left: 0;
}

.bmi-locations-page .locations-content > div > article:nth-child(2) {
    left: 550px;
}

.bmi-locations-page .locations-content > div > article:nth-child(3) {
    left: 1100px;
}

.bmi-locations-page .locations-content > div > article h3 {
    position: absolute;
    top: 2px;
    left: -1px;
    width: 500px;
    height: 28px;
    margin: 0;
    color: var(--locations-blue);
    font-size: 23px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0;
}

.bmi-locations-page .locations-content > div > article:nth-child(1) h3 {
    top: 1px;
    left: -2px;
}

.bmi-locations-page .locations-content > div > article:nth-child(2) h3 {
    font-size: 22px;
}

.bmi-locations-page .locations-content > div > article > img {
    position: absolute;
    top: 53px;
    left: 0;
    display: block;
    width: 500px;
    height: 200px;
    max-width: none;
}

.bmi-locations-page .locations-content > div > article address {
    position: absolute;
    top: 277px;
    left: 0;
    width: 500px;
    margin: 0;
    color: var(--locations-ink);
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0;
}

.bmi-locations-page .locations-content > div > article address p {
    width: 500px;
    height: 30px;
    margin: 0;
    white-space: nowrap;
}

/* Head Office 地址在桌面端将街道信息合并为第一行。 */
.bmi-locations-page .locations-content > div > article:nth-child(1) address {
    display: block;
    width: 500px;
}

.bmi-locations-page .locations-content > div > article:nth-child(1) address p {
    flex: initial;
}

.bmi-locations-page .locations-content > div > article:nth-child(1) address p:nth-child(1),
.bmi-locations-page .locations-content > div > article:nth-child(1) address p:nth-child(2) {
    display: inline;
    width: auto;
}

.bmi-locations-page .locations-content > div > article:nth-child(1) address p:nth-child(2) {
    margin-left: 6px;
}

/* 所有窄屏只缩放整张 1920px 画板，不对子元素做重排。 */
@media (max-width: 1919px) {
    .bmi-locations-page .site-header .nav-toggle {
        display: none;
    }
}

@media (max-width: 1279px) {
    .bmi-locations-page .fit-shell {
        display: block;
        overflow: visible;
    }

    .bmi-locations-page .fit-box {
        width: 100% !important;
        height: auto !important;
        overflow: visible;
    }

    .bmi-locations-page .artboard {
        --site-footer-position: relative;
        --site-footer-top: auto;
        width: 100%;
        height: auto;
        overflow: visible;
        transform: none !important;
    }

    .bmi-locations-page .about-hero {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 300px;
    }

    .bmi-locations-page .about-hero-image {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    .bmi-locations-page .about-hero h1 {
        top: 50%;
        left: 0;
        width: auto;
        height: auto;
        padding: 0 32px;
        font-size: 48px;
        line-height: 1.1;
        white-space: normal;
        transform: translateY(-50%);
    }

    .bmi-locations-page .about-tabs {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        overflow-x: auto;
    }

    .bmi-locations-page .about-breadcrumb {
        position: relative;
        top: auto;
        left: auto;
        z-index: auto;
        height: 56px;
        padding: 0 32px;
        font-size: 18px;
        line-height: 24px;
    }

    .bmi-locations-page .about-tabs-inner {
        position: relative;
        left: auto;
        width: max-content;
        height: auto;
        min-width: 100%;
        gap: 12px;
        padding: 0 24px;
    }

    .bmi-locations-page .about-tab {
        flex-basis: 136px;
        width: 136px;
        min-height: 56px;
        height: auto;
        font-size: 17px;
        transform: none !important;
    }

    .bmi-locations-page .locations-content {
        position: static;
        width: 100%;
        height: auto;
        padding: 56px 32px 72px;
    }

    .bmi-locations-page .locations-content > h2 {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 36px;
        font-size: 38px;
        line-height: 1.2;
    }

    .bmi-locations-page .locations-content > div {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 28px;
        width: 100%;
        height: auto;
    }

    .bmi-locations-page .locations-content > div > article {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .bmi-locations-page .locations-content > div > article h3,
    .bmi-locations-page .locations-content > div > article > img,
    .bmi-locations-page .locations-content > div > article address {
        position: static;
        width: 100%;
        height: auto;
    }

    .bmi-locations-page .locations-content > div > article h3 {
        margin: 0 0 14px;
        font-size: 21px;
        line-height: 1.35;
    }

    .bmi-locations-page .locations-content > div > article > img {
        display: block;
        max-width: 100%;
        aspect-ratio: 5 / 2;
        object-fit: cover;
    }

    .bmi-locations-page .locations-content > div > article address {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.65;
    }

    .bmi-locations-page .locations-content > div > article address p {
        width: auto;
        height: auto;
        white-space: normal;
    }

    .bmi-locations-page .locations-content > div > article:nth-child(1) address {
        display: block;
        width: 100%;
    }

    .bmi-locations-page .locations-content > div > article:nth-child(1) address p {
        display: block;
        width: auto;
        flex: initial;
    }

    .bmi-locations-page .locations-content > div > article:nth-child(1) address p:nth-child(2) {
        margin-left: 0;
    }

    .bmi-locations-page .site-footer {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 44px 24px;
    }

    .bmi-locations-page .site-footer .footer-social,
    .bmi-locations-page .site-footer .footer-line,
    .bmi-locations-page .site-footer .footer-privacy,
    .bmi-locations-page .site-footer .footer-badge {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        transform: none;
    }

    .bmi-locations-page .site-footer .footer-line {
        white-space: normal;
        line-height: 1.55;
    }
}

@media (max-width: 680px) and (max-width: 1279px) {
    .bmi-locations-page .about-hero {
        height: auto;
        aspect-ratio: 1920 / 300;
    }

    .bmi-locations-page .about-hero-image {
        object-fit: contain;
    }

    .bmi-locations-page .about-hero h1 {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        transform: none;
        font-size: 38px;
    }

    .bmi-locations-page .locations-content {
        padding: 40px 20px 56px;
    }

    .bmi-locations-page .about-breadcrumb {
        height: 48px;
        padding: 0 20px;
        font-size: 16px;
    }

    .bmi-locations-page .about-tabs-inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0;
        padding: 0;
    }

    .bmi-locations-page .about-tab {
        width: auto;
        min-width: 0;
        flex-basis: auto;
        padding-inline: 6px;
        font-size: 15px;
        text-align: center;
    }

    .bmi-locations-page .locations-content > h2 {
        font-size: 31px;
    }

    .bmi-locations-page .locations-content > div {
        grid-template-columns: 1fr;
    }
}
