/* Meme101 frontend CSS — only what theme.json cannot express.
   Bento-grid register: one rounded-tile module shared by the homepage's
   step sequence and the Stablecoin Directory's content-sized cards. */

/* Dark mode: overrides the same CSS custom properties theme.json already
   generates on :root, so every block/component that reads
   var(--wp--preset--color--*) picks up the dark palette automatically.
   Every value below was checked against WCAG AA (4.5:1 text) before use —
   see 05-design-system.md §1. Light values are NOT redeclared here;
   theme.json is the single source of truth for those. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wp--preset--color--background: #0E1310;
		--wp--preset--color--surface: #1A211C;
		--wp--preset--color--text: #EAF0EA;
		--wp--preset--color--muted: #A9B5AC;
		--wp--preset--color--border: #2B352E;
		--wp--preset--color--accent: #6E93FF;
	}
}
:root[data-theme="dark"] {
	--wp--preset--color--background: #0E1310;
	--wp--preset--color--surface: #1A211C;
	--wp--preset--color--text: #EAF0EA;
	--wp--preset--color--muted: #A9B5AC;
	--wp--preset--color--border: #2B352E;
	--wp--preset--color--accent: #6E93FF;
}

/* Two-row centered header (logo above, nav below) and centered footer
   (nav above, site identity below) — a deliberately different structural
   arrangement from this network's otherwise-universal logo-left/nav-right
   single-row header and identity-left/nav-right footer. See
   05-design-system.md §3 and PBN-Network-Registry/footprint-registry.md's
   "Layout skeletons used" table. */
.m101-header .wp-block-navigation,
.m101-footer .wp-block-navigation {
	justify-content: center;
}
.m101-header .wp-block-navigation__container,
.m101-footer .wp-block-navigation__container {
	justify-content: center;
	flex-wrap: wrap;
}

/* Visible focus ring everywhere (reference 02 §19 accessibility). */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Skip link */
.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;
}

/* Breadcrumbs (two-level: Home / Page — no hub level, see functions.php). */
.m101-breadcrumbs {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-bottom: var(--wp--preset--spacing--20);
}
.m101-breadcrumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: underline;
}
.m101-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--text);
}

/* Last-updated freshness line. */
.m101-last-updated {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: -8px;
	margin-bottom: var(--wp--preset--spacing--10);
}

/* "Checked against primary sources" line — this site's authorship treatment
   in place of a named byline (05-design-system.md §3). */
.m101-checked-line {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-bottom: var(--wp--preset--spacing--30);
}
.m101-checked-line a {
	color: var(--wp--preset--color--accent);
}

/* Body links: solid cobalt underline, thickens on hover/focus rather than a
   colour-only hover state. */
.entry-content a,
.wp-block-post-content a {
	text-decoration-color: var(--wp--preset--color--accent);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.entry-content a:hover,
.wp-block-post-content a:hover {
	text-decoration-thickness: 3px;
}

/* Article images: rounded, soft tonal border — tonal separation, not a
   Brutalist exposed-black-border treatment. */
.entry-content figure.wp-block-image img,
.wp-block-post-content figure.wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--border);
}
.entry-content figcaption,
.wp-block-post-content figcaption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: 8px;
}
.entry-content figure.wp-block-image,
.wp-block-post-content figure.wp-block-image {
	margin: var(--wp--preset--spacing--30) 0;
}

.wp-block-post-featured-image img {
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--border);
}

/* Tables (used for any incidental tabular content): tonal border, tabular
   numerals where numeric. */
.entry-content table,
.wp-block-post-content table {
	border-collapse: collapse;
	width: 100%;
	margin: var(--wp--preset--spacing--30) 0;
	border: 1px solid var(--wp--preset--color--border);
	font-variant-numeric: tabular-nums;
}
.entry-content th,
.entry-content td,
.wp-block-post-content th,
.wp-block-post-content td {
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
	text-align: left;
	vertical-align: top;
}
.entry-content .wp-block-table,
.wp-block-post-content .wp-block-table {
	overflow-x: auto;
}

/* --- Bento tile module — this site's actual component language --- */

.m101-tile {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--30);
}
.m101-tile h2 {
	margin-top: 0 !important;
}
.m101-tile figure.wp-block-image,
.m101-tile img {
	margin-top: var(--wp--preset--spacing--10) !important;
}

/* Homepage step sequence: 4 tiles, one row on desktop, stacked on mobile. */
.m101-steps-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--20);
	margin: var(--wp--preset--spacing--30) 0;
}
@media (min-width: 900px) {
	.m101-steps-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
.m101-step-num {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-variant-numeric: tabular-nums;
	font-size: 2rem;
	font-weight: 800;
	color: var(--wp--preset--color--accent);
	line-height: 1;
	margin-bottom: var(--wp--preset--spacing--10);
}

/* Stablecoin Directory: content-sized bento grid — USDT/USDC (materially
   larger by real market capitalization, per 01-site-research.md §4) span 2
   columns on desktop; the other 4 entries are standard single tiles. Size
   reflects a verified fact, not decoration (05-design-system.md §3/§6). */
.m101-directory-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--20);
	margin: var(--wp--preset--spacing--30) 0;
}
@media (min-width: 700px) {
	.m101-directory-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.m101-tile--lg {
		grid-column: span 2;
	}
}

/* Visible FAQ list — see functions.php m101_faq_list_shortcode(). */
.m101-faq-list {
	margin: var(--wp--preset--spacing--30) 0;
}
.m101-faq-item {
	padding: var(--wp--preset--spacing--20) 0;
	border-top: 1px solid var(--wp--preset--color--border);
}
.m101-faq-item:last-child {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.m101-faq-question {
	margin: 0 0 var(--wp--preset--spacing--10) 0;
	font-size: var(--wp--preset--font-size--large);
}
.m101-faq-answer {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

/* Mobile navigation is the core Navigation block's own overlay menu
   (overlayMenu:"mobile" in parts/header.html) — no custom toggle CSS/JS
   needed. Only re-skin its colors to match the palette. */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--background);
}

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