/* Lite CMS - front-end stylesheet
   Colors/fonts/layout width come from CSS variables injected per-site
   in the <head> (see includes/functions.php -> render_theme_css), which
   also handles automatic light/dark mode via the CSS light-dark()
   function - no JS, no flash of the wrong theme on load. */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.22; letter-spacing: -.01em; margin: 0 0 .5em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: 720px; }

/* ---------- Reading progress bar ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--primary); z-index: 200; transition: width .1s linear;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--secondary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1rem;
  transition: padding .18s ease;
}
.site-header.is-scrolled .header-inner { padding: .55rem 1.25rem; }
.site-header.is-scrolled .logo-img { max-height: 32px; }
.site-header.is-scrolled .brand-name { font-size: 1.15rem; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-name {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: #fff;
  letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: font-size .18s ease;
}
.logo-img { max-height: 46px; transition: max-height .18s ease; }

.header-actions { display: flex; align-items: center; gap: .3rem; }
.icon-btn {
  background: none; border: none; color: #fff; font-size: 1.15rem; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; opacity: .92;
}
.icon-btn:hover { opacity: 1; background: rgba(255,255,255,.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; border-radius: 2px; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; flex: 1; justify-content: flex-end; }
.main-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.main-nav ul li { position: relative; }
.main-nav ul li a { color: #fff; opacity: 1; font-weight: 600; font-size: .94rem; }
.main-nav ul li a:hover, .main-nav ul li a[aria-current="page"] { opacity: 1; text-decoration: none; }
.main-nav ul li a[aria-current="page"] { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--secondary);
  min-width: 180px;
  padding: .4rem 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 16px var(--shadow-color);
}
.main-nav .has-children:hover .submenu,
.main-nav .has-children:focus-within .submenu,
.main-nav .has-children.open .submenu { display: block; }
.submenu-toggle { background: none; border: 0; color: #fff; cursor: pointer; padding: .3rem .4rem; font-size: .8rem; min-width: 32px; min-height: 32px; }
.main-nav .has-children { display: flex; align-items: center; flex-wrap: wrap; }
.main-nav .has-children > .submenu { flex-basis: 100%; }
.main-nav .submenu li a { display: block; padding: .6rem 1rem; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--secondary);
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 1.25rem 1.5rem;
    gap: 1rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 8px 20px var(--shadow-color);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); min-height: 44px; }
  .main-nav .submenu { position: static; box-shadow: none; background: rgba(0,0,0,.15); border-radius: 6px; margin-top: .3rem; }
}

/* Expandable search bar (toggled from header icon or bottom nav) */
.search-bar {
  max-height: 0; overflow: hidden; background: rgba(0,0,0,.15);
  transition: max-height .2s ease;
}
.search-bar.open { max-height: 90px; }
.search-bar-inner { display: flex; gap: .5rem; padding: .8rem 1.25rem; }
.search-bar-inner input {
  flex: 1; border: none; border-radius: 8px; padding: .7rem .9rem; font-size: 1rem;
  min-height: 44px;
}
.search-bar-inner button {
  border: none; background: var(--primary); color: var(--on-primary, #fff); border-radius: 8px; padding: 0 1.1rem;
  font-weight: 700; cursor: pointer; min-height: 44px;
}

/* Category quick-chips */
.category-chips { background: rgba(0,0,0,.12); }
.category-chips-inner {
  display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 1.25rem;
  scrollbar-width: none;
}
.category-chips-inner::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; color: #fff; opacity: .85; font-size: .84rem; font-weight: 600;
  padding: .4rem .85rem; border-radius: 20px; background: rgba(255,255,255,.08); white-space: nowrap;
}
.chip:hover { opacity: 1; text-decoration: none; background: rgba(255,255,255,.16); }
.chip-active { opacity: 1; background: var(--accent); color: #1c1c1e; }

/* Header style variant: "centered" */
.header-centered .header-inner { flex-direction: column; text-align: center; }
.header-centered .main-nav { justify-content: center; }

/* ---------- Bottom mobile nav (app-style, thumb-reachable) ---------- */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg); border-top: 1px solid var(--border-color);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 10px var(--shadow-color);
}
@media (max-width: 720px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: .5rem 0; background: none; border: none; color: var(--muted-text);
  font-size: .68rem; font-weight: 600; min-height: 56px; cursor: pointer; font-family: inherit;
}
.bottom-nav-item:hover { text-decoration: none; }
.bottom-nav-item.active { color: var(--primary); }
.bn-icon { font-size: 1.25rem; line-height: 1; }

