/* ==========================================================================
   Purplex Industry Search Trends — report styles

   Brand: Purplex Brand Guidelines 2026.
     Carbon Black #1E1E1E · Teal #30B4AC · White #FFFFFF (primary three)
     Charcoal #5F5E5A · Dust Grey #D0CECA (secondary)
     Approved pairings: Carbon Black + Teal, Carbon Black + Dust Grey,
     Charcoal + Dust Grey. Primary gradient: Carbon Black to Teal, balance 20%.
     Type: Figtree — ExtraBold (800) headlines, Light (300) body.
     Headlines take a teal full stop; section eyebrows take a teal number.

   Built for Purplex Bundle Templates "merged" mode, which rescopes this sheet
   to a wrapper id and applies `all: revert` inside it first. Consequences:

     - Every property is declared explicitly; nothing is inherited from the
       theme, because the reset has already discarded it.
     - No `position: fixed` and no remote stylesheet, neither of which survives
       merged mode. The sticky nav and table header use `position: sticky`,
       which does.
     - Fonts are bundled as woff2 and declared with @font-face, which the
       scoper passes through untouched.
     - The scoper strips comments and counts braces without string awareness,
       so no content: "" value below contains a brace.
   ========================================================================== */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- brand ------------------------------------------------------- */
  --pbt-black:      #1E1E1E;
  --pbt-teal:       #30B4AC;
  --pbt-white:      #FFFFFF;
  --pbt-charcoal:   #5F5E5A;
  --pbt-dust:       #D0CECA;

  /* Tints derived from the brand three, for surfaces and chart ramps. */
  --pbt-teal-deep:  #157F79;
  --pbt-teal-light: #7FD4CE;
  --pbt-teal-wash:  #EAF7F6;
  --pbt-black-soft: #2A2A2A;
  --pbt-dust-soft:  #E9E7E4;
  --pbt-paper:      #F7F6F4;

  /* --- data semantics ---------------------------------------------- */
  /* Teal carries "rising". Decline needs a colour that reads instantly at a
     glance in a dense table; the brand palette has no such tone, so this is a
     deliberate data-only extension, muted to sit with the brand greys. */
  --pbt-up:         #1B8F87;
  --pbt-up-bg:      #E4F4F2;
  --pbt-down:       #B4453A;
  --pbt-down-bg:    #FBEDEB;
  --pbt-flat:       #5F5E5A;
  --pbt-flat-bg:    #EDEBE8;

  /* --- type -------------------------------------------------------- */
  --pbt-font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
              'Helvetica Neue', Arial, sans-serif;

  /* --- metrics ----------------------------------------------------- */
  --pbt-radius:   16px;
  --pbt-radius-s: 10px;
  --pbt-max:      1240px;
  --pbt-nav-h:    60px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  margin: 0;
  padding: 0;
  font-family: var(--pbt-font);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--pbt-black);
  background: var(--pbt-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }

.pbt-report { width: 100%; overflow-x: clip; }

.pbt-wrap {
  width: 100%;
  max-width: var(--pbt-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography ---------------------------------------------------------- */

.pbt-report h1, .pbt-report h2, .pbt-report h3, .pbt-report h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--pbt-black);
}

.pbt-report h1 { font-size: clamp(2.25rem, 5.4vw, 4.125rem); }
.pbt-report h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); }
.pbt-report h3 { font-size: 1.375rem; }
.pbt-report h4 { font-size: 1.0625rem; }

/* The brand's headline full stop. */
.pbt-dot { color: var(--pbt-teal); }

.pbt-report p { margin: 0 0 1em; }
.pbt-report p:last-child { margin-bottom: 0; }
.pbt-report strong, .pbt-report b { font-weight: 700; }

.pbt-report a { color: var(--pbt-teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.pbt-report a:hover { color: var(--pbt-black); }

/* Section eyebrow: "01. YEAR ON YEAR" with a teal number. */
.pbt-eyebrow {
  display: block;
  margin: 0 0 14px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pbt-charcoal);
}
.pbt-eyebrow i { font-style: normal; color: var(--pbt-teal); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.pbt-hero {
  /* Brand primary gradient: Carbon Black to Teal, balance at 20%. */
  background: linear-gradient(115deg, var(--pbt-black) 0%, #1E1E1E 20%, var(--pbt-teal-deep) 100%);
  color: var(--pbt-white);
  padding: 56px 0 52px;
}

.pbt-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 34px;
}
.pbt-hero-top img { display: block; width: 42px; height: auto; }
.pbt-hero-top span {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.pbt-hero h1 { color: var(--pbt-white); max-width: 20ch; }
.pbt-hero h1 .pbt-dot { color: var(--pbt-teal-light); }

.pbt-hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 26px 0 0;
  font-size: .875rem;
  color: rgba(255, 255, 255, .68);
}
.pbt-hero-sub span { display: inline-flex; align-items: center; gap: 8px; }
.pbt-hero-sub span::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--pbt-teal-light);
  flex: none;
}

/* Hero dashboard -----------------------------------------------------------

   The animated dashboard on the right of the hero, from the design in "Hero
   banner animation elements". It replaced a blurred mock chart under a lock,
   and it is built from the real dataset by renderHeroPanel() in report.js —
   the numbers, the line and the bars are the same figures as the report below.

   A light surface on the dark hero gradient, as designed: it reads as the
   product itself sitting on the page.

   The motion runs once, on load, in the order the design set out — cards rise
   in, figures count up, the line draws itself, the bars grow — and then stops.
   The looping fade-out in the prototype belonged to a video that had to seam
   back to its first frame; on a page that a person scrolls, a hero that
   dismantles itself every eight seconds is only a distraction. The ambient
   glow behind the cards keeps drifting, which is the part worth keeping.

   Base states are the settled ones and every entrance is a CSS animation, so
   "reduce motion" (which switches animations off wholesale further down this
   file) lands on the finished dashboard rather than an empty frame. */

.pbt-hero-dash {
  position: relative;
  border-radius: var(--pbt-radius);
  background: var(--pbt-paper);
  padding: 14px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, .45);
  overflow: hidden;
  color: var(--pbt-black);
}

.pbt-hero-dash-fallback {
  margin: 10px 12px;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--pbt-charcoal);
}

/* Teal wash drifting behind the cards — the "ambient glow" tweak in the
   prototype, at roughly its default 0.6. */
.pbt-hero-dash-glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(52% 46% at 50% 50%, var(--pbt-teal-wash) 0%, transparent 70%);
  animation: pbt-hero-glow 18s ease-in-out infinite alternate;
}
@keyframes pbt-hero-glow {
  0%   { transform: translate(-6%, 4%); }
  100% { transform: translate(8%, -5%); }
}

