/* ==========================================================================
   KHD theme layer, 2026-11-05 UI refresh (public + member pages, not admin).
   Loaded after khd.css (kit pages) and after modern_overrides.css (older pages).
   Colours: the CSS variables below are defaults; khd_theme_style() prints the
   admin's colours (Admin -> Setting -> Website colours) right after this file.
   Look taken from the new site: deep maroon + gold, Mukta text, Tiro headings.
   Selectors start with "html body" where the older pages' CSS would win.
   ========================================================================== */

@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/mukta-400-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/mukta-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/mukta-600-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/mukta-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/mukta-700-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/mukta-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/tiro-400-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/tiro-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --khd-primary: #a11d22;
  --khd-primary-dark: #84171b;
  --khd-primary-soft: #fbeceb;
  --khd-primary-line: #e8b9bb;
  --khd-deep: #4e1013;
  --khd-deep-2: #3b0c0e;
  --khd-accent: #f5b91e;
  --khd-accent-dark: #dda61b;
  --khd-accent-soft: #fef5dd;
  --khd-leaf: #2f6b2f;
  --khd-leaf-soft: #e8f2e6;
  --khd-ink: #1c1a1a;
  --khd-muted: #5f5958;
  --khd-page: #f7f5f2;
  --khd-border: #e7e1dc;
  --khd-font: "Mukta", "Noto Sans Devanagari", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --khd-display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Mukta", serif;
  --bs-body-font-family: var(--khd-font);
  --bs-body-bg: var(--khd-page);
  --bs-border-color: var(--khd-border);
}
html:root, html.dark-mode:root, html.dark:root { background-color: var(--khd-deep-2) !important; }
html body { font-family: var(--khd-font); }

/* ---------- shared buttons ---------- */
html body .khd-btn-gold,
html body .khd-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .6rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
html body .khd-btn-gold { background: var(--khd-accent); border: 1px solid var(--khd-accent); color: #2a1a00; }
html body .khd-btn-gold:hover { background: var(--khd-accent-dark); border-color: var(--khd-accent-dark); color: #2a1a00; }
html body .khd-btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
html body .khd-btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
html body .khd-btn-gold:active, html body .khd-btn-ghost:active { transform: translateY(1px); }

/* ---------- header ---------- */
html body .khd-header { box-shadow: 0 1px 0 var(--khd-border), 0 6px 18px rgba(40, 10, 12, .06); }
html body .khd-topstrip {
  background: var(--khd-deep);
  color: rgba(255, 255, 255, .86);
  font-size: .85rem;
  line-height: 1.2;
}
html body .khd-topstrip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
}
html body .khd-topstrip-tag { font-family: var(--khd-display); letter-spacing: .01em; color: var(--khd-accent); }
html body .khd-topstrip-links { display: flex; gap: 1.25rem; margin-left: auto; }
html body .khd-topstrip a { color: #fff; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
html body .khd-topstrip a:hover { color: var(--khd-accent); }
html body .khd-topstrip .bi { color: var(--khd-accent); font-size: .8rem; }
@media (max-width: 575.98px) { html body .khd-topstrip-tag { display: none; } }

html body .khd-header .khd-brand { gap: .7rem; }
html body .khd-header .khd-brand-logo { width: 52px; height: 52px; }
html body .khd-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
html body .khd-header .khd-brand-name {
  font-family: var(--khd-display);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--khd-primary);
  letter-spacing: .02em;
}
html body .khd-brand-sub { font-size: .85rem; color: var(--khd-muted); font-weight: 600; margin-top: 2px; }
html body .khd-header .navbar-nav .nav-link { font-weight: 600; }
html body .khd-header .navbar-nav .nav-link:hover,
html body .khd-header .navbar-nav .nav-link.show { color: var(--khd-primary); background: var(--khd-primary-soft); }
html body .khd-header .khd-account .btn-outline-primary { border-color: var(--khd-primary-line); }
html body .khd-header .khd-account .btn-primary { color: #2a1a00 !important; }
@media (min-width: 992px) {
  /* seven items now (the rest moved to the footer): keep them left-aligned with even spacing */
  html body .khd-header .navbar-nav { justify-content: flex-start; gap: .35rem; border-top-color: var(--khd-border); }
  html body .khd-header { --khd-nav-fs: 1rem; --khd-nav-px: .85rem; }
}
@media (max-width: 991.98px) {
  html body .khd-header .khd-brand-name { font-size: 1.2rem; }
  html body .khd-header .khd-brand-logo { width: 44px; height: 44px; }
}
@media (max-width: 389.98px) { html body .khd-brand-sub { display: none; } }

/* ---------- notice ticker ---------- */
html body .khd-ticker {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid var(--khd-border);
  overflow: hidden;
}
html body .khd-ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  background: var(--khd-primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
html body .khd-ticker-track { flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; }
html body .khd-ticker-run { display: inline-flex; white-space: nowrap; animation: khd-marquee 45s linear infinite; }
html body .khd-ticker:hover .khd-ticker-run { animation-play-state: paused; }
html body .khd-ticker-item { padding: 0 2.5rem 0 1.25rem; position: relative; color: var(--khd-ink); font-size: .95rem; }
html body .khd-ticker-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--khd-accent);
}
@keyframes khd-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
html body .khd-hero {
  position: relative;
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(160deg, var(--khd-deep) 0%, var(--khd-deep-2) 100%);
  color: #fff;
  padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}
html body .khd-hero::after { /* thin gold rule along the bottom edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--khd-accent), transparent);
  opacity: .7;
}
html body .khd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
html body .khd-hero-grid.no-media { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
html body .khd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: .9rem;
  color: rgba(255, 255, 255, .9);
}
html body .khd-hero-badge .bi, html body .khd-hero-badge b { color: var(--khd-accent); }
html body .khd-hero h1 {
  font-family: var(--khd-display) !important;
  font-weight: 400 !important;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: 0 !important;
  color: #fff !important;
  margin: 1rem 0 .9rem;
  max-width: 14ch;
}
html body .khd-hero p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; line-height: 1.65; max-width: 46ch; margin: 0 0 1.5rem; }
html body .khd-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

html body .khd-hero-media { min-width: 0; }
html body .hero-swiper {
  aspect-ratio: 5 / 2; /* the banners are 1600 x 640; height never changes between slides */
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, .25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 48px rgba(0, 0, 0, .35);
}
html body .hero-swiper .swiper-wrapper, html body .hero-swiper .swiper-slide { height: 100%; }
html body .hero-swiper .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
html body .khd-hero-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
html body .khd-hero-count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); font-size: .95rem; white-space: nowrap; }
html body .khd-hero-count b { color: #fff; font-weight: 700; }
html body .khd-hero-bars { flex: 1 1 auto; display: flex; gap: 8px; }
html body .khd-hero-bars button {
  flex: 1 1 0;
  height: 4px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
  cursor: pointer;
}
html body .khd-hero-bars button span { display: block; height: 100%; width: 0; background: var(--khd-accent); border-radius: inherit; }
html body .khd-hero-bars button.is-done span { width: 100%; }
html body .khd-hero-bars button.is-active span { animation: khd-bar var(--khd-slide-ms, 5500ms) linear forwards; }
html body .khd-hero-media.is-paused .khd-hero-bars button.is-active span { animation-play-state: paused; }
html body .khd-hero-media.is-static .khd-hero-bars button.is-active span { animation: none; width: 100%; }
@keyframes khd-bar { from { width: 0; } to { width: 100%; } }
html body .khd-hero-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
html body .khd-hero-arrow:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
@media (max-width: 991.98px) {
  html body .khd-hero-grid { grid-template-columns: minmax(0, 1fr); }
  html body .khd-hero h1 { max-width: none; }
}

/* ---------- quick links (overlaps the hero's lower edge) ---------- */
html body .khd-quick-wrap { position: relative; z-index: 2; margin-top: -36px; }
html body .khd-quick {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .25rem;
  padding: .75rem;
  background: #fff;
  border: 1px solid var(--khd-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(40, 10, 12, .08);
}
html body .khd-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .75rem .25rem;
  border-radius: 12px;
  color: var(--khd-ink);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.25;
}
html body .khd-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--khd-primary-soft);
  color: var(--khd-primary);
  font-size: 1.35rem;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
