/* RISITEX content pages (about, contact, faq, catalogues, legal).
   Markup uses the live site's Tailwind classes (rx-app.css); this file adds only what that compiled bundle lacks,
   plus the About page's "Vexo" palette, which the live page shipped as an inline <style>. */

/* ── Utilities missing from the compiled bundle ─────────────────────────────────────────── */
.duration-500 { transition-duration: 500ms; }
.pr-9 { padding-right: 2.25rem; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(20, 20, 18, 0.06); }
.hover\:shadow-md:hover { box-shadow: 0 6px 18px -8px rgba(20, 20, 18, 0.22), 0 2px 4px -2px rgba(20, 20, 18, 0.08); }
.focus-visible\:ring-ring\/50:focus-visible { --tw-ring-color: color-mix(in srgb, var(--border-focus) 50%, transparent); }
@media (min-width: 1536px) {
	.\32xl\:px-16 { padding-left: 4rem; padding-right: 4rem; }
	.\32xl\:max-w-\[1440px\] { max-width: 1440px; }
}
@keyframes rx-spin { to { transform: rotate(360deg); } }
.animate-spin { animation: rx-spin 1s linear infinite; }

/* ── About: Vexo palette (verbatim from the live page) ───────────────────────────────────── */
/* Light: the page also retunes the global tokens so the header/footer sit on the same canvas. */
html:root:not([data-theme="dark"]):has(.rx-vexo) {
	--surface-background: #EDEFEF;
	--surface-raised: #FFFFFF;
	--surface-sunken: #F2F3F3;
	--surface-inverse: #0B0808;
	--text-primary: #0B0808;
	--text-secondary: #3A332F;
	--text-muted: #5D4D45;
	--text-on-accent: #FFFFFF;
	--text-on-inverse: #FFFFFF;
	--border-subtle: #E1E4E4;
	--border-strong: #D1D6D8;
	--border-focus: #0B0808;
	--brand-accent: #0B0808;
	--brand-accent-muted: #5D4D45;
	--brand-accent-surface: #F2F3F3;
	--action-primary-bg: #0B0808;
	--action-primary-bg-hover: #5D4D45;
	--action-primary-bg-active: #000000;
	--action-primary-text: #FFFFFF;
	--action-secondary-bg: #FFFFFF;
	--action-secondary-bg-hover: #F2F3F3;
	--action-secondary-text: #0B0808;
	color-scheme: light;
}
.rx-vexo {
	--vx-bg: #EDEFEF;
	--vx-card: #FFFFFF;
	--vx-card-2: #E4E7E7;
	--vx-line: #E1E4E4;
	--vx-ink: #0B0808;
	--vx-ink-soft: #5D4D45;
	--vx-panel: #0B0808;
	--vx-on-panel: #EDEFEF;
	--vx-btn: #0B0808;
	--vx-btn-fg: #FFFFFF;
	--vx-btn-hover: #5D4D45;
	--vx-chip: #0B0808;
	--vx-chip-fg: #FFFFFF;
	--vx-pill: rgba(255, 255, 255, 0.92);
	--vx-mist: #D1D6D8;
	--vx-sage: #98AEB3;
	--vx-max: 1240px;
	background: var(--vx-bg);
	color: var(--vx-ink);
	font-family: var(--font-sans);
}
html[data-theme="dark"] .rx-vexo {
	--vx-bg: #0E0F10;
	--vx-card: #17191A;
	--vx-card-2: #202325;
	--vx-line: #282C2E;
	--vx-ink: #ECEEEE;
	--vx-ink-soft: #9AA1A1;
	--vx-panel: #17191A;
	--vx-on-panel: #ECEEEE;
	--vx-btn: #ECEEEE;
	--vx-btn-fg: #0B0808;
	--vx-btn-hover: #C6CFD0;
	--vx-chip: #ECEEEE;
	--vx-chip-fg: #0B0808;
	--vx-pill: rgba(20, 22, 24, 0.86);
	--vx-mist: #2A2E30;
}
/* One typeface: .vx-display is the heavy headline hook, .vx-serif the light accent (weight contrast). */
.rx-vexo .vx-display { font-family: var(--font-display); }
.rx-vexo .vx-serif { font-family: var(--font-sans); font-style: normal; font-weight: 300; }

