/* Pages (wiki) */
.pg { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pg-side { flex: 1 1 260px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.pg-body { flex: 999 1 520px; min-width: 0; }
.pg-side .row input { flex: 1 1 140px; width: auto; }
.pg-side ul { list-style: none; margin: 0; padding: 0; }
.pg-side ul ul { padding-left: 16px; border-left: 1px solid var(--line); margin-left: 6px; }
.pg-side li a { display: block; padding: 10px 8px; text-decoration: none; border-left: 3px solid transparent; }
.pg-side li a:hover { text-decoration: underline; }
.pg-side li a[aria-current="page"] { background: var(--card); border-left-color: var(--accent-dark); font-weight: 500; }
.pg-new { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.pg-side details summary { cursor: pointer; padding: 12px 0; font: 12px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pg-check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.pg-check input { width: 22px; min-height: 22px; height: 22px; flex: none; }
.pg-title { font-size: 30px; font-weight: 400; letter-spacing: -0.5px; }
.pg-content { max-width: 760px; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.pg-content h2 { font-size: 24px; margin: 28px 0 8px; }
.pg-content h3 { font-size: 19px; font-weight: 600; margin: 20px 0 6px; }
.pg-content p, .pg-content ul, .pg-content ol, .pg-content blockquote, .pg-content pre, .pg-content table { margin: 0 0 14px; }
.pg-content blockquote { border-left: 3px solid var(--accent-dark); padding-left: 16px; color: var(--muted); }
.pg-content pre { background: #fff; border: 1px solid var(--line); padding: 12px; overflow-x: auto; font: 14px var(--mono); white-space: pre-wrap; }
.pg-content table { display: block; overflow-x: auto; width: auto; max-width: 100%; }
.pg-content th, .pg-content td { border: 1px solid var(--line); padding: 8px 12px; min-width: 110px; font: inherit; color: inherit; white-space: normal; }
.pg-content th { background: #ecece8; font-weight: 600; }
.pg-content img { max-width: 100%; height: auto; }
.pg-content a { color: var(--accent-dark); }
.pg-edit { background: #fff; border: 1px solid #6e736d; padding: 20px; min-height: 320px; max-width: none; }
.pg-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pg-bar input { flex: 1 1 200px; width: auto; }
.pg-tags, .pg-history { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pg-tags ul, .pg-history ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-tags li, .pg-history li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pg-tags .row select { flex: 1 1 160px; width: auto; }
.chip { font: 13px var(--mono); letter-spacing: 0.5px; text-transform: none; min-height: 44px; padding: 10px 14px; border: 1px solid #6e736d; background: transparent; color: var(--ink); }
.chip.on { background: var(--ink); color: #ececE8; border-color: var(--ink); }
span.chip { display: inline-flex; align-items: center; }
.pg-spaces li a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-left-width: 3px; margin-bottom: 6px; background: var(--card); }
.pg-spaces li a span { font: 12px var(--mono); color: var(--muted); }
.pg-spaces li a[aria-current="true"] { border-color: var(--ink); border-left-color: var(--accent-dark); font-weight: 500; }
