/* =====================================================================
   PinBoostr — "Board + Sticker" pages (new free tools, 2026-10).
   Loaded only where inc/board-tools.php renders a page. Every class is
   prefixed .pb-bd- so retro-brand.css and the Tailwind purge never touch it.

   Direction: white page, an extra-wide poster headline with one butter
   highlight, and results pinned to a sky-blue board as outlined "sticker"
   cards with hard shadows, coloured by status. Buttons press down when
   clicked. No hero band, no gradients, no glow.
   ===================================================================== */

.pb-bd {
  --white: #ffffff;
  --sky: #dcebff;
  --ink: #0e0e12;
  --mut: #55555f;
  --soft: #85858f;
  --rose: #e11d48;
  --rose-dk: #be123c;
  --butter: #ffe06a;
  --mint: #a6efcc;
  --blush: #ffc9d6;
  --lilac: #e4ddff;
  --tile: #f3f3f1;
  --edge: 2.5px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --r: 22px;
  --r-sm: 14px;
  --disp: "Anybody", "Arial Black", ui-sans-serif, system-ui, sans-serif;
  --ui: "Gabarito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  background: var(--white);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.pb-bd *, .pb-bd *::before, .pb-bd *::after { box-sizing: border-box; }
.pb-bd :focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* Same container as the site header (max-w-7xl + px-4 sm:px-6 lg:px-8). */
.pb-bd-wrap { margin: 0 auto; max-width: 80rem; padding-inline: 1rem; }
@media (min-width: 640px) { .pb-bd-wrap { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .pb-bd-wrap { padding-inline: 2rem; } }

/* ── Masthead: name, one line, then the tool ─────────────────────── */

.pb-bd-top { padding-top: 34px; }
@media (min-width: 900px) { .pb-bd-top { padding-top: 50px; } }

.pb-bd-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font: 600 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); }
.pb-bd-crumb a { color: var(--mut); text-decoration: none; }
.pb-bd-crumb a:hover { color: var(--ink); }
.pb-bd-crumb em { font-style: normal; color: var(--rose); }

