/* Felles tema for FiveM Norge: svart, skarpe hjørner, store smale overskrifter og hvite knapper.
   Lastes etter fonts.css på alle sidene til FiveM Norge (ikke servernettsidene). */
@font-face { font-family: 'Oswald'; src: url('/fonts/Oswald-Variable.woff2') format('woff2'); font-weight: 200 700; font-style: normal; font-display: swap; }

:root { --fn-disp: 'Oswald', 'Geist', system-ui, sans-serif; }

/* Overskrifter */
h1, .fn-disp {
  font-family: var(--fn-disp) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .005em !important;
  line-height: 1.02 !important;
}
h2:not(:where(article, .md, .prose, .post, .pb-text, .tiptap, .ProseMirror) h2) {
  font-family: var(--fn-disp) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .01em !important;
}

/* Hovedknapper: hvit med svart tekst i mørkt tema */
html:not(:has(#fnl-light[media=all])) :is(.btn-primary, .btn.primary, .pb-btn-primary, a.btn.primary) {
  background: #fff !important;
  border-color: #fff !important;
  color: #000 !important;
}
html:not(:has(#fnl-light[media=all])) :is(.btn-primary, .btn.primary, .pb-btn-primary):hover { background: #dcdcdc !important; border-color: #dcdcdc !important; color: #000 !important; }
:is(.btn-primary, .btn.primary, .pb-btn-primary, .btn-ghost) {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.btn-primary svg, .btn.primary svg { color: currentColor; }

/* Lenker og markering */
::selection { background: #D92B43; color: #fff; }

/* Bredde og luft som i designet */
.fnl-wrap, .pb-in, .pb-cover-c { max-width: 1240px !important; }
@media (min-width: 701px) { .fnl-wrap, .pb-in { padding-left: 32px !important; padding-right: 32px !important; } }
.fnl-top .fnl-wrap { max-width: 1360px !important; padding-left: 20px !important; padding-right: 20px !important; }
main.wrap { max-width: 1240px; padding-left: 32px; padding-right: 32px; }

/* Røde merkelapper over overskriftene */
.pb-eyebrow {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: #fff !important;
  background: #D92B43;
  padding: 4px 8px;
  border-radius: 2px;
  margin-bottom: 20px !important;
}
html:has(#fnl-light[media=all]) .pb-eyebrow { color: #fff !important; }

/* Store sideoverskrifter */
.pb-in h1, .pb-hero h1, .pb-t-hero h1, main > section:first-child h1 { font-size: clamp(44px, 6vw, 88px) !important; line-height: .95 !important; }

/* Bunnen: rolige kolonnetitler */
.fnl-fcol > b { color: #8f8f8f !important; font-size: 13px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.fnl-foot { background: #0a0a0a !important; }

/* Kort og linjer */
.pb-card, .card { border-color: rgba(255,255,255,.1); }
.pb-card:hover, a.card:hover { border-color: rgba(255,255,255,.28); }

/* ====================================================================
   Designlaget: sidebyggerens byggeklosser (pb-*) slik de ser ut i designet.
   «html body» gir høyere presedens enn byggeklossenes egne stiler, som lastes etter.
   ==================================================================== */
html body { --pb-radius: 6px; }
html body .pb { --pb-radius: 6px; }

/* Innrykk: seksjoner inni seksjoner skal ikke krympe innholdet */
html body .pb-in .pb { padding-top: 0 !important; padding-bottom: 0 !important; }
html body .pb-in .pb > .pb-in { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
html body .pb-in .pb + .pb { margin-top: 64px; }

/* Sidehode: merkelapp, stor overskrift, ingress under */
html body .pb-shead { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px; margin-bottom: 40px; }
html body .pb-a-center .pb-shead { align-items: center; }
html body .pb-shead-r { max-width: 38rem; }
html body .pb-shead-r .pb-lead, html body .pb-lead { font-size: 18px; color: #bdbdbd; }
html body .pb-shead h2.pb-h { font-size: clamp(36px, 4vw, 56px); line-height: 1; }
html body h1.pb-h, html body .pb-h1, html body .pb-hero .pb-h1 { font-size: clamp(48px, 6vw, 88px); line-height: .95; letter-spacing: .005em; font-weight: 600; }
html body .pb-h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1; }
html body .pb-h3, html body .pb-h4 { font-family: 'Geist', system-ui, sans-serif; text-transform: none; font-weight: 500; letter-spacing: 0; }
html body .pb-h3 { font-size: 20px; }

/* Knapper */
html body .pb-btn, html body .pb-btn-pill .pb-btn, html body .pb-btn-rounded .pb-btn {
  border-radius: 4px; min-height: 48px; padding: 0 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
html body .pb .pb-btn-secondary, html body .pb .pb-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
html body .pb .pb-btn-secondary:hover, html body .pb .pb-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }

/* Filtre, søk og kontrollrad */
html body .pb-chip {
  height: 36px; padding: 0 14px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.14); background: transparent; color: #bdbdbd;
  font-size: 13px; font-weight: 500;
}
html body .pb-chip:hover { border-color: rgba(255,255,255,.35); color: #fff; }
html body .pb-chip[aria-pressed=true], html body .pb-chip:has(input:checked) { background: #fff; border-color: #fff; color: #000; }
html body .pb-search { height: 44px; border-radius: 4px; background: #0a0a0a; border: 1px solid rgba(255,255,255,.14); }
html body .pb-search:focus-within { border-color: rgba(255,255,255,.4); }
html body .pb-sl-ctl { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); gap: 12px; }
html body input:not([type=checkbox]):not([type=radio]):not([type=range]), html body select, html body textarea { border-radius: 4px; }

/* Serverlista: rader med stort nummer, som i designet */
html body .pb-sl-list { display: block; }
html body .pb-sl-list > li { border-bottom: 1px solid rgba(255,255,255,.1); }
html body .pb .pb-sl-row {
  display: grid; grid-template-columns: 56px 48px minmax(0, 1fr) 120px; gap: 20px; align-items: center;
  padding: 20px 8px 20px 0; background: transparent; border: 0; border-radius: 0;
}
html body .pb .pb-sl-row:hover { background: rgba(255,255,255,.025); }
html body .pb-sl-rank { width: auto; text-align: left; font-family: 'Oswald', Impact, sans-serif; font-size: 32px; font-weight: 600; color: #3a3a3a; line-height: 1; }
html body .pb-sl-row:hover .pb-sl-rank { color: #8f8f8f; }
html body .pb-sl-ic { width: 48px; height: 48px; border-radius: 4px; font-size: 18px; }
html body .pb-sl-name { font-size: 18px; font-weight: 600; color: #fff; }
html body .pb-sl-bar { height: 4px; border-radius: 2px; background: #1f1f1f; max-width: 260px; margin-top: 10px; }
html body .pb-sl-bar i { border-radius: 2px; }
html body .pb-sl-count { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: #fff; text-align: right; }
html body .pb-sl-more { margin-top: 32px; }
@media (max-width: 700px) {
  html body .pb .pb-sl-row { grid-template-columns: 32px 40px minmax(0, 1fr) auto; gap: 12px; }
  html body .pb-sl-rank { font-size: 22px; }
  html body .pb-sl-ic { width: 40px; height: 40px; }
  html body .pb-sl-name { font-size: 16px; }
}

/* Kort og flater: flate, mørke, tynne linjer */
html body .pb-card, html body .pb-card-glass .pb-card { background: #141414; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; backdrop-filter: none; }
html body .pb-card-outline .pb-card { background: transparent; }
html body .pb-feat-c, html body .pb-feat-wide { border-radius: 6px; }
html body .pb-feat-wide { background: #141414 !important; border-color: rgba(255,255,255,.1) !important; }
html body .pb-icon-i { background: #0a0a0a; border-color: rgba(255,255,255,.1); color: #bdbdbd; border-radius: 4px; }

/* Tall */
html body .pb-stat-v { font-family: 'Oswald', Impact, sans-serif; font-weight: 600; letter-spacing: .005em; line-height: 1; }
html body .pb-stat-v + *, html body .pb-stat > :last-child:not(.pb-stat-v) { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #bdbdbd; }

/* Tabeller */
html body .pb-table-w { border-radius: 6px; border-color: rgba(255,255,255,.1); background: #0a0a0a; }
html body .pb-table th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8f8f8f; background: transparent; }
html body .pb-table th, html body .pb-table td { border-bottom-color: rgba(255,255,255,.08); }

/* Faner */
html body .pb-tablist { border-bottom-color: rgba(255,255,255,.1); gap: 4px; }
html body .pb-tablist button { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
html body .pb-tablist button[aria-selected=true] { color: #fff; border-color: #fff; }

/* Små merker */
html body .pb-pill { border-radius: 4px; border-color: rgba(255,255,255,.14); background: #0a0a0a; }
html body .pb-badge, html body .pb-badge-o { border-radius: 2px; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
html body .pb-tone { border-radius: 2px; }
html body .pb-notice { border-radius: 4px; }
html body .pb-empty { border: 1px solid rgba(255,255,255,.1); background: #0a0a0a; border-radius: 6px; color: #8f8f8f; }

/* Kalender: dato som en stram blokk */
html body .pb-cal-d { border-radius: 4px; background: #0a0a0a; border: 1px solid rgba(255,255,255,.1); color: #fff; }

/* Spørsmål og svar */
html body .pb-faq details { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; background: transparent !important; }

/* Ingen glød eller fargetoner: flatt og svart som i designet */
html body .vt-hero::before, html body .ft-hero::before, html body .vt-tool::before { display: none; }
html body .pb-hero:not(.pb-has-bg) { background: none; }
html body .vt-tic, html body .ft-sic { color: #bdbdbd; background: #0a0a0a; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; }
html body .vt-tool, html body .ft-card { background: #141414; border-color: rgba(255,255,255,.1); border-radius: 6px; }
html body .vt-tool:hover, html body a.ft-card:hover { border-color: rgba(255,255,255,.3); box-shadow: none; transform: none; }
html body .vt-go { color: #FF6B7A; }
html body .vt-sec, html body .ft-sec { font-family: 'Oswald', Impact, sans-serif; font-size: 13px; letter-spacing: .06em; }
html body .pb-motm { background: #141414 !important; }
