/* Photo book catalogue, unit 89. Loaded after guides.css and uses its tokens. */
@font-face {
  font-family: Caveat;
  src: url('/landing/fonts/caveat.woff2') format('woff2');
  font-display: swap;
}
.pb-list h1,
.pb-panel h1 {
  margin-bottom: 14px;
}
.pb-from {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 26px;
}
.pb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.pb-chips a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  background: #fffdf8;
}
.pb-chips a:hover {
  border-color: var(--ink);
}
.pb-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.pb-drop {
  position: relative;
}
.pb-drop summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.pb-drop summary::-webkit-details-marker {
  display: none;
}
.pb-drop summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: -3px 0 0 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.pb-drop[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.pb-drop-on summary {
  border-color: var(--ink);
  background: #f4ead3;
}
.pb-drop-count {
  font-weight: 700;
}
.pb-drop-menu {
  position: absolute;
  z-index: 15;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  display: grid;
  padding: 6px;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(48, 36, 22, 0.16);
}
.pb-filter {
  font: inherit;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.pb-filter::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.pb-filter:hover {
  background: #f4ead3;
}
.pb-filter[aria-pressed='true']::before {
  border-color: var(--ink);
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fffdf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.pb-result {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.pb-clear {
  font: inherit;
  font-size: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

/* Occasions as picture tiles; a row that scrolls sideways on a phone */
.pb-occasions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  gap: 12px;
  margin: 8px 0 30px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.pb-occasion {
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.pb-occasion img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
}
.pb-occasion:hover img {
  transform: scale(1.03);
}
.pb-occasion[aria-current='page'] img {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.pb-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.pb-filter:focus-visible,
.pb-drop summary:focus-visible,
.pb-occasion:focus-visible,
.pb-tile a:focus-visible,
.pb-qv button:focus-visible,
.pb-choices button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 36px 26px;
  padding: 0;
  margin: 0 0 56px;
  list-style: none;
}
.pb-tile[hidden] {
  display: none;
}
.pb-tile a {
  display: grid;
  gap: 6px;
  text-decoration: none;
  border-radius: 6px;
}
.pb-book {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #f1ece2;
  border-radius: 6px;
}
.pb-book img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  margin-inline: auto;
  display: block;
  max-width: 82%;
  max-height: 80%;
  width: auto;
  height: auto;
  border-radius: 1px 4px 4px 1px;
  box-shadow:
    inset 6px 0 0 rgba(0, 0, 0, 0.06),
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 10px 22px rgba(48, 36, 22, 0.22);
  transition: transform 0.2s ease;
}
.pb-tile a:hover .pb-book img {
  transform: translateY(-4px) rotate(-1deg);
}
.pb-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  margin-top: 6px;
}
.pb-price {
  font-size: 14px;
  color: var(--muted);
}
.pb-empty {
  color: var(--muted);
}
.pb-copy {
  max-width: 760px;
  margin-bottom: 64px;
}
.pb-copy section {
  margin-block: 40px;
}
.pb-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  margin-block: 18px;
}
.pb-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pb-table caption {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
}
.pb-table th,
.pb-table td {
  text-align: left;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

/* The design page */
.pb-design-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: 40px;
}
.pb-gallery {
  min-width: 0;
}
.pb-stage {
  position: relative;
  margin: 0;
  background: #f1ece2;
  border-radius: 8px;
  aspect-ratio: 1.25;
}
.pb-stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  max-width: 88%;
  max-height: 86%;
  width: auto;
  height: auto;
  box-shadow: 0 14px 30px rgba(48, 36, 22, 0.24);
}
.pb-thumbs {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  overflow-x: auto;
}
.pb-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  height: 64px;
}
.pb-thumbs button[aria-current='true'] {
  border-color: var(--ink);
}
.pb-thumbs img {
  display: block;
  height: 60px;
  width: auto;
}
.pb-line {
  font-size: 17px;
  color: var(--muted);
}
.pb-spreads {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}
.pb-spreads img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(48, 36, 22, 0.16);
}
.pb-spreads p {
  margin-top: 10px;
}
.pb-similar {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Choices, shared by the design page and the quick view */
.pb-choices {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.pb-choice-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.pb-tag {
  position: relative;
  justify-self: start;
  padding: 12px 22px 12px 34px;
  background: #f4ead3;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  transform: rotate(-2deg);
  box-shadow: 0 3px 10px rgba(48, 36, 22, 0.16);
}
.pb-tag::before {
  content: '';
  position: absolute;
  left: 14px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(48, 36, 22, 0.3);
}
.pb-tag strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
}
.pb-tag span {
  font-size: 13px;
}
.pb-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.pb-start {
  justify-self: start;
  min-width: 200px;
  font-size: 16px;
}

/* The quick view: one sheet of watercolour paper, taped down */
.pb-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(48, 36, 22, 0.55);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}
.pb-qv {
  position: relative;
  width: min(1020px, 100%);
  background: #fffdf4 url('/landing/images/texture-watercolour-paper.webp') center/cover;
  transform: rotate(-0.6deg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 28px 60px rgba(30, 20, 10, 0.35);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 3vw, 40px);
}
.pb-qv::before,
.pb-qv::after {
  content: '';
  position: absolute;
  top: -14px;
  width: 132px;
  height: 30px;
  background: rgba(214, 196, 140, 0.82);
  clip-path: polygon(3% 0, 97% 8%, 100% 92%, 2% 100%, 5% 50%);
}
.pb-qv::before {
  left: 32px;
  transform: rotate(-6deg);
}
.pb-qv::after {
  right: 40px;
  transform: rotate(5deg);
  background: rgba(175, 196, 186, 0.82);
}
.pb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.pb-close:hover {
  background: rgba(48, 36, 22, 0.08);
}
.pb-flip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.pb-qv > * {
  min-width: 0;
}
.pb-flip-stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.3;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: rgba(241, 236, 226, 0.7);
  border-radius: 4px;
}
.pb-flip-stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  max-width: 92%;
  max-height: 90%;
  width: auto;
  height: auto;
  box-shadow: 0 12px 26px rgba(48, 36, 22, 0.26);
}
.pb-flip-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.pb-flip-bar button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf6;
  color: var(--ink);
  cursor: pointer;
}
.pb-count {
  font-family: Caveat, cursive;
  font-size: 22px;
  min-width: 64px;
  text-align: center;
}
.pb-label {
  justify-self: start;
  display: inline-block;
  padding: 10px 18px;
  background: #fffdf7;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  transform: rotate(-2deg);
  box-shadow: 0 2px 8px rgba(48, 36, 22, 0.14);
  margin: 0 0 6px;
}
.pb-qv-side {
  display: grid;
  align-content: start;
  gap: 14px;
}
.pb-qv-side > p {
  margin: 0;
}
.pb-details-link {
  font-size: 15px;
}
body.pb-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .pb-design-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .pb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .pb-name {
    font-size: 16px;
  }
  .pb-veil {
    place-items: end stretch;
    padding: 0;
  }
  .pb-qv {
    transform: none;
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
    padding: 30px 16px 96px;
    border-radius: 14px 14px 0 0;
  }
  .pb-qv::after {
    display: none;
  }
  .pb-qv-side .pb-start {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    z-index: 2;
    box-shadow: 0 6px 18px rgba(48, 36, 22, 0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pb-book img {
    transition: none;
  }
}

.pb-credits {
  font-size: 13px;
  color: var(--muted);
}

.pb-book.pb-mock {
  overflow: hidden;
}
.pb-book.pb-mock img {
  position: static;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: none;
  transform: none;
}
.pb-tile a:hover .pb-book.pb-mock img {
  transform: scale(1.03);
}

.pb-stage.pb-mock img,
.pb-flip-stage.pb-mock img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  box-shadow: none;
  border-radius: 8px;
}

