/*
 * Softliro — core stylesheet.
 *
 * Loaded on every request. Everything else is conditional. Nothing here uses a
 * hard-coded colour or size: the values come from the design tokens printed
 * inline by inc/tokens.php, so the Customizer, the block editor and Elementor
 * all read the same source.
 *
 * 1. Reset and document
 * 2. Typography
 * 3. Layout primitives
 * 4. Components
 * 5. Header
 * 6. Mobile navigation
 * 7. Footer
 * 8. Forms
 * 9. Utilities and accessibility
 */

/* -------------------------------------------------- 1. Reset and document */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--sl-bg);
	color: var(--sl-text);
	font-family: var(--sl-font-body);
	font-size: var(--sl-body-size);
	font-weight: var(--sl-body-weight);
	line-height: var(--sl-body-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

svg {
	overflow: visible;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: var(--sl-border-w) solid var(--sl-hairline);
	margin: calc(var(--sl-section) / 2) 0;
}

::selection {
	background: var(--sl-primary);
	color: #fff;
}

/* --------------------------------------------------------- 2. Typography */

h1,
h2,
h3,
h4,
h5,
h6,
.sl-heading {
	font-family: var(--sl-font-display);
	font-weight: var(--sl-h-weight);
	letter-spacing: var(--sl-h-tracking);
	line-height: 1.05;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1,
.sl-h1 {
	font-size: var(--sl-h1);
	line-height: 1.02;
	letter-spacing: calc(var(--sl-h-tracking) - 0.005em);
}

h2,
.sl-h2 {
	font-size: var(--sl-h2);
}

h3,
.sl-h3 {
	font-size: var(--sl-h3);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

h4,
.sl-h4 {
	font-size: var(--sl-h4);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

h5 {
	font-size: 1.05rem;
	font-weight: 700;
}

h6 {
	font-size: 1rem;
	font-weight: 700;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--sl-link);
	text-decoration: none;
	transition: color var(--sl-duration) var(--sl-ease);
}

a:hover,
a:focus-visible {
	color: var(--sl-text);
}

strong,
b {
	font-weight: 600;
}

blockquote {
	margin: 1.6em 0;
	padding-left: 1.4em;
	border-left: 2px solid var(--sl-primary);
	font-family: var(--sl-font-display);
	font-weight: 300;
	font-size: 1.35em;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

code,
kbd,
pre,
samp {
	font-family: var(--sl-font-mono);
	font-size: 0.92em;
}

code {
	background: var(--sl-wash);
	border-radius: 3px;
	padding: 0.15em 0.4em;
}

pre {
	background: var(--sl-surface);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	padding: 1.2em 1.4em;
	overflow-x: auto;
	line-height: 1.55;
}

pre code {
	background: none;
	padding: 0;
}

/* The mono utility face. Labels, metadata, system readouts. */
.sl-label,
.sl-meta,
.sl-eyebrow {
	font-family: var(--sl-font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
	line-height: 1.4;
	display: block;
}

a.sl-label:hover {
	color: var(--sl-text);
}

.sl-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: baseline;
}

.sl-meta__item {
	color: var(--sl-muted);
}

.sl-meta__item a {
	color: inherit;
}

.sl-meta__item a:hover {
	color: var(--sl-text);
}

.sl-meta__item--category {
	color: var(--sl-link);
}

/* --------------------------------------------------- 3. Layout primitives */

.sl-container {
	width: 100%;
	max-width: var(--sl-container);
	margin-inline: auto;
	padding-inline: var(--sl-gutter);
}

.sl-section {
	padding-block: var(--sl-section);
}

.sl-section--tight {
	padding-block: calc(var(--sl-section) / 2);
}

.sl-main > .sl-section:first-child {
	padding-top: calc(var(--sl-section) * 0.6);
}

.sl-reading {
	max-width: var(--sl-content);
}

.sl-layout {
	display: grid;
	gap: calc(var(--sl-gap) * 2);
	align-items: start;
}

.sl-layout--none {
	grid-template-columns: minmax(0, 1fr);
}

.sl-layout--right {
	grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
}

.sl-layout--left {
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
}

.sl-layout--left .sl-layout__main {
	order: 2;
}

.sl-layout__main {
	min-width: 0;
}

.sl-grid {
	display: grid;
	gap: var(--sl-gap);
}

.sl-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sl-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sl-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sl-grid--list,
.sl-grid--index {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

/* The hairline-joined grid: one pixel of border colour showing between tiles. */
.sl-grid--joined {
	gap: var(--sl-border-w);
	background: var(--sl-hairline);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	overflow: hidden;
}

/* ---------------------------------------------------------- 4. Components */

.sl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: var(--sl-btn-py) var(--sl-btn-px);
	border: var(--sl-border-w) solid transparent;
	border-radius: var(--sl-btn-radius);
	font-family: var(--sl-font-ui);
	font-size: var(--sl-btn-size);
	font-weight: var(--sl-btn-weight);
	letter-spacing: var(--sl-btn-tracking);
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition:
		background-color var(--sl-duration) var(--sl-ease),
		border-color var(--sl-duration) var(--sl-ease),
		color var(--sl-duration) var(--sl-ease);
}

.sl-button--primary {
	background: var(--sl-btn-bg);
	color: var(--sl-btn-text);
	border-color: var(--sl-btn-bg);
}

.sl-button--primary:hover,
.sl-button--primary:focus-visible {
	background: var(--sl-btn-bg-hover);
	border-color: var(--sl-btn-bg-hover);
	color: var(--sl-btn-text-hover);
}

.sl-button--secondary,
.sl-button--outline {
	background: transparent;
	color: var(--sl-text);
	border-color: var(--sl-hairline-strong);
}

.sl-button--secondary:hover,
.sl-button--secondary:focus-visible,
.sl-button--outline:hover,
.sl-button--outline:focus-visible {
	border-color: var(--sl-text);
	background: var(--sl-wash);
	color: var(--sl-text);
}

.sl-button--ghost {
	background: transparent;
	color: var(--sl-text);
	padding-inline: calc(var(--sl-btn-px) * 0.5);
}

.sl-button--ghost:hover,
.sl-button--ghost:focus-visible {
	background: var(--sl-wash);
	color: var(--sl-text);
}

.sl-button--block {
	width: 100%;
}

.sl-arrow {
	flex: none;
	transition: transform var(--sl-duration) var(--sl-ease);
}

.sl-button:hover .sl-arrow,
.sl-link-arrow:hover .sl-arrow {
	transform: translateX(3px);
}

.sl-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sl-font-ui);
	font-size: var(--sl-ui-size);
	font-weight: 500;
	white-space: nowrap;
}

/* The stroke motif. One continuous line, round caps, two turns. */
.sl-stroke {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.sl-divider {
	border: 0;
	border-top: var(--sl-border-w) solid var(--sl-hairline);
	margin-block: var(--sl-section);
}

/* Status: the dot is decoration, the label carries the meaning. */
.sl-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--sl-font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
	line-height: 1.4;
}

.sl-status__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex: none;
	background: var(--sl-signal);
	animation: sl-pulse 2.4s var(--sl-ease) infinite;
}

.sl-status--ai .sl-status__dot {
	background: var(--sl-primary);
}

.sl-status--idle .sl-status__dot {
	background: var(--sl-muted);
	animation: none;
}

.sl-status--boxed {
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	padding: 6px 10px;
}

@keyframes sl-pulse {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.25;
	}
}

