/* "שאלו אותנו" box, "Scan" design (Jonas, 19 Oct 2026; export "שאלו אותנו · Scan").
   1 Ask: rotating example questions, Pale Sky send circle that turns Night Bordeaux with text.
   2 Scan: the answer area opens, a dot grid with a Pale Sky light sweeping, shimmer label.
   3 Write: words sharpen in out of a blur, a pulsing dot at the end.
   4 Land: the part for the answer type springs in, then the source line and "עזר?". */
.shg-ask { --ask-spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
	container-type: inline-size; position: relative; margin-block-start: 28px; color: var(--rich-mahogany); }

/* 1 Ask */
.shg-ask__box { position: relative; isolation: isolate; border-radius: 24px; background: var(--ground); box-shadow: 0 0 0 1px var(--ink-14), 0 20px 44px -30px rgb(56 27 32 / .5); transition: box-shadow .4s; }
.shg-ask__box:focus-within { box-shadow: 0 0 0 1px var(--ink-55), 0 20px 44px -30px rgb(56 27 32 / .5); }
.shg-ask__in { position: relative; display: flex; align-items: center; gap: 14px; min-block-size: 70px; padding-inline: 26px 12px; font-size: 19px; }
.shg-ask__ic { display: grid; place-items: center; flex: none; }
.shg-ask__ic svg { inline-size: 24px; block-size: 24px; color: var(--ink-70); transition: color .3s; }
.shg-ask__field { position: relative; flex: 1; min-inline-size: 0; display: flex; align-items: center; }
.shg-ask__field input { inline-size: 100%; min-inline-size: 0; padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; font-size: inherit; line-height: 1.3; }
.shg-ask__field input:focus { outline: none; }
.shg-ask__ph { position: absolute; inset-inline: 0; overflow: hidden; color: var(--ink-55); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; transition: opacity .25s; }
.shg-ask__ph.is-in { animation: shg-ask-phin .5s ease both; }
@keyframes shg-ask-phin { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.shg-ask:not(.is-idle):not(.is-done) .shg-ask__ph { opacity: 0; }
.shg-ask__send { display: grid; place-items: center; flex: none; inline-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--pale-sky); color: var(--rich-mahogany); cursor: pointer; transition: background-color .3s, color .3s, transform .35s var(--ask-spring); }
.shg-ask__send svg { inline-size: 18px; block-size: 18px; }
.shg-ask__send:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.shg-ask:is(.is-typing, .has-text) .shg-ask__send { background: var(--night-bordeaux); color: var(--seashell); }
.shg-ask.is-sent .shg-ask__send { background: var(--night-bordeaux); color: var(--seashell); transform: scale(.82) translateX(-4px); }
.shg-ask.is-off .shg-ask__send { opacity: .4; pointer-events: none; }

