/**
 * @file
 * layout.css: header, top strip, navigation, 3-column grid, sidebars, footer.
 */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--theme-header-bg, var(--kaliyattam-gradient));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background var(--transition-normal, 0.25s ease);
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

/* Header Top Region (Account menu, Language switcher, Theme toggle) */
.site-header__top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0;
  font-size: var(--text-xs);
  background: var(--theme-header-top-bg, rgba(0, 0, 0, 0.15));
}

.site-header__top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem;
}

.site-header__top .region-header-top,
.site-header__top [class*="region"] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}

/* User Account Menu in Header Top */
.site-header__top .block-account,
.site-header__top [id*="account-menu"],
.site-header__top nav[aria-labelledby*="account-menu"] {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.site-header__top [id*="account-menu"] ul {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.site-header__top [id*="account-menu"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.site-header__top [id*="account-menu"] a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.775rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: all var(--transition-fast, 0.2s ease);
}

.site-header__top [id*="account-menu"] a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Divider between Account Menu and Language Selector */
.site-header__top [id*="languageselector"],
.site-header__top [id*="language"],
.site-header__top .block-language {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 1rem;
}

.site-header__top [id*="languageselector"]::before,
.site-header__top [id*="language"]::before,
.site-header__top .block-language::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

/* Language Selector - Pill State (Supports both core language_block and advanced_language_selector) */
.advanced-language-selector,
.site-header__top .block-language {
  display: inline-flex;
  align-items: center;
}

.advanced-language-selector ul,
.advanced-language-selector .nav,
.site-header__top .block-language ul {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 3px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.advanced-language-selector li,
.advanced-language-selector .nav-item,
.site-header__top .block-language li {
  margin: 0;
  list-style: none;
}

.advanced-language-selector .nav-link,
.advanced-language-selector a,
.site-header__top .block-language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  border-radius: 9999px;
  transition: all var(--transition-fast, 0.2s ease);
  border: none;
  line-height: 1.4;
}

.advanced-language-selector .nav-link:hover,
.advanced-language-selector a:hover,
.site-header__top .block-language a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
}

.advanced-language-selector .nav-link.active,
.advanced-language-selector .nav-link.is-active,
.advanced-language-selector a.active,
.advanced-language-selector a.is-active,
.site-header__top .block-language a.is-active,
.site-header__top .block-language li.is-active a {
  background: #ffffff !important;
  color: var(--kaliyattam-primary, #890000) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
  cursor: default;
}

/* Theme Switcher Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast, 0.2s ease);
  user-select: none;
  position: relative;
  line-height: 1;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

:root:not([data-theme="dark"]) .theme-toggle-icon--sun,
[data-theme="light"] .theme-toggle-icon--sun {
  display: none;
}

:root:not([data-theme="dark"]) .theme-toggle-icon--moon,
[data-theme="light"] .theme-toggle-icon--moon {
  display: inline-flex;
  color: #fde047;
}

[data-theme="dark"] .theme-toggle-icon--moon,
html.dark .theme-toggle-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--sun,
html.dark .theme-toggle-icon--sun {
  display: inline-flex;
  color: #fbbf24;
}

.theme-toggle-label {
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

/* Site Branding & Main Header */
.site-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.site-branding a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

.site-branding img {
  height: 2.25rem;
  width: auto;
}

/* Navigation items */
.site-nav {
  margin-inline-start: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.25rem 0.35rem;
  border-radius: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  background: transparent;
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  background: transparent;
  color: #ffffff;
}

.site-nav a.is-active,
.site-nav a[aria-current="page"],
body.path-frontpage .site-nav a[data-drupal-link-system-path="<front>"],
body.path-events .site-nav a[data-drupal-link-system-path="events"],
body.path-posts .site-nav a[data-drupal-link-system-path="posts"] {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 600;
  border-bottom: 2.5px solid var(--kaliyattam-gold, #f59e0b) !important;
  box-shadow: none !important;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--space-3);
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius-full);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.header-button:hover {
  background: rgb(255 255 255 / 0.16);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
  position: relative;
}

.burger-icon__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

/* Animate hamburger into X when open */
.site-header[data-nav-open] .burger-icon__line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header[data-nav-open] .burger-icon__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header[data-nav-open] .burger-icon__line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 47.99rem) {
  .site-header__main {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-toggle {
    display: none;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: block;
    order: 5;
    flex-basis: 100%;
    margin-inline-start: 0;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  html.js .site-nav {
    display: none;
  }

  html.js .site-header[data-nav-open] .site-nav {
    display: block;
    animation: kmNavSlideDown 0.22s ease-out;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .site-nav a:hover,
  .site-nav a.is-active,
  body.path-frontpage .site-nav a[data-drupal-link-system-path="<front>"],
  body.path-events .site-nav a[data-drupal-link-system-path="events"],
  body.path-posts .site-nav a[data-drupal-link-system-path="posts"] {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
  }
}

@keyframes kmNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page grid: content, optional sidebars */
.site-main {
  flex: 1;
  padding-block: var(--space-5);
  max-width: 1440px;
  margin-inline: auto;
}

.layout {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 992px) {
  .layout--sidebar-first:not(.layout--sidebar-second) {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .layout--sidebar-second:not(.layout--sidebar-first) {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .layout--both-sidebars,
  .layout--sidebar-first.layout--sidebar-second {
    grid-template-columns: 240px minmax(0, 1fr) 260px;
  }
}

@media (min-width: 1200px) {
  .layout--both-sidebars,
  .layout--sidebar-first.layout--sidebar-second {
    grid-template-columns: 260px minmax(0, 1fr) 280px;
  }
}

.layout__content {
  min-width: 0;
}

/* Hide sidebars on node composer pages (add/edit) so form is clean and centered */
body.has-composer .sidebar,
.layout:has(.composer) .sidebar,
.layout:has(form.composer) .sidebar {
  display: none !important;
}

body.has-composer .layout,
.layout:has(.composer),
.layout:has(form.composer) {
  display: block !important;
  max-width: 760px !important;
  margin-inline: auto !important;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .sidebar {
    position: sticky;
    top: 85px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-border-hover) transparent;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--theme-border-hover);
  border-radius: 4px;
}

.sidebar > div,
.sidebar .region {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar .block,
.sidebar [id^="block-"] {
  margin-bottom: 0;
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--theme-border, #e7ded4);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--theme-card-shadow, 0 1px 3px rgba(0, 0, 0, 0.03));
  color: var(--theme-text, #1c1917);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

:root[data-theme="dark"] .sidebar .block,
:root[data-theme="dark"] .sidebar [id^="block-"],
html.dark .sidebar .block,
html.dark .sidebar [id^="block-"] {
  background: var(--theme-surface, #1e293b);
  border-color: var(--theme-border, #334155);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: var(--theme-text, #f1f5f9);
}

.sidebar .block h2:not(.visually-hidden),
.sidebar [id^="block-"] h2:not(.visually-hidden),
.sidebar .block .block__title,
.sidebar .block .updates-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif-heading, Georgia, serif);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-accent, #890000);
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--theme-border-subtle, #f4ede4);
}

:root[data-theme="dark"] .sidebar .block h2:not(.visually-hidden),
:root[data-theme="dark"] .sidebar [id^="block-"] h2:not(.visually-hidden),
:root[data-theme="dark"] .sidebar .block .block__title,
:root[data-theme="dark"] .sidebar .block .updates-sidebar-heading,
html.dark .sidebar .block h2:not(.visually-hidden),
html.dark .sidebar [id^="block-"] h2:not(.visually-hidden),
html.dark .sidebar .block .block__title,
html.dark .sidebar .block .updates-sidebar-heading {
  border-bottom-color: var(--theme-border-subtle, rgba(148, 163, 184, 0.18));
  color: var(--theme-accent, #fca5a5);
}

/* Base header icon styling */
.sidebar .block h2::before,
.sidebar [id^="block-"] h2::before,
.sidebar .block .block__title::before {
  content: '';
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  background-color: var(--theme-accent, #890000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

:root[data-theme="dark"] .sidebar .block h2::before,
:root[data-theme="dark"] .sidebar [id^="block-"] h2::before,
:root[data-theme="dark"] .sidebar .block .block__title::before,
html.dark .sidebar .block h2::before,
html.dark .sidebar [id^="block-"] h2::before,
html.dark .sidebar .block .block__title::before {
  background-color: #fca5a5;
}

/* Generated header icons: Events / Rituals */
[id*="events"] h2::before,
.block-views-blockupdates-sidebar-events-block h2::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zm-7-8c-.83 1.12-.83 2.12 0 3.12.59.59 1.09.34 1.09-.34 0-1.25-.67-1.5-1.09-2.78z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zm-7-8c-.83 1.12-.83 2.12 0 3.12.59.59 1.09.34 1.09-.34 0-1.25-.67-1.5-1.09-2.78z'/%3E%3C/svg%3E");
}

/* Generated header icons: Theyyam Chronicles */
[id*="theyyam"] h2::before,
.block-views-blockupdates-sidebar-theyyams-block h2::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.5 2 6 5 6 8.5c0 1.8.8 3.4 2 4.5v1.5c-1.2.6-2 1.8-2 3.2V20h12v-2.3c0-1.4-.8-2.6-2-3.2v-1.5c1.2-1.1 2-2.7 2-4.5C18 5 15.5 2 12 2zm0 3c1.5 0 2.5 1.2 2.5 2.5 0 .8-.5 1.5-1.2 1.9-.3.2-.5.5-.5.8v1.3h-1.6v-1.3c0-.3-.2-.6-.5-.8-.7-.4-1.2-1.1-1.2-1.9C9.5 6.2 10.5 5 12 5zm-3 13.5c0-.8.6-1.5 1.5-1.5h3c.9 0 1.5.7 1.5 1.5V19H9v-.5z'/%3E%3Ccircle cx='12' cy='7.5' r='1.2'/%3E%3Cpath d='M12 0.5l.8 2h-1.6zM8.5 2.5l1.6 1.5-.9 1.4zM15.5 2.5l-.7 1.9 1.6-1.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.5 2 6 5 6 8.5c0 1.8.8 3.4 2 4.5v1.5c-1.2.6-2 1.8-2 3.2V20h12v-2.3c0-1.4-.8-2.6-2-3.2v-1.5c1.2-1.1 2-2.7 2-4.5C18 5 15.5 2 12 2zm0 3c1.5 0 2.5 1.2 2.5 2.5 0 .8-.5 1.5-1.2 1.9-.3.2-.5.5-.5.8v1.3h-1.6v-1.3c0-.3-.2-.6-.5-.8-.7-.4-1.2-1.1-1.2-1.9C9.5 6.2 10.5 5 12 5zm-3 13.5c0-.8.6-1.5 1.5-1.5h3c.9 0 1.5.7 1.5 1.5V19H9v-.5z'/%3E%3Ccircle cx='12' cy='7.5' r='1.2'/%3E%3Cpath d='M12 0.5l.8 2h-1.6zM8.5 2.5l1.6 1.5-.9 1.4zM15.5 2.5l-.7 1.9 1.6-1.5z'/%3E%3C/svg%3E");
}

/* Generated header icons: Sacred Shrines / Temples */
[id*="temple"] h2::before,
.block-views-blockupdates-sidebar-temples-block h2::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 1.5l-9 5.5v1.5h18V7l-9-5.5zm0 2.2l4.8 2.8H7.2L12 3.7zM4 10l-2 1.5v1.5h20V11.5L20 10H4zm1 4v6h2v-6H5zm5 0v6h4v-6h-4zm7 0v6h2v-6h-2zM2 21h20v2H2v-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 1.5l-9 5.5v1.5h18V7l-9-5.5zm0 2.2l4.8 2.8H7.2L12 3.7zM4 10l-2 1.5v1.5h20V11.5L20 10H4zm1 4v6h2v-6H5zm5 0v6h4v-6h-4zm7 0v6h2v-6h-2zM2 21h20v2H2v-2z'/%3E%3C/svg%3E");
}

/* Generated header icons: About Kaliyattam / Sacred Lamp */
[id*="about"] h2::before,
.block-kaliyattam-minimal-about h2::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 1c-.8 1.5-1.5 3-1 4.5.5 1.5 2 2.5 2 4s-1.2 2.5-1 4h-3c-1.1 0-2 .9-2 2h12c0-1.1-.9-2-2-2h-3c.2-1.5-1-2.5-1-4s1.5-2.5 2-4c.5-1.5-.2-3-1-4.5zm-5 16.5c0 1.4 1.1 2.5 2.5 2.5h.5v2H8v2h8v-2h-2v-2h.5c1.4 0 2.5-1.1 2.5-2.5H7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 1c-.8 1.5-1.5 3-1 4.5.5 1.5 2 2.5 2 4s-1.2 2.5-1 4h-3c-1.1 0-2 .9-2 2h12c0-1.1-.9-2-2-2h-3c.2-1.5-1-2.5-1-4s1.5-2.5 2-4c.5-1.5-.2-3-1-4.5zm-5 16.5c0 1.4 1.1 2.5 2.5 2.5h.5v2H8v2h8v-2h-2v-2h.5c1.4 0 2.5-1.1 2.5-2.5H7z'/%3E%3C/svg%3E");
}

/* Generated header icons: Quick Navigation / Compass */
[id*="quick-nav"] h2::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14.5v-5l6-3-3 6-3 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14.5v-5l6-3-3 6-3 2z'/%3E%3C/svg%3E");
}

/* Sidebar items list (Events, Theyyams, Temples) - flush left-aligned */
.sidebar .block ul,
.sidebar [id^="block-"] ul,
.sidebar .item-list ul,
.sidebar-items-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar .block li,
.sidebar [id^="block-"] li,
.sidebar-item {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-item a {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.35rem 0.35rem 0.35rem 0 !important;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--theme-text, #1c1917);
  text-decoration: none;
  transition: all 0.15s ease;
}

/* Simple, clean bullet points for individual sidebar items */
.sidebar-item a::before {
  content: '•';
  font-size: 1.15rem;
  line-height: 1;
  color: var(--theme-accent, #890000);
  flex-shrink: 0;
  margin-left: 0;
}

:root[data-theme="dark"] .sidebar-item a::before,
html.dark .sidebar-item a::before {
  color: #f87171;
}

.sidebar-item a:hover {
  background: var(--theme-surface-alt, #fdfaf7);
  color: var(--theme-accent, #890000);
  transform: translateX(2px);
}

:root[data-theme="dark"] .sidebar-item a:hover,
html.dark .sidebar-item a:hover {
  background: var(--theme-surface-alt, #27364b);
  color: var(--theme-accent, #fca5a5);
}

.widget-footer {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--theme-border-subtle, #f4ede4);
  text-align: right;
}

:root[data-theme="dark"] .widget-footer,
html.dark .widget-footer {
  border-top-color: var(--theme-border-subtle, rgba(148, 163, 184, 0.18));
}

.widget-header-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--theme-accent, #890000);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.15s ease;
}

.widget-header-link:hover {
  text-decoration: underline;
}

:root[data-theme="dark"] .widget-header-link,
html.dark .widget-header-link {
  color: var(--theme-accent, #fca5a5);
}

.updates-heritage-text,
.sidebar-about-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--theme-text-secondary, #52525b);
  margin: 0;
}

.sidebar .updates-sidebar-menu,
.sidebar .quick-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar .updates-sidebar-menu li a,
.sidebar .quick-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--theme-text, #1c1917);
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar .updates-sidebar-menu li a:hover,
.sidebar .quick-nav-list li a:hover {
  background: var(--theme-surface-alt, #fdfaf7);
  color: var(--theme-accent, #890000);
}

/* User Card Widget in Sidebar */
.sidebar .user-card-block,
.sidebar .updates-user-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar .user-avatar,
.sidebar .user-pic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar .user-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-text, #1c1917);
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: var(--space-8);
  padding-block: var(--space-6);
  background: var(--kaliyattam-dark);
  color: var(--kaliyattam-text-light-muted);
  font-size: var(--text-sm);
}

.site-footer a {
  color: var(--kaliyattam-text-light);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
