/* GLB credit: "Powered by Good Looking Brands" + the Certified sticker (desktop).
   Drop-in, no dependencies. Source of truth: vault WebDesign/Studio/GLB Docs/brand/badge/credit/.
   Do not change the logo shapes, the wording or the timings per site; change only the CSS variables. */
@font-face { font-family: "GLB Fredoka"; font-weight: 600; font-display: swap; src: url("fredoka-600.woff2") format("woff2"); }

.glb-credit {
  --glb-smile: #3FC9AD;                 /* smile color: #3FC9AD on light footers */
  --glb-glow-1: rgba(0, 109, 170, .45); /* glow on light footers */
  --glb-glow-2: rgba(63, 201, 173, .35);
  display: inline-flex; align-items: center; gap: .55em;
  color: inherit; text-decoration: none; white-space: nowrap; line-height: 1;
  font-size: inherit; border-radius: 10px; padding: .35em .5em; margin: -.35em -.5em;
  transition: filter .35s ease, transform .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.glb-credit[data-theme="dark"] { --glb-smile: #59EBCE; --glb-glow-1: rgba(172, 222, 255, .9); --glb-glow-2: rgba(0, 109, 170, .9); }
.glb-credit__pb { opacity: .85; }
.glb-credit__mark { height: 1.9em; width: auto; flex: none; overflow: visible; }
.glb-credit__mark .s { fill: var(--glb-smile); }
.glb-credit__mark .l, .glb-credit__word .l { fill: currentColor; }
.glb-credit__word { height: 1.35em; width: auto; flex: none; overflow: visible; }
.glb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Same light-up on every site: hover, keyboard focus, touch press */
.glb-credit:hover, .glb-credit:focus-visible, .glb-credit:active, .glb-credit.is-lit {
  filter: drop-shadow(0 0 4px var(--glb-glow-1)) drop-shadow(0 0 14px var(--glb-glow-2));
}
.glb-credit:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.glb-credit:active { transform: scale(.97); }

/* Invite: a soft glow that breathes every few seconds (phones and tablets, and after the peel) */
@keyframes glb-breathe {
  0%, 70%, 100% { filter: none; }
  80% { filter: drop-shadow(0 0 4px var(--glb-glow-1)) drop-shadow(0 0 14px var(--glb-glow-2)); }
}
.glb-credit.is-invite { animation: glb-breathe 4.6s ease-in-out infinite; }
.glb-credit.is-invite:hover, .glb-credit.is-invite:focus-visible { animation: none; }

/* Reveal after the peel: the lettering writes in and the credit flares */
@keyframes glb-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes glb-flare {
  0% { filter: none; transform: scale(1); }
  40% { filter: drop-shadow(0 0 6px var(--glb-glow-1)) drop-shadow(0 0 22px var(--glb-glow-2)); transform: scale(1.08); }
  100% { filter: drop-shadow(0 0 4px var(--glb-glow-1)) drop-shadow(0 0 14px var(--glb-glow-2)); transform: scale(1); }
}
.glb-credit.is-reveal { animation: glb-flare 1s cubic-bezier(.2, .7, .2, 1) both; }
.glb-credit.is-reveal .glb-credit__word { animation: glb-write .8s cubic-bezier(.5, 0, .2, 1) .15s both; }

/* The sticker: a fixed layer stuck in a bottom corner of the screen, on top of the page, hanging a little
   off the edge like a sticker on the corner of a notebook page. Desktop only (added by glb-credit.js). */
.glb-sticker {
  --glb-s: clamp(230px, 20vw, 340px);   /* sticker size */
  position: fixed; z-index: 2147483000; bottom: clamp(10px, 2.2vh, 28px); right: calc(var(--glb-s) * -0.05);
  width: var(--glb-s); aspect-ratio: 1; padding: 0; border: 0; background: none;
  border-radius: 50%; cursor: pointer; visibility: hidden; will-change: transform;
  transform-origin: 50% 50%;
}
.glb-sticker[data-side="left"] { right: auto; left: calc(var(--glb-s) * -0.05); }
.glb-sticker svg { display: block; width: 100%; height: 100%; overflow: visible; }
.glb-sticker:focus-visible { outline: 3px solid #59EBCE; outline-offset: 8px; }
.glb-sticker.is-edge { cursor: grab; }
.glb-sticker text { font-family: "GLB Fredoka", Fredoka, system-ui, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  .glb-credit, .glb-credit.is-invite, .glb-credit.is-reveal, .glb-credit.is-reveal .glb-credit__word { animation: none; transition: none; }
}
