/* Hypersphere public site: the Validation page (validation.html, specified in docs/site.md, "The Validation
   page"). Loaded after site.css. A product page on the starfield, like the landing page's sections: the result in one
   headline with three figures on glass tiles, each scenario in one of three glass panels with one figure, the
   examples' checks (site.css's validation panel), and the request for the full report. Colours come from the site's
   tokens and are picked with classes (the page's policy forbids style attributes). Every figure is text. */

.cmp-page { flex: 1 0 auto; }
/* A figure never parts from its unit, and no paragraph ends on a lone word. */
.cmp-page .site-num { white-space: nowrap; }
.cmp-page p { text-wrap: pretty; }

/* ----- the hero: the result, centred, with a soft glow behind it ------------------------------------------------- */

.cmp-hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(48px, 5.5vw, 84px) 0 0; text-align: center; }
.cmp-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 0;
	width: min(1100px, 130vw);
	height: min(100%, 640px);
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(86, 211, 218, .13), rgba(67, 155, 247, .05) 55%, transparent);
	pointer-events: none;
}
.cmp-hero .site-kicker { color: var(--site-accent); letter-spacing: .18em; }
.cmp-hero h1 {
	max-width: 18ch;
	margin: 20px auto 0;
	font-size: clamp(40px, 6.2vw, 84px);
	line-height: 1.02;
	letter-spacing: -.025em;
}
.cmp-lede { max-width: 78ch; margin: 20px auto 0; color: var(--site-text-2); font-size: 19px; line-height: 1.55; }
.cmp-lede .site-num { font-size: .92em; }
.cmp-hero-actions { justify-content: center; align-items: center; gap: 14px 30px; margin-top: 24px; }

/* ----- the three figures: glass tiles, the number first ----------------------------------------------------------- */

.cmp-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4.5vw, 56px); list-style: none; text-align: left; }
.cmp-proof-item { display: flex; flex-direction: column; padding: 28px 26px 24px; }
.cmp-proof-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; color: var(--site-text); font: 600 clamp(52px, 5.2vw, 76px)/.95 var(--site-font-display); letter-spacing: -.03em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.cmp-proof-number {
		background: linear-gradient(180deg, var(--site-text) 15%, #a6eef2 100%);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}
.cmp-proof-unit { color: var(--site-text-3); font-size: .34em; letter-spacing: 0; }
.cmp-proof-unit abbr { border: 0; text-decoration: none; }
.cmp-proof-text { margin-top: 20px; color: var(--site-text-2); font-size: 16px; line-height: 1.5; }
.cmp-proof-also { margin-top: auto; padding-top: 14px; color: var(--site-text-4); font-size: 14px; line-height: 1.45; }
.cmp-proof-text + .cmp-proof-also { margin-top: 16px; border-top: 1px solid var(--site-hair-soft); }
.cmp-proof .site-num { color: var(--site-text); }
.cmp-proof-also .site-num { color: var(--site-text-2); }

/* ----- sections --------------------------------------------------------------------------------------------------- */

.cmp-section { padding-top: clamp(72px, 9vw, 128px); }
.cmp-head { max-width: 820px; margin: 0 auto 32px; text-align: center; }
.cmp-head h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.012em; }
.cmp-head p { max-width: 62ch; margin: 14px auto 0; color: var(--site-text-3); font-size: 18px; line-height: 1.55; }

/* ----- the groups: a glass panel each, a row per scenario with its one figure ---------------------------------------
   Wide, the orbits and the event times stack beside the force models. */

.cmp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "orbits forces" "events forces"; align-items: start; gap: 16px; }
.cmp-group.is-orbits { grid-area: orbits; }
.cmp-group.is-forces { grid-area: forces; }
.cmp-group.is-events { grid-area: events; }
.cmp-group { padding: 24px 28px 14px; }
.cmp-group h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.005em; }
.cmp-group-lede { margin-top: 6px; color: var(--site-text-3); font-size: 15px; line-height: 1.5; }
.cmp-rows { margin-top: 14px; list-style: none; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 20px; padding: 12px 0; border-top: 1px solid var(--site-hair-soft); }
.cmp-row-name { color: var(--site-text); font-size: 15px; font-weight: 500; line-height: 1.35; }
.cmp-row-where { display: block; margin-top: 2px; color: var(--site-text-4); font-size: 13px; font-weight: 400; }
.cmp-row-figure { color: var(--site-text-4); font-size: 13px; text-align: right; white-space: nowrap; }
.cmp-groups .cmp-row-figure .site-num { color: var(--site-accent); font-size: 15px; }

/* ----- the examples' checks --------------------------------------------------------------------------------------- */

.val-checks { text-align: left; }

/* ----- the request and the notes ---------------------------------------------------------------------------------- */

.cmp-closing { padding-bottom: 0; }
/* Small print reads best set left in a measure of its own, in line with the request panel's text. */
.cmp-notes { max-width: calc(72ch + 60px); margin: 32px 0 0; padding: 0 30px 72px; color: var(--site-text-4); font-size: 13px; line-height: 1.55; }
.cmp-notes p + p { margin-top: 8px; }

/* ----- narrower windows -------------------------------------------------------------------------------------------- */

@media (max-width: 1000px) {
	.cmp-groups { grid-template-columns: minmax(0, 1fr); grid-template-areas: "orbits" "forces" "events"; }
}
@media (max-width: 760px) {
	.cmp-proof { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.cmp-notes { padding: 0 20px 64px; }
}
@media (max-width: 560px) {
	.cmp-hero { text-align: left; }
	.cmp-hero h1, .cmp-lede { margin-left: 0; }
	.cmp-lede { font-size: 18px; }
	.cmp-hero-actions { flex-direction: column; align-items: stretch; }
	.cmp-hero-actions .site-button { width: 100%; }
	.cmp-hero-actions .site-link { align-self: flex-start; min-height: 44px; }
	.cmp-head { text-align: left; }
	.cmp-head p { margin-left: 0; }
	.cmp-proof-item { padding: 24px 22px 22px; }
	.cmp-group { padding: 20px 18px 8px; }
	.cmp-row { column-gap: 14px; }
}

/* ----- forced colours ------------------------------------------------------------------------------------------------ */

@media (forced-colors: active) {
	.cmp-hero::before { display: none; }
	.cmp-proof-number { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
}
