@layer base, plugin, components, layout, custom, pages, inline_style, media_query, print_query, greyscale;



/* ========================= ========================= ========================= ========================= ========================= =========================
***
* please make sure all base css inside @layer base {}
***
* please make sure all base css inside @layer base {}
* please make sure all base css inside @layer base {}
* Use CSS @layer
* Use CSS @layer
* Use CSS @layer
***
 ========================= ========================= ========================= ========================= ========================= =========================*/

/* ========================= ========================= ========================= ========================= ========================= =========================
***
* use base.css to reset the browser style and style basic tag, some class cannot be classify also include in base css, color variable also set in base.css for global use
***
* then use @layer plugin to include all plugin related css
* then use @layer components to include all components such as button, modal, card, accordion, etc
* then use @layer layout to put style the layout. @layer layout also include header footer, mobile menu and body area styling
* then use @layer custom to put style for special styling
* then use @layer pages to put style for specific pages. eg index page has index.css with @layer pages
* then use @layer inline_style for inline_style class
* then use @layer media_query to put style for mobile and responsive design
* last use @layer print to put style for print version

* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules

* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
***
 ========================= ========================= ========================= ========================= ========================= =========================*/


@layer base {
	:root {
		--en_font_family: "Arial", "Helvetica", "microsoft jhenghei", "PingFang TC", sans-serif;
		--tc_font_family: "微軟正黑體", "Helvetica Neue", "Helvetica", "Arial", sans-serif, "細明體";
		--sc_font_family: "微软雅黑", "Helvetica Neue", Helvetica, "Arial", sans-serif;




		--en_letter_spacing: normal;
		--chi_letter_spacing: 0;
		--white: #fff;
		--black: #000;



		--black_filter: invert(0%) sepia(7%) saturate(7474%) hue-rotate(15deg) brightness(95%) contrast(105%);
		--white_filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(137deg) brightness(103%) contrast(101%);

		--greyscale_filter: grayscale(100%) grayscale(100%);
		--greyscale_filter2: grayscale(100%);
		--greyscale_filter3: grayscale(100%);

		/*#6987e9*/
		--blue_300_filter: brightness(0) saturate(100%) invert(49%) sepia(77%) saturate(412%) hue-rotate(189deg) brightness(94%) contrast(93%);

		/*#b53832*/
		--brown_400_filter: brightness(0) saturate(100%) invert(17%) sepia(64%) saturate(3957%) hue-rotate(351deg) brightness(94%) contrast(73%);

		--light_grey_200: #f3f3f3;
		--light_grey_300: #d9d9d9;
		--light_grey_400: #cdcdcd;
		--light_grey_500: #9d9d9d;
		--light_grey_600: #696969;

		--main_text_color: #333;

		--blue_100: #cceefa;
		--blue_200: #8692cd;
		--blue_300: #6987e9;
		--blue_400: #4369e4;
		--blue_500: #0f71b7;
		--blue_600: #2943b9;
		--special_blue: #5359c9;
		--special_blue_2: #2853e0;

		--pink_100: #e271af;
		--pink_200: #e371af;
		--pink_300: #e3007e;
		--pink_400: #c61464;
		--pink_500: #c61464;
		--pink_600: #e271af;

		--yellow_100: #ffffe1;

		--red_300: #E60532;
		--red_400: #A60323;
		--red_500: #8b001c;

		--disabled_input_bg_color: #E3E3E3;
		--disabled_text_color: #636669;

		--top_menu_item_spacing: 2.75rem;


		--menu_bar_size: 3.25rem;

		--fontsize_h1: 2.39rem;
		--fontsize_h2: 1.375rem;
		--fontsize_h3: 1.22rem;
		--fontsize_h4: 1.2rem;
		--fontsize_h5: 1rem;
		--fontsize_h6: 1rem;

		--font_weight_medium: 500;
		--font_weight_semi_bold: 600;
		--font_weight_bold: 700;

		--borderradius1: 0.375rem;

		--dot_border: 1px var(--light_grey_300) dashed;


		--left_menu_menu0_text_color: var(--main_text_color);
		--left_menu_menu0_active_text_color: #fff;

		--left_menu_menu0_hover_text_color: #fff;
		--left_menu_menu1_text_color: var(--main_text_color);
		--left_menu_menu1_active_text_color: var(--main_theme_color);

		--left_menu_size: 256px;
		--left_menu_column_gap: 1.2rem;
		--main_content_pad_left: 1.2rem;
		--main_content_pad_right: 4.2rem;
	}

	:root {
		--main_theme_color: var(--pink_400);
		--main_theme_hover_color: var(--pink_300);
		--main_theme_hover_text_color: #fff;
		--home_search_head_color: var(--pink_500);
		--footer_bg_color: var(--pink_200);
		--top_menu_border_color: var(--pink_200);
		--nav_menu_border_color: var(--pink_200);
		--basic_a_color: var(--pink_400);
		--btn1_bg_color: var(--pink_300);
		--h1_color: var(--main_theme_color);

		--left_menu_menu0_active_bg_color: var(--pink_400);
		--left_menu_menu1_active_bg_color: #f8cbe4;



		--h1_color: var(--main_theme_color);
		--h2_color: #000;
		--h3_color: #000;
		--h4_color: #333;
		--h5_color: #333;
		--h6_color: #333;
	}

	:root:has(.public) {
		--main_theme_color: var(--blue_400);
		--main_theme_hover_color: var(--blue_600);
		--main_theme_hover_text_color: #fff;
		--home_search_head_color: var(--blue_500);
		--footer_bg_color: var(--blue_300);
		--top_menu_border_color: var(--blue_300);
		--nav_menu_border_color: var(--blue_200);
		--basic_a_color: var(--special_blue_2);
		--btn1_bg_color: var(--blue_500);

		--left_menu_menu0_active_bg_color: var(--special_blue);
		--left_menu_menu1_active_bg_color: #d4d9ee;
	}


	html {
		/*font-size: clamp(13px, calc(0.5vw + 0.4rem), 20px);*/

		-webkit-text-size-adjust: 100%;
		-ms-text-size-adjust: 100%;
		background-color: rgb(251, 233, 200);
	}

	html:has(.mySize0) {
		font-size: 14px;
	}

	html:has(.mySize1) {
		font-size: 16px;
	}

	html:has(.mySize2) {
		font-size: 20px;
	}

	.page_wrapper,
	.wrap {
		min-height: 100vh;
		height: auto;
		overflow-x: hidden;

	}

	.page_wrapper {
		display: grid;
		grid-template-rows: max-content 1fr max-content;
	}

	.clearBoth {
		clear: both;
	}

	a {
		color: var(--basic_a_color);
	}

	.newsUrl a span {
		color: var(--black);
	}



	h1,
	.h1_style {
		font-weight: 500;
		color: var(--h1_color);
		text-align: left;
		display: block;
		font-size: var(--fontsize_h1);
		margin-bottom: 2rem;
		margin-top: 1rem;
		line-height: 1.2;
	}

	h2,
	.h2_style {
		margin-right: 0;
		padding-right: 0;
		font-size: var(--fontsize_h2);
		margin-bottom: 1.2rem;
		font-weight: bold;
		color: var(--h2_color);
	}


	h3,
	.h3_style {
		font-size: var(--fontsize_h3);
		margin-left: 0;
		padding: 0;
		margin-right: 0;
		margin-top: 0;
		margin-bottom: 0.75rem;
		font-weight: 400;
		color: var(--h3_color);
	}

	h4,
	.h4_style {
		margin-top: 0;
		font-size: var(--fontsize_h4);
		color: var(--h4_color);
	}

	h5,
	.h5_style {
		font-size: var(--fontsize_h5);
		margin-top: 0;
		color: var(--h5_color);
	}

	h6,
	.h6_style {
		font-size: var(--fontsize_h6);
		color: var(--h6_color);
	}

	label {
		font-weight: inherit;
	}

	.mainContent li {
		margin-left: 0;
		margin-right: 0.6em;
		margin-top: 0.6em;
		margin-bottom: 0.6em;
	}

	.mainContent hr {
		color: #bbb;
		max-width: 100%;
	}

	body .row {
		margin: 0;
		width: 100%;
		/*ie11*/
	}

	img,
	table {
		border: 0;
	}

	table {
		border-collapse: collapse;
	}

	.element-invisible,
	.access,
	.sr-only {
		position: absolute;
		/*	visibility: hidden;*/
		left: -9999px;
		font-size: 0;
		padding: 0;
		width: 0;
		height: 0;
		z-index: -1;
	}

	body {
		font-family: var(--en_font_family);
		color: #000;
		visibility: visible;
		line-height: 1.4;
	}

	body.zh-hant {
		font-family: var(--tc_font_family);
		line-height: 1.5;
		letter-spacing: var(--chi_letter_spacing);

	}


	body.zh-hans {
		/*Toby:In CRC website founding on 28July2025.docx Customer needs TC and SC font  be same */

		color: #000;
		font-family: var(--sc_font_family);
		/*font-family: var(--tc_font_family);*/
		line-height: 1.5;
		letter-spacing: var(--chi_letter_spacing);


	}

	body.ieVersion {
		overflow-x: hidden;
	}

	body {

		visibility: hidden;
		opacity: 0;
	}

	body.show_page {
		visibility: visible;
		opacity: 1;
	}

	.container {
		max-width: 1920px;
		width: 100%;
		padding-left: 3rem;
		padding-right: 3rem;
		margin-right: auto;
		margin-left: auto;
		/*margin:auto;
		margin: 0 auto;*/
	}


	.text_left {
		text-align: left;
	}

	.text_center {
		text-align: center;
	}

	.text_right {
		text-align: right;
	}

	img,
	table {
		border: 0;
	}

	img {
		vertical-align: middle;
		max-width: 100%;
	}

	table {
		width: 100%;
		overflow: hidden;
	}



	ul,
	ol {
		margin-bottom: 1rem;
	}

	ul li {

		/*padding-top: 10px;
		padding-bottom: 10px;
		color: #333;*/
	}

	:where(ul, ol) li:not(:last-child) {
		margin-bottom: 0.5rem;
	}

	table,
	div {
		border-collapse: collapse;
		text-align: left;
		vertical-align: top;
	}

	.clearBoth {
		display: block;
		float: none;
		clear: both;
		width: 0;
		padding: 0;
		margin: 0;
		border: 0;
	}

	body .disNone {
		display: none;
	}


	.nowrap,
	.noWrap {
		white-space: nowrap;
	}

	.access {
		position: absolute;
		left: -9999px;
	}

	#skiptocontent.access {
		position: fixed;
		top: 0;
		left: 0.5rem;
		background-color: #555;
		color: var(--white);
	}


	#skiptocontent.access:focus,
	#skiptocontent.access:active {
		height: auto;
		width: auto;
		padding: 0.125rem 0.5rem;
		font-size: 1rem;
		z-index: 9999;
	}



	.disIB {
		display: inline-block;
	}

	.nobr {
		display: inline-block;
		margin: 0;
		word-break: break-all;
		word-wrap: break-word;
	}

	html,
	body {
		margin: 0;
		padding: 0;
	}

	a,
	a:link,
	a:active,
	a:visited {
		text-decoration: none;
	}

	a:hover,
	a:focus {
		text-decoration: underline;
	}

	body .bold {
		font-weight: bold;
	}

	video {
		max-width: 100%;
	}

	iframe {
		max-width: 100%;
	}


	.font_bold {
		font-weight: bold;
	}

	.float_center {
		text-align: center;
	}

	.font_underline {
		text-decoration: underline;
	}

	.font_italic {
		font-style: italic;
	}

	.float_right {
		float: right;
		padding: 0 0 1em 1em;
	}

	.float_left {
		float: left;
		padding: 0 1em 1em 0;
	}

	.img-cap {
		font-size: 7pt;
	}

	.center {
		margin: 0 auto;
	}

	.align-left {
		text-align: left;
	}

	.clear:after {
		content: "";
		display: table;
		clear: both;
	}

	.note {
		font-size: 0.9em
	}

	.right {
		text-align: right;
	}

	p {
		text-align: left;
		margin-top: 0;
		margin-bottom: 1.375rem;

		/*color: #333;*/
	}


	li>p:last-child {
		margin-bottom: 0;
	}

	ol>li>ul {
		list-style-type: disc;
	}

	.dOnly {
		position: static;
		left: auto;
	}

	.dtOnly {
		position: static;
		left: auto;
	}

	.mOnly {
		position: absolute;
		visibility: hidden;
		left: -9999px;
	}

	.tmOnly {
		position: absolute;
		visibility: hidden;
		left: -9999px;
	}

	.smOnly {
		position: absolute;
		visibility: hidden;
		left: -9999px;
	}


	*,
	*::before,
	*::after {
		box-sizing: border-box;
	}


	.listStyleInline {
		display: inline;
	}

	/**safari/
	/* Safari 7.1+ */

	@media not all and (min-resolution:.001dpcm) {
		@media {

			.row:before,
			.row:after {
				display: none;
			}
		}
	}

	.disable {
		display: none;
	}



	#top {
		display: block;
		visibility: hidden;
		position: relative;
	}

	.removeoutline {
		outline: none;
	}

	.row {
		display: -ms-flexbox;
		display: flex;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		margin-right: -15px;
		margin-left: -15px;
	}


	.activebody {
		overflow: hidden;
	}


	.anchor {
		display: block;
		position: relative;
		height: 1px;
		visibility: hidden;
		width: 100%;
	}

	.fake_sortsite {
		display: none;
	}

	.mobile_show {
		display: none;
	}

	input.form-text,
	textarea.form-textarea,
	select.form-select {
		border: 1px solid var(--light_grey_400);
	}

	textarea.form-textarea,
	select.form-select {
		padding: 0.25rem;
	}

	input,
	textarea,
	select {
		/* font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif, "細明體"; */
		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	}

	.chinese :where(input, textarea, select) {
		font-family: "細明體", sans-serif;
	}

	.highlight1 {
		color: var(--red_400);
	}

	iframe {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	th {
		background-color: var(--blue_100);

	}

	th,
	td {
		padding: 0.25rem 0.55rem;
	}

	.link_text_is_url {
		word-break: break-all;
	}

	.main_content .content {
		font-size: 1.4rem;
		line-height: 1.2;
	}

	.main_content :where(ul, ol) li:not(:last-child) {
		margin-bottom: 0.7rem;
	}
}

