/* Public portal presentation; content and administration remain independent. */
:root { --portal-accent: var(--accent-gold); }
container { max-width: 1200px; }
.top-bar { padding: 10px 0; }
.top-bar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar .nav-search-form { background: var(--bg-surface); border-radius: var(--radius-pill); padding: 0 12px; }
.top-bar .nav-search-input { width: 165px; }
.top-bar-right { flex-wrap: wrap; }
.main-header { background: var(--header-from); padding: 22px 0; border-bottom: 1px solid var(--border-color); }
.main-header::before, .main-header::after { display: none; }
.header-title-text h1 { color: var(--header-text); text-shadow: none; font-size: clamp(1.1rem, 2vw, 1.65rem); line-height: 1.5; }
.header-title-text p { color: var(--header-text); }
.logo-emblem { border: 1px solid var(--border-color); box-shadow: none; width: 70px; height: 70px; }
.header-slogan { color: var(--header-text); background: transparent; border-left: 3px solid var(--portal-accent); border-radius: 0; font-size: .85rem; }
.main-nav { border-bottom: 0; box-shadow: var(--shadow-md); }
.nav-menu { width: 100%; justify-content: space-between; }
.nav-link { padding: 20px 14px; font-size: .9rem; }
.nav-link:hover, .nav-link.active { background: transparent; border-bottom-color: var(--portal-accent); }
#main-content { padding-top: 0 !important; }
.home-hero .hero-section { padding: 0; }
.home-hero .banner-slider { height: auto; aspect-ratio: 3 / 1; border-radius: 0; box-shadow: none; }
.home-hero .banner-slide { background-size: cover; }
.home-hero .banner-caption { padding: 40px 32px 24px; }
.home-hero .banner-caption h3 { font-size: clamp(1rem, 2.4vw, 1.8rem); }
.banner-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; padding: 24px 0 10px; }
.banner-dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--border-strong); cursor: pointer; }
.banner-dot[aria-pressed="true"] { background: var(--portal-accent); width: 26px; }
.banner-pause { font: inherit; font-size: .8rem; border: 1px solid var(--border-color); border-radius: var(--radius-pill); background: var(--bg-surface); color: var(--text-main); padding: 3px 12px; cursor: pointer; }
.home-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; padding-top: 42px; }
.home-content > section { margin-top: 0; margin-bottom: 42px; }
.section-header { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
.section-header::after { display: none; }
.section-title { color: var(--primary); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.5; flex-wrap: wrap; }
.section-title span.badge-tag { background: var(--accent-gold); color: var(--on-accent); border-radius: var(--radius-sm); padding: 5px 10px; }
.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.news-card { border: 0; box-shadow: none; border-radius: var(--radius-lg); }
.news-body { padding: 22px; }
.news-meta { color: var(--portal-accent); }
.news-title { font-size: 1.05rem; line-height: 1.7; }
.news-footer { border-top-color: var(--border-color); }
.home-news-list { padding: 0 18px; background: var(--bg-surface); border-radius: var(--radius-lg); }
.home-news-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 76px; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border-color); }
.home-news-row:last-child { border-bottom: 0; }
.home-news-cover-date { display: grid; gap: 8px; text-align: center; }
.home-news-cover { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-inset); }
.home-news-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-news-placeholder { display: grid; place-items: center; height: 100%; color: var(--text-muted); font-size: .8rem; }
.home-news-date { color: var(--primary); font-size: .8rem; }
.home-news-heading { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.8; overflow-wrap: anywhere; }
.home-news-heading a { color: var(--text-main); }
.home-news-heading a:hover { color: var(--primary); }
.home-news-views { display: grid; gap: 2px; text-align: center; font-size: .8rem; color: var(--text-muted); overflow-wrap: anywhere; min-width: 0; }
.home-news-views strong { font-size: 1rem; color: var(--primary); }
.home-activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-activity-grid .news-card { border-radius: 0; min-width: 0; }
.home-activity-grid .news-thumb { height: auto; aspect-ratio: 3 / 2; }
.home-activity-grid .news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-activity-grid .news-body { padding: 20px 16px; }
.home-activity-grid .news-title { font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.home-activity-grid .news-meta { margin: auto 0 0; padding-top: 6px; color: var(--text-muted); }
@media (max-width: 640px) {
  .home-news-list { padding: 0 10px; }
  .home-news-row { grid-template-columns: 82px minmax(0, 1fr) 46px; gap: 10px; padding: 16px 0; }
  .home-news-date, .home-news-views { font-size: .7rem; }
  .home-news-heading { font-size: .9rem; }
  .news-grid.home-activity-grid { grid-template-columns: minmax(0, 1fr); }
}
.home-sidebar { gap: 24px; }
.home-sidebar .mayor-card { padding: 0 16px 20px; border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: none; }
.mayor-card::before { display: none; }
.mayor-avatar-wrap { width: calc(100% + 32px); height: auto; aspect-ratio: 4 / 5; margin: 0 0 20px; border: 0; border-radius: 0; box-shadow: none; }
.mayor-avatar-wrap img { object-position: center top; }
.mayor-name { color: var(--primary); }
.mayor-pos { color: var(--portal-accent); }
.home-sidebar .quick-links-section { padding: 0; border: 0; background: transparent; box-shadow: none; }
.home-sidebar .quick-links-section h2 { color: var(--primary); padding-bottom: 12px; border-bottom: 3px solid var(--portal-accent); font-size: 1.35rem; }
.home-sidebar .quick-link-card { border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); border-radius: var(--radius-sm); }
.home-sidebar .quick-link-card:hover, .home-sidebar .quick-link-card:focus-visible { background: var(--primary-dark); color: var(--on-primary); border-color: var(--primary-dark); }
.home-sidebar .quick-link-icon { background: var(--bg-surface); }
.related-site-link { background: var(--bg-surface); border-radius: var(--radius-sm); }
.data-table-wrap { border: 0; border-radius: var(--radius-lg); box-shadow: none; }
.custom-table thead th { background: var(--primary-soft); color: var(--primary); }
.custom-table td { padding: 18px 20px; }
.main-footer { margin-top: 55px; border-top: 5px solid var(--portal-accent); }
.footer-grid { grid-template-columns: 1fr; }
.footer-col { max-width: 800px; }
:focus-visible { outline: 3px solid var(--portal-accent); outline-offset: 4px; }
@media (max-width: 1100px) {
  .top-bar .container { gap: 12px; flex-wrap: wrap; }
  .header-slogan { max-width: 270px; }
}
@media (max-width: 992px) {
  .home-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .nav-menu { align-items: stretch; }
  .header-slogan { display: none; }
}
@media (max-width: 640px) {
  .top-bar-left > span { font-size: .75rem; }
  .top-bar-right { gap: 10px; }
  .header-wrapper { text-align: left; align-items: stretch; }
  .header-logo-area { flex-direction: row; gap: 12px; }
  .logo-emblem { width: 54px; height: 54px; }
  .header-title-text h1 { font-size: 1.05rem; }
  .header-title-text p { font-size: .75rem; }
  .home-hero .banner-slider { aspect-ratio: 1.6 / 1; }
  .home-hero .banner-caption { padding: 20px 16px 14px; }
  .home-hero .banner-caption p { font-size: .8rem; }
  .home-layout { padding-top: 26px; }
  .news-grid, .home-sidebar { grid-template-columns: minmax(0, 1fr); }
  .home-sidebar .mayor-card { width: 100%; max-width: 340px; justify-self: center; }
  .section-title { font-size: 1.4rem; }
  .custom-table td { padding: 14px 12px; }
}

