/* Pastel event cards: a small discovery deck with a real, accessible reverse. */
#plannedEventToolkitSection.tpb-ideas-section { padding-block: clamp(60px, 6vw, 92px); background: #f7f7f3; overflow: hidden; }
.tpb-deck { min-width: 0; }
.tpb-deck [hidden] { display: none !important; }
.tpb-deck .tpb-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tpb-deck .tpb-chip { min-height: 38px; padding: 9px 13px; border: 1px solid #daddd6; border-radius: 999px; color: #505b55; background: transparent; font: inherit; font-size: 12px; line-height: 1.3; cursor: pointer; transition: background .18s, border-color .18s, color .18s; white-space: nowrap; }
.tpb-deck .tpb-chip:hover { color: #17231b; border-color: #17231b; }
.tpb-deck .tpb-chip.is-active { color: #fff; border-color: #17231b; background: #17231b; }
.tpb-deck-intro { display: flex; justify-content: space-between; gap: 18px; margin: 23px 0 0; color: #7b837d; font-size: 11px; }
.tpb-deck .tpb-count { min-height: 0; margin: 0; color: #68736a; font-size: 11px; }
.tpb-deck-rail { position: relative; display: flex; align-items: stretch; gap: 26px; margin: 0 -24px; padding: 30px 24px 46px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; }
.tpb-deck-rail::-webkit-scrollbar { display: none; }
.tpb-deck .tpb-card { position: relative; flex: 0 0 clamp(290px, 27vw, 350px); width: clamp(290px, 27vw, 350px); height: 480px; margin: 0; padding: 0; border: 0; border-radius: 26px; background: transparent; color: #101910; perspective: 1600px; scroll-snap-align: start; transform: translateY(var(--card-rise)) rotate(var(--card-turn)); transition: transform .4s cubic-bezier(.2, .75, .2, 1); isolation: isolate; overflow: visible; }
.tpb-deck .tpb-card:hover, .tpb-deck .tpb-card:focus-within, .tpb-deck .tpb-card.is-flipped { z-index: 2; border: 0; box-shadow: none; transform: translateY(0) rotate(0); }
.tpb-flip-inner { position: relative; width: 100%; height: 100%; border-radius: inherit; transform-style: preserve-3d; transition: transform .66s cubic-bezier(.22, .78, .2, 1); }
.tpb-card.is-flipped .tpb-flip-inner { transform: rotateY(180deg); }
.tpb-deck .tpb-flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; padding: 27px; overflow: hidden; border: 1px solid rgba(34, 53, 40, .035); border-radius: inherit; color: #101910; background: var(--card-bg); text-align: left; font: inherit; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tpb-flip-front { cursor: pointer; }
/* Explicitly hide the inactive face: some compositors paint mirrored children
   through the reverse even with backface-visibility enabled. */
.tpb-deck .tpb-flip-face[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.tpb-flip-back { cursor: pointer; }
.tpb-flip-front > * { pointer-events: none; }
.tpb-card-top { position: relative; z-index: 1; display: flex; align-items: start; gap: 10px; min-height: 32px; margin-bottom: 22px; }
.tpb-card-top > span:first-child { flex: 0 0 auto; opacity: .55; font-size: 10px; line-height: 1.6; letter-spacing: .06em; }
.tpb-card-top > span:last-child { max-width: 240px; color: #34463a; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .075em; text-transform: uppercase; }
.tpb-card-headline { position: relative; z-index: 1; display: block; margin-bottom: 15px; font-size: clamp(36px, 3.5vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.tpb-card-description { position: relative; z-index: 1; display: block; max-width: 260px; color: #38483f; font-size: 13px; font-weight: 400; line-height: 1.55; }
.tpb-card-drawing { position: absolute; inset: auto -12% -24% 0; height: 300px; color: #23382d; opacity: .9; pointer-events: none; }
.tpb-card-drawing svg { display: block; width: 100%; height: 100%; }
.tpb-card-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.tpb-round-arrow { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; border: 1px solid #17231b; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #17231b; transition: color .2s, background .2s, transform .2s; }
.tpb-round-arrow svg { width: 20px; height: 20px; }
.tpb-round-arrow svg.is-back { transform: rotate(180deg); }
.tpb-flip-front:hover .tpb-round-arrow { color: #fff; background: #17231b; transform: rotate(-12deg); }
.tpb-card-bottom > span:last-child { padding: 5px 8px; border-radius: 6px; background: var(--card-bg); color: #405047; font-size: 11px; }
.tpb-card-bottom i { margin-left: 6px; font-size: 15px; font-style: normal; }
.tpb-deck .tpb-flip-back { transform: rotateY(180deg); }
.tpb-flip-back:focus { outline: none; }
.tpb-back-kicker { margin: 0 0 16px; color: #4b6053; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.tpb-deck .tpb-flip-back h3 { margin: 0 0 14px; color: #132318; font-size: 30px; font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
.tpb-back-label { margin: 0 0 12px; color: #506154; font-size: 11px; }
.tpb-flip-back ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tpb-flip-back li { position: relative; padding: 10px 0 10px 17px; border-top: 1px solid rgba(24, 45, 31, .14); color: #263c2d; font-size: 13px; line-height: 1.4; }
.tpb-flip-back li::before { position: absolute; top: 17px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #4e6a56; content: ""; }
.tpb-flip-return { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 18px 0 0; border: 0; color: #2c4434; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.tpb-flip-return .tpb-round-arrow { width: 38px; height: 38px; flex-basis: 38px; background: transparent; }
.tpb-flip-return:hover .tpb-round-arrow { color: #fff; background: #17231b; }
.tpb-deck button:focus-visible { outline: 2px solid #533afd; outline-offset: 4px; }
.tpb-deck .tpb-flip-front:focus-visible { outline-offset: 5px; }
.tpb-deck-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 10px; }
.tpb-deck-tip { flex: 0 0 auto; color: #68736a; font-size: 11px; }
.tpb-deck-tip > span { padding-left: 8px; font-size: 17px; }
.tpb-deck-progress { position: relative; flex: 1; max-width: 270px; height: 2px; border-radius: 2px; background: #dce0d7; }
.tpb-deck-progress > span { position: absolute; top: 0; height: 2px; border-radius: 2px; background: #5d6b60; }
.tpb-deck-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.tpb-deck-position { min-width: 88px; padding-right: 12px; color: #58655c; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.tpb-deck-controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #cbd2c9; border-radius: 50%; color: #243629; background: transparent; cursor: pointer; transition: border-color .18s, background .18s; }
.tpb-deck-controls button svg { width: 18px; height: 18px; }
.tpb-deck-controls button svg.is-back { transform: rotate(180deg); }
.tpb-deck-controls button:hover:not(:disabled) { border-color: #263c2d; background: #e7ece2; }
.tpb-deck-controls button:disabled { cursor: default; opacity: .3; }
.tpb-deck-empty { display: grid; justify-items: center; gap: 12px; margin: 30px 0; padding: 60px 24px; border: 1px dashed #cbd3c8; border-radius: 22px; text-align: center; }
.tpb-deck-empty > p { margin: 0; color: #1c2f22; font-size: 24px; letter-spacing: -.03em; }
.tpb-deck-empty > span { color: #68736a; font-size: 14px; }
.tpb-deck-empty button { margin-top: 8px; padding: 10px 17px; border: 1px solid #aebca9; border-radius: 999px; color: #273b2c; background: #edf1e8; font: inherit; font-size: 13px; cursor: pointer; }
.tpb-ideas-section .theme-action-row { margin-top: 42px; }
@media (min-width: 1600px) {
  .tpb-deck .tpb-card { flex-basis: 300px; width: 300px; }
  .tpb-card-headline { font-size: 42px; }
}
@media (max-width: 1100px) {
  .tpb-deck .tpb-card { flex-basis: 320px; width: 320px; }
  .tpb-card-headline { font-size: 43px; }
}
@media (max-width: 700px) {
  .tpb-deck .tpb-filter { flex-wrap: nowrap; margin-right: -20px; padding: 2px 20px 6px 0; overflow-x: auto; scrollbar-width: none; }
  .tpb-deck .tpb-filter::-webkit-scrollbar { display: none; }
  .tpb-deck .tpb-chip { flex: 0 0 auto; min-height: 42px; font-size: 12px; }
  .tpb-deck-intro { margin-top: 16px; }
  .tpb-deck .tpb-card { flex-basis: min(320px, 81vw); width: min(320px, 81vw); height: 480px; --card-turn: -1.6deg !important; --card-rise: 0px !important; border-radius: 23px; }
  .tpb-deck .tpb-card:nth-child(even) { --card-turn: 1.6deg !important; }
  .tpb-deck-rail { gap: 22px; margin-inline: -20px; padding: 23px 20px 26px; scroll-padding-inline: 20px; }
  .tpb-deck .tpb-flip-face { padding: 25px; }
  .tpb-card-headline { font-size: 43px; }
  .tpb-deck-footer { gap: 16px; margin-top: 6px; }
  .tpb-deck-tip { display: none; }
  .tpb-deck-progress { max-width: none; }
  .tpb-deck-controls { gap: 7px; }
  .tpb-deck-position { min-width: 60px; padding-right: 3px; font-size: 10px; }
  .tpb-deck-controls button { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .tpb-deck .tpb-flip-face { padding: 21px; }
  .tpb-card-headline { font-size: 39px; }
  .tpb-deck .tpb-flip-back h3 { font-size: 27px; }
  .tpb-flip-back li { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpb-deck *, .tpb-deck *::before, .tpb-deck *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
