/* Shared styles for YEkos inner pages (vault app, how it works, security, docs, legal). */
:root {
  --fg: #e9e6df;
  --dim: #8d8a83;
  --faint: #5b5953;
  --line: rgba(233, 230, 223, 0.22);
  --line2: rgba(233, 230, 223, 0.1);
  --bg: #050505;
  --panel: #0b0b0a;
  --ok: #b9d8a6;
  --warn: #e8c37a;
  --bad: #e89a8a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; }
body { font-family: "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; line-height: 1.55; }
a { color: inherit; }
.mono, code, pre, kbd { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.mono { letter-spacing: .06em; }
code { font-size: .88em; background: rgba(255,255,255,.05); padding: 1px 5px; border: 1px solid var(--line2); }
pre { background: var(--panel); border: 1px dashed var(--line); padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; margin: 12px 0 18px; }
pre code { background: none; border: 0; padding: 0; }
::selection { background: rgba(233,230,223,.25); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; background: rgba(5,5,5,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); }
.nav { display: flex; align-items: stretch; border: 1px dashed var(--line); height: 40px; font-size: 11px; text-transform: uppercase; }
.nav .logo { width: 40px; display: grid; place-items: center; border-right: 1px dashed var(--line); text-decoration: none; }
.nav a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; opacity: .75; transition: opacity .2s; position: relative; }
.nav a:hover { opacity: 1; }
.nav a.on { opacity: 1; }
.nav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 1px; background: var(--fg); }
.right { display: flex; gap: 14px; align-items: center; font-size: 11px; text-transform: uppercase; }
.right a { text-decoration: none; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; transition: background .2s; background: none; color: inherit; font: inherit; cursor: pointer; text-transform: uppercase; letter-spacing: .06em; }
.pill:hover { background: rgba(255,255,255,.06); }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- page layout */
.page { max-width: 1080px; margin: 0 auto; padding: 56px 26px 80px; }
.eyebrow { font-size: 11px; text-transform: uppercase; color: var(--dim); letter-spacing: .12em; }
h1 { font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.01em; margin: 14px 0 18px; text-transform: uppercase; }
h2 { font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; margin: 56px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
h3 { font-weight: 500; font-size: 15px; margin: 22px 0 6px; }
p { color: #cfccc5; margin: 8px 0; max-width: 72ch; }
.lead { font-size: 18px; color: var(--fg); max-width: 62ch; }
ul.list, ol.list { margin: 8px 0 8px 20px; color: #cfccc5; max-width: 72ch; }
ul.list li, ol.list li { margin: 5px 0; }
.dim { color: var(--dim); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.box { border: 1px dashed var(--line); padding: 18px; background: var(--panel); }
.box .n { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--dim); }
.box h3 { margin-top: 8px; text-transform: uppercase; font-weight: 400; font-size: 14px; letter-spacing: .02em; }
.box p { font-size: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0 18px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
th { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: 11px; text-transform: uppercase; color: var(--dim); letter-spacing: .06em; }
td code { white-space: nowrap; }

.notice { border: 1px solid rgba(232,195,122,.35); background: rgba(232,195,122,.06); padding: 12px 16px; font-size: 13.5px; color: #eadfc6; }
.notice b { color: var(--warn); font-weight: 500; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.toc a { font-size: 11px; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; text-decoration: none; letter-spacing: .06em; }
.toc a:hover { background: rgba(255,255,255,.06); }

.foot { border-top: 1px solid var(--line2); padding: 22px 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; text-transform: uppercase; color: var(--dim); }
.foot a { text-decoration: none; margin-left: 16px; }
.foot a:hover { color: var(--fg); }

.next { display: flex; justify-content: space-between; gap: 14px; margin-top: 60px; }
.next a { flex: 1; border: 1px dashed var(--line); padding: 16px 18px; text-decoration: none; transition: background .2s; }
.next a:hover { background: rgba(255,255,255,.04); }
.next a span { display: block; font-size: 11px; text-transform: uppercase; color: var(--dim); letter-spacing: .08em; }
.next a.r { text-align: right; }

/* stone coin behind inner pages (js/bg.js) */
.bgcoin { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.8s ease; pointer-events: none; }
.bgcoin.on { opacity: 1; }
.bgshade { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,5,.82) 0%, rgba(5,5,5,.55) 40%, rgba(5,5,5,.08) 72%, rgba(5,5,5,0) 100%),
    linear-gradient(180deg, rgba(5,5,5,.4) 0%, rgba(5,5,5,0) 22%); }
.box, pre { background: rgba(11,11,10,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

@media (max-width: 860px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .nav { overflow-x: auto; max-width: calc(100vw - 140px); scrollbar-width: none; }
  .nav a { padding: 0 9px; white-space: nowrap; }
  .top { padding: 14px 16px; }
  .page { padding: 36px 18px 60px; }
  .right .gh { display: none; }
  .next { flex-direction: column; }
  .bgshade { background: linear-gradient(180deg, rgba(5,5,5,.82) 0%, rgba(5,5,5,.6) 55%, rgba(5,5,5,.15) 100%); }
  table { display: block; overflow-x: auto; }
  td code { white-space: normal; word-break: break-word; }
}