.pb-bd-h1 {
  margin: 18px 0 0;
  max-width: 16ch;
  font-family: var(--disp);
  font-variation-settings: "wdth" 128;
  font-weight: 900;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.pb-bd-h1 em, .pb-bd-h2 em { font-style: normal; background: var(--butter); padding: 0 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.pb-bd-lede { margin: 18px 0 0; max-width: 42rem; font-size: 1.1rem; line-height: 1.6; color: var(--mut); }
.pb-bd-fine { margin: 16px 0 0; font-size: 13px; color: var(--soft); }

/* ── Inputs and buttons: outlined, hard shadow, press down ─────────── */

.pb-bd-form { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; max-width: 840px; }
.pb-bd-field { position: relative; flex: 1 1 300px; min-width: 0; }
.pb-bd-field > i { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--soft); pointer-events: none; }
.pb-bd-input {
  width: 100%;
  border: var(--edge);
  border-radius: var(--r);
  background: var(--white);
  padding: 16px 20px 16px 50px;
  font: 600 16px var(--ui);
  color: var(--ink);
  box-shadow: var(--pop);
}
.pb-bd-input::placeholder { color: var(--soft); font-weight: 500; }

.pb-bd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: var(--edge);
  border-radius: var(--r);
  background: var(--rose);
  color: #fff;
  font: 800 16px/1.2 var(--ui);
  padding: 15px 26px;
  box-shadow: var(--pop);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.pb-bd-btn:hover { background: var(--rose-dk); color: #fff; }
.pb-bd-btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.pb-bd-btn[disabled] { opacity: 0.65; cursor: progress; }
.pb-bd-btn--white { background: var(--white); color: var(--ink); }
.pb-bd-btn--white:hover { background: var(--butter); color: var(--ink); }
.pb-bd-btn--butter { background: var(--butter); color: var(--ink); }
.pb-bd-btn--butter:hover { background: #ffd43b; color: var(--ink); }
.pb-bd-btn--sm { padding: 8px 13px; font-size: 14px; border-radius: 12px; border-width: 2px; box-shadow: var(--pop-sm); }
.pb-bd-btn--sm:active { transform: translate(3px, 3px); }

.pb-bd-seeds { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--mut); }
.pb-bd-seed { border: 2px solid var(--ink); border-radius: 10px; background: var(--white); padding: 5px 10px; font: 700 13px var(--ui); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.pb-bd-seed:hover { background: var(--butter); }

.pb-bd-status { margin: 22px 0 0; min-height: 1.5em; font: 600 14px var(--ui); color: var(--mut); }
.pb-bd-status.is-error { color: var(--rose-dk); }

/* ── The board: results pinned as stickers ─────────────────────────── */

.pb-bd-board { margin-top: 18px; background: var(--sky); border-radius: 30px; padding: 20px; columns: 4 230px; column-gap: 20px; }
@media (max-width: 640px) { .pb-bd-board { padding: 14px; border-radius: 22px; column-gap: 14px; } }
.pb-bd-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 34px; }
.pb-bd-board-head h2 { margin: 0; font: 800 1.25rem var(--ui); }
.pb-bd-board-head .pb-bd-tag { background: var(--butter); }

.pb-bd-pin {
  display: block;
  break-inside: avoid;
  margin: 0 0 20px;
  border: var(--edge);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--pop);
  overflow: hidden;
  color: var(--ink);
  animation: pb-bd-drop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25) backwards;
}
.pb-bd-pin:nth-child(2) { animation-delay: 0.04s; } .pb-bd-pin:nth-child(3) { animation-delay: 0.08s; }
.pb-bd-pin:nth-child(4) { animation-delay: 0.12s; } .pb-bd-pin:nth-child(5) { animation-delay: 0.16s; }
.pb-bd-pin:nth-child(6) { animation-delay: 0.2s; }  .pb-bd-pin:nth-child(n+7) { animation-delay: 0.24s; }
@keyframes pb-bd-drop { from { transform: translateY(-12px) rotate(-1.5deg); opacity: 0; } }

