/* Default flat navigation, using the existing option D/E styles. */
html:not([data-nav="old"]) #nav, html:not([data-nav="old"]) #nav-toggle { display: none !important; }
html[data-nav="old"] .fl-row, html[data-nav="a"] .fl-row, html[data-nav="b"] .fl-row, html[data-nav="c"] .fl-row { display: none; }
/* ---------------------------------------------------------------- D and E: the flat menus (js/navflat.js)
   The header is today's, untouched, minus the dropdown bar and its ☰; its header-fitting script still runs (labels, search
   width, the account's initial). Under it, one row of plain words that use today's menu links' own look (.nav-top in
   style.css: Inter 550, #c3c8d4, white on --panel-2 when hovered or current). No serif, no small caps, no icons, no arrows,
   nothing that opens. The header's shadow and gold-tinted rule move to the bottom of the row, so the two read as one header. */
html[data-nav="d"] .topbar, html[data-nav="e"] .topbar { box-shadow: none; border-bottom-color: var(--line); }
/* without the old menu, the search box takes the room it had at any width (as today's header does once the menu is a ☰) */
html:not([data-nav="old"]) .topbar.fl-bar .global-search { width: auto; flex: 1 1 0; min-width: 0; max-width: 720px; }
/* the language link stays on the bar at every width (there is no ☰ to move it into): just the other language when narrow */
html:not([data-nav="old"]) .topbar.fl-bar.hdr-micro > .lang-switch { display: flex; }
.fl-row {
  position: sticky; top: var(--fl-top, 57px); z-index: 999;
  background: rgba(9, 14, 30, .97); border-bottom: 1px solid rgba(240, 195, 90, .16); box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.fl-scroll { display: flex; align-items: center; gap: 2px; padding: 10px 10px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.fl-scroll::-webkit-scrollbar { display: none; }
.fl-w.nav-top { position: relative; flex: none; padding: 6px 10px; }
.fl-w.fl-teal { color: var(--teal); }
.fl-w.fl-teal:hover, .fl-w.fl-teal.active { color: var(--teal); }
.fl-dot { position: absolute; top: 5px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); pointer-events: none; }
.fl-row::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 24px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(9, 14, 30, 0), rgba(9, 14, 30, .97)); transition: opacity .15s; }
.fl-row.fl-more::after { opacity: 1; }
@media (max-width: 719px) {
  .fl-row { position: relative; top: auto; }   /* a phone: only the top bar stays on screen */
  .fl-scroll { padding: 3px 6px; }
  .fl-w.nav-top { padding: 6px 9px; }
  html:not([data-nav="old"]) .topbar.fl-bar > .nav-discord { display: none; }   /* Discord, CurseForge and Wago: on /addons, /all-pages and the footer */
}
/* ---------------------------------------------------------------- 8 Oct 2026 (owner): icons on the words, the row centred,
   each word's pages on hover (js/navflat.js), and a big search box in the middle of the bar on a wide screen */