html body .khd-quick a:hover .khd-quick-icon,
html body .khd-quick a:focus-visible .khd-quick-icon { background: var(--khd-primary); color: #fff; transform: translateY(-2px); }
html body .khd-quick a:hover { color: var(--khd-primary); }
@media (max-width: 991.98px) { html body .khd-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 389.98px) { html body .khd-quick a { font-size: .85rem; } html body .khd-quick-icon { width: 46px; height: 46px; } }

/* ---------- home sections ---------- */
html body .khd-home-section { padding-top: clamp(28px, 4vw, 48px); }
html body .khd-home .khd-footer { margin-top: clamp(40px, 6vw, 72px); }
html body .khd-section-head { margin-bottom: 1.25rem; }
html body .khd-section-head h2 {
  font-family: var(--khd-display) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  color: var(--khd-ink);
  margin: .35rem 0 .25rem;
}
html body .khd-section-head p { color: var(--khd-muted); margin: 0; max-width: 60ch; }

html body .khd-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .65rem;
  border-radius: 999px;
  background: var(--khd-accent-soft);
  color: #7a5200;
  font-size: .82rem;
  font-weight: 700;
}
html body .khd-pill.is-live { background: var(--khd-leaf-soft); color: var(--khd-leaf); }
html body .khd-pill.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* numbers */
html body .khd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
html body .khd-stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--khd-border);
  border-radius: 14px;
  color: var(--khd-ink);
  text-decoration: none;
  position: relative;
}
html body a.khd-stat:hover { border-color: var(--khd-primary-line); color: var(--khd-ink); }
html body a.khd-stat::after { content: "\F285"; font-family: "bootstrap-icons"; position: absolute; right: 1.1rem; top: 1.25rem; color: var(--khd-primary); opacity: .55; }
html body .khd-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: .6rem;
  border-radius: 10px;
  background: var(--khd-accent-soft);
  color: #8a5d00;
  font-size: 1.15rem;
}
html body .khd-stat strong {
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--khd-primary);
  font-variant-numeric: tabular-nums;
}
html body .khd-stat-label { color: var(--khd-ink); font-weight: 600; }
html body .khd-stat small { color: var(--khd-muted); font-size: .85rem; line-height: 1.35; }

/* four kinds of help */
html body .khd-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
html body .khd-pillar {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--khd-border);
  border-radius: 14px;
  border-top: 3px solid var(--khd-primary);
}
html body .khd-pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
html body .khd-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--khd-primary-soft);
  color: var(--khd-primary);
  font-size: 1.4rem;
}
html body .khd-pillar h3 { font-size: 1.25rem; margin: 0 0 .5rem; color: var(--khd-ink); }
html body .khd-pillar h3 small { display: block; font-size: .8rem; font-weight: 600; color: var(--khd-muted); margin-top: .15rem; }
html body .khd-pillar p { color: var(--khd-muted); font-size: .98rem; line-height: 1.6; margin: 0 0 1rem; }
html body .khd-pillar-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--khd-primary);
  font-weight: 700;
  text-decoration: none;
}
html body .khd-pillar-link:hover { text-decoration: underline; color: var(--khd-primary-dark); }
html body .khd-pillar-link .bi { transition: transform .15s ease; }
html body .khd-pillar-link:hover .bi { transform: translateX(3px); }
@media (max-width: 1199.98px) { html body .khd-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { html body .khd-pillars { grid-template-columns: minmax(0, 1fr); } }

/* notice board */
html body .khd-notices { background: #fff; border: 1px solid var(--khd-border); border-radius: 14px; overflow: hidden; }
html body .khd-notices-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--khd-border);
}
html body .khd-notices-head .bi { color: var(--khd-primary); }
html body .khd-notices-list { max-height: 360px; overflow-y: auto; padding: .25rem 1.25rem; }
html body .khd-notice { margin: 0; padding: .85rem 0 .85rem 1rem; border-bottom: 1px solid var(--khd-border); position: relative; line-height: 1.55; }
html body .khd-notice:last-child { border-bottom: 0; }
html body .khd-notice::before { content: ""; position: absolute; left: 0; top: 1.05rem; bottom: 1.05rem; width: 3px; border-radius: 3px; background: var(--khd-accent); }
html body .khd-notice.is-empty { color: var(--khd-muted); }
html body .khd-notice.is-empty::before { display: none; }

/* व्यवस्था सहयोग panel */
html body .khd-vyavastha {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--khd-accent-soft);
  border: 1px solid #f1dfae;
  border-radius: 16px;
}

