/* ==========================================================================
   Promptly Found: homepage structure layer
   Load after home-depth.css. Every rule is scoped to html.pfm, a class that
   BaseLayout puts on every page. The rules every page needs (page width, section
   headings, pill links, panels, header) are in site-modern.css. The copy does
   not change. The layer changes the page grid, puts the hero and the crawler table on the dark
   theme tokens, and draws each figure as a chart built from the numbers
   that are already in the markup.
   ========================================================================== */

.pfm .pf-wrap { padding-top: 0; }

/* ---- Section heads ------------------------------------------------------- */
.pfm .pf-block { margin-top: 152px; }
/* headings only: the paragraph under each heading is not shown */
.pfm .pf-bhead p { display: none; }

/* ---- Hero: a dark band on a 12-column grid -------------------------------
   The text column dissolves (display: contents) so the headline, the lede,
   the figure and the proof row each take their own place on the grid. */
.pfm .pf-home-hero {
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr; column-gap: 32px; row-gap: 0;
  align-items: end; padding: 104px 0 0; color: var(--ink);
}
.pfm .pf-home-hero > div { display: contents; }
.pfm .pf-home-hero::before {
  top: calc(var(--header-height) * -1 - 1px); bottom: 0;
  background: var(--paper);
  -webkit-mask-image: none; mask-image: none;
}
.pfm .pfx-field {
  top: 0; height: 100%; filter: brightness(1.9); opacity: .75;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 62%);
}
.pfm .pf-home-hero h1 {
  grid-column: 1 / span 8; grid-row: 1 / span 3; margin: 0;
  font: 400 clamp(56px, 7.6vw, 148px)/.92 var(--font-sans); letter-spacing: -.042em; word-spacing: .04em;
  font-variation-settings: "wdth" 88;
}
.pfm .pf-home-hero .pf-hero__lede { grid-column: 9 / -1; grid-row: 1; margin: 0 0 28px; max-width: none; font-size: 20px; line-height: 30px; }
.pfm .pf-hero__cta { grid-column: 9 / -1; grid-row: 2; margin: 0 0 14px; }
.pfm .pf-home-hero .pf-search { grid-column: 9 / -1; grid-row: 3; max-width: none; margin-bottom: 12px; border-radius: 10px; }

/* the figure: four ruled columns on the hero grid, with no card round them.
   The citation numbers already join the cited pages to the answer, so no
   lines are drawn between the columns. */
.pfm .pf-anatomy {
  grid-column: 1 / -1; grid-row: 4; position: relative; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.25fr);
  column-gap: 0; align-items: start; margin: 88px 0 0; padding: 0;
  border: 0; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; transform: none;
}
/* no caption, tag or footnote on the figure. The heading stays in the markup,
   hidden, because the figure takes its accessible name from it. */
