/* 
   English-specific styles for Site14
   Overrides are handled via specificity (e.g., html[lang="en"]) 
   to avoid excessive use of !important.
*/

/* Italic style for <i> tags */
html[lang="en"] i {
    font-style: italic;
}

html[lang="en"] .side-text-area {
    text-orientation: sideways;
    font-family: var(--font-en);
    font-weight: normal;
}

html[lang="en"] .opening-logo-svg {
    width: 100%;
    height: auto;
    display: block;
}

html[lang="en"] .intro-title {
    line-height: 1.5;
}

/* Unify letter-spacing for all English texts to 0.05em */
html[lang="en"] .top-subtitle,
html[lang="en"] .nav-column a,
html[lang="en"] .nav-info-btn,
html[lang="en"] .nav-footer .lang-switch,
html[lang="en"] .pc-nav-list a,
html[lang="en"] .side-nav-list a,
html[lang="en"] .pc-lang-switch,
html[lang="en"] .intro-link,
html[lang="en"] .loading-text {
    letter-spacing: 0.05em;
}

/* Adjust padding for the last nav column in the hamburger menu */
html[lang="en"] .nav-column:last-child {
    padding-left: 20px;
}

/* 
   Subpage Layout Adjustments (English)
   Revert vertical layout to horizontal stack (h2 over p) 
   and align to the left.
*/
html[lang="en"] .product-page .product-intro-vertical {
    writing-mode: horizontal-tb;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    margin: 0 0 40px;
    display: flex;
}

html[lang="en"] .product-page .product-intro-vertical h2 {
    margin: 0 0 20px 0;
    width: auto;
    font-size: 20px;
    transform: none;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

html[lang="en"] .product-page .product-intro-vertical p {
    margin: 0;
    text-align: left;
    max-width: 600px;
}

/* PC layout: illustration left, text right, side by side */
@media (min-width: 768px) {
    html[lang="en"] .product-page .product-intro .container {
        flex-direction: row-reverse;
        align-items: flex-start;
        justify-content: center;
        gap: 4vw;
    }

    html[lang="en"] .product-page .product-intro-illustration {
        flex: 0 0 auto;
        width: 28vw;
        padding-left: 0;
        overflow: hidden;
    }

    html[lang="en"] .product-page .product-intro-illustration img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    html[lang="en"] .product-page .product-intro-vertical {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        margin: 0;
        padding: 0;
    }

    html[lang="en"] .product-page .product-intro-vertical h2 {
        font-size: 2.2vw;
    }

    html[lang="en"] .product-page .product-intro-vertical p {
        font-size: 1.4vw;
        max-width: none;
    }
}

/* Intro section: extra padding-bottom for hands.html (EN) long text (PC)
   Prevents text overlap with the background image at the bottom-right.
   Approximately 4 lines of text headroom added. */
@media (min-width: 768px) and (orientation: landscape) {
    html[lang="en"] body[data-page-theme="7"] .product-intro {
        padding-bottom: 180px; /* 80px base + ~100px for 4 lines */
    }
}

@media (min-width: 768px) and (orientation: portrait) {
    html[lang="en"] body[data-page-theme="7"] .product-intro {
        padding-bottom: calc(8vw + 14vw); /* 8vw base + ~14vw for 4 lines */
    }
}

/* Intro text glow: match each theme's background color with static values.
   Stacked multiple layers to increase density/opacity of the glow. */
html[lang="en"] body[data-page-theme="1"] .product-intro-vertical > p {
    text-shadow: 0 0 4px #bfcde0, 0 0 4px #bfcde0, 0 0 12px #bfcde0, 0 0 25px #bfcde0, 0 0 40px #bfcde0;
}
html[lang="en"] body[data-page-theme="2"] .product-intro-vertical > p {
    text-shadow: 0 0 4px #bfbfdc, 0 0 4px #bfbfdc, 0 0 12px #bfbfdc, 0 0 25px #bfbfdc, 0 0 40px #bfbfdc;
}
html[lang="en"] body[data-page-theme="3"] .product-intro-vertical > p {
    text-shadow: 0 0 4px #a4c5cb, 0 0 4px #a4c5cb, 0 0 12px #a4c5cb, 0 0 25px #a4c5cb, 0 0 40px #a4c5cb;
}
html[lang="en"] body[data-page-theme="4"] .product-intro-vertical > p {
    text-shadow: 0 0 4px #a0c3b8, 0 0 4px #a0c3b8, 0 0 12px #a0c3b8, 0 0 25px #a0c3b8, 0 0 40px #a0c3b8;
}
html[lang="en"] body[data-page-theme="5"] .product-intro-vertical > p {
    text-shadow: 0 0 4px #e0b896, 0 0 4px #e0b896, 0 0 12px #e0b896, 0 0 25px #e0b896, 0 0 40px #e0b896;
}
html[lang="en"] body[data-page-theme="6"] .product-intro-vertical > p {
    text-shadow: 0 0 4px #ddafaf, 0 0 4px #ddafaf, 0 0 12px #ddafaf, 0 0 25px #ddafaf, 0 0 40px #ddafaf;
}
html[lang="en"] body[data-page-theme="7"] .product-intro-vertical > p {
    text-shadow: 0 0 4px #eada96, 0 0 4px #eada96, 0 0 12px #eada96, 0 0 25px #eada96, 0 0 40px #eada96;
}