@charset "utf-8";
/* ------------------------------------------------------------------
   site-fix.css — responsive repairs for the restored asia-analytics site.
   Loaded last on every page so it can override the 2014-era fixed layouts
   without editing thousands of inline styles.
   ------------------------------------------------------------------ */

/* 1. Never let anything be wider than the screen ------------------- */
html {
	-webkit-text-size-adjust: 100%;
}

img,
video,
embed,
object,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

/* Images carrying a hard width="NNN" attribute still shrink on phones */
img[width] {
	max-width: 100%;
	height: auto;
}

/* 2. Legacy fixed-width shells become fluid ------------------------- */
#container,
#containerIndex,
#containerIndex2,
.container-1000,
.top,
.header,
.footer,
.center {
	width: auto !important;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

#container {
	max-width: 1000px;
}

/* Inline style="width:NNNpx" on block wrappers would otherwise overflow.
   Capping via max-width keeps the intended size on desktop. */
[style*="width:"],
[style*="width ："] {
	max-width: 100%;
}

/* 3. Wide tables scroll instead of blowing out the layout ----------- */
.table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1em;
}

table {
	max-width: 100%;
}

@media (max-width: 767px) {
	table[width] {
		width: 100% !important;
	}
	td[width],
	th[width] {
		width: auto !important;
	}
}

/* 4. Navigation: make sub-menus openable by touch ------------------- */
/* The theme only revealed dropdowns via :hover above 900px, which left
   every phone and tablet unable to reach second-level pages, plus a dead
   zone between 768px and 900px. */
@media (max-width: 991px) {
	.navbar-nav .open .dropdown-menu,
	.navbar-nav .dropdown.open > .dropdown-menu,
	.navbar-nav .dropdown-submenu.open > .dropdown-menu {
		display: block;
		position: static;
		float: none;
		width: auto;
		margin-top: 0;
		background-color: transparent;
		border: 0;
		box-shadow: none;
	}
	.navbar-nav .dropdown-menu > li > a,
	.navbar-nav .dropdown-menu .dropdown-header {
		padding: 8px 15px 8px 30px;
		color: #fff;
		white-space: normal;
	}
	.navbar-nav .dropdown-submenu > .dropdown-menu > li > a {
		padding-left: 45px;
	}
	.navbar-nav .dropdown-submenu > a:after {
		transform: rotate(90deg);
	}
	.navbar-collapse {
		max-height: 80vh;
		overflow-y: auto;
	}
}

/* Between the Bootstrap collapse point and the theme's 900px hover rule */
@media (min-width: 768px) and (max-width: 899px) {
	.navbar-nav > .dropdown:hover > .dropdown-menu,
	.dropdown-submenu:hover > .dropdown-menu {
		display: block;
	}
}

/* Caret affordance for touch-opened parents */
.dropdown-toggle-tap {
	cursor: pointer;
}

/* 5. Keyboard focus must stay visible ------------------------------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #d01026;
	outline-offset: 2px;
}

/* 6. Download links whose binaries were not preserved --------------- */
.dl-unavailable {
	color: #8a8a8a;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* 7. Long unbroken strings (URLs, product codes) wrap on small screens */
p,
li,
td,
dd {
	overflow-wrap: break-word;
}

/* 8. Respect reduced-motion preferences ---------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 9. Site index page ------------------------------------------------ */
.sitemap-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 56px;
	box-sizing: border-box;
}

.sitemap-wrap h1 {
	font-size: 1.6em;
	border-bottom: 3px solid #d01026;
	padding-bottom: 10px;
}

.sitemap-wrap h2 {
	font-size: 1.15em;
	margin: 28px 0 8px;
	color: #d01026;
}

.sitemap-wrap ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 4px 20px;
}

.sitemap-wrap li a {
	display: block;
	padding: 5px 0;
	color: #333;
	border-bottom: 1px solid #eee;
	font-size: 0.92em;
}

.sitemap-wrap li a:hover {
	color: #d01026;
}

.site-index-link {
	display: inline-block;
	margin: 0 6px;
}

/* 10. About / contact / privacy / terms pages ----------------------- */
#context.legal-page {
	padding: 8px 16px 56px;
}

.legal-body {
	max-width: 880px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.85;
	color: #333;
	text-align: left;
}

.legal-body h2 {
	font-size: 1.3em;
	font-weight: bold;
	color: #8c2c2d;
	margin: 36px 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f2f2f2;
}

.legal-body h3 {
	font-size: 1.05em;
	font-weight: bold;
	margin: 0 0 8px;
	color: #333;
}

.legal-body ul,
.legal-body ol {
	padding-left: 1.5em;
	margin-bottom: 16px;
}

#context .legal-body li {
	margin-bottom: 6px;
}

.legal-body a {
	color: #b0101f;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-body .updated {
	color: #767676;
	font-size: 0.9em;
	margin-top: 16px;
}

.legal-toc {
	background: #fafafa;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
	padding: 14px 18px 6px;
	margin: 24px 0 8px;
}

.legal-toc p {
	font-weight: bold;
	margin: 0 0 6px;
}

.legal-toc ol {
	columns: 2 220px;
	column-gap: 32px;
	margin: 0;
}

#context .legal-toc li {
	margin-bottom: 4px;
	break-inside: avoid;
}

.legal-body h2[id] {
	scroll-margin-top: 80px;
}

.legal-body .info-list {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 24px;
	margin: 0 0 24px;
}

.legal-body .info-list dt {
	font-weight: bold;
	color: #555;
}

.legal-body .info-list dd {
	margin: 0;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 24px 0 8px;
}

.contact-card {
	border: 1px solid #e6e6e6;
	border-top: 3px solid #d01026;
	border-radius: 4px;
	padding: 16px 18px;
	background: #fafafa;
}

.contact-card p {
	margin: 0;
}

.contact-card .en {
	color: #767676;
	font-size: 0.9em;
}

.legal-body .contact-table th {
	width: 40%;
	white-space: nowrap;
	font-weight: bold;
}

@media (max-width: 480px) {
	.legal-body .info-list {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.legal-body .info-list dd {
		margin-bottom: 10px;
	}
	.legal-body .contact-table th {
		white-space: normal;
	}
}
