/*
 * Page content for ip.ipacct.in. The header, footer and navigation are
 * ipacct.in's own stylesheets; this file only dresses what sits between them,
 * in the same palette and typefaces.
 */

.ipcheck {
	--brand: #033567;
	--ink: #4f5d75;
	--heading: #2d3142;
	--rule: #e2e6ef;
	--ok: #1f7a4d;

	max-width: 760px;
	margin: 0 auto;
	padding: 60px 0 80px;
}

.ipcheck-intro {
	text-align: center;
	margin-bottom: 36px;
}

.ipcheck-intro h1 {
	font-family: "Noto Sans", sans-serif;
	font-size: 36px;
	line-height: 1.25;
	color: var(--heading);
	margin: 0 0 14px;
}

.ipcheck-intro p {
	margin: 0 auto;
	max-width: 560px;
	color: var(--ink);
	line-height: 1.65;
}

/* Cards ------------------------------------------------------------------ */

.ipcheck-card {
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: 4px;
	box-shadow: 0 2px 14px rgba(3, 53, 103, .06);
	padding: 26px 28px;
	margin-bottom: 24px;
}

.ipcheck-card--primary {
	border-top: 3px solid var(--brand);
}

.ipcheck-card__title {
	font-family: "Noto Sans", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink);
	margin: 0 0 16px;
}

.ipcheck-badge {
	display: inline-block;
	background: var(--brand);
	color: #fff;
	border-radius: 3px;
	padding: 2px 9px;
	font-size: 13px;
	letter-spacing: .02em;
	text-transform: none;
	vertical-align: baseline;
}

/* The address itself is the point of the page, so give it the room ------- */

.ipcheck-address {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 18px;
}

.ipcheck-address code {
	font-family: "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
	font-size: 26px;
	line-height: 1.3;
	color: var(--brand);
	background: none;
	padding: 0;
	word-break: break-all;
}

.ipcheck-card:not(.ipcheck-card--primary) .ipcheck-address code {
	font-size: 20px;
}

.ipcheck-copy {
	flex: none;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--brand);
	background: none;
	border: 1px solid var(--rule);
	border-radius: 3px;
	padding: 6px 12px;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}

.ipcheck-copy:hover,
.ipcheck-copy:focus-visible {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
	box-shadow: none;
}

.ipcheck-copy[data-copied] {
	color: var(--ok);
	border-color: var(--ok);
	background: none;
}

/* Reverse DNS and other supporting facts --------------------------------- */

.ipcheck-facts {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
	font-size: 14px;
	line-height: 1.6;
}

.ipcheck-facts dt {
	float: left;
	clear: left;
	width: 110px;
	color: #8b93a6;
	font-weight: 400;
}

.ipcheck-facts dd {
	margin: 0 0 0 110px;
	color: var(--ink);
	word-break: break-all;
}

.ipcheck-ptr {
	font-family: "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

.ipcheck-flag {
	display: inline-block;
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #8b93a6;
	border: 1px solid var(--rule);
	border-radius: 2px;
	padding: 1px 6px;
	margin-left: 6px;
	white-space: nowrap;
	cursor: help;
}

.ipcheck-flag--ok {
	color: var(--ok);
	border-color: rgba(31, 122, 77, .35);
}

.ipcheck-muted {
	color: #8b93a6;
}

/* The IPv4 / IPv6 pair ---------------------------------------------------- */

.ipcheck-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.ipcheck-pair .ipcheck-card {
	margin-bottom: 0;
}

.ipcheck-probe--unreachable {
	background: #fbfcfe;
	border-style: dashed;
}

.ipcheck-probe--unreachable .ipcheck-address code {
	color: #8b93a6;
	font-size: 16px;
}

.ipcheck-note {
	margin: 28px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: #8b93a6;
}

.ipcheck-note code {
	font-size: 12px;
	background: none;
	padding: 0;
	color: inherit;
}

/* ------------------------------------------------------------------------
   The degraded page.

   Everything above assumes ipacct.in's stylesheets loaded. When they did not,
   this file is the only stylesheet there is, so the rules below have to stand
   up a whole page on their own -- typography, background, header and footer.
   They are scoped to .chrome-fallback so they never touch the normal page.
   ------------------------------------------------------------------------ */

.chrome-fallback {
	margin: 0;
	background: #fafafd;
	color: #4f5d75;
	font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

.chrome-fallback a {
	color: #033567;
}

.fallback-bar {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.fallback-chrome.site-header {
	background: #fff;
	border-bottom: 1px solid #e2e6ef;
	padding: 20px 0;
}

.fallback-logo {
	text-decoration: none;
	line-height: 1.1;
	display: block;
}

.fallback-logo__mark {
	display: block;
	font-family: "Noto Sans", sans-serif;
	font-size: 27px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: #033567;
}

.fallback-logo__mark em {
	font-style: italic;
	color: #d2232a;
}

.fallback-logo__sub {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #033567;
}

.fallback-chrome .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.fallback-chrome .menu a {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #4f5d75;
	text-decoration: none;
}

.fallback-chrome .menu a:hover {
	color: #033567;
}

.fallback-chrome.site-footer {
	background: #2d3142;
	color: #9aa2b5;
	margin-top: 70px;
	padding: 34px 0;
	font-size: 14px;
	text-align: center;
}

.fallback-chrome.site-footer .fallback-bar {
	justify-content: center;
}

/* Bootstrap is not here to centre the content, so do it ourselves. */
.chrome-fallback #content .container {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

@media (max-width: 680px) {
	.ipcheck {
		padding: 36px 0 56px;
	}

	.ipcheck-intro h1 {
		font-size: 28px;
	}

	.ipcheck-card {
		padding: 22px 20px;
	}

	.ipcheck-address code {
		font-size: 21px;
	}

	.ipcheck-pair {
		grid-template-columns: 1fr;
	}

	.ipcheck-facts dt {
		float: none;
		width: auto;
	}

	.ipcheck-facts dd {
		margin-left: 0;
	}
}