/* ---------- footer ---------- */
html body .khd-footer,
html body .khd-footer p { background: var(--khd-deep); color: rgba(255, 255, 255, .78); }
html body .khd-footer { font-size: .97rem; }
html body .khd-footer a { color: #fff; }
html body .khd-footer a:hover { color: var(--khd-accent); text-decoration: none; }
html body .khd-footer-cta { background: var(--khd-deep-2); border-bottom: 1px solid rgba(255, 255, 255, .08); }
html body .khd-footer-cta .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
html body .khd-footer-cta-text { display: flex; flex-direction: column; }
html body .khd-footer-cta-text strong { color: #fff; font-family: var(--khd-display); font-weight: 400; font-size: 1.35rem; }
html body .khd-footer-cta-text span { color: rgba(255, 255, 255, .72); }
html body .khd-footer-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
html body .khd-footer .khd-btn-gold, html body .khd-footer .khd-btn-gold:hover { color: #2a1a00; }
html body .khd-footer-main { padding-top: 2.25rem; padding-bottom: 1rem; }
html body .khd-footer-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-bottom: .9rem; }
html body .khd-footer-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
html body .khd-footer-brand span { display: flex; flex-direction: column; line-height: 1.15; }
html body .khd-footer-brand strong { font-family: var(--khd-display); font-weight: 400; font-size: 1.5rem; color: #fff; letter-spacing: .02em; }
html body .khd-footer-brand small { color: var(--khd-accent); font-size: .9rem; font-weight: 600; }
html body .khd-footer-about { max-width: 38ch; margin-bottom: 1rem; }
html body .khd-footer h2.h6 {
  color: var(--khd-accent) !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  margin-bottom: .75rem;
}
html body .khd-footer ul li { padding: .2rem 0; }
html body .khd-footer-contact li { display: flex; gap: .55rem; align-items: baseline; }
html body .khd-footer-contact .bi { color: var(--khd-accent); }
html body .khd-footer .khd-social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}
html body .khd-footer .khd-social:hover { background: var(--khd-accent); border-color: var(--khd-accent); color: #2a1a00; }
html body .khd-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}
html body .khd-footer-bottom p { color: rgba(255, 255, 255, .62); font-size: .85rem; }
html body .khd-footer-credit { font-size: .78rem !important; }
html body .khd-footer-credit .bi-heart-fill { color: var(--khd-accent); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html body .khd-ticker-run { animation: none; white-space: normal; flex-wrap: wrap; }
  html body .khd-ticker-item[aria-hidden="true"] { display: none; }
  html body .khd-quick-icon, html body .khd-pillar-link .bi { transition: none; }
}

/* ---------- phone menu: full screen, icon tiles (opened by the header's menu button) ---------- */
html body .khd-nav-icon { display: none; }
html body .khd-menu-head, html body .khd-menu-foot { display: none; }
@media (max-width: 991.98px) {
  html body .khd-header #khd-menu.show,
  html body .khd-header #khd-menu.collapsing {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none;
    margin: 0;
    padding: 0 var(--khd-gutter) calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: none !important;
    background:
      radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .08), transparent 60%),
      linear-gradient(170deg, var(--khd-deep) 0%, var(--khd-deep-2) 100%);
    color: #fff;
    animation: khd-menu-in .22s ease-out;
  }
  html:has(#khd-menu.show), html:has(#khd-menu.show) body { overflow: hidden !important; }
  html body .khd-header #khd-menu .khd-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    margin-bottom: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  html body .khd-menu-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--khd-display); font-size: 1.3rem; color: #fff; }
  html body .khd-menu-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }
  html body .khd-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1.15rem;
  }
  html body .khd-header #khd-menu .navbar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin: .75rem 0 0 !important;
  }
  html body .khd-header #khd-menu .nav-item { min-width: 0; animation: khd-tile-in .3s ease-out both; }
  html body .khd-header #khd-menu .nav-item:nth-child(2) { animation-delay: .02s; }
  html body .khd-header #khd-menu .nav-item:nth-child(3) { animation-delay: .04s; }
  html body .khd-header #khd-menu .nav-item:nth-child(4) { animation-delay: .06s; }
  html body .khd-header #khd-menu .nav-item:nth-child(5) { animation-delay: .08s; }
  html body .khd-header #khd-menu .nav-item:nth-child(6) { animation-delay: .1s; }
  html body .khd-header #khd-menu .nav-item:nth-child(7) { animation-delay: .12s; }
  html body .khd-header #khd-menu .nav-item:nth-child(8) { animation-delay: .14s; }
  html body .khd-header #khd-menu .nav-item:nth-child(n+9) { animation-delay: .16s; }
  html body .khd-header #khd-menu .nav-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    height: 100%;
    min-height: 100px;
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    color: #fff !important;
    font-size: 1.02rem !important;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
  }
  html body .khd-header #khd-menu .nav-link:hover,
  html body .khd-header #khd-menu .nav-link:focus-visible { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
  html body .khd-header #khd-menu .khd-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(245, 185, 30, .14);
    color: var(--khd-accent);
    font-size: 1.25rem;
  }
  html body .khd-header #khd-menu .nav-link.active,
  html body .khd-header #khd-menu .nav-link[aria-current="page"] { background: var(--khd-accent); border-color: var(--khd-accent); color: #2a1a00 !important; }
  html body .khd-header #khd-menu .nav-link.active .khd-nav-icon,
  html body .khd-header #khd-menu .nav-link[aria-current="page"] .khd-nav-icon { background: rgba(78, 16, 19, .12); color: var(--khd-deep); }
  html body .khd-header #khd-menu .dropdown-menu { background: rgba(255, 255, 255, .06); }
  html body .khd-header #khd-menu .dropdown-item { color: #fff; }
  html body .khd-header #khd-menu .khd-menu-foot { display: flex; flex-direction: column; gap: .75rem; margin-top: auto; padding-top: 1.25rem; }
  html body .khd-menu-auth { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  html body .khd-menu-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, .3);
    color: #fff !important;
    font-weight: 600;
  }
  html body .khd-menu-call .bi { color: var(--khd-accent); }
}
@keyframes khd-menu-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes khd-tile-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html body .khd-header #khd-menu.show, html body .khd-header #khd-menu .nav-item { animation: none !important; }
}

