/**
 * OneRoof design system.
 *
 * Every colour and metric from the storefront mockup lives here as a custom
 * property. Widgets in the OneRoof Widgets plugin read the same properties, so
 * a token change here restyles the whole store.
 */

/* ---------------------------------------------------------------- fonts --- */

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 400 600;
	font-stretch: 100%;
	font-display: swap;
	src: url('../fonts/archivo-vietnamese.woff2') format('woff2');
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 400 600;
	font-stretch: 100%;
	font-display: swap;
	src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 400 600;
	font-stretch: 100%;
	font-display: swap;
	src: url('../fonts/archivo-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens --- */

:root {
	/* Core palette. */
	--or-desk: #eeeeec;
	--or-bg: #ffffff;
	--or-surface: #f4f4f2;
	--or-ink: #16181d;
	--or-muted: #7b7f88;
	--or-line: rgba(22, 24, 29, .10);
	--or-brand: #2f83c4;
	--or-brand-light: #9ed0f0;
	--or-brand-soft: #eef5fb;
	--or-sale: #b4432f;
	--or-good: #2c7a56;

	/* Desktop metrics. */
	--or-pad: clamp(18px, 3vw, 40px);
	--or-sec-y: clamp(40px, 4.4vw, 64px);
	--or-h1: clamp(38px, 5.4vw, 62px);
	--or-h2: clamp(22px, 2.2vw, 30px);
	--or-h2-sub: 13.5px;
	--or-hero-min: clamp(380px, 42vw, 500px);
	--or-hero-y: clamp(64px, 8vw, 120px);
	--or-card-col: repeat(auto-fill, minmax(182px, 1fr));
	--or-card-gap: clamp(20px, 1.8vw, 28px) clamp(12px, 1.3vw, 18px);
	--or-tile-col: repeat(auto-fit, minmax(250px, 1fr));
	--or-cat-col: repeat(auto-fill, minmax(128px, 1fr));
	--or-feat: clamp(210px, 25vw, 262px);
	--or-rail: 150px;
	--or-toast-y: 28px;

	/* Shape. */
	--or-radius: 14px;
	--or-radius-sm: 10px;
	--or-pill: 999px;
	--or-max: 1180px;
	--or-shadow: 0 18px 44px rgba(20, 22, 28, .1);
	--or-shadow-lg: 0 24px 48px rgba(20, 22, 28, .1);
	--or-ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 768px) {
	:root {
		--or-pad: 16px;
		--or-sec-y: 30px;
		--or-h1: 31px;
		--or-h2: 20px;
		--or-h2-sub: 12.5px;
		--or-hero-min: 330px;
		--or-hero-y: 40px;
		--or-card-col: repeat(2, minmax(0, 1fr));
		--or-card-gap: 18px 10px;
		--or-tile-col: repeat(1, minmax(0, 1fr));
		--or-cat-col: repeat(3, minmax(0, 1fr));
		--or-feat: min(74%, 290px);
		--or-rail: 132px;
		--or-toast-y: 76px;
	}
}

/* ----------------------------------------------------------------- base --- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

/* Keep the hidden attribute authoritative — several components below set a
   display value that would otherwise win. */
[hidden] {
	display: none !important;
}

body {
	margin: 0;
	/* Horizontally scrolling rails (carousel, product rail, vouchers) leave a
	   residual scroll area on the root box. `clip` removes it without creating a
	   scroll container, so the sticky header keeps working — `hidden` would break it. */
	overflow-x: clip;
	background: var(--or-bg);
	color: var(--or-ink);
	font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--or-brand);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
select,
textarea {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--or-brand);
	color: #fff;
}

:focus-visible {
	outline: 1.5px solid var(--or-brand);
	outline-offset: 3px;
	border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 500;
	letter-spacing: -.03em;
	line-height: 1.15;
}

p {
	margin: 0 0 1em;
}

/* Horizontal rails hide their scrollbar but stay scrollable and keyboard reachable. */
.or-scroller {
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.or-scroller::-webkit-scrollbar {
	display: none;
}

@keyframes or-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@keyframes or-pop {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------- layout --- */

.or-container {
	max-width: var(--or-max);
	margin-inline: auto;
	padding-inline: var(--or-pad);
}

.or-section {
	padding-top: var(--or-sec-y);
}

.or-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 600;
	padding: 10px 14px;
	background: var(--or-ink);
	color: var(--or-bg);
	font-size: 13px;
}

.or-skip-link:focus {
	left: 0;
	color: var(--or-bg);
}

.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;
}

