/* Base: reset, type, links, focus, buttons, form fields, prose, layout helpers. Values come from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-5); }
body {
	margin: 0;
	background: var(--color-surface);
	color: var(--color-ink);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	line-height: var(--leading-base);
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
/* WordPress's own video and audio players: never wider than their column (MediaElement can set a large inline
   min-width when a file cannot play). */
.wp-video, .wp-audio-shortcode, .mejs-container { max-width: 100% !important; }
.mejs-container { min-width: 0 !important; }
h1, h2, h3, h4 { margin: 0 0 var(--space-3); color: var(--color-ink-strong); font-weight: var(--weight-bold); line-height: var(--leading-tight); }
h1 { font-size: var(--text-2xl); letter-spacing: -.7px; }
h2 { font-size: var(--text-xl); letter-spacing: -.7px; }
h3 { font-size: var(--text-md); }
p { margin: 0 0 var(--space-4); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-red); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Layout helpers */
.wrap { width: var(--container); margin-inline: auto; }
.site-main { display: block; padding-bottom: var(--space-8); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--space-3); top: -100px; z-index: 1000; background: var(--color-surface); padding: var(--space-3) var(--space-4); }
.skip-link:focus { top: var(--space-3); }
[hidden] { display: none !important; }

/* Small text pieces */
.eyebrow {
	margin: 0 0 var(--space-2);
	color: var(--color-red);
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
}
.text-link { color: var(--color-red); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--color-red-dark); }

/* Buttons (one component) */
.button, button.button, input[type="submit"].button {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
	min-height: var(--control-height);
	padding: var(--space-3) var(--space-5);
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: none;
	font-size: var(--text-sm); font-weight: var(--weight-bold); line-height: 1.2;
	text-align: center; text-decoration: none; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.button--primary { background: var(--color-red); color: var(--color-on-red); }
.button--primary:hover { background: var(--color-red-dark); color: var(--color-on-red); }
.button--outline { border-color: var(--color-ink-strong); background: var(--color-surface); color: var(--color-ink-strong); }
.button--outline:hover { background: var(--color-cream); color: var(--color-ink-strong); }
.button--on-red { border-color: rgba(255, 255, 255, .55); color: var(--color-on-red); }
.button--on-red:hover { border-color: var(--color-on-red); color: var(--color-on-red); }
/* Submit buttons of forms that the theme does not print (Ninja Forms, the comment form) get the primary look; a
   button with the .button class keeps the component above (known issue #142). */
input[type="submit"]:not(.button), input[type="button"]:not(.button) {
	min-height: var(--control-height);
	padding: var(--space-3) var(--space-5);
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: var(--color-red); color: var(--color-on-red);
	font-size: var(--text-sm); font-weight: var(--weight-bold); line-height: 1.2;
	cursor: pointer; -webkit-appearance: none; appearance: none;
	transition: background-color .15s;
}
input[type="submit"]:not(.button):hover, input[type="button"]:not(.button):hover { background: var(--color-red-dark); }
input[type="submit"]:not(.button):disabled, input[type="button"]:not(.button):disabled { opacity: .6; cursor: not-allowed; }

/* Form fields (one component) */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], select, textarea {
	width: 100%;
	min-height: var(--control-height);
	padding: var(--space-2) var(--space-3);
	border: var(--line);
	border-radius: var(--radius);
	background: var(--color-surface);
	font-size: var(--text-base);
}
textarea { min-height: 120px; }
/* Dropdowns: the arrow 14 px inside the right edge, not against it (the Codex pages' controls.css; Owl's review,
   22 Oct); the native arrow comes back in forced-colours mode. WooCommerce 11 draws its own arrow in its forms
   (".woocommerce form .form-row select"), so the rule carries that selector too. */
select:not([multiple]):not([size]),
.woocommerce form .form-row select:not([multiple]):not([size]) {
	-webkit-appearance: none; appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236e6e70' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
@media (forced-colors: active) {
	select:not([multiple]):not([size]),
	.woocommerce form .form-row select:not([multiple]):not([size]) { -webkit-appearance: auto; appearance: auto; background-image: none; }
}
input:focus, select:focus, textarea:focus { border-color: var(--color-ink-strong); outline: none; box-shadow: 0 0 0 3px rgba(211, 48, 59, .18); }
label { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-red); width: 17px; height: 17px; }

/* Title row: H1 of pages that have no banner */
.title-row { padding: var(--space-3) 0 var(--space-5); }
.title-row__title { margin: 0; font-size: var(--text-2xl); }
.title-row__text { max-width: 760px; margin-top: var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }
.title-row__search { max-width: 520px; margin-top: var(--space-4); }

/* Prose: long text (pages, posts, term descriptions) */
.prose { max-width: 820px; font-size: var(--text-base); }
.prose h2 { font-size: var(--text-lg); margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }
.prose a { color: var(--color-red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: var(--space-5); margin: 0 0 var(--space-4); }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-5); font-size: var(--text-sm); }
.prose th, .prose td { border-bottom: var(--line); padding: var(--space-2) var(--space-3); text-align: left; vertical-align: top; }
/* On phones a wide table scrolls sideways inside the text column, not the page (known issue #141). */
@media (max-width: 760px) { .prose table { display: block; overflow-x: auto; } }
.prose blockquote { margin: 0 0 var(--space-4); padding-left: var(--space-4); border-left: 3px solid var(--color-red); color: var(--color-muted); }
.alignleft { float: left; margin: 0 var(--space-5) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-5); }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--color-muted); font-size: var(--text-xs); }

/* Pagination */
.pagination, .woocommerce-pagination { margin-top: var(--space-6); }
.pagination .nav-links, .woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; list-style: none; padding: 0; margin: 0; border: 0; }
.pagination .page-numbers, .woocommerce-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: var(--control-height); min-height: var(--control-height);
	padding: 0 var(--space-3); border: var(--line); border-radius: var(--radius); font-size: var(--text-sm); font-weight: var(--weight-semibold);
}
.pagination .current, .woocommerce-pagination .page-numbers.current { background: var(--color-ink-strong); border-color: var(--color-ink-strong); color: var(--color-on-red); }

@media (max-width: 760px) {
	body { font-size: 14.5px; }
	.title-row { padding-bottom: var(--space-4); }
	.alignleft, .alignright { float: none; margin: 0 0 var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
