/* White papers: the paper pages under /thought-leadership/white-papers/<slug>/
   and the cards on the White papers listing. Uses the site's tokens from
   styles.css and refresh.css; nothing here applies outside these pages. */

/* The reading column the blog posts use */
.wp-container{max-width:760px;}

/* Byline under the hero: the Aprize mark, "Aprize", date and reading time */
.wp-byline-section{padding-top:32px;padding-bottom:0;}
.wp-byline{display:flex;gap:14px;align-items:center;border-top:1px solid var(--gray-200);border-bottom:1px solid var(--gray-200);padding:16px 0;}
.wp-byline-mark{width:46px;height:40px;flex:none;}
.wp-byline-name{font-weight:700;color:var(--text-primary);font-size:0.95rem;}
.wp-byline-meta{font-size:0.85rem;color:var(--text-muted);}

/* The paper */
.wp-paper{padding-top:32px;}
.wp-paper .wp-container{overflow-wrap:break-word;}
.wp-paper h2[id],.wp-paper h3[id]{scroll-margin-top:96px;}
/* The lettered sub-list under "Crowding Out" (Part 1). The site's article list
   rules only style lists without a class. */
.wp-paper ol.wp-ol-alpha{list-style:lower-alpha;margin:0.45rem 0 0;}
.wp-paper ol.wp-ol-alpha > li{font-size:1rem;}

/* Equations: MathML for Part 1's typeset formulas, plain text for the ones the
   papers set as text (Part 1's CLIS line, all of Part 2). */
.wp-paper math{font-family:"Cambria Math","STIX Two Math","Latin Modern Math",math;}
.wp-eq{margin:0 0 1.15rem;text-align:center;color:var(--text-primary);}
.wp-eq math[display="block"]{font-size:1.15em;margin:0;}
.wp-eq-text{font-family:Cambria,"STIX Two Text",Georgia,"Times New Roman",serif;font-size:1.1rem;line-height:1.6;}
.wp-paper p.wp-eq-text{line-height:1.6;}
.wp-eq-italic{font-style:italic;}
.wp-eq-cases p{margin:0 0 0.35rem;line-height:1.6;}
.wp-eq-cases p:last-child{margin-bottom:0;}
.wp-eq-f,.wp-eq-when,.wp-nowrap{white-space:nowrap;}
.wp-eq-when{margin-left:1.5em;}
@media (max-width:480px){
  .wp-eq math[display="block"]{font-size:1em;}
  .wp-eq-text{font-size:1rem;}
  .wp-eq-cases .wp-eq-when{margin-left:0.6em;}
}
@media (max-width:360px){
  .wp-eq math[display="block"]{font-size:0.9em;}
}

/* Tables. A wide table scrolls inside its own box, so phones never scroll the page
   sideways. The box's background draws a soft shadow on whichever edge has more
   table to scroll to (the white "local" layers cover it at the ends), which is
   why the rows below are transparent or only tinted. */
.wp-table-scroll{overflow-x:auto;margin:0 0 1.4rem;border:1px solid var(--gray-200);border-radius:var(--radius);
  background:
    linear-gradient(to right,var(--white) 30%,rgba(255,255,255,0)) left center/40px 100% no-repeat local,
    linear-gradient(to left,var(--white) 30%,rgba(255,255,255,0)) right center/40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(13,27,75,.22),rgba(13,27,75,0)) left center/14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(13,27,75,.22),rgba(13,27,75,0)) right center/14px 100% no-repeat scroll,
    var(--white);}
.wp-table{width:100%;border-collapse:collapse;font-size:0.92rem;line-height:1.5;}
.wp-table caption{caption-side:top;padding:10px 14px;background:var(--blue-dark);color:var(--white);font-weight:700;text-align:center;}
.wp-table th,.wp-table td{padding:10px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--gray-200);color:var(--text-body);}
.wp-table thead th{font-size:0.88rem;font-weight:700;text-transform:none;letter-spacing:0;}
.wp-table tbody tr,.wp-table tbody tr:nth-child(even),.wp-table tbody tr:hover{background:transparent;}
.wp-table tbody tr:last-child th,.wp-table tbody tr:last-child td{border-bottom:none;}
.wp-table tbody th{font-weight:700;color:var(--text-primary);}
/* Part 1, "Best Case Scenario for Johnson County": the title is a dark band, as in the paper */
.wp-table--scenario thead tr{background:var(--blue-xlight);}
.wp-table--scenario thead th{color:var(--text-primary);}
.wp-table--scenario tbody th{font-weight:400;color:var(--text-body);}
/* Part 2, the LSS benchmarks by NAICS sector: navy header row, banded rows */
.wp-table--lss{min-width:660px;font-variant-numeric:tabular-nums;}
.wp-table--lss thead tr{background:var(--blue-dark);}
.wp-table--lss thead th{color:var(--white);}
.wp-table--lss tbody tr:nth-child(even),.wp-table--lss tbody tr:nth-child(even):hover{background:rgba(59,82,212,.045);}
.wp-table--lss th:first-child{white-space:nowrap;}
.wp-table--lss td:nth-child(3),.wp-table--lss td:nth-child(4){white-space:nowrap;}
.wp-table--lss th:nth-child(5),.wp-table--lss td:nth-child(5){min-width:260px;}
@media (min-width:601px){
  .wp-table--lss thead th:nth-child(3),.wp-table--lss thead th:nth-child(4){min-width:5.5em;}
}
/* Phones: the scenario table fits the screen; the LSS table scrolls, and its
   reasoning column starts on screen so it is clear there is more to the right. */
@media (max-width:600px){
  .wp-table{font-size:0.85rem;}
  .wp-table th,.wp-table td,.wp-table caption{padding:8px 10px;}
  .wp-table thead th{font-size:0.82rem;}
  .wp-table--lss{min-width:560px;}
  .wp-table--lss th:nth-child(5),.wp-table--lss td:nth-child(5){min-width:220px;}
}
@media (max-width:400px){
  .wp-table--scenario th,.wp-table--scenario td{padding:8px 7px;}
}

/* Footnotes (Part 1) */
.wp-fnref{font-size:0.75em;line-height:0;}
.wp-fnref a{text-decoration:none;font-weight:700;padding:0 2px;}
.wp-footnotes{margin-top:2.6rem;padding-top:1.2rem;border-top:1px solid var(--gray-200);}
.wp-paper ol.wp-fn-list{list-style:decimal;margin:0;}
.wp-paper ol.wp-fn-list > li{font-size:0.9rem;line-height:1.7;}
.wp-paper ol.wp-fn-list > li:target{background:var(--blue-xlight);}
.wp-paper a.wp-fnback{margin-left:2px;}

/* Previous / next at the foot of each paper */
.wp-pager{margin-top:48px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
.wp-pager .btn{white-space:normal;}

/* White papers listing: the whole card opens the paper's page (its title link
   covers the card); "Download PDF" is a separate link above that cover. */
.wp-card{position:relative;display:flex;flex-direction:column;}
.wp-card .wp-card-link{color:inherit;text-decoration:none;}
.wp-card .wp-card-link::after{content:"";position:absolute;inset:0;border-radius:inherit;}
.wp-card-actions{margin-top:auto;padding-top:10px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;}
.wp-card-actions .text-link{position:relative;z-index:1;}
