/* reset CSS first - skip to main */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

a:has([class]) {
  text-decoration: none;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}


/* Main CSS */


@font-face {
    font-family: "orkney";
    font-weight: 200; /* light */
    src: url("fonts/orkney-light.woff2") format("woff2");
}

@font-face {
    font-family: "orkney";
    font-weight: 300; /* medium */
    src: url("fonts/orkney-medium.woff2") format("woff2");
}

@font-face {
    font-family: "orkney";
    font-weight: normal; /* regular or normal */
    src: url("fonts/orkney-regular.woff2") format("woff2");
}

@font-face {
    font-family: "orkney";
    font-weight: bold; /* light */
    src: url("fonts/orkney-bold.woff2") format("woff2");
}


/* 1. Set paper size and layout to A4 Landscape */
@page {
  /*size: A4 landscape;*/
  /*margin: 10mm;*/ /* Adjust margins to control printable area */
}

/* 2. Force the viewport to fit one A4 landscape page */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevents trailing content from spilling to page 2 */
}


/* some spacing classes */

:root {
  --spacing-xsmall: 3mm;
  --spacing-small: 6mm;
  --spacing-medium: 12mm;
  --spacing-large: 20mm;
}

.flow-xs > * + * {
  margin-block-start: var(--spacing-xsmall, 6mm);
}

.flow-s > * + * {
  margin-block-start: var(--spacing-small, 10mm);
}

.flow-m > * + *  {
  margin-block-start: var(--spacing-medium, 15mm);
}

.flow-l > * + *  {
  margin-block-start: var(--spacing-large, 20mm);
}

/* 3. Prevent page breaks inside container blocks */
.wrapper {
  page-break-inside: avoid;
  break-inside: avoid;
}


body {
  font-family: orkney;
  color: #19234D;
}

/* print styles - LANDSCAPE is assumed for now */
.wrapper {
  display: grid;
  grid-template-columns: 1fr;
  height: 210mm;
  padding: 15mm;

}

.big-logo {
  position: absolute;
  left: -40mm;
  top: -10mm;
  z-index: 100;
}

.big-logo img {
  height: 140mm;
}

.cert-frame {
  border: 3px solid #84BF41;
  padding: 14mm 50mm;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.cert-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.cert-footer {
  position: absolute;
  bottom: 4mm;
  right: 6mm;
}

.cert-footer img {
  width: 3.6cm;
}

.logos {
  display: flex;
  gap: 20mm;
}

.logos img {
  height: 13mm;
}

.cert-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-medium);
  /*margin-block-start: var(--spacing-medium);*/
}


.cert-title {
  font-size: 3em;
  text-align: center;
  margin: 0;
}

.cert-subtitle {
  font-size: 2.3em;
  line-height: 1.3;
}

.cert-field {
  text-align: center;
  border-style: dotted; 
  border-width: 0 0 4px 0;
  border-color: #333;
}

.cert-details {
  display: flex;
  justify-content: space-around;
  text-align: center;
}


.cert-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20mm;
  text-align: center;
  /*margin-block-end: var(--spacing-medium);*/
}

.cert-signatures__item {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.cert-signatures__item img {
  height: 17mm;
}

.cert-signatures__name {
  font-weight: bold;
}

.cert-signatures__title {
  font-weight: 200;
}

/* hide the cookie stuff */
.cookieWarning {
  display: none;
}
