/*
Theme Name: WR Future Tech
Description: Child theme of Ollie for White Rock Future Tech. Brand tokens live in theme.json; page content lives in the block editor.
Author: White Rock Future Tech
Template: ollie
Version: 0.2.1
Requires at least: 6.6
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: wr-future-tech
*/

/* Visible keyboard focus everywhere: 2px amber ring (doctrine R10 selected border). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-alt);
	outline-offset: 2px;
}

/* Block style variations (registered in functions.php). */
.is-style-eyebrow {
	color: var(--wp--preset--color--primary-alt-accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.is-style-notice {
	border-left: 3px solid var(--wp--preset--color--primary-alt);
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	padding-left: 0.75em;
}

.wp-block-group.is-style-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--medium);
}

/* Home service tiles: the whole card is one link (D-53). */
.wrft-tile {
	position: relative;
	transition: border-color 0.15s ease;
}

.wrft-tile h3 a {
	color: inherit;
	text-decoration: none;
}

.wrft-tile h3 a::after {
	border-radius: inherit;
	content: "";
	position: absolute;
	inset: 0;
}

.wrft-tile:hover,
.wrft-tile:focus-within {
	border-color: var(--wp--preset--color--primary);
}

.wrft-tile:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary-alt);
	outline-offset: 2px;
}

/* Card icons: Media Library PNG at 2x, shown at 48px (D-54). */
.wp-block-image[class*="wrft-illo-icon-"] {
	margin-block: 0;
}

[class*="wrft-illo-icon-"] img {
	width: 48px;
	height: 48px;
}

/* FAQ accordion (core/details). */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--border-light);
	padding-block: var(--wp--preset--spacing--small);
}

.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
}

.wp-block-details > :not(summary) {
	color: var(--wp--preset--color--secondary);
}

/* D-61: initials monogram on the principals' cards (no photos). */
.wrft-monogram {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin: 0;
	/* Constrained layout centers children with !important auto margins. */
	margin-left: 0 !important;
	margin-right: auto !important;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* D-71: the menu never runs to a second line (Tim 2026-10-22). Core shows the
   full menu from 600px. Tim 2026-10-26: one line from 1050px, not the menu
   button. The menu has its own row under the letterhead, the button reads
   "Free Consultation" and menu items are 20px apart, not 32px. Below 1050px the header uses the menu button. Checked at every
   width by tests/visual/header-one-line.mjs. */
header .wp-block-button__link {
	white-space: nowrap;
}
header .wp-block-navigation .wp-block-navigation__container {
	gap: 1.25rem;
}

/* The letterhead band above the menu matches the PDF papers' header (Tim
   2026-10-26): logo, name, offices, and phone and email on the right. */
.wrft-letterhead .wp-block-site-title a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}
.wrft-letterhead p {
	margin: 0;
}
.wrft-letterhead-contact {
	text-align: right;
	line-height: 1.5;
}
.wrft-letterhead-contact a {
	text-decoration: none;
}
@media (max-width: 599px) {
	.wrft-letterhead-contact {
		text-align: left;
	}
}
.wrft-letterhead-contact a:hover,
.wrft-letterhead-contact a:focus {
	text-decoration: underline;
}
@media (min-width: 600px) and (max-width: 1049px) {
	header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* One disclaimer on Expertise (Tim 2026-10-22). Each story card carries the
   "Illustrative scenario" notice (D-15) for the service pages, where it is the
   only label. On Expertise the section intro already says it once, so the card
   notices are hidden there. */
.wrft-stories .is-style-notice { display: none; }

/* Red team 2026-10-22 (D-93). */

/* Footnote markers do not push lines apart. */
sup {
	line-height: 0;
}

/* Secondary (outline) buttons use the dark amber: the button amber is too
   light for text on white (D-96). */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--button-hover);
	color: var(--wp--preset--color--button-hover);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--button-hover);
	color: var(--wp--preset--color--base);
}

/* A heading after a list gets the same space as after a paragraph block. */
.wp-block-list + h3.wp-block-heading {
	margin-block-start: var(--wp--preset--spacing--medium);
}

/* Menu open and close buttons: 44px tap targets. */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}
.wp-block-navigation__responsive-container-close {
	display: flex;
}

/* Narrow screens: smaller type and padding so tables fit the width. Words are
   hyphenated, never split mid-letter; a table still too wide scrolls inside
   its figure. */
@media (max-width: 599px) {
	.wp-block-table {
		overflow-x: auto;
	}
	.wp-block-table table {
		table-layout: auto;
		width: 100%;
	}
	/* "table" in the selector outranks Ollie's cell padding, which loads later. */
	.wp-block-table table th,
	.wp-block-table table td {
		font-size: 0.75rem;
		hyphens: auto;
		padding: 0.4em 0.25em;
	}
}

/* Keeps a hyphenated phrase on one line ("30-minute" on /book/). */
.wrft-nowrap {
	white-space: nowrap;
}
