/*************************************************************
 * lang_common.css (udrmembers) - loaded ONLY for en / ja / zh (see i18n_head()).
 * Korean pages never load this file, so the Korean design is untouched.
 * Rules are scoped to the shared header (#header) and to i18n helper classes.
 *************************************************************/

/* ---- language flags / links (top right) ------------------------------------------------ */
body #header .util_area ul.util_right li.fn_ko a { white-space: nowrap; }
body #header .util_area ul.util_right li.lang_on a.btn_en,
body #header .util_area ul.util_right li.lang_on a.btn_ch,
body #header .util_area ul.util_right li.lang_on a.btn_ja { outline: 2px solid #e4002b; outline-offset: 1px; border-radius: 50%; }
body #header .util_area ul.util_right li a { white-space: nowrap; }
/* the util row must never push the flags below the row: allow the text items to wrap only between items */
body #header .util_area ul.util_right { max-width: 100%; }

/* ---- main menu: the Korean labels are baked into the sprite -> overlay real text on the 6 text cells ---- */
/* cell 1 (UDR members logo) and cell 8 (Golf system logo) keep the sprite; their text stays hidden */
body #header .gnb_group ul li.btn_net a,
body #header .gnb_group ul li.btn_event a,
body #header .gnb_group ul li.btn_movie a,
body #header .gnb_group ul li.btn_my a,
body #header .gnb_group ul li.btn_sites a,
body #header .gnb_group ul li.btn_com a {
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; height: 51px; padding: 0 6px; margin: 1px 0 0 0; /* keep the 1px bar line above */
  background: #fff; color: #222;
  text-indent: 0; font-size: 13px; font-weight: bold; line-height: 1.2; text-align: center;
  word-break: normal; overflow-wrap: anywhere; text-wrap: balance;
  letter-spacing: 0;
}
body #header .gnb_group ul li.btn_net a:hover,
body #header .gnb_group ul li.btn_event a:hover,
body #header .gnb_group ul li.btn_movie a:hover,
body #header .gnb_group ul li.btn_my a:hover,
body #header .gnb_group ul li.btn_sites a:hover,
body #header .gnb_group ul li.btn_com a:hover { color: #e4002b; }
/* Japanese / Chinese labels are denser; Japanese katakana labels are long -> a little smaller, still wrapping (no clipping) */
html[lang="ja"] body #header .gnb_group ul li a { font-size: 12.5px; }

/* ---- sub menu (hover drop-down): fixed 24px rows would clip longer text -> rows grow, columns stay equal height.
        The 250px background sprite carries the bottom line, so it is replaced by a real border for the taller panel ---- */
body #header .gnb_sub[style*="block"] { display: flex !important; height: auto; min-height: 250px; background-image: none; background-color: #fff; border-bottom: 3px solid #d2d2d2; padding-bottom: 8px; box-sizing: border-box; }
body #header .gnb_sub ul { flex: none; height: auto !important; min-height: 212px; letter-spacing: 0; }
body #header .gnb_sub ul.gnb_sub_myrecord { min-height: 182px; }
body #header .gnb_sub ul li { height: auto !important; min-height: 24px; line-height: 1.3; padding: 3px 0; box-sizing: border-box; }
body #header .gnb_sub ul li a { text-indent: 0; padding: 0 6px; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
body #header .gnb_sub ul.gnb_sub_myrecord li a { text-indent: 0; padding-left: 10px; }
body #header .gnb_sub ul li a:hover { letter-spacing: 0; }

