/* The Opportunity Engine section's own parts: the sub-navigation and each inner page's layout.
   Builds on opportunity.css (tokens, buttons, app window). Everything is scoped under .oes. */

/* sub-navigation across the five pages */
.oes .oes-nav{position:sticky;top:68px;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.oes .oes-nav .w{display:flex;align-items:center;gap:28px;min-height:58px}
.oes .oes-nav .home{display:inline-flex;align-items:center;gap:8px;font:800 15px/1 'Manrope';color:var(--ink);text-decoration:none;white-space:nowrap;letter-spacing:-.01em}
.oes .oes-nav .home i{width:10px;height:10px;border-radius:3px;background:var(--amb);display:inline-block}
.oes .oes-nav .links{display:flex;gap:4px;flex:1;min-width:0}
.oes .oes-nav .links a{font:600 14px/1 'Inter';color:var(--ink2);text-decoration:none;padding:10px 12px;border-radius:8px;white-space:nowrap}
.oes .oes-nav .links a:hover{background:var(--soft);color:var(--ink)}
.oes .oes-nav .links a.on{background:var(--amb-lt);color:var(--amb)}
.oes .oes-nav .demo{font:700 14px/1 'Inter';color:#fff;background:var(--amb);text-decoration:none;padding:11px 16px;border-radius:9px;white-space:nowrap}

/* a top section shared by the inner pages: words left, a real screen right */
.oes .lib-top,.oes .wf-top,.oes .in-top{padding:64px 0 80px}
.oes .lib-top .w,.oes .wf-top .w,.oes .in-top .w{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center}
.oes .lib-shot .app{margin-right:-160px}

/* ---------- what it finds: the rule library */
.oes .lib{padding:24px 0 80px}
.oes .lib .w{display:grid;grid-template-columns:270px minmax(0,1fr);gap:56px;align-items:start}
.oes .lib-side{position:sticky;top:150px}
.oes .filter{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px}
.oes .filter button{font:600 13px/1 'Inter';padding:9px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink2);cursor:pointer}
.oes .filter button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.oes .kidx{display:grid;gap:2px;border-left:2px solid var(--line)}
.oes .kidx a{display:flex;gap:12px;align-items:baseline;padding:8px 14px;font:600 14px/1.3 'Inter';color:var(--ink2);text-decoration:none;margin-left:-2px;border-left:2px solid transparent}
.oes .kidx a:hover{border-left-color:var(--amb);color:var(--ink)}
.oes .kidx b{font:800 14px/1 'Manrope';color:var(--amb);min-width:14px}
.oes .kind{scroll-margin-top:150px;margin-bottom:44px}
.oes .kind .kh{display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:2px solid var(--ink);padding-bottom:10px}
.oes .kind h2{font-size:1.6rem;margin:0}
.oes .kind .ct{font:700 13px/1 'Inter';color:var(--muted)}
.oes .kind ol{list-style:none;margin:0;padding:0}
.oes .rule{display:grid;grid-template-columns:40px minmax(0,1fr) 170px;gap:18px;align-items:start;padding:18px 0;border-bottom:1px solid var(--line)}
.oes .rule[hidden],.oes .kind[hidden]{display:none}
.oes .rule .no{font:800 14px/1.6 'Manrope';color:var(--muted)}
.oes .rule h3{margin:0 0 4px;font-size:1.02rem}
.oes .rule p{margin:0;font-size:15px;line-height:1.6}
.oes .rule em{font-style:normal;font-weight:700;background:var(--amb-lt);color:var(--amb);border-radius:5px;padding:1px 7px;border:1px dashed #e9b97a;white-space:nowrap}
.oes .rule .rm{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.oes .rule small{font:600 12px/1.2 'Inter';color:var(--muted)}
.oes .libnotes{padding:0 0 20px}
.oes .libnotes .w{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.oes .nc{background:var(--soft);border-radius:14px;padding:28px}
.oes .nc p{margin:0}

/* ---------- where the figures come from */
.oes .srcs{padding:80px 0;background:var(--soft)}
.oes .srcg{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:28px}
.oes .srcc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px 28px}
.oes .srcc .k{display:inline-block;font:700 11.5px/1 'Inter';letter-spacing:.06em;text-transform:uppercase;color:var(--ok);background:var(--ok-lt);padding:6px 9px;border-radius:5px;margin-bottom:14px}
.oes .srcc p{margin:0;font-size:15.5px}
.oes .soon{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:22px;padding:20px 28px;border:1px dashed #d7d7d2;border-radius:14px;background:#fff}
.oes .soon h3{margin:0;font-size:1rem;color:var(--muted)}
.oes .soon .chips{display:flex;flex-wrap:wrap;gap:8px}
.oes .soon .chips span{font:600 13.5px/1 'Inter';color:var(--ink2);border:1px solid var(--line);border-radius:999px;padding:9px 13px}
.oes .order{padding:96px 0}
.oes .order .w{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:56px;align-items:center}
.oes .order .app{margin-right:-160px}
.oes .rank{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:0}
.oes .rank li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}
.oes .rank b{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--ink);color:#fff;font:800 16px/1 'Manrope'}
.oes .rank li:nth-child(2) b{background:#57534e}
.oes .rank li:nth-child(3) b{background:#a8a29e}
.oes .rank p{margin:0}
.oes .fresh{padding:90px 0;background:linear-gradient(180deg,#fffaf3,#fff)}
.oes .ruler{list-style:none;margin:40px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;position:relative}
.oes .ruler:before{content:"";position:absolute;left:0;right:0;top:9px;height:3px;background:linear-gradient(90deg,var(--ok) 0,var(--amb-br) 60%,var(--amb) 100%);border-radius:3px}
.oes .ruler li{position:relative;padding:34px 24px 0 0}
.oes .ruler .tick{position:absolute;top:0;left:0;width:21px;height:21px;border-radius:50%;background:#fff;border:3px solid var(--ink)}
.oes .ruler li:last-child .tick{border-color:var(--amb);background:var(--amb)}
.oes .ruler b{display:block;font:800 1.9rem/1 'Manrope';letter-spacing:-.03em;color:var(--ink);margin-bottom:10px}
.oes .ruler li:last-child b{color:var(--amb)}
.oes .ruler h3{margin:0 0 6px}
.oes .ruler p{font-size:15px;margin:0}
.oes .missing,.oes .imp{padding:96px 0}
.oes .missing .w,.oes .imp .w,.oes .in-list .w{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:56px;align-items:center}
.oes .imp .w{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
.oes .missing .app{margin-left:-120px}
.oes .ch{padding:90px 0;background:var(--soft)}
.oes .ch .w{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:64px;align-items:center}
.oes .meter{background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px}
.oes .meter .mt{font:700 13px/1 'Inter';letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:16px}
.oes .mbar{height:18px;border-radius:999px;background:var(--grey-lt);overflow:hidden;position:relative}
.oes .mbar i{display:block;height:100%;background:var(--amb);border-radius:999px}
.oes .mlab{display:flex;justify-content:space-between;gap:16px;margin-top:12px;font:600 13px/1.4 'Inter';color:var(--muted)}
.oes .mlab b{display:block;font:800 1.5rem/1.1 'Manrope';color:var(--ink)}
.oes .mlab span:last-child{text-align:right}
.oes .mrow{display:flex;justify-content:space-between;margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
.oes .mrow .dot{width:12px;height:12px;border-radius:50%;background:var(--amb-br);opacity:.85}

/* ---------- introductions */
.oes .flow{padding:90px 0;background:var(--soft)}
.oes .states{display:grid;grid-template-columns:minmax(0,4fr) 80px minmax(0,5fr);gap:0;align-items:center;margin-top:32px}
.oes .st{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 22px}
.oes .st p{margin:8px 0 0;font-size:15px}
.oes .st.open{border:2px solid var(--amb);padding:30px 28px}
.oes .sl{display:inline-block;font:800 14px/1 'Manrope';padding:8px 12px;border-radius:7px;background:var(--grey-lt);color:var(--ink2)}
.oes .st.open .sl{background:var(--amb-lt);color:var(--amb);font-size:16px}
.oes .sl.ok{background:var(--ok-lt);color:var(--ok)}
.oes .outs{display:grid;gap:12px}
.oes .arrows{align-self:stretch;position:relative}
.oes .arrows svg{position:absolute;inset:0;width:100%;height:100%}
.oes .arrows i{display:none}
.oes .gone{display:flex;gap:18px;align-items:center;margin-top:20px;padding:18px 22px;border:1px dashed #cfcfca;border-radius:14px;background:#fff}
.oes .gone .sl{white-space:nowrap}
.oes .gone p{margin:0;font-size:15px}
.oes .log{margin-top:20px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.oes .log .lh{display:flex;justify-content:space-between;gap:16px;padding:14px 22px;border-bottom:1px solid var(--line);font-size:14px}
.oes .log .lh span{font:600 12.5px/1.4 'Inter';color:var(--muted)}
.oes .log ul{list-style:none;margin:0;padding:0}
.oes .log li{display:grid;grid-template-columns:200px minmax(0,1fr) 180px;gap:16px;padding:12px 22px;border-top:1px solid var(--line);font-size:14.5px;color:var(--ink2)}
.oes .log li:first-child{border-top:0}
.oes .log time{color:var(--muted);font-variant-numeric:tabular-nums}
.oes .log em{font-style:normal;text-align:right;color:var(--ink)}
.oes .routes{padding:96px 0 40px}
.oes .rg{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:28px}
.oes .route{border:1px solid var(--line);border-radius:14px;padding:28px;border-top:5px solid var(--line)}
.oes .route.fa{border-top-color:var(--ok)}
.oes .route.law{border-top-color:var(--law)}
.oes .route.fund{border-top-color:var(--amb)}
.oes .route.firm{border-top-color:var(--ink)}
.oes .route h3{margin:14px 0 8px;font-size:1.3rem}
.oes .route p{font-size:15.5px}
.oes .route ul{margin:0;padding:14px 0 0;border-top:1px solid var(--line);list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.oes .route li{font:600 13px/1 'Inter';color:var(--ink2);background:var(--soft);border-radius:999px;padding:8px 11px}
.oes .in-list{padding:80px 0 20px}
.oes .in-list .app{margin-left:-120px}

/* ---------- security */
.oes .sec-top{padding:72px 0 24px;text-align:center}
.oes .sec-top .lede{margin:0 auto}
.oes .wall{padding:30px 0 70px}
.oes .walld{display:grid;grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr);align-items:stretch;max-width:980px;margin:0 auto}
.oes .firm{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 30px 60px -40px rgba(28,25,23,.35)}
.oes .firm .fh{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 20px;background:#f8f8f7;border-bottom:1px solid var(--line)}
.oes .firm .fh b{font:800 15px/1.2 'Manrope'}
.oes .firm .fh span{font:600 12px/1.2 'Inter';color:var(--ok);background:var(--ok-lt);padding:5px 8px;border-radius:5px;white-space:nowrap}
.oes .cr{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-top:1px solid var(--line);font-size:15px}
.oes .cr:first-of-type{border-top:0}
.oes .cr i{width:70px;height:8px;border-radius:4px;background:var(--grey-lt)}
.oes .divide{position:relative;display:flex;align-items:center;justify-content:center}
.oes .divide:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:6px;margin-left:-3px;border-radius:3px;
  background:repeating-linear-gradient(180deg,var(--amb) 0 14px,transparent 14px 22px)}
.oes .divide span{position:relative;background:#fff;border:2px solid var(--amb);color:var(--amb);border-radius:10px;padding:10px;font:700 12.5px/1.35 'Inter';text-align:center;max-width:132px}
.oes .wall .note{text-align:center}
.oes .facts{padding:10px 0 20px}
.oes .fg{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.oes .fact{background:var(--soft);border-radius:14px;padding:30px;border-left:4px solid var(--amb)}
.oes .fact h3{font-size:1.3rem}
.oes .fact p{margin:0}

@media (max-width:1100px){
  .oes .oes-nav .links a{padding:10px 8px;font-size:13.5px}
  .oes .oes-nav .w{gap:14px}
}
@media (max-width:980px){
  .oes .oes-nav .w{flex-wrap:wrap;gap:0;padding-top:10px}
  .oes .oes-nav .home{flex:1;padding:6px 0}
  .oes .oes-nav .demo{padding:9px 12px;font-size:13px}
  .oes .oes-nav .links{order:3;flex-basis:100%;overflow-x:auto;padding:8px 0;scrollbar-width:none}
  .oes .oes-nav .links::-webkit-scrollbar{display:none}
  .oes .oes-nav .links{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
  .oes .lib-top .w,.oes .wf-top .w,.oes .in-top .w,.oes .lib .w,.oes .order .w,.oes .missing .w,.oes .imp .w,.oes .ch .w,.oes .in-list .w{grid-template-columns:1fr;gap:32px}
  .oes .lib-shot .app,.oes .order .app,.oes .missing .app,.oes .in-list .app{margin:0}
  .oes .lib-top,.oes .wf-top,.oes .in-top{padding:44px 0 48px}
  .oes .lib-side{position:static}
  .oes .kidx{display:none}
  .oes .rule{grid-template-columns:30px minmax(0,1fr)}
  .oes .rule .rm{grid-column:2;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px}
  .oes .rule em{white-space:normal}
  .oes .libnotes .w,.oes .srcg,.oes .rg,.oes .fg{grid-template-columns:1fr}
  .oes .srcs,.oes .order,.oes .fresh,.oes .missing,.oes .imp,.oes .ch,.oes .flow,.oes .routes,.oes .in-list{padding:56px 0}
  .oes .missing .w>div:first-child,.oes .in-list .w>div:first-child{order:2}
  .oes .ruler{grid-template-columns:1fr;gap:26px;padding-left:34px}
  .oes .ruler:before{left:9px;right:auto;top:0;bottom:0;width:3px;height:auto;background:linear-gradient(180deg,var(--ok),var(--amb))}
  .oes .ruler li{padding:0}
  .oes .ruler .tick{left:-34px}
  .oes .states{grid-template-columns:1fr;gap:12px}
  .oes .arrows{height:28px}
  .oes .arrows svg{display:none}
  .oes .arrows i{display:block;position:absolute;left:50%;top:0;bottom:0;width:2px;background:var(--ink)}
  .oes .gone{flex-direction:column;align-items:flex-start}
  .oes .log li{grid-template-columns:1fr;gap:2px}
  .oes .log em{text-align:left}
  .oes .walld{grid-template-columns:1fr;gap:0}
  .oes .divide{padding:30px 0}
  .oes .divide:before{left:-16px;right:-16px;top:50%;bottom:auto;width:auto;height:6px;margin:-3px 0 0;
    background:repeating-linear-gradient(90deg,var(--amb) 0 14px,transparent 14px 22px)}
  .oes .divide span{max-width:none}
  .oes .sec-top{text-align:left;padding:44px 0 16px}
}
