/* =====================================================================
   Royal Rajput Sangthan — public design system
   Palette: deep royal maroon + antique gold on warm ivory.
   Type: Tiro Devanagari Hindi (display, Latin+Devanagari), Mukta (UI/body).
   ===================================================================== */

:root {
  --rrs-maroon: #9b1418;
  --rrs-maroon-700: #7a0f12;
  --rrs-maroon-900: #3a0707;
  --rrs-maroon-500: #c0281e;
  --rrs-maroon-100: #fde8df;
  --rrs-gold: #f2b705;
  --rrs-gold-600: #c47f00;
  --rrs-gold-300: #ffd447;
  --rrs-gold-100: #fff3cf;
  --rrs-saffron: #f07b10;
  --rrs-bhagwa: #ff8a00;
  --rrs-laurel: #2f6b2a;
  --rrs-kesar-grad: linear-gradient(135deg, #ff9d00 0%, #f07b10 45%, #d9480f 100%);
  --rrs-sun-grad: linear-gradient(135deg, #ffe066 0%, #f2b705 45%, #e08e00 100%);
  --rrs-royal-grad: linear-gradient(135deg, #3a0707 0%, #7a0f12 55%, #9b1418 100%);
  --rrs-ivory: #fff9ee;
  --rrs-sand: #fdf0da;
  --rrs-ink: #221a17;
  --rrs-body: #3b322d;
  --rrs-muted: #74685f;
  --rrs-border: #f0dcb8;
  --rrs-success: #1f7a4d;
  --rrs-radius: 14px;
  --rrs-radius-sm: 10px;
  --rrs-shadow-sm: 0 1px 2px rgba(58, 7, 7, .06), 0 1px 3px rgba(58, 7, 7, .05);
  --rrs-shadow: 0 6px 24px -8px rgba(58, 7, 7, .18);
  --rrs-shadow-lg: 0 20px 48px -16px rgba(58, 7, 7, .28);
  --rrs-font-display: "Rozha One", "Tiro Devanagari Hindi", Georgia, serif;
  --rrs-font-deco: "Yatra One", "Rozha One", serif;
  --rrs-font-body: "Mukta", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rrs-header-h: 72px;
  --rrs-bottom-nav-h: 64px;

  --bs-primary: var(--rrs-maroon);
  --bs-primary-rgb: 155, 20, 24;
  --bs-link-color: var(--rrs-maroon);
  --bs-link-color-rgb: 155, 20, 24;
  --bs-link-hover-color: var(--rrs-maroon-500);
  --bs-body-font-family: var(--rrs-font-body);
  --bs-body-color: var(--rrs-body);
  --bs-body-bg: var(--rrs-ivory);
  --bs-border-color: var(--rrs-border);
  --bs-border-radius: var(--rrs-radius-sm);
  --bs-focus-ring-color: rgba(242, 183, 5, .4);
}

/* ---------------------------------------------------------------- base */
html { scroll-behavior: smooth; }
body {
  font-family: var(--rrs-font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--rrs-ivory);
  color: var(--rrs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, .display-font {
  font-family: var(--rrs-font-display);
  color: var(--rrs-ink);
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.25;
}
h5, h6 { color: var(--rrs-ink); font-weight: 600; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: var(--rrs-gold-300); color: var(--rrs-maroon-900); }
:focus-visible { outline: 3px solid var(--rrs-gold-300); outline-offset: 2px; border-radius: 4px; }
.text-maroon { color: var(--rrs-maroon) !important; }
.text-gold { color: var(--rrs-gold-600) !important; }
.text-muted { color: var(--rrs-muted) !important; }
.bg-ivory { background: var(--rrs-ivory) !important; }
.bg-sand { background: var(--rrs-sand) !important; }
.bg-maroon { background: var(--rrs-maroon) !important; color: #fff; }
.fw-600 { font-weight: 600; }
.small-caps { font-variant: small-caps; letter-spacing: .06em; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn { font-weight: 600; border-radius: 999px; padding: .55rem 1.25rem; letter-spacing: .01em; }
.btn-sm { padding: .35rem .9rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1.05rem; }
.btn-primary, .btn-maroon {
  --bs-btn-bg: var(--rrs-maroon); --bs-btn-border-color: var(--rrs-maroon);
  --bs-btn-hover-bg: var(--rrs-maroon-700); --bs-btn-hover-border-color: var(--rrs-maroon-700);
  --bs-btn-active-bg: var(--rrs-maroon-900); --bs-btn-active-border-color: var(--rrs-maroon-900);
  --bs-btn-disabled-bg: var(--rrs-maroon); --bs-btn-disabled-border-color: var(--rrs-maroon);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
}
.btn-gold {
  --bs-btn-bg: var(--rrs-gold); --bs-btn-border-color: var(--rrs-gold); --bs-btn-color: var(--rrs-maroon-900);
  --bs-btn-hover-bg: var(--rrs-gold-300); --bs-btn-hover-border-color: var(--rrs-gold-300); --bs-btn-hover-color: var(--rrs-maroon-900);
  --bs-btn-active-bg: var(--rrs-gold-600); --bs-btn-active-border-color: var(--rrs-gold-600);
}
.btn-outline-primary, .btn-outline-maroon {
  --bs-btn-color: var(--rrs-maroon); --bs-btn-border-color: rgba(155, 20, 24, .35);
  --bs-btn-hover-bg: var(--rrs-maroon); --bs-btn-hover-border-color: var(--rrs-maroon); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rrs-maroon-700); --bs-btn-active-border-color: var(--rrs-maroon-700);
}
.btn-outline-light-gold {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 212, 71, .7);
  --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-border-color: var(--rrs-gold-300); --bs-btn-hover-color: #fff;
}
.btn-whatsapp { --bs-btn-bg: #1fa855; --bs-btn-border-color: #1fa855; --bs-btn-color: #fff; --bs-btn-hover-bg: #178a45; --bs-btn-hover-border-color: #178a45; --bs-btn-hover-color: #fff; }
.btn-soft { background: var(--rrs-maroon-100); color: var(--rrs-maroon); border: 0; }
.btn-soft:hover { background: #efd4d7; color: var(--rrs-maroon-700); }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; }

.form-control, .form-select { border-radius: var(--rrs-radius-sm); border-color: var(--rrs-border); padding: .6rem .9rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--rrs-gold); box-shadow: 0 0 0 .2rem rgba(242, 183, 5, .2); }
.form-label { font-weight: 600; color: var(--rrs-ink); font-size: .92rem; margin-bottom: .35rem; }
.form-text { color: var(--rrs-muted); }
.form-check-input:checked { background-color: var(--rrs-maroon); border-color: var(--rrs-maroon); }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--rrs-muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.6rem; }

/* ---------------------------------------------------------------- ornaments */
.ornament {
  display: flex; align-items: center; gap: 12px; color: var(--rrs-gold);
  justify-content: center; margin: .5rem 0 1rem;
}
.ornament::before, .ornament::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--rrs-gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 18px; height: 18px; }
.ornament.start { justify-content: flex-start; }
.ornament.start::before { display: none; }

.pattern-bg {
  background-color: var(--rrs-maroon-900);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(242, 183, 5, .25), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(192, 40, 30, .7), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23f2b705' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M32 4 L60 32 L32 60 L4 32 Z'/%3E%3Ccircle cx='32' cy='32' r='9'/%3E%3Cpath d='M32 18 L46 32 L32 46 L18 32 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.jaali-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%239b1418' stroke-opacity='.05'%3E%3Cpath d='M28 2 L54 28 L28 54 L2 28 Z'/%3E%3Ccircle cx='28' cy='28' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- top bar & header */
.topbar { background: var(--rrs-maroon-900); color: rgba(255, 255, 255, .78); font-size: .84rem; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--rrs-gold-300); }
.topbar .sep { opacity: .3; margin: 0 .6rem; }

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rrs-border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--rrs-shadow); }
.site-header .navbar { min-height: var(--rrs-header-h); padding: .35rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--rrs-ink); }
.brand img { width: 48px; height: 48px; }
.brand-text { line-height: 1.05; }
.brand-text .hi { font-family: var(--rrs-font-display); font-size: 1.22rem; color: var(--rrs-maroon); display: block; }
.brand-text .en { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rrs-gold-600); font-weight: 700; }
.site-header .nav-link {
  font-weight: 600; color: var(--rrs-ink); padding: .5rem .7rem !important; border-radius: 999px; font-size: .95rem;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--rrs-maroon); background: var(--rrs-maroon-100); }
