/* ObjectivEye wiki – colours and type of the ObjectivEye platform */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; font-display: swap; src: url(fonts/nunito-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-display: swap; src: url(fonts/nunito-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; font-display: swap; src: url(fonts/nunito-sans-latin-800-normal.woff2) format('woff2'); }

:root {
  --bg: #f9f9fb; --surface: #fff; --line: #d9dbe2; --line2: #e8e9ed; --soft: #f0f0f3;
  --text: #212529; --muted: #60646c; --blue: #1f6ab0; --navy: #00579b; --tint: #e6f0fb;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: #1e69b6; }
a:hover { color: var(--navy); }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line2); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand img { height: 28px; width: auto; display: block; }
.brand span { font: 500 15px Poppins, system-ui, sans-serif; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.menu { display: none; border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }
.search { position: relative; margin-left: auto; width: min(380px, 40vw); }
.search input { width: 100%; font: inherit; font-size: 14px; padding: 7px 12px; border: 1px solid #cdced6; border-radius: 6px; background: var(--bg); }
.search input:focus { outline: 2px solid #9db8d8; border-color: var(--navy); background: #fff; }
.results { position: absolute; right: 0; left: 0; top: calc(100% + 6px); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12); }
.results a { display: block; padding: 9px 12px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line2); font-size: 14px; }
.results a:first-child { border-top: 0; }
.results a:hover, .results a.sel { background: #f3f7fc; }
.results b { display: block; color: var(--blue); font-weight: 700; }
.results small { color: var(--muted); }
.results mark { background: #fff1d6; color: inherit; }
.results .none { padding: 12px; color: var(--muted); font-size: 14px; }

/* layout */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 230px; gap: 40px; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.side { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow: auto; padding: 24px 0 40px; display: flex; flex-direction: column; gap: 1px; }
.side a { text-decoration: none; color: #2c3846; font-size: 14px; line-height: 1.35; padding: 6px 10px; border-radius: 6px; }
.side a:hover { background: var(--tint); color: var(--navy); }
.side a.on { background: var(--tint); color: var(--navy); font-weight: 700; }
.side a.lvl0 { font-weight: 700; margin-bottom: 8px; }
.side a.lvl1 { font: 500 13px Poppins, system-ui, sans-serif; color: var(--blue); text-transform: none; margin-top: 14px; }
.side a.lvl2 { padding-left: 20px; }
.toc { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow: auto; padding: 32px 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.toc-h { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--muted); padding: 3px 0 3px 10px; border-left: 2px solid var(--line2); }
.toc a.d3 { padding-left: 22px; }
.toc a:hover, .toc a.on { color: var(--navy); border-left-color: var(--navy); }

/* article */
.page { min-width: 0; padding: 28px 0 60px; }
article { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 36px 44px; }
article h1, article h2, article h3, article h4 { font-family: Poppins, system-ui, sans-serif; font-weight: 500; line-height: 1.3; position: relative; }
article h1 { font-size: 30px; color: var(--blue); margin: 0 0 18px; }
article h2 { font-size: 22px; color: var(--blue); margin: 36px 0 12px; padding-top: 8px; border-top: 1px solid var(--line2); }
article h3 { font-size: 18px; color: #1c2024; margin: 26px 0 8px; }
article h1:first-child, article h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.anchor { position: absolute; left: -22px; color: #b9bbc6; text-decoration: none; opacity: 0; font-weight: 400; }
h1:hover .anchor, h2:hover .anchor, h3:hover .anchor { opacity: 1; }
article p, article li { max-width: 78ch; }
article img { max-width: 100%; height: auto; display: block; margin: 18px auto 6px; border: 1px solid var(--line2); border-radius: 8px; }
article img + em, article p > em:only-child { color: var(--muted); font-size: 14px; }
article blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--line); color: var(--muted); }
article code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
article pre { background: var(--soft); padding: 12px 14px; border-radius: 8px; overflow: auto; }
.tablewrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; }
article table { border-collapse: collapse; width: 100%; font-size: 14px; }
article th, article td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--line2); }
article thead th { background: #fcfcfd; border-top: 0; border-bottom: 1px solid var(--line); }
article th p, article td p { margin: 0 0 6px; max-width: none; }
article th p:last-child, article td p:last-child { margin-bottom: 0; }
/* single-cell boxes from the Word document (callouts) */
article table:has(colgroup col:only-child) thead th { background: #eaf3fe; font-weight: 400; border-bottom: 0; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.pager a { flex: 1; max-width: 48%; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; color: var(--blue); font-weight: 700; font-size: 15px; }
.pager a:hover { border-color: #9db8d8; }
.pager a span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.pager .next { text-align: right; margin-left: auto; }
.source { font-size: 13px; color: var(--muted); }
.home-link { white-space: nowrap; font-size: 14px; text-decoration: none; }
.continuous .layout { grid-template-columns: 280px minmax(0, 900px); max-width: 1280px; }
.report-section { scroll-margin-top: 76px; }
.report-section + .report-section { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 36px; }
.report-section [id] { scroll-margin-top: 76px; }

@media (max-width: 1180px) { .layout { grid-template-columns: 260px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) {
  .layout { display: block; padding: 0 16px; }
  .menu { display: inline-block; }
  .brand span { display: none; }
  .search { width: auto; flex: 1; }
  .side { display: none; position: fixed; inset: 60px 0 0 0; max-height: none; background: #fff; z-index: 9; padding: 16px; }
  body.nav-open .side { display: flex; }
  article { padding: 22px 18px; }
  .anchor { display: none; }
}
