/* Origin header: one wordmark + one nav on ø.co, Plugs and Docs.
   Ø ORIGIN | Section        Origin  Plugs  Docs   [Connect]   (☰ on phones) */
.oh {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: rgba(0, 1, 4, .84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 236, 224, .08);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.oh--bare { position: absolute; left: 0; right: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
.oh--bare .oh__brand, .oh--bare .oh__sec { visibility: hidden; }

.oh__brand { flex: none; display: flex; align-items: center; gap: 10px; color: #f3ece0; text-decoration: none; }
.oh__brand:hover { color: #f3ece0; }
.oh__mark { font: 300 22px/1 "Jost", ui-sans-serif, system-ui, sans-serif; color: #e8c47e; }
.oh__word { font: 400 13px/1 "Jost", ui-sans-serif, system-ui, sans-serif; letter-spacing: .34em; }
.oh__sec { flex: none; padding-left: 12px; border-left: 1px solid rgba(243, 236, 224, .16); font: 400 14px/1 "Jost", ui-sans-serif, system-ui, sans-serif; color: #8a857b; }

/* The site links live in the ☰ menu on every screen; the inline nav stays in the markup for crawlers and screen readers' landmarks. */
.oh__nav { display: none; }
.oh__connect { margin-left: auto; }
.oh__nav a, .oh-line {
  position: relative; padding: 8px 12px; border-radius: 0; background: none;
  color: #a39d92; font-size: 14px; text-decoration: none; transition: color .2s ease;
}
/* The Origin line: a gold rule with a light in the middle, the same as "Let Origin guide you". */
.oh__nav a::after, .oh-line::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 126, .55) 22%, #fff6e0 50%, rgba(232, 196, 126, .55) 78%, transparent);
  opacity: 0; transform: scaleX(.2); transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.oh__nav a:hover, .oh-line:hover { color: #f3ece0; background: none; }
.oh__nav a:hover::after, .oh-line:hover::after { opacity: .7; transform: scaleX(1); }
.oh__nav a[aria-current="page"], .oh-line.is-on { color: #fff; background: none; }
.oh__nav a[aria-current="page"]::after, .oh-line.is-on::after { opacity: 1; transform: scaleX(1); }
.oh__nav a:focus-visible, .oh-line:focus-visible { outline: none; color: #fff; }
.oh__nav a:focus-visible::after, .oh-line:focus-visible::after { opacity: .7; transform: scaleX(1); }

/* Connect to DogeOS: white capsule with the Doge mark. The label (Connect / 0x…) is set by wallet.js. */
.oh__connect {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 18px 0 7px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 13.5px/1 "Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: -.005em;
  color: #0b0b0e; background: #fff;
  transition: background-color .15s ease, opacity .12s ease; -webkit-tap-highlight-color: transparent;
}
.oh__connect::before {
  content: ""; flex: none; width: 27px; height: 27px; border-radius: 50%;
  background: #fff url("/shared/assets/dogeos-96.webp") center / 112% no-repeat;
}
.oh__connect:hover { background: #f3ece0; }
.oh__connect:active { opacity: .8; }
.oh__connect:focus-visible { outline: 2px solid #e8c47e; outline-offset: 2px; }
.oh__connect.is-on { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 500; }
.oh__connect.is-on::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #2fb36b; }
.oh__connect[hidden] { display: inline-flex; visibility: visible; } /* always present; label updates when the SDK loads */

/* ☰ on every screen. No outline, no background, until it's open; then it becomes ✕. */
.oh__menu {
  position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; outline: none; cursor: pointer; background: transparent; color: #f3ece0;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, color .2s ease;
}
.oh__menu:hover, .oh__menu:focus-visible { color: #fbe3ae; outline: none; }
.oh__menu span {
  position: absolute; left: 11px; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, top .3s cubic-bezier(.2, .8, .2, 1);
}
.oh__menu span:nth-child(1) { top: 14px; }
.oh__menu span:nth-child(2) { top: 19px; }
.oh__menu span:nth-child(3) { top: 24px; }
.oh.is-open .oh__menu { background: rgba(232, 196, 126, .14); color: #fbe3ae; }
.oh.is-open .oh__menu span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.oh.is-open .oh__menu span:nth-child(2) { opacity: 0; }
.oh.is-open .oh__menu span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* The panel slides in from the right, below the header: full screen on phones, a drawer on wider screens. */
.oh__scrim {
  position: fixed; inset: calc(58px + env(safe-area-inset-top)) 0 0 0; z-index: 28;
  background: rgba(0, 1, 4, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.oh__scrim.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.oh__sheet {
  position: fixed; top: calc(58px + env(safe-area-inset-top)); right: 0; bottom: 0; z-index: 29;
  width: min(380px, 100vw); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 2px;
  padding: 22px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) 20px;
  background: #05070d; border-left: 1px solid rgba(243, 236, 224, .08); isolation: isolate; will-change: transform;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .9);
  transform: translateX(100%); visibility: hidden;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.oh__sheet.is-open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.oh__sheet a, .oh__sheet button {
  position: relative; display: block; width: 100%; text-align: left; padding: 14px 4px; border: 0; border-radius: 0;
  background: none; cursor: pointer; text-decoration: none;
  font: 300 24px/1.15 "Jost", ui-sans-serif, system-ui, sans-serif; color: #bcb5a9; transition: color .2s ease;
}
.oh__sheet a::after, .oh__sheet button::after {
  content: ""; position: absolute; left: 4px; bottom: 6px; width: 120px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(232, 196, 126, .55), #fff6e0 40%, rgba(232, 196, 126, .4) 75%, transparent);
  opacity: 0; transform: scaleX(.2); transform-origin: left; transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.oh__sheet a:hover, .oh__sheet button:hover, .oh__sheet a:focus-visible { color: #f3ece0; background: none; outline: none; }
.oh__sheet a:hover::after, .oh__sheet button:hover::after, .oh__sheet a:focus-visible::after { opacity: .7; transform: scaleX(1); }
.oh__sheet a[aria-current="page"] { color: #fff; }
.oh__sheet a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.oh__sheet hr { width: 100%; height: 1px; margin: 12px 0; border: 0; background: rgba(243, 236, 224, .08); }
html.oh-locked, html.oh-locked body { overflow: hidden; }

@media (max-width: 760px) {
  .oh__sheet { width: 100vw; border-left: 0; }
  .oh__scrim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oh__sheet, .oh__scrim, .oh__menu span, .oh__nav a::after, .oh-line::after { transition: none; }
}
@media (max-width: 380px) {
  .oh__word { letter-spacing: .26em; }
  .oh__sec { padding-left: 10px; }
}

/* Status line at the bottom of the ☰ menu */
.oh__status { margin: auto 0 0; padding: 18px 4px 0; border-top: 1px solid rgba(243, 236, 224, .08); font: 400 12.5px/1.5 "Inter", ui-sans-serif, system-ui, sans-serif; color: #8a857b; }
.oh__status i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: #8a857b; }
.oh__status i.is-ok { background: #2fb36b; box-shadow: 0 0 0 3px rgba(47, 179, 107, .18); }
.oh__status i.is-bad { background: #f1a08f; }
.oh__connect.is-busy { opacity: .75; cursor: progress; }
