/* FARM-MMO žinynas (v8) – dokumentacijos svetainė */
:root { --bg: #1b1b1f; --bg-2: #161618; --panel: #202127; --panel-2: #2b2c33; --line: #2e2f36; --line-2: #3c3d45; --text: #dfdfd6; --muted: #98989f; --brand: #f0b429; --info-bg: #25262b; --tip-bg: #3a331f; --tip-line: #6b5a23; --warn-bg: #3b2322; --warn-line: #7a3431; }
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body.wk { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 Inter, system-ui, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.ic, .ic { width: 1em; height: 1em; }
.wk-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 24px; background: rgba(27, 27, 31, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.wk-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; white-space: nowrap; }
.wk-logo:hover { text-decoration: none; }
.wk-search { position: relative; flex: 0 1 320px; margin: 0 0 0 40px; }
.wk-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.wk-search input { width: 100%; padding: 8px 12px 8px 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; }
.wk-links { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.wk-play { padding: 7px 14px; border-radius: 8px; background: var(--brand); color: #1b1b1f; font-weight: 800; font-size: 14px; }
.wk-play:hover { text-decoration: none; filter: brightness(1.08); }
.wk-lang { position: relative; }
.wk-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.wk-lang summary::-webkit-details-marker { display: none; }
.wk-lang summary svg { width: 16px; height: 16px; }
.wk-lang .lang-menu { position: absolute; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; min-width: 170px; padding: 6px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); }
.wk-lang .lang-menu a { display: flex; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--text); font-size: 14px; }
.wk-lang .lang-menu a:hover, .wk-lang .lang-menu a.on { background: var(--panel-2); text-decoration: none; }
.wk-lang .lang-menu i { font-style: normal; color: var(--muted); width: 22px; }
.wk-burger { display: none; border: 0; background: none; color: var(--text); cursor: pointer; }
.wk-burger svg { width: 22px; height: 22px; }
.wk-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.wk-side { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 22px 20px 40px 28px; background: var(--bg-2); border-right: 1px solid var(--line); }
.wk-side a { display: block; padding: 4px 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.wk-side a:hover { color: var(--text); text-decoration: none; }
.wk-side a.on { color: var(--brand); font-weight: 700; }
.wk-home { margin-bottom: 10px; }
.wk-group { padding: 12px 0; border-top: 1px solid var(--line); }
.wk-group summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.wk-group summary::-webkit-details-marker { display: none; }
.wk-group summary svg { width: 13px; height: 13px; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.wk-group[open] summary svg { transform: rotate(-90deg); }
.wk-main { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 48px; padding: 36px 48px 60px; justify-content: center; }
.wk-doc h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.25; letter-spacing: -.01em; color: #fff; }
.wk-doc h2 { position: relative; margin: 42px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 22px; color: #fff; }
.wk-doc h3 { position: relative; margin: 28px 0 10px; font-size: 18px; color: #fff; }
.wk-anchor { margin-left: 8px; opacity: 0; color: var(--brand); font-weight: 400; }
.wk-doc h2:hover .wk-anchor, .wk-doc h3:hover .wk-anchor { opacity: 1; }
.wk-doc p { margin: 14px 0; }
.wk-doc ul { margin: 14px 0; padding-left: 22px; }
.wk-doc li { margin: 6px 0; }
.wk-doc b { color: #fff; }
.wk-crumb { margin: 0 0 6px !important; color: var(--brand); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.wk-call { margin: 18px 0; padding: 14px 18px; border-radius: 10px; background: var(--info-bg); border: 1px solid var(--line); }
.wk-call b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.wk-call p { margin: 6px 0 0; font-size: 14px; }
.wk-call.is-tip { background: var(--tip-bg); border-color: var(--tip-line); }
.wk-call.is-tip b { color: var(--brand); }
.wk-call.is-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.wk-call.is-warn b { color: #ff8a80; }
.wk-chip { display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 6px; background: var(--panel-2); color: var(--brand); font-size: 14px; font-weight: 600; vertical-align: 1px; }
.wk-chip svg, .wk-chip .ic { width: 15px; height: 15px; }
.wk-tbl { margin: 18px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.wk-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wk-tbl th { padding: 10px 14px; text-align: left; background: var(--panel); color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.wk-tbl td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.wk-tbl tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.wk-tbl em { font-style: normal; color: var(--muted); font-size: 12px; }
.wk-tbl td svg.ic, .wk-tbl td .ic { width: 18px; height: 18px; vertical-align: -4px; }
.wk-name { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; white-space: nowrap; }
a.wk-name { color: var(--brand); }
.wk-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--panel-2); flex: none; }
.wk-ic svg, .wk-ic .ic { width: 20px !important; height: 20px !important; }
.wk-toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px solid var(--line); font-size: 13px; }
.wk-toc b { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.wk-toc a { color: var(--muted); }
.wk-toc a:hover { color: var(--text); text-decoration: none; }
.wk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.wk-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.wk-card:hover { border-color: var(--brand); text-decoration: none; }
.wk-card b { font-size: 16px; }
.wk-card em { font-style: normal; color: var(--muted); font-size: 14px; }
.wk-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.wk-pn a { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--brand); }
.wk-pn a:hover { border-color: var(--brand); text-decoration: none; }
.wk-pn a.is-next { text-align: right; }
.wk-pn small { color: var(--muted); font-size: 12px; }
.wk-results { list-style: none; padding: 0 !important; }
.wk-results a { display: flex; justify-content: space-between; padding: 12px 16px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.wk-results span { color: var(--muted); font-size: 13px; }
.wk-foot { display: flex; gap: 18px; justify-content: center; padding: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.wk-foot a { color: var(--muted); }
@media (max-width: 1180px) { .wk-main { grid-template-columns: minmax(0, 1fr); } .wk-toc { display: none; } }
@media (max-width: 860px) {
  .wk-burger { display: block; }
  .wk-search { margin: 0; }
  .wk-logo b { display: none; }
  .wk-shell { grid-template-columns: 1fr; }
  .wk-side { position: fixed; top: 64px; left: 0; z-index: 25; width: 290px; transform: translateX(-100%); transition: transform .2s; }
  body.wk-open .wk-side { transform: none; }
  .wk-main { padding: 24px 16px 40px; }
  .wk-play { display: none; }
}