.sl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 1.4em;
}

.sl-chip {
	font-family: var(--sl-font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sl-muted);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	padding: 5px 8px;
}

.sl-chip:hover {
	border-color: var(--sl-text);
	color: var(--sl-text);
}

.sl-icon {
	color: var(--sl-text);
	flex: none;
}

.sl-section-header {
	display: flex;
	gap: 40px;
	margin-bottom: calc(var(--sl-gap) * 2);
}

.sl-section-header--between {
	justify-content: space-between;
	align-items: flex-end;
}

.sl-section-header--start {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.sl-section-header__heading {
	margin: 14px 0 0;
	max-width: 22ch;
	font-size: var(--sl-h2);
}

.sl-section-header__lead {
	margin: 18px 0 0;
	color: var(--sl-text-soft);
	max-width: 52ch;
}

.sl-section-header__link {
	flex: none;
	padding-bottom: 6px;
}

/* ------------------------------------------------------------- 5. Header */

.sl-header {
	--sl-header-bg: var(--sl-bg);
	--sl-header-scrim: var(--sl-scrim);
	--sl-header-text: var(--sl-text);

	position: relative;
	z-index: 60;
	background: var(--sl-header-bg);
	color: var(--sl-header-text);
}

.sl-header--ruled {
	border-bottom: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-header--sticky {
	position: sticky;
	top: 0;
	background: var(--sl-header-scrim);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.sl-header--transparent:not(.is-stuck) {
	position: absolute;
	inset-inline: 0;
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
}

.sl-header__bar {
	display: flex;
	align-items: center;
	/*
	 * Only the logo-to-navigation gap is really visible here: the actions block
	 * carries margin-left:auto, so the space on its side is whatever is left
	 * over. Customize → Softliro → Header sets this.
	 */
	gap: var(--sl-header-gap, 48px);
	height: var(--sl-header-h);
	transition: height var(--sl-duration) var(--sl-ease);
}

.sl-header.is-stuck .sl-header__bar {
	height: var(--sl-header-h-scrolled);
}

.sl-header--centered .sl-header__bar {
	justify-content: space-between;
}

.sl-header--centered .sl-nav--primary {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.sl-header__branding {
	flex: none;
}

.sl-branding {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
}

.sl-branding__link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
}

.sl-branding__logo {
	max-height: calc(var(--sl-header-h) - 28px);
	width: auto;
}

.sl-branding__title {
	font-family: var(--sl-font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.03em;
	color: var(--sl-text);
}

.sl-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 20px;
}

.sl-header__desktop-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.sl-header__notice {
	font-family: var(--sl-font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: var(--sl-label-tracking);
}

.sl-header__search-toggle {
	background: none;
	border: 0;
	color: inherit;
	padding: 8px;
	cursor: pointer;
	border-radius: var(--sl-radius);
	display: inline-flex;
}

.sl-header__search-toggle:hover {
	background: var(--sl-wash);
}

.sl-header__search {
	border-top: var(--sl-border-w) solid var(--sl-hairline);
	padding-block: 20px;
	background: var(--sl-surface);
}

/* Primary navigation */

.sl-nav--primary .sl-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sl-nav__item {
	position: relative;
}

.sl-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 0;
	border-radius: var(--sl-radius);
	background: none;
	color: inherit;
	font-family: var(--sl-font-ui);
	font-size: var(--sl-ui-size);
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color var(--sl-duration) var(--sl-ease);
}

.sl-nav__link:hover,
.sl-nav__item:focus-within > .sl-nav__link {
	background: var(--sl-wash);
	color: var(--sl-text);
}

/*
 * The current item is marked the way the brand header marks it: the same soft
 * wash the link takes on hover, held permanently. Not a rule underneath it —
 * a 2px violet bar reads as a tab strip, which this navigation is not.
 *
 * The wash is a filled block rather than a colour shift alone, and every
 * current item still carries aria-current="page", so the state is not
 * communicated by colour on its own.
 */
.sl-nav__item.current-menu-item > .sl-nav__link,
.sl-nav__item.current-menu-ancestor > .sl-nav__link,
.sl-nav__link[aria-current="page"] {
	background: var(--sl-wash);
	color: var(--sl-text);
}

.sl-nav__badge {
	font-family: var(--sl-font-mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sl-signal);
	border: var(--sl-border-w) solid var(--sl-signal-wash);
	border-radius: 3px;
	padding: 2px 5px;
	line-height: 1;
}

.sl-nav__chevron {
	opacity: 0.6;
	transition: transform var(--sl-duration) var(--sl-ease);
}

[aria-expanded="true"] .sl-nav__chevron {
	transform: rotate(180deg);
}

.sl-nav__disclosure {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 8px 4px;
}

/* Standard dropdown (non-mega children) */

.sl-nav__dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 240px;
	background: var(--sl-surface);
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	padding: 8px;
	z-index: 70;
}

.sl-nav__submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sl-nav__submenu .sl-nav__link {
	display: flex;
	width: 100%;
	padding: 9px 12px;
	font-weight: 400;
}

.sl-nav__desc {
	display: block;
	font-size: 13px;
	color: var(--sl-muted);
	margin-top: 2px;
}

/* Open state is driven by the script; hover and focus are the no-JS path. */
.sl-nav__dropdown[hidden] {
	display: none;
}

@media (hover: hover) {
	.sl-nav--primary .sl-nav__item--has-children:hover > .sl-nav__dropdown[hidden],
	.sl-nav--primary .sl-nav__item--has-children:focus-within > .sl-nav__dropdown[hidden] {
		display: block;
	}
}

.sl-nav--primary .sl-nav__item--has-children:focus-within > .sl-nav__dropdown[hidden] {
	display: block;
}

/* ------------------------------------------------- 6. Mobile navigation */

.sl-nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	background: none;
	border: var(--sl-border-w) solid var(--sl-hairline-strong);
	border-radius: var(--sl-radius);
	padding: 9px 13px;
	color: inherit;
	font-family: var(--sl-font-mono);
	font-size: 11px;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	cursor: pointer;
}

.sl-nav-toggle__glyph {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: 16px;
}

.sl-nav-toggle__glyph span {
	display: block;
	height: 1.5px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--sl-duration) var(--sl-ease);
}