.news-detail-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,1fr); gap:30px; padding-top:24px; }
.news-detail-layout article { min-width:0; }
.news-gallery { margin-top:28px; }
.news-gallery .gallery-grid { gap:8px; }
.news-photo { display:block; cursor:zoom-in; }
.news-photo img { width:100%; height:200px; object-fit:cover; }
.news-lightbox { width:100vw; height:100dvh; max-width:100vw; max-height:100dvh; margin:0; padding:60px 55px 20px; border:0; background:rgba(0,0,0,.78); color:#fff; }
.news-lightbox::backdrop { background:rgba(0,0,0,.3); }
.news-lightbox button { background:#222c; color:#fff; border:0; padding:10px 14px; font-size:24px; cursor:pointer; }
.news-lightbox-toolbar { position:absolute; inset:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding-left:14px; }
.news-photo-count { font-size:14px; }
.news-photo-stage { height:calc(100% - 70px); display:flex; align-items:center; justify-content:center; overflow:auto; }
.news-photo-full { max-width:100%; max-height:100%; object-fit:contain; }
.news-photo-stage.zoomed { display:block; }
.news-photo-stage.zoomed img { max-width:none; max-height:none; }
.news-photo-prev,.news-photo-next { position:absolute; top:48%; }
.news-photo-prev { left:6px; }.news-photo-next { right:6px; }
.news-photo-caption { text-align:center; padding:12px; font-size:14px; }
.news-photo-thumbs:not([hidden]) { position:absolute; bottom:0; left:0; right:0; display:flex; gap:6px; overflow-x:auto; background:#111; padding:8px; }
.news-photo-thumbs button { padding:3px; flex-shrink:0; }
.news-photo-thumbs img { width:65px; height:48px; object-fit:cover; }
.news-photo-thumbs button[aria-pressed=true] { outline:2px solid white; }
@media(max-width:760px) { .news-detail-layout { grid-template-columns:minmax(0,1fr); }.news-detail-layout article { padding:20px!important; }.news-photo img { height:140px; }.news-lightbox { padding:60px 40px 10px; } }

/* About navigation supports keyboard and touch through native details. */
.about-dropdown { position: relative; }
.about-dropdown > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.about-dropdown > summary::-webkit-details-marker { display: none; }
.about-submenu { position: absolute; top: 100%; left: 0; z-index: 1000; width: 300px; max-width: 90vw; padding: 6px 0; margin: 0; list-style: none; background: var(--nav-bg); border: 0; border-radius: 0 0 3px 3px; box-shadow: 0 5px 14px rgba(0, 0, 0, .12); }
.about-submenu a { display: block; padding: 4px 20px; color: #444; font-family: 'Prompt', var(--font-heading); font-size: .9375rem; font-weight: 400; line-height: 1.6; text-align: left; white-space: normal; overflow-wrap: anywhere; text-decoration: none; transition: color .15s ease; }
.about-submenu a:hover, .about-submenu a:focus-visible { background: transparent; color: #888; }
.about-submenu a:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
[data-theme="dark"] .about-submenu a, [data-theme="contrast"] .about-submenu a { color: var(--nav-link); }
[data-theme="dark"] .about-submenu a:hover, [data-theme="contrast"] .about-submenu a:hover { color: var(--primary); }
@media (max-width: 992px) {
  .about-submenu { position: static; width: auto; min-width: 0; max-width: none; box-shadow: none; border: 0; padding: 8px 0 12px 18px; }
  .about-submenu a { padding-top: 10px; padding-bottom: 10px; }
}