/* ------------------------------------------------------------- section --- */

.or-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.or-section__title {
	margin: 0;
	font-size: var(--or-h2);
	font-weight: 500;
	letter-spacing: -.03em;
}

.or-section__meta {
	font-size: 12.5px;
	color: var(--or-muted);
	white-space: nowrap;
}

.or-section__sub {
	margin: 0 0 18px;
	font-size: var(--or-h2-sub);
	color: var(--or-muted);
}

/* ------------------------------------------------------------- buttons --- */

.or-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: transparent;
	color: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	transition: background .2s var(--or-ease), color .2s var(--or-ease), border-color .2s var(--or-ease);
}

.or-btn:hover {
	background: var(--or-ink);
	color: var(--or-bg);
	border-color: var(--or-ink);
}

.or-btn--solid {
	border-color: var(--or-ink);
	background: var(--or-ink);
	color: var(--or-bg);
}

.or-btn--solid:hover {
	opacity: .88;
	background: var(--or-ink);
	color: var(--or-bg);
}

.or-btn--light {
	border: 0;
	background: #fff;
	color: #14161d;
	min-height: 50px;
	padding: 0 28px;
	font-size: 14.5px;
}

.or-btn--light:hover {
	background: #fff;
	color: #14161d;
	opacity: .9;
}

.or-btn--block {
	width: 100%;
}

/* Pill toggles: filter chips, preference picker, viewport switches. */
.or-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: transparent;
	color: var(--or-ink);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background .18s var(--or-ease), color .18s var(--or-ease), border-color .18s var(--or-ease);
}

.or-chip:hover {
	border-color: var(--or-ink);
}

.or-chip[aria-pressed="true"],
.or-chip.is-active {
	background: var(--or-ink);
	border-color: var(--or-ink);
	color: var(--or-bg);
}

.or-chip-row {
	display: flex;
	gap: 7px;
	margin-bottom: 22px;
}

/* --------------------------------------------------------------- badges --- */

.or-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 9px;
	border-radius: var(--or-pill);
	background: rgba(255, 255, 255, .94);
	color: var(--or-ink);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
}

.or-badge--sale {
	background: var(--or-sale);
	color: #fff;
}

.or-badge--discount {
	color: var(--or-sale);
}

/* --------------------------------------------------------- product card --- */

.or-card {
	display: flex;
	flex-direction: column;
}

.or-card__media {
	position: relative;
	border-radius: var(--or-radius);
	overflow: hidden;
	background: var(--or-surface);
}

.or-card__media img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.or-card__body {
	padding: 11px 2px 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.or-card__eyebrow {
	font-size: 11.5px;
	color: var(--or-muted);
}

.or-card__eyebrow--match {
	color: var(--or-brand);
}

.or-card__name {
	font-size: 13.5px;
	line-height: 1.35;
	color: inherit;
}

.or-card__prices {
	display: flex;
	align-items: baseline;
	gap: 7px;
	margin-top: auto;
	padding-top: 6px;
}

.or-card__price {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -.01em;
}

.or-card__price--sale {
	color: var(--or-sale);
}

.or-card__was {
	font-size: 12px;
	color: var(--or-muted);
	text-decoration: line-through;
}

/* "and up" on a variable product whose variations differ in price. */
.or-card__from {
	font-size: 11.5px;
	font-weight: 400;
	color: var(--or-muted);
}

.or-card__meta {
	font-size: 11.5px;
	color: var(--or-muted);
}

.or-card__stock--low {
	color: var(--or-sale);
}

/* The only gap between the card's last meta line and its button. */
.or-card__cta {
	margin-top: 12px;
}

/* Wishlist heart. */
.or-wish {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: var(--or-pill);
	background: rgba(255, 255, 255, .9);
	color: var(--or-muted);
	font-size: 24px;
	/* The glyph carries its own leading, which pushes it off-centre in the grid. */
	line-height: 1;
	cursor: pointer;
	transition: color .18s var(--or-ease), transform .18s var(--or-ease);
}

.or-wish:hover {
	transform: scale(1.08);
}

.or-wish[aria-pressed="true"] {
	color: var(--or-sale);
}

/* Stock-sold progress bar on hot cards. */
.or-progress {
	display: block;
	height: 4px;
	border-radius: var(--or-pill);
	background: var(--or-line);
	overflow: hidden;
}

.or-progress__fill {
	display: block;
	height: 100%;
	background: var(--or-ink);
	transition: width .6s var(--or-ease);
}

.or-progress__fill--hot {
	background: var(--or-sale);
}

/* --------------------------------------------------------------- header --- */

.or-header {
	position: sticky;
	top: 0;
	z-index: 122;
	background: var(--or-bg);
}

.or-topbar {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 12px;
	color: var(--or-muted);
}

.or-topbar__note,
.or-topbar a,
.or-topbar button {
	flex: none;
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.or-topbar__spacer {
	flex: 1;
}

.or-topbar button {
	border: 0;
	background: transparent;
	color: var(--or-muted);
	font-size: 12px;
	cursor: pointer;
}

@media (max-width: 768px) {
	.or-topbar {
		display: none;
	}
}

.or-header__bar {
	background: var(--or-bg);
	border-top: 1px solid var(--or-line);
	border-bottom: 1px solid var(--or-line);
}

.or-header__inner {
	display: flex;
	align-items: center;
	gap: 10px clamp(12px, 2vw, 26px);
	padding-block: 8px;
	flex-wrap: nowrap;
}

.or-logo {
	flex: none;
	display: flex;
	align-items: center;
	gap: 9px;
}

.or-logo img {
	width: 38px;
	height: 38px;
	border-radius: var(--or-pill);
	object-fit: cover;
}

.or-logo__text {
	font-size: 16.5px;
	font-weight: 600;
	letter-spacing: -.02em;
}

@media (max-width: 768px) {
	.or-logo__text {
		display: none;
	}
}

/* ---------------------------------------------------------- header search --- */

.or-search {
	flex: 1 1 260px;
	min-width: 0;
	position: relative;
}

.or-search__field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 13px;
	background: var(--or-surface);
	border-radius: var(--or-pill);
}

.or-search__icon {
	color: var(--or-muted);
	font-size: 20px;
	/* The glyph carries its own leading, which would stretch the flex line box. */
	line-height: 1;
}

.or-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	outline: none;
	font-size: 14px;
}

