/* PDF capture: the Save-as-PDF button, the form modal, the download page and PdfLinkExpired.
 *
 * Tokens are pp-shows' own (assets/show.css :root), repeated here rather than imported so
 * this plugin renders correctly on a page pp-shows does not style - the download page is a
 * plain WordPress page, not a show page.
 *
 * Two palettes on purpose. The FORM is navy (#3B6080), because it opens from the show page's
 * own navy "Save as PDF" button and has to look like part of that page. The DOWNLOAD PAGE is
 * periwinkle (#5669C6), because it is a page of ours in its own right. Both boards are drawn
 * that way; it is not a drift.
 *
 * Everything is scoped under a ppdf- class. Nothing here may leak into Blade or Elementor. */

/* `hidden` has to win. Rules below set `display` on elements the JS hides with the
 * attribute - the button slot, the change-address box - and a class selector outranks the
 * browser's own [hidden]{display:none}, so they stayed on screen. Scoped to this plugin's
 * own elements: every one of them carries a ppdf- class. */
[class^="ppdf-"][hidden], [class*=" ppdf-"][hidden] { display: none !important; }

/* The theme styles bare elements - `p` gets Arial 300 with 0.7px tracking - and that leaked
 * into every paragraph here, the address line included. This hands the typography back to
 * the root below, which everything inherits from. Order matters twice over: it is above the
 * root block so the root keeps its own font-family, and above the component rules so any of
 * them that sets a font still wins the same-specificity tie. */
[class^="ppdf-"], [class*=" ppdf-"] {
  font-family: inherit; font-weight: inherit; letter-spacing: inherit;
}

.ppdf-save, .ppdf-modal, .ppdf-page,
/* The bar, the panel, the toast and the finder line sit outside .ppdf-save - the bar is a
   child of <body>. Without this they would inherit none of the palette and every var() in
   them would be unresolved. */
.ppdf-slb, .ppdf-slp, .ppdf-slp__dim, .ppdf-slt, .ppdf-slf {
  --ink: rgb(80,83,87);
  --ink-strong: #2F3236;
  --ink-muted: rgb(110,115,120);
  --navy: #3B6080;
  /* Derived from --navy the same way --periwinkle-dark is derived from --periwinkle (each
     channel 24 lower). The hero buttons went back to outlines on 3 Dec, so nothing uses this
     today; it is kept because it is the one navy hover value the palette has agreed on. */
  --navy-dark: #234868;
  --periwinkle: #5669C6;
  --periwinkle-dark: #3D50B0;
  --orange: rgb(251,170,25);
  --orange-text: rgb(178,110,0);
  --sky: #EDF5FC;
  --tint: #F4F8FC;
  --band: #F6F9FC;
  --border: #C4D4E2;
  --border-soft: #E6EBF0;
  --hair: #E3E7F2;
  --green: #1F8A6E;
  --red: #B3261E;
  --radius-card: 16px;
  --radius-btn: 8px;
  --display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: normal;
}
.ppdf-save *, .ppdf-modal *, .ppdf-page * { box-sizing: border-box; }

/* ---------------------------------------------------------------- shared bits */