.fl-scroll > .fl-w:first-child { margin-left: auto; }   /* centred, and still scrolls from its first word when it doesn't fit */
.fl-scroll > .fl-w:last-child { margin-right: auto; }
.fl-w.nav-top { display: inline-flex; align-items: center; gap: 7px; }
.fl-w .nav-ic { width: 20px; height: 20px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.fl-w.open { color: #fff; background: var(--panel-2); }
.fl-menu { position: fixed; z-index: 1001; display: grid; grid-template-columns: repeat(var(--fl-cols, 1), minmax(230px, 280px)); gap: 2px;
  padding: 8px; border: 1px solid rgba(240, 195, 90, .22); border-radius: 10px; background: #0e1526; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.fl-menu[hidden] { display: none; }
.fl-mi { display: flex; align-items: flex-start; gap: 10px; padding: 7px 9px; border-radius: 7px; color: var(--text); text-decoration: none; min-width: 0; }
.fl-mi:hover, .fl-mi:focus-visible { background: var(--panel-2); color: #fff; }
.fl-mi .nav-ic, .fl-noic { width: 26px; height: 26px; flex: none; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.fl-noic { background: var(--panel-2); }
.fl-mi span { display: grid; min-width: 0; }
.fl-mi b { font-weight: 600; font-size: 14px; }
.fl-mi small { color: var(--muted); font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) {
  /* the search box itself, big and in the middle of the bar (the compact Search button and its overlay are for narrow screens) */
  html:not([data-nav="old"]) .topbar.fl-bar .search-open { display: none; }
  html:not([data-nav="old"]) .topbar.fl-bar .global-search { display: block; flex: 1 1 auto; max-width: 760px; margin: 0 auto; }
  html:not([data-nav="old"]) .topbar.fl-bar .global-search input { height: 40px; font-size: 15px; padding-left: 38px;
    background: rgba(14, 20, 38, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%238a93a8' stroke-width='2.2'/%3E%3Cpath d='M15.5 15.5 21 21' stroke='%238a93a8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 12px 50% / 17px no-repeat; }
  html.hero-search-on .topbar.fl-bar .global-search { visibility: hidden; }
}
.fl-classes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; padding-bottom: 6px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line); }
.fl-cls { display: grid; justify-items: center; gap: 4px; padding: 7px 2px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.fl-cls:hover, .fl-cls:focus-visible { background: var(--panel-2); color: #fff; }
.fl-cls .nav-ic { width: 30px; height: 30px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
/* a narrower window: the words sit closer, so the whole row still fits without scrolling down to about 1280px */
@media (max-width: 1500px) {
  .fl-scroll { gap: 0; padding-left: 6px; padding-right: 6px; }
  .fl-w.nav-top { padding: 6px 6px; gap: 5px; font-size: 13.5px; }
  .fl-w .nav-ic { width: 18px; height: 18px; }
}
@media (min-width: 900px) {
  html:not([data-nav="old"]) .topbar.fl-bar .global-search { transform: translateX(var(--search-dx, 0px)); max-width: var(--search-w, 760px); }   /* dead centre (js/navflat.js) */
}
/* ---------------------------------------------------------------- frosted glass once the page scrolls (owner, 7 Oct 2026)
   Solid at the top of a page; scrolled (app.js: html.hdr-scrolled), both rows turn see-through with the page blurred under
   them. The blur is on a ::before layer, not the bar itself: a backdrop-filter on the bar would make it the containing block
   of its fixed children (the search box opened over the page on a phone). */
.topbar::before, .fl-row::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: rgba(10, 14, 26, .36); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); }
.topbar, .fl-row { transition: background-color .2s; }
html.hdr-scrolled .topbar, html.hdr-scrolled .fl-row { background-color: transparent; }
html.hdr-scrolled .topbar::before, html.hdr-scrolled .fl-row::before { opacity: 1; }
html.hdr-scrolled .fl-row { box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.hdr-scrolled .topbar::before, html.hdr-scrolled .fl-row::before { background: rgba(10, 14, 26, .92); }   /* no blur: stay readable */
}
/* the search box opened over the page (a phone): the full width, not the flat bar's flex sizing */
html.search-open:not([data-nav="old"]) .topbar.fl-bar .global-search { width: min(720px, calc(100vw - 32px)); max-width: none; flex: none; }
/* ---------------------------------------------------------------- the game's servers at a glance, between the logo and the search box
   (js/hdrstatus.js). "Server status", a dot and the state on one line, no box: green online, amber maintenance or problems,
   red down; the next maintenance in grey. The search box gives up the room; the item slides to the middle of the gap. */
.hdr-status { display: none; }
@media (min-width: 1000px) {
  html:not([data-nav="old"]) .topbar.fl-bar > .hdr-status:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; flex: none;
    margin: 0 14px 0 6px; white-space: nowrap; text-decoration: none; font-size: 13px; color: #c3c8d4; }
  .hdr-status small { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 2px; }
  .hdr-status b { font-weight: 600; }
  .hdr-status em { font-style: normal; color: var(--muted); font-size: 12px; }
  .hdr-status:hover b { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  .hdr-status i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #3fbf6a; box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); }
  .hdr-status[data-kind="up"] b { color: #7ee2a0; }
  .hdr-status[data-kind="warn"] i { background: #f0c35a; }
  .hdr-status[data-kind="warn"] b { color: #f0c35a; }
  .hdr-status[data-kind="down"] i { background: #e5534b; }
  .hdr-status[data-kind="down"] b { color: #ff7b72; }
}
@media (min-width: 1000px) and (max-width: 1699px) {
  .hdr-status em { display: none; }   /* the next maintenance: in its title when the bar is narrower (the search box keeps its room) */
}
/* ---------------------------------------------------------------- The Forever Open announcement (backend/forever_open.py
   banner_html): one slim line under the menu row on every page while an admin has it on (or ?preview=open-banner). In the
   server's HTML, so nothing moves when it appears; it scrolls away with the page (the sticky header and row stay as they are).
   Plain: the panel colour, the header's gold rule, a red LIVE word; no glow, no pill. Hidden on the scoreboard itself. */
.fo-banner { position: relative; display: flex; align-items: stretch; background: #0d1326; border-bottom: 1px solid rgba(240, 195, 90, .22); font-size: 13.5px; }
.fo-banner[hidden], .fo-banner.fo-bn-here { display: none; }
.fo-bn-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 44px 7px 16px;
  color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; }
.fo-bn-link:hover { background: rgba(240, 195, 90, .06); text-decoration: none; }
.fo-bn-link b { color: var(--gold); font-weight: 650; }
.fo-bn-link b.fo-bn-live { color: #ff6b6b; letter-spacing: .06em; }
.fo-bn-link b.fo-bn-live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #e04444; vertical-align: 1px; }
.fo-bn-sep { color: var(--muted); }
.fo-bn-count { font-variant-numeric: tabular-nums; color: #eef0f5; }
.fo-bn-cta { color: var(--link); margin-left: 6px; }
.fo-bn-link:hover .fo-bn-cta { text-decoration: underline; }
.fo-bn-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 4px; background: none;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.fo-bn-x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.fo-bn-narrow { display: none; }
@media (max-width: 719px) {   /* a phone: the short words, and no date before the event */
  .fo-banner { font-size: 13px; }
  .fo-bn-link { justify-content: flex-start; gap: 6px; padding: 7px 40px 7px 12px; }
  .fo-bn-wide { display: none; }
  .fo-bn-narrow { display: inline; }
  .fo-bn-before .fo-bn-mid, .fo-bn-between .fo-bn-mid,
  .fo-bn-before .fo-bn-link > .fo-bn-sep:first-of-type, .fo-bn-between .fo-bn-link > .fo-bn-sep:first-of-type { display: none; }
  .fo-bn-cta { margin-left: auto; }
}
@media (max-width: 340px) {
  .fo-bn-count, .fo-bn-link > .fo-bn-sep { display: none; }
}
/* 13 Nov 2026: the row has 16 words (Leveling added): narrower padding and gap under 1440px so it fits a 1280px screen */
@media (min-width: 720px) and (max-width: 1439px) {
  .fl-w.nav-top { padding: 6px 4px; gap: 4px; font-size: 13px; }
  .fl-w .nav-ic { width: 16px; height: 16px; }
  .fl-scroll { padding-left: 2px; padding-right: 2px; }
}
/* ---------------------------------------------------------------- PREVIEW ?preview=simple (js/simplepreview.js; owner 17 Nov
   2026: "there is just allot going on"): six group words, bigger and centred, a labelled Menu button on the left that opens
   a side panel with every page, each word's pages in plain columns with headings, and a header with only the logo, search,
   language and account (Discord, CurseForge, Wago and the coffee cup move into the side panel). */
html.pv-simple .topbar.fl-bar > .nav-coffee { display: none; }   /* Discord, CurseForge and Wago stay on the bar (the owner, 17 Nov 2026); the cup is in the side panel */
html.pv-simple .fl-scroll { justify-content: center; gap: 6px; padding: 8px 12px; }
html.pv-simple .fl-scroll > .fl-w:first-child, html.pv-simple .fl-scroll > .fl-w:last-child { margin: 0; }
html.pv-simple .fl-w.nav-top { padding: 7px 14px; gap: 8px; font-size: 15px; font-weight: 600; }
html.pv-simple .fl-w .nav-ic { width: 20px; height: 20px; }
.fl-menu-btn.nav-top { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 7px; background: rgba(26, 36, 65, .6); color: #e8ebf3; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.fl-menu-btn.nav-top:hover, .fl-menu-btn[aria-expanded="true"] { background: var(--panel-2); color: #fff; border-color: rgba(240, 195, 90, .35); }
.fl-burger, .fl-burger::before, .fl-burger::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; }
.fl-burger { position: relative; }
.fl-burger::before, .fl-burger::after { content: ''; position: absolute; left: 0; }
.fl-burger::before { top: -5px; }
.fl-burger::after { top: 5px; }
@media (min-width: 1000px) {
  html.pv-simple .fl-menu-btn { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 999px) {
  html.pv-simple .fl-scroll { justify-content: flex-start; }
}
.fl-menu.fl-mega { grid-template-columns: repeat(var(--fl-cols, 1), minmax(170px, 215px)); gap: 4px 18px; padding: 16px 18px 14px; }
.fl-mega .fl-classes { grid-template-columns: repeat(9, minmax(64px, 1fr)); margin-bottom: 8px; }
.fl-col { display: grid; align-content: start; gap: 1px; min-width: 0; }
.fl-col h4 { margin: 0 0 6px; padding: 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.fl-pl { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; min-width: 0; }
.fl-pl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-pl:hover, .fl-pl:focus-visible { background: var(--panel-2); color: #fff; text-decoration: none; }
.fl-pl .nav-ic { width: 20px; height: 20px; flex: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.fl-drawer-bd { position: fixed; inset: 0; z-index: 1100; background: rgba(4, 7, 15, .6); }
.fl-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1101; width: min(340px, 90vw); overflow-y: auto; overscroll-behavior: contain;
  background: #0c1222; border-right: 1px solid rgba(240, 195, 90, .22); box-shadow: 18px 0 40px rgba(0, 0, 0, .5); padding: 0 10px 24px; }
.fl-drawer[hidden], .fl-drawer-bd[hidden] { display: none; }
html.fl-drawer-open { overflow: hidden; }
.fl-dr-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 12px; background: #0c1222;
  border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.fl-dr-head b { font-size: 16px; color: #fff; }
.fl-dr-close { border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 13px; padding: 5px 10px; cursor: pointer; }
.fl-dr-close:hover { background: var(--panel-2); color: #fff; }
.fl-dr-group { border-bottom: 1px solid rgba(38, 50, 90, .6); }
.fl-dr-group > summary { display: flex; align-items: center; gap: 10px; padding: 11px 8px; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 600; color: #eef0f5; }
.fl-dr-group > summary::-webkit-details-marker { display: none; }
.fl-dr-group > summary::after { content: '+'; margin-left: auto; color: var(--muted); font-size: 18px; font-weight: 400; }
.fl-dr-group[open] > summary::after { content: '−'; }
.fl-dr-group > summary:hover { color: #fff; }
.fl-dr-group > summary .nav-ic { width: 24px; height: 24px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.fl-dr-sec { padding: 0 0 10px 8px; display: grid; gap: 1px; }
.fl-dr-sec h4, .fl-dr-foot h4 { margin: 4px 0 4px; padding: 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.fl-dr-foot { display: grid; gap: 1px; padding-top: 14px; }
/* the simpler home page (?preview=simple, pages/home.js): a shorter hero that is mostly the search box, then eight doors */
.hero.hero-forever.sh-hero { min-height: 0; height: auto; padding: 64px 32px 52px; }
.sh-hero .hero-inner { width: 100%; padding: 0; }
.sh-hero h1 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 18px; }
.sh-hero .hero-search { max-width: 720px; margin-left: auto; margin-right: auto; }
.sh-hero .hero-search input { height: 56px; font-size: 17px; }
.sh-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 22px 0 34px; }
.sh-tile { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 16px 8px 14px; text-align: center; border-radius: 10px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #141c33, #0e1527); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.sh-tile:hover, .sh-tile:focus-visible { border-color: rgba(240, 195, 90, .55); transform: translateY(-2px); text-decoration: none; color: #fff; }
.sh-ic { display: block; width: 58px; height: 58px; margin-bottom: 6px; border-radius: 9px; border: 1px solid rgba(240, 195, 90, .45); box-shadow: 0 0 0 2px #05080f; overflow: hidden; }
.sh-ic img { display: block; width: 100%; height: 100%; }
.sh-tile b { font-size: 14.5px; font-weight: 650; color: #eef0f5; }
.sh-tile small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.sh-news .news-card .body h3 { font-size: 15px; }
.sh-nl { margin-top: 34px; }
@media (max-width: 1100px) { .sh-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hero.hero-forever.sh-hero { padding: 34px 16px 28px; }
  .sh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sh-tile { grid-template-columns: 40px 1fr; justify-items: start; text-align: left; align-items: center; gap: 2px 10px; padding: 10px; }
  .sh-ic { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
  .sh-tile small { display: none; }
}
.fl-dr-one { display: flex; align-items: center; gap: 10px; padding: 11px 8px; font-size: 15.5px; font-weight: 600; color: #eef0f5; text-decoration: none; }
.fl-dr-one:hover { color: #fff; text-decoration: none; background: var(--panel-2); }
.fl-dr-one .nav-ic { width: 24px; height: 24px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
html.pv-simple .fl-scroll { gap: 2px; }
html.pv-simple .fl-w.nav-top { padding: 7px 11px; }
@media (min-width: 1000px) and (max-width: 1399px) { html.pv-simple .fl-w.nav-top { padding: 7px 7px; font-size: 14px; gap: 6px; } }
/* the simpler home page's returning parts, tighter than on the long page */
.sh-hx .hx { margin-top: 30px; }
.sh-hx .section-head p, .sh-feed .section-head p { display: none; }
.sh-feed { margin-top: 10px; }
.sh-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; margin-top: 10px; }
.sh-duo .lf-home { margin: 0; }
@media (max-width: 900px) { .sh-duo { grid-template-columns: minmax(0, 1fr); } }
.sh-feed .dmf-group:nth-child(n+3) { display: none; }   /* the newest two finds only (the full list is on /datamine) */
/* the simpler home page: the news's right-hand column ends in an ad that stays in view beside the stories (js/nitro.js HOME_SIMPLE) */
.sh-news > .blue-list .nx-banner { position: sticky; top: calc(var(--fl-top, 57px) + 64px); margin: 14px auto 0; }
.sh-nl .nl-row { max-width: 520px; }   /* the address box at an address's length, not the whole card (the owner, 17 Nov 2026) */