/* Back to top */
.back-to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--secondary); color: #fff; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 14px var(--shadow-color); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top { visibility: hidden; }
.back-to-top.visible { opacity: 1; pointer-events: auto; visibility: visible; }
@media (max-width: 720px) { .back-to-top { bottom: calc(58px + env(safe-area-inset-bottom, 0px) + .8rem); } }

/* ---------- Hero ---------- */
.hero-section { margin: 1.5rem auto 2rem; }
.hero-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 340px;
  background: var(--secondary);
  color: #fff;
}
.hero-card:hover { text-decoration: none; }
.hero-img { width: 100%; height: 440px; object-fit: cover; opacity: .88; }
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 2.2rem;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0));
}
.hero-title { color: #fff; font-size: clamp(1.6rem, 4.2vw, 2.6rem); margin: .4rem 0; }
.hero-excerpt { color: rgba(255,255,255,.92); max-width: 640px; margin: 0; font-size: 1.05rem; }
@media (max-width: 600px) {
  .hero-img { height: 260px; }
  .hero-overlay { padding: 1.2rem 1.25rem; }
}

/* ---------- Homepage layout: content + sidebar ---------- */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.home-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 90px; }
@media (max-width: 960px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { position: static; }
}
.sidebar-card { background: var(--card-bg); border-radius: 14px; padding: 1.3rem; }
.sidebar-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.sidebar-card-head h2 { font-size: 1.05rem; margin: 0; }
.sidebar-card-head a { font-size: .8rem; font-weight: 700; }

/* ---------- Post grid / cards ---------- */
.section-title { font-size: 1.45rem; margin: 1.5rem 0 1rem; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 3px var(--shadow-color);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px var(--shadow-color); text-decoration: none; }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--border-color); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-video-badge { display: flex; align-items: center; justify-content: center; background: var(--secondary); color: #fff; font-weight: 700; }
.post-card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.post-cat-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 4px;
  margin-bottom: .5rem;
  width: fit-content;
}
.post-card-title { font-size: 1.1rem; margin: 0 0 .4rem; }
.post-card-excerpt { color: var(--muted-text); font-size: .92rem; margin: 0 0 .6rem; flex: 1; }
.post-card-meta { font-size: .78rem; color: var(--muted-text); }

/* Compact headline rail (scannable "latest" list) */
.headline-rail { list-style: none; margin: 0; padding: 0; }
.headline-rail li { border-bottom: 1px solid var(--border-color); }
.headline-rail li:last-child { border-bottom: none; }
.headline-rail a {
  display: flex; gap: .7rem; align-items: baseline; padding: .7rem 0; color: var(--text);
}
.headline-rail a:hover { color: var(--primary); text-decoration: none; }
.headline-rail .hr-num { font-family: var(--font-heading); font-weight: 800; color: var(--muted-text); font-size: .95rem; flex-shrink: 0; }
.headline-rail .hr-title { font-weight: 600; font-size: .94rem; line-height: 1.35; }
.related-posts { margin: 2rem auto; }
.related-posts .headline-rail a { display: block; padding-bottom: .2rem; }
.related-meta { display: flex; gap: .4rem; font-size: .8rem; color: var(--muted-text); padding-bottom: .7rem; }
.related-meta .dot::before { content: "·"; margin: 0 .1rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; margin: 2rem 0; font-size: .95rem; }
.pagination a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.pg-info { color: var(--muted-text); }

