* {
  box-sizing: border-box;
}

:root {
  --bpp-green: #009b3a;
  --border: #888;
  --label: #999;
}

html {
  background: #eeeeee;
}

body {
  margin: 0;
  padding: 22px 10px;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.document {
  width: min(100%, 1000px);
  min-height: 1450px;
  margin: 0 auto;
  padding: 10px 25px 28px;
  background: #fff;
  border: 9px solid var(--bpp-green);
  border-bottom-width: 9px;
}

.masthead {
  min-height: 265px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #ddd;
}

.logo {
  display: block;
  width: 285px;
  max-width: 36%;
  height: auto;
  object-fit: contain;
}

.agency {
  flex: 1;
  text-align: right;
  padding-right: 5px;
}

.agency h1 {
  margin: 0 0 18px;
  color: #08652c;
  font-size: clamp(25px, 4.3vw, 46px);
  line-height: 1.12;
  font-weight: 800;
}

.agency a {
  color: #111;
  font-size: clamp(16px, 2.2vw, 23px);
  font-weight: 700;
  text-decoration: none;
}

.banner {
  margin: 0 -25px;
  padding: 21px 12px 19px;
  background: var(--bpp-green);
  color: #fff;
  text-align: center;
  font-size: clamp(24px, 4.1vw, 43px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .3px;
}

.details {
  padding: 39px 20px 0;
}

.field {
  border: 1px solid var(--border);
  padding: 7px 11px 10px;
  min-width: 0;
}

.label {
  color: var(--label);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .3px;
}

.value {
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.35;
}

.company {
  min-height: 100px;
}

.company-name {
  font-size: 27px;
  margin-top: 7px;
}

.ownership {
  min-height: 97px;
}

.italic {
  font-style: italic;
}

.three-columns {
  display: grid;
  grid-template-columns: 1fr .9fr 1fr;
}

.three-columns .field {
  min-height: 103px;
}

.three-columns .field + .field {
  border-left: 0;
}

.status {
  min-height: 87px;
  border-top: 0;
}

.categories {
  min-height: 300px;
  border-top: 0;
}

.document-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 9px 0 0;
  font-size: 17px;
}

.document-footer strong {
  font-weight: 400;
}

.document-footer a {
  color: #00e;
  text-decoration: underline;
}

@media (max-width: 620px) {
  body {
    padding: 0;
  }

  .document {
    min-height: 100vh;
    padding: 8px 12px 18px;
    border-width: 6px;
  }

  .masthead {
    min-height: 170px;
    padding: 12px;
    gap: 12px;
  }

  .logo {
    max-width: 38%;
    width: 145px;
  }

  .agency h1 {
    font-size: clamp(17px, 4vw, 25px);
  }

  .agency a {
    font-size: 14px;
  }

  .banner {
    margin: 0 -12px;
    font-size: 22px;
    padding: 15px 8px;
  }

  .details {
    padding: 22px 3px 0;
  }

  .label {
    font-size: 12px;
  }

  .value {
    font-size: 15px;
  }

  .company-name {
    font-size: 19px;
  }

  .three-columns {
    grid-template-columns: 1fr;
  }

  .three-columns .field + .field {
    border-left: 1px solid var(--border);
    border-top: 0;
  }

  .three-columns .field {
    min-height: 78px;
  }

  .status {
    min-height: 72px;
  }

  .categories {
    min-height: 190px;
  }

  .document-footer {
    font-size: 12px;
    flex-wrap: wrap;
  }
}

@media print {
  html, body {
    background: #fff;
    padding: 0;
  }

  .document {
    width: 100%;
    min-height: 0;
    margin: 0;
    border-width: 8px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  @page {
    size: A4 portrait;
    margin: 8mm;
  }
}
