/* Tesoro Helpdesk — shared branding (KB-aligned) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700-latin.woff2') format('woff2');
}

:root {
  --tesoro-dark-blue: #001b3f;
  --tesoro-light-blue: #37b6ff;
  --tesoro-orange: #f08300;
  --tesoro-purple: #951a81;
  --tesoro-kb-blue: #265cb6;

  --brand-dark-blue: var(--tesoro-dark-blue);
  --brand-light-blue: var(--tesoro-light-blue);
  --brand-orange: var(--tesoro-orange);
  --brand-purple: var(--tesoro-purple);
  --brand-blue: var(--tesoro-kb-blue);

  /* Legacy aliases used in page styles */
  --brand-purple-dark: #001529;
  --brand-purple-soft: #eef6fc;
  --brand-purple-ring: rgba(55, 182, 255, 0.22);

  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Customer KB header (matches Starlight Header.astro) ── */

.hd-kb-header {
  background: linear-gradient(135deg, #0a1f44 0%, #132d5e 40%, #265cb6 100%);
  color: #fff;
  padding: 0 1.25rem;
}

.hd-kb-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.625rem 0;
}

.hd-kb-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.hd-kb-header__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.hd-kb-header__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hd-kb-header__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  background: rgba(240, 131, 0, 0.18);
  border: 1px solid rgba(240, 131, 0, 0.45);
  border-radius: 999px;
  color: #ffd9a8;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.hd-kb-header__pill:hover,
.hd-kb-header__pill--active {
  background: rgba(240, 131, 0, 0.28);
  border-color: rgba(240, 131, 0, 0.7);
  color: #fff;
}

.hd-kb-header__pill svg {
  flex-shrink: 0;
}

.hd-kb-header__link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.hd-kb-header__link:hover {
  color: #fff;
}

.hd-kb-header__dev {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--tesoro-orange);
  color: #fff;
}

.hd-kb-header .lang-switch {
  display: inline-flex;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
}

.hd-kb-header .lang-switch a {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hd-kb-header .lang-switch a:hover {
  color: #fff;
}

.hd-kb-header .lang-switch a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hd-customer-body {
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 600px at 88% -10%, rgba(38, 92, 182, 0.07), transparent 60%),
    radial-gradient(900px 500px at -8% 8%, rgba(55, 182, 255, 0.05), transparent 60%),
    #f5f8fc;
}

.hd-page-intro {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0;
}

.hd-page-intro .back {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hd-page-intro .back:hover {
  color: var(--tesoro-dark-blue);
}

/* ── Agent admin header (same gradient + white logo) ── */

.hd-admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #0a1f44 0%, #132d5e 40%, #265cb6 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hd-admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.5rem 0;
}

.hd-admin-header__left,
.hd-admin-header__right {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hd-admin-header__logo img {
  height: 28px;
  width: auto;
  display: block;
}

.hd-admin-header__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.95);
}

.hd-admin-header a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
}

.hd-admin-header a:hover {
  color: #fff;
}

.hd-admin-header .badge {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(240, 131, 0, 0.18);
  color: #ffbe6b;
  border: 1px solid rgba(240, 131, 0, 0.35);
}

.hd-admin-header .who {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.hd-admin-header .admin-lang-switch {
  display: inline-flex;
  gap: 0.25rem;
}

.hd-admin-header .admin-lang-switch a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  text-transform: uppercase;
}

.hd-admin-header .admin-lang-switch a:hover,
.hd-admin-header .admin-lang-switch a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hd-admin-body {
  -webkit-font-smoothing: antialiased;
  background: #f0f4f9;
}