@page {
  size: A4;
  margin: 12mm;
}

@media print {
  /* remove browser default margins so @page margins are the only ones */
  html, body {
    margin: 0;
    padding: 0;
  }

  /* Fit cover within the printable area (A4 height 297mm - 24mm margins = 273mm) */
  .cover-page {
    height: 273mm;
    overflow: hidden;
  }
}

/* Cover page container */
.cover-page {
  width: 21cm;
  height: 29.7cm;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* The logo is in .header (outside .cover-page) */
.header {
  position: absolute;
  top: 1cm;
  left: 1cm;
  z-index: 50; /* above cover background/gradient */
}

/* Ensure the img itself behaves nicely */
.header .logo {
  display: block;
  max-width: 9cm; /* adjust as needed */
  height: auto;
  box-shadow: none !important;
}

/* Cover background styling */
.cover-page .background {
  position: absolute;
  left: 0;
  bottom: 100px;
  width: 100%;
  height: 360px;
  z-index: 1;
  background-image: url('../assets/landing-background.png');
  background-size: 170% auto;
  background-position: left -60px bottom;
  background-repeat: no-repeat;
}

/* Gradient overlay */
.cover-page .background::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #fff 0%,
    rgba(255,255,255,0.92) 14%,
    rgba(255,255,255,0.45) 39%,
    rgba(255,255,255,0) 100%
  );
}
/* Cover title block */
.cover-page .cover-title {
  position: absolute;
  right: 80px;       /* distance from the right edge */
  bottom: 450px;

  /* Make the block stretch leftwards from the right edge */
  left: 80px;        /* distance from the left edge (match right for symmetry) */
  width: auto;       /* don't constrain to 60% */

  text-align: right;
  z-index: 10;

  /* Let wrapping happen if needed */
  white-space: normal;
}

.cover-page .cover-title .main-title {
  font-size: 38px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #222;
  letter-spacing: -0.01em;
  line-height: 1.05;

  /* allow right-align to work naturally */
  display: block;
  white-space: normal; /* remove nowrap so it can wrap if needed */
}

.cover-page .cover-title .subtitle {
  margin-top: 10px;
  margin-right: 0;   /* remove the extra nudge */
  font-size: 22px;
  color: #63666A;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  text-align: right;
}

.cover-page .cover-title .release {
  margin-top: 16px;
  font-size: 17px;
  color: #26890D;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  text-align: right;
}

.cover-page .cover-title .main-title .decompose {
  color: #26890D; /* same green as release */
}

/* Print all button - same style as primary button */
/* Print all button - same style as primary button */
.tn-print-btn,
#print-all-btn {
  background: var(--accessible-blue-007-cb-0, 
#007CB0);
  border: 1px solid var(--accessible-blue-007-cb-0, 
#007CB0);
  color: 
#fff;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  border-radius: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
}

:root {
  /* Define the accent color */
  --md-accent-fg-color: #26890D;
  /* Optional: define a slightly transparent version for hover effects */
  --md-accent-fg-color--transparent: #26890D1A; 
}

/* Print all button hover style */
.tn-print-btn:hover,
#print-all-btn:hover {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.16) 100%), #007CB0;
  border: 1px solid #007CB0;
}

/* Hide print-site section wrapper headings so section index pages don't render a duplicate H1. */
.print-page.md-section > h1 {
  display: none;
}