/* Nova page tweaks. Loaded on every page from functions.php.
   VERSION 1.8.2 (keep in step with NOVA_PAGES_CSS_VER in functions.php; bump both on every change)
   1.0.0  2026-11-28  fixed Mars background
   1.1.0  2026-11-28  header menu font + icons (desktop)
   1.2.0  2026-11-28  phone menu icons
   1.3.0  2026-11-28  paper texture repeats at half size on every page
   1.4.0  2026-11-28  home hero uses the page background
   1.5.0  2026-11-28  page titles: distressed mask + navy glow
   1.6.0  2026-11-28  page titles: subtler distress, navy outline (after "Choose your kit"); VIP Store menu font-size selector fixed
   1.7.0  2026-11-28  buttons and subtitles in the VIP store style
   1.8.0  2026-11-28  leaderboard status pills and player search in the VIP style
   1.8.1  2026-11-28  FIX: 1.7.0/1.8.0 changelog lines sat outside this comment, which broke the fixed-background rule
   1.8.2  2026-11-28  Leaderboard: hide the old rankeval loader and its broken logo
   (rule for editors: changelog lines go ABOVE the closing star-slash of this comment) */

/* Fixed Mars background, like vip.projectnova.gg: the picture stays put and fills the screen while the
   page scrolls over it. The page designs (.nv, and .kc on Monuments) set it as a scrolling background
   sized to the page width, which cut it off at the bottom. A fixed layer clipped to the wrapper works
   on phones too, where background-attachment:fixed is ignored. */
.nv,.kc{position:relative;isolation:isolate;clip-path:inset(0);background-image:none!important}
.nv::before,.kc::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
	background:#183348 url(https://www.projectnova.gg/wp-content/uploads/2026/11/nova-sky-bg.webp) center bottom/cover no-repeat}

/* Header menu in the footer's style (Tom, 2026-11-28): Rajdhani bold, uppercase, red Font Awesome icons.
   Icons are keyed to the menu item IDs of the "Primary" menu (Appearance > Menus). */
#top #header .av-main-nav > li > a .avia-menu-text,
#top #av-burger-menu-ul li > a .avia-menu-text{font-family:'Rajdhani',sans-serif!important;font-weight:700!important;font-size:16px;letter-spacing:.02em;text-transform:uppercase}
#top #header .av-main-nav > li[id$="menu-item-16"] > a .avia-menu-text{font-size:17px}
#top li[id$="menu-item-20"] > a .avia-menu-text:before,#top li[id$="menu-item-1583"] > a .avia-menu-text:before,#top li[id$="menu-item-896"] > a .avia-menu-text:before,
#top li[id$="menu-item-597"] > a .avia-menu-text:before,#top li[id$="menu-item-637"] > a .avia-menu-text:before,#top li[id$="menu-item-818"] > a .avia-menu-text:before,
#top li[id$="menu-item-638"] > a .avia-menu-text:before,#top li[id$="menu-item-801"] > a .avia-menu-text:before,#top li[id$="menu-item-16"] > a .avia-menu-text:before{
	font-family:"Font Awesome 6 Free";font-weight:900;display:inline-block;margin-right:6px;color:#d14a3c;font-size:.9em;line-height:1;
	-webkit-font-smoothing:antialiased;font-style:normal;font-variant:normal;text-rendering:auto}
#top li[id$="menu-item-20"] > a .avia-menu-text:before{content:"\f233"}   /* servers */
#top li[id$="menu-item-1583"] > a .avia-menu-text:before{content:"\f091"} /* leaderboard: trophy */
#top li[id$="menu-item-896"] > a .avia-menu-text:before{content:"\f5a0"}  /* monuments: map-location-dot */
#top li[id$="menu-item-597"] > a .avia-menu-text:before{content:"\f059"}  /* faq: circle-question */
#top li[id$="menu-item-637"] > a .avia-menu-text:before{content:"\f24e"}  /* rules: scale-balanced */
#top li[id$="menu-item-818"] > a .avia-menu-text:before{content:"\f06b"}  /* free perks: gift */
#top li[id$="menu-item-638"] > a .avia-menu-text:before{content:"\f234"}  /* apply: user-plus */
#top li[id$="menu-item-801"] > a .avia-menu-text:before{content:"\f392";font-family:"Font Awesome 6 Brands";font-weight:400} /* discord */
#top li[id$="menu-item-16"] > a .avia-menu-text:before{content:"\f005";color:inherit} /* vip store: star, white on the red button */