.sl-nav-toggle[aria-expanded="true"] .sl-nav-toggle__glyph span:first-child {
	transform: translateY(3px) rotate(45deg);
}

.sl-nav-toggle[aria-expanded="true"] .sl-nav-toggle__glyph span:last-child {
	transform: translateY(-2.5px) rotate(-45deg);
}

.sl-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(var(--sl-bg-rgb), 0.6);
}

.sl-mobile-nav[hidden] {
	display: none;
}

.sl-mobile-nav__panel {
	position: absolute;
	inset-block: 0;
	right: 0;
	width: min(420px, 100%);
	background: var(--sl-bg);
	border-left: var(--sl-border-w) solid var(--sl-hairline);
	display: flex;
	flex-direction: column;
	padding: calc(var(--sl-header-h) + 12px) 24px 24px;
	animation: sl-slide-in 240ms var(--sl-ease);
}

.sl-mobile-panel .sl-mobile-nav__panel,
.sl-mobile-fullscreen .sl-mobile-nav__panel {
	width: 100%;
	border-left: 0;
	animation: sl-fade-in 200ms var(--sl-ease);
}

@keyframes sl-slide-in {
	from {
		transform: translateX(16px);
		opacity: 0;
	}
}

@keyframes sl-fade-in {
	from {
		opacity: 0;
	}
}

