/* Vadovas (/vadovas/) – guide pages rendered from data/guide.json. Builds on site.css (tokens, topbar, panel, sky). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout, side tree, search, table of contents: see "navigation (2026-12-03)" at the end */

/* page */
.g-page { padding: 22px clamp(14px, 3vw, 32px) 30px; }
.g-loading { color: var(--muted); }
.g-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.g-head img { width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.45)); flex: none; object-fit: cover; object-position: top; }
.g-head h1 { margin: 0; font: 600 clamp(28px, 4vw, 40px)/1.1 var(--font-head); color: #fff; text-shadow: 3px 3px 0 var(--mc-shadow); }
.g-head .lead { margin: 4px 0 0; }
.g-sec { margin-top: 30px; }
.g-sec h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid rgba(255,255,255,.12);
  font: 600 clamp(22px, 3vw, 27px)/1.2 var(--font-head); color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); }
.g-sec h2 .anchor { color: var(--muted); text-decoration: none; opacity: 0; font-size: .8em; }
.g-sec h2:hover .anchor, .g-sec h2 .anchor:focus { opacity: 1; }
.g-sec.flash, .rc.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px #ffff55; } 100% { box-shadow: 0 0 0 3px transparent; } }
.g-body > p, .g-body li { max-width: 86ch; }
.g-body p { margin: 0 0 12px; }
.g-body ul { margin: 0 0 12px; padding-left: 22px; }
.g-body ul li { margin: 3px 0; }
.g-body h4 { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font: 600 20px var(--font-head); color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.g-body a { color: #9fd3ff; }
.g-body b, .g-body strong { color: #fff; }
.g-source { margin: 16px 2px 0; font-size: 14px; color: #e0e3ee; text-shadow: 1px 1px 0 #000; }

/* colours from MiniMessage */
.hl { color: #ffd84a; } .aq { color: #6fe7ff; } .ok { color: var(--green); } .bad { color: var(--red); } .mag { color: #ff8cff; }
.dim { color: #9a9cab; } .wh { color: #fff; }

/* ------------------------------------------------------------------ items, tags, keys */
.ico { width: 32px; height: 32px; image-rendering: pixelated; vertical-align: middle; object-fit: cover; object-position: top; flex: none; }
.ico.big { width: 44px; height: 44px; }
.noimgtxt { display: inline-block; font-size: 13px; padding: 0 5px; margin: 1px; color: #ddd; background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.2); vertical-align: middle; }
canvas.hat3d { image-rendering: pixelated; }
.ico.noimg { display: inline-block; background: repeating-linear-gradient(45deg, #2b2b33 0 4px, #35353f 4px 8px); border: 1px solid #000; }
.it { display: inline-flex; align-items: center; gap: 6px; margin: 2px 1px; padding: 1px 8px 1px 2px; vertical-align: middle;
  background: rgba(0,0,0,.38); border: 2px solid rgba(0,0,0,.65); box-shadow: inset 1px 1px 0 rgba(255,255,255,.08);
  font-size: 16px; line-height: 1.25; white-space: nowrap; }
.it .ico { width: 24px; height: 24px; }
.it .ct { color: var(--gold); font-weight: 600; }
.it .xt { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.tag { display: inline-block; font: 600 13px/1.5 var(--font-head); padding: 0 7px; border: 2px solid rgba(255,255,255,.25); color: #ddd;
  background: rgba(0,0,0,.35); white-space: nowrap; vertical-align: middle; }
.tag.age { border-color: #b98cff; color: #d8c1ff; }
.tag.lvl { border-color: #6f9bff; color: #b7cbff; }
.tag.xp { border-color: #4fcf4f; color: #9cf59c; }
.tag.who { border-color: #888; color: #ccc; }
kbd { display: inline-block; font: 400 17px/1 var(--font-mono); color: #fff; padding: 2px 6px 3px; margin: 0 1px; background: linear-gradient(#777, #5c5c5c);
  border: 2px solid #000; box-shadow: inset 1px 1px 0 #aaa, inset -1px -2px 0 #3e3e3e; white-space: nowrap; }
.note { margin: 12px 0; padding: 10px 12px; border-left: 4px solid #6fe7ff; background: rgba(111,231,255,.09); max-width: 86ch; }
.note.warn { border-left-color: var(--gold); background: rgba(255,200,61,.10); }
.plink { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.plink img { image-rendering: pixelated; }

/* lists */
ol.gsteps, ol.hsteps { list-style: none; counter-reset: st; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
ol.gsteps li, ol.hsteps li { counter-increment: st; position: relative; padding: 8px 12px 8px 50px; background: rgba(0,0,0,.28); border: 2px solid #000; max-width: none; }
ol.gsteps li::before, ol.hsteps li::before { content: counter(st); position: absolute; left: 8px; top: 7px; width: 30px; height: 30px;
  display: grid; place-items: center; font: 400 17px var(--font-pixel); color: #fff; background: #3c8a2f; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #6fe35c, inset -2px -2px 0 #22521a; }
ol.hsteps li::before { background: #6a5a2a; box-shadow: inset 2px 2px 0 #b59a4a, inset -2px -2px 0 #3a2f12; }
ul.grules, ul.only { list-style: none; padding: 0; }
ul.grules li, ul.only li { position: relative; padding: 4px 0 4px 22px; }
ul.grules li::before, ul.only li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 9px; height: 9px; background: var(--green); box-shadow: 2px 2px 0 #1d5a1d; }
ul.only li { line-height: 1.9; }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 14px; padding: 10px 12px;
  background: rgba(0,0,0,.25); border: 2px solid rgba(0,0,0,.5); }
dl.facts dt { font-weight: 600; color: #ffd84a; }
dl.facts dd { margin: 0; }

/* tables */
.tbl { overflow-x: auto; margin: 6px 0 16px; border: 2px solid #000; background: rgba(0,0,0,.22); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 16px; }
.tbl table.narrow { width: auto; min-width: 50%; }
.tbl th { text-align: left; font: 600 15px var(--font-head); color: #ffd84a; background: rgba(0,0,0,.45); padding: 7px 10px; white-space: nowrap; }
.tbl td { padding: 6px 10px; border-top: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.tbl tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.tbl td ul { margin: 0; padding-left: 18px; }
.tbl td .ico { margin: 1px; }
table.ages td:first-child { text-align: center; white-space: nowrap; }
.agen { font: 400 22px var(--font-pixel); color: #d8c1ff; }
table.gfish td:nth-child(-n+4) { white-space: nowrap; }
.rar { font-weight: 600; } .r-iprasta { color: #c9c9c9; } .r-retesne { color: var(--green); } .r-reta { color: #6fe7ff; } .r-legendine { color: var(--gold); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }

/* level road */
ol.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lv { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 8px 10px; background: rgba(0,0,0,.26); border: 2px solid #000; }
.lvh { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.lvn { font: 400 24px/1 var(--font-pixel); color: #fff; background: #2f6fbf; border: 2px solid #000; padding: 5px 9px;
  box-shadow: inset 2px 2px 0 #6fa6ff, inset -2px -2px 0 #1b3f70; text-shadow: 2px 2px 0 #1b3f70; }
.lvx { font-size: 14px; color: var(--muted); }
.lv ul { margin: 0; padding-left: 18px; }
.lv li { margin: 2px 0; }
.lv .dim { margin: 4px 0; }

/* minigames */
.mg { margin: 0 0 22px; }
.mg h4 .ico { width: 32px; height: 32px; }

/* recipes */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; margin-bottom: 14px; }
.rc { min-width: 0; padding: 12px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25)); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.07), inset -2px -2px 0 rgba(0,0,0,.45); scroll-margin-top: 80px; }
.rc header { display: flex; gap: 10px; align-items: center; }
.rc h4 { margin: 0; font: 600 19px/1.2 var(--font-head); color: #fff; }
.rc .rdesc { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.25; }
.rc .rfood { margin: 8px 0 0; font-size: 14px; color: #9cf59c; }
/* recipe UIs drawn like the vanilla containers: light grey bevelled panel, dark inset 18px slots at 2x (16px items -> 32px) */
.rsteps { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mcwrap { max-width: 100%; }
.mcui { --sl: 36px; --im: 32px; --rs: 52px; --aw: 44px; --ah: 30px;
  display: inline-flex; flex-direction: column; gap: 6px; max-width: 100%; padding: 6px 10px 10px; color: #404040;
  background: #c6c6c6; border: 2px solid #000; border-radius: 4px; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #555; }
.mcl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-height: 24px; font: 600 15px/1.1 var(--font-head); color: #404040; }
.mcl .ico { width: 24px; height: 24px; }
.mcx { margin-left: auto; padding-left: 12px; font: 400 14px var(--font-head); color: #5a5a5a; white-space: nowrap; }
.mcrow { display: flex; align-items: center; gap: 8px; }
.mgrid { display: grid; grid-template-columns: repeat(3, var(--sl)); flex: none; }
.slot { position: relative; display: grid; place-items: center; flex: none; width: var(--sl); height: var(--sl);
  background: #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.slot.res { width: var(--rs); height: var(--rs); }
.slot img { width: var(--im); height: var(--im); image-rendering: pixelated; object-fit: cover; object-position: top; }
.slot .ni { font: 400 13px/1 var(--font-head); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.slot .n { position: absolute; right: 1px; bottom: -1px; font: 400 21px/1 var(--font-mono); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none; }
.slot.res .n { right: 6px; bottom: 5px; }
.slot[data-tip] { cursor: default; }
.slot[data-tip]:hover, .slot.tip { background-color: #a7a7a7; }
.slot:focus-visible { outline: 2px solid #fff; outline-offset: 1px; z-index: 2; }
.slot[data-tip]:hover::after, .slot[data-tip]:focus-visible::after, .slot.tip::after { content: attr(data-tip); position: absolute; z-index: 40;
  left: -4px; bottom: calc(100% + 6px); width: max-content; max-width: 230px; padding: 3px 8px 5px; text-align: left; white-space: normal;
  font: 400 16px/1.2 var(--font-head); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none;
  background: rgba(16, 0, 16, .95); border: 2px solid #100010; box-shadow: inset 0 0 0 2px #2d0b66; }
.slot.res[data-tip]::after { left: auto; right: -4px; }
.arr { flex: none; width: var(--aw); height: var(--ah); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15' shape-rendering='crispEdges'%3E%3Cpath fill='%238b8b8b' d='M0 5H15V0H16V1H17V2H18V3H19V4H20V5H21V6H22V9H21V10H20V11H19V12H18V13H17V14H16V15H15V10H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.tm { font: 400 18px/1 var(--font-mono); color: #404040; white-space: nowrap; }
/* furnace / smoker / campfire */
.fcol { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flame { width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' shape-rendering='crispEdges'%3E%3Cpath fill='%23d84a0c' d='M6 0h2v1h-2zM6 1h3v1h-3zM5 2h4v1h-4zM5 3h5v1h-5zM4 4h6v1h-6zM3 5h8v1h-8zM3 6h8v1h-8zM2 7h10v1h-10zM2 8h10v1h-10zM2 9h10v1h-10zM2 10h10v1h-10zM3 11h8v1h-8zM4 12h6v1h-6zM5 13h4v1h-4z'/%3E%3Cpath fill='%23ff9d1c' d='M6 4h2v1h-2zM5 5h4v1h-4zM5 6h4v1h-4zM4 7h6v1h-6zM4 8h6v1h-6zM4 9h6v1h-6zM4 10h6v1h-6zM5 11h4v1h-4zM6 12h2v1h-2z'/%3E%3Cpath fill='%23ffe45c' d='M6 8h2v1h-2zM6 9h2v1h-2zM5 10h4v1h-4zM6 11h2v1h-2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.arrw { position: relative; display: flex; }
.arrw .tm { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); }
/* barrel aging */
.barrel .arr { --aw: 33px; --ah: 22px; }
.bst { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bst .ico { width: 32px; height: 32px; }
/* cauldron: ordered steps */
.psteps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 18px; margin: 0; padding: 0; list-style: none; }
.psteps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.psteps li + li:not(.out)::before { content: ""; position: absolute; left: -12px; top: calc(var(--sl) / 2 - 5px);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid #6b6b6b; }
.psteps .cap { font: 400 16px/1 var(--font-mono); color: #404040; }
.psteps li.out { flex-direction: row; gap: 8px; margin: calc((var(--sl) - var(--rs)) / 2) 0 0 -8px; }
.mcleg { margin: 5px 2px 0; font-size: 14px; line-height: 1.3; color: var(--muted); }
/* smithing table: template + base + addition */
.smrow { display: flex; flex: none; }
.howto .mcrow { gap: 6px; }

/* ------------------------------------------------------------------ Receptai page: tab chips + search (guide.js wireRecipes) */
.rxf { display: grid; gap: 10px; padding: 12px; background: rgba(0,0,0,.3); border: 2px solid #000; }
.rxchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rxchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: 600 16px var(--font-head); color: #e8e8e8; cursor: pointer;
  background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.14); -webkit-user-select: none; user-select: none; }
.rxchip b { font-weight: 400; color: var(--muted); }
.rxchip:hover { border-color: #ffff55; color: #ffff55; }
.rxchip.on { color: #ffff55; border-color: rgba(255,255,85,.7); background: rgba(255,255,85,.12); }
.rxchip:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.rxq { display: flex; align-items: center; gap: 10px; font: 600 16px var(--font-head); }
.rxq input { flex: 1; min-width: 0; font: 400 20px/1 var(--font-mono); color: #fff; background: #000; border: 2px solid #5a5a5a;
  box-shadow: inset 2px 2px 0 #222; padding: 7px 10px; }
.rxq input::placeholder { color: #8d8d99; }
.rxq input:focus { outline: none; border-color: #ffff55; }
.rxn { margin: 0; font-size: 14px; color: var(--muted); }
.rxn:empty { display: none; }
.rc[hidden], .g-sec[hidden] { display: none !important; }
.rc .ruse { margin: 0 0 4px; font-size: 15px; line-height: 1.3; }
.rc .ruse b { color: #ffd84a; font-weight: 600; }
.rc .rsteps ol.hsteps { margin: 4px 0 0; }
.tag.st { border-color: #c9a45a; color: #f0d79a; }
#rx-kas-ka-gamina { grid-column: 1 / -1; }  /* the generated Kas ką gamina table needs the full width */
#rx-kas-ka-gamina .tbl { margin: 8px 0 6px; }
@media (min-width: 640px) { table.whomakes td:nth-child(-n+2) { white-space: nowrap; } }
a.tag.dir { border-color: #d86a6a; color: #ffc0c0; text-decoration: none; }
a.tag.dir:hover { color: #ffff55; border-color: #ffff55; }

/* quests & offerings */
ul.quests { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 5px; }
ul.quests li { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; background: rgba(0,0,0,.26); border: 2px solid rgba(0,0,0,.6); max-width: none; flex-wrap: wrap; }
ul.quests .qt { flex: 1 1 260px; }
ul.quests .qr { font-size: 14px; color: #9cf59c; white-space: nowrap; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-bottom: 12px; }
.offer { padding: 10px 12px; background: rgba(0,0,0,.28); border: 2px solid #000; }
.offer h4 { margin: 0 0 8px; }
ul.offerlist { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; }
ul.offerlist li { display: flex; align-items: center; gap: 10px; }
ul.offerlist .ico.big { width: 36px; height: 36px; }
ul.offerlist .nm { flex: 1; }
ul.offerlist .ct { font: 400 18px var(--font-pixel); color: var(--gold); }
.offer .dim { font-size: 14px; margin: 0; }

/* start page bits */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.gpcard { display: flex; gap: 12px; align-items: center; padding: 12px; background: rgba(0,0,0,.28); border: 2px solid #000; color: inherit; text-decoration: none; transition: transform .15s; }
.gpcard:hover { transform: translateY(-3px); border-color: #ffff55; }
.gpcard img { image-rendering: pixelated; flex: none; }
.gpcard b { display: block; font: 600 19px var(--font-head); color: #fff; }
.gpcard span span { font-size: 15px; color: #d6d9e4; }
.cmdgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px 20px; }
.cmdgroup h4 { margin: 6px 0 6px; }
ul.gcmds { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.gcmds li { font-size: 16px; line-height: 1.35; }

/* ------------------------------------------------------------------ header CTA (also on the one-pager, see site.css) */
.guide .topbar nav { margin-left: auto; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 520px) {
  .g-page { padding: 16px 12px 22px; }
  .g-head img { width: 44px; height: 44px; }
  .lv { grid-template-columns: 1fr; gap: 4px; }
  .lvh { flex-direction: row; align-items: center; gap: 8px; }
  .rgrid { grid-template-columns: 1fr; }
  .tbl table { font-size: 15px; }
  .tbl th, .tbl td { padding: 5px 7px; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 6px; }
  .it { white-space: normal; }
  .cmdgrid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .mcui { --sl: 32px; --im: 28px; --rs: 46px; --aw: 33px; --ah: 22px; padding: 6px 8px 8px; }
  .barrel .arr { --aw: 22px; --ah: 15px; }
  .mcrow { gap: 6px; }
}

/* animated profession scene (profscene.js) in profession page headers */
.g-scene { width: 176px; aspect-ratio: 64 / 36; margin-left: auto; flex: none; image-rendering: pixelated; border: 2px solid #000; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
@media (max-width: 640px) { .g-head { flex-wrap: wrap; } .g-scene { order: 3; width: 100%; max-width: 288px; margin: 6px 0 0; } }

/* item rarity ladder + relics */
.rar { color: var(--rc, #fff); font-weight: 600; white-space: nowrap; text-shadow: 0 0 6px color-mix(in srgb, var(--rc, #fff) 35%, transparent); }
.relic-chip .relic-ico { image-rendering: pixelated; width: 32px; height: 32px; }

/* ------------------------------------------------------------------ wiki template (Trumpai / Kaip pradėti / DUK / Taip pat žiūrėk) */
.g-tldr { margin: 14px 0 6px; padding: 12px 16px; max-width: 92ch; background: rgba(255,255,85,.08); border: 2px solid rgba(255,255,85,.45);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.06); }
.g-tldr-h { display: block; font: 600 18px var(--font-head); color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; margin-bottom: 4px; }
.g-tldr .g-body p { margin: 0; font-size: 1.05em; }
.g-sec.g-faq details.faq { margin: 0 0 8px; max-width: 92ch; background: rgba(0,0,0,.28); border: 2px solid #000; }
.g-sec.g-faq details.faq > summary { list-style: none; cursor: pointer; padding: 9px 12px 9px 36px; position: relative;
  font: 600 18px var(--font-head); color: #fff; -webkit-user-select: none; user-select: none; }
.g-sec.g-faq details.faq > summary::-webkit-details-marker { display: none; }
.g-sec.g-faq details.faq > summary::before { content: "▶"; position: absolute; left: 12px; top: 10px; font-size: 13px; color: #ffff55; transition: transform .15s; }
.g-sec.g-faq details.faq[open] > summary::before { transform: rotate(90deg); }
.g-sec.g-faq details.faq > summary:hover { color: #ffff55; }
.g-sec.g-faq details.faq > div { padding: 0 12px 4px 36px; }
.g-sec.g-see h2 { font-size: 20px; }
ul.seealso { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.seealso li { margin: 0; }
ul.seealso a { display: inline-block; padding: 5px 12px; font: 600 16px var(--font-head); color: #e8e8e8; text-decoration: none;
  background: rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.14); -webkit-user-select: none; user-select: none; }
ul.seealso a:hover { border-color: #ffff55; color: #ffff55; }
dl.glossary { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 8px 16px; margin: 0; max-width: 100ch; }
dl.glossary dt { font: 600 18px var(--font-head); color: #ffff55; scroll-margin-top: 78px; }
dl.glossary dd { margin: 0; }
@media (max-width: 640px) { dl.glossary { grid-template-columns: 1fr; gap: 2px; } dl.glossary dd { margin-bottom: 10px; } }

/* UI chrome is not text: no selection highlight and a plain arrow cursor (no I-beam/help) on navigation, tabs, chips and headings */
.g-nav, .g-tocbox, .g-bar, .g-pager, .g-head img, .g-tiles, .g-sec h2, .g-tldr-h, .g-search label, .slot, .ico, .tag, kbd {
  -webkit-user-select: none; user-select: none; }
.g-sec h2, .g-tldr-h, .tag, .ico, kbd { cursor: default; }
abbr[title] { cursor: default; text-decoration: none; }

/* "Daugiau": details folded under a short first paragraph (owner: simple first, details on demand) */
.g-body details.g-more { margin: 6px 0 4px; }
.g-body details.g-more > summary { list-style: none; cursor: pointer; display: inline-block; padding: 5px 12px 5px 28px;
  position: relative; background: rgba(0,0,0,.28); border: 2px solid #000; color: #ffff55; }
.g-body details.g-more > summary::-webkit-details-marker { display: none; }
.g-body details.g-more > summary::before { content: "\25B6"; position: absolute; left: 10px; top: 6px; font-size: 12px; transition: transform .15s; }
.g-body details.g-more[open] > summary::before { transform: rotate(90deg); }
.g-body details.g-more[open] > summary { margin-bottom: 8px; }
/* ------------------------------------------------------------------ visual layer (tools/gen_visuals.py + guide.js)
   owner 2026-11-30: "dumbed down, easy to understand, not millions of text – lots of images" */
.g-body { font-size: 18px; line-height: 1.6; }
.g-body > p, .g-body li { max-width: 72ch; }

/* header card: 3 points with icons, first step, quick links */
.g-card { display: grid; gap: 12px; margin: 12px 0 4px; padding: 14px 16px; background: rgba(0,0,0,.34); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.07), inset -2px -2px 0 rgba(0,0,0,.4); }
.g-card-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-card-pts li { display: flex; align-items: center; gap: 12px; font: 600 20px/1.25 var(--font-head); color: #fff; text-shadow: 2px 2px 0 #000; }
.g-card-pts img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.g-dot { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.g-dot::before { content: ""; width: 10px; height: 10px; background: var(--green); box-shadow: 2px 2px 0 #1d5a1d; }
.g-card-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.g-first { text-decoration: none; font-size: 17px; background: linear-gradient(#5fb84a, #3c8a2f); box-shadow: inset 2px 2px 0 #8fe37c, inset -2px -3px 0 #22521a; }
.g-first:hover { background: linear-gradient(#6fcf58, #46a036); box-shadow: inset 2px 2px 0 #9ff08c, inset -2px -3px 0 #22521a; }
.g-chip { font: 600 16px var(--font-head); color: #e8e8e8; text-decoration: none; padding: 6px 12px; background: rgba(0,0,0,.4);
  border: 2px solid rgba(255,255,255,.14); cursor: pointer; }
.g-chip:hover { border-color: #ffff55; color: #ffff55; }

/* how-to picture strips: numbered cards, swipe sideways on phones */
.vx { margin: 4px 0 16px; }
.vx-title { margin: 0 0 6px; font: 600 18px var(--font-head); color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.vx-strip { list-style: none; counter-reset: vx; display: flex; gap: 10px; margin: 0; padding: 0 0 8px; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: thin; overscroll-behavior-x: contain; }
.vx-step { counter-increment: vx; flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: rgba(0,0,0,.34); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.06); max-width: none !important; margin: 0 !important; }
.vx-step.wide { flex-basis: 250px; }
.vx-pic { position: relative; display: grid; place-items: center; min-height: 96px; background: rgba(255,255,255,.04); }
.vx-pic::before { content: counter(vx); position: absolute; left: -2px; top: -2px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center;
  font: 400 15px var(--font-pixel); color: #fff; background: #3c8a2f; border: 2px solid #000; box-shadow: inset 2px 2px 0 #6fe35c, inset -2px -2px 0 #22521a; }
.vx-ico { width: 64px; height: 64px; image-rendering: pixelated; }
.vx-img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.vx-cap { font-size: 16px; line-height: 1.3; color: #eef0f6; }
.vx-cap b { color: #ffd84a; }

/* detail sections: closed "Daugiau" boxes (their picture strip stays above) */
.g-pics { margin-top: 22px; }
.g-pics .vx { margin-bottom: 8px; }
details.g-fold { margin-top: 12px; background: rgba(0,0,0,.22); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.05); }
.g-pics + details.g-fold { margin-top: 0; }
details.g-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  -webkit-user-select: none; user-select: none; }
details.g-fold > summary::-webkit-details-marker { display: none; }
details.g-fold > summary::before { content: "▶"; flex: none; font-size: 13px; color: #ffff55; transition: transform .15s; }
details.g-fold[open] > summary::before { transform: rotate(90deg); }
details.g-fold > summary h2 { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; font-size: clamp(19px, 2.6vw, 23px); }
details.g-fold > summary:hover h2 { color: #ffff55; }
.g-fold-hint::after { content: "Daugiau"; flex: none; font: 600 14px var(--font-head); color: #cfd2de; padding: 2px 8px; border: 2px solid rgba(255,255,255,.16); white-space: nowrap; }
details.g-fold[open] .g-fold-hint::after { content: "Mažiau"; }
details.g-fold > .g-body { padding: 4px 14px 14px; }
details.g-fold.flash { animation: flash 1.6s ease-out; }

/* item names in text: icon + name, tap/hover = pop-up with the recipe */
.ilink { display: inline; font: inherit; line-height: inherit; color: #ffe9a8; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  text-align: inherit; text-decoration: underline dotted rgba(255,233,168,.55); text-underline-offset: 3px; }
.ilink img { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: -4px; margin-right: 3px; object-fit: cover; object-position: top; }
.ilink:hover, .ilink:focus-visible { color: #ffff55; outline: none; text-decoration-color: #ffff55; }
.it-link { cursor: pointer; }
.it-link:hover, .it-link:focus-visible { border-color: #ffff55; outline: none; }
.ipop { position: absolute; z-index: 60; width: min(370px, calc(100vw - 16px)); max-height: 70vh; overflow: auto; padding: 10px 12px 12px;
  background: #1b1d2b; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.1), inset -2px -2px 0 rgba(0,0,0,.5), 0 12px 28px rgba(0,0,0,.6); }
.ipop.sheet { position: fixed; left: 8px; right: 8px; top: auto; bottom: max(8px, env(safe-area-inset-bottom)); width: auto; max-height: 72vh;
  overscroll-behavior: contain; animation: sheetin .16s ease-out; }
@keyframes sheetin { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ipop-x { position: absolute; right: 6px; top: 6px; z-index: 2; width: 36px; height: 36px; font: 400 18px/1 var(--font-pixel); color: #fff;
  background: rgba(0,0,0,.55); border: 2px solid #000; cursor: pointer; }
.ipop-x:hover { color: #ffff55; }
.ipop .rc.in-pop { padding: 2px 0 0; background: none; border: 0; box-shadow: none; }
.ipop .rc.in-pop header { padding-right: 42px; }
.ipop-go { display: inline-block; margin-top: 10px; font: 600 16px var(--font-head); color: #9fd3ff; }
.ipop-h { display: flex; gap: 12px; align-items: center; padding-right: 42px; }
.ipop-h img { image-rendering: pixelated; flex: none; }
.ipop-h b { font: 600 19px var(--font-head); color: #fff; }
.ipop-h p { margin: 2px 0 0; font-size: 15px; color: #cfd2de; }

@media (max-width: 640px) {
  .g-body { font-size: 17.5px; }
  .g-card { padding: 12px; }
  .g-card-pts li { font-size: 18px; }
  .vx-step { flex-basis: 138px; }
  .vx-step.wide { flex-basis: min(250px, 78vw); }
  details.g-fold > .g-body { padding: 2px 10px 12px; }
  details.g-fold > summary { padding: 9px 10px; }
  .g-fold-hint::after { font-size: 12px; padding: 1px 5px; }
}
@media (max-width: 420px) { .g-fold-hint { display: none; } }

/* ------------------------------------------------------------------ Ką gali gaminti pagal lygį (gen_levels.py) */
.lvbook { display: grid; gap: 8px; margin: 10px 0 14px; }
details.lvband, details.lvdir { background: rgba(0,0,0,.28); border: 2px solid #000; }
details.lvband > summary, details.lvdir > summary { cursor: pointer; padding: 8px 12px; font: 600 17px var(--font-head); color: #ffff55; }
details.lvband > summary .lvn { color: var(--muted); font-size: 14px; margin-left: 6px; }
details.lvdir { margin: 8px 0; }
details.lvdir > .lvbook { margin: 0 8px 8px; }
table.lvt { width: 100%; border-collapse: collapse; }
table.lvt th, table.lvt td { padding: 5px 8px; text-align: left; vertical-align: middle; border-top: 1px solid rgba(255,255,255,.08); }
table.lvt th { font: 600 13px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
table.lvt td:nth-child(3), table.lvt td:nth-child(4) { white-space: nowrap; text-align: center; }
table.lvt td.lvu { color: #cfcfcf; font-size: 15px; }
.ilink.lvi { display: inline-flex; align-items: center; gap: 6px; text-align: left; text-decoration: none; }
.ilink.lvi img { width: 24px; height: 24px; margin: 0; vertical-align: middle; }
tr.lv-subclass .lvi span, tr.lv-method .lvi span { color: #9fe6ff; }
@media (max-width: 640px) {
  table.lvt thead { display: none; }
  table.lvt tr { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; padding: 6px 4px; border-top: 1px solid rgba(255,255,255,.1); }
  table.lvt td { border: 0; padding: 0 4px; }
  table.lvt td:first-child { grid-column: 1 / -1; }
  table.lvt td[data-h="Kur"] { grid-column: 1; color: var(--muted); font-size: 14px; }
  table.lvt td[data-h="Lygis"]::before { content: "lyg. "; color: var(--muted); font-size: 13px; }
  table.lvt td[data-h="Amžius"]::before { content: "amž. "; color: var(--muted); font-size: 13px; }
  table.lvt td[data-h="Gamina"], table.lvt td.lvu { grid-column: 1 / -1; }
}

/* vadovaspilnas (2026-12-01): template boxes, work pages, start page, breadcrumbs, custom vs Minecraft markers */
.note.danger { border-left-color: #ff5555; background: rgba(255,85,85,.10); }
.note.info { border-left-color: #6fe7ff; background: rgba(111,231,255,.08); }
.w-short { font-size: 1.05em; margin: 4px 0 10px; }
.w-h { margin: 14px 0 6px; color: #ffff55; }
.w-cards { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.w-cards a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 8px; align-items: center; padding: 8px; border: 2px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18); text-decoration: none; color: inherit; height: 100%; box-sizing: border-box; }
.w-cards a:hover, .w-cards a:focus { border-color: #ffff55; }
.w-cards a img, .w-cards a .ico { width: 32px; height: 32px; grid-row: span 2; image-rendering: pixelated; }
.w-cards a span { font-size: .86em; opacity: .85; grid-column: 2; }
.w-cards li, .w-cards a { min-width: 0; } .w-cards a b, .w-cards a span { overflow-wrap: anywhere; } .w-cards a > span:empty { display: none; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.t-group { border: 2px solid rgba(255,255,255,.12); padding: 8px 10px; background: rgba(0,0,0,.15); }
.t-group h4 { margin: 0 0 6px; color: #ffff55; }
.t-group ul { list-style: none; margin: 0; padding: 0; }
.t-group li a { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.t-group li img { image-rendering: pixelated; }
.duk-list li { margin: 3px 0; }
.it .mk, .mk { color: #ffcc33; font-weight: 700; margin-left: 3px; cursor: help; text-shadow: 1px 1px 0 #3f2f00; }
.it .en { color: #b9c0c8; font-size: .82em; margin-left: 4px; }
.it .en::before { content: "("; } .it .en::after { content: ")"; }
.ilink.srv::after { content: "✦"; color: #ffcc33; font-size: .8em; margin-left: 2px; }
.ipop-srv { display: block; color: #ffcc33; font-size: .85em; margin: 2px 0; }
@media (max-width: 640px) { .w-cards, .t-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ „Kaip…?“ pages (gen_kaip.py) */
ol.kx-steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; font-size: 17.5px; line-height: 1.45; }
ol.kx-steps li > .kx-t { min-width: 0; }
.kx-pic { margin: 0; justify-self: end; max-width: 360px; }
.kx-pic img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; border: 2px solid #000; background: rgba(255,255,255,.04); }
.kx-pic figcaption { margin-top: 4px; font-size: 14px; color: var(--muted); }
.kx-icons { display: flex; flex-wrap: wrap; gap: 8px; justify-self: end; }
.kx-ico { display: grid; justify-items: center; gap: 2px; width: 76px; padding: 6px 2px; text-align: center; font-size: 12.5px; line-height: 1.15;
  color: #e8e8ee; background: rgba(255,255,255,.05); border: 2px solid #000; }
.kx-ico img { width: 48px; height: 48px; image-rendering: pixelated; }
table.kx-cmp td:first-child { white-space: nowrap; }
.kx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.kx-card { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 10px 12px;
  text-decoration: none; color: inherit; background: rgba(0,0,0,.32); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.08); }
.kx-card:hover, .kx-card:focus-visible { background: rgba(255,216,74,.12); border-color: #ffd84a; outline: none; }
.kx-card img { grid-row: 1 / 3; width: 48px; height: 48px; image-rendering: pixelated; }
.kx-q { font: 600 19px/1.15 var(--font-head); color: #ffff55; }
.kx-l { font-size: 14.5px; color: var(--muted); }
@media (max-width: 640px) {
  ol.kx-steps li { grid-template-columns: 1fr; font-size: 17px; }
  .kx-pic, .kx-icons { justify-self: start; }
  .kx-pic { max-width: 100%; }
  .kx-cards { grid-template-columns: 1fr; }
}

/* Kovos šlovė (kovos-slove): weapon looks, emblem glyph, master weapon picture */
.slv-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; margin: 0 0 12px; }
.slv-skin { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 8px 10px; background: rgba(0,0,0,.28); border: 2px solid #000; }
.slv-skin b { color: #fff; font-weight: 600; }
.slv-skin small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.slv-img { width: 64px; height: 64px; flex: none; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.slv-emb { width: 32px; height: 32px; image-rendering: pixelated; vertical-align: middle; }

/* Grybavimas: forest pictures and mushroom cards (tools/grybai_pics.py) */
.gy-forests { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.gy-forest { margin: 0; padding: 8px; background: rgba(0,0,0,.28); border: 2px solid #000; }
.gy-forest img { display: block; width: 100%; height: auto; }
.gy-forest figcaption { margin-top: 6px; font-size: 15px; line-height: 1.35; color: #eef0f6; }
.gy-forest figcaption b { color: #ffd84a; }
.gy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 10px 0; }
.gy-card { display: grid; grid-template-columns: 64px 1fr; gap: 8px 12px; align-content: start; padding: 10px 12px; background: rgba(0,0,0,.28); border: 2px solid #000; }
.gy-card.bad { border-color: #8a1f1f; background: rgba(120,20,20,.25); }
.gy-card .gy-ico { width: 64px; height: 64px; image-rendering: pixelated; }
.gy-card h4 { margin: 0; align-self: center; font: 600 20px var(--font-head); color: #fff; }
.gy-shot { display: block; max-width: 100%; height: auto; border: 2px solid #000; margin: 8px 0; }
.gy-card .gy-shot { grid-column: 1 / -1; width: 100%; margin: 0; }
.gy-shot.gy-mid { max-width: 320px; }
.gy-shot.gy-wide { image-rendering: pixelated; }
.gy-card dl { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 15.5px; line-height: 1.35; }
.gy-card dt { color: var(--muted); }
.gy-card dd { margin: 0; }

/* ================================================================== navigation (2026-12-03, vadovasnav)
   start page (topic tiles, Pradedančiajam, Kaip…?), topic pages, side topic tree (drawer on phones), sticky table of
   contents (right column from 1200 px, "Turinys" sheet below), sticky bar (phones/tablets), search, long tables, pager.
   --g-top = height of the site top bar (set by guide.js). */
.g-wrap { width: min(1560px, 100%); margin: 0 auto; padding: 20px var(--gutter) 40px; display: grid; box-sizing: border-box;
  grid-template-columns: 250px minmax(0, 1fr) 236px; gap: 20px; align-items: start; }
body.g-notoc .g-wrap { grid-template-columns: 250px minmax(0, 1fr); }
body.g-notoc .g-tocbox { display: none; }
.g-main { min-width: 0; width: auto; margin: 0; padding: 0; }
.g-page [id] { scroll-margin-top: calc(var(--g-top, 56px) + 14px); }
.g-sec.g-flash, .g-flash { animation: gflash 2.2s ease-out; }
@keyframes gflash { 0%, 30% { box-shadow: 0 0 0 3px #ffff55; background-color: rgba(255,255,85,.16); } 100% { box-shadow: 0 0 0 3px transparent; background-color: transparent; } }

/* side: search + topic tree */
.g-side { position: sticky; top: calc(var(--g-top, 56px) + 12px); z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 12px;
  max-height: calc(100vh - var(--g-top, 56px) - 24px); box-sizing: border-box; }
.g-side-head { display: none; }
.g-nav { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: thin; margin-right: -6px; padding-right: 6px; }
.g-link, .g-home { display: flex; align-items: center; gap: 9px; padding: 5px 8px; color: #ececec; text-decoration: none;
  font: 600 16px/1.2 var(--font-head); border: 2px solid transparent; text-shadow: 1px 1px 0 #000; }
.g-link img, .g-home img, .g-tnode summary img { width: 20px; height: 20px; image-rendering: pixelated; flex: none; object-fit: cover; object-position: top; }
.g-link:hover, .g-home:hover { background: rgba(255,255,255,.07); }
.g-link.active, .g-home.active { background: rgba(255,255,85,.10); border-color: rgba(255,255,85,.5); color: #ffff55; }
.g-home { font-size: 17px; margin-bottom: 4px; }
.g-tnode { border-top: 2px solid rgba(255,255,255,.07); }
.g-tnode > summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 8px 8px; cursor: pointer;
  font: 600 17px/1.2 var(--font-head); color: #fff; text-shadow: 1px 1px 0 #000; }
.g-tnode > summary::-webkit-details-marker { display: none; }
.g-tnode > summary span { flex: 1; min-width: 0; }
.g-tnode > summary::after { content: "▸"; color: var(--muted); font-size: 14px; }
.g-tnode[open] > summary::after { content: "▾"; color: #ffff55; }
.g-tnode > summary:hover { background: rgba(255,255,255,.06); }
.g-tbody { margin: 0 0 8px 12px; padding-left: 6px; border-left: 2px solid rgba(255,255,255,.10); }
.g-tbody h4 { margin: 8px 6px 2px; font: 600 12px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.g-tbody .g-link { font-size: 15.5px; padding: 4px 6px; }
.g-tall { display: inline-block; margin: 2px 6px 0; font: 600 14px var(--font-head); color: #9fd3ff; text-decoration: none; }
.g-tall:hover, .g-tall.active { color: #ffff55; }
.g-ext span::after { content: " ↗"; color: var(--muted); font-size: .85em; }
body.g-isstart .g-side .g-search { display: none; }

/* search: one engine for the side box, the phone bar and the big start page box */
.g-search { position: relative; }
.g-search input { width: 100%; box-sizing: border-box; font: 400 21px/1 var(--font-mono); color: #fff; background: #000; border: 2px solid #5a5a5a;
  box-shadow: inset 2px 2px 0 #222; padding: 8px 10px; -webkit-appearance: none; appearance: none; border-radius: 0; }
.g-search input::placeholder { color: #8d8d99; }
.g-search input:focus { outline: none; border-color: #ffff55; }
.g-results { position: absolute; z-index: 40; left: 0; top: calc(100% + 4px); width: min(580px, calc(100vw - 24px)); max-height: min(70vh, 640px);
  overflow: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 6px; box-sizing: border-box; background: #12121c; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.6); }
.g-results a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 8px 10px; color: inherit;
  text-decoration: none; border-left: 3px solid transparent; }
.g-results a img { margin-top: 3px; image-rendering: pixelated; }
.g-results a:hover, .g-results [aria-selected="true"] a { background: rgba(255,255,255,.08); border-left-color: #ffff55; outline: none; }
.g-results .rb { min-width: 0; }
.g-results .rw { display: block; font: 600 13px var(--font-head); color: var(--muted); overflow-wrap: anywhere; }
.g-results .rt { display: block; font: 600 17px/1.2 var(--font-head); color: #ffff55; overflow-wrap: anywhere; }
.g-results .rs { display: block; font-size: 14.5px; color: #cfd2de; line-height: 1.35; overflow-wrap: anywhere; }
.g-results mark { background: rgba(255,255,85,.28); color: #fff; padding: 0 1px; }
.g-results .rt mark { color: #ffff55; }
.g-results .none { padding: 10px; color: var(--muted); }
.g-search-big { margin: 14px 0 6px; }
.g-search-big input { font-size: 25px; padding: 12px 14px; border-width: 3px; }
.g-search-big .g-results { width: 100%; }

/* sticky bar (below 1200 px): ☰ Skyriai · search · current section · Turinys */
.g-bar { display: none; }
.g-navbtn, .g-tocbtn, .g-toc-x, .g-toc-all, .g-cutbtn, .g-totop, .g-up {
  font: 600 16px/1.1 var(--font-head); color: #f0f0f0; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.2); padding: 7px 10px;
  cursor: pointer; white-space: nowrap; text-shadow: 1px 1px 0 #000; }
.g-navbtn:hover, .g-tocbtn:hover, .g-toc-x:hover, .g-toc-all:hover, .g-cutbtn:hover, .g-totop:hover, .g-up:hover { border-color: #ffff55; color: #ffff55; }
.g-tocbtn[aria-expanded="true"], .g-navbtn[aria-expanded="true"] { border-color: #ffff55; color: #ffff55; }
.g-tocbtn[hidden] { display: none !important; }
.g-where { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16px var(--font-head); color: var(--muted); }

/* table of contents */
.g-tocbox { position: sticky; top: calc(var(--g-top, 56px) + 12px); z-index: 5; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box;
  max-height: calc(100vh - var(--g-top, 56px) - 24px); padding: 10px 8px 10px 10px; background: var(--panel); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.45); }
.g-tocbox:empty { display: none; }
.g-toc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 2px 8px; border-bottom: 2px solid rgba(255,255,255,.1); }
.g-toc-head b { flex: 1; font: 600 17px var(--font-head); color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.g-toc-all { font-size: 13.5px; padding: 3px 8px; border-style: dashed; }
.g-toc-x { display: none; padding: 3px 9px; }
.g-toc-list { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; margin-top: 6px; }
.g-tocgrp > summary { list-style: none; cursor: pointer; margin: 8px 0 2px; font: 600 12px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.g-tocgrp > summary::-webkit-details-marker { display: none; }
.g-tocgrp > summary::before { content: "▾ "; }
.g-tocgrp:not([open]) > summary::before { content: "▸ "; }
.g-tocgrp ul { list-style: none; margin: 0; padding: 0; }
.g-tocgrp li { display: flex; flex-wrap: wrap; align-items: flex-start; }
.g-tocgrp li > a { flex: 1; min-width: 0; padding: 4px 6px 4px 8px; font: 600 15px/1.25 var(--font-head); color: #e4e4ea; text-decoration: none;
  border-left: 3px solid rgba(255,255,255,.08); overflow-wrap: anywhere; }
.g-tocgrp li > a:hover { color: #ffff55; background: rgba(255,255,255,.05); }
.g-tocgrp li > a.on { color: #ffff55; border-left-color: #ffff55; background: rgba(255,255,85,.08); }
.g-toc-tw { flex: none; width: 26px; padding: 3px 0; font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.g-toc-tw:hover, .g-toc-tw[aria-expanded="true"] { color: #ffff55; }
.g-tocgrp .g-toc-sub { flex: 0 0 100%; margin: 0 0 4px 10px; }
.g-toc-sub a { display: block; padding: 2px 6px 2px 10px; font: 400 14.5px/1.3 var(--font-body); color: #cfd2de; text-decoration: none; border-left: 2px solid rgba(255,255,255,.08); }
.g-toc-sub a:hover { color: #ffff55; }

/* breadcrumbs */
.g-crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 10px; font: 600 15px var(--font-head); color: var(--muted); }
.g-crumbs a { color: #9fd3ff; text-decoration: none; }
.g-crumbs a:hover { color: #ffff55; text-decoration: underline; }
.g-crumbs b { color: #e8e8ee; font-weight: 600; }
.g-crumb-sep { color: #6c6f80; }

/* start page */
.g-hero { display: flex; gap: 16px; align-items: center; }
.g-hero img { width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.45)); flex: none; }
.g-hero h1 { margin: 0; font: 600 clamp(32px, 4.4vw, 46px)/1.05 var(--font-head); color: #fff; text-shadow: 3px 3px 0 var(--mc-shadow); }
.g-hero .lead { margin: 4px 0 0; }
.g-start-h { margin: 26px 0 10px; font: 600 clamp(22px, 3vw, 27px)/1.2 var(--font-head); color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); }
.g-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 12px; }
.g-tile { position: relative; display: flex; flex-direction: column; min-width: 0; background: rgba(0,0,0,.34); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), inset -2px -2px 0 rgba(0,0,0,.45); transition: transform .08s; }
.g-tile:hover { border-color: #ffff55; transform: translateY(-2px); }
.g-tile-main { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 14px 14px 8px; color: inherit; text-decoration: none; }
.g-tile-main::after { content: ""; position: absolute; inset: 0; }
.g-tile-main img { grid-row: 1 / 3; width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.5)); }
.g-tile-main b { font: 600 21px/1.1 var(--font-head); color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.g-tile-main small { grid-column: 2; grid-row: 2; font: 600 13px var(--font-head); color: var(--muted); }
.g-tile-d { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; line-height: 1.35; color: #d8dae4; }
.g-tile-keys { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; margin-top: auto; }
.g-tile-keys a { font: 600 14px var(--font-head); color: #e8e8e8; text-decoration: none; padding: 2px 8px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.12); }
.g-tile-keys a:hover { color: #ffff55; border-color: #ffff55; }
.g-tile-ext .g-tile-main small { color: #8fe37c; }
.g-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .g-path { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 14px; } }
.g-path a { display: grid; grid-template-columns: 30px 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; height: 100%; box-sizing: border-box;
  color: inherit; text-decoration: none; background: rgba(0,0,0,.26); border: 2px solid rgba(255,255,255,.08); }
.g-path a:hover { border-color: #ffff55; }
.g-path img { width: 32px; height: 32px; image-rendering: pixelated; }
.g-path-n { display: grid; place-items: center; width: 30px; height: 30px; font: 400 18px var(--font-pixel); color: #1b1b1b; background: #ffd84a;
  box-shadow: inset 2px 2px 0 #fff3a8, inset -2px -2px 0 #b8901c; border: 2px solid #000; box-sizing: border-box; }
.g-path-t { min-width: 0; }
.g-path-t b { display: block; font: 600 18px/1.15 var(--font-head); color: #fff; }
.g-path-t small { display: block; font-size: 14px; line-height: 1.3; color: var(--muted); }
.g-path-box > p { margin: -4px 0 10px; }
.g-kaipchips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-kaipchips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font: 600 15.5px/1.2 var(--font-head); color: #e8e8e8;
  text-decoration: none; background: rgba(0,0,0,.4); border: 2px solid rgba(255,216,74,.35); }
.g-kaipchips a:hover { color: #ffff55; border-color: #ffff55; }
.g-kaipchips img { width: 20px; height: 20px; image-rendering: pixelated; flex: none; }
details.g-allpages { margin-top: 26px; }
details.g-allpages > summary { cursor: pointer; font: 600 19px var(--font-head); color: #9fd3ff; padding: 6px 0; }
details.g-allpages > .g-body { margin-top: 10px; }

/* topic page */
.g-pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.g-pcards a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 10px; align-items: start; height: 100%; box-sizing: border-box; padding: 10px 12px;
  color: inherit; text-decoration: none; background: rgba(0,0,0,.28); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.06); }
.g-pcards a:hover { border-color: #ffff55; }
.g-pcards img { grid-row: 1 / 3; width: 32px; height: 32px; margin-top: 2px; image-rendering: pixelated; }
.g-pcards b { font: 600 18px/1.2 var(--font-head); color: #ffff55; }
.g-pcards span { font-size: 14.5px; line-height: 1.35; color: #cfd2de; }
.g-topicgrp { margin-top: 22px; }

/* long tables: the first 8 rows, then "Rodyti visas N eilutes" */
table.g-cut > tbody > tr:nth-child(n+9) { display: none; }
table.g-cut > tbody > tr:nth-child(8) > td { border-bottom: 2px dashed rgba(255,255,255,.25); }
.g-cutbtn { display: block; margin: 6px 0 14px; font-size: 15px; padding: 5px 12px; border-style: dashed; }

/* pager + up */
.g-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; margin-top: 16px; }
.g-pager a { display: grid; gap: 2px; text-decoration: none; white-space: normal; line-height: 1.2; min-width: 0; }
.g-pager a small { font: 600 13px var(--font-head); color: #dfe4ff; opacity: .85; text-shadow: none; }
.g-pager .prev { grid-column: 1; justify-self: start; text-align: left; }
.g-pager .next { grid-column: 3; justify-self: end; text-align: right; }
.g-totop { grid-column: 2; align-self: center; }
.g-pager:empty { display: none; }
.g-up { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; padding: 8px 12px;
  background: rgba(10,10,18,.9); box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.g-up[hidden] { display: none; }
@media (min-width: 901px) { .g-up { display: none; } }  /* the side tree covers the corner; the TOC has its own "↑ Į viršų" */
.g-toc-up { display: block; margin: 10px 0 2px 8px; font-size: 14px; padding: 4px 10px; }
.g-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); }
.g-scrim[hidden] { display: none; }

/* ---- tablets, 901–1199 px: the side tree stays, the TOC becomes a "Turinys" sheet opened from the sticky bar */
@media (max-width: 1199px) {
  .g-wrap, body.g-notoc .g-wrap { grid-template-columns: 240px minmax(0, 1fr); }
  .g-bar { position: sticky; top: var(--g-top, 56px); z-index: 15; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 8px;
    background: rgba(8, 8, 14, .9); border: 2px solid #000; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .g-bar .g-search { position: static; flex: 1; min-width: 0; }
  .g-bar .g-results { left: 0; right: 0; width: auto; top: calc(100% + 2px); max-height: calc(100vh - var(--g-top, 56px) - 70px); }
  .g-bar .g-search, .g-navbtn { display: none; }
  .g-tocbtn { margin-left: auto; }
  body.g-notoc .g-bar { display: none; }
  .g-page [id] { scroll-margin-top: calc(var(--g-top, 56px) + 62px); }
  .g-tocbox { position: fixed; top: auto; right: 10px; bottom: 10px; left: auto; z-index: 1001; display: none; width: min(380px, calc(100vw - 20px));
    max-height: min(78vh, 680px); background: #12131d; box-shadow: 0 12px 30px rgba(0,0,0,.6), inset 2px 2px 0 rgba(255,255,255,.06); }
  .g-tocbox.open { display: flex; }
  .g-toc-x { display: inline-block; }
  body.g-locked { overflow: hidden; }
}
/* ---- phones and small tablets, up to 900 px: one column, the tree is a drawer, search sits in the sticky bar */
@media (max-width: 900px) {
  .g-wrap, body.g-notoc .g-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 10px; }
  .g-bar, body.g-notoc .g-bar { display: flex; margin: 0 calc(-1 * var(--gutter)) 10px; padding: 6px var(--gutter); border-width: 0 0 2px; }
  body.g-isstart .g-bar { display: none; }
  .g-bar .g-search, .g-navbtn { display: block; }
  .g-bar .g-search input { font-size: 19px; padding: 6px 8px; }
  .g-where { display: none; }
  .g-tocbtn { margin-left: 0; }
  .g-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1001; width: min(340px, 88vw); max-height: none; background: #12131d;
    transform: translateX(-105%); transition: transform .18s ease-out, visibility 0s .18s; visibility: hidden; padding: 0 12px 16px; overflow: auto; }
  .g-side.open { transform: none; visibility: visible; transition: transform .18s ease-out; }
  .g-side .g-search { display: none; }
  .g-side-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -12px; padding: 10px 12px;
    background: #12131d; border-bottom: 2px solid #000; font: 600 20px var(--font-head); color: #ffff55; }
  .g-side-x { font: 600 18px var(--font-head); color: #fff; background: rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.2); padding: 2px 10px; cursor: pointer; }
  .g-nav { flex: none; overflow: visible; margin: 0; padding: 0; }
  .g-tocbox { left: 0; right: 0; bottom: 0; width: auto; max-height: 78vh; border-width: 2px 0 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .g-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .g-tile-main { grid-template-columns: 1fr; justify-items: start; gap: 6px; padding: 10px; }
  .g-tile-main img { grid-row: auto; width: 40px; height: 40px; }
  .g-tile-main b { font-size: 18px; }
  .g-tile-main small { grid-column: 1; grid-row: auto; }
  .g-tile-d, .g-tile-keys { display: none; }
  .g-hero img { width: 44px; height: 44px; }
  .g-search-big input { font-size: 21px; padding: 10px; }
  .g-path a { grid-template-columns: 28px 28px minmax(0, 1fr); gap: 8px; padding: 7px 8px; }
  .g-path img { width: 28px; height: 28px; }
  .g-path-n { width: 28px; height: 28px; font-size: 16px; }
  .g-path-t b { font-size: 17px; }
  .g-pager { grid-template-columns: 1fr 1fr; }
  .g-pager .prev, .g-pager .next { grid-row: 1; }
  .g-pager .next { grid-column: 2; }
  .g-totop { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .g-crumbs { font-size: 14px; }
}
