/*
 * South Baridhara Society - public website
 * Loads after ui-base.css (tokens, theme switch, forms, buttons).
 * Scoped to body.public-ui.
 */

/* ------------------------------------------------------------- foundation */
body.public-ui {
  --pub-max: 1180px;
  --pub-tone: var(--au-green);
  --pub-tone-soft: var(--au-green-soft);
  --pub-tone-on: #ffffff;
  line-height: 1.65;
}

body.public-ui::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 1200;
  background: linear-gradient(90deg, var(--au-green) 0 62%, var(--au-red) 62% 88%, var(--au-ink) 88% 100%);
}

body.public-ui .wrapper.ovh {
  overflow: clip;
}

body.public-ui main {
  min-height: 60vh;
}

.pub-container {
  width: 100%;
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 0 20px;
}

.pub-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: var(--au-pill);
  background: var(--au-green);
  color: #ffffff;
  font-weight: 700;
  transition: top 0.15s ease;
}

.pub-skip:focus {
  top: 14px;
  color: #ffffff;
}

/* colour tones: green / red / ink, used by cards, chips and icons */
.pub-tone-0 {
  --pub-tone: var(--au-green);
  --pub-tone-soft: var(--au-green-soft);
  --pub-tone-on: #ffffff;
}

.pub-tone-1 {
  --pub-tone: var(--au-red);
  --pub-tone-soft: var(--au-red-soft);
  --pub-tone-on: #ffffff;
}

.pub-tone-2 {
  --pub-tone: var(--au-ink);
  --pub-tone-soft: var(--au-ink-soft);
  --pub-tone-on: var(--au-bg);
}

/* ------------------------------------------------------------------ header */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 16px 16px 0;
  pointer-events: none;
}

.pub-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 8px 10px 8px 12px;
  background: color-mix(in srgb, var(--au-surface) 86%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--au-border);
  border-radius: var(--au-pill);
  box-shadow: var(--au-shadow);
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--au-text);
  text-decoration: none;
}

.pub-brand img {
  border-radius: 14px;
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
}

.pub-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pub-brand strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--au-text);
}

.pub-brand small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--au-muted);
}

.pub-bar .pub-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  width: auto;
  float: none;
}

.pub-bar .pub-nav > li {
  float: none;
  position: static;
  display: block;
  padding: 0;
  height: auto;
  line-height: 1.2;
}

.pub-bar .pub-nav > li > a.list-item {
  display: block;
  height: auto;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: var(--au-pill);
  color: var(--au-text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pub-bar .pub-nav > li > a.list-item:hover {
  background: var(--au-surface-2);
  color: var(--au-green);
}

.pub-bar .pub-nav > li > a.list-item.is-active {
  background: var(--au-green-soft);
  color: var(--au-green);
}

.pub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pub-bar .pub-nav + .pub-actions {
  margin-left: 0;
}

.pub-actions .au-theme-switch {
  margin-right: 6px;
}

.pub-actions .ud-btn {
  padding: 10px 22px;
  font-size: 0.92rem;
}

/* mobile header */
body.public-ui .mobile-menu .header {
  height: auto;
  line-height: 1.2;
  padding: 10px 16px !important;
  background: color-mix(in srgb, var(--au-surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--au-border) !important;
  border-radius: 0 0 var(--au-r-lg) var(--au-r-lg);
}

body.public-ui .mobilie_header_nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: transparent;
}

body.public-ui .mobile_menu_bar {
  min-height: 56px;
}

body.public-ui .mobile_logo img {
  border-radius: 14px;
  background: #ffffff;
  padding: 3px;
}

.pub-mobile-link {
  margin-left: 4px;
  padding: 8px 16px;
  border-radius: var(--au-pill);
  background: var(--au-green-soft);
  color: var(--au-green);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

body.public-ui .mobile-menu .au-theme-switch {
  margin-right: 8px;
}

html[data-theme="dark"] body.public-ui .menubar img {
  filter: invert(1);
}

body.public-ui .mm-menu,
body.public-ui .mm-panel,
body.public-ui #menu {
  background: var(--au-surface) !important;
  color: var(--au-text);
}

body.public-ui .mm-listview > li > a {
  color: var(--au-text);
  font-weight: 600;
}

body.public-ui .mm-listview > li > a.is-active {
  color: var(--au-green);
}

body.public-ui .mm-listview > li:not(.mm-divider)::after {
  border-color: var(--au-border);
}

/* ---------------------------------------------------------- shared pieces */
.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--au-pill);
  background: var(--au-green-soft);
  color: var(--au-green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pub-eyebrow-red {
  background: var(--au-red-soft);
  color: var(--au-red-600);
}

html[data-theme="dark"] .pub-eyebrow-red {
  color: var(--au-red);
}

.pub-eyebrow-ink {
  background: var(--au-ink-soft);
  color: var(--au-text);
}

.pub-eyebrow-light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.pub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--au-red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--au-red) 25%, transparent);
}

