.whitepaper-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1em 5rem 1em;
}

.whitepaper-hero {
  margin-bottom: 4rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--bs-secondary-color);
  margin-bottom: .75rem;
}

.whitepaper-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.whitepaper-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.25;
  max-width: 760px;
  color: var(--bs-secondary-color);
}

.whitepaper-abstract {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 780px;
  margin-top: 2rem;
}

.whitepaper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--bs-secondary-color);
  font-size: .95rem;
}

.whitepaper-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 1.25rem;
  color: var(--bs-border-color);
}

.whitepaper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.whitepaper-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 2400px);
  gap: 2rem;
  align-items: start;
}

.whitepaper-sidebar {
  font-size: .95rem;
}

.whitepaper-sidebar-sticky {
  position: sticky;
  top: 7rem;
}

.whitepaper-sidebar h2 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bs-secondary-color);
}

.whitepaper-toc ol,
.whitepaper-toc {
  list-style: none;
  padding-left: 0;
}

.whitepaper-toc li {
  margin-bottom: .4rem;
}

.whitepaper-toc .toc-subitem {
  padding-left: 1rem;
  font-size: .9rem;
}

.whitepaper-toc a {
  text-decoration: none;
  color: inherit;
}

.whitepaper-toc a:hover {
  text-decoration: underline;
}

.whitepaper-content {
  font-size: 1.05rem;
  line-height: 1.75;
  border-left: 1px solid #bbbbbb;
  padding-left: 2em;
}

.whitepaper-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.whitepaper-content h3 {
  font-size: 1.35rem;
  margin-bottom: .75rem;
}

.wp-callout,
.wp-sidenote,
.wp-glossary {
  border-left: 4px solid #00796b;
  background: rgba(0, 0, 0, .025);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  border-radius: .75rem;
}

.wp-callout h3,
.wp-sidenote strong,
.wp-glossary strong {
  display: block;
  margin-bottom: .35rem;
}

.wp-quote {
  border-left: 4px solid var(--bs-border-color);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--bs-secondary-color);
}

.wp-quote cite {
  display: block;
  margin-top: .75rem;
  font-size: .9rem;
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .95rem;
}

.wp-table th,
.wp-table td {
  border: 1px solid var(--bs-border-color);
  padding: .75rem;
  vertical-align: top;
}

.wp-table th {
  background: rgba(0, 0, 0, .04);
}

.whitepaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, .333333333fr));
  gap: 1.25rem;
}

.whitepaper-card,
.whitepaper-document {
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--bs-body-bg);
  position: relative;
}

.whitepaper-card::before,
.whitepaper-document::before {
  content: '';
  position: absolute;
  height: 3rem;
  width: 3rem;
  z-index: 100;
  background-color: transparent;
  top: -1px;
  right: -1px;
  border-radius: 0 0 0 1rem;
  border-width: 0px 0px 1px 1px;
  border-color: var(--bs-border-color);
  border-style: solid;
}

.whitepaper-card::after,
.whitepaper-document::after {
  content: '';
  position: absolute;
  height: 0rem;
  width: 0rem;
  z-index: 99;
  background-color: #e8f5e9;
  top: -1px;
  right: -1px;
    width: 0; height: 0;
  border-style: solid;
  border-width: 0px 3rem 3rem 0px;
  border-color: transparent transparent #fff transparent;
}

.whitepaper-card h2 {
  font-size: 1.35rem;
  margin: .75rem 0;
}

.whitepaper-card h2 a {
  text-decoration: none;
  color: inherit;
}

.whitepaper-card-meta,
.whitepaper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--bs-secondary-color);
  font-size: .85rem;
}

.whitepaper-tag {
  display: inline-block;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: .2rem .55rem;
  text-decoration: none;
  color: inherit;
  font-size: .8rem;
}

@media (max-width: 1220px) {
  .whitepaper-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, .5fr));
  }

}