/* 2 Scan: the answer area opens, then a light sweeps over a dot grid */
.shg-ask__ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.2, .8, .2, 1); }
.shg-ask__ansin { position: relative; min-block-size: 0; overflow: hidden; padding-inline: 26px; }
.shg-ask:is(.is-think, .is-stream, .is-done) .shg-ask__ans { grid-template-rows: 1fr; }
.shg-ask:is(.is-think, .is-stream, .is-done) .shg-ask__ansin { padding-block: 18px 22px; border-block-start: 1px solid var(--ink-14); }
.shg-ask.is-think .shg-ask__ansin { min-block-size: 120px; background-image: radial-gradient(rgb(56 27 32 / .12) 1px, transparent 1.2px); background-size: 14px 14px; }
.shg-ask__scan { position: absolute; inset-inline: 0; inset-block-start: 0; display: block; block-size: 2px; background: linear-gradient(90deg, transparent, var(--pale-sky) 20%, #fff 50%, var(--pale-sky) 80%, transparent); box-shadow: 0 0 18px 4px rgb(198 218 230 / .9); opacity: 0; pointer-events: none; }
.shg-ask.is-think .shg-ask__scan { opacity: 1; animation: shg-ask-scan 1.4s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes shg-ask-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(116px); } }
.shg-ask .shg-ask__th { display: none; margin: 0; font-size: 14px; }
.shg-ask.is-think .shg-ask__th { display: block; }
.shg-ask__shim { background: linear-gradient(90deg, var(--ink-55) 0%, var(--ink-55) 35%, var(--rich-mahogany) 50%, var(--ink-55) 65%, var(--ink-55) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shg-ask-shim 1.6s linear infinite; }
@keyframes shg-ask-shim { from { background-position: 125% 0; } to { background-position: -125% 0; } }

/* 3 Write: words sharpen in, a pulsing dot while writing */
.shg-ask .shg-ask__t { margin: 0; font-size: 17px; line-height: 1.65; text-wrap: pretty; overflow-wrap: anywhere; }
.shg-ask.is-think .shg-ask__t { display: none; }
.shg-ask__t .w { display: none; }
.shg-ask__t .w.on { display: inline; animation: shg-ask-tok 320ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes shg-ask-tok { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: none; } }
.shg-ask__tc { display: none; inline-size: .55em; block-size: .55em; margin-inline-start: 4px; border-radius: 50%; background: var(--rich-mahogany); vertical-align: middle; animation: shg-ask-tcp 1s ease-in-out infinite; }
.shg-ask.is-stream .shg-ask__tc { display: inline-block; }
@keyframes shg-ask-tcp { 50% { transform: scale(.55); opacity: .5; } }
.shg-ask .shg-ask__q { margin: 0 0 8px; font-size: 13px; color: var(--ink-55); }

/* 4 Land: the part for the answer type springs in, then the foot */
.shg-ask__parts { display: flex; flex-direction: column; gap: 14px; margin-block-start: 16px; }
.shg-ask__parts:empty { display: none; }
.shg-ask__pt { display: flex; animation: shg-ask-spr .7s var(--ask-spring) both; }
.shg-ask__pt--foot { animation-delay: .25s; }
@keyframes shg-ask-spr { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.shg-ask__pt--live { flex-wrap: wrap; gap: 10px; }
.shg-ask__lc { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--pale-sky); font-size: 14px; }
.shg-ask__lc svg { inline-size: 16px; block-size: 16px; }
.shg-ask__lc + .shg-ask__lc { animation: shg-ask-spr .7s var(--ask-spring) .12s both; }
.shg-ask__dot { position: relative; display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 50%; background: #2f8f5b; }
.shg-ask__dot::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid #2f8f5b; border-radius: 50%; animation: shg-ask-ping 1.8s ease-out infinite; }
.shg-ask__dot.is-closed { background: var(--ink-55); }
.shg-ask__dot.is-closed::after { content: none; }
@keyframes shg-ask-ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

.shg-ask__pt--quote, .shg-ask__pt--wa, .shg-ask__pt--here { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.shg-ask__pre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-70); }
.shg-ask__pre b { padding: 6px 12px; border-radius: 999px; background: var(--tile); font-weight: 500; color: var(--rich-mahogany); }
.shg-ask__wam { flex: 1 1 260px; padding: 11px 14px; border-radius: 14px; background: #e9f5ed; box-shadow: inset 0 0 0 1px rgb(31 143 78 / .18); font-size: 14px; }
.shg-ask__wah { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #1f6b40; }
.shg-ask__wah svg { inline-size: 14px; block-size: 14px; }
.shg-ask .shg-ask__wam p { margin: 3px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.shg-ask .shg-ask__go.qs-btn--commit { --ab-h: 50px; font-size: 15.5px; padding-inline-start: 22px; }
.shg-ask__go .shg-ask__gi { display: inline-flex; }
.shg-ask__go .shg-ask__gi svg { inline-size: 17px; block-size: 17px; }

.shg-ask__pt--cards { flex-direction: column; gap: 8px; }
.shg-ask__card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ink-14); }
.shg-ask__card-l { display: flex; flex: 1; min-inline-size: 0; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.shg-ask__card-l img { flex: none; inline-size: 56px; block-size: 56px; border-radius: 10px; background: var(--tile); object-fit: cover; }
.shg-ask__card-t { display: flex; flex-direction: column; gap: 3px; min-inline-size: 0; }
.shg-ask__card-n { overflow: hidden; font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.shg-ask__card-l:hover .shg-ask__card-n { text-decoration: underline; text-underline-offset: 3px; }
.shg-ask__card-p { font-size: 14px; color: var(--ink-70); }
.shg-ask__add { position: relative; flex: none; display: grid; place-items: center; inline-size: 38px; block-size: 38px; border-radius: 50%; background: var(--night-bordeaux); isolation: isolate; }
.shg-ask__add::before { content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: 50%; background: var(--pale-sky); }
.shg-ask__add::after { content: ""; inline-size: 16px; block-size: 16px; background: var(--rich-mahogany); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.shg-ask__add.loading::after { animation: shg-ask-tcp 1s ease-in-out infinite; }
.shg-ask__add.added::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.shg-ask__card .added_to_cart { display: none; }
.shg-ask__more { align-self: flex-start; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.shg-ask__pt--foot { justify-content: space-between; align-items: center; gap: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--ink-14); }
.shg-ask__src { font-size: 12.5px; color: var(--ink-55); }
.shg-ask__fb { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-55); }
.shg-ask__fb button { display: grid; place-items: center; inline-size: 32px; block-size: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-70); cursor: pointer; }
.shg-ask__fb button:hover, .shg-ask__fb button:focus-visible { background: var(--tile); }
.shg-ask__fb svg { inline-size: 16px; block-size: 16px; }

/* Suggestions and the note */
.shg-ask__sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }
.shg-ask:is(.is-typing, .is-sent, .is-think, .is-stream) .shg-ask__sugg { visibility: hidden; }
.shg-ask__sg { padding: 7px 12px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--ink-14); color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.shg-ask__sg:hover { background: var(--tile); box-shadow: none; }
.shg-ask__sg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.shg-ask .shg-ask__nt { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-55); }
.shg-ask__nt a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@container (max-width: 420px) {
	.shg-ask__in { min-block-size: 62px; gap: 10px; padding-inline: 18px 8px; font-size: 16.5px; }
	.shg-ask__ansin { padding-inline: 18px; }
	.shg-ask__t { font-size: 16px; }
}
@media (max-width: 749px) {
	.shg-ask__sugg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.shg-ask__sugg::-webkit-scrollbar { display: none; }
	.shg-ask__sg { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
	.shg-ask *, .shg-ask *::before, .shg-ask *::after { animation: none !important; transition: none !important; }
	.shg-ask__t .w { display: inline; }
}
