/* /some/: "Ei vielä lasten läheisten ryhmää, mutta…" button (warm amber, so it differs from the blue/green group links)
   and the shared sheet with the contact form (bottom sheet on phones, centred dialog on desktop). */
.yk-social3 .yk-region.ykfi-region { flex-wrap: wrap; row-gap: 6px; }
.yk-social3 .ykfi-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 5px 9px; border: 1px solid #f3c58f; border-radius: 6px;
  background: #fff7ed; color: #9a4a00; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer;
  white-space: normal; text-transform: none; letter-spacing: 0; box-shadow: none;
}
.yk-social3 .ykfi-btn:hover { background: #ffedd5; border-color: #ea9a4b; color: #7c3a00; }
.yk-social3 .ykfi-btn:focus-visible { outline: 2px solid #ea7a1a; outline-offset: 2px; }
.yk-social3 .ykfi-btn i { color: #ea7a1a; }
.yk-social3 .ykfi-btn.is-sent { background: #ecfdf3; border-color: #9fd9b4; color: #1e6b34; }
.yk-social3 .ykfi-btn.is-sent i { color: #2f9e5b; }

/* ---------- sheet ---------- */
html.ykfi-lock { overflow: hidden; }
.ykfi-sheet {
  --ykfi-vh: 100dvh; --ykfi-kb: 0px;
  position: fixed; inset: auto 0 var(--ykfi-kb) 0; margin: 0 auto; padding: 0; width: 100%; max-width: 100%;
  max-height: calc(var(--ykfi-vh) - 24px); border: 0; border-radius: 18px 18px 0 0; background: #fff; color: #1f1a14;
  box-shadow: 0 -10px 40px rgba(19,35,58,.3); overflow: hidden; font-family: inherit;
}
.ykfi-sheet[open] { display: flex; flex-direction: column; animation: ykfi-up .25s ease-out; }
.ykfi-sheet::backdrop { background: rgba(19,35,58,.5); }
@keyframes ykfi-up { from { transform: translateY(100%); } to { transform: none; } }
.ykfi-sheet__inner { position: relative; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); }
.ykfi-sheet__grip { display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: #e2d6c8; }
.ykfi-sheet__close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #f5ede4; color: #5b3a17; font-size: 24px; line-height: 1; cursor: pointer; text-transform: none; box-shadow: none; }
.ykfi-sheet__close:hover { background: #ffedd5; }
.ykfi-sheet .ykfi-sheet__title { margin: 6px 48px 6px 0; padding: 0; font-size: 20px; font-weight: 800; line-height: 1.2; color: #7c3a00;
  text-transform: none; letter-spacing: 0; font-family: inherit; }
.ykfi-sheet .ykfi-lead { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: #3b2a1a; }
.ykfi-sheet .ykfi-form { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.ykfi-sheet .ykfi-form[hidden] { display: none; }
.ykfi-sheet .ykfi-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; font-weight: 700; color: #5b3a17; }
.ykfi-sheet .ykfi-form input { width: 100%; min-height: 46px; margin: 0; padding: 9px 12px; border: 1px solid #e7c9a6; border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.2; color: #1f1a14; box-shadow: none; box-sizing: border-box; }
.ykfi-sheet .ykfi-form input:focus { border-color: #ea7a1a; outline: 0; box-shadow: 0 0 0 3px rgba(234,122,26,.2); }
.ykfi-sheet .ykfi-send { min-height: 48px; margin-top: 4px; padding: 0 20px; border: 0; border-radius: 999px; background: #ea7a1a; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; text-transform: none; letter-spacing: 0; width: 100%; }
.ykfi-sheet .ykfi-send:hover { background: #c96410; }
.ykfi-sheet .ykfi-send:disabled { opacity: .6; cursor: progress; }
.ykfi-sheet .ykfi-msg { margin: 0; font-size: 14px; font-weight: 600; }
.ykfi-sheet .ykfi-msg:empty { display: none; }
.ykfi-sheet .ykfi-msg.is-error { color: #b3261e; }
.ykfi-sheet .ykfi-note { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: #6b5a48; }
.ykfi-sheet .ykfi-note a { color: #9a4a00 !important; }
.ykfi-sheet .ykfi-done[hidden] { display: none; }
.ykfi-sheet .ykfi-done__msg { margin: 4px 0 14px; font-size: 16px; font-weight: 700; line-height: 1.4; color: #1e6b34; }
.ykfi-sheet .ykfi-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Desktop / tablet with a mouse: a centred dialog instead of a bottom sheet */
@media (min-width: 700px) and (pointer: fine) {
  .ykfi-sheet { inset: 0; margin: auto; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); height: fit-content; border-radius: 18px;
    box-shadow: 0 20px 60px rgba(19,35,58,.35); }
  .ykfi-sheet[open] { animation: ykfi-fade .18s ease-out; }
  .ykfi-sheet__grip { display: none; }
  .ykfi-sheet__inner { padding: 20px 22px 20px; }
}
@keyframes ykfi-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .yk-social3 .ykfi-btn { padding: 4px 7px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .ykfi-sheet[open] { animation: none; } }
