/* MAZTECH visual system: presentation only; no content or behaviour changes. */
:root {
  --navy: #063b4a;
  --teal: #087f98;
  --teal-dark: #04566a;
  --gold: #f5c542;
  --bg: #f3f8fa;
  --text: #17343d;
  --muted: #627981;
  --line: #d5e4e8;
  --surface: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(4, 86, 106, .10);
}

html { background: var(--bg); }
body {
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(135deg, rgba(4, 86, 106, .025) 0 1px, transparent 1px 30px),
    linear-gradient(120deg, rgba(8, 127, 152, .075), transparent 42%, rgba(245, 197, 66, .09));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Public navigation */
body > header, .site-header {
  box-shadow: 0 4px 20px rgba(3, 49, 63, .12);
}
.nav { gap: 18px; }
.nav nav a { transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav nav a:hover { transform: translateY(-1px); }
.logo img { object-fit: contain; }

/* Headings and common content surfaces */
h1, h2, h3 { letter-spacing: -.25px; }
.hero h1:not(:has(span)) { color: var(--gold); }
.hero, .page-hero {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .10);
}
.site-header + .hero .container, body > .hero .container, .page-hero .container {
  text-align: center;
}
.site-header + .hero p, body > .hero p, .page-hero p {
  margin-inline: auto;
}
.section, .main { padding-bottom: 54px; }
.intro, .notice, .alert-info {
  box-shadow: 0 5px 16px rgba(4, 86, 106, .05);
}

/* Cards, panels and content grids */
.card, .panel, .box, .section-box, .listing-card, .stat, .detail {
  border-color: var(--line);
  box-shadow: 0 7px 22px rgba(4, 86, 106, .07);
}
.card, .listing-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover, .listing-card:hover {
  border-color: #9bcbd5;
  box-shadow: 0 14px 32px rgba(4, 86, 106, .13);
}
.panel, .section-box { border-top: 3px solid rgba(245, 197, 66, .72); }
.grid, .stats, .modules { gap: 18px; }

/* Forms and filters */
.filter-box, .toolbar {
  box-shadow: 0 12px 28px rgba(4, 86, 106, .14);
}
.filter-row input, .filter-row select, .toolbar input, .toolbar select,
.field input, .field select, .field textarea, input, select, textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.filter-row input:focus, .filter-row select:focus, .toolbar input:focus, .toolbar select:focus,
.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 152, .14) !important;
}
.field label { letter-spacing: .1px; }

