/* My First Pet Book (library, book landing, supplies, create). Scoped under .pb. */
.pb { --pb-teal: #04676F; --pb-teal-soft: #E3F1F0; --pb-coral: #C9391C; --pb-cream: #FBF6EE; --pb-sage: #DCE8DF; --pb-ink: #23323A; }
.pb-hero { background: var(--pb-teal-soft); border-bottom: 1px solid #cfe3e1; overflow: hidden; }
.pb-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
.pb-kicker { font-weight: 800; color: var(--pb-coral); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; margin: 14px 0 6px; }
.pb-hero h1 { font-family: var(--font-head); color: var(--pb-teal); font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 14px; }
.pb-dek { font-size: 19px; line-height: 1.5; color: var(--ink-soft); max-width: 36em; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.pb-btn-primary { background: var(--pb-coral); color: #fff; }
.pb-btn-primary:hover { background: #a92f16; color: #fff; }
.pb-btn-ghost { background: #fff; color: var(--pb-teal); box-shadow: inset 0 0 0 2px var(--pb-teal); }
.pb-btn-ghost:hover { background: var(--pb-teal-soft); color: var(--pb-teal); }
.pb-btn-sm { min-height: 44px; font-size: 15px; padding: 0 16px; }
.pb-btn[disabled] { opacity: .55; cursor: wait; }
.pb-meta { font-size: 14px; color: var(--ink-soft); }
.pb-hero-art { position: relative; min-height: 300px; }
.pb-hero-art img { width: 78%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px rgba(4, 103, 111, .22); display: block; background: #fff; }
.pb-hero-art img + img { position: absolute; width: 58%; right: 0; bottom: -10px; transform: rotate(4deg); }
.pb-section { padding: 44px 0 8px; }
.pb-section h2 { font-family: var(--font-head); color: var(--pb-teal); font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; }
.pb-lead { font-size: 18px; color: var(--ink-soft); max-width: 44em; }
.pb-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.pb-steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px; counter-increment: s; }
.pb-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pb-coral); color: #fff; font-weight: 800; margin-bottom: 8px; }
.pb-steps h3 { font-family: var(--font-head); font-size: 20px; margin: 4px 0 6px; color: var(--pb-teal); }
.pb-steps p { margin: 0; color: var(--ink-soft); }
.pb-grid { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pb-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.pb-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; background: var(--pb-sage); }
.pb-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pb-card h3 { font-family: var(--font-head); color: var(--pb-teal); font-size: 21px; margin: 0; }
.pb-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.pb-card .pb-actions { margin: auto 0 0; padding-top: 6px; }
.pb-tag { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--pb-teal-soft); color: var(--pb-teal); align-self: flex-start; }
.pb-soon { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.pb-soon li { background: #fff; border: 1px dashed #c9bfae; border-radius: 99px; padding: 6px 14px; font-weight: 700; color: var(--ink-soft); font-size: 15px; }
.pb-inside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; list-style: none; padding: 0; margin: 20px 0 0; }
.pb-inside li { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 16px 18px; }
.pb-inside strong { display: block; font-family: var(--font-head); color: var(--pb-teal); font-size: 18px; font-weight: 600; margin-bottom: 3px; }
.pb-samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 18px; }
.pb-samples figure { margin: 0; }
.pb-samples img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.08); display: block; background: #fff; }
.pb-samples figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.pb-note { background: #fff; border-left: 5px solid var(--pb-teal); border-radius: 12px; padding: 14px 18px; margin: 18px 0; color: var(--ink-soft); }
.pb-promo { background: var(--pb-teal); color: #fff; border-radius: 22px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 32px 0; }
.pb-promo h2, .pb-promo h3 { color: #fff; font-family: var(--font-head); margin: 0 0 6px; }
.pb-promo p { margin: 0; opacity: .92; }
.pb-promo .pb-btn-primary { background: #FFC93C; color: var(--pb-ink); }
.pb-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.pb-faq summary { font-weight: 800; cursor: pointer; }
.pb-faq p { margin: 10px 0 0; color: var(--ink-soft); }
.pb-related { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pb-related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 700; text-decoration: none; color: var(--pb-teal); }
.pb-supplies h2 { margin-top: 28px; }
.pb-supplies ul { list-style: none; padding: 0; }
.pb-supplies li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 10px 0; }
.pb-supplies li a { font-weight: 800; }
.pb-supplies .pb-why { color: var(--ink-soft); margin: 0 0 6px; }
.pb-check li { padding-left: 44px; position: relative; }
.pb-check li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; border: 2px solid var(--pb-teal); border-radius: 5px; }

/* CTA used inside articles (partials/pet-book-cta.njk) */
.pb-cta { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: var(--pb-teal-soft, #E3F1F0); border-radius: 18px; padding: 18px; margin: 28px 0; }
.pb-cta img { width: 120px; height: 120px; border-radius: 8px; object-fit: cover; }
.pb-cta h3 { font-family: var(--font-head); color: #04676F; margin: 0 0 4px; font-size: 21px; }
.pb-cta p { margin: 0 0 10px; }

/* Create page */
.pb-create { padding-top: 28px; padding-bottom: 60px; }
.pb-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; max-width: 720px; }
.pb-form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.pb-form legend { font-family: var(--font-head); color: var(--pb-teal); font-size: 20px; margin-bottom: 8px; }
.pb-field { margin: 0 0 16px; }
.pb-field label { display: block; font-weight: 800; margin-bottom: 6px; }
.pb-field .pb-opt { font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.pb-field input, .pb-field select, .pb-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid #d8cfbf; border-radius: 12px; background: #fff; }
.pb-field input:focus, .pb-field select:focus, .pb-field textarea:focus { outline: 3px solid #FFC93C; border-color: var(--pb-teal); }
.pb-field textarea { min-height: 110px; resize: vertical; }
.pb-help { font-size: 14px; color: var(--ink-soft); margin-top: 5px; }
.pb-err { color: var(--pb-coral); font-weight: 700; font-size: 14.5px; margin-top: 5px; }
.pb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pb-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-radios label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; background: var(--pb-cream); border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.pb-privacy { display: flex; gap: 10px; background: var(--pb-teal-soft); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; color: var(--pb-ink); margin: 4px 0 18px; }
.pb-viewer { display: none; }
.pb-viewer.is-on { display: block; }
.pb-viewer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.pb-viewer-top h2 { font-family: var(--font-head); color: var(--pb-teal); margin: 0; font-size: 26px; }
.pb-stage { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.pb-page { background: #fff; border-radius: 6px; box-shadow: 0 14px 36px rgba(4, 103, 111, .18); overflow: hidden; aspect-ratio: 1; }
.pb-page svg { display: block; width: 100%; height: 100%; }
.pb-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pb-teal); color: #fff; font-size: 22px; font-weight: 800; cursor: pointer; }
.pb-nav[disabled] { opacity: .3; cursor: default; }
.pb-pos { text-align: center; color: var(--ink-soft); margin: 10px 0 4px; font-weight: 700; }
.pb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 4px 14px; scroll-snap-type: x proximity; }
.pb-thumbs button { flex: 0 0 78px; height: 78px; padding: 0; border: 3px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; scroll-snap-align: center; overflow: hidden; }
.pb-thumbs button[aria-current="true"] { border-color: var(--pb-coral); }
.pb-thumbs svg { width: 100%; height: 100%; display: block; }
.pb-downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.pb-dl { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pb-dl h3 { font-family: var(--font-head); color: var(--pb-teal); margin: 0; font-size: 19px; }
.pb-dl p { margin: 0; color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.pb-dl-soon { background: var(--pb-cream); border-style: dashed; }
.pb-status { min-height: 1.4em; font-weight: 700; color: var(--pb-teal); }
.pb-art-note { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin: 6px 0 0; }

@media (max-width: 860px) {
  .pb-hero-in { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 32px; }
  .pb-hero-art { min-height: 0; max-width: 420px; }
  .pb-steps, .pb-inside, .pb-downloads { grid-template-columns: 1fr; }
  .pb-promo { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pb-row { grid-template-columns: 1fr; }
  .pb-form { padding: 18px 16px; }
  .pb-stage { grid-template-columns: 30px 1fr 30px; gap: 4px; }
  .pb-nav { width: 30px; height: 30px; font-size: 18px; }
  .pb-cta { grid-template-columns: 1fr; }
}

/* Pet picker (library page) and cross-links, 2026-11-30 */
.pb-picker { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 18px 0 4px; }
.pb-search { flex: 1 1 240px; max-width: 360px; }
.pb-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.pb-search input:focus { outline: 3px solid var(--pb-teal-soft); border-color: var(--pb-teal); }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chips button { font: inherit; font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; }
.pb-chips button[aria-pressed="true"] { background: var(--pb-teal); border-color: var(--pb-teal); color: #fff; }
.pb-card h3 a { color: inherit; text-decoration: none; }
.pb-card h3 a:hover { text-decoration: underline; }
.pb-card [hidden], .pb-grid > li[hidden], .pb-soon li[hidden], .pb-soon-group[hidden] { display: none; }
.pb-empty { margin: 18px 0 0; padding: 14px 18px; background: #fff; border: 1px dashed #c9bfae; border-radius: 14px; color: var(--ink-soft); }
.pb-soon-h { margin-top: 34px; }
.pb-soon-group { margin-top: 14px; }
.pb-soon-group h4 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.pb-soon-group .pb-soon { margin-top: 8px; }
.pb-minis { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.pb-minis a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; color: var(--pb-teal); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.pb-minis img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; object-fit: cover; margin: 0; }