/* ---------- "KHD INDIA" wordmark, same as the new site: Cinzel Decorative name over an Amita subline ---------- */
@font-face { font-family: "Cinzel Decorative"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/cinzel-deco-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Amita"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/amita-700-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Amita"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/amita-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
html body .khd-wordmark { display: inline-flex; flex-direction: column; gap: 4px; line-height: 1; white-space: nowrap; }
html body .khd-wordmark .khd-wordmark-name,
html body .khd-header .khd-brand .khd-wordmark-name {
  font-family: "Cinzel Decorative", var(--khd-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: .02em;
  line-height: 1;
  max-width: none;
  overflow: visible;
  color: var(--khd-primary);
  background-image: linear-gradient(180deg, var(--khd-primary), var(--khd-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html body .khd-wordmark .khd-wordmark-sub,
html body .khd-header .khd-brand .khd-wordmark-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: "Amita", var(--khd-font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--khd-leaf);
}
html body .khd-wordmark-sub::before,
html body .khd-wordmark-sub::after { content: "\2726"; font-family: var(--khd-font); font-size: 10px; color: var(--khd-accent); }
html body .khd-wordmark.is-dark .khd-wordmark-name { background-image: linear-gradient(180deg, #ffe08a, var(--khd-accent) 55%, #c98a0b); }
html body .khd-wordmark.is-dark .khd-wordmark-sub { color: var(--khd-accent); }
html body .khd-menu-brand .khd-wordmark-name { font-size: 1.25rem; }
html body .khd-menu-brand .khd-wordmark-sub { font-size: .8rem; }
html body .khd-footer-brand .khd-wordmark-name { font-size: 1.7rem; }
@media (max-width: 599.98px) {
  html body .khd-header .khd-brand .khd-wordmark-name { font-size: 1.25rem; }
  html body .khd-header .khd-brand .khd-wordmark-sub { font-size: .8rem; display: inline-flex; }
}
@media print { html body .khd-wordmark-name { -webkit-text-fill-color: currentColor; background: none; } }

/* desktop: one calm row (logo | menu | account). Menu items are plain text; the current page gets one gold underline. */
@media (min-width: 992px) {
  html body .khd-header .navbar { padding-top: 0; padding-bottom: 0; }
  html body .khd-header .navbar > .container { flex-wrap: nowrap; min-height: 76px; }
  html body .khd-header .navbar-nav {
    order: 2;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-self: stretch;
    gap: 0;
    margin: 0 0 0 auto !important;
    padding: 0;
    border-top: 0;
  }
  html body .khd-header .navbar-nav .nav-item { display: flex; }
  html body .khd-header .navbar-nav .nav-link,
  html body .khd-header .navbar-nav .nav-link:hover,
  html body .khd-header .navbar-nav .nav-link.show,
  html body .khd-header .navbar-nav .nav-link.active,
  html body .khd-header .navbar-nav .nav-link[aria-current="page"] {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 var(--khd-nav-px);
    border-radius: 0;
    background: transparent;
  }
  html body .khd-header .navbar-nav .nav-link { color: var(--khd-ink); }
  html body .khd-header .navbar-nav .nav-link:hover { color: var(--khd-primary); }
  html body .khd-header .navbar-nav .nav-link.active,
  html body .khd-header .navbar-nav .nav-link[aria-current="page"] { color: var(--khd-primary); }
  html body .khd-header .navbar-nav .nav-link.active::after,
  html body .khd-header .navbar-nav .nav-link[aria-current="page"]::after {
    left: var(--khd-nav-px);
    right: var(--khd-nav-px);
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--khd-accent);
  }
  html body .khd-header .khd-account { order: 3; margin-left: 1.5rem; gap: .5rem; }
  html body .khd-header .khd-account .btn { min-height: 40px; padding: .4rem 1rem; font-size: .95rem; }
  html body .khd-header { --khd-nav-fs: 1.02rem; --khd-nav-px: 1rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html body .khd-header { --khd-nav-fs: .95rem; --khd-nav-px: .6rem; }
  html body .khd-header .khd-account { margin-left: .75rem; }
}

/* notice bar: label and text line up with the page column */
html body .khd-ticker { display: block; }
html body .khd-ticker > .container { display: flex; align-items: center; gap: 1rem; min-height: 46px; }
html body .khd-ticker-label { padding: .3rem .8rem; border-radius: 8px; font-size: .9rem; }
html body .khd-ticker-track {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
@media (max-width: 399.98px) {
  html body .khd-header .khd-brand { gap: .45rem; margin-right: .5rem; }
  html body .khd-header .khd-brand .khd-wordmark-name { font-size: 1.1rem; }
  html body .khd-header .khd-brand .khd-wordmark-sub { font-size: .72rem; }
}

/* phone menu: the five main items are tiles; the footer-only pages sit underneath as small links */
html body .khd-menu-more { display: none; }
@media (max-width: 991.98px) {
  html body .khd-header #khd-menu .khd-menu-more { display: block; margin-top: 1.25rem; }
  html body .khd-menu-more-title { margin: 0 0 .5rem; color: rgba(255, 255, 255, .6); font-size: .85rem; font-weight: 600; }
  html body .khd-header #khd-menu .khd-menu-more ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  html body .khd-header #khd-menu .khd-menu-more a {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
  }
  html body .khd-header #khd-menu .khd-menu-more a .bi { color: var(--khd-accent); }
  html body .khd-header #khd-menu .khd-menu-more a[aria-current="page"] { color: var(--khd-accent); font-weight: 700; }
  /* the main item that is left over in a 2-column grid spans the full row */
  html body .khd-header #khd-menu .navbar-nav .nav-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* while the phone menu is open the header (and its overlay) sits above everything on the page */
html:has(#khd-menu.show) body .khd-header, html:has(#khd-menu.collapsing) body .khd-header { z-index: 2000 !important; }

/* /details/N: with one open help type its card spans the row, icon beside the label */
html body .khd-live-single .tab-btn { flex-direction: row !important; gap: .75rem !important; padding-top: 1.1rem !important; padding-bottom: 1.1rem !important; font-size: 1.05rem !important; }

/* ---------- registration form (front/register.php) ---------- */
/* its own error summary sits inside the form, so the page-wide red banner is not repeated */
html body.khd-register:has(.khd-reg-summary) .khd-flash .alert-danger { display: none; }
html body .khd-reg-intro { margin-bottom: 1.5rem; }
html body .khd-reg-intro h1 {
  font-family: var(--khd-display) !important;
  font-weight: 400 !important;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  margin: 0 0 .35rem;
}
html body .khd-reg-intro h1 small { display: block; font-family: var(--khd-font); font-size: .95rem; font-weight: 600; color: var(--khd-muted); margin-top: .25rem; }
html body .khd-reg-intro p { color: var(--khd-muted); margin: 0; }
html body .khd-req-mark { color: var(--khd-danger); font-weight: 700; }

html body .khd-reg-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
html body .khd-reg-main { min-width: 0; max-width: 920px; }
html body .khd-reg-steps { position: sticky; top: 140px; }
html body .khd-reg-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
html body .khd-reg-steps a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: 12px;
  color: var(--khd-ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}
html body .khd-reg-steps a:hover { background: #fff; color: var(--khd-primary); }
html body .khd-reg-steps a small { display: block; font-weight: 400; font-size: .8rem; color: var(--khd-muted); margin-top: 2px; }
html body .khd-reg-steps a.is-bad small { color: var(--khd-danger); font-weight: 600; }
html body .khd-reg-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--khd-primary-soft);
  color: var(--khd-primary);
  font-weight: 700;
  font-size: .95rem;
}
html body .khd-reg-num.is-bad { background: var(--khd-danger); color: #fff; }

html body .khd-reg-card {
  background: #fff;
  border: 1px solid var(--khd-border);
  border-radius: 16px;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  margin-bottom: 1.25rem;
  scroll-margin-top: 150px;
}
html body .khd-reg-head {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--khd-border);
}
html body .khd-reg-head .khd-reg-num { width: 40px; height: 40px; font-size: 1.05rem; background: var(--khd-primary); color: #fff; }
html body .khd-reg-head .khd-reg-num.is-bad { background: var(--khd-danger); }
html body .khd-reg-head h2 { font-size: 1.3rem !important; margin: 0; line-height: 1.25; scroll-margin-top: 150px; }
html body .khd-reg-head h2 small { font-size: .85rem; font-weight: 600; color: var(--khd-muted); margin-left: .35rem; }
html body .khd-reg-head p { margin: .2rem 0 0; color: var(--khd-muted); font-size: .95rem; }
html body .khd-reg .form-label { font-weight: 600; margin-bottom: .35rem; }
html body .khd-reg .invalid-feedback { font-size: .875rem; margin-top: .3rem; }
html body .khd-reg .form-control, html body .khd-reg .form-select { scroll-margin-top: 160px; }

html body .khd-reg-summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid #f1c3bf;
  border-left: 4px solid var(--khd-danger);
  border-radius: 12px;
  background: #fdf1f0;
}
html body .khd-reg-summary h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: 1.05rem !important; color: var(--khd-danger) !important; margin: 0 0 .5rem; }
html body .khd-reg-summary h2 small { color: var(--khd-muted); font-weight: 600; font-size: .85rem; }
html body .khd-reg-summary p { margin: 0 0 .65rem; color: var(--khd-ink); }
html body .khd-reg-summary ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
html body .khd-reg-summary a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem .3rem .3rem;
  border: 1px solid #f1c3bf;
  border-radius: 999px;
  background: #fff;
  color: var(--khd-ink);
  font-weight: 600;
  text-decoration: none;
}
html body .khd-reg-summary a:hover { border-color: var(--khd-danger); color: var(--khd-danger); }
html body .khd-reg-summary .khd-reg-num { width: 26px; height: 26px; font-size: .8rem; }
html body .khd-reg-summary a small { color: var(--khd-danger); font-weight: 600; }

html body .khd-reg-consent { padding: .9rem 1rem .9rem 2.6rem; border-radius: 12px; background: var(--khd-page); }
html body .khd-reg-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  background: var(--khd-primary-soft);
  border-radius: 16px;
}
html body .khd-reg-submit p { margin: 0; color: var(--khd-ink); max-width: 46ch; }
html body .khd-reg-submit .btn { min-width: 200px; min-height: 48px; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }

@media (max-width: 991.98px) {
  html body .khd-reg-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  html body .khd-reg-steps { position: static; margin: 0 calc(-1 * var(--khd-gutter)); padding: 0 var(--khd-gutter); overflow-x: auto; scrollbar-width: none; }
  html body .khd-reg-steps ol { flex-direction: row; gap: .5rem; width: max-content; }
  html body .khd-reg-steps a { background: #fff; border: 1px solid var(--khd-border); padding: .4rem .75rem .4rem .45rem; border-radius: 999px; }
  html body .khd-reg-steps a small { display: none; }
  html body .khd-reg-steps .khd-reg-num { width: 28px; height: 28px; font-size: .85rem; }
  html body .khd-reg-submit .btn { width: 100%; }
}

/* ---------- appeal page donations list (front/latecollaboration.php) ---------- */
html body .khd-list-card { background: #fff; border: 1px solid var(--khd-border); border-radius: 16px; padding: clamp(1rem, 3vw, 2rem); }
html body .khd-list-head h2 { font-family: var(--khd-display) !important; font-weight: 400 !important; letter-spacing: 0 !important; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0; }
html body .khd-list-head h2 small { font-family: var(--khd-font); font-size: .9rem; font-weight: 600; color: var(--khd-muted); margin-left: .35rem; }
html body .khd-list-head p { color: var(--khd-muted); margin: .25rem 0 0; }
html body .khd-list-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0 1.5rem; }
html body .khd-list-stats .khd-stat { padding: 1rem 1.1rem; background: var(--khd-page); }
html body .khd-list-stats .khd-stat-icon { width: 34px; height: 34px; font-size: 1rem; margin-bottom: .4rem; }
html body .khd-list-stats .khd-stat strong { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
html body .khd-list-stats .khd-stat-label small { display: block; font-size: .8rem; font-weight: 500; color: var(--khd-muted); }
html body #donations-list-container .table-responsive { overflow: visible !important; }
html body .khd-dt-top, html body .khd-dt-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
html body .khd-dt-top { margin-bottom: 1rem; }
html body .khd-dt-bottom { margin-top: 1rem; }
html body .khd-dt-top .dataTables_length, html body .khd-dt-top .dataTables_filter { float: none !important; text-align: left !important; margin: 0 !important; }
html body .khd-dt-top .dataTables_filter label { display: flex; align-items: center; gap: .5rem; margin: 0; }
html body .khd-dt-top .dataTables_filter input { margin: 0 !important; min-width: 0; width: min(260px, 60vw) !important; }
html body .khd-dt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--khd-border); border-radius: 12px; }
html body .khd-dt-scroll table.table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
html body #donationTable thead th { background: var(--khd-primary-soft) !important; color: var(--khd-ink) !important; font-weight: 700 !important; border-bottom: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .9rem !important; white-space: nowrap; }
html body #donationTable tbody tr:hover td { background-color: var(--khd-primary-soft) !important; }
html body #donationTable td { white-space: nowrap; }
@media (max-width: 575.98px) {
  html body .khd-dt-top .dataTables_filter, html body .khd-dt-top .dataTables_filter label { width: 100%; }
  html body .khd-dt-top .dataTables_filter input { flex: 1 1 auto; width: auto !important; }
}


/* ---------- member login (front/vendor/login.php): maroon stage with a gold jaali (lattice) pattern ---------- */
:root {
  --khd-jaali: 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='%23F5B91E' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M28 3 53 28 28 53 3 28Z'/%3E%3Ccircle cx='28' cy='28' r='8.5'/%3E%3Cpath d='M0 0 9 9M56 0 47 9M0 56 9 47M56 56 47 47'/%3E%3C/g%3E%3C/svg%3E");
}
html body.khd-public:has(.khd-auth-stage) #main > .container.pt-3:not(:has(.alert)) { display: none; }
html body .khd-auth-stage {
  position: relative;
  color: #fff;
  padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px);
  background:
    radial-gradient(900px 420px at 15% 110%, rgba(245, 185, 30, .12), transparent 60%),
    var(--khd-jaali),
    linear-gradient(160deg, var(--khd-deep) 0%, var(--khd-deep-2) 100%);
  overflow: hidden;
}
html body .khd-auth-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--khd-accent), transparent);
  opacity: .7;
}
html body .khd-auth-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
html body .khd-auth-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .85rem;
  border: 1px solid rgba(245, 185, 30, .45);
  border-radius: 999px;
  color: var(--khd-accent);
  font-weight: 600;
  font-size: .9rem;
  background: rgba(245, 185, 30, .08);
}
html body .khd-auth-title {
  font-family: var(--khd-display) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.15;
  color: #fff !important;
  margin: 1rem 0 .75rem;
}
html body .khd-auth-lede { color: rgba(255, 255, 255, .8); font-size: 1.1rem; line-height: 1.65; max-width: 44ch; margin: 0 0 1.75rem; }
html body .khd-auth-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 2rem; }
html body .khd-auth-facts > div { padding: 0 1.5rem; border-left: 1px solid rgba(255, 255, 255, .18); }
html body .khd-auth-facts > div:first-child { padding-left: 0; border-left: 0; }
html body .khd-auth-facts dt { font-weight: 400; color: rgba(255, 255, 255, .7); font-size: .9rem; }
html body .khd-auth-facts dd { margin: .1rem 0 0; font-size: 1.6rem; font-weight: 700; color: var(--khd-accent); line-height: 1.2; font-variant-numeric: tabular-nums; }

