/*
Theme Name: Source & Brand
Description: A responsive sourcing, manufacturing and brand development site with native WordPress pages and posts.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: source-and-brand
*/

.sb-skip { position: absolute; clip-path: inset(50%); }
.sb-skip:focus { clip-path: none; background: white; padding: 1rem; z-index: 100; }
.sb-mega { visibility: hidden; max-width: calc(100vw - 19rem); }
.sb-active { color: var(--color-primary) !important; }
header nav .relative:is(:hover,:focus-within):not(.sb-dismissed) > .sb-mega { visibility: visible; }
header nav .relative:is(:hover,:focus-within):not(.sb-dismissed) > a svg,
#sb-mobile-nav button[aria-expanded="true"] svg { transform: rotate(180deg); }
#sb-mobile-nav { max-height: calc(100dvh - 5rem); overflow-y: auto; }
[hidden] { display: none !important; }
.admin-bar header.sticky { top: 32px; }
.sb-page-number { border: 1px solid var(--color-border); padding: .5rem 1rem; font-size: .875rem; font-weight: 600; }
.sb-page-number:hover { border-color: var(--color-primary); color: var(--color-primary); }
.sb-page-number.current { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-foreground); }
.sb-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-step-passed > div { background: var(--color-primary); }
.sb-steps [aria-current="step"] > p { color: var(--color-primary); }
.sb-choice:has(input:checked) { border-color: var(--color-primary); background: var(--color-accent); font-weight: 600; }
.sb-choice input { appearance: none; display: grid; place-items: center; }
.sb-choice input:checked { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-primary-foreground); }
.sb-choice input:checked::after { content: "✓"; font-size: .75rem; }
.sb-form-error { color: #b91c1c; }
.sb-trap { position: absolute; inset-inline-start: -10000px; }
.sb-managed:not(.sb-ready) [data-sb-controls], .sb-ready .sb-no-js-submit { display: none; }
@media (max-width: 782px) { .admin-bar header.sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.sticky { top: 0; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
footer p { overflow-wrap: anywhere; }
button[aria-controls="sb-mobile-nav"] .sb-close-menu,
button[aria-controls="sb-mobile-nav"][aria-expanded="true"] .lucide-menu { display: none; }
button[aria-controls="sb-mobile-nav"][aria-expanded="true"] .sb-close-menu { display: block; }