.pub-section {
  padding: 56px 0;
}

.pub-section-tight {
  padding: 28px 0;
}

.pub-heading {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.pub-heading h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pub-heading p {
  margin: 0;
  font-size: 1.02rem;
}

.pub-grid {
  display: grid;
  gap: 20px;
}

.pub-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pub-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pub-card {
  position: relative;
  padding: 26px;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-lg);
  box-shadow: var(--au-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pub-card::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 0;
  width: 44px;
  height: 4px;
  border-radius: var(--au-pill) var(--au-pill) 0 0;
  background: var(--pub-tone);
  transition: width 0.25s ease;
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--au-shadow-lift);
  border-color: color-mix(in srgb, var(--pub-tone) 35%, var(--au-border));
}

.pub-card:hover::after {
  width: calc(100% - 52px);
}

.pub-card h3 {
  margin: 18px 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pub-card p {
  margin: 0;
  font-size: 0.94rem;
}

.pub-card small {
  display: block;
  margin-top: 10px;
  color: var(--au-muted);
}

.pub-card a:not(.ud-btn) {
  color: var(--au-text);
  font-weight: 700;
}

.pub-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--pub-tone);
  color: var(--pub-tone-on);
  font-size: 1.3rem;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--pub-tone) 32%, transparent);
  transition: transform 0.2s ease;
}

.pub-card:hover .pub-icon {
  transform: rotate(-6deg) scale(1.06);
}

.pub-shape {
  position: absolute;
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;
}

.pub-shape-green {
  background: linear-gradient(135deg, var(--au-green-400), var(--au-green));
}

.pub-shape-red {
  background: linear-gradient(135deg, #ff7b80, var(--au-red));
}

.pub-shape-ink {
  background: var(--au-ink);
}

.pub-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: 20px;
  box-shadow: var(--au-shadow-lift);
}

.pub-float img {
  border-radius: 14px;
  background: #ffffff;
  padding: 3px;
}

.pub-float strong {
  display: block;
  font-size: 0.9rem;
  color: var(--au-text);
}

.pub-float small {
  color: var(--au-muted);
  font-size: 0.78rem;
}

/* -------------------------------------------------------------------- hero */
.pub-hero {
  padding: 40px 0 36px;
}

.pub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.pub-hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pub-grad {
  background: linear-gradient(100deg, var(--au-green) 10%, var(--au-green-400) 45%, var(--au-red) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pub-hero-copy p {
  max-width: 520px;
  margin: 0 0 28px;
  font-size: 1.1rem;
}

.pub-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pub-cta .ud-btn {
  padding: 14px 30px;
}

.pub-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.pub-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-pill);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--au-text);
  box-shadow: var(--au-shadow);
}

.pub-points i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pub-tone-soft);
  color: var(--pub-tone);
  font-size: 0.8rem;
}

.pub-tone-2.pub-points li i,
.pub-points li.pub-tone-2 i {
  color: var(--au-text);
}

.pub-hero-media {
  position: relative;
  padding: 18px 18px 34px 0;
}

.pub-hero-media .pub-shape-green {
  right: 0;
  top: 0;
  width: 62%;
  height: 62%;
  border-radius: 36px;
}

