/* Site banner, header, navigation, language switch and footer. */

/* Sticky chrome: archive banner + nav stay visible on every view */
.chrome {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 6;
  background: var(--bg);
}

/* Persistent archive / in-person banner — every page */
.site-banner {
  background: var(--kumkum);
  color: #fff;
  border-bottom: 1px solid color-mix(in srgb, #000 18%, var(--kumkum));
}
.site-banner-in {
  padding-block: 7px;
}
.site-banner-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  hyphens: auto;
}
html[lang="ta"] .site-banner-text {
  font-family: var(--f-tamil);
  font-size: 0.74rem;
  line-height: 1.4;
}
@media (min-width: 760px) {
  .site-banner-in {
    padding-block: 9px;
  }
  .site-banner-text {
    font-size: 0.88rem;
    line-height: 1.4;
  }
  html[lang="ta"] .site-banner-text {
    font-size: 0.82rem;
  }
}

/* header */
.top {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding-block: 10px;
  min-height: 46px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
}
.logo {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glow);
  display: grid;
  place-items: center;
  color: var(--sil);
  border: 1.5px solid var(--turmeric);
}
.logo svg {
  width: 26px;
  height: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.brand-text b {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.15rem;
}
html[lang="ta"] .brand-text b {
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
html[lang="ta"] .brand-text small {
  font-size: 0.7rem;
  line-height: 1.35;
}
.lang {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
.lang button {
  border: 0;
  background: none;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
}
.lang button[aria-pressed="true"] {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}
html[lang="ta"] .nav a {
  font-size: 0.85rem;
  padding: 6px 12px;
}
.nav a[aria-current="page"] {
  background: var(--glow);
  box-shadow: inset 0 -2px 0 var(--turmeric);
}
@media (min-width: 860px) {
  .nav {
    order: 1;
    flex: 0 1 auto;
  }
  .lang {
    order: 2;
  }
}

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot b {
  color: var(--ink);
  font-weight: 600;
}

.foot-note {
  flex: 1 0 100%;
}
