/* ==========================================================================
   Fanbrix site header, footer and primary button, for standalone pages
   under public/ (the drop signup pages: /p/judge-dredd-…/ and /kcd/) that
   bring their own styles and so cannot use the bundled css/styles.css.

   A copy of those rules in styles.css, with the values from tokens.css
   written in: change the header or footer there and change it here too.
   Everything is scoped under .fb-chrome so neither the page's own CSS nor
   this file can restyle the other.
   ========================================================================== */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  size-adjust: 96%;
  src: url("/assets/fonts/nunito-sans-latin-wght.woff2") format("woff2");
}

.fb-chrome,
.fb-chrome *,
.fb-chrome *::before,
.fb-chrome *::after { box-sizing: border-box; }

.fb-chrome {
  font-family: "Avenir", "Avenir Next", "Nunito Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.fb-chrome img { display: block; max-width: 100%; height: auto; }
.fb-chrome a { color: inherit; }
.fb-chrome h2,
.fb-chrome p { margin: 0; }
.fb-chrome ul { margin: 0; padding: 0; list-style: none; }
.fb-chrome :focus-visible { outline: 2px solid #ffa200; outline-offset: 3px; }

/* ---- Primary button (the home page's "Join the list") ------------------- */
.fb-chrome .btn,
.fb-chrome.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 5px;
  font-family: "Avenir", "Avenir Next", "Nunito Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.fb-chrome .btn--primary,
.fb-chrome.btn--primary { background: #ffa200; color: #000; font-weight: 900; }
.fb-chrome .btn--primary:hover,
.fb-chrome.btn--primary:hover { background: #ffb733; }
.fb-chrome .btn--outline {
  min-height: 43px;
  width: 230px;
  padding: 10px 16px;
  border: 1px solid #fff;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 500;
}
.fb-chrome .btn--outline:hover { background: #fff; color: #000; }

/* ---- Header ------------------------------------------------------------- */
.fb-chrome.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
}
.fb-chrome .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-inline: 24px;
}
.fb-chrome .site-header__logo { display: block; width: 65px; flex-shrink: 0; }
.fb-chrome .site-header__logo img { width: 100%; }
.fb-chrome .site-header__link { display: none; }

/* Hamburger: a <details>, so the menu opens without JavaScript. */
.fb-chrome .menu { position: relative; }
.fb-chrome .menu__toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 25px;
  cursor: pointer;
  list-style: none;
}
.fb-chrome .menu__toggle::-webkit-details-marker { display: none; }
.fb-chrome .menu__bars,
.fb-chrome .menu__bars::after { display: block; width: 22px; height: 1px; background: #fff; }
.fb-chrome .menu__bars::after { content: ""; margin-top: 4px; }
.fb-chrome .menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  padding: 18px 22px;
  border-radius: 6px;
  background: #1a1a1a;   /* a step lighter than the black header, so it reads as a panel */
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
  text-align: left;
}
.fb-chrome .menu__panel a {
  display: block;
  padding: 0;
  color: #b9b7b5;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.fb-chrome .menu__panel a:hover,
.fb-chrome .menu__panel a[aria-current="page"] { color: #fff; }
.fb-chrome .menu__panel a + a { margin-top: 12px; }

/* ---- Footer ------------------------------------------------------------- */
.fb-chrome.site-footer {
  margin: 0;
  padding: 40px 0;
  border-top: 1px solid #d1d1d1;
  background: #f2f2f2;
  color: #1a202c;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}
.fb-chrome .container {
  width: 100%;
  max-width: 1218px;
  margin-inline: auto;
  padding-inline: 24px;
}
.fb-chrome .site-footer__inner { display: flex; flex-direction: column; gap: 44px; }
.fb-chrome .site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.fb-chrome .site-footer__logo { width: 122px; }
.fb-chrome .site-footer__tagline { max-width: 379px; font-size: 16px; line-height: 1.4; }
.fb-chrome .site-footer__tagline-end { display: block; margin-top: 1lh; }

.fb-chrome .social { display: flex; gap: 20px; }
.fb-chrome .social a { display: block; width: 34px; height: 34px; border-radius: 50%; }
.fb-chrome .social img { width: 70px; height: 70px; max-width: none; margin: -5px -18px -31px; }

.fb-chrome .site-footer__nav { display: flex; flex-wrap: wrap; gap: 32px 64px; margin-top: 32px; }
/* Phones: Drops (three long names) on its own row, About and Community under it. */
.fb-chrome .site-footer__col:first-child { flex-basis: 100%; }
.fb-chrome .site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.fb-chrome .site-footer__heading { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.4; }
.fb-chrome .site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fb-chrome .site-footer__links a,
.fb-chrome .site-footer__legal a { text-decoration: none; }
.fb-chrome .site-footer__links a:hover,
.fb-chrome .site-footer__legal a:hover { text-decoration: underline; }

.fb-chrome .site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 44px;
  border-top: 1px solid rgb(72 98 132 / 0.16);
  font-size: 12px;
  line-height: 1.5;
}
.fb-chrome .site-footer__copy { max-width: 614px; }
.fb-chrome .site-footer__copy p + p { margin-top: 0; }
/* The licensor's legal line, where the home page credits Crystal Dynamics. */
.fb-chrome .site-footer__licensor { margin-top: 13px; max-width: 614px; }
.fb-chrome .site-footer__legal { display: flex; gap: 20px; order: 1; margin-top: 13px; }

/* ---- Desktop (≥ 900px) -------------------------------------------------- */
@media (min-width: 900px) {
  .fb-chrome .site-header__inner { max-width: 1218px; min-height: 80px; margin-inline: auto; }
  .fb-chrome .site-header__logo { width: 120px; }
  /* Like the drop page: the menu at every width, no Drop 01 button. */

  .fb-chrome.site-footer { padding-block: 63px; }
  .fb-chrome .site-footer__inner { gap: 26px; }
  .fb-chrome .site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
  /* The three link columns and, under them, Privacy and Terms share one
     520px column on the right, so the two rows start on the same line. */
  .fb-chrome .site-footer__nav { flex: 0 0 520px; flex-wrap: nowrap; justify-content: space-between; gap: 32px; margin-top: 0; }
  .fb-chrome .site-footer__col:first-child { flex-basis: auto; }
  .fb-chrome .site-footer__tagline { max-width: 332px; }
  .fb-chrome .site-footer__tagline-end { display: inline; margin-top: 0; }
  .fb-chrome .site-footer__col { gap: 14px; }
  .fb-chrome .site-footer__heading { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.4; }
  .fb-chrome .site-footer__links { gap: 10px; font-size: 14px; }
  .fb-chrome .site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr 520px;
    align-items: start;
    column-gap: 40px;
    margin-inline: -60px;
    padding: 26px 60px 0;
    border-top: 0;
    background: linear-gradient(rgb(72 98 132 / 0.16), rgb(72 98 132 / 0.16)) top / 100% 1px no-repeat;
  }
  .fb-chrome .site-footer__legal { grid-column: 2; grid-row: 1; order: 0; margin-top: 0; gap: 32px; }
  .fb-chrome .site-footer__licensor { grid-column: 1; grid-row: 2; margin-top: 18px; }
}

/* "Cookie settings" in the footer: a button dressed as a link. */
.fb-chrome .site-footer__link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.fb-chrome .site-footer__link-btn:hover { text-decoration: underline; }

/* Cookie banner (built by /js/consent.js; a copy of the rules in styles.css). */
.cookie-banner.fb-chrome {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  background: #000;
  border-top: 1px solid #fff;
  color: #fff;
  text-align: left;
}
.fb-chrome .cookie-banner__text { margin: 0; font-size: 13px; line-height: 1.35; color: #fff; }
.fb-chrome .cookie-banner__text a { color: inherit; text-decoration: underline; }
.fb-chrome .cookie-banner__actions { display: flex; gap: 10px; }
.fb-chrome .btn.cookie-banner__btn {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: normal;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .cookie-banner.fb-chrome { flex-direction: row; align-items: center; justify-content: center; gap: 40px; }
  .fb-chrome .cookie-banner__actions { flex: none; }
  .fb-chrome .btn.cookie-banner__btn { flex: none; min-width: 140px; }
}
