/* Yuanji R&D extension. Scoped to .yj-rd; leaves shared pages unchanged. */
.yj-rd {
    --yj-ink: #14384d;
    --yj-blue: #176f9f;
    --yj-line: #dbe6ec;
    --yj-text: #536d7e;
    --yj-pale: #f2f6f8;
    color: var(--yj-ink)
}

.yj-rd * {
    box-sizing: border-box
}

.yj-rd figure {
    margin: 0
}

.yj-rd h2,
.yj-rd h3,
.yj-rd p {
    margin: 0
}

.yj-rd h2 {
    font-size: clamp(30px, 3.25vw, 47px);
    font-weight: 720;
    line-height: 1.25;
    letter-spacing: -.035em;
    white-space: pre-line;
    overflow-wrap: anywhere
}

.yj-rd h3 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700
}

.yj-rd p {
    color: var(--yj-text);
    font-size: 15px;
    line-height: 1.9
}

.yj-rd section {
    scroll-margin-top: 110px
}

.yj-section {
    padding: 45px 0
}

.yj-kicker {
    display: block;
    color: var(--yj-blue);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .14em;
    line-height: 1.7;
    margin-bottom: 18px
}

.yj-head {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 38px
}

.yj-head>p {
    max-width: 470px;
    justify-self: end
}

.yj-jump {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 0;
    border-top: 1px solid var(--yj-line);
    border-bottom: 1px solid var(--yj-line)
}

.yj-jump a {
    font-size: 13px;
    font-weight: 650;
    color: var(--yj-text);
    line-height: 1.5
}

.yj-jump a:hover {
    color: var(--yj-blue)
}

.yj-sample-feature {
    display: grid;
    grid-template-columns: 1.23fr 1fr;
    background: var(--yj-pale);
    border: 1px solid var(--yj-line)
}

.yj-photo {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #e6eef3
}

.yj-photo>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 390px
}

.yj-photo figcaption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    right: 18px;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .035em;
    background: rgba(255, 255, 255, .92);
    color: #456477;
    padding: 8px 12px;
    width: fit-content;
    max-width: calc(100% - 36px)
}

.yj-sample-copy {
    padding: 38px
}

.yj-sample-copy h3 {
    font-size: clamp(23px, 2.2vw, 30px);
    margin-bottom: 17px;
    line-height: 1.4
}

.yj-sample-copy .yj-kicker {
    font-size: 9px
}

.yj-alloys {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0 15px
}

.yj-alloys span {
    background: #fff;
    border: 1px solid #cfdee7;
    color: var(--yj-ink);
    padding: 7px 13px;
    font-size: 15px;
    font-weight: 700
}

.yj-rd .yj-note {
    font-size: 12px;
    line-height: 1.85;
    color: #637d8d
}

.yj-textlink {
    display: inline-flex;
    gap: 22px;
    align-items: center;
    margin-top: 20px;
    color: var(--yj-blue);
    font-weight: 700;
    font-size: 13px
}

.yj-textlink span {
    font-size: 21px
}

.yj-surface-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 26px;
    border: 1px solid var(--yj-line)
}

.yj-surface {
    padding: 26px 23px 24px;
    background: #fff;
    border-right: 1px solid var(--yj-line);
    min-width: 0
}

.yj-surface:last-child {
    border-right: 0
}

.yj-surface-top {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 12px
}

.yj-surface-top>span {
    font-size: 22px;
    line-height: 1;
    color: #8aa9bc;
    font-weight: 500
}

.yj-surface-top>small {
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .08em;
    color: var(--yj-blue);
    min-height: 26px;
    display: flex;
    align-items: end
}

.yj-surface h3 {
    font-size: 20px;
    margin-bottom: 13px
}

.yj-surface p {
    font-size: 13px;
    line-height: 1.85
}

.yj-check {
    border-top: 1px solid var(--yj-line);
    margin-top: 23px;
    padding-top: 16px
}

.yj-check b {
    display: block;
    color: var(--yj-blue);
    font-weight: 650;
    font-size: 10px;
    margin-bottom: 8px
}

.yj-check span {
    display: block;
    font-size: 11px;
    color: var(--yj-text);
    line-height: 1.9
}

.yj-rotor {
    background: var(--yj-pale)
}

.yj-rotor-feature {
    display: grid;
    grid-template-columns: 1fr 1.04fr;
    gap: 50px;
    align-items: center
}

.yj-rotor-copy>.yj-intro {
    font-size: 18px;
    line-height: 1.8;
    margin: 22px 0 16px;
    color: var(--yj-ink)
}

.yj-rotor .yj-photo {
    align-self: stretch;
    min-height: 430px
}

