:root { --na-primary: #135f7c; --na-primary-dark: #0e506a; --na-accent: #b3432f; --na-ink: #1f2933; --na-muted: #64748b; --na-bg: #f6f8fb; --na-border: #dbe3ea; --na-soft: #eef6f8; }
body { color: var(--na-ink); background: var(--na-bg); line-height: 1.65; }
a { color: var(--na-primary); }
a:hover { color: var(--na-primary-dark); }
.site-header { position: sticky; top: 0; z-index: 1020; box-shadow: 0 2px 18px rgb(15 23 42 / 5%); }
.site-header .navbar { padding-block: .85rem; }
.brand-mark { width: 46px; height: 46px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--na-primary); color: #fff; font-weight: 700; letter-spacing: 0; flex: 0 0 46px; }
.navbar-brand { white-space: normal; }
.navbar-brand strong { display: block; font-size: 1rem; line-height: 1.25; }
.navbar-brand small { display: block; color: var(--na-muted); font-size: .8rem; line-height: 1.35; }
.navbar-brand span:last-child { min-width: 0; }
.navbar .nav-link { border-radius: 6px; color: #435466; font-weight: 600; padding-inline: .8rem; }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible, .navbar .nav-link.active { color: var(--na-primary); background: var(--na-soft); }
.admin-nav-link { color: var(--na-accent) !important; }
.site-search { min-width: min(320px, 100%); }
.site-search .form-control { min-height: 2.5rem; }
.hero-section { background: linear-gradient(180deg, #ffffff 0%, #eef6f8 100%); }
.hero-masthead { min-height: 310px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding-block: 3rem; }
.home-hero .hero-masthead { min-height: 0; padding-block: 1.5rem; }
.hero-title { max-width: 760px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.2; font-weight: 800; }
.home-hero .hero-title { font-size: 1.9rem; }
.hero-subtitle { max-width: 760px; color: var(--na-muted); font-size: 1.2rem; line-height: 1.75; }
.home-hero .hero-subtitle { font-size: 1rem; line-height: 1.6; }
.hero-info { display: grid; gap: .75rem; min-width: 250px; }
.hero-info a, .hero-info span { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border: 1px solid var(--na-border); border-radius: 8px; background: rgb(255 255 255 / 70%); color: #334155; font-weight: 600; text-decoration: none; }
.home-hero .hero-info { grid-template-columns: repeat(3, max-content); min-width: 0; gap: .5rem; }
.home-hero .hero-info a { padding: .55rem .75rem; white-space: nowrap; }
.hero-info i { color: var(--na-accent); }
.public-section { padding-block: 3rem; }
.home-section { padding-block: 1.35rem 2.25rem; }
.section-block { margin-bottom: 3rem; }
.home-section .section-block { margin-bottom: 1.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.compact-heading { align-items: center; margin-bottom: .75rem; }
.section-kicker { color: var(--na-accent); font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.section-link { text-decoration: none; font-weight: 700; white-space: nowrap; }
.page-heading { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--na-border); }
.news-card { position: relative; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(15 23 42 / 10%); border-color: #c9d7e2 !important; }
.news-card-thumb, .news-card-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #eef2f7; }
.news-card-placeholder { display: grid; place-items: center; color: #7f92a6; font-size: 1.75rem; }
.news-card-body { min-height: 11.5rem; }
.news-card-category { color: var(--na-primary); font-weight: 600; }
.news-card-date { color: var(--na-muted); }
.news-card-title { font-size: 1.08rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-title a { color: var(--na-ink); }
.news-card-summary { line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-feature .news-card-body { min-height: 14rem; padding: 1.25rem !important; }
.news-card-feature .news-card-title { font-size: 1.35rem; -webkit-line-clamp: 3; }
.news-card-compact .news-card-body { min-height: 9.75rem; }
.news-card-compact .news-card-title { font-size: 1rem; }
.featured-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.featured-grid .news-card-feature { grid-row: span 2; }
.featured-grid .news-card-feature .news-card-thumb, .featured-grid .news-card-feature .news-card-placeholder { aspect-ratio: 16 / 7; max-height: 215px; }
.featured-grid .news-card-feature .news-card-body { min-height: auto; padding: 1rem 1.1rem !important; }
.featured-grid .news-card-feature .news-card-title { font-size: 1.22rem; line-height: 1.38; -webkit-line-clamp: 2; }
.featured-grid .news-card-feature .news-card-summary { -webkit-line-clamp: 1; }
.featured-grid .news-card-compact { display: grid; grid-template-columns: 39% minmax(0, 1fr); }
.featured-grid .news-card-compact .news-card-thumb, .featured-grid .news-card-compact .news-card-placeholder { height: 100%; min-height: 0; aspect-ratio: auto; }
.featured-grid .news-card-compact .news-card-body { min-height: auto; padding: .85rem !important; }
.featured-grid .news-card-compact .news-card-title { font-size: .96rem; line-height: 1.38; margin-bottom: 0 !important; }
.featured-grid .news-card-compact .news-card-summary { display: none; }
.featured-grid .news-card-placeholder, .home-section .news-card-placeholder { background: linear-gradient(135deg, #f8fafc 0%, #edf5f7 100%); color: #8aa0ad; }
.featured-grid .news-card-placeholder i, .home-section .news-card-placeholder i { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid #d6e3e9; border-radius: 999px; background: rgb(255 255 255 / 72%); color: #78909c; font-size: 1.15rem; }
.featured-grid .news-card-feature .news-card-placeholder i { width: 3rem; height: 3rem; font-size: 1.35rem; }
.news-card-announcement { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.news-card-announcement .news-card-thumb, .news-card-announcement .news-card-placeholder { height: 100%; min-height: 112px; aspect-ratio: auto; }
.news-card-announcement .news-card-body { min-height: auto; }
.home-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.latest-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.news-card-list { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.news-card-list .news-card-thumb, .news-card-list .news-card-placeholder { height: 100%; min-height: 108px; aspect-ratio: auto; }
.news-card-list .news-card-body { min-height: auto; padding: .85rem !important; }
.news-card-list .news-card-title { font-size: .98rem; line-height: 1.42; margin-bottom: 0 !important; }
.news-card-list .news-card-summary { display: none; }
.news-card-list .news-card-body > div:first-child { gap: .5rem !important; margin-bottom: .35rem !important; }
.home-sidebar { display: grid; gap: 1rem; }
.home-panel { padding: 1rem; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; }
.activity-list { display: grid; gap: .85rem; }
.activity-list-item { position: relative; padding-left: .9rem; border-left: 3px solid var(--na-primary); }
.activity-list-item time { display: block; color: var(--na-accent); font-size: .82rem; font-weight: 700; line-height: 1.35; }
.activity-list-item h3 { margin: .2rem 0 .25rem; font-size: .98rem; line-height: 1.42; }
.activity-list-item h3 a { color: var(--na-ink); text-decoration: none; }
.activity-list-item h3 a:hover { color: var(--na-primary); }
.activity-list-item p { display: grid; gap: .15rem; margin: 0; color: var(--na-muted); font-size: .84rem; line-height: 1.45; }
.activity-list-item i { color: var(--na-primary); }
.category-chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.category-chip { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; padding: .45rem .6rem; border: 1px solid var(--na-border); border-radius: 999px; background: #f8fafc; color: var(--na-ink); text-decoration: none; line-height: 1.35; }
.category-chip:hover { border-color: #b9ccd8; background: var(--na-soft); color: var(--na-primary); }
.category-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-chip small { flex: 0 0 auto; color: var(--na-muted); font-weight: 700; }
.pinned-list { display: grid; gap: .6rem; }
.empty-state { display: flex; align-items: center; gap: .75rem; padding: 1rem; border: 1px dashed #c9d7e2; border-radius: 8px; background: #fff; color: var(--na-muted); }
.empty-state i { color: var(--na-primary); font-size: 1.2rem; }
.search-panel { padding: 1rem; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; }
.news-index-shell { max-width: 1180px; }
.category-index-shell { max-width: 1180px; }
.category-index-heading { max-width: 860px; }
.category-news-shell .news-index-heading { align-items: start; }
.category-evidence-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.category-evidence-actions .copy-feedback { min-height: 1.4rem; }
.news-index-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 1.25rem; align-items: end; }
.news-index-heading-main { min-width: 0; }
.archive-search { align-self: end; }
.archive-search .input-group { box-shadow: 0 8px 24px rgb(15 23 42 / 6%); border-radius: 8px; }
.archive-search .form-control { min-height: 2.65rem; border-color: var(--na-border); }
.archive-search .btn { white-space: nowrap; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.archive-result-count { color: var(--na-muted); font-size: .94rem; font-weight: 700; }
.news-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.archive-news-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.archive-news-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(15 23 42 / 9%); border-color: #c9d7e2; }
.archive-news-media, .archive-news-placeholder { display: block; width: 100%; aspect-ratio: 16 / 8.5; background: #eef2f7; }
.archive-news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-news-placeholder { display: grid; place-items: center; color: #8095a3; font-size: 1.35rem; background: linear-gradient(135deg, #f8fafc 0%, #edf5f7 100%); }
.archive-news-placeholder i { display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 1px solid #d6e3e9; border-radius: 999px; background: rgb(255 255 255 / 72%); color: #78909c; font-size: 1.08rem; }
.archive-news-card.no-thumb { display: grid; grid-template-columns: 74px minmax(0, 1fr); min-height: 150px; }
.archive-news-card.no-thumb .archive-news-placeholder { height: 100%; min-height: 0; aspect-ratio: auto; }
.archive-news-card.no-thumb .archive-news-placeholder i { width: 2rem; height: 2rem; font-size: .98rem; }
.archive-news-body { display: flex; flex-direction: column; min-width: 0; padding: .95rem; }
.archive-news-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: .65rem; margin-bottom: .55rem; color: var(--na-muted); font-size: .82rem; line-height: 1.35; }
.archive-news-category { color: var(--na-primary); font-weight: 700; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
a.archive-news-category:hover { color: var(--na-primary-dark); text-decoration: underline; text-underline-offset: .18em; }
.archive-news-meta time { flex: 0 0 auto; color: var(--na-muted); white-space: nowrap; }
.archive-news-title { margin: 0; font-size: 1.02rem; line-height: 1.45; font-weight: 800; }
.archive-news-title a { color: var(--na-ink); text-decoration: none; overflow-wrap: anywhere; }
.archive-news-title a:hover { color: var(--na-primary); }
.archive-news-summary { margin: .55rem 0 0; color: var(--na-muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.archive-empty-state { grid-column: 1 / -1; }
.historical-gallery-shell { max-width: 1180px; }
.historical-gallery-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 1.25rem; align-items: end; }
.historical-year-filter { align-self: end; }
.historical-year-filter .form-label { color: var(--na-muted); font-size: .82rem; font-weight: 800; }
.historical-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.historical-album-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.historical-album-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(15 23 42 / 9%); border-color: #c9d7e2; }
.historical-album-media, .historical-card-thumb, .historical-card-placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; }
.historical-card-thumb { object-fit: cover; background: #eef2f7; }
.historical-card-placeholder { display: grid; place-items: center; color: #8095a3; background: linear-gradient(135deg, #f8fafc 0%, #edf5f7 100%); font-size: 1.35rem; }
.historical-album-body { display: flex; flex-direction: column; min-width: 0; padding: .95rem; }
.historical-album-meta { display: flex; flex-wrap: wrap; gap: .45rem .8rem; color: var(--na-muted); font-size: .82rem; font-weight: 700; line-height: 1.35; margin-bottom: .55rem; }
.historical-album-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.historical-album-title { margin: 0; font-size: 1.05rem; line-height: 1.45; font-weight: 800; }
.historical-album-title a { color: var(--na-ink); text-decoration: none; overflow-wrap: anywhere; }
.historical-album-title a:hover { color: var(--na-primary); }
.historical-album-date { margin-top: .55rem; color: var(--na-muted); font-size: .9rem; line-height: 1.45; }
.historical-empty-state { min-height: 7rem; justify-content: center; }
.historical-detail-header .article-category { background: #fff5f2; border-color: #e6cfc9; color: var(--na-accent); }
.historical-photo-grid .gallery-thumb { aspect-ratio: 4 / 3; }
.category-archive-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; color: var(--na-ink); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.category-archive-card:hover { border-color: #c9d7e2 !important; box-shadow: 0 10px 24px rgb(15 23 42 / 8%); transform: translateY(-1px); }
.category-archive-main { min-width: 0; }
.category-archive-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.category-archive-count { flex: 0 0 auto; color: var(--na-muted); font-size: .9rem; white-space: nowrap; }
.category-archive-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; flex: 0 0 auto; }
.evidence-url { overflow-wrap: anywhere; }
.article-shell { max-width: 1120px; }
.article-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; max-width: 900px; margin: 0 auto 1.3rem; font-weight: 700; }
.article-breadcrumb a { display: inline-flex; align-items: center; gap: .35rem; color: #4b6173; text-decoration: none; }
.article-breadcrumb a:hover { color: var(--na-primary); }
.article-header { max-width: 900px; margin-inline: auto; padding-bottom: 1.4rem; border-bottom: 1px solid var(--na-border); }
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem .85rem; align-items: center; color: #4d6475; font-size: .94rem; font-weight: 700; margin-bottom: .85rem; }
.article-meta span, .article-meta time, .article-category { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; overflow-wrap: anywhere; }
.article-category { padding: .28rem .68rem; border: 1px solid #cddde6; border-radius: 999px; background: var(--na-soft); color: var(--na-primary); text-decoration: none; }
a.article-category:hover { border-color: #aac5d2; background: #fff; }
.article-title { max-width: 880px; font-size: 2.15rem; line-height: 1.32; font-weight: 800; margin-bottom: .9rem; overflow-wrap: anywhere; }
.article-summary { max-width: 820px; color: var(--na-muted); font-size: 1.08rem; line-height: 1.8; margin-bottom: 0; }
.event-info { margin-top: 1.25rem; padding: .9rem 1rem; border-left: 4px solid var(--na-primary); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(15 23 42 / 5%); }
.event-info-header { display: flex; align-items: center; gap: .5rem; color: var(--na-primary); margin-bottom: .7rem; }
.event-info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; }
.activities-shell { max-width: 1180px; }
.activities-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; }
.activities-heading-main { max-width: 720px; min-width: 0; }
.activities-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; min-width: min(390px, 100%); }
.activities-summary div { padding: .65rem .75rem; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; }
.activities-summary dt { color: var(--na-muted); font-size: .78rem; font-weight: 700; line-height: 1.35; }
.activities-summary dd { margin: .1rem 0 0; color: var(--na-primary); font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
.activities-grid, .activity-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.activity-card { position: relative; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.activity-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(15 23 42 / 9%); border-color: #c9d7e2 !important; }
.activity-card-thumb, .activity-card-placeholder { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; display: block; background: #eef2f7; }
.activity-card-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #f8fafc 0%, #edf5f7 100%); color: #8095a3; font-size: 1.35rem; }
.activity-card-placeholder i { display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 1px solid #d6e3e9; border-radius: 999px; background: rgb(255 255 255 / 72%); color: #78909c; font-size: 1.08rem; }
.activity-card-body { display: flex; flex-direction: column; min-width: 0; padding: .95rem; }
.activity-card-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: .65rem; margin-bottom: .55rem; font-size: .82rem; line-height: 1.35; }
.activity-card-title { margin: 0; font-size: 1.02rem; line-height: 1.45; font-weight: 800; }
.activity-card-title a { color: var(--na-ink); overflow-wrap: anywhere; }
.activity-card-title a:hover { color: var(--na-primary); }
.activity-status { position: relative; z-index: 2; display: inline-flex; align-items: center; max-width: 100%; padding: .24rem .55rem; border: 1px solid #cddde6; border-radius: 999px; background: #f8fafc; color: #355066; font-size: .78rem; font-weight: 800; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.activity-status-upcoming { border-color: #c6d8e1; background: var(--na-soft); color: var(--na-primary); }
.activity-status-ongoing { border-color: #e6cfc9; background: #fff5f2; color: var(--na-accent); }
.activity-status-past { border-color: #d9e1e8; background: #f8fafc; color: #52677a; }
.event-info-list div, .activity-meta div { display: flex; gap: .55rem; min-width: 0; }
.event-info-list dt, .activity-meta dt { flex: 0 0 auto; color: var(--na-primary); font-weight: 700; }
.event-info-list dd, .activity-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.activity-meta { display: grid; gap: .35rem; margin-top: .8rem; color: var(--na-muted); font-size: .88rem; line-height: 1.45; }
.activity-card-summary { margin-top: .75rem; line-height: 1.55; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.activity-detail-header { max-width: 900px; }
.activity-detail-meta { margin-top: 1rem; padding: .9rem 1rem; border-left: 4px solid var(--na-primary); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(15 23 42 / 5%); }
.activity-description { max-width: 860px; padding: 1rem 1.1rem; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; line-height: 1.85; font-size: 1.04rem; overflow-wrap: anywhere; }
.article-cover { margin: 1.6rem auto 2rem; max-width: 960px; border: 1px solid var(--na-border); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 14px 36px rgb(15 23 42 / 7%); }
.no-cover .article-header { margin-bottom: 1.4rem; }
.article-body { max-width: 860px; margin-inline: auto; }
.article-section { max-width: 960px; margin: 2.4rem auto 0; padding-top: 1.35rem; border-top: 1px solid var(--na-border); }
.article-footer-nav { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 960px; margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--na-border); }
.site-footer { background: #fff; }
.btn-primary { --bs-btn-bg: var(--na-primary); --bs-btn-border-color: var(--na-primary); --bs-btn-hover-bg: var(--na-primary-dark); --bs-btn-hover-border-color: var(--na-primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--na-primary); --bs-btn-border-color: var(--na-primary); --bs-btn-hover-bg: var(--na-primary); --bs-btn-hover-border-color: var(--na-primary); }
.admin-shell { background: #f4f7fa; }
.admin-sidebar { position: sticky; top: 0; width: 248px; min-height: 100vh; background: #102a43; color: #fff; flex: 0 0 auto; }
.admin-brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: 0; }
.admin-brand:hover { color: #fff; }
.admin-brand-mark { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid rgb(255 255 255 / 22%); border-radius: 8px; background: rgb(255 255 255 / 10%); font-size: .82rem; }
.admin-nav .nav-link { display: flex; align-items: center; gap: .7rem; min-height: 2.45rem; color: #d9e2ec; border-radius: 6px; font-weight: 700; line-height: 1.35; }
.admin-nav .nav-link i { flex: 0 0 1.2rem; text-align: center; font-size: 1rem; }
.admin-nav .nav-link:hover, .admin-nav .nav-link:focus-visible { color: #fff; background: rgb(255 255 255 / 10%); }
.admin-nav .nav-link.active { color: #fff; background: #135f7c; box-shadow: inset 3px 0 0 #fff; }
.admin-nav-divider { height: 1px; margin: .65rem .35rem; background: rgb(255 255 255 / 16%); }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-topbar-title { min-width: 0; }
.admin-topbar-title strong { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.admin-topbar-title span { display: block; color: var(--na-muted); font-size: .84rem; line-height: 1.3; }
.admin-userbar { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; flex: 0 0 auto; }
.admin-user-meta { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.admin-user-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.admin-role-badge { display: inline-flex; align-items: center; min-height: 1.45rem; padding: .1rem .5rem; border: 1px solid #cddde6; border-radius: 999px; background: var(--na-soft); color: var(--na-primary); font-size: .76rem; font-weight: 800; line-height: 1.2; }
.admin-content { max-width: 1440px; }
.admin-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border-radius: 8px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.metric-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px; padding: .9rem; background: #fff; }
.metric-box i { grid-row: span 2; align-self: center; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; background: var(--na-soft); color: var(--na-primary); }
.metric-box span { display: block; color: var(--na-muted); font-size: .82rem; line-height: 1.25; }
.metric-box strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.quick-action-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.quick-action-list .btn { display: inline-flex; align-items: center; gap: .35rem; }
.admin-section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.admin-list .list-group-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.admin-list-main { display: grid; gap: .2rem; min-width: 0; }
.admin-list-main strong { overflow-wrap: anywhere; }
.admin-dashboard-note p { font-size: .92rem; }
.admin-news-page { min-width: 0; }
.admin-news-filter .form-label, .admin-news-form .form-label { font-weight: 700; color: #34495a; }
.admin-news-list-meta { flex-wrap: wrap; }
.admin-news-table { min-width: 980px; font-size: .94rem; }
.admin-news-table th { color: #52677a; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
.admin-news-title-cell { min-width: 330px; max-width: 520px; }
.admin-news-title-block { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.admin-news-title-block .min-w-0 { min-width: 0; }
.admin-news-title-block strong { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.admin-news-badges { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.admin-news-thumb-placeholder { width: 72px; height: 48px; display: inline-grid; place-items: center; flex: 0 0 auto; background: #eef2f7; color: #8095a3; }
.admin-status-pill { display: inline-grid; gap: .05rem; min-width: 6.6rem; padding: .28rem .55rem; border: 1px solid #d9e1e8; border-radius: 8px; background: #f8fafc; color: #355066; font-weight: 800; line-height: 1.15; text-align: center; }
.admin-status-pill small { color: #64748b; font-size: .68rem; font-weight: 700; }
.admin-status-published { border-color: #b7d9c4; background: #f0fbf4; color: #1f6f43; }
.admin-status-draft { border-color: #d6dde6; background: #f8fafc; color: #475569; }
.admin-status-archived { border-color: #ecc8bf; background: #fff5f2; color: #9b3325; }
.admin-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.admin-news-form { display: grid; gap: 1rem; }
.admin-news-panel { padding: 1rem; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; }
.admin-news-panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid #e8eef4; }
.admin-form-top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.admin-news-error { border-radius: 8px; }
.admin-check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; min-height: 2.4rem; }
.admin-readonly-field { display: flex; align-items: center; gap: .55rem; min-height: 2.4rem; padding: .45rem .65rem; border: 1px solid #d9e1e8; border-radius: 6px; background: #f8fafc; overflow-wrap: anywhere; }
.admin-readonly-field i { color: var(--na-primary); }
.admin-rich-editor { min-height: 320px; }
.admin-news-system-panel { background: #fbfcfd; }
.admin-system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.admin-system-grid div { min-width: 0; padding: .65rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.admin-system-grid dt { color: var(--na-muted); font-size: .78rem; font-weight: 800; line-height: 1.3; }
.admin-system-grid dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.admin-news-savebar { position: sticky; bottom: .75rem; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem; box-shadow: 0 12px 28px rgb(15 23 42 / 10%); }
.admin-media-card { height: 100%; min-width: 0; padding: .9rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfcfd; }
.admin-media-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.admin-cover-preview { width: 100%; max-height: 220px; object-fit: contain; background: #fff; display: block; }
.admin-empty-media { display: flex; align-items: center; gap: .55rem; min-height: 4rem; padding: .8rem; border: 1px dashed #c9d7e2; border-radius: 8px; background: #fff; color: var(--na-muted); }
.admin-empty-media i { color: var(--na-primary); font-size: 1.2rem; }
.admin-gallery-list { display: grid; gap: .75rem; }
.admin-gallery-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .75rem; background: #fff; }
.admin-gallery-item > form:last-child { grid-column: 2; }
.admin-gallery-thumb { width: 96px; height: 72px; object-fit: cover; background: #eef2f7; }
.admin-attachment-list .list-group-item { background: transparent; }
.admin-attachment-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.admin-attachment-main { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.admin-attachment-main i { color: var(--na-accent); flex: 0 0 auto; }
.admin-category-page { min-width: 0; }
.admin-category-summary { display: grid; grid-template-columns: repeat(4, minmax(6.8rem, 1fr)); gap: .55rem; min-width: min(520px, 100%); }
.admin-category-summary div { padding: .65rem .75rem; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; }
.admin-category-summary span { display: block; color: var(--na-muted); font-size: .78rem; font-weight: 800; line-height: 1.3; }
.admin-category-summary strong { display: block; margin-top: .12rem; color: var(--na-primary); font-size: 1.2rem; line-height: 1.1; }
.admin-category-form { display: grid; gap: 1rem; }
.admin-category-form .form-label { font-weight: 700; color: #34495a; }
.admin-category-legacy-badge { display: inline-flex; align-items: center; max-width: 100%; padding: .28rem .55rem; border: 1px solid #d6dde6; border-radius: 999px; background: #f8fafc; color: #475569; font-size: .78rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.admin-category-legacy-panel { background: #fbfcfd; }
.admin-category-meta { display: grid; gap: .55rem; }
.admin-category-meta div { min-width: 0; padding: .65rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.admin-category-meta dt { color: var(--na-muted); font-size: .76rem; font-weight: 800; line-height: 1.3; }
.admin-category-meta dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.admin-category-switch-list { display: grid; gap: .75rem; }
.admin-category-switch { min-width: 0; padding: .75rem .75rem .75rem 3rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfcfd; }
.admin-category-switch .form-check-input { margin-left: -2.25rem; }
.admin-category-switch span { display: block; font-weight: 800; color: #334155; line-height: 1.25; }
.admin-category-switch small { display: block; margin-top: .15rem; color: var(--na-muted); line-height: 1.35; }
.admin-category-savebar { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem; }
.admin-category-list-panel { padding-bottom: .75rem; }
.admin-category-table { min-width: 980px; font-size: .94rem; }
.admin-category-table th { color: #52677a; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
.admin-category-name-cell { min-width: 220px; max-width: 360px; }
.admin-category-name-cell strong { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.admin-category-name-cell code { overflow-wrap: anywhere; white-space: normal; }
.admin-category-status-on { border-color: #b7d9c4; background: #f0fbf4; color: #1f6f43; }
.admin-category-status-off { border-color: #d6dde6; background: #f8fafc; color: #475569; }
.admin-event-page { min-width: 0; }
.admin-event-heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; }
.admin-event-summary { display: grid; grid-template-columns: repeat(2, minmax(8rem, 1fr)); gap: .55rem; max-width: 520px; }
.admin-event-summary div { padding: .65rem .75rem; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; }
.admin-event-summary span { display: block; color: var(--na-muted); font-size: .78rem; font-weight: 800; line-height: 1.3; }
.admin-event-summary strong { display: block; margin-top: .12rem; color: var(--na-primary); font-size: 1.2rem; line-height: 1.1; }
.admin-event-filter .form-label, .admin-event-form .form-label { font-weight: 700; color: #34495a; }
.admin-event-table { min-width: 940px; font-size: .94rem; }
.admin-event-table th { color: #52677a; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
.admin-event-title-cell { min-width: 300px; max-width: 520px; }
.admin-event-title-cell strong { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.admin-event-date { display: grid; gap: .25rem; color: #475569; line-height: 1.35; }
.admin-event-date span { display: flex; align-items: center; gap: .4rem; min-width: 0; overflow-wrap: anywhere; }
.admin-event-date i { color: var(--na-primary); flex: 0 0 auto; }
.admin-event-location { min-width: 180px; max-width: 320px; overflow-wrap: anywhere; }
.admin-event-count { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; min-height: 2rem; padding: .2rem .55rem; border: 1px solid #d9e1e8; border-radius: 8px; background: #f8fafc; color: #355066; font-weight: 800; line-height: 1.1; }
.admin-event-status-upcoming { border-color: #c6d8e1; background: var(--na-soft); color: var(--na-primary); }
.admin-event-status-ongoing { border-color: #e6cfc9; background: #fff5f2; color: var(--na-accent); }
.admin-event-status-past { border-color: #d9e1e8; background: #f8fafc; color: #52677a; }
.admin-event-form { display: grid; gap: 1rem; }
.admin-event-notice { display: flex; align-items: flex-start; gap: .6rem; border-radius: 8px; }
.admin-event-savebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem; }
.admin-event-linked-news { padding-bottom: .75rem; }
.admin-event-news-list .list-group-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; background: transparent; }
.admin-event-linked-main { display: grid; gap: .2rem; min-width: 0; }
.admin-event-linked-main strong { line-height: 1.45; overflow-wrap: anywhere; }
.admin-event-danger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-color: #ecc8bf !important; background: #fffafa !important; }
.admin-user-page { min-width: 0; }
.admin-user-summary { display: grid; grid-template-columns: repeat(3, minmax(6.8rem, 1fr)); gap: .55rem; min-width: min(460px, 100%); }
.admin-user-summary div { padding: .65rem .75rem; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; }
.admin-user-summary span { display: block; color: var(--na-muted); font-size: .78rem; font-weight: 800; line-height: 1.3; }
.admin-user-summary strong { display: block; margin-top: .12rem; color: var(--na-primary); font-size: 1.2rem; line-height: 1.1; }
.admin-user-security-note { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fbfcfd; }
.admin-user-search .form-label, .admin-user-role-form .form-label { font-weight: 700; color: #34495a; }
.admin-user-search-table { min-width: 860px; }
.admin-user-table { min-width: 960px; font-size: .94rem; }
.admin-user-table th, .admin-user-search-table th { color: #52677a; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
.admin-user-identity-cell { min-width: 260px; max-width: 420px; }
.admin-user-identity-cell strong { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.admin-user-identity-cell span { display: block; overflow-wrap: anywhere; }
.admin-user-inline-form { display: grid; grid-template-columns: minmax(14rem, 1fr) auto; gap: .5rem; align-items: center; }
.admin-user-role { display: inline-grid; gap: .05rem; min-width: 9.4rem; padding: .34rem .6rem; border: 1px solid #d9e1e8; border-radius: 8px; background: #f8fafc; color: #355066; font-weight: 800; line-height: 1.15; }
.admin-user-role small { color: #64748b; font-size: .68rem; font-weight: 700; }
.admin-user-role-admin { border-color: #ecc8bf; background: #fff5f2; color: #9b3325; }
.admin-user-role-editor { border-color: #c6d8e1; background: var(--na-soft); color: var(--na-primary); }
.admin-user-role-viewer { border-color: #d6dde6; background: #f8fafc; color: #475569; }
.admin-user-status-active { border-color: #b7d9c4; background: #f0fbf4; color: #1f6f43; }
.admin-user-status-inactive { border-color: #d6dde6; background: #f8fafc; color: #475569; }
.admin-user-identity-ok, .admin-user-identity-missing, .admin-user-warning-pill { display: inline-flex; align-items: center; max-width: 100%; padding: .28rem .55rem; border: 1px solid #d6dde6; border-radius: 999px; background: #f8fafc; color: #475569; font-size: .78rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.admin-user-identity-ok { border-color: #b7d9c4; background: #f0fbf4; color: #1f6f43; }
.admin-user-identity-missing, .admin-user-warning-pill { border-color: #e9d4a8; background: #fff9eb; color: #8a5a00; }
.admin-user-edit-grid { display: grid; grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.admin-user-identity-card { display: grid; gap: .25rem; min-width: 0; padding: .85rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfcfd; }
.admin-user-identity-card span { color: var(--na-muted); font-size: .78rem; font-weight: 800; line-height: 1.3; }
.admin-user-identity-card strong { line-height: 1.45; overflow-wrap: anywhere; }
.admin-user-identity-card small { color: #64748b; overflow-wrap: anywhere; }
.admin-user-role-help { display: grid; gap: .5rem; }
.admin-user-role-help div { min-width: 0; padding: .65rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfcfd; }
.admin-user-role-help strong { display: block; color: #334155; line-height: 1.3; }
.admin-user-role-help span { display: block; margin-top: .15rem; color: var(--na-muted); font-size: .86rem; line-height: 1.4; }
.admin-user-time { display: grid; gap: .15rem; min-width: 11rem; }
.editor-toolbar { flex-wrap: wrap; gap: .25rem; }
.rich-editor { min-height: 260px; overflow: auto; line-height: 1.7; }
.news-body { line-height: 1.85; font-size: 1.08rem; overflow-wrap: anywhere; word-break: break-word; }
.news-body p { margin-bottom: 1.15rem; }
.news-body h2, .news-body h3, .news-body h4 { margin-top: 1.8rem; margin-bottom: .7rem; line-height: 1.38; font-weight: 800; }
.news-body h2 { font-size: 1.45rem; }
.news-body h3 { font-size: 1.25rem; }
.news-body h4 { font-size: 1.12rem; }
.news-body ul, .news-body ol { padding-left: 1.35rem; margin-bottom: 1.15rem; }
.news-body li + li { margin-top: .35rem; }
.news-body a { color: var(--na-primary); font-weight: 650; text-decoration-thickness: .08em; text-underline-offset: .18em; overflow-wrap: anywhere; }
.news-body img { max-width: 100%; height: auto; border-radius: 6px; }
.news-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.news-body iframe, .news-body object, .news-body embed, .news-body video { max-width: 100%; }
.news-cover { width: 100%; max-height: 500px; object-fit: contain; background: #fff; display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.gallery-grid > * { width: auto; max-width: none; padding: 0; }
.gallery-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef2f7; border-radius: 8px; border: 1px solid var(--na-border); display: block; }
.gallery-item figcaption { line-height: 1.45; padding-inline: .15rem; }
.gallery-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-button::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: rgb(15 23 42 / 0%); transition: background .2s ease; }
.gallery-button:hover::after, .gallery-button:focus-visible::after { background: rgb(15 23 42 / 18%); }
.gallery-zoom { position: absolute; right: .6rem; bottom: .6rem; z-index: 1; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 999px; background: rgb(15 23 42 / 72%); color: #fff; opacity: 0; transition: opacity .2s ease; }
.gallery-button:hover .gallery-zoom, .gallery-button:focus-visible .gallery-zoom { opacity: 1; }
.gallery-button:focus-visible { outline: 3px solid rgba(19, 95, 124, .35); outline-offset: 3px; border-radius: 6px; }
.legacy-gallery-modal .modal-body { position: relative; min-height: 40vh; display: grid; place-items: center; background: #0f172a; }
.gallery-lightbox-image { max-width: 100%; max-height: 72vh; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; display: grid; place-items: center; color: #fff; background: rgb(15 23 42 / 65%); }
.gallery-nav:hover, .gallery-nav:focus-visible { background: rgb(19 95 124 / 90%); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.full-pagination { max-width: 100%; padding-top: 1rem; border-top: 1px solid var(--na-border); }
.full-pagination .page-link { border-radius: 6px; min-width: 2.25rem; text-align: center; }
.attachment-list { display: grid; gap: .7rem; }
.attachment-list .list-group-item { border-color: #e2e8f0; border-radius: 8px; }
.attachment-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.attachment-main { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.attachment-main > i { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: 8px; background: #fff3ee; color: var(--na-accent); font-size: 1.25rem; flex: 0 0 auto; }
.attachment-name { color: var(--na-ink); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.attachment-name:hover { color: var(--na-primary); }
.attachment-meta { color: var(--na-muted); font-size: .84rem; }
.admin-news-thumb { width: 72px; height: 48px; object-fit: cover; vertical-align: middle; background: #eef2f7; }
.category-combobox { position: relative; }
.category-select-fallback { display: none; }
.category-combobox-list { position: absolute; z-index: 1050; inset-inline: 0; top: calc(100% + .25rem); max-height: 18rem; overflow-y: auto; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; box-shadow: 0 14px 32px rgb(15 23 42 / 14%); padding: .35rem; }
.category-combobox-option { display: block; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 6px; background: transparent; color: var(--na-ink); text-align: left; line-height: 1.45; overflow-wrap: anywhere; }
.category-combobox-option:hover, .category-combobox-option:focus-visible, .category-combobox-option.active { background: var(--na-soft); color: var(--na-primary); outline: 0; }
.category-combobox-option[aria-selected="true"] { font-weight: 700; color: var(--na-primary); }
.category-combobox-empty { padding: .65rem; color: var(--na-muted); }
.admin-historical-table { min-width: 1040px; font-size: .94rem; }
.admin-historical-table th { color: #52677a; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
.admin-historical-title-cell { min-width: 340px; max-width: 520px; }
.admin-historical-title-block { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .75rem; align-items: center; }
.admin-historical-title-block strong { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.admin-historical-evidence { background: #fbfcfd; }
.admin-historical-meta { display: grid; gap: .55rem; }
.admin-historical-meta div { display: grid; grid-template-columns: minmax(9.5rem, .45fr) minmax(0, 1fr); gap: .75rem; padding-bottom: .55rem; border-bottom: 1px solid #e2e8f0; }
.admin-historical-meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-historical-meta dt { color: #52677a; font-size: .78rem; font-weight: 800; line-height: 1.35; }
.admin-historical-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.admin-historical-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: .85rem; }
.admin-historical-photo { margin: 0; min-width: 0; border: 1px solid var(--na-border); border-radius: 8px; background: #fff; overflow: hidden; }
.admin-historical-photo.is-cover { border-color: #e5be63; box-shadow: 0 0 0 2px #fff7dc inset; }
.admin-historical-photo a { display: block; background: #eef2f7; }
.admin-historical-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-historical-photo figcaption { display: grid; gap: .5rem; padding: .65rem; font-size: .82rem; line-height: 1.35; }
.admin-historical-photo figcaption span { color: var(--na-muted); font-weight: 700; }
.admin-historical-photo figcaption strong { display: inline-flex; align-items: center; gap: .35rem; color: #8a5a00; }
.admin-historical-photo .btn { width: 100%; }
@media (max-width: 1199.98px) {
  .home-content-grid { grid-template-columns: 1fr; }
  .home-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .featured-grid { min-height: 340px; }
}
@media (max-width: 991.98px) {
  .admin-sidebar { width: 220px; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-category-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .admin-event-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .admin-user-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .admin-user-edit-grid { grid-template-columns: 1fr; }
  .admin-news-panel-heading { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .admin-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero .hero-masthead { grid-template-columns: 1fr; gap: 1rem; }
  .home-hero .hero-info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero .hero-info a { justify-content: center; }
  .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .featured-grid .news-card-feature { grid-row: auto; }
  .featured-grid .news-card-compact { grid-template-columns: 180px minmax(0, 1fr); }
  .news-index-heading { grid-template-columns: 1fr; align-items: start; }
  .news-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .historical-gallery-heading { grid-template-columns: 1fr; align-items: start; }
  .historical-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activities-heading { align-items: flex-start; flex-direction: column; }
  .activities-summary { min-width: 0; width: 100%; }
  .activities-grid, .activity-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .admin-sidebar { width: 72px; padding-inline: .6rem !important; }
  .admin-brand { justify-content: center; }
  .admin-brand-text, .admin-nav .nav-link span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .admin-nav .nav-link { justify-content: center; padding-inline: .55rem; }
  .admin-nav .nav-link i { font-size: 1.1rem; }
  .admin-topbar { align-items: flex-start; flex-direction: column; padding-inline: 1rem !important; }
  .admin-userbar { width: 100%; justify-content: space-between; }
  .admin-user-name { max-width: 44vw; }
  .admin-content { padding: 1rem !important; }
  .admin-page-heading { flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr; gap: .65rem; }
  .admin-category-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .admin-event-summary { grid-template-columns: 1fr; gap: .45rem; }
  .admin-user-summary { grid-template-columns: 1fr; gap: .45rem; }
  .admin-category-table { min-width: 860px; }
  .admin-event-table { min-width: 820px; }
  .admin-user-table { min-width: 840px; }
  .admin-user-search-table { min-width: 760px; }
  .admin-historical-table { min-width: 940px; }
  .admin-historical-meta div { grid-template-columns: 1fr; gap: .15rem; }
  .admin-category-savebar { align-items: flex-start; flex-direction: column; }
  .admin-category-savebar .btn { width: 100%; }
  .admin-event-savebar { align-items: flex-start; flex-direction: column; }
  .admin-event-savebar .btn { width: 100%; }
  .admin-event-news-list .list-group-item, .admin-event-danger { align-items: flex-start; flex-direction: column; }
  .admin-user-security-note { align-items: flex-start; flex-direction: column; }
  .admin-user-inline-form { grid-template-columns: 1fr; }
  .admin-user-inline-form .btn { width: 100%; }
  .admin-section-title { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .admin-list .list-group-item { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .admin-news-table { min-width: 860px; }
  .admin-news-title-cell { min-width: 280px; }
  .admin-form-top-actions, .admin-news-savebar, .admin-news-savebar .admin-row-actions { width: 100%; justify-content: flex-start; }
  .admin-news-savebar { position: static; align-items: flex-start; flex-direction: column; box-shadow: none; }
  .admin-system-grid { grid-template-columns: 1fr; }
  .admin-gallery-item { grid-template-columns: 84px minmax(0, 1fr); }
  .admin-gallery-thumb { width: 84px; height: 64px; }
  .admin-historical-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .admin-attachment-item { align-items: flex-start; flex-direction: column; }
  .site-header { position: static; }
  .navbar-brand { max-width: calc(100% - 64px); }
  .navbar-brand strong, .navbar-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; }
  .site-search { min-width: 100%; }
  .hero-masthead { min-height: 0; grid-template-columns: 1fr; padding-block: 2rem; gap: 1.5rem; }
  .home-hero .hero-masthead { padding-block: 1.25rem; gap: .9rem; }
  .hero-title { font-size: 1.85rem; }
  .home-hero .hero-title { font-size: 1.45rem; }
  .hero-subtitle { font-size: 1.02rem; }
  .home-hero .hero-subtitle { font-size: .95rem; }
  .hero-info { min-width: 0; }
  .home-hero .hero-info { grid-template-columns: 1fr; }
  .home-hero .hero-info a { justify-content: flex-start; }
  .public-section { padding-block: 2rem; }
  .container.home-section { max-width: 100%; overflow-x: clip; }
  .home-section { padding-block: 1.25rem 2rem; }
  .section-heading { align-items: flex-start; }
  .featured-grid, .latest-news-grid, .home-sidebar { grid-template-columns: 1fr; }
  .archive-toolbar { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .archive-search .input-group { display: grid; grid-template-columns: 1fr auto; width: 100%; }
  .news-index-grid { grid-template-columns: 1fr; gap: .85rem; }
  .activities-summary { grid-template-columns: 1fr; gap: .45rem; }
  .activities-summary div { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-block: .55rem; }
  .activities-summary dd { margin: 0; }
  .activities-grid, .activity-related-grid { grid-template-columns: 1fr; gap: .85rem; }
  .activity-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 122px; }
  .activity-card-thumb, .activity-card-placeholder { height: 100%; min-height: 0; aspect-ratio: auto; }
  .activity-card-placeholder i { width: 2rem; height: 2rem; font-size: .95rem; }
  .activity-card-body { padding: .8rem; }
  .activity-card-topline { flex-direction: column; gap: .25rem; margin-bottom: .4rem; }
  .activity-card-title { font-size: .98rem; line-height: 1.42; }
  .activity-meta { margin-top: .55rem; font-size: .84rem; }
  .activity-card-summary { display: none; }
  .archive-news-card.has-thumb { display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 122px; }
  .archive-news-card.has-thumb .archive-news-media { height: 100%; min-height: 0; aspect-ratio: auto; }
  .archive-news-card.no-thumb { grid-template-columns: 64px minmax(0, 1fr); min-height: 120px; }
  .historical-album-grid { grid-template-columns: 1fr; gap: .85rem; }
  .archive-news-body { padding: .8rem; }
  .archive-news-meta { flex-direction: column; gap: .2rem; margin-bottom: .35rem; }
  .archive-news-meta time { white-space: normal; }
  .archive-news-title { font-size: .98rem; line-height: 1.42; }
  .archive-news-summary { display: none; }
  .featured-grid .news-card-compact, .news-card-list { grid-template-columns: 118px minmax(0, 1fr); }
  .featured-grid .news-card-compact .news-card-thumb, .featured-grid .news-card-compact .news-card-placeholder, .news-card-list .news-card-thumb, .news-card-list .news-card-placeholder { min-height: 104px; }
  .featured-grid .news-card-feature .news-card-body { min-height: auto; }
  .news-card-announcement { grid-template-columns: 112px minmax(0, 1fr); }
  .news-card-announcement .news-card-summary { display: none; }
  .narrow-content { max-width: 100%; }
  .article-shell { max-width: 100%; overflow-x: clip; }
  .article-breadcrumb { margin-bottom: 1rem; }
  .article-header { padding-bottom: 1.1rem; }
  .article-meta { font-size: .88rem; gap: .45rem .65rem; }
  .article-title { font-size: 1.55rem; line-height: 1.38; }
  .article-summary { font-size: 1rem; line-height: 1.7; }
  .event-info-list { grid-template-columns: 1fr; }
  .activity-description { padding: .9rem; font-size: 1rem; line-height: 1.75; }
  .article-cover { margin-block: 1.25rem 1.5rem; }
  .news-body { font-size: 1.01rem; line-height: 1.8; }
  .news-body h2 { font-size: 1.28rem; }
  .news-body h3 { font-size: 1.15rem; }
  .news-cover { max-height: 360px; }
  .news-card-body { min-height: 10.5rem; }
  .news-card-compact .news-card-body, .news-card-announcement .news-card-body, .news-card-list .news-card-body { min-height: auto; }
  .news-card-list .news-card-date, .featured-grid .news-card-compact .news-card-date { white-space: normal !important; }
  .home-panel { padding: .85rem; }
  .category-chip { max-width: 100%; }
  .article-section { margin-top: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .attachment-item { align-items: flex-start; flex-direction: column; }
  .category-archive-card { flex-direction: column; gap: .35rem; }
  .category-archive-count { white-space: normal; }
  .category-archive-actions { justify-content: flex-start; width: 100%; }
  .evidence-controls .btn { flex: 0 0 auto; }
  .full-pagination { gap: .2rem !important; }
  .full-pagination .page-link { padding-inline: .5rem; min-width: 2rem; }
  .gallery-nav { width: 2.35rem; height: 2.35rem; }
  .gallery-prev { left: .5rem; }
  .gallery-next { right: .5rem; }
  .category-combobox-list { max-height: 45vh; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header { position: static; box-shadow: none; }
  .navbar-collapse, .navbar-toggler, .site-search, .archive-search, .evidence-controls, .evidence-copy-button, .copy-feedback, .category-archive-actions, .full-pagination { display: none !important; }
  .public-section { padding-block: 1rem; }
  .page-heading { border-bottom-color: #999; margin-bottom: 1rem; }
  .site-footer { margin-top: 1rem !important; border-top-color: #999 !important; }
  .news-card, .category-archive-card, .archive-news-card { break-inside: avoid; box-shadow: none !important; transform: none !important; border-color: #bbb !important; }
  .category-news-shell .page-heading { max-width: none; }
  .category-news-shell .evidence-url { display: block !important; color: #000 !important; font-size: .8rem; }
  .news-card-thumb, .news-card-placeholder { display: none; }
  .news-card-body { min-height: 0; }
  .news-card-title { display: block; overflow: visible; }
  .news-card-summary { display: none; }
  a { color: #000; text-decoration: none; }
}
