/* v250: compact nature-journal language tabs alongside the weather. */
.wilddex-language{display:inline-flex;align-items:center;gap:2px;flex-shrink:0;padding:3px;border:2px solid #f0d276;border-radius:12px 16px;background:linear-gradient(145deg,#123e31,#24614a);box-shadow:inset 0 0 0 1px #ffffff25,0 3px 0 #092f26;font-family:inherit}
.wilddex-language button{appearance:none;min-width:38px;min-height:36px;margin:0;padding:5px 7px;border:0;border-radius:7px 10px;background:transparent;color:#fff4cc;box-shadow:none;font-family:inherit;font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap;cursor:pointer}
.wilddex-language button[aria-pressed="true"]{background:linear-gradient(145deg,#fff2b2,#e8bd4f);color:#173f2d;box-shadow:inset 0 1px 0 #fff9dd,0 1px 3px #092f2650}
.wilddex-language button:hover{filter:brightness(1.12)}
.wilddex-language button:focus-visible{outline:2px solid #fff;outline-offset:1px}
.topbar .wilddex-language{margin:0}
#welcomeDialog .wilddex-language{margin:0 0 12px}
@media(max-width:600px){
.topbar{grid-template-columns:minmax(0,1fr) auto auto auto!important}
.topbar .brand-lockup{grid-column:1!important;grid-row:1!important}
.topbar #weatherWidget{grid-column:2!important;grid-row:1!important}
.topbar .wilddex-language{grid-column:3!important;grid-row:1!important;justify-self:end}
.topbar #profileButton{grid-column:4!important;grid-row:1!important}
.topbar .wilddex-language{padding:2px;gap:1px;border-radius:10px 13px}
.topbar .wilddex-language button{min-width:30px;min-height:32px;padding:4px;font-size:10px}
}
.species-language-note{font-size:12px;color:#53675c;margin:4px 0 12px}
html[lang="en"] .bottom-nav button{font-size:11px;white-space:normal;line-height:1.2}
html[lang="en"] .species-dialog h2{overflow-wrap:anywhere}
html[lang="en"] .record-sort-select{max-width:48%;font-size:12px}
html[lang="en"] .segmented label{white-space:normal;font-size:12px}
html[lang="en"] .hero p{font-size:13px}
html[lang="en"] #welcomeDialog h2{font-size:clamp(22px,6vw,31px);line-height:1.25}
html[lang="en"] #welcomeDialog .welcome-progress{font-size:11px}
html[lang="en"] #welcomeDialog .welcome-primary,html[lang="en"] #welcomeDialog .welcome-secondary{white-space:normal;line-height:1.35}

html[lang="en"] .species-dialog h2{white-space:normal!important;overflow-wrap:anywhere!important}
html[lang="en"] .kind-buttons button{font-size:12px!important;line-height:1.2;white-space:normal}/* Keep global game-button typography from enlarging the compact tabs. */
.wilddex-language button{font-size:11px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:0!important;text-shadow:none!important}
@media(max-width:600px){
.topbar .brand-lockup{width:100%!important;margin-right:0!important}
.topbar .wilddex-language button{font-size:10px!important}
}
@media(max-width:420px){
.topbar .brand-emblem{flex-basis:26px!important;width:26px!important;height:30px!important}
.topbar .brand-emblem img{width:26px!important;height:30px!important}
.topbar .brand-words .eyebrow{display:none!important}
.topbar .brand-words h1{width:auto!important;max-width:100%!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;letter-spacing:0!important}
.topbar .brand-words h1::after{display:none!important}
}
/* Five languages share one compact tab beside the weather. */
.wilddex-language select{max-width:102px;width:auto;min-height:36px;padding:4px 3px;border:0;border-radius:7px 10px;background:#f5d780;color:#173f2d;font:800 11px/1.3 system-ui;cursor:pointer}
.wilddex-language select:focus-visible{outline:2px solid white;outline-offset:3px}
@media(max-width:600px){.topbar .wilddex-language select{max-width:70px;min-height:32px;font-size:10px}}
html[lang="es"] .bottom-nav button{font-size:10px;white-space:normal;line-height:1.2}
html[lang="es"] .kind-buttons button{font-size:11px!important;white-space:normal;line-height:1.2}
html[lang="es"] .species-dialog h2,html[lang="zh-Hans"] .species-dialog h2{white-space:normal!important;overflow-wrap:anywhere!important}
.guide-links{margin:20px auto;padding:12px 16px;max-width:644px;font:12px/1.6 system-ui;color:#24523c;text-align:center}.guide-links a{display:inline-block;margin:4px 8px;color:#24523c;text-decoration:underline}

.species-original{margin:18px 0;padding:12px;border:1px solid #adc5ad;border-radius:10px;font-size:13px}.species-original summary{cursor:pointer;font-weight:700}

.topbar .wilddex-language select{font-size:11px!important;line-height:1.3!important;padding:4px 2px!important}

html[data-language="hira"] .bottom-nav button{font-size:12px;line-height:1.25;white-space:normal}