html body .khd-auth-card {
  position: relative;
  background: #fff;
  color: var(--khd-ink);
  border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  border-top: 5px solid var(--khd-accent);
}
html body .khd-auth-card h1 { font-size: 1.85rem; margin: 0 0 1.5rem; color: var(--khd-ink); }
html body .khd-auth-card h1 small { display: block; font-size: .95rem; font-weight: 500; color: var(--khd-muted); margin-top: .3rem; }
html body .khd-auth-card .form-label { font-weight: 600; }
html body .khd-auth-input { position: relative; }
html body .khd-auth-input > .bi { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--khd-primary); pointer-events: none; z-index: 4; font-size: 1.05rem; }
html body .khd-auth-input .form-control { padding-left: 2.75rem; min-height: 52px; border-radius: 12px; background: var(--khd-page); border-color: var(--khd-border); }
html body .khd-auth-input .form-control:focus { background: #fff; border-color: var(--khd-primary); box-shadow: 0 0 0 4px var(--khd-primary-soft); }
html body .khd-auth-btn { min-height: 54px; font-size: 1.1rem; margin-top: .5rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
html body .khd-auth-alt { margin: 1.1rem 0 0; text-align: center; color: var(--khd-muted); }
html body .khd-auth-alt a { font-weight: 700; }
html body .khd-auth-help {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: var(--khd-accent-soft);
  color: var(--khd-ink);
  text-decoration: none;
  line-height: 1.35;
}
html body .khd-auth-help:hover { color: var(--khd-ink); background: #fdeec2; }
html body .khd-auth-help-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--khd-accent);
  color: #2a1a00;
  font-size: 1.1rem;
}
html body .khd-auth-help strong { display: block; }

html body .khd-auth-after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-top: clamp(28px, 4vw, 48px); }
html body .khd-auth-tile { display: flex; gap: .9rem; align-items: flex-start; padding: 1.25rem; background: #fff; border: 1px solid var(--khd-border); border-radius: 16px; }
html body .khd-auth-tile > .bi {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--khd-primary-soft);
  color: var(--khd-primary);
  font-size: 1.3rem;
}
html body .khd-auth-tile h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
html body .khd-auth-tile p { margin: 0; color: var(--khd-muted); font-size: .95rem; line-height: 1.5; }

