:root {
    --navbar-color: #f63e4f;
    --navbar-height: 48px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-brand {
    display: grid;
    min-height: clamp(150px, 23vw, 240px);
    padding: 20px 24px 14px;
    place-items: center;
}

.site-brand__link {
    display: block;
    line-height: 0;
}

.site-brand__image {
    display: block;
    width: clamp(140px, 18vw, 210px);
    height: auto;
}

.top-navbar {
    position: sticky !important;
    z-index: 1000 !important;
    top: 0;
    width: fit-content;
    max-width: calc(100% - 32px);
    min-height: var(--navbar-height);
    margin: 0 auto;
    background: var(--navbar-color);
    box-shadow: 0 3px 12px rgb(58 22 28 / 18%);
    transition: min-height 280ms ease, box-shadow 280ms ease;
}

.top-navbar.is-stuck {
    --navbar-height: 74px;
    box-shadow: 0 5px 18px rgb(58 22 28 / 24%);
}

.top-navbar__inner {
    display: flex;
    width: max-content;
    max-width: 100%;
    min-height: var(--navbar-height);
    margin: 0 auto;
    padding: 0;
    align-items: stretch;
    transition: min-height 280ms ease;
}

.top-navbar__compact-logo {
    display: flex;
    width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(280px, -135px) scale(2.7);
    align-items: center;
    justify-content: center;
    transition: width 340ms ease, margin-right 340ms ease, opacity 240ms ease, transform 420ms cubic-bezier(.2, .75, .25, 1);
}

.top-navbar__compact-logo img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.top-navbar.is-stuck .top-navbar__compact-logo {
    width: 76px;
    margin-right: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0) scale(1);
}

.main-navigation {
    display: flex;
    flex: 1;
    justify-content: center;
}

.main-navigation > a,
.navigation-dropdown__toggle {
    display: flex;
    min-height: var(--navbar-height);
    padding: 0 clamp(17px, 2.2vw, 30px);
    border: 0;
    border-right: 1px solid rgb(255 255 255 / 18%);
    background: transparent;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    transition: min-height 280ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.navigation-dropdown__toggle {
    border-left: 1px solid rgb(255 255 255 / 18%);
    cursor: pointer;
    gap: 9px;
}

.navigation-dropdown__toggle > span {
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: margin 180ms ease, transform 180ms ease;
}

.navigation-dropdown.is-open .navigation-dropdown__toggle > span {
    margin-top: 4px;
    transform: rotate(225deg);
}

.main-navigation > a:hover,
.main-navigation > a:focus-visible,
.navigation-dropdown__toggle:hover,
.navigation-dropdown__toggle:focus-visible {
    background: #dc3041;
    box-shadow: inset 0 4px 0 rgb(105 13 27 / 24%);
    outline: none;
    transform: translateY(3px);
}

.main-navigation > a:active,
.navigation-dropdown__toggle:active {
    box-shadow: inset 0 6px 2px rgb(105 13 27 / 32%);
    transform: translateY(5px);
}

.navigation-dropdown {
    position: relative;
    display: flex;
}

.navigation-dropdown.is-current > .navigation-dropdown__toggle,
.main-navigation > a[aria-current="page"] {
    background: #dc3041;
}

.navigation-submenu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    display: grid;
    width: max-content;
    min-width: 210px;
    padding: 7px;
    border-radius: 10px;
    visibility: hidden;
    background: var(--navbar-color);
    box-shadow: 0 10px 24px rgb(58 22 28 / 28%);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.navigation-dropdown.is-open .navigation-submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.navigation-submenu a {
    display: flex;
    min-height: 46px;
    padding: 8px 14px;
    border-radius: 7px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-decoration: none;
    align-items: center;
}

.navigation-submenu a:hover,
.navigation-submenu a:focus-visible,
.navigation-submenu a[aria-current="page"] {
    background: #dc3041;
    outline: none;
}

.menu-toggle,
.menu-backdrop {
    display: none;
}

.page-content {
    width: min(1040px, calc(100% - clamp(70px, 22vw, 300px)));
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) 0 100px;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 0.35vw + 0.93rem, 1.12rem);
    line-height: 1.75;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.tessituras-intro {
    display: flex;
    margin: 0 auto clamp(42px, 6vw, 72px);
    justify-content: center;
}

.tessituras-intro img {
    display: block;
    width: min(390px, 68vw);
    height: auto;
    filter: drop-shadow(0 8px 10px rgb(67 40 35 / 14%));
}

.history-page {
    width: min(1040px, calc(100% - clamp(70px, 22vw, 300px)));
    min-height: 70vh;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) 0 100px;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.history-page__logo {
    display: block;
    width: min(390px, 68vw);
    height: auto;
    margin: 0 auto clamp(42px, 6vw, 72px);
    filter: drop-shadow(0 8px 10px rgb(67 40 35 / 14%));
}

.history-list {
    display: grid;
    gap: clamp(38px, 6vw, 66px);
}