.ppdf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  background: var(--periwinkle); color: #fff; text-decoration: none;
  border: 0; border-radius: var(--radius-btn); padding: 13px 22px; cursor: pointer;
  min-height: 46px;
}
.ppdf-btn:hover { background: var(--periwinkle-dark); color: #fff; text-decoration: none; }
/* It wraps rather than overflowing (2 Dec, later, E): "? Downloaded / Download again" ran
   out of the button on a narrow phone. Two lines is fine; spilling past the edge is not. */
.ppdf-btn--big {
  width: 100%; font-size: 17px; border-radius: 10px;
  padding: 12px 16px; min-height: 52px;
  white-space: normal; text-align: center; line-height: 1.25;
}
.ppdf-btn--sm { padding: 9px 16px; font-size: 15px; min-height: 40px; }
.ppdf-btn--orange { background: var(--orange); color: #3A3F44; }
.ppdf-btn--orange:hover { background: #e79c14; color: #3A3F44; }
.ppdf-btn.is-off { background: #EEF1FB; color: var(--periwinkle); cursor: default; pointer-events: none; }
/* The green "done" button is a ring, not a fill: once downloaded it stops competing with the
   questions underneath it, which is the next thing we want them to look at. */
.ppdf-btn.is-done { background: #EEF8F5; color: #1F6E5A; box-shadow: inset 0 0 0 1.5px #37AC94;
  font-weight: 400; }
.ppdf-btn.is-done:hover { background: #E2F3EE; color: #1F6E5A; }
/* E (2 Dec, later): “✓ Downloaded · Download again” is the quiet state - 400 weight and a step
   smaller than the live label, per the font table. Doubling-up lives in the theme block. */
.ppdf-btn--big.is-done { font-size: 16px; }
/* G (2 Dec, late): “Add Instant Digital Access” on the download page is outlined, not orange.
   The emails and /theatre keep the orange fill; this page is periwinkle throughout. */
.ppdf-btn--out { background: #fff; color: var(--periwinkle);
  box-shadow: inset 0 0 0 1.5px var(--periwinkle); }
.ppdf-btn--out:hover { background: #EEF1FB; color: var(--periwinkle); }

.ppdf-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--periwinkle); font-weight: 500; text-decoration: underline;
  text-underline-offset: 3px;
}
.ppdf-link:hover { color: var(--periwinkle-dark); }
.ppdf-link--lm { display: inline-block; margin-top: 10px; }

.ppdf-input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-btn); background: #fff;
  color: var(--ink-strong); min-height: 46px;
}
.ppdf-input:focus { outline: 2px solid var(--periwinkle); outline-offset: 1px; border-color: var(--periwinkle); }
.ppdf-input.is-bad { border-color: #C8372D; background: #FFF6F5; }
.ppdf-label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; color: var(--ink-strong); }
/* line-height is set, not inherited: the theme's body line-height is loose enough that
   a two-line error read as two separate sentences (Alex, 4 Dec). */
.ppdf-inperr { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: var(--red); }

.ppdf-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ppdf-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 44px; padding: 10px 14px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; font-family: var(--body); font-size: 15px; font-weight: 500;
  color: #45494D; line-height: 1.35;
}
.ppdf-row:hover { border-color: var(--periwinkle); }
.ppdf-row__em { flex: 0 0 auto; width: 22px; text-align: center; font-size: 18px; line-height: 1; }
.ppdf-row__t { flex: 1; }
.ppdf-rows--months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ppdf-rows--months .ppdf-row { justify-content: center; min-height: 40px; padding: 4px 6px; font-size: 14px; text-align: center; }
.ppdf-rows--months .ppdf-row.is-wide { grid-column: span 2; }

/* One spinner, two sizes. The download page's is periwinkle on its own background; the
   form's sits inside the navy button, so it is restated white there. */
.ppdf-spin {
  flex: none; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box;
  border: 2.5px solid rgba(86,105,198,.25); border-top-color: var(--periwinkle);
  animation: ppdf-sp .8s linear infinite;
}
@keyframes ppdf-sp { to { transform: rotate(360deg); } }

.ppdf-skip {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 14px; color: #5F656B; text-decoration: underline;
  text-underline-offset: 3px;
}
.ppdf-skip:hover { color: var(--ink); }

.ppdf-hr { height: 1px; background: var(--hair); margin: 6px 0; }

/* ------------------------------------------------------------- the show guide block */

/* The block sits INSIDE .ppshow-hero, as its last child, so the hero already supplies the
   page width and the side gutter. No max-width, no auto margins and no padding of its own:
   with them it paid the gutter twice and the button sat 20px right of everything else in
   the hero. 14px under the yellow box (ShowHeroCurrent, 3 Dec). */
.ppdf-save { margin: 14px 0 0; }

/* One grid, two shapes, one DOM (ShowHeroCurrent, 3 Dec).
   Phone: the thumbnail sits beside the LINE only, and the buttons run the full width under
   both of them. 720px and up: the thumbnail spans every row, so it anchors the block and the
   line, the buttons and the "Comparing shows?" line sit to its right.
   A second copy of the markup for the wide shape would put two "Save as PDF" buttons in the
   page for a screen reader, and both would carry the data attributes the form reads. */
.ppdf-guide {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px; row-gap: 14px; align-items: center;
}
.ppdf-guide__thumb { grid-column: 1; grid-row: 1; width: 46px; flex: none; }
.ppdf-guide__line  { grid-column: 2; grid-row: 1; margin: 0; font-size: 15px; line-height: 1.5; }
.ppdf-guide__btns  { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ppdf-guide__cmp   { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.ppdf-guide__line strong, .ppdf-guide__cmp strong { color: var(--ink-strong); font-weight: 700; }

/* With shortlisting off there is nothing beside it, so the one button takes its own width
   rather than half the row. The class comes from PHP rather than :has(), so the rule does
   not depend on a selector the older phones in the audience may not have. */
.ppdf-guide__btns--one { grid-template-columns: auto; justify-content: start; }

/* The thumbnail is the .ppdf-sgt template at the end of this file (ShowGuideThumb, 3 Dec):
   HTML and CSS, not an image. The old rules here styled a rendered <img> of the PDF's first
   page and a page-icon fallback for shows whose PDF had not been built; the template needs
   only a logo and a short title, which every show has, so neither state exists any more. */

.ppdf-save__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  /* Both buttons outlined navy on white, equal weight (ShowHeroCurrent, 3 Dec). This replaces
     the solid fill of earlier the same day: the hero brief removes the solid "Save as PDF"
     button by name, and the board draws both buttons as outlines. */
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: var(--radius-btn);
  padding: 10px 14px; min-height: 44px; text-align: center; line-height: 1.15;
}
.ppdf-save__btn:hover { background: var(--sky); border-color: var(--navy); color: var(--navy); }
/* The download arrow is an inline SVG, as the canvas has it. Sized here rather than by
   font-size, so no font on the device can change its shape (Alex, 2 Dec: on iOS the old
   U+21E9 character came out thin and squashed). */
.ppdf-save__ico { flex: none; width: 16px; height: 16px; display: block; }
/* The two states of the + Shortlist button are each a span holding an icon and a word.
   Without this they lay out as inline text and "Shortlisted" broke under its tick. */
.ppdf-save__sl-add, .ppdf-save__sl-on {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}

/* 720px and up: the thumbnail anchors the whole block. 22px to the text, 14px between the
   line, the buttons and the "Comparing shows?" line - the row-gap already carries that. */
@media (min-width: 720px) {
  /* The three rows are declared, not left implicit. "grid-row: 1 / -1" counts line -1 of
     the EXPLICIT grid, and with no grid-template-rows there is none, so the span collapsed
     to a single row and the buttons dropped below the thumbnail instead of beside it. With
     shortlisting off the third row is empty and costs nothing: the thumbnail is 109px and
     the two rows that do have content come to less than that, so the block's height is the
     thumbnail's either way. */
  .ppdf-guide { column-gap: 22px; align-items: start; grid-template-rows: auto auto auto; }
  .ppdf-guide__thumb { grid-row: 1 / -1; align-self: start; width: 84px; }
  .ppdf-guide__line { grid-row: 1; font-size: 16px; }
  .ppdf-guide__btns { grid-column: 2; grid-row: 2; grid-template-columns: auto auto; justify-content: start; }
  .ppdf-guide__btns--one { grid-template-columns: auto; }
  .ppdf-guide__cmp { grid-column: 2; grid-row: 3; }
}

/* ---------------------------------------------------------------- the form modal */
/* Three blocks (PdfFormStates, 2 Dec): the title, a tinted "About you (optional)" block and
   a white "Where should we send it?" block. The card carries no padding of its own, because
   the tinted block has to run edge to edge; each block pays for its own. */

html.ppdf-locked, html.ppdf-locked body { overflow: hidden; }
.ppdf-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ppdf-modal__scrim { position: absolute; inset: 0; background: rgba(32,38,45,.55); }
.ppdf-modal__card {
  position: relative; background: #fff; border-radius: var(--radius-card);
  width: min(560px, calc(100vw - 32px)); max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  padding: 0; box-shadow: 0 18px 50px rgba(20,30,45,.25);
}
.ppdf-modal__x {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--ink-muted); padding: 6px;
}
.ppdf-modal__h { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25;
  letter-spacing: -.01em; color: var(--ink-strong); margin: 0 30px 0 0; }
.ppdf-modal__h em { font-style: italic; }
.ppdf-modal__sub { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }

.ppdf-blk { display: flex; flex-direction: column; gap: 10px; }
.ppdf-blk--head { padding: 20px 20px 4px; gap: 0; }
.ppdf-blk--about { padding: 16px 20px 18px; background: var(--tint);
  border-top: 1px solid #E3EAF2; border-bottom: 1px solid #E3EAF2; }
.ppdf-blk--send { padding: 16px 20px 18px; }
.ppdf-blk__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Said once, here, for the whole block. */
.ppdf-eb { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--periwinkle); }
.ppdf-eb__opt { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px;
  color: #9AA2AA; margin-left: 2px; }
.ppdf-keep { background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.ppdf-keep:hover { text-decoration: underline; }

/* Everything answered so far, on one line. */
.ppdf-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid #C9D6E3;
  font-size: 14px; color: #45494D; }
.ppdf-chip > span { font-weight: 400; }
.ppdf-chip > span::before { content: "\2713\00a0"; color: var(--navy); font-weight: 700; }
.ppdf-chip .ppdf-link { font-size: 13px; font-weight: 700; color: var(--navy);
  text-decoration: none; white-space: nowrap; }
.ppdf-chip .ppdf-link:hover { text-decoration: underline; color: var(--navy); }

/* "Clear all and start again", centred under the Get the PDF button. Borrows
   .ppdf-skip so it matches the download page's clear link exactly. */
.ppdf-clearrow { margin: 10px 0 0; text-align: center; }

.ppdf-q { display: flex; flex-direction: column; gap: 10px; }
.ppdf-q__l { margin: 0; font-family: var(--display); font-weight: 700; font-size: 16px;
  line-height: 1.3; color: var(--ink-strong); }
.ppdf-q__l:focus { outline: none; }
.ppdf-q__l em { font-style: italic; }

/* The form's rows are navy when chosen, matching the show page's own button. The download
   page's rows are periwinkle; they are two different pages and two different palettes. */
.ppdf-blk--about .ppdf-row { min-height: 40px; padding: 6px 14px; }
.ppdf-blk--about .ppdf-row[aria-checked="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700;
}
.ppdf-blk--about .ppdf-row[aria-checked="true"]:hover { border-color: var(--navy); }

.ppdf-blk--send .ppdf-input { min-height: 44px; padding: 10px 14px; }

.ppdf-tick { display: flex; gap: 10px; align-items: flex-start; margin: 0;
  font-size: 14px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.ppdf-tick input { margin: 2px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy); }
.ppdf-tick__t { display: block; }
.ppdf-tick__t em { font-style: italic; }
.ppdf-tick__t small { display: block; font-size: 12px; line-height: 1.45;
  color: rgb(120,125,130); margin-top: 2px; }
.ppdf-tick__t small a { color: var(--navy); font-weight: 500; }

/* Solid navy, full width, faded until the address looks complete - not a grey disabled slab.
   A button that is only dimmed still reads as the thing to press next, which is the point. */
.ppdf-go {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; border: 0; border-radius: var(--radius-btn);
  background: var(--navy); color: #fff; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 16px;
}
.ppdf-go:hover { background: #335571; }
.ppdf-go.is-off { opacity: .45; cursor: default; }
.ppdf-go.is-sending { opacity: .85; cursor: default; }
.ppdf-go .ppdf-spin { width: 16px; height: 16px; border-width: 2.5px;
  border-color: rgba(255,255,255,.4); border-top-color: #fff; }

@media (max-width: 600px) {
  .ppdf-modal { align-items: flex-end; }
  .ppdf-modal__card { width: 100vw; max-height: 92vh; border-radius: 18px 18px 0 0; }
}

/* ---------------------------------------------------------------- the download page */
/* Laid out to the PdfDownload board: a 640px column with a 20px rhythm, a strip naming the
   show, a heading that never changes, then ONE bordered card holding the file, the button's
   spot, the address and - for a licensed buyer - the questions that occupy that spot until
   the path ends. */

.ppdf-page { display: block; }
/* The page body never sits shorter than the viewport, so the footer cannot ride up under a
   short card (Alex, 1 Dec). 72px is the site header; the board's own 720px is the artboard. */
.ppdf-wrap {
  max-width: 640px; margin: 0 auto; padding: 36px 20px 80px;
  min-height: calc(100vh - 72px);
  display: flex; flex-direction: column; gap: 20px;
}

/* The strip: logo, show name, what the PDF is. */
.ppdf-strip { display: flex; align-items: center; gap: 12px; }
.ppdf-tile {
  flex: none; width: 56px; height: 40px; border-radius: 6px;
  border: 1px solid var(--hair); background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ppdf-tile img { max-width: 50px; max-height: 34px; width: auto; height: auto; display: block; }
.ppdf-tile--empty { background: #E3E7EB; border-color: #E3E7EB; }
/* A shortlist fans its shows out, so four logos cost the width of two. */
.ppdf-tiles { display: flex; }
.ppdf-tiles .ppdf-tile { width: 40px; height: 30px; margin-right: -8px; box-shadow: 0 0 0 2px #fff; }
.ppdf-tiles .ppdf-tile img { max-width: 34px; max-height: 24px; }
.ppdf-dst { display: flex; flex-direction: column; min-width: 0; }
.ppdf-dst b { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.ppdf-dst > span { font-size: 13px; color: #5F656B; overflow-wrap: anywhere; }

.ppdf-h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px;
  line-height: 1.2; letter-spacing: -.02em; color: var(--ink-strong); }

/* F (2 Dec, late): the card, not the window, decides whether the picture sits beside the
   text. The card is much narrower than the viewport inside the page column, so a media
   query would put them side by side while the card was still too narrow for it. */
.ppdf-card {
  container-type: inline-size; container-name: ppdfcard;
  display: flex; flex-direction: column; gap: 14px;
  border: 1.5px solid var(--border); border-radius: 14px; padding: 20px;
}

.ppdf-file { display: flex; align-items: center; gap: 14px; }
/* The show guide thumbnail in the file row (brief 3 Dec 6.5), 56 wide. The .ppdf-sgt
   template brings its own card, border, radius and shadow, and its own 8.5/11 aspect
   ratio, so the width is the only thing the row has to say. It replaced the 2 Dec
   56x72 raster of the PDF's first page and the skeleton that stood in for it: those
   rules, .ppdf-file__ico / __shot / __sk / __tag, are gone with their markup. */
.ppdf-file__thumb { width: 56px; }
.ppdf-file__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ppdf-file__name { font-size: 15px; font-weight: 700; color: var(--ink-strong); overflow-wrap: anywhere; }

/* The status, where the file it describes is. "Preparing…" with a spinner, then "✓ Ready"
   in green, then the error in red - the heading above never moves. */
.ppdf-stat { display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--periwinkle); }
.ppdf-stat.is-ready { color: var(--green); }
.ppdf-stat.is-bad { color: var(--red); }
.ppdf-stat .ppdf-spin { width: 12px; height: 12px; border-width: 2px; }

/* The real bar, 4px, under the status. Driven by the server's own progress, never a timer. */
.ppdf-mini { display: block; height: 4px; border-radius: 2px; background: #EEF1FB;
  overflow: hidden; margin-top: 6px; width: 100%; }
.ppdf-mini > i { display: block; height: 100%; background: var(--periwinkle);
  transition: width .35s ease; }

.ppdf-addr { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-strong); overflow-wrap: anywhere; }
.ppdf-addr__mail { overflow-wrap: anywhere; }
.ppdf-addr .ppdf-link { font-weight: 400; font-size: inherit; }
.ppdf-addrbox { margin: 0; display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: 12px; background: var(--tint); }
.ppdf-addrbox .ppdf-label { font-family: var(--display); font-size: 16px; font-weight: 700; margin: 0; }
.ppdf-addrbtns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }

/* The questions, inside the card, in the button's own spot. */
.ppdf-qs { display: flex; flex-direction: column; gap: 14px; }
.ppdf-qs:empty, .ppdf-skiprow:empty { display: none; }
.ppdf-skiprow__p { margin: 0; text-align: center; }
/* Skip and Clear all can both be on screen; without this they sit on top of each other. */
.ppdf-skiprow__p + .ppdf-skiprow__p { margin-top: 10px; }

/* "While you wait" on the left; "← Back" and "2 of 3" on the right. It carries its own
   hairline, which is what separates the questions from the address above them. */
.ppdf-stepbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 24px; margin: 0; padding-top: 16px; border-top: 1px solid var(--hair); }
.ppdf-stepbar .ppdf-eb { font-size: 12px; }
.ppdf-stepbar__rt { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.ppdf-stepbar__rt .ppdf-link { font-size: 14px; font-weight: 500; text-decoration: none; }
.ppdf-stepbar__rt .ppdf-link:hover { text-decoration: underline; }
.ppdf-stepbar__n { font-size: 13px; color: #8A939C; }

.ppdf-q__lead { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px;
  line-height: 1.25; letter-spacing: -.01em; color: var(--ink-strong); }
.ppdf-more { margin: 0; font-size: 15px; color: var(--ink-muted); }
.ppdf-body { margin: 0; font-size: 16px; line-height: 1.55; color: #4A555E; }
.ppdf-thanks { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px;
  line-height: 1.25; color: var(--ink-strong); }
.ppdf-thanks__line { margin: 0; font-size: 16px; line-height: 1.55; color: #4A555E; }
.ppdf-rule { border: 0; border-top: 1px solid var(--hair); margin: 6px 0; }
.ppdf-ok { margin: 0; display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #37AC94; background: #EEF8F5; border-radius: 10px; padding: 10px 14px;
  font-size: 16px; line-height: 1.4; color: var(--ink-strong); }
.ppdf-ref { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.ppdf-ref .ppdf-input { flex: 1 1 200px; }

/* The download page's own rows: periwinkle, body text, a little roomier than the form's. */
.ppdf-qs .ppdf-row { font-size: 16px; font-weight: 400; }
.ppdf-qs .ppdf-row[aria-checked="true"] { border: 2px solid var(--periwinkle); background: var(--sky); }

.ppdf-what { display: flex; flex-direction: column; gap: 12px; }
.ppdf-what__h { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px;
  line-height: 1.25; color: var(--ink-strong); }
.ppdf-what__p { margin: 0; font-size: 16px; line-height: 1.55; color: #4A555E; }
.ppdf-what__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ppdf-what__list li { display: flex; gap: 12px; align-items: flex-start; }
.ppdf-what__ico { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--sky);
  display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ppdf-what__txt { display: flex; flex-direction: column; min-width: 0; }
.ppdf-what__txt b { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink-strong); }
.ppdf-what__txt span { font-size: 15px; line-height: 1.5; color: #4A555E; }
.ppdf-what__foot { margin: 0; font-size: 15px; color: var(--ink-muted); }

.ppdf-tease { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0; }
.ppdf-tease__btn {
  display: flex; width: 100%; align-items: center; gap: 12px;
  background: none; border: 0; padding: 14px 16px; cursor: pointer; font: inherit;
  font-family: var(--display); font-size: 16px; color: var(--navy); text-align: left;
}
.ppdf-tease__btn > span:first-child { flex: 1; min-width: 0; line-height: 1.35; }
.ppdf-tease__more { flex: none; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--periwinkle); }
.ppdf-tease__body { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 16px; }
/* F (2 Dec, late): the bold caption line is now a heading ABOVE the picture, so the words
   are read before the image on a phone. .ppdf-split does the ordering for both this box
   and the “What are they?” explainer. */
.ppdf-tease__h { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px;
  line-height: 1.3; color: var(--ink-strong); }

.ppdf-split { display: flex; flex-direction: column; gap: 12px; }
.ppdf-split__txt { display: flex; flex-direction: column; gap: 10px; }
/* The picture is a transparent cut-out, so the “Night stage” backdrop is CSS, not part of
   the image. Capped at 190px tall on a phone so the text after it stays in view. */
.ppdf-split__pic { display: block; width: 100%; max-height: 190px; object-fit: contain;
  object-position: center; border-radius: 10px; padding: 12px;
  background: radial-gradient(ellipse 65% 70% at 50% 45%, #5B6FD0 0%, #34418F 60%, #26306B 100%); }
@container ppdfcard (min-width: 500px) {
  .ppdf-split { flex-direction: row; align-items: center; gap: 20px; }
  .ppdf-split__txt { flex: 1 1 0; }
  .ppdf-split__pic { flex: 0 0 44%; width: 44%; max-height: none; }
}
.ppdf-tease__p { margin: 0; font-size: 16px; line-height: 1.5; color: #4A555E; }

/* ---------------------------------------------------------------- PdfLinkExpired */

.ppdf-expired .ppdf-wrap { display: flex; flex-direction: column; gap: 22px; padding-top: 56px; }
.ppdf-lead { margin: -6px 0 0; font-size: 16px; line-height: 1.55; color: #4A555E; }
.ppdf-finder {
  border: 1px solid var(--border); background: var(--sky); border-radius: 14px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
}
.ppdf-finder__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--periwinkle); }
.ppdf-finder__h { margin-top: -8px; font-family: var(--display); font-size: 22px; line-height: 1.25;
  font-weight: 700; letter-spacing: -.01em; color: var(--ink-strong); }
.ppdf-finder__p { font-size: 15px; line-height: 1.5; color: #4A555E; }
.ppdf-btn--blue { align-self: flex-start; }

/* ---------------------------------------------------------------------------------------
 * Theme defence. The production.pro theme styles `button:not(.mfp-arrow)` with !important
 * - 13px uppercase Arial with letter-spacing - and flattens every input's corners the same
 * way. Nearly every control here is a <button>, so the answer rows, "not right?", "Try
 * again" and "Skip, just download it" all came out shouting in Arial.
 *
 * The class is doubled on purpose. `button:not(.mfp-arrow)` scores (0,1,1); a single
 * `.ppdf-row` scores (0,1,0) and loses the !important tie on specificity, which is exactly
 * what happened the first time. Doubling takes it to (0,2,0) and wins.
 *
 * Nothing here is new design: it restates the values already set above, at a weight that
 * reaches past the theme. Anything new added to this plugin needs checking in a browser,
 * because the canvas has no theme in it and so can never show this (S-F8).
 * ------------------------------------------------------------------------------------- */
.ppdf-btn.ppdf-btn, .ppdf-link.ppdf-link, .ppdf-row.ppdf-row, .ppdf-go.ppdf-go,
.ppdf-keep.ppdf-keep, .ppdf-skip.ppdf-skip, .ppdf-input.ppdf-input,
.ppdf-save__btn.ppdf-save__btn,
.ppdf-tease__btn.ppdf-tease__btn, .ppdf-modal__x.ppdf-modal__x {
  text-transform: none !important; letter-spacing: normal !important;
}
/* The download button is an <a>, and the theme colours links with !important - so the
   label came out in the theme's link blue on the periwinkle fill, near-invisible. Colour
   has to be restated here, and each state has to restate its own or this white wins. */
.ppdf-btn.ppdf-btn { font-family: var(--display) !important; font-size: 16px !important; font-weight: 700 !important; color: #fff !important; }
.ppdf-btn.ppdf-btn:hover { color: #fff !important; }
.ppdf-btn.ppdf-btn.is-off, .ppdf-btn.ppdf-btn.is-off:hover { color: var(--periwinkle) !important; }
.ppdf-btn.ppdf-btn.is-done, .ppdf-btn.ppdf-btn.is-done:hover { color: #1F6E5A !important; }
.ppdf-btn--orange.ppdf-btn--orange, .ppdf-btn--orange.ppdf-btn--orange:hover { color: #3A3F44 !important; }
/* The theme sizes bare <svg> inside buttons, so the icon needs the same doubled-class
   treatment as the label to keep the 16px the canvas specifies. */
.ppdf-save__btn .ppdf-save__ico.ppdf-save__ico {
  width: 16px !important; height: 16px !important; flex: none !important;
}

/* The hero buttons are <button>, so the theme had them in 13px uppercase Arial. The fill is
   restated here too: the theme sets a background on bare buttons, and on an outlined button
   a lost fill means navy text on whatever colour the theme chose. */
.ppdf-save__btn.ppdf-save__btn {
  font-family: var(--display) !important; font-size: 15px !important; font-weight: 700 !important;
  background: #fff !important; color: var(--navy) !important; border-color: var(--navy) !important;
}
.ppdf-save__btn.ppdf-save__btn:hover {
  background: var(--sky) !important; color: var(--navy) !important; border-color: var(--navy) !important;
}
/* Both lines are <p>, which the theme styles directly (Arial 300, 0.7px tracking). The root
   rule at the top of this file hands back the family and weight; the size and colour have to
   be restated at a weight that reaches past the theme, as every other block here does. */
.ppdf-guide__line.ppdf-guide__line {
  font-size: 15px !important; line-height: 1.5 !important; color: var(--ink) !important;
}
.ppdf-guide__cmp.ppdf-guide__cmp {
  font-size: 14px !important; line-height: 1.45 !important; color: var(--ink-muted) !important;
}
@media (min-width: 720px) {
  .ppdf-guide__line.ppdf-guide__line { font-size: 16px !important; }
}
.ppdf-btn--big.ppdf-btn--big { font-size: 17px !important; }
/* Three classes, so it outranks the --big rule above and the blanket 700 two rules up. */
.ppdf-btn--big.ppdf-btn--big.is-done { font-size: 16px !important; font-weight: 400 !important; }
.ppdf-btn--out.ppdf-btn--out, .ppdf-btn--out.ppdf-btn--out:hover { color: var(--periwinkle) !important; }
.ppdf-btn--sm.ppdf-btn--sm { font-size: 15px !important; }
.ppdf-link.ppdf-link { font-family: inherit !important; font-size: inherit !important; font-weight: 500 !important; }
/* Roboto, not DM Sans: the option rows are body text in both designs - 15px/500 in the
   capture form (PdfFormStates .op), 16px/400 on the download page (PdfDownload .r). */
.ppdf-row.ppdf-row { font-family: var(--body) !important; font-size: 15px !important; font-weight: 500 !important; }
.ppdf-qs .ppdf-row.ppdf-row { font-size: 16px !important; font-weight: 400 !important; }
.ppdf-blk--about .ppdf-row.ppdf-row[aria-checked="true"] { font-weight: 700 !important; }
.ppdf-rows--months .ppdf-row.ppdf-row { font-size: 14px !important; }
.ppdf-go.ppdf-go { font-family: var(--body) !important; font-size: 16px !important; font-weight: 700 !important; }
.ppdf-keep.ppdf-keep { font-family: var(--body) !important; font-size: 13px !important; font-weight: 700 !important; }
.ppdf-skip.ppdf-skip { font-family: var(--body) !important; font-size: 14px !important; font-weight: 400 !important; }
.ppdf-stepbar__rt .ppdf-link.ppdf-link { font-size: 14px !important; }
.ppdf-chip .ppdf-link.ppdf-link { font-size: 13px !important; font-weight: 700 !important; }
.ppdf-input.ppdf-input { border-radius: var(--radius-btn) !important; font-weight: 400 !important; }
.ppdf-tease__btn.ppdf-tease__btn { font-family: var(--display) !important; font-size: 16px !important; }
.ppdf-modal__x.ppdf-modal__x { font-size: 26px !important; }

/* The theme's dark page-title band. The design starts the column straight under the site
   header; the band is the theme's default for a plain page, not part of this page. */
body.ppdf-page-only #grve-page-title { display: none; }

/* E (2 Dec, later): the narrow-phone sizes for the download button. They restate !important
   and carry the class twice because the theme-defence block above pins every .ppdf-btn to
   16px with !important and would otherwise win. "Download the PDF" holds at 16px; the longer
   "Downloaded / Download again" drops to 15px so it still fits once downloaded. */
@media (max-width: 360px) {
  .ppdf-btn--big.ppdf-btn--big { font-size: 16px !important; }
  .ppdf-btn--big.ppdf-btn--big.is-done { font-size: 15px !important; }
}

/* ============================================================================
   The show guide thumbnail (board ShowGuideThumb, 3 Dec)

   HTML and CSS, never an image. See includes/thumb-template.php for why the class
   names are prefixed and why the title is a span.

   The card is a container, and every length inside it is in cqw, so the SAME markup
   draws correctly at 32, 40, 46, 56, 84 and 340px. Callers set a width; nothing else.
   ============================================================================ */

.ppdf-sgt { position: relative; display: block; aspect-ratio: 8.5 / 11; flex: none; }
.ppdf-sgt * { box-sizing: border-box; }

/* Two blank sheets offset behind a shortlist cover, so it reads as several shows. */
.ppdf-sgt__sh {
  position: absolute; inset: 0; display: block; background: #fff;
  border: 1px solid #C4D4E2; border-radius: 3px;
}
.ppdf-sgt__sh--a { transform: translate(7%, 2%) rotate(3deg); }
.ppdf-sgt__sh--b { transform: translate(3.5%, 1%) rotate(1.5deg); }

.ppdf-sgt__card {
  container-type: inline-size;
  position: absolute; inset: 0; display: block; overflow: hidden; background: #fff;
  border: 1px solid #C4D4E2; border-radius: 3px; box-shadow: 0 1px 4px rgba(30, 40, 60, .14);
}

.ppdf-sgt .s-pg {
  position: absolute; inset: 0; padding: 6cqw 7cqw;
  display: flex; flex-direction: column; gap: 1.6cqw;
}
.ppdf-sgt .s-pg > * { flex-shrink: 0; }

.ppdf-sgt .s-b { display: block; height: 1.5cqw; border-radius: 1cqw; background: #D9DEE4; }

.ppdf-sgt .s-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 2cqw; border-bottom: .4cqw solid #E3E7EB;
}
.ppdf-sgt .s-pp { display: flex; align-items: center; gap: 1.2cqw; }
.ppdf-sgt .s-pp i { display: block; flex: none; width: 4.5cqw; height: 4.5cqw; border-radius: 1cqw; background: #3B6080; }

.ppdf-sgt .s-top { display: flex; justify-content: space-between; gap: 3cqw; margin-top: 2cqw; }
.ppdf-sgt .s-tl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.4cqw; }
.ppdf-sgt .s-eb { background: #8C9BE0; }

/* The one piece of real text on a show guide, beside the logo. Two lines, then cut.
   LONGHAND, NOT THE `font:` SHORTHAND. --display is declared on .ppdf-save/.ppdf-modal/
   .ppdf-page, so a card placed anywhere else (the shortlist bar, the panel) does not inherit
   it; in the shorthand an unresolved var() invalidates the WHOLE declaration, which silently
   took the font-size with it and left the title a fixed 14px at every card width. In longhand
   the worst case is the wrong typeface. */
.ppdf-sgt .s-t {
  margin: 0; color: #2F3236; letter-spacing: -.02em;
  font-family: var(--display, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  font-weight: 700; font-size: 7.2cqw; line-height: 1.08;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ppdf-sgt .s-lg { flex: 0 0 30%; height: 17cqw; display: flex; align-items: center; justify-content: flex-end; }
.ppdf-sgt .s-lg img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ppdf-sgt .s-facts {
  margin-top: 1.2cqw; padding: 3cqw; background: #EDF5FC; border-radius: 1.8cqw;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2cqw 3cqw;
}
.ppdf-sgt .s-facts .s-b { background: #C9D6E4; }
.ppdf-sgt .s-gap { display: block; height: 1cqw; }

/* Section headings. .s-h comes after .s-b so its height wins; both are single classes. */
.ppdf-sgt .s-h { height: 2.6cqw; width: 30%; background: #7B8087; margin-top: 2cqw; }
.ppdf-sgt .s-w2 { width: 56%; }
.ppdf-sgt .s-h22 { width: 22%; }
.ppdf-sgt .s-h14 { width: 14%; }

.ppdf-sgt .s-ln { display: block; }
.ppdf-sgt .s-ln .s-b { margin-bottom: 1.2cqw; }

.ppdf-sgt .s-tb { display: flex; flex-direction: column; }
.ppdf-sgt .s-r {
  display: flex; gap: 3cqw; align-items: flex-start;
  padding: 1.8cqw 0; border-top: .35cqw solid #E3E7EB;
}
.ppdf-sgt .s-r:first-child { border-top: 0; padding-top: 0; }
.ppdf-sgt .s-r > * { flex: none; }
.ppdf-sgt .s-c1 { width: 20%; }
.ppdf-sgt .s-c2, .ppdf-sgt .s-c3 { width: 12%; }
.ppdf-sgt .s-c4 { flex: 1; display: flex; flex-direction: column; gap: 1.1cqw; }
.ppdf-sgt .s-nm { background: #9AA0A7; }

/* The footer sits on the page, with a white fade so the table runs under it rather than
   stopping short: the page is cut off at the bottom, not finished. */
.ppdf-sgt .s-ft {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6cqw 7cqw 4cqw;
  display: flex; justify-content: space-between;
  background: #fff; box-shadow: 0 -2cqw 2cqw #fff;
}
.ppdf-sgt .s-ft::before {
  content: ""; position: absolute; left: 7cqw; right: 7cqw; top: 0;
  border-top: .4cqw solid #E3E7EB;
}

/* ---- The shortlist cover (PdfOutput B): count, "At a glance", "Inside" ---- */
.ppdf-sgt--sl .s-tl { flex: none; }
.ppdf-sgt .s-tl--sl { margin-top: 2cqw; }
.ppdf-sgt .s-st {
  margin: 0; color: #4A4D52; letter-spacing: -.02em;
  font-family: var(--display, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  font-weight: 700; font-size: 7.6cqw; line-height: 1.08;
}
.ppdf-sgt .s-cmp { display: flex; flex-direction: column; }
.ppdf-sgt .s-cr {
  display: flex; gap: 2.4cqw; align-items: center;
  padding: 1.6cqw 0; border-top: .35cqw solid #E3E7EB;
}
.ppdf-sgt .s-cr:first-child { border-top: 0; padding-top: 0; }
.ppdf-sgt .s-cr .s-b { flex: none; }
.ppdf-sgt .s-lo { flex: 0 0 11cqw; height: 6.5cqw; display: flex; align-items: center; justify-content: flex-start; }
.ppdf-sgt .s-lo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ppdf-sgt .s-ins { display: flex; flex-direction: column; }
.ppdf-sgt .s-in {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3cqw 0; border-bottom: .3cqw dotted #C9D0D8;
}

/* =======================================================================================
 * THE SHORTLIST BAR, THE "YOUR SHORTLIST" PANEL, THE AT-LIMIT TOAST AND THE FINDER LINE
 * Boards ShortlistBar and ShortlistLimit (3 Dec); brief sections 5 and 7.
 *
 * Breakpoint is 768px, not the 720px the hero uses. That is the board's own line: it draws
 * a 768-wide tablet with the DESKTOP bar and the centred panel, and a 390-wide phone with
 * the compact bar and the bottom sheet. Below 768 is the phone treatment.
 *
 * The bar is `fixed`, where the board has it `absolute` inside a device frame - the board
 * has no page to scroll. Everything else is the board's own geometry.
 *
 * Longhand font properties throughout, never the `font:` shorthand. A shorthand carrying an
 * unresolved var() is invalid at computed-value time and the WHOLE declaration is dropped,
 * font-size included - which is how the thumbnail title silently sat at 14px at every size
 * earlier today. The roots below are added to the custom-property block near the top of
 * this file for the same reason: the bar lives at the end of <body>, outside .ppdf-save.
 * ===================================================================================== */

/* ---- the bar ---- */
.ppdf-slb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  background: #fff; border-top: 1px solid #DDE3E8;
  box-shadow: 0 -6px 18px rgba(30,40,50,.08);
}
.ppdf-slb__in {
  max-width: 1240px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.ppdf-slb__open {
  all: unset; flex: 1; min-width: 0; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  border-radius: 10px; padding: 4px 8px 4px 4px;
}
.ppdf-slb__thumb { width: 40px; }
.ppdf-slb__lb { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* The count and the show names share one line and truncate together, as the board has it. */
.ppdf-slb__lb > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppdf-slb__n { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink-strong); }
.ppdf-slb__nm { font-size: 14px; color: var(--ink-muted); }
.ppdf-slb__vl { font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--navy);
  display: flex; align-items: center; gap: 4px; }
.ppdf-slb__go {
  all: unset; flex: none; box-sizing: border-box; cursor: pointer;
  min-height: 44px; padding: 0 20px;
  border: 2px solid var(--border); border-radius: var(--radius-btn);
  font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.ppdf-slb__go:hover { background: var(--sky); }
.ppdf-slb__ico { flex: none; display: block; }

@media (max-width: 719px) {
  /* 84px of clearance on the right for the Intercom launcher (right:14px, 56px wide), which
     is the board's own number. If the launcher moves above the bar instead, this padding is
     harmless - it just centres the row a little left. */
  .ppdf-slb__in { padding: 0 84px 0 14px; gap: 10px; height: 76px; max-width: none; }
  .ppdf-slb__open { gap: 10px; padding: 0; flex: 1; }
  .ppdf-slb__thumb { width: 32px; }
  .ppdf-slb__lb { gap: 1px; }
  .ppdf-slb__n { font-size: 14px; white-space: nowrap; }
  .ppdf-slb__nm { display: none; }          /* no names line on a phone (board, states 1-4) */
  .ppdf-slb__vl { font-size: 12px; gap: 3px; }
  .ppdf-slb__go { min-height: 40px; padding: 0 10px; border-width: 1.5px; font-size: 13px; }
  .ppdf-slb__go .ppdf-slb__ico { display: none; }   /* phone button is text only */
}

/* ---- the panel ---- */
.ppdf-slp__dim { position: fixed; inset: 0; background: rgba(40,48,58,.45); z-index: 9500; }
.ppdf-slp {
  position: fixed; z-index: 9600; background: #fff; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 12px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 64px)); max-height: calc(100% - 64px); overflow: auto;
  border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(30,40,60,.3);
}
.ppdf-slp__grab { display: none; }
.ppdf-slp__hd { display: flex; justify-content: space-between; align-items: center; }
.ppdf-slp__ttl { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink-strong); }
.ppdf-slp__ct { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--ink-muted); margin-left: 6px; }
.ppdf-slp__x { all: unset; cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink-muted);
  padding: 4px 8px; margin: -4px -8px; }
.ppdf-slp__full {
  margin: 0; background: #FFF9EC; border-left: 3px solid var(--orange);
  padding: 9px 12px; font-size: 14px; line-height: 1.5; color: var(--ink);
}
.ppdf-slp__pdf {
  display: flex; gap: 14px; align-items: center;
  background: var(--tint); border: 1px solid #DDE7F1; border-radius: 12px;
  padding: 10px 14px 10px 10px;
}
.ppdf-slp__pdf p { margin: 0; font-size: 14px; line-height: 1.5; color: #4A555E; }
.ppdf-slp__pdf b { color: var(--ink-strong); }
.ppdf-slp__pdf .ppdf-sgt { width: 46px; }
.ppdf-slp__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ppdf-slp__list li { display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid #E3E7EB; }
.ppdf-slp__list li:last-child { border-bottom: 0; }
.ppdf-slp__logo { flex: none; width: 48px; height: 32px; border: 1px solid #E3E7EB;
  border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; }
.ppdf-slp__logo img { max-width: 40px; max-height: 24px; }
.ppdf-slp__logo i { width: 30px; height: 14px; background: #E3E7EB; border-radius: 3px; display: block; }
.ppdf-slp__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ppdf-slp__tx a { font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.ppdf-slp__tx small { font-size: 12px; color: var(--ink-muted); }
.ppdf-slp__rm { all: unset; cursor: pointer; width: 44px; height: 36px; flex: none;
  text-align: center; font-size: 22px; line-height: 36px; color: var(--navy); }
.ppdf-slp__act { display: flex; flex-direction: row; justify-content: flex-end;
  gap: 8px; margin-top: 4px; }
.ppdf-slp__cta {
  all: unset; box-sizing: border-box; cursor: pointer; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius-btn); background: #fff; color: var(--navy);
  border: 1.5px solid var(--navy);
  font-family: var(--body); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ppdf-slp__cta:hover { background: var(--sky); }

@media (max-width: 719px) {
  /* A bottom sheet pinned 70px from the top, as the board draws it: tall enough for eight
     rows without the list itself scrolling away from the Save button. */
  .ppdf-slp {
    left: 0; right: 0; bottom: 0; top: 70px; width: auto; max-height: none;
    transform: none; border-radius: 20px 20px 0 0; padding: 10px 16px 16px;
  }
  .ppdf-slp__grab { display: block; align-self: center; width: 40px; height: 4px;
    border-radius: 2px; background: #D3DAE1; flex: none; }
  .ppdf-slp__pdf { gap: 16px; padding: 12px 14px 12px 12px; }
  .ppdf-slp__pdf .ppdf-sgt { width: 56px; }
  .ppdf-slp__act { flex-direction: column; margin-top: auto; }
}

/* ---- the toast (5.1): shown on the 9th tap, never naming the show that was refused ---- */
.ppdf-slt {
  position: fixed; z-index: 9400;
  left: 50%; transform: translateX(-50%); width: 560px; bottom: 104px;
  background: #fff; color: var(--ink-strong);
  border: 1px solid var(--border); border-left: 4px solid var(--orange);
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: 0 10px 28px rgba(30,40,60,.22);
  font-size: 15px; line-height: 1.4;
}
.ppdf-slt__btn {
  all: unset; cursor: pointer; flex: none; white-space: nowrap;
  font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: var(--radius-btn);
  padding: 9px 14px; background: #fff;
}
.ppdf-slt__btn:hover { background: var(--sky); }
@media (max-width: 719px) {
  .ppdf-slt { left: 12px; right: 12px; width: auto; transform: none; bottom: 88px;
    flex-direction: column; align-items: stretch; gap: 10px; }
  .ppdf-slt__btn { align-self: flex-start; white-space: normal; }
}

/* ---- the finder explainer (5.7). Shown only while the shortlist is empty ---- */
.ppdf-slf {
  margin: 0; align-self: flex-start;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--sky); border: 1px solid rgb(207,223,236); border-radius: 12px;
  padding: 10px 14px; font-size: 15px; line-height: 1.45; color: rgb(80,83,87);
}
.ppdf-slf strong { color: var(--navy); }
.ppdf-slf svg { flex: none; margin-top: 1px; }
@media (max-width: 1023px) { .ppdf-slf { font-size: 14px; margin: 12px 0; align-self: stretch; } }
@media (max-width: 719px)  { .ppdf-slf { margin: 12px 0 4px; } }

/* ---- theme defence for everything above. Same reasoning as the block further up: the
   theme's `button:not(.mfp-arrow)` and its bare `a`/`p` rules carry !important, so each
   value is restated here at doubled specificity. Nothing new is designed here. ---- */
.ppdf-slb__open.ppdf-slb__open, .ppdf-slb__go.ppdf-slb__go, .ppdf-slp__x.ppdf-slp__x,
.ppdf-slp__rm.ppdf-slp__rm, .ppdf-slp__cta.ppdf-slp__cta, .ppdf-slt__btn.ppdf-slt__btn {
  text-transform: none !important; letter-spacing: normal !important;
}
.ppdf-slb__go.ppdf-slb__go {
  font-family: var(--body) !important; font-size: 15px !important; font-weight: 700 !important;
  color: var(--navy) !important; background: #fff !important; border-color: var(--border) !important;
}
.ppdf-slb__go.ppdf-slb__go:hover { background: var(--sky) !important; color: var(--navy) !important; }
.ppdf-slp__cta.ppdf-slp__cta {
  font-family: var(--body) !important; font-size: 16px !important; font-weight: 700 !important;
  color: var(--navy) !important; background: #fff !important; border-color: var(--navy) !important;
}
.ppdf-slp__cta.ppdf-slp__cta:hover { background: var(--sky) !important; color: var(--navy) !important; }
.ppdf-slt__btn.ppdf-slt__btn {
  font-family: var(--body) !important; font-size: 15px !important; font-weight: 700 !important;
  color: var(--navy) !important; background: #fff !important; border-color: var(--navy) !important;
}
.ppdf-slp__x.ppdf-slp__x { font-size: 24px !important; color: var(--ink-muted) !important; background: none !important; }
.ppdf-slp__rm.ppdf-slp__rm { font-size: 22px !important; color: var(--navy) !important; background: none !important; }
/* The panel's show titles are <a>, and the theme colours links with !important. */
.ppdf-slp__tx a.ppdf-slp__ln { font-family: var(--body) !important; font-weight: 700 !important;
  font-size: 15px !important; color: var(--navy) !important; }
.ppdf-slp__full.ppdf-slp__full, .ppdf-slp__pdf p.ppdf-slp__pdfp {
  font-size: 14px !important; line-height: 1.5 !important;
}
.ppdf-slf.ppdf-slf { font-size: 15px !important; line-height: 1.45 !important; color: rgb(80,83,87) !important; }
@media (max-width: 1023px) { .ppdf-slf.ppdf-slf { font-size: 14px !important; } }
@media (max-width: 719px) {
  .ppdf-slb__go.ppdf-slb__go { font-size: 13px !important; }
}


/* ===================================================================================
   3 Dec, later: the phone bar's own wording, the two text links, and the hero button's
   shortlisted colours. Breakpoint is 719/720 throughout, as the briefs have it.
   =================================================================================== */

/* --- 7.2 phone wording: "Shortlist" over "n of 8 . View ^", two lines that never wrap.
   Both wordings are in the DOM and this chooses one, so nothing has to rewrite text on a
   resize. Sizes and weights are the board's (ShortlistBar frames 1 and 3): 14px display
   over 12px body, 3px between the count, "View" and the chevron. --- */
.ppdf-slb__ph { display: none; }
@media (max-width: 719px) {
  .ppdf-slb__lb { display: none; }
  .ppdf-slb__ph { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .ppdf-slb__ph strong {
    font-family: var(--display); font-weight: 700; font-size: 14px;
    color: var(--ink-strong); white-space: nowrap;
  }
  .ppdf-slb__phv {
    font-family: var(--body); font-weight: 700; font-size: 12px; color: var(--navy);
    display: flex; align-items: center; gap: 3px; white-space: nowrap;
  }
}

/* --- 7.5 "+ Add more shows". In the bar it is desktop and tablet only: below 720px the
   bar has no room beside the Intercom launcher's reserved strip. In the panel it shows on
   every device. Both disappear at 8 of 8, which the JavaScript does with [hidden]. --- */
.ppdf-slb__more, .ppdf-slp__more {
  flex: none; font-family: var(--body); font-weight: 700; font-size: 14px;
  color: var(--navy); text-decoration: underline; text-underline-offset: 3px;
}
.ppdf-slp__more { align-self: flex-start; }
.ppdf-slb__more[hidden], .ppdf-slp__more[hidden] { display: none !important; }
/* It used to be hidden below 720px, where the Intercom launcher sat beside the bar.
   The launcher moved above the bar on 3 Dec, so the phone bar has the room: it is an
   outlined button there now, styled at the end of this file (7.5, board BarAddMore B). */

/* --- 7.6 "Clear all": a navy text link in the header row, about 18px from the x. --- */
.ppdf-slp__clear {
  all: unset; cursor: pointer; margin-left: auto; margin-right: 18px;
  font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px;
}

/* --- Alex, 3 Dec: a shortlisted show reads the same on a show page as it does on a finder
   card. These are the finder's own pressed values (finder.css), not a second palette. --- */
.ppdf-save__btn[aria-pressed="true"] {
  background: #FFFAF0; color: rgb(178,110,0); border-color: #FBAA19;
}
.ppdf-save__btn[aria-pressed="true"]:hover {
  background: #FFFAF0; color: rgb(178,110,0); border-color: #FBAA19;
}

/* --- theme defence for the four above, same reasoning as the blocks before it. --- */
.ppdf-slp__clear.ppdf-slp__clear {
  text-transform: none !important; letter-spacing: normal !important;
  font-family: var(--body) !important; font-size: 14px !important; font-weight: 700 !important;
  color: var(--navy) !important; background: none !important;
}
a.ppdf-slb__more, a.ppdf-slp__more {
  font-family: var(--body) !important; font-size: 14px !important; font-weight: 700 !important;
  color: var(--navy) !important; text-transform: none !important; letter-spacing: normal !important;
}
.ppdf-save__btn.ppdf-save__btn[aria-pressed="true"] {
  background: #FFFAF0 !important; color: rgb(178,110,0) !important; border-color: #FBAA19 !important;
}
@media (max-width: 719px) {
  .ppdf-slb__ph.ppdf-slb__ph strong { font-size: 14px !important; }
  .ppdf-slb__phv.ppdf-slb__phv { font-size: 12px !important; color: var(--navy) !important; }
}

/* ---------------------------------------------------------------------------
 * 7.10: the bar steps aside for anything that opens over the page.
 *
 * display, not a slide: the brief asks for it to be gone the moment the sheet
 * opens, and an animation here would be visible underneath a sheet that is
 * itself still sliding up. The body's bottom padding is deliberately left in
 * place - taking it away would shift the page under the open sheet.
 * ------------------------------------------------------------------------ */
.ppdf-slb.ppdf-slb--away { display: none !important; }

/* ---------------------------------------------------------------------------
 * 11: the shortlist form's row of show logos, in place of the list of shows.
 *
 * One tile per show, overlapping, and nothing else - no names and no count
 * (Alex, 3 Dec, later): the heading above already reads "Your n shows in one
 * PDF". Not a control: no tap action, no Edit, no x. Shows are removed in Your
 * shortlist, which keeps its own x and Clear all.
 *
 * Three things Alex found on staging, all fixed here:
 *  - no tiles around the logos: the tile had a white fill and a white ring on a
 *    white sheet, so there was nothing to see. It now carries the 1px #E2E8EE
 *    border the brief asks for.
 *  - the first logo ran off the left edge: .ppdf-blk--sl was the one block in the
 *    form with no padding of its own, so this row alone started 20px to the left
 *    of every other line in the sheet. It now shares their 20px.
 *  - a dark vertical line over the first logo: the row was a <p>, and the theme
 *    styles bare paragraphs with !important. form.js now emits a <span>.
 *
 * 8 tiles = 48 + 7 x 40 = 328px, which fits a 390px phone inside that padding.
 * ------------------------------------------------------------------------ */
.ppdf-blk--sl { padding: 2px 20px 10px; }
.ppdf-fref { display: flex; align-items: center; margin: 0; min-width: 0; }
/* 2px of room on the left for the first tile's white ring, so it is not clipped
   and the tile's own edge still lines up with the text above it. */
.ppdf-fref__ts { display: flex; align-items: center; flex: none; padding-left: 2px; }
.ppdf-fref__t {
  box-sizing: border-box;
  position: relative;          /* later tiles paint over earlier ones, in DOM order */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 34px;
  /* The brief asks for an 8px overlap AND for the 34 x 24 logo box to be centred in
     the tile "so the overlap never covers any of it". Those two cannot both hold:
     centred leaves the logo 7px of clear tile on each side, while the next tile
     covers 8px plus the 2px white ring it paints over its neighbour - 10px in all.
     Measured on staging, that cut the right-hand letter off Matilda and Frozen.
     -6px here is an 8px overlap as the eye reads it (6px of tile + the 2px ring),
     which leaves every logo whole bar a single pixel, and 8 tiles still come to
     342px inside the 350px a 390px phone has between the sheet's side padding.
     Flagged for Alex: say the word and it goes back to a literal -8px. */
  margin-left: -6px;
  border: 1px solid #E2E8EE;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 2px #fff;
  overflow: hidden;
}
.ppdf-fref__t:first-child { margin-left: 0; }
/* Fitted inside a 34 x 24 box in the middle of the tile. */
.ppdf-fref__t img {
  display: block;
  max-width: 34px;
  max-height: 24px;
  object-fit: contain;
}
/* A show with no logo carries its short title instead, up to two lines. The theme
   forces letter-spacing and transforms on small text, so each is restated. */
.ppdf-fref__ab {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 34px;
  max-height: 24px;
  text-align: center;
  font-family: var(--display) !important;
  font-weight: 700 !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--ink, #2B2F33);
}

/* ===================================================================================
 * Section 7, item 11 (Alex, 3 Dec evening; board BarBold, option D): the shortlist
 * bar is navy at every screen size, and it turns heads when a show is added.
 * "People don't notice the white bar when it appears."
 *
 * Everything here is an override of the blocks above rather than an edit of them, so
 * the white bar is one block away if the board changes its mind. The doubled class
 * names are the file's existing answer to the theme, which colours text and buttons
 * with !important; they are used only where a rule above already had to fight it.
 *
 * Contrast on #3B6080: white 6.6:1, #DCE6F0 5.2:1 (the brief's own numbers).
 * =================================================================================== */

.ppdf-slb {
  background: #3B6080;
  border-top: 0;
  /* the soft shadow stays, from the block above */
}

/* The desktop wording: "Shortlist (n of 8)" white, the show names and "View your
   shortlist" in the lighter blue. */
.ppdf-slb .ppdf-slb__n  { color: #fff; }
.ppdf-slb .ppdf-slb__nm { color: #DCE6F0; }
.ppdf-slb .ppdf-slb__vl.ppdf-slb__vl { color: #DCE6F0 !important; }

/* "+ Add more shows": white and underlined. The rule it overrides carries
   !important, so this one has to as well. */
a.ppdf-slb__more.ppdf-slb__more {
  color: #fff !important;
  text-decoration: underline !important;
}

/* The bar's button: white fill, no border, navy text. Dropping the 2px border is
   the brief's; the 44px minimum height is unchanged, so the hit area does not move. */
.ppdf-slb__go.ppdf-slb__go {
  background: #fff !important;
  color: #3B6080 !important;
  border: 0 !important;
}
.ppdf-slb__go.ppdf-slb__go:hover { background: #F1F5F9 !important; color: #3B6080 !important; }

/* The thumbnail is unchanged (item 11), and the open button's own padding keeps the
   white card clear of the navy. */

@media (max-width: 719px) {
  /* The phone wording: "Shortlist" white over "n of 8 . View ^" in #DCE6F0. Both of
     these override a rule above that already carries !important. */
  .ppdf-slb__ph.ppdf-slb__ph strong { color: #fff !important; }
  .ppdf-slb__phv.ppdf-slb__phv { color: #DCE6F0 !important; }
}

/* --- the "+ Added" pill ------------------------------------------------------------
   Styled like the "✓ Shortlisted" button, with darker text: #8A5A00 on #FFFAF0 is
   7.0:1, which 11px bold needs and the button's own rgb(178,110,0) would not give.
   Two of them are in the DOM, one per wording; the stylesheet above already hides
   whichever wording is not in use, so both can be shown and only one is seen. */
.ppdf-slb__added.ppdf-slb__added {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: 6px;
  padding: 1px 8px;
  background: #FFFAF0;
  border: 1.5px solid #FBAA19;
  border-radius: 999px;
  font-family: var(--body) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1.5;
  color: #8A5A00 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: nowrap;
}
.ppdf-slb__added[hidden] { display: none !important; }

/* --- the slide and the pulse -------------------------------------------------------
   The count is a <strong> and a <span>, both inline, and a transform does nothing to
   an inline box - so they are inline-block at all times rather than only while the
   animation runs, which would have made the line shift the first time it pulsed. */
.ppdf-slb .ppdf-slb__n,
.ppdf-slb .ppdf-slb__phn { display: inline-block; }

@keyframes ppdf-slb-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.ppdf-slb.ppdf-slb--up { animation: ppdf-slb-up .25s ease-out; }

@keyframes ppdf-slb-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.ppdf-slb .ppdf-slb--pulse { animation: ppdf-slb-pulse .3s ease-out; }

/* Reduce Motion: no slide and no pulse. The pill still shows, which is the part that
   carries the message (item 11). */
@media (prefers-reduced-motion: reduce) {
  .ppdf-slb.ppdf-slb--up,
  .ppdf-slb .ppdf-slb--pulse { animation: none; }
}

/* "· View ⌃" on the phone bar is its own span. It was added so it could step aside
   for the two seconds the "✓ Added" pill is up, back when the bar reserved 84px on the
   right for the Intercom launcher and the line had only ~100px. The launcher is now
   lifted above the bar (block below) and the bar runs the full width, so the pill and
   "2 of 8 · View ⌃" fit together, which is what board BarBold option D draws. The span
   stays because it keeps the dot with the word rather than on the end of the count. */
.ppdf-slb__vw { display: inline-flex; align-items: center; gap: 3px; }

/* ===================================================================================
 * 3 Dec, late evening (Alex): "on mobile the intercom bubble should rise above the
 * shortlist bottom bar when it's on screen and the button can then be like the design".
 *
 * Brief §7 item 2 asked for `Intercom('update', { vertical_padding: barH + 16 })` and
 * said to check it on staging first. It does not work, and here is what was measured
 * at 390px: the launcher on the page is Intercom's LIGHTWEIGHT launcher, a placeholder
 * div the snippet injects with its own inline stylesheet hard-coding bottom:20px. An
 * update with vertical_padding:140, and a re-boot with it, both left it at bottom:20px,
 * sitting across the bar. The full Messenger - the thing that reads vertical_padding -
 * has not loaded at that point. (hide_default_launcher does work on it, so §7 item 10,
 * hiding under sheets, was never affected.)
 *
 * So the lift is a rule of our own, off --ppdf-slb-h, which drawBar sets from the bar's
 * measured height. !important because Intercom's own injected style sets bottom on the
 * same element and we do not own that stylesheet. The JS call stays as well, so the
 * full Messenger is in the right place once it loads.
 *
 * Board ShortlistBar frame 10 and board BarBold both draw this: BarBold's own CSS has
 * `.ic2 { right:16px; bottom:88px }` - the launcher above the bar - and overrides the
 * bar to `padding: 0 14px !important`, the full width. The brief says bar height + 16;
 * the board draws 12 (88 against a 76px bar). The brief's number is used here.
 * =================================================================================== */

html.ppdf-slb-on .intercom-lightweight-app-launcher,
html.ppdf-slb-on .intercom-launcher-frame,
html.ppdf-slb-on #intercom-launcher {
  bottom: calc(var(--ppdf-slb-h, 76px) + 16px) !important;
}

/* The phone bar uses the full width now that nothing has to sit beside it: 14px both
   sides, which is what BarBold overrides the bar to. Everything else in the phone
   block above - the 76px height, the 10px gap, the sizes - is unchanged. */
@media (max-width: 719px) {
  .ppdf-slb__in { padding: 0 14px; }
}

/* --- the "✓ Added" pill, centred on the line (Alex, 3 Dec evening) -----------------
 * The phone line was already a flex row, so its pill was centred. The desktop line was
 * not: it was an inline box with the ellipsis on it, so the pill sat on the text
 * baseline and read low. It is a flex row now, the way board BarBold has it
 * (`.pl span { display:flex; align-items:center }`), with the ellipsis moved onto the
 * names, which is the part that actually overflows.
 *
 * The 4px margin replaces the leading space in the names string, which a flex row
 * trims. 7px of side padding on the pill is the board's own number. */
.ppdf-slb__lb > span:first-child {
  display: flex;
  align-items: center;
  min-width: 0;
}
.ppdf-slb .ppdf-slb__n { flex: none; }
.ppdf-slb .ppdf-slb__nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 4px;
}
.ppdf-slb__added.ppdf-slb__added { padding: 1px 7px; }

/* ------------------------------------------------------------------------
 * "+ Add more shows" answers a click (Alex, 3 Dec evening). Both of them:
 * the one in the bar and the one in Your shortlist. shortlist-ui.js adds and
 * removes .is-loading.
 *
 * The ring is drawn in currentColor on a transparent circle rather than the
 * faint-ring-plus-solid-quarter the finder cards use, because this link is
 * navy in the panel and WHITE on the navy bar: one fixed ring colour would be
 * invisible on one of them, and currentColor is the only value that follows
 * both. Same size and the same -0.25em the finder measured.
 * ------------------------------------------------------------------------ */
.ppdf-slb__more.is-loading::after,
.ppdf-slp__more.is-loading::after {
  content: "";
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-left: 8px;
  vertical-align: -0.25em;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ppdf-spin .7s linear infinite;
}
@keyframes ppdf-spin { to { transform: rotate(360deg); } }

/* The ring stays, the turn goes - the same bargain as the bar's slide. */
@media (prefers-reduced-motion: reduce) {
  .ppdf-slb__more.is-loading::after,
  .ppdf-slp__more.is-loading::after {
    animation: none;
    border-color: currentColor;
  }
}

/* --- 7.5 on phones: "+ Add more shows" becomes an outlined button ------------------
 * Between the "Shortlist / n of 8 . View ^" label and the PDF button, outlined white
 * on the navy bar. The wording is chosen by measurement in shortlist-ui.js (fitMore),
 * which is why nothing here keys off a width: this block only has to describe the
 * three shapes it can take.
 *
 * The rules it overrides carry !important (the theme styles every <a>), so these do
 * too, with the class doubled for specificity - the same pattern as the rest of the
 * bar. */
@media (max-width: 719px) {
  a.ppdf-slb__more.ppdf-slb__more {
    flex: none;
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid rgba(255, 255, 255, .7) !important;
    border-radius: 8px;
    background: none !important;
    color: #fff !important;
    font-family: var(--body) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
  }

  /* 40px tall, 44px to the finger. An inset pseudo-element rather than padding or a
     taller box, so the outline the board draws keeps its 40px. */
  a.ppdf-slb__more.ppdf-slb__more::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -2px; bottom: -2px;
  }

  /* The last resort: a 40 x 40 square. aria-label carries the meaning. */
  a.ppdf-slb__more.ppdf-slb__more--plus { width: 40px; padding: 0; }

  /* The loading ring REPLACES the label instead of following it. Appending it would
     add about 24px to a button whose width was just measured to the pixel, which is
     how it would push the PDF button off the bar on the narrowest phones. */
  a.ppdf-slb__more.ppdf-slb__more.is-loading { color: transparent !important; }
  a.ppdf-slb__more.ppdf-slb__more.is-loading::after {
    position: absolute;
    left: 50%; top: 50%;
    margin: -8px 0 0 -8px;
    width: 16px; height: 16px;
    border-color: rgba(255, 255, 255, .35);
    border-top-color: #fff;
  }
}
/* --- " · View ^" steps aside while the "✓ Added" pill is up (phones) ---------------
 * The pill is 62px and the phone line has no room for both now that the "+ ..." button
 * shares it: measured at 375px, the resting line is 84 and the line with the pill and
 * View together wants 149. This was first done for item 11, then dropped when the bar
 * went full width and the room came back; the button takes that room again.
 *
 * The dot travels with "View", so the count never ends in a stray separator. The pill
 * carries its own [hidden], so this needs no second class to key off. */
@media (max-width: 719px) {
  .ppdf-slb__added:not([hidden]) ~ .ppdf-slb__vw { display: none !important; }
}