/* ---------- Single post ---------- */
.single-post { padding: 2rem 1.25rem 3rem; }
.single-title { font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin: .5rem 0; }
.single-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted-text); font-size: .9rem; margin-bottom: 1.4rem; }
.single-byline .dot::before { content: "·"; margin: 0 .1rem; }
.single-featured-img { margin: 1rem 0 1.5rem; border-radius: 12px; overflow: hidden; }
.single-content { font-size: 1.1rem; }
.single-content p { margin: 0 0 1.3em; }
.single-content img { border-radius: 10px; margin: 1rem 0; }
.single-content figure { margin: 1.5em 0; }
.single-content figcaption { font-size: .85rem; color: var(--muted-text); text-align: center; margin-top: .5em; }
.single-content h2, .single-content h3 { margin-top: 1.7em; }
.single-content blockquote {
  border-left: 3px solid var(--primary);
  margin: 1.6em 0;
  padding: .3em 1.3em;
  color: var(--muted-text);
  font-style: italic;
  font-size: 1.15em;
}
.single-content ul, .single-content ol { padding-left: 1.4em; }

/* Share row */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 2rem 0; padding: 1.2rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.share-row-label { font-weight: 700; font-size: .85rem; color: var(--muted-text); margin-right: .3rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--card-bg); color: var(--text) !important;
  padding: .5rem .9rem; border-radius: 20px; font-size: .85rem; font-weight: 600; border: none; cursor: pointer; font-family: inherit;
  min-height: 40px;
}
.share-btn:hover { background: var(--primary); color: var(--on-primary, #fff) !important; text-decoration: none; }

.video-wrap { position: relative; width: 100%; padding-top: 56.25%; margin: 1rem 0 1.5rem; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.page-header { margin: 2rem 0 1rem; }
.page-header .lead { color: var(--muted-text); }

/* ---------- Forms ---------- */
.cms-form { background: var(--card-bg); border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }
.cms-form-title { margin-top: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin: 1rem 0; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
  list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted-text);
}
.breadcrumbs li { display: flex; align-items: center; gap: .3rem; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--border-color); margin-left: .3rem; }
.breadcrumbs a { color: var(--muted-text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs li[aria-current="page"] {
  color: var(--text); font-weight: 600; max-width: 60vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Polls ---------- */
.poll-block { background: var(--card-bg); border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }
.poll-question { margin: 0 0 1rem; }
.poll-form { display: flex; flex-direction: column; gap: .6rem; }
.poll-option {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem;
  border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; background: var(--bg);
}
.poll-option:hover { border-color: var(--primary); }
.poll-option input { width: auto; margin: 0; }
.poll-vote-btn { align-self: flex-start; margin-top: .4rem; }
.poll-results { display: flex; flex-direction: column; gap: .7rem; }
.poll-result-row { display: flex; flex-direction: column; gap: .3rem; }
.poll-result-label { display: flex; justify-content: space-between; font-weight: 700; font-size: .92rem; }
.poll-result-pct { color: var(--muted-text); font-weight: 700; }
.poll-bar-track { height: 10px; border-radius: 6px; background: var(--border-color); overflow: hidden; }
.poll-bar-fill { height: 100%; background: var(--primary); border-radius: 6px; }
.poll-total { margin: .3rem 0 0; font-size: .82rem; color: var(--muted-text); }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.form-field .req { color: var(--primary); }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel],
.form-field input[type=number], .form-field input[type=date], .form-field textarea, .form-field select {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem;
  font-family: inherit; background: var(--bg); color: var(--text); min-height: 44px;
}
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-weight: 400 !important; }
.checkbox-group { display: flex; flex-direction: column; gap: .5rem; padding: .2rem 0; }
.field-hint { font-size: .8rem; color: var(--muted-text); margin: .3rem 0 0; }
.hp-field { display: none !important; }
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 8px; font-weight: 700; border: none; cursor: pointer; font-size: .95rem; min-height: 44px; }
.btn-primary { background: var(--primary); color: var(--on-primary, #fff) !important; }
.btn-primary:hover { opacity: .9; text-decoration: none; }
.btn-secondary { background: var(--card-bg); color: var(--text) !important; }
.btn-secondary:hover { text-decoration: none; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.85); margin-top: 3rem; padding: 2rem 0; }
.footer-inner { text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: .8rem; flex-wrap: wrap; }
.footer-social a { color: #fff; font-weight: 600; font-size: .88rem; opacity: .85; }
.footer-social a:hover { opacity: 1; }
.footer-text { font-size: .85rem; margin: 0; }

/* ---------- Community Calendar ---------- */
.event-filters {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: end;
  background: var(--card-bg); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem;
}
.event-filters > div { display: flex; flex-direction: column; gap: .3rem; }
.event-filters label { font-size: .78rem; font-weight: 700; color: var(--muted-text); text-transform: uppercase; letter-spacing: .03em; }
.event-filters select, .event-filters input[type=month], .event-filters input[type=text] {
  padding: .5rem .7rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: .92rem;
  background: var(--bg); color: var(--text); font-family: inherit; min-height: 44px;
}
.event-filters-clear { justify-content: center; }
.event-filters-clear a { font-size: .85rem; font-weight: 600; }

.event-toggle-tabs { display: flex; gap: .5rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--border-color); }
.event-toggle-tabs a {
  padding: .8rem 1rem; font-weight: 700; font-size: .92rem; color: var(--muted-text); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.event-toggle-tabs a:hover { text-decoration: none; color: var(--primary); }
.event-toggle-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

.event-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.event-card {
  display: flex; align-items: stretch; gap: 1rem; background: var(--card-bg); border-radius: 12px; overflow: hidden;
  color: var(--text); box-shadow: 0 1px 3px var(--shadow-color); transition: transform .15s ease, box-shadow .15s ease;
}
.event-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--shadow-color); text-decoration: none; }
.event-date-badge {
  flex-shrink: 0; width: 72px; background: var(--primary); color: var(--on-primary, #fff); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: .6rem 0;
}
.event-date-month { font-size: .72rem; font-weight: 700; letter-spacing: .05em; opacity: .9; }
.event-date-day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-card-img { flex-shrink: 0; width: 110px; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: .9rem 1.1rem .9rem 0; flex: 1; min-width: 0; }
.event-card:not(:has(.event-card-img)) .event-card-body { padding-left: 0; }
.event-card-title { font-size: 1.08rem; margin: .3rem 0 .35rem; }
.event-card-meta { font-size: .85rem; color: var(--muted-text); margin-top: .15rem; }

@media (max-width: 600px) {
  .event-card-img { display: none; }
  .event-date-badge { width: 58px; }
  .event-date-day { font-size: 1.3rem; }
}

/* Single event page */
.single-event .back-link { font-size: .88rem; font-weight: 600; }
.badge-past {
  display: inline-block; background: var(--card-bg); color: var(--muted-text); font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .2rem .55rem; border-radius: 4px; margin-left: .4rem; vertical-align: middle;
}
.event-detail-facts { background: var(--card-bg); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0; }
.event-fact { font-size: .98rem; margin: .3rem 0; }

/* Homepage "Upcoming Events" teaser */
.events-teaser { margin: 1rem auto 2rem; }
.events-teaser-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.events-teaser-link { font-size: .88rem; font-weight: 700; }
.events-teaser-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.events-teaser-item {
  display: flex; align-items: center; gap: .8rem; background: var(--card-bg); border-radius: 10px; padding: .7rem .9rem; color: var(--text);
}
.events-teaser-item:hover { text-decoration: none; box-shadow: 0 4px 14px var(--shadow-color); }
.event-date-badge-sm { width: 50px; padding: .4rem 0; border-radius: 8px; }
.event-date-badge-sm .event-date-day { font-size: 1.2rem; }
.events-teaser-title { font-weight: 700; font-size: .95rem; }
.events-teaser-meta { font-size: .78rem; color: var(--muted-text); margin-top: .1rem; }

/* Sidebar variant of the events teaser (stacked, narrower) */
.sidebar-events-list { display: flex; flex-direction: column; gap: .7rem; }
.sidebar-events-list .events-teaser-item { background: var(--bg); }

/* ---------- Business Directory ---------- */
.biz-list { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.5rem; }
.biz-card {
  display: flex; align-items: flex-start; gap: 1rem; background: var(--card-bg); border-radius: 12px; padding: .9rem 1.1rem;
  color: var(--text); box-shadow: 0 1px 3px var(--shadow-color); transition: transform .15s ease, box-shadow .15s ease;
}
.biz-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--shadow-color); text-decoration: none; }
.biz-thumb {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--border-color);
  display: flex; align-items: center; justify-content: center;
}
.biz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.biz-thumb-fallback { font-size: 1.6rem; opacity: .5; }
.biz-card-body { flex: 1; min-width: 0; }
.biz-card-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.biz-card-title { font-size: 1.05rem; margin: 0; }
.biz-card-meta { font-size: .82rem; color: var(--muted-text); margin-top: .2rem; }
.biz-card-desc { font-size: .9rem; color: var(--muted-text); margin: .35rem 0 0; }

