/* Publications: readable document cards rather than oversized project panels. */
.publications-library { padding: 44px 24px 64px; }
.publications-library .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; }
.publications-library .project-card { display: flex; align-items: flex-start; padding: 24px; gap: 20px; border: 1px solid #e4e1dd; border-radius: 12px; background: #fff; box-shadow: none; }
.publications-library .project-card__image { flex: 0 0 104px; width: 104px; height: 146px; min-height: 0; margin: 0; background: #f5f4f2; border-radius: 4px; }
.publications-library .project-card__image img { width: 100%; height: 146px; object-fit: contain; }
.publications-library .project-card__body { padding: 0; min-width: 0; }
.publications-library .project-card__title { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.45; letter-spacing: 0; margin: 0 0 10px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.publications-library .project-card__desc { font-size: .9rem; line-height: 1.65; margin-bottom: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.publications-library .project-card__location { font-size: .75rem; margin-bottom: 12px; }
.post-type-archive-publication .page-hero, .tax-publication_category .page-hero { padding: 152px 24px 44px; }
.post-type-archive-publication .page-hero h1, .tax-publication_category .page-hero h1 { font-family: var(--font-body); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.publications-library .pagination { margin: 32px auto 0; max-width: 1080px; }
.publication-detail { max-width: 900px; padding: 152px 24px 72px; margin: auto; }
.publication-back { display: inline-block; margin-bottom: 28px; }
.publication-detail h1 { font-family: var(--font-body); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; margin: 12px 0 28px; overflow-wrap: anywhere; }
.publication-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.publication-cover { margin: 0 0 28px; }
.publication-cover img { width: auto; height: auto; max-width: min(100%, 240px); max-height: 320px; object-fit: contain; }
.publication-content { font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.publication-content p { margin-bottom: 1.25em; }
.publication-content h2, .publication-content h3 { font-family: var(--font-body); font-size: 1.3rem; margin: 28px 0 16px; }
.publication-content img { width: auto; max-width: 100%; max-height: 360px; object-fit: contain; }
.publication-content iframe, .publication-content object { max-width: 100%; }
.publication-content .wp-block-file__embed { display: none; }
/* Real partner artwork is monochrome until hover or keyboard focus. */
.partners__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); gap: 24px; justify-content: center; }
.partner { width: 100%; height: 112px; min-height: 0; padding: 20px; background: transparent; border: 1px solid #d9dcdf; border-radius: 6px; box-shadow: none; }
.partner img { width: 100%; height: 70px; max-height: 70px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
.partner:hover, .partner:focus-visible { border-color: #b9bec3; background: transparent; transform: none; box-shadow: none; }
.partner:hover img, .partner:focus-visible img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
.partner:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; }
.partners__title { font-family: var(--font-body); font-size: clamp(1.4rem, 2.8vw, 2rem); }
.partnerships__grid { grid-template-columns: 1fr; max-width: 850px; margin: auto; }
/* Consent controls have equally prominent accept / reject actions. */
.cookie-banner[hidden], .map-placeholder[hidden], #consent-storage-warning[hidden] { display: none !important; }
.cookie-banner { position: fixed; bottom: 16px; left: 16px; width: min(620px, calc(100% - 32px)); z-index: 10000; max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; background: white; color: #2d2a26; border: 1px solid #d8d8d8; border-radius: 12px; box-shadow: 0 8px 36px #0002; font-size: .875rem; line-height: 1.6; }
.cookie-banner h2 { font: 800 1.1rem var(--font-body); margin-bottom: 10px; }
.cookie-banner p { margin: 8px 0 12px; }
.cookie-banner summary { cursor: pointer; text-decoration: underline; }
.cookie-banner label { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-banner__actions button { flex: 1 1 150px; padding: 10px 12px; border: 1px solid #747474; border-radius: 6px; background: #fff; color: #2d2a26; cursor: pointer; font: 700 .82rem var(--font-body); min-height: 44px; }
.cookie-banner__actions button:hover { background: #f4f4f4; }
.cookie-settings { font: inherit; background: transparent; color: inherit; border: 0; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.map-placeholder { padding: 48px 24px; text-align: center; background: #f4f3f1; }
.map-placeholder p { margin-bottom: 16px; }
.whatsapp-contact { position: fixed; bottom: 24px; right: 24px; z-index: 900; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 28px; background: #126c44; color: white; font: 800 .9rem var(--font-body); box-shadow: 0 4px 16px #0002; }
.whatsapp-contact:hover { background: #0d5736; color: white; }
@media (max-width: 700px) {
    .publications-library .projects__grid { grid-template-columns: 1fr; }
    .publications-library .project-card { padding: 18px; gap: 16px; }
    .publications-library .project-card__image { flex-basis: 76px; width: 76px; height: 108px; }
    .publications-library .project-card__image img { height: 108px; }
    .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .whatsapp-contact { right: 16px; bottom: 16px; padding: 12px; }
    .whatsapp-contact span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .partner img { transition: none; }
    .partner:hover img, .partner:focus-visible img { transform: none; }
}