@media (max-width: 991.98px) {
  html body .khd-auth-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  html body .khd-auth-facts { display: none; }
  html body .khd-auth-lede { margin-bottom: 0; }
  html body .khd-auth-title { margin: .75rem 0 .5rem; }
  html body .khd-auth-after { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- account button: round photo (or icon) + KHD-ID; phones show only the round photo ---------- */
html body .khd-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--khd-primary-soft);
  color: var(--khd-primary);
  font-size: 1.05rem;
}
html body .khd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .khd-avatar-lg { width: 44px; height: 44px; font-size: 1.35rem; }
html body .khd-header .khd-acct-btn { display: inline-flex !important; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .3rem !important; border-radius: 999px !important; }
html body .khd-header .khd-acct-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .75rem .8rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid var(--khd-border);
}
html body .khd-header .khd-acct-head small { display: block; font-size: .8rem; color: var(--khd-muted); line-height: 1.2; }
html body .khd-header .khd-acct-head strong { display: block; color: var(--khd-ink); line-height: 1.2; }
@media (max-width: 991.98px) {
  html body .khd-header .khd-acct-btn { width: 46px; height: 46px; min-height: 46px !important; padding: 3px !important; justify-content: center; border-color: var(--khd-primary-line) !important; }
  html body .khd-header .khd-acct-btn::after { display: none !important; }
  html body .khd-header .khd-acct-btn .khd-account-name { display: none !important; }
  html body .khd-header .khd-acct-btn .khd-avatar { width: 38px; height: 38px; font-size: 1.25rem; }
}

/* footer: small admin login link */
html body .khd-footer-admin { display: inline-flex; align-items: center; gap: .3rem; margin-left: .75rem; color: rgba(255, 255, 255, .62) !important; }
html body .khd-footer-admin:hover { color: var(--khd-accent) !important; }

/* logged-in hero "सहयोग करें": the heart is a true red, not the theme maroon */
html body .khd-btn-gold .bi-heart-fill { color: #E0282E; }

/* ---------- /team-members: card grid + profile page (2026-11-05) ---------- */
html body .khd-team-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
html body .khd-team-title {
  font-family: var(--khd-display) !important; font-weight: 400 !important; letter-spacing: 0 !important;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); color: var(--khd-ink); margin: .45rem 0 .25rem;
}
html body .khd-team-search { position: relative; flex: 0 1 360px; width: 100%; margin: 0; }
html body .khd-team-search .bi { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--khd-muted); pointer-events: none; }
html body .khd-team-search input {
  width: 100%; min-height: 48px; padding: .6rem 1rem .6rem 2.6rem; border: 1px solid var(--khd-border); border-radius: 12px;
  background: #fff; color: var(--khd-ink); font-size: 1rem;
}
html body .khd-team-search input:focus { outline: none; border-color: var(--khd-primary); box-shadow: 0 0 0 3px var(--khd-primary-soft); }
html body .khd-team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
html body .khd-team-grid > li[hidden] { display: none; }
html body .khd-team-card {
  display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1rem 1rem 1rem 1.1rem;
  background: #fff; border: 1px solid var(--khd-border); border-radius: 16px; color: var(--khd-ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
html body .khd-team-card:hover, html body .khd-team-card:focus-visible {
  border-color: var(--khd-primary-line); box-shadow: 0 8px 22px rgba(78, 16, 19, .08); transform: translateY(-1px); color: var(--khd-ink);
}
html body .khd-team-photo {
  position: relative; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--khd-primary-soft); color: var(--khd-primary); font-family: var(--khd-display); font-size: 1.8rem;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--khd-accent);
}
html body .khd-team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html body .khd-team-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1 1 auto; }
html body .khd-team-name { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
html body .khd-team-role { color: var(--khd-primary); font-weight: 600; font-size: .95rem; line-height: 1.3; }
html body .khd-team-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; color: var(--khd-muted); font-size: .88rem; line-height: 1.3; margin-top: .1rem; }
html body .khd-team-id { padding: .05rem .5rem; border-radius: 6px; background: var(--khd-page); border: 1px solid var(--khd-border); font-weight: 600; font-size: .8rem; letter-spacing: .02em; }
html body .khd-team-go { color: var(--khd-primary-line); font-size: 1.1rem; flex: 0 0 auto; }
html body .khd-team-card:hover .khd-team-go { color: var(--khd-primary); }
html body .khd-team-none { text-align: center; color: var(--khd-muted); padding: 2.5rem 0; }

