/* ==========================================================================
   GoHelp Design System
   Trusted · Local · Human · Simple
   ========================================================================== */

:root {
  /* Color — bold/bright system: orange primary, green secondary, near-white background */
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-sunken: #F5F6F3;
  --line: #E8E9E4;
  --line-strong: #D7D9D1;

  --ink-900: #10140F;
  --ink-700: #333A30;
  --ink-500: #666C60;
  --ink-400: #8B9084;

  /* "teal" tokens now carry the brand GREEN (secondary) — kept the same variable
     names so every existing var(--teal-*) usage across the site repaints green
     without having to touch each file individually. */
  --teal-900: #06331F;
  --teal-700: #0E8A4C;
  --teal-600: #12A557;
  --teal-100: #DEF5E5;

  /* "terracotta" tokens carry the brand ORANGE (primary) */
  --terracotta-700: #D14E0E;
  --terracotta-600: #FF6A2B;
  --terracotta-100: #FFE8DA;

  --green-700: #0E8A4C;
  --green-100: #DEF5E5;
  --amber-700: #A66A00;
  --amber-100: #FBF0DC;
  --red-700: #B4232C;
  --red-100: #FBE7E6;

  /* Type */
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Scale (1.25 ratio, mobile baseline) */
  --text-xs: 12px;
  --text-sm: 13.5px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 34px;
  --text-3xl: 44px;

  /* Space (8px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Elevation — one soft shadow, used sparingly */
  --shadow-sm: 0 1px 2px rgba(18, 32, 29, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 32, 29, 0.08);
  --shadow-lg: 0 12px 32px rgba(18, 32, 29, 0.10);

  --container: 1120px;
  --container-narrow: 720px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-900);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4, .gh-display {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); font-weight: 700; }
h4 { font-size: var(--text-md); font-weight: 700; }
p { color: var(--ink-700); }
.gh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta-600);
}
.gh-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta-600); }
.gh-muted { color: var(--ink-500); }
.gh-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Pill-shaped trust badge — the rounded outlined chip pattern, distinct from .gh-eyebrow's
   plain small-caps section labels. */
.gh-trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 7px 16px; font-size: var(--text-xs); font-weight: 600; color: var(--ink-700);
  background: var(--surface);
}
.gh-trust-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-600); flex-shrink: 0; }

/* Bold stat card — icon badge + big number + short label, Pronto-style trust metrics. */
.gh-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.gh-stat-card { background: var(--teal-100); border-radius: var(--radius-lg); padding: var(--sp-5); }
.gh-stat-card .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--teal-700); margin-bottom: var(--sp-3); }
.gh-stat-card .num { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.gh-stat-card .num span { color: var(--teal-600); }
.gh-stat-card .label { font-size: var(--text-sm); color: var(--ink-700); margin-top: 4px; }
@media (max-width: 640px) { .gh-stat-grid { grid-template-columns: 1fr; } }

/* ---------- Layout ---------- */
.gh-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.gh-container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-5); }
.gh-section { padding: var(--sp-8) 0; }
@media (max-width: 640px) {
  .gh-container, .gh-container-narrow { padding: 0 var(--sp-4); }
  .gh-section { padding: var(--sp-6) 0; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}

/* ---------- Navigation ---------- */
.gh-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.gh-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.gh-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--terracotta-600);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.gh-logo span { color: var(--green-700); }
.gh-nav-links { display: flex; align-items: center; gap: var(--sp-5); list-style: none; }
.gh-nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 0.15s;
}
.gh-nav-links a:hover { color: var(--teal-700); }
.gh-nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.gh-nav-toggle { display: none; }
@media (max-width: 780px) {
  .gh-nav-inner { position: relative; }
  .gh-nav-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(18, 32, 29, 0.45);
    z-index: 95;
  }
  .gh-nav-backdrop.open { display: block; }
  .gh-nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 74px; right: 16px; left: 16px; width: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: var(--sp-2) 0; z-index: 110;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .gh-nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .gh-nav-links a { padding: 14px var(--sp-5); font-size: var(--text-md); font-weight: 700; display: block; }
  .gh-nav-links li:not(:last-child) a { border-bottom: 1px solid var(--line); }
  .gh-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); cursor: pointer; flex-shrink: 0; position: relative; z-index: 111;
  }
  .gh-nav-actions .btn-block-mobile-hide { display: none; }
}

