/*
  UORealms Wiki (uorealms.com/wiki), the approved mockup of 7 Oct 2026. The wiki's own file: its own copy of the site's
  fonts and colours, so nothing else on the site can change or break it. Phones: everything stacks to one column.
*/

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("fonts/fraunces-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; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("fonts/fraunces-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: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/source-sans-3-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; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/source-sans-3-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; }

:root {
  color-scheme: dark;
  --ink: #f3ead2;
  --text: #d6dcf0;
  --muted: #a5aecb;
  --gold: #e3c56a;
  --gold-deep: #c8a84b;
  --line: rgba(255, 236, 190, .12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--text); overflow-x: hidden;
  background: radial-gradient(1200px 700px at 75% -10%, #23164a 0%, transparent 60%), radial-gradient(900px 600px at -10% 30%, #142a4a 0%, transparent 55%), #0a0f24; }
html.shell-embedded, html.shell-embedded body { background: transparent; min-height: 0; }
a { color: var(--gold); }
a:hover { color: #f3dd95; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; padding: 10px 14px; border-radius: 8px; background: var(--gold); color: #1d1404; z-index: 10; }
.skip-link:focus { left: 8px; }

.page { max-width: 1180px; margin: 0 auto; padding: 28px 24px 80px; }
html.shell-embedded .page { padding-bottom: 40px; }
.glass { background: linear-gradient(180deg, rgba(28,36,72,.55), rgba(14,19,44,.6)); border: 1px solid rgba(255,236,190,.12); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,244,214,.05); backdrop-filter: blur(10px); }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }
.crumbs .here { color: var(--text); }
.small-muted { font-size: 13px; color: var(--muted); }
.label { margin: 30px 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.empty { padding: 22px 24px; color: var(--muted); }
.empty p { margin: 0; }
.missing { text-align: center; padding: 40px 24px; }
.missing h1 { margin: 0 0 8px; font: 800 32px var(--serif); color: var(--ink); }
.missing p { margin: 0 0 18px; }
.missing .search { margin: 0 auto 18px; }
.problem { margin: 0; color: #ffd1c9; font-size: 14.5px; }

/* wiki home */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: end; gap: 10px; padding: 0 0 0 40px; min-height: 340px;
  background: radial-gradient(420px 300px at 76% 62%, rgba(255,176,82,.22), transparent 70%), radial-gradient(700px 260px at 70% 108%, rgba(227,197,106,.12), transparent 70%), linear-gradient(180deg, rgba(28,36,72,.6), rgba(14,19,44,.7)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: linear-gradient(180deg, transparent, rgba(4,6,16,.55)); pointer-events: none; }
.hero-text { position: relative; z-index: 2; align-self: center; padding: 38px 0 40px; }
.hero h1 { margin: 0 0 20px; font: 800 44px/1.05 var(--serif); color: var(--ink); text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero .search { margin: 0; max-width: 560px; }
.hero .audience { display: flex; width: max-content; margin: 16px 0 0; }
.hero-art { position: relative; z-index: 1; align-self: end; margin: 0 -6px -6px 0; }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(0,0,0,.55)); }
.search { display: flex; max-width: 640px; margin: 0 auto; gap: 8px; }
.search.wide { max-width: none; margin: 0 0 16px; }
.search input { flex: 1; min-width: 0; padding: 12px 15px; border-radius: 12px; border: 1px solid rgba(255,236,190,.22); background: rgba(5,8,20,.75); color: var(--ink); font-size: 16px; }
.search input:focus { border-color: rgba(227,197,106,.6); outline: none; }
.search button { padding: 0 16px; border-radius: 11px; border: 0; background: linear-gradient(180deg, #f0d27a, #c8a84b); color: #1d1404; font: 700 14px var(--sans); cursor: pointer; }
.search button:hover { filter: brightness(1.06); }
.audience { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.audience a { padding: 7px 16px; border-radius: 9px; color: var(--muted); font: 600 14px var(--sans); text-decoration: none; }
.audience a:hover { color: var(--ink); }
.audience a.on { background: rgba(227,197,106,.14); color: var(--ink); }
.start { margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.start a { display: block; padding: 18px 20px; text-decoration: none; color: var(--text); }
.start a b { display: block; font: 700 18px var(--serif); color: var(--gold); margin-bottom: 4px; }
.start a span { font-size: 14px; color: var(--muted); }
.start a:hover { border-color: rgba(227,197,106,.5); background: linear-gradient(180deg, rgba(40,46,84,.6), rgba(20,24,52,.65)); }
.start a:hover b { color: #f3dd95; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat { padding: 18px 20px; min-width: 0; }
.cat h3 { margin: 0 0 2px; font: 700 19px var(--serif); color: var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.cat h3 a { color: var(--ink); text-decoration: none; }
.cat h3 a:hover { color: var(--gold); }
.cat h3 small { font: 600 12.5px var(--sans); color: var(--muted); }
.cat p { margin: 0; font-size: 13.5px; color: var(--muted); }
/* a soft line between a card's heading and its list (Jason, 7 Oct 2026) */
.cat ol { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 9px; font-size: 14.5px; counter-reset: n; }
.cat ol li { counter-increment: n; display: flex; gap: 8px; }
.cat ol li::before { content: counter(n); min-width: 18px; color: rgba(227,197,106,.7); font: 700 13px var(--serif); padding-top: 1px; }
/* links look like links: gold, underlined on hover (Jason, 7 Oct 2026) */
.cat ol a { color: var(--gold); text-decoration: none; }
.cat ol a:hover { color: #f3dd95; text-decoration: underline; text-underline-offset: 3px; }
.cat .more { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.cat .more:hover { color: var(--gold); }
/* Trending this week, Most helpful and Recently updated side by side, stacked on phones */
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 16px; align-items: start; }
.list-col { min-width: 0; }
.recent { padding: 6px 10px; }
.recent ul { list-style: none; margin: 0; padding: 0; }
.recent li { border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
.recent li a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; font-size: 14.5px; color: var(--gold); text-decoration: none; }
.recent li a b { flex: 1; min-width: 0; font-weight: 600; }
.recent li a:hover { background: rgba(227,197,106,.08); color: #f3dd95; }
.recent li a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.recent li a span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.recent li a i { font-style: normal; color: rgba(227,197,106,.7); font-size: 18px; line-height: 1; }

/* a section */
.section-head { padding: 26px 30px; margin-bottom: 16px; }
.section-head h1 { margin: 0; font: 800 34px/1.15 var(--serif); color: var(--ink); }
.section-head .lead { margin: 8px 0 0; font-size: 17px; color: #e4e0cf; max-width: 64ch; }
.section-pages { padding: 8px 24px; }
.section-pages ol { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.section-pages li { counter-increment: n; display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line); }
.section-pages li:last-child { border-bottom: 0; }
.section-pages li::before { content: counter(n); color: rgba(227,197,106,.7); font: 700 15px var(--serif); padding-top: 2px; grid-row: span 2; }
.section-pages a { font: 700 18px var(--serif); color: var(--gold); text-decoration: none; }
.section-pages a:hover { color: #f3dd95; text-decoration: underline; text-underline-offset: 3px; }
.section-pages span { font-size: 14.5px; color: var(--muted); }

/* a page */
.art { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.toc { position: sticky; top: 64px; padding: 16px 18px; font-size: 14px; }
html.shell-embedded .toc { position: static; }
.toc h2 { margin: 0 0 10px; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on { font-weight: 600; }
.toc .back { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; }
.toc ol + .back { margin-top: 16px; }
.toc h2 + .back, .toc > .back:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc { padding: 34px 44px 30px; min-width: 0; }
.doc .meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.edit-link { float: right; margin-left: 12px; color: var(--muted); font-size: 12.5px; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.edit-link:hover { color: var(--gold); border-color: rgba(227,197,106,.5); }
.doc h1 { margin: 0 0 8px; font: 800 34px/1.15 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.doc .lead { margin: 0 0 22px; font-size: 18px; line-height: 1.55; color: #e4e0cf; }
.body h2 { margin: 30px 0 10px; font: 700 23px/1.25 var(--serif); color: var(--ink); scroll-margin-top: 80px; }
.body h3 { margin: 22px 0 8px; font: 700 18.5px/1.3 var(--serif); color: var(--ink); scroll-margin-top: 80px; }
.body p, .body li { font-size: 16.5px; line-height: 1.7; overflow-wrap: break-word; }
.body p { margin: 0 0 14px; }
.body ol, .body ul { padding-left: 22px; margin: 0 0 14px; }
.body li { margin-bottom: 6px; }
.body li > ol, .body li > ul { margin: 6px 0 0; }
.body strong { color: var(--ink); }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.body figure { margin: 18px 0; }
.body figure img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
/* very bright pictures (white backgrounds from the old Paths of Virtue wiki) are softened so they don't glare on our
   dark pages; full brightness comes back when you point at one (Jason, 7 Oct 2026). wiki.js measures each picture. */
.body img.bright { filter: brightness(.74) contrast(.96); transition: filter .2s ease; }
.body img.bright:hover { filter: none; }
.body img.inline { max-height: 1.6em; vertical-align: middle; }
.body .table { margin: 16px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.body th { text-align: left; padding: 9px 12px; background: rgba(227,197,106,.08); color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.body td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.body tr:last-child td { border-bottom: 0; }
.callout { margin: 18px 0; padding: 14px 16px 14px 18px; border-radius: 12px; border-left: 3px solid var(--gold); background: rgba(227,197,106,.07); font-size: 15.5px; line-height: 1.6; }
.callout strong { color: var(--gold); }
.kbd { padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(255,236,190,.25); background: rgba(0,0,0,.3); font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--ink); }
/* quote boxes ({quote=Name} in WikiText), like XenForo's: "Name said:" over the quoted lines */
.quote { margin: 18px 0; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; background: rgba(5,8,20,.35); overflow: hidden; }
.quote-by { padding: 8px 14px; background: rgba(227,197,106,.07); color: var(--gold); font-size: 14px; font-weight: 700; }
.quote-text { padding: 10px 14px 2px; }
.credit { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); font-style: italic; }
/* colours, sizes and indents in a page's text (Jason, 20 Oct 2026; WikiText): the old XenForo editor's colours, its seven
   sizes (4 is normal) and 20px indent steps */
.tc-61bd6d, .tc-61bd6d strong { color: #61bd6d; }
.tc-1abc9c, .tc-1abc9c strong { color: #1abc9c; }
.tc-54acd2, .tc-54acd2 strong { color: #54acd2; }
.tc-2c82c9, .tc-2c82c9 strong { color: #2c82c9; }
.tc-9365b8, .tc-9365b8 strong { color: #9365b8; }
.tc-475577, .tc-475577 strong { color: #475577; }
.tc-cccccc, .tc-cccccc strong { color: #cccccc; }
.tc-41a85f, .tc-41a85f strong { color: #41a85f; }
.tc-00a885, .tc-00a885 strong { color: #00a885; }
.tc-3d8eb9, .tc-3d8eb9 strong { color: #3d8eb9; }
.tc-2969b0, .tc-2969b0 strong { color: #2969b0; }
.tc-553982, .tc-553982 strong { color: #553982; }
.tc-28324e, .tc-28324e strong { color: #28324e; }
.tc-000000, .tc-000000 strong { color: #000000; }
.tc-f7da64, .tc-f7da64 strong { color: #f7da64; }
.tc-fba026, .tc-fba026 strong { color: #fba026; }
.tc-eb6b56, .tc-eb6b56 strong { color: #eb6b56; }
.tc-e25041, .tc-e25041 strong { color: #e25041; }
.tc-a38f84, .tc-a38f84 strong { color: #a38f84; }
.tc-efefef, .tc-efefef strong { color: #efefef; }
.tc-ffffff, .tc-ffffff strong { color: #ffffff; }
.tc-fac51c, .tc-fac51c strong { color: #fac51c; }
.tc-f37934, .tc-f37934 strong { color: #f37934; }
.tc-d14841, .tc-d14841 strong { color: #d14841; }
.tc-b8312f, .tc-b8312f strong { color: #b8312f; }
.tc-7c706b, .tc-7c706b strong { color: #7c706b; }
.tc-d1d5d8, .tc-d1d5d8 strong { color: #d1d5d8; }
.ts-1 { font-size: .6em; }
.ts-2 { font-size: .667em; }
.ts-3 { font-size: .8em; }
.ts-4 { font-size: 1em; }
.ts-5 { font-size: 1.2em; }
.ts-6 { font-size: 1.467em; }
.ts-7 { font-size: 1.733em; }
.ti-1 { margin-left: 20px; }
.ti-2 { margin-left: 40px; }
.ti-3 { margin-left: 60px; }
.ti-4 { margin-left: 80px; }
.ti-5 { margin-left: 100px; }
/* page prefixes (Jason, 20 Oct 2026; 21 Oct: the site's own prefix colours and shape, the same look as the forums' prefixes) */
.wpx { display: inline-flex; align-items: center; vertical-align: 1px; margin-right: 4px; padding: 0 7px; border-radius: 6px; border: 1px solid transparent; font: 700 12px/1.6 var(--sans); white-space: nowrap; text-decoration: none; }
.wpx-green { color: #b9f5cf; background: rgba(89, 212, 142, .14); border-color: rgba(134, 239, 172, .3); }
.wpx-lightgreen { color: #d6f8b4; background: rgba(150, 220, 100, .14); border-color: rgba(180, 235, 140, .3); }
.wpx-olive { color: #e3e8a8; background: rgba(170, 180, 80, .16); border-color: rgba(200, 210, 110, .32); }
.wpx-red { color: #ffc4b8; background: rgba(255, 120, 100, .14); border-color: rgba(255, 180, 168, .32); }
.wpx-orange { color: #ffd9a3; background: rgba(240, 160, 70, .16); border-color: rgba(240, 180, 90, .32); }
.wpx-yellow { color: #fff1a6; background: rgba(245, 215, 60, .14); border-color: rgba(245, 225, 110, .32); }
.wpx-blue { color: #bfe0fa; background: rgba(80, 150, 230, .16); border-color: rgba(143, 200, 242, .32); }
.wpx-skyblue { color: #c8f0ff; background: rgba(110, 200, 240, .14); border-color: rgba(150, 215, 245, .3); }
.wpx-royalblue { color: #cdd3ff; background: rgba(65, 105, 225, .24); border-color: rgba(130, 150, 240, .38); }
.wpx-gray { color: var(--muted); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.wpx-silver { color: #e6e9f2; background: rgba(220, 225, 240, .12); border-color: rgba(220, 225, 240, .28); }
/* the forums' LIVE look (XenForo's label--doneStatus), the wiki's own copy */
.wpx-emerald { color: #fff; background: #00b894; border-color: #00b894; position: relative; overflow: hidden; }
.wpx-emerald::after { content: ""; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%; background: rgba(255, 255, 255, .4); transform: rotate(30deg); animation: wpx-shimmer 3s infinite; }
@keyframes wpx-shimmer { 0% { left: -60%; } 20% { left: 120%; } 100% { left: 120%; } }
.doc h1 .wpx { font-size: 15px; padding: 3px 9px; }

/* moving on without scrolling back up (Jason, 7 Oct 2026): Previous and Next, the section, home, search */
.pagenav { margin: 30px 0 34px; display: grid; gap: 20px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn { display: grid; gap: 4px; padding: 18px 22px; text-decoration: none; min-width: 0; }
.pn.next { text-align: right; grid-column: 2; }
.pn small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pn b { font: 700 17px/1.3 var(--serif); color: var(--gold); overflow-wrap: anywhere; }
.pn:hover { border-color: rgba(227,197,106,.5); }
.pn:hover b { color: #f3dd95; text-decoration: underline; text-underline-offset: 3px; }
.uprow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upbtn { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(255,236,190,.2); background: rgba(255,255,255,.04); color: var(--text); font: 600 14px var(--sans); text-decoration: none; }
.upbtn:hover { border-color: rgba(227,197,106,.55); color: var(--ink); }
.search.mini { margin: 0 0 0 auto; max-width: 320px; flex: 1 1 220px; }
.search.mini input { padding: 9px 12px; font-size: 14.5px; border-radius: 10px; }
.search.mini button { padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.toc-pn { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.toc-pn a { display: grid; color: var(--gold); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.toc-pn a small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc-pn a:hover { color: #f3dd95; }
.totop { display: block; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.totop:hover { color: var(--ink); }
.fab, .fab-panel { display: none; }
@media (max-width: 900px) {
  .toc .toc-pn, .toc .totop { display: none; }
  .fab { position: absolute; top: 0; right: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 12px; border: 1px solid rgba(227,197,106,.55); background: rgba(14,19,44,.94); color: var(--ink); font: 700 14.5px var(--sans); box-shadow: 0 10px 26px rgba(0,0,0,.5); cursor: pointer; }
  .fab[aria-expanded="true"] { background: rgba(227,197,106,.16); }
  .fab-panel { position: absolute; top: 0; right: 16px; left: 16px; z-index: 19; display: grid; gap: 10px; max-width: 420px; margin-left: auto; padding: 16px 18px; background: rgba(14,19,44,.97); max-height: 70vh; overflow: auto; }
  .fab-panel[hidden] { display: none !important; }
  .fab-h { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .fab-panel ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
  .fab-panel ol a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; font-size: 15px; }
  .fab-links { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
  .fab-links a { display: grid; padding: 6px 0; color: var(--gold); text-decoration: none; font-size: 15px; }
  .fab-links a small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .totop.wide { margin: 0; padding: 10px; border: 1px solid rgba(255,236,190,.2); border-radius: 10px; background: rgba(255,255,255,.04); color: var(--text); font-size: 14.5px; }
}
@media (max-width: 560px) {
  .prevnext { grid-template-columns: 1fr; }
  .pn.next { grid-column: auto; }
  .prevnext > span:empty { display: none; }
  .search.mini { margin: 0; max-width: none; flex-basis: 100%; }
}

/* was this page helpful */
.helpful { margin-top: 30px; padding: 18px 20px; display: grid; gap: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.helpful .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.helpful .q { font: 700 17px var(--serif); color: var(--ink); margin-right: 6px; }
.thumb { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid rgba(255,236,190,.2); background: rgba(255,255,255,.04); color: var(--text); font: 600 15px var(--sans); cursor: pointer; }
.thumb svg { width: 18px; height: 18px; }
.thumb:hover { border-color: rgba(227,197,106,.55); }
.thumb.on { border-color: var(--gold); background: rgba(227,197,106,.12); color: var(--ink); }
.thumb:disabled { opacity: .6; cursor: default; }
.why { display: grid; gap: 10px; }
.why .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.why .opts label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,236,190,.16); background: rgba(255,255,255,.03); font-size: 14.5px; cursor: pointer; }
.why .opts input { accent-color: #e3c56a; }
.why textarea, .comments textarea { width: 100%; min-height: 80px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,236,190,.2); background: rgba(5,8,20,.7); color: var(--ink); font-size: 15px; resize: vertical; }
.thanks { margin: 0; color: #cfe6c0; font-size: 15px; }

/* comments */
.comments { margin-top: 0; padding: 22px 24px; }
.comments h2 { margin: 0 0 4px; font: 700 20px var(--serif); color: var(--ink); }
.comments .intro { margin: 0 0 6px; }
.comment { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--serif); font-style: normal; color: #10142a; }
.comment i.c0 { background: linear-gradient(135deg, #2d6a9f, #86efac); }
.comment i.c1 { background: linear-gradient(135deg, #a8553f, #e3c56a); }
.comment i.c2 { background: linear-gradient(135deg, #7c3fa8, #e3c56a); }
.comment i.c3 { background: linear-gradient(135deg, #3f7fa8, #b8a6f5); }
.comment i.c4 { background: linear-gradient(135deg, #5a8f3f, #f0d27a); }
.comment i.c5 { background: linear-gradient(135deg, #a83f6b, #f5b8a6); }
.comment .who { font-size: 14px; color: var(--muted); }
.comment .who b { color: var(--ink); margin-right: 6px; }
.comment p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.comment .quote { margin: 8px 0; }
.comment .quote-text p { margin: 0 0 8px; }
.comment .staff { font-size: 11.5px; font-weight: 700; color: #1d1404; background: var(--gold); border-radius: 5px; padding: 1px 6px; margin: 0 6px 0 0; }
.comment.mine { opacity: .85; }
.comment-form { display: grid; gap: 10px; margin-top: 14px; }
.comment-form .row { display: flex; align-items: center; gap: 12px; }
.btn-gold { padding: 10px 18px; border-radius: 10px; border: 0; background: linear-gradient(180deg, #f0d27a, #c8a84b); color: #1d1404; font: 700 15px var(--sans); cursor: pointer; }
.btn-gold:disabled { opacity: .6; cursor: default; }
.pending { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(134,239,172,.07); border: 1px solid rgba(134,239,172,.3); color: #cfe6c0; font-size: 14.5px; }

/* search */
.count { margin: 0 0 10px; }
.count b { color: var(--ink); }
.results { padding: 8px 24px; }
.result { padding: 16px 0; border-bottom: 1px solid var(--line); }
.result:last-child { border-bottom: 0; }
.result a { font: 700 19px var(--serif); color: var(--gold); text-decoration: none; }
.result a:hover { color: #f3dd95; text-decoration: underline; text-underline-offset: 3px; }
.result .where { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.result p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.result mark { background: rgba(227,197,106,.25); color: var(--ink); border-radius: 3px; padding: 0 2px; }

/* tablets and phones: one column, nothing wider than the screen */
@media (max-width: 900px) {
  .page { padding: 20px 16px 60px; }
  .hero { grid-template-columns: 1fr; padding: 0 20px; text-align: center; min-height: 0; }
  .hero-art { order: -1; max-width: 420px; margin: 18px auto -4px; }
  .hero-text { padding: 6px 0 30px; }
  .hero .search { margin: 0 auto; }
  .hero .audience { margin: 16px auto 0; }
  .hero h1 { font-size: 36px; }
  .art, .cats, .start { grid-template-columns: 1fr; }
  .toc { position: static; }
  .doc { padding: 24px 20px; }
  .section-head { padding: 22px 20px; }
}
@media (max-width: 520px) {
  .hero h1, .doc h1, .section-head h1 { font-size: 29px; }
  .search button { padding: 0 13px; }
  .comments { padding: 18px 16px; }
  .helpful { padding: 16px; }
  .results, .section-pages { padding: 4px 16px; }
}
