/* /var/www/shared/styles.css — single stylesheet for the three utility sites
   (subnet, whois, whatismyipaddress). Served at /shared/styles.css via Apache
   alias (beta vhosts override to /var/www/shared-beta/styles.css).
   Theme: "engineering console" — option A, approved 2026-11-24: Inter UI text +
   JetBrains Mono data values, 1px borders, 3px radii, no shadows, engineering
   blue accent (#0b5cf0), uppercase letter-spaced table headers, current-row
   highlight (tint + blue left edge), dark terminal panel for whois output.
   Docs: docs/adsense-implementation.md (CSS pass + modernization). */

:root {
	--bg: #f4f6f9;
	--surface: #ffffff;
	--border: #d9e0e8;
	--border-strong: #b6c1cd;
	--text: #16202e;
	--soft: #526071;
	--faint: #8a95a5;
	--accent: #0b5cf0;
	--accent-soft: rgba(11, 92, 240, 0.14);
	--accent-tint: #eaf1fe;
	--code-bg: #f2f5f9;
	--code-border: #e1e7ee;
	--code-text: #1f2b3a;
	--btn: #111827;
	--btn-hover: #1f2a3a;
	--term-bg: #0d141f;
	--term-text: #d5e0ee;
	--term-border: #2b3949;
	--font-ui: 'Inter', -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
	--radius: 3px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	font-family: var(--font-ui);
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

a:link, a:visited, a:hover, a:active { text-decoration: none; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }

p { margin: 12px 0; }

/* ---- page card ---- */
.page {
	max-width: 880px;
	margin: 26px auto 10px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 30px 36px 26px;
}

.page h1 {
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.015em;
	margin: 18px 0 8px;
}
.page > p {
	color: var(--soft);
	font-size: 13.5px;
	margin: 0 0 16px;
}

/* ---- form ---- */
.form form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	margin: 20px 0 0;
}
.form label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--soft);
	margin: 0 0 7px;
}
.form .form_text_input, .form .form_select { margin: 0; }

input, select {
	width: 100%;
	max-width: 420px;
	height: 42px;
	padding: 0 12px;
	font-family: var(--font-mono);
	font-size: 13.5px;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	margin: 0;
}
input::placeholder { color: var(--faint); }
input:focus, select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
select { cursor: pointer; }

.eg {
	display: block;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--faint);
	margin-top: 5px;
}

.form_actions {
	display: flex;
	gap: 10px;
	margin-top: 4px;
	padding-bottom: 20px;
}
.form_actions a { display: inline-flex; }
.form_actions a:hover { text-decoration: none; }