.yj-rotor .yj-photo>img {
    object-position: 56% center
}

.yj-outcomes {
    display: grid;
    gap: 15px;
    margin-top: 26px
}

.yj-outcomes>div {
    padding-left: 15px;
    border-left: 2px solid #74a7c4
}

.yj-outcomes strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.6
}

.yj-outcomes span {
    font-size: 12px;
    color: var(--yj-text);
    line-height: 1.7;
    display: block
}

.yj-process {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 40px 0 16px;
    border-top: 1px solid #b4ccd9
}

.yj-process li {
    padding: 23px 20px 0 0;
    position: relative;
    min-width: 0
}

.yj-process li:before {
    content: '';
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: var(--yj-blue);
    position: absolute;
    top: -4px
}

.yj-process li>span {
    font-size: 10px;
    color: var(--yj-blue);
    font-weight: 700;
    letter-spacing: .1em;
    display: block;
    margin-bottom: 9px
}

.yj-process h3 {
    font-size: 17px;
    margin-bottom: 8px
}

.yj-process p {
    font-size: 12px;
    line-height: 1.8
}

.yj-rotor-note {
    margin-top: 26px !important;
    max-width: 950px
}

.yj-standards {
    padding: 45px 0
}

.yj-standard-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--yj-line)
}

.yj-standard-grid article {
    padding: 28px 18px;
    border-right: 1px solid var(--yj-line);
    text-align: center
}

.yj-standard-grid article:last-child {
    border: 0
}

.yj-standard-grid h3 {
    font-size: 29px;
    color: var(--yj-blue);
    letter-spacing: .015em;
    margin-bottom: 8px
}

.yj-standard-grid p {
    font-size: 12px;
    line-height: 1.7
}

.yj-standard-note {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 45px;
    align-items: start
}

.yj-standard-note strong {
    font-size: 11px;
    line-height: 1.9;
    letter-spacing: .02em;
    color: var(--yj-blue)
}

.yj-standard-note p {
    font-size: 12px;
    line-height: 1.9
}

.yj-lab {
    background: var(--yj-pale)
}

.yj-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px
}

.yj-filters button {
    padding: 10px 17px;
    border: 1px solid #c9dae4;
    border-radius: 2px;
    background: transparent;
    color: var(--yj-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    transition: background .15s, color .15s
}

.yj-filters button[aria-pressed=true] {
    background: var(--yj-ink);
    color: #fff;
    border-color: var(--yj-ink)
}

.yj-filters button:hover {
    border-color: var(--yj-blue)
}

.yj-rd .yj-filter-status {
    min-height: 26px;
    margin-bottom: 15px;
    font-size: 11px
}

.yj-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start
}

.yj-equipment {
    background: #fff;
    border: 1px solid var(--yj-line);
    min-width: 0
}

.yj-equipment[hidden] {
    display: none !important
}

.yj-equipment-media {
    position: relative;
    aspect-ratio: 1.4;
    background: #e8f0f5;
    overflow: hidden
}

.yj-atlas {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('../img/rd-equipment-atlas.webp');
    background-size: 300% 200%;
    background-repeat: no-repeat;
    aspect-ratio: 1
}

.yj-tile-0 {
    background-position: 0 0
}

.yj-tile-1 {
    background-position: 50% 0
}

.yj-tile-2 {
    background-position: 100% 0
}

.yj-tile-3 {
    background-position: 0 100%
}

.yj-tile-4 {
    background-position: 50% 100%
}

.yj-tile-5 {
    background-position: 100% 100%
}

.yj-equipment-media:has(.yj-atlas) {
    aspect-ratio: 1
}

.yj-equipment-media .yj-equipment-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    mix-blend-mode: multiply
}

.yj-equipment-media:has(.yj-equipment-photo) {
    aspect-ratio: 1
}

.yj-image-label {
    position: absolute;
    bottom: 11px;
    left: 12px;
    color: #456477;
    background: rgba(255, 255, 255, .92);
    font-size: 9px;
    line-height: 1.5;
    padding: 5px 9px;
    letter-spacing: .03em
}

.yj-equipment-body {
    padding: 23px 24px 0
}

.yj-equipment-eyebrow {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
    color: var(--yj-blue)
}

.yj-equipment-eyebrow>span {
    font-size: 12px;
    font-weight: 700
}

.yj-equipment-eyebrow small {
    font-size: 9px;
    letter-spacing: .06em;
    font-weight: 600;
    line-height: 1.6
}

.yj-equipment h3 {
    font-size: 20px;
    margin-bottom: 12px
}

.yj-equipment p {
    font-size: 13px;
    line-height: 1.85
}

