/* ==========================================================================
   IVEACER Seasonal Loy Krathong Entry Stylesheet
   Supports Hero Spotlight & Compact modes, Mobile Nav spotlight item,
   and Floating Quick-Entry Pill across Light, Dark, High Contrast,
   Text Scale (1.3x), Reduced Motion, and Print modes.
   ========================================================================== */

/* ==========================================================================
   1. Hero Slots & Visibility Guards
   ========================================================================== */

.seasonal-hero-slot:empty,
html[data-lk-mode="hidden"] .seasonal-hero-slot {
  display: none;
}

#seasonalHeroSlotSpotlight {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto 1rem;
}

#seasonalHeroSlotCompact {
  width: 100%;
  margin: 0.875rem auto 0;
  display: flex;
  justify-content: center;
}

.seasonal-loykrathong-banner[hidden],
.seasonal-loykrathong-banner[data-seasonal-mode="hidden"],
.lk-float-pill[hidden],
.mobile-nav-lk-link[hidden],
.seasonal-lk-live[hidden],
#seasonalLkAnnouncementItem[hidden] {
  display: none !important;
}

/* ==========================================================================
   2. Shared Focus & Tactile Press Ergonomics
   ========================================================================== */

.seasonal-loykrathong-banner:focus-visible,
.lk-float-link:focus-visible,
.lk-float-close:focus-visible,
#mobileNav .mobile-nav-lk-link.is-spotlight:focus-visible {
  outline: 3px solid var(--iveacer-focus, #b8941f);
  outline-offset: 3px;
}

.seasonal-loykrathong-banner:active:not(:disabled),
.lk-float-link:active:not(:disabled),
.lk-float-close:active:not(:disabled),
#mobileNav .mobile-nav-lk-link.is-spotlight:active:not(:disabled) {
  transform: scale(0.96);
}

/* ==========================================================================
   3. Spotlight Mode (.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"])
   ========================================================================== */

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.625rem 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 1.125rem;
  background: linear-gradient(135deg, #022C22 0%, #053D2F 55%, #064E3B 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 18px 36px -14px rgba(2, 44, 34, 0.42),
              0 0 0 1px rgba(253, 230, 138, 0.16);
  color: #FFFFFF;
  text-decoration: none;
  text-align: left;
  transition: background-color 180ms ease-out,
              border-color 180ms ease-out,
              color 180ms ease-out,
              transform 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              box-shadow 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"][data-festival-day="true"] {
  border-color: rgba(253, 224, 71, 0.84);
  background:
    linear-gradient(180deg, rgba(253, 230, 138, 0.14) 0%, rgba(253, 230, 138, 0) 44%),
    linear-gradient(135deg, #022C22 0%, #053D2F 55%, #064E3B 100%);
  box-shadow: 0 20px 40px -14px rgba(2, 44, 34, 0.46),
              0 0 0 1px rgba(253, 230, 138, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"]:hover {
    border-color: rgba(253, 224, 71, 0.9);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 22px 42px -14px rgba(2, 44, 34, 0.5),
                0 0 0 1px rgba(253, 230, 138, 0.32);
  }

  .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"]:hover .seasonal-lk-cta {
    background-color: #BEF264;
  }

  .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"]:hover .seasonal-lk-arrow {
    transform: translate3d(2px, 0, 0);
  }
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 35%, rgba(254, 240, 138, 0.24), rgba(2, 44, 34, 0.5));
  border: 1px solid rgba(253, 230, 138, 0.35);
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