.site-header .dropdown-menu {
  border: 1px solid var(--rrs-border); border-radius: var(--rrs-radius); box-shadow: var(--rrs-shadow-lg);
  padding: .5rem; min-width: 240px; margin-top: .4rem !important;
}
.site-header .dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-weight: 500; display: flex; align-items: center; gap: .6rem; }
.site-header .dropdown-item .bi { color: var(--rrs-gold-600); }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: var(--rrs-maroon-100); color: var(--rrs-maroon); }
.mega-menu { min-width: 520px !important; }
.mega-menu .row > div { padding: .25rem; }
.mega-menu .menu-tile { display: flex; gap: .7rem; padding: .65rem; border-radius: 10px; color: var(--rrs-ink); }
.mega-menu .menu-tile:hover { background: var(--rrs-sand); }
.mega-menu .menu-tile .bi { font-size: 1.25rem; color: var(--rrs-maroon); }
.mega-menu .menu-tile small { display: block; color: var(--rrs-muted); font-size: .8rem; line-height: 1.3; }
.header-search { width: 230px; }
.header-search .form-control { border-radius: 999px; padding-top: .45rem; padding-bottom: .45rem; background: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rrs-gold-300); background: var(--rrs-sand); }
.avatar-lg { width: 96px; height: 96px; }
.avatar-xl { width: 128px; height: 128px; border-width: 4px; }
.avatar-initials { display: inline-grid; place-items: center; font-weight: 700; color: var(--rrs-maroon); background: var(--rrs-gold-100); }
.notif-dot { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; font-size: .68rem; border-radius: 9px; background: var(--rrs-saffron); color: #fff; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

/* offcanvas mobile menu */
.offcanvas-menu { background: var(--rrs-ivory); width: 86vw !important; max-width: 360px; }
.offcanvas-menu .offcanvas-header { background: var(--rrs-maroon); color: #fff; }
.offcanvas-menu .list-group-item { background: transparent; border-color: var(--rrs-border); padding: .8rem 1rem; font-weight: 600; display: flex; align-items: center; gap: .8rem; color: var(--rrs-ink); }
.offcanvas-menu .list-group-item .bi { color: var(--rrs-maroon); font-size: 1.1rem; width: 22px; text-align: center; }
.offcanvas-menu .menu-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--rrs-gold-600); font-weight: 700; padding: 1rem 1rem .35rem; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero .carousel-item { min-height: 560px; }
.hero-slide { position: relative; min-height: 560px; display: flex; align-items: center; padding: 4.5rem 0 7rem; }
.hero-slide .hero-art { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .9; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(58, 7, 7, .92) 0%, rgba(58, 7, 7, .7) 45%, rgba(58, 7, 7, .2) 100%); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 212, 71, .5); color: var(--rrs-gold-300); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; background: rgba(0, 0, 0, .15); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 1rem 0 .75rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero h1 .gold { color: var(--rrs-gold-300); }
.hero p.lead { color: rgba(255, 255, 255, .86); max-width: 620px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.hero .carousel-indicators { margin-bottom: 6.2rem; justify-content: flex-start; margin-left: max(12px, calc((100vw - 1296px) / 2 + 12px)); }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; background: var(--rrs-gold-300); border: 0; }

