@charset "UTF-8";
/* assets/css/codex.css */
html body.codex-page .filter-panel { padding: var(--sp-3); border-radius: 20px; top: 88px; max-height: calc(100vh - 104px); overflow: auto; scrollbar-width: thin; }
.codex-page .cx-top { display: flex; gap: var(--sp-1); align-items: stretch; }
.codex-page .cx-top .input-group { flex: 1 1 auto; min-width: 0; }
.codex-page .cx-top .input-group-text, .codex-page .cx-top .form-control { min-height: 42px; }
html body.codex-page .filter-title { margin: var(--sp-3) 0 10px; }
.codex-page .chip-check { position: relative; margin: 0 6px 8px 0; }
.codex-page .chip-check input { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.codex-page .chip-check span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-small); font-weight: 700;
  color: #d8d3ea; background: rgba(255,255,255,.04); border: 1px solid rgba(249,231,161,.22); transition: background .2s, border-color .2s, color .2s; }
.codex-page .chip-check:hover span { border-color: rgba(249,231,161,.6); color: #fefee2; }
.codex-page .chip-check input:focus-visible + span { outline: 2px solid #e9bf55; outline-offset: 2px; }
.codex-page .chip-check input:checked + span { color: #1a1206; border-color: transparent; background: linear-gradient(180deg, #fff1b8, #e9bf55 55%, #c08d2c); box-shadow: 0 4px 12px rgba(217,179,90,.25); }
.codex-page .chip-check input:checked + span[class*="text-"] { color: #1a1206 !important; }
.codex-page .cx-sort { display: flex; flex-wrap: wrap; }
.codex-page .cx-toggle { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: var(--fs-small); font-weight: 800; white-space: nowrap;
  color: #f3dc8f; background: rgba(217,179,90,.1); border: 1px solid rgba(217,179,90,.4); }
.codex-page .cx-toggle[aria-expanded="true"] { background: rgba(217,179,90,.2); color: #fefee2; }
.codex-page .cx-toggle:focus-visible { outline: 2px solid #e9bf55; outline-offset: 2px; }
.codex-page .cx-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: .7rem; color: #1a1206; background: #e9bf55; }
.codex-page .cx-n[hidden] { display: none; }
.codex-page .cx-reset { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-2); padding: 0; border: 0; background: none; font-size: var(--fs-small); font-weight: 700;
  color: #e9bf55; text-decoration: underline; text-underline-offset: 4px; }
.codex-page .cx-reset[hidden] { display: none; }
html body.codex-page .discovery-bar { padding: var(--sp-2) var(--sp-3); border-radius: 18px; }
@media (max-width: 991.98px) {
  html body.codex-page .filter-panel { position: static; max-height: none; overflow: visible; padding: 12px; border-radius: 18px; }
  .codex-page .cx-toggle { display: inline-flex; }
  .codex-page .cx-body { display: none; padding: 4px 4px 2px; }
  .codex-page .cx-body.is-open { display: block; }
  html body.codex-page .filter-title { margin: var(--sp-2) 0 8px; }
}
html body.codex-page .codex-index { margin-top: var(--sp-6); padding: var(--sp-4); border-radius: 22px;
  background: linear-gradient(180deg, rgba(30,24,66,.6), rgba(10,10,30,.85)); border: 1px solid rgba(217,179,90,.2); box-shadow: 0 20px 44px rgba(0,0,0,.35); }
.codex-page .cx-index-head { max-width: 720px; margin-bottom: var(--sp-3); }
html body.codex-page .cx-index-head h2 { margin: 0 0 6px; font-size: var(--fs-h3); font-weight: 900; }
.codex-page .cx-index-head p { margin: 0; font-size: var(--fs-small); color: #b9b3d6; }
.codex-page .cx-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--sp-2); }
.codex-page .codex-index-group { padding: var(--sp-2) 18px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-top: 2px solid color-mix(in srgb, var(--fc) 70%, transparent); }
.codex-page .codex-index-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--fs-caption); font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--fc) 70%, #fff); }
.codex-page .codex-index-group h3 i { color: var(--fc); }
.codex-page .codex-index-group ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.codex-page .codex-index-group li { break-inside: avoid; overflow-wrap: anywhere; padding: 3px 0; font-size: var(--fs-small); line-height: 1.35; }
.codex-page .codex-index-group a { color: #ddd8f0; text-decoration: none; }
.codex-page .codex-index-group a:hover, .codex-page .codex-index-group a:focus-visible { color: #f3dc8f; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 575.98px) {
  html body.codex-page .codex-index { padding: var(--sp-3) 18px; margin-top: var(--sp-4); }
  .codex-page .cx-index-grid { grid-template-columns: minmax(0, 1fr); }
}
.codex-page #cardGrid:empty { min-height: 150vh; }
.codex-page .cx-more { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-md); margin: var(--sp-3) auto 0; padding: 0 24px; border-radius: 999px;
  font-size: var(--fs-body); font-weight: 700; color: #f3dc8f; background: rgba(217,179,90,.1); border: 1px solid rgba(217,179,90,.45); }
.codex-page .cx-more:hover, .codex-page .cx-more:focus-visible { color: #fff4c2; background: rgba(217,179,90,.2); }
.codex-page .cx-more:focus-visible { outline: 2px solid #e9bf55; outline-offset: 2px; }
.codex-page .cx-more[hidden] { display: none; }
.codex-page .codex-index, .codex-page .codex-index-group { scroll-margin-top: 84px; }