.pbt-hero-dash-inner { position: relative; display: grid; gap: 10px; }

.pbt-hero-dash-card {
  background: var(--pbt-white);
  border: 1px solid var(--pbt-dust-soft);
  border-radius: 14px;
  padding: 12px 14px;
}

.pbt-hero-dash-label {
  display: block;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pbt-charcoal);
}

/* Stat cards ---------------------------------------------------------- */

.pbt-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Wide enough for the hero to be two columns: the four stats go in one row, as
   they do in the design, and the panel keeps its landscape proportions. */
@media (min-width: 1000px) {
  .pbt-hero-stats { grid-template-columns: repeat(4, 1fr); }
  .pbt-hero-stat b { font-size: 1.375rem; }
}

.pbt-hero-stat b {
  display: block;
  margin: 7px 0 3px;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.pbt-hero-stat small { display: block; font-size: .6875rem; color: var(--pbt-charcoal); }

/* Withheld figures ---------------------------------------------------------

   While the report is locked the panel shows its scope and withholds its
   findings. A bar, not a blur: blurred small type looks like a rendering fault,
   whereas a bar reads as intent — there is a figure here and it isn't yours
   yet. The faint teal sheen crossing it is the only thing that moves, which is
   what stops it looking like a broken image. */

.pbt-hero-stat-masked { display: block; }

/* The mask sizes itself in em and ch, so it has to inherit the size of the
   figure it stands in for. Without this it picks up whatever rule the
   surrounding card has for spans — in the chart readout that is the small
   caption type, and the mask comes out two-thirds too small. */
.pbt-hero-stat-masked .pbt-hero-mask { font-size: inherit; }

.pbt-hero-mask {
  display: inline-block;
  height: .72em;
  vertical-align: baseline;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(48, 180, 172, 0) 0%, rgba(48, 180, 172, .5) 50%, rgba(48, 180, 172, 0) 100%),
    linear-gradient(var(--pbt-dust), var(--pbt-dust));
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: pbt-hero-mask-sheen 3.4s ease-in-out infinite;
}
@keyframes pbt-hero-mask-sheen {
  0%, 100% { background-position: 150% 0, 0 0; }
  50%      { background-position: -50% 0, 0 0; }
}

/* The change pills keep their shape so the row still reads as a comparison,
   with nothing in them to read. */
.pbt-hero-pill-masked {
  background: var(--pbt-flat-bg);
  color: var(--pbt-charcoal);
  letter-spacing: .06em;
}

/* Panel-wide call to action, locked state only. The graphic is the most
   looked-at thing in the hero, so it may as well be the button. */
.pbt-hero-dash-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--pbt-black);
  color: var(--pbt-white) !important;
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s ease;
}
.pbt-hero-dash-cta:hover { background: var(--pbt-teal-deep); color: var(--pbt-white) !important; }
.pbt-hero-dash-cta-arrow { transition: transform .2s ease; }
.pbt-hero-dash-cta:hover .pbt-hero-dash-cta-arrow { transform: translateX(4px); }

/* Four-year comparison ------------------------------------------------ */

.pbt-hero-years { display: grid; grid-template-columns: repeat(4, 1fr); }

.pbt-hero-year { padding-left: 12px; border-left: 1px solid var(--pbt-dust-soft); }
.pbt-hero-year:first-child { padding-left: 0; border-left: none; }
/* The current year is the one the report is about, so it takes the teal rule —
   as the year-on-year blocks further down the page do. */
.pbt-hero-year.is-current { border-left: 2px solid var(--pbt-teal); }

.pbt-hero-year b {
  display: block;
  margin: 6px 0 7px;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pbt-hero-year .pbt-hero-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pbt-hero-pill-down { background: var(--pbt-down-bg); color: var(--pbt-down); }
.pbt-hero-pill-up { background: var(--pbt-up-bg); color: var(--pbt-up); }
.pbt-hero-pill-flat { background: var(--pbt-flat-bg); color: var(--pbt-flat); }

/* Chart cards --------------------------------------------------------- */

.pbt-hero-dash-card h4 {
  margin: 0;
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--pbt-black);
}
.pbt-hero-dash-card h4 + p {
  margin: 3px 0 0;
  font-size: .6875rem;
  line-height: 1.45;
  color: var(--pbt-charcoal);
}

.pbt-hero-readout { display: flex; align-items: baseline; gap: 7px; margin: 10px 0 4px; }
.pbt-hero-readout b {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pbt-hero-readout span { font-size: .6875rem; color: var(--pbt-charcoal); }

.pbt-hero-dash svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Seasonality bars ---------------------------------------------------- */

.pbt-hero-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 4px;
  margin-top: 14px;
  position: relative;
}
/* "100 is a typical month", as the card says — the dashed line is what the bars
   are being read against. */
.pbt-hero-bars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--pbt-bar-100, 50%);
  border-top: 1px dashed var(--pbt-dust);
}
.pbt-hero-bar { display: grid; justify-items: center; align-content: end; }
.pbt-hero-bar i {
  display: block;
  width: 100%;
  height: var(--pbt-bar-h);
  border-radius: 2px 2px 0 0;
  background: var(--pbt-dust);
  transform-origin: bottom;
  animation: pbt-hero-bar-grow .5s cubic-bezier(.16, .84, .44, 1) var(--pbt-d, 0s) both;
}
.pbt-hero-bar.is-peak i { background: var(--pbt-teal); }
.pbt-hero-bar em {
  font-size: .5625rem;
  font-style: normal;
  color: var(--pbt-charcoal);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
  animation: pbt-hero-fade .5s ease var(--pbt-d, 0s) both;
}
.pbt-hero-bar.is-peak em { font-weight: 700; color: var(--pbt-teal-deep); }
.pbt-hero-bar span {
  margin-top: 4px;
  font-size: .5625rem;
  color: var(--pbt-charcoal);
  height: 12px;
}

@keyframes pbt-hero-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pbt-hero-fade { from { opacity: 0; } to { opacity: 1; } }

/* Entrances ----------------------------------------------------------- */

.pbt-hero-rise { animation: pbt-hero-rise .6s cubic-bezier(.16, .84, .44, 1) var(--pbt-d, 0s) both; }
@keyframes pbt-hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  /* Twelve bars in 280px is a picket fence; the line chart still carries the
     trend, so the seasonality card steps aside. */
  .pbt-hero-barcard { display: none; }
  .pbt-hero-years { grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .pbt-hero-year:nth-child(3) { padding-left: 0; border-left: none; }
}


.pbt-hero-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 32px;
  margin: 38px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.pbt-hero-figure b {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--pbt-white);
  font-variant-numeric: tabular-nums;
}
.pbt-hero-figure span {
  display: block;
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .68);
}