/* discovery search panel overlapping the hero */
.discover { position: relative; z-index: 5; margin-top: -84px; }
.discover-card { background: #fff; border-radius: 20px; box-shadow: var(--rrs-shadow-lg); padding: 1.25rem; border: 1px solid var(--rrs-border); }
.discover-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: .9rem; }
.discover-tabs::-webkit-scrollbar { display: none; }
.discover-tabs button { white-space: nowrap; border: 1px solid var(--rrs-border); background: var(--rrs-ivory); color: var(--rrs-body); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .9rem; }
.discover-tabs button.active { background: var(--rrs-maroon); color: #fff; border-color: var(--rrs-maroon); }
.quick-needs { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.quick-needs a { font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; background: var(--rrs-gold-100); color: var(--rrs-maroon-700); font-weight: 600; }
.quick-needs a:hover { background: var(--rrs-gold-300); }

/* ---------------------------------------------------------------- sections */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-head { margin-bottom: 2rem; }
.section-kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--rrs-gold-600); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .25rem 0 .35rem; }
.section-sub { color: var(--rrs-muted); max-width: 640px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }
.link-arrow { font-weight: 700; color: var(--rrs-maroon); display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow:hover { gap: .6rem; color: var(--rrs-maroon-500); }
.link-arrow, .link-arrow .bi { transition: all .2s ease; }

.page-hero { padding: 3rem 0 2.5rem; color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: .35rem 0; }
.page-hero p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 700px; }
.page-hero .breadcrumb { margin-bottom: .25rem; font-size: .85rem; }
.page-hero .breadcrumb a { color: var(--rrs-gold-300); }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- stats */
.stats-band { border-radius: 22px; padding: 2rem 1rem; color: #fff; }
.stat { text-align: center; padding: .5rem; }
.stat .num { font-family: var(--rrs-font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--rrs-gold-300); line-height: 1; }
.stat .lbl { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-top: .35rem; }
.stat .bi { font-size: 1.3rem; color: rgba(255, 255, 255, .45); }

/* ---------------------------------------------------------------- cards */
.card { border: 1px solid var(--rrs-border); border-radius: var(--rrs-radius); box-shadow: var(--rrs-shadow-sm); background: #fff; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--rrs-shadow); border-color: #e2cfae; }
.card-img-wrap { position: relative; overflow: hidden; border-radius: var(--rrs-radius) var(--rrs-radius) 0 0; aspect-ratio: 16 / 10; background: var(--rrs-sand); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-hover:hover .card-img-wrap img { transform: scale(1.04); }
.card-chip { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .94); color: var(--rrs-maroon); font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.card-title { font-family: var(--rrs-font-body); font-weight: 700; font-size: 1.06rem; color: var(--rrs-ink); line-height: 1.35; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--rrs-maroon); }
.stretched-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .meta { font-size: .85rem; color: var(--rrs-muted); display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.card .meta .bi { color: var(--rrs-gold-600); margin-right: .2rem; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge-verified { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 700; color: #0f6b3f; background: #e3f4ea; padding: .15rem .55rem; border-radius: 999px; }
.badge-soft { background: var(--rrs-gold-100); color: var(--rrs-maroon-700); font-weight: 600; border-radius: 999px; padding: .2rem .6rem; font-size: .76rem; }
.badge-cat { background: var(--rrs-maroon-100); color: var(--rrs-maroon); font-weight: 700; border-radius: 999px; padding: .2rem .65rem; font-size: .75rem; }

/* business card */
.biz-card .biz-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--rrs-sand); border: 1px solid var(--rrs-border); flex-shrink: 0; }
.biz-card .biz-logo.initials { display: grid; place-items: center; font-weight: 800; color: var(--rrs-maroon); background: var(--rrs-gold-100); font-size: 1.15rem; }
.biz-card .actions { display: flex; gap: .4rem; position: relative; z-index: 2; }
.biz-card .actions .btn { flex: 1; padding: .4rem .5rem; font-size: .85rem; }
.list-view .biz-card .card-body { display: flex; gap: 1rem; align-items: flex-start; }

/* job card */
.job-card .company-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--rrs-gold-100); color: var(--rrs-maroon); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.job-card .salary { font-weight: 700; color: var(--rrs-success); }
.tag { display: inline-block; font-size: .78rem; padding: .18rem .6rem; border-radius: 6px; background: var(--rrs-sand); color: var(--rrs-body); margin: 0 .25rem .25rem 0; font-weight: 600; }

/* event card */
.event-date { width: 64px; flex-shrink: 0; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--rrs-border); background: #fff; }
.event-date .m { background: var(--rrs-maroon); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: .2rem 0; font-weight: 700; }
.event-date .d { font-family: var(--rrs-font-display); font-size: 1.6rem; color: var(--rrs-ink); line-height: 1.3; }

/* mahapurush card */
.mp-card { text-align: center; padding: 1.5rem 1rem; position: relative; overflow: hidden; }
.mp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 80px; background: linear-gradient(135deg, var(--rrs-maroon), var(--rrs-maroon-500)); }
.mp-card .portrait { position: relative; width: 116px; height: 116px; border-radius: 50%; object-fit: cover; border: 4px solid var(--rrs-gold-300); box-shadow: var(--rrs-shadow); background: var(--rrs-sand); margin-top: 6px; }
.mp-card .title { color: var(--rrs-gold-600); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* member card */
.member-card { text-align: center; }
.member-card .avatar { width: 84px; height: 84px; border-width: 3px; }

/* marriage card */
.family-card .pid { font-family: var(--rrs-font-display); font-size: 1.15rem; color: var(--rrs-maroon); }
.family-card .side { font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.family-card .side.boy { background: #e6effa; color: #1d4f91; }
.family-card .side.girl { background: #fbe9f1; color: #9a2357; }
.family-card dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; font-size: .9rem; margin: 0; }
.family-card dt { color: var(--rrs-muted); font-weight: 500; }
.family-card dd { margin: 0; font-weight: 600; color: var(--rrs-ink); }
.privacy-note { font-size: .85rem; background: var(--rrs-gold-100); border: 1px dashed var(--rrs-gold); border-radius: 12px; padding: .75rem 1rem; color: var(--rrs-maroon-700); }

/* category tiles */
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.1rem .5rem; border-radius: var(--rrs-radius); background: #fff; border: 1px solid var(--rrs-border); color: var(--rrs-ink); text-align: center; font-weight: 600; font-size: .9rem; height: 100%; transition: all .2s ease; }
.cat-tile .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: var(--rrs-maroon-100); color: var(--rrs-maroon); transition: all .2s ease; }
.cat-tile:hover { border-color: var(--rrs-gold); box-shadow: var(--rrs-shadow); color: var(--rrs-maroon); }
.cat-tile:hover .icon { background: var(--rrs-maroon); color: var(--rrs-gold-300); }
.cat-tile .count { font-size: .76rem; color: var(--rrs-muted); font-weight: 500; }

/* feature tiles (history/heritage) */
.heritage-tile { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; background: var(--rrs-maroon-900); }
.heritage-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s ease, opacity .3s ease; }
.heritage-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(58, 7, 7, .92) 100%); }
.heritage-tile .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem; z-index: 2; }
.heritage-tile .caption h3 { color: #fff; font-size: 1.25rem; margin: .2rem 0 0; }
.heritage-tile .caption small { color: var(--rrs-gold-300); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .72rem; }
.heritage-tile:hover img { transform: scale(1.06); opacity: 1; }

/* announcement ticker */
.ticker { background: var(--rrs-gold-100); border-bottom: 1px solid #f0e0b0; font-size: .92rem; }
.ticker .label { background: var(--rrs-maroon); color: #fff; font-weight: 700; padding: .45rem .9rem; white-space: nowrap; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.ticker .track { overflow: hidden; white-space: nowrap; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .track-inner { display: inline-block; padding-left: 100%; animation: ticker 35s linear infinite; }
.ticker .track-inner a { color: var(--rrs-maroon-700); font-weight: 600; margin-right: 3rem; }
.ticker:hover .track-inner { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track-inner { animation: none; padding-left: 0; } }

/* timeline (mahapurush / history) */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(var(--rrs-gold), var(--rrs-maroon)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.75rem; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--rrs-gold); box-shadow: 0 0 0 3px var(--rrs-ivory); }
.timeline-item .year { font-family: var(--rrs-font-display); color: var(--rrs-maroon); font-size: 1.15rem; }
.timeline-item h5 { margin: .1rem 0 .25rem; font-size: 1rem; }

/* vanshawali tree */
.tree-wrap { overflow: auto; padding: 1.5rem 1rem 2rem; background: #fff; border-radius: var(--rrs-radius); border: 1px solid var(--rrs-border); min-height: 320px; cursor: grab; }
.tree-wrap.dragging { cursor: grabbing; user-select: none; }
.vtree, .vtree ul { list-style: none; margin: 0; padding: 0; }
.vtree ul { display: flex; justify-content: center; padding-top: 22px; position: relative; }
.vtree > li { display: flex; flex-direction: column; align-items: center; }
.vtree li { position: relative; padding: 22px 6px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.vtree > li { padding-top: 0; }
.vtree li::before, .vtree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid #dcc7a1; }
.vtree li::after { right: auto; left: 50%; border-left: 2px solid #dcc7a1; }
.vtree li:only-child::after, .vtree li:only-child::before { display: none; }
.vtree li:only-child { padding-top: 22px; }
.vtree > li:only-child { padding-top: 0; }
.vtree li:only-child::after { display: block; left: 50%; width: 0; border-top: 0; }
.vtree > li:only-child::after { display: none; }
.vtree li:first-child::before, .vtree li:last-child::after { border: 0 none; }
.vtree li:last-child::before { border-right: 2px solid #dcc7a1; border-radius: 0 8px 0 0; }
.vtree li:first-child::after { border-radius: 8px 0 0 0; }
.vtree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid #dcc7a1; }
.vnode { display: inline-flex; flex-direction: column; align-items: center; min-width: 140px; max-width: 180px; padding: .6rem .7rem; border-radius: 12px; background: var(--rrs-ivory); border: 1.5px solid var(--rrs-border); box-shadow: var(--rrs-shadow-sm); cursor: pointer; transition: all .15s ease; position: relative; z-index: 1; }
.vnode:hover, .vnode.selected { border-color: var(--rrs-gold); box-shadow: var(--rrs-shadow); }
.vnode .vimg { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rrs-gold-300); margin-bottom: .3rem; background: var(--rrs-gold-100); display: grid; place-items: center; color: var(--rrs-maroon); font-weight: 700; }
.vnode .vname { font-weight: 700; font-size: .88rem; color: var(--rrs-ink); line-height: 1.25; }
.vnode .vmeta { font-size: .72rem; color: var(--rrs-muted); }
.vnode.t-vansh, .vnode.t-dynasty { background: var(--rrs-maroon); border-color: var(--rrs-maroon); }
.vnode.t-vansh .vname, .vnode.t-dynasty .vname { color: #fff; }
.vnode.t-vansh .vmeta, .vnode.t-dynasty .vmeta { color: var(--rrs-gold-300); }
.vnode.t-branch { background: var(--rrs-gold-100); border-color: var(--rrs-gold-300); }
.vnode .vtoggle { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--rrs-maroon); color: #fff; border: 2px solid #fff; font-size: .8rem; display: grid; place-items: center; line-height: 1; }
.vnode .vtoggle.loading { background: var(--rrs-gold); }

/* ---------------------------------------------------------------- filters & listing */
.filter-panel { position: sticky; top: calc(var(--rrs-header-h) + 16px); }
.filter-panel .card-body { padding: 1.1rem; }
.filter-panel h6 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rrs-muted); margin: 1rem 0 .5rem; }
.filter-panel h6:first-child { margin-top: 0; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.view-toggle .btn { border-radius: 10px; padding: .35rem .65rem; }
.view-toggle .btn.active { background: var(--rrs-maroon); color: #fff; border-color: var(--rrs-maroon); }
.result-count { color: var(--rrs-muted); font-size: .92rem; }
.results.loading { opacity: .45; pointer-events: none; transition: opacity .15s; }
#mapView { height: 560px; border-radius: var(--rrs-radius); border: 1px solid var(--rrs-border); z-index: 1; }
.active-filters .chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--rrs-maroon-100); color: var(--rrs-maroon); border-radius: 999px; padding: .2rem .4rem .2rem .75rem; font-size: .82rem; font-weight: 600; margin: 0 .3rem .3rem 0; }
.active-filters .chip button { border: 0; background: rgba(155, 20, 24, .12); color: var(--rrs-maroon); width: 20px; height: 20px; border-radius: 50%; font-size: .7rem; display: grid; place-items: center; }

.skeleton { background: linear-gradient(90deg, #f3ebdf 25%, #faf4ea 37%, #f3ebdf 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: var(--rrs-radius); }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--rrs-muted); }
.empty-state .bi { font-size: 2.6rem; color: var(--rrs-gold); display: block; margin-bottom: .5rem; }

.pagination { --bs-pagination-color: var(--rrs-maroon); --bs-pagination-active-bg: var(--rrs-maroon); --bs-pagination-active-border-color: var(--rrs-maroon); --bs-pagination-border-color: var(--rrs-border); --bs-pagination-hover-color: var(--rrs-maroon-700); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(197,155,42,.25); gap: .3rem; }
.pagination .page-link { border-radius: 10px !important; min-width: 40px; text-align: center; font-weight: 600; }

/* ---------------------------------------------------------------- detail pages */
.detail-cover { border-radius: 20px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--rrs-sand); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.06rem; line-height: 1.85; color: var(--rrs-body); }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.prose img { border-radius: 12px; margin: 1rem 0; }
.prose blockquote { border-left: 4px solid var(--rrs-gold); background: var(--rrs-gold-100); padding: .9rem 1.2rem; border-radius: 0 12px 12px 0; font-style: italic; }
.prose ul li, .prose ol li { margin-bottom: .35rem; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose table td, .prose table th { border: 1px solid var(--rrs-border); padding: .5rem .75rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px dashed var(--rrs-border); }
.info-list li:last-child { border-bottom: 0; }
.info-list .bi { color: var(--rrs-maroon); font-size: 1.1rem; margin-top: .1rem; }
.info-list .k { font-size: .78rem; color: var(--rrs-muted); text-transform: uppercase; letter-spacing: .06em; display: block; }
.info-list .v { font-weight: 600; color: var(--rrs-ink); word-break: break-word; }
.share-bar { display: flex; gap: .4rem; flex-wrap: wrap; }
.engage-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.engage-bar .btn.active { background: var(--rrs-maroon); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--rrs-sand); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2.2rem; background: rgba(0,0,0,.25); }

.sticky-cta { position: sticky; top: calc(var(--rrs-header-h) + 16px); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 4, 8, .94); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.show { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 8px; }
.lightbox .lb-caption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; }
.lightbox .lb-next { right: 1rem; top: 50%; }

/* comments */
.comment { display: flex; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--rrs-border); }
.comment:last-child { border-bottom: 0; }
.comment .body { flex: 1; }
.comment .name { font-weight: 700; color: var(--rrs-ink); }
.comment .time { font-size: .78rem; color: var(--rrs-muted); }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1fr; }
.auth-side { display: none; }
.auth-card { max-width: 460px; width: 100%; margin: 2rem auto; padding: 2rem 1.5rem; }
@media (min-width: 992px) {
  .auth-wrap { grid-template-columns: 1.05fr 1fr; }
  .auth-side { display: flex; flex-direction: column; justify-content: center; padding: 4rem; color: #fff; }
  .auth-side h2 { color: #fff; font-size: 2.3rem; }
  .auth-side li { margin-bottom: .75rem; color: rgba(255,255,255,.85); }
  .auth-side li .bi { color: var(--rrs-gold-300); margin-right: .5rem; }
}
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--rrs-muted); }

/* ---------------------------------------------------------------- account (member dashboard) */
.account-nav .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: 2px; font-weight: 600; color: var(--rrs-body); display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem; }
.account-nav .list-group-item .bi { color: var(--rrs-gold-600); width: 20px; }
.account-nav .list-group-item.active { background: var(--rrs-maroon); color: #fff; }
.account-nav .list-group-item.active .bi { color: var(--rrs-gold-300); }
.account-nav .list-group-item:hover:not(.active) { background: var(--rrs-maroon-100); }
.account-head { border-radius: 18px; padding: 1.4rem; color: #fff; }
.mini-stat { background: #fff; border: 1px solid var(--rrs-border); border-radius: var(--rrs-radius); padding: 1rem; display: flex; gap: .8rem; align-items: center; }
.mini-stat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rrs-maroon-100); color: var(--rrs-maroon); font-size: 1.2rem; }
.mini-stat .n { font-size: 1.35rem; font-weight: 800; color: var(--rrs-ink); line-height: 1; }
.mini-stat .l { font-size: .8rem; color: var(--rrs-muted); }
.account-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.account-tabs::-webkit-scrollbar { display: none; }
.account-tabs .nav-link { white-space: nowrap; }

/* ---------------------------------------------------------------- footer */
.site-footer { color: rgba(255, 255, 255, .75); padding-top: 4rem; }
.site-footer h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; font-family: var(--rrs-font-body); font-weight: 700; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: var(--rrs-gold-300); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; margin-top: 3rem; font-size: .88rem; }
.social-links { display: flex; gap: .5rem; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.05rem; }
.social-links a:hover { background: var(--rrs-gold); color: var(--rrs-maroon-900); }

/* ---------------------------------------------------------------- mobile bottom nav & PWA */
.bottom-nav { display: none; }
@media (max-width: 991.98px) {
  :root { --rrs-header-h: 60px; }
  body { padding-bottom: calc(var(--rrs-bottom-nav-h) + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    height: calc(var(--rrs-bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rrs-border);
    box-shadow: 0 -6px 20px -10px rgba(58, 7, 7, .25);
    backdrop-filter: blur(10px);
  }
  .bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--rrs-muted); font-size: .7rem; font-weight: 600; border: 0; background: none; position: relative; }
  .bottom-nav .bi { font-size: 1.3rem; }
  .bottom-nav a.active { color: var(--rrs-maroon); }
  .bottom-nav a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--rrs-maroon); }
  .bottom-nav .fab { margin-top: -26px; }
  .bottom-nav .fab span.ic { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--rrs-maroon), var(--rrs-maroon-500)); color: var(--rrs-gold-300); display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(155, 20, 24, .6); border: 3px solid #fff; }
  .site-header .navbar { min-height: var(--rrs-header-h); }
  .brand img { width: 40px; height: 40px; }
  .brand-text .hi { font-size: 1.05rem; }
  .brand-text .en { font-size: .6rem; letter-spacing: .14em; }
  .hero .carousel-item, .hero-slide { min-height: 480px; }
  .hero-slide { padding: 3rem 0 6.5rem; }
  .hero .carousel-indicators { margin-bottom: 5.8rem; }
  .section { padding: 3rem 0; }
  .filter-panel { position: static; }
  .sticky-cta { position: static; }
  .mobile-action-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--rrs-bottom-nav-h) + env(safe-area-inset-bottom)); z-index: 1035; background: #fff; border-top: 1px solid var(--rrs-border); padding: .55rem .75rem; display: flex; gap: .5rem; box-shadow: 0 -6px 20px -12px rgba(51,6,12,.3); }
  .mobile-action-bar .btn { flex: 1; }
  .has-action-bar { padding-bottom: 70px; }
  .detail-cover { aspect-ratio: 16 / 9; border-radius: 14px; }
  .mega-menu { min-width: 0 !important; }
}
@media (min-width: 992px) { .mobile-action-bar { display: none !important; } }
@media (max-width: 575.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .discover { margin-top: -70px; }
  .discover-card { padding: 1rem; border-radius: 16px; }
  .hero h1 { font-size: 1.85rem; }
  .btn-lg { padding: .7rem 1.25rem; font-size: 1rem; }
  .section-head { margin-bottom: 1.25rem; }
  .card-body { padding: .9rem; }
  #mapView { height: 420px; }
  .vnode { min-width: 118px; }
}

