@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Noto+Serif+Thai:wght@500;600;700&display=swap');
:root{--bg:#0b0b0d;--panel:#141416;--panel2:#1c1c20;--line:#353136;--text:#f5f5f7;--muted:#c4c4ca;--gold:#dfbd73;--mint:#dfbd73;--sidebar:#080809;--shadow:#000000}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.65 'IBM Plex Sans Thai',sans-serif}button,input,select{font:inherit}button,a,input,select{outline-offset:5px}a{color:inherit;text-decoration:none}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}button,input,select{border:1px solid var(--line);border-radius:7px;background:var(--panel)}button:hover,a:hover{color:var(--gold)}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6}#sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:var(--sidebar);border-right:1px solid var(--line);padding:31px 20px 24px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:22px;letter-spacing:2px;font-weight:bold}.brand-mark{color:var(--gold);font-size:48px;line-height:1;text-shadow:0 0 25px #b89d6430}.brand small{display:block;font:8px/2.5 'IBM Plex Sans Thai',sans-serif;color:var(--muted);letter-spacing:2px}.edition{font-size:11px;margin:30px 6px 25px;display:flex;align-items:center;gap:8px;color:var(--muted)}.edition i{width:5px;height:5px;background:var(--mint);border-radius:50%}.edition span{margin-left:auto;font-size:9px;border:1px solid var(--line);padding:1px 6px;border-radius:3px;color:var(--gold)}.nav-label{font-size:10px;letter-spacing:1.5px;color:#a3a3ad;margin:0 13px 12px}nav a{display:flex;align-items:center;padding:11px 12px;gap:13px;border:1px solid transparent;margin:3px 0;border-radius:7px;color:#eeeef2;font-size:13px}nav a.active{background:#b8a46a10;border-color:#b8a46a30;color:var(--gold)}nav a.active:before{content:'';position:absolute;left:0;height:23px;width:3px;background:var(--gold);border-radius:0 2px 2px 0}nav .nav-symbol{font:20px Georgia,serif;width:21px;text-align:center}nav .count{margin-left:auto;font-size:10px;color:#bbbbc4}.sidebar-foot{margin-top:auto;padding:25px 13px 0;position:relative;border-top:1px solid var(--line)}.sidebar-foot strong{font-family:'Noto Serif Thai',serif;font-weight:500;font-size:16px}.sidebar-foot p{font-size:11px;color:var(--muted);margin:12px 0 20px}.small-sigil{position:absolute;right:8px;top:32px;font-size:42px;color:#dfbd7325}.version{font-size:9px;color:#a3a3ad}.page{margin-left:246px}header{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 43px;gap:24px;background:#0b0b0de8;position:sticky;top:0;backdrop-filter:blur(15px);z-index:20}.breadcrumb{font-size:10px;letter-spacing:1.8px;color:#c4c4ca}.breadcrumb span{margin:0 14px;color:#8b8780}.breadcrumb b{color:var(--gold);font-weight:500}.search-launch{display:flex;align-items:center;gap:10px;padding:9px 12px;color:#d0d0d6;width:310px;margin-left:auto;font-size:11px;background:#151517}.search-launch kbd{margin-left:auto;border:1px solid #48423a;border-radius:3px;padding:0 5px;font-size:10px;color:#bdbdc5}.icon-button{border:0;background:transparent;font-size:23px;padding:1px 5px;color:#e0e0e6}.mobile-menu{display:none}main{max-width:1530px;margin:auto;padding:32px 43px 65px;min-height:85vh}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--gold);text-transform:uppercase}.hero{height:337px;position:relative;overflow:hidden;border:1px solid #655536;border-radius:12px;margin-bottom:30px;background:#181718}.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0b0b0d 0%,#0b0b0df0 32%,#0b0b0d9c 55%,#0b0b0d0a 100%),linear-gradient(0deg,#0b0b0db0,transparent);z-index:1}.hero-image{position:absolute;right:-60px;top:-255px;width:800px;max-width:none;opacity:.82;filter:saturate(.7) brightness(.8);transform:rotate(-12deg)}.hero-content{position:relative;z-index:2;padding:37px 36px}.hero h1{font:500 37px/1.65 'Noto Serif Thai',serif;margin:12px 0 11px;letter-spacing:-1px}.hero h1 em{font-style:normal;color:var(--gold)}.hero p{max-width:390px;color:#e0e0e5;font-size:12px;margin:0 0 24px}.primary{display:inline-flex;align-items:center;gap:22px;padding:10px 17px;background:var(--gold);border:1px solid var(--gold);color:#101012;font-weight:600;font-size:12px;border-radius:5px}.primary:hover{background:#e9cb8a;color:#0b0b0d}.subtle-link{margin-left:18px;font-size:11px;border-bottom:1px solid #b09560;padding-bottom:3px}.hero-location{position:absolute;right:24px;bottom:23px;z-index:2;text-align:right;color:#f5f5f7;font-size:10px;letter-spacing:1px}.hero-location small{display:block;font-size:9px;color:#d0d0d6;margin-top:3px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:27px 0 16px;gap:15px}.section-heading h2{font-family:'Noto Serif Thai',serif;font-size:20px;line-height:1.5;font-weight:500;margin:0}.section-heading p{font-size:11px;color:var(--muted);margin:5px 0 0}.section-heading a{color:var(--gold);font-size:11px}.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:8px;background:var(--panel);margin-bottom:29px}.stat-tile{padding:14px 23px;border-right:1px solid var(--line);display:flex;gap:12px;align-items:center}.stat-tile:last-child{border:0}.stat-tile b{font:26px Georgia,serif;color:var(--gold)}.stat-tile span{font-size:11px;color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.category-card{border:1px solid var(--line);border-radius:8px;background:linear-gradient(135deg,#1c1c20,#141416);padding:22px;display:flex;gap:15px;position:relative;overflow:hidden;transition:transform .2s,border-color .2s}.category-card:hover{transform:translateY(-3px);border-color:#b89b60;color:var(--text)}.category-icon{width:57px;height:62px;display:grid;place-items:center;flex-shrink:0;border-radius:8px;background:radial-gradient(#dfbd7318,transparent 75%);font:39px Georgia,serif;color:var(--gold)}.category-icon img{max-width:61px;max-height:65px;object-fit:contain;filter:drop-shadow(0 5px 4px #0008)}.category-card h3{font-weight:500;font-size:15px;margin:1px 0 3px}.category-card p{font-size:10px;color:var(--muted);margin:0;max-width:190px}.category-card small{display:block;color:#dfbd73;font-size:10px;margin-top:10px}.card-arrow{position:absolute;right:15px;bottom:19px;color:#c7b584}.bottom-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;margin-top:28px}.feature-panel,.guide-panel{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:22px;min-width:0}.mini-head{font-size:10px;color:var(--gold);letter-spacing:1.5px}.featured-body{display:flex;align-items:center;gap:16px;padding-top:15px}.featured-body img{width:95px;height:100px;object-fit:contain;filter:drop-shadow(0 4px 9px #0008)}.featured-body h3{font-family:'Noto Serif Thai',serif;font-size:20px;margin:0 0 6px;font-weight:500}.featured-body p{font-size:11px;color:var(--muted);margin:4px 0}.chip{display:inline-block;font-size:10px;background:#dfbd7312;color:#f3e2bf;border:1px solid #dfbd7335;padding:2px 7px;border-radius:4px}.text-button{border:0;background:none;padding:0;color:var(--gold);font-size:11px;text-decoration:underline;text-underline-offset:4px}.guide-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.guide-row:last-child{border:0;padding-bottom:0}.guide-row span{font:16px Georgia,serif;color:#dfbd73}.guide-row strong{font-size:12px;font-weight:500}.guide-row small{display:block;color:var(--muted);font-size:10px}.guide-row b{margin-left:auto;color:#dfbd73;font-weight:400}.page-title{display:flex;align-items:end;justify-content:space-between;margin:5px 0 28px}.page-title h1{font:500 31px/1.6 'Noto Serif Thai',serif;margin:6px 0}.page-title p{margin:4px 0;color:var(--muted);font-size:12px}.title-count{color:var(--gold);font:40px Georgia,serif}.title-count small{display:block;color:var(--muted);font:10px 'IBM Plex Sans Thai',sans-serif;text-align:right}.toolbar{display:flex;align-items:center;gap:10px;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:8px;margin-bottom:15px;flex-wrap:wrap}.toolbar input{padding:9px 12px;min-width:190px;flex:1;background:var(--bg);color:var(--text)}select{padding:9px 28px 9px 11px;background:var(--bg);color:var(--text);max-width:200px;font-size:11px}.toolbar .view-button{padding:7px 10px;font-size:17px}.view-button.active{color:var(--gold);border-color:#ac965c}.result-meta{color:var(--muted);font-size:10px;margin:14px 0 17px;display:flex;justify-content:space-between}.entity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.entity-card{position:relative;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel);text-align:left;padding:0;transition:transform .2s,border-color .2s;min-width:0}.entity-card:hover{border-color:#b89b60;transform:translateY(-3px);color:var(--text)}.entity-art{height:156px;display:grid;place-items:center;position:relative;background:radial-gradient(ellipse at 50% 75%,#dfbd7312,transparent 75%)}.entity-art:after{content:'';width:70px;height:9px;background:#0003;border-radius:100%;position:absolute;bottom:17px;filter:blur(5px)}.entity-art img{max-width:80%;max-height:117px;position:relative;z-index:1;object-fit:contain;filter:drop-shadow(0 7px 5px #0006)}.entity-art .no-art{font:55px Georgia,serif;color:#dfbd7350}.level-tag{position:absolute;top:12px;left:12px;font-size:9px;z-index:2;padding:2px 6px;border:1px solid #dfbd7330;border-radius:4px;color:#f2e9d7;background:#181719}.element-tag{position:absolute;right:10px;top:12px;font-size:9px;color:#eeeef2}.entity-info{padding:13px 14px 15px;border-top:1px solid #35313670}.entity-info h3{font-weight:500;font-size:13px;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-info p{font-size:10px;color:var(--muted);margin:0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-info .metrics{display:flex;justify-content:space-between;font-size:9px;color:#c4c4ca}.metrics b{color:#f5f5f7;font-weight:500}.entity-grid.list{display:flex;flex-direction:column;gap:8px}.list .entity-card{display:flex;align-items:center}.list .entity-art{width:100px;height:90px;flex-shrink:0}.list .entity-art img{max-height:65px}.list .entity-art:after,.list .level-tag,.list .element-tag{display:none}.list .entity-info{border:0;display:flex;align-items:center;gap:24px;flex:1}.list .entity-info h3{width:210px;white-space:normal}.list .entity-info p{width:220px;margin:0}.list .metrics{margin-left:auto;gap:20px}.pagination{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:27px}.pagination button{padding:6px 12px;font-size:12px}.pagination button.active{color:#101012;background:var(--gold)}.empty{grid-column:1/-1;text-align:center;padding:65px 20px;color:var(--muted);border:1px dashed var(--line);border-radius:8px}.map-card .entity-art{height:190px;overflow:hidden}.map-card .entity-art img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;filter:none}.map-card .entity-art:after{display:none}.map-card .entity-info p{white-space:normal}.maps-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.data-note{font-size:10px;color:var(--muted);padding:12px 0;margin:10px 0 0;border-top:1px solid var(--line)}.job-card .entity-art{height:125px}.job-card .entity-art img{max-height:84px}.job-card .entity-info h3{font-size:16px}.detail-hero{display:flex;gap:28px;align-items:center;padding:6px 0 25px}.detail-hero .portrait{width:145px;height:145px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:radial-gradient(#dfbd731c,transparent)}.portrait img{max-height:125px;max-width:125px;object-fit:contain}.detail-hero h2{font:500 28px/1.6 'Noto Serif Thai',serif;margin:5px 0}.detail-hero p{color:var(--muted);margin:5px 0;font-size:12px}.detail-section h3{font-size:14px;font-weight:500;color:var(--gold);margin:25px 0 13px}.detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.detail-stat{padding:13px;border:1px solid var(--line);border-radius:6px;background:var(--panel2)}.detail-stat small{display:block;color:var(--muted);font-size:10px}.detail-stat b{display:block;font-weight:500;font-size:19px;color:var(--text);margin-top:2px}.detail-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:6px;padding:11px 13px;margin:8px 0;background:var(--panel2);width:100%;text-align:left}.detail-row img{width:36px;height:36px;object-fit:contain}.detail-row span{flex:1}.detail-row b{font-weight:500;color:var(--gold)}.detail-map{width:100%;border-radius:8px;border:1px solid var(--line);margin-top:15px}.description{color:var(--muted);font-size:12px;white-space:pre-line}.source-tag{color:#c4c4ca;font-size:10px;margin-top:24px}.rank-control{display:flex;align-items:center;gap:15px;padding:15px;background:var(--panel2);border-radius:8px}.rank-control input{flex:1;accent-color:var(--gold);min-width:80px}.rank-control output{color:var(--gold);font-size:20px;width:30px}.guide-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.article{padding:23px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.article h2{font:500 21px 'Noto Serif Thai',serif;margin:5px 0 13px}.article p{color:var(--muted);font-size:12px}.article.full{grid-column:1/-1}.article summary{cursor:pointer;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--gold)}.article details p{margin:10px 0 17px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px}th,td{text-align:left;padding:10px 11px;border-bottom:1px solid var(--line)}th{color:var(--gold);font-weight:500}td{color:var(--muted)}footer{border-top:1px solid var(--line);padding:23px 43px;display:flex;align-items:center;gap:18px;font-size:9px;color:#b1b1bc}footer>span{color:var(--gold);letter-spacing:1.5px;font-size:9px}footer p{margin-left:auto}dialog{background:var(--panel);color:var(--text);border:1px solid #655536;border-radius:12px;width:720px;max-width:calc(100vw - 30px);max-height:88vh;padding:32px;box-shadow:0 30px 120px #0008}dialog::backdrop{background:#000000c9;backdrop-filter:blur(6px)}.close-button{position:sticky;float:right;right:0;top:0;margin:-14px -12px 0 0;z-index:2;border:1px solid var(--line);background:var(--panel2);border-radius:7px;width:30px;height:30px;font-size:24px;line-height:1}#search-dialog{padding:0;max-height:80vh}#search-results{padding:12px 20px 20px;max-height:60vh;overflow:auto}.search-box{display:flex;align-items:center;gap:14px;padding:17px 20px;border-bottom:1px solid var(--line)}.search-box svg{color:var(--gold)}.search-box input{border:0;background:transparent;color:var(--text);width:100%;outline:none;padding:3px;font-size:14px}.search-hint{font-size:12px;color:var(--muted);padding:25px;text-align:center}.search-hit{width:100%;display:flex;align-items:center;gap:12px;padding:10px;border:0;border-radius:7px;text-align:left;background:transparent}.search-hit:hover{background:var(--panel2)}.search-hit img{width:36px;height:36px;object-fit:contain}.search-hit span{flex:1;font-size:12px}.search-hit small{display:block;color:var(--muted);font-size:10px}.search-hit em{font-size:9px;font-style:normal;color:var(--gold)}.loading{text-align:center;padding:20vh 0;color:var(--gold)}body.light{--bg:#f5f5f7;--panel:#ffffff;--panel2:#eae9e6;--line:#d4cec1;--text:#171719;--muted:#595961;--gold:#89651f;--mint:#89651f;--sidebar:#eeeeef}body.light header{background:#f5f5f7e8}body.light .category-card{background:var(--panel)}body.light .hero{--text:#f5f5f7}body.light .hero h1{color:#f5f5f7}body.light .hero .eyebrow{color:#dfbd73}body.light .hero h1 em{color:#dfbd73}body.light .hero .primary{background:#dfbd73;color:#0b0b0d}body.light .search-launch{background:var(--panel)}@media(min-width:1600px){.entity-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.maps-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1200px){#sidebar{width:215px;padding-left:14px;padding-right:14px}.page{margin-left:215px}header{padding:0 25px}main{padding:25px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entity-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.brand{font-size:19px}.brand-mark{font-size:42px}.hero-content{padding:30px}.hero h1{font-size:32px}.hero-image{right:-160px}.search-launch{width:270px}.breadcrumb{font-size:9px}.stat-tile{padding:12px 16px}.stat-tile b{font-size:23px}.bottom-grid{grid-template-columns:1fr 1fr}.list .entity-info p{width:160px}.list .entity-info h3{width:150px}footer{padding:20px 25px}.maps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){#sidebar{transform:translateX(-100%);width:246px;transition:transform .2s}.page{margin-left:0}body.nav-open #sidebar{transform:none;box-shadow:0 0 0 100vw #0007}.mobile-menu{display:block}header{height:68px;gap:14px}.breadcrumb{font-size:9px}.search-launch{width:220px}.hero-image{right:-60px}.bottom-grid{gap:12px}.hero{height:325px}.sidebar-foot{display:none}.guide-layout{grid-template-columns:1fr}}@media(max-width:570px){header{padding:0 16px;gap:9px}.breadcrumb{font-size:8px;letter-spacing:1px}.breadcrumb span{margin:0 7px}.search-launch{width:34px;border:0;background:transparent;padding:5px;margin-left:auto}.search-launch span,.search-launch kbd{display:none}main{padding:20px 16px 35px}.hero{height:345px}.hero-image{width:610px;top:-140px;right:-220px;opacity:.6}.hero:before{background:linear-gradient(90deg,#0b0b0df2,#0b0b0d77)}.hero-content{padding:26px 23px}.hero h1{font-size:29px}.hero p{font-size:11px;max-width:270px}.hero-location{right:16px;bottom:15px;font-size:9px}.hero-location small{font-size:8px}.eyebrow{font-size:9px}.stats-strip{grid-template-columns:repeat(2,1fr)}.stat-tile{border-bottom:1px solid var(--line)}.stat-tile:nth-child(2){border-right:0}.stat-tile:nth-child(n+3){border-bottom:0}.stat-tile span{font-size:10px}.category-grid{gap:10px}.category-card{padding:15px 12px;display:block}.category-icon{width:47px;height:50px;justify-content:start;place-items:center;margin-bottom:12px}.category-icon img{max-width:49px;max-height:53px}.category-card h3{font-size:13px}.category-card p{font-size:9px;min-height:30px}.category-card small{font-size:9px}.bottom-grid{grid-template-columns:1fr}.section-heading h2{font-size:18px}.section-heading a{font-size:9px}.entity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.entity-art{height:140px}.entity-art img{max-height:100px}.entity-info{padding:11px}.entity-info h3{font-size:12px}.entity-info p{font-size:9px}.entity-info .metrics{font-size:8px}.page-title h1{font-size:26px}.page-title p{font-size:10px;max-width:250px}.title-count{font-size:30px}.toolbar{padding:10px;gap:7px}.toolbar input{min-width:100%;font-size:12px}select{max-width:145px;flex:1;font-size:10px}.toolbar .view-button{padding:5px 8px}.list .entity-art{width:70px}.list .entity-info{display:block;padding:10px}.list .entity-info h3,.list .entity-info p{width:auto}.list .metrics{margin-top:7px;max-width:210px}.detail-hero{gap:15px}.detail-hero .portrait{width:98px;height:110px;flex-shrink:0}.portrait img{max-width:90px;max-height:98px}.detail-hero h2{font-size:22px}.detail-stats{grid-template-columns:repeat(2,1fr)}dialog{padding:23px}.rank-control{gap:10px;padding:12px}.detail-section h3{font-size:13px}footer{padding:19px 16px;flex-wrap:wrap;gap:5px 15px}footer p{order:3;width:100%;margin:3px 0}footer a{margin-left:auto}.article{padding:18px}.description{font-size:11px}.subtle-link{margin-left:12px}.maps-grid{grid-template-columns:1fr}}

.fish-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fish-map-source{padding:0;overflow:hidden;text-align:left;background:var(--panel2);border:1px solid var(--line);border-radius:9px}.fish-map-source img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:var(--sidebar)}.fish-map-source span{display:block;padding:12px 14px;color:var(--text);font-size:13px}.fish-map-source:hover{border-color:var(--gold)}.fish-map-source.name-only span{padding:16px 14px}.fish-sources h3{margin-top:20px}@media(max-width:570px){.fish-map-grid{grid-template-columns:1fr;gap:12px}}