.or-search__photo {
	flex: none;
	min-width: 32px;
	min-height: 32px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--or-muted);
	font-size: 20px;
	line-height: 1;
}

.or-suggest {
	position: absolute;
	top: 46px;
	left: 0;
	right: 0;
	z-index: 140;
	padding: 8px;
	background: var(--or-bg);
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius);
	box-shadow: var(--or-shadow);
	max-height: 320px;
	overflow: auto;
	animation: or-in .3s var(--or-ease) both;
}

.or-suggest[hidden] {
	display: none;
}

.or-suggest__label {
	margin: 4px 10px 6px;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--or-muted);
}

.or-suggest__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.or-suggest__item {
	width: 100%;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 14px;
}

.or-suggest__item:hover,
.or-suggest__item:focus-visible {
	background: var(--or-surface);
}

.or-suggest__meta {
	font-size: 11.5px;
	color: var(--or-muted);
	white-space: nowrap;
}

.or-suggest__empty {
	padding: 10px;
	font-size: 13px;
	color: var(--or-muted);
}

/* ------------------------------------------------------------- account --- */

.or-account {
	flex: none;
	display: flex;
	align-items: center;
	gap: 2px;
}

.or-account__btn {
	position: relative;
	min-width: 44px;
	min-height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--or-muted);
	white-space: nowrap;
}

/* Round face holding either the initials or the person mark. */
.or-account__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--or-brand-soft);
	box-shadow: inset 0 0 0 1px var(--or-line);
	color: var(--or-brand);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1;
	transition: background .18s var(--or-ease), color .18s var(--or-ease);
}

.or-account__btn:hover .or-account__avatar,
.or-account__btn:focus-visible .or-account__avatar {
	background: var(--or-brand);
	color: #fff;
}

.or-account__mark {
	width: 19px;
	height: 19px;
}

.or-account__cart {
	color: var(--or-ink);
}

.or-account__cart-icon {
	width: 23px;
	height: 23px;
}

.or-account__count {
	position: absolute;
	top: 6px;
	right: 5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: var(--or-pill);
	background: var(--or-brand);
	color: #fff;
	font-size: 10px;
	font-weight: 500;
	display: grid;
	place-items: center;
}

/* ---------------------------------------------------------------- tooltip --- */

/* Hover/focus label for icon-only controls. The text repeats the control's
   aria-label, so this is decorative — never the only copy of the name. */
.or-tip {
	position: relative;
}

