/* HudHud Cloud design system — shared by the site, console, docs and status pages. */
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --hoopoe: #F55905;
  --hoopoe-deep: #C94505;
  --hoopoe-wash: #FEEDE3;
  --entoto: #0E3A2F;
  --entoto-2: #15493B;
  --entoto-line: #2A5C4E;
  --ink: #18211E;
  --ink-2: #46524D;
  --ink-3: #6B7772;
  --mist: #F3F5F2;
  --paper: #FFFFFF;
  --line: #D9DFDA;
  --line-2: #E8ECE9;
  --up: #188A55;
  --up-wash: #E3F3EA;
  --warn: #B87800;
  --warn-wash: #FBF0D9;
  --down: #C23B2B;
  --down-wash: #FBE5E2;
  --muted-state: #8A9590;
  --font: 'Schibsted Grotesk', 'Noto Sans Ethiopic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 18px;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: clamp(2.6rem, 6.2vw, 4.75rem);
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.55; font-feature-settings: 'ss01'; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre, kbd { font-family: var(--mono); font-size: 0.875em; }
:focus-visible { outline: 3px solid var(--hoopoe); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--hoopoe); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
[lang="am"], .am { font-family: 'Noto Sans Ethiopic', var(--font); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--hoopoe); color: #fff; }
.btn-primary:hover { background: var(--hoopoe-deep); }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink-3); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-on-dark:hover { border-color: #fff; }
.btn-danger { background: transparent; color: var(--down); border-color: #EBC3BE; }
.btn-danger:hover { background: var(--down-wash); }
.btn-sm { padding: 7px 13px; font-size: 0.85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Inputs */
.field { display: grid; gap: 6px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-m); padding: 11px 13px; font-weight: 400; font-size: 1rem; color: var(--ink); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--entoto); box-shadow: 0 0 0 3px rgba(14,58,47,.14); }
.field textarea { min-height: 120px; resize: vertical; }
.hint { font-weight: 400; color: var(--ink-3); font-size: 0.8rem; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.up { background: var(--up-wash); color: var(--up); }
.pill.warn { background: var(--warn-wash); color: var(--warn); }
.pill.down { background: var(--down-wash); color: var(--down); }
.pill.idle { color: var(--muted-state); }

/* Code */
.code { background: var(--entoto); color: #E6F0EC; border-radius: var(--r-m); padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 0.84rem; line-height: 1.65; margin: 0; }
.code .c { color: #8FB3A6; }
.code .s { color: #FFC9A6; }
.code .k { color: #9EE6C4; }
.inline-code { background: var(--line-2); border-radius: 4px; padding: 1px 6px; }

/* Site header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(243,245,242,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; gap: 22px; font-size: 0.95rem; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.head-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.cart-btn { position: relative; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.75rem; }
.icon-btn.menu-toggle { display: none; }

/* Footer */
.site-foot { background: var(--entoto); color: #CFE0D8; padding: 56px 0 40px; margin-top: 96px; }
.site-foot .grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 0; }
.site-foot a { color: #CFE0D8; text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.site-foot .fine { border-top: 1px solid var(--entoto-line); margin-top: 40px; padding-top: 20px; font-size: 0.85rem; color: #9DBDB0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Drawers and modal */
.overlay { position: fixed; inset: 0; background: rgba(14,30,25,.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--paper); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(14,30,25,.18); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; background: rgba(14,30,25,.5); }
.modal.open { display: grid; }
.modal-card { width: min(440px, 100%); background: var(--paper); border-radius: var(--r-l); padding: 28px; display: grid; gap: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.icon-btn { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: var(--ink-2); }
.icon-btn:hover { background: var(--line-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-m); opacity: 0; pointer-events: none; transition: .2s; z-index: 80; max-width: calc(100% - 32px); font-size: 0.95rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .icon-btn.menu-toggle { display: grid; }
  .head-actions .hide-sm { display: none; }
  .site-foot .grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