/* Single business page */
.single-business .back-link { font-size: .88rem; font-weight: 600; }
.biz-detail-head { display: flex; align-items: center; gap: 1.1rem; margin: 1rem 0; }
.biz-detail-thumb {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--border-color);
  display: flex; align-items: center; justify-content: center;
}
.biz-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.biz-detail-thumb .biz-thumb-fallback { font-size: 2.2rem; }
.biz-detail-desc { font-size: 1.05rem; color: var(--text); }
.biz-contact-list { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.biz-contact-item {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--card-bg); padding: .6rem 1rem;
  border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--text) !important; min-height: 44px;
}
.biz-contact-item:hover { background: var(--primary); color: var(--on-primary, #fff) !important; text-decoration: none; }

/* Homepage business spotlight (parallel to the events teaser) */
.biz-spotlight-card { display: flex; align-items: center; gap: .9rem; }
.biz-spotlight-card .biz-thumb { width: 64px; height: 64px; }
.biz-spotlight-name { font-weight: 700; font-size: 1rem; }
.biz-spotlight-meta { font-size: .8rem; color: var(--muted-text); margin-top: .15rem; }
.biz-spotlight-desc { font-size: .87rem; color: var(--muted-text); margin-top: .5rem; }

@media (max-width: 600px) {
  .biz-card-top { flex-direction: column; align-items: flex-start; gap: .3rem; }
}

/* ---------- Advertising ---------- */
.ad-block {
  padding: .6rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--muted-text);
  border-radius: 6px;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted-text);
  margin: 1rem 0;
}
.ad-block .ad-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-text);
  margin-bottom: .2rem;
  opacity: .8;
}
.ad-block .ad-content { color: var(--text); }
.ad-block .ad-content a { font-weight: 600; }
.ad-block .ad-content p { margin: 0; }
.ad-block .ad-edit-link {
  float: right; text-transform: none; letter-spacing: normal; font-weight: 700;
  color: var(--primary); opacity: 1;
}