/* Buttons and pills */
.btn, .button {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover, .button:hover { transform: translateY(-2px); }
.tag, .badge, .pill { font-weight: 800; }

/* Dashboard layout */
.sidebar, .side {
  background: linear-gradient(180deg, #032936 0%, var(--navy) 58%, #052f3d 100%);
  box-shadow: 8px 0 24px rgba(3, 35, 46, .10);
}
.brand { margin-bottom: 14px; }
.side a, .sidebar a {
  position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.side a:hover, .sidebar a:hover { transform: translateX(3px); }
.side a.active, .sidebar a.active {
  box-shadow: inset 3px 0 0 var(--gold);
}
.top {
  box-shadow: 0 3px 14px rgba(4, 86, 106, .07);
}
.content, .dash-main, .main {
  background-color: transparent;
  background-image: repeating-linear-gradient(135deg, rgba(4, 86, 106, .02) 0 1px, transparent 1px 32px),
    linear-gradient(120deg, rgba(8, 127, 152, .055), transparent 45%, rgba(245, 197, 66, .07));
}
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: '';
  position: absolute;
  right: -16px;
  bottom: -22px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(8, 127, 152, .055);
}
.stat b, .stat .num { position: relative; z-index: 1; }

/* Tables and empty states */
.table-wrap, table { box-shadow: 0 8px 24px rgba(4, 86, 106, .06); }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: #f4fbfc; }
.empty, .empty-state {
  background: linear-gradient(135deg, #fff, #f6fbfc);
  border-color: #b9d8df;
}

/* Uploaded profile/logo previews and administrator verification review. */
.profile-assets-preview {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f7fcfd, #eef8fa);
}
.profile-assets-preview h2 { margin: 0 0 5px; }
.profile-image-frame {
  display: grid;
  place-items: center;
  width: min(220px, 100%);
  height: 130px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px dashed #9dcbd5;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.profile-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.profile-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.profile-upload-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 8px auto;
  padding: 10px 16px;
  border: 1px solid #075f70;
  border-radius: 8px;
  background: #087f98;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
}
.profile-upload-trigger:hover { background: #04566a; }
.profile-upload-input:focus-visible + .profile-upload-trigger { outline: 3px solid #f5c542; outline-offset: 3px; }
.field .saved-file[hidden] { display: none !important; }
.photo-save-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.submitted-assets { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.submitted-assets h3 { margin: 0 0 12px; color: var(--navy); }
.submitted-assets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.submitted-assets-grid article { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #f8fcfd; }
.submitted-assets-grid b { display: block; margin-bottom: 8px; color: var(--navy); font-size: 11px; text-transform: capitalize; }
.submitted-assets-grid img { width: 100%; height: 130px; object-fit: contain; border-radius: 7px; background: #fff; }
.submitted-assets-grid a { color: var(--teal-dark); font-weight: 800; font-size: 12px; }

/* Keep uploaded artwork fully visible inside its allocated frame. */
.logo img, .brand img, .community-logo, .profile-image-frame img,
.submitted-assets-grid img, .preview img, [id$="_prev"] img {
  object-fit: contain !important;
  object-position: center;
  background: #fff;
}
[id$="_prev"] img { display: block; width: 100%; max-height: 180px; margin-inline: auto; }

/* Footer and smaller screens */
footer, .site-footer { box-shadow: inset 0 3px 0 rgba(245, 197, 66, .72); }
@media (max-width: 950px) {
  .section, .section-block { padding-block: 34px; }
  .card, .box, .panel, .section-box { padding: 14px; }
  .hero { padding: 46px 14px 50px; }
  .hero h1, .hero h2 { font-size: 28px; line-height: 1.12; }
  .hero p { margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 21px; }
  body:has(.community-detail) .community-profile-card { padding: 15px; }
  body:has(.community-detail) .community-profile-summary h1 { font-size: 22px; }
  body:has(.community-detail) .community-contact { padding: 14px; }
  body:has(.community-detail) .community-activity-section { padding: 18px 0 16px; }
  body:has(.community-detail) .community-section-heading h2 { font-size: 20px; }
  body:has(.community-detail) .community-section-heading p { font-size: 13px; }
  body:has(.community-detail) .community-activity-grid .card { padding: 14px; }
  .sidebar, .side { box-shadow: none; }
  .side a:hover, .sidebar a:hover { transform: none; }
  .content, .dash-main, .main { padding: 24px 18px; }
}
  .card.event-display { padding: 14px; }
  .event-display .event-poster-title { font-size: 19px; }
  .event-display p.event-purpose { font-size: 12px; }
  .event-display p.event-description { font-size: 13px; line-height: 1.45; }
  .event-display .event-schedule { gap: 4px; padding: 10px 12px; }
  .event-display .event-date { font-size: 14px; }
  .event-display .event-time { font-size: 13px; }
  .event-display .event-facts span { padding: 8px 10px; font-size: 11px; }
@media (max-width: 650px) {
  .section, .main { padding-bottom: 36px; }
  .card, .panel, .section-box { padding: 18px; }
  .btn, .button { min-height: 40px; }
}

/* Public browse pages: patterned canvas, compact community cards and a clear filter grid. */
body:has(#communityGrid), body:has(#listingGrid) {
  background-color: #edf5f5;
  background-image: linear-gradient(125deg, rgba(8, 127, 152, .045), transparent 42%, rgba(245, 197, 66, .07));
}
body:has(#communityGrid) #communityGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body:has(#communityGrid) .community-card {
  display: flex;
  min-width: 0;
  min-height: 218px;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  overflow: hidden;
  border-top: 3px solid var(--teal);
  background: linear-gradient(145deg, #fff, #f4faf9);
}
body:has(#communityGrid) .community-card:nth-child(even) { border-top-color: var(--gold); }
body:has(#communityGrid) .community-card > img {
  width: 54px;
  height: 54px;
  margin-bottom: 11px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
}
body:has(#communityGrid) .community-card h2 {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body:has(#communityGrid) .community-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body:has(#communityGrid) .community-card .pill { margin-top: auto; }
body:has(#communityGrid) .toolbar {
  border-top: 3px solid var(--gold);
  background: linear-gradient(110deg, #fff, #f1f8f8);
}
body:has(#communityGrid) .tabs .tab.active,
body:has(#communityGrid) .tabs .tab:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
body:has(#listingGrid) .filter-box {
  background: linear-gradient(125deg, #042c38, #087f98 72%, #0b6a70) !important;
}
body:has(#listingGrid) .filter-box > h2 { color: #fff !important; }
body:has(#listingGrid) .filter-box > p { color: rgba(255, 255, 255, .9) !important; }
body:has(#listingGrid) .filter-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
}
body:has(#listingGrid) .filter-row #search { grid-column: span 2; }
body:has(#listingGrid) .filter-row #clearFilters { grid-column: 3; grid-row: 2; }
body:has(#listingGrid) .filter-row button:not(#clearFilters) { grid-column: 4; grid-row: 2; }
body:has(#listingGrid) .filter-row input,
body:has(#listingGrid) .filter-row select {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #c5dfe2;
  background-color: #fff;
  color: #17343d;
}
body:has(#listingGrid) .filter-row input::placeholder { color: #627981; }
body:has(#listingGrid) .filter-row select option { background: #fff; color: #17343d; }
body:has(#listingGrid) .filter-row button {
  min-height: 44px;
  padding-inline: 12px;
  background: linear-gradient(135deg, #ffe066, #f5c542);
  color: #2a1800;
}
body:has(#listingGrid) .filter-row button.btn-outline {
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}
body:has(#listingGrid) #listingGrid .listing-card {
  border-top: 4px solid var(--teal);
  background: linear-gradient(145deg, #fff, #f3f9f8) !important;
}
body:has(#listingGrid) #listingGrid .listing-card:nth-child(odd) { border-top-color: var(--gold); }
body:has(#listingGrid) #listingGrid .listing-card:hover { border-top-color: var(--gold); }
body:has(#listingGrid) .marketplace-price-options {
  list-style: none;
  margin: 10px 0;
  padding: 8px 0;
  border-top: 1px solid #c7dfe1;
  border-bottom: 1px solid #c7dfe1;
}
body:has(#listingGrid) .marketplace-price-options li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  color: #355963;
  font-size: 12px;
}
body:has(#listingGrid) .marketplace-price-options li span { overflow-wrap: anywhere; }
body:has(#listingGrid) .marketplace-price-options li strong {
  flex: 0 0 auto;
  color: #075f68;
}
body:has(.hero-brand) .feature-card {
  min-height: 0;
  border-top: 4px solid var(--teal);
  background: linear-gradient(145deg, #fff, #f3f9f8);
  box-shadow: 0 4px 13px rgba(4, 86, 106, .09);
  transform: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
body:has(.hero-brand) .feature-card:nth-child(even) { border-top-color: var(--gold); }
body:has(.hero-brand) .fc-body {
  display: block;
  height: auto;
  padding: 18px 20px;
}
body:has(.hero-brand) .fc-body p { max-width: 52ch; }
body:has(.hero-brand) .fc-body .btn { margin-top: 0; }
body:has(.hero-brand) .feature-card:hover {
  border-color: #9ecdd8;
  box-shadow: 0 6px 18px rgba(4, 86, 106, .13);
  transform: none;
}
body:has(.hero-brand) .home-activities,
body:has(.hero-brand) .home-join { margin-top: 30px; }
body:has(.hero-brand) .home-section-intro { max-width: 700px; margin: 4px 0 16px; }
body:has(.hero-brand) .section-head { margin-bottom: 16px; }
@media (max-width: 1000px) {
  body:has(#communityGrid) #communityGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body:has(#communityGrid) #communityGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(#listingGrid) .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body:has(#listingGrid) .filter-row #clearFilters,
  body:has(#listingGrid) .filter-row button:not(#clearFilters) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) {
  body:has(#communityGrid) #communityGrid,
  body:has(#listingGrid) .filter-row { grid-template-columns: 1fr !important; }
  body:has(#listingGrid) .filter-row #search { grid-column: auto; }
  body:has(.hero-brand) .feature-card { min-height: 0; }
}
@media (max-width: 650px) {
  body:has(#communityGrid) footer .footer-grid,
  body:has(#listingGrid) footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(#communityGrid) footer .footer-grid > :first-child,
  body:has(#listingGrid) footer .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Keep public discovery pages visually consistent with the home page. */
body:has(#communityGrid), body:has(#listingGrid) {
  background-color: #e8f1ed;
  background-image: repeating-linear-gradient(135deg, rgba(4, 86, 106, .035) 0 1px, transparent 1px 28px),
    linear-gradient(118deg, rgba(8, 127, 152, .12), transparent 35%, rgba(245, 197, 66, .17) 100%),
    linear-gradient(180deg, #e5f0ed, #f8f8f0 54%, #e4eef2);
}
body:has(#communityGrid) .site-header,
body:has(#listingGrid) .site-header {
  background: linear-gradient(115deg, #042333, #063b4a 58%, #0a5570);
  border-bottom-color: var(--gold);
}
body:has(#communityGrid) .nav nav a,
body:has(#listingGrid) .nav nav a { color: rgba(255, 255, 255, .86); }
body:has(#communityGrid) .nav nav a:hover,
body:has(#listingGrid) .nav nav a:hover { background: rgba(255, 255, 255, .13); color: #fff; }
body:has(#communityGrid) .site-header .btn-outline,
body:has(#listingGrid) .site-header .btn-outline {
  border-color: rgba(255, 255, 255, .52) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
}
body:has(#communityGrid) .hero,
body:has(#listingGrid) .hero {
  background: radial-gradient(ellipse at 88% 12%, rgba(245, 197, 66, .22), transparent 32%),
    linear-gradient(120deg, #021a26, #063b4a 56%, #0a6070);
}
body:has(#communityGrid) .hero h1,
body:has(#listingGrid) .hero h1 { color: var(--gold); }
body:has(#listingGrid) .filter-box {
  border: 1px solid #c5dfe2 !important;
  border-top: 5px solid var(--teal) !important;
  background: linear-gradient(120deg, #fff, #f0f8f7 72%, #fff9e7) !important;
  box-shadow: 0 14px 34px rgba(4, 86, 106, .14) !important;
}
body:has(#listingGrid) .filter-box > h2 { color: var(--navy) !important; }
body:has(#listingGrid) .filter-box > p { color: #49646c !important; }
body:has(#listingGrid) .filter-box > p:last-of-type,
body:has(#listingGrid) .market-simple-note { display: none !important; }
body:has(#listingGrid) .filter-row input,
body:has(#listingGrid) .filter-row select {
  border: 1px solid #a9cbd1;
  background: #fff;
  color: #17343d;
  box-shadow: inset 0 1px 2px rgba(4, 86, 106, .04);
}
body:has(#listingGrid) .filter-row input:focus,
body:has(#listingGrid) .filter-row select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 152, .14);
}
body:has(#listingGrid) .filter-row button:not(.btn-outline) {
  background: linear-gradient(135deg, #087f98, #04566a);
  color: #fff;
  box-shadow: 0 5px 14px rgba(4, 86, 106, .22);
}
body:has(#listingGrid) .filter-row button.btn-outline {
  border: 1px solid #9cbec5 !important;
  background: #fff !important;
  color: #174653 !important;
}
body:has(#listingGrid) .results-head h2 { color: var(--navy); }
body:has(#listingGrid) .results-head span {
  padding: 6px 10px;
  border: 1px solid #b7d9dd;
  border-radius: 999px;
  background: #e6f5f3;
  color: #075f68;
  font-size: 12px;
  font-weight: 800;
}
body:has(#communityGrid) .toolbar {
  border: 1px solid #b7d9dd;
  border-left: 4px solid var(--teal);
  background: linear-gradient(110deg, #fff, #edf7f6 72%, #fff9e7);
}
body:has(#listingGrid) .filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: -10px 0 24px;
  padding: 0 4px;
}
body:has(#listingGrid) .filter-actions::before {
  content: '';
  flex: 1;
  height: 3px;
  margin-right: 10px;
  background: linear-gradient(90deg, rgba(8, 127, 152, .16), rgba(245, 197, 66, .7));
}
body:has(#listingGrid) .filter-actions button {
  min-width: 132px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 850;
}
body:has(#listingGrid) .filter-actions button:not(#clearFilters) {
  border: 0;
  background: linear-gradient(135deg, #087f98, #04566a);
  color: #fff;
  box-shadow: 0 5px 14px rgba(4, 86, 106, .22);
}
body:has(#listingGrid) .filter-actions #clearFilters {
  border: 1px solid #9cbec5;
  background: #fff;
  color: #174653;
}
body:has(#communityGrid) .community-card:hover {
  border-color: #8dc5ce;
  box-shadow: 0 15px 30px rgba(4, 86, 106, .16);
}
body:has(.hero-brand) .feature-card {
  box-shadow: 0 9px 25px rgba(4, 86, 106, .12);
}
.collection-search {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 20px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(4, 86, 106, .06);
}
.collection-search label { color: var(--navy); font-size: 12px; font-weight: 850; white-space: nowrap; }
.collection-search > div { display: flex; align-items: center; flex: 1; gap: 10px; }
.collection-search input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #bfd4da; border-radius: 9px; }
.collection-search span { min-width: 68px; color: var(--muted); font-size: 12px; font-weight: 750; text-align: right; }
@media (max-width: 650px) {
  .collection-search, .collection-search > div { align-items: stretch; flex-direction: column; }
  .collection-search span { text-align: left; }
}

/* Shared public navigation and footer styling matches the home page. */
body > header.site-header,
body > header:has(.nav .logo),
body > header:has(.nav .brand) {
  background: linear-gradient(135deg, #042333 0%, #063b4a 50%, #0a5570 100%) !important;
  border-bottom: 3px solid #f5c542 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .24) !important;
}
body > header.site-header .nav,
body > header:has(.nav .logo) .nav,
body > header:has(.nav .brand) .nav { min-height: 72px; }
body > header.site-header .nav nav a,
body > header:has(.nav .logo) .nav nav a,
body > header:has(.nav .brand) .nav nav a {
  color: rgba(255, 255, 255, .84) !important;
}
body > header.site-header .nav nav a:hover,
body > header:has(.nav .logo) .nav nav a:hover,
body > header:has(.nav .brand) .nav nav a:hover {
  background: rgba(255, 255, 255, .13) !important;
  color: #fff !important;
}
body > header.site-header .nav .logo img,
body > header:has(.nav .logo) .nav .logo img,
body > header:has(.nav .brand) .nav .brand img {
  width: auto !important;
  height: 48px !important;
  max-width: 170px !important;
  object-fit: contain;
}
body > header.site-header .nav .btn-outline,
body > header:has(.nav .logo) .nav .btn-outline,
body > header:has(.nav .brand) .nav .btn-outline {
  border: 1px solid rgba(255, 255, 255, .52) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body > header.site-header .nav .btn:not(.btn-outline),
body > header:has(.nav .logo) .nav .btn:not(.btn-outline),
body > header:has(.nav .brand) .nav .btn:not(.btn-outline) {
  background: linear-gradient(135deg, #ffe066, #f5c542) !important;
  color: #2a1800 !important;
}
body > footer {
  background: linear-gradient(150deg, #021a26 0%, #063b4a 60%, #052d3a 100%) !important;
  border-top: 3px solid #f5c542 !important;
  color: #c9dde2 !important;
}
body > footer h2, body > footer h3, body > footer h4 { color: #fff !important; }
body > footer a, body > footer p { color: #a9c8d0 !important; }
body > footer a:hover { color: #f5c542 !important; }
body > footer .footer-grid { gap: 24px; }
@media (max-width: 650px) {
  body > header.site-header .nav .logo img,
  body > header:has(.nav .logo) .nav .logo img,
  body > header:has(.nav .brand) .nav .brand img { height: 40px !important; }
  body > footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the listing page within the viewport; only its information pane scrolls. */
body:has(.listing-layout) {
  display: flex;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
body:has(.listing-layout) > header { flex: 0 0 auto; position: relative; }
body:has(.listing-layout) .listing-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 14px 0;
  overflow: hidden;
}
body:has(.listing-layout) .listing-layout {
  flex: 1 1 0;
  width: min(1200px, calc(100% - 32px));
  height: auto;
  min-height: 0;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 18px;
  align-items: stretch;
}
body:has(.listing-layout) .listing-photo {
  height: 100%;
  min-height: 0;
}
body:has(.listing-layout) .listing-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: transparent;
}
body:has(.listing-layout) .listing-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 10px;
  overflow: hidden;
}
body:has(.listing-layout) .listing-view-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding: 2px 0 5px;
  border-bottom: 1px solid #c5dce0;
}
body:has(.listing-layout) .listing-view-tab {
  min-width: 0;
  min-height: 38px;
  flex: 1 1 0;
  padding: 6px 10px;
  border: 1px solid #bfd6da;
  border-radius: 8px;
  background: #fff;
  color: #355963;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
body:has(.listing-layout) .listing-view-tab.active {
  border-color: var(--teal-dark);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
}
body:has(.listing-layout) .listing-view-tab:focus-visible {
  outline: 3px solid rgba(245, 197, 66, .8);
  outline-offset: 2px;
}
body:has(.listing-layout) .listing-tab-panels { flex: 1 1 auto; min-height: 0; overflow: hidden; }
body:has(.listing-layout) .listing-tab-panel { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
body:has(.listing-layout) .listing-panel-overview {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body:has(.listing-layout) .listing-panel-overview > .tag { align-self: flex-start; }
body:has(.listing-layout) .listing-panel-overview h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}
body:has(.listing-layout) .listing-panel-overview .listing-price { margin: 0; font-size: 22px; }
body:has(.listing-layout) .listing-panel-overview .listing-summary { gap: 5px; margin: 2px 0; }
body:has(.listing-layout) .listing-panel-overview .summary-pill { padding: 4px 7px; font-size: 11px; }
body:has(.listing-layout) .listing-panel-overview > h3 { margin: 5px 0 0; font-size: 14px; }
body:has(.listing-layout) .listing-panel-overview .description { margin: 0; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
body:has(.listing-layout) .listing-panel-overview .listing-options { margin: 5px 0 0; }
body:has(.listing-layout) .listing-panel-overview .listing-options h3 { margin: 0 0 4px; font-size: 13px; }
body:has(.listing-layout) .listing-panel-overview .option-grid { gap: 5px; }
body:has(.listing-layout) .listing-panel-overview .option-card { padding: 6px 8px; font-size: 12px; }
body:has(.listing-layout) .listing-panel-overview .listing-actions { margin-top: auto; }
body:has(.listing-layout) .listing-panel-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}
body:has(.listing-layout) .listing-panel-details .listing-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
body:has(.listing-layout) .listing-panel-details .listing-fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 7px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
body:has(.listing-layout) .listing-panel-details > section:not(.listing-facts) {
  min-width: 0;
  padding: 8px;
  border: 1px solid #d3e4e5;
  border-radius: 8px;
  background: #f4f9f7;
  overflow-wrap: anywhere;
}
body:has(.listing-layout) .listing-panel-details > section h3 { margin: 0 0 3px; font-size: 12px; }
body:has(.listing-layout) .listing-panel-details > section p { margin: 0; font-size: 11px; line-height: 1.3; }
body:has(.listing-layout) .listing-panel-contact .publisher-card { margin: 0; }
body:has(.listing-layout) .listing-panel-contact .publisher-card p { margin: 5px 0; font-size: 12px; }
body:has(.listing-layout) > footer { display: none; }
@media (max-width: 850px) {
  body:has(.listing-layout) .listing-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(90px, 17dvh, 140px) minmax(0, 1fr);
    gap: 10px;
  }
  body:has(.listing-layout) .listing-photo,
  body:has(.listing-layout) .listing-photo img { height: 100%; min-height: 0; }
  body:has(.listing-layout) .listing-info { gap: 5px; padding: 10px 12px; }
  body:has(.listing-layout) .listing-panel-details { grid-template-columns: 1fr; gap: 5px; }
  body:has(.listing-layout) .listing-panel-details .listing-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:has(.listing-layout) .listing-panel-details .listing-fact { padding: 5px; }
}
@media (max-width: 650px) {
  body:has(.listing-layout) .nav { gap: 8px; }
  body:has(.listing-layout) .nav .logo img { width: 108px !important; }
  body:has(.listing-layout) .nav-actions { gap: 4px; }
  body:has(.listing-layout) .nav-actions .btn { min-height: 36px; padding: 7px 9px; font-size: 12px; }
}
body:has(.listing-layout) .listing-info {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  padding: 10px;
  overflow: hidden;
}
body:has(.listing-layout) .listing-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: 2px 8px;
}
body:has(.listing-layout) .listing-overview > .tag { grid-column: 1; justify-self: start; padding: 3px 7px; font-size: 11px; }
body:has(.listing-layout) .listing-overview h1 { grid-column: 1 / -1; margin: 0; font-size: 25px; line-height: 1.05; }
body:has(.listing-layout) .listing-overview .listing-price { grid-column: 2; grid-row: 1; margin: 0; font-size: 20px; white-space: nowrap; }
body:has(.listing-layout) .listing-overview .listing-summary { grid-column: 1 / -1; gap: 4px; margin: 1px 0 0; }
body:has(.listing-layout) .listing-overview .summary-pill { padding: 3px 6px; font-size: 11px; }
body:has(.listing-layout) .listing-content-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 6px;
}
body:has(.listing-layout) .listing-compact-panel,
body:has(.listing-layout) .listing-facts,
body:has(.listing-layout) .listing-contact-card,
body:has(.listing-layout) .listing-extra-panel {
  min-width: 0;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #d3e4e5;
  border-radius: 8px;
  background: #f4f9f7;
  overflow-wrap: anywhere;
}
body:has(.listing-layout) .listing-compact-panel h3,
body:has(.listing-layout) .listing-extra-panel h3,
body:has(.listing-layout) .listing-contact-card h3 { margin: 0 0 3px; font-size: 14px; }
body:has(.listing-layout) .listing-description-panel { grid-column: 1 / -1; }
body:has(.listing-layout) .listing-description-panel { grid-column: 1; }
body:has(.listing-layout) .listing-description-panel h3,
body:has(.listing-layout) .listing-extra-panel h3 { font-size: 14px; }
body:has(.listing-layout) .listing-description-panel .description { margin: 0; font-size: 13px; line-height: 1.25; }
body:has(.listing-layout) .listing-options { margin: 0; }
body:has(.listing-layout) .listing-options h3 { font-size: 14px; }
body:has(.listing-layout) .listing-options .option-grid { gap: 4px; }
body:has(.listing-layout) .listing-options .option-card { padding: 4px 5px; font-size: 12px; }
body:has(.listing-layout) .listing-content-grid .listing-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}
body:has(.listing-layout) .listing-content-grid .listing-contact-card { grid-column: 1 / -1; }
body:has(.listing-layout) .listing-fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
body:has(.listing-layout) .listing-facts b { font-size: 12px; }
body:has(.listing-layout) .listing-contact-card { grid-column: 1 / -1; }
body:has(.listing-layout) .listing-contact-card p { margin: 0; font-size: 12px; line-height: 1.25; }
body:has(.listing-layout) .listing-extras-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 5px;
}
body:has(.listing-layout) .listing-extra-wide { grid-column: 1 / -1; }
body:has(.listing-layout) .listing-extra-panel p { margin: 0; font-size: 12px; line-height: 1.25; }
@media (max-width: 850px) {
  body:has(.listing-layout) .listing-layout {
    grid-template-rows: clamp(76px, 13dvh, 108px) minmax(0, 1fr);
  }
  body:has(.listing-layout) .listing-photo { height: clamp(76px, 13dvh, 108px); min-height: 0; }
}
@media (max-width: 420px) {
  body:has(.listing-layout) .listing-info { gap: 4px; padding: 7px; }
  body:has(.listing-layout) .listing-overview h1 { font-size: 21px; }
  body:has(.listing-layout) .listing-overview .listing-price { font-size: 18px; }
  body:has(.listing-layout) .listing-description-panel .description,
  body:has(.listing-layout) .listing-extra-panel p,
  body:has(.listing-layout) .listing-contact-card p { font-size: 11px; }
  body:has(.listing-layout) .listing-content-grid { gap: 4px; }
  body:has(.listing-layout) .listing-compact-panel,
  body:has(.listing-layout) .listing-facts,
  body:has(.listing-layout) .listing-contact-card,
  body:has(.listing-layout) .listing-extra-panel { padding: 5px 6px; }
}
body:has(.listing-layout) .listing-photo img { width: 94%; height: 94%; border-radius: 10px; }
body:has(.listing-layout) .listing-content-grid { overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
body:has(.listing-layout) .listing-back { grid-column: 1 / -1; grid-row: 1; justify-self: start; min-height: 34px; padding: 6px 10px; font-size: 13px; }
body:has(.listing-layout) .listing-back {
  border: 1px solid #d99f00 !important;
  background: linear-gradient(135deg, #ffe066, var(--gold)) !important;
  box-shadow: 0 5px 14px rgba(4, 86, 106, .18) !important;
  color: #1a1000 !important;
  font-weight: 900;
}
body:has(.listing-layout) .listing-back:hover { filter: brightness(1.05); transform: translateY(-1px); }
body:has(.listing-layout) .listing-footer-actions { display: flex; flex: 0 0 auto; justify-content: center; padding: 0 0 4px; }
body:has(.listing-layout) .listing-back { justify-self: center; }
body:has(.listing-layout) .listing-overview > .tag { grid-row: 2; padding: 4px 8px; font-size: 12px; }
body:has(.listing-layout) .listing-overview h1 { grid-row: 3; font-size: 26px; line-height: 1.12; overflow-wrap: anywhere; }
body:has(.listing-layout) .listing-overview .listing-price { grid-row: 2; font-size: 21px; }
body:has(.listing-layout) .listing-overview .listing-summary { grid-row: 4; gap: 6px; }
body:has(.listing-layout) .listing-overview .summary-pill { padding: 4px 8px; font-size: 12px; }
body:has(.listing-layout) .listing-description-panel { grid-column: 1 / -1; }
body:has(.listing-layout) .listing-description-panel h3,
body:has(.listing-layout) .listing-extra-panel h3,
body:has(.listing-layout) .listing-contact-card h3,
body:has(.listing-layout) .listing-options h3 { font-size: 15px; }
body:has(.listing-layout) .listing-description-panel .description,
body:has(.listing-layout) .listing-extra-panel p,
body:has(.listing-layout) .listing-contact-card p { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
body:has(.listing-layout) .listing-fact,
body:has(.listing-layout) .listing-facts b { font-size: 13px; }
body:has(.listing-layout) .listing-options .option-card { font-size: 13px; }

/* Community profiles use a branded identity header and editorial content bands. */
body:has(.community-detail) .community-detail {
  width: min(1160px, calc(100% - 32px));
  padding: 34px 0 24px;
}
body:has(.community-detail) .community-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid #bcd9dc;
  border-top: 5px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(120deg, #063b4a, #087f98 68%, #0c6870);
  box-shadow: 0 16px 36px rgba(4, 86, 106, .2);
  color: #fff;
}
body:has(.community-detail) .community-profile-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
}
body:has(.community-detail) .community-profile-logo {
  display: block;
  flex: 0 0 116px;
  width: 116px;
  height: 116px;
  max-width: none;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}
body:has(.community-detail) .community-profile-summary { min-width: 0; }
body:has(.community-detail) .community-profile-type {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 217, 92, .62);
  border-radius: 999px;
  background: rgba(255, 217, 92, .14);
  color: #ffe58a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
body:has(.community-detail) .community-profile-summary h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
body:has(.community-detail) .community-profile-short-name {
  margin: 7px 0 0;
  color: #ffe58a;
  font-size: 15px;
  font-weight: 800;
}
body:has(.community-detail) .community-profile-description {
  max-width: 62ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
}
body:has(.community-detail) .community-contact {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, .23);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(2, 32, 42, .24);
}
body:has(.community-detail) .community-contact h2 {
  margin: 2px 0 10px;
  color: #fff;
  font-size: 17px;
}
body:has(.community-detail) .community-contact p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  overflow-wrap: anywhere;
}
body:has(.community-detail) .community-contact b { color: #ffe58a; }
body:has(.community-detail) .community-section-kicker {
  display: block;
  color: #087f98;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
body:has(.community-detail) .community-activity-section {
  padding: 30px 0 28px;
  border-bottom: 1px solid rgba(6, 59, 74, .15);
}
body:has(.community-detail) .community-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 18px;
  margin-bottom: 16px;
}
body:has(.community-detail) .community-section-heading .community-section-kicker { grid-column: 1 / -1; }
body:has(.community-detail) .community-section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}
body:has(.community-detail) .community-section-heading h2::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  content: '';
}
body:has(.community-detail) .community-section-heading p {
  margin: 0;
  color: #506a72;
  font-size: 13px;
}
body:has(.community-detail) .community-activity-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
body:has(.community-detail) .community-activity-grid .card {
  border-top: 3px solid var(--teal);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f2f8f5);
}
body:has(.community-detail) .related-description { white-space: pre-line; }
body:has(.community-detail) .community-activity-section:nth-of-type(odd) .community-activity-grid .card {
  border-top-color: var(--gold);
}
body:has(.community-detail) .community-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 17px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, .72);
  color: #506a72;
  font-size: 13px;
}
body:has(.community-detail) .community-back-wrap {
  display: flex;
  justify-content: flex-start;
  padding: 0 0 14px;
}
body:has(.community-detail) .community-back {
  min-height: 44px;
}
@media (max-width: 760px) {
  body:has(.community-detail) .community-detail {
    width: min(1160px, calc(100% - 24px));
    padding: 16px 0 24px;
  }
  body:has(.community-detail) .community-back-wrap { padding-bottom: 12px; }
  body:has(.community-detail) .community-profile-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 15px;
  }
  body:has(.community-detail) .community-profile-identity { align-items: flex-start; gap: 14px; }
  body:has(.community-detail) .community-profile-logo { flex-basis: 72px; width: 72px; height: 72px; }
  body:has(.community-detail) .community-profile-summary h1 { font-size: 21px; }
  body:has(.community-detail) .community-section-heading { grid-template-columns: 1fr; }
  body:has(.community-detail) .community-section-heading h2 { font-size: 20px; }
  body:has(.community-detail) .community-section-heading p { margin-top: 3px; font-size: 13px; line-height: 1.45; }
  body:has(.community-detail) .community-activity-section { padding: 20px 0 18px; }
  body:has(.community-detail) .community-activity-grid .card { padding: 13px; }
  body:has(.community-detail) .community-empty { padding: 14px; font-size: 13px; line-height: 1.45; }
}
@media (max-width: 420px) {
  body:has(.community-detail) .community-profile-identity { flex-direction: column; }
}
@media (max-width: 650px) {
  body:has(.community-detail) .nav { gap: 8px; }
  body:has(.community-detail) .nav .logo img { width: 112px !important; }
  body:has(.community-detail) .nav-actions { gap: 4px; }
  body:has(.community-detail) .nav-actions .btn {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }
}

/* Listing details: keep the product prominent and the supporting information compact. */
body:has(.listing-layout) .listing-photo {
  border-color: #bdd9dc;
  border-radius: 14px;
  background: linear-gradient(145deg, #d9eff0, #f7f5e8 58%, #dcebed);
}
body:has(.listing-layout) .listing-photo img { background: transparent; }
body:has(.listing-layout) .listing-info {
  border-color: #c9dfe1;
  border-top-color: var(--gold);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(4, 86, 106, .12);
}
body:has(.listing-layout) .listing-facts { border-color: #c5dce0; }
body:has(.listing-layout) .listing-fact:nth-child(odd) { background: #f1f8f6; }
body:has(.listing-layout) .publisher-card {
  border-color: #bedbdc;
  background: linear-gradient(120deg, #edf8f6, #fff9e8);
}
@media (max-width: 850px) {
  body:has(.listing-layout) .listing-page { padding: 8px 0; }
  body:has(.listing-layout) .listing-layout { gap: 8px; }
  body:has(.listing-layout) .listing-photo,
  body:has(.listing-layout) .listing-photo img {
    min-height: 0;
    height: clamp(76px, 13dvh, 108px);
  }
  body:has(.listing-layout) .listing-info { padding: 7px; }
  body:has(.listing-layout) .listing-overview h1 { font-size: 19px; }
  body:has(.listing-layout) .listing-overview .listing-price { font-size: 17px; }
  body:has(.listing-layout) .listing-content-grid { gap: 4px; }
  body:has(.listing-layout) .listing-content-grid .listing-fact { padding: 5px; }
}
@media (max-width: 560px) {
  body:has(#listingGrid) .filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -4px; }
  body:has(#listingGrid) .filter-actions::before { display: none; }
  body:has(#listingGrid) .filter-actions button { width: 100%; min-width: 0; padding-inline: 6px; font-size: 12px; }
}

.card.event-display { display: flex; min-width: 0; flex-direction: column; gap: 0; padding: 20px; border-top: 4px solid var(--gold); border-radius: 10px; }
.event-display .event-poster-image { display: block; width: 100%; height: 230px; margin: 0 0 16px; border-radius: 8px; background: #f1f7f6; object-fit: contain; object-position: center; }
.event-display .event-poster-title { margin: 2px 0 8px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.card.event-display h3.event-subtitle { margin: 0 0 8px; color: #087f98; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 750; }
.card.event-display p.event-purpose { margin: 0 0 10px; padding-left: 11px; border-left: 3px solid var(--gold); color: #405960; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.5; }
.card.event-display p.event-description { margin: 0 0 14px; color: #3f555b; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.event-display .event-schedule { display: grid; gap: 6px; margin: 4px 0 11px; padding: 14px 16px; border: 1px solid #d5e2df; border-left: 4px solid var(--teal); border-radius: 8px; background: #f1f7f5; font-family: Inter, "Segoe UI", Arial, sans-serif; }
.event-display .event-date { color: var(--navy); font-size: 16px; font-weight: 850; line-height: 1.4; }
.event-display .event-time { color: #087386; font-size: 14px; font-weight: 800; }
.event-display .event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; margin-top: 2px; font-family: Inter, "Segoe UI", Arial, sans-serif; }
.event-display .event-facts span { min-width: 0; padding: 10px 12px; border: 1px solid #d5e2df; border-radius: 7px; background: #fff; color: #405960; font-size: 12px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.event-display .event-facts .event-venue { border-left: 3px solid var(--gold); color: var(--navy); }
.event-fundraising-panel { margin-top: 10px; padding: 11px 12px; border: 1px solid #d4e4dc; border-left: 3px solid var(--gold); border-radius: 7px; background: #f5faf6; }
.event-fundraising-kicker { display: block; margin-bottom: 4px; color: #587169; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.event-fundraising-image { display: block; width: 100%; max-width: 220px; height: 96px; margin: 6px 0; border-radius: 6px; background: #fff; object-fit: contain; object-position: left center; }
.event-fundraising-title { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.event-fundraising-description, .event-fundraising-terms { margin: 3px 0 0; color: #52675f; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .event-fundraising-panel { margin-top: 8px; padding: 9px; }
  .event-fundraising-image { height: 76px; }
  .event-fundraising-title { font-size: 14px; }
  .event-fundraising-description, .event-fundraising-terms { font-size: 11px; }
}
.events-page main > .grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  align-items: start;
  gap: 14px;
}
.events-page .event-display {
  display: block;
  min-width: 0;
  max-width: 660px;
  padding: 14px;
}
.events-page .event-byline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #46616a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.events-page .event-byline img {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
.events-page .event-byline span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events-page .event-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.events-page .event-card-layout.has-poster {
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1.55fr);
}
.events-page .event-poster-image {
  width: 100%;
  height: 170px;
  margin: 0;
  border: 1px solid #e1ebeb;
  background: #f7fafa;
  object-fit: contain;
  object-position: center;
}
.events-page .event-card-content { min-width: 0; }
.events-page .event-poster-title {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.events-page .event-subtitle { margin: 0 0 6px; font-size: 13px; }
.events-page .event-purpose { margin: 0 0 7px; font-size: 12px; line-height: 1.4; }
.events-page .event-description-details { margin: 0 0 8px; }
.events-page .event-description-details summary {
  width: fit-content;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.events-page .event-description { margin: 5px 0 0; font-size: 12px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.events-page .event-schedule {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 7px;
  padding: 8px 10px;
  border-left-width: 3px;
}
.events-page .event-date { font-size: 13px; }
.events-page .event-time { font-size: 12px; }
.events-page .event-facts { grid-template-columns: minmax(0, 1fr); gap: 5px; }
.events-page .event-facts span { padding: 6px 8px; font-size: 11px; }
.events-page .event-fundraising-panel { margin-top: 8px; padding: 8px 10px; }
.events-page .event-fundraising-panel summary { color: var(--teal); font-size: 12px; font-weight: 800; line-height: 1.4; cursor: pointer; }
.events-page .event-fundraising-image { width: min(100%, 150px); height: 64px; }
.public-activity-layout { display: grid; grid-template-columns: minmax(88px, .62fr) minmax(0, 1.48fr); align-items: start; gap: 12px; min-width: 0; }
.public-activity-layout:not(.has-poster) { grid-template-columns: minmax(0, 1fr); }
.public-activity-image { display: block; width: 100%; height: 142px; max-height: 142px; margin: 0; border: 1px solid #e1ebeb; border-radius: 7px; background: #f7fafa; object-fit: contain; object-position: center; }
.public-activity-content { min-width: 0; overflow-wrap: anywhere; }
.public-activity-content h2, .public-activity-content h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; line-height: 1.3; }
.public-activity-content p { margin: 0 0 8px; color: #526c74; font-size: 12px; line-height: 1.45; white-space: pre-line; }
.public-activity-content .meta { margin-top: 6px; }
@media (max-width: 560px) {
  .events-page main > .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .events-page .hero { padding: 20px 0 16px; }
  .events-page .hero h1 { margin: 0 0 4px; font-size: 30px; }
  .events-page .hero p { font-size: 13px; line-height: 1.4; }
  .events-page main.section { padding: 16px 0 28px; }
  .events-page .intro { display: none; }
  .events-page .tabs { flex-wrap: nowrap; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: thin; }
  .events-page .tab { flex: 0 0 auto; padding: 6px 9px; white-space: nowrap; }
  .events-page .activity-search-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-bottom: 12px; padding: 8px; }
  .events-page .activity-search-group { gap: 4px; }
  .events-page .activity-search-group label { font-size: 11px; }
  .events-page .activity-search-group input { min-width: 0; height: 38px; padding: 7px 9px; }
  .events-page .activity-search-toolbar .btn { width: auto; min-width: 68px; min-height: 38px; padding: 7px 9px; }
  .events-page .event-display { padding: 10px; }
  .events-page .event-byline { margin-bottom: 7px; }
  .events-page .event-card-layout.has-poster { grid-template-columns: minmax(82px, 0.65fr) minmax(0, 1.45fr); gap: 9px; }
  .events-page .event-poster-image { height: 110px; }
  .events-page .event-poster-title { font-size: 17px; }
  .events-page .event-schedule { grid-template-columns: minmax(0, 1fr); }
  .public-activity-layout { grid-template-columns: minmax(76px, .62fr) minmax(0, 1.48fr); gap: 9px; }
  .public-activity-image { height: 112px; max-height: 112px; }
  .public-activity-content h2, .public-activity-content h3 { font-size: 15px; }
  .public-activity-content p { font-size: 11px; }
}
.seller-other-listings { margin-top: 22px !important; padding: 18px !important; border: 1px solid #b9d3d7 !important; border-left: 4px solid var(--teal) !important; border-radius: 9px !important; background: #f0f7f6 !important; }
.seller-other-kicker { display: block; margin-bottom: 4px; color: #087386; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.seller-other-listings h3 { margin: 0 0 5px; color: var(--navy); font-size: 16px; }
.seller-other-note { margin: 0 0 10px; color: #526c74; font-size: 12px; line-height: 1.45; }
.other-listing-link { display: inline-flex; margin: 3px 6px 3px 0; padding: 7px 10px; border: 1px solid #c5dadd; border-radius: 6px; background: #fff; color: #075a69; font-size: 12px; font-weight: 750; }
.other-listing-link:hover { border-color: var(--teal); background: #e5f2f0; }
.preview .listing-photo-preview { display: grid; min-width: 0; align-content: start; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.preview .listing-photo-preview img { width: 100%; height: 110px; object-fit: contain; }
.listing-photo-preview > span { color: var(--muted); font-size: 10px; }
.listing-photo-preview .photo-remove { min-height: 30px; padding: 5px 8px; border: 1px solid #c7dadd; border-radius: 6px; background: #f6faf9; color: var(--navy); font-size: 11px; font-weight: 800; cursor: pointer; }
@media (max-width: 560px) {
  #preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .preview .listing-photo-preview { gap: 4px; padding: 6px; }
  .preview .listing-photo-preview img { height: 90px; }
}
.listing-footer-actions { display: flex; width: 100%; justify-content: center; margin: 30px auto 0; padding: 22px 12px 8px; border-top: 1px solid #d5e4e8; }
.listing-footer-actions .listing-back { min-width: 230px; min-height: 46px; justify-content: center; background: linear-gradient(135deg,var(--teal),var(--teal-dark)); }
body:has(.listing-layout) .listing-photo.has-multiple-images { display: grid; min-height: 0; height: auto; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; align-items: stretch; justify-items: stretch; gap: 10px; overflow: visible; padding: 12px; }
body:has(.listing-layout) .listing-photo .listing-gallery-image { display: block; width: 100%; min-width: 0; height: 440px; min-height: 0; object-fit: contain; }
body:has(.listing-layout) .listing-photo.has-multiple-images .listing-gallery-image { height: 250px; border: 1px solid #d5e4e8; border-radius: 8px; background: #f7fbfc; }
@media (max-width: 850px) {
  body:has(.listing-layout) .listing-photo .listing-gallery-image { height: 360px; }
  body:has(.listing-layout) .listing-photo.has-multiple-images .listing-gallery-image { height: 250px; }
}
@media (max-width: 520px) {
  body:has(.listing-layout) .listing-photo.has-multiple-images { grid-template-columns: 1fr; }
  body:has(.listing-layout) .listing-photo .listing-gallery-image { height: 300px; }
}
body:has(.listing-layout) .listing-photo:not(.has-multiple-images) .listing-gallery-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
}
@media (max-width: 850px) {
  body:has(.listing-layout) {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body:has(.listing-layout) .listing-page {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    padding: 12px 0 24px;
  }
  body:has(.listing-layout) .listing-layout {
    flex: 0 0 auto;
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 10px;
  }
  body:has(.listing-layout) .listing-photo:not(.has-multiple-images) {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 320px;
    aspect-ratio: 4 / 3;
  }
  body:has(.listing-layout) .listing-info {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
    gap: 6px;
    overflow: visible;
    padding: 9px;
  }
  body:has(.listing-layout) .listing-overview h1 { font-size: 19px; }
  body:has(.listing-layout) .listing-overview .listing-price { font-size: 16px; }
  body:has(.listing-layout) .listing-content-grid {
    min-height: 0;
    overflow: visible;
    padding-right: 0;
    gap: 5px;
  }
  body:has(.listing-layout) .listing-compact-panel,
  body:has(.listing-layout) .listing-facts,
  body:has(.listing-layout) .listing-contact-card,
  body:has(.listing-layout) .listing-extra-panel { padding: 7px 8px; }
  body:has(.listing-layout) .listing-description-panel .description,
  body:has(.listing-layout) .listing-extra-panel p,
  body:has(.listing-layout) .listing-contact-card p { font-size: 12px; line-height: 1.4; }
  body:has(.listing-layout) .listing-photo.has-multiple-images {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
  }
  body:has(.listing-layout) .listing-photo.has-multiple-images .listing-gallery-image {
    height: 240px;
    max-height: 240px;
  }
}
@media (max-width: 520px) {
  body:has(.listing-layout) .listing-photo.has-multiple-images .listing-gallery-image {
    height: 220px;
    max-height: 220px;
  }
}
.activity-search-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.activity-search-group { display: grid; min-width: 0; gap: 6px; }
.activity-search-group label, .fundraising-search-label { color: var(--navy); font-size: 12px; font-weight: 850; }
.activity-search-toolbar .btn { min-height: 42px; min-width: 96px; }
.fundraising-search-guidance { margin: 0 0 10px; color: #526c74; font-size: 14px; line-height: 1.55; }
#fundraisingSearchToolbar { grid-template-columns: minmax(0, 1fr); }
#fundraisingSearchToolbar[hidden] { display: none !important; }
.fundraising-search-form { display: grid; gap: 6px; }
.fundraising-search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.fundraising-search-control .btn { min-height: 42px; min-width: 96px; }
body:has(.community-detail) .community-contact a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 229, 138, .65); text-underline-offset: 2px; overflow-wrap: anywhere; }
body:has(.community-detail) .community-contact a:hover { color: #ffe58a; }

body > header .mobile-nav-toggle,
body > header .mobile-nav-heading,
body > header .mobile-nav-close { display: none; }
body > .mobile-nav-backdrop { display: none; }

@media (max-width: 950px) {
  body > header .nav {
    display: flex;
    min-height: 0;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 9px;
  }
  body > header .nav > nav {
    position: fixed;
    z-index: 1202;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex !important;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    overflow-y: auto;
    padding: 20px 16px 28px;
    border-right: 1px solid rgba(245, 197, 66, .45);
    background: linear-gradient(180deg, #063b4a, #042b38);
    box-shadow: 16px 0 42px rgba(0, 0, 0, .24);
    transform: translateX(-105%);
    transition: transform .22s ease, visibility .22s ease;
    visibility: hidden;
  }
  body.mobile-menu-open > header { z-index: 1201; }
  body.mobile-menu-open > header .nav > nav { transform: translateX(0); visibility: visible; }
  body > header .mobile-nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 12px;
    padding: 0 2px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 14px;
  }
  body > header .mobile-nav-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
  }
  body > header .nav > nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    justify-content: flex-start;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
  }
  body > header .nav > nav a.nav-current {
    border-color: var(--gold);
    background: var(--gold);
    color: #18343c;
    box-shadow: inset 0 -3px 0 rgba(4, 86, 106, .22);
  }
  body > header .nav > nav a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
  }
  body > header .mobile-nav-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
  }
  body > header .mobile-nav-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  body > .mobile-nav-backdrop {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(3, 24, 31, .56);
    cursor: pointer;
  }
  body > .mobile-nav-backdrop[hidden] { display: none; }
  body > header .nav > .nav-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  body:has(#listingGrid) #listingGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  body:has(#listingGrid) #listingGrid .listing-card {
    min-height: 0;
    padding: 8px;
    border-radius: 8px;
  }
  body:has(#listingGrid) #listingGrid .listing-card-media {
    height: 96px;
    flex-basis: 96px;
    margin-bottom: 6px;
  }
  body:has(#listingGrid) #listingGrid .listing-image {
    height: 96px;
    margin-bottom: 6px;
  }
  body:has(#listingGrid) #listingGrid .listing-card h3 { font-size: 14px; line-height: 1.25; }
  body:has(#listingGrid) #listingGrid .listing-card p { display: none; }
  body:has(#listingGrid) #listingGrid .listing-price-options,
  body:has(#listingGrid) #listingGrid .marketplace-price-options { display: none; }
  body:has(#listingGrid) #listingGrid .listing-card .meta { gap: 3px; }
  body:has(#listingGrid) #listingGrid .listing-card .pill { padding: 3px 5px; font-size: 9px; }
  body:has(#listingGrid) #listingGrid .listing-view-action {
    min-height: 34px;
    margin-top: 8px;
    padding: 5px 6px;
    font-size: 11px;
  }
  body:has(#listingGrid) .filter-box {
    margin-bottom: 12px;
    padding: 12px;
  }
  body:has(#listingGrid) .filter-box > h2 { margin-bottom: 3px; font-size: 17px; }
  body:has(#listingGrid) .filter-box > p { margin-bottom: 8px; font-size: 11px; line-height: 1.35; }
  body:has(#listingGrid) .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
  }
  body:has(#listingGrid) .filter-row #search { grid-column: 1 / -1; }
  body:has(#listingGrid) .filter-row input,
  body:has(#listingGrid) .filter-row select {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 12px;
  }
  body:has(#listingGrid) .filter-actions { gap: 6px; margin-top: 7px; }
  body:has(#listingGrid) .filter-actions button { min-height: 36px; padding-block: 6px; }
}
@media (max-width: 560px) {
  body:not(.events-page) .card.event-display { padding: 13px; }
  body:not(.events-page) .event-display .event-poster-image { height: 160px; }
  body:not(.events-page) .event-display .event-poster-title { font-size: 19px; }
  body:not(.events-page) .card.event-display p.event-purpose { font-size: 12px; }
  body:not(.events-page) .card.event-display p.event-description { font-size: 13px; line-height: 1.45; }
  body:not(.events-page) .event-display .event-schedule { padding: 10px 12px; }
  body:not(.events-page) .event-display .event-date { font-size: 14px; }
  body:not(.events-page) .event-display .event-time { font-size: 13px; }
  body:not(.events-page) .event-display .event-facts span { padding: 8px 10px; font-size: 11px; }
  .activity-search-toolbar { grid-template-columns: 1fr; }
  .activity-search-toolbar .btn, .fundraising-search-control .btn { width: 100%; }
  .fundraising-search-control { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body:not(.events-page):has(.event-display) main > .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  body:not(.events-page):has(.event-display) main > .grid .event-display {
    min-width: 0;
    padding: 9px 10px;
    border-top-width: 3px;
    border-radius: 8px;
  }
  body:not(.events-page):has(.event-display) main > .grid .event-display > div:first-child {
    gap: 6px !important;
    margin-bottom: 6px !important;
    font-size: 10px;
    line-height: 1.25;
  }
  body:not(.events-page):has(.event-display) main > .grid .event-display > div:first-child img {
    display: block;
    width: 28px !important;
    height: 28px !important;
  }
  body:not(.events-page):has(.event-display) main > .grid .event-poster-image {
    height: 82px;
    margin-bottom: 6px;
  }
  body:not(.events-page):has(.event-display) main > .grid .event-poster-title {
    margin: 1px 0 5px;
    font-size: 16px;
    line-height: 1.2;
  }
  body:not(.events-page):has(.event-display) main > .grid .event-subtitle { display: block; margin: 0 0 5px; font-size: 12px; }
  body:not(.events-page):has(.event-display) main > .grid .event-purpose,
  body:not(.events-page):has(.event-display) main > .grid .event-description {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    line-height: 1.35;
  }
  body:not(.events-page):has(.event-display) main > .grid .event-schedule {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 6px;
    margin: 4px 0 7px;
    padding: 6px 8px;
    border-left-width: 3px;
  }
  body:not(.events-page):has(.event-display) main > .grid .event-date { font-size: 11px; line-height: 1.3; }
  body:not(.events-page):has(.event-display) main > .grid .event-time { font-size: 10px; }
  body:not(.events-page):has(.event-display) main > .grid .event-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  body:not(.events-page):has(.event-display) main > .grid .event-facts .event-capacity { display: block; }
  body:not(.events-page):has(.event-display) main > .grid .event-facts span { padding: 5px 6px; font-size: 9px; }
  body:not(.events-page):has(.event-display) main > .grid .event-fundraising-panel { margin-top: 6px; padding: 7px 8px; }
  body:not(.events-page):has(.event-display) main > .grid .event-fundraising-image { width: min(100%, 150px); height: 54px; margin: 3px 0; }
  body:not(.events-page):has(.event-display) main > .grid .event-fundraising-kicker { margin-bottom: 2px; font-size: 8px; }
  body:not(.events-page):has(.event-display) main > .grid .event-fundraising-title { margin-bottom: 2px; font-size: 12px; }
  body:not(.events-page):has(.event-display) main > .grid .event-fundraising-description,
  body:not(.events-page):has(.event-display) main > .grid .event-fundraising-terms { margin-top: 2px; font-size: 10px; line-height: 1.3; }
}
