.eclopidia-country-access>div:first-child{padding-top:2rem;padding-bottom:3rem}.eclopidia-country-access>div:first-child h1{font-size:clamp(1.65rem,4vw,3rem);margin-bottom:.5rem}.eclopidia-country-access>div:first-child p{font-size:1rem;line-height:1.5}.eclopidia-country-chooser{display:grid;gap:.65rem;margin-bottom:1.5rem;padding:1rem;border:1px solid #b8c8b5;border-radius:1rem;background:#f6f5ec;color:#204e3c}.eclopidia-country-chooser label{font-weight:700}.eclopidia-country-chooser :is(select,input){width:100%;min-width:0;min-height:48px;padding:.65rem;border:1px solid #7c9b87;border-radius:.65rem;background:#fffef8;color:#204e3c;font:inherit}.eclopidia-country-chooser :is(a,button),.eclopidia-country-retry button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.65rem 1rem;border-radius:.65rem;background:#204e3c;color:white;font-weight:600;text-decoration:underline}.eclopidia-country-chooser summary{display:flex;align-items:center;min-height:48px;cursor:pointer;font-size:.875rem;font-weight:600}.eclopidia-country-chooser p{font-size:.875rem;line-height:1.6;margin:0}.eclopidia-country-retry{padding:2rem;text-align:center}.eclopidia-country-access :is(select,input,a,button,summary,h2):focus-visible{outline:3px solid #276b50;outline-offset:3px}#country-profile-details{scroll-margin-top:16rem}.eclopidia-country-access button[aria-label^="Close"]{min-width:48px;min-height:48px}.eclopidia-country-access a[href^="/species/"],.eclopidia-country-access a[href^="/ecopedia/regions/"]{min-height:48px;display:inline-flex;align-items:center}
/* Keep focused chooser controls below the shared sticky header. */
.eclopidia-country-chooser :is(input,button,select,summary,a){scroll-margin-top:16rem;scroll-margin-bottom:1rem}

/* On short narrow screens, dock the assistant in the compact header rather than over country controls. */
@media (max-width:900px) and (max-height:500px){body:has(.eclopidia-country-access) button[aria-label="Toggle AI Assistant"]{position:fixed;top:.5rem;right:5rem;bottom:auto}}