.or-tip::after {
	content: attr(data-or-tip);
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 150;
	padding: 5px 9px;
	border-radius: 8px;
	background: var(--or-ink);
	color: var(--or-bg);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	/* Keeps the label from swallowing the pointer and re-triggering hover. */
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 2px);
	transition: opacity .18s var(--or-ease), transform .18s var(--or-ease);
}

.or-tip:hover::after,
.or-tip:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 6px);
}

/* Centring would push the last header control's label past the page padding. */
.or-tip--end::after {
	left: auto;
	right: 0;
	transform: translate(0, 2px);
}

.or-tip--end:hover::after,
.or-tip--end:focus-visible::after {
	transform: translate(0, 6px);
}

/* ------------------------------------------------------------ nav + mega --- */

.or-nav {
	position: relative;
}

.or-nav__row {
	display: flex;
	align-items: center;
	gap: 2px;
}

.or-nav__mega-toggle {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px 0 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--or-ink);
}

.or-nav__mega-toggle[aria-expanded="true"] {
	color: var(--or-brand);
}

.or-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.or-nav__list a {
	flex: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0 11px;
	font-size: 13px;
	color: var(--or-muted);
	white-space: nowrap;
}

.or-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 150;
	background: var(--or-bg);
	border-top: 1px solid var(--or-line);
	box-shadow: var(--or-shadow-lg);
	max-height: 70vh;
	overflow: auto;
	animation: or-in .3s var(--or-ease) both;
}

.or-mega[hidden] {
	display: none;
}

.or-mega__grid {
	max-width: var(--or-max);
	margin-inline: auto;
	padding: clamp(20px, 2.4vw, 32px) var(--or-pad);
	display: grid;
	gap: clamp(18px, 2vw, 30px);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.or-mega__col {
	display: flex;
	gap: 14px;
}

.or-mega__thumb {
	flex: none;
	width: 62px;
}

.or-mega__thumb img {
	width: 62px;
	height: 62px;
	object-fit: cover;
	border-radius: var(--or-radius-sm);
	background: var(--or-surface);
}

.or-mega__body {
	flex: 1;
	min-width: 0;
}

.or-mega__name {
	display: block;
	font-size: 13.5px;
	font-weight: 500;
	margin-bottom: 8px;
}

.or-mega__children {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.or-mega__children a {
	font-size: 12.5px;
	color: var(--or-muted);
}

@media (max-width: 768px) {
	.or-mega__grid {
		padding: 18px var(--or-pad);
		gap: 18px;
		grid-template-columns: 1fr;
	}

	.or-mega__thumb,
	.or-mega__thumb img {
		width: 56px;
		height: 56px;
	}

	/* Children read as pills on phones rather than a stacked list. */
	.or-mega__children {
		display: flex;
		gap: 7px;
		flex-wrap: wrap;
	}

	.or-mega__children a {
		padding: 6px 11px;
		border-radius: var(--or-pill);
		background: var(--or-surface);
		font-size: 12px;
	}
}

/* --------------------------------------------------------------- footer --- */

.or-footer {
	margin-top: var(--or-sec-y);
	border-top: 1px solid var(--or-line);
}

.or-footer__grid {
	max-width: var(--or-max);
	margin-inline: auto;
	padding: clamp(30px, 3.4vw, 48px) var(--or-pad);
	display: grid;
	gap: clamp(22px, 3vw, 40px);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.or-footer__heading {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 500;
}

.or-footer__pays {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

.or-footer__pay {
	padding: 6px 12px;
	border-radius: var(--or-pill);
	background: var(--or-surface);
	font-size: 12px;
	color: var(--or-muted);
}

.or-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.or-footer__list a {
	font-size: 13px;
	color: var(--or-muted);
}

.or-footer__blurb {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--or-muted);
	max-width: 30ch;
}

.or-footer__legal {
	border-top: 1px solid var(--or-line);
}

.or-footer__legal-inner {
	max-width: var(--or-max);
	margin-inline: auto;
	padding: 16px var(--or-pad);
	font-size: 11.5px;
	color: var(--or-muted);
}

/* --------------------------------------------------------- mobile tabbar --- */

.or-tabbar {
	position: sticky;
	bottom: 0;
	z-index: 130;
	display: none;
	background: var(--or-bg);
	border-top: 1px solid var(--or-line);
	padding: 4px 4px 9px;
}

.or-tabbar a {
	flex: 1;
	min-height: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--or-muted);
	font-size: 10px;
}

.or-tabbar a[aria-current="page"] {
	color: var(--or-ink);
}

.or-tabbar__icon {
	font-size: 15px;
}

@media (max-width: 768px) {
	.or-tabbar {
		display: flex;
	}
}

/* ---------------------------------------------------------------- toast --- */

.or-toast {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: var(--or-toast-y);
	z-index: 400;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	border-radius: var(--or-pill);
	background: var(--or-ink);
	color: var(--or-bg);
	font-size: 13px;
	box-shadow: 0 12px 32px rgba(20, 22, 28, .2);
	animation: or-pop .3s var(--or-ease) both;
}

.or-toast[hidden] {
	display: none;
}

.or-toast a,
.or-toast button {
	border: 0;
	background: transparent;
	color: var(--or-brand-light);
	font-weight: 500;
	cursor: pointer;
	font-size: 13px;
}

/* ----------------------------------------------------------- main/pages --- */

.or-main {
	min-height: 40vh;
}

.or-page {
	padding-block: var(--or-sec-y);
}

.or-page__title {
	font-size: var(--or-h2);
	margin-bottom: 18px;
}

/* ------------------------------------------------------------ page prose --- */

.or-page__lede {
	max-width: 60ch;
	margin: 0 0 8px;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.55;
	color: var(--or-muted);
	text-wrap: pretty;
}

.or-entry-content {
	font-size: 15px;
	line-height: 1.65;
}

.or-entry-content > * {
	max-width: 72ch;
}

/*
 * The measure above is for editorial copy. WooCommerce renders its account,
 * cart and checkout layouts inside the same wrapper, and they need the full
 * column width.
 */
.or-entry-content > .woocommerce,
.or-entry-content > [class*="wp-block-woocommerce-"] {
	max-width: none;
}

.or-entry-content > * + * {
	margin-top: 1em;
}

.or-entry-content h2 {
	margin-top: 1.8em;
	font-size: clamp(19px, 1.8vw, 23px);
	letter-spacing: -.02em;
}

.or-entry-content h3 {
	margin-top: 1.5em;
	font-size: 16px;
}

.or-entry-content ul,
.or-entry-content ol {
	padding-left: 1.25em;
	display: grid;
	gap: 8px;
}

.or-entry-content li {
	padding-left: 2px;
}

.or-entry-content li::marker {
	color: var(--or-muted);
}

.or-entry-content strong {
	font-weight: 600;
}

.or-entry-content code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--or-surface);
	font-size: .9em;
}

