/* oilapi.net: the shell every public page shares (tokens, header, market strip, drawer, section basics, footer). */
:root {
  --midnight: #0E1A2B;
  --deep: #1F3A5F;
  --champagne: #C8A96A;
  --brass: #B08D57;
  --slate: #8A97A8;
  --ivory: #F6F4EF;
  --page: #F6F4EF;
  --card: #FFFFFF;
  --ink: #1A2B42;
  --muted: #667386;
  --line: #E6E1D6;
  --up: #7FB59A;
  --dn: #D49A8C;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 400 14px/1.5 "Segoe UI", Roboto, Calibri, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--card); }
.hdr > .bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 30px; height: 68px; padding: 0 28px; background: var(--card); border-bottom: 1px solid var(--line); transition: height .2s; }
.hdr.compact > .bar { height: 56px; }
.brand { display: flex; align-items: center; flex: none; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; height: 100%; }
.menu > li { position: relative; display: flex; align-items: stretch; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: 6px; padding: 0 12px; font: inherit; color: var(--ink); background: none; border: 0;
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.menu > li > a.on { border-bottom-color: var(--champagne); }
.menu > li > button svg { transition: transform .15s; opacity: .55; }
.menu > li.open > button { border-bottom-color: var(--champagne); }
.menu > li.open > button svg { transform: rotate(180deg); }
.menu > li > a:hover, .menu > li > button:hover { color: var(--brass); }

.panel {
  position: absolute; top: 100%; left: -12px; display: none; width: 560px; padding: 18px; gap: 10px;
  grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 14px 32px rgba(14, 26, 43, .10);
}
.menu > li.open .panel { display: grid; }
.item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--r); min-height: 74px; }
.item:hover { background: var(--page); }
.ico { width: 34px; height: 34px; border-radius: var(--r); background: var(--page); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.item .t { display: block; color: var(--ink); white-space: nowrap; }
.item .d { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.panel .pfoot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 12px 12px 0; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.panel .pfoot a { color: var(--brass); white-space: nowrap; }

.acts { display: grid; grid-template-columns: 112px 132px; gap: 10px; flex: none; }
.btn { height: 38px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 13.5px; white-space: nowrap; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--slate); }
.btn.solid { background: var(--midnight); color: var(--ivory); border: 1px solid var(--midnight); }
.btn.solid:hover { background: var(--deep); }
.burger { display: none; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); align-items: center; justify-content: center; cursor: pointer; }
.burger i { display: block; width: 16px; height: 1.5px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }

/* Market strip */
.strip { height: 34px; overflow: hidden; background: var(--midnight); position: relative; }
.strip .run { position: absolute; top: 0; left: 0; height: 34px; display: flex; align-items: center; gap: 40px; padding-left: 28px; white-space: nowrap; animation: run 46s linear infinite; font-size: 12.5px; color: #D9DEE6; font-variant-numeric: tabular-nums; }
.strip:hover .run { animation-play-state: paused; }
.strip .k { color: var(--champagne); margin-right: 7px; letter-spacing: .05em; }
.strip .unit { color: var(--slate); margin-left: 4px; }
.up { color: var(--up); } .dn { color: var(--dn); }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hdr.compact .strip { height: 0; }

/* Phone drawer */
.drawer { display: none; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
.drawer.open { display: block; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; height: 50px; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details a { display: block; padding: 9px 0 9px 12px; color: var(--muted); }
.drawer .solo { display: flex; align-items: center; height: 50px; border-bottom: 1px solid var(--line); }
.drawer .acts { grid-template-columns: 1fr 1fr; margin-top: 16px; }

@media (max-width: 960px) {
  .menu, .hdr > .bar > .acts { display: none; }
  .burger { display: flex; }
  .hdr > .bar { padding: 0 16px; gap: 16px; }
}




/* ---------- Shared sections ---------- */
.sec { max-width: 1320px; margin: 0 auto; padding: 88px 28px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) 640px; gap: 48px; align-items: end; margin-bottom: 34px; }
.eyebrow { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--champagne); }
.sec-title { margin: 0; font-size: 38px; line-height: 1.12; font-weight: 300; color: var(--midnight); letter-spacing: -.015em; }
.sec-sub { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 560px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--card); border-top: 1px solid var(--line); }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 56px 28px 0; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-in .about { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 16px 0 18px; max-width: 320px; }
.foot-in .stat-ok { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.foot-in .stat-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3FA27A; }
.foot-in h3 { font-weight: 400; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 0 14px; }
.foot-in ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-in li a { font-size: 13.5px; color: var(--ink); }
.foot-in li a:hover { color: var(--brass); }
.foot-low { max-width: 1264px; margin: 40px auto 0; padding: 18px 0 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.foot-low nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-low a:hover { color: var(--brass); }

@media (max-width: 1180px) {
  .sec { padding: 64px 16px; }
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; padding: 40px 16px 0; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .foot-low { margin: 40px 16px 0; padding: 18px 0 24px; }
}
@media (max-width: 760px) {
  .sec-title { font-size: 30px; }
}
