.spf-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:42px;height:42px;padding:0;border:1px solid #ddd;border-radius:50%;background:#fff;color:#303038;box-shadow:0 2px 8px #0002;font:inherit;line-height:1;cursor:pointer;text-decoration:none!important;vertical-align:middle;transition:color .15s,background .15s;}
.spf-button .spf-heart{display:block;font-family:Arial,sans-serif;font-size:29px;line-height:1;}
.spf-button[aria-pressed=true]{color:#d52f4d;}
.spf-button:hover{background:#fff1f3;color:#d52f4d;}
.spf-button:disabled{opacity:.65;cursor:wait;}
.spf-button:focus-visible{outline:2px solid #b42348;outline-offset:3px;}
.spf-corner-host{position:relative;}
.spf-corner-host>.spf-button{position:absolute;top:10px;right:10px;z-index:3;margin:0;}
.spf-auto-host:not(.spf-has-image){padding-right:56px;}
.spf-single-corner{display:flex;justify-content:flex-end;margin:0 0 .75rem;}
.spf-empty{grid-column:1/-1;}.spf-empty[hidden]{display:none!important;}
.spf-single-host.spf-auto-host:not(.spf-has-image){padding-right:0;}
.spf-single-host>.entry-header,.spf-single-host>.entry-title,.spf-single-host>.post-title{padding-right:56px;}
.spf-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.spf-title-row>.wp-block-post-title{flex:1;min-width:0;}
/* Actual BrainBreakz cards: direct child of article, never nested inside its link. */
.spf-button .spf-heart-icon{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.spf-button[aria-pressed=true] .spf-heart-icon{fill:currentColor;}
#bbz-finder #bbz-results .bbz-card.spf-bbz-host{position:relative;padding-right:0;}
#bbz-finder #bbz-results .bbz-card>.spf-button{position:absolute;top:10px;right:10px;left:auto;z-index:6;display:flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:0;min-height:0;margin:0;padding:0;border:1px solid #ffffffd9;border-radius:50%;background:#fff;color:#635c75;box-shadow:0 2px 8px #24223e26;line-height:1;transform:none;}
#bbz-finder #bbz-results .bbz-card>.spf-button[aria-pressed=true],#bbz-finder #bbz-results .bbz-card>.spf-button:hover{color:#ed298d;background:#fff;}
#bbz-finder #bbz-results .bbz-card>.spf-button:disabled{opacity:.7;}
#bbz-finder #bbz-results .bbz-card.spf-bbz-host .bbz-image-badges{right:54px;}
@media(max-width:520px){#bbz-finder #bbz-results .bbz-card>.spf-button{top:7px;right:7px;width:34px;height:34px;}#bbz-finder #bbz-results .bbz-card.spf-bbz-host .bbz-image-badges{right:45px;}}

/* Stay within the Gutenberg column, group or other containing block. */
.spf-region{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;container:spf-region / inline-size;}
.spf-list{position:relative;width:100%;max-width:100%;min-width:0;margin:20px 0 24px;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:stretch;box-sizing:border-box;font-family:inherit;color:#24223e;}
.spf-list,.spf-list *{box-sizing:border-box;}
/* The shortcode columns option is a maximum, not a fixed count. Older
   browsers without container queries retain the safe one-column layout. */
@container spf-region (min-width:350px){.spf-list{grid-template-columns:repeat(var(--spf-cols-mobile,2),minmax(0,1fr));gap:13px;}}
@container spf-region (min-width:720px){.spf-list{grid-template-columns:repeat(var(--spf-cols-tablet,3),minmax(0,1fr));gap:20px;}}
@container spf-region (min-width:1000px){.spf-list{grid-template-columns:repeat(var(--spf-cols,4),minmax(0,1fr));}}
/* Card declarations copied from the provided BrainBreakz Activity Finder CSS. */
.spf-list .bbz-card {
  min-width: 0;
  max-width: 100%;
  container: spf-card / inline-size;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(31,36,53,.10);
  border: 0;
  position: relative;
  translate: 0 0;
  transition: translate 600ms cubic-bezier(.16,1,.3,1), box-shadow 250ms ease;
}
.spf-list .bbz-card:hover {
  translate: 0 -6px;
  box-shadow: 0 9px 20px rgba(31,36,53,.14);
}
.spf-list .bbz-card>a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #17182e;
}
.spf-list .bbz-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #f1f0f7;
  flex: none;
}
.spf-list .bbz-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.spf-list .bbz-image-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 3;
}
.spf-list .bbz-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 7px;
  border-radius: 3px;
  color: #111728;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 2px 2px 5px rgba(0,0,0,.18);
  transition: background-color 150ms ease;
}
.spf-list .bbz-age-indskoling {
  background: #00A180;
  color: #fff;
}
.spf-list .bbz-age-indskoling:hover, .spf-list .bbz-age-indskoling:focus-visible {
  background: #33B499;
}
.spf-list .bbz-age-mellemtrin {
  background: #fac400;
  color: #111728;
}
.spf-list .bbz-age-mellemtrin:hover, .spf-list .bbz-age-mellemtrin:focus-visible {
  background: #FDD133;
}
.spf-list .bbz-age-udskoling {
  background: var(--theme-palette-color-1,#e00068);
  color: #fff;
}
.spf-list .bbz-age-udskoling:hover, .spf-list .bbz-age-udskoling:focus-visible {
  background: var(--theme-palette-color-2,#ef4c99);
}
.spf-list .bbz-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 140px;
  padding: 17px 25px 13px;
}
.spf-list .bbz-card h4 {
  padding-top: 2px;
  margin: 0 0 9px;
  color: #17182e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  transition: color 150ms ease;
}
.spf-list .bbz-card:hover h4, .spf-list .bbz-card:focus-within h4 {
  color: var(--theme-palette-color-1, #e00068);
}
.spf-list .bbz-desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #62657b;
  margin: 0 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spf-list .bbz-card-footer.brain-break-meta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  column-gap: 8px !important;
  row-gap: 8px !important;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin: auto 0 6px !important;
  padding: 0 !important;
  color: #343746;
}
.spf-list .brain-break-meta .brain-break-duration,
.spf-list .brain-break-meta .brain-break-participants {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 7px 13px !important;
  background-color: #f1f1f5 !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  color: #1f2433 !important;
  white-space: nowrap;
  box-shadow: none !important;
}
.spf-list .brain-break-meta .brain-break-duration span,
.spf-list .brain-break-meta .brain-break-participants span {
  display: inline-block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  letter-spacing: 0 !important;
  color: #1f2433 !important;
  white-space: nowrap;
}
.spf-list .brain-break-meta .brain-break-duration::before,
.spf-list .brain-break-meta .brain-break-participants::before {
  content: "";
  display: block !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #1f2433 !important;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: none !important;
}
.spf-list .brain-break-meta .brain-break-participants.both::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M17 5a3 3 0 0 1 0 6M19 14a5 5 0 0 1 3 5v1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M17 5a3 3 0 0 1 0 6M19 14a5 5 0 0 1 3 5v1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.spf-list .brain-break-meta .brain-break-participants.group::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M17 5a3 3 0 0 1 0 6M19 14a5 5 0 0 1 3 5v1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M17 5a3 3 0 0 1 0 6M19 14a5 5 0 0 1 3 5v1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.spf-list .brain-break-meta .brain-break-participants.solo::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.spf-list .brain-break-meta .brain-break-duration::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@container spf-card (max-width:260px) {
.spf-list .bbz-card-body {
    padding: 13px 19px;
    min-height: 130px;
  }
}
@container spf-card (max-width:210px) {
.spf-list .bbz-card-footer {
    gap: 4px;
  }
.spf-list .bbz-image {
    aspect-ratio: 1.95;
  }
.spf-list .bbz-image-badges {
    left: 9px;
    top: 9px;
  }
}
@media (prefers-reduced-motion:reduce) {
.spf-list .bbz-card,.spf-list .bbz-card h4,.spf-list .bbz-image img {
    transition: none;
  }
.spf-list .bbz-card:hover {
    translate: 0 0;
  }
}
.spf-list .bbz-card > a {
  position: relative;
  z-index: 1;
}
.spf-list .bbz-age-badge {
  text-decoration: none !important;
  cursor: pointer;
  transform: none !important;
}
.spf-list .bbz-age-badge:hover {
  text-decoration: none !important;
}
.spf-list .bbz-age-badge:focus-visible {
  outline: 2px solid #6b7280;
  outline-offset: 3px;
}

/* Identical heart styling on saved cards. */
.spf-list .bbz-card.spf-bbz-host{position:relative;padding-right:0;}
.spf-list .bbz-card>.spf-button{position:absolute;top:10px;right:10px;left:auto;z-index:6;display:flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:0;min-height:0;margin:0;padding:0;border:1px solid #ffffffd9;border-radius:50%;background:#fff;color:#635c75;box-shadow:0 2px 8px #24223e26;line-height:1;transform:none;}
.spf-list .bbz-card>.spf-button[aria-pressed=true],.spf-list .bbz-card>.spf-button:hover{color:#ed298d;background:#fff;}
.spf-list .bbz-card>.spf-button:disabled{opacity:.7;}
.spf-list .bbz-card.spf-bbz-host .bbz-image-badges{right:54px;}
@container spf-card (max-width:210px){.spf-list .bbz-card>.spf-button{top:7px;right:7px;width:34px;height:34px;}.spf-list .bbz-card.spf-bbz-host .bbz-image-badges{right:45px;}}
.spf-list .bbz-card a:focus-visible,.spf-list .bbz-card button:focus-visible{outline:2px solid #7b8290;outline-offset:3px;}
.spf-list .bbz-card-footer:empty{display:none!important;}

/* Long content and metadata must also fit narrow nested Gutenberg columns. */
.spf-list .bbz-card-body,.spf-list .bbz-card h4,.spf-list .bbz-desc,.spf-list .spf-empty{min-width:0;overflow-wrap:anywhere;}
.spf-list .brain-break-meta .brain-break-duration,.spf-list .brain-break-meta .brain-break-participants{max-width:100%;min-width:0;white-space:normal;}
.spf-list .brain-break-meta .brain-break-duration span,.spf-list .brain-break-meta .brain-break-participants span{min-width:0;white-space:normal;overflow-wrap:anywhere;}
@container spf-card (max-width:210px){
 .spf-list .bbz-card-body{padding:13px 12px;}
 .spf-list .bbz-card h4{font-size:16px;}
 .spf-list .bbz-desc{font-size:13px;}
 .spf-list .bbz-card-footer.brain-break-meta{gap:5px!important;}
 .spf-list .brain-break-meta .brain-break-duration,.spf-list .brain-break-meta .brain-break-participants{padding:5px 8px!important;gap:5px!important;}
}

/* On mouse-driven devices, reveal unselected automatic hearts on hover.
   Saved hearts and cards in the favorites list remain visible. Keyboard
   users can still tab to a heart and touch users always see the control. */
@media (hover:hover) and (pointer:fine){
 .spf-corner-host:not(.spf-card):not(:hover)>.spf-button:not([aria-pressed="true"]):not(:focus-visible){
  opacity:0!important;
  pointer-events:none;
 }
}

/* Guests never see the favorites list (including during the AJAX request).
   An optional Gutenberg group class hides its heading and other section content too. */
.spf-region[hidden],.spf-favorites-only:not(.spf-authenticated){display:none!important;}

/* Collapse the entire dedicated guest section during the initial session check.
   After confirmation, JS removes its layout nodes so sibling margins/gaps don't
   treat the hidden section as an extra Gutenberg block. */
.spf-region[hidden],.spf-favorites-only:not(.spf-authenticated){
 margin:0!important;padding:0!important;min-height:0!important;
}
.wp-block-shortcode:has(> .spf-region[hidden]:only-child){display:none!important;}