/* Hamburger-only menu (pages whose desktop header has no link row): hidden above the mobile breakpoint. */
@media (min-width: 781px) { .gh-menu-only { display: none !important; } }
@media (max-width: 780px) { .gh-desktop-only { display: none !important; } }

/* Family menu greeting */
.gh-menu-welcome { padding: 14px var(--sp-5) 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.gh-menu-welcome span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-400); }
.gh-menu-welcome strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--terracotta-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--terracotta-600); outline-offset: 2px; }
.btn-primary { background: var(--terracotta-600); color: #fff; border-color: var(--terracotta-600); }
.btn-primary:hover { background: var(--terracotta-700); border-color: var(--terracotta-700); }
.btn-accent { background: var(--terracotta-600); color: #fff; border-color: var(--terracotta-600); }
.btn-accent:hover { background: var(--terracotta-700); border-color: var(--terracotta-700); }
.btn-secondary { background: var(--surface); color: var(--ink-900); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--teal-700); color: var(--teal-700); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: transparent; padding: 10px 14px; }
.btn-ghost:hover { background: var(--surface-sunken); }
.btn-danger-ghost { background: transparent; color: var(--red-700); border-color: var(--red-100); }
.btn-danger-ghost:hover { background: var(--red-100); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: var(--text-xs); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  animation: gh-spin 0.7s linear infinite;
}
.btn-secondary.btn-loading::after, .btn-ghost.btn-loading::after { border-color: rgba(18,32,29,0.25); border-top-color: var(--ink-900); }
@keyframes gh-spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-900); }
.field .hint { font-size: var(--text-xs); color: var(--ink-500); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink-900);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; font-family: var(--font-body); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.field.error input, .field.error select, .field.error textarea {
  border-color: var(--red-700);
}
.field .error-msg { font-size: var(--text-xs); color: var(--red-700); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: border-color 0.15s, box-shadow 0.15s; }
.card-hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

/* ---------- Badges (status ledger) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-neutral { background: var(--surface-sunken); color: var(--ink-500); }
.badge-live, .badge-success, .badge-verified, .badge-hired, .badge-active { background: var(--green-100); color: var(--green-700); }
.badge-pending, .badge-draft, .badge-shortlisted, .badge-interview { background: var(--amber-100); color: var(--amber-700); }
.badge-closed, .badge-rejected, .badge-suspended, .badge-expired, .badge-withdrawn, .badge-error { background: var(--red-100); color: var(--red-700); }
.badge-info { background: var(--teal-100); color: var(--teal-700); }

/* ---------- Category chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--teal-700); color: var(--teal-700); }
.chip.active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }

/* ---------- Alerts / toasts ---------- */
.alert {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  font-size: var(--text-sm);
}
.alert-success { background: var(--green-100); border-color: transparent; color: var(--green-700); }
.alert-error { background: var(--red-100); border-color: transparent; color: var(--red-700); }
.alert-info { background: var(--teal-100); border-color: transparent; color: var(--teal-900); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  min-width: 260px;
  max-width: calc(100vw - 32px);
  background: var(--ink-900);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 400;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.error { background: var(--red-700); }
.toast.success { background: var(--green-700); }

/* ---------- Empty / loading states ---------- */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  color: var(--ink-500);
}
.empty-state .icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto var(--sp-3); border-radius: 50%; background: var(--surface-sunken); color: var(--ink-400); }
.empty-state .icon svg { width: 20px; height: 20px; }
.empty-state h4 { color: var(--ink-700); margin-bottom: 6px; }
.empty-state a { color: var(--teal-700); font-weight: 700; text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--line) 37%, var(--surface-sunken) 63%);
  background-size: 400% 100%;
  animation: gh-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes gh-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Modal ---------- */