/* --------------------------------------------------------------------------
   Internal edition header

   internal.html (see build-internal.js) replaces the marketing hero with this.
   Same gradient, so it still reads as the same product, but a third of the
   height: nobody internal needs to be sold the thing they are about to use.
   The one loud element is the flag saying not to send it to a client.
   -------------------------------------------------------------------------- */

.pbt-internal-head {
  background: linear-gradient(115deg, var(--pbt-black) 0%, #1E1E1E 20%, var(--pbt-teal-deep) 100%);
  color: var(--pbt-white);
  padding: 30px 0 34px;
}

.pbt-internal-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.pbt-internal-top img { display: block; width: 34px; height: auto; }

/* Who made it, in the header, because a page of numbers with no author is a
   page nobody knows who to ask about. */
.pbt-internal-byline {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(48, 180, 172, .16);
  border: 1px solid rgba(48, 180, 172, .5);
  color: var(--pbt-teal-light);
  letter-spacing: .08em;
}

.pbt-internal-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
@media (min-width: 1000px) {
  .pbt-internal-grid { grid-template-columns: 1fr 1.15fr; gap: 44px; }
}

.pbt-internal-head h1 {
  color: var(--pbt-white);
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  max-width: 22ch;
}
.pbt-internal-head h1 .pbt-dot { color: var(--pbt-teal-light); }

.pbt-internal-sub {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: .9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .74);
}

.pbt-internal-meta {
  margin: 16px 0 0;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .55);
}
.pbt-internal-meta b { color: rgba(255, 255, 255, .8); font-weight: 700; }
.pbt-report .pbt-internal-meta a { color: var(--pbt-teal-light); }
.pbt-report .pbt-internal-meta a:hover { color: var(--pbt-white); }

/* The dashboard sits flat here rather than dropping a hero-sized shadow: this
   is a working page, not a shop window. */
.pbt-internal-head .pbt-hero-dash { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }

/* --------------------------------------------------------------------------
   Sticky navigation
   -------------------------------------------------------------------------- */

.pbt-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--pbt-black);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pbt-nav-inner {
  display: flex;
  align-items: center;
  gap: 10px 26px;
  min-height: var(--pbt-nav-h);
  padding: 8px 28px;
  max-width: var(--pbt-max);
  margin: 0 auto;
  overflow-x: auto;
}

.pbt-nav-group { display: flex; align-items: center; gap: 6px; flex: none; }

.pbt-nav-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-right: 4px;
  white-space: nowrap;
}

/* Industry search, in the nav */
.pbt-nav-search-form { margin: 0; }
.pbt-industry-input {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .05);
  color: var(--pbt-white);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--pbt-font);
  font-size: .875rem;
  line-height: 1.2;
  width: 260px;
  max-width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.pbt-industry-input:focus {
  outline: none;
  border-color: var(--pbt-teal);
  background: rgba(255, 255, 255, .1);
}
.pbt-industry-input::placeholder { color: rgba(255, 255, 255, .5); }

/* Jump links */
.pbt-jump {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex: none;
}
.pbt-jump a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  white-space: nowrap;
}
.pbt-jump a:hover { background: rgba(255, 255, 255, .1); color: var(--pbt-white); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.pbt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--pbt-font);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--pbt-teal);
  color: var(--pbt-black);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.pbt-btn:hover { background: var(--pbt-teal-deep); color: var(--pbt-white); }

/* `.pbt-report a` above carries an extra class and type over `.pbt-btn`, so it
   wins on specificity and would underline every link-shaped button — and, until
   this rule also claimed `color`, painted the label teal-deep on a teal button,
   about 1.9:1. The variant rules below match this specificity and come after,
   so ghost, dark and quiet still override it. */
.pbt-report a.pbt-btn { text-decoration: none; color: var(--pbt-black); }
.pbt-report a.pbt-btn:hover { text-decoration: none; color: var(--pbt-white); }

.pbt-btn-dark, .pbt-report a.pbt-btn-dark { background: var(--pbt-black); color: var(--pbt-white); }
.pbt-btn-dark:hover, .pbt-report a.pbt-btn-dark:hover { background: var(--pbt-charcoal); color: var(--pbt-white); }

.pbt-btn-ghost, .pbt-report a.pbt-btn-ghost { background: transparent; color: var(--pbt-white); border-color: rgba(255, 255, 255, .45); }
.pbt-btn-ghost:hover, .pbt-report a.pbt-btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--pbt-white); color: var(--pbt-white); }

.pbt-btn-quiet, .pbt-report a.pbt-btn-quiet {
  background: transparent;
  color: var(--pbt-black);
  border-color: var(--pbt-dust);
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
}
.pbt-btn-quiet:hover, .pbt-report a.pbt-btn-quiet:hover { background: var(--pbt-teal-wash); border-color: var(--pbt-teal); color: var(--pbt-black); }

.pbt-report :focus-visible { outline: 3px solid var(--pbt-teal); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Sections & cards
   -------------------------------------------------------------------------- */

.pbt-section { padding: 64px 0; scroll-margin-top: calc(var(--pbt-nav-h) + 16px); }
.pbt-locked .pbt-section { padding: 48px 0; }
.pbt-section-paper { background: var(--pbt-paper); }
.pbt-section-dark { background: var(--pbt-black); color: var(--pbt-white); }

.pbt-section-head { margin: 0 0 34px; }
.pbt-section-head h2 { max-width: 32ch; }

.pbt-block { margin: 0 0 26px; scroll-margin-top: calc(var(--pbt-nav-h) + 16px); }
.pbt-block:last-child { margin-bottom: 0; }

.pbt-card {
  background: var(--pbt-white);
  border: 1px solid var(--pbt-dust);
  border-radius: var(--pbt-radius);
  padding: 28px;
}

.pbt-card-head { margin: 0 0 22px; }
.pbt-card-head h3 { margin: 0; }
.pbt-card-head p {
  margin: 6px 0 0;
  font-size: .875rem;
  color: var(--pbt-charcoal);
}

.pbt-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }
.pbt-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* Figure tiles ---------------------------------------------------------- */

.pbt-figure {
  border: 1px solid var(--pbt-dust);
  border-radius: var(--pbt-radius-s);
  background: var(--pbt-white);
  padding: 20px 22px;
}
.pbt-figure-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--pbt-charcoal);
  margin: 0 0 10px;
}
.pbt-figure-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--pbt-black);
  font-variant-numeric: tabular-nums;
}
.pbt-figure-note {
  display: block;
  margin-top: 9px;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--pbt-charcoal);
}

