/* ==========================================================================
   URSY.com pages facelift (1 Dec 2026, pages builder; goes with URSY Core 1.9.28 module pagelook)
   The wiki (hub, topics, entries), the hub and core pages (/ai/ and its pages, facts, sitemap, changelog, citations,
   truth spine, Under the Hood), news, guides, compare, pricing. LOOK ONLY: no words, no content hidden or folded.
   URSY's own brand: URSY blue, navy ink, Manrope, the measuring scale. Theme tokens only (--accent, --ink, --line ...).
   Include AFTER style.css (see ../BUILD-NOTES.md, "For the theme builder"). ROUND 1 = wiki + /ai/ + the core page frame.
   ========================================================================== */

/* Sections 1 to 4 apply on the wiki and core pages only in round 1 (the body classes uf-wiki-* and <main class="uf-core"> come from Core 1.9.28).
   1. Headings: the "#" section link is a quiet mark, not a big underlined blue sign */
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ursy-anchor {
	display: inline-block; margin-left: .3em; padding: 0 .15em; border-radius: 4px;
	color: var(--muted, #4d5a70) !important; font-size: .6em; font-weight: 600; line-height: 1;
	vertical-align: .32em; text-decoration: none !important; opacity: 1;
}
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ursy-anchor:hover, :is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ursy-anchor:focus-visible { color: var(--accent, #0b4fd1) !important; background: var(--tint, #eef3fe); }

/* 2. The words: calmer links, a clear rhythm, main headings start on a hairline with the scale */
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose { font-size: 17.5px; line-height: 1.72; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose a { text-decoration-color: rgba(11, 79, 209, .28); }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose h2 { position: relative; margin-top: 2.3em; padding-top: 22px; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 9px; background: var(--scale); background-size: 120px 9px, 120px 5px; background-position: left top, left top; opacity: .9; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose > h2:first-child, :is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .uf-chips + h2, :is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose aside h2, :is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ursy-citebox h2 { margin-top: 0; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose aside h2::before, :is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ursy-evidence h2::before { display: none; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose li { margin: .5em 0; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose ul > li::marker { content: "\2013  "; color: var(--accent, #0b4fd1); font-weight: 700; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose blockquote { padding: 14px 20px; border-left: 3px solid var(--accent, #0b4fd1); border-radius: 0 10px 10px 0; background: var(--tint-2, #f3f6fc); }

/* 3. Title band: the line under the title reads as a lead */
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-phero__h1 { font-weight: 750; letter-spacing: -0.035em; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-phero__lead { max-width: 720px; color: var(--ink-2, #26324a); }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-crumb a:last-child { color: var(--ink-2, #26324a); }

/* 4. Wide tables: fit the reading column without towering cells */
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ua-table table { font-size: 15px; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ua-table th, :is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ua-table td { padding: 11px 14px; }
:is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ua-table tbody td:first-child { font-weight: 600; color: var(--ink, #0e1a33); }
@media (min-width: 900px) { :is(.uf-wiki-hub, .uf-wiki-topics, .uf-wiki-topic, .uf-wiki-entry, .uf-core) .ua-prose .ua-table table:has(thead th:nth-child(5)) { font-size: 14.5px; } }

/* ==========================================================================
   5. The wiki hub (/wiki/): find box, chips, strip, letters, topic cards, the A to Z as a dictionary
   ========================================================================== */
.uf-wiki-hub .uw-find input { border-color: var(--line-strong, #c8d0dc); border-radius: 12px; box-shadow: 0 18px 36px -26px rgba(11, 79, 209, .45);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4fd1' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E"); }
.uf-wiki-hub .uw-find input:focus { border-color: var(--accent, #0b4fd1); box-shadow: 0 0 0 3px var(--glow, rgba(11, 79, 209, .16)); }
.uf-wiki-hub .uw-chips a { border: 1px solid var(--line-strong, #c8d0dc); background: #fff; color: var(--ink, #0e1a33); }
.uf-wiki-hub .uw-chips a:hover { border-color: var(--accent, #0b4fd1); background: var(--tint, #eef3fe); color: var(--accent-ink, #0a3fa8); }
.uf-wiki-hub .uw-doors h2 { font-size: 20px; }
.uf-wiki-hub .uw-doors ul { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* the jump bar: one slim row of letter keys that stays under the header while you read the topics and the A to Z */
.uf-wiki-hub .ua-prose > p:nth-of-type(2) { position: sticky; top: calc(var(--hd-h, 68px) + 8px); z-index: 5; max-width: none; flex-wrap: nowrap; gap: 5px; overflow-x: auto; padding: 8px 10px; border: 1px solid var(--line, #e3e8ef); border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 28px -22px rgba(14, 26, 51, .45); scrollbar-width: thin; }
.uf-wiki-hub .ua-prose > p:nth-of-type(2) strong { flex: none; white-space: nowrap; }
.uf-wiki-hub .ua-prose > p:nth-of-type(2) a, .uf-wiki-hub .ua-prose > p:nth-of-type(2) span { flex: none; min-width: 34px; height: 34px; border-radius: 8px; }
.uf-wiki-hub .ua-prose > p:nth-of-type(2) a { border: 1px solid var(--line, #e3e8ef); background: var(--bg, #f6f8fb); color: var(--ink, #0e1a33); box-shadow: none; }
.uf-wiki-hub .ua-prose > p:nth-of-type(2) a:hover { border-color: var(--accent, #0b4fd1); background: var(--accent, #0b4fd1); color: #fff; }
.uf-wiki-hub .ua-prose > p:nth-of-type(2) span { color: #8a94a6; }   /* an empty letter: 3.4:1 is enough for a disabled key, it is not text to read */

/* topic cards: one shape whatever the words bring (a linked title, or a bold title for a topic still being written) */
.uf-wiki-hub .ua-prose h2#topics + ul > li { border-color: var(--line, #e3e8ef); background: #fff; box-shadow: 0 1px 2px rgba(14, 26, 51, .04), 0 18px 36px -30px rgba(11, 79, 209, .35); }
.uf-wiki-hub .ua-prose h2#topics + ul > li > a:first-child,
.uf-wiki-hub .ua-prose h2#topics + ul > li > strong:first-child { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 700; color: var(--ink, #0e1a33); text-decoration: none; }
.uf-wiki-hub .ua-prose h2#topics + ul > li > a:first-child:hover { color: var(--accent, #0b4fd1); }
.uf-wiki-hub .ua-prose h2#topics + ul > li a:not(:first-child) { font-weight: 550; }

/* the letters: blue keys on the scale */
.uf-wiki-hub .ua-prose h3[id^="letter-"] { display: flex; align-items: center; gap: 14px; width: 100%; height: auto; min-width: 0; margin: 40px 0 12px; padding: 0 0 10px; border-radius: 0;
	background: var(--scale); background-size: 100% 9px, 100% 5px; background-position: left bottom; color: var(--ink, #0e1a33); box-shadow: none; font-size: 26px; letter-spacing: -0.02em; }
.uf-wiki-hub .ua-prose h3[id^="letter-"]::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--accent, #0b4fd1); }

/* the A to Z: a dictionary, three columns on wide screens, the word strong, the line under it quieter */
.uf-wiki-hub .ua-prose h3[id^="letter-"] + ul { list-style: none; padding: 0; columns: 1; column-gap: 40px; }
@media (min-width: 720px) { .uf-wiki-hub .ua-prose h3[id^="letter-"] + ul { columns: 2; } }
@media (min-width: 1100px) { .uf-wiki-hub .ua-prose h3[id^="letter-"] + ul { columns: 3; } }
.uf-wiki-hub .ua-prose h3[id^="letter-"] + ul > li { break-inside: avoid; margin: 0; padding: 10px 0 12px; border-bottom: 1px solid var(--line, #e3e8ef); font-size: 14.5px; line-height: 1.5; color: var(--muted, #4d5a70); }
.uf-wiki-hub .ua-prose h3[id^="letter-"] + ul > li::marker { content: none; }
.uf-wiki-hub .ua-prose h3[id^="letter-"] + ul > li > a:first-child { font-size: 16px; font-weight: 700; color: var(--ink, #0e1a33); text-decoration: none; }
.uf-wiki-hub .ua-prose h3[id^="letter-"] + ul > li > a:first-child:hover { color: var(--accent, #0b4fd1); }

/* ==========================================================================
   6. Wiki entries and topic pages
   ========================================================================== */
.uf-wiki-entry .ua-prose > p:first-child, .uf-wiki-topic .ua-prose > p:first-child, .uf-wiki-topics .ua-prose > p:first-child {
	padding: 20px 24px; border: 0; border-left: 4px solid var(--accent, #0b4fd1); border-radius: 4px 14px 14px 4px; background: var(--tint, #eef3fe); color: var(--ink, #0e1a33); }
.uf-wiki-entry .ua-prose > p:first-child + .uf-facts { margin-top: -6px; }
.uf-wiki-entry .ua-prose pre { border-radius: 12px; background: #0e1a33; color: #e8eefc; border-color: #0e1a33; }
.uf-wiki-entry .ua-prose pre code { color: inherit; }
/* topic page: every word as a card in a grid (the list is the page's own) */
.uf-wiki-topic .ua-prose > h2 + ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.uf-wiki-topic .ua-prose > h2 + ul > li { margin: 0; padding: 16px 18px; border: 1px solid var(--line, #e3e8ef); border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.5; color: var(--muted, #4d5a70); }
.uf-wiki-topic .ua-prose > h2 + ul > li::marker { content: none; }
.uf-wiki-topic .ua-prose > h2 + ul > li > a:first-child { font-size: 17px; font-weight: 700; color: var(--ink, #0e1a33); text-decoration: none; }
.uf-wiki-topic .ua-prose > h2 + ul > li > a:first-child:hover { color: var(--accent, #0b4fd1); }

/* ==========================================================================
   7. Core pages (/ai/ and the other pages URSY Core draws), the citations page
   ========================================================================== */
.uf-core .ua-paper--toc { grid-template-columns: minmax(0, var(--read, 720px)) 240px; }
.uf-core .ua-prose > p:first-child strong:only-child { font-size: 1.08em; }
.uf-core .ursy-ai-doors { margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--line, #e3e8ef); border-radius: 14px; background: var(--tint-2, #f3f6fc); }
.uf-core .ursy-ai-door-machine { margin: 0; }
.uf-core--sitemap .ua-paper__body ul { columns: 2; column-gap: 40px; padding-left: 1.1em; }
.uf-core--sitemap .ua-paper__body ul > li { break-inside: avoid; margin: .25em 0; font-size: 15.5px; }
@media (max-width: 640px) { .uf-core--sitemap .ua-paper__body ul { columns: 1; } }
.uf-core--changelog .ua-prose h2 + p, .uf-core--changelog .ua-prose h3 + p { color: var(--ink-2, #26324a); }

@media print { .ua-prose h2::before, .uf-chips { display: none; } }

/* 3.0.1 (1 Dec 2026): the header menu has 7 links now (+ URSY Analytics, + AI Hub). Between the phone menu (860 px and below)
   and wide screens, tighten the links so they stay on one row next to the logo and the button. Look only. */
@media (min-width: 861px) and (max-width: 1140px) {
	.ua-nav { gap: 0; font-size: 14px; }
	.ua-nav a { padding: 0 7px; }
	.ua-nav a.is-on::after { left: 7px; right: 7px; }
}