.pub-hero-media .pub-shape-red {
  left: -14px;
  bottom: 6px;
  width: 38%;
  height: 34%;
  border-radius: 30px;
}

.pub-hero-media .pub-shape-ink {
  right: -10px;
  bottom: 18px;
  width: 22%;
  height: 22%;
  border-radius: 24px;
}

.pub-slider {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 36px;
  border: 6px solid var(--au-surface);
  box-shadow: var(--au-shadow-lift);
  background: var(--au-surface-2);
}

.pub-slider .item img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.pub-slider .owl-nav {
  position: absolute;
  inset: auto 16px 16px auto;
  display: flex;
  gap: 8px;
  margin: 0;
}

.pub-slider .owl-nav button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--au-surface) 90%, transparent) !important;
  color: var(--au-text) !important;
  font-size: 0.9rem;
  box-shadow: var(--au-shadow);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pub-slider .owl-nav button:hover {
  background: var(--au-green) !important;
  color: #ffffff !important;
}

.pub-slider .owl-dots {
  position: absolute;
  inset: auto auto 22px 22px;
  display: flex;
  gap: 6px;
  margin: 0;
}

.pub-slider .owl-dot span {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0;
  border-radius: var(--au-pill);
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.pub-slider .owl-dot.active span {
  width: 26px;
  background: #ffffff;
}

.pub-float-logo {
  left: -18px;
  bottom: 0;
}

/* -------------------------------------------------------- community band */
.pub-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 36px;
  background: linear-gradient(135deg, #0f7b3f 0%, #0b6633 62%, #0a4a26 100%);
  color: #ffffff;
  overflow: hidden;
}

.pub-band::before,
.pub-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.pub-band::before {
  right: -60px;
  top: -70px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
}

.pub-band::after {
  inset: auto 0 0 0;
  height: 6px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--au-green-400) 0 62%, var(--au-red) 62% 88%, #ffffff 88% 100%);
}

.pub-band-copy {
  position: relative;
  z-index: 1;
}

body.public-ui .pub-band h2 {
  margin: 16px 0 12px;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.public-ui .pub-band p {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
}

.pub-band-logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.pub-band-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 240px;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------- committee */
.pub-committee-group + .pub-committee-group {
  margin-top: 40px;
}

.pub-chip {
  display: table;
  margin: 0 auto 22px;
  padding: 9px 22px;
  border-radius: var(--au-pill);
  background: var(--pub-tone-soft);
  color: var(--pub-tone);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-chip.pub-tone-2 {
  color: var(--au-text);
}

.pub-people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.pub-person {
  position: relative;
  flex: 0 1 250px;
  padding: 28px 20px 24px;
  text-align: center;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-lg);
  box-shadow: var(--au-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-person::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 78px;
  background: linear-gradient(180deg, var(--pub-tone-soft), transparent);
}

.pub-person:hover {
  transform: translateY(-4px);
  box-shadow: var(--au-shadow-lift);
}

.pub-avatar {
  position: relative;
  display: inline-block;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(var(--pub-tone), var(--au-surface) 40%, var(--pub-tone));
}

.pub-avatar img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--au-surface);
  background: var(--au-surface-2);
}

.pub-person h4 {
  position: relative;
  margin: 16px 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
}

.pub-person p {
  position: relative;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------- about */
.pub-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.pub-about-media {
  position: relative;
  padding: 0 0 28px 28px;
}

.pub-about-media .pub-shape-red {
  left: 0;
  top: 28px;
  width: 55%;
  height: 70%;
  border-radius: 34px;
}

.pub-about-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 34px;
  border: 6px solid var(--au-surface);
  box-shadow: var(--au-shadow-lift);
}

.pub-float-badge {
  right: -10px;
  bottom: 0;
  padding: 10px;
  border-radius: 22px;
}

.pub-float-badge img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  padding: 0;
}

.pub-about-copy h2 {
  margin: 16px 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pub-about-copy p {
  font-size: 1.02rem;
}

.pub-checks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pub-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-md);
  font-weight: 600;
  color: var(--au-text);
}

.pub-checks i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--au-green);
  color: #ffffff;
  font-size: 0.72rem;
}

