/*
Theme Name: UBSA Eduka
Theme URI: https://ubsaparivar.com/
Author: Union Bank Staff Association
Description: Public site for UBSA Parivar, laid out like the Eduka school theme.
Version: 1.0
Requires at least: 6.0
Text Domain: ubsa-eduka
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Yantramanav:wght@500;700;900&display=swap");

:root {
  --teal: #116e63;
  --teal-dark: #0b534b;
  --teal-deep: #083f39;
  --orange: #fda31b;
  --orange-dark: #e08d0d;
  --ink: #19232b;
  --muted: #757f95;
  --line: #e7e9ef;
  --soft: #f2f3f5;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(17, 35, 43, 0.08);
  --container: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: Yantramanav, Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--orange-dark); color: var(--white); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--orange);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 40px; margin-bottom: 10px; }
.section-head p { margin: 0; }

.topbar {
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  padding: 12px 0;
}
.topbar-inner,
.nav-inner,
.split,
.hero-copy,
.feature-grid,
.stat-grid,
.card-grid,
.dept-grid,
.news-grid,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar-inner { flex-wrap: wrap; row-gap: 8px; }
.topbar a:hover { color: var(--orange); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-right a { color: var(--white); font-weight: 700; }
.topbar a.topbar-login {
  background: var(--orange);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.2;
}
.topbar a.topbar-login:hover { color: var(--ink); background: #ffb84a; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; margin-right: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { min-height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-name {
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-name span { color: var(--orange); }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
}
.nav-toggle span:before, .nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  padding: 10px 14px;
  color: var(--ink);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.primary-nav a:hover,
.primary-nav a.active,
.primary-nav a.is-current { color: var(--teal); }
.primary-nav .btn { margin-left: 8px; color: var(--white); }

.tool-bar { background: var(--soft); border-bottom: 1px solid var(--line); }
.tool-label { display: none; }
.tool-short { display: none; }
.tool-bar-inner { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; align-items: center; justify-content: flex-start; }
.tool-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.tool-bar a:hover,
.tool-bar a.is-current { background: var(--teal); border-color: var(--teal); color: var(--white); }

.slider { position: relative; margin: 0 auto; max-width: none; }
.slides { position: relative; height: 460px; overflow: hidden; border-radius: 18px; background: var(--teal-deep); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.45s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 28px 22px 16px;
  color: var(--white);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 22px;
  background: linear-gradient(transparent, rgba(8, 63, 57, 0.88));
}
.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  font-size: 24px;
  cursor: pointer;
}
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.bearer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bearer-grid a { color: var(--ink); text-align: center; font-weight: 700; }
.bearer-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(6, 22, 52, 0.72) 0%, rgba(6, 22, 52, 0.48) 36%, rgba(6, 22, 52, 0.16) 62%, rgba(6, 22, 52, 0.05) 100%),
    url("assets/hero-parivar.jpg") center center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; max-width: 720px; display: block; padding: 80px 0 120px; }
.hero h1 { color: var(--white); font-size: 58px; font-weight: 900; max-width: 14ch; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.hero p { color: rgba(255, 255, 255, 0.92); font-size: 18px; max-width: 560px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.features {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 42px 0 48px;
  background:
    radial-gradient(circle at 8% 0%, rgba(253, 163, 27, 0.16), transparent 28%),
    radial-gradient(circle at 92% 100%, rgba(17, 110, 99, 0.14), transparent 32%),
    linear-gradient(180deg, #f4f8f7 0%, #f7f5f0 100%);
}
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 18px; }
.feature {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e4eeeb;
  border-top: 4px solid var(--teal);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(17, 35, 43, 0.07);
  padding: 22px 22px 24px;
}
.feature::before {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  right: -18px;
  bottom: -28px;
  border-radius: 50%;
  background: rgba(17, 110, 99, 0.1);
  pointer-events: none;
}
.feature:nth-child(2),
.feature:nth-child(4) { border-top-color: var(--orange); }
.feature:nth-child(2)::before,
.feature:nth-child(4)::before { background: rgba(253, 163, 27, 0.18); }
.feature > * { position: relative; z-index: 1; }
.feature-no {
  color: var(--orange);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.icon-bubble {
  width: 64px;
  height: 64px;
  margin: 8px 0 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 110, 99, 0.1);
  color: var(--teal);
}
.icon-bubble svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { margin: 0; }

.about-grid, .split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.about-panel {
  min-height: 420px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(253, 163, 27, 0.35), transparent 36%),
    linear-gradient(160deg, var(--teal), var(--teal-deep));
  display: grid;
  place-items: center;
  padding: 40px;
  position: relative;
}
.about-panel img { width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.2)); }
.about-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-family: Yantramanav, Roboto, sans-serif; font-size: 32px; color: var(--teal); }
.about h2 { font-size: 42px; margin-bottom: 14px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.35);
}

.stats { background: var(--teal); color: var(--white); padding: 48px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat strong {
  display: block;
  color: var(--white);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 42px;
  line-height: 1;
}
.stat span { color: rgba(255,255,255,.82); }

.card-grid, .dept-grid, .news-grid { display: grid; gap: 22px; align-items: stretch; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.work-card, .news-card, .person-card, .dept-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 35, 43, 0.04);
}
.work-card { padding: 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 110, 99, 0.1);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}
.work-card h3, .news-card h3, .dept-card h3 { font-size: 22px; margin: 12px 0 8px; }
.work-card p, .news-card p, .dept-card p { margin: 0; }
.work-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--teal); font-weight: 700; }

.tradition {
  background:
    radial-gradient(circle at 0% 100%, rgba(17, 110, 99, 0.08), transparent 36%),
    linear-gradient(180deg, #fff8ee 0%, #f6efe4 100%);
}
.tradition .section-head { max-width: 720px; text-align: left; margin-left: 0; }
.tradition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.tradition-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #f0e4d2;
  border-left: 5px solid var(--teal);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(90, 52, 8, 0.05);
  padding: 22px 22px 22px 20px;
}
.tradition-card:nth-child(even) { border-left-color: var(--orange); }
.tradition-no {
  position: absolute;
  right: 14px;
  top: 6px;
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: rgba(17, 110, 99, 0.12);
  pointer-events: none;
}
.tradition-card:nth-child(even) .tradition-no { color: rgba(253, 163, 27, 0.28); }
.tradition-card h3 { font-size: 22px; margin: 0 0 8px; padding-right: 52px; }
.tradition-card p { margin: 0; }

.band {
  background:
    linear-gradient(100deg, rgba(8, 63, 57, 0.92), rgba(17, 110, 99, 0.88));
  color: var(--white);
  padding: 64px 0;
}
.band h2, .band p { color: var(--white); }
.band h2 { font-size: 40px; max-width: 16ch; }
.soft { background: var(--soft); }

.dept-grid { grid-template-columns: repeat(3, 1fr); }
.dept-card { padding: 24px; }
.dept-card .num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.demand-list { columns: 2; column-gap: 36px; margin: 0; padding-left: 18px; }
.demand-list li { break-inside: avoid; margin: 0 0 12px; }

.blog-section .section-head { max-width: 820px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 35, 43, 0.04);
}
.blog-card img { width: 100%; height: 210px; object-fit: cover; }
.blog-card .body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.blog-card time { color: var(--orange); font-weight: 700; font-size: 14px; }
.blog-card h3 { font-size: 22px; margin: 10px 0 8px; }
.blog-card p { margin: 0 0 16px; }
.blog-card .more { margin-top: auto; color: var(--teal); font-weight: 700; }
.blog-card .more:hover { color: var(--orange); }
.news-grid { grid-template-columns: 1.3fr 0.7fr; }
.news-card { padding: 28px; }
.news-card time { color: var(--orange); font-weight: 700; font-size: 14px; }
.person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.person-card { padding: 28px; }
.person-card h3 { margin-bottom: 6px; }
.person-card .role { color: var(--teal); font-weight: 700; margin-bottom: 10px; }

.page-hero {
  background: linear-gradient(115deg, var(--teal-deep), var(--teal));
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); font-size: 46px; }
.page-hero p { max-width: 640px; margin: 12px 0 0; color: rgba(255, 255, 255, 0.88); font-size: 18px; }
.prose { padding: 48px 0 72px; max-width: 860px; }
.prose p, .entry p { color: var(--muted); }
.post-list { display: grid; gap: 18px; padding: 40px 0 72px; }
.post-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.post-list h2 { font-size: 28px; }
.post-list h2 a:hover { color: var(--teal); }

.site-footer { background: var(--footer, #07211e); background: #07211e; color: rgba(255,255,255,.78); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.8fr 0.9fr; align-items: start; gap: 28px; }
.site-footer h3 { color: var(--white); font-size: 22px; margin-bottom: 14px; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.legal {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 991px) {
  .nav-toggle { display: grid; place-items: center; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav .btn { margin: 6px 8px 8px; }
  .hero { min-height: 0; }
  .hero h1 { font-size: 38px; }
  .hero-copy { padding: 36px 0 48px; }
  .tool-label {
    display: block;
    margin: 12px 0 0;
    color: var(--teal);
    font-family: Yantramanav, Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
  }
  .tool-full { display: none; }
  .tool-short { display: block; }
  .tool-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 0 12px;
  }
  .tool-bar a {
    justify-content: center;
    text-align: center;
    min-height: 48px;
    padding: 8px 6px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.2;
  }
  .feature-grid, .stat-grid, .card-grid, .dept-grid, .about-grid, .split, .news-grid, .blog-grid, .person-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-grid, .about-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .section-head h2, .about h2, .band h2, .page-hero h1 { font-size: 32px; }
}

@media (max-width: 991px) {
  .bearer-grid { grid-template-columns: repeat(3, 1fr); }
  .slides { height: 280px; }
}
@media (max-width: 640px) {
  .topbar { padding: 8px 0; }
  .topbar-left { display: none; }
  .topbar-right a:not(.topbar-login) { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .topbar-right { gap: 10px 14px; }
  .stat-grid, .card-grid, .dept-grid, .person-grid, .bearer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .tradition-grid, .blog-grid { grid-template-columns: 1fr; }
  .demand-list { columns: 1; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .ubsa-assist-panel { width: min(360px, calc(100vw - 24px)); right: 0; }
}

.ubsa-assist {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.ubsa-assist-fab {
  position: relative;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(8, 63, 57, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ubsa-assist-fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ubsa-assist-fab .pulse,
.ubsa-assist-fab .pulse-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--orange);
  animation: ubsa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.ubsa-assist-fab .pulse-2 { animation-delay: 1.2s; }
.ubsa-assist.is-open .pulse,
.ubsa-assist.is-open .pulse-2 { display: none; }
.ubsa-assist-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 340px;
  max-height: min(520px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 35, 43, 0.18);
  transform-origin: bottom right;
  animation: ubsa-panel-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ubsa-assist-panel[hidden] { display: none; }
.ubsa-assist-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(115deg, var(--teal-deep), var(--teal));
  color: var(--white);
}
.ubsa-assist-head strong { display: block; font-family: Yantramanav, Roboto, sans-serif; font-size: 18px; line-height: 1.1; }
.ubsa-assist-head span { display: block; font-size: 12px; opacity: 0.85; }
.ubsa-assist-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  animation: ubsa-bob 2.8s ease-in-out infinite;
}
.ubsa-assist-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  cursor: pointer;
  font-size: 20px;
}
.ubsa-assist-log {
  flex: 1;
  overflow: auto;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(253, 163, 27, 0.12), transparent 28%),
    var(--soft);
}
.ubsa-msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(17, 35, 43, 0.06);
  animation: ubsa-msg-in 0.35s ease;
}
.ubsa-msg a { color: var(--teal); font-weight: 700; }
.ubsa-msg.user {
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
  background: var(--teal);
  color: var(--white);
}
.ubsa-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; background: var(--soft); }
.ubsa-chips button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ubsa-chips button:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.ubsa-assist-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.ubsa-assist-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
}
.ubsa-assist-form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}
.ubsa-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ubsa-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: ubsa-dot 1s infinite;
}
.ubsa-typing i:nth-child(2) { animation-delay: 0.15s; }
.ubsa-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ubsa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes ubsa-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes ubsa-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ubsa-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes ubsa-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ubsa-assist-fab .pulse,
  .ubsa-assist-fab .pulse-2,
  .ubsa-assist-avatar,
  .ubsa-typing i { animation: none; }
  .ubsa-assist-panel, .ubsa-msg { animation: none; }
  .ob-card, .ob-person { transition: none; }
}

/* Office bearer page */
body.ubsa-office-page main.prose {
  width: 100%;
  max-width: none;
  padding: 36px 0 72px;
}
body.ubsa-office-page .office-bearer-list {
  max-width: none !important;
  margin: 0 !important;
  font-family: inherit !important;
}
body.ubsa-office-page .office-bearer {
  display: inline-block !important;
  width: calc(33.333% - 16px);
  vertical-align: top;
  margin: 0 8px 16px !important;
}
body.ubsa-office-page .office-bearer-card {
  width: 100% !important;
  max-width: none !important;
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow) !important;
}
body.ubsa-office-page main.prose > p,
body.ubsa-office-page [data-seo-links-block] { display: none !important; }
body.ubsa-office-page main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  font-size: 15px;
}
body.ubsa-office-page main table td {
  font-size: 15px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink);
}
body.ubsa-office-page main table tr:first-child td {
  background: var(--teal-deep) !important;
  color: var(--white) !important;
  font-family: Yantramanav, Roboto, sans-serif;
  letter-spacing: 0.04em;
}

