/* The Deck: forum skin. Loaded after style.css + forums.css on forum pages when the owner's preview is on (forum_lib.php).
   The forum markup and code are unchanged: this file only re-skins them. The current design's hard black borders and
   offset shadows are hard-coded in forums.css, so a few !important rules are needed to calm them; they are all scoped to
   body.d-forums and only touch borders, shadows, radii and fonts. */

body.d-forums {
  --bg: #0A0D14; --card: #161C28; --card2: #1E2533; --inset: #070A10; --line: #1E2533;
  --tx: #e6ebf5; --mu: #c3cbe6; --or: #FF7A1A; --bl: #38BDF8;
  --sh: none; --sh-lg: none; --sh-in: none; --bw: 1px;
  --disp: 'Outfit', system-ui, sans-serif; --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #0A0D14; font-family: var(--sans); color: var(--tx);
}
body.d-forums::before, body.d-forums::after { display: none !important; } /* style.css's starfield */

/* Everything inside the forum area and its dialogs: soft lines, no hard shadows, rounded corners. */
body.d-forums :is(.fwrap, .fmodal, .ftoast) :is(*, *::before, *::after) { box-shadow: none !important; text-shadow: none !important; }
body.d-forums :is(.fwrap, .fmodal, .ftoast) { box-shadow: none !important; text-shadow: none !important; }
body.d-forums :is(.fblock, .node, .frow, .trow, .post, .replybox, .newscard, .fhead, .fside, .fstats, .fonline, .flatest, .fnews, .fcardx, .fempty,
                  .fmsg, .editor, .ed-bar, .sform, .ttools, .fip, .fjoin, .fhero, .fmodal, .ftoast, .finput, .fsearch input, .banner, .tsep, .thead,
                  .fgrid > *, .post-main, .post-user, .replybox-form, .ttools-body) {
  border-color: #1E2533 !important;
}
body.d-forums :is(.fblock, .newscard, .fhead, .fside > *, .fstats, .fonline, .flatest, .fnews, .fcardx, .fempty, .fmsg, .replybox, .post, .fhero, .fjoin,
                  .banner, .ttools, .sform) { border-radius: 18px; overflow: hidden; }
body.d-forums :is(.fblock-h) { border-bottom-color: #1E2533 !important; }
body.d-forums :is(.node, .trow, .frow) { border-color: #1E2533 !important; }
body.d-forums :is(.fmodal) { border-radius: 18px; background: #161C28; }
body.d-forums :is(.fmodal)::backdrop { background: rgba(5, 7, 12, .75); }
body.d-forums :is(.finput, .fsearch input, .fmodal input, .fmodal textarea, .fmodal select, .editor textarea, .replybox textarea, .sform input, .sform textarea) {
  border-radius: 10px; background: #070A10 !important; border: 1px solid #2A3345 !important; color: #fff; font-family: var(--sans);
}
body.d-forums :is(.fbtn) { border-radius: 12px; border: 0 !important; font-family: 'Outfit', sans-serif; font-weight: 800; text-transform: none; letter-spacing: 0;
                           min-height: 44px; padding: 10px 18px; background: #FF7A1A; color: #1A0B00; }
body.d-forums .fbtn:hover { background: #ff9447; transform: none; }
body.d-forums .fbtn.ghost { background: transparent; color: #e6ebf5; border: 2px solid #2A3345 !important; }
body.d-forums :is(.fav, .post-av img, .trow-av img, .replybox-av img, .node-last img) { border-radius: 8px !important; border: 0 !important; }

/* Type: the pixel face becomes the display face; headings get sizes that suit it. */
body.d-forums :is(.fwrap, .fmodal) :is(h1, h2, h3) { font-family: 'Outfit', system-ui, sans-serif; font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
body.d-forums .fhead h1 { font-size: clamp(36px, 5vw, 60px); color: #fff; }
body.d-forums .fhead p { color: #c3cbe6; font-size: 17px; }
body.d-forums .newscard h2, body.d-forums .fblock-h h2, body.d-forums .fblock-h h3 { font-size: 22px; }
body.d-forums .fblock-h { background: #161C28; font-family: 'Outfit', sans-serif; }
body.d-forums :is(.node-ico, .fhead-ico) { border-radius: 12px; }

/* Tabs and breadcrumbs. */
body.d-forums .ftabs { border-bottom: 1px solid #1E2533; gap: 8px 28px; }
body.d-forums .ftabs a { border: 0 !important; border-bottom: 3px solid transparent !important; background: none !important; border-radius: 0; color: #c3cbe6;
                         text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 15px; padding: 14px 4px; }
body.d-forums .ftabs a[aria-current] { color: #fff; border-bottom-color: #FF7A1A !important; }
body.d-forums .crumbs { font-size: 13px; color: #8a93ad; }
body.d-forums .crumbs a { color: #c3cbe6; }

/* Prefix tags and rank badges keep their colours, with rounded corners. */
body.d-forums :is(.pfx, .fpfx, .fbadge, .opbadge, [class*="rk-"]) { border-radius: 6px; border: 0 !important; }

/* Pagination. */
body.d-forums :is(.pg a, .pg b, .pg span, .tpages a) { border-radius: 8px; border-color: #2A3345 !important; }

/* The old forum footer is replaced by the Deck footer; hide it if a page prints its own. */
body.d-forums .ffoot { display: none; }

/* Forum home hero: a proper page title. */
body.d-forums .fhero :is(h1, h2) { font-size: clamp(34px, 4.6vw, 56px); color: #fff; }
body.d-forums .fblock-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #38BDF8; }