/* ── Contact: native <select> dressed as the live Radix trigger ──────────────────────────── */
.rx-select { appearance: none; -webkit-appearance: none; background-image: none; cursor: pointer; }
.rx-select::-ms-expand { display: none; }
[data-theme="dark"] .rx-select option { background: var(--surface-raised); color: var(--text-primary); }

/* ── FAQ: open state (the live React accordion toggled these classes) ────────────────────── */
.rx-faq-item.is-open { border-color: var(--border-strong); }
.rx-faq-item.is-open .rx-faq-chevron {
	transform: rotate(180deg);
	background-color: var(--brand-accent);
	color: var(--text-on-accent);
}
.rx-faq-item h2 { margin: 0; }

/* ── Catalogues: generated cover for swatch books without a cover image ──────────────────── */
.rx-fabric-cover {
	display: flex;
	align-items: flex-end;
	background:
		linear-gradient(160deg, var(--rx-tint) 0%, color-mix(in srgb, var(--rx-tint) 78%, #0B0808) 100%);
	color: #1B1714;
	overflow: hidden;
}
.rx-fabric-cover__weave {
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 6px),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 6px);
}
.rx-fabric-cover__label {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	margin: 1.25rem;
	padding: 1.1rem 1.2rem;
	border-radius: 0.6rem;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(4px);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.45);
}
.rx-fabric-cover__brand { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }
.rx-fabric-cover__name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.rx-fabric-cover__title { font-size: 0.85rem; opacity: 0.75; }
[data-theme="dark"] .rx-fabric-cover { filter: brightness(0.82); }
[data-theme="dark"] .rx-fabric-cover__label { background: rgba(23, 25, 26, 0.86); color: #ECEEEE; }

/* ── Legal: inline links inside policy copy ──────────────────────────────────────────────── */
.rx-legal a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }
.rx-legal strong { color: var(--text-primary); font-weight: 600; }

/* ── Prose: staff-authored Shop Web Page HTML (Pages in the commera dashboard) ───────────── */
.rx-prose > * + * { margin-top: 1rem; }
.rx-prose h1, .rx-prose h2 { margin-top: 2.5rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; font-weight: 600; color: var(--text-primary); }
.rx-prose h3 { margin-top: 2rem; font-size: 1.15rem; line-height: 1.35; font-weight: 600; color: var(--text-primary); }
.rx-prose h4 { margin-top: 1.5rem; font-weight: 600; color: var(--text-primary); }
.rx-prose > :first-child { margin-top: 0; }
.rx-prose ul { list-style: disc; padding-left: 1.25rem; }
.rx-prose ol { list-style: decimal; padding-left: 1.25rem; }
.rx-prose li + li { margin-top: 0.4rem; }
.rx-prose a, .rx-page-intro a { color: var(--text-primary); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.rx-prose strong { color: var(--text-primary); font-weight: 600; }
.rx-prose blockquote { border-left: 2px solid var(--border-strong); padding-left: 1rem; font-style: italic; }
.rx-prose img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.rx-prose hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 2rem 0; }
.rx-page-intro > * + * { margin-top: 0.75rem; }
/* About hero prose keeps the Vexo type (17px / 1.8, soft ink). */
.rx-vexo .rx-prose { max-width: 52ch; font-size: 17px; line-height: 1.8; color: var(--vx-ink-soft); }
.rx-vexo .rx-prose a, .rx-vexo .rx-prose strong { color: var(--vx-ink); }

/* ── Phones (≤640px) ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.rx-vexo .text-\[26vw\] { font-size: 34vw; }
	.rx-vexo figure { padding: 1.5rem; }
	.rx-fabric-cover__name { font-size: 1.6rem; }
}