.pb-bd-pin-body { padding: 15px 17px 17px; }
.pb-bd-tag { display: inline-block; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); padding: 3px 7px; font: 600 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.pb-bd-pin h3 { margin: 10px 0 0; font: 800 1.14rem/1.22 var(--ui); overflow-wrap: anywhere; }
.pb-bd-pin p { margin: 7px 0 0; font-size: 0.94rem; line-height: 1.5; color: #30303a; overflow-wrap: anywhere; }
.pb-bd-pin code, .pb-bd-prose code, .pb-bd-faq code { font: 500 12.5px var(--mono); background: rgba(14, 14, 18, 0.08); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.pb-bd-fix { margin-top: 11px; padding-top: 10px; border-top: 2px dashed rgba(14, 14, 18, 0.28); font-size: 0.9rem; line-height: 1.5; }
.pb-bd-fix b { display: block; margin-bottom: 3px; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.pb-bd-pin .pb-bd-btn--sm { margin-top: 10px; }

.pb-bd-pin.is-pass { background: var(--mint); }
.pb-bd-pin.is-warn { background: var(--butter); }
.pb-bd-pin.is-fail { background: var(--blush); }
.pb-bd-pin.is-note { background: var(--lilac); }
.pb-bd-pin.is-score { background: var(--ink); color: #fff; }
.pb-bd-pin.is-score .pb-bd-tag { background: var(--butter); border-color: var(--butter); }
.pb-bd-pin.is-score p { color: #e4e4e7; }
.pb-bd-pin.is-score h3 { color: #fff; }

.pb-bd-big { margin-top: 12px; font: 900 88px/0.85 var(--disp); font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums; }
.pb-bd-big small { font-size: 26px; color: #a1a1aa; }
.pb-bd-big.is-long { font-size: 64px; }
.pb-bd-big.is-xl { font-size: 48px; }
.pb-bd-big.is-xxl { font-size: 38px; }
.pb-bd-big.is-long small, .pb-bd-big.is-xl small, .pb-bd-big.is-xxl small { font-size: 20px; }
.pb-bd-mid { margin-top: 8px; font: 900 38px/0.95 var(--disp); font-variation-settings: "wdth" 118; font-variant-numeric: tabular-nums; text-transform: uppercase; overflow-wrap: anywhere; }
.pb-bd-tally { display: flex; gap: 6px; margin-top: 14px; }
.pb-bd-tally span { flex: 1; border: 2px solid #fff; border-radius: 8px; padding: 4px 6px; font: 600 11px var(--mono); text-align: center; color: var(--ink); }
.pb-bd-tally .t-pass { background: var(--mint); } .pb-bd-tally .t-warn { background: var(--butter); } .pb-bd-tally .t-fail { background: var(--blush); }

.pb-bd-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.pb-bd-list li { display: flex; gap: 8px; align-items: baseline; }
.pb-bd-list b { flex: none; width: 1.1em; font-weight: 800; }
.pb-bd-hops li { overflow-wrap: anywhere; }

/* Topic planner: post ideas inside a bucket card */
.pb-bd-pin p.pb-bd-idea-key { margin-top: 4px; font: 600 12px var(--mono); color: var(--mut); }
.pb-bd-ideas { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.pb-bd-ideas li { padding-top: 9px; border-top: 1.5px dashed rgba(14, 14, 18, 0.2); }
.pb-bd-ideas strong { display: block; font: 700 0.95rem/1.3 var(--ui); }
.pb-bd-ideas span { display: block; margin-top: 2px; font: 500 12px var(--mono); color: var(--mut); overflow-wrap: anywhere; }
.pb-bd-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 10px 0 0; font-size: 0.92rem; }
.pb-bd-kv dt { font: 600 11.5px/1.8 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: inherit; opacity: 0.75; }
.pb-bd-kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Pin size previews: feed tile, close-up and full-screen frames with optional safe zones */
.pb-bd-frame { position: relative; margin-top: 12px; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--tile); }
.pb-bd-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-bd-frame.is-feed { width: min(100%, 236px); aspect-ratio: var(--ar, 2 / 3); }
.pb-bd-frame.is-full { width: min(100%, 220px); aspect-ratio: 9 / 16; background: #111; }
.pb-bd-frame.is-full img { object-fit: contain; }
.pb-bd-zone { position: absolute; background: rgba(225, 29, 72, 0.32); border: 1.5px dashed var(--rose-dk); pointer-events: none; }
.pb-bd-zones-off .pb-bd-zone { display: none; }
.pb-bd-cut { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; background: rgba(14, 14, 18, 0.78); color: #fff; font: 600 11px var(--mono); text-align: center; }
.pb-bd-thumb { display: block; width: 100%; max-height: 320px; object-fit: contain; background: var(--tile); border-bottom: var(--edge); }

/* Rich pin / link preview card */
.pb-bd-art { position: relative; aspect-ratio: 2 / 3; width: 100%; max-height: 380px; background: var(--tile) center / cover no-repeat; border-bottom: var(--edge); display: flex; align-items: flex-end; padding: 14px; }
.pb-bd-art.is-empty { background: var(--butter); }
.pb-bd-art b { font: 900 26px/0.95 var(--disp); font-variation-settings: "wdth" 115; text-transform: uppercase; overflow-wrap: anywhere; }
.pb-bd-art .pb-bd-tag { position: absolute; top: 12px; left: 12px; }
.pb-bd-meta { padding: 12px 15px 15px; display: grid; gap: 5px; }
.pb-bd-site { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mut); overflow-wrap: anywhere; }
.pb-bd-site i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--rose); color: #fff; font: 700 11px/22px var(--ui); text-align: center; font-style: normal; text-transform: uppercase; }
.pb-bd-meta strong { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.pb-bd-meta span.d { font-size: 0.88rem; color: var(--mut); line-height: 1.45; }

/* Loading pins */
.pb-bd-ghost { height: 150px; background: rgba(255, 255, 255, 0.55); border-style: dashed; box-shadow: none; animation: pb-bd-pulse 1.1s ease-in-out infinite alternate; }
.pb-bd-ghost:nth-child(2n) { height: 220px; }
@keyframes pb-bd-pulse { to { background: rgba(255, 255, 255, 0.95); } }

/* ── Panels, fields, segmented choices (UTM builder, calculator) ───── */

.pb-bd-panel { margin-top: 28px; border: var(--edge); border-radius: 28px; background: var(--white); box-shadow: var(--pop); padding: 22px; }
@media (min-width: 900px) { .pb-bd-panel { padding: 28px; } }
.pb-bd-fields { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pb-bd-fields + .pb-bd-fields { margin-top: 18px; }
.pb-bd-fieldset { min-width: 0; }
.pb-bd-fieldset.is-wide { grid-column: 1 / -1; }
.pb-bd-fieldset > label, .pb-bd-legend { display: block; margin-bottom: 6px; font: 800 14px var(--ui); }
.pb-bd-hint { margin: 5px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--soft); }
.pb-bd-control { width: 100%; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); padding: 11px 13px; font: 600 15px var(--ui); color: var(--ink); }
textarea.pb-bd-control { min-height: 110px; resize: vertical; font: 500 13.5px/1.5 var(--mono); }
.pb-bd-unit { position: relative; }
.pb-bd-unit > span { position: absolute; right: 13px; top: 50%; translate: 0 -50%; font: 700 13px var(--mono); color: var(--soft); pointer-events: none; }
.pb-bd-unit > .pre { left: 13px; right: auto; }
.pb-bd-unit > .pre + .pb-bd-control { padding-left: 28px; }
.pb-bd-range { width: 100%; accent-color: var(--rose); margin-top: 8px; }

.pb-bd-seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--white); }
.pb-bd-seg button { border: 0; border-right: 2px solid var(--ink); background: var(--white); padding: 9px 14px; font: 700 14px var(--ui); color: var(--ink); cursor: pointer; }
.pb-bd-seg button:last-child { border-right: 0; }
@media (max-width: 640px) {
  .pb-bd-seg { display: flex; flex-direction: column; width: 100%; }
  .pb-bd-seg button { border-right: 0; border-bottom: 2px solid var(--ink); text-align: left; }
  .pb-bd-seg button:last-child { border-bottom: 0; }
  .pb-bd-form .pb-bd-btn { width: 100%; }
}
.pb-bd-seg button[aria-pressed="true"] { background: var(--butter); }

.pb-bd-out { margin-top: 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--tile); padding: 14px 16px; font: 500 14px/1.55 var(--mono); overflow-wrap: anywhere; }
.pb-bd-out mark { background: var(--butter); color: var(--ink); padding: 0 2px; border-radius: 3px; }
.pb-bd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }

/* ── Drop zone (image tools; files never leave the browser) ────────── */

.pb-bd-drop { position: relative; margin-top: 26px; max-width: 840px; border: 2.5px dashed var(--ink); border-radius: 28px; background: var(--sky); padding: 34px 22px; display: grid; justify-items: start; gap: 10px; cursor: pointer; transition: background-color 0.15s ease; }
.pb-bd-drop:hover, .pb-bd-drop.is-over { background: var(--butter); }
.pb-bd-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pb-bd-drop strong { font: 900 1.5rem/1 var(--disp); font-variation-settings: "wdth" 120; text-transform: uppercase; }
.pb-bd-drop span { color: var(--mut); font-size: 0.95rem; }

/* ── Content sections ─────────────────────────────────────────────── */

.pb-bd-section { padding-top: 76px; }
.pb-bd-label { margin: 0; font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); }
.pb-bd-h2 { margin: 10px 0 0; max-width: 22ch; font-family: var(--disp); font-variation-settings: "wdth" 118; font-weight: 900; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.pb-bd-split { display: grid; gap: 26px; }
@media (min-width: 900px) { .pb-bd-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.pb-bd-prose { max-width: 46rem; font-size: 1.05rem; line-height: 1.72; color: #26262e; }
.pb-bd-prose p { margin: 0 0 1em; }
.pb-bd-prose a, .pb-bd-faq a { color: var(--rose-dk); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.pb-bd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 720px) { .pb-bd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pb-bd-step { border: var(--edge); border-radius: var(--r); background: var(--white); box-shadow: var(--pop); padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
.pb-bd-step-n { grid-row: span 2; min-width: 1.3em; font: 900 34px/1 var(--disp); font-variation-settings: "wdth" 120; color: var(--rose); }
.pb-bd-step h3 { margin: 0; font: 800 1.08rem/1.3 var(--ui); }
.pb-bd-step p { margin: 0; color: var(--mut); line-height: 1.55; }

.pb-bd-rows { list-style: none; margin: 0; padding: 0; border-top: var(--edge); }
.pb-bd-rows li { display: grid; gap: 4px 22px; padding: 15px 0; border-bottom: 2px solid rgba(14, 14, 18, 0.14); }
@media (min-width: 720px) { .pb-bd-rows li { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); } }
.pb-bd-rows strong { font: 800 1rem var(--ui); }
.pb-bd-rows span { color: #3a3a44; line-height: 1.6; }

.pb-bd-faq { display: grid; gap: 14px; }
.pb-bd-faq details { border: var(--edge); border-radius: var(--r-sm); background: var(--white); box-shadow: var(--pop-sm); }
.pb-bd-faq details[open] { background: var(--sky); }
.pb-bd-faq summary { position: relative; list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font: 800 1.02rem/1.35 var(--ui); }
.pb-bd-faq summary::-webkit-details-marker { display: none; }
.pb-bd-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font: 900 24px/1 var(--disp); }
.pb-bd-faq details[open] summary::after { content: "\2013"; }
.pb-bd-faq-a { padding: 0 18px 18px; line-height: 1.68; color: #26262e; }

.pb-bd-related { columns: 3 230px; column-gap: 20px; margin-top: 22px; }
.pb-bd-related .pb-bd-pin { text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; animation: none; }
.pb-bd-related .pb-bd-pin:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.pb-bd-related .pb-bd-pin:nth-child(4n+1) { background: var(--sky); }
.pb-bd-related .pb-bd-pin:nth-child(4n+2) { background: var(--butter); }
.pb-bd-related .pb-bd-pin:nth-child(4n+3) { background: var(--mint); }
.pb-bd-related .pb-bd-pin:nth-child(4n+4) { background: var(--lilac); }

.pb-bd-cta { margin: 76px 0 0; border: var(--edge); border-radius: 30px; background: var(--ink); color: #fff; padding: 30px; display: grid; gap: 22px; }
@media (min-width: 900px) { .pb-bd-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 38px; } }
.pb-bd-cta .pb-bd-h2 { color: #fff; margin: 0; }
.pb-bd-cta p { margin: 12px 0 0; max-width: 40rem; color: #d4d4d8; line-height: 1.6; }
.pb-bd-cta .pb-bd-btn { box-shadow: 5px 5px 0 #fff; border-color: #fff; }
.pb-bd-cta .pb-bd-btn:active { box-shadow: 0 0 0 #fff; }
.pb-bd-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pb-bd-end { padding-bottom: 90px; }

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

@media (prefers-reduced-motion: reduce) {
  .pb-bd-pin, .pb-bd-ghost { animation: none; }
  .pb-bd-btn, .pb-bd-drop, .pb-bd-related .pb-bd-pin { transition: none; }
}
