/* ============================================================ a faction's card

   Front and back, one page each side of the sheet. The folder is the front's artwork; the
   effect sits on a dark veil over it, and the comment on a light veil on the back.
   ============================================================================ */

@page {
  size: A4;
  margin: 10mm;
}

body.faction-page {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: var(--font);
}

body.faction-page .faction-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-800);
  color: var(--text);
}

body.faction-page .faction-toolbar__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.faction-page .faction-toolbar #faction-back {
  margin-left: auto;
}

/* both cards side by side on screen, so the pair can be compared at a glance */
body.faction-page .faction-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 8mm;
  padding: 8mm;
}

/*
 * The card: mini euro, the same size as a card. Two layers -- the folder behind, a panel
 * of text in front -- in that order, because the panel is a veil over the artwork.
 */
/*
 * The window, on both sides: the folder's picture area, not the whole card.
 *
 * The percentages are the folder's own window (left 11.464%, top 7.637%, 77.066% by
 * 55.539%), so the text sits where the illustration is -- which is what makes it read as a
 * folder with a note in its window rather than a card with a strip of text on it.
 */
body.faction-page .faction-empty {
  margin: 20mm auto;
  max-width: 320px;
  text-align: center;
  color: #444;
}

@media print {
  .faction-toolbar,
  body.faction-page .faction-empty {
    display: none !important;
  }

  body.faction-page .faction-sheet {
    padding: 0;
    gap: 6mm;
  }

  .faction-card,
  .faction-card *,
  .faction-card__folder,
  .faction-card__folder .folder-stage,
  .faction-card__folder .folder-stage * {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* a faction card inside the forge's print sheet: the print stylesheet sizes it */
.forge-grid .faction-card {
  position: relative;
}