/* --------------------------------------------------------------------------
   Year-on-year blocks
   -------------------------------------------------------------------------- */

.pbt-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }

.pbt-year {
  padding: 20px 22px;
  border-left: 3px solid var(--pbt-dust);
}
.pbt-year:last-child { border-left-color: var(--pbt-teal); }
.pbt-year-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pbt-charcoal);
}
.pbt-year-value {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--pbt-black);
}

/* --------------------------------------------------------------------------
   Charts
   -------------------------------------------------------------------------- */

.pbt-chart { width: 100%; margin: 0; }
.pbt-chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.pbt-axis-line  { stroke: var(--pbt-dust); stroke-width: 1; }
.pbt-grid-line  { stroke: var(--pbt-dust-soft); stroke-width: 1; }
.pbt-axis-label { font-family: var(--pbt-font); font-size: 11px; font-weight: 500; fill: var(--pbt-charcoal); }
.pbt-axis-label-y { text-anchor: end; }

.pbt-line      { fill: none; stroke: var(--pbt-teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pbt-line-area { fill: url(#pbtLineFade); stroke: none; }
.pbt-line-dot  { fill: var(--pbt-teal); stroke: var(--pbt-white); stroke-width: 2; }

.pbt-bar        { fill: var(--pbt-dust); }
.pbt-bar-peak   { fill: var(--pbt-teal); }
.pbt-bar-trough { fill: var(--pbt-dust-soft); }
.pbt-bar-label  { font-family: var(--pbt-font); font-size: 10px; font-weight: 500; fill: var(--pbt-charcoal); text-anchor: middle; }
.pbt-bar-value  { font-family: var(--pbt-font); font-size: 10px; font-weight: 700; fill: var(--pbt-black); text-anchor: middle; }

.pbt-spark { display: block; width: 88px; height: 26px; overflow: visible; }
.pbt-spark path { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

.pbt-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  color: var(--pbt-charcoal);
}
.pbt-chart-legend li { display: inline-flex; align-items: center; gap: 8px; }
.pbt-chart-legend i { width: 14px; height: 3px; flex: none; display: inline-block; }

.pbt-chart-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
  min-height: 28px;
  margin: 0 0 16px;
  font-size: .875rem;
  color: var(--pbt-charcoal);
}
.pbt-chart-readout b {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--pbt-black);
  font-variant-numeric: tabular-nums;
}

.pbt-hoverline    { stroke: var(--pbt-charcoal); stroke-width: 1; stroke-dasharray: 3 3; }
.pbt-hover-target { fill: transparent; cursor: crosshair; }

/* --------------------------------------------------------------------------
   Movers
   -------------------------------------------------------------------------- */

.pbt-mover-list { margin: 0; padding: 0; list-style: none; counter-reset: pbtmover; }
.pbt-mover-list li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pbt-dust-soft);
  counter-increment: pbtmover;
}
.pbt-mover-list li:last-child { border-bottom: none; }
.pbt-mover-list li::before {
  content: counter(pbtmover);
  font-size: .75rem;
  font-weight: 700;
  color: var(--pbt-dust);
  font-variant-numeric: tabular-nums;
}

.pbt-mover-term {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--pbt-black);
  overflow-wrap: break-word;
  min-width: 0;
}
.pbt-mover-vol {
  display: block;
  margin-top: 3px;
  font-size: .75rem;
  font-weight: 300;
  color: var(--pbt-charcoal);
  font-variant-numeric: tabular-nums;
}

.pbt-delta {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pbt-delta-up   { background: var(--pbt-up-bg); color: var(--pbt-up); }
.pbt-delta-down { background: var(--pbt-down-bg); color: var(--pbt-down); }
.pbt-delta-flat { background: var(--pbt-flat-bg); color: var(--pbt-flat); }

/* --------------------------------------------------------------------------
   Category breakdown
   -------------------------------------------------------------------------- */

.pbt-breakdown { margin: 0; padding: 0; list-style: none; }
.pbt-breakdown li {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) minmax(70px, 1.8fr) auto auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pbt-dust-soft);
}
.pbt-breakdown li:last-child { border-bottom: none; }

.pbt-breakdown-label { font-size: .9375rem; font-weight: 600; color: var(--pbt-black); }
.pbt-breakdown-label small {
  display: block;
  font-size: .75rem;
  font-weight: 300;
  color: var(--pbt-charcoal);
}

.pbt-breakdown-track { height: 10px; border-radius: 2px; background: var(--pbt-dust-soft); overflow: hidden; min-width: 50px; }
.pbt-breakdown-track i { display: block; height: 100%; background: var(--pbt-teal); }

.pbt-breakdown-vol {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--pbt-black);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 560px) {
  .pbt-breakdown li { grid-template-columns: 1fr auto auto; }
  .pbt-breakdown-track { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   The gate
   -------------------------------------------------------------------------- */

.pbt-gate-section { padding: 64px 0; scroll-margin-top: calc(var(--pbt-nav-h) + 16px); }

.pbt-gate {
  background: var(--pbt-black);
  border-radius: var(--pbt-radius);
  padding: 46px;
  color: var(--pbt-white);
  max-width: 1000px;
  margin: 0 auto;
}

.pbt-gate-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 860px) { .pbt-gate-grid { grid-template-columns: 1fr 1fr; gap: 52px; } }

.pbt-gate h2 { color: var(--pbt-white); font-size: 1.875rem; }
.pbt-gate h2 .pbt-dot { color: var(--pbt-teal); }
.pbt-gate .pbt-eyebrow { color: rgba(255, 255, 255, .58); }
.pbt-gate .pbt-eyebrow i { color: var(--pbt-teal); }

.pbt-gate-list { margin: 24px 0 0; padding: 0; list-style: none; }
.pbt-gate-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .82);
}
.pbt-gate-list li::before {
  content: "";
  width: 14px;
  height: 3px;
  margin-top: 11px;
  background: var(--pbt-teal);
}

.pbt-gate-form-slot > h3 { margin: 0 0 18px; font-size: 1.125rem; color: var(--pbt-white); }

.pbt-form-placeholder {
  border: 2px dashed rgba(48, 180, 172, .6);
  border-radius: var(--pbt-radius-s);
  background: rgba(48, 180, 172, .07);
  padding: 24px;
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
}
.pbt-form-placeholder p { margin: 0 0 12px; }
.pbt-form-placeholder strong { color: var(--pbt-teal); font-weight: 700; }
.pbt-form-placeholder code {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8125rem;
  color: var(--pbt-white);
  overflow-wrap: break-word;
}

.pbt-gate-privacy { margin: 18px 0 0; font-size: .75rem; line-height: 1.5; color: rgba(255, 255, 255, .5); }

