/*
 * Schusei components layer — small, reusable UI primitives.
 * Depends on tokens.css + base.css + layout.css. Introduced in Phase 3A.
 *
 * Deliberately minimal: only the mobile navigation toggle exists so far.
 * No cards, buttons, or components are invented ahead of a template that
 * uses them.
 */

/* -------------------------------------------------- mobile nav toggle */
.schusei-nav-toggle {
	/* Hidden unless JS is running; the media query below hides it on desktop. */
	display: none;
	align-items: center;
	gap: var(--sch-space-2xs);
	padding: var(--sch-space-3xs) 0;
	border: 0;
	background: none;
	color: var(--sch-text-secondary);
	font-size: var(--sch-text-nav);
	letter-spacing: var(--sch-tracking-wide);
	text-transform: uppercase;
	cursor: pointer;
}

.js .schusei-nav-toggle {
	display: inline-flex;
}

.schusei-nav-toggle:hover,
.schusei-nav-toggle:focus-visible {
	color: var(--sch-text);
}

/* Two-line glyph. Quiet — not a chunky hamburger. */
.schusei-nav-toggle__glyph {
	position: relative;
	display: block;
	width: 1.25rem;
	height: 0.5rem;
}

.schusei-nav-toggle__glyph::before,
.schusei-nav-toggle__glyph::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: currentColor;
	transition: transform var(--sch-duration-fast) var(--sch-ease),
		opacity var(--sch-duration-fast) var(--sch-ease);
}

.schusei-nav-toggle__glyph::before {
	top: 0;
}

.schusei-nav-toggle__glyph::after {
	bottom: 0;
}

/* Open state → the two lines cross. */
.schusei-nav-toggle[aria-expanded="true"] .schusei-nav-toggle__glyph::before {
	transform: translateY(3px) rotate(45deg);
}

.schusei-nav-toggle[aria-expanded="true"] .schusei-nav-toggle__glyph::after {
	transform: translateY(-4px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
	.schusei-nav-toggle__glyph::before,
	.schusei-nav-toggle__glyph::after {
		transition: none;
	}
}

@media (min-width: 48em) {
	.schusei-nav-toggle,
	.js .schusei-nav-toggle {
		display: none;
	}
}

/* -------------------------------------------------- section label */
/* A quiet uppercase label used as the heading of an archive / section.
   Shared by the Film and Photography templates (and future archives). */
.schusei-section-label {
	margin: 0;
	font-size: var(--sch-text-micro);
	font-weight: 400;
	letter-spacing: var(--sch-tracking-wider);
	text-transform: uppercase;
	color: var(--sch-text-secondary);
}

/* -------------------------------------------------- pagination */
/* Minimal styling for core the_posts_pagination() output. */
.schusei-pagination {
	margin-top: var(--sch-space-2xl);
}

.schusei-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sch-space-sm) var(--sch-space-md);
	font-size: var(--sch-text-micro);
	letter-spacing: var(--sch-tracking-wide);
	text-transform: uppercase;
}

.schusei-pagination a,
.schusei-pagination .page-numbers {
	color: var(--sch-text-secondary);
	text-decoration: none;
}

.schusei-pagination a:hover,
.schusei-pagination a:focus-visible {
	color: var(--sch-text);
}

.schusei-pagination .current {
	color: var(--sch-text);
}

/* -------------------------------------------------- empty state */
.schusei-empty {
	margin: 0;
	color: var(--sch-text-secondary);
	font-size: var(--sch-text-small);
}

/* -------------------------------------------------- labelled meta list */
/* Editorial <dl> for "label / value" project or photo details. No table
   borders — one hairline per row. Shared by Film and Photography singles. */
.schusei-meta-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
}

@media (min-width: 40em) {
	.schusei-meta-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sch-space-lg);
	}
}

.schusei-meta-list__row {
	display: grid;
	gap: var(--sch-space-3xs);
	padding-block: var(--sch-space-sm);
	border-top: 1px solid var(--sch-border);
}

.schusei-meta-list__label {
	font-size: var(--sch-text-micro);
	letter-spacing: var(--sch-tracking-wide);
	text-transform: uppercase;
	color: var(--sch-text-secondary);
}

.schusei-meta-list__value {
	margin: 0;
	color: var(--sch-text);
}

/* -------------------------------------------------- taxonomy term description */
/* Optional, editorial: the description of the current term on a taxonomy
   archive. Sits under the term-name heading; pairs with .schusei-prose for
   measure + rhythm. Shared by the Film / Photography / Product-Type views. */
.schusei-tax-description {
	margin-top: var(--sch-space-md);
	color: var(--sch-text-secondary);
	font-size: var(--sch-text-small);
}
