/* a2d 2026-12-03: справочник сайта (wlib.js). Цвета — из site.css. */

.l-wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding: 22px 28px 60px; }
.l-nav { display: flex; gap: 4px; margin: 0 0 26px; border-bottom: 1px solid #2a221b; overflow-x: auto; scrollbar-width: none; }
.l-nav a { flex: none; padding: 9px 14px; color: #c3b59c; font-size: 14.5px; text-decoration: none; border-bottom: 2px solid transparent; }
.l-nav a:hover { color: #fff3d6; }
.l-nav a[aria-current] { color: var(--amber-2); border-bottom-color: var(--amber); }
.l-nav a:focus-visible { outline-offset: -3px; }
.l-lead { max-width: 70ch; margin: -10px 0 22px; color: var(--muted); }
.l-h { margin: 30px 0 12px; font-size: 21px; }
.l-cnt { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.l-note { max-width: 70ch; margin: 12px 0 0; color: #cdbfa6; font-size: 14px; }
.l-info { max-width: 70ch; margin: 14px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.l-ic { vertical-align: -3px; }
.l-tab .l-ic, .l-people .l-ic { width: 24px; max-height: 24px; object-fit: contain; }
.l-tab .l-who .l-ic { width: auto; max-width: 24px; }
.l-tab .l-who { vertical-align: middle; }
.l-tab .l-clan .l-ic { width: 24px; }
.l-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.l-who i { font-style: normal; color: var(--muted); font-size: 13px; }
.l-who em { font-style: normal; color: var(--amber-2); font-size: 12.5px; }

/* вещи */
.l-lib { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 34px; align-items: start; }
.l-side { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; padding: 2px 8px 2px 2px; scrollbar-width: thin; }
.l-find { display: flex; gap: 6px; margin-bottom: 14px; }
.l-find input, .l-bar input, .l-bar select { min-height: 36px; padding: 5px 10px; min-width: 0; background: #0f0c0a; border: 1px solid #4a3d31; border-radius: 7px; color: var(--text); font: 14.5px var(--body); }
.l-find input { flex: 1; width: 100%; }
.l-find input:focus, .l-bar input:focus, .l-bar select:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 2px rgba(232, 163, 61, .28); }
.l-menu summary { display: none; padding: 9px 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-weight: 600; }
.l-menu h3 { margin: 14px 0 4px; font-size: 15px; color: var(--bronze-2); }
.l-menu h3:first-of-type { margin-top: 0; }
.l-menu ul { margin: 0; padding: 0; list-style: none; }
.l-menu li { display: flex; align-items: baseline; gap: 8px; }
.l-menu a { flex: 1; padding: 3px 8px; border-radius: 5px; color: #d6c9b2; font-size: 14px; text-decoration: none; }
.l-menu a:hover { background: #1c1713; color: #fff3d6; }
.l-menu a[aria-current] { background: #2d2114; color: var(--amber-2); }
.l-menu i { font-style: normal; font-size: 12px; color: #9c8d76; font-variant-numeric: tabular-nums; }
.l-plate { flex: none; display: grid; place-items: center; width: 68px; height: 68px; background: radial-gradient(circle at 50% 40%, #e9dfcb, #b9a988 92%); border: 1px solid #6d5a3c; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 246, 224, .25), inset 0 -8px 14px rgba(74, 52, 24, .28); overflow: hidden; }
.l-plate img { max-width: 60px; max-height: 60px; clip-path: inset(2px); }
.l-plate img.x2 { image-rendering: pixelated; clip-path: inset(3px); }
.l-plate.big { width: 132px; height: 132px; }
.l-plate.big img { max-width: 120px; max-height: 120px; }
.l-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.l-card { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 14px 10px 12px; background: var(--panel); border: 1px solid #2f261f; border-radius: 10px; text-align: center; text-decoration: none; color: var(--text); }
.l-card:hover, .l-item:hover { border-color: var(--bronze-2); background: #221a13; }
.l-card b { margin-top: 6px; font: 700 15.5px/1.25 var(--head); color: #fff3d6; }
.l-card small, .l-item small { color: var(--muted); font-size: 12.5px; }
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 258px), 1fr)); gap: 8px; }
.l-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px; background: var(--panel); border: 1px solid #2f261f; border-radius: 9px; text-decoration: none; color: var(--text); content-visibility: auto; contain-intrinsic-size: auto 86px; }
.l-item.art { border-color: #6d5426; }
.l-it { min-width: 0; display: grid; gap: 2px; }
.l-it b { font-weight: 600; font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; color: #f3e8d2; }
.l-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 14px; }
.l-bar label, label.l-bar { display: grid; gap: 4px; font-size: 13px; color: #cdbfa6; }
.l-bar label:first-child { flex: 1 1 180px; max-width: 320px; }
label.l-bar.one { max-width: 320px; margin-bottom: 18px; }
.l-crumb { display: flex; gap: 8px; margin: 0 0 16px; font-size: 14px; }
.l-crumb i { font-style: normal; color: var(--muted); }
.l-top { display: flex; gap: 22px; align-items: flex-start; margin: 0 0 22px; }
.l-top h1 { margin: 0 0 8px; font-size: 29px; overflow-wrap: anywhere; }
.l-top h1.l-who { gap: 10px; }
.l-art { margin: 0 0 8px; color: var(--amber-2); font: 700 15px var(--head); }
.l-motto { margin: 0 0 12px; font: italic 17px var(--head); color: #d9ccb4; overflow-wrap: anywhere; }
.l-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 8px 0 0; }
.l-facts dt { font-size: 12.5px; color: var(--muted); }
.l-facts dd { margin: 0; font-weight: 600; }
.l-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; align-items: start; }
.l-pr { padding: 14px 16px; background: var(--panel); border: 1px solid #2f261f; border-radius: 10px; }
.l-pr h2 { margin: 0 0 8px; font-size: 16.5px; color: var(--bronze-2); }
.l-pr ul { margin: 0; padding: 0; list-style: none; }
.l-pr li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-top: 1px solid #261f19; font-size: 14.5px; }
.l-pr li:first-child { border-top: 0; }
.l-pr b { flex: none; max-width: 60%; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff3d6; }
.l-steps { margin: 0 0 14px; padding: 0; list-style: none; }
.l-steps li { display: flex; gap: 14px; padding: 5px 0; border-top: 1px solid #261f19; }
.l-steps b { flex: none; width: 82px; color: var(--amber-2); font-weight: 600; }

/* таблицы */
.l-scroll { overflow-x: auto; }
.l-tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.l-tab th { padding: 8px 12px; text-align: left; font: 600 13.5px/1.3 var(--body); color: var(--bronze-2); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.l-tab td { padding: 7px 12px; border-bottom: 1px solid #221b16; }
.l-tab .n { text-align: right; }
.l-tab .n:first-child { width: 78px; }
.l-tab td.n { white-space: nowrap; }
.l-tab tbody tr:hover { background: #17120f; }
.l-tab tr.lvl td { background: #241b12; color: #fff3d6; font-weight: 600; white-space: nowrap; }
.l-tab tr.me td { background: #2d2114; }
.l-tab .ch { width: 70px; font-size: 13px; white-space: nowrap; }
.l-tab .up { color: #9cc98a; }
.l-tab .dn { color: var(--red); }
.l-tab .eq { color: var(--muted); }
.l-tab.small td { padding: 5px 10px; }
.l-tab.small th { padding: 6px 10px; }
.l-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.l-stat { min-width: 0; padding: 18px 18px 14px; background: var(--panel); border: 1px solid #2f261f; border-radius: 10px; }
.l-stat h2 { margin: 0; font-size: 20px; }
.l-stat h3 { margin: 12px 0 4px; font-size: 15px; color: var(--amber-2); }
.l-stat ul { margin: 0; padding-left: 18px; }
.l-sub { margin: 0 0 8px; color: var(--muted); font: italic 14.5px var(--head); }
.l-each { margin: 0 0 8px; font-size: 14px; color: #d9ccb4; }
.l-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 14px; }
.l-jump span { margin-right: 6px; color: var(--muted); }
.l-tabs, .l-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.l-pages { margin: 18px 0 0; }
.l-tabs button, .l-pages button, .l-jump button { min-height: 34px; padding: 4px 14px; background: #14100d; border: 1px solid #4a3d31; border-radius: 7px; color: #e9dcc3; font: 500 14px var(--body); cursor: pointer; }
.l-pages button, .l-jump button { min-width: 36px; padding: 4px 8px; }
.l-tabs button:hover, .l-pages button:hover, .l-jump button:hover { border-color: var(--bronze-2); color: #fff3d6; }
.l-tabs button[aria-pressed=true], .l-pages button[aria-current] { background: #5a3a12; border-color: var(--amber); color: #fff3d6; }
.l-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 6px 18px; }
.l-dip { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.l-now { padding: 18px 20px; background: var(--panel); border: 1px solid #4a3a2a; border-radius: 10px; }
.l-now h2 { margin: 0 0 4px; font-size: 21px; }
.l-now h3 { margin: 14px 0 6px; font-size: 16px; }
.l-now p { margin: 0; color: #cdbfa6; }
.l-log { max-height: 420px; overflow-y: auto; padding: 10px 16px; background: #100c0a; border: 1px solid #2f261f; border-radius: 10px; }
.l-log p { margin: 0; padding: 4px 0; }
.l-log time { margin-right: 10px; color: #9c8d76; font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  .l-wrap { padding: 14px 18px 44px; }
  .l-lib { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .l-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .l-menu summary { display: block; }
  .l-menu[open] { padding-bottom: 8px; border-bottom: 1px solid #2a221b; }
  .l-menu h3:first-of-type { margin-top: 14px; }
}
@media (max-width: 520px) {
  .l-top { flex-direction: column; gap: 14px; }
  .l-plate.big { width: 104px; height: 104px; }
  .l-plate.big img { max-width: 92px; max-height: 92px; }
  .l-cards { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .l-tab td, .l-tab th { padding: 6px 8px; }
  .l-bar label { flex: 1 1 130px; }
}
