#publication-text h1,
#publication-text h2,
#publication-text h3,
#publication-text h4,
#publication-text h5,
#publication-text h6 {
  font-size: var(--bs-body-font-size);
  font-weight: bold;
}

#publication-text table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

#publication-text table>thead>tr>th,
#publication-text table>tbody>tr>th,
#publication-text table>tfoot>tr>th,
#publication-text table>thead>tr>td,
#publication-text table>tbody>tr>td,
#publication-text table>tfoot>tr>td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

#publication-text table>thead>tr>th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

#publication-text table>caption+thead>tr:first-child>th,
#publication-text table>colgroup+thead>tr:first-child>th,
#publication-text table>thead:first-child>tr:first-child>th,
#publication-text table>caption+thead>tr:first-child>td,
#publication-text table>colgroup+thead>tr:first-child>td,
#publication-text table>thead:first-child>tr:first-child>td {
  border-top: 0;
}

#publication-text table>tbody+tbody {
  border-top: 2px solid #dee2e6;
}

#publication-text table table {
  background-color: #fff;
}

#publication-text table {
  border: 1px solid #dee2e6;
}

#publication-text table>thead>tr>th,
#publication-text table>tbody>tr>th,
#publication-text table>tfoot>tr>th,
#publication-text table>thead>tr>td,
#publication-text table>tbody>tr>td,
#publication-text table>tfoot>tr>td {
  border: 1px solid #dee2e6;
}

#publication-text table>thead>tr>th,
#publication-text table>thead>tr>td {
  border-bottom-width: 2px;
}


#featured .site-label {
  color: rgba(255, 255, 255, .75);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#featured h1 {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 1.5rem;
}

#featured .useful-links>div,
#featured .useful-links>a {
  padding: .35rem 1rem;
  border-radius: 50rem;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
}

#featured .useful-links>a {
  text-decoration: none;
  transition: background .2s;
}

#featured .useful-links>a:hover {
  background: rgba(255, 255, 255, .18);
}

#publication-info {
  background: #fff;
  border: 1px solid rgba(14, 94, 170, .1);
  border-radius: 1rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 6px 24px rgba(14, 94, 170, .08);
}

#publication-info .entity-title {
  border-bottom: 1px solid rgba(78, 133, 186, 0.3) !important;
  mask-image: linear-gradient(to left, black calc(100% - 5rem), transparent 100%), linear-gradient(to right, black calc(100% - 5rem), transparent 100%);
  mask-composite: intersect;
}

#back-to-top .bi {
  display: inline-block;
  transition: transform .2s ease;
}

#back-to-top:hover .bi {
  transform: translateY(-3px);
}

@media print {
  @page printing {
    size: A4;
    margin: 2cm 1.5cm;
    font-family: "Roboto", sans-serif;
    text-align: center;
    font-size: 12pt;
    padding: 5px;
    margin-bottom: 15px;
    font-weight: bold;

    @top-left {
      content: "";
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
    }

    @top-right {
      content: "";
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
    }

    @top-center {
      content: "";
      border-bottom: 2px solid var(--primary);
    }

    @bottom-center {
      content: counter(page);
      margin-top: -20pt;
    }

    @bottom-right {
      content: "";
      margin-top: -20pt;
    }
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  header,
  footer,
  #weekly,
  .useful-links>a,
  .curve,
  #back-to-top,
  aside,
  #featured {
    display: none !important;
  }

  #publication-info {
    page: printing;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  #publication-info h1 {
    font-size: 1.5rem !important;
  }

  #publication-text img {
    page-break-after: always !important;
    display: block;
  }

  /* Style for printing URLs and titles */
  a[href] {
    color: #000;
    text-decoration: none;
  }

  /* Improve table printing */
  table {
    width: 100% !important;
    border-collapse: collapse;
  }

  th,
  td {
    border: 1px solid #000;
    padding: 8px;
  }

  th {
    background-color: #eee;
  }

  /* Page breaks */
  .page-break {
    page-break-before: always;
  }
}
