/* Obsolens kennisbank: same visual language as the portal. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url(space-grotesk-latin-600-normal.woff2) format("woff2"); }
:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #eef2f6; --bg: #f5f7fa; --card: #fff;
  --nav: #0d1726; --accent: #2459e0; --accent-ink: #1a43ad; --accent-bg: #eef3ff;
  --warn: #6b4500; --warn-bg: #fff7db; --tip-bg: #ecfaf1; --tip: #14532d;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-family: "Space Grotesk", Inter, sans-serif; font-size: 34px; font-weight: 600; margin: 0 0 8px; }
h2 { font-size: 22px; font-weight: 600; margin: 36px 0 10px; padding-top: 8px; }
h3 { font-size: 17px; font-weight: 600; margin: 26px 0 6px; }
h2 .anchor, h3 .anchor { opacity: 0; margin-left: -1em; padding-right: .3em; color: var(--muted); text-decoration: none; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
pre { background: var(--nav); color: #e6edf7; padding: 14px 16px; border-radius: 10px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; font-size: 13.5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 12px 28px; background: var(--nav); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 19px; white-space: nowrap; }
.brand em { font-style: normal; color: #9fb7e8; font-weight: 600; }
.brand:hover { text-decoration: none; color: #fff; }
.toportal { color: #c9d4e3; font-size: 14px; white-space: nowrap; margin-left: auto; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; height: 40px; border-radius: 9px; border: 1px solid #2a3a55; background: #18263b; color: #fff; padding: 0 14px; font: inherit; font-size: 15px; }
.search input::placeholder { color: #8b9ab0; }
.search input:focus { outline: none; border-color: #7fa6ff; box-shadow: 0 0 0 3px rgba(127, 166, 255, .25); }
.results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .2); max-height: 70vh; overflow-y: auto; padding: 6px; }
.results a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--ink); }
.results a:hover, .results a.on { background: var(--accent-bg); text-decoration: none; }
.results a small { display: block; color: var(--muted); font-size: 13px; }
.results .none { padding: 12px; color: var(--muted); font-size: 14px; }

.layout { display: grid; grid-template-columns: 260px minmax(0, 760px) 220px; gap: 40px; max-width: 1360px; margin: 0 auto; padding: 32px 28px 64px; }
.side { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 14.5px; }
.navsec { margin-bottom: 6px; }
.navsec summary { cursor: pointer; font-weight: 600; padding: 6px 8px; border-radius: 7px; list-style: none; }
.navsec summary::-webkit-details-marker { display: none; }
.navsec summary::before { content: "›"; display: inline-block; width: 14px; color: var(--muted); transition: transform .15s; }
.navsec[open] summary::before { transform: rotate(90deg); }
.navsec ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 14px; }
.navsec li a { display: block; padding: 4px 10px; border-radius: 6px; color: var(--ink-2); line-height: 1.4; }
.navsec li a:hover { background: #eaeff6; text-decoration: none; }
.navsec li a.on { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.content { min-width: 0; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.lead { font-size: 18px; color: var(--ink-2); margin: 4px 0 20px; }
article p, article li { color: var(--ink-2); }
article ol, article ul { padding-left: 24px; }
article li { margin: 4px 0; }
article strong { color: var(--ink); }
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: #f8fafc; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.callout { border-radius: 10px; padding: 12px 16px; margin: 16px 0; background: var(--accent-bg); border: 1px solid #d6e2ff; }
.callout p { margin: 0; color: #1e3a8a; }
.callout.warn { background: var(--warn-bg); border-color: #f7e2a3; }
.callout.warn p { color: var(--warn); }
.callout.tip { background: var(--tip-bg); border-color: #c6ecd4; }
.callout.tip p { color: var(--tip); }
.toc { position: sticky; top: 80px; align-self: start; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.toc .tocl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.toc a { color: var(--ink-2); line-height: 1.4; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.pager a { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: #fff; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: #b8c6e8; text-decoration: none; }
.pager a span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.pager .next { text-align: right; }
.hero { padding: 8px 0 18px; }
.hero h1 { font-size: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
a.card:hover { border-color: #b8c6e8; text-decoration: none; }
.card span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.cards.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards.big .h { font-size: 18px; font-weight: 600; color: var(--ink); }
.card ul { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; }
.card .more { font-size: 14px; margin-top: 6px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 28px 40px; border-top: 1px solid var(--line); }
.layout:has(.hero) { grid-template-columns: 260px minmax(0, 1fr); }
.layout:has(.hero) .toc { display: none; }
@media (max-width: 1100px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; padding: 20px 16px 48px; gap: 16px; }
  .side { position: static; max-height: none; }
  .top { flex-wrap: wrap; padding: 10px 16px; }
  .toportal { display: none; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  h1 { font-size: 28px; }
}