.history-card,
.history-empty-state {
    width: 100%;
    padding: clamp(24px, 4.5vw, 52px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 24px;
    background: #fffaf2;
    box-shadow: 0 10px 30px rgb(83 48 39 / 10%);
}

.history-card {
    scroll-margin-top: 100px;
}

.history-card__header {
    display: flex;
    margin-bottom: clamp(22px, 4vw, 38px);
    gap: clamp(14px, 2.5vw, 26px);
    align-items: center;
}

.history-card__header img {
    display: block;
    width: clamp(68px, 9vw, 96px);
    height: clamp(68px, 9vw, 96px);
    object-fit: contain;
    flex: 0 0 auto;
}

.history-card__header h2 {
    margin: 0;
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: clamp(1.65rem, 3.6vw, 2.7rem);
    line-height: 1.25;
}

.history-card__content {
    display: grid;
    gap: clamp(24px, 4vw, 40px);
}

.history-content-text {
    font-size: clamp(1rem, .35vw + .93rem, 1.12rem);
    line-height: 1.82;
}

.history-content-image,
.history-content-video {
    margin: 0;
}

.history-content-image img,
.history-content-video video {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    object-fit: contain;
}

.history-content-image img {
    max-height: 650px;
    background: #f2e8dd;
}

.history-content-video video {
    border: 0;
    background: #171315;
    aspect-ratio: 16 / 9;
}

.history-content-image figcaption,
.history-content-video figcaption {
    margin-top: 10px;
    color: #766164;
    font-size: .9rem;
    line-height: 1.5;
    text-align: center;
}

.history-empty-state {
    text-align: center;
}

.history-empty-state h2,
.history-empty-state p {
    margin: 0;
}

.history-empty-state p {
    margin-top: 8px;
}

.admin-history-list {
    display: grid;
    margin-top: 30px;
    gap: 18px;
}

.admin-history-item {
    display: grid;
    padding: 20px;
    border: 1px solid rgb(128 77 67 / 24%);
    border-radius: 16px;
    background: #fffdfa;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.admin-history-item__order {
    display: grid;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    color: #fff;
    background: var(--navbar-color);
    font-size: 1.2rem;
    font-weight: 900;
    place-items: center;
}

.content-section {
    margin-bottom: clamp(54px, 8vw, 96px);
    padding: clamp(24px, 4.5vw, 52px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 24px;
    background-color: #fffaf2;
    background-image: none;
    opacity: 1;
    isolation: isolate;
    box-shadow: 0 10px 30px rgb(83 48 39 / 10%), inset 0 0 0 7px rgb(255 255 255 / 32%);
    scroll-margin-top: 96px;
}

.section-title {
    display: grid;
    margin-bottom: clamp(22px, 4vw, 38px);
    grid-template-columns: clamp(64px, 9vw, 98px) minmax(0, 1fr);
    gap: clamp(14px, 2.5vw, 28px);
    align-items: center;
}

.section-title__icon {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 4px rgb(64 34 28 / 14%));
}

.section-title__text {
    min-width: 0;
}

.section-title__art {
    display: block;
    width: min(100%, 760px);
    max-height: 145px;
    object-fit: contain;
    object-position: left center;
}

.section-title__art--tall {
    max-height: 175px;
}

.section-title--html h1,
.section-title--html h2 {
    margin: 0;
    color: #292326;
    font-size: clamp(1.65rem, 3.2vw, 2.8rem);
    line-height: 1.2;
}

.section-title--editable h1 {
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: clamp(2.15rem, 5.4vw, 4.7rem);
    font-weight: 800;
}

.about-block__title h1,
.about-block__title h2 {
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: clamp(2rem, 4.8vw, 4rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.section-title--html strong {
    color: var(--navbar-color);
    font-weight: 900;
}

.content-section__body > :first-child,
.action-card > :first-child {
    margin-top: 0;
}

.content-section__body > :last-child,
.action-card > :last-child {
    margin-bottom: 0;
}

.content-section p {
    margin: 0 0 1.15em;
}

.stitched-list {
    --point-size: 64px;
    display: grid;
    margin: 1.4rem 0;
    padding: 0;
    list-style: none;
    gap: 0.85rem;
}

.stitched-list--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 4vw, 46px);
}

.stitched-list li {
    display: grid;
    grid-template-columns: calc(var(--point-size) + 4px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.stitched-list li > img {
    display: block;
    width: var(--point-size);
    height: var(--point-size);
    margin-top: 0;
    object-fit: contain;
}

.stitched-list li > span,
.stitched-list li > blockquote {
    padding-top: calc((var(--point-size) - 1lh) / 2);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.action-card {
    padding: 24px;
    border: 1px solid rgb(40 169 170 / 35%);
    border-radius: 18px;
    background-color: #fffdfa;
    background-image: none;
    opacity: 1;
    box-shadow: inset 0 0 0 4px rgb(40 169 170 / 6%);
}

.action-card:nth-child(2n) {
    border-color: rgb(246 62 79 / 32%);
    box-shadow: inset 0 0 0 4px rgb(246 62 79 / 5%);
}

.action-card h3 {
    margin: 0 0 0.55rem;
    color: #147f83;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.3;
}

.action-card:nth-child(2n) h3 {
    color: #c72f40;
}

.about-block__content .about-icon-list {
    --point-size: 64px;
    display: grid;
    margin: 1.4rem 0;
    padding: 0;
    list-style: none;
    gap: .85rem;
}

.about-block__content .about-icon-list--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 4vw, 46px);
}

.about-block__content .about-icon-list > li {
    display: grid;
    min-width: 0;
    margin: 0;
    grid-template-columns: calc(var(--point-size) + 4px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.about-block__content .about-icon-list > li > img {
    display: block;
    width: var(--point-size);
    height: var(--point-size);
    object-fit: contain;
}

.about-cards__intro {
    margin-bottom: 20px;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.about-inner-card {
    padding: 24px;
    border: 1px solid rgb(40 169 170 / 35%);
    border-radius: 18px;
    background: #fffdfa;
    box-shadow: inset 0 0 0 4px rgb(40 169 170 / 6%);
}

.about-inner-card--red {
    border-color: rgb(246 62 79 / 32%);
    box-shadow: inset 0 0 0 4px rgb(246 62 79 / 5%);
}

.about-inner-card h3 {
    margin: 0 0 .55rem;
    color: #147f83;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.3;
}

.about-inner-card--red h3 {
    color: #c72f40;
}

.about-inner-card .rich-text > :last-child {
    margin-bottom: 0;
}

.content-section--awareness {
    border-color: rgb(246 62 79 / 45%);
}

.quote-list {
    gap: 1rem;
}

.quote-list li {
    padding: 12px 16px 12px 10px;
    border-left: 3px solid rgb(246 62 79 / 52%);
    border-radius: 0 12px 12px 0;
    background: rgb(246 62 79 / 5%);
}

.quote-list blockquote {
    margin: 0;
    font-style: italic;
}

.instagram-section {
    text-align: center;
}

.instagram-section h2 {
    margin: 0 0 1.6rem;
    color: #292326;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.2;
}

.instagram-section__link {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    color: #c72f67;
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    font-weight: 800;
    text-decoration: none;
    align-items: center;
    flex-direction: column;
    gap: 14px;
}

.instagram-section__link img {
    display: block;
    width: clamp(120px, 22vw, 210px);
    height: auto;
    filter: drop-shadow(0 8px 10px rgb(67 40 35 / 16%));
    transition: transform 180ms ease, filter 180ms ease;
}

.instagram-section__link span {
    padding-bottom: 3px;
    border-bottom: 2px dashed currentColor;
}

.instagram-section__link:hover img,
.instagram-section__link:focus-visible img {
    filter: drop-shadow(0 11px 13px rgb(67 40 35 / 22%));
    transform: translateY(-4px) scale(1.03);
}

.instagram-section__link:hover span,
.instagram-section__link:focus-visible span {
    color: var(--navbar-color);
}

.instagram-section__link:focus-visible {
    border-radius: 10px;
    outline: 3px solid rgb(246 62 79 / 42%);
    outline-offset: 8px;
}

/* Contatos */
.contact-page {
    width: min(1040px, calc(100% - clamp(70px, 22vw, 300px)));
    min-height: 70vh;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) 0 100px;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.contact-page__header {
    margin-bottom: clamp(34px, 6vw, 60px);
    text-align: center;
}

.contact-page__header p,
.contact-page__header h1 {
    margin: 0;
}

.contact-page__header p {
    color: #c72f40;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.contact-page__header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.contact-card {
    padding: clamp(24px, 4.5vw, 52px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 24px;
    background: #fffaf2;
    box-shadow: 0 10px 30px rgb(83 48 39 / 10%);
}

.contact-card__channels {
    display: grid;
    margin-bottom: clamp(30px, 5vw, 48px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-channel {
    display: flex;
    min-width: 0;
    min-height: 180px;
    padding: 24px 20px;
    border: 1px solid rgb(128 77 67 / 24%);
    border-radius: 18px;
    background: #fffdfa;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-channel h2 {
    margin: 0 0 14px;
    color: #2e2527;
    font-size: 1.25rem;
}

.contact-channel a {
    max-width: 100%;
    color: #bd2c3d;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.contact-channel--instagram a {
    display: flex;
    text-decoration: none;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.contact-channel--instagram img {
    display: block;
    width: 82px;
    height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgb(67 40 35 / 16%));
}

.contact-channel--address a {
    display: grid;
    gap: 5px;
    text-decoration: none;
}

.contact-channel--address strong {
    color: #403437;
}

.contact-channel a:hover,
.contact-channel a:focus-visible {
    color: var(--navbar-color);
    outline: 3px solid rgb(246 62 79 / 18%);
    outline-offset: 6px;
}

.contact-map {
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 18px;
    background: #eee5db;
    box-shadow: 0 7px 20px rgb(70 38 32 / 14%);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 48vw, 520px);
    border: 0;
}

.site-footer {
    width: 100%;
    padding: clamp(42px, 6vw, 72px) 24px;
    background: var(--navbar-color);
    color: #fff;
    box-shadow: 0 -5px 18px rgb(58 22 28 / 14%);
}

.site-footer__inner {
    display: flex;
    width: min(1500px, 100%);
    margin: 0 auto;
    gap: clamp(24px, 3vw, 44px);
    align-items: center;
    justify-content: center;
}

.footer-navigation {
    display: flex;
    width: fit-content;
    margin: 0;
    flex: 0 0 auto;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.footer-navigation a {
    display: block;
    padding: 6px 22px;
    border-radius: 6px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.footer-navigation a:hover,
.footer-navigation a:focus-visible {
    background: rgb(122 14 31 / 20%);
    outline: 2px solid rgb(255 255 255 / 75%);
    outline-offset: 1px;
    transform: translateY(2px);
}

.footer-logos {
    display: flex;
    min-width: 0;
    gap: clamp(12px, 2.4vw, 38px);
    flex: 1;
    align-items: center;
    justify-content: center;
}

.footer-logos__item {
    display: flex;
    width: clamp(115px, 16vw, 220px);
    height: 132px;
    padding: 16px;
    border-radius: 16px;
    background: #fffaf2;
    box-shadow: 0 5px 14px rgb(70 18 27 / 18%);
    align-items: center;
    justify-content: center;
}

.footer-logos__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.footer-logos__image--ufrgs {
    max-height: 102px;
}

.footer-logos__image--faced {
    max-height: 94px;
}

.footer-logos__image--ceei {
    max-height: 108px;
}

.footer-contact {
    display: flex;
    width: clamp(180px, 18vw, 250px);
    min-width: 0;
    padding: 20px 0 20px clamp(16px, 2vw, 28px);
    border-left: 1px solid rgb(255 255 255 / 34%);
    font-family: Arial, Helvetica, sans-serif;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 10px;
}

.footer-contact h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.2rem;
}

.footer-contact a {
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #fff3d9;
    outline: 2px solid rgb(255 255 255 / 70%);
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .site-brand {
        min-height: 170px;
        padding: 16px 20px;
    }

    .site-brand__image {
        width: 145px;
    }

    .page-content {
        width: calc(100% - clamp(48px, 19vw, 92px));
        padding-top: 42px;
        padding-bottom: 70px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .tessituras-intro img {
        width: min(280px, 72vw);
    }

    .history-page {
        width: calc(100% - clamp(48px, 19vw, 92px));
        min-height: 60vh;
        padding: 42px 0 80px;
    }

    .contact-page {
        width: calc(100% - clamp(48px, 19vw, 92px));
        padding: 42px 0 80px;
    }

    .contact-card {
        padding: clamp(18px, 5vw, 28px);
        border-radius: 18px;
    }

    .contact-card__channels {
        grid-template-columns: 1fr;
    }

    .contact-channel {
        min-height: 0;
    }

    .history-page__logo {
        width: min(280px, 72vw);
        margin-bottom: 42px;
    }

    .history-card,
    .history-empty-state {
        padding: clamp(18px, 5vw, 28px);
        border-radius: 18px;
    }

    .history-card__header img {
        width: clamp(54px, 16vw, 72px);
        height: clamp(54px, 16vw, 72px);
    }

    .admin-history-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .admin-history-item .admin-news-item__actions {
        grid-column: 1 / -1;
    }

    .content-section {
        margin-bottom: 46px;
        padding: clamp(18px, 5vw, 28px);
        border-radius: 18px;
    }

    .section-title {
        grid-template-columns: clamp(48px, 14vw, 64px) minmax(0, 1fr);
        gap: 10px;
    }

    .section-title__art {
        max-height: 94px;
    }

    .section-title__art--tall {
        max-height: 118px;
    }

    .section-title--html {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .section-title--html h1,
    .section-title--html h2 {
        font-size: clamp(1.35rem, 6vw, 1.9rem);
    }

    .stitched-list--columns,
    .action-grid,
    .about-block__content .about-icon-list--columns,
    .about-cards-grid {
        grid-template-columns: 1fr;
    }

    .about-block__content .about-icon-list {
        --point-size: 52px;
    }

    .about-block__content .about-icon-list > li {
        grid-template-columns: calc(var(--point-size) + 2px) minmax(0, 1fr);
        gap: 9px;
    }

    .about-inner-card {
        padding: 19px;
    }

    .stitched-list li {
        grid-template-columns: calc(var(--point-size) + 2px) minmax(0, 1fr);
        gap: 9px;
    }

    .stitched-list {
        --point-size: 52px;
    }

    .action-card {
        padding: 19px;
    }

    .site-footer {
        padding: 42px 20px 52px;
    }

    .site-footer__inner {
        flex-direction: column;
        gap: 38px;
    }

    .footer-navigation {
        margin-bottom: 0;
    }

    .footer-logos {
        flex-direction: column;
        gap: 18px;
    }

    .footer-logos__item {
        width: min(260px, 82vw);
        height: 126px;
    }

    .footer-contact {
        width: min(300px, 82vw);
        padding: 26px 8px 0;
        border-top: 1px solid rgb(255 255 255 / 34%);
        border-left: 0;
        text-align: center;
        align-items: center;
    }

    .top-navbar {
        width: 0;
        max-width: none;
        min-height: 0;
        margin: 0 auto;
        background: transparent;
        box-shadow: none;
    }

    .top-navbar.is-stuck {
        --navbar-height: 64px;
        width: calc(100% - 8px);
        min-height: var(--navbar-height);
        margin: 0 4px;
        background: var(--navbar-color);
        box-shadow: 0 4px 14px rgb(58 22 28 / 22%);
    }

    .top-navbar__inner {
        width: 100%;
        min-height: 0;
        padding: 0;
        align-items: center;
        justify-content: space-between;
    }

    .top-navbar.is-stuck .top-navbar__inner {
        min-height: var(--navbar-height);
        padding: 0 14px;
    }

    .top-navbar__compact-logo,
    .top-navbar:not(.is-stuck) .top-navbar__compact-logo {
        width: 0;
        margin: 0;
        opacity: 0;
        visibility: hidden;
    }

    .top-navbar.is-stuck .top-navbar__compact-logo {
        width: 58px;
        margin-right: auto;
        opacity: 1;
        visibility: visible;
        transform: translate(0, 0) scale(1);
    }

    .top-navbar__compact-logo img {
        width: 54px;
        height: 54px;
    }

    .menu-toggle {
        position: fixed;
        z-index: 1003;
        top: 10px;
        right: 10px;
        display: flex;
        width: 46px;
        height: 46px;
        padding: 10px;
        border: 2px solid rgb(255 255 255 / 92%);
        border-radius: 50%;
        background: var(--navbar-color);
        box-shadow: 0 0 0 3px rgb(246 62 79 / 18%), 0 5px 14px rgb(58 22 28 / 34%);
        cursor: pointer;
        flex-direction: column;
        justify-content: space-around;
        transition: width 240ms ease, height 240ms ease, padding 240ms ease, border-radius 240ms ease, background-color 240ms ease;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 2px;
        background: #fff;
        transform-origin: center;
        transition: opacity 180ms ease, transform 240ms ease;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        background: #dc3041;
        outline: 2px solid rgb(255 255 255 / 70%);
        outline-offset: 2px;
    }

    .menu-toggle[aria-expanded="true"] {
        position: fixed;
        top: 10px;
        right: 14px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border-radius: 6px;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .top-navbar.is-stuck .menu-toggle:not([aria-expanded="true"]) {
        position: relative;
        top: auto;
        right: auto;
        width: 44px;
        height: 44px;
        padding: 10px;
        border-radius: 6px;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .top-navbar.is-stuck .menu-toggle span,
    .menu-toggle[aria-expanded="true"] span {
        height: 3px;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu-backdrop {
        position: fixed;
        z-index: 1001;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgb(32 12 17 / 48%);
        opacity: 0;
        transition: opacity 260ms ease, visibility 260ms ease;
    }

    .main-navigation {
        position: fixed;
        z-index: 1002;
        top: 0;
        right: 0;
        display: flex;
        width: min(84vw, 360px);
        height: 100dvh;
        padding: 76px 22px 28px;
        background: var(--navbar-color);
        box-shadow: -8px 0 24px rgb(43 9 16 / 22%);
        visibility: hidden;
        opacity: 0;
        transform: translateX(105%);
        pointer-events: none;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        transition: transform 300ms cubic-bezier(.22, .7, .27, 1), opacity 200ms ease, visibility 300ms;
    }

    .main-navigation > a,
    .navigation-dropdown__toggle {
        width: 100%;
        min-height: 58px;
        padding: 0 16px;
        border: 0;
        border-bottom: 1px solid rgb(255 255 255 / 22%);
        font-size: 1.04rem;
        justify-content: flex-start;
    }

    .navigation-dropdown {
        display: block;
        width: 100%;
    }

    .navigation-dropdown__toggle {
        justify-content: space-between;
    }

    .navigation-submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0 0 5px 14px;
        border-radius: 0;
        visibility: visible;
        background: rgb(133 20 37 / 20%);
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .navigation-dropdown.is-open .navigation-submenu {
        display: grid;
    }

    .navigation-submenu a {
        min-height: 50px;
        padding-left: 18px;
        border-bottom: 1px solid rgb(255 255 255 / 18%);
        border-radius: 0;
    }

    .top-navbar.menu-is-open .main-navigation {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .top-navbar.menu-is-open .menu-backdrop {
        visibility: visible;
        opacity: 1;
    }

    body.menu-is-open {
        overflow: hidden;
    }

    html,
    body {
        overflow-x: clip;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-navbar__compact-logo,
    .main-navigation,
    .main-navigation a,
    .navigation-dropdown__toggle,
    .navigation-submenu,
    .menu-backdrop,
    .menu-toggle span {
        transition: none;
    }
}

.members-page {
    width: min(1040px, calc(100% - clamp(70px, 22vw, 300px)));
    min-height: 70vh;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) 0 100px;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.members-page__header {
    display: flex;
    width: fit-content;
    margin: 0 auto clamp(34px, 6vw, 60px);
    gap: 18px;
    align-items: center;
}

.members-page__header > img {
    width: clamp(64px, 9vw, 96px);
    height: clamp(64px, 9vw, 96px);
    object-fit: contain;
}

.members-page__header p,
.members-page__header h1 {
    margin: 0;
}

.members-page__header p {
    color: #c72f40;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.members-page__header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: clamp(18px, 3vw, 28px);
    justify-content: center;
}

.member-card {
    position: relative;
    display: flex;
    width: 100%;
    height: 460px;
    aspect-ratio: auto;
    min-width: 0;
    padding: clamp(19px, 2.8vw, 26px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 22px;
    background: #fffaf2;
    box-shadow: 0 10px 30px rgb(83 48 39 / 12%);
    text-align: center;
    align-items: center;
    flex-direction: column;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.member-card:hover,
.member-card:has(.member-card__open:focus-visible) {
    border-color: var(--navbar-color);
    box-shadow: 0 14px 32px rgb(83 48 39 / 18%);
    transform: translateY(-3px);
}

.member-card__open {
    position: absolute;
    z-index: 1;
    inset: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
}

.member-card__open:focus-visible {
    outline: 3px solid var(--navbar-color);
    outline-offset: 4px;
}

.member-card__header {
    display: flex;
    width: 100%;
    height: 76px;
    min-height: 76px;
    margin-bottom: 8px;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.member-card__header img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
}

.member-card h2 {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: clamp(1.18rem, 1.9vw, 1.42rem);
    font-weight: 700;
    line-height: 1.14;
    text-align: left;
    flex: 1 1 auto;
}

.member-card h2.member-name--force-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.member-card__photo {
    display: block;
    width: clamp(112px, 12vw, 138px);
    height: clamp(112px, 12vw, 138px);
    border: 6px solid #fff;
    border-radius: 50%;
    background: #f1e4dc;
    box-shadow: 0 6px 18px rgb(62 32 28 / 18%);
    object-fit: cover;
}

.member-card__description {
    display: -webkit-box;
    height: calc(4 * 1.55em);
    margin: 13px 0;
    overflow: hidden;
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.member-card > a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    min-height: 42px;
    margin-top: auto;
    padding: 8px 16px;
    border-radius: 9px;
    background: var(--navbar-color);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
}

.member-modal[hidden] {
    display: none;
}

.member-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    padding: 24px;
    overflow-y: auto;
    visibility: hidden;
    background: rgb(35 18 22 / 68%);
    opacity: 0;
    place-items: center;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.member-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.member-modal__card {
    position: relative;
    display: grid;
    width: min(900px, 100%);
    max-height: calc(100dvh - 48px);
    padding: clamp(28px, 4vw, 42px);
    overflow-y: auto;
    border: 2px dashed rgb(128 77 67 / 48%);
    border-radius: 26px;
    background: #fffaf2;
    box-shadow: 0 22px 60px rgb(24 10 13 / 34%);
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    grid-template-areas:
        "header header"
        "photo description"
        "photo curriculum";
    column-gap: clamp(30px, 5vw, 54px);
    row-gap: 18px;
    align-items: start;
    transform: translateY(18px) scale(.97);
    transition: transform 200ms ease;
}

.member-modal.is-open .member-modal__card {
    transform: translateY(0) scale(1);
}

.member-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 50%;
    background: var(--navbar-color);
    color: #fff;
    cursor: pointer;
    font: 700 2rem/1 Arial, Helvetica, sans-serif;
    place-items: center;
}

.member-modal__close:hover,
.member-modal__close:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 24%);
    outline-offset: 2px;
}

.member-modal__header {
    display: flex;
    width: 100%;
    min-height: 84px;
    padding-right: 46px;
    gap: 12px;
    text-align: left;
    align-items: center;
    grid-area: header;
}

.member-modal__header img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    flex: 0 0 auto;
}

.member-modal__header h2 {
    margin: 0;
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: clamp(1.85rem, 5vw, 2.7rem);
    line-height: 1.2;
}

.member-modal__photo {
    display: block;
    width: clamp(160px, 28vw, 210px);
    height: clamp(160px, 28vw, 210px);
    margin: 6px auto 0;
    border: 7px solid #fff;
    border-radius: 50%;
    background: #f1e4dc;
    box-shadow: 0 8px 24px rgb(62 32 28 / 20%);
    object-fit: cover;
    grid-area: photo;
}

.member-modal__description {
    margin: 0;
    color: #44383a;
    font-size: clamp(1.05rem, 2vw, 1.18rem);
    line-height: 1.7;
    text-align: left;
    white-space: pre-line;
    grid-area: description;
}

.member-modal__card > a {
    display: inline-flex;
    min-height: 46px;
    width: fit-content;
    margin-top: 2px;
    padding: 9px 18px;
    border-radius: 9px;
    background: var(--navbar-color);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
    grid-area: curriculum;
}

.member-modal__card > a:hover,
.member-modal__card > a:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 20%);
}

body.member-modal-is-open {
    overflow: hidden;
}

.member-card > a:hover,
.member-card > a:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 20%);
}

.members-empty-state {
    padding: clamp(34px, 6vw, 64px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 22px;
    background: #fffaf2;
    text-align: center;
}

.members-empty-state h2,
.members-empty-state p {
    margin: 0;
}

.members-empty-state p {
    margin-top: 7px;
}

@media (max-width: 760px) {
    .members-page {
        width: calc(100% - clamp(48px, 19vw, 92px));
        padding: 42px 0 70px;
    }

    .members-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .member-card {
        width: min(320px, 100%);
        height: 440px;
        min-height: 0;
    }

    .member-modal {
        padding: 12px;
    }

    .member-modal__card {
        display: flex;
        max-height: calc(100dvh - 24px);
        padding: 26px 20px 30px;
        border-radius: 20px;
        text-align: center;
        align-items: center;
        flex-direction: column;
    }

    .member-modal__header {
        padding-right: 42px;
    }

    .member-modal__header img {
        width: 64px;
        height: 64px;
    }

    .member-modal__photo {
        margin: 18px 0;
    }

    .member-modal__description {
        text-align: center;
    }

    .member-modal__card > a {
        margin-top: 22px;
    }
}

.login-page,
.admin-page {
    display: grid;
    width: 100%;
    min-height: 100vh;
    padding: 36px 20px;
    place-items: center;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.login-card,
.admin-panel {
    width: min(470px, 100%);
    padding: clamp(28px, 5vw, 46px);
    border: 2px dashed rgb(128 77 67 / 42%);
    border-radius: 24px;
    background-color: #fffaf2;
    background-image: none;
    box-shadow: 0 14px 38px rgb(63 34 29 / 18%);
}

.login-card__logo {
    display: block;
    width: min(210px, 62%);
    margin: 0 auto 24px;
}

.login-card__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.login-card__eyebrow,
.admin-panel__header p {
    margin: 0 0 5px;
    color: #c72f40;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-card h1,
.admin-panel h1 {
    margin: 0;
    color: #292326;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.15;
}

.login-message {
    margin: 22px 0 0;
    padding: 12px 14px;
    border-left: 4px solid var(--navbar-color);
    border-radius: 8px;
    background: #fde8e9;
    color: #821c2a;
    font-size: 0.94rem;
    line-height: 1.45;
}

.login-form {
    display: grid;
    margin-top: 26px;
    gap: 9px;
}

.login-form label {
    margin-top: 7px;
    font-size: 0.92rem;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #c9aaa3;
    border-radius: 9px;
    background: #fff;
    color: #292326;
    font: inherit;
    outline: none;
}

.login-form input:focus {
    border-color: var(--navbar-color);
    box-shadow: 0 0 0 3px rgb(246 62 79 / 16%);
}

.login-form button,
.admin-logout button {
    min-height: 48px;
    margin-top: 14px;
    padding: 11px 20px;
    border: 0;
    border-radius: 9px;
    background: var(--navbar-color);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: background-color 160ms ease, transform 160ms ease;
}

.login-form button:hover,
.login-form button:focus-visible,
.admin-logout button:hover,
.admin-logout button:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 24%);
    outline-offset: 2px;
    transform: translateY(2px);
}

.login-card__back {
    display: block;
    width: fit-content;
    margin: 24px auto 0;
    color: #6e5659;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.login-card__back:hover,
.login-card__back:focus-visible {
    color: var(--navbar-color);
    text-decoration: underline;
}

.admin-panel {
    width: min(680px, 100%);
}

.admin-panel__header {
    display: flex;
    margin-bottom: 28px;
    gap: 20px;
    align-items: center;
}

.admin-panel__header img {
    display: block;
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.admin-panel > p {
    line-height: 1.65;
}

.admin-actions {
    display: grid;
    margin: 28px 0 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-actions a {
    display: flex;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgb(40 169 170 / 44%);
    border-radius: 9px;
    background: #fff;
    color: #147f83;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.admin-actions a:hover,
.admin-actions a:focus-visible {
    border-color: #147f83;
    outline: 3px solid rgb(40 169 170 / 14%);
}

.admin-logout {
    text-align: center;
}

.admin-logout button {
    width: 100%;
}

.admin-user-card {
    display: flex;
    margin: 24px 0;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    gap: 5px;
}

.admin-user-card span {
    color: #806b6e;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-user-card strong {
    font-size: 1.3rem;
}

@media (max-width: 520px) {
    .login-page,
    .admin-page {
        padding: 20px 14px;
    }

    .login-card,
    .admin-panel {
        border-radius: 18px;
    }

    .admin-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-panel__header img {
        width: 88px;
        height: 88px;
    }

    .admin-actions {
        grid-template-columns: 1fr;
    }
}

/* Busca instantânea das listagens públicas */
.live-search {
    width: min(760px, 100%);
    margin: 0 auto clamp(28px, 5vw, 46px);
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.live-search > label {
    display: block;
    margin: 0 0 8px;
    font-size: .88rem;
    font-weight: 900;
}

.live-search__field {
    position: relative;
    display: flex;
    min-height: 52px;
    border: 2px solid rgb(128 77 67 / 38%);
    border-radius: 13px;
    background: #fffaf2;
    box-shadow: 0 6px 18px rgb(63 34 29 / 9%);
    align-items: center;
}

.live-search__field:focus-within {
    border-color: var(--navbar-color);
    box-shadow: 0 0 0 4px rgb(246 62 79 / 14%);
}

.live-search__field > span {
    width: 48px;
    color: #a12b3a;
    font-size: 1.7rem;
    font-weight: 900;
    text-align: center;
    flex: 0 0 auto;
}

.live-search input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #31282a;
    font: inherit;
    outline: none;
}

.live-search input::placeholder {
    color: #8d797b;
}

.live-search button {
    width: 42px;
    height: 42px;
    margin-right: 4px;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a12b3a;
    cursor: pointer;
    font: 700 1.7rem/1 Arial, Helvetica, sans-serif;
    flex: 0 0 auto;
}

.live-search button:hover,
.live-search button:focus-visible {
    background: #fde5e7;
    outline: none;
}

.live-search__status {
    min-height: 20px;
    margin: 7px 2px 0;
    color: #796568;
    font-size: .82rem;
    font-weight: 700;
}

.live-search__empty {
    margin: 16px 0 0;
    padding: 20px;
    border: 2px dashed rgb(128 77 67 / 34%);
    border-radius: 13px;
    background: #fffaf2;
    font-weight: 800;
    text-align: center;
}

[data-live-search-item][hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .live-search {
        margin-bottom: 28px;
    }
}

/* Biblioteca */
.library-page,
.library-documents-page {
    width: min(1040px, calc(100% - clamp(70px, 22vw, 300px)));
    min-height: 70vh;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) 0 100px;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.library-page__header {
    margin-bottom: clamp(34px, 6vw, 60px);
    text-align: center;
}

.library-page__header p,
.library-page__header h1 {
    margin: 0;
}

.library-page__header p {
    color: #c72f40;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.library-page__header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.library-sections {
    display: grid;
    gap: 16px;
}

.library-sections a {
    display: flex;
    width: 100%;
    min-height: 94px;
    padding: 20px clamp(24px, 4vw, 42px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 16px;
    background: #fffaf2;
    color: #31282a;
    box-shadow: 0 7px 20px rgb(63 34 29 / 9%);
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    font-weight: 900;
    text-decoration: none;
    align-items: center;
    justify-content: space-between;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.library-sections a span:last-child {
    color: var(--navbar-color);
    font-size: 2rem;
}

.library-sections a:hover,
.library-sections a:focus-visible {
    border-color: var(--navbar-color);
    box-shadow: 0 12px 26px rgb(63 34 29 / 16%);
    outline: none;
    transform: translateX(5px);
}

.library-documents-grid {
    display: grid;
    width: min(980px, 100%);
    margin: 0 auto;
    gap: 20px;
}

.library-document-card {
    display: flex;
    min-width: 0;
    min-height: 160px;
    padding: clamp(20px, 3vw, 30px);
    border: 2px dashed rgb(128 77 67 / 40%);
    border-radius: 20px;
    background: #fffaf2;
    color: #31282a;
    box-shadow: 0 9px 24px rgb(63 34 29 / 12%);
    text-decoration: none;
    gap: clamp(18px, 3vw, 28px);
    align-items: center;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.library-document-card:hover,
.library-document-card:focus-visible {
    border-color: var(--navbar-color);
    box-shadow: 0 14px 30px rgb(63 34 29 / 18%);
    outline: none;
    transform: translateY(-4px);
}

.library-document-card__icon {
    display: inline-flex;
    width: 72px;
    height: 84px;
    flex: 0 0 auto;
    border-radius: 7px 7px 10px 7px;
    background: var(--navbar-color);
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .05em;
    align-items: center;
    justify-content: center;
}

.library-document-card__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.library-document-card__content time {
    color: #8b7275;
    font-size: .84rem;
    font-weight: 900;
}

.library-document-card__content strong {
    font-size: clamp(1.15rem, 2.3vw, 1.55rem);
    line-height: 1.35;
}

.library-document-card__description {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #655356;
    font-size: .96rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.library-document-card__action {
    display: inline-flex;
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 8px;
    background: var(--navbar-color);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    align-items: center;
}

.library-document-card__action:hover,
.library-document-card__action:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 20%);
    outline-offset: 2px;
}

.library-empty-state {
    padding: clamp(34px, 6vw, 64px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 22px;
    background: #fffaf2;
    text-align: center;
}

.library-empty-state h2,
.library-empty-state p {
    margin: 0;
}

.library-empty-state p {
    margin-top: 8px;
}

.library-back-link {
    display: inline-flex;
    margin-top: 38px;
    padding: 10px 16px;
    border-radius: 9px;
    background: var(--navbar-color);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.admin-library-list {
    display: grid;
    gap: 14px;
}

.admin-library-item {
    display: grid;
    min-width: 0;
    padding: 17px;
    border: 1px solid #e0d3cf;
    border-radius: 14px;
    background: #fff;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.admin-library-item time {
    color: #8b7275;
    font-size: .82rem;
    font-weight: 800;
}

.admin-library-item h2 {
    margin: 3px 0 5px;
    font-size: 1.12rem;
}

.admin-library-item p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #655356;
    font-size: .9rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-editor input[type="date"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #c9aaa3;
    border-radius: 9px;
    background: #fff;
    color: #292326;
    font: inherit;
    font-weight: 400;
    outline: none;
}

.news-editor input[type="date"]:focus {
    border-color: var(--navbar-color);
    box-shadow: 0 0 0 3px rgb(246 62 79 / 16%);
}

@media (max-width: 760px) {
    .library-page,
    .library-documents-page {
        width: calc(100% - clamp(48px, 19vw, 92px));
        padding: 42px 0 70px;
    }

    .library-sections a {
        min-height: 80px;
    }

    .library-document-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .library-document-card__icon {
        width: 58px;
        height: 68px;
    }

    .library-document-card__action {
        width: 100%;
        justify-content: center;
    }

    .admin-library-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .admin-library-item .admin-news-item__actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .admin-library-item .admin-news-item__actions > * {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .admin-library-item {
        grid-template-columns: 1fr;
    }

    .admin-library-item .admin-news-item__actions {
        grid-column: auto;
        flex-direction: column;
    }
}

/* Álbuns de fotos e vídeos */
.albums-page,
.album-detail-page {
    width: min(1080px, calc(100% - clamp(70px, 20vw, 260px)));
    min-height: 70vh;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 88px) 0 100px;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.albums-page__header,
.album-detail__header {
    margin: 0 auto clamp(32px, 5vw, 54px);
    text-align: center;
}

.albums-page__header p,
.albums-page__header h1,
.album-detail__header h1,
.album-detail__header .album-detail__description {
    margin: 0;
}

.albums-page__header > p {
    color: #c72f40;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.albums-page__header h1,
.album-detail__header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
    gap: clamp(20px, 3.5vw, 34px);
    justify-content: center;
}

.album-card {
    display: flex;
    min-width: 0;
    height: 340px;
    overflow: hidden;
    border: 2px dashed rgb(128 77 67 / 40%);
    border-radius: 18px;
    background: #fffaf2;
    color: #31282a;
    box-shadow: 0 9px 24px rgb(63 34 29 / 12%);
    text-decoration: none;
    flex-direction: column;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.album-card:hover,
.album-card:focus-visible {
    border-color: var(--navbar-color);
    box-shadow: 0 14px 30px rgb(63 34 29 / 18%);
    outline: none;
    transform: translateY(-4px);
}

.album-card__cover {
    display: grid;
    min-height: 0;
    overflow: hidden;
    background: #eaded4;
    flex: 1;
    place-items: center;
}

.album-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card__video-cover {
    display: grid;
    width: 74px;
    height: 74px;
    padding-left: 5px;
    border-radius: 50%;
    background: var(--navbar-color);
    color: #fff;
    font-size: 1.8rem;
    place-items: center;
}

.album-card__content {
    display: flex;
    min-height: 92px;
    padding: 14px 16px;
    flex-direction: column;
    justify-content: center;
}

.album-card__content strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.album-card__content time {
    margin-top: 7px;
    color: #8b7275;
    font-size: .82rem;
    font-weight: 800;
}

.albums-empty-state {
    padding: clamp(34px, 6vw, 64px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 22px;
    background: #fffaf2;
    text-align: center;
}

.albums-empty-state h1,
.albums-empty-state h2,
.albums-empty-state p {
    margin: 0;
}

.albums-empty-state p {
    margin-top: 8px;
}

.albums-empty-state a {
    display: inline-flex;
    margin-top: 20px;
    color: #a12635;
    font-weight: 800;
}

.album-detail__header {
    max-width: 850px;
    padding: clamp(26px, 4vw, 42px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 22px;
    background: #fffaf2;
}

.album-detail__header time {
    display: block;
    margin-bottom: 7px;
    color: #a12b3a;
    font-size: .84rem;
    font-weight: 900;
}

.album-detail__header .album-detail__description {
    margin-top: 18px;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.7;
}

.album-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.album-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 5px solid #fffaf2;
    border-radius: 14px;
    background: #211b1d;
    box-shadow: 0 7px 18px rgb(54 30 26 / 16%);
    cursor: pointer;
    aspect-ratio: 1;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.album-gallery__item:hover,
.album-gallery__item:focus-visible {
    box-shadow: 0 12px 25px rgb(54 30 26 / 24%);
    outline: 3px solid var(--navbar-color);
    outline-offset: 2px;
    transform: translateY(-3px);
}

.album-gallery__item img,
.album-gallery__item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-gallery__item--video > span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgb(246 62 79 / 92%);
    color: #fff;
    font-size: 1.35rem;
    transform: translate(-50%, -50%);
    place-items: center;
}

.album-detail__back {
    display: inline-flex;
    margin-top: 38px;
    padding: 10px 16px;
    border-radius: 9px;
    background: var(--navbar-color);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.album-lightbox[hidden] {
    display: none;
}

.album-lightbox {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    padding: 22px 72px;
    visibility: hidden;
    background: rgb(20 13 16 / 90%);
    opacity: 0;
    place-items: center;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.album-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.album-lightbox__viewer {
    position: relative;
    display: grid;
    width: min(1180px, 100%);
    height: min(820px, calc(100dvh - 44px));
    padding: 54px 70px 42px;
    border-radius: 20px;
    background: #171315;
    box-shadow: 0 24px 70px rgb(0 0 0 / 45%);
    place-items: center;
}

.album-lightbox__stage {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    place-items: center;
}

.album-lightbox__stage img,
.album-lightbox__stage video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.album-lightbox__stage img[hidden],
.album-lightbox__stage video[hidden] {
    display: none;
}

.album-lightbox__close,
.album-lightbox__arrow {
    position: absolute;
    z-index: 2;
    display: grid;
    border: 0;
    border-radius: 50%;
    background: var(--navbar-color);
    color: #fff;
    cursor: pointer;
    place-items: center;
}

.album-lightbox__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 0 0 4px;
    font: 700 2rem/1 Arial, Helvetica, sans-serif;
}

.album-lightbox__arrow {
    top: 50%;
    width: 52px;
    height: 52px;
    font: 400 2.8rem/1 Arial, Helvetica, sans-serif;
    transform: translateY(-50%);
}

.album-lightbox__arrow--previous {
    left: 10px;
}

.album-lightbox__arrow--next {
    right: 10px;
}

.album-lightbox__close:hover,
.album-lightbox__close:focus-visible,
.album-lightbox__arrow:hover,
.album-lightbox__arrow:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(255 255 255 / 38%);
}

.album-lightbox__arrow:disabled {
    cursor: default;
    opacity: .3;
}

.album-lightbox__counter {
    position: absolute;
    bottom: 13px;
    left: 50%;
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    transform: translateX(-50%);
}

body.album-lightbox-is-open {
    overflow: hidden;
}

.admin-panel--album {
    width: min(880px, 100%);
}

.admin-album-item__placeholder {
    display: grid;
    width: 150px;
    height: 104px;
    border-radius: 10px;
    background: #31282a;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    place-items: center;
}

.admin-album-existing {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #e0d3cf;
    border-radius: 14px;
}

.admin-album-existing legend {
    padding: 0 8px;
    font-weight: 900;
}

.admin-album-existing > p {
    margin: 0 0 14px;
    color: #756367;
    font-size: .9rem;
}

.admin-album-existing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 13px;
}

.admin-album-media {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 7px;
    border: 1px solid #ddceca;
    border-radius: 10px;
    background: #fff;
    flex-direction: column;
    gap: 7px;
}

.admin-album-media img,
.admin-album-media video {
    display: block;
    width: 100%;
    border-radius: 7px;
    background: #211b1d;
    object-fit: cover;
    aspect-ratio: 1;
}

.admin-album-media__order,
.admin-album-media__remove {
    display: flex;
    color: #604b4e;
    font-size: .82rem;
    font-weight: 800;
    gap: 7px;
    align-items: center;
}

.admin-album-media__order {
    justify-content: space-between;
}

.admin-album-media__order input {
    width: 72px;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #cdbab5;
    border-radius: 7px;
    color: #35292c;
    background: #fffaf2;
    font: inherit;
}

.admin-album-media__remove {
    cursor: pointer;
}

.admin-album-media__type {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgb(30 22 25 / 82%);
    color: #fff;
    font-size: .7rem;
    font-weight: 900;
}

@media (max-width: 760px) {
    .albums-page,
    .album-detail-page {
        width: calc(100% - clamp(48px, 16vw, 76px));
        padding: 46px 0 72px;
    }

    .albums-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 210px));
    }

    .album-card {
        height: 310px;
    }

    .album-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .album-lightbox {
        padding: 8px;
    }

    .album-lightbox__viewer {
        width: 100%;
        height: calc(100dvh - 16px);
        padding: 60px 44px 42px;
        border-radius: 14px;
    }

    .album-lightbox__arrow {
        width: 42px;
        height: 42px;
        font-size: 2.2rem;
    }

    .album-lightbox__arrow--previous {
        left: 3px;
    }

    .album-lightbox__arrow--next {
        right: 3px;
    }

    .admin-album-item__placeholder {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 430px) {
    .albums-grid {
        grid-template-columns: minmax(0, 220px);
    }

    .album-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

/* Extensão */
.extension-page {
    width: min(1040px, calc(100% - clamp(70px, 22vw, 300px)));
    min-height: 70vh;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) 0 100px;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.extension-page__header {
    margin-bottom: clamp(34px, 6vw, 60px);
    text-align: center;
}

.extension-page__header p,
.extension-page__header h1 {
    margin: 0;
}

.extension-page__header p {
    color: #c72f40;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.extension-page__header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.extension-list {
    display: grid;
    gap: clamp(38px, 6vw, 66px);
}

.extension-card {
    display: flex;
    width: 100%;
    padding: clamp(24px, 4.5vw, 52px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 24px;
    background: #fffaf2;
    box-shadow: 0 10px 30px rgb(83 48 39 / 10%);
    flex-direction: column;
}

.extension-card__header {
    display: flex;
    margin-bottom: clamp(20px, 3vw, 32px);
    gap: clamp(14px, 2.5vw, 26px);
    align-items: center;
}

.extension-card__header img {
    display: block;
    width: clamp(68px, 9vw, 96px);
    height: clamp(68px, 9vw, 96px);
    object-fit: contain;
    flex: 0 0 auto;
}

.extension-card__header h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3.4vw, 2.5rem);
    line-height: 1.2;
}

.extension-card__text {
    font-size: clamp(1rem, .35vw + .93rem, 1.12rem);
    line-height: 1.75;
}

.extension-card__text p {
    margin: 0;
}

.extension-card > a {
    display: inline-flex;
    width: fit-content;
    min-height: 46px;
    margin-top: 28px;
    padding: 9px 18px;
    border-radius: 9px;
    background: var(--navbar-color);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
}

.extension-card > a:hover,
.extension-card > a:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 20%);
}

.extension-empty-state {
    padding: clamp(34px, 6vw, 64px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 22px;
    background: #fffaf2;
    text-align: center;
}

.extension-empty-state h2,
.extension-empty-state p {
    margin: 0;
}

.extension-empty-state p {
    margin-top: 8px;
}

.admin-extension-list {
    display: grid;
    gap: 15px;
}

.admin-extension-item {
    display: grid;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e0d3cf;
    border-radius: 14px;
    background: #fff;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.admin-extension-item__content {
    min-width: 0;
}

.admin-extension-item__content h2 {
    margin: 0 0 7px;
    font-size: 1.2rem;
}

.admin-extension-item__content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #655356;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.admin-extension-item__content small {
    display: block;
    margin-top: 10px;
    color: #a12b3a;
    font-weight: 800;
}

@media (max-width: 760px) {
    .extension-page {
        width: calc(100% - clamp(48px, 19vw, 92px));
        padding: 42px 0 70px;
    }

    .extension-card {
        border-radius: 18px;
    }

    .extension-card__header {
        align-items: flex-start;
    }

    .extension-card > a {
        width: 100%;
        justify-content: center;
    }

    .admin-extension-item {
        grid-template-columns: 1fr;
    }

    .admin-extension-item .admin-news-item__actions {
        flex-direction: row;
    }

    .admin-extension-item .admin-news-item__actions > * {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .admin-extension-item .admin-news-item__actions {
        flex-direction: column;
    }
}

.admin-edital-list {
    display: grid;
    gap: 14px;
}

.admin-edital-item {
    display: grid;
    min-width: 0;
    padding: 17px;
    border: 1px solid #e0d3cf;
    border-radius: 14px;
    background: #fff;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.admin-edital-item__icon,
.public-notice-card__icon {
    display: inline-flex;
    width: 64px;
    height: 76px;
    border-radius: 8px 8px 12px 8px;
    background: var(--navbar-color);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    box-shadow: inset 0 -6px 0 rgb(113 15 29 / 14%);
    align-items: center;
    justify-content: center;
}

.admin-edital-item time {
    color: #8b7275;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-edital-item h2 {
    margin: 4px 0 0;
    font-size: 1.12rem;
    line-height: 1.35;
}

.admin-current-pdf {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #e2a0a7;
    border-radius: 8px;
    background: #fff;
    color: #a12635;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
}

.admin-current-pdf:hover,
.admin-current-pdf:focus-visible {
    border-color: #a12635;
    outline: 3px solid rgb(246 62 79 / 14%);
}

.edital-pdf-fields {
    display: grid;
    min-width: 0;
    margin: 8px 0 0;
    padding: 20px;
    border: 1px solid #e0d3cf;
    border-radius: 14px;
    gap: 18px;
}

.edital-pdf-fields legend {
    padding: 0 8px;
    font-size: 1.1rem;
    font-weight: 900;
}

.edital-pdf-fields > p {
    margin: -6px 0 0;
    color: #79696b;
    font-size: 0.9rem;
}

.edital-pdf-field {
    display: grid;
    padding-top: 18px;
    border-top: 1px solid #eadfdb;
    gap: 9px;
}

.edital-pdf-field__current {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.edital-remove-pdf {
    display: inline-flex;
    color: #922939;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 7px;
    align-items: center;
}

.admin-edital-item__status,
.public-notice-card__status {
    display: inline-flex;
    width: fit-content;
    margin-top: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #752332;
    color: #fff;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-edital-item__actions {
    max-width: 330px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.public-notices-list {
    display: grid;
    width: min(980px, 100%);
    margin: 0 auto;
    gap: 20px;
}

.public-notice-card {
    display: flex;
    min-height: 132px;
    padding: clamp(20px, 3vw, 30px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 20px;
    background: #fffaf2;
    color: #31282a;
    box-shadow: 0 9px 24px rgb(63 34 29 / 12%);
    text-decoration: none;
    gap: clamp(18px, 3vw, 30px);
    align-items: center;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.public-notice-card--closed {
    border-color: rgb(117 35 50 / 45%);
}

.public-notice-card:hover,
.public-notice-card:focus-visible {
    border-color: var(--navbar-color);
    box-shadow: 0 14px 30px rgb(63 34 29 / 18%);
    outline: none;
    transform: translateY(-3px);
}

.public-notice-card__icon {
    width: 72px;
    height: 84px;
    flex: 0 0 auto;
}

.public-notice-card__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.public-notice-card__content time {
    color: #8b7275;
    font-size: 0.84rem;
    font-weight: 800;
}

.public-notice-card__content strong {
    font-size: clamp(1.15rem, 2.3vw, 1.55rem);
    line-height: 1.35;
}

.public-notice-card__content h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.3vw, 1.55rem);
    line-height: 1.35;
}

.public-notice-card__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.public-notice-card__status {
    margin-top: 0;
}

.public-notice-card__description {
    margin: 9px 0 3px;
    color: #55484a;
    line-height: 1.65;
}

.public-notice-card__documents {
    display: flex;
    margin-top: 12px;
    gap: 9px;
    flex-wrap: wrap;
}

.public-notice-card__documents a {
    display: inline-flex;
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 8px;
    background: var(--navbar-color);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
}

.public-notice-card__documents a:hover,
.public-notice-card__documents a:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 20%);
}

.public-notice-card__action {
    display: inline-flex;
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 8px;
    background: var(--navbar-color);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    align-items: center;
}

@media (max-width: 760px) {
    .admin-edital-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .admin-edital-item .admin-news-item__actions {
        grid-column: 1 / -1;
    }

    .public-notice-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .public-notice-card__icon {
        width: 58px;
        height: 68px;
    }

    .public-notice-card__action {
        width: 100%;
        justify-content: center;
    }

    .public-notice-card__documents,
    .public-notice-card__documents a {
        width: 100%;
    }

    .public-notice-card__documents a {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .admin-edital-item {
        grid-template-columns: 1fr;
    }

    .admin-edital-item__icon {
        width: 54px;
        height: 64px;
    }

    .admin-edital-item .admin-news-item__actions {
        grid-column: auto;
    }
}

.admin-section-menu {
    display: grid;
    margin: 30px 0 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-section-menu a,
.admin-section-menu span {
    display: flex;
    min-height: 64px;
    padding: 12px 16px;
    border: 1px solid rgb(40 169 170 / 42%);
    border-radius: 10px;
    background: #fff;
    color: #147f83;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.admin-section-menu a:hover,
.admin-section-menu a:focus-visible {
    border-color: #147f83;
    background: #effafa;
    outline: 3px solid rgb(40 169 170 / 14%);
}

.admin-section-menu span {
    border-color: #ddceca;
    color: #8b7678;
}

.admin-section-menu small {
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-page--wide {
    align-items: start;
}

.admin-panel--wide {
    width: min(1120px, 100%);
}

.admin-panel__header--actions {
    justify-content: space-between;
}

.admin-panel__identity {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-panel__identity > img {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.admin-primary-link,
.news-editor__actions button,
.news-editor__add {
    display: inline-flex;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--navbar-color);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.admin-primary-link:hover,
.admin-primary-link:focus-visible,
.news-editor__actions button:hover,
.news-editor__actions button:focus-visible,
.news-editor__add:hover,
.news-editor__add:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 20%);
    outline-offset: 2px;
}

.admin-flash {
    margin: 0 0 24px;
    padding: 13px 16px;
    border-left: 4px solid #147f83;
    border-radius: 8px;
    background: #edfafa;
    color: #105f62;
    font-weight: 700;
}

.admin-flash--erro {
    border-left-color: var(--navbar-color);
    background: #fde8e9;
    color: #821c2a;
}

.admin-empty-state {
    padding: 46px 24px;
    border: 2px dashed #d9c7c2;
    border-radius: 14px;
    text-align: center;
}

.admin-empty-state h2,
.admin-empty-state p {
    margin: 0;
}

.admin-empty-state p {
    margin-top: 8px;
}

.admin-news-list {
    display: grid;
    gap: 16px;
}

.admin-news-item {
    display: grid;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e0d3cf;
    border-radius: 14px;
    background: #fff;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.admin-news-item > img {
    display: block;
    width: 150px;
    height: 104px;
    border-radius: 10px;
    object-fit: cover;
}

.admin-news-item.admin-member-item > img {
    width: 118px;
    height: 118px;
    margin: 0 auto;
    border: 5px solid #fffaf2;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgb(62 32 28 / 14%);
}

.admin-member-photo-preview {
    display: block;
    width: 150px;
    height: 150px;
    border: 6px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgb(62 32 28 / 16%);
    object-fit: cover;
}

.admin-news-item__content {
    min-width: 0;
}

.admin-news-item__content time {
    color: #8b7275;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-news-item__content h2 {
    margin: 3px 0 5px;
    font-size: 1.12rem;
    line-height: 1.3;
}

.admin-news-item__content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #655356;
    font-size: 0.9rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-news-item__actions {
    display: flex;
    min-width: 92px;
    flex-direction: column;
    gap: 6px;
}

.admin-news-item__actions a,
.admin-news-item__actions button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cdbab5;
    border-radius: 7px;
    background: #fffaf2;
    color: #604b4e;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.admin-news-item__actions button {
    border-color: #e7a7ad;
    color: #a12635;
}

.admin-news-item__actions a:hover,
.admin-news-item__actions a:focus-visible,
.admin-news-item__actions button:hover,
.admin-news-item__actions button:focus-visible {
    border-color: currentColor;
    outline: 2px solid rgb(246 62 79 / 12%);
}

.admin-bottom-actions {
    display: flex;
    margin-top: 28px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.admin-bottom-actions > a {
    color: #655356;
    font-weight: 800;
}

.admin-bottom-actions .admin-logout button {
    width: auto;
    margin: 0;
}

.news-editor {
    display: grid;
    gap: 24px;
}

.news-editor__field,
.content-block > label,
.content-block [data-media-fields] > label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.news-editor input[type="text"],
.news-editor input[type="url"],
.news-editor input[type="number"],
.news-editor input[type="file"],
.news-editor textarea,
.news-editor select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #c9aaa3;
    border-radius: 9px;
    background: #fff;
    color: #292326;
    font: inherit;
    font-weight: 400;
    outline: none;
}

.news-editor textarea {
    resize: vertical;
}

.news-editor input:focus,
.news-editor textarea:focus,
.news-editor select:focus {
    border-color: var(--navbar-color);
    box-shadow: 0 0 0 3px rgb(246 62 79 / 14%);
}

.news-editor small {
    color: #806b6e;
    font-weight: 400;
}

.news-editor__cover-preview {
    display: block;
    width: min(360px, 100%);
    max-height: 220px;
    border-radius: 12px;
    object-fit: cover;
}

.news-editor__material {
    display: flex;
    padding-top: 24px;
    border-top: 1px solid #e2d4d0;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.news-editor__label {
    font-size: 1.2rem;
    font-weight: 900;
}

.news-editor__material p {
    margin: 4px 0 0;
    color: #725f61;
    font-size: 0.9rem;
}

.content-blocks {
    display: grid;
    gap: 18px;
}

.content-block {
    display: grid;
    padding: 20px;
    border: 2px dashed #d6c2bc;
    border-radius: 14px;
    background: #fffdfa;
    gap: 16px;
}

.content-block > header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.content-block > header > div {
    display: flex;
    gap: 6px;
}

.content-block > header button {
    min-width: 34px;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid #ccb9b3;
    border-radius: 6px;
    background: #fff;
    color: #654f52;
    cursor: pointer;
    font-weight: 800;
}

.content-block > header button:last-child {
    color: #a12635;
}

.content-block > header button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.content-block [data-media-fields] {
    display: grid;
    gap: 12px;
}

.content-block [data-media-fields][hidden] {
    display: none;
}

.content-block__preview {
    display: block;
    width: min(300px, 100%);
    max-height: 190px;
    border-radius: 10px;
    object-fit: cover;
}

.content-block__preview--video {
    background: #171315;
    object-fit: contain;
}

.content-block__legacy-notice {
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid var(--navbar-color);
    border-radius: 7px;
    background: #fde8e9;
    color: #821c2a;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
}

.news-editor__actions {
    display: flex;
    padding-top: 20px;
    border-top: 1px solid #e2d4d0;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.news-editor__actions > a {
    padding: 10px 16px;
    color: #655356;
    font-weight: 800;
}

.news-page,
.news-detail-page {
    width: min(1120px, calc(100% - clamp(70px, 18vw, 260px)));
    min-height: 70vh;
    margin: 0 auto;
    padding: clamp(52px, 7vw, 92px) 0 110px;
    color: #31282a;
    font-family: Arial, Helvetica, sans-serif;
}

.news-page__header {
    margin-bottom: 36px;
    text-align: center;
}

.news-page__header p {
    margin: 0 0 3px;
    color: #c72f40;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.news-page__header h1 {
    margin: 0;
    color: #292326;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.news-grid {
    display: grid;
    width: min(980px, 100%);
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 32px;
}

.news-card {
    display: flex;
    overflow: hidden;
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 20px;
    background: #fffaf2;
    box-shadow: 0 9px 24px rgb(63 34 29 / 12%);
    flex-direction: row;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.news-card:hover {
    box-shadow: 0 14px 30px rgb(63 34 29 / 18%);
    transform: translateY(-4px);
}

.news-card__cover {
    display: grid;
    overflow: hidden;
    min-height: 300px;
    background: #f2e8dd;
    flex: 0 0 42%;
    place-items: center;
}

.news-card__cover img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    transition: filter 180ms ease;
}

.news-card:hover .news-card__cover img {
    filter: brightness(.97);
}

.news-card__body {
    display: flex;
    padding: clamp(24px, 4vw, 42px);
    flex: 1;
    flex-direction: column;
}

.news-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.2rem, 2vw, 1.48rem);
    line-height: 1.3;
}

.news-card h2 a {
    color: #292326;
    text-decoration: none;
}

.news-card h2 a:hover,
.news-card h2 a:focus-visible {
    color: #c72f40;
}

.news-card p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #604f51;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.news-card time,
.news-article__header time {
    color: #8b7275;
    font-size: 0.84rem;
    font-weight: 800;
}

.news-card__button,
.news-back-button {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    margin-top: 14px;
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--navbar-color);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.news-card__button {
    margin-top: auto;
}

.news-card__button:hover,
.news-card__button:focus-visible,
.news-back-button:hover,
.news-back-button:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 20%);
    outline-offset: 2px;
}

.news-empty-state,
.news-article {
    padding: clamp(26px, 5vw, 58px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 24px;
    background: #fffaf2;
    box-shadow: 0 10px 30px rgb(83 48 39 / 12%);
}

.news-empty-state {
    text-align: center;
}

.news-empty-state h2,
.news-empty-state p {
    margin: 0;
}

.news-empty-state p {
    margin-top: 8px;
}

.news-detail-page {
    width: min(980px, calc(100% - clamp(70px, 18vw, 260px)));
}

.news-article__header {
    margin-bottom: 30px;
}

.news-article__header h1,
.news-article--not-found h1 {
    margin: 5px 0 0;
    color: #292326;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.14;
}

.news-article__cover {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin-right: auto;
    margin-left: auto;
    border-radius: 18px;
    object-fit: contain;
}

.news-article__summary {
    margin: 30px 0 42px;
    padding-left: 20px;
    border-left: 4px solid var(--navbar-color);
    color: #503f42;
    font-size: clamp(1.1rem, 2vw, 1.32rem);
    font-weight: 700;
    line-height: 1.65;
}

.news-article__content {
    display: grid;
    gap: clamp(26px, 4vw, 42px);
}

.news-content-text {
    font-size: clamp(1rem, 0.3vw + 0.95rem, 1.12rem);
    line-height: 1.82;
}

.news-content-image {
    margin: 0;
}

.news-content-image img {
    display: block;
    width: 100%;
    max-height: 650px;
    border-radius: 16px;
    object-fit: contain;
    background: #f2e8dd;
}

.news-content-image figcaption {
    margin-top: 10px;
    color: #766164;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.news-content-video {
    margin: 0;
}

.news-content-video iframe,
.news-content-video video {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #171315;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.news-content-video figcaption {
    margin-top: 10px;
    color: #766164;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.news-article .news-back-button {
    margin-top: 48px;
}

@media (max-width: 980px) {
    .admin-news-item {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .admin-news-item > img {
        width: 130px;
    }

    .admin-news-item.admin-member-item > img {
        width: 118px;
        height: 118px;
    }

    .admin-news-item__actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .admin-news-item__actions > * {
        flex: 1;
    }
}

@media (max-width: 760px) {
    .news-page,
    .news-detail-page {
        width: calc(100% - clamp(48px, 16vw, 76px));
        padding-top: 48px;
        padding-bottom: 72px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card__cover {
        min-height: 0;
        aspect-ratio: 16 / 10;
        flex-basis: auto;
    }

    .news-card__cover img {
        max-height: 100%;
    }

    .news-card__body {
        padding: 19px;
    }

    .news-article {
        padding: clamp(19px, 5vw, 28px);
        border-radius: 18px;
    }

    .news-article__cover {
        border-radius: 12px;
    }

    .admin-panel__header--actions,
    .news-editor__material,
    .admin-bottom-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-primary-link,
    .news-editor__add {
        width: 100%;
    }

    .admin-news-item {
        grid-template-columns: 1fr;
    }

    .admin-news-item > img {
        width: 100%;
        height: 180px;
    }

    .admin-news-item.admin-member-item > img {
        width: 132px;
        height: 132px;
    }

    .admin-news-item__actions {
        grid-column: auto;
    }

    .admin-bottom-actions .admin-logout button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .admin-section-menu {
        grid-template-columns: 1fr;
    }

    .admin-panel__identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-news-item__actions,
    .news-editor__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .content-block > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-block > header > div {
        width: 100%;
    }

    .content-block > header button:last-child {
        margin-left: auto;
    }
}
.site-accessibility {
    position: fixed;
    z-index: 12000;
    right: 8px;
    bottom: 108px;
    font-family: Arial, Helvetica, sans-serif;
}

div[vw].enabled:not(.maximize) {
    top: auto !important;
    right: 0;
    bottom: 14px !important;
    margin-top: 0 !important;
}

.accessibility-trigger {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 3px solid #fff;
    border-radius: 13px;
    color: #fff;
    background: #1257d6;
    box-shadow: 0 4px 14px rgb(0 0 0 / 26%);
    cursor: pointer;
    place-items: center;
    transition: transform 180ms ease, background-color 180ms ease;
}

.accessibility-trigger:hover,
.accessibility-trigger:focus-visible {
    background: #0844b4;
    transform: translateY(-2px);
}

.accessibility-trigger svg,
.accessibility-panel__header-actions svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.accessibility-backdrop {
    position: fixed;
    z-index: 12000;
    inset: 0;
    background: rgb(11 26 50 / 34%);
}

.accessibility-panel {
    position: fixed;
    z-index: 12001;
    top: 0;
    right: 0;
    width: min(500px, 100vw);
    height: 100dvh;
    overflow: hidden;
    color: #242b35;
    background: #edf3fb;
    box-shadow: -12px 0 35px rgb(0 0 0 / 24%);
    transform: translateX(105%);
    transition: transform 260ms ease;
}

.accessibility-panel.is-open {
    transform: translateX(0);
}

.accessibility-panel__header {
    display: flex;
    min-height: 76px;
    padding: 0 20px 0 24px;
    color: #fff;
    background: #1257d6;
    align-items: center;
    justify-content: space-between;
}

.accessibility-panel__header h2 {
    margin: 0;
    color: inherit;
    font: 700 1.22rem/1.2 Arial, Helvetica, sans-serif;
}

.accessibility-panel__header-actions {
    display: flex;
    gap: 12px;
}

.accessibility-panel__header-actions button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 0;
    border-radius: 50%;
    color: #1257d6;
    background: #fff;
    cursor: pointer;
    place-items: center;
}

.accessibility-panel__body {
    height: calc(100dvh - 76px);
    padding: 28px 22px 40px;
    overflow-y: auto;
}

.accessibility-section {
    padding: 22px;
    border-radius: 22px;
    background: rgb(255 255 255 / 74%);
    box-shadow: 0 6px 18px rgb(37 75 125 / 7%);
}

.accessibility-section + .accessibility-section {
    margin-top: 22px;
}

.accessibility-section h3 {
    margin: 0 0 16px;
    color: #2560c3;
    font: 700 .82rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.accessibility-option {
    display: grid;
    width: 100%;
    min-height: 92px;
    padding: 16px 18px;
    border: 1px solid #e3eaf4;
    border-radius: 19px;
    color: #2f3339;
    background: #fff;
    cursor: pointer;
    grid-template-columns: 54px 1fr 44px;
    gap: 14px;
    align-items: center;
    text-align: left;
}

.accessibility-option + .accessibility-option {
    margin-top: 12px;
}

.accessibility-option:hover,
.accessibility-option:focus-visible {
    border-color: #7aa6ee;
    box-shadow: 0 0 0 3px rgb(18 87 214 / 12%);
}

.accessibility-option__icon {
    display: grid;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    color: #101820;
    background: #edf3fc;
    font-weight: 700;
    font-size: 1.25rem;
    place-items: center;
}

.accessibility-option__copy {
    display: grid;
    gap: 4px;
}

.accessibility-option__copy strong {
    font-size: 1rem;
    line-height: 1.2;
}

.accessibility-option__copy small {
    color: #646a73;
    font-size: .83rem;
    line-height: 1.3;
}

.accessibility-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d8dfe9;
    transition: background-color 180ms ease;
}

.accessibility-switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgb(0 0 0 / 20%);
    content: "";
    transition: transform 180ms ease;
}

.accessibility-option[aria-pressed="true"] .accessibility-switch {
    background: #1257d6;
}

.accessibility-option[aria-pressed="true"] .accessibility-switch::after {
    transform: translateX(20px);
}

.accessibility-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.accessibility-tools button {
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid #dbe5f4;
    border-radius: 12px;
    color: #24344b;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.accessibility-tools button[aria-pressed="true"] {
    border-color: #1257d6;
    color: #fff;
    background: #1257d6;
}

body.accessibility-is-open {
    overflow: hidden;
}

body.menu-is-open .site-accessibility,
body.menu-is-open > [vw] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html.a11y-reduced-motion *,
html.a11y-reduced-motion *::before,
html.a11y-reduced-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
}

html.a11y-large-text {
    font-size: 118%;
}

html.a11y-high-contrast body {
    color: #090909;
}

html.a11y-high-contrast main,
html.a11y-high-contrast main p,
html.a11y-high-contrast main li,
html.a11y-high-contrast main h1,
html.a11y-high-contrast main h2,
html.a11y-high-contrast main h3 {
    color: #050505;
}

html.a11y-high-contrast main a {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

html.a11y-high-contrast main article,
html.a11y-high-contrast main section {
    border-color: #181818;
}

html.a11y-high-contrast :focus-visible,
html.a11y-motor :focus-visible {
    outline: 4px solid #064fc4 !important;
    outline-offset: 4px !important;
}

html.a11y-readable body {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: .045em;
    line-height: 1.75;
    word-spacing: .12em;
}

html.a11y-readable body * {
    line-height: inherit;
}

html.a11y-highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px;
}

html.a11y-grayscale .site-background,
html.a11y-grayscale .site-over-background,
html.a11y-grayscale body > :not(.site-accessibility, [vw]) img,
html.a11y-grayscale body > :not(.site-accessibility, [vw]) video {
    filter: grayscale(1);
}

html.a11y-grayscale .top-navbar,
html.a11y-grayscale .main-navigation,
html.a11y-grayscale .site-footer {
    background-color: #555 !important;
}

html.a11y-focus-mode main p:hover,
html.a11y-focus-mode main li:hover,
html.a11y-focus-mode main article:hover {
    outline: 3px solid #1257d6;
    outline-offset: 5px;
    background-color: #fff !important;
}

html.a11y-motor a,
html.a11y-motor button,
html.a11y-motor input,
html.a11y-motor select {
    min-height: 48px;
}

@media (max-width: 600px) {
    .site-accessibility {
        right: 6px;
        bottom: 106px;
    }

    .accessibility-trigger {
        width: 44px;
        height: 44px;
    }

    .accessibility-panel__header {
        min-height: 68px;
        padding-inline: 16px;
    }

    .accessibility-panel__header h2 {
        font-size: 1.05rem;
    }

    .accessibility-panel__body {
        height: calc(100dvh - 68px);
        padding: 16px 12px 30px;
    }

    .accessibility-section {
        padding: 14px;
        border-radius: 18px;
    }

    .accessibility-option {
        padding: 13px 12px;
        grid-template-columns: 46px 1fr 40px;
        gap: 10px;
    }

    .accessibility-option__icon {
        width: 46px;
        height: 46px;
    }
}

/* Capas de livros e documentos dinâmicos de editais */
.library-document-card__cover {
    width: 112px;
    height: 152px;
    flex: 0 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgb(56 37 32 / 18%);
    background: #fff;
    object-fit: contain;
}

.library-document-card__icon--book {
    font-size: .72rem;
    text-transform: uppercase;
}

.admin-edital-item__icon--book {
    font-size: .66rem;
    text-transform: uppercase;
}

.admin-book-cover-preview {
    width: min(220px, 100%);
    max-height: 300px;
    border: 1px solid #e1d4cf;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.admin-library-item__cover {
    width: 72px;
    height: 96px;
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
}

.edital-pdf-field__heading,
.edital-pdf-field__grid {
    display: flex;
    gap: 12px;
    align-items: center;
}

.edital-pdf-field__heading {
    justify-content: space-between;
    flex-wrap: wrap;
}

.edital-pdf-field__grid {
    align-items: flex-end;
}

.edital-pdf-field__grid label {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 7px;
}

.edital-pdf-field__grid label:last-child {
    max-width: 130px;
}

.edital-pdf-field__remove {
    padding: 7px 11px;
    border: 1px solid #d4bfc1;
    border-radius: 7px;
    color: #9a2636;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.edital-remove-pdf--danger {
    color: #9a2636;
    font-weight: 800;
}

.edital-add-pdf {
    width: fit-content;
    border: 0;
    cursor: pointer;
}

@media (max-width: 620px) {
    .library-document-card__cover {
        width: 82px;
        height: 112px;
    }

    .edital-pdf-field__grid {
        align-items: stretch;
        flex-direction: column;
    }

    .edital-pdf-field__grid label:last-child {
        max-width: none;
    }

    .edital-add-pdf {
        width: 100%;
        justify-content: center;
    }
}

/* Tela de espera para uploads administrativos */
.upload-overlay {
    position: fixed !important;
    z-index: 30000 !important;
    inset: 0;
    display: grid;
    padding: 24px;
    visibility: hidden;
    background: rgb(35 20 24 / 72%);
    opacity: 0;
    backdrop-filter: blur(5px);
    place-items: center;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.upload-overlay[hidden] {
    display: none;
}

.upload-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

.upload-overlay__card {
    width: min(470px, 100%);
    padding: clamp(30px, 6vw, 48px);
    border: 2px dashed rgb(128 77 67 / 38%);
    border-radius: 24px;
    color: #35292c;
    background: #fffaf2;
    box-shadow: 0 22px 60px rgb(0 0 0 / 32%);
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.upload-overlay__card h2 {
    margin: 22px 0 10px;
    font-size: clamp(1.55rem, 4vw, 2.1rem);
}

.upload-overlay__card p {
    margin: 0;
    line-height: 1.55;
}

.upload-overlay__spinner {
    display: flex;
    min-height: 56px;
    gap: 9px;
    align-items: center;
    justify-content: center;
}

.upload-overlay__spinner span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--navbar-color);
    animation: upload-pulse 1s ease-in-out infinite;
}

.upload-overlay__spinner span:nth-child(2) {
    animation-delay: 140ms;
}

.upload-overlay__spinner span:nth-child(3) {
    animation-delay: 280ms;
}

.upload-overlay__progress {
    height: 12px;
    margin: 26px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaded8;
}

.upload-overlay__progress span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f63e4f, #f6a63e, #28a9aa);
    animation: upload-progress 1.35s ease-in-out infinite;
}

.upload-overlay__summary {
    min-height: 1.5em;
    color: #785e63;
    font-size: .9rem;
    font-weight: 700;
}

body.upload-is-running {
    overflow: hidden;
}

@keyframes upload-pulse {
    0%, 100% {
        opacity: .4;
        transform: translateY(0) scale(.85);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.08);
    }
}

@keyframes upload-progress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(245%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .upload-overlay,
    .upload-overlay__spinner span,
    .upload-overlay__progress span {
        transition: none;
        animation: none;
    }

    .upload-overlay__spinner span {
        opacity: 1;
    }

    .upload-overlay__progress span {
        width: 100%;
    }
}

/* Subtítulos institucionais editáveis das páginas */
.news-page__header .page-subtitle,
.extension-page__header .page-subtitle,
.albums-page__header .page-subtitle,
.library-page__header .page-subtitle,
.contact-page__header .page-subtitle,
.members-page__header .page-subtitle,
.history-page > .page-subtitle {
    display: block;
    width: min(780px, 100%);
    margin: 18px auto 0;
    color: #55484a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, .35vw + .94rem, 1.16rem);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.72;
    text-align: center;
    text-transform: none;
    white-space: normal;
}

.members-page__header {
    width: min(860px, 100%);
    align-items: flex-start;
}

.members-page__header .page-subtitle {
    margin-left: 0;
    text-align: left;
}

.history-page > .page-subtitle {
    margin-top: -42px;
    margin-bottom: clamp(42px, 6vw, 72px);
}

/* Administração dos subtítulos */
.admin-page--top {
    padding-top: clamp(28px, 5vw, 64px);
    padding-bottom: clamp(40px, 7vw, 90px);
    place-items: start center;
}

.admin-panel--subtitles {
    width: min(920px, 100%);
}

.admin-subtitles-form {
    display: grid;
    margin-top: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-subtitle-field {
    display: flex;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e0d3cf;
    border-radius: 14px;
    background: #fff;
    flex-direction: column;
}

.admin-subtitle-field h2 {
    margin: 0 0 16px;
    color: #9f2638;
    font-size: 1.15rem;
}

.admin-subtitle-field label {
    margin-bottom: 8px;
    color: #34282b;
    font-size: 1rem;
    font-weight: 900;
}

.admin-subtitle-field input[type="text"],
.admin-subtitle-field textarea {
    width: 100%;
    min-height: 126px;
    padding: 12px 13px;
    border: 1px solid #c9aaa3;
    border-radius: 9px;
    background: #fffdfa;
    color: #292326;
    font: inherit;
    line-height: 1.55;
    resize: vertical;
}

.admin-subtitle-field input[type="text"] {
    min-height: 46px;
    margin-bottom: 0;
}

.admin-subtitle-field small + label {
    margin-top: 20px;
}

.admin-subtitle-field input[type="text"]:focus,
.admin-subtitle-field textarea:focus {
    border-color: var(--navbar-color);
    box-shadow: 0 0 0 3px rgb(246 62 79 / 16%);
    outline: none;
}

.admin-subtitle-field small {
    margin-top: 7px;
    color: #806b6e;
    font-size: .8rem;
}

.admin-subtitles-form__actions {
    display: flex;
    padding-top: 8px;
    grid-column: 1 / -1;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.admin-subtitles-form__actions a,
.admin-subtitles-form__actions button {
    display: inline-flex;
    min-height: 48px;
    padding: 11px 20px;
    border-radius: 9px;
    font: inherit;
    font-weight: 800;
    align-items: center;
    justify-content: center;
}

/* Ordem manual dos conteudos administraveis */
.admin-order-toolbar {
    display: flex;
    margin: 24px 0 18px;
    padding: 14px 16px;
    border: 1px solid #e0d3cf;
    border-radius: 12px;
    background: #fffdfa;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.admin-order-toolbar p {
    display: grid;
    margin: 0;
    color: #655356;
    gap: 3px;
}

.admin-order-toolbar strong {
    color: #34282b;
    font-size: .98rem;
}

.admin-order-toolbar span {
    font-size: .86rem;
    line-height: 1.4;
}

.admin-order-toolbar button {
    min-width: 130px;
    min-height: 44px;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--navbar-color);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.admin-order-toolbar button:hover,
.admin-order-toolbar button:focus-visible {
    background: #dc3041;
    outline: 3px solid rgb(246 62 79 / 20%);
    outline-offset: 2px;
}

.admin-order-field {
    display: grid;
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #e0d3cf;
    border-radius: 8px;
    color: #715b5e;
    background: #fff;
    font-size: .75rem;
    font-weight: 900;
    gap: 5px;
    text-align: left;
}

.admin-order-field input {
    width: 100%;
    min-width: 68px;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #cdbab5;
    border-radius: 7px;
    color: #35292c;
    background: #fffaf2;
    font: inherit;
    font-size: .88rem;
}

.admin-order-field input:focus,
.admin-album-media__order input:focus {
    border-color: var(--navbar-color);
    box-shadow: 0 0 0 3px rgb(246 62 79 / 16%);
    outline: none;
}

.admin-history-item__order.admin-order-field {
    width: 64px;
    height: auto;
    padding: 6px;
    border-radius: 10px;
    color: #fff;
    background: var(--navbar-color);
    font-size: .68rem;
    text-align: center;
}

.admin-history-item__order.admin-order-field input {
    min-width: 0;
    text-align: center;
}

.admin-subtitles-form__actions a {
    border: 1px solid rgb(40 169 170 / 44%);
    background: #fff;
    color: #147f83;
    text-decoration: none;
}

.admin-subtitles-form__actions button {
    border: 0;
    background: var(--navbar-color);
    color: #fff;
    cursor: pointer;
}

.admin-subtitles-form__actions a:hover,
.admin-subtitles-form__actions a:focus-visible,
.admin-subtitles-form__actions button:hover,
.admin-subtitles-form__actions button:focus-visible {
    outline: 3px solid rgb(246 62 79 / 20%);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .admin-subtitles-form {
        grid-template-columns: 1fr;
    }

    .admin-subtitles-form__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .admin-subtitles-form__actions a,
    .admin-subtitles-form__actions button {
        width: 100%;
    }

    .members-page__header .page-subtitle {
        text-align: center;
    }

    .admin-order-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-order-toolbar button {
        width: 100%;
    }
}

/* Editor visual e conteudo formatado */
.rich-editor {
    width: 100%;
    overflow: hidden;
    border: 1px solid #c9aaa3;
    border-radius: 11px;
    background: #fffdfa;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rich-editor:focus-within {
    border-color: var(--navbar-color);
    box-shadow: 0 0 0 3px rgb(246 62 79 / 16%);
}

.rich-editor--invalid {
    border-color: #b32639;
    box-shadow: 0 0 0 3px rgb(179 38 57 / 15%);
}

.rich-editor__toolbar {
    display: flex;
    padding: 9px;
    border-bottom: 1px solid #e2d5d1;
    background: #f8eee8;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.rich-editor__format,
.rich-editor__button {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #cfbbb5;
    border-radius: 7px;
    color: #4e3c40;
    background: #fff;
    font: 800 .8rem/1.15 Arial, Helvetica, sans-serif;
}

.rich-editor__format {
    min-width: 126px;
}

.rich-editor__button {
    cursor: pointer;
}

.rich-editor__button:hover,
.rich-editor__button:focus-visible,
.rich-editor__format:focus-visible {
    border-color: var(--navbar-color);
    color: #a72436;
    outline: 2px solid rgb(246 62 79 / 15%);
    outline-offset: 1px;
}

.rich-editor__content {
    min-height: 180px;
    padding: 16px;
    color: #292326;
    background: #fffdfa;
    font: 400 1rem/1.7 Arial, Helvetica, sans-serif;
    overflow-wrap: anywhere;
    outline: none;
}

.rich-editor__content:empty::before {
    color: #917f82;
    content: attr(data-placeholder);
    pointer-events: none;
}

.rich-editor__footer {
    display: flex;
    padding: 7px 11px;
    border-top: 1px solid #eee2de;
    color: #7c696c;
    background: #fff;
    font: 700 .74rem/1.35 Arial, Helvetica, sans-serif;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.rich-editor--invalid .rich-editor__footer output {
    color: #a32033;
}

.rich-text {
    color: inherit;
    line-height: 1.72;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.rich-text > :first-child {
    margin-top: 0;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text p,
.rich-text div {
    margin: 0 0 1em;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin: 1.2em 0 .55em;
    color: #35292c;
    line-height: 1.25;
}

.rich-text h2 {
    font-size: 1.55em;
}

.rich-text h3 {
    font-size: 1.3em;
}

.rich-text h4 {
    font-size: 1.12em;
}

.rich-text ul,
.rich-text ol {
    margin: .7em 0 1em;
    padding-left: 1.7em;
    white-space: normal;
}

.rich-text li + li {
    margin-top: .35em;
}

.rich-text blockquote {
    margin: 1em 0;
    padding: .8em 1em;
    border-left: 4px solid var(--navbar-color);
    color: #654f54;
    background: rgb(246 62 79 / 6%);
}

.rich-text a {
    color: #b52237;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rich-text a:hover,
.rich-text a:focus-visible {
    color: #741523;
    outline: 2px solid rgb(246 62 79 / 20%);
    outline-offset: 2px;
}

.rich-text--preview {
    max-height: 8.2em;
    overflow: hidden;
}

.news-card__summary {
    margin: 0 0 18px;
    color: #604f51;
    line-height: 1.6;
}

.news-card__summary p,
.news-card__summary div {
    margin-bottom: .7em;
}

.member-card__description p,
.member-card__description div {
    margin-bottom: .55em;
}

.member-card__description a {
    position: relative;
    z-index: 2;
}

.album-detail__description {
    width: min(780px, 100%);
}

.public-notice-card__description p,
.public-notice-card__description div,
.library-document-card__description p,
.library-document-card__description div {
    margin-bottom: .55em;
}

.news-card .rich-text p,
.news-card .rich-text div,
.extension-card .rich-text p,
.extension-card .rich-text div {
    display: block;
    overflow: visible;
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
}

@media (max-width: 600px) {
    .rich-editor__toolbar {
        align-items: stretch;
    }

    .rich-editor__format {
        width: 100%;
    }

    .rich-editor__button {
        flex: 1 0 auto;
    }

    .rich-editor__content {
        min-height: 150px;
        padding: 13px;
    }

    .rich-editor__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}