html body .khd-team-hero {
  position: relative; color: #fff; padding: 1.25rem 0 clamp(28px, 5vw, 48px);
  background: radial-gradient(900px 360px at 85% -10%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(160deg, var(--khd-deep) 0%, var(--khd-deep-2) 100%);
}
html body .khd-team-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--khd-accent), transparent); opacity: .7; }
html body .khd-team-back { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; min-height: 44px; }
html body .khd-team-back:hover { color: var(--khd-accent); }
html body .khd-team-hero-main { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); margin-top: .75rem; }
html body .khd-team-photo.is-lg { width: clamp(108px, 22vw, 160px); height: clamp(108px, 22vw, 160px); font-size: 3rem; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 0 0 4px var(--khd-deep), 0 0 0 6px var(--khd-accent); }
html body .khd-team-hero h1 {
  font-family: var(--khd-display) !important; font-weight: 400 !important; letter-spacing: 0 !important; color: #fff !important;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.2; margin: 0 0 .3rem;
}
html body .khd-team-hero-role { color: var(--khd-accent); font-weight: 600; font-size: 1.1rem; margin: 0 0 .6rem; }
html body .khd-team-hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
html body .khd-team-hero-tags span { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .9rem; }
html body .khd-team-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
html body .khd-team-details { max-width: 820px; background: #fff; border: 1px solid var(--khd-border); border-radius: 16px; padding: clamp(1.1rem, 3vw, 1.75rem); }
html body .khd-team-details h2 { font-family: var(--khd-display) !important; font-weight: 400 !important; letter-spacing: 0 !important; font-size: 1.5rem; margin: 0 0 1rem; }
html body .khd-team-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; }
html body .khd-team-details dl > div { min-width: 0; padding-bottom: .9rem; border-bottom: 1px solid var(--khd-border); }
html body .khd-team-details dl > div.is-wide { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; }
html body .khd-team-details dt { display: flex; align-items: center; gap: .4rem; color: var(--khd-muted); font-weight: 600; font-size: .85rem; margin-bottom: .2rem; }
html body .khd-team-details dd { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--khd-ink); overflow-wrap: anywhere; }
html body .khd-team-details dd a { color: var(--khd-primary); }
@media (max-width: 575.98px) {
  html body .khd-team-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  html body .khd-team-search { flex-basis: 100%; }
  html body .khd-team-photo { width: 60px; height: 60px; font-size: 1.5rem; }
  html body .khd-team-hero-main { flex-direction: column; align-items: flex-start; }
  html body .khd-team-actions > a { flex: 1 1 0; }
  html body .khd-team-details dl { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- /parichayika: job/business contact cards + listing page (2026-11-05); reuses .khd-team-* ---------- */
html body .khd-pc-tools { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
html body .khd-pc-tools .khd-team-search { flex: 1 1 320px; max-width: 520px; }
html body .khd-pc-select { position: relative; flex: 0 1 240px; margin: 0; }
html body .khd-pc-select .bi { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--khd-muted); pointer-events: none; }
html body .khd-pc-select select {
  width: 100%; min-height: 48px; padding: .6rem 2.2rem .6rem 2.5rem; border: 1px solid var(--khd-border); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f5958' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .9rem center;
  appearance: none; color: var(--khd-ink); font-size: 1rem;
}
html body .khd-pc-select select:focus { outline: none; border-color: var(--khd-primary); box-shadow: 0 0 0 3px var(--khd-primary-soft); }
html body .khd-pc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
html body .khd-pc-grid > li[hidden] { display: none; }
html body .khd-pc-card {
  position: relative; display: flex; flex-direction: column; gap: .75rem; height: 100%; padding: 1.1rem;
  background: #fff; border: 1px solid var(--khd-border); border-top: 3px solid var(--khd-accent); border-radius: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html body .khd-pc-card:hover { border-color: var(--khd-primary-line); border-top-color: var(--khd-accent); box-shadow: 0 8px 22px rgba(78, 16, 19, .08); }
html body .khd-pc-top { display: flex; align-items: center; gap: .9rem; }
html body .khd-pc-photo {
  position: relative; flex: 0 0 auto; width: 68px; height: 68px; border-radius: 14px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--khd-primary-soft); color: var(--khd-primary); font-family: var(--khd-display); font-size: 1.7rem;
}
html body .khd-pc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html body .khd-pc-who { min-width: 0; }
html body .khd-pc-job { margin: 0 0 .1rem; color: var(--khd-primary); font-weight: 700; font-size: 1.08rem; line-height: 1.25; text-transform: capitalize; overflow-wrap: anywhere; }
html body .khd-pc-name { margin: 0; font-family: var(--khd-font) !important; font-size: 1rem !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1.3; }
html body .khd-pc-name a { color: var(--khd-ink); text-decoration: none; }
html body .khd-pc-name a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; } /* whole card opens the listing */
html body .khd-pc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; color: var(--khd-muted); font-size: .92rem; line-height: 1.35; }
html body .khd-pc-facts li { display: flex; gap: .45rem; overflow-wrap: anywhere; }
html body .khd-pc-facts .bi { flex: 0 0 auto; margin-top: .1rem; color: var(--khd-primary-line); }
html body .khd-pc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--khd-border); }
html body .khd-pc-btn, html body .khd-pc-more { position: relative; z-index: 1; } /* above the card link */
html body .khd-pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .4rem .95rem;
  border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1px solid transparent;
}
html body .khd-pc-btn.is-call { background: var(--khd-primary); color: #fff; }
html body .khd-pc-btn.is-call:hover { background: var(--khd-primary-dark); color: #fff; }
html body .khd-pc-btn.is-wa { background: #e7f6ec; color: #146c35; border-color: #bfe5cb; }
html body .khd-pc-btn.is-wa:hover { background: #d6f0de; color: #0f5a2b; }
html body .khd-pc-more { margin-left: auto; color: var(--khd-primary); font-weight: 600; font-size: .92rem; text-decoration: none; min-height: 42px; display: inline-flex; align-items: center; gap: .3rem; }
html body .khd-pc-more:hover { color: var(--khd-primary-dark); text-decoration: underline; }
html body .khd-pc-cta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 2rem; padding: 1.25rem 1.4rem;
  background: var(--khd-accent-soft); border: 1px solid #f3dc9c; border-radius: 16px;
}
html body .khd-pc-cta > .bi { font-size: 1.8rem; color: var(--khd-primary); }
html body .khd-pc-cta > div { flex: 1 1 260px; }
html body .khd-pc-cta strong { display: block; font-size: 1.08rem; color: var(--khd-ink); }
html body .khd-pc-cta p { margin: .15rem 0 0; color: var(--khd-muted); }
html body .khd-pc-hero-job { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; color: var(--khd-accent); font-weight: 700; font-size: 1.15rem; text-transform: capitalize; }
@media (max-width: 575.98px) {
  html body .khd-pc-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  html body .khd-pc-tools .khd-team-search, html body .khd-pc-select { flex-basis: 100%; max-width: none; }
  html body .khd-pc-btn { flex: 1 1 0; }
  html body .khd-pc-more { width: 100%; justify-content: center; margin-left: 0; }
}
/* parichayika card v2 (owner 2026-11-05: smaller corners, business-card shape): tall photo left, details right, actions below */
html body .khd-pc-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 1rem; row-gap: .85rem;
  padding: 1rem; border: 1px solid var(--khd-border); border-left: 4px solid var(--khd-primary); border-radius: 8px;
}
html body .khd-pc-card:hover { border-color: var(--khd-primary-line); border-left-color: var(--khd-primary); border-top-color: var(--khd-primary-line); }
html body .khd-pc-photo { width: 96px; height: 120px; border-radius: 6px; align-self: start; font-size: 2rem; }
html body .khd-pc-main { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
html body .khd-pc-job { font-size: 1.05rem; }
html body .khd-pc-facts { margin-top: .45rem; }
html body .khd-pc-name a::after { border-radius: 8px; }
html body .khd-pc-actions { grid-column: 1 / -1; margin-top: 0; padding-top: .75rem; border-top: 1px solid var(--khd-border); }
html body .khd-pc-btn { border-radius: 6px; }
html body .khd-pc-tools .khd-team-search input, html body .khd-pc-select select { border-radius: 8px; }
html body .khd-pc-cta { border-radius: 8px; }
@media (max-width: 575.98px) {
  html body .khd-pc-card { grid-template-columns: 84px minmax(0, 1fr); }
  html body .khd-pc-photo { width: 84px; height: 106px; }
}
html body .khd-team-photo.is-square { border-radius: 8px; width: clamp(110px, 24vw, 150px); height: clamp(138px, 30vw, 188px); }
html body .khd-team-details.is-pc { border-radius: 8px; border-left: 4px solid var(--khd-primary); }

/* ---------- about page: team carousel (Swiper 11, 2026-11-05) ---------- */
html body .khd-team-carousel { background: var(--khd-page); padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--khd-border); }
html body .khd-tc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
html body .khd-tc-head h2 {
  font-family: var(--khd-display) !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); color: var(--khd-ink) !important; margin: .45rem 0 .2rem;
}
html body .khd-tc-head p { color: var(--khd-muted); margin: 0; }
html body .khd-tc-nav { display: flex; gap: .5rem; flex: 0 0 auto; }
html body .khd-tc-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--khd-primary-line); background: #fff; color: var(--khd-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
html body .khd-tc-nav button:hover { background: var(--khd-primary); color: #fff; border-color: var(--khd-primary); }
html body .khd-tc-nav button.swiper-button-disabled { opacity: .4; cursor: default; }
html body .khd-tc-swiper { padding: 4px 2px 2.5rem; }
html body .khd-tc-swiper .swiper-slide { height: auto; }
html body .khd-tc-card {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--khd-border); border-radius: 10px; overflow: hidden;
  color: var(--khd-ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
html body .khd-tc-card:hover, html body .khd-tc-card:focus-visible { border-color: var(--khd-primary-line); box-shadow: 0 10px 24px rgba(78, 16, 19, .1); color: var(--khd-ink); }
html body .khd-tc-photo {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(160deg, var(--khd-deep) 0%, var(--khd-deep-2) 100%); color: rgba(255, 255, 255, .85); font-family: var(--khd-display); font-size: 3.5rem;
}
html body .khd-tc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
html body .khd-tc-card:hover .khd-tc-photo img { transform: scale(1.04); }
html body .khd-tc-body { display: flex; flex-direction: column; gap: .2rem; padding: .85rem .95rem 1rem; border-top: 3px solid var(--khd-accent); flex: 1 1 auto; }
html body .khd-tc-body strong { font-size: 1.05rem; line-height: 1.25; }
html body .khd-tc-role { color: var(--khd-primary); font-weight: 600; font-size: .92rem; line-height: 1.3; }
html body .khd-tc-area { color: var(--khd-muted); font-size: .85rem; line-height: 1.3; margin-top: auto; padding-top: .25rem; }
html body .khd-tc-dots { position: absolute; bottom: .4rem !important; z-index: 2; }
html body .khd-tc-dots .swiper-pagination-bullet { background: var(--khd-primary); opacity: .25; }
html body .khd-tc-dots .swiper-pagination-bullet-active { opacity: 1; }
html body .khd-tc-all { text-align: center; margin-top: .5rem; }
@media (max-width: 575.98px) {
  html body .khd-tc-nav { display: none; }
  html body .khd-tc-photo { aspect-ratio: 1 / 1; font-size: 2.6rem; }
  html body .khd-tc-body { padding: .65rem .75rem .8rem; }
  html body .khd-tc-body strong { font-size: .98rem; }
  html body .khd-tc-role { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { html body .khd-tc-photo img { transition: none; } }

/* ---------- /social-media: bento photo grid + full-screen Swiper viewer with thumbnails (2026-11-05) ---------- */
html body .khd-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 10px; }
html body .khd-bento-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  background: var(--khd-border); cursor: zoom-in;
}
html body .khd-bento-item.is-big { grid-column: span 2; grid-row: span 2; }
html body .khd-bento-item.is-wide { grid-column: span 2; }
html body .khd-bento-item.is-tall { grid-row: span 2; }
html body .khd-bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html body .khd-bento-bg { object-fit: cover; filter: blur(18px) saturate(1.1) brightness(.75); transform: scale(1.15); } /* soft fill behind the whole photo */
html body .khd-bento-img { object-fit: contain; transition: transform .35s ease; } /* whole photo visible, never cropped (owner) */
html body .khd-bento-item:hover .khd-bento-img { transform: scale(1.03); }
html body .khd-bento-item:focus-visible { outline: 3px solid var(--khd-accent); outline-offset: 2px; }
html body .khd-bento-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .7rem .55rem; text-align: left;
  background: linear-gradient(to top, rgba(28, 8, 10, .82), rgba(28, 8, 10, 0)); color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 991.98px) { html body .khd-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 170px; } }
