.midora-social-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}

.midora-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--midora-mint, #68c994);
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.midora-social-link i {
  font-size: 1.3rem;
  line-height: 1;
}

.midora-social-link:hover,
.midora-social-link:focus-visible {
  transform: translateY(-1px);
  background: var(--midora-surface, #eaf7ef);
  color: var(--midora-ink, #3f4442);
}

.midora-social-links.is-header .midora-social-link {
  width: 2rem;
  height: 2rem;
}

.midora-contact-links {
  display: grid;
  gap: 1.15rem;
}

.midora-contact-link,
.midora-location-link {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  column-gap: .85rem;
  color: inherit;
  text-decoration: none;
}

.midora-location-link {
  line-height: 1.5;
}

.midora-contact-link i,
.midora-location-link i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}

.midora-contact-link > span {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.midora-contact-link small {
  opacity: .78;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.midora-contact-link > span > span {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.midora-contact-link:hover,
.midora-contact-link:focus-visible,
.midora-location-link:hover,
.midora-location-link:focus-visible {
  text-decoration: underline;
}

.midora-floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--midora-mint, #68c994);
  color: var(--midora-ink, #3f4442);
  box-shadow: 0 10px 30px rgba(32, 55, 46, .2);
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.midora-floating-whatsapp i {
  font-size: 1.45rem;
}

.midora-floating-whatsapp:hover,
.midora-floating-whatsapp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(32, 55, 46, .26);
}

@media (max-width: 767px) {
  .midora-floating-whatsapp {
    width: 3.25rem;
    padding: .7rem;
    justify-content: center;
  }

  .midora-floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
}

.midora-social-links.is-footer .midora-social-link {
  color: var(--midora-mint, #68c994);
}

.midora-contact-links.is-footer,
.midora-contact-links.is-footer .midora-contact-link,
footer .midora-location-link {
  color: #fff;
}


/* MIDORA · Handmade visual language */
@font-face {
  font-family: "Delicious Handrawn";
  src: url("./fonts/delicious-handrawn.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.midora-handmade-note {
  display: inline-block;
  font-family: "Delicious Handrawn", cursive !important;
  font-size: clamp(1.75rem, 1.45vw, 2.25rem) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  transform: rotate(-1deg);
  transform-origin: left center;
}

.midora-handmade-number {
  display: inline-block;
  font-family: "Delicious Handrawn", cursive !important;
  font-size: clamp(2.8rem, 3vw, 4.2rem) !important;
  font-weight: 400 !important;
  line-height: .9 !important;
  transform: rotate(-2deg);
}

.midora-handmade-quote {
  font-family: "Delicious Handrawn", cursive !important;
  font-weight: 400 !important;
  letter-spacing: .01em !important;
}

/* Motion is progressive enhancement: content stays visible if JS is unavailable. */
html.midora-motion-enabled .midora-reveal {
  opacity: 0;
  transform: translate3d(0, 1.8rem, 0) rotate(.18deg);
  transition:
    opacity .62s cubic-bezier(.2,.65,.3,1),
    transform .72s cubic-bezier(.2,.65,.3,1);
  transition-delay: var(--midora-reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.midora-motion-enabled .midora-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.midora-card-live {
  transform-origin: center center;
  transition:
    transform .26s cubic-bezier(.2,.65,.3,1),
    box-shadow .26s ease,
    border-color .26s ease;
}

@media (hover: hover) and (pointer: fine) {
  .midora-card-live:hover {
    transform: translateY(-.45rem) rotate(-.2deg);
  }

  main .brxe-button,
  main .midora-next-session-button,
  main .midora-public-upcoming-button,
  main .midora-floating-whatsapp {
    transition:
      transform .2s cubic-bezier(.2,.65,.3,1),
      box-shadow .2s ease,
      filter .2s ease;
  }

  main .brxe-button:hover,
  main .midora-next-session-button:hover,
  main .midora-public-upcoming-button:hover {
    transform: translateY(-.2rem) rotate(-.35deg);
  }

  .midora-hero-image {
    overflow: hidden;
  }

  .midora-hero-image img {
    transition: transform .85s cubic-bezier(.2,.65,.3,1);
  }

  .midora-hero-image:hover img {
    transform: scale(1.025) rotate(.12deg);
  }

  .midora-handmade-note:hover {
    transform: rotate(1deg) translateY(-.08rem);
  }
}

.midora-handmade-note,
.midora-handmade-number {
  transition: transform .25s cubic-bezier(.2,.65,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html.midora-motion-enabled .midora-reveal,
  html.midora-motion-enabled .midora-reveal.is-visible,
  .midora-card-live,
  .midora-hero-image img,
  main .brxe-button,
  main .midora-next-session-button,
  main .midora-public-upcoming-button,
  .midora-handmade-note,
  .midora-handmade-number {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}


/* MIDORA · Handmade accents v2 */
.midora-handmade-note {
  position: relative;
  z-index: 0;
  width: fit-content;
}

.midora-handmade-note::after {
  content: "";
  position: absolute;
  left: -.18em;
  right: -.22em;
  bottom: -.16em;
  height: .34em;
  z-index: -1;
  opacity: .34;
  border-radius: 58% 42% 53% 47% / 45% 57% 43% 55%;
  background:
    linear-gradient(
      96deg,
      transparent 0 3%,
      var(--midora-brand-mint, #91d6ac) 4% 93%,
      transparent 96%
    );
  transform: rotate(-1.5deg) skewX(-7deg);
}

.midora-handmade-quote {
  position: relative;
  display: inline-block;
  text-wrap: balance;
}

.midora-handmade-quote::after {
  content: "♡";
  display: inline-block;
  margin-left: .22em;
  color: var(--midora-brand-mint, #91d6ac);
  font-family: "Delicious Handrawn", cursive;
  font-size: .72em;
  transform: rotate(9deg) translateY(-.12em);
}

#brx-content > .brxe-section:first-of-type .midora-taped-photo {
  position: relative;
  overflow: visible;
}

#brx-content > .brxe-section:first-of-type .midora-taped-photo::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  z-index: 3;
  width: clamp(6rem, 9vw, 9rem);
  height: 2.15rem;
  border: 1px solid rgba(141, 118, 75, .11);
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 25% 75%, rgba(255,255,255,.16)),
    rgba(235, 220, 176, .78);
  box-shadow: 0 .15rem .3rem rgba(60, 50, 35, .08);
  transform: translateX(-50%) rotate(-3deg);
  clip-path: polygon(2% 8%, 100% 0, 97% 90%, 1% 100%);
  pointer-events: none;
}

#brx-content > .brxe-section:first-of-type .midora-taped-photo:nth-child(even)::before {
  transform: translateX(-50%) rotate(2.4deg);
}

.midora-card-live {
  border-radius: 1.05rem 1.3rem .95rem 1.18rem;
}

.midora-card-live:nth-child(even) {
  border-radius: 1.25rem .95rem 1.2rem 1rem;
}

.midora-card-live::after {
  content: "";
  position: absolute;
  inset: auto 1rem -.2rem 1.2rem;
  height: .28rem;
  border-radius: 50%;
  background: rgba(104, 201, 148, .14);
  filter: blur(.15rem);
  pointer-events: none;
}

.midora-card-live {
  position: relative;
}

#brx-content .brxe-button {
  position: relative;
}

#brx-content .brxe-button::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 9%;
  bottom: -.18rem;
  height: .18rem;
  opacity: 0;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-1deg) scaleX(.65);
  transform-origin: left center;
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.65,.3,1);
}

@media (hover:hover) and (pointer:fine) {
  #brx-content .brxe-button:hover::after,
  #brx-content .brxe-button:focus-visible::after {
    opacity: .36;
    transform: rotate(-1deg) scaleX(1);
  }
}

html.midora-motion-enabled .midora-reveal {
  opacity: 0;
  transform: translate3d(0, 2.4rem, 0) rotate(.35deg) scale(.992);
}

html.midora-motion-enabled .midora-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

@media (max-width: 767px) {
  #brx-content > .brxe-section:first-of-type .midora-taped-photo::before {
    width: 6.5rem;
    height: 1.8rem;
    top: -.8rem;
  }

  .midora-handmade-note {
    font-size: clamp(1.6rem, 7vw, 2.1rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #brx-content .brxe-button::after {
    transition: none !important;
  }
}


/* A very light paper grain: tactile, not decorative noise. */
#brx-content > .brxe-section:first-of-type {
  background-image:
    radial-gradient(circle at 18% 22%, rgba(63,68,66,.028) 0 .7px, transparent .8px),
    radial-gradient(circle at 76% 64%, rgba(63,68,66,.022) 0 .65px, transparent .75px);
  background-size: 10px 10px, 13px 13px;
}

/* MIDORA · Handmade accents v3 */
#brx-content .midora-handmade-note::before {
  content: none !important;
  display: none !important;
}

.midora-sticker-live {
  animation: midora-sticker-bob 5.8s ease-in-out infinite;
  will-change: translate;
}

.midora-sticker-live--slow {
  animation-duration: 7.4s;
  animation-delay: -2.1s;
}

.midora-sticker-live--small {
  animation-duration: 6.4s;
  animation-delay: -3.3s;
}

@keyframes midora-sticker-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .midora-sticker-live {
    animation: none !important;
    translate: 0 0 !important;
  }
}
