/* News publication and media components; keep the site's existing brand. */
.news-page, .news-detail-wrap { --news-surface:#fff; --news-soft:#f7f5f9; --news-ink:#291d31; --news-muted:#665c6c; --news-rule:#e4dfe8; }
.news-index-hero .pec-page-hero { min-height:260px; }
.news-section-nav { display:flex; flex-wrap:wrap; gap:1rem 2rem; padding:0 0 1.25rem; margin-bottom:2.5rem; border-bottom:1px solid var(--news-rule); }
.news-section-nav a { display:inline-flex; align-items:center; gap:.75rem; color:var(--news-ink); font-weight:700; text-decoration:none; min-height:44px; }
.news-section-nav a:hover { color:var(--primary); }
.news-page .news-page-intro { align-items:center; gap:2.5rem; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
.news-page-intro-copy .lead { font-size:1.06rem; line-height:1.8; }
.news-page .news-page-intro { border-radius:20px; }
.news-page-intro-copy h2 { font-size:clamp(2rem,3.2vw,2.65rem); line-height:1.15; }
.news-page .news-spotlight-card { position:relative; border:1px solid var(--news-rule); box-shadow:0 16px 40px rgba(67,30,77,.09); border-radius:16px; background:var(--news-surface); }
.news-featured-label { position:absolute; z-index:3; top:1rem; left:1rem; display:inline-flex; align-items:center; gap:.5rem; padding:.65rem .9rem; border-radius:12px; background:rgba(42,18,48,.62); border:1px solid rgba(255,255,255,.65); backdrop-filter:blur(14px) saturate(150%); -webkit-backdrop-filter:blur(14px) saturate(150%); box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 4px 16px rgba(25,12,32,.15); color:#fff; font-size:.78rem; font-weight:700; }
.news-spotlight-card .news-media-badges { margin-bottom:.75rem; }
.news-page .news-spotlight-body h3 { line-height:1.35; font-size:clamp(1.3rem,2vw,1.65rem); }
.news-page .news-filter-bar { display:grid; grid-template-columns:minmax(0,1fr) minmax(250px,.7fr); gap:1.2rem; padding:1.3rem; background:var(--news-soft); border:1px solid var(--news-rule); border-radius:10px; }
.news-filter-tabs { grid-column:1 / -1; }
.news-filter-options { display:flex; flex-wrap:wrap; gap:.85rem; }
.news-filter-options > div { flex:1; min-width:125px; }
.news-filter-options label { display:block; font-size:.78rem; color:var(--news-muted); font-weight:700; margin-bottom:.35rem; }
.news-filter-options select { width:100%; min-height:44px; padding:.5rem .6rem; border:1px solid var(--news-rule); border-radius:6px; background:var(--news-surface); color:var(--news-ink); }
.news-page .news-search-box { align-self:end; min-width:0; min-height:44px; background:var(--news-surface); border-color:var(--news-rule); }
.news-page .news-search-box input { width:100%; color:var(--news-ink); background:transparent; }
.news-filter-status { font-size:.9rem; color:var(--news-muted); margin-bottom:2rem; }
#browse-updates, #news-list, #events-list, #archive-list, #post-photos, #post-videos { scroll-margin-top:110px; }
.news-page .news-real-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:1.6rem; align-items:stretch; }
.news-page .news-real-card { display:flex; flex-direction:column; background:var(--news-surface); border:1px solid var(--news-rule); border-radius:16px; padding:0; box-shadow:0 8px 24px rgba(67,30,77,.05); transition:box-shadow .2s ease,border-color .2s ease; }
.news-page .news-real-card:hover { border-color:rgba(251,0,104,.3); box-shadow:0 14px 32px rgba(67,30,77,.1); }
.news-page .news-real-body { padding:1.5rem; display:flex; flex-direction:column; flex:1; }
.news-page .news-real-body h3 { font-size:clamp(1.2rem,1.7vw,1.45rem); line-height:1.4; font-weight:800; min-height:4.2em; margin-bottom:.8rem; }
.news-page .news-real-body p { line-height:1.75; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:1.3rem; }
.news-card-metadata { display:flex; flex-direction:column; justify-content:flex-end; min-height:4.1rem; margin-bottom:.65rem; }
.news-card-metadata .news-meta { margin-bottom:0; }
.news-real-body .news-read-link { padding-top:1rem; border-top:1px solid var(--news-rule); width:100%; min-height:44px; }
.news-picture-slider { position:relative; width:100%; flex-shrink:0; background:#f2edf5; overflow:hidden; }
.news-picture-stage { aspect-ratio:16 / 10; position:relative; }
.news-picture-slide, .news-picture-placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.news-picture-slide[hidden], .news-picture-controls[hidden] { display:none !important; }
.news-page .news-picture-slide img { width:100%; height:100%; aspect-ratio:auto; object-fit:contain; transform:none; }
.news-picture-placeholder { color:var(--primary); font-size:3rem; text-decoration:none; }
.news-picture-controls { position:absolute; z-index:3; bottom:.8rem; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:.25rem; padding:.25rem; background:rgba(32,19,40,.76); border:1px solid rgba(255,255,255,.4); border-radius:12px; backdrop-filter:blur(12px); color:#fff; box-shadow:0 4px 14px rgba(25,12,32,.12); }
.news-picture-controls button { width:44px; height:44px; flex-shrink:0; display:grid; place-items:center; border:0; border-radius:50%; color:#fff; background:transparent; }
.news-picture-controls button:hover { background:rgba(255,255,255,.18); }
.news-picture-controls button:focus-visible { outline:2px solid #fff; outline-offset:-3px; }
.news-picture-controls [data-slide-counter] { min-width:3.3rem; text-align:center; font-size:.8rem; font-weight:700; font-variant-numeric:tabular-nums; }
.news-picture-slide.is-entering { animation:news-photo-reveal .3s ease; }
@keyframes news-photo-reveal { from { opacity:.4; } to { opacity:1; } }
.news-media-badges { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 .7rem; }
.news-media-badges span { display:inline-flex; align-items:center; gap:.4rem; font-size:.76rem; font-weight:700; color:var(--primary); border:1px solid var(--news-rule,#e4dfe8); background:var(--news-soft,#f7f5f9); padding:.2rem .55rem; border-radius:4px; }
.news-page .news-events-panel { background:var(--news-soft); border:1px solid var(--news-rule); border-radius:12px; padding:1.8rem; }
.news-page .event-real-card, .news-page .event-recap-card, .news-page .empty-public-state, .news-detail-body { background:var(--news-surface); border-color:var(--news-rule); }
.news-page .event-recap-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.news-detail-body { color:var(--news-ink); }
.news-detail-body > p, .news-detail-body > ul, .news-detail-body > ol { max-width:78ch; font-size:1.06rem; line-height:1.9; }
.news-article-tools { display:flex; align-items:center; flex-wrap:wrap; gap:.8rem 1.3rem; border-bottom:1px solid var(--news-rule); padding-bottom:1.25rem; margin-bottom:1.7rem; color:var(--news-muted); font-size:.88rem; }
.news-article-tools a, .news-article-tools button { color:var(--primary); text-decoration:none; font-weight:700; }
.news-article-tools button { border:1px solid var(--news-rule); border-radius:6px; background:var(--news-soft); min-height:44px; padding:.45rem .9rem; }
.news-detail-gallery h2, .news-detail-videos h2 { font-size:1.55rem; margin:0; }
.news-detail-videos { margin-top:2.8rem; padding-top:2rem; border-top:1px solid var(--news-rule); }
.news-video-grid { display:grid; gap:1.5rem; }
.news-video-card { border:1px solid var(--news-rule,#e4dfe8); border-radius:10px; overflow:hidden; background:var(--news-surface,#fff); color:var(--news-ink,#291d31); }
.news-video-frame { width:100%; aspect-ratio:16 / 9; background:#19141f; position:relative; }
.news-video-frame video, .news-video-frame iframe { width:100%; height:100%; display:block; border:0; object-fit:contain; }
.news-video-load { position:relative; display:grid; place-items:center; width:100%; height:100%; border:0; padding:1rem; color:#fff; background:#211727; }
.news-video-load img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; }
.news-video-load span { position:relative; display:inline-flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.8rem; background:rgba(20,12,26,.8); padding:1rem 1.5rem; border:1px solid rgba(255,255,255,.6); border-radius:8px; font-weight:700; }
.news-video-copy { padding:1.2rem; }
.campus-player { padding:0; aspect-ratio:16 / 9; isolation:isolate; overflow:hidden; border-radius:18px; }
.campus-player::after { content:''; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(9,5,13,.7)); pointer-events:none; z-index:1; }
.campus-player video { aspect-ratio:16 / 9; width:100%; height:100%; }
.campus-player-controls { position:absolute; z-index:2; bottom:max(1.25rem,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:min(calc(100% - 3rem),850px); min-height:60px; display:flex; align-items:center; gap:.6rem; padding:.5rem .75rem; background:rgba(51,43,58,.72); backdrop-filter:blur(18px) saturate(130%); -webkit-backdrop-filter:blur(18px) saturate(130%); border:1px solid rgba(255,255,255,.3); border-radius:999px; box-shadow:0 12px 35px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.16); color:#fff; }
.campus-player-controls[hidden], .campus-player-controls button[hidden] { display:none; }
.campus-player-controls button { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; border:1px solid transparent; border-radius:50%; background:transparent; color:#fff; }
.campus-player-controls button:hover { background:var(--primary); }
.campus-player-controls input { --played:0%; flex:1; min-width:40px; height:28px; margin:0; accent-color:var(--primary); cursor:pointer; appearance:none; -webkit-appearance:none; background:transparent; }
.campus-player-controls input::-webkit-slider-runnable-track { height:5px; border-radius:99px; background:linear-gradient(to right,var(--primary) 0 var(--played),rgba(255,255,255,.55) var(--played) 100%); }
.campus-player-controls input::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; margin-top:-5px; width:15px; height:15px; border-radius:50%; background:var(--primary); border:2px solid #fff; box-shadow:0 0 0 3px rgba(251,0,104,.2); }
.campus-player-controls input::-moz-range-track { height:5px; border-radius:99px; background:rgba(255,255,255,.55); }
.campus-player-controls input::-moz-range-progress { height:5px; border-radius:99px; background:var(--primary); }
.campus-player-controls input::-moz-range-thumb { width:12px; height:12px; border-radius:50%; background:var(--primary); border:2px solid #fff; }
.campus-player-controls output { font-size:.75rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.campus-player-controls select { appearance:none; -webkit-appearance:none; height:44px; width:70px; flex:0 0 70px; line-height:normal; text-align:center; text-align-last:center; border:1px solid rgba(255,255,255,.25); border-radius:22px; background:rgba(30,20,36,.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color:#fff; padding:0 23px 0 8px; font:inherit; font-size:.8rem; cursor:pointer; }
.campus-player-controls, .campus-player::after { transition:opacity .2s ease,visibility .2s ease; }
.campus-player.controls-idle .campus-player-controls, .campus-player.controls-idle::after { opacity:0; visibility:hidden; }
.campus-player.controls-idle { cursor:none; }
@media (prefers-reduced-motion:reduce) { .campus-player-controls, .campus-player::after { transition:none; } }
.campus-player-controls select option { background:#211727; color:#fff; }
.campus-player-controls :focus-visible { outline:2px solid #fff; outline-offset:2px; }
.campus-player-controls button[aria-pressed="true"] { color:#fff; background:var(--primary); }
.campus-player-status { position:absolute; inset:1rem 1rem auto; background:#211727; color:#fff; padding:.75rem; border-radius:8px; }
.campus-player:fullscreen { display:flex; flex-direction:column; justify-content:center; height:100%; width:100%; border-radius:0; background:#0c0910; }
.campus-player:fullscreen video { flex:1; min-height:0; object-fit:contain; }
@media (max-width:575px) {
    .campus-player { min-height:240px; }
    .campus-player-controls { width:calc(100% - 1rem); bottom:.5rem; gap:.15rem; padding:.3rem .5rem; flex-wrap:wrap; border-radius:22px; }
    .campus-player-controls input { order:10; flex-basis:100%; min-height:24px; margin:.1rem .5rem; }
    .campus-player-controls output { margin-right:auto; }
    .campus-player-controls select { width:63px; flex-basis:63px; }
    .campus-player-controls output { font-size:.7rem; }
}
@media (forced-colors:active) {
    .campus-player-controls { background:Canvas; border-color:ButtonText; color:ButtonText; }
    .campus-player-controls button, .campus-player-controls select { color:ButtonText; background:Canvas; }
    .campus-player-controls input { appearance:auto; }
}
.news-video-copy h3 { font-size:1.12rem; margin:0 0 .6rem; line-height:1.5; }
.news-video-copy p { margin:0 0 .7rem; font-size:.95rem; line-height:1.65; }
.news-video-copy .news-video-note { font-size:.8rem; color:var(--news-muted,#665c6c); }
.news-transcript { padding:1rem 0; line-height:1.8; max-height:400px; overflow:auto; }
.news-video-copy summary, .news-video-editor summary { cursor:pointer; font-weight:700; min-height:44px; padding:.6rem 0; }
.news-video-editor { border:1px solid #e4dfe8; border-radius:8px; padding:.75rem; }
.news-page a:focus-visible, .news-detail-wrap a:focus-visible, .news-page input:focus-visible, .news-page select:focus-visible, .news-page button:focus-visible, .news-detail-wrap button:focus-visible, .news-video-editor summary:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
@media (max-width:767px) {
    .news-page .news-page-intro { grid-template-columns:1fr; gap:1.5rem; }
    .news-section-nav { gap:.5rem 1.25rem; margin-bottom:1.5rem; }
    .news-section-nav a { font-size:.9rem; }
    .news-page .news-filter-bar { grid-template-columns:1fr; padding:1rem; }
    .news-filter-options { gap:.6rem; }
    .news-page .news-real-grid { grid-template-columns:1fr; gap:1.25rem; }
    .news-page .news-real-body { padding:1.2rem; }
    .news-page .news-real-body h3 { min-height:0; }
    .news-featured-label { top:.75rem; left:.75rem; padding:.55rem .75rem; }
    .news-page .news-events-panel { padding:1.1rem; }
    .news-page .event-recap-grid { grid-template-columns:1fr; }
    .news-article-tools { gap:.6rem .9rem; }
    .news-detail-body > p { font-size:1rem; }
    .news-video-load span { font-size:.9rem; padding:.8rem; }
}
@media (prefers-reduced-motion:reduce) {
    .news-picture-slide.is-entering { animation:none; }
    .news-page .news-real-card { transition:none; }
}

/* Article reading, media viewer and editorial controls. */
.news-detail-grid h1 { font-size:clamp(1.9rem,3vw,3.1rem); line-height:1.16; overflow-wrap:anywhere; }
.news-detail-grid .lead { font-size:clamp(1rem,1.4vw,1.15rem); line-height:1.8; }
.news-detail-grid:has(.news-header-picture) { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.news-header-picture { display:block; position:relative; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.22); border-radius:14px; overflow:hidden; }
.news-detail-grid .news-header-picture img { display:block; width:100%; height:auto; max-height:540px; aspect-ratio:auto; object-fit:contain; border-radius:0; }
.news-header-picture span { display:flex; justify-content:flex-end; gap:.5rem; color:white; font-size:.8rem; padding:.6rem .8rem; background:rgba(25,15,35,.8); border-radius:8px; }
.news-back-link, .news-article-tools a { display:inline-flex; align-items:center; gap:.5rem; min-height:44px; padding:.5rem .8rem; border-radius:8px; }
.news-back-link { border:1px solid rgba(255,255,255,.35); margin-bottom:1.5rem; }
.news-back-link:hover { background:rgba(255,255,255,.12); color:#fff; }
.news-article-tools a { background:var(--news-soft); border:1px solid var(--news-rule); }
.news-rich-content { max-width:78ch; overflow-wrap:anywhere; font-size:1.06rem; line-height:1.85; }
.news-rich-content p { margin:0 0 1.2rem; }
.news-rich-content h2, .news-rich-content h3, .news-rich-content h4 { line-height:1.35; margin:1.8rem 0 .8rem; }
.news-rich-content h2 { font-size:1.65rem; } .news-rich-content h3 { font-size:1.35rem; }
.news-rich-content ul, .news-rich-content ol { padding-left:1.6rem; margin-bottom:1.4rem; }
.news-rich-content li { margin:.4rem 0; }
.news-rich-content blockquote { border-left:4px solid var(--primary); background:#f7f5f9; padding:1rem 1.2rem; margin:1.5rem 0; }
.news-rich-content a { color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.news-adjacent-posts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:stretch; border-top:1px solid var(--news-rule); margin-top:2rem; padding-top:1.5rem; }
.news-adjacent-posts a { padding:1rem; border:1px solid var(--news-rule); border-radius:10px; text-decoration:none; }
.news-adjacent-posts span { display:block; margin-bottom:.6rem; color:var(--primary); font-size:.85rem; }
.news-adjacent-posts strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--news-ink); line-height:1.5; font-size:.9rem; }
.news-adjacent-previous { grid-column:1; grid-row:1; }
.news-adjacent-next { grid-column:2; grid-row:1; text-align:right; }
.news-adjacent-next span { display:flex; flex-direction:row-reverse; justify-content:flex-start; gap:.45rem; }
.news-adjacent-posts .news-all-updates { grid-column:1 / -1; grid-row:2; justify-self:center; display:flex; align-items:center; justify-content:center; gap:.5rem; min-height:44px; color:var(--primary); font-weight:600; }
.news-adjacent-posts a:hover { border-color:var(--primary); background:#fff3f8; }
.news-adjacent-posts a:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.news-adjacent-posts a.has-cover { position:relative; isolation:isolate; overflow:hidden; min-height:130px; display:flex; flex-direction:column; justify-content:flex-end; background:#291d31; }
.news-adjacent-cover { display:block; width:100%; height:120px; object-fit:contain; background:#f7f5f9; }
.news-adjacent-posts .has-cover span { color:var(--primary); margin:.8rem .85rem .4rem; }
.news-adjacent-posts .has-cover strong { color:var(--news-ink); margin:0 .85rem .85rem; text-shadow:none; }
.news-adjacent-posts a.has-cover, .news-adjacent-posts a.has-cover:hover { padding:0; background:#fff; justify-content:flex-start; }
.gallery-position-bar { display:flex; align-items:center; gap:.6rem; margin-bottom:.6rem; font-weight:600; }
.gallery-selection-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; padding:1rem; margin-bottom:1rem; border:1px solid #e4dfe8; border-radius:12px; background:#f7f5f9; }
.gallery-selection-toolbar[hidden] { display:none; }
.gallery-selection-toolbar [data-gallery-delete-selected] { order:1; }
.gallery-selection-toolbar [data-gallery-preview] { order:2; }
.gallery-selection-toolbar [data-gallery-undo] { order:3; }
.gallery-selection-toolbar [data-gallery-bulk] { order:4; }
.gallery-selection-toolbar [data-gallery-clear] { order:5; margin-left:auto; }
.gallery-selection-toolbar button { min-height:44px; }
.gallery-selection-toolbar label, .gallery-select-label { display:flex; align-items:center; gap:.4rem; min-height:44px; margin:0; cursor:pointer; }
.gallery-select-label { margin-left:auto; font-size:.8rem; }
.gallery-select-label input, .gallery-selection-toolbar input { width:18px; height:18px; accent-color:var(--primary); }
.post-gallery-admin-item.gallery-is-selected { border-color:var(--primary); box-shadow:0 0 0 2px #fb006830; }
.gallery-selection-preview { width:min(1000px,94vw); max-height:94dvh; overflow:auto; border:1px solid #66536f; border-radius:16px; padding:1rem; background:#19121f; color:#fff; }
.gallery-selection-preview::backdrop { background:#000b; }
.gallery-selection-preview header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.gallery-selection-preview h2 { font-size:1.2rem; color:#fff; margin:0; }
.gallery-selection-preview button { min-height:44px; min-width:44px; border:1px solid #786680; border-radius:8px; padding:.5rem .75rem; color:#fff; background:#33223c; }
.gallery-selection-preview button:disabled { opacity:.4; }
.gallery-selection-preview button:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.gallery-selection-preview header button { border-radius:50%; font-size:1.5rem; }
.gallery-preview-stage { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:.5rem; align-items:center; }
.gallery-preview-stage img { width:100%; height:50dvh; object-fit:contain; }
.gallery-preview-stage button { padding:0; font-size:2rem; border-radius:50%; }
.gallery-preview-thumbnails { display:flex; gap:.5rem; overflow:auto; padding:.5rem 0; }
.gallery-preview-thumbnails button { position:relative; flex:0 0 88px; padding:3px; }
.gallery-preview-thumbnails button[aria-current="true"] { border-color:var(--primary); background:var(--primary); }
.gallery-preview-thumbnails img { width:80px; height:55px; object-fit:contain; }
.gallery-preview-thumbnails span { position:absolute; right:3px; bottom:3px; background:#19121fe6; border-radius:4px; padding:1px 4px; font-size:.75rem; }
.gallery-selection-preview footer { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; margin-top:1rem; }
.gallery-selection-preview footer span { flex:1; min-width:180px; font-size:.8rem; }
@media(max-width:575px) { .gallery-selection-preview { width:100%; max-height:100dvh; border-radius:0; } .gallery-position-bar { flex-wrap:wrap; gap:.35rem; } }
.gallery-drag-handle { width:44px; height:44px; border:1px solid #ded5e4; border-radius:8px; background:#fff; color:#66536f; cursor:grab; touch-action:none; }
.gallery-drag-handle:active { cursor:grabbing; }
.post-gallery-admin-item.gallery-is-dragging { outline:3px solid var(--primary); opacity:.7; }
.gallery-drag-handle:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
@media (max-width:767px) {
    .news-adjacent-posts { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .news-adjacent-next { grid-column:2; }
    .news-adjacent-posts .news-all-updates { grid-column:1 / -1; grid-row:2; justify-self:center; }
    .news-adjacent-posts a { padding:.75rem; }
    .news-adjacent-posts span { font-size:.8rem; }
}
.pec-photo-viewer { background:#140f1b; color:#fff; border:1px solid #45394f; border-radius:14px; padding:1rem; width:min(1200px,94vw); max-height:94dvh; overflow:auto; }
.pec-photo-viewer::backdrop { background:rgba(0,0,0,.88); }
body:has(.pec-photo-viewer[open]) .news-lightbox:target { display:none; }
.photo-controls { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:.65rem; margin-bottom:.8rem; }
.photo-navigation { display:flex; gap:.5rem; justify-self:start; }
.photo-navigation[hidden] { display:none; }
.photo-controls [data-photo-count] { grid-column:2; }
.photo-controls [data-photo-close] { grid-column:3; justify-self:end; }
.pec-photo-viewer button { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border:1px solid #786d80; background:#2a2232; color:white; border-radius:50%; padding:0; }
.pec-photo-viewer button:hover { background:#44324e; }
.pec-photo-viewer button:disabled { opacity:.4; cursor:default; }
.pec-photo-viewer button:focus-visible { outline:3px solid white; outline-offset:2px; }
[data-photo-count] { text-align:center; font-size:.85rem; font-variant-numeric:tabular-nums; }
.photo-stage { height:min(70dvh,780px); display:flex; align-items:center; justify-content:center; background:#0c0910; }
.photo-stage img { display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
/* Repeated clicks must not select the photo or tint it with the text highlight. */
.pec-photo-viewer .photo-stage,
.pec-photo-viewer .photo-controls { -webkit-user-select:none; user-select:none; }
.pec-photo-viewer .photo-stage img { -webkit-user-drag:none; -webkit-touch-callout:none; }
.pec-photo-viewer .photo-stage img::selection { background:transparent; }
[data-photo-caption] { margin:.8rem 0 0; text-align:center; max-height:7dvh; overflow:auto; font-size:.9rem; }
.news-editor { border:1px solid #d9d1df; border-radius:8px; overflow:hidden; }
.news-editor-toolbar { display:flex; flex-wrap:wrap; gap:.35rem; padding:.65rem; background:#f7f5f9; border-bottom:1px solid #d9d1df; }
.news-editor button { min-height:38px; padding:.35rem .6rem; border:1px solid #d9d1df; border-radius:5px; background:#fff; color:#291d31; font-size:.8rem; }
.news-editor button:hover { background:#eee7f3; } .news-editor button:disabled { opacity:.4; }
.news-editor-surface { min-height:260px; max-height:650px; overflow:auto; padding:1rem; line-height:1.7; }
.news-editor [hidden] { display:none!important; }
.news-editor-surface:focus-visible, .news-editor button:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; }
.news-editor-link { padding:.65rem; display:flex; gap:.5rem; flex-wrap:wrap; } .news-editor-link input { flex:1; min-width:150px; }
.news-editor-preview { border-top:1px solid #d9d1df; padding:1rem; background:#fff; }
@media(max-width:767px) {
 .news-detail-grid:has(.news-header-picture) { grid-template-columns:1fr; }
 .news-detail-grid .news-header-picture img { max-height:480px; }
 .pec-photo-viewer { padding:.6rem; width:96vw; }
 .photo-controls { grid-template-columns:auto minmax(0,1fr) auto; gap:.4rem; }
 .photo-navigation { gap:.35rem; }
 .photo-controls [data-photo-count] { font-size:.75rem; line-height:1.3; }
 .photo-stage { height:60dvh; }
 .news-rich-content { font-size:1rem; }
}

.news-detail-grid:not(:has(.news-header-picture)) { grid-template-columns:1fr; max-width:78ch; }

body:has(.pec-photo-viewer[open]) .pec-chatbot,
body:has(.pec-photo-viewer[open]) .whatsapp-float { visibility:hidden; }
@media(max-width:991px) {
 .news-detail-grid:has(.news-header-picture) { grid-template-columns:1fr; gap:1.5rem; }
 .news-header-picture { width:100%; max-width:720px; justify-self:center; }
}
@media(max-width:767px) {
 body:has(.news-detail-wrap, .news-page) .whatsapp-float { display:inline-flex; }
}

/* Spacious admin post composer */
.news-composer { width:calc(100vw - 40px); max-width:1500px; height:calc(100dvh - 40px); max-height:none; padding:0; border:1px solid #dedbe3; border-radius:16px; background:#fff; color:#292332; box-shadow:0 24px 90px #21142d38; }
.news-composer::backdrop { background:#1e182c70; backdrop-filter:blur(3px); }
.news-composer[open] { display:flex; flex-direction:column; }
body.news-composer-open { overflow:hidden; }
.news-composer-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:20px 28px; border-bottom:1px solid #e9e5ed; flex-shrink:0; }
.news-composer-header h3 { margin:0; font-size:1.3rem; font-weight:700; }
.news-composer-header h3 i { color:var(--primary,#6b2579); margin-right:.6rem; }
.news-composer-header p { margin:5px 0 0; color:#7a7282; font-size:.85rem; }
.news-composer-close { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border:0; border-radius:50%; background:#f4f1f6; color:#57485f; }
.news-composer-close:hover { background:#e9e0ee; }
.news-composer-body { min-height:0; overflow:auto; flex:1; overscroll-behavior:contain; }
.news-composer-grid { display:grid; grid-template-columns:minmax(0,1fr) 390px; min-height:100%; }
.news-composer-writing { min-width:0; padding:28px; }
.news-composer-writing input[name=title] { font-size:1.4rem; font-weight:600; padding:14px; }
.news-composer-writing .form-label { font-weight:600; }
.news-composer-settings { min-width:0; padding:28px; background:#faf9fc; border-left:1px solid #e9e5ed; }
.news-composer-settings h4 { font-size:1rem; font-weight:700; margin-bottom:22px; }
.news-composer-settings .row { --bs-gutter-x:12px; }
.news-composer-settings [data-schedule-field] { width:100%; }
.news-composer-settings [data-schedule-field] ~ .col-md-3 { width:50%; }
.news-composer-settings .form-label { font-size:.85rem; font-weight:600; }
.news-composer .news-editor-toolbar { gap:4px; padding:8px; }
.news-composer .news-editor-toolbar button { width:40px; height:40px; min-height:40px; padding:0; display:inline-flex; align-items:center; justify-content:center; gap:1px; border:0; font-size:.95rem; }
.news-composer .news-editor-toolbar button sub { font-size:.65rem; }
.news-composer .news-editor-surface { min-height:430px; max-height:none; padding:24px; font-size:1rem; }
.news-composer .news-editor textarea { min-height:430px; font-family:monospace; padding:20px; border:0; }
.news-composer-media { padding:0 28px 28px; border-top:1px solid #e9e5ed; }
.news-composer-media .post-gallery-admin-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.news-composer-footer { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 28px; border-top:1px solid #e9e5ed; background:#fff; }
.news-composer-footer .btn { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.news-composer-hint { color:#82778a; font-size:.8rem; }
@media(max-width:991px) {
 .news-composer { width:100vw; height:100dvh; border-radius:0; border:0; }
 .news-composer-grid { grid-template-columns:minmax(0,1fr) 320px; }
 .news-composer-writing,.news-composer-settings { padding:20px; }
 .news-composer .news-editor-toolbar button { width:44px; height:44px; }
 .news-composer-hint { display:none; }
 .news-composer-footer { justify-content:flex-end; }
}
@media(max-width:767px) {
 .news-composer-grid { grid-template-columns:1fr; }
 .news-composer-settings { border-left:0; border-top:1px solid #e9e5ed; }
 .news-composer-header { padding:12px 16px; }
 .news-composer-header h3 { font-size:1.1rem; }
 .news-composer-header p { display:none; }
 .news-composer-writing,.news-composer-settings { padding:16px; }
 .news-composer .news-editor-surface { min-height:300px; padding:16px; }
 .news-composer-footer { padding:12px 16px max(12px,env(safe-area-inset-bottom)); }
 .news-composer-footer > div { width:100%; justify-content:flex-end; }
 .news-composer-media { padding:0 16px 16px; }
}
@media(min-width:768px) and (max-width:991px) { .news-composer-grid { grid-template-columns:1fr; } }
@media(max-width:767px) { .news-composer-footer a.btn { display:none; } }

/* Clear public filters and a compact, uncropped photo album. */
.news-page .news-filter-bar { align-items:stretch; }
.news-filter-actions { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; padding-top:.8rem; border-top:1px solid var(--news-rule); }
.news-filter-actions > div { display:flex; align-items:center; gap:1rem; }
.news-filter-actions .btn, .news-filter-clear { min-height:44px; display:inline-flex; align-items:center; gap:.5rem; }
.news-filter-actions > span { font-size:.85rem; color:var(--news-muted); }
.news-gallery-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.news-gallery-heading > span { color:var(--news-muted); font-size:.85rem; white-space:nowrap; }
.news-gallery-hint { color:var(--news-muted); font-size:.9rem; margin:.5rem 0 1rem; }
.news-detail-gallery .news-gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:14px; }
.news-detail-gallery figure { min-width:0; border:1px solid var(--news-rule); border-radius:12px; overflow:hidden; background:var(--news-surface); }
.news-detail-gallery .news-gallery-link { position:relative; background:var(--news-soft); }
.news-detail-gallery .news-gallery-link img { display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:contain; border-radius:0; }
.news-gallery-number { position:absolute; right:8px; bottom:8px; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; color:#fff; background:#291d31cc; border:1px solid #ffffff80; font-size:.75rem; font-weight:700; pointer-events:none; }
.news-detail-gallery figcaption { margin:0; padding:.6rem .75rem; font-size:.85rem; line-height:1.5; overflow-wrap:anywhere; }
@media(max-width:991px) { .news-detail-gallery .news-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) {
 .news-filter-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
 .news-filter-options > div { min-width:0; }
 .news-filter-options > div:last-child { grid-column:1 / -1; }
 .news-filter-tabs { min-width:0; flex-wrap:nowrap; overflow-x:auto; padding-bottom:.4rem; }
 .news-filter-tabs a { flex-shrink:0; min-height:44px; }
 .news-filter-actions { gap:.5rem; }
 .news-detail-gallery .news-gallery-grid { gap:10px; }
 .news-detail-gallery .news-gallery-heading h2 { font-size:1.3rem; }
 .news-detail-gallery figcaption { padding:.5rem .6rem; font-size:.8rem; }
}
@media(max-width:359px) { .news-detail-gallery .news-gallery-grid { grid-template-columns:1fr; } }

/* A quieter filter surface with predictable field widths on every screen. */
.news-page .news-filter-bar { grid-template-columns:minmax(240px,1fr) minmax(0,1.5fr); gap:1rem; padding:1.25rem; background:#fff; border-radius:16px; box-shadow:0 4px 20px #291d3105; }
.news-filter-tabs { display:flex; flex-wrap:wrap; gap:.5rem; margin:0; padding:0 0 1rem; border-bottom:1px solid var(--news-rule); }
.news-filter-tabs a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.55rem .9rem; border:1px solid transparent; border-radius:999px; background:var(--news-soft); color:var(--news-muted); text-decoration:none; font-size:.85rem; font-weight:600; }
.news-filter-tabs a.active { color:#fff; background:var(--primary); }
.news-filter-tabs a:hover:not(.active) { color:var(--primary); border-color:var(--primary); }
.news-page .news-search-box { grid-column:1; grid-row:2; height:48px; border-radius:10px; margin:0; }
.news-filter-options { grid-column:2; grid-row:2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.news-filter-options > div { min-width:0; }
.news-filter-options label { font-size:.75rem; margin-bottom:.35rem; }
.news-filter-options select { min-height:48px; border-radius:10px; font-size:.85rem; }
.news-page .news-search-box { align-self:end; }
.news-filter-actions { padding-top:1rem; }
.news-filter-actions .btn { border-radius:10px; }
.news-filter-clear { color:var(--news-muted); font-size:.85rem; text-underline-offset:3px; }
@media(max-width:767px) {
 .news-page .news-filter-bar { grid-template-columns:minmax(0,1fr); padding:1rem; gap:1rem; }
 .news-filter-tabs { flex-wrap:wrap; overflow:visible; padding-bottom:1rem; gap:.4rem; }
 .news-filter-tabs a { font-size:.8rem; padding:.45rem .75rem; }
 .news-page .news-search-box { grid-column:1; grid-row:2; width:100%; }
 .news-filter-options { grid-column:1; grid-row:3; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .news-filter-options > div:last-child { grid-column:1 / -1; }
 .news-filter-actions { grid-row:4; align-items:center; }
 .news-filter-actions > div { width:100%; justify-content:space-between; }
 .news-filter-actions .btn { flex:1; justify-content:center; }
 .news-filter-actions > span { width:100%; text-align:center; font-size:.8rem; }
}

/* Gallery navigation beside the picture. */
.pec-photo-viewer .photo-controls { grid-template-columns:44px minmax(0,1fr) 44px; }
.pec-photo-viewer .photo-stage { position:relative; padding-inline:56px; }
.pec-photo-viewer .photo-stage .photo-navigation { position:absolute; inset:0; width:100%; height:100%; justify-self:stretch; display:block; pointer-events:none; }
.pec-photo-viewer .photo-stage .photo-navigation[hidden] { display:none; }
.photo-stage .photo-navigation button { position:absolute; top:50%; transform:translateY(-50%); pointer-events:auto; background:rgba(42,34,50,.85); box-shadow:0 3px 12px #0005; }
.photo-stage [data-photo-prev] { left:6px; }
.photo-stage [data-photo-next] { right:6px; }
@media(max-width:767px) {
 .pec-photo-viewer .photo-stage { padding-inline:0; }
 .photo-stage [data-photo-prev] { left:4px; }
 .photo-stage [data-photo-next] { right:4px; }
}

/* Keep list pagination balanced, including at the first and last page. */
.news-pagination { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:1rem; margin:1.75rem 0 0; padding-top:1.25rem; border-top:1px solid var(--news-rule); }
.news-pagination-previous, .news-pagination-next { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:44px; padding:.65rem 1rem; border:1px solid var(--news-rule); border-radius:999px; color:var(--primary); background:#fff; text-decoration:none; font-size:.9rem; font-weight:700; }
.news-pagination-previous { grid-column:1; grid-row:1; justify-self:start; }
.news-pagination-next { grid-column:3; grid-row:1; justify-self:end; }
.news-pagination-current { grid-column:2; grid-row:1; color:var(--news-muted); white-space:nowrap; font-size:.85rem; font-variant-numeric:tabular-nums; }
.news-pagination a:hover { color:#fff; background:var(--primary); border-color:var(--primary); }
.news-pagination .is-disabled { color:var(--news-muted); opacity:.45; background:var(--news-soft); }
@media(max-width:575px) {
 .news-pagination { gap:.5rem; }
 .news-pagination-previous, .news-pagination-next { gap:.35rem; padding:.6rem .7rem; font-size:.8rem; }
 .news-pagination-current { font-size:.8rem; }
}
