/* Public agenda only: preserve the event page and the account workspace. */
.nwe-catalog { --agenda-graphite: #242528; --agenda-campus: #9c1732; }
.nwe-catalog .nwe-catalog-top {
    align-items: center; gap: 22px; padding: 12px 0 25px; margin-bottom: 22px;
    border: 0; border-bottom: 1px solid #e8e5e6; border-radius: 0; background: transparent; color: #29292d;
}
.nwe-catalog .nwe-agenda-eyebrow { display: block; margin-bottom: 9px; color: #a50d29; font-size: .68rem; font-weight: 550; letter-spacing: .13em; text-transform: uppercase; }
.nwe-catalog .nwe-catalog-top h1 { font-size: clamp(1.8rem, 3.5vw, 2.45rem); font-weight: 400; }
.nwe-catalog .nwe-catalog-top p { margin-top: 10px; color: #6b666e; font-size: .9rem; }
.nwe-catalog .nwe-catalog-periods { gap: 4px; border: 1px solid #ebe7e9; padding: 4px; border-radius: 24px; background: #f6f4f5; }
.nwe-catalog .nwe-catalog-periods a { padding: 8px 15px; border: 0; border-radius: 20px; color: #69636c; }
.nwe-catalog .nwe-catalog-periods a:hover { background: #eeeaec; color: #9c0c26; }
.nwe-catalog .nwe-catalog-periods a[aria-current] { color: #a50d29; background: #fff; font-weight: 500; box-shadow: 0 1px 5px #32202a12; }
.nwe-catalog .nwe-subscribe-banner { gap: 16px; margin: 0 0 18px; padding: 18px 24px; border: 0; border-radius: 10px; background: #ab0823; color: #fff; box-shadow: none; }
.nwe-catalog .nwe-subscribe-banner .nwe-subscribe-symbol { width: 40px; height: 40px; border-color: #ffffff38; border-radius: 9px; color: #fff; font-size: 23px; }
.nwe-catalog .nwe-subscribe-banner span { color: #ffdfe4; font-size: .65rem; letter-spacing: .06em; }
.nwe-catalog .nwe-subscribe-banner h2 { font-size: 1.12rem; margin: 2px 0 3px; font-weight: 450; }
.nwe-catalog .nwe-subscribe-banner p { color: #f9e4e8; font-size: .79rem; }
.nwe-catalog .nwe-subscribe-banner .button { padding: 9px 13px; color: #9d0b23; background: #fff; border-color: #fff; font-size: .82rem; font-weight: 550; }
.nwe-catalog .nwe-subscribe-banner .button span { color: inherit; }
.nwe-catalog .nwe-subscribe-banner .button:hover { background: #fff0f3; }
.nwe-catalog .nwe-calendar { margin-bottom: 16px; border-color: #e4e4e6; border-radius: 8px; }
.nwe-catalog .nwe-calendar > summary { padding: 11px 17px; font-size: .85rem; font-weight: 500; background: #fafafb; }
.nwe-catalog .nwe-catalog-layout { display: block; }
.nwe-catalog .nwe-event-search { display: block; margin-bottom: 24px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.nwe-catalog .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.nwe-agenda-search-row { display: flex; align-items: end; gap: 12px; }
.nwe-agenda-search-row .nwe-filter-search { flex: 1; }
.nwe-catalog .nwe-filter-field { font-size: .81rem; gap: 6px; }
.nwe-catalog .nwe-filter-field :is(input, select) { min-height: 44px; border-color: #cfcfd3; border-radius: 7px; background: #fff; font-size: .9rem; box-sizing: border-box; }
.nwe-catalog .nwe-filter-field :is(input, select):focus-visible { outline: 2px solid #ae0b29; outline-offset: 3px; }
.nwe-catalog .nwe-agenda-search-row .button { min-height: 44px; padding-inline: 20px; box-sizing: border-box; font-size: .87rem; }
.nwe-agenda-clear { padding-bottom: 11px; font-size: .82rem; white-space: nowrap; }
.nwe-agenda-filters { margin-top: 12px; border-bottom: 1px solid #e9e9ec; }
.nwe-agenda-filters > summary { display: flex; align-items: center; gap: 10px; padding: 9px 0 11px; cursor: pointer; list-style: none; font-size: .84rem; font-weight: 550; }
.nwe-agenda-filters > summary::-webkit-details-marker { display: none; }
.nwe-agenda-filter-icon { display: block; flex: 0 0 20px; color: #a10d27; }
.nwe-agenda-filters > summary > .nwe-agenda-filter-hint { font-size: .76rem; font-weight: 400; color: #65656b; }
.nwe-agenda-filter-toggle { width: 6px; height: 6px; margin: -3px 4px 0 auto; border-right: 1.5px solid #a10d27; border-bottom: 1.5px solid #a10d27; transform: rotate(45deg); }
.nwe-agenda-filters[open] .nwe-agenda-filter-toggle { transform: rotate(225deg); margin-top: 3px; }
.nwe-agenda-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px 0 20px; }
.nwe-catalog .nwe-catalog-filter-actions { grid-column: 1 / -1; justify-content: end; }
.nwe-catalog .nwe-catalog-result-count { margin-bottom: 16px; color: #626269; font-size: .82rem; font-weight: 450; }
.nwe-catalog .nwe-catalog-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; grid-auto-rows: 1fr; align-items: stretch; }
.nwe-catalog .nwe-catalog-item { position: relative; align-self: stretch; border: 1px solid #e3e1e1; border-radius: 12px; box-shadow: 0 3px 12px #30252a07; background: #fff; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.nwe-catalog .nwe-catalog-item::after { position: absolute; inset: 0; border: 1px solid #b5092024; border-radius: inherit; content: ''; pointer-events: none; opacity: 0; transition: opacity .24s ease; }
.nwe-catalog .nwe-catalog-item[data-campus="gaia"] { --agenda-campus: #295d8e; }
.nwe-catalog .nwe-catalog-item[data-campus="viseu"] { --agenda-campus: #276752; }
.nwe-catalog .nwe-catalog-item[data-campus="algarve"] { --agenda-campus: #925719; }
.nwe-catalog .nwe-catalog-item:focus-within { border-color: #ba7c89; box-shadow: 0 7px 22px #30252a12; }
.nwe-agenda-media { flex: none; min-width: 0; border-radius: 11px 11px 0 0; overflow: hidden; }
/* Natural dimensions retain the entire artwork, including legacy portrait posters. */
.nwe-catalog .nwe-catalog-poster { display: block; width: 100%; height: auto; max-block-size: none; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.nwe-agenda-placeholder { display: flex; align-items: center; justify-content: center; height: auto; aspect-ratio: 3 / 1; background: #f5f2f0; }
.nwe-agenda-placeholder img { width: 36%; height: auto; max-width: 135px; }
.nwe-agenda-placeholder > span { color: #6b5a59; font-size: .73rem; letter-spacing: .03em; }
.nwe-catalog .nwe-catalog-item-body { display: flex; flex: 1; flex-direction: column; gap: 13px; padding: 17px; }
.nwe-catalog-item-details { min-width: 0; }
.nwe-agenda-date-row { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.nwe-agenda-date-badge { display: grid; flex: 0 0 50px; align-content: center; justify-items: center; min-height: 66px; border-radius: 8px; background: #f9edef; color: #b50920; line-height: 1; font-variant-numeric: tabular-nums; transition: background-color .24s ease, color .24s ease, box-shadow .24s ease; }
.nwe-agenda-date-badge strong { font-size: 1.55rem; font-weight: 450; }
.nwe-agenda-date-badge > span { margin-top: 5px; font-size: .69rem; text-transform: uppercase; }
.nwe-agenda-date-badge > small { margin-top: 5px; font-size: .59rem; }
.nwe-agenda-dates { display: grid; min-width: 0; gap: 3px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.nwe-agenda-dates > time { color: #303036; font-weight: 550; }
.nwe-agenda-dates > span { color: #66666d; }
.nwe-agenda-dates > small { color: #7a747c; font-size: .67rem; }
.nwe-agenda-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-bottom: 8px; }
.nwe-agenda-campus { display: inline-block; max-width: 100%; margin-bottom: 12px; padding: 4px 9px; border: 1px solid currentColor; border-radius: 5px; color: var(--agenda-campus); font-size: .67rem; font-weight: 500; overflow-wrap: anywhere; }
.nwe-agenda-labels .nwe-agenda-campus { margin: 0; padding: 3px 7px; }
.nwe-catalog .nwe-catalog-tags { gap: 4px 10px; margin: 0; font-size: .72rem; }
.nwe-catalog .nwe-catalog-tags strong { font-weight: 550; }
.nwe-catalog .nwe-catalog-item h2 { font-size: 1.1rem; font-weight: 500; line-height: 1.35; letter-spacing: -.022em; }
.nwe-catalog .nwe-catalog-item-details > .nwe-catalog-summary { -webkit-line-clamp: 2; margin-top: 8px; color: #69646a; font-size: .82rem; line-height: 1.5; }
.nwe-agenda-facts { display: grid; gap: 8px; margin: 12px 0 0; }
.nwe-agenda-facts > div { min-width: 0; }
.nwe-agenda-facts dt { margin-bottom: 3px; color: #77737a; font-size: .67rem; letter-spacing: .025em; }
.nwe-agenda-facts dd { margin: 0; color: #45414a; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.nwe-catalog .nwe-catalog-item-footer { display: grid; gap: 9px; margin-top: auto; padding-top: 11px; }
.nwe-catalog .nwe-catalog-item-footer p { font-size: .81rem; line-height: 1.5; }
.nwe-catalog .nwe-catalog-item-footer small { color: #6f6970; font-size: .76rem; line-height: 1.5; }
.nwe-catalog .nwe-catalog-item-footer strong { font-weight: 550; }
.nwe-catalog .nwe-catalog-item-link { display: flex; align-items: center; justify-content: space-between; justify-self: stretch; gap: 12px; padding: 9px 11px; border-radius: 6px; background: #f8f1f2; color: #a00a24; font-size: .82rem; font-weight: 550; white-space: normal; transition: background-color .24s ease, color .24s ease, box-shadow .24s ease; }
.nwe-catalog .nwe-catalog-item-link:hover { background: #f1e2e5; }
.nwe-catalog :is(a,summary):focus-visible { outline: 2px solid #bb1231; outline-offset: 4px; }
@media (hover: hover) {
    .nwe-catalog .nwe-catalog-item:hover { z-index: 1; transform: translateY(-4px); background: #fff; border-color: #c9a1ac; box-shadow: 0 15px 32px #30252a15, 0 3px 8px #30252a0b; }
    .nwe-catalog .nwe-catalog-item:hover::after { opacity: 1; }
    .nwe-catalog .nwe-catalog-item:hover .nwe-agenda-date-badge { background: #ae0a27; color: #fff; box-shadow: 0 5px 14px #ae0a2726; }
    .nwe-catalog .nwe-catalog-item:hover .nwe-catalog-item-link { color: #fff; background: #ae0a27; box-shadow: 0 4px 12px #ae0a271c; }
    .nwe-catalog .nwe-catalog-item:hover .nwe-catalog-item-link span { transform: translateX(4px); }
    .nwe-catalog .nwe-subscribe-banner .button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
    .nwe-catalog .nwe-subscribe-banner .button:hover { transform: translateY(-2px); box-shadow: 0 5px 12px #65061935; }
    .nwe-agenda-filters > summary { transition: color .2s ease; }
    .nwe-agenda-filters > summary:hover { color: #a10d27; }
}
@media (max-width: 950px) {
    .nwe-catalog .nwe-catalog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 630px) {
    .nwe-catalog .nwe-catalog-top { align-items: start; padding: 8px 0 23px; gap: 18px; }
    .nwe-catalog .nwe-catalog-top h1 { font-size: 1.9rem; }
    .nwe-catalog .nwe-catalog-top p { line-height: 1.6; }
    .nwe-catalog .nwe-subscribe-banner { display: grid; grid-template-columns: minmax(0,1fr); padding: 19px 21px; gap: 14px; }
    .nwe-catalog .nwe-subscribe-symbol { display: none; }
    .nwe-catalog .nwe-subscribe-banner .button { width: auto; justify-self: start; white-space: normal; }
    .nwe-agenda-search-row { flex-wrap: wrap; gap: 10px; }
    .nwe-agenda-search-row .nwe-filter-search { flex-basis: 100%; }
    .nwe-catalog .nwe-agenda-search-row .button { flex: 1; }
    .nwe-agenda-clear { padding: 10px 0; }
    .nwe-agenda-filter-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
    .nwe-catalog .nwe-catalog-list { grid-template-columns: minmax(0,1fr); grid-auto-rows: 1fr; }
    .nwe-catalog .nwe-catalog-item-body { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .nwe-catalog :is(.nwe-catalog-item, .nwe-catalog-item-link, .nwe-catalog-item-link span, .nwe-agenda-date-badge, .nwe-subscribe-banner .button) { transition: none; transform: none !important; }
    .nwe-catalog .nwe-catalog-item::after { transition: none; }
}
