/* wyzthscan.org frontend CSS — only what theme.json cannot express.
   International Typographic (Swiss) register: rigid grid, dramatic scale
   contrast, one grotesk at three weights, heavy structural rules, flat
   surfaces, no shadows and no rounding anywhere. */

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wp--preset--color--background: #0E0E10;
		--wp--preset--color--surface: #17171A;
		--wp--preset--color--text: #F0EFEA;
		--wp--preset--color--muted: #A3A29C;
		--wp--preset--color--border: #2C2C30;
		--wp--preset--color--accent: #7C90FF;
	}
}
:root[data-theme="dark"] {
	--wp--preset--color--background: #0E0E10;
	--wp--preset--color--surface: #17171A;
	--wp--preset--color--text: #F0EFEA;
	--wp--preset--color--muted: #A3A29C;
	--wp--preset--color--border: #2C2C30;
	--wp--preset--color--accent: #7C90FF;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
	padding: 12px 16px;
	z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --- Header: oversized wordmark block, heavy rule, nav beneath. The identity
   is a display-scale element spanning the full width rather than a small logo
   in a bar — structurally unlike every prior site in this network. --- */
.wyz-wordmark .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--text);
	display: block;
	line-height: 0.92;
}
.wyz-header-rule {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
	align-items: baseline;
	justify-content: space-between;
}
.wyz-tagline {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.wyz-primary-nav .wp-block-navigation__container { gap: var(--wp--preset--spacing--30) !important; }
.wyz-primary-nav a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-bottom: 3px solid transparent;
	padding-bottom: 2px;
}
.wyz-primary-nav a:hover,
.wyz-primary-nav a:focus-visible {
	color: var(--wp--preset--color--accent);
	border-bottom-color: var(--wp--preset--color--accent);
}

/* --- Title block: metadata INLINE beside the H1, not above or below it. On
   wide viewports the H1 and the meta sit on one baseline in a two-column
   asymmetric grid; below 900px the meta drops under the title. --- */
.wyz-title-block { margin-bottom: var(--wp--preset--spacing--40); }
.wyz-inline-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: var(--wp--preset--spacing--20) 0 0;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
}
@media (min-width: 900px) {
	.wyz-title-block {
		display: grid;
		grid-template-columns: 1fr 200px;
		gap: var(--wp--preset--spacing--40);
		align-items: end;
	}
	.wyz-inline-meta { margin: 0 0 10px; text-align: right; }
}

/* --- Legacy notice: a hard-bordered block in the accent colour, placed above
   the content on every page sitting at a former explorer data URL. This is
   load-bearing content, not decoration. --- */
.wyz-legacy-notice {
	border: 4px solid var(--wp--preset--color--accent);
	padding: var(--wp--preset--spacing--30);
	margin: 0 0 var(--wp--preset--spacing--50);
}
.wyz-legacy-label {
	margin: 0 0 var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--accent);
}
.wyz-legacy-body { margin: 0; }

/* --- Body copy --- */
.entry-content a,
.wp-block-post-content a {
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* --- Pull quote: heavy accent bar at the left, bold, no fill --- */
.entry-content blockquote,
.wp-block-post-content blockquote {
	border-left: 8px solid var(--wp--preset--color--accent);
	padding: 0 0 0 var(--wp--preset--spacing--30);
	margin: var(--wp--preset--spacing--50) 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.24;
}
.entry-content blockquote p,
.wp-block-post-content blockquote p { margin: 0; }

/* --- Tables: Swiss rules — heavy top and bottom, hairline rows, no fills,
   uppercase headers, tabular numerals --- */
.entry-content table,
.wp-block-post-content table {
	width: 100%;
	margin: var(--wp--preset--spacing--40) 0;
	border-collapse: collapse;
	border-top: 4px solid var(--wp--preset--color--text);
	border-bottom: 4px solid var(--wp--preset--color--text);
	font-variant-numeric: tabular-nums;
}
.entry-content th,
.wp-block-post-content th {
	text-align: left;
	vertical-align: bottom;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) var(--wp--preset--spacing--10) 0;
	border-bottom: 2px solid var(--wp--preset--color--text);
}
.entry-content td,
.wp-block-post-content td {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) var(--wp--preset--spacing--20) 0;
	vertical-align: top;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.entry-content tr:last-child td,
.wp-block-post-content tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table,
.wp-block-post-content .wp-block-table { overflow-x: auto; }

/* --- Ordered lists: heavy accent numerals in the margin --- */
.entry-content ol,
.wp-block-post-content ol {
	list-style: none;
	counter-reset: wyz-step;
	padding-left: 0;
}
.entry-content ol > li,
.wp-block-post-content ol > li {
	counter-increment: wyz-step;
	position: relative;
	padding-left: 3rem;
	margin-bottom: var(--wp--preset--spacing--20);
}
.entry-content ol > li::before,
.wp-block-post-content ol > li::before {
	content: counter(wyz-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 900;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--accent);
}

/* --- Images: flat plate, hard rule, no rounding --- */
.entry-content figure.wp-block-image img,
.wp-block-post-content figure.wp-block-image img {
	width: 100%;
	height: auto;
	border: 2px solid var(--wp--preset--color--text);
}
.entry-content figcaption,
.wp-block-post-content figcaption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 10px;
}
.entry-content figure.wp-block-image,
.wp-block-post-content figure.wp-block-image { margin: var(--wp--preset--spacing--40) 0; }

/* --- FAQ list: ruled records --- */
.wyz-faq-list {
	margin: var(--wp--preset--spacing--30) 0;
	border-top: 2px solid var(--wp--preset--color--text);
}
.wyz-faq-item {
	padding: var(--wp--preset--spacing--30) 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.wyz-faq-question {
	margin: 0 0 var(--wp--preset--spacing--10) 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}
.wyz-faq-answer { margin: 0; color: var(--wp--preset--color--muted); }

/* --- Footer: standing notice, then a numbered site index in a multi-column
   grid. The index replaces a footer menu entirely — it is generated from
   WordPress, so it is always complete. --- */
.wyz-standing-notice {
	border-top: 2px solid var(--wp--preset--color--text);
	border-bottom: 2px solid var(--wp--preset--color--text);
	padding: var(--wp--preset--spacing--30) 0;
	margin-bottom: var(--wp--preset--spacing--50);
}
.wyz-standing-notice p { margin: 0; }
.wyz-index-heading {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 900;
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--muted);
}
.wyz-site-index {
	list-style: none;
	counter-reset: wyz-idx;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
}
.wyz-site-index li {
	counter-increment: wyz-idx;
	border-top: 1px solid var(--wp--preset--color--border);
	padding: 10px 0 10px 3rem;
	position: relative;
}
.wyz-site-index li::before {
	content: counter(wyz-idx, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 10px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 900;
	color: var(--wp--preset--color--muted);
}
.wyz-site-index a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	font-weight: 700;
}
.wyz-site-index a:hover,
.wyz-site-index a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}
@media (min-width: 700px) {
	.wyz-site-index { grid-template-columns: repeat(2, 1fr); column-gap: var(--wp--preset--spacing--50); }
}
@media (min-width: 1100px) {
	.wyz-site-index { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