/* ---- helper classes used by limgtag()/limgx() when a text replacement of an image is chosen ---- */
.i18n-btn { display: inline-block; padding: 3px 10px; background: #e4002b; color: #fff; border-radius: 3px; font-size: 12px; line-height: 1.3; vertical-align: middle; cursor: pointer; }
.i18n-title { display: block; margin: 0; padding: 0; font-size: 20px; line-height: 1.3; color: #222; }
.i18n-banner { display: block; box-sizing: border-box; max-width: 100%; padding: 10px 12px; border: 1px solid #ddd; background: #fafafa; color: #444; font-size: 13px; line-height: 1.5; }
.i18n-txt { font-size: 12px; }

/* ---- footer: fixed 18px rows clip longer addresses -> rows grow (floats wrap) ---- */
body #footer_container { height: auto; min-height: 223px; padding-bottom: 24px; box-sizing: border-box; }
body .footer_linker_fsite { height: auto; min-height: 40px; display: flow-root; }
body .footer_linker { max-width: calc(100% - 150px); }
body .footer_linker_fsite2 { height: auto; overflow: visible; }
body .footer_linker2 { float: none; display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; }
body .footer_linker2 li, body .footer_linker2 li.first_linker { float: none; padding: 0; background: none; }
body .footer_linker2_fb_brog { height: auto; overflow: visible; }
body .footer_linker2_copy li { letter-spacing: 0; }

/* ---- index: brochure language row (fixed 30-52px floats) ---- */
body .re_20inc_06 .bro_t, body .re_20inc_06 .bro_t2, body .re_20inc_06 .bro_t3, body .re_20inc_06 .bro_t4 { width: auto; margin-left: 8px; white-space: nowrap; letter-spacing: 0; }
/* index: ranking tabs and small tab labels must never wrap into the 23px tab */
body .re_ranking_m2 li a, body .re_ranking_box_menu2 li a { white-space: nowrap; letter-spacing: 0; }
/* "more" links and narrow table header cells: widen instead of wrapping */
body .more, body .mov_more, body .re_more { width: auto; white-space: nowrap; letter-spacing: 0; }
body .re_cham_table_f1 { white-space: nowrap; }
/* left sub menu: fixed 24/27px rows clip longer labels -> let the rows wrap and grow */
body .sub_left .gnb_major2 ul li.btn_service2 a, body .sub_left .gnb_major2 ul li.btn_service2_on a,
body .sub_left .gnb_major2 ul li.btn_service3 a, body .sub_left .gnb_major2 ul li.btn_service3_on a { height: auto; min-height: 24px; box-sizing: border-box; line-height: 16px; padding-top: 5px; padding-bottom: 4px; letter-spacing: 0; }
body .sub_left .gnb_major2 ul li.btn_service3 a, body .sub_left .gnb_major2 ul li.btn_service3_on a { padding-top: 7px; }
body .sub_left .gnb_major2 ul li.btn_service2, body .sub_left .gnb_major2 ul li.btn_service2_on, body .sub_left .gnb_major2 ul li.btn_service3, body .sub_left .gnb_major2 ul li.btn_service3_on { height: auto; }
/* left sub menu (gnb_major variant used by event/championship/community pages): rows grow with wrapped labels */
body .sub_left .gnb_major ul { height: auto; overflow: visible; }
body .sub_left .gnb_major ul li { height: auto; min-height: 32px; box-sizing: border-box; }
body .sub_left .gnb_major ul li a, body .sub_left .gnb_major ul li.sub_menu a, body .sub_left .gnb_major ul li a.selected { display: block; height: auto; min-height: 27px; box-sizing: border-box; line-height: 16px; padding-top: 8px; padding-bottom: 7px; letter-spacing: 0; }
body .sub_left .gnb_major ul li a.selected { padding-left: 10px; }
body .sub_left .gnb_major2 ul li.btn_service1, body .sub_left .gnb_major2 ul li.btn_service1_on { height: auto; }
body .sub_left .gnb_major2 ul li.btn_service1 a, body .sub_left .gnb_major2 ul li.btn_service1_on a { height: auto; min-height: 27px; box-sizing: border-box; line-height: 16px; padding-top: 8px; padding-bottom: 7px; letter-spacing: 0; }
/* nature course tabs: fixed-height tab bars (background image) -> keep each label on one line */
body .n_cc_menu2 li, body .n_cc_menu2_1 li, body .n_cc_menu4 li { overflow: visible; }
body .n_cc_menu2 li a, body .n_cc_menu2_1 li a, body .n_cc_menu4 li a { white-space: nowrap; letter-spacing: 0; font-size: 12px; }
body .n_cc_menu2 li a.selected, body .n_cc_menu2_1 li a.selected, body .n_cc_menu4 li a.selected, body .n_cc_menu2 li a:hover, body .n_cc_menu2_1 li a:hover { font-size: 12px; }
body .n_cc_menu2 li a, body .n_cc_menu2_1 li a, body .n_cc_menu4 li a { line-height: 35px; }
/* board list: notice badge and header cells must not wrap */
body .bd-badge { white-space: nowrap; width: auto; min-width: 40px; padding-left: 8px; padding-right: 8px; box-sizing: border-box; letter-spacing: 0; }
body .bd-table th { white-space: nowrap; letter-spacing: 0; }
/* left menu title image replaced by a text title in non-Korean languages */
body .title_img_box .i18n-title { display: block; box-sizing: border-box; width: 100%; padding: 22px 8px 0; text-align: center; font-size: 15px; line-height: 1.2; font-weight: normal; color: #555; }
body .title_img_box { height: auto; min-height: 69px; }
/* image-sprite buttons (fixed 97x29): grow horizontally for longer labels, keep the sprite as repeating background */
body .find_id_btn a { width: fit-content; min-width: 97px; height: 29px; padding: 0 14px; box-sizing: border-box; background: linear-gradient(#ff8a2a, #f26b17); border: 1px solid #e0610f; border-radius: 2px; white-space: nowrap; letter-spacing: 0; }
body .find_id_btn a:hover { background: linear-gradient(#ff9a45, #f57a25); }
body .pass_find_tab_list1, body .pass_find_tab_list1_4 { white-space: normal; word-break: keep-all; }
body .pass_find_1_id_find .i18n-title, body .pass_find_1_titbox .i18n-title, body .pass_find_1_titbox2 .i18n-title { font-size: 16px; line-height: 1.3; padding: 0; }
/* store search: province list lives in a JS scroll box; let long names wrap without overlapping the next row */
body #SidoScrollBars td.txt_app01_2 { height: auto; line-height: 15px; padding: 2px 0; vertical-align: top; }
body #SidoScrollBars a { letter-spacing: 0; }
/* store search: the province box is fixed 180px with overflow:hidden -> in other languages grow with wrapped names so every item stays visible/clickable */
body #SidoScrollBars { height: auto !important; min-height: 180px; overflow: visible !important; }
body #SidoScrollBars table, body #SidoScrollBars tbody, body #SidoScrollBars tr, body #SidoScrollBars td { display: block; width: auto; height: auto; }
body #SidoScrollBars td.txt_app01_2 { white-space: nowrap; padding: 1px 4px; }
body #SidoScrollBars td:not(.txt_app01_2) { display: none; }
/* images that contain Hangul titles/buttons/tabs -> text replacement (i18n_img_filter) */
.i18n-imgtxt { display: inline-block; box-sizing: border-box; text-align: center; vertical-align: middle; max-width: 100%; white-space: normal; word-break: keep-all; letter-spacing: 0; line-height: 1.3; }
.i18n-btnx { padding: 4px 10px; font: bold 12px/1.3 sans-serif; color: #fff; background: linear-gradient(#f68a2d, #e5661a); border: 1px solid #d45a10; border-radius: 3px; }
.i18n-titlex { padding: 2px 4px; font: bold 17px/1.3 sans-serif; color: #333; text-align: left; }
a:hover .i18n-btnx { filter: brightness(1.08); }
/* text replacement of images: rollover / selected(_on) state */
a:hover > .i18n-titlex { color: #f66603; text-decoration: none; }
.i18n-imgtxt.is-on.i18n-titlex { color: #f66603; border-bottom: 2px solid #f66603; }
.i18n-imgtxt.is-on.i18n-btnx { filter: brightness(0.92); box-shadow: inset 0 0 0 2px #b34a00; }
/* club championship list: status/ranking buttons are 46x16 sprites -> fit the cell width, font is shrunk by i18n_head JS */
body .club-list-page .club-list-table .i18n-btnx { display: block; width: 100%; min-width: 0 !important; min-height: 0 !important; height: 20px; line-height: 18px; padding: 0 2px; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: clip; font-size: 11px; }
body .club-list-page .club-list-table td.ranking-cell a { display: block; line-height: normal; }
/* top bar: when the page is not Korean, show a Korean flag instead of the "한국어" text link */
body #header .util_area ul.util_right li.fn_ko a { display: block; width: 20px; height: 20px; background: url(/theongc/re_menu/image/ico_na0.png?v=1) no-repeat 0 0; text-indent: -25000em; font-size: 0; line-height: 0; }
body #header .util_area ul.util_right li.fn_ko { padding-top: 6px; }