/* --------------------------------------------------------------------------
   Contact Form 7

   Both form slots sit on black, so this is a dark treatment throughout. CF7
   ships almost no styling of its own and inherits the theme's, which on a
   black panel usually means invisible labels and a stock grey button — so the
   fields are styled here rather than left to the theme.

   Structural classes (.pbt-cf7, .pbt-cf7-field, ...) come from the form
   templates in forms/, which you paste into CF7's Form tab. The .wpcf7-*
   classes are CF7's own output and are only touched where it emits markup the
   template can't reach: the response message, the spinner and validation tips.
   -------------------------------------------------------------------------- */

.pbt-report .wpcf7 { margin: 0; }
.pbt-report .wpcf7 form { margin: 0; }

.pbt-cf7 { display: grid; gap: 16px; }

/* Undoing wpautop. WordPress runs it over the form template, so a line break
   inside a paragraph becomes <br /> and a blank line between paragraphs becomes
   an empty <p></p>. Left alone that is a stray break under every label and a
   dead paragraph between every field — roughly 40px of nothing per row, which
   reads as a broken stylesheet.

   The form templates in forms/ avoid generating it (everything on one line),
   and these rules mean a well-meaning tidy-up of the Form tab later doesn't
   wreck the layout. Belt and braces, cheap. */
.pbt-cf7 p { margin: 0 !important; padding: 0 !important; }
.pbt-cf7 p:empty { display: none; }
.pbt-cf7 br { display: none; }

/* CF7 wraps each control in this span; a theme that gives it display:inline or
   its own margins reintroduces the gap by another route. */
.pbt-cf7 .wpcf7-form-control-wrap { display: block; margin: 0; padding: 0; }

.pbt-cf7-field label {
  display: block;
  margin: 0 0 7px !important;
  padding: 0;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, .62);
}

.pbt-cf7 input[type="text"],
.pbt-cf7 input[type="email"],
.pbt-cf7 input[type="tel"],
.pbt-cf7 textarea,
.pbt-cf7 select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--pbt-radius-s);
  background: rgba(255, 255, 255, .06);
  color: var(--pbt-white);
  font-family: var(--pbt-font);
  font-size: .9375rem;
  font-weight: 300;
  line-height: 1.4;
  /* Themes routinely give inputs a bottom margin. The grid gap is the rhythm
     here, so any margin on the control itself is double spacing. */
  margin: 0;
  transition: border-color .15s ease, background .15s ease;
}
.pbt-cf7 textarea { resize: vertical; min-height: 104px; }

.pbt-cf7 input::placeholder,
.pbt-cf7 textarea::placeholder { color: rgba(255, 255, 255, .34); }

.pbt-cf7 input:focus,
.pbt-cf7 textarea:focus,
.pbt-cf7 select:focus {
  border-color: var(--pbt-teal);
  background: rgba(255, 255, 255, .1);
}

/* The native arrow is drawn in the OS's light colours and disappears on black,
   so the control is stripped and given a teal chevron. color-scheme carries the
   dark treatment into the dropdown list itself, which CSS cannot reach. */
.pbt-cf7 select {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2330B4AC' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.pbt-cf7 select option {
  background: var(--pbt-black-soft);
  color: var(--pbt-white);
}

.pbt-cf7-hint {
  display: block;
  margin-top: 7px;
  font-size: .75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .45);
}

.pbt-cf7-consent { font-size: .8125rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.pbt-cf7-consent .wpcf7-list-item { margin: 0; }
.pbt-cf7-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.pbt-cf7-consent input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--pbt-teal);
}

.pbt-cf7-actions { display: flex; align-items: center; gap: 12px; margin-top: 2px !important; }

.pbt-cf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: var(--pbt-teal);
  color: var(--pbt-black);
  font-family: var(--pbt-font);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pbt-cf7 input[type="submit"]:hover { background: var(--pbt-teal-deep); color: var(--pbt-white); }
.pbt-cf7 input[type="submit"]:disabled { opacity: .55; cursor: default; }

/* CF7's own output ---------------------------------------------------- */

/* The tip is injected as a sibling of the field, inside the same <p>. */
.pbt-report .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: .75rem;
  color: #FF9E93;
}
/* Typed selectors, to outweigh the input[type="..."] rules above. */
.pbt-cf7 input.wpcf7-not-valid,
.pbt-cf7 textarea.wpcf7-not-valid,
.pbt-cf7 select.wpcf7-not-valid {
  border-color: #FF9E93;
  background: rgba(180, 69, 58, .14);
}

/* CF7 emits the response container on every render and reveals it by state, so
   it is hidden here until there is something in it — otherwise the form carries
   an empty bordered box under the button. */
.pbt-report .wpcf7-response-output { display: none; }
.pbt-report form.sent .wpcf7-response-output,
.pbt-report form.invalid .wpcf7-response-output,
.pbt-report form.unaccepted .wpcf7-response-output,
.pbt-report form.failed .wpcf7-response-output,
.pbt-report form.spam .wpcf7-response-output { display: block; }

.pbt-report .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 12px 15px !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: var(--pbt-radius-s);
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}
.pbt-report form.sent .wpcf7-response-output {
  border-color: var(--pbt-teal) !important;
  background: rgba(48, 180, 172, .14);
  color: var(--pbt-teal-light);
}
.pbt-report form.invalid .wpcf7-response-output,
.pbt-report form.unaccepted .wpcf7-response-output,
.pbt-report form.failed .wpcf7-response-output,
.pbt-report form.spam .wpcf7-response-output {
  border-color: #FF9E93 !important;
  background: rgba(180, 69, 58, .18);
  color: #FFC4BC;
}

.pbt-report .wpcf7-spinner { margin: 0; }

/* Locked / unlocked states -------------------------------------------- */

.pbt-locked { display: none; }
.pbt-unlocked-only { display: none; }

.pbt-report.is-unlocked .pbt-locked { display: block; }
.pbt-report.is-unlocked .pbt-unlocked-only { display: block; }
.pbt-report.is-unlocked .pbt-gate-section { display: none; }
.pbt-report.is-unlocked .pbt-preview-section { display: none; }
.pbt-report.is-unlocked .pbt-preview-empty-prompt { display: none; }

/* Anything still selling the unlock to someone who has already unlocked.
   The generic hider, for elements whose locked-state display is set by their
   own class — hence !important, which has to beat that class rather than
   depend on which of the two was written last. */
.pbt-report.is-unlocked .pbt-locked-only { display: none !important; }

/* The hero's two action rows. Both ship in the markup and CSS chooses, so the
   right one is correct on the first paint — a JS swap would show the wrong
   buttons for a frame on every visit by a returning reader. */