.or-entry-content blockquote {
	margin-inline: 0;
	padding-left: 18px;
	border-left: 2px solid var(--or-line);
	color: var(--or-muted);
}

/* Tables read as data, and scroll rather than break the page on phones. */
.or-entry-content table {
	max-width: 100%;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius);
	overflow: hidden;
	font-size: 14px;
}

.or-entry-content th,
.or-entry-content td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
}

.or-entry-content thead th {
	background: var(--or-surface);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--or-muted);
}

.or-entry-content tbody tr + tr td {
	border-top: 1px solid var(--or-line);
}

:where(.or-entry-content) a {
	color: var(--or-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.or-post-list {
	display: grid;
	gap: clamp(20px, 2.4vw, 34px);
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.or-post-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--or-radius);
	background: var(--or-surface);
}

.or-post-card__title {
	margin: 12px 0 4px;
	font-size: 16px;
	font-weight: 500;
}

.or-post-card__meta {
	font-size: 12px;
	color: var(--or-muted);
}

.or-pagination {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 32px;
}

.or-pagination .page-numbers {
	min-width: 40px;
	min-height: 40px;
	display: inline-grid;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	font-size: 13px;
}

.or-pagination .page-numbers.current {
	background: var(--or-ink);
	border-color: var(--or-ink);
	color: var(--or-bg);
}

.or-404 {
	padding: clamp(60px, 10vw, 120px) 0;
	text-align: center;
}

.or-404__code {
	font-size: clamp(60px, 12vw, 120px);
	letter-spacing: -.05em;
	color: var(--or-line);
	line-height: 1;
}

.or-404 h1 {
	margin: 10px 0 8px;
	font-size: var(--or-h2);
}

.or-404 p {
	color: var(--or-muted);
	font-size: 14px;
}

.or-search-form {
	display: flex;
	gap: 10px;
	align-items: center;
	max-width: 420px;
	margin: 22px auto 0;
	padding: 0 13px;
	height: 44px;
	background: var(--or-surface);
	border-radius: var(--or-pill);
}

.or-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	outline: none;
	font-size: 14px;
}

.or-search-form button {
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--or-muted);
	font-size: 20px;
	line-height: 1;
}
