:root{color-scheme:light;--ink:#152b46;--muted:#425871;--line:#cad7e6;--paper:#eff4fa;--accent:#205b97;--dark:#182f50;--white:#fff;font:100%/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}.wrap{width:min(100% - 2rem,75rem);margin-inline:auto}.skip{position:absolute;left:.5rem;top:-5rem;background:white;padding:.5rem;z-index:3}.skip:focus{top:.5rem}header{background:var(--dark);color:white;border-bottom:4px solid #83b1e2}.mast{display:flex;align-items:center;gap:1rem;padding:1.55rem 0}.mark{width:3.1rem;height:3.1rem;border:1px solid #87add4;border-radius:.65rem;display:grid;place-items:center;flex:none;color:#c5ddf7;font-size:1.35rem}h1{font-size:clamp(1.45rem,4vw,2.4rem);line-height:1.1;margin:.3rem 0 0}.summary{margin-left:auto;color:#e0edfc;font-size:.93rem;text-align:right}form{margin-top:1.25rem;background:white;border:1px solid var(--line);border-radius:.7rem;padding:1rem}label{display:block;color:var(--muted);font-size:.875rem;font-weight:650}input,select,button{font:inherit}input,select{width:100%;margin-top:.25rem;padding:.53rem .65rem;min-height:2.7rem;border:1px solid #8fa6c3;border-radius:.38rem;background:#fff;color:var(--ink);font-size:1rem}select{appearance:none;padding-right:2rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23415b5e' stroke-width='2'/%3E%3C/svg%3E");background-position:right .55rem center;background-size:.9rem;background-repeat:no-repeat}select:disabled{background-color:#eaf0f8;color:#526780}.selectors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:.75rem}.resultbar{display:flex;align-items:center;justify-content:space-between;margin:.65rem 0;gap:1rem}.resultbar p{margin:0;color:var(--muted);font-weight:550}button{cursor:pointer;color:var(--ink)}.secondary,#close{background:white;border:1px solid var(--line);border-radius:.4rem;padding:.37rem .75rem;min-height:2.55rem}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(10.6rem,1fr));gap:.8rem;margin-bottom:1.45rem}.card{width:100%;text-align:left;background:white;border:1px solid var(--line);border-radius:.6rem;overflow:hidden;padding:0;display:flex;flex-direction:column;min-width:0}.card:hover,.secondary:hover,#close:hover{border-color:var(--accent);background:#f5faff}.art{display:grid;width:100%;aspect-ratio:1.32;place-items:center;background:radial-gradient(ellipse at center,#f8fbff 15%,#dce7f3 95%);border-bottom:1px solid var(--line)}.art{position:relative;overflow:hidden}.art img{position:absolute;inset:0;margin:auto;display:block;width:90%;height:100%;object-fit:contain;object-position:center}.card-info{padding:.55rem .65rem .7rem;width:100%}.code{color:var(--accent);font-family:ui-monospace,monospace;font-size:.86rem;font-weight:750}.card-name{display:block;font-size:.93rem;font-weight:675;line-height:1.3;margin-top:.15rem;overflow-wrap:anywhere}.meta{display:block;font-size:.82rem;color:var(--muted);margin-top:.2rem;overflow-wrap:anywhere}h2.group{font-size:1.13rem;margin:1.3rem 0 .45rem;border-bottom:1px solid var(--line);padding-bottom:.35rem}h2.group span{font-size:.88rem;color:var(--muted);margin-left:.5rem;font-weight:500}footer{font-size:.91rem;color:var(--muted);padding:1rem 0 2rem;border-top:1px solid var(--line)}dialog{width:min(52rem,calc(100% - 1rem));max-height:calc(100% - 1rem);padding:0;border:1px solid var(--line);border-radius:.8rem;color:var(--ink);background:white}dialog::backdrop{background:#142940a8}.dialogbar{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:white;padding:.55rem 1rem}#detail-body{padding:1rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:1rem}.detail-art{overflow:hidden;border:1px solid var(--line);border-radius:.6rem;background:#e5edf7;margin:0;align-self:start}.detail-art img{display:block;width:100%;height:auto;object-fit:contain;aspect-ratio:auto}.detail-art figcaption{padding:.5rem .75rem;background:white;font-size:.88rem;color:var(--muted)}#detail-title{line-height:1.17;margin:0 0 .6rem;font-size:1.48rem;overflow-wrap:anywhere}dl{margin:0;font-size:.91rem}.pair{display:grid;grid-template-columns:minmax(6.6rem,.8fr) minmax(0,1.2fr);gap:.5rem;border-bottom:1px solid #e8eef5;padding:.28rem 0}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.history{margin-top:1rem;background:var(--paper);border-radius:.5rem;padding:.75rem}.history h3,.history p{margin:0}.history p{margin-top:.35rem}.history a{display:inline-block;margin-top:.5rem;color:var(--accent)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #265fa8;outline-offset:2px}.empty{padding:1rem;background:white;border-radius:.5rem}@media(max-width:45rem){.selectors{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:29rem){.wrap{width:calc(100% - 1rem)}.mast{padding:1rem 0;gap:.55rem}.mark{width:2.35rem;height:2.35rem}.summary{font-size:.77rem;max-width:5.5rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}form{padding:.6rem}.selectors{gap:.5rem}#detail-body{grid-template-columns:1fr}.detail-art{width:min(15rem,100%);justify-self:center}}

.mast{display:flex;flex-direction:column;align-items:stretch;gap:.75rem;padding:1.35rem 0 1rem}
.identity{display:flex;align-items:center;gap:.85rem;min-width:0}.identity h1{margin:0;font-size:clamp(1.3rem,4vw,2.2rem);text-wrap:balance}
.navline{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.summary{margin:0;max-width:none;text-align:left;color:#e0edfc;font-size:.94rem;text-underline-offset:.2em}
.languages{display:flex;flex-wrap:wrap;gap:.25rem;padding:.2rem;border:1px solid #7996b9;border-radius:.5rem}
.languages button{color:#e0edfc;background:transparent;border:0;border-radius:.3rem;line-height:1.2;padding:.42rem .65rem;font-size:.875rem}
.languages button[aria-pressed=true]{color:#102d50;background:#e0edfc;font-weight:700}
.languages button:hover:not([aria-pressed=true]){background:#294b74}.languages button:focus-visible,.summary:focus-visible{outline-color:#a9d2fa}
.about{margin-block:1.25rem 1.75rem}.about article{max-width:51rem;background:#fff;border:1px solid var(--line);border-radius:.7rem;padding:clamp(1rem,4vw,2.2rem)}
.about h2{margin:0;line-height:1.15;font-size:clamp(1.65rem,5vw,2.35rem)}.about p{max-width:66ch;margin:.4rem 0 0}.about .about-lead{font-size:1.125rem;margin-top:.85rem}.about h3{margin:1.4rem 0 .35rem}
.detail-art figcaption{line-height:1.3}.translation-note{display:block;font-size:.83rem;color:var(--muted);margin:.35rem 0}.history a,footer a,dd a{color:var(--accent)}
@media(max-width:29rem){.mast{padding:.75rem 0}.identity{gap:.55rem}.summary{font-size:.875rem}.languages button{padding:.38rem .48rem}}

.dialog-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.45rem .8rem}
.dialog-actions a{color:var(--accent);font-size:.875rem;text-underline-offset:.2em}
.dialogbar{gap:.65rem}

.visit-count{margin:.5rem 0 0;font-size:.81rem;font-variant-numeric:tabular-nums;opacity:.82}

.mark img{display:block;width:78%;height:auto}