.pub-checks li:nth-child(2) i {
  background: var(--au-red);
}

.pub-checks li:nth-child(3) i {
  background: var(--au-ink);
  color: var(--au-bg);
}

/* ----------------------------------------------------------------- contact */
.pub-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pub-card-cta .ud-btn {
  margin-top: 14px;
  padding: 10px 24px;
}

.pub-map {
  min-height: 220px;
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-lg);
  box-shadow: var(--au-shadow);
  overflow: hidden;
  background: var(--au-surface);
}

.pub-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

html[data-theme="dark"] .pub-map iframe {
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7);
}

.pub-map-wide,
.pub-map-wide iframe {
  min-height: 400px;
}

.pub-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.pub-contact-info h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pub-contact-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.pub-contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-lg);
  box-shadow: var(--au-shadow);
}

.pub-contact-list h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 800;
}

.pub-contact-list p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--au-muted);
}

.pub-form-card {
  padding: 34px;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: 32px;
  box-shadow: var(--au-shadow-lift);
}

.pub-form-card h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
}

.pub-form-card > p {
  margin-bottom: 22px;
}

.pub-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pub-form-field {
  margin: 16px 0 22px;
}

.pub-form-card label {
  display: block;
  margin-bottom: 8px;
}

.pub-form-card .form-control {
  width: 100%;
}

.pub-form-card textarea.form-control {
  min-height: 150px;
}

/* -------------------------------------------------------------- page hero */
.pub-pagehero {
  padding: 24px 0 8px;
}

.pub-pagehero-card {
  position: relative;
  padding: 56px 48px;
  border-radius: 36px;
  background: linear-gradient(135deg, #0f7b3f 0%, #0b6633 65%, #0a4a26 100%);
  color: #ffffff;
  overflow: hidden;
}

.pub-pagehero-card .pub-shape-green {
  right: -50px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.pub-pagehero-card .pub-shape-red {
  right: 150px;
  bottom: -26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--au-red);
}

.pub-pagehero-card > :not(.pub-shape) {
  position: relative;
  z-index: 1;
}

.pub-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.pub-crumbs a {
  color: #ffffff;
}

body.public-ui .pub-pagehero-card h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.public-ui .pub-pagehero-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

/* ------------------------------------------------------- legal pages (old markup) */
body.public-ui .page-header {
  position: relative;
  max-width: calc(var(--pub-max) - 40px);
  margin: 24px auto 0;
  padding: 56px 24px !important;
  border-radius: 36px;
  overflow: hidden;
  background-image: linear-gradient(135deg, #0f7b3f 0%, #0b6633 65%, #0a4a26 100%) !important;
}

body.public-ui .page-header .page-title {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.public-ui .page-header .breadcrumb {
  background: transparent;
}

body.public-ui .page-header .breadcrumb a,
body.public-ui .page-header .breadcrumb-item.active,
body.public-ui .page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.9);
}

body.public-ui .legal-content {
  padding: 40px;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: 32px;
  box-shadow: var(--au-shadow);
}

body.public-ui .legal-content h2,
body.public-ui .legal-content h3,
body.public-ui .legal-content h4 {
  color: var(--au-text);
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.public-ui .legal-content h3.text-thm2 {
  color: var(--au-green) !important;
}

body.public-ui .legal-content p,
body.public-ui .legal-content li {
  color: var(--au-muted);
}

body.public-ui .legal-content .lead,
body.public-ui .legal-content .text-dark {
  color: var(--au-text) !important;
}

body.public-ui .legal-content a {
  color: var(--au-green);
  font-weight: 600;
}

/* --------------------------------------------------------------- auth pages */
body.public-ui .our-register {
  padding: 40px 0 64px;
}

body.public-ui .our-register .main-title .title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.public-ui .log-reg-form {
  position: relative;
  background: var(--au-surface) !important;
  border: 1px solid var(--au-border);
  border-radius: 32px !important;
  box-shadow: var(--au-shadow-lift) !important;
  overflow: hidden;
}

body.public-ui .log-reg-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--au-green) 0 62%, var(--au-red) 62% 88%, var(--au-ink) 88% 100%);
}