.sl-mobile-nav__scroll {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sl-nav--mobile .sl-nav__list,
.sl-nav--mobile-secondary .sl-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sl-nav--mobile .sl-nav__item--depth-0 {
	border-bottom: var(--sl-border-w) solid var(--sl-hairline);
}

.sl-nav--mobile .sl-nav__link {
	width: 100%;
	justify-content: space-between;
	padding: 14px 0;
	font-family: var(--sl-font-display);
	font-size: 21px;
	font-weight: 300;
	letter-spacing: -0.02em;
	border-radius: 0;
}

.sl-nav--mobile .sl-nav__link:hover {
	background: none;
	color: var(--sl-link);
}

.sl-nav--mobile .sl-nav__submenu .sl-nav__link {
	font-family: var(--sl-font-ui);
	font-size: var(--sl-body-size);
	padding: 9px 0 9px 16px;
}

.sl-nav--mobile-secondary {
	margin-top: 24px;
}

.sl-nav--mobile-secondary .sl-nav__link {
	padding: 8px 0;
	font-size: var(--sl-ui-size);
	color: var(--sl-muted);
}

.sl-mobile-nav__foot {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 20px;
	border-top: var(--sl-border-w) solid var(--sl-hairline);
}

body.sl-nav-open {
	overflow: hidden;
}

/* ------------------------------------------------------------- 7. Footer */

.sl-footer {
	padding-block: var(--sl-footer-space) 40px;
	border-top: var(--sl-border-w) solid var(--sl-hairline);
	margin-top: var(--sl-section);
}

.sl-footer__columns {
	display: grid;
	grid-template-columns: 1.4fr repeat(calc(var(--sl-footer-columns) - 1), minmax(0, 1fr));
	gap: 40px;
}

.sl-footer__description {
	margin: 18px 0 0;
	font-size: 16px;
	color: var(--sl-text-soft);
	max-width: 34ch;
}

.sl-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 18px;
	font-style: normal;
	font-size: 16px;
	color: var(--sl-text-soft);
}

.sl-footer__contact-line {
	color: inherit;
}

.sl-footer__contact-line:hover {
	color: var(--sl-text);
}