@keyframes slkCandleFlicker {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-flame {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: slkCandleFlicker 3.2s ease-in-out infinite;
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-body {
  display: block;
  min-width: 0;
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  margin-bottom: 0.25rem;
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.15rem 0.625rem;
  border-radius: 9999px;
  background: rgba(253, 230, 138, 0.16);
  color: #FDE68A;
  border: 1px solid rgba(253, 230, 138, 0.34);
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"][data-festival-day="true"] #seasonalLkBadge,
.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"][data-festival-day="true"] .seasonal-lk-tag {
  background: #FDE68A;
  color: #022C22;
  border-color: #FDE68A;
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-live {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(163, 230, 53, 0.14);
  color: #BEF264;
  border: 1px solid rgba(163, 230, 53, 0.34);
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-title {
  display: block;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: clamp(0.95rem, 2.2vw, 1.0625rem);
  line-height: 1.4;
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-desc {
  display: block;
  font-family: 'Sarabun', 'Prompt', sans-serif;
  color: rgba(236, 253, 245, 0.9);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-top: 0.15rem;
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-compact-label {
  display: none;
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-cta {
  grid-column: 1 / -1;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border-radius: 9999px;
  background: #A3E635;
  color: #022C22;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 180ms ease-out,
              transform 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-arrow {
  display: inline-block;
  transition: transform 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

@media (min-width: 640px) {
  .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
  }

  .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-icon {
    width: 52px;
    height: 52px;
  }

  .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-icon svg {
    width: 40px;
    height: 40px;
  }

  .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-cta {
    grid-column: auto;
    width: auto;
  }
}

/* ==========================================================================
   4. Compact Mode (.seasonal-loykrathong-banner[data-seasonal-mode="compact"])
   ========================================================================== */

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  min-height: 38px;
  max-width: 100%;
  padding: 0.25rem 0.85rem 0.25rem 0.45rem;
  border-radius: 9999px;
  background-color: #F1F8F4;
  border: 1px solid rgba(6, 95, 70, 0.24);
  color: #064E3B;
  text-decoration: none;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: none;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 160ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              box-shadow 180ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"]::after {
  content: "";
  position: absolute;
  inset: -4px 0;
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .seasonal-loykrathong-banner[data-seasonal-mode="compact"]:hover {
    background-color: #E2F2E8;
    border-color: #065F46;
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 10px 20px -12px rgba(6, 95, 70, 0.28);
  }
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-flame {
  animation: none;
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-body {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.5rem;
  flex: 0 1 auto;
  min-width: 0;
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-meta {
  display: contents;
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background-color: #FEF3C7;
  color: #7C5E08;
  border: 1px solid rgba(124, 94, 8, 0.24);
  border-radius: 9999px;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.125rem 0.55rem;
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-title,
.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-desc,
.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-live,
.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-cta-text {
  display: none;
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-compact-label {
  display: inline;
  color: #064E3B;
  min-width: 0;
  overflow-wrap: anywhere;
}

.seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  color: #065F46;
  min-height: auto;
  font-weight: 700;
}

@media (max-width: 479.98px) {
  .seasonal-loykrathong-banner[data-seasonal-mode="compact"] {
    gap: 0.25rem 0.3125rem;
    padding: 0.2rem 0.65rem 0.2rem 0.4rem;
    font-size: 0.75rem;
  }

  .seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-icon,
  .seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-icon svg {
    width: 18px;
    height: 18px;
  }

  .seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-body {
    gap: 0.2rem 0.3125rem;
  }

  .seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-tag {
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
  }
}

/* ==========================================================================
   5. Floating Quick-Entry Pill (#floatingLoyKrathongPill.lk-float-pill)
   ========================================================================== */

#floatingLoyKrathongPill.lk-float-pill {
  position: fixed;
  z-index: 48;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.375rem 0.3rem 0.45rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #022C22 0%, #064E3B 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.72);
  color: #FFFFFF;
  box-shadow: 0 16px 34px -10px rgba(2, 44, 34, 0.48);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 16px, 0);
  pointer-events: none;
  transition: opacity 220ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              transform 220ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              visibility 220ms,
              border-color 180ms ease-out;
}

#floatingLoyKrathongPill.lk-float-pill.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

@media (min-width: 768px) {
  #floatingLoyKrathongPill.lk-float-pill {
    left: 16px;
    bottom: 72px;
    right: auto;
    max-width: min(320px, calc(100vw - 380px));
  }
}

@media (max-width: 767.98px) {
  #floatingLoyKrathongPill.lk-float-pill {
    right: 12px;
    left: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 80px);
  }
}

.lk-float-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-height: 44px;
  min-width: 0;
  padding: 0.2rem 0.45rem 0.2rem 0.2rem;
  border-radius: 9999px;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 160ms ease-out,
              transform 160ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.lk-float-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(254, 240, 138, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lk-float-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.lk-float-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}

.lk-float-title {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lk-float-sub {
  font-family: 'Sarabun', 'Prompt', sans-serif;
  font-size: 0.72rem;
  color: #FDE68A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 359.98px) {
  .lk-float-sub {
    display: none;
  }
}

.lk-float-arrow {
  color: #A3E635;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 160ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.lk-float-close {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(253, 230, 138, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #FDE68A;
  cursor: pointer;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 140ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.lk-float-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
  #floatingLoyKrathongPill.lk-float-pill:hover {
    border-color: rgba(253, 224, 71, 0.9);
  }

  .lk-float-link:hover .lk-float-title {
    color: #FDE68A;
  }

  .lk-float-link:hover .lk-float-arrow {
    transform: translate3d(2px, 0, 0);
  }

  .lk-float-close:hover {
    background: rgba(253, 230, 138, 0.22);
    border-color: rgba(253, 230, 138, 0.72);
    color: #FFFFFF;
  }
}

/* ==========================================================================
   6. Mobile Navigation Link (.mobile-nav-lk-link.is-spotlight)
   ========================================================================== */

html.landing-root #mobileNav .mobile-nav-lk-link.is-spotlight {
  background: linear-gradient(135deg, #022C22 0%, #064E3B 100%);
  color: #FDE68A !important;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 0.625rem;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-weight: 600;
  margin-bottom: 0.375rem;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              color 160ms ease-out,
              transform 160ms var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root #mobileNav .mobile-nav-lk-link.is-spotlight:hover {
    background: linear-gradient(135deg, #04382B 0%, #065F46 100%);
    border-color: #FDE68A;
    color: #FFFFFF !important;
  }
}

html.landing-root #mobileNav .mobile-nav-lk-link.is-spotlight:focus-visible {
  background: linear-gradient(135deg, #04382B 0%, #065F46 100%);
  border-color: #FDE68A;
  color: #FFFFFF !important;
}

/* ==========================================================================
   7. Dark Mode Support
   ========================================================================== */

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="compact"] {
  background-color: rgba(6, 95, 70, 0.35);
  border-color: rgba(253, 230, 138, 0.36);
  color: #E2F5E8;
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="compact"]:hover {
    background-color: rgba(6, 95, 70, 0.58);
    border-color: #FDE68A;
    color: #FFFFFF;
  }
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="compact"]:focus-visible {
  background-color: rgba(6, 95, 70, 0.58);
  border-color: #FDE68A;
  color: #FFFFFF;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-tag {
  background-color: rgba(253, 230, 138, 0.16);
  color: #FDE68A;
  border-color: rgba(253, 230, 138, 0.32);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-compact-label {
  color: #E2F5E8;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-cta,
html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="compact"] .seasonal-lk-arrow {
  color: #A3E635;
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] {
  border-color: rgba(253, 230, 138, 0.52);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.62),
              0 0 0 1px rgba(253, 230, 138, 0.22);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"][data-festival-day="true"] {
  border-color: rgba(253, 224, 71, 0.85);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #floatingLoyKrathongPill.lk-float-pill {
  border-color: rgba(253, 230, 138, 0.62);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.68);
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileNav .mobile-nav-lk-link.is-spotlight {
  background: linear-gradient(135deg, #022C22 0%, #064E3B 100%);
  border-color: rgba(253, 230, 138, 0.52);
  color: #FDE68A !important;
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileNav .mobile-nav-lk-link.is-spotlight:hover {
    background: linear-gradient(135deg, #04382B 0%, #065F46 100%);
    border-color: #FDE68A;
    color: #FFFFFF !important;
  }
}

html.landing-root:is([data-theme="dark"], [data-bs-theme="dark"], .dark) #mobileNav .mobile-nav-lk-link.is-spotlight:focus-visible {
  background: linear-gradient(135deg, #04382B 0%, #065F46 100%);
  border-color: #FDE68A;
  color: #FFFFFF !important;
}

/* ==========================================================================
   8. High Contrast Mode (overrides landing-a11y.css link colors cleanly)
   ========================================================================== */

html.landing-root:is([data-contrast="high"], .high-contrast) a#seasonalLoyKrathongBanner.seasonal-loykrathong-banner,
html.landing-root:is([data-contrast="high"], .high-contrast) a#seasonalLoyKrathongBanner.seasonal-loykrathong-banner[data-festival-day="true"] {
  background: #000000 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root:is([data-contrast="high"], .high-contrast) a#seasonalLoyKrathongBanner.seasonal-loykrathong-banner:hover {
    border-color: #FFFF00 !important;
    box-shadow: none !important;
  }
}

html.landing-root:is([data-contrast="high"], .high-contrast) a#seasonalLoyKrathongBanner.seasonal-loykrathong-banner:focus-visible {
  border-color: #FFFF00 !important;
  outline: 3px solid #FFFF00 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #000000 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner[data-seasonal-mode="spotlight"] .seasonal-lk-icon {
  background: #000000 !important;
  border: 2px solid #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner[data-seasonal-mode="compact"] .seasonal-lk-icon {
  background: transparent !important;
  border: 0 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner .seasonal-lk-tag,
html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner[data-festival-day="true"] .seasonal-lk-tag {
  background: #000000 !important;
  color: #FFFF00 !important;
  border: 1.5px solid #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner .seasonal-lk-live {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1.5px solid #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner .seasonal-lk-title {
  color: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner .seasonal-lk-desc,
html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner .seasonal-lk-compact-label {
  color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner[data-seasonal-mode="spotlight"] .seasonal-lk-cta {
  background: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner[data-seasonal-mode="spotlight"] .seasonal-lk-cta * {
  color: #000000 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner[data-seasonal-mode="compact"] .seasonal-lk-cta,
html.landing-root:is([data-contrast="high"], .high-contrast) #seasonalLoyKrathongBanner[data-seasonal-mode="compact"] .seasonal-lk-arrow {
  background: transparent !important;
  color: #FFFF00 !important;
  border: 0 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill.lk-float-pill {
  background: #000000 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill.lk-float-pill:hover {
    border-color: #FFFF00 !important;
  }
}

html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill.lk-float-pill:focus-within {
  border-color: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill a.lk-float-link {
  color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill .lk-float-icon {
  background: #000000 !important;
  border: 1.5px solid #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill .lk-float-title,
html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill .lk-float-arrow {
  color: #FFFF00 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill .lk-float-sub {
  color: #FFFFFF !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill button#closeFloatingLkBtn.lk-float-close {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1.5px solid #FFFFFF !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill button#closeFloatingLkBtn.lk-float-close:hover {
    border-color: #FFFF00 !important;
    color: #FFFF00 !important;
  }
}

html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill a.lk-float-link:focus-visible,
html.landing-root:is([data-contrast="high"], .high-contrast) #floatingLoyKrathongPill button#closeFloatingLkBtn.lk-float-close:focus-visible {
  outline: 3px solid #FFFF00 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #000000 !important;
}

html.landing-root:is([data-contrast="high"], .high-contrast) #mobileNav a#mobileNavLoyKrathongLink.mobile-nav-lk-link,
html.landing-root:is([data-contrast="high"], .high-contrast) #mobileNav a#mobileNavLoyKrathongLink.mobile-nav-lk-link.is-spotlight {
  background: #000000 !important;
  background-image: none !important;
  color: #FFFF00 !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html.landing-root:is([data-contrast="high"], .high-contrast) #mobileNav a#mobileNavLoyKrathongLink.mobile-nav-lk-link:hover,
  html.landing-root:is([data-contrast="high"], .high-contrast) #mobileNav a#mobileNavLoyKrathongLink.mobile-nav-lk-link.is-spotlight:hover {
    background: #000000 !important;
    border-color: #FFFF00 !important;
    color: #FFFF00 !important;
  }
}

html.landing-root:is([data-contrast="high"], .high-contrast) #mobileNav a#mobileNavLoyKrathongLink.mobile-nav-lk-link:focus-visible,
html.landing-root:is([data-contrast="high"], .high-contrast) #mobileNav a#mobileNavLoyKrathongLink.mobile-nav-lk-link.is-spotlight:focus-visible {
  background: #000000 !important;
  border-color: #FFFF00 !important;
  color: #FFFF00 !important;
  outline: 3px solid #FFFF00 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #000000 !important;
}

/* ==========================================================================
   9. Text Scale 1.3x Safeguards (Zero horizontal overflow at 360px)
   ========================================================================== */

html:is([data-font-size="xlarge"], .text-xlarge) :is(
  #seasonalLoyKrathongBanner,
  #seasonalLkBadge,
  #seasonalLkLiveCount,
  #seasonalLkTitle,
  #seasonalLkDesc,
  #seasonalLkCompactLabel,
  .seasonal-lk-cta,
  #floatingLoyKrathongPill,
  .lk-float-title,
  .lk-float-sub,
  #mobileNavLoyKrathongLink
) {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

html:is([data-font-size="xlarge"], .text-xlarge) .seasonal-loykrathong-banner[data-seasonal-mode="spotlight"] .seasonal-lk-cta {
  text-align: center;
}

html:is([data-font-size="xlarge"], .text-xlarge) .seasonal-loykrathong-banner[data-seasonal-mode="compact"] {
  border-radius: 1.25rem;
  padding: 0.375rem 0.85rem;
}

@media (max-width: 767.98px) {
  html:is([data-font-size="xlarge"], .text-xlarge) #floatingLoyKrathongPill.lk-float-pill {
    border-radius: 1.25rem;
    padding: 0.375rem 0.45rem;
  }

  html:is([data-font-size="xlarge"], .text-xlarge) .lk-float-title,
  html:is([data-font-size="xlarge"], .text-xlarge) .lk-float-sub {
    text-overflow: clip;
  }
}

/* ==========================================================================
   10. Reduced Motion Support (User Toggle & OS Preference)
   ========================================================================== */

html:is([data-reduced-motion="true"], .reduce-motion) .seasonal-lk-flame {
  animation: none !important;
}

html:is([data-reduced-motion="true"], .reduce-motion) :is(
  .seasonal-loykrathong-banner,
  .seasonal-lk-cta,
  .seasonal-lk-arrow,
  #floatingLoyKrathongPill,
  .lk-float-link,
  .lk-float-arrow,
  .lk-float-close,
  .mobile-nav-lk-link
) {
  transform: none !important;
  transition: opacity 150ms ease-out,
              visibility 150ms ease-out,
              background-color 150ms ease-out,
              border-color 150ms ease-out,
              color 150ms ease-out,
              box-shadow 150ms ease-out !important;
}

html:is([data-reduced-motion="true"], .reduce-motion) :is(
  .seasonal-loykrathong-banner,
  .seasonal-lk-cta,
  .seasonal-lk-arrow,
  .lk-float-link,
  .lk-float-arrow,
  .lk-float-close,
  .mobile-nav-lk-link
):is(:hover, :focus-visible, :active) {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-reduced-motion="false"]) .seasonal-lk-flame {
    animation: none !important;
  }

  html:not([data-reduced-motion="false"]) :is(
    .seasonal-loykrathong-banner,
    .seasonal-lk-cta,
    .seasonal-lk-arrow,
    #floatingLoyKrathongPill,
    .lk-float-link,
    .lk-float-arrow,
    .lk-float-close,
    .mobile-nav-lk-link
  ) {
    transform: none !important;
    transition: opacity 150ms ease-out,
                visibility 150ms ease-out,
                background-color 150ms ease-out,
                border-color 150ms ease-out,
                color 150ms ease-out,
                box-shadow 150ms ease-out !important;
  }

  html:not([data-reduced-motion="false"]) :is(
    .seasonal-loykrathong-banner,
    .seasonal-lk-cta,
    .seasonal-lk-arrow,
    .lk-float-link,
    .lk-float-arrow,
    .lk-float-close,
    .mobile-nav-lk-link
  ):is(:hover, :focus-visible, :active) {
    transform: none !important;
  }
}

/* ==========================================================================
   11. Print Media
   ========================================================================== */

@media print {
  #floatingLoyKrathongPill {
    display: none !important;
  }
}