.ob-org { width: min(1560px, calc(100% - 40px)); margin: 0 auto; }
.ob-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.ob-head h2 { font-size: 36px; margin-bottom: 8px; }
.ob-head p { margin: 0; }
.ob-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ob-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.ob-stats strong {
  color: var(--teal);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 20px;
}

.ob-chart { display: flex; flex-direction: column; align-items: center; }
.ob-council {
  display: flex;
  justify-content: center;
  gap: 28px;
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 34px;
}
.ob-council::before {
  content: "";
  position: absolute;
  left: 110px;
  right: 110px;
  bottom: 16px;
  height: 2px;
  background: var(--teal);
}
.ob-council::after,
.ob-node-drop::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  background: var(--teal);
  transform: translateX(-50%);
}
.ob-council::after { bottom: 0; height: 16px; }
.ob-council .ob-node { position: relative; width: 220px; }
.ob-council .ob-node::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 2px;
  height: 18px;
  background: var(--teal);
  transform: translateX(-50%);
}
.ob-root { position: relative; z-index: 1; }
.ob-root .ob-node { width: 280px; }
.ob-wings {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  width: fit-content;
  max-width: 100%;
  margin-top: 36px;
  position: relative;
  padding-top: 28px;
}
.ob-wings::before {
  content: "";
  position: absolute;
  top: 0;
  left: 125px;
  right: 125px;
  height: 2px;
  background: var(--teal);
}
.ob-wings::after {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  width: 2px;
  height: 36px;
  background: var(--teal);
  transform: translateX(-50%);
}
.ob-wing { position: relative; width: 250px; padding-top: 16px; }
.ob-wing::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 2px;
  height: 44px;
  background: var(--teal);
  transform: translateX(-50%);
}
.ob-wing-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.ob-stack, .ob-nest { display: flex; flex-direction: column; gap: 10px; }
.ob-nest {
  margin-top: 12px;
  padding: 12px 0 0 12px;
  border-left: 2px solid var(--orange);
}
.ob-nest-label {
  margin: 0 0 4px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ob-node {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ob-node:hover { border-color: #b7d5cf; }
.ob-node img,
.ob-avatar-lg {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--teal);
}
.ob-avatar-lg {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: var(--white);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.ob-node.is-advisor img { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--teal); }
.ob-node.is-president {
  border: 2px solid var(--orange);
  background:
    radial-gradient(circle at 50% 0, rgba(253, 163, 27, 0.18), transparent 46%),
    var(--white);
}
.ob-node.is-president img,
.ob-node.is-president .ob-avatar-lg {
  width: 108px;
  height: 108px;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--orange);
}
.ob-role {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--orange-dark);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ob-node h3 { font-size: 18px; margin-bottom: 2px; }
.ob-city { margin: 0 0 10px; font-size: 13px; }
.ob-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ob-call, .ob-dial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
}
.ob-call:hover, .ob-dial:hover { background: var(--orange); color: var(--ink); }

