:root, [data-md-color-scheme="default"] {
  --md-text-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --md-code-font: ui-monospace, monospace;
  --md-primary-fg-color: #702e3e;
  --md-accent-fg-color: #8a394b;
  --md-default-bg-color: #f8f5ee;
  --md-default-fg-color: #302f2a;
  --md-typeset-a-color: #803148;
  --codex-paper: #fffcf5;
  --codex-line: #dfd8c9;
  --codex-muted: #706b60;
  --codex-gold: #9b7439;
}
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #202623;
  --md-default-fg-color: #e8e3d6;
  --md-default-fg-color--light: #c5bfb1;
  --md-default-fg-color--lighter: #a29c8f;
  --md-primary-fg-color: #342c2c;
  --md-accent-fg-color: #e8bc7d;
  --md-typeset-a-color: #e8bc7d;
  --codex-paper: #29302b;
  --codex-line: #465047;
  --codex-muted: #c0b9a9;
  --codex-gold: #dfb77c;
}
body { background-image: radial-gradient(ellipse at 80% 20%, #bda4700b, transparent 65%); }
.md-grid { max-width: 1320px; }
.md-banner { background: #253b32; color: #e9dfca; text-align: center; }
.md-banner__inner { margin: .45rem auto; }
.codex-announcement { font-size: .49rem; letter-spacing: .16em; }
.codex-announcement span { margin: 0 .8rem; color: #dfb77c; }
.md-header { box-shadow: none; }
.md-header__title { font-family: Georgia, serif; font-size: .95rem; }
.md-tabs { border-bottom: 1px solid #ffffff20; }
.md-tabs__link { font-size: .67rem; }
.md-typeset { font-size: .78rem; line-height: 1.75; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { font-family: Georgia, "Times New Roman", serif; color: var(--md-default-fg-color); }
.md-typeset h1 { font-size: 2rem; font-weight: 500; letter-spacing: -.035em; }
.md-typeset h2 { font-weight: 500; }
.md-typeset a:hover { text-decoration: underline; text-underline-offset: .2em; }
.md-content__inner { margin-top: 1.7rem; }
.md-sidebar { font-size: .7rem; }
.md-nav__link { border-radius: 4px; padding: .15rem 0; }
.md-nav__link--active { font-weight: 700; }
.md-typeset table:not([class]) { border: 1px solid var(--codex-line); border-radius: 7px; background: var(--codex-paper); box-shadow: none; font-size: .69rem; }
.md-typeset table:not([class]) th { background: #a58b5720; }
.md-typeset table:not([class]) td { border-top-color: var(--codex-line); }
.md-typeset blockquote { border-left-color: var(--codex-gold); color: var(--codex-muted); }
.codex-hero { position: relative; padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--codex-line); overflow: hidden; }
.md-typeset .eyebrow { font-family: var(--md-text-font); font-size: .51rem; letter-spacing: .18em; font-weight: 750; color: var(--codex-gold); margin: 0 0 1rem; }
.md-typeset .codex-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 1rem; max-width: 80%; }
.codex-hero h1 em { color: var(--md-typeset-a-color); font-weight: 400; }
.hero-description { color: var(--codex-muted); line-height: 1.8; font-size: .77rem; }
.codex-search { display: flex; align-items: center; gap: .7rem; width: min(23rem, 100%); border: 1px solid var(--codex-line); background: var(--codex-paper); color: var(--codex-muted); border-radius: 8px; padding: .8rem 1rem; margin-top: 1.5rem; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 5px 18px #32271906; }
.codex-search > span { font-size: 1.4rem; line-height: 1; color: var(--codex-gold); }
.codex-search kbd { margin-left: auto; }
.codex-search:hover, .codex-search:focus-visible { border-color: var(--codex-gold); }
.hero-seal { width: 10rem; height: 10rem; position: absolute; right: 1.6rem; top: 3.4rem; border: 1px solid var(--codex-line); outline: 1px solid var(--codex-line); outline-offset: -.55rem; border-radius: 50%; transform: rotate(-12deg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--codex-gold); opacity: .8; }
.hero-seal span { font-size: 2rem; line-height: 1; }
.hero-seal b { font: 3.3rem Georgia, serif; line-height: 1.2; }
.hero-seal small { font-size: .36rem; letter-spacing: .18em; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 2rem 0 1rem; }
.section-heading .eyebrow { margin-bottom: .3rem; }
.md-typeset .section-heading h2 { margin: 0; font-size: 1.7rem; }
.section-heading > span { font-size: .61rem; color: var(--codex-muted); padding-bottom: .25rem; }
.codex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.md-typeset .codex-card { display: block; position: relative; background: var(--codex-paper); border: 1px solid var(--codex-line); border-radius: 9px; padding: 1.15rem; color: var(--md-default-fg-color); transition: transform .16s, border-color .16s, box-shadow .16s; }
.md-typeset .codex-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--codex-gold); box-shadow: 0 8px 24px #3227190b; }
.codex-card:focus-visible { outline: 3px solid var(--codex-gold); outline-offset: 3px; }
.card-icon { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 7px; background: #a58b5715; color: var(--md-typeset-a-color); font-size: 1.5rem; }
.card-count { float: right; color: var(--codex-muted); font-size: .5rem; padding-top: .65rem; }
.md-typeset .codex-card h3 { font-size: 1.13rem; line-height: 1.3; font-weight: 500; margin: .8rem 0 .4rem; }
.codex-card p { font-size: .64rem; color: var(--codex-muted); margin: 0 0 1.1rem; min-height: 2.4em; line-height: 1.65; }
.card-action { display: flex; justify-content: space-between; font-size: .55rem; font-weight: 650; color: var(--md-typeset-a-color); border-top: 1px solid var(--codex-line); padding-top: .65rem; }
.table-note { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; margin: 1.6rem 0; background: #a58b5710; border: 1px solid var(--codex-line); border-radius: 8px; }
.table-note > span { color: var(--codex-gold); font-size: 1.5rem; }
.table-note strong { font: 1rem Georgia, serif; }
.table-note p { color: var(--codex-muted); font-size: .63rem; margin: .2rem 0 0; }
.reference-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; }
.reference-facts > span { display: flex; flex-direction: column; background: var(--codex-paper); border: 1px solid var(--codex-line); border-radius: 6px; padding: .4rem .8rem; font-weight: 650; min-width: 4rem; }
.reference-facts small { color: var(--codex-muted); text-transform: uppercase; font-size: .45rem; letter-spacing: .09em; font-weight: 500; }
.codex-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem max(1rem, calc((100vw - 1240px)/2)); border-top: 1px solid var(--codex-line); color: var(--codex-muted); font-size: .55rem; }
@media (min-width: 1220px) { .md-content:has(.codex-hero) { max-width: 1110px; margin: 0 auto; } }
@media (max-width: 900px) { .hero-seal { right: 0; width: 7rem; height: 7rem; opacity: .4; } .codex-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .codex-hero { padding: 1.5rem 0 2rem; } .md-typeset .codex-hero h1 { max-width: 100%; font-size: 2.5rem; } .hero-seal { display: none; } .section-heading > span { display: none; } .codex-grid { gap: .6rem; } .md-typeset .codex-card { padding: .85rem; } .card-count { float: none; display: block; padding-top: .4rem; } .md-typeset .codex-card h3 { font-size: 1.05rem; } .codex-footer { flex-direction: column; gap: .3rem; } }
@media (prefers-reduced-motion: reduce) { .md-typeset .codex-card { transition: none; } .md-typeset .codex-card:hover { transform: none; } }
@media print { .md-banner, .codex-search, .codex-footer { display: none; } }
.reference-breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--codex-muted); font-size: .57rem; margin-bottom: 1.2rem; }
.md-main__inner:has(.codex-hero) { margin-top: .6rem; }
.md-content:has(.codex-hero) .md-content__inner { margin-top: .6rem; }


.access-pending .md-main,.access-pending .md-search {visibility:hidden}
.view-role {display:flex;align-items:center;gap:.25rem;margin-inline:auto .5rem;font-size:.6rem;white-space:nowrap}
.view-role select {font:inherit;color:var(--md-default-fg-color);background:var(--md-default-bg-color);border:1px solid currentColor;border-radius:.15rem;padding:.15rem}
a[data-player-restricted] {display:none!important}

.access-blocked .md-sidebar--secondary {display:none}

.source-browser-controls {display:flex;flex-wrap:wrap;gap:.8rem;margin:1rem 0}
.source-browser-controls label {display:flex;flex:1 1 12rem;min-width:0;flex-direction:column;gap:.3rem;font-size:.7rem}
.source-browser-controls select,.source-browser-controls input {width:100%;min-width:0;padding:.5rem;border:1px solid var(--codex-line);border-radius:.2rem;background:var(--md-default-bg-color);color:var(--md-default-fg-color);font:inherit}
.source-browser-table {overflow-x:auto}
.source-browser [data-source-count] {font-size:.65rem;color:var(--codex-muted)}
.source-browser tr[hidden],.source-browser [hidden] {display:none!important}
