/* ─────────────────────────────────────────────────────────────────────────────
   OUR LOGO GLOWS GOLD, WHEREVER IT APPEARS — one rule file for every page.

   The gold is sampled from the fine circle painted into the logo picture, and it
   stays that gold whatever colour is chosen from the palette. There is NO ring:
   no border, no outline, no coloured disc. (Every shadow below is blurred much
   more than it is spread, so its inner edge never reads as a line.)

   It selects the picture by its file name, so a new place that shows the logo
   glows without anybody remembering to add a class. Linked LAST in each page's
   <head>, after the page's own styles.

   Two animations, chosen by the person from eight:
     SIGN-IN and the opening screen   gold particles (logo-sparks.js) over the glow
     INSIDE THE APP                   a gentle float over a pool of gold light
   The small repeated ones (chat bubbles, little icons) hold still.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --logo-gold: 242, 209, 129;        /* the circle's highlight */
  --logo-gold-deep: 212, 160, 55;    /* the outer halo: deep enough to show on a white page too */
}

/* every logo: round, so the glow follows the painted circle; the small, steady glow.
   Deep gold nearest the picture: pale champagne alone disappears on a white bar. */
img[src*="digi-acharya-logo"] {
  border: 0 !important;
  border-radius: 50% !important;     /* some places set a rounded square in a style attribute */
  box-shadow: 0 0 9px 3px rgba(var(--logo-gold-deep), .85), 0 0 20px 6px rgba(var(--logo-gold), .85);
}

/* INSIDE THE APP: the logo in the bar and in the AI chat's header lifts and settles over a pool of gold light.
   Only the picture moves and only its transform and the pool's size change: cheap for a phone. */
#logo-menu-btn img[src*="digi-acharya-logo"],
.ai-hdr .ai-av img[src*="digi-acharya-logo"] {
  box-shadow: 0 0 4px 1px rgba(var(--logo-gold-deep), .75), 0 0 9px 2px rgba(var(--logo-gold), .55);
  animation: dtFloat 3.2s ease-in-out infinite;
}
#logo-menu-btn, .ai-hdr .ai-av { position: relative; }
#logo-menu-btn::after, .ai-hdr .ai-av::after {
  content: ''; position: absolute; pointer-events: none; border-radius: 50%;
  left: 2px; width: 24px; height: 6px; top: calc(50% + 13px);          /* under the 28px logo that starts the bar */
  background: radial-gradient(closest-side, rgba(var(--logo-gold-deep), .95), rgba(var(--logo-gold), 0));
  animation: dtPool 3.2s ease-in-out infinite;
}
.ai-hdr .ai-av::after { left: 3px; width: calc(100% - 6px); top: calc(100% - 1px); }
@keyframes dtFloat { 0%, 100% { transform: translateY(2%); }  50% { transform: translateY(-9%); } }
@keyframes dtPool  { 0%, 100% { transform: scale(1.1); opacity: .95; }  50% { transform: scale(.72); opacity: .45; } }

/* the big ones: the opening screen and sign-in */
.app-splash img[src*="digi-acharya-logo"],
img.brand-icon[src*="digi-acharya-logo"],
.mobile-brand img[src*="digi-acharya-logo"] {
  box-shadow: 0 0 18px 3px rgba(var(--logo-gold), .75), 0 0 40px 9px rgba(var(--logo-gold-deep), .55);
  animation: dtGoldGlow 2.6s ease-in-out infinite;
}
@keyframes dtGoldGlow {
  0%, 100% { box-shadow: 0 0 18px 3px rgba(var(--logo-gold), .75), 0 0 40px 9px rgba(var(--logo-gold-deep), .55); filter: brightness(.95); }
  50%      { box-shadow: 0 0 26px 7px rgba(var(--logo-gold), 1),   0 0 70px 20px rgba(var(--logo-gold-deep), .85); filter: brightness(1.18); }
}

/* GOLD PARTICLES (assets/logo-sparks.js): the canvas that circles a big logo, and a softer halo under it so the
   moving particles are what the eye sees. The script marks the picture .dt-sparked; without it the glow above stays. */
.dt-logo-sparks { position: fixed; pointer-events: none; z-index: 100001; display: none; }
.app-splash img.dt-sparked, img.brand-icon.dt-sparked, .mobile-brand img.dt-sparked {
  animation: dtGoldHalo 2.6s ease-in-out infinite;
}
@keyframes dtGoldHalo {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(var(--logo-gold-deep), .6),  0 0 18px 5px rgba(var(--logo-gold), .45); filter: brightness(.97); }
  50%      { box-shadow: 0 0 12px 3px rgba(var(--logo-gold-deep), .85), 0 0 30px 9px rgba(var(--logo-gold), .7);  filter: brightness(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  img[src*="digi-acharya-logo"], #logo-menu-btn::after, .ai-hdr .ai-av::after { animation: none !important; }
}
@media print {
  img[src*="digi-acharya-logo"] { box-shadow: none !important; animation: none !important; filter: none !important; }
  .dt-logo-sparks, #logo-menu-btn::after, .ai-hdr .ai-av::after { display: none !important; }
}