.submit {
	height: 42px;
	padding: 0 24px;
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
}
.submit[type='submit'] { background: var(--btn); color: #fff; }
.submit[type='submit']:hover { background: var(--btn-hover); }
.submit[type='button'] { background: #fff; color: var(--text); border-color: var(--border-strong); }
.submit[type='button']:hover { border-color: var(--soft); background: #f7f9fc; }

/* ---- results ---- */
.results {
	margin: 24px 0 8px;
	padding: 18px 22px;
	background: #fbfcfd;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	line-height: 2;
	font-size: 13.5px;
}
.results p { margin: 0 0 6px; }
.results b { font-weight: 600; }
.results a { word-break: break-all; }

.results code {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--code-text);
	background: var(--code-bg);
	border: 1px solid var(--code-border);
	border-radius: 2px;
	padding: 1px 6px;
	white-space: pre-wrap;
	word-break: break-word;
}

.results table {
	border-collapse: collapse;
	margin: 14px 0 18px;
	font-size: 13px;
	line-height: 1.6;
}
.results th, .results td {
	border: 1px solid #dde4ec;
	padding: 7px 14px;
	text-align: left;
}
.results th {
	background: #f4f7fa;
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--soft);
	border-color: var(--border-strong);
}
.results td {
	font-family: var(--font-mono);
	font-size: 12.5px;
	background: #fff;
	color: #243447;
}
.results tr.current td { background: var(--accent-tint); color: #12233d; }
.results tr.current td:first-child { border-left: 3px solid var(--accent); }

/* whois output — dark terminal panel */
.results pre {
	white-space: pre-wrap;
	word-wrap: break-word;
	background: var(--term-bg);
	color: var(--term-text);
	border: 1px solid var(--term-border);
	border-radius: var(--radius);
	padding: 16px 18px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1.55;
	margin: 6px 0 0;
	overflow-x: auto;
}

/* whatismyipaddress probe states + family chip */
.ip-family {
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #46566b;
	background: #fff;
	border: 1px solid #cdd7e2;
	border-radius: 2px;
	padding: 1px 7px;
	margin-left: 8px;
	white-space: nowrap;
}
.probe { font-family: var(--font-mono); font-size: 12.5px; color: var(--code-text); background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 2px; padding: 0 5px; cursor: pointer; }
.probe.copied { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.probe.pending { opacity: 0.5; font-style: italic; }
.probe.none { color: var(--faint); background: none; border-color: transparent; cursor: default; }

/* ---- ads (non-intrusive: spaced, never sticky, never in the nav) ---- */
.adsbygoogle { display: block; }

/* ---- mobile ---- */
@media (max-width: 640px) {
	body { font-size: 14px; }
	.page {
		margin: 0;
		border: none;
		border-radius: 0;
		padding: 24px 18px 18px;
	}
	.page h1 { font-size: 19px; }
	input, select { max-width: none; }
	.results { padding: 14px 16px; }
	.results table {
		display: block;
		overflow-x: auto;
		max-width: 100%;
	}
}
/* ---- ip version switch (subnet, v4/v6 slider) ---- */
.form .version_switch {
	position: relative;
	display: inline-block;
	width: 168px;
	height: 40px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: #fff;
	box-sizing: border-box;
	vertical-align: middle;
}
.form .version_switch input[type=radio] {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}
.form #ver4 { left: 0; }
.form #ver6 { left: 50%; }
.form .version_switch .vs-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: calc(50% - 3px);
	height: calc(100% - 6px);
	background: var(--btn);
	border-radius: calc(var(--radius) - 3px);
	transition: transform 0.16s ease;
	z-index: 0;
}
.form #ver6:checked ~ .vs-knob { transform: translateX(100%); }
.form .version_switch .vs-label {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	line-height: 38px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--soft);
	pointer-events: none;
	transition: color 0.16s ease;
	z-index: 1;
}
.form .version_switch .vs-label[for=ver6] {
	left: 50%;
}
.form #ver4:checked ~ .vs-label[for=ver4],
.form #ver6:checked ~ .vs-label[for=ver6] { color: #fff; }
.form .version_switch input:focus-visible ~ .vs-knob {
	box-shadow: 0 0 0 3px var(--accent-soft);
	z-index: 1;
}

.whois_link {
	margin-left: 6px;
	font-size: 12px;
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid var(--accent-soft);
}
.whois_link:hover { text-decoration: underline; }

/* ---- click-to-copy values (subnet) ---- */
.results.copyable code { cursor: pointer; }
.results.copyable code:hover { border-color: var(--accent); }
.results.copyable code.copied {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent);
}
/* =====================================================================
   Family two-tier nav + family footer — single source (2026-11-25)
   Used by blog / home / portfolio via shared/site_nav.php +
   shared/site_footer.php. Do NOT duplicate these rules into per-site CSS.
   ===================================================================== */
.familynav {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
}
.familynav-tabs {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.familynav-tabs::-webkit-scrollbar { display: none; }
.familynav a {
	display: flex;
	align-items: center;
	white-space: nowrap;
	padding: 11px 13px 9px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--faint);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.familynav a:hover { color: var(--text); }
.familynav a.on {
	color: var(--text);
	border-bottom-color: var(--text);
}
.familynav-top { border-bottom: 1px solid var(--border); }
.familynav-out {
	margin-left: auto;
	border-left: 1px solid var(--border);
}
.familynav-out:hover { color: var(--accent); }

.footer_wrapper {
	width: 100%;
	max-width: 980px;
	margin: 0 auto 22px;
}
.footer_top,
.footer {
	display: flex;
	justify-content: center;
	padding: 10px 0;
	border: none;
	background: #ffffff;
}
.footer_top i {
	font-family: var(--font-ui);
	font-size: 12.5px;
	font-style: italic;
	color: var(--soft);
}
.footer b {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.02em;
	color: var(--faint);
}

@media (max-width: 700px) {
	.familynav-tabs { padding-left: 14px; }
}

/* centered meta slot in the substrip — US zone clocks on the utility sites (2026-11-25) */
.familynav-meta {
	margin: 7px auto 0;
	display: flex;
	justify-content: center;
	gap: 18px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.02em;
	color: var(--faint);
	white-space: nowrap;
}
.familynav-meta b { color: var(--soft); font-weight: 500; }