.fish-map-grid{align-items:start}.fish-map-source.name-only{grid-column:1/-1}
/* Expandable item categories follow the existing sidebar palette. */
#sidebar{overflow-y:auto}.nav-parent{display:flex;align-items:center;width:100%;padding:11px 12px;gap:10px;border:1px solid transparent;margin:3px 0;border-radius:7px;color:#eeeef2;font-size:13px;background:transparent;text-align:left}.nav-parent.active{background:#b8a46a10;border-color:#b8a46a30;color:var(--gold)}.nav-parent>span:nth-child(2){white-space:nowrap}.nav-parent .nav-symbol{flex-shrink:0}.nav-chevron{font-size:15px;line-height:1;transition:transform .18s}.nav-parent[aria-expanded="true"] .nav-chevron{transform:rotate(180deg)}.nav-submenu{margin:3px 0 10px 23px;padding-left:12px;border-left:1px solid var(--line)}.nav-submenu[hidden]{display:none}.nav-submenu a{position:relative;padding:8px 10px;margin:3px 0;font-size:12px;min-height:38px;background:var(--panel)}.nav-submenu a.active:before{left:-14px;width:3px;height:18px;border-radius:2px}.nav-parent:hover,.nav-submenu a:hover{color:var(--gold);background:var(--panel2)}.nav-parent:focus-visible,.nav-submenu a:focus-visible{outline:2px solid var(--gold)}body.light .nav-parent{color:var(--text)}body.light .nav-parent.active{color:var(--gold)}@media(min-width:851px) and (max-width:1200px){.nav-parent{padding:11px 8px;gap:6px;font-size:12px}}@media(prefers-reduced-motion:reduce){.nav-chevron{transition:none}}

