/*
Theme Name: Manifest
Theme URI: https://tenfoldthemes.example/manifest
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A waybill-crisp block theme for freight forwarders and logistics providers, shipping 18 route-and-tracking patterns, four full-page layouts, a Nightwatch Port dark style, local Space Mono and Commissioner fonts and original route-map artwork.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manifest
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, e-commerce, blog
*/

/* ---------------------------------------------------------------------------
 * Focus visibility & motion
 * ------------------------------------------------------------------------- */

:where(a, button, input, summary, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

a,
.wp-block-button__link,
.wp-element-button {
	transition: var(--wp--custom--transition);
}

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

/* ---------------------------------------------------------------------------
 * Block styles: Group — Waybill card / Container brackets
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-card,
.wp-block-group.is-style-corner-brackets {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m);
	box-shadow: var(--wp--preset--shadow--card);
	padding: var(--wp--preset--spacing--40);
}

/* Container-corner casting brackets: an L mark in each corner, like the
   corner castings on an ISO shipping container. */
.wp-block-group.is-style-corner-brackets {
	background-image:
		linear-gradient(var(--wp--preset--color--primary) 0 0),
		linear-gradient(var(--wp--preset--color--primary) 0 0),
		linear-gradient(var(--wp--preset--color--primary) 0 0),
		linear-gradient(var(--wp--preset--color--primary) 0 0),
		linear-gradient(var(--wp--preset--color--primary) 0 0),
		linear-gradient(var(--wp--preset--color--primary) 0 0),
		linear-gradient(var(--wp--preset--color--primary) 0 0),
		linear-gradient(var(--wp--preset--color--primary) 0 0);
	background-position:
		left top, left top,
		right top, right top,
		left bottom, left bottom,
		right bottom, right bottom;
	background-size:
		16px 2px, 2px 16px,
		16px 2px, 2px 16px,
		16px 2px, 2px 16px,
		16px 2px, 2px 16px;
	background-repeat: no-repeat;
}

/* ---------------------------------------------------------------------------
 * Block styles: List — Port dots
 * ------------------------------------------------------------------------- */

ul.is-style-port-dots {
	list-style: none;
	padding-left: 0;
}

ul.is-style-port-dots > li {
	padding-left: 1.6em;
	position: relative;
	margin-bottom: 0.55em;
}

ul.is-style-port-dots > li::before {
	content: "";
	position: absolute;
	left: 0.15em;
	top: 0.42em;
	width: 0.55em;
	height: 0.55em;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	background: transparent;
}

/* ---------------------------------------------------------------------------
 * Block styles: Separator — Route dashes
 * ------------------------------------------------------------------------- */

hr.is-style-route-dash {
	background: none;
	border: none;
	border-top: 2px dashed var(--wp--preset--color--primary);
	height: 0;
	width: 96px;
}

/* ---------------------------------------------------------------------------
 * Waybill glyphs — route arrow (→) and status dot (●)
 * Rendered from currentColor so they never depend on bundled font coverage
 * and always inherit the surrounding text colour.
 * ------------------------------------------------------------------------- */

.mnf-arrow {
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin: 0 0.12em;
	vertical-align: -0.14em;
	background-color: currentColor;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" d="M4 12h15M13 6l6 6-6 6"/></svg>') center / contain no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" d="M4 12h15M13 6l6 6-6 6"/></svg>') center / contain no-repeat;
}

.mnf-dot {
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	margin-right: 0.12em;
	border-radius: 50%;
	background-color: currentColor;
	vertical-align: 0.04em;
}

/* ---------------------------------------------------------------------------
 * Details / FAQ affordance
 * ------------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details > :not(summary) {
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Small refinements
 * ------------------------------------------------------------------------- */

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
}
/* ---------------------------------------------------------------------------
 * Palette-slug guard: the standard palette includes a slug named "border".
 * When used as a *text* color, WordPress emits `.has-border-color`, which core
 * pairs with `:where(.has-border-color){border-style:solid}`; with the default
 * medium width that paints a stray ~3px box around the text. Zero the width
 * here — genuine borders set an explicit width (inline or via block-style
 * classes) that overrides this 0-specificity rule.
 * ------------------------------------------------------------------------- */
:where(.has-border-color) {
	border-width: 0;
}