.yj-equipment details {
    margin-top: 20px;
    border-top: 1px solid var(--yj-line)
}

.yj-equipment summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 650;
    color: var(--yj-blue);
    padding: 16px 0
}

.yj-equipment summary::-webkit-details-marker {
    display: none
}

.yj-equipment summary>span {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    transition: transform .2s
}

.yj-equipment details[open] summary>span {
    transform: rotate(45deg)
}

.yj-detail {
    padding: 2px 0 22px
}

.yj-detail b {
    display: block;
    font-size: 10px;
    margin-bottom: 6px;
    color: var(--yj-ink)
}

.yj-detail p {
    font-size: 12px;
    margin-bottom: 15px
}

.yj-detail p:last-child {
    margin-bottom: 0
}

.yj-image-note {
    margin-top: 22px !important;
    max-width: 960px
}

.yj-thermal {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    margin-top: 56px;
    border: 1px solid var(--yj-line);
    background: #fff
}

.yj-thermal figure {
    min-height: 310px;
    overflow: hidden
}

.yj-thermal figure img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.yj-thermal>div {
    padding: 34px 38px
}

.yj-thermal h3 {
    font-size: 25px;
    line-height: 1.45;
    margin-bottom: 16px
}

.yj-thermal p {
    font-size: 14px
}

.yj-thermal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 23px
}

.yj-thermal-tags>span {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff5f8;
    padding: 10px 13px;
    font-size: 11px;
    color: var(--yj-text)
}

.yj-thermal-tags b {
    color: var(--yj-blue);
    font-size: 16px
}

.yj-contact-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-top: 45px;
    margin-top: 45px;
    border-top: 1px solid #cbdae3
}

.yj-contact-strip h3 {
    font-size: 27px;
    margin-bottom: 12px
}

.yj-contact-strip .yj-kicker {
    font-size: 9px;
    margin-bottom: 13px
}

.yj-contact-strip p {
    font-size: 13px
}

.yj-contact-strip a {
    white-space: nowrap
}

.yj-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media(min-width:1600px) {
    .yj-rd .wrap {
        max-width: 1360px
    }

    .yj-sample-copy {
        padding: 48px
    }

    .yj-equipment-media {
        max-height: 420px
    }

    .yj-equipment-media:has(.yj-atlas) {
        max-height: none
    }
}

@media(max-width:1100px) {
    .yj-head {
        gap: 35px
    }

    .yj-sample-copy {
        padding: 27px
    }

    .yj-surface-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .yj-surface {
        border-bottom: 1px solid var(--yj-line);
        padding: 25px
    }

    .yj-surface:nth-child(2) {
        border-right: 0
    }

    .yj-surface:nth-child(n+3) {
        border-bottom: 0
    }

    .yj-surface-top {
        flex-direction: row;
        align-items: center;
        gap: 15px
    }

    .yj-surface-top>small {
        min-height: 0
    }

    .yj-rotor-feature {
        gap: 30px
    }

    .yj-equipment-grid {
        gap: 16px
    }

    .yj-equipment-body {
        padding: 20px 18px 0
    }

    .yj-thermal>div {
        padding: 28px
    }

    .yj-standard-note {
        gap: 30px
    }
}

@media(max-width:800px) {
    .yj-section {
        padding: 60px 0
    }

    .yj-head {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 29px
    }

    .yj-head>p {
        max-width: 600px;
        justify-self: start
    }

    .yj-sample-feature,
    .yj-rotor-feature {
        grid-template-columns: 1fr
    }

    .yj-sample-feature .yj-photo>img {
        min-height: 0;
        aspect-ratio: 1.5
    }

    .yj-sample-copy {
        padding: 30px
    }

    .yj-rotor .yj-photo {
        min-height: 0
    }

    .yj-rotor .yj-photo>img {
        min-height: 0;
        aspect-ratio: 1.5
    }

    .yj-outcomes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px
    }

    .yj-equipment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .yj-standard-note {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .yj-standard-grid article {
        padding: 22px 10px
    }

    .yj-standard-grid h3 {
        font-size: 25px
    }

    .yj-standard-grid p {
        font-size: 10px
    }

    .yj-process {
        gap: 0
    }

    .yj-process li {
        padding-right: 14px
    }

    .yj-process h3 {
        font-size: 15px
    }

    .yj-process p {
        font-size: 11px
    }

    .yj-thermal {
        grid-template-columns: 1fr
    }

    .yj-thermal figure {
        max-height: 350px
    }

    .yj-thermal img {
        min-height: 0
    }

    .yj-contact-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px
    }

    .yj-jump {
        gap: 14px;
        overflow: auto;
        justify-content: flex-start
    }

    .yj-jump a {
        white-space: nowrap;
        font-size: 12px
    }

    .yj-rd section {
        scroll-margin-top: 95px
    }
}