.pbt-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.pbt-hero-actions.pbt-unlocked-actions { display: none; }
.pbt-report.is-unlocked .pbt-hero-actions.pbt-unlocked-actions { display: flex; }

.pbt-hero h1.pbt-unlocked-h1 { display: none; }
.pbt-report.is-unlocked .pbt-hero h1.pbt-unlocked-h1 { display: block; }

.pbt-unlocked-inline { display: none; }
.pbt-report.is-unlocked .pbt-unlocked-inline { display: inline-flex; }

.pbt-hero-access {
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(48, 180, 172, .55);
  background: rgba(48, 180, 172, .16);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pbt-teal-light);
}
.pbt-hero-access::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pbt-teal);
}

/* Locked preview: a real chart, blurred, with the count of what's behind it. */
.pbt-preview { position: relative; border-radius: var(--pbt-radius); overflow: hidden; }
.pbt-preview-inner { filter: blur(5px); opacity: .7; pointer-events: none; user-select: none; }
.pbt-preview-veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(to bottom, rgba(247, 246, 244, .6), rgba(247, 246, 244, .9));
}
.pbt-preview-veil h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--pbt-black);
}
.pbt-preview-veil p {
  margin: 0;
  max-width: 40ch;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--pbt-black);
}

.pbt-unlocked-flash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  border-left: 3px solid var(--pbt-teal);
  background: var(--pbt-teal-wash);
  padding: 16px 22px;
  margin: 0 0 34px;
  font-size: .9375rem;
  color: var(--pbt-black);
}
.pbt-global-flash {
  margin: 0;
  border-left: none;
  padding: 16px 0;
}
.pbt-unlocked-flash button { margin-left: auto; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.pbt-table-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 0 0 20px; }

.pbt-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pbt-field label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pbt-charcoal);
}
.pbt-field input, .pbt-field select {
  appearance: none;
  font-family: var(--pbt-font);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--pbt-black);
  background: var(--pbt-white);
  border: 1px solid var(--pbt-dust);
  border-radius: var(--pbt-radius-s);
  padding: 11px 14px;
  min-width: 0;
}
.pbt-field input { width: 280px; max-width: 100%; }
.pbt-field select { padding-right: 34px; background-image: none; }
.pbt-field input:focus, .pbt-field select:focus {
  outline: none;
  border-color: var(--pbt-teal);
  box-shadow: 0 0 0 3px rgba(48, 180, 172, .2);
}

.pbt-table-count {
  margin-left: auto;
  font-size: .875rem;
  font-weight: 600;
  color: var(--pbt-charcoal);
  font-variant-numeric: tabular-nums;
}

.pbt-table-scroll {
  overflow: auto;
  max-height: 640px;
  border: 1px solid var(--pbt-dust);
  border-radius: var(--pbt-radius-s);
  background: var(--pbt-white);
}

.pbt-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .875rem; }

.pbt-table th, .pbt-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pbt-dust-soft);
  vertical-align: middle;
}

.pbt-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--pbt-black);
  border-bottom: none;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
}

.pbt-table tbody tr:nth-child(even) { background: var(--pbt-paper); }
.pbt-table tbody tr:hover { background: var(--pbt-teal-wash); }
.pbt-table tbody tr:last-child td { border-bottom: none; }

.pbt-num  { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pbt-term { font-weight: 500; min-width: 210px; }

.pbt-sortable { cursor: pointer; user-select: none; }
.pbt-sortable:hover { color: var(--pbt-teal); }
.pbt-sortable[aria-sort="ascending"], .pbt-sortable[aria-sort="descending"] { color: var(--pbt-teal); }
.pbt-sort-arrow { display: inline-block; margin-left: 6px; font-size: .625rem; opacity: .7; }

.pbt-table-empty { padding: 44px 20px; text-align: center; color: var(--pbt-charcoal); }

.pbt-table-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  font-size: .8125rem;
  color: var(--pbt-charcoal);
}
.pbt-table-foot .pbt-btn-quiet { margin-left: auto; }

.pbt-comp-bar {
  display: inline-block;
  width: 48px;
  height: 6px;
  border-radius: 2px;
  background: var(--pbt-dust-soft);
  overflow: hidden;
  vertical-align: middle;
}
.pbt-comp-bar i { display: block; height: 100%; background: var(--pbt-charcoal); }

/* --------------------------------------------------------------------------
   Request an industry
   -------------------------------------------------------------------------- */

.pbt-request-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
@media (min-width: 860px) { .pbt-request-grid { grid-template-columns: 1fr 1fr; gap: 52px; } }

.pbt-section-dark h2 { color: var(--pbt-white); }
.pbt-section-dark h2 .pbt-dot { color: var(--pbt-teal); }
.pbt-section-dark .pbt-eyebrow { color: rgba(255, 255, 255, .58); }
.pbt-section-dark .pbt-eyebrow i { color: var(--pbt-teal); }
.pbt-section-dark p { color: rgba(255, 255, 255, .76); }

.pbt-covered { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pbt-covered li {
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .78);
}
.pbt-covered li.is-live {
  background: var(--pbt-teal);
  border-color: var(--pbt-teal);
  color: var(--pbt-black);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Source note
   -------------------------------------------------------------------------- */

.pbt-source {
  padding: 34px 0;
  border-top: 1px solid var(--pbt-dust);
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--pbt-charcoal);
}
.pbt-source p { max-width: 90ch; }
.pbt-source strong { color: var(--pbt-black); }

/* --------------------------------------------------------------------------
   Utility & responsive
   -------------------------------------------------------------------------- */

.pbt-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pbt-noscript {
  border-left: 3px solid var(--pbt-down);
  background: var(--pbt-down-bg);
  padding: 18px 22px;
  margin: 24px 0 0;
  font-size: .9375rem;
  color: var(--pbt-black);
}

/* The inactive industry panel is hidden with the plain `hidden` attribute.
   That normally comes from the UA stylesheet, but merged mode's `all: revert`
   makes that a dependency worth not taking — so state it outright. */
.pbt-report [hidden] { display: none; }

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.pbt-cta-banner {
  background: linear-gradient(115deg, var(--pbt-black) 0%, #1E1E1E 20%, var(--pbt-teal-deep) 100%);
  color: var(--pbt-white);
  border-radius: var(--pbt-radius);
  padding: 42px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pbt-cta-banner-text { flex: 1 1 400px; }
.pbt-cta-banner-text h3 { color: var(--pbt-white); margin: 0 0 12px; font-size: 1.625rem; }
.pbt-cta-banner-text p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 1.0625rem; }
.pbt-cta-banner-action { flex: none; }

/* Animated CTA replacement */
.pbt-cta-banner-animated {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(115deg, #05100d 0%, #0a1f1a 28%, #0c5b52 62%, #0f9184 88%, #12a894 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 42px 56px;
  box-sizing: border-box;
  animation: pbt-outer-glow 6s ease-in-out infinite;
}

@keyframes pbt-outer-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(18,168,148,0.55); }
  50% { box-shadow: 0 0 40px rgba(18,168,148,0.85); }
}

