/* Hush Keel FAQ chatbot — Purdue black/gold, matches styles.css */
.hk-chatbot {
  --hk-black: #0a0a0a;
  --hk-near-black: #141414;
  --hk-gold: #CFB991;
  --hk-gold-bright: #D4A017;
  --hk-cream: #F7F4ED;
  --hk-muted: #5A5A5A;
  --hk-white: #ffffff;
  --hk-card-border: #E5DCC8;
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1100;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.hk-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hk-chatbot__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--hk-gold-bright);
  color: var(--hk-black);
  border: 2px solid var(--hk-gold-bright);
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hk-chatbot__toggle:hover,
.hk-chatbot__toggle:focus-visible {
  background: #e0b020;
  border-color: #e0b020;
  outline: none;
}

.hk-chatbot__toggle:focus-visible {
  outline: 2px solid var(--hk-gold);
  outline-offset: 3px;
}

.hk-chatbot.is-open .hk-chatbot__toggle {
  background: var(--hk-black);
  border-color: var(--hk-gold);
  color: var(--hk-gold);
}

.hk-chatbot__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.12);
  font-weight: 800;
  font-size: 0.95rem;
}

.hk-chatbot.is-open .hk-chatbot__toggle-icon {
  background: rgba(207, 185, 145, 0.18);
}

.hk-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(520px, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  background: var(--hk-cream);
  color: #2C2C2C;
  border: 1px solid var(--hk-card-border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.hk-chatbot__panel[hidden] {
  display: none !important;
}

.hk-chatbot__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--hk-black);
  color: var(--hk-white);
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(207, 185, 145, 0.35);
}

.hk-chatbot__title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hk-chatbot__title strong {
  color: var(--hk-gold);
  font-size: 0.975rem;
  letter-spacing: 0.01em;
}

.hk-chatbot__title span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
}

.hk-chatbot__close {
  background: transparent;
  border: 1px solid rgba(207, 185, 145, 0.4);
  color: var(--hk-gold);
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.hk-chatbot__close:hover,
.hk-chatbot__close:focus-visible {
  border-color: var(--hk-gold-bright);
  color: var(--hk-gold-bright);
  outline: none;
}

.hk-chatbot__close:focus-visible {
  outline: 2px solid var(--hk-gold-bright);
  outline-offset: 2px;
}

.hk-chatbot__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--hk-cream);
  min-height: 220px;
}

.hk-chatbot__msg {
  display: flex;
  max-width: 92%;
}

.hk-chatbot__msg--bot {
  align-self: flex-start;
}

.hk-chatbot__msg--user {
  align-self: flex-end;
}

.hk-chatbot__bubble {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.hk-chatbot__msg--bot .hk-chatbot__bubble {
  background: var(--hk-white);
  border: 1px solid var(--hk-card-border);
  color: #2C2C2C;
  border-top: 2px solid var(--hk-gold);
}

.hk-chatbot__msg--user .hk-chatbot__bubble {
  background: var(--hk-black);
  color: var(--hk-white);
  border: 1px solid rgba(207, 185, 145, 0.35);
}

.hk-chatbot__bubble a {
  color: var(--hk-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.hk-chatbot__msg--bot .hk-chatbot__bubble a {
  color: #a67c00;
}

.hk-chatbot__bubble a:hover,
.hk-chatbot__bubble a:focus-visible {
  color: var(--hk-gold-bright);
}

.hk-chatbot__form {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  background: var(--hk-white);
  border-top: 1px solid var(--hk-card-border);
}

.hk-chatbot__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--hk-card-border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.875rem;
  background: var(--hk-cream);
  color: #2C2C2C;
}

.hk-chatbot__input:focus {
  outline: 2px solid var(--hk-gold-bright);
  outline-offset: 1px;
  border-color: var(--hk-gold);
}

.hk-chatbot__send {
  flex-shrink: 0;
  background: var(--hk-gold-bright);
  color: var(--hk-black);
  border: 2px solid var(--hk-gold-bright);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
}

.hk-chatbot__send:hover,
.hk-chatbot__send:focus-visible {
  background: #e0b020;
  border-color: #e0b020;
  outline: none;
}

.hk-chatbot__send:focus-visible {
  outline: 2px solid var(--hk-black);
  outline-offset: 2px;
}

.hk-chatbot__footnote {
  margin: 0;
  padding: 0.45rem 0.75rem 0.65rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--hk-muted);
  background: var(--hk-white);
  border-top: 1px solid rgba(229, 220, 200, 0.7);
}

.hk-chatbot__footnote a {
  color: #a67c00;
  font-weight: 600;
}

@media (max-width: 420px) {
  .hk-chatbot {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .hk-chatbot__panel {
    width: calc(100vw - 1.25rem);
    max-height: min(70vh, calc(100vh - 5.5rem));
  }

  .hk-chatbot__toggle-label {
    display: none;
  }

  .hk-chatbot__toggle {
    padding: 0.75rem;
    border-radius: 50%;
  }
}
