@font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap; src: url('fontes/montserrat-400.ttf') format('truetype'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url('fontes/montserrat-500.ttf') format('truetype'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url('fontes/montserrat-700.ttf') format('truetype'); }
* { box-sizing: border-box; }
:root { color: #352642; background: #fff8fe; font: 16px/1.6 Montserrat, Arial, sans-serif; }
body { margin: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 5vw, 5rem); border-bottom: 1px solid #dcc3d6; }
.top img { width: 148px; height: 58px; object-fit: contain; object-position: left; }
.top span { font-size: .8rem; text-align: right; }
main { max-width: 1100px; margin: auto; padding: clamp(1rem, 6vw, 5rem) 1rem; display: grid; gap: clamp(1rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; }
.intro, .card { border-radius: 1.5rem; padding: clamp(1.4rem, 5vw, 3rem); }
.intro { background: #dcc3d6; }
.card { background: #fff; border: 1px solid #dcc3d6; }
.eyebrow { letter-spacing: .15em; font-size: .75rem; font-weight: 700; }
h1, h2 { line-height: 1.12; margin: .4rem 0; }
h1 { font-size: clamp(2rem, 5.8vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.term { padding: .8rem 1rem; border-left: .3rem solid #67d3cb; margin-top: 2rem; background: #fff8fe; border-radius: .25rem; }
label { display: block; font-weight: 700; margin-top: .8rem; }
input { border: 1px solid #7c6193; border-radius: .5rem; background: #fff8fe; color: inherit; width: 100%; padding: .65rem; font: inherit; }
button { font: inherit; }
.action { width: 100%; border: 0; border-radius: .5rem; margin-top: 1rem; padding: .65rem; background: #7c6193; color: #fff; font-weight: 700; }
.notice { font-size: .82rem; }
nav:not([hidden]) { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
nav button { border: 0; background: none; padding: .25rem 0; color: #523b65; text-decoration: underline; cursor: pointer; }
button:focus-visible { outline: 3px solid #352642; outline-offset: 3px; }
input:focus-visible, a:focus-visible { outline: 3px solid #352642; outline-offset: 3px; }
nav button { min-height: 44px; }
@media (max-width: 730px) { main { grid-template-columns: 1fr; } }
main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
h1 { font-size: clamp(2rem, 5.1vw, 3.5rem); }
@media (max-width: 730px) { main { grid-template-columns: minmax(0, 1fr); } }
#materials { list-style: none; padding: 0; }
#materials a { display: block; padding: .7rem .85rem; margin-bottom: .5rem; border-radius: .5rem; background: #fff8fe; color: #523b65; font-weight: 700; }
#logout { min-height: 44px; padding: .4rem 1rem; border: 1px solid #7c6193; border-radius: .5rem; color: #523b65; background: white; cursor: pointer; }
.privacy-contact { max-width: 1100px; margin: 0 auto; padding: 0 1rem 2rem; font-size: .875rem; }
.privacy-contact p { margin: 0; }
.privacy-contact a { color: #523b65; text-underline-offset: .2em; overflow-wrap: anywhere; }
.privacy-contact a:focus-visible { outline: 3px solid #352642; outline-offset: 3px; }

.member-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 1.25rem; }
.member-welcome img { display: block; width: 100%; height: auto; border-radius: 1rem; }
.member-welcome p:first-child { margin-top: 0; font-weight: 700; }
#materials { display: grid; gap: .75rem; margin-block: 1rem; }
#materials details { border: 1px solid currentColor; border-radius: .75rem; padding: .8rem 1rem; }
#materials summary { cursor: pointer; }
#materials summary span { display: block; margin: .35rem 0 0 1rem; }
@media (max-width: 540px) {
  .member-welcome { grid-template-columns: 1fr; }
  .member-welcome img { max-width: 16rem; }
}

#library { grid-column: 1 / -1; }
main:has(#library:not([hidden])) .intro { display: none; }
#materials summary { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .3rem .65rem; align-items: center; list-style: none; }
#materials summary::-webkit-details-marker { display: none; }
#materials summary:focus-visible { outline: 3px solid #352642; outline-offset: 4px; }
#materials summary svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#materials summary span { margin: 0; grid-column: 2; }
#materials .category-action { justify-self: start; padding: .2rem .6rem; border: 1px solid #7c6193; border-radius: .4rem; color: #523b65; font-size: .875rem; }
#materials details:not([open]) .category-close, #materials details[open] .category-open { display: none; }

#materials .category-cover { grid-column: 1 / -1; display: block; width: 100%; height: auto; border-radius: .45rem; margin-bottom: .45rem; }
