/*
 * Rules theme.json cannot express. Values come only from var() — the
 * presets and custom properties generated from /tokens.css.
 */

/* Keyboard focus must be visible everywhere (WCAG 2.4.7). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--focus-ring);
	outline-offset: var(--wp--custom--focus--offset);
}

/* Skip link: first focusable element, visible only when focused. */
.nl-skip-link {
	position: absolute;
	left: var(--wp--preset--spacing--2);
	top: calc(-1 * var(--wp--preset--spacing--6));
	padding: var(--wp--preset--spacing--1) var(--wp--preset--spacing--2);
	background: var(--wp--preset--color--action-bg);
	color: var(--wp--preset--color--action-text);
	z-index: 100;
}
.nl-skip-link:focus {
	top: var(--wp--preset--spacing--2);
}

/* Text for screen readers only. */
.nl-visually-hidden {
	position: absolute !important;
	width: 1px;  /* nl-lint-allow: standard screen-reader-only technique, not a design size */
	height: 1px; /* nl-lint-allow: as above */
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Muted supporting copy. */
.nl-muted {
	color: var(--wp--preset--color--text-muted);
}

/* The mark beside the firm's name. The production vector is transparent, so it
 * sits directly on the page in either colour scheme — no plate, no tile. */
.nl-brand__link {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	text-decoration: none;
	color: var(--wp--preset--color--text-primary);
}

.nl-brand__mark {
	height: var(--wp--preset--spacing--5);
	width: auto;
	display: block;
}

.nl-brand__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-3);
	line-height: var(--wp--custom--leading--heading-3);
}

/* --------------------------------------------------------------------------
   Gold accents. In light mode gold is 2.60:1, so it is decorative only —
   rules and fills, never text, links, or anything that carries meaning.
   See THE GOLD RULE in tokens.css. In dark mode it is 6.50:1 and safe.
   -------------------------------------------------------------------------- */

/* A short gold rule above each section heading. Decorative: it marks where a
   section starts, but the heading itself already does that for a screen
   reader, so the rule adds no information and is hidden from the tree. */
.entry-content h2::before {
	content: "";
	display: block;
	width: var(--wp--custom--rule--length);
	height: var(--wp--custom--rule--accent);
	margin-bottom: var(--wp--preset--spacing--2);
	background: var(--wp--preset--color--accent);
}

/* More air before a section than inside one, so the page reads as bands
   rather than one unbroken column. */
.entry-content h2 {
	margin-top: var(--wp--preset--spacing--5);
}

/* The answer-first opening line on a service page. */
.entry-content > p.has-heading-3-font-size {
	border-left: var(--wp--custom--rule--accent) solid var(--wp--preset--color--accent);
	padding-left: var(--wp--preset--spacing--3);
	color: var(--wp--preset--color--text-secondary);
}

/* The hours bar sits above everything; the gold hairline ties it to the mark. */
.nl-hours-bar {
	border-bottom: var(--wp--custom--border--width) solid var(--wp--preset--color--accent);
}

/* The logo band above the footer. The artwork carries its own dark plate, so
   the band uses that same colour and the image edge disappears into it. */
.nl-logo-band {
	background: var(--wp--preset--color--brand-plate);
	padding-block: var(--wp--preset--spacing--5);
	display: flex;
	justify-content: center;
}

.nl-logo-band__img {
	display: block;
	width: var(--wp--custom--width--mark);
	height: auto;
}

/* The footer's name line, matching the header. The fontFamily block attribute
   is not applied to paragraphs in this setup — theme.json's family presets work
   in styles but not as a block attribute — so the class carries it, exactly as
   .nl-brand__name does in the header. */
.nl-footer-brand {
	font-family: var(--wp--preset--font-family--display);
}

/* A person's headshot, floated beside their bio. min(token, 40%) keeps it in
   proportion on a phone without needing a breakpoint — the theme has no
   breakpoint tokens, and one portrait does not justify inventing a system.
   
   The figure also carries WordPress's own .alignleft class. A constrained
   layout sets "margin-left/right: auto !important" on every child, which
   silently collapses a float's side gutter to zero; .alignleft is the one
   class core exempts from that rule. The .entry-content prefix then beats
   core's own .alignleft margin so the gutter comes from our tokens. */
.entry-content .nl-portrait {
	float: left;
	width: min(var(--wp--custom--width--portrait), 40%);
	margin: 0 var(--wp--preset--spacing--3) var(--wp--preset--spacing--2) 0;
}

.nl-portrait img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--control);
}

/* Stop a float from hanging past its own bio into the next person's. */
.entry-content h3 {
	clear: both;
}