@media(max-width:520px) {
    .yj-rd .wrap {
        width: calc(100% - 36px)
    }

    .yj-section {
        padding: 46px 0
    }

    .yj-rd h2 {
        font-size: 30px
    }

    .yj-rd p {
        font-size: 14px
    }

    .yj-kicker {
        font-size: 9px;
        letter-spacing: .1em
    }

    .yj-head {
        gap: 17px
    }

    .yj-sample-copy {
        padding: 24px
    }

    .yj-sample-copy h3 {
        font-size: 24px
    }

    .yj-surface-grid {
        grid-template-columns: 1fr
    }

    .yj-surface {
        border-right: 0;
        border-bottom: 1px solid var(--yj-line) !important
    }

    .yj-surface:last-child {
        border-bottom: 0 !important
    }

    .yj-surface-top {
        margin-bottom: 12px
    }

    .yj-surface p {
        font-size: 13px
    }

    .yj-check {
        margin-top: 16px
    }

    .yj-surface-top>small {
        font-size: 9px
    }

    .yj-outcomes {
        grid-template-columns: 1fr;
        gap: 17px
    }

    .yj-rotor-copy>.yj-intro {
        font-size: 17px
    }

    .yj-process {
        grid-template-columns: 1fr;
        margin-top: 27px;
        border-top: 0;
        border-left: 1px solid #b4ccd9;
        padding: 0 0 0 22px;
        gap: 20px
    }

    .yj-process li {
        padding: 0 0 0 0
    }

    .yj-process li:before {
        top: 5px;
        left: -26px
    }

    .yj-process li>span {
        margin-bottom: 5px
    }

    .yj-process p {
        font-size: 12px
    }

    .yj-standard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .yj-standard-grid article {
        border-bottom: 1px solid var(--yj-line);
        padding: 24px 12px
    }

    .yj-standard-grid article:nth-child(2n) {
        border-right: 0
    }

    .yj-standard-grid article:last-child {
        grid-column: 1/-1
    }

    .yj-standard-grid p {
        font-size: 12px
    }

    .yj-standard-note p {
        font-size: 12px
    }

    .yj-filters button {
        padding: 8px 11px;
        font-size: 11px
    }

    .yj-equipment-grid {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .yj-equipment-body {
        padding: 23px 24px 0
    }

    .yj-equipment h3 {
        font-size: 21px
    }

    .yj-equipment p {
        font-size: 13px
    }

    .yj-equipment-media {
        max-height: none
    }

    .yj-image-note {
        font-size: 11px !important
    }

    .yj-photo figcaption {
        font-size: 9px;
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px)
    }

    .yj-thermal>div {
        padding: 25px
    }

    .yj-thermal figure {
        min-height: 200px
    }

    .yj-thermal h3 {
        font-size: 23px
    }

    .yj-contact-strip h3 {
        font-size: 25px
    }

    .yj-jump {
        width: 100% !important;
        padding: 18px;
        gap: 23px
    }

    .yj-jump a {
        font-size: 11px
    }

    .yj-rd .yj-filter-status {
        font-size: 11px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .yj-rd * {
        transition: none !important
    }
}

@media print {

    .yj-jump,
    .yj-filters,
    .yj-filter-status,
    .yj-contact-strip {
        display: none
    }

    .yj-section {
        padding: 26px 0
    }

    .yj-equipment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .yj-equipment {
        break-inside: avoid
    }

    .yj-equipment[hidden] {
        display: block !important
    }

    .yj-rd .wrap {
        width: 100%
    }

    .yj-equipment-media {
        height: 180px
    }

    .yj-rotor .yj-photo {
        min-height: 250px
    }
}

/* Page-local repair for the original dual-logo mobile header. */
@media(max-width:680px) {
    .yuanji-rd-page .header-inner {
        gap: 8px
    }

    .yuanji-rd-page .logo img:first-child {
        width: clamp(85px, 26vw, 110px)
    }

    .yuanji-rd-page .logo img+img {
        width: clamp(76px, 23vw, 96px);
        margin-left: 8px !important
    }

    .yuanji-rd-page .header-actions {
        padding-left: 0;
        gap: 7px;
        flex-shrink: 0
    }

    .yuanji-rd-page .languages {
        white-space: nowrap;
        flex-shrink: 0;
        gap: 5px;
        font-size: 11px
    }

    .yuanji-rd-page .menu-toggle {
        min-width: 30px;
        width: 30px;
        padding: 3px
    }

    .yuanji-rd-page .header .main-nav {
        top: 67px
    }
}