.embed-block { margin: 1.5em 0; max-width: 100%; overflow-x: auto; }
.embed-block iframe, .embed-block img, .embed-block video { max-width: 100%; }

/* ---------- Breaking news bar (static, not a scrolling ticker) ---------- */
.breaking-bar { background: var(--primary); color: var(--on-primary, #fff); }
.breaking-bar a { color: inherit; text-decoration: underline; }
.breaking-bar-inner { display: flex; align-items: center; gap: .7rem; padding: .55rem 1.25rem; font-size: .88rem; }
.breaking-label {
  flex-shrink: 0; background: rgba(0,0,0,.25); text-transform: uppercase; font-weight: 800;
  font-size: .7rem; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 4px;
}
.breaking-text { font-weight: 600; }
.breaking-text a { color: #fff; text-decoration: underline; font-weight: 700; margin-left: .3rem; }

/* ---------- Top banner (images/HTML, toggle on/off) ---------- */
.top-banner { width: 100%; text-align: center; }
.top-banner { overflow: hidden; }
.top-banner img, .top-banner picture, .top-banner picture img, .top-banner video {
  width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important;
  aspect-ratio: auto !important; object-fit: contain !important; margin: 0 auto; display: block;
}
.top-banner a, .top-banner div, .top-banner figure, .top-banner p, .top-banner span {
  max-width: 100%; max-height: none !important; min-height: 0 !important;
}
.top-banner a, .top-banner figure { display: block; height: auto !important; margin: 0; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--secondary); color: #fff; box-shadow: 0 -2px 12px var(--shadow-color);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem;
}
.cookie-banner-text { margin: 0; font-size: .88rem; flex: 1; min-width: 220px; }
.cookie-banner-text a { color: #fff; text-decoration: underline; font-weight: 700; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-shrink: 0; }
@media (max-width: 720px) {
  .cookie-banner { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Popup notice ---------- */
.popup-notice-overlay {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55); padding: 1rem;
}
.popup-notice-overlay[hidden] { display: none; }
.popup-notice-box {
  position: relative; background: var(--bg); color: var(--text); border-radius: 12px;
  max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 2rem 1.5rem 1.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.popup-notice-close {
  position: absolute; top: .6rem; right: .6rem; width: 2rem; height: 2rem; border-radius: 50%;
  border: none; background: var(--card-bg); color: var(--text); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.popup-notice-close:hover { background: var(--border-color); }
.popup-notice-content img { max-width: 100%; height: auto; }
.popup-notice-content :first-child { margin-top: 0; }
.popup-notice-content :last-child { margin-bottom: 0; }

.lang-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #111; font-size: 1.02rem; font-weight: 800;
  width: 39px; height: 27px; border-radius: 5px; border: 1.5px solid rgba(0,0,0,.2);
  margin-left: .5rem; vertical-align: middle; letter-spacing: .02em;
}


/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 1000; padding: .7rem 1rem;
  background: #fff; color: #000; font-weight: 700; border-radius: 6px; border: 2px solid #000;
  text-decoration: none;
}
.skip-link:focus { top: .5rem; }
main:focus { outline: none; }
html { scroll-padding-top: 5rem; scroll-padding-bottom: 6rem; }
.site-header :focus-visible, .cookie-banner :focus-visible, .site-footer :focus-visible, .bottom-nav :focus-visible {
  outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #000;
}
.chip, .footer-social a { opacity: 1; }
.poll-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.transcript { margin: 1.5rem 0; padding: 1rem 1.2rem; background: var(--card-bg); border-radius: 10px; }
.transcript summary { cursor: pointer; font-weight: 700; }
.flash-error { border-left: 4px solid currentColor; padding: .8rem 1rem; border-radius: 6px; background: var(--card-bg); }

.footer-links { text-align: center; margin: 0 0 .6rem; }
.footer-links a { color: #fff; text-decoration: underline; font-weight: 600; font-size: .88rem; }

.section-intro { background: var(--card-bg); border-left: 4px solid var(--primary); border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1.5rem; line-height: 1.65; }
.section-intro p { margin: 0; }

/* ---------- Category bar dropdowns ---------- */
.chip-group { display: inline-flex; align-items: center; flex-shrink: 0; gap: 2px; }
.chip-group .chip-has-sub { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.chip-toggle { border: 0; cursor: pointer; font-family: inherit; padding: .4rem .6rem; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.chip-submenu {
  position: fixed; z-index: 500; list-style: none; margin: 0; padding: .4rem; min-width: 190px; max-width: 90vw;
  background: var(--card-bg); color: var(--text); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.chip-submenu[hidden] { display: none; }
.chip-submenu li a { display: block; padding: .6rem .9rem; border-radius: 6px; color: var(--text); font-weight: 600; font-size: .92rem; }
.chip-submenu li a:hover, .chip-submenu li a:focus-visible { background: var(--primary); color: var(--on-primary, #fff); text-decoration: none; }
.chip-submenu li a[aria-current="page"] { text-decoration: underline; }

.footer-menu { margin: 0 0 .8rem; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.footer-menu a { color: #fff; text-decoration: underline; font-weight: 600; font-size: .9rem; }

/* ---------- Image lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem 1rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; cursor: default; }
.lightbox-close { position: absolute; top: .6rem; right: .8rem; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: #fff; background: rgba(255,255,255,.15); border: 2px solid #fff; border-radius: 50%; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