.ob-canopy {
  margin-top: 42px;
  padding: 28px 8px 12px;
  border-top: 2px solid var(--teal);
  background:
    radial-gradient(circle at 50% 0, rgba(17, 110, 99, 0.08), transparent 24%),
    linear-gradient(var(--soft), var(--white) 220px);
  border-radius: 0 0 28px 28px;
}
.ob-tools {
  position: sticky;
  top: 88px;
  z-index: 6;
  margin-bottom: 8px;
  padding: 10px 0;
  background: rgba(242, 243, 245, 0.94);
}
.ob-search {
  width: min(640px, 100%);
  display: block;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(17, 35, 43, 0.05);
}
.ob-search:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.ob-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ob-chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ob-chip.is-on,
.ob-chip:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.ob-meta { margin: 8px 0 0; text-align: center; color: var(--teal-dark); font-size: 14px; font-weight: 700; }
.ob-tier { position: relative; padding-top: 26px; }
.ob-tier::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 14px;
  background: var(--teal);
  transform: translateX(-50%);
}
.ob-tier-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 22px;
}
.ob-tier-label::before,
.ob-tier-label::after {
  content: "";
  width: min(180px, 12vw);
  height: 2px;
  background: var(--teal);
}
.ob-tier-label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.ob-leaves {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.ob-leaf {
  flex: 0 0 228px;
  width: 228px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(17, 35, 43, 0.04);
}
.ob-leaf:hover { border-color: #b7d5cf; }
.ob-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: var(--white);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.ob-leaf strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.3; }
.ob-leaf .ob-branch { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.ob-leaf .ob-dial { grid-column: 2; min-height: 30px; justify-self: start; }
.ob-empty {
  display: none;
  margin: 18px auto 0;
  max-width: 520px;
  padding: 22px;
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 700;
}
.ob-empty.is-on { display: block; }
.ob-org.is-filtering .ob-council::before,
.ob-org.is-filtering .ob-council::after,
.ob-org.is-filtering .ob-council .ob-node::after,
.ob-org.is-filtering .ob-wings::before,
.ob-org.is-filtering .ob-wings::after,
.ob-org.is-filtering .ob-wing::before,
.ob-org.is-filtering .ob-tier::before { display: none; }

@media (max-width: 1180px) {
  .ob-wings { flex-wrap: wrap; width: min(820px, 100%); }
  .ob-wings::before, .ob-wings::after, .ob-wing::before { display: none; }
  .ob-wing { width: min(250px, 100%); }
}
@media (max-width: 760px) {
  .ob-head h2, .ob-tier-label { font-size: 28px; }
  .ob-council { flex-direction: column; align-items: center; padding-bottom: 16px; }
  .ob-council::before, .ob-council::after, .ob-council .ob-node::after { display: none; }
  .ob-council .ob-node, .ob-root .ob-node, .ob-wing, .ob-leaf { width: min(320px, 100%); flex-basis: auto; }
  .ob-wings { margin-top: 18px; }
  .ob-tools { top: 72px; }
  body.ubsa-office-page .office-bearer { width: calc(100% - 16px); }
}

body.ubsa-cash-page { background: #f4f7f6; }
.cash-app { padding: 28px 0 72px; }
.cash-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.cash-panel {
  background: var(--white);
  border: 1px solid #e7eeec;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(17, 35, 43, 0.06);
  padding: 22px;
}
.cash-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cash-field, .cash-readout {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.cash-field span, .cash-readout span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.cash-field input, .cash-readout input, .cash-table input {
  width: 100%;
  border: 1px solid #d9e2e0;
  border-radius: 12px;
  background: #f8fbfa;
  color: var(--ink);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 12px 14px;
  text-align: right;
}
.cash-field input:focus, .cash-table input:focus {
  outline: 2px solid rgba(17, 110, 99, 0.35);
  border-color: var(--teal);
  background: var(--white);
}
.cash-readout input {
  background: #eef5f3;
  color: var(--teal-deep);
}
.cash-readout-strong input {
  background: var(--teal-deep);
  color: var(--white);
  border-color: var(--teal-deep);
  font-size: 28px;
}
.cash-sheet-head p:last-child { margin: -6px 0 16px; color: var(--muted); font-size: 14px; }
.cash-table-wrap { overflow-x: auto; }
.cash-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
}
.cash-table th, .cash-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #eef2f1;
  font-variant-numeric: tabular-nums;
}
.cash-table thead th {
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cash-table thead th:first-child { border-radius: 14px 0 0 0; }
.cash-table thead th:last-child { border-radius: 0 14px 0 0; }
.cash-table tbody th {
  text-align: left;
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 18px;
}
.cash-table tbody tr:nth-child(even) { background: #f8fbfa; }
.cash-table input {
  font-size: 16px;
  padding: 8px;
  text-align: center;
}
.cash-table .amount, .cash-table .note-count { font-weight: 700; }
.cash-table tfoot th, .cash-table tfoot td {
  background: var(--teal-deep);
  color: var(--white);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 20px;
  border: 0;
}
.cash-table tfoot th { text-align: left; border-radius: 0 0 0 14px; }
.cash-table tfoot td { text-align: right; border-radius: 0 0 14px 0; font-size: 24px; }
.balance-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}
.balance-status.match { color: #0f6b45; background: #e7f8ef; }
.balance-status.mismatch { color: #9d2c2c; background: #fff1f1; }
@media (max-width: 991px) {
  .cash-layout { grid-template-columns: 1fr; }
}

body.ubsa-tool-page { background: #f4f7f6; }
.tool-page { padding: 28px 0 80px; }
.tool-layout, .story-grid, .code-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}
.tool-layout { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.story-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.code-grid { grid-template-columns: 1fr 1fr; }
.sheet {
  background: var(--white);
  border: 1px solid #e7eeec;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(17, 35, 43, 0.06);
  padding: 22px;
}
.sheet + .sheet, .copy { margin-top: 18px; }
.tool-layout .copy { margin-top: 18px; }
.sheet-kicker {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sheet h2 { font-size: 28px; margin-bottom: 8px; }
.sheet p { margin: 0 0 12px; color: #3d4a55; }
.sheet p:last-child { margin-bottom: 0; }
.sheet a { color: var(--teal); font-weight: 700; }
.sheet .btn { color: var(--white); margin: 8px 8px 0 0; }
.field, .search-line { display: grid; gap: 6px; margin-bottom: 14px; }
.field span, .search-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.field input, .field select, .search-line input {
  width: 100%;
  border: 1px solid #d9e2e0;
  border-radius: 12px;
  background: #f8fbfa;
  color: var(--ink);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  padding: 12px 14px;
}
.field input { text-align: right; font-variant-numeric: tabular-nums; }
.field select { text-align: left; font-size: 18px; }
.field input:focus, .field select:focus, .search-line input:focus {
  outline: 2px solid rgba(17, 110, 99, 0.35);
  border-color: var(--teal);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-result h2 { font-size: 34px; min-height: 1.2em; }
.result-list { display: grid; gap: 10px; margin: 16px 0; }
.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4faf8;
  color: var(--ink);
}
.result-list strong {
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.sheet-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.copy h2 { font-size: 30px; }
.copy ul { margin: 0 0 14px; padding-left: 18px; color: #3d4a55; }
.copy li { margin: 0 0 8px; }
.ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ip-card h2 { font-size: 20px; }
.ip-card p {
  margin: 0;
  color: var(--teal-deep);
  font-family: Yantramanav, Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.search-line { max-width: 460px; }
.search-line input { font-size: 18px; }
.tool-link { display: block; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
.tool-link:hover { transform: translateY(-2px); border-color: var(--teal); }
.tool-link h2 { color: var(--teal-deep); }
@media (max-width: 991px) {
  .tool-layout, .story-grid, .code-grid, .ip-grid { grid-template-columns: 1fr 1fr; }
  .tool-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .story-grid, .code-grid, .ip-grid, .field-row { grid-template-columns: 1fr; }
  .sheet-result h2 { font-size: 28px; }
}