.art-only .entity-art{height:200px}.art-only .entity-art img{max-width:90%;max-height:175px}.art-only .entity-info h3{white-space:normal;line-height:1.6}.art-only-detail{text-align:center;padding:15px}.art-only-detail>img{display:block;width:100%;max-width:400px;max-height:55vh;object-fit:contain;margin:0 auto 20px}.art-only-detail h2{font:500 24px/1.6 "Noto Serif Thai",serif}.list .art-only .entity-art{height:90px}.list .art-only .entity-art img{max-height:80px}@media(max-width:570px){.art-only .entity-art{height:165px}.art-only .entity-art img{max-height:145px}}

.entity-card[data-detail^="monsters/"] .entity-art{height:210px}.entity-card[data-detail^="monsters/"] .entity-art img{width:200px;height:200px;max-width:94%;max-height:200px;object-fit:contain;object-position:center}.entity-card[data-detail^="skills/"] .entity-art img{width:112px;height:112px;object-fit:contain}.list .entity-card[data-detail^="monsters/"] .entity-art{height:90px}.list .entity-card[data-detail^="monsters/"] .entity-art img{width:85px;height:85px;max-height:85px}@media(max-width:570px){.entity-card[data-detail^="monsters/"] .entity-art{height:180px}.entity-card[data-detail^="monsters/"] .entity-art img{height:170px;max-height:170px}}

