/* Sanatan Yatra site help. Plain panel, one brand colour, no nested boxes. */
#syc { --syc-brand: #8f6410; --syc-ink: #2b2620; --syc-soft: #6b6359; --syc-line: #e6e0d4; font-size: 16px; line-height: 1.5; color: var(--syc-ink); }
#syc[hidden], #syc [hidden] { display: none !important; }
#syc * { box-sizing: border-box; }
.syc-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 880; width: 52px; height: 52px; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--c-gold, #e0b23f); background-size: 220% 100%; background-position: 0% 50%; color: #fff; border: 1px solid #c9992b; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(150, 105, 15, .28), inset 0 1px 0 rgba(255, 255, 255, .55); transition: background-position .5s ease, opacity .15s ease;
}
.syc-launcher.syc-away { opacity: 0; visibility: hidden; }
.syc-launcher:hover { background-position: 100% 50%; }
/* White line on gold is low contrast by itself, so a soft dark shadow holds its edge. */
#syc .syc-launcher svg { stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(60, 35, 0, .8)) drop-shadow(0 0 2px rgba(60, 35, 0, .45)); }
#syc svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.syc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 9100; width: 380px; max-width: calc(100vw - 40px);
  height: 560px; max-height: calc(100vh - 110px); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--syc-line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(30, 24, 12, .16); overflow: hidden; outline: none;
  animation: syc-in .16s ease-out;
}
@keyframes syc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.syc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 0 18px; }
#syc .syc-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--syc-ink); font-family: inherit; }
.syc-close { width: 40px; height: 40px; padding: 8px; background: none; border: 0; border-radius: 50%; color: var(--syc-soft); cursor: pointer; }
.syc-close:hover { color: var(--syc-brand); }
#syc .syc-note { margin: 2px 18px 12px; font-size: 14px; line-height: 1.4; color: var(--syc-soft); }
.syc-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; border-top: 1px solid var(--syc-line); outline: none; }
#syc .syc-log p { margin: 0; font-size: 16px; }
#syc .syc-log > * + * { margin-top: 12px; }
#syc .syc-log .syc-user { margin-left: auto; width: fit-content; max-width: 85%; padding: 6px 12px; background: #f6f1e6; border-radius: 12px; overflow-wrap: anywhere; }
#syc .syc-log .syc-wait { color: var(--syc-soft); font-size: 15px; }
#syc .syc-log .syc-lead { margin-top: 10px; color: var(--syc-soft); font-size: 15px; }
.syc-items { list-style: none; margin: 8px 0 0; padding: 0; }
.syc-items li { margin: 0; padding: 5px 0; }
#syc .syc-link { color: var(--syc-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
#syc .syc-link:hover { text-decoration-thickness: 2px; }
.syc-sub { display: block; font-size: 14px; line-height: 1.35; color: var(--syc-soft); }
#syc .syc-log .syc-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.syc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
#syc .syc-chip { padding: 6px 12px; font: inherit; font-size: 15px; line-height: 1.3; letter-spacing: 0; text-transform: none; background: #fff; color: var(--syc-brand); border: 1px solid #d9cdb6; border-radius: 16px; cursor: pointer; }
#syc .syc-chip:hover { border-color: var(--syc-brand); }
.syc-form { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 18px; border-top: 1px solid var(--syc-line); }
#syc .syc-input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0; font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--syc-ink); background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none; }
#syc .syc-input::placeholder { color: var(--syc-soft); opacity: 1; }
#syc .syc-send { flex: none; height: 40px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--c-gold-ink, #2a1a05); background: var(--c-gold, #e0b23f); background-size: 220% 100%; background-position: 0% 50%; border: 1px solid #c9992b; border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); cursor: pointer; transition: background-position .5s ease; }
#syc .syc-send:hover { background-position: 100% 50%; }
#syc button:focus-visible, #syc a:focus-visible, #syc .syc-log:focus-visible { outline: 2px solid var(--syc-brand); outline-offset: 2px; }
.syc-form:focus-within { box-shadow: inset 0 2px 0 var(--syc-brand); }
#syc .syc-log { position: relative; }
#syc .syc-log .syc-festive { font-weight: 600; color: var(--syc-brand); }
#syc .syc-reply > * + * { margin-top: 8px; }
/* The large photo keeps its own shape, so a standing deity is never cut at the head.
   Wide photos fill the width; tall ones are limited in height and centred. */
