/*
Theme Name: URSY Barcode (URSY.ai, live)
Theme URI: https://ursy.ai/
Author: URSY
Description: URSY.ai in the URSY Barcode look (3 Dec 2026): new header, footer and home page; every working part of ursy-ai-2 kept (app demo, try it, wiki, news, 50 trade pages, 301s). Light only. No pictures.
Version: 5.0.0
Requires PHP: 7.4
License: Proprietary
Text Domain: ursy-ai-2
*/

/* ---------- The design's own base (its <helmet> styles) ---------- */
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; background: #050817; -webkit-font-smoothing: antialiased; }
a { color: #8fb0ff; text-decoration: none; }
a:hover { color: #5b86ff; }
button { font: inherit; }
@keyframes ursyOrbit { to { transform: rotate(360deg); } }
@keyframes ursyBreathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 3px; border-radius: 6px; }

/* ---------- The design's switches (site.js keeps them live; CSS covers dark/light before the script runs) ---------- */
u-if { display: contents; }
u-if[hidden] { display: none !important; }
html[data-theme="light"] u-if[data-if="isDark"] { display: none !important; }
html[data-theme="light"] u-if[data-if="isLight"] { display: contents !important; }

/* ---------- Light: the design's own light colours (its lightVars) ---------- */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] body { background: #f5f7fd; }
html[data-theme="light"] .u-theme {
	--bg: #f5f7fd; --bg2: #ebf0fc; --card: #ffffff; --card2: #eef3ff;
	--line: rgba(20,45,140,.12); --line2: rgba(20,45,140,.26);
	--hi: #070c2a; --ink: #38436b; --mut: #5c678f; --acc: #1f47e0;
	--tint: rgba(45,91,255,.07); --tint2: rgba(45,91,255,.15); --glow: rgba(45,91,255,.26);
	--shadow: 0 24px 60px rgba(25,50,150,.14); --ok: #0b8f4d; --bad: #cf3a2b;
	--nav: rgba(245,247,253,.8); --stripe: rgba(30,60,170,.07);
	--hero: radial-gradient(78% 64% at 50% 100%,rgba(45,91,255,.34) 0%,rgba(110,140,255,.16) 44%,rgba(245,247,253,0) 76%),linear-gradient(180deg,#f5f7fd,#edf1fd);
	--halo: radial-gradient(52% 62% at 50% 50%,rgba(45,91,255,.2),rgba(245,247,253,0) 70%);
}

/* ---------- The hero's breathing glow and the orbit dot (the design's heroPulse and orbitDot) ---------- */
.u-pulse { position: absolute; left: 50%; bottom: -14vw; width: 76vw; height: 40vw; margin-left: -38vw; background: radial-gradient(closest-side, rgba(70,115,255,.5), rgba(70,115,255,0)); animation: ursyBreathe 8s ease-in-out infinite; pointer-events: none; }
html[data-theme="light"] .u-pulse { background: radial-gradient(closest-side, rgba(45,91,255,.22), rgba(45,91,255,0)); }
.u-orbit { position: absolute; inset: 24px; border-radius: 50%; pointer-events: none; animation: ursyOrbit 18s linear infinite; }
.u-orbit span { position: absolute; left: 50%; top: -7px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(91,134,255,.35), 0 0 22px 6px rgba(91,134,255,.9); }
html[data-theme="light"] .u-orbit span { background: #2d5bff; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.u-pulse, .u-orbit { animation: none; }
}

/* ---------- The home page's trade cards: the trade's name where the design keeps a photo spot ---------- */
.u-slot { position: absolute; inset: 0; display: grid; place-items: center; padding: 1em; text-align: center; color: #fff; font-size: .95em; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; text-shadow: 0 1px 14px rgba(0,0,10,.45); }
.u-slot span { padding: .45em .9em; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- Reading pages: the wiki, news, 404 and any plain page, in the design's colours ---------- */
.u-prose, .ursy-wiki { padding: 128px clamp(20px, 5vw, 72px) clamp(72px, 9vw, 130px); color: var(--ink); }
.u-prose__in, .ursy-wiki__wrap { max-width: 860px; margin: 0 auto; }
.u-prose__eye, .ursy-wiki .gc-eyebrow { font: 12px/1.4 var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.u-prose h1, .ursy-wiki h1, .ursy-wiki .gc-page__title { margin: 14px 0 18px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; color: var(--hi); }
.u-prose h2, .ursy-wiki h2 { color: var(--hi); font-weight: 500; letter-spacing: -.02em; }
.u-prose h3, .ursy-wiki h3 { color: var(--hi); font-weight: 500; }
.u-prose p, .u-prose li { font-size: 17px; line-height: 1.65; }
.u-prose a, .ursy-wiki__body a, .ursy-wiki__sources a { color: var(--acc); }
.u-prose__links { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.u-prose__links a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--hi); }
.u-prose__links a:hover { border-color: var(--acc); }
.ursy-wiki__list a, .ursy-news__list a, .ursy-wiki__stock, .ursy-wiki__sources, .ursy-wiki__related { background: var(--card) !important; border-color: var(--line) !important; border-radius: 18px !important; }
.ursy-wiki__list a:hover, .ursy-news__list a:hover { border-color: var(--acc) !important; }
.ursy-wiki__list b, .ursy-news__list b { color: var(--hi); font-weight: 500; }
.ursy-wiki__jump a { border-color: var(--line2) !important; }
.ursy-wiki__crumbs a { color: var(--mut); }

/* ---------- 2.2.0: skip link, and "More in the wiki" on the designed pages ---------- */
.u-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #2d5bff; color: #fff !important; font: 500 15px/1.2 'Lexend', system-ui, sans-serif; transition: top .15s; }
.u-skip:focus { top: 12px; }
.u-wikistrip { padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.u-wikistrip__in { max-width: 1240px; margin: 0 auto; }
.u-wikistrip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.u-wikistrip__head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; color: var(--hi); }
.u-wikistrip__head a { font: 13px/1.4 var(--m); color: var(--acc); }

/* 2.2.1 (J18): a stand-in for Lexend until it arrives, sized to Lexend's measured shape (Lexend is 8.1% wider than Arial;
   ascent 1000, descent 250 per 1000), so the text does not move when the web font swaps in. Measured 22 Nov 2026. */
@font-face {
	font-family: 'Lexend Fallback';
	src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Roboto'), local('Liberation Sans');
	size-adjust: 108.1%;
	ascent-override: 92.5%;
	descent-override: 23.1%;
	line-gap-override: 0%;
}

/* ---------- Polish, 23 Nov 2026 (site-wide polish run). To undo: delete this block. ---------- */
/* "Yes" chips: white on a darker green, 5.3:1 (was 4.2:1) */
body .u3-flow__yes b { background: #087a41; }
/* Wiki A to Z: two even rows of 13 on wider screens, no lone "Z" on its own line */
@media (min-width: 720px) {
	body .wk-az { display: grid; grid-template-columns: repeat(13, 38px); justify-content: start; }
}
/* Wiki article side rail: never runs under the floating Ask Lee button; scrolls inside itself when long */
@media (min-width: 1000px) {
	body .wk-rail { max-height: calc(100vh - 210px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
/* Products: the 7th card no longer sits alone on its row; it runs the full width with its points in two columns */
@media (min-width: 1000px) {
	body .u3-prods > .u3-prod:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
	body .u3-prods > .u3-prod:last-child:nth-child(3n+1) ul { columns: 2; column-gap: 40px; }
	body .u3-prods > .u3-prod:last-child:nth-child(3n+1) li { break-inside: avoid; }
}
/* AI Lab, "Where the proof stops": three cards across the full width, lined up with the lists above */
@media (min-width: 900px) {
	body #not-claimed + .u3-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: none; }
	body #not-claimed + .u3-list > li { margin: 0; height: 100%; box-sizing: border-box; }
}
/* Page tops (AI Lab, Products, Ask Lee, /ai/, the teardown): less empty space above the title, so the top sits balanced (Lee) */
body .u3-hero { padding-top: calc(72px + clamp(28px, 3.5vw, 56px)); }