@layer base {

	*[data-display="none"] {
		display: none !important;
	}

	*[data-display="block"] {
		display: block !important;
	}

	*[data-display="inline-block"] {
		display: inline-block !important;
	}

	*[data-display="flex"] {
		display: flex !important;
	}

	*[data-display="inline-flex"] {
		display: inline-flex !important;
	}

	*[data-display="table"] {
		display: table !important;
	}

	*[data-width="100%"] {
		width: 100%;
	}

	*[data-valign="top"] {
		vertical-align: top;
	}

	*[data-valign="bottom"] {
		vertical-align: bottom;
	}

	*[data-align="left"] {
		text-align: left;
	}

	*[data-align="center"] {
		text-align: center;
	}

	*[data-background="rgb(255, 255, 225)"],
	*[data-background="#FFF"],
	*[data-background="#fff"] {
		background-color: #fff;
	}

	*[data-background="#ccf2ff"] {
		background-color: #ccf2ff;
	}

	*[data-background="#D5FFFE"] {
		background-color: #D5FFFE;
	}

	*[data-background="#DDA8A9"] {
		background-color: #DDA8A9;
	}

	*[data-background="#EDD2D2"] {
		background-color: #EDD2D2;
	}


	*[data-background="#FBEDE8"] {
		background-color: #FBEDE8;
	}

	*[data-color="#c20000"] {
		color: #c20000;
	}



	*[data-color="#FFF"] {
		color: #FFF;
	}

	*[data-color="#005E93"] {
		color: #005E93;
	}

	*[data-color="green"] {
		color: green;
	}

	*[data-color="red"] {
		color: var(--red_300);
	}

	*[data-color="blue"] {
		color: blue;
	}

	*[data-color="brown"] {
		color: brown;
	}

	*[data-color="#e50011"] {
		color: #e50011;
	}


	*[data-color="#d31165"] {
		color: #d31165;
	}


	*[data-color="#0867ab"] {
		color: #0867ab;
	}


	*[data-color="#e32100"] {
		color: #e32100;
	}

	*[data-color="#a94ccb"] {
		color: #a94ccb;
	}



	*[data-color="#267839"] {
		color: #267839;
	}


	*[data-float="left"] {
		float: left;
	}

	*[data-float="right"] {
		float: right;
	}

	*[data-list="circle"] {
		list-style-type: circle;
	}

	*[data-list="decimal"] {
		list-style-type: decimal;
	}

	*[data-list="disc"] {
		list-style-type: disc;
	}

	*[data-list="square"] {
		list-style-type: square;
	}

	*[data-fontweight="normal"] {
		font-weight: normal;
	}

	*[data-fontweight="bold"] {
		font-weight: bold;
	}

	*[data-border="1px solid"] {
		border: 1px solid #000;
	}

	*[data-border="1px solid #ccc"] {
		border: 1px solid #ccc;
	}

	*[data-borderleft="2px solid grey"] {
		border-left: 2px solid grey;
	}

	*[data-bordertop="0"],
	*[data-bordertop="hidden"] {
		border-top: 0;
	}

	*[data-borderright="0"],
	*[data-borderright="hidden"] {
		border-right: 0;
	}

	*[data-borderbottom="0"],
	*[data-borderbottom="hidden"] {
		border-bottom: 0;
	}

	*[data-borderleft="0"],
	*[data-borderleft="hidden"] {
		border-left: 0;
	}

	*[data-bordertop="1px #c0c0c0 dashed"] {
		border-top: 1px #c0c0c0 dashed;
	}

	*[data-borderright="1px #c0c0c0 dashed"] {
		border-right: 1px #c0c0c0 dashed;
	}

	*[data-borderbottom="1px #c0c0c0 dashed"] {
		border-bottom: 1px #c0c0c0 dashed;
	}

	*[data-borderleft="1px #c0c0c0 dashed"] {
		border-left: 1px #c0c0c0 dashed;
	}

	*[data-white-space="nowrap"] {
		white-space: nowrap;
	}

	*[data-ff="sp"] {
		font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif, 細明體;
	}

	*[data-table-layout"fixed"] {
		table-layout: fixed;
	}

	*[data-box-shadow="0 0 10px 1px EFEFEF"] {
		box-shadow: 0 0 10px 1px #EFEFEF;
	}

	*[data-overflowx="scroll"] {
		overflow-x: scroll;
	}

	*[data-overflowy="scroll"] {
		overflow-y: scroll;
	}

	*[data-overflowx="hidden"] {
		overflow-x: hidden;
	}

	*[data-overflowy="hidden"] {
		overflow-y: hidden;
	}

	table[data-border="0"] tbody,
	table[data-border="0"] tr th,
	table[data-border="0"] tr td {
		border: 0;
	}

	table[data-border="1"] tr th,
	table[data-border="1"] tr td {
		border: 1px solid #ccc;
	}
}

/*please make sure all base css inside @layer base {}*/