.pbt-cta-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
  filter: blur(4px);
  pointer-events: none;
  animation: pbt-orb-drift 10s ease-in-out infinite alternate;
}

@keyframes pbt-orb-drift {
  0% { transform: translate(10%, 10%); }
  100% { transform: translate(30%, 40%); }
}

.pbt-cta-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.10) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: pbt-sheen-sweep 6s linear infinite;
}

@keyframes pbt-sheen-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* The logomark in orbit ---------------------------------------------------

   The refactored banner leads with the Purplex mark on the left: a glass disc
   with two rings breathing outwards around it, and three sparks riding the
   rings. It replaced the sparkles that used to drift up the whole banner, and
   it takes over the attention job the pulse around the button used to do — the
   eye now starts at the brand and travels along the copy to the button, rather
   than being pulled straight to the end of the sentence.

   The rings are deliberately larger than the banner is tall, so they clip on
   the top and bottom edges as they do in the reference. That is what stops the
   cluster reading as a badge stuck on the left and makes it read as something
   the banner is a window onto. */

.pbt-cta-badge {
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Every ring and orbit is centred on the mark, so they all share this. */
.pbt-cta-orbit, .pbt-cta-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pbt-cta-orbit { border: 1px solid rgba(255, 255, 255, .16); }
.pbt-cta-orbit-1 {
  width: 132px;
  height: 132px;
  animation: pbt-cta-orbit-breathe 6s ease-in-out infinite;
}
.pbt-cta-orbit-2 {
  width: 208px;
  height: 208px;
  border-color: rgba(255, 255, 255, .1);
  /* Half a cycle behind the inner ring, so the pair never pulses in unison. */
  animation: pbt-cta-orbit-breathe 6s ease-in-out infinite -3s;
}

@keyframes pbt-cta-orbit-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(.94); opacity: .55; }
  50%      { transform: translate(-50%, -50%) scale(1.16); opacity: 1; }
}

/* A spark is a dot pinned to the top of an invisible disc that rotates: the
   disc's size sets the orbit radius, its duration the speed. Cheaper and
   smoother than animating x and y, because only a transform changes. */
.pbt-cta-spin { animation: pbt-cta-spin-round 22s linear infinite; }
.pbt-cta-spin i {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .9);
}

.pbt-cta-spin-1 { width: 132px; height: 132px; animation-duration: 19s; }
.pbt-cta-spin-2 { width: 208px; height: 208px; animation-duration: 27s; animation-delay: -9s; }
.pbt-cta-spin-3 { width: 170px; height: 170px; animation-duration: 23s; animation-direction: reverse; animation-delay: -4s; }
.pbt-cta-spin-3 i { width: 3px; height: 3px; margin-left: -1.5px; opacity: .8; }

@keyframes pbt-cta-spin-round {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* The mark itself: a dark disc so a light logo reads against the teal end of
   the gradient as well as the black end. */
.pbt-cta-mark {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 20, 18, .55);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 0 22px rgba(255, 255, 255, .14), inset 0 0 12px rgba(255, 255, 255, .06);
  animation: pbt-cta-mark-glow 6s ease-in-out infinite;
}
.pbt-cta-mark img { display: block; width: 34px; height: auto; }

@keyframes pbt-cta-mark-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 255, 255, .12), inset 0 0 12px rgba(255, 255, 255, .05); }
  50%      { box-shadow: 0 0 34px rgba(255, 255, 255, .26), inset 0 0 12px rgba(255, 255, 255, .08); }
}

.pbt-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

/* The copy takes the middle: the mark anchors the left, the button the right.
   flex-basis rather than a width, so it is the copy that gives ground first
   when the banner narrows. */
.pbt-cta-text { flex: 1 1 320px; max-width: 640px; }
.pbt-cta-text h3 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.pbt-cta-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  margin: 0;
}

/* Text entrance -------------------------------------------------------------

   The prototype looped the copy in and out every six seconds, which reads as a
   glitch on a real page. Here it plays once, when the banner scrolls into view.

   report.js splits the headline into words, wraps each in .pbt-cta-word > i and
   adds .pbt-cta-anim to the banner. The hidden state therefore only exists once
   JavaScript is present and has done the wrapping — if it never runs, or the
   visitor prefers reduced motion, the copy is simply there. Nothing can leave
   the headline invisible. */

.pbt-cta-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* overflow: hidden clips descenders (y, p, g); the padding gives them room
     and the negative margin keeps the line box the size it was. */
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
.pbt-cta-word > i { display: inline-block; font-style: inherit; }

.pbt-cta-anim .pbt-cta-word > i { transform: translateY(115%); }
.pbt-cta-anim .pbt-cta-text p,
.pbt-cta-anim .pbt-cta-action { opacity: 0; transform: translateY(14px); }

.pbt-cta-anim.is-in .pbt-cta-word > i {
  transform: translateY(0);
  transition: transform .72s cubic-bezier(.16, .84, .44, 1);
  transition-delay: var(--pbt-cta-d, 0s);
}
.pbt-cta-anim.is-in .pbt-cta-text p,
.pbt-cta-anim.is-in .pbt-cta-action {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease var(--pbt-cta-d, 0s),
              transform .6s cubic-bezier(.16, .84, .44, 1) var(--pbt-cta-d, 0s);
}

/* Hold the orbit until the copy has landed, so the cluster settles into place
   with the sentence rather than spinning away before anyone has read it. */
.pbt-cta-anim:not(.is-in) .pbt-cta-orbit,
.pbt-cta-anim:not(.is-in) .pbt-cta-spin { animation-play-state: paused; }
/* The mark is visible by default and the entrance is layered on top as an
   animation, rather than the mark starting hidden and waiting to be revealed.
   Same rule as the headline: nothing that fails — no IntersectionObserver, a
   reveal that never fires, reduced motion, a stylesheet that loads and a script
   that doesn't — may leave the brand invisible. The worst case is a mark that
   simply doesn't animate. */
.pbt-cta-anim.is-in .pbt-cta-badge {
  animation: pbt-cta-badge-in .7s cubic-bezier(.16, .84, .44, 1) both;
}

@keyframes pbt-cta-badge-in {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

.pbt-cta-action { position: relative; flex-shrink: 0; display: inline-flex; }

.pbt-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.75);
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  animation: pbt-btn-breathe 6s ease-in-out infinite;
}