/* horizontal swipe rows on mobile */
.swipe-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.swipe-row::-webkit-scrollbar { display: none; }
.swipe-row > * { scroll-snap-align: start; flex: 0 0 80%; max-width: 320px; }
@media (min-width: 768px) {
  .swipe-row { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); overflow: visible; margin: 0; padding: 0; }
  .swipe-row > * { max-width: none; }
}
@media (min-width: 1200px) { .swipe-row.cols-4 { --cols: 4; } }

/* PWA install / update toast */
.pwa-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--rrs-bottom-nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 1060; background: var(--rrs-maroon-900); color: #fff; border-radius: 16px; padding: .8rem 1rem; display: none; align-items: center; gap: .8rem; box-shadow: var(--rrs-shadow-lg); width: min(94vw, 460px); }
.pwa-toast.show { display: flex; }
@media (min-width: 992px) { .pwa-toast { bottom: 24px; } }
.offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; background: #3b322d; color: #fff; text-align: center; font-size: .85rem; padding: .3rem; display: none; }
body.is-offline .offline-banner { display: block; }

/* toasts */
.toast-container { z-index: 1090; }
.toast { border-radius: 12px; border: 0; box-shadow: var(--rrs-shadow-lg); }

/* tom-select alignment */
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.ts-wrapper .ts-control { border: 1px solid var(--rrs-border) !important; background-color: #fff !important; }
.ts-control { border-radius: var(--rrs-radius-sm) !important; border-color: var(--rrs-border) !important; padding: .55rem .8rem !important; min-height: 42px; }
.ts-wrapper.focus .ts-control { border-color: var(--rrs-gold) !important; box-shadow: 0 0 0 .2rem rgba(242, 183, 5, .2) !important; }

/* print */
@media print {
  .site-header, .site-footer, .bottom-nav, .topbar, .ticker, .mobile-action-bar, .pwa-toast { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* header fit at laptop widths */
.site-header .btn, .brand-text .en, .brand-text .hi { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .site-header .nav-link { padding: .45rem .5rem !important; font-size: .9rem; }
  .brand { margin-right: .75rem !important; }
  .brand-text .en { font-size: .6rem; letter-spacing: .14em; }
}

/* card action buttons: keep labels on one line */
.biz-card .actions .btn { white-space: nowrap; font-size: .82rem; padding: .42rem .5rem; border-radius: 10px; flex: 1 1 auto; min-width: 0; }
.biz-card .actions .btn .bi { margin-right: .15rem; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .biz-card .actions .btn { font-size: .78rem; } }

/* vanshawali: several root vansh side by side, no connectors above roots */
.vtree { display: flex; justify-content: center; gap: 2.5rem; align-items: flex-start; }
.vtree > li::before, .vtree > li::after { display: none !important; }
.vchips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.vchips::-webkit-scrollbar { display: none; }
.vchips .btn { white-space: nowrap; border-radius: 999px; }
