/*
Theme Name: Duffel
Theme URI: https://tenfoldthemes.example/duffel
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A travel-heritage block theme for bags and luggage OEM manufacturers — saddle-stitch borders, luggage-tag RFQ cards, webbing-strap bands, 18 export-ready patterns, an Overnight dark style and locally hosted Vollkorn and Mulish fonts.
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: duffel
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, portfolio, 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--primary);
	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 style: Group — Stitched card
 * A saddle-stitched panel: solid hairline edge with an inset dashed "stitch"
 * running just inside it, like the seam on a leather tag.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-stitch-card {
	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);
	outline: 2px dashed var(--wp--preset--color--accent);
	outline-offset: -10px;
	padding: calc(var(--wp--preset--spacing--40) + 6px);
}

/* ---------------------------------------------------------------------------
 * Block style: Group — Webbing band
 * A strap-like strip: two heavy rules with fine inner guide lines, like the
 * webbing sewn across a duffel body.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-webbing {
	border-top: 3px solid var(--wp--preset--color--primary);
	border-bottom: 3px solid var(--wp--preset--color--primary);
	background-image:
		linear-gradient(0deg, transparent 6px, var(--wp--preset--color--border) 6px, var(--wp--preset--color--border) 7px, transparent 7px),
		linear-gradient(180deg, transparent 6px, var(--wp--preset--color--border) 6px, var(--wp--preset--color--border) 7px, transparent 7px);
	padding-top: 1rem;
	padding-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
 * Block style: List — Brass eyelets
 * Ring-shaped markers, like the brass eyelet punched through a luggage tag.
 * ------------------------------------------------------------------------- */

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

ul.is-style-eyelets > li {
	padding-left: 1.75em;
	position: relative;
	margin-bottom: 0.625em;
}

ul.is-style-eyelets > li::before {
	content: "";
	position: absolute;
	left: 0.1em;
	top: 0.42em;
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	border: 3px solid var(--wp--preset--color--accent);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--base);
}

/* ---------------------------------------------------------------------------
 * Block style: Separator — Stitch dash
 * ------------------------------------------------------------------------- */

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

/* ---------------------------------------------------------------------------
 * 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.35em;
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	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);
}

/* ---------------------------------------------------------------------------
 * Tables — waybill styling for spec and MOQ tables
 * ------------------------------------------------------------------------- */

.wp-block-table th {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--wp--preset--color--tint);
}

.wp-block-table th,
.wp-block-table td {
	border-color: var(--wp--preset--color--border);
}

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