@media (max-width: 900px) {
  .whitepaper-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .whitepaper-sidebar-sticky {
    position: static;
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 1rem;
  }

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

.print-only {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 24mm 16mm 24mm 16mm;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  .print-only {
    display: block;
  }

  .no-print,
  .site-header,
  .site-footer,
  #megaLayer,
  #mobileNav,
  .whitepaper-actions,
  .whitepaper-hero {
    display: none !important;
  }

  .whitepaper-page {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .whitepaper-document {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
  }
  .whitepaper-document::after,
  .whitepaper-document::before {
    display: none;
  }

  .whitepaper-print-cover {
    height: 100vh;
    page-break-after: always;
    break-after: page;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .whitepaper-print-cover-inner {
    max-width: 150mm;
    margin: 0 auto;
    text-align: left;
  }

  .whitepaper-print-cover .section-kicker {
    font-size: 9pt;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10mm;
    color: #555 !important;
  }

  .whitepaper-print-cover h1 {
    font-size: 32pt;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0 0 8mm;
  }

  .whitepaper-print-cover .whitepaper-subtitle {
    font-size: 16pt;
    line-height: 1.25;
    margin: 0 0 10mm;
    color: #333 !important;
  }

  .whitepaper-print-cover .whitepaper-abstract {
    font-size: 11pt;
    line-height: 1.55;
    margin: 0 0 10mm;
  }

  .whitepaper-print-cover .whitepaper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm 6mm;
    font-size: 9pt;
    color: #555 !important;
  }

  .whitepaper-print-header {
    position: absolute;
    top: 8mm;
    left: 16mm;
    right: 16mm;
    height: 12mm;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 4mm;
    font-size: 8.5pt;
    color: #555 !important;
  }

  .print-logo-mark {
    width: 11mm;
    height: 11mm;
    border-radius: 50%;
    border: 0.35mm solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
  }

  .print-logo-mark img {
    width: 10mm;
    height: 10mm;
    object-fit: contain;
    display: block;
  }

  .print-header-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

/*
  .whitepaper-print-footer {
    position: fixed;
    bottom: 8mm;
    left: 16mm;
    right: 16mm;
    height: 10mm;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8.5pt;
    color: #555 !important;
    border-top: 0.2mm solid #ddd;
    padding-top: 2mm;
  } */

  .print-page-number::after {
    content: counter(page);
  }

  .whitepaper-layout {
    display: grid;
    grid-template-columns: 42mm 1fr;
    gap: 10mm;
  }

  .whitepaper-sidebar-sticky {
    position: static;
    top: auto;
    border-left: none;
    padding-left: 0;
  }

  .whitepaper-sidebar {
    font-size: 8.5pt;
  }

  .whitepaper-content {
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .whitepaper-content h2 {
    font-size: 16pt;
    margin-top: 0;
    page-break-after: avoid;
  }

  .whitepaper-content h3 {
    font-size: 12.5pt;
    page-break-after: avoid;
  }

  p,
  table,
  blockquote,
  .wp-callout,
  .wp-sidenote,
  .wp-glossary {
    break-inside: avoid;
  }

  a {
    color: #000 !important;
    text-decoration: none;
  }

  .wp-table th {
    background: #eee !important;
  }
}

/* =========================================================
   Whitepaper AJAX/filter cards
   ========================================================= */

.whitepaper-filter {
  border: 1px solid var(--calco-border);
  border-radius: var(--calco-radius-lg);
  background: var(--calco-surface);
  box-shadow: var(--calco-shadow-sm);
}

.whitepaper-filter.is-loading {
  opacity: 0.82;
}

.whitepaper-results[aria-busy="true"] {
  opacity: 0.65;
  transition: opacity 160ms ease;
}

.whitepaper-card--clickable {
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.whitepaper-card--clickable:hover,
.whitepaper-card--clickable:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--calco-shadow-lg);
  border-color: rgba(0, 121, 107, 0.35);
}

.whitepaper-card--clickable:focus {
  outline: 3px solid rgba(0, 121, 107, 0.25);
  outline-offset: 3px;
}

.whitepaper-card-title-link {
  color: inherit;
  text-decoration: none;
}

.whitepaper-card-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.whitepaper-card a,
.whitepaper-card button,
.whitepaper-card input,
.whitepaper-card select,
.whitepaper-card textarea,
.whitepaper-card label {
  position: relative;
  z-index: 2;
}

.whitepaper-meta-link {
  color: inherit;
  text-decoration: none;
}

.whitepaper-meta-link:hover,
.whitepaper-meta-link:focus,
.whitepaper-tag:hover,
.whitepaper-tag:focus {
  color: var(--calco-primary);
  border-color: rgba(0, 121, 107, 0.35);
}

  .wp-whitepaper-table {
    table-layout: fixed;
  }

  .wp-whitepaper-table th,
  .wp-whitepaper-table td {
    vertical-align: middle;
  }

  .wp-col-title {
    width: 42%;
  }

  .wp-col-template {
    width: 26%;
  }

  .wp-col-status {
    width: 11%;
    white-space: nowrap;
  }

  .wp-col-actions {
    width: 21%;
    white-space: nowrap;
  }

  .wp-paper-meta-row td {
    background: rgba(13, 110, 253, 0.055);
    border-top: 2px solid rgba(13, 110, 253, 0.22);
    border-bottom: 0;
    padding-top: 0.55rem;
    padding-bottom: 0.45rem;
  }

  .wp-paper-row {
    background: rgba(13, 110, 253, 0.035);
  }

  .wp-paper-row:hover {
    background: rgba(13, 110, 253, 0.07);
  }

  .wp-paper-marker {
    color: var(--bs-primary);
    font-size: 1rem;
  }

  .wp-locale-row {
    background: #fff;
  }

  .wp-locale-row:hover {
    background: rgba(0, 0, 0, 0.025);
  }

  .wp-locale-default {
    background: rgba(25, 135, 84, 0.035);
  }

  .wp-tree-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-left: 2rem;
    min-height: 3.25rem;
  }

  .wp-tree-branch {
    color: var(--bs-secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    flex: 0 0 1.4rem;
    font-size: 1rem;
  }

  .wp-tags-row td {
    background: rgba(0, 0, 0, 0.012);
    border-top: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.55rem;
  }

  .wp-tags-cell {
    padding-left: 4.05rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
  }

  .wp-status-badge {
    min-width: 5.8rem;
  }

  .wp-template-code {
    max-width: 100%;
  }

  .min-w-0 {
    min-width: 0;
  }

  @media (max-width: 1199.98px) {
    .wp-whitepaper-table {
      table-layout: auto;
    }

    .wp-col-title,
    .wp-col-template,
    .wp-col-status,
    .wp-col-actions {
      width: auto;
    }
  }