@media (max-width: 575.98px) {
  html body .khd-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 6px; }
  html body .khd-bento-cap { font-size: .78rem; padding: 1.2rem .5rem .4rem; }
}

html.khd-viewer-open, html.khd-viewer-open body { overflow: hidden; }
html body .khd-viewer { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #0e0607; color: #fff; }
html body .khd-viewer[hidden] { display: none; }
html body .khd-viewer-bar { display: flex; align-items: center; gap: 1rem; padding: .6rem .75rem .6rem 1rem; min-height: 60px; }
html body .khd-viewer-count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); white-space: nowrap; font-size: .95rem; }
html body .khd-viewer-count b { color: #fff; }
html body .khd-viewer-cap { flex: 1 1 auto; margin: 0; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .khd-viewer-close, html body .khd-viewer-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.15rem; cursor: pointer;
}
html body .khd-viewer-close:hover, html body .khd-viewer-arrow:hover { background: rgba(255, 255, 255, .18); }
html body .khd-viewer-close:focus-visible, html body .khd-viewer-arrow:focus-visible { outline: 2px solid var(--khd-accent); outline-offset: 2px; }
html body .khd-viewer-stage { position: relative; flex: 1 1 auto; min-height: 0; }
html body .khd-viewer-main { width: 100%; height: 100%; }
html body .khd-viewer-main .swiper-slide { display: flex; align-items: center; justify-content: center; overflow: hidden; }
html body .khd-viewer-main .swiper-zoom-container img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
html body .khd-viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
html body .khd-viewer-arrow.is-prev { left: 1rem; }
html body .khd-viewer-arrow.is-next { right: 1rem; }
html body .khd-viewer-arrow.swiper-button-disabled { opacity: .3; cursor: default; }
html body .khd-viewer-thumbs { flex: 0 0 auto; width: 100%; padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom)); box-sizing: border-box; }
html body .khd-viewer-thumbs .swiper-slide { width: 84px; height: 62px; border-radius: 6px; overflow: hidden; opacity: .45; cursor: pointer; transition: opacity .2s ease; border: 2px solid transparent; }
html body .khd-viewer-thumbs .swiper-slide:hover { opacity: .8; }
html body .khd-viewer-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--khd-accent); }
html body .khd-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575.98px) {
  html body .khd-viewer-arrow { display: none; }
  html body .khd-viewer-thumbs .swiper-slide { width: 64px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { html body .khd-bento-img { transition: none; } }

/* ---------- footer: big faded wordmark along the bottom edge (owner 2026-11-05): "KHD INDIA" on desktop, "KHD" on phones ---------- */
html body .khd-footer { position: relative; }
html body .khd-footer-giant { overflow: hidden; padding: 0 clamp(8px, 2vw, 24px); margin-top: clamp(.5rem, 2vw, 1.5rem); line-height: 1; user-select: none; pointer-events: none; }
html body .khd-footer-giant span {
  display: block; text-align: center; white-space: nowrap;
  font-family: "Cinzel Decorative", var(--khd-display); font-weight: 900; letter-spacing: -.01em;
  font-size: clamp(3.2rem, 14.2vw, 17rem); line-height: .78;
  margin-bottom: -.12em; /* letters run off the bottom edge */
  background: linear-gradient(180deg, rgba(245, 185, 30, .42) 0%, rgba(245, 185, 30, .12) 55%, rgba(245, 185, 30, 0) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html body .khd-footer-giant .is-short { display: none; }
@media (max-width: 767.98px) {
  html body .khd-footer-giant .is-full { display: none; }
  html body .khd-footer-giant .is-short { display: block; font-size: 36vw; }
}
/* footer dev credit: easier to see (owner 2026-11-05) */
html body .khd-footer-bottom .khd-footer-credit {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .3rem .8rem; border-radius: 999px;
  border: 1px solid rgba(245, 185, 30, .35); background: rgba(245, 185, 30, .08);
  color: rgba(255, 255, 255, .9); font-size: .9rem !important;
}
html body .khd-footer-credit a { color: var(--khd-accent) !important; font-weight: 700; }
html body .khd-footer-credit a:hover { color: #fff !important; }
html body .khd-footer-credit a .bi { font-size: 1rem; }
/* phones: copyright and dev credit centred, stacked with a clear gap (owner 2026-11-05) */
@media (max-width: 767.98px) {
  html body .khd-footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 1rem; padding-top: 1.25rem; }
  html body .khd-footer-bottom > p { width: 100%; justify-content: center; }
  html body .khd-footer-bottom .khd-footer-credit { width: auto; margin: .25rem auto 0; padding: .45rem 1rem; }
  html body .khd-footer-admin { display: inline-flex; margin: .35rem 0 0 0; }
}
