/* Omnira documentation styles */
:root { --p: #4f46e5; --p-soft: #eef2ff; --d: #0f172a; --t: #334155; --m: #64748b; --b: #e2e8f0; --bg: #fff; --side: #f8fafc; --code: #0d1117; --ok: #047857; --warn: #b45309; }
@media (prefers-color-scheme: dark) { :root { --p: #818cf8; --p-soft: #1e1b4b; --d: #f1f5f9; --t: #cbd5e1; --m: #94a3b8; --b: #1e293b; --bg: #0b1120; --side: #0f172a; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--t); background: var(--bg); }
a { color: var(--p); } a:hover { text-decoration: none; }
h1, h2, h3, h4 { color: var(--d); line-height: 1.25; scroll-margin-top: 80px; }
h1 { font-size: 2.2rem; margin: 0.25rem 0 1rem; } h2 { font-size: 1.55rem; margin: 2.75rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--b); } h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; }
.anchor { margin-left: 0.4rem; opacity: 0; text-decoration: none; font-weight: 400; } h2:hover .anchor, h3:hover .anchor { opacity: 0.5; }
code { font: 0.87em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--p-soft); color: var(--d); padding: 0.1em 0.35em; border-radius: 4px; }
kbd { font: 0.85em ui-monospace, monospace; border: 1px solid var(--b); border-bottom-width: 2px; border-radius: 4px; padding: 0.05em 0.35em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--d); color: var(--bg); padding: 0.5rem 1rem; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; height: 60px; padding: 0 1.25rem; background: var(--bg); border-bottom: 1px solid var(--b); }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; color: var(--d); text-decoration: none; }
.brand span { font-weight: 500; font-size: 0.8rem; color: var(--m); border: 1px solid var(--b); padding: 0.05rem 0.5rem; border-radius: 99px; }
.menu-btn { display: none; border: 1px solid var(--b); background: none; color: var(--d); border-radius: 8px; width: 40px; height: 40px; font-size: 1.1rem; }
.search { position: relative; margin-left: auto; width: min(420px, 50vw); }
.search input { width: 100%; padding: 0.55rem 0.9rem; border: 1px solid var(--b); border-radius: 10px; background: var(--side); color: var(--d); font: inherit; }
#results { position: absolute; top: 110%; left: 0; right: 0; max-height: 60vh; overflow: auto; list-style: none; margin: 0; padding: 0.4rem; background: var(--bg); border: 1px solid var(--b); border-radius: 12px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.25); }
#results a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; text-decoration: none; color: var(--d); } #results a:hover, #results a:focus { background: var(--p-soft); }
#results small { display: block; color: var(--m); }
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; padding: 1.25rem 1rem 3rem; background: var(--side); border-right: 1px solid var(--b); font-size: 0.93rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.sidebar a { display: block; padding: 0.3rem 0.65rem; border-radius: 7px; color: var(--t); text-decoration: none; }
.sidebar a:hover { background: var(--p-soft); color: var(--d); } .sidebar a.is-active { background: var(--p); color: #fff; }
.nav-group { margin: 1.1rem 0 0.35rem 0.65rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m); }
.nav-home { font-weight: 700; }
.content { display: grid; grid-template-columns: minmax(0, 820px) 220px; gap: 3rem; padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 5rem; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 0.88rem; } .toc p { font-weight: 700; color: var(--d); margin: 0 0 0.5rem; } .toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--b); } .toc a { display: block; padding: 0.25rem 0.8rem; color: var(--m); text-decoration: none; } .toc a:hover { color: var(--p); }
.lead { font-size: 1.15rem; color: var(--t); }
.crumbs { font-size: 0.88rem; color: var(--m); margin: 0; }
.type { font-size: 0.9rem; vertical-align: middle; margin-left: 0.5rem; }
.callout, .note, .warn, .tip { border-left: 4px solid var(--p); background: var(--p-soft); padding: 0.85rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0; }
.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); } .tip { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.callout > :last-child, .note > :last-child, .warn > :last-child, .tip > :last-child { margin-bottom: 0; }
.code { margin: 1rem 0 1.5rem; border-radius: 12px; overflow: hidden; background: var(--code); border: 1px solid #1f2937; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0.9rem; background: #161b22; color: #8b949e; font: 0.78rem ui-monospace, monospace; }
.copy { border: 1px solid #30363d; background: #21262d; color: #c9d1d9; border-radius: 6px; padding: 0.2rem 0.6rem; font: inherit; cursor: pointer; } .copy.is-done { color: #7ee787; }
.code pre { margin: 0; padding: 1rem 1.1rem; overflow: auto; color: #c9d1d9; font: 0.86rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 560px; }
.code code { background: none; color: inherit; padding: 0; font: inherit; }
.t-key { color: #79c0ff; } .t-str { color: #a5d6ff; } .t-num, .t-kw { color: #ffa657; } .t-tag { color: #7ee787; } .t-attr { color: #d2a8ff; } .t-com { color: #8b949e; }
.table-wrap { overflow-x: auto; margin: 1rem 0; } table { width: 100%; border-collapse: collapse; font-size: 0.92rem; } th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--b); vertical-align: top; } th { background: var(--side); color: var(--d); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.card { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.1rem; border: 1px solid var(--b); border-radius: 12px; text-decoration: none; color: var(--t); transition: border-color 0.2s, transform 0.2s; } .card:hover { border-color: var(--p); transform: translateY(-2px); }
.card strong { color: var(--d); } .card code { align-self: flex-start; font-size: 0.75rem; } .card span { font-size: 0.88rem; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.path { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.4rem; border-radius: 14px; border: 2px solid var(--b); text-decoration: none; color: var(--t); } .path:hover { border-color: var(--p); }
.path span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--p); } .path strong { font-size: 1.2rem; color: var(--d); } .path em { font-style: normal; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin: 1rem 0; } .facts div { border: 1px solid var(--b); border-radius: 10px; padding: 0.7rem 0.9rem; } .facts span { display: block; font-size: 0.78rem; color: var(--m); } .facts strong { color: var(--d); }
.colors { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; } .sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; margin: 0 0.3rem; border: 1px solid var(--b); }
.shot { margin: 1.25rem 0; } .shot img { width: 100%; border-radius: 12px; border: 1px solid var(--b); } .shot figcaption { font-size: 0.82rem; color: var(--m); margin-top: 0.35rem; }
.steps { counter-reset: s; list-style: none; padding: 0; } .steps > li { counter-increment: s; position: relative; padding-left: 2.8rem; margin-bottom: 1.1rem; } .steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--p); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
details { border: 1px solid var(--b); border-radius: 10px; padding: 0.2rem 1rem; margin: 0.6rem 0; } details[open] { padding-bottom: 0.8rem; } summary { cursor: pointer; font-weight: 600; color: var(--d); padding: 0.6rem 0; }
.tips li, .uses li { margin-bottom: 0.4rem; }
@media (max-width: 1100px) { .content { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; } .menu-btn { display: block; }
  .sidebar { position: fixed; left: 0; top: 60px; width: 290px; z-index: 30; transform: translateX(-100%); transition: transform 0.25s; } .sidebar.is-open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .paths { grid-template-columns: 1fr; } .brand span { display: none; } .search { width: auto; flex: 1; }
}
@media print { .top, .sidebar, .toc { display: none; } .layout, .content { display: block; } }
