/* Additions of NEXA-PING for the few controls the reference stylesheet does not cover. */

/* The page scrollbar counts towards the layout width on desktops, so without this rule every
   page that is shorter than the window (the home page, the certificate check before its result)
   has no scrollbar and its centred content sits half a scrollbar further right than on a page
   that scrolls. With the scrollbar present on every page, the brand bar, the navigation and the
   content keep their position when the visitor changes page or a page grows. Touch screens use
   overlay scrollbars and are not affected. */
html {
	overflow-y: scroll;
}

/* The navigation is centred as one group and highlights the current entry in bold, so its
   width, and with it the position of every entry and of the preferences button, changed by a
   pixel or two from one page to the next. Each entry now always reserves the width of its bold
   state: an invisible bold copy of the label is stacked under the visible one. */
.kkyun-nav > a > .pcoded-mtext[data-label] {
	display: inline-grid;
	grid-template-areas: "label";
	justify-items: center;
	align-items: center;
}
.kkyun-nav > a > .pcoded-mtext[data-label]::after {
	content: attr(data-label);
	grid-area: label;
	height: 0;
	font-weight: 700;
	visibility: hidden;
	white-space: nowrap;
}

/* pagination of the IP correction history */
.ipe-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 0.875rem;
	font-family: Microsoft YaHei, PingFang SC, sans-serif;
	font-size: 0.75rem;
}
.ipe-page-btn {
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 0.5rem;
	border: 1px solid #d2dbe5;
	border-radius: 0.25rem;
	background: #fff;
	color: #323235;
	cursor: pointer;
}
.ipe-page-btn:hover:not(:disabled) {
	border-color: #1677ff;
	color: #1677ff;
}
.ipe-page-btn.is-active {
	border-color: #1677ff;
	background: #1677ff;
	color: #fff;
	cursor: default;
}
.ipe-page-btn:disabled {
	opacity: 0.45;
	cursor: default;
}
.ipe-page-gap {
	padding: 0 0.25rem;
	color: #898d94;
}

/* brand mark: a 3:1 image kept whole inside the 134×36 box of the reference brand bar, so the
   bar keeps its height and the mark is never stretched */
.kkyun-brand-logo img.kkyun-brand-image {
	object-fit: contain;
	object-position: left center;
}
