
.article.wk .wrap { max-width: var(--width); }
.wk-crumb { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 6px; }
.wk-crumb [aria-current] { color: #c1cdc4; }
.wk-kicker { display: block; font-family: var(--meta); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--volt); }
.article .wk-stamp { margin: 14px 0 0; font-family: var(--meta); font-size: 12px; letter-spacing: .06em; color: var(--muted); }

/* page: article + sidebar */
.wk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; margin-top: 18px; }
.wk-page { min-width: 0; }
.wk-head { display: grid; gap: 28px; align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.wk-head.has-info { grid-template-columns: minmax(0, 1fr) 290px; }
.wk-head h1 { margin-top: 6px; overflow-wrap: anywhere; }
.wk-title { min-width: 0; }
.wk-info { border: 1px solid var(--line); border-top: 2px solid var(--volt); border-radius: var(--radius); background: var(--surface); }
.article .wk-info h2 { margin: 0; padding: 12px 16px; font-size: 17px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.wk-info dl { margin: 0; padding: 10px 16px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.wk-info dt { color: var(--muted); font-family: var(--meta); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.wk-info dd { margin: 0; color: var(--paper); overflow-wrap: anywhere; }
.wk-body { max-width: 760px; }
.wk-body > :first-child { margin-top: 26px; }
.wk-body figure { margin: 26px 0; }
.wk-body figure img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.article .wk-body figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.wk-body blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.article .wk-body .callout { display: block; margin: 24px 0; padding: 14px 18px; color: #c1cdc4; font-size: 16.5px; line-height: 1.6; }
.wk-body .callout b { font-family: var(--meta); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-right: 10px; color: var(--volt); }
.article .wk-body .callout-note { border-left-color: #9dfaff; }
.wk-body .callout-note b { color: #9dfaff; }
.article .wk-body .callout-warning { border-left-color: var(--gold); }
.wk-body .callout-warning b { color: var(--gold); }
.wk-body .table-wrap { overflow-x: auto; margin: 18px 0; }
.article .wk-body .table-wrap table { margin: 0; }
.wk-body h4 { font-size: 16px; margin: 22px 0 6px; }
.wk-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.wk-body a.wl { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wk-body .wl-missing { color: #c1cdc4; text-decoration: underline dashed #8c9b9066; text-underline-offset: 3px; cursor: help; }
.wk-toc { margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff05; max-width: 420px; }
.wk-toc summary { cursor: pointer; padding: 10px 14px; font-family: var(--meta); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.article .wk-toc ol { margin: 0; padding: 0 14px 12px 34px; }
.article .wk-toc li { margin: 4px 0; font-size: 15px; line-height: 1.5; }
.article .wk-toc li.l3 { margin-left: 14px; list-style: circle; }
.wk-toc a { text-decoration: none; }
.wk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.wk-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; min-width: 0; transition: border-color .15s; }
.wk-pager a:hover { border-color: #7dff5266; }
.wk-pager small { font-family: var(--meta); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wk-pager b { color: var(--paper); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-prev small::before { content: "\2190  "; }
.wk-next { text-align: right; grid-column: 2; }
.wk-next small::after { content: "  \2192"; }
.wk-meta { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; }
.wk-meta a { color: var(--muted); }
.wk-meta a:hover { color: var(--volt); }
.wk-side { position: sticky; top: 90px; display: grid; gap: 22px; max-height: calc(100vh - 110px); overflow: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.article .wk-side h2 { margin: 0 0 8px; font-family: var(--meta); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.article .wk-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.article .wk-side li { margin: 0; font-size: 14.5px; line-height: 1.4; }
.wk-side li a { display: block; padding: 5px 8px; border-radius: 4px; color: #c1cdc4; text-decoration: none; }
.wk-side li a:hover { background: #ffffff0a; color: var(--paper); }
.wk-side li a[aria-current="page"] { background: #7dff5214; color: var(--volt); }

/* search */
.wk-search { position: relative; }
.wk-search input { width: 100%; box-sizing: border-box; padding: 11px 14px 11px 38px; font: inherit; font-size: 15px; color: var(--paper); background: var(--ink) no-repeat 13px 50% / 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238c9b90' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E"); border: 1px solid var(--line); border-radius: 6px; }
.wk-search input:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px #7dff5226; }
.article .wk-results { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.wk-results:empty { display: none; }
.article .wk-results li { margin: 0; }
.wk-results a { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; }
.wk-results a:hover, .wk-results a:focus-visible { border-color: #7dff5266; }
.wk-results a b { display: block; color: var(--paper); font-size: 15px; }
.wk-results a span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.article .wk-results .wk-none { padding: 9px 2px; color: var(--muted); font-size: 14px; }

/* hub, wiki front, section */
.wk-hero { padding: 18px 0 8px; }
.wk-hero h1 { margin-top: 8px; }
.wk-hero .lede { max-width: 62ch; }
.wk-hero .wk-search { max-width: 560px; margin-top: 24px; }
.wk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 26px 0; }
.wk-card { display: grid; align-content: start; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.wk-card:hover { border-color: #7dff5266; transform: translateY(-1px); }
.wk-card b { color: var(--paper); font-size: 18px; }
.wk-card span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.wk-card em { font-style: normal; font-family: var(--meta); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
.wk-card.is-empty { background: transparent; border-style: dashed; }
.wk-card.is-empty em { color: var(--muted); }
.wk-group { margin-top: 34px; }
.article .wk-group > h2, .article .wk-sections h2 { margin: 0 0 12px; font-family: var(--meta); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.article .wk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.article .wk-list li { margin: 0; }
.wk-list a { display: grid; align-content: start; gap: 3px; height: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; transition: border-color .15s; }
.wk-list a:hover { border-color: #7dff5266; }
.wk-list b { color: var(--paper); font-size: 15.5px; }
.article .wk-list span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.article .wk-empty { color: var(--muted); }
.article .wk-recent { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.article .wk-recent li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #1d2620; padding: 0; margin: 0; }
.wk-recent a { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 10px 0; text-decoration: none; }
.wk-recent a b { color: var(--paper); font-weight: 600; font-size: 16px; }
.wk-recent a:hover b { color: var(--volt); }
.wk-recent a span { font-family: var(--meta); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wk-recent time { color: var(--muted); font-family: var(--meta); font-size: 12px; white-space: nowrap; }
.wk-sections { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.article .wk-sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article .wk-sections li { margin: 0; }
.wk-sections a { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: #c1cdc4; text-decoration: none; font-size: 14px; }
.wk-sections a:hover { border-color: #7dff5266; color: var(--paper); }
.wk-join { margin-top: 40px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--volt); border-radius: var(--radius); background: var(--surface); color: #c1cdc4; font-size: 15.5px; line-height: 1.6; max-width: 760px; }
.wk-join b { color: var(--paper); }

/* featured image: a wide hero at the head of the page, the title rising out of its lower edge */
.wk-cover { position: relative; margin: 0 0 -46px; aspect-ratio: 21 / 9; max-height: 440px; width: 100%; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.wk-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wk-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,6,0) 45%, rgba(5,8,6,0.72) 82%, var(--ink) 100%); pointer-events: none; }
.wk-page.has-cover .wk-head { position: relative; z-index: 1; padding-left: 22px; padding-right: 22px; }
.wk-page.has-cover .wk-info { box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
.wk-list a.has-thumb { padding: 0 0 13px; overflow: hidden; }
.wk-list a.has-thumb > b, .wk-list a.has-thumb > span { padding: 0 15px; }
.wk-thumb { display: block; width: 100%; margin: 0 0 10px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--surface); }
.wk-mini { width: 64px; height: 36px; flex: none; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); align-self: center; }
.wk-results a.has-thumb { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.wk-results a.has-thumb img { grid-row: span 2; width: 72px; height: 40px; object-fit: cover; border-radius: 4px; }
@media (max-width: 720px) {
  .wk-cover { aspect-ratio: 16 / 9; margin-bottom: -30px; border-radius: 8px; }
  .wk-page.has-cover .wk-head { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 960px) {
  .wk-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .wk-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 720px) {
  .wk-head.has-info { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wk-pager { grid-template-columns: minmax(0, 1fr); }
  .wk-next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .wk-card, .wk-list a, .wk-pager a { transition: none; } .wk-card:hover { transform: none; } }
@media print { .wk-side, .wk-pager, .wk-meta, .wk-search { display: none; } .wk-layout { display: block; } }