/* monster-cards-20261102 */
.element-badge{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}.element-badge img{width:23px;height:23px;object-fit:contain}.element-tag .element-badge img{width:19px;height:19px}.loot-summary{display:flex;justify-content:space-between;gap:16px;margin:14px 0;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.loot-summary b{color:var(--gold)}

/* current-visuals-r2 */
.light .profession-crest{background:#141416;border-radius:8px;padding:7px}.job-card .entity-art:after{display:none}.map-card .entity-art img{object-fit:contain;background:#0b0b0d}.detail-map{height:auto;object-fit:contain}

.production-art{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin-bottom:18px}.production-art a{display:grid;justify-items:center;gap:5px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.production-art img{width:80px;height:80px;object-fit:contain}.production-art a:hover{border-color:var(--gold)}

/* Keep the whole centered Idle sprite, with more room per bestiary card. */
#weapon-job-filter[hidden]{display:none}
.monsters-grid:not(.list){grid-template-columns:repeat(3,minmax(0,1fr))}
.monsters-grid:not(.list) .entity-art{height:auto;aspect-ratio:1;min-height:0}
.monsters-grid:not(.list) .entity-card .entity-art img{width:100%;height:100%;max-width:100%;max-height:none;object-fit:contain}
.monsters-grid.list .entity-card .entity-art{width:144px;height:144px}
.monsters-grid.list .entity-card .entity-art img{width:100%;height:100%;max-width:100%;max-height:none}
@media(min-width:1450px){.monsters-grid:not(.list){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.monsters-grid:not(.list){grid-template-columns:repeat(2,minmax(0,1fr))}.monsters-grid.list .entity-card .entity-art{width:105px;height:105px}}

/* Compact bestiary detail card */
#detail[data-kind="monsters"]{--card-gold:#dfbd73;--card-edge:#86663b;width:492px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--card-edge);border-radius:12px;overflow:hidden;box-shadow:0 20px 75px #000c}
body.light #detail[data-kind="monsters"]{--card-gold:#77541d;--card-edge:#997139}
#detail[data-kind="monsters"] #detail-content{overflow:auto;overscroll-behavior:contain;max-height:calc(100dvh - 28px)}
#detail[data-kind="monsters"] .close-button{position:absolute;float:none;top:10px;right:10px;margin:0;color:var(--card-gold);border-color:var(--card-edge);border-radius:50%;z-index:3}
.monster-info-card{background:var(--panel)}
.monster-info-header{padding:12px 46px;text-align:center;font-weight:650;font-size:16px;color:var(--card-gold);border-bottom:1px solid var(--card-edge);background:linear-gradient(100deg,transparent,#a77c4226,transparent)}
.monster-info-header span{font-size:10px;margin:0 5px}
.monster-info-body{padding:13px 15px 16px}
.monster-info-hero{display:grid;grid-template-columns:minmax(0,52%) minmax(0,1fr);gap:13px;align-items:center}
.monster-info-portrait{display:grid;place-items:center;aspect-ratio:1;min-width:0;background:radial-gradient(ellipse at center,#9b754626,transparent 72%)}
.monster-info-portrait img{width:100%;height:100%;object-fit:contain;display:block}
.monster-info-identity h2{font:600 clamp(17px,4.2vw,22px)/1.4 "Noto Serif Thai",serif;overflow-wrap:anywhere;margin:0 0 5px}
.monster-info-identity p{margin:2px 0;font-size:13px}
.monster-info-level{color:var(--card-gold);font-weight:700}.monster-info-rank{color:var(--muted)}
.monster-info-identity .element-badge{margin-top:5px}
.monster-info-description{display:flex;gap:8px;margin:2px 0 13px;font-size:14px;line-height:1.55;color:var(--text)}
.monster-info-description>span,.monster-info-loot h3>span{color:var(--card-gold)}
.monster-info-loot{border-top:1px solid var(--card-edge);padding-top:10px}
.monster-info-loot h3{font-size:15px;margin:0 0 9px}
.monster-loot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.monster-loot-tile{display:grid;justify-items:center;grid-template-rows:auto 1fr auto;gap:4px;min-width:0;padding:0 3px 4px;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;text-align:center}
.monster-loot-icon{display:grid;place-items:center;width:min(100%,68px);aspect-ratio:1;border:1px solid var(--card-edge);border-radius:7px;background:radial-gradient(#ad895f38,var(--panel2));color:var(--card-gold)}
.monster-loot-icon img{width:82%;height:82%;object-fit:contain}
button.monster-loot-tile:hover .monster-loot-icon,button.monster-loot-tile:focus-visible .monster-loot-icon{border-color:var(--card-gold);box-shadow:0 0 8px #c5a45b55}
.monster-loot-name{font-size:11px;line-height:1.3;overflow-wrap:anywhere;color:var(--muted)}
.monster-loot-tile strong{font-size:14px;color:var(--card-gold);font-variant-numeric:tabular-nums}
.monster-extra-loot{display:flex;flex-wrap:wrap;gap:5px 12px;margin:7px 0;color:var(--muted);font-size:11px}.monster-extra-loot b{color:var(--card-gold)}
.monster-info-more{margin-top:8px;border-top:1px solid var(--line);padding-top:8px}
.monster-info-more h3{margin:0;color:var(--card-gold);font-size:13px;font-weight:600}
.monster-info-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0}
.monster-info-stats .detail-stat{padding:7px 4px;text-align:center;overflow-wrap:anywhere}
@media(max-width:360px){.monster-info-body{padding:10px}.monster-info-hero{gap:9px}.monster-loot-grid{gap:4px}.monster-loot-name{font-size:10px}}

.monsters-grid .entity-art{overflow:hidden}
.monsters-grid .entity-art img{transform:scale(var(--monster-grid-scale,1));transform-origin:center}
