.study-library { margin: 0; color: #20372f; background: #f5f4ed; font: 1rem/1.55 system-ui, sans-serif; }
.study-library * { box-sizing: border-box; }
.study-library main, .study-library > header { max-width: 64rem; margin: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
.study-library > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; border-bottom: 1px solid #c9d2c8; }
.study-library h1, .study-library h2 { color: #1e3f31; font-family: Georgia, serif; line-height: 1.12; }
.study-library h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin: 2.2rem 0 .65rem; }
.study-library h2 { margin: 2.5rem 0 .7rem; font-size: 1.7rem; }
.study-library a { color: #254f3b; text-underline-offset: .18em; }
.study-library main { padding-bottom: 3rem; }
.study-library ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem),1fr)); gap: .3rem 2rem; }
.study-library li { padding: .65rem 0 1rem; border-top: 1px solid #bdc9bd; }
.study-library li a { font-weight: 650; }
.study-library li small { display: block; color: #4b5d50; margin-top: .25rem; font-size: .91rem; }
html:lang(en) .study-library span[lang="pt-BR"], html:lang(pt) .study-library span[lang="en"] { display: none; }
.study-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.2rem; margin: .45rem 0; }
.study-links a, .study-menu { font-size: .9rem; font-weight: 650; text-underline-offset: .2em; }
.study-links a { color: inherit; padding-block: .28rem; }
.study-context { min-width: 0; margin: .75rem 0; text-align: start; }
.study-context details { max-width: 60rem; margin-top: .3rem; }
.study-context summary, details.study-term summary { cursor: pointer; text-decoration: underline dotted; text-underline-offset: .2em; }
.study-context dl { margin: .65rem 0; }
.study-context dt { font-weight: 650; }
.study-context dd { margin: .15rem 0 .7rem; }
.study-context .study-links, .study-context summary { font: 600 .9rem/1.45 system-ui,sans-serif; }
.pre-dashboard details.study-term { border: none; padding: 0; margin: 0; background: transparent; }
.pre-dashboard .study-term summary { padding: .18rem 0; color: inherit; font: inherit; }
.pre-dashboard .study-term p { font: 400 .84rem/1.4 system-ui,sans-serif; margin: .3rem 0 .5rem; }
.study-context :focus-visible, .study-library :focus-visible, .study-term summary:focus-visible, .study-menu:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.study-reading { gap: .2rem .8rem; margin: .15rem 0 .6rem; }
.study-reading a { font-size: .82rem; overflow-wrap: anywhere; }
.study-library .study-bundle { display: inline-block; padding: .65rem 1rem; border-radius: .25rem; background: #244c39; color: #fff; font-weight: 650; }

.study-library[data-study-edition="pt-BR"] a[hreflang="en"], .study-library[data-study-edition="en"] a[hreflang="pt-BR"] { display: none; }
.edition-picker { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; margin: 1.1rem 0; }
.edition-picker label { font-weight: 650; }
.edition-picker select { min-height: 2.6rem; border: 1px solid #899b8a; color: #1e3f31; background: #fff; border-radius: .3rem; padding: .3rem .6rem; font: inherit; }

.study-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin: 1rem 0; }
.study-filters { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }
.study-filters label { display: grid; gap: .25rem; min-width: 0; font-weight: 650; }
.study-filters input, .study-filters select { width: 100%; min-height: 2.6rem; font: inherit; font-weight: 400; border: 1px solid #899b8a; border-radius: .3rem; background: #fff; color: inherit; padding: .35rem .5rem; }
#study-results { align-items: start; }
#study-results li { padding: .55rem 0; }
#study-results summary { cursor: pointer; font-weight: 650; }
#study-results p { margin: .4rem 0; }
#study-results .study-where, #study-count { font-size: .89rem; color: #435a4a; }
