/* ==========================================================================
   AMPC Leak Test
   ==========================================================================

   Everything is scoped under #ampc-lt and every class carries the ampc-lt-
   prefix, for the scanner stylesheet's reason: this drops into an Enfold
   page, and a self-contained panel survives the theme's stylesheet and the
   next redesign without being revisited.

   Light, unlike the scanner. That tool is an instrument with a port map.
   This one is four short lists of addresses and a sentence under each, and
   it should read as part of the page.

   The verdict colours describe, they do not grade: "changed" and "still
   showing" between two runs. There is no tick and no "you are safe" state
   (design.md 2.2).
   ========================================================================== */

#ampc-lt {
	--ampc-lt-blue: #2d5c88;
	--ampc-lt-ink:  #222;
	--ampc-lt-soft: #5b6570;
	--ampc-lt-line: #d9dee3;
	--ampc-lt-bg:   #f6f8fa;

	margin: 1.5rem 0;
	color: var(--ampc-lt-ink);
	font-size: 16px;
	line-height: 1.55;
}

#ampc-lt *,
#ampc-lt *::before,
#ampc-lt *::after { box-sizing: border-box; }

/* An author display rule beats the hidden attribute's own. Not here. */
#ampc-lt [hidden] { display: none !important; }

#ampc-lt .ampc-lt-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 8px;
}

#ampc-lt .ampc-lt-btn {
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	padding: 11px 20px;
	min-height: 44px;
	border-radius: 6px;
	border: 1px solid var(--ampc-lt-blue);
	background: var(--ampc-lt-blue);
	color: #fff;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	white-space: normal;
	text-align: left;
}
#ampc-lt .ampc-lt-btn:hover { background: #244b70; }
#ampc-lt .ampc-lt-btn:focus-visible { outline: 3px solid #9cc2e5; outline-offset: 2px; }
#ampc-lt .ampc-lt-btn:disabled { opacity: .55; cursor: default; }

/* The site's own stylesheet styles every button inside page content, with a
   selector that starts at #top and so out-ranks a single id (found on the
   live theme 2026-11-25). For the two main buttons that is welcome: they
   match every other button on the site. The quiet one has to out-rank it,
   which is what the id written twice does, without depending on #top. */
#ampc-lt#ampc-lt .ampc-lt-btn-quiet {
	background: #fff;
	border-color: var(--ampc-lt-blue);
	color: var(--ampc-lt-blue);
	font-weight: 400;
}
#ampc-lt#ampc-lt .ampc-lt-btn-quiet:hover {
	background: var(--ampc-lt-bg);
	border-color: var(--ampc-lt-blue);
	color: var(--ampc-lt-blue);
}

#ampc-lt .ampc-lt-status {
	min-height: 1.55em;
	margin: 0 0 12px;
	color: var(--ampc-lt-soft);
}

#ampc-lt .ampc-lt-results-title {
	margin: 18px 0 10px;
	font-size: 20px;
	line-height: 1.3;
}

#ampc-lt .ampc-lt-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 12px;
}

#ampc-lt .ampc-lt-card {
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--ampc-lt-line);
	border-radius: 8px;
	background: var(--ampc-lt-bg);
}
#ampc-lt .ampc-lt-card h3 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 16px;
	line-height: 1.3;
	color: var(--ampc-lt-blue);
	text-transform: none;
	letter-spacing: 0;
}
#ampc-lt .ampc-lt-card p { margin: 6px 0; }
#ampc-lt .ampc-lt-card ul {
	margin: 6px 0 0;
	padding: 0 0 0 18px;
	list-style: disc;
}
#ampc-lt .ampc-lt-card li {
	margin: 0 0 4px;
	padding: 0;
	overflow-wrap: anywhere;
}

#ampc-lt .ampc-lt-owner { color: var(--ampc-lt-soft); }

/* A long run of DNS servers with one owner folds into one line. The
   addresses sit behind a plain disclosure, which needs no script. */
#ampc-lt .ampc-lt-more { margin: 2px 0 0; padding: 0; border: 0; background: none; }
#ampc-lt .ampc-lt-more summary {
	display: list-item;
	cursor: pointer;
	color: var(--ampc-lt-blue);
	font-size: 14px;
	font-weight: 400;
	padding: 0;
	margin: 0;
}
#ampc-lt .ampc-lt-more > div { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }

#ampc-lt .ampc-lt-verdict {
	margin: 10px 0 0;
	padding: 7px 10px;
	border-radius: 6px;
}
#ampc-lt .ampc-lt-verdict-changed { background: #e4f3e9; color: #1d6b3a; font-weight: 600; }
#ampc-lt .ampc-lt-verdict-still   { background: #fdebd8; color: #8a4200; font-weight: 600; }
#ampc-lt .ampc-lt-verdict-note    { background: #eaf0f6; color: #24496d; }

/* A sentence under a verdict saying what to try next. Plain, not coloured:
   it is advice, not a third kind of result. */
#ampc-lt .ampc-lt-card .ampc-lt-hint { margin: 8px 0 0; font-size: 15px; }

#ampc-lt .ampc-lt-foot {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--ampc-lt-soft);
}
#ampc-lt .ampc-lt-foot a { color: inherit; text-decoration: underline; }

#ampc-lt .ampc-lt-noscript { margin: 12px 0 0; }
