/* Biblioteca unificada de artigos — mantém a identidade editorial do site */
.library-page { background: var(--soft-white, #f8f8f5); }
.library-page .editorial-navigation a[aria-current="page"] { opacity: 1; font-weight: 500; }
.library-hero { padding: clamp(88px, 12vw, 142px) 24px 54px; background: #f1eee9; }
.library-hero-inner { max-width: 980px; margin: 0 auto; }
.library-eyebrow { margin: 0 0 12px; color: #746b63; font: 500 .72rem/1.4 "Inter",sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.library-hero h1 { margin: 0; color: #383633; font: 500 clamp(3rem, 7vw, 5.2rem)/.98 "Cormorant Garamond",serif; }
.library-intro { max-width: 660px; margin: 18px 0 28px; color: #55514d; font: 400 1rem/1.75 "Inter",sans-serif; }
.library-search-wrap { position: relative; max-width: 720px; }
.library-search-icon { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #77716b; stroke-width: 1.7; stroke-linecap: round; }
.library-search-wrap input { width: 100%; min-height: 58px; padding: 15px 18px 15px 52px; border: 1px solid #d8d2ca; border-radius: 3px; background: #fffefa; color: #383633; font: 400 .95rem "Inter",sans-serif; outline-offset: 3px; }
.library-search-wrap input::placeholder { color: #8a847d; }
.library-content { max-width: 1120px; margin: 0 auto; padding: 42px 24px 88px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.library-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.library-filter { border: 1px solid #d8d2ca; border-radius: 2px; padding: 9px 13px; background: transparent; color: #514b45; cursor: pointer; font: 400 .78rem "Inter",sans-serif; transition: background .18s ease,color .18s ease,border-color .18s ease; }
.library-filter:hover,.library-filter.is-active { border-color: #54504b; background: #54504b; color: #fffefa; }
.library-count { flex: 0 0 auto; margin: 0; color: #77716b; font: 400 .78rem "Inter",sans-serif; }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.library-card { display: flex; flex-direction: column; min-width: 0; padding: 25px 24px 22px; border: 1px solid #e5e1db; background: #fffefa; min-height: 260px; }
.library-card-category { margin-bottom: 13px; color: #82776c; font: 500 .67rem/1.4 "Inter",sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.library-card h2 { margin: 0 0 12px; color: #393632; font: 500 1.65rem/1.12 "Cormorant Garamond",serif; }
.library-card h2 a { color: inherit; text-decoration: none; }
.library-card h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.library-card p { margin: 0 0 22px; color: #68625c; font: 400 .82rem/1.65 "Inter",sans-serif; }
.library-card-link { align-self: flex-start; margin-top: auto; color: #61584f; text-decoration: none; font: 500 .75rem "Inter",sans-serif; }
.library-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.library-empty { padding: 54px 20px; text-align: center; color: #5e5852; }
.library-empty h2 { margin: 0 0 8px; font: 500 2rem "Cormorant Garamond",serif; }
.library-empty p { font: 400 .88rem/1.6 "Inter",sans-serif; }
.library-empty button { margin-top: 10px; border: 1px solid #625b54; padding: 10px 16px; background: transparent; color: #514b45; cursor: pointer; font: 400 .8rem "Inter",sans-serif; }
@media (max-width: 850px) { .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .library-toolbar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) { .library-hero { padding: 92px 20px 38px; } .library-content { padding: 30px 18px 64px; } .library-grid { grid-template-columns: 1fr; gap: 13px; } .library-card { min-height: 0; padding: 22px 20px; } .library-filter { padding: 8px 10px; font-size: .72rem; } .library-count { align-self: flex-end; } }

/* A regra explícita garante que o atributo hidden prevaleça sobre display:flex/grid dos cards. */
.library-page [hidden] { display: none !important; }
