@charset "utf-8";
/*!
 * TYCOONS Worldwide Group (Thailand) PLC - site.css
 * Progressive enhancement layer on top of the original layout CSS.
 * Plain CSS (no preprocessor, no build step). Loaded AFTER css_in_*.css.
 */

/* ==================================================================
   1. Base / typography
   ================================================================== */

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Language-aware font stacks: the old Verdana/Arial stack renders Thai
   and CJK poorly, so each language gets a native face first. */
html[lang="th"] body,
html[lang="th"] input,
html[lang="th"] textarea,
html[lang="th"] select {
    font-family: "Segoe UI", "Leelawadee UI", Tahoma, "Noto Sans Thai", "Sarabun", Verdana, sans-serif;
}

html[lang="zh-Hant"] body,
html[lang="zh-Hant"] input,
html[lang="zh-Hant"] textarea,
html[lang="zh-Hant"] select {
    font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", Verdana, sans-serif;
}

body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Long unbroken rows (product spec tables, financial statements) must
   scroll inside their box instead of stretching the 990px layout. */
#right_about_word table,
.word_box table,
.news_wordin table {
    max-width: 100%;
}

#right_about_word p,
.news_wordin p,
.word_box p {
    line-height: 1.6;
}

/* ==================================================================
   2. Accessibility
   ================================================================== */

a:focus-visible,
button:focus-visible,
area:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #30b1eb;
    outline-offset: 2px;
}

/* Keyboard-only skip link, revealed on focus. */
.om-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 10px 16px;
    background: #0b2230;
    color: #fff;
    font: bold 13px/1.4 Arial, Helvetica, sans-serif;
    text-decoration: none;
    border: 2px solid #30b1eb;
}

.om-skip:focus {
    left: 8px;
    top: 8px;
    color: #fff;
}

/* Never let a hover/focus style fight the reader. */
.om-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==================================================================
   3. Frames (header / footer / nested menus)
   ================================================================== */

iframe.om-frame {
    display: block;
    width: 100%;
    border: 0;
    overflow: hidden;
    background: transparent;
    color-scheme: normal;
}

/* Embedded menus (prod_menuleft*.htm) keep their 200px column but stop
   showing a second scrollbar. */
iframe[name="vertical-menu"] {
    overflow: hidden;
}

/* ==================================================================
   4. Ad slideshow
   ================================================================== */

#slideshow_wrapper {
    touch-action: pan-y;
}

#slideshow_wrapper:focus-within {
    outline: 1px solid rgba(48, 177, 235, 0.6);
}

#slideshow_photo > a {
    outline: 0;
}

#slideshow_footbar {
    white-space: nowrap;
    text-align: right;
}

#slideshow_footbar .slideshow-bt {
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#slideshow_footbar .slideshow-bt:hover,
#slideshow_footbar .slideshow-bt:focus-visible {
    background-color: #30b1eb;
    transform: scale(1.2);
    outline: 0;
}

#slideshow_footbar .slideshow-bt.bt-on {
    background-color: #30b1eb;
}

/* ==================================================================
   5. Content pages
   ================================================================== */

#right_about_word img,
.news_wordin img,
.word_box img,
.pic_box img,
.pic_box_l img {
    max-width: 100%;
    height: auto;
}

/* Sidebar: give the current page a visible marker. */
#left_menu li.is-active > a {
    color: #30b1eb;
    font-weight: bold;
}

/* External / embedded media */
.mapbox iframe,
.pic_box iframe {
    max-width: 100%;
    border: 0;
}

/* ==================================================================
   6. Footer frame
   ================================================================== */

#footer {
    padding-bottom: 14px;
}

#footer_word {
    padding: 10px 12px 0;
}

#footer_word p {
    margin: 0 0 8px;
}

#footer_word a {
    display: inline-block;
    padding: 2px 1px;
}

/* ==================================================================
   7. Lightbox (replaces js/lightbox.js)
   ================================================================== */

html.om-lb-lock {
    overflow: hidden;
}

#om-lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 14, 20, 0.92);
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    padding: 56px 16px 24px;
    overflow: auto;
}

#om-lightbox[hidden] {
    display: none;
}

#om-lightbox .om-lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60%;
}

