/* The character index shares site typography. CSS also provides a compact native directory. */
[data-all-heroes] {
  --ink:#183b30; --muted:#55685d; --rule:#c8d0c0; --base:#f6f3e9; --lime:#d9f27d;
  color:var(--ink); background:var(--base); padding:0 max(20px,calc((100vw - 1320px)/2)) clamp(48px,6vw,96px);
}
.ah-heading {padding:clamp(28px,4.8vw,68px) 0 clamp(22px,3vw,42px); border-bottom:1px solid var(--rule)}
.ah-heading h1 {margin:15px 0 0; font-family:Georgia,"Songti SC","Yu Mincho",serif; font-weight:400; font-size:clamp(2.6rem,6.8vw,6.2rem); color:var(--ink); letter-spacing:-.054em; line-height:1.07; overflow-wrap:anywhere}
.ah-heading h1 span {vertical-align:super; display:inline-block; border:1px solid #a9bc9c; border-radius:2em; background:#e3eccf; padding:.24em .48em; font:600 clamp(.9rem,1.8vw,1.5rem)/1.1 system-ui,sans-serif; letter-spacing:-.015em}
.ah-back {display:inline-flex; align-items:center; gap:.55rem; min-height:36px; color:var(--ink); font-size:.93rem; font-weight:600; text-decoration:none}
.ah-back span {width:27px;height:27px; display:grid; place-items:center; border:1px solid var(--rule); border-radius:50%; line-height:1}
.ah-back:hover {text-decoration:underline}
.ah-directory {padding:clamp(16px,2.5vw,34px) 0 0}
.ah-filters {display:grid; grid-template-columns:minmax(10rem,1.35fr) minmax(11rem,1fr) auto; align-items:end; gap:clamp(10px,1.4vw,20px); max-width:62rem}
.ah-filters[hidden],.ah-grid article[hidden],[data-all-heroes] #hero-empty[hidden] {display:none!important}
.ah-filters label {width:100%;max-width:100%;display:grid; gap:.33rem; min-width:0; color:var(--muted); font:600 .84rem/1.4 system-ui,sans-serif}
.ah-filters input,.ah-filters select,.ah-filters button {box-sizing:border-box; min-width:0; min-height:45px; margin:0; border:1px solid #aebca9; border-radius:9px; padding:.59rem .8rem; font:inherit; font-size:1rem; color:var(--ink); background:#fffdf6}
.ah-filters input,.ah-filters select {width:100%; font-weight:400}
.ah-filters button {display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;padding-inline:1.05rem; font-size:.91rem; font-weight:600; background:#e3eccf; cursor:pointer}
.ah-filters button:hover {background:var(--lime)}
[data-all-heroes] :focus-visible {outline:3px solid #657b31; outline-offset:3px}
[data-all-heroes] #hero-count {margin:17px 0 14px;color:var(--muted);font-size:.88rem;font-variant-numeric:tabular-nums}
.ah-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,2.8vw,44px) clamp(12px,1.8vw,28px)}
.ah-grid .world-card {min-width:0;display:flex;align-items:stretch;flex-direction:column;position:relative;isolation:isolate;color:var(--ink)}
.ah-grid .world-art {display:none;position:relative}
[data-all-heroes][data-enhanced] .world-art {display:grid; place-items:center; aspect-ratio:1; height:auto; min-height:0; overflow:hidden; border-radius:13px; background:#e6e9d9}
[data-all-heroes][data-enhanced] article:nth-child(3n+2) .world-art {background:#eee0cd}
[data-all-heroes][data-enhanced] article:nth-child(3n+3) .world-art {background:#dfe7df}
.ah-grid .world-art img {position:absolute;inset:0;width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:contain; padding:7%; box-sizing:border-box; transition:transform .24s ease; opacity:0}
.ah-grid .world-art img[src] {opacity:1}
.ah-grid .world-card-copy {display:block; padding:.84rem 0 0}
.ah-grid .world-kicker {margin:0 0 .4rem;color:var(--muted);font:650 .7rem/1.35 system-ui,sans-serif;letter-spacing:.035em}
.ah-grid h3 {font:400 clamp(1.2rem,2.25vw,2rem)/1.12 Georgia,"Songti SC","Yu Mincho",serif;letter-spacing:-.038em;color:var(--ink);margin:0 0 .4rem;overflow-wrap:anywhere}
.ah-grid h3 a {color:inherit;text-decoration:none}
.ah-grid .world-card-tea {font-size:.93rem;line-height:1.48;color:var(--muted);margin:0}
.ah-grid .world-card-copy a[data-traffic-target] {display:inline-block;position:relative;z-index:2;margin-top:.45rem}
.ah-grid [data-primary-profile]::after {content:"";position:absolute;inset:0;z-index:1;border-radius:12px}
.ah-grid [data-primary-profile]:focus-visible::after {outline:3px solid #657b31;outline-offset:3px}
@media(hover:hover){.ah-grid article:hover .world-art img {transform:scale(1.035)}.ah-grid article:hover h3 a {text-decoration:underline;text-underline-offset:.12em}}
[data-all-heroes]:not([data-enhanced]) article {border-top:1px solid var(--rule)}
.ah-portrait {position:relative;z-index:2;margin:.55rem 0 0;font-size:.85rem;color:var(--muted)}
.ah-portrait summary {cursor:pointer;min-height:30px;width:fit-content}
.ah-portrait span {display:none}
.ah-portrait[open] span {display:block;aspect-ratio:1.13;background:#e6e9d9 var(--portrait) center/contain no-repeat;border-radius:10px}
@media(max-width:920px){.ah-grid {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:660px){
 [data-all-heroes]{padding-inline:16px}
 .ah-heading{padding:22px 0 18px}.ah-heading h1 {margin-top:7px}
 .ah-filters{grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}
 .ah-filters .world-search {grid-column:1/-1}
 .ah-filters button {width:46px;min-height:45px;padding:0}
 .ah-filters button span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .ah-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
 .ah-grid .world-card-copy {padding-top:.6rem}
 .ah-grid .world-kicker {font-size:.65rem}
 .ah-grid .world-card-tea {font-size:.84rem;line-height:1.38}
}
@media(prefers-reduced-motion:reduce){.ah-grid .world-art img{transition:none}}