body.public-ui .log-reg-form h4 {
  font-weight: 800;
}

body.public-ui .log-reg-form .nav-tabs {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--au-border);
  border-radius: var(--au-pill);
  background: var(--au-surface-2);
}

body.public-ui .log-reg-form .nav-tabs .nav-link {
  flex: 1;
  border: 0;
  padding: 10px 16px;
}

body.public-ui .log-reg-form .custom_checkbox .checkmark {
  border-radius: 6px;
  border-color: var(--au-border);
  background: var(--au-surface-2);
}

body.public-ui .log-reg-form a {
  color: var(--au-green);
  font-weight: 600;
}

body.public-ui .log-reg-form a.text-muted {
  color: var(--au-muted) !important;
}

body.public-ui .log-reg-form .ud-btn {
  padding: 14px 28px;
}

/* -------------------------------------------------------------------- footer */
.pub-footer {
  padding: 56px 0 28px;
}

.pub-footer-card {
  position: relative;
  padding: 44px 44px 24px;
  border-radius: 36px;
  background: #0f1512;
  color: #c4d0c9;
  overflow: hidden;
}

html[data-theme="dark"] .pub-footer-card {
  background: var(--au-surface);
  border: 1px solid var(--au-border);
}

.pub-footer-card::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 168, 102, 0.35), transparent 70%);
  pointer-events: none;
}

.pub-footer-card::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 36, 43, 0.28), transparent 70%);
  pointer-events: none;
}

.pub-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 36px;
}

body.public-ui .pub-footer .pub-brand strong,
body.public-ui .pub-footer h6 {
  color: #ffffff;
}

.pub-footer .pub-brand small {
  color: #9db0a5;
}

body.public-ui .pub-footer-brand p {
  max-width: 340px;
  margin: 18px 0 0;
  color: #b3c1b9;
  font-size: 0.94rem;
}

.pub-footer h6 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pub-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-footer ul a {
  color: #c4d0c9;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.pub-footer ul a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.pub-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.public-ui .pub-footer-bottom p {
  margin: 0;
  color: #9db0a5;
  font-size: 0.86rem;
}

.pub-tricolor {
  width: 96px;
  height: 6px;
  border-radius: var(--au-pill);
  background: linear-gradient(90deg, var(--au-green) 0 62%, var(--au-red) 62% 88%, #ffffff 88% 100%);
}

body.public-ui .scrollToHome {
  background: var(--au-green);
  border-radius: 14px;
  color: #ffffff;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .pub-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .pub-hero-grid,
  .pub-about,
  .pub-contact,
  .pub-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub-hero-grid {
    gap: 40px;
  }

  .pub-hero-media {
    padding-left: 12px;
  }

  .pub-slider .item img {
    height: 340px;
  }

  .pub-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-about {
    gap: 40px;
  }

  .pub-about-photo {
    height: 320px;
  }

  .pub-band {
    padding: 34px 28px;
  }

  .pub-pagehero-card {
    padding: 40px 28px;
  }
}

@media (max-width: 640px) {
  .pub-section {
    padding: 40px 0;
  }

  .pub-grid-4,
  .pub-grid-3,
  .pub-contact-grid,
  .pub-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .pub-footer-card {
    padding: 32px 24px 20px;
    border-radius: 28px;
  }

  .pub-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .pub-form-card,
  body.public-ui .legal-content {
    padding: 24px 20px;
  }

  .pub-float-logo {
    left: 0;
  }

  .pub-person {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-ui *,
  body.public-ui *::before,
  body.public-ui *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .pub-card:hover,
  .pub-person:hover {
    transform: none;
  }
}

/* dark theme: bright fills need dark text to stay readable */
html[data-theme="dark"] .pub-tone-0,
html[data-theme="dark"] .pub-tone-1 {
  --pub-tone-on: #04150b;
}

html[data-theme="dark"] .pub-checks i,
html[data-theme="dark"] .pub-skip {
  color: #04150b;
}

body.public-ui .log-reg-form {
  padding-top: 34px !important;
}