#om-lightbox img {
    max-width: 92%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border: 6px solid #fff;
    background: #fff;
    box-sizing: border-box;
}

#om-lightbox .om-lb-cap {
    margin: 12px auto 0;
    max-width: 720px;
    font: 13px/1.5 Helvetica, Arial, sans-serif;
    color: #d7e3ea;
}

#om-lightbox .om-lb-bar {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    gap: 8px;
}

#om-lightbox button {
    width: 36px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

#om-lightbox button:hover,
#om-lightbox button:focus-visible {
    background: #247fb7;
    border-color: #247fb7;
    outline: 0;
}

/* ==================================================================
   8. Back to top
   ================================================================== */

#om-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    background: rgba(11, 34, 48, 0.86);
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#om-top.is-on {
    opacity: 1;
    visibility: visible;
}

#om-top:hover,
#om-top:focus-visible {
    background: #247fb7;
    color: #fff;
}

/* ==================================================================
   9. Responsive: the 1000px canvas reflows instead of scrolling sideways
   ================================================================== */

@media screen and (max-width: 1010px) {

    #container,
    #menubox,
    #t_menu,
    #t_banner,
    #content,
    #content_about,
    #slideshow_wrapper {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    #content_about {
        background-size: 100% auto;
    }

    /* Slideshow: keep the 990x287 ratio while the width shrinks. */
    #slideshow_wrapper {
        height: 0 !important;
        padding-bottom: 29%;
        position: relative;
    }

    #slideshow_photo,
    #slideshow_photo > a {
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
        width: 100%;
    }

    #slideshow_photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 0;
    }

    /* Two columns of shortcut tiles, then one on phones. */
    .index_box01 {
        width: 46%;
        height: auto;
        margin: 1.5%;
        padding: 6px;
        box-sizing: border-box;
    }

    .index_box01 img {
        width: 100%;
        height: auto;
    }

    /* Sidebar collapses above the article. */
    #left_box,
    #right_box,
    #left_title,
    #right_title {
        float: none;
        width: 100% !important;
        height: auto;
        margin: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #left_title img,
    #right_title img {
        width: 100%;
        height: auto;
    }

    #left_menu {
        width: 100%;
        float: none;
        line-height: 1.8;
    }

    #left_menu ul {
        display: flex;
        flex-wrap: wrap;
    }

    #left_menu li {
        border: 0;
        border-right: 1px solid #999;
        margin: 0 0 6px;
        padding: 0 8px;
    }

    #left_menu li:last-child {
        border-right: 0;
    }

    /* Article column and every fixed-width content block go fluid. */
    #right_about_word,
    .word_box,
    .news_word,
    .news_wordin,
    .news_wordin_icon,
    .pic_box,
    .pic_box_l,
    .product_box,
    .product_box_footer,
    .product_box_pic,
    .product_box_word,
    .mapbox,
    .qcbox,
    .certificate_box_pic,
    .certificate_box2_pic,
    .certificate_box_picword,
    .work_box_pic,
    .open {
        width: auto !important;
        max-width: 100%;
        float: none;
        box-sizing: border-box;
        margin: 0 auto;
        padding-left: 12px;
        padding-right: 12px;
    }

    input,
    select,
    textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 640px) {

    .index_box01 {
        width: 96%;
    }

    #right_about_word,
    .word_box,
    .news_word,
    .news_wordin,
    .pic_box,
    .pic_box_l {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product_box_pic,
    .certificate_box_pic,
    .certificate_box2_pic {
        width: 100% !important;
    }

    #om-top {
        right: 10px;
        bottom: 10px;
        width: 38px;
        height: 38px;
        line-height: 38px;
    }
}

/* ==================================================================
   10. Motion + print
   ================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {

    body {
        background: #fff !important;
        color: #000 !important;
    }

    iframe.om-frame,
    #om-top,
    #om-lightbox,
    #slideshow_wrapper,
    #left_box,
    #left_title {
        display: none !important;
    }

    #container,
    #content,
    #content_about,
    #right_box,
    #right_about_word {
        width: auto !important;
        float: none !important;
        background: none !important;
    }

    #right_about_word,
    #right_about_word h3,
    #right_about_word h4,
    .news_wordin,
    .word_box {
        color: #000 !important;
    }
}
