/* Ask Sky welcome panel: campaign banners + live branch status (see js/sky_welcome.js) */
:root {
  --sky-brown: #4e2a15;
  --sky-gold: #c77e35;
  --sky-green: #2f6b4f;
  --sky-red: #a63a24;
  --sky-night: #1f1a17;
  --sky-ink: #272522;
  --sky-muted: #6f675f;
  --sky-line: #eae3d9;
  --sky-open: #2e8b57;
  --sky-closing: #d08a1e;
  --sky-closed: #b0463a;
}

/* ---------- Banners ---------- */
.sky-banners { position: relative; margin: 0 0 14px; }
.sky-banners[hidden] { display: none; }
.sky-banners__track { position: relative; min-height: 108px; }

.sky-banner {
  position: absolute; inset: 0;
  display: none; align-items: center; gap: 14px;
  padding: 14px 40px 14px 14px;
  border-radius: 14px;
  color: #fff; text-decoration: none;
  overflow: hidden;
}
.sky-banner.is-active { display: flex; position: relative; }
.sky-banner:hover .sky-banner__cta, .sky-banner:focus-visible .sky-banner__cta { text-decoration: underline; }
.sky-banner:focus-visible { outline: 3px solid var(--sky-gold); outline-offset: 2px; }
/* soft paw-print texture, pure CSS so it costs no download */
.sky-banner::after {
  content: ""; position: absolute; right: -24px; bottom: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: -70px -40px 0 -30px rgba(255, 255, 255, .06);
  pointer-events: none;
}

.sky-banner--navy  { background: linear-gradient(120deg, #6b3a1d 0%, var(--sky-brown) 100%); }
.sky-banner--gold  { background: linear-gradient(120deg, #d99448 0%, #a8641f 100%); }
.sky-banner--green { background: linear-gradient(120deg, #3c8463 0%, var(--sky-green) 100%); }
.sky-banner--red   { background: linear-gradient(120deg, #c2492f 0%, var(--sky-red) 100%); }
.sky-banner--night { background: linear-gradient(120deg, #3a2f28 0%, var(--sky-night) 100%); }
.sky-banner--night .sky-banner__title { color: #f3b44c; }

.sky-banner__art {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16);
}
.sky-banner__icon { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sky-banner__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; z-index: 1; }
.sky-banner__eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.sky-banner__title { font-size: 16px; font-weight: 800; line-height: 1.25; }
.sky-banner__subtitle { font-size: 12.5px; line-height: 1.4; opacity: .9; }
.sky-banner__cta { margin-top: 4px; font-size: 12.5px; font-weight: 700; }

.sky-banners__dismiss {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .22); color: #fff;
  font-size: 17px; line-height: 26px; padding: 0; cursor: pointer;
}
.sky-banners__dismiss:hover, .sky-banners__dismiss:focus-visible { background: rgba(0, 0, 0, .4); }

.sky-banners__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.sky-banners__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: #d8cfc5; cursor: pointer;
}
.sky-banners__dot[aria-selected="true"] { width: 20px; border-radius: 4px; background: var(--sky-gold); }

/* ---------- Welcome + live status ---------- */
.sky-welcome { margin: 0 0 12px; color: var(--sky-ink); }
.sky-welcome__title { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--sky-brown); }
.sky-welcome__summary { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--sky-ink); }

.sky-branches { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--sky-line); border-radius: 12px; background: #fdfbf9; }
.sky-branches[hidden] { display: none; }
.sky-branch {
  display: grid; grid-template-columns: 10px auto 1fr; column-gap: 8px; row-gap: 1px;
  align-items: center; padding: 9px 12px; font-size: 13px;
}
.sky-branch + .sky-branch { border-top: 1px solid var(--sky-line); }
.sky-branch__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-closed); }
.sky-branch--open .sky-branch__dot { background: var(--sky-open); box-shadow: 0 0 0 3px rgba(46, 139, 87, .18); }
.sky-branch--closing .sky-branch__dot { background: var(--sky-closing); }
.sky-branch__name { font-weight: 700; color: var(--sky-ink); text-decoration: none; }
.sky-branch__name:hover { text-decoration: underline; }
.sky-branch__state { justify-self: end; font-size: 11.5px; font-weight: 700; color: var(--sky-closed); }
.sky-branch--open .sky-branch__state { color: var(--sky-open); }
.sky-branch--closing .sky-branch__state { color: var(--sky-closing); }
.sky-branch__detail { grid-column: 2 / -1; font-size: 12px; color: var(--sky-muted); }

.sky-account { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.sky-account[hidden] { display: none; }
.sky-account__signin {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border: 1.5px solid var(--sky-brown); border-radius: 999px;
  color: var(--sky-brown); font-weight: 700; text-decoration: none;
}
.sky-account__signin:hover, .sky-account__signin:focus-visible { background: var(--sky-brown); color: #fff; }
.sky-account__hint { color: var(--sky-muted); font-size: 12px; }
.sky-account__hello { font-weight: 700; color: var(--sky-brown); }
.sky-account__points {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; background: #f6ece0; color: var(--sky-brown); font-weight: 700;
}
.sky-account__points .sky-banner__icon { width: 15px; height: 15px; stroke: var(--sky-gold); }

@media (max-width: 640px) {
  .sky-banners__track { min-height: 100px; }
  .sky-banner { padding: 12px 38px 12px 12px; gap: 12px; }
  .sky-banner__art { flex-basis: 46px; width: 46px; height: 46px; }
  .sky-banner__icon { width: 24px; height: 24px; }
  .sky-banner__title { font-size: 15px; }
  .sky-banner__subtitle { display: none; } /* keep chips above the fold on phones */
}

@media (prefers-reduced-motion: reduce) {
  .sky-banner, .sky-banners__dot { transition: none !important; }
}