.sl-footer .sl-widget {
	margin-bottom: 28px;
}

.sl-footer .sl-widget:last-child {
	margin-bottom: 0;
}

.sl-widget__title {
	margin: 0 0 14px;
}

.sl-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 16px;
}

.sl-widget ul a {
	color: var(--sl-text);
}

.sl-widget ul a:hover {
	color: var(--sl-link);
}

.sl-social__list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-family: var(--sl-font-mono);
	font-size: 11px;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
}

.sl-social__list a {
	color: var(--sl-muted);
}

.sl-social__list a:hover {
	color: var(--sl-text);
}

.sl-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 24px;
	margin-top: 56px;
	padding-top: 22px;
	border-top: var(--sl-border-w) solid var(--sl-hairline);
	font-family: var(--sl-font-mono);
	font-size: 10px;
	letter-spacing: var(--sl-label-tracking);
	text-transform: uppercase;
	color: var(--sl-muted);
}

.sl-footer__legal-list {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
}

.sl-footer__legal-list a {
	color: var(--sl-muted);
}

.sl-footer__legal-list a:hover {
	color: var(--sl-text);
}

/* -------------------------------------------------------------- 8. Forms */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
	width: 100%;
	background: var(--sl-surface);
	color: var(--sl-text);
	border: var(--sl-border-w) solid var(--sl-hairline-strong);
	border-radius: var(--sl-radius);
	padding: 11px 12px;
	font-family: var(--sl-font-ui);
	font-size: var(--sl-ui-size);
	line-height: 1.4;
	transition: border-color var(--sl-duration) var(--sl-ease);
}

input:hover,
select:hover,
textarea:hover {
	border-color: var(--sl-text-faint);
}

input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--sl-focus);
	outline-offset: 1px;
	border-color: transparent;
}

::placeholder {
	color: var(--sl-text-faint);
	opacity: 1;
}

label {
	display: block;
	font-family: var(--sl-font-ui);
	font-size: var(--sl-ui-size);
	margin-bottom: 6px;
}

button,
input[type="submit"] {
	font-family: var(--sl-font-ui);
	cursor: pointer;
}

.sl-search-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.sl-search-form__field {
	flex: 1;
	min-width: 0;
}

.sl-search-form__submit {
	flex: none;
}

/* ------------------------------------ 9. Utilities and accessibility */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.sl-skip-link:focus,
.screen-reader-text:focus {
	clip-path: none;
	background: var(--sl-primary);
	color: #fff;
	display: block;
	font-family: var(--sl-font-ui);
	font-size: 15px;
	font-weight: 500;
	height: auto;
	left: 16px;
	line-height: normal;
	padding: 14px 22px;
	border-radius: var(--sl-radius);
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

:focus-visible {
	outline: 2px solid var(--sl-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Only remove the default ring where a custom one is drawn. */
:focus:not(:focus-visible) {
	outline: none;
}

.sl-main:focus {
	outline: none;
}

.sl-pagination__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: calc(var(--sl-section) / 2) 0 0;
	padding: 0;
}

.sl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: var(--sl-border-w) solid var(--sl-hairline);
	border-radius: var(--sl-radius);
	font-family: var(--sl-font-mono);
	font-size: 13px;
	color: var(--sl-text);
}

.sl-pagination .page-numbers:hover {
	border-color: var(--sl-text);
}

.sl-pagination .current {
	background: var(--sl-primary);
	border-color: var(--sl-primary);
	color: #fff;
}

.sl-page-links {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 2em;
}

/* Motion is opt-in and always yields to the visitor's preference. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body.sl-motion-off * {
	animation: none !important;
}

/* ---------------------------------------------------------- Breakpoints */

@media (max-width: 1024px) {
	.sl-layout--right,
	.sl-layout--left {
		grid-template-columns: minmax(0, 1fr);
	}

	.sl-layout--left .sl-layout__main {
		order: 0;
	}

	.sl-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.sl-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sl-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sl-footer__brand {
		grid-column: 1 / -1;
	}
}

/*
 * Responsive token overrides live in the inline :root block, not here — this
 * file is printed before it, and a media query adds no specificity, so a
 * `:root` rule in this file would lose to the base tokens.
 */

@media (max-width: 720px) {
	.sl-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.sl-grid--2,
	.sl-grid--3,
	.sl-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.sl-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.sl-footer__columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}
