/**
 * @file
 * The front of the Johnson&Johnson business cards (89x51mm).
 *
 * Also used by mPDF for the PDF: the card is 95x57mm there, with 3mm bleed.
 */

/* stylelint-disable unit-allowed-list, declaration-property-value-no-unknown -- Print sizes (mm, pt) and CMYK colors for mPDF. */

/* The physical size of the card, with the bleed as negative margin. */
@page {
  size: 89mm 51mm;
  margin: -3mm;
  padding: 0;
  marks: crop;
}

html.business-card-preview {
  background: lightgray;
}

/* The card size plus 2 times the bleed. */
body.business-card-preview {
  position: relative;
  width: 95mm;
  height: 57mm;
  margin: 0;
  padding: 0;
  background: white;
}

/* The on-screen preview is without bleed. */
body.business-card-preview:has(.jnj.no-bleed) {
  width: 89mm;
  height: 51mm;
  background: white;
}

.jnj.card-wrapper {
  position: relative;
  width: 95mm;
  height: 57mm;
  color: #000;
  background-color: white;
  font-family:
    johnsontext,
    'Johnson Text',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 7pt;
  line-height: 8.4pt;
}

.jnj.card-wrapper.no-bleed {
  width: 89mm;
  height: 51mm;
}

html.business-card-preview,
body.business-card-preview {
  margin: 0;
  padding: 0;
  color: cmyk(0, 0, 0, 100);
}

.jnj.bleed-horizontal {
  width: 3mm;
}

.jnj.bleed-vertical {
  height: 3mm;
}

.no-bleed .bleed-horizontal {
  display: none;
  width: 0;
}

.no-bleed .bleed-vertical {
  display: none;
  height: 0;
}

/* The margins of the content. */
.jnj.card-table-vertical-spacing {
  height: 4.5mm;
}

.jnj.card-table-horizontal-spacing {
  width: 4.5mm;
}

/* The content area: the card size minus the margins. */
.jnj.card-content-border {
  position: absolute;
  z-index: 1;
  top: 4.5mm;
  left: 4.5mm;
  width: 80mm;
  height: 42mm;
  border: 1px solid red;
}

body {
  position: relative;
}

#first_name,
#last_name,
#education,
#function_title,
#department,
#focus_area,
#email,
#phone,
#website,
#address,
#vat {
  color: cmyk(0, 0, 0, 100);
}

#department {
  letter-spacing: 0.1pt;
  font-weight: bold;
}

#focus_area {
  font-style: italic;
}

.jnj.card-table {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-spacing: 0;
  color: #000;
  border-collapse: collapse;
  font-family:
    johnsontext,
    'Johnson Text',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 7pt;
  line-height: 8.4pt;
  page-break-inside: avoid;
}

.jnj.card-table tr {
  border: 0;
}

.jnj.card-table td {
  padding: 0;
  vertical-align: top;
}

/* Left: the name, with the logo at the bottom. */
.jnj.card-table-left {
  width: 40mm;
  height: 42mm;
}

.jnj.namelogo-table {
  width: 40mm;
  height: 42mm;
  margin: 0;
  border-spacing: 0;
  border-collapse: collapse;
}

.jnj.namelogo-table-top {
  height: 38mm;
  vertical-align: top;
}

.jnj.card-table td.namelogo-table-bottom {
  height: 4mm;
  padding-bottom: 0.6mm;
  vertical-align: bottom;
}

.jnj-logo-front {
  width: 32.663mm;
}

/* Right: the function and contact details, with the address at the bottom. */
.jnj.card-table-right {
  width: 40mm;
  height: 42mm;
}

.jnj.cardcontent-table {
  width: 40mm;
  height: 42mm;
  margin: 0;
  border-spacing: 0;
  border-collapse: collapse;
}

.jnj.cardcontent-table-top {
  vertical-align: top;
}

.jnj.card-table .cardcontent-table-bottom {
  vertical-align: bottom;
}

.jnj.card-large-text {
  font-family:
    johnsondisplay,
    'Johnson Display Regular',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 15pt;
  line-height: 16.5pt;
}

.jnj.spacer {
  max-height: 1.27mm;
  font-size: 1.27mm;
  line-height: 1.27mm;
}

#block-gin-content {
  height: 100%;
}

.visually-hidden,
.d-none {
  display: none;
}

/* The longer website of Cilag NL. */
.cilag-nl .jnj.card-table #website {
  font-size: 6.7pt;
}
