/* White paper page (/quantum-workforce/) and the white paper cards on the homepage and Insights.
   Uses the tokens and role variables from tokens.css. Load after site.css, or append to the end of site.css. */

/* ---------- White paper page ---------- */
.wp-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.wp-cover { margin: 0; justify-self: center; width: min(100%, 380px); }
.wp-cover a { display: block; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 4px rgb(16 25 33 / 8%), 0 24px 48px rgb(16 25 33 / 16%); transition: transform .3s ease; }
.wp-cover a:hover { transform: translateY(-4px); }
.wp-cover img { display: block; width: 100%; height: auto; }
.wp-author { display: flex; align-items: center; gap: var(--space-3); }
.wp-author img { width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; }
.wp-author p { display: flex; flex-direction: column; font-size: 15px; line-height: 21px; }
.wp-author b { font-weight: var(--fw-ui); }
.wp-credits { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); }
.wp-with { display: flex; flex-direction: column; gap: 6px; padding-left: var(--space-8); border-left: 1px solid var(--line); }
.wp-with img { display: block; height: 44px; width: auto; } /* an exception to one-tone partner logos: Quantum Insider co-published the paper, so it keeps its colors */
@media (max-width: 640px) { .wp-with { padding-left: 0; border-left: 0; } .wp-with img { height: 38px; } }

.wp-read { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.wp-toc { position: sticky; top: 92px; }
.wp-toc summary { list-style: none; cursor: default; pointer-events: none; font-size: 20px; line-height: 26px; font-weight: var(--fw-ui); letter-spacing: .01em; text-transform: uppercase; color: var(--role-section-label); margin-bottom: var(--space-3); }
.wp-toc summary::-webkit-details-marker { display: none; }
.wp-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wp-toc a { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 21px; }
.wp-toc a span { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.wp-toc a:hover, .wp-toc a[aria-current] { color: var(--orange-text); }
.wp-toc a[aria-current] { font-weight: var(--fw-ui); }

.pdfv { scroll-margin-top: 80px; outline: none; }
.pdfv__bar { position: sticky; top: 68px; z-index: 2; display: flex; align-items: center; gap: var(--space-1); padding: 6px 8px; margin-bottom: var(--space-3); background: var(--surface); border-radius: var(--radius-full); box-shadow: 0 1px 2px rgb(16 25 33 / 8%); }
.pdfv__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink); cursor: pointer; }
.pdfv__icon:hover:not(:disabled) { background: var(--control); color: var(--orange-text); }
.pdfv__icon:disabled { opacity: .35; cursor: default; }
.pdfv__icon:focus-visible, .pdfv__count input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pdfv__count { display: inline-flex; align-items: center; gap: 6px; margin-inline: 4px; font-size: 15px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pdfv__count input { width: 3.2em; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; text-align: center; -moz-appearance: textfield; }
.pdfv__count input::-webkit-inner-spin-button, .pdfv__count input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdfv__gap { flex: 1; }
.pdfv__level { min-width: 3.4em; text-align: center; font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pdfv__stage { overflow: auto; display: flex; }
.pdfv__page { position: relative; margin-inline: auto; width: 100%; max-width: 820px; aspect-ratio: 816 / 1056; flex: none; background: #ffffff; box-shadow: 0 1px 3px rgb(16 25 33 / 10%), 0 12px 32px rgb(16 25 33 / 10%); }
.pdfv__page canvas { display: block; width: 100%; height: 100%; }
.pdfv__links a { position: absolute; border-radius: 4px; }
.pdfv__links a:hover { background: rgb(220 68 10 / 10%); }
.pdfv__links a:focus-visible { outline: 2px solid var(--focus); }
.pdfv__status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-muted); }
.pdfv__exit { display: none; }
.pdfv.is-full { display: flex; flex-direction: column; padding: 16px; background: var(--panel); }
.pdfv.is-full .pdfv__bar { position: static; }
.pdfv.is-full .pdfv__stage { flex: 1; min-height: 0; }
.pdfv.is-full .pdfv__page { margin-block: auto; }
.pdfv.is-full .pdfv__enter { display: none; }
.pdfv.is-full .pdfv__exit { display: inline; }
.pdfv__fallback { padding: var(--space-6); background: var(--surface); border-radius: var(--radius-lg); }

@media (max-width: 999px) {
  .wp-read { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .wp-toc { position: static; background: var(--surface); border-radius: var(--radius-lg); padding: 14px 20px; }
  .wp-toc summary { pointer-events: auto; cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
  .wp-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--orange-text); border-bottom: 2.5px solid var(--orange-text); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
  .wp-toc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .wp-toc[open] summary { margin-bottom: var(--space-2); }
  .wp-toc ol { border-top: 0; }
  .wp-toc li:last-child a { border-bottom: 0; }
}
@media (max-width: 960px) {
  .wp-hero { grid-template-columns: minmax(0, 1fr); }
  .wp-cover { width: min(100%, 300px); justify-self: start; }
}
@media (max-width: 640px) {
  .pdfv__zoom { display: none; }
  .pdfv__bar { top: 60px; padding: 4px; }
  .pdfv__icon { width: 36px; height: 36px; }
  .wp-cover { width: min(70%, 260px); }
}
.feature-card__with { display: flex; align-items: center; gap: var(--space-3); }
.feature-card__with img { display: block; height: 36px; width: auto; } /* Quantum Insider co-published the white paper, so its logo keeps its colors (an exception to one-tone partner logos) */