@keyframes pbt-btn-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 6px rgba(255,255,255,0.35); }
  50% { transform: scale(1.012); box-shadow: 0 0 16px rgba(255,255,255,0.35); }
}

.pbt-cta-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: #ffffff;
  transform: scale(1.05) !important;
}

.pbt-cta-btn-sheen {
  position: absolute;
  top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  pointer-events: none;
  animation: pbt-btn-sweep 6s linear infinite;
}

@keyframes pbt-btn-sweep {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(350%); }
}

.pbt-cta-arrow {
  position: relative;
  display: inline-block;
  animation: pbt-arrow-spin 6s ease-in-out infinite;
}

@keyframes pbt-arrow-spin {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(4px) rotate(8deg); }
}

@media (max-width: 760px) {
  .pbt-cta-badge { width: 76px; height: 76px; }
  .pbt-cta-orbit-2, .pbt-cta-spin-2 { display: none; }
  .pbt-cta-mark { width: 52px; height: 52px; }
  .pbt-cta-mark img { width: 28px; }

  body { font-size: 16px; }
  .pbt-hero { padding: 40px 0 40px; }
  .pbt-section, .pbt-gate-section { padding: 44px 0; }
  .pbt-wrap { padding: 0 20px; }
  .pbt-nav-inner { padding: 8px 20px; }
  .pbt-jump { display: none; }
  .pbt-gate { padding: 28px; }
  .pbt-card { padding: 20px; }
  .pbt-hero-figure b { font-size: 2rem; }
  .pbt-field input, .pbt-table-tools .pbt-field { width: 100%; }
  .pbt-year { border-left: none; border-top: 3px solid var(--pbt-dust); padding-left: 0; }
  .pbt-year:last-child { border-top-color: var(--pbt-teal); }
}

@media print {
  .pbt-nav, .pbt-gate-section, .pbt-table-tools, .pbt-preview { display: none; }
  .pbt-table-scroll { max-height: none; overflow: visible; }
  .pbt-hero { background: var(--pbt-black); }
}

@media (prefers-reduced-motion: reduce) {
  .pbt-report * { transition: none; animation: none; }
}

/* --------------------------------------------------------------------------
   Request received

   Replaces the "add your industry" form in place once it has been sent. Same
   footprint and same dark treatment as the form it stands in for, so the
   section doesn't jump when one becomes the other.
   -------------------------------------------------------------------------- */

.pbt-thanks {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 30px 28px 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--pbt-radius);
  background: rgba(255, 255, 255, .05);
}

.pbt-thanks-tick {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--pbt-teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: pbt-thanks-draw .5s cubic-bezier(.2, .7, .3, 1) forwards;
}

@keyframes pbt-thanks-draw { to { stroke-dashoffset: 0; } }

.pbt-thanks h3 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--pbt-white);
}

.pbt-thanks h3:focus { outline: none; }
.pbt-thanks h3:focus-visible { outline: 2px solid var(--pbt-teal); outline-offset: 4px; }

.pbt-section-dark .pbt-thanks p { margin: 0; max-width: 42ch; color: rgba(255, 255, 255, .78); }

.pbt-thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.pbt-section-dark .pbt-thanks .pbt-thanks-note {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
}

/* The panel arrives in place of something the reader was just looking at, so
   it fades rather than appearing. */
.pbt-thanks { animation: pbt-thanks-in .32s ease both; }
@keyframes pbt-thanks-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .pbt-thanks { animation: none; }
  .pbt-thanks-tick { animation: none; stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Guided tour

   A spotlight over the real report rather than a slideshow in front of it.
   The dimming is a very large spread shadow cast outwards from the hole, which
   keeps the cut-out sharp at any size without an SVG mask.
   -------------------------------------------------------------------------- */

.pbt-tour {
  position: fixed;
  inset: 0;
  z-index: 999999;
  animation: pbt-tour-in .2s ease both;
}

@keyframes pbt-tour-in { from { opacity: 0; } }

.pbt-tour-hole {
  position: absolute;
  border-radius: var(--pbt-radius-s);
  box-shadow: 0 0 0 9999px rgba(12, 12, 12, .74);
  outline: 2px solid var(--pbt-teal);
  outline-offset: 0;
  transition: top .22s ease, left .22s ease, width .22s ease, height .22s ease;
  pointer-events: none;
}

.pbt-tour-card {
  position: absolute;
  width: min(380px, calc(100vw - 24px));
  padding: 22px 24px 20px;
  border-radius: var(--pbt-radius);
  background: var(--pbt-white);
  color: var(--pbt-black);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
  transition: top .22s ease, left .22s ease;
}

.pbt-tour-count {
  margin: 0 0 6px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pbt-teal-deep);
}

.pbt-tour-card h3 { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.25; }
.pbt-tour-card h3:focus { outline: none; }

.pbt-tour-body { margin: 0; font-size: .9375rem; line-height: 1.55; color: rgba(0, 0, 0, .74); }

.pbt-tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.pbt-tour-nav-right { display: flex; gap: 8px; }

/* Smaller than a page button — this is chrome, not a call to action. */
.pbt-tour-card .pbt-btn { padding: 9px 18px; font-size: .875rem; }

/* The card is light, so the ghost variant's white-on-dark treatment is wrong
   here; it needs the quiet outline instead. */
.pbt-tour-card .pbt-btn-ghost {
  background: transparent;
  color: var(--pbt-black);
  border-color: var(--pbt-dust);
}
.pbt-tour-card .pbt-btn-ghost:hover {
  background: var(--pbt-teal-wash);
  border-color: var(--pbt-teal);
  color: var(--pbt-black);
}
.pbt-tour-card .pbt-btn-ghost:disabled {
  opacity: .38;
  cursor: default;
  background: transparent;
  border-color: var(--pbt-dust);
}

.pbt-tour-skip {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--pbt-font);
  font-size: .8125rem;
  color: rgba(0, 0, 0, .52);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pbt-tour-skip:hover { color: var(--pbt-black); }

/* The nav control that reopens it. */
.pbt-jump-tour {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: transparent;
  padding: 6px 14px;
  font-family: var(--pbt-font);
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  flex: none;
}
.pbt-jump-tour:hover { border-color: var(--pbt-teal); color: var(--pbt-white); }

/* .pbt-unlocked-only flips to display: block, which would drop it out of the
   nav's flex row. */
.pbt-report.is-unlocked .pbt-jump-tour { display: inline-block; }

@media (max-width: 620px) {
  .pbt-tour-card { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .pbt-tour, .pbt-tour-hole, .pbt-tour-card { animation: none; transition: none; }
}