#syc .syc-hero { display: block; width: auto; max-width: 100%; height: auto; max-height: min(280px, 40vh); aspect-ratio: auto; margin: 0 auto; object-fit: contain; border-radius: 8px; background: #f3efe6; }
#syc .syc-hero:not([data-sy="ready"]) { width: 100%; aspect-ratio: 600 / 340; }
.syc-photo-link { display: block; }
#syc .syc-log .syc-caption { margin-top: 8px; }
.syc-name { font-weight: 600; }
.syc-row { display: flex; align-items: center; gap: 12px; }
/* Temple photos are landscape, so the small photo is landscape too (4:3.1) and keeps most of the temple */
#syc .syc-thumb { flex: none; display: block; width: 72px; height: 56px; object-fit: cover; border-radius: 8px; background: #f3efe6; }
#syc .syc-log .syc-acts { margin-top: 10px; }
#syc .syc-gold {
  display: inline-block; padding: 7px 16px; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none;
  color: var(--c-gold-ink, #2a1a05); background: var(--c-gold, #e0b23f); background-size: 220% 100%; background-position: 0% 50%;
  border: 1px solid #c9992b; border-radius: 20px; box-shadow: 0 2px 10px rgba(150, 105, 15, .28), inset 0 1px 0 rgba(255, 255, 255, .55); transition: background-position .5s ease;
}
#syc .syc-gold:hover { background-position: 100% 50%; }
.syc-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 639px) {
  .syc-launcher { right: 14px; bottom: 10px; }
  .syc-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 82vh; height: 82dvh; max-height: none; border-width: 1px 0 0; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { .syc-panel { animation: none; } .syc-launcher, #syc .syc-send, #syc .syc-gold { transition: none; } }
@media print { #syc { display: none !important; } }

/* Greeting beside the launcher: it pops out of the button, types, then says Namaste. */
.syc-greet {
  position: fixed; right: 82px; bottom: 26px; z-index: 879; display: flex; align-items: flex-start;
  max-width: min(280px, calc(100vw - 104px));
  transform-origin: 100% 80%; animation: syc-greet-pop .42s cubic-bezier(.34, 1.56, .64, 1) both;
}
.syc-greet.syc-greet-out { animation: syc-greet-away .24s ease-in forwards; }
.syc-greet-body {
  position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  padding: 12px 30px 12px 16px; border: 1px solid #ead9b4; border-radius: 18px 18px 4px 18px;
  background: linear-gradient(180deg, #fffdf8, #fbf3e2); color: var(--syc-ink, #2b2620); font: inherit;
  box-shadow: 0 10px 28px rgba(120, 82, 14, .18), 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.syc-greet-hi { font-size: 16px; font-weight: 600; color: #7a4e0a; line-height: 1.3; }
.syc-greet-ask { font-size: 15px; line-height: 1.35; color: #4a3f30; }
.syc-greet-hi, .syc-greet-ask { display: none; }
.syc-greet-typed .syc-greet-hi, .syc-greet-typed .syc-greet-ask { display: block; animation: syc-greet-word .38s cubic-bezier(.22, 1, .36, 1) both; }
.syc-greet-typed .syc-greet-ask { animation-delay: .14s; }
.syc-greet-typed .syc-greet-dots { display: none; }
.syc-greet-dots { display: inline-flex; gap: 5px; padding: 6px 2px; }
.syc-greet-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c99a3c; animation: syc-greet-dot 1s ease-in-out infinite; }
.syc-greet-dots i:nth-child(2) { animation-delay: .15s; }
.syc-greet-dots i:nth-child(3) { animation-delay: .3s; }
.syc-greet-x {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #8a7a60; font-size: 20px; line-height: 28px; cursor: pointer;
}
.syc-greet-x:hover { color: #7a4e0a; }
@keyframes syc-greet-pop { from { opacity: 0; transform: translateX(14px) scale(.6); } }
@keyframes syc-greet-away { to { opacity: 0; transform: translateX(10px) scale(.85); } }
@keyframes syc-greet-word { from { opacity: 0; transform: translateY(6px); } }
@keyframes syc-greet-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 767px) { .syc-greet { right: 78px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) {
  .syc-greet, .syc-greet-typed .syc-greet-hi, .syc-greet-typed .syc-greet-ask, .syc-greet-dots i { animation: none; }
}