.pfm .pf-anatomy__top,
.pfm .pf-anatomy__foot,
.pfm .pf-hero__scale > span:first-child { display: none; }
.pfm .pf-anatomy__cols { display: contents; }
.pfm .pf-anatomy__q,
.pfm .pf-anatomy__cols > div,
.pfm .pf-anatomy__ans {
  align-self: stretch; margin: 0; padding: 28px 40px 40px; border: 0; border-left: 1px solid var(--line);
  border-radius: 0; background: none; box-shadow: none; transform: none;
}
.pfm .pf-anatomy__q { grid-column: 1; padding-left: 0; border-left: 0; font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
.pfm .pf-anatomy__q.pfx-sent { animation: none; }
.pfm .pf-anatomy__ans { grid-column: 4; padding-right: 0; font-size: 22px; line-height: 32px; color: var(--ink); }
.pfm .pf-anatomy__ans .pf-anatomy__step { color: var(--ink-2); }
.pfm .pf-anatomy__ans .pf-anatomy__step b { background: var(--ink); color: var(--paper); opacity: 1; }
.pfm .pf-anatomy__ans sup { color: var(--accent); }
.pfm .pf-anatomy__step { margin-bottom: 14px; }
.pfm .pf-anatomy__sub { margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.pfm .pf-anatomy__src { padding-block: 10px; }
.pfm .pf-anatomy__src span { overflow-wrap: anywhere; }
.pfm .pf-anatomy__src.pfx-hot { background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: none; }

/* proof: the four counts run on as one line of large type, not as a grid.
   The numbers are in full ink and the words after them are quieter. */
.pfm .pf-hero__proof {
  grid-column: 1 / -1; grid-row: 5; display: block; max-width: 34em; margin: 72px 0 0; padding: 0; border: 0;
  font: 300 44px/56px var(--font-sans); letter-spacing: -.028em; font-variation-settings: "wdth" 90;
  text-wrap: balance;
}
.pfm .pf-hero__proof::before { display: none; }
.pfm .pf-hero__proof > div { display: inline-block; margin-right: .75em; }
.pfm .pf-hero__proof dd,
.pfm .pf-hero__proof dt { display: inline-block; font: inherit; letter-spacing: inherit; font-variation-settings: inherit; }
.pfm .pf-hero__proof dd { margin-right: .22em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pfm .pf-hero__proof > div:first-child dd { color: var(--ink); }
.pfm .pf-hero__proof dt { color: var(--ink-3); }
.pfm .pf-hero__scale { grid-column: 1 / -1; grid-row: 6; margin: 56px 0 0; padding: 18px 0 22px; border-top: 1px solid var(--line); }

/* ---- Findings: one panel, a bar under each figure -------------------------
   The track is 0 to 100%. The filled part is the figure (--pfm-v). */
.pfm .pf-findings-home { gap: 0; border: 1px solid var(--line); border-radius: var(--pfm-r); overflow: hidden; }
.pfm .pf-findings-home a {
  gap: 0; margin: 0; padding: 36px 36px 30px;
  border-top: 0; border-radius: 0; background: none; transition: background-color .25s;
}
.pfm .pf-findings-home a + a { border-left: 1px solid var(--line); }
.pfm .pf-findings-home a::before,
.pfm .pf-findings-home a::after { display: none; }
.pfm .pf-findings-home a:hover { background: var(--panel); }
.pfm .pf-findings-home__num { font-size: 84px; line-height: 80px; color: var(--ink); font-variation-settings: "wdth" 90; }
.pfm .pf-findings-home .pfm-share { margin: 22px 0 18px; }
.pfm .pf-findings-home__title { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); text-decoration: none; }
.pfm .pf-findings-home__label { margin-bottom: 26px; }

/* ---- Tools: heading on the left, the tools as rows on the right ---------- */
.pfm section[aria-labelledby="tools"] {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 96px;
  align-items: start; padding-block: 0;
}
.pfm section[aria-labelledby="tools"]::before { display: none; }
.pfm section[aria-labelledby="tools"] .pf-bhead { display: block; margin: 0; }
.pfm section[aria-labelledby="tools"] .pf-bhead .pf-more { display: inline-block; margin-top: 28px; }
.pfm section[aria-labelledby="tools"] .pf-entries { grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--pfm-r); overflow: hidden; }
.pfm section[aria-labelledby="tools"] .pf-entry {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; align-items: start;
  padding: 30px 32px; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none;
  transition: background-color .25s;
}
.pfm section[aria-labelledby="tools"] .pf-entry + .pf-entry { border-top: 1px solid var(--line); }
.pfm section[aria-labelledby="tools"] .pf-entry:hover { transform: none; box-shadow: none; background: var(--panel); }

/* ---- Six sections: the library as a bar chart ----------------------------
   One row for each section. The bar is the number of documents (--pfm-v). */
.pfm .pf-sections { display: block; max-width: none; border: 1px solid var(--line); border-radius: var(--pfm-r); overflow: hidden; }
.pfm .pf-sections .pf-section {
  display: grid; grid-template-columns: 44px minmax(0, 13rem) minmax(0, 1fr) minmax(0, 24rem);
  align-items: center; column-gap: 32px; min-height: 0; padding: 22px 32px;
  border: 0; border-radius: 0; background: none; box-shadow: none; transform: none;
  transition: background-color .25s;
}
.pfm .pf-sections .pf-section + .pf-section { border-top: 1px solid var(--line); }
.pfm .pf-sections .pf-section:hover { background: var(--t); transform: none; box-shadow: none; }
.pfm .pf-sections .pf-section > svg { position: static; grid-column: 1; grid-row: 1; width: 44px; height: 44px; transform: none; }
.pfm .pf-sections .pf-section > div { display: contents; }
.pfm .pf-sections .pf-section h3 { grid-column: 2; grid-row: 1; font-size: 30px; line-height: 34px; }
.pfm .pf-sections .pf-section p { grid-column: 3; grid-row: 1; margin: 0; max-width: 34em; }
.pfm .pf-sections .pf-section__count { grid-column: 4; grid-row: 1; display: grid; gap: 8px; }
.pfm .pf-sections .pf-section__count::before {
  content: ""; width: calc(var(--pfm-v, 0) * 100%); height: 10px; border-radius: 3px;
  background: var(--h); transform-origin: 0 50%; transition: scale .9s cubic-bezier(.2, .7, .2, 1) .25s;
}
.pfm .pf-sections .pf-section[data-pfx]:not(.pfx-in) .pf-section__count::before { scale: 0 1; }

/* ---- Recently reviewed: a scale of 100 for the lead, rings at the side --- */
.pfm .pf-lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.pfm .pf-lead__main { gap: 14px; padding: 36px; border: 1px solid var(--line); border-radius: var(--pfm-r); transition: background-color .25s; }
.pfm .pf-lead__main:hover { background: var(--panel); }
.pfm .pf-lead__main h3 { font-size: 48px; line-height: 52px; }
.pfm .pf-lead__main .pf-figstrip { align-items: end; column-gap: 28px; row-gap: 24px; margin: 0 0 22px; padding: 0; border: 0; }
.pfm .pf-lead__main .pf-figstrip::before { display: none; }
.pfm .pf-lead__main .pf-figstrip__fig { font-size: 120px; color: var(--ink); }
.pfm .pf-lead__main .pf-figstrip figcaption { padding-bottom: 8px; }
.pfm .pfm-ticks { grid-column: 1 / -1; display: flex; gap: 3px; height: 88px; }
.pfm-ticks i { flex: 1; border-radius: 1.5px; background: var(--pfm-off); }
.pfm-ticks i.on { background: var(--accent); transition: background-color .25s calc(var(--k, 0) * 12ms + 250ms); }
.pfm [data-pfx]:not(.pfx-in) .pfm-ticks i.on { background: var(--pfm-off); }

.pfm .pf-lead__side { grid-auto-rows: 1fr; border: 1px solid var(--line); border-radius: var(--pfm-r); overflow: hidden; }
.pfm .pf-lead__side a {
  grid-template-columns: 84px minmax(0, 1fr); gap: 26px; align-items: center; margin: 0; padding: 24px 28px;
  translate: none; transition: background-color .25s;
}
.pfm .pf-lead__side a::before { display: none; }
.pfm .pf-lead__side a:hover { translate: none; background: var(--panel); }
.pfm .pf-lead__side .pf-plate { aspect-ratio: 1; overflow: visible; border-radius: 0; background: none; }
.pfm .pfm-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.pfm-ring circle { fill: none; stroke-width: 7; }
.pfm-ring .t { stroke: var(--pfm-off); }
.pfm-ring .v { stroke: var(--accent); transition: stroke-dasharray 1.1s cubic-bezier(.2, .7, .2, 1) .3s; }
.pfm [data-pfx]:not(.pfx-in) .pfm-ring .v { stroke-dasharray: 0 100; }
.pfm .pf-lead__side .pf-plate__num { position: relative; font-size: 21px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }

/* ---- Reading path: three chapters in one panel (the track is in site-modern.css) */
.pfm .pf-steps3 { column-gap: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--pfm-r); overflow: hidden; }
.pfm .pf-steps3 .pf-entry { align-content: start; padding: 30px 32px 32px; border-top: 0; transition: background-color .25s; }
.pfm .pf-steps3 .pf-entry + .pf-entry { border-left: 1px solid var(--line); }
.pfm .pf-steps3 .pf-entry:hover { background: var(--panel); }