.gh-modal-backdrop {
  position: fixed; inset: 0; background: rgba(18, 32, 29, 0.45);
  display: none; align-items: center; justify-content: center; padding: var(--sp-4); z-index: 300;
}
.gh-modal-backdrop.show { display: flex; }
.gh-modal {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: min(480px, 100%); max-height: 86vh; overflow-y: auto;
}
.gh-modal-head { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.gh-modal-body { padding: var(--sp-5); }
.gh-modal-actions { display: flex; justify-content: flex-end; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.gh-footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding: var(--sp-8) 0 var(--sp-5); }
.gh-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: var(--text-sm); }
.gh-footer a:hover { color: #fff; }
.gh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(255,255,255,0.12); }
.gh-footer h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin-bottom: var(--sp-3); font-family: var(--font-mono); font-weight: 600; }
.gh-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gh-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-5); font-size: var(--text-xs); color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 700px) {
  .gh-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utility ---------- */
.gh-flex { display: flex; }
.gh-flex-col { display: flex; flex-direction: column; }
.gh-gap-2 { gap: var(--sp-2); }
.gh-gap-3 { gap: var(--sp-3); }
.gh-gap-4 { gap: var(--sp-4); }
.gh-items-center { align-items: center; }
.gh-justify-between { justify-content: space-between; }
.gh-wrap { flex-wrap: wrap; }
.gh-text-center { text-align: center; }
.gh-mt-2 { margin-top: var(--sp-2); }
.gh-mt-3 { margin-top: var(--sp-3); }
.gh-mt-4 { margin-top: var(--sp-4); }
.gh-mt-5 { margin-top: var(--sp-5); }
.gh-mt-6 { margin-top: var(--sp-6); }
.gh-mb-2 { margin-bottom: var(--sp-2); }
.gh-mb-3 { margin-bottom: var(--sp-3); }
.gh-mb-4 { margin-bottom: var(--sp-4); }
.gh-mb-5 { margin-bottom: var(--sp-5); }
.gh-mb-6 { margin-bottom: var(--sp-6); }
.hide-mobile { display: revert; }
@media (max-width: 640px) { .hide-mobile { display: none !important; } }
.hide-desktop { display: none !important; }
@media (max-width: 640px) { .hide-desktop { display: revert !important; } }

/* ---------- Animated Links ----------
   Ported manually from Skiper UI's "CssLink" (skiper40), a pure-CSS link
   hover-effect set, into vanilla CSS on GoHelp's own tokens (no React/Tailwind
   dependency added to the project). Attribution required by the free-tier license:
   Component by Skiper UI (gxuri) — https://skiper-ui.com — https://x.com/Gur__vi
   Original: https://skiper-ui.com/components/skiper-ui/skiper40
   ----------------------------------- */
.gh-link-anim { position: relative; display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.gh-link-anim .gh-link-arrow {
  width: 0.55em; height: 0.55em; margin-left: 0.35em;
  transform: translateY(4px); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.gh-link-anim:hover .gh-link-arrow { transform: translateY(0); opacity: 1; }

/* 1 — underline sweeps in left-to-right, hugging the baseline */
.gh-link-anim-sweep::before {
  content: ''; position: absolute; left: 0; bottom: -0.1em; width: 100%; height: 0.06em;
  background: currentColor; transform-origin: right; transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.gh-link-anim-sweep:hover::before { transform-origin: left; transform: scaleX(1); }

/* 2 — underline below the text, sweeps left-to-right */
.gh-link-anim-under { padding-bottom: 0.3em; }
.gh-link-anim-under::before {
  content: ''; position: absolute; left: 0; top: 1.5em; width: 100%; height: 0.06em;
  background: currentColor; transform-origin: right; transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.gh-link-anim-under:hover::before { transform-origin: left; transform: scaleX(1); }

/* 3 — underline below the text, sweeps right-to-left */
.gh-link-anim-under-rev { padding-bottom: 0.3em; }
.gh-link-anim-under-rev::before {
  content: ''; position: absolute; left: 0; top: 1.5em; width: 100%; height: 0.06em;
  background: currentColor; transform-origin: left; transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.gh-link-anim-under-rev:hover::before { transform-origin: right; transform: scaleX(1); }

/* 4 — underline grows outward from the center */
.gh-link-anim-center { padding-bottom: 0.3em; }
.gh-link-anim-center::before {
  content: ''; position: absolute; left: 0; top: 1.5em; width: 100%; height: 0.06em;
  background: currentColor; transform-origin: center; transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.gh-link-anim-center:hover::before { transform: scaleX(1); }

/* 5 — solid highlight bar reveals under the text, text stays legible via mix-blend-mode */
.gh-link-anim-highlight { padding: 0 0.4em; isolation: isolate; }
.gh-link-anim-highlight::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 0;
  background: var(--ink-900); transform-origin: center; z-index: -1;
  mix-blend-mode: difference;
  transition: height 0.3s cubic-bezier(0.4,0,0.2,1);
}
.gh-link-anim-highlight:hover::before { height: 1.4em; }

/* 6 — solid block wipes in from the left, full height, text inverts via mix-blend-mode */
.gh-link-anim-wipe { padding: 0 0.4em; isolation: isolate; }
.gh-link-anim-wipe::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: var(--ink-900); transform-origin: left; transform: scaleX(0); z-index: -1;
  mix-blend-mode: difference;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.gh-link-anim-wipe:hover::before { transform: scaleX(1); }

/* ---------- Account avatar / menu ---------- */
.gh-account { position: relative; }
.gh-avatar-btn { background: none; border: none; padding: 0; cursor: pointer; border-radius: 50%; }
.gh-avatar-btn:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }
.gh-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  border: 1.5px solid var(--line-strong); overflow: hidden; flex-shrink: 0;
}
.gh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gh-avatar-sm { width: 34px; height: 34px; font-size: var(--text-xs); }
.gh-account-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--sp-2) 0; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.gh-account-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.gh-account-menu-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.gh-account-name { font-weight: 700; font-size: var(--text-sm); color: var(--ink-900); line-height: 1.3; }
.gh-account-role { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); margin-top: 2px; }
.gh-account-menu-items { padding: var(--sp-2) 0; }
.gh-account-menu-items a {
  display: block; padding: 10px var(--sp-4); font-size: var(--text-sm); font-weight: 600;
  color: var(--ink-700); text-decoration: none; transition: background 0.12s;
}
.gh-account-menu-items a:hover { background: var(--surface-sunken); }
.gh-account-menu-logout { color: var(--red-700) !important; border-top: 1px solid var(--line); margin-top: var(--sp-1); }

@media (max-width: 480px) {
  .gh-account-menu { position: fixed; top: auto; bottom: 0; left: 0; right: 0; min-width: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .gh-account-menu.open { transform: translateY(0); }
}

/* ---------- Chatbot widget ---------- */
.gh-chat-root { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 200; }
.gh-chat-bubble {
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal-700); color: #fff;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform 0.15s, background 0.15s;
}
.gh-chat-bubble:hover { background: var(--teal-900); transform: translateY(-2px); }
.gh-chat-panel {
  position: absolute; right: 0; bottom: 70px; width: min(340px, calc(100vw - 32px));
  height: min(480px, calc(100vh - 140px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.98);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.gh-chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.gh-chat-head {
  background: var(--teal-900); color: #fff; padding: var(--sp-4); display: flex;
  justify-content: space-between; align-items: flex-start; flex-shrink: 0;
}
.gh-chat-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); }
.gh-chat-sub { font-size: var(--text-xs); color: rgba(255,255,255,0.7); margin-top: 2px; }
.gh-chat-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.gh-chat-body { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: 10px; }
.gh-chat-msg { max-width: 85%; padding: 10px 13px; border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.5; }
.gh-chat-msg-bot { background: var(--surface-sunken); color: var(--ink-900); align-self: flex-start; border-bottom-left-radius: 4px; }
.gh-chat-msg-user { background: var(--teal-700); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.gh-chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--sp-4) var(--sp-3); flex-shrink: 0; }
.gh-chat-chip {
  font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-700); cursor: pointer;
}
.gh-chat-chip:hover { border-color: var(--teal-600); color: var(--teal-700); }
.gh-chat-input-row { display: flex; gap: 8px; padding: var(--sp-3); border-top: 1px solid var(--line); flex-shrink: 0; }
.gh-chat-input-row input {
  flex: 1; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); padding: 9px 14px;
  font-size: var(--text-sm); font-family: var(--font-body); background: var(--surface);
}
.gh-chat-input-row input:focus { outline: none; border-color: var(--teal-600); }
.gh-chat-input-row button {
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal-700); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
@media (max-width: 480px) {
  .gh-chat-root { right: var(--sp-4); bottom: var(--sp-4); }
  .gh-chat-panel { position: fixed; right: 16px; left: 16px; bottom: 84px; width: auto; height: min(70vh, 520px); }
}