/* phone menu: Enfold copies the links without their IDs, so match on the link address */
#top #av-burger-menu-ul a[href*="/servers/"] .avia-menu-text:before,#top #av-burger-menu-ul a[href*="/leaderboard/"] .avia-menu-text:before,#top #av-burger-menu-ul a[href*="/monuments/"] .avia-menu-text:before,#top #av-burger-menu-ul a[href*="/faq/"] .avia-menu-text:before,#top #av-burger-menu-ul a[href*="/rules/"] .avia-menu-text:before,#top #av-burger-menu-ul a[href*="link.projectnova.gg"] .avia-menu-text:before,#top #av-burger-menu-ul a[href*="/join/"] .avia-menu-text:before,#top #av-burger-menu-ul a[href*="discord.gg"] .avia-menu-text:before,#top #av-burger-menu-ul a[href*="vip.projectnova.gg"] .avia-menu-text:before{font-family:"Font Awesome 6 Free";font-weight:900;display:inline-block;margin-right:7px;color:#d14a3c;font-size:.9em;line-height:1;-webkit-font-smoothing:antialiased}
#top #av-burger-menu-ul a[href*="/servers/"] .avia-menu-text:before{content:"\f233"}
#top #av-burger-menu-ul a[href*="/leaderboard/"] .avia-menu-text:before{content:"\f091"}
#top #av-burger-menu-ul a[href*="/monuments/"] .avia-menu-text:before{content:"\f5a0"}
#top #av-burger-menu-ul a[href*="/faq/"] .avia-menu-text:before{content:"\f059"}
#top #av-burger-menu-ul a[href*="/rules/"] .avia-menu-text:before{content:"\f24e"}
#top #av-burger-menu-ul a[href*="link.projectnova.gg"] .avia-menu-text:before{content:"\f06b"}
#top #av-burger-menu-ul a[href*="/join/"] .avia-menu-text:before{content:"\f234"}
#top #av-burger-menu-ul a[href*="discord.gg"] .avia-menu-text:before{content:"\f392";font-family:"Font Awesome 6 Brands";font-weight:400}
#top #av-burger-menu-ul a[href*="vip.projectnova.gg"] .avia-menu-text:before{content:"\f005"}

/* Paper texture as a visible repeating pattern on every page (Tom, 2026-11-28). nova-paper-soft40.webp is 1268x772,
   wider than most folders, so at full size one tile covered the whole sheet. Drawn at half size it repeats and looks
   sharper. A new page element that uses the paper needs adding here. */
.nv-sheet,.nv-doc,.nv-tips,.nv-how .cd,.kc-sheet,.kc-sheets{background-size:634px auto!important;background-repeat:repeat!important}

/* Home page hero: no picture of its own, the fixed page background shows through (Tom, 2026-11-28) */
.nvhm .nv-hero2{background:transparent!important}
.nvhm .nv-hero2:after{display:none!important}
@media (max-width:760px){.nvhm .nv-hero2{padding-top:0!important}}

/* Page titles (h1), after Tom's "Choose your kit" art (Tom, 2026-11-28):
   - navy outline round the cream letters (text-stroke painted behind the fill), then the red offset shadow
   - subtle distressed alpha: soft mottling, a few fine specks, faint scratches (generated noise, no image file)
   - soft navy glow so the titles hold up on the busy background
   Padding keeps the glow inside the masked box; the negative margins cancel the padding. */
#top .nv h1,#top .kc h1{
	-webkit-text-stroke:.12em #183348!important;paint-order:stroke fill!important;
	text-shadow:.07em .07em 0 #d14a3c,.1em .1em 0 rgba(12,27,38,.6),0 0 .25em rgba(24,51,72,.95),0 0 .7em rgba(24,51,72,.75),0 0 1.4em rgba(24,51,72,.5)!important;
	padding:.3em .35em!important;margin-top:-.3em!important;margin-bottom:-.3em!important;margin-left:-.35em;margin-right:-.35em;
	-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.07' numOctaves='3' seed='3' stitchTiles='stitch' result='a'/%3E%3CfeColorMatrix in='a' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.9 0 0 0 0.5' result='A'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' seed='9' stitchTiles='stitch' result='b'/%3E%3CfeColorMatrix in='b' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 4 0 0 0 -0.25' result='B'/%3E%3CfeTurbulence type='turbulence' baseFrequency='0.015 0.11' numOctaves='2' seed='5' stitchTiles='stitch' result='c'/%3E%3CfeColorMatrix in='c' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -2.5 0 0 0 2.3' result='C'/%3E%3CfeComposite in='A' in2='B' operator='arithmetic' k1='1' result='AB'/%3E%3CfeComposite in='AB' in2='C' operator='arithmetic' k1='1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
	mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.07' numOctaves='3' seed='3' stitchTiles='stitch' result='a'/%3E%3CfeColorMatrix in='a' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.9 0 0 0 0.5' result='A'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' seed='9' stitchTiles='stitch' result='b'/%3E%3CfeColorMatrix in='b' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 4 0 0 0 -0.25' result='B'/%3E%3CfeTurbulence type='turbulence' baseFrequency='0.015 0.11' numOctaves='2' seed='5' stitchTiles='stitch' result='c'/%3E%3CfeColorMatrix in='c' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -2.5 0 0 0 2.3' result='C'/%3E%3CfeComposite in='A' in2='B' operator='arithmetic' k1='1' result='AB'/%3E%3CfeComposite in='AB' in2='C' operator='arithmetic' k1='1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
	-webkit-mask-size:420px 420px;mask-size:420px 420px;-webkit-mask-repeat:repeat;mask-repeat:repeat}