/* ---- Smaller screens ----------------------------------------------------- */
@media (max-width: 1280px) {
  .pfm .pf-anatomy { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1.2fr); }
  .pfm .pf-anatomy__q { font-size: 24px; line-height: 32px; }
  .pfm .pf-anatomy__q, .pfm .pf-anatomy__cols > div, .pfm .pf-anatomy__ans { padding-inline: 24px; }
  .pfm .pf-anatomy__q { padding-left: 0; }
  .pfm .pf-anatomy__ans { padding-right: 0; font-size: 19px; line-height: 28px; }
  .pfm .pf-sections .pf-section { grid-template-columns: 44px minmax(0, 11rem) minmax(0, 1fr) minmax(0, 14rem); }
}
@media (max-width: 1000px) {
  .pfm .pf-block { margin-top: 96px; }
  .pfm .pf-home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 56px; }
  .pfm .pf-home-hero > div > *, .pfm .pf-anatomy,
  .pfm .pf-home-hero .pf-hero__lede, .pfm .pf-home-hero .pf-search { grid-column: 1; grid-row: auto; }
  .pfm .pf-home-hero h1 { margin-bottom: 24px; }
  .pfm .pf-anatomy { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .pfm .pf-anatomy > *, .pfm .pf-anatomy__cols > div { grid-column: 1; }
  .pfm .pf-anatomy__q, .pfm .pf-anatomy__cols > div, .pfm .pf-anatomy__ans { padding: 22px 0 26px; border-left: 0; border-top: 1px solid var(--line); }
  .pfm .pf-anatomy__q { border-top: 0; }
  .pfm .pf-hero__proof { margin-top: 40px; font-size: 28px; line-height: 38px; }
  .pfm .pf-hero__cta { margin-top: 32px; }
  .pfm .pf-hero__scale { margin-top: 32px; }
  .pfm .pf-findings-home, .pfm .pf-lead, .pfm .pf-steps3,
  .pfm section[aria-labelledby="tools"], .pfm section[aria-labelledby="tools"] .pf-entry { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .pfm section[aria-labelledby="tools"] .pf-entry { row-gap: 6px; }
  .pfm .pf-findings-home a + a, .pfm .pf-steps3 .pf-entry + .pf-entry { border-left: 0; border-top: 1px solid var(--line); }
  .pfm .pf-sections .pf-section { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; }
  .pfm .pf-sections .pf-section p, .pfm .pf-sections .pf-section__count { grid-column: 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .pfm .pf-lead__main { padding: 24px; }
  .pfm .pf-lead__main .pf-figstrip__fig { font-size: 72px; }
  .pfm .pfm-ticks { height: 40px; gap: 2px; }
}