/* Sample photos label, on any picture showing people */
.pb-sample {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.pb-flip {
  position: relative;
}
.pb-spec {
  font-size: 14px;
  color: var(--muted);
  margin: -6px 0 10px;
}
.pb-line {
  font-size: 15px;
}
.pb-pictured {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* The choices: book type and size as picture cards, orientation and pages as pills */
.pb-choice-set {
  display: grid;
  gap: 18px;
}
.pb-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pb-options-cover {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
.pb-card {
  font: inherit;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.pb-card[aria-pressed='true'] {
  border: 2px solid var(--ink);
  padding: 7px 7px 9px;
}
.pb-card:disabled {
  opacity: 0.45;
  cursor: default;
}
.pb-card strong {
  font-size: 14px;
  font-weight: 600;
}
.pb-card small {
  font-size: 12px;
  color: var(--muted);
}
.pb-pic {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 4px;
  background: #f1ece2;
  border-radius: 5px;
}
.pb-card-size {
  min-width: 108px;
}
.pb-card-size .pb-pic {
  max-width: 90px;
}
.pb-pill {
  font: inherit;
  min-width: 52px;
  height: 44px;
  padding: 0 14px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf6;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}
.pb-pill[aria-pressed='true'] {
  border: 2px solid var(--ink);
  background: #f4ead3;
}
.pb-group .pb-note {
  margin-top: 8px;
}

/* The fixed bar on a design page */
.pb-bar {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
  background: #fffdf6;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(48, 36, 22, 0.08);
}
.pb-bar[hidden] {
  display: none;
}
.pb-bar > div {
  display: grid;
  min-width: 0;
  flex: 1;
}
.pb-bar > div span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-bar-price {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
}
.pb-design {
  padding-bottom: 90px;
}
@media (max-width: 640px) {
  .pb-bar > div strong {
    display: none;
  }
  .pb-bar-price {
    font-size: 18px;
  }
}

/* Christmas order-by line */
.pb-deadline {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 4px solid #b3261e;
  background: #fbeae4;
  color: #5a1414;
  font-weight: 600;
  font-size: 15px;
}
.pb-deadline[hidden] {
  display: none;
}
.pb-list > .pb-deadline:first-child {
  margin: 0 0 12px;
}
.pb-choice-set .pb-deadline {
  margin: 0;
}

/* Choice cards with a photo, and the larger view */
.pb-pic-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pb-pic-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The binding photos leave room round the book; the small card shows the book itself. */
.pb-pic-near img {
  transform: scale(1.55);
  transform-origin: 52% 52%;
}
.pb-card-size .pb-pic-photo {
  max-width: 120px;
}
.pb-card-wrap {
  position: relative;
  display: grid;
}
.pb-card-wrap > .pb-card {
  width: 100%;
}
.pb-zoom-open {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.92);
  color: var(--ink);
  cursor: zoom-in;
}
.pb-zoom-open svg {
  width: 18px;
  height: 18px;
}
@media (hover: hover) and (pointer: fine) {
  .pb-zoom-open {
    display: none;
  }
}
.pb-zoom {
  position: fixed;
  z-index: 60;
  margin: 0;
  padding: 8px 8px 10px;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(48, 36, 22, 0.22);
  pointer-events: none;
}
.pb-zoom img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.pb-zoom figcaption {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
}

/* Christmas: the countdown banner */
.pb-xmas {
  --xmas: #8f1d1d;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 0 0 26px;
  padding: 18px 22px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px) 0 0 / 46px
      46px,
    linear-gradient(120deg, #8f1d1d, #b3261e 55%, #7a1717);
  color: #fff7ea;
  box-shadow: 0 10px 26px rgba(143, 29, 29, 0.28);
}
.pb-xmas[hidden] {
  display: none;
}
.pb-xmas-text {
  display: grid;
  gap: 2px;
  flex: 1 1 220px;
}
.pb-xmas-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd98a;
}
.pb-xmas-text strong {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}
.pb-xmas-text > span:last-child {
  font-size: 14px;
  opacity: 0.85;
}
.pb-countdown {
  display: flex;
  gap: 8px;
}
.pb-countdown > span {
  display: grid;
  justify-items: center;
  min-width: 62px;
  padding: 8px 6px 6px;
  border-radius: 8px;
  background: #fff7ea;
  color: #7a1717;
}
.pb-countdown b {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pb-countdown small {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pb-xmas-go {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffd98a;
  color: #3b0d0d;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.pb-xmas-go:hover {
  background: #ffe6ad;
}
@media (max-width: 640px) {
  .pb-xmas {
    padding: 16px;
  }
  .pb-countdown > span {
    min-width: 54px;
  }
  .pb-xmas-go {
    width: 100%;
    justify-content: center;
  }
}

.pb-lede {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 8px;
}

/* Design yours: a blank book fading into the same book filled with photos */
.pb-fade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.pb-fade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-fade .pb-fade-on {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: pb-fill 7s ease-in-out infinite;
}
@keyframes pb-fill {
  0%,
  30% {
    opacity: 0;
  }
  45%,
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
a:hover .pb-fade .pb-fade-on,
a:focus-visible .pb-fade .pb-fade-on {
  animation: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .pb-fade .pb-fade-on {
    animation: none;
  }
}
.pb-own .pb-book {
  background: #efe9df;
  outline: 2px dashed rgba(48, 36, 22, 0.25);
  outline-offset: -8px;
}
.pb-own .pb-name::before {
  content: '+ ';
}

.pb-yours {
  margin: 48px 0 40px;
  padding: 28px;
  border-radius: 14px;
  background: #f4efe6;
}
.pb-yours-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 18px;
}
.pb-yours-head h2 {
  margin: 0;
}
.pb-yours-head p {
  margin: 0;
  color: var(--muted);
}
.pb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.pb-steps li {
  position: relative;
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.pb-steps li + li::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 38%;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.5;
}
.pb-steps b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--ink);
  color: #fffdf8;
  font-size: 12px;
}
.pb-step-pic {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #efe9df;
}
.pb-step-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-yours-styles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 12px;
  margin: 0 0 22px;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.pb-yours-styles a {
  display: grid;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.pb-yours-styles .pb-fade {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
}
.pb-yours-styles li:nth-child(2) .pb-fade-on {
  animation-delay: 1.2s;
}
.pb-yours-styles li:nth-child(3) .pb-fade-on {
  animation-delay: 2.4s;
}
.pb-yours-styles li:nth-child(4) .pb-fade-on {
  animation-delay: 3.6s;
}
.pb-yours-styles li:nth-child(5) .pb-fade-on {
  animation-delay: 4.8s;
}
.pb-yours-styles li:nth-child(6) .pb-fade-on {
  animation-delay: 6s;
}
@media (max-width: 640px) {
  .pb-yours {
    margin-inline: -16px;
    padding: 20px 16px;
    border-radius: 0;
  }
  .pb-steps {
    gap: 14px;
  }
  .pb-steps li {
    font-size: 13px;
  }
  .pb-steps li + li::before {
    display: none;
  }
}

/* The Design your own page: the style picker in the panel */
.pb-own-page > .pb-steps {
  margin: 36px 0 10px;
}
.pb-styles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}
.pb-style {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #efe9df;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}
.pb-style img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-style[aria-pressed='true'] {
  border-color: var(--ink);
}
.pb-style:hover {
  border-color: rgba(48, 36, 22, 0.4);
}
.pb-style-name {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}
@media (max-width: 640px) {
  .pb-styles {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* A product page's first screen (1 November 2026): the book open, then the covers it comes in. */
.pb-product {
  margin: 8px 0 40px;
}
.pb-product .answer {
  margin-bottom: 10px;
}
.pb-product .pb-spec {
  margin: 0 0 18px;
}
.pb-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.pb-product-photo {
  margin: 0;
}
.pb-product-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.pb-product-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.pb-product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
}
.pb-product-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.pb-product-card h2 {
  font-size: 18px;
  margin: 4px 0 0;
}
.pb-product-price {
  font-weight: 600;
  margin: 0;
}
.pb-product-card ul {
  margin: 0 0 4px;
  padding-left: 16px;
  font-size: 13px;
  color: var(--muted);
}
.pb-product-card .button {
  margin-top: auto;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}
.pb-product-delivery {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.pb-designs-title {
  margin: 0 0 14px;
}
@media (max-width: 860px) {
  .pb-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