#top .nvhm h1{margin-left:-.35em!important}

/* 1.7.0 Buttons in the VIP store's style (Tom, 2026-11-28): Rajdhani bold uppercase in cream, grain texture,
   7px corners, a 5px darker bottom edge that presses down on hover. Variants keep their colours. */
#top .nv .nv-btn{font-family:'Rajdhani',sans-serif!important;font-weight:700!important;font-size:21px!important;line-height:1!important;letter-spacing:-.02em!important;
	text-transform:uppercase;color:#eee1d5!important;background-color:#d14a3c;border:0!important;border-bottom:5px solid #b42015!important;border-radius:7px!important;
	padding:10px 18px 7px!important;filter:none!important;transition:transform .2s,border-bottom-width .2s,margin-bottom .2s}
#top .nv .nv-btn:hover,#top .nv .nv-btn:focus-visible{border-bottom-width:2px!important;transform:translateY(3px);margin-bottom:3px}
#top .nv .nv-btn.alt{background-color:#f1caa4;color:#193247!important;border-bottom-color:#d09665!important}
#top .nv .nv-btn.ghost{background-color:#1c3249;color:#f0d7ad!important;border-bottom-color:#0c1b26!important;box-shadow:inset 0 0 0 1.5px rgba(240,215,173,.35)}
#top .nv .nv-btn.nv-ghost{background:transparent!important;color:#b3261b!important;border:2px solid currentColor!important;border-bottom-width:5px!important}
#top .nv .nv-btn.nv-ghost:hover{border-bottom-width:2px!important}
#top .nvhm .nv-ctas .nv-btn{height:auto!important;min-height:52px;padding:12px 22px 9px!important}

/* 1.7.0 Subtitles under page titles in the VIP store's style: Rajdhani semibold, uppercase, cream, no shadow. */
#top .nv .nv-sub,#top .kc .kc-sub,#top .cf .cf-sub,#top .nvhm .nv-pitch>p{font-family:'Rajdhani',sans-serif!important;font-weight:600!important;font-size:20px!important;
	line-height:1.2!important;letter-spacing:0!important;text-transform:uppercase;color:#f0d7ad!important;text-shadow:none!important}

/* 1.8.0 Leaderboard status pills and player search in the VIP style (Tom, 2026-11-28) */
#top .nv .nv-chip2{font-family:'Rajdhani',sans-serif!important;font-weight:700;font-size:16px;line-height:1;letter-spacing:.01em;text-transform:uppercase;
	color:#eee1d5;background:#1c3249 url(https://www.projectnova.gg/wp-content/uploads/2026/11/nova-grain.webp);border:0;border-bottom:3px solid #0c1b26;
	box-shadow:inset 0 0 0 1.5px rgba(240,215,173,.28);border-radius:7px;padding:9px 13px 7px}
#top .nv .nv-chip2 b{font-weight:700;color:#ffb061}
#top .nv a.nv-chip2.nv-join{color:#193247!important;background-color:#f1caa4;border-bottom:4px solid #d09665;box-shadow:none;transition:transform .2s,border-bottom-width .2s,margin-bottom .2s}
#top .nv a.nv-chip2.nv-join:hover,#top .nv a.nv-chip2.nv-join:focus-visible{background-color:#f1caa4;border-bottom-width:2px;transform:translateY(2px);margin-bottom:2px}
#top .nv .nv-find2>p{margin:0!important;padding:0!important}
#top .nv .nv-find2 input[type=search]{box-sizing:border-box;height:50px!important;margin:0!important;padding:0 16px 0 46px!important;
	font-family:'Rajdhani',sans-serif!important;font-weight:600!important;font-size:18px!important;letter-spacing:.01em;color:#193247!important;
	background:#f4ecdc!important;border:0!important;border-bottom:4px solid #d09665!important;border-radius:7px!important;box-shadow:0 8px 20px rgba(8,18,28,.35)!important;-webkit-appearance:none;appearance:none}
#top .nv .nv-find2 input[type=search]::placeholder{color:rgba(25,50,71,.55);text-transform:uppercase}
#top .nv .nv-find2 input[type=search]:focus{border-bottom-color:#d14a3c!important}
#top .nv .nv-find2 svg{top:14px!important;left:16px!important;width:20px!important;height:20px!important;color:#d14a3c!important;z-index:1;pointer-events:none}

/* 1.8.2 Leaderboard: hide the leftover loader of the old rankeval app (its logo file is missing) */
.nvlb ~ #app,#app:has(> #loading-bg .loading-logo){display:none!important}
