/* =====================================================================
   DESIGN SYSTEM — Community/Samaj Platform
   Base structural CSS + safe fallback tokens. Every theme file in
   /assets/css/themes/ overrides the :root tokens below; this file
   never hardcodes a color directly — everything reads var(--...) so
   swapping the active theme in Admin changes the whole site.
   ===================================================================== */

:root {
  /* Fallback tokens (Premium Family values — overridden by theme files) */
  --color-primary: #b5502e;
  --color-primary-dark: #8a3a1f;
  --color-primary-light: #f0dccf;
  --color-accent: #c8952e;
  --color-accent-light: #f7ecd4;
  --color-bg: #fdf8f2;
  --color-surface: #ffffff;
  --color-text: #2e2420;
  --color-text-muted: #7a6d64;
  --color-border: #ead9c9;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;

  --header-bg: var(--color-primary);
  --card-shadow: 0 4px 16px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 10px 28px rgba(0,0,0,0.14);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --gap: var(--space-3);

  /* Type scale */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;

  --radius: 12px; /* legacy alias kept for old rules below */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* Mobile: hide scrollbar tracks everywhere, not just the one row that
   was reported (§ follow-up: "mobile view se scroll bar hata de").
   Real phone browsers already do this themselves (overlay scrollbars
   that only appear while actively dragging) — desktop Chrome's
   "Responsive" device-emulation mode is the odd one out, always
   reserving space for a classic visible scrollbar even on an emulated
   phone width. This makes every viewport behave like a real phone:
   anything that scrolls (the quick-actions row, a wide table, the
   "More" sheet) still scrolls perfectly via touch/swipe — there's
   just never a visible bar for it. */
@media (max-width: 900px) {
  * {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  *::-webkit-scrollbar {
    display: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* RESPONSIVE FIX: long unbroken strings (emails, URLs, long skill/tag
     lists in job, business and matrimonial cards) had no wrap handling
     and could force horizontal overflow on narrow (320-375px) screens.
     Applied globally rather than per-module since the same content
     types appear in many places. */
  overflow-wrap: break-word;
  word-break: break-word;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, .hero h1 { font-family: var(--font-heading); line-height: 1.25; }

a { color: var(--color-primary); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   Header / Navigation (with CSS-only mobile hamburger — no JS needed)
   --------------------------------------------------------------------- */
.site-header {
  display: flex;
  /* BUG FIX: this was `flex-wrap: wrap` at every width, so once the
     logged-in nav grew past the logged-out nav (Login+Register ->
     Messages+Admin Panel/My Dashboard+Logout is 1 more item and more
     text), the whole <nav> block no longer fit beside the brand and
     wrapped as a unit onto its own row below the brand name -- while
     the logged-out nav (fewer/shorter items) still fit and stayed on
     the same row. Fixed to `nowrap` here (desktop default). Below
     900px .primary-nav is hidden entirely (see nav.primary-nav rule
     below) and replaced by the fixed bottom-nav + slide-up sheet, so
     this header row only ever holds the brand + language switch on
     mobile and never needs to wrap. */
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.06) inset;
}

.site-header .brand a { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; white-space: nowrap; }
.site-header .brand { flex-shrink: 0; }
.brand-logo { height: 36px; width: auto; border-radius: 4px; }

.site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.15rem; }
.site-header nav a {
  color: #fff;
  margin-left: 0.15rem;
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.site-header nav a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.site-header nav a { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-icon { width: 15px; height: 15px; flex-shrink: 0; }

/* Compact icon buttons for Notifications/Messages (§ header layout fix
   follow-up) -- using full text labels for these two pushed the logged-in
   nav's total width past what fits beside the brand on common desktop
   widths, so the nav's own internal wrap (see .site-header nav above)
   kicked in and dropped "Logout" onto an awkward lone second line. Icons
   take a fraction of the space of "Notifications"/"Messages" as text,
   fixing the fit at normal widths -- and unlike a padding/font-size
   tweak, this scales safely as more nav items get added later. Label
   stays available to assistive tech via aria-label. */
.nav-icon-link {
  position: relative;
  font-size: 1.15rem !important;
  padding: 0.35rem 0.5rem !important;
  line-height: 1;
}
.nav-icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Language switcher (§39 — Hindi support) */
.lang-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.5) !important;
  font-weight: 700;
  font-size: 0.8rem !important;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.lang-switch:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* WhatsApp share button (§ WhatsApp Broadcast Integration) */
.whatsapp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: #25D366;
  color: #fff !important;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.88rem;
}
.whatsapp-share-btn:hover { background: #1ebe57; }

/* Category dropdowns (About, Community, Opportunities, Resources).
   Root cause of the earlier "stuck open / overlapping" bug: <details>
   sets a permanent [open] state on click that CSS can't un-set, so it
   conflicted with hover-preview — clicking one, then hovering another,
   left multiple menus open at once. Fix: on desktop, visibility is
   driven ONLY by :hover/:focus-within (never by [open]), so moving the
   mouse away always closes it, full stop. [open] is only honored on
   mobile, where there's no hover and native tap-to-toggle is correct. */
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: #fff;
  margin-left: 0.25rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::marker { content: ''; }
.nav-dropdown summary:hover { background: rgba(255,255,255,0.15); }
.nav-dropdown summary::after {
  content: '\25BE';
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

@media (min-width: 901px) {
  .nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow-hover);
    min-width: 210px;
    padding: 0.5rem;
    z-index: 50;
    display: grid;
    gap: 0.15rem;
    /* Animated via opacity/transform, not display, so it can transition
       smoothly and closing is always driven by :hover leaving. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-dropdown:hover summary::after,
  .nav-dropdown:focus-within summary::after { transform: rotate(180deg); }

  .nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-text);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    margin: 0;
    transition: background 0.12s ease;
  }
  .nav-dropdown .dropdown-menu a .icon-inline { color: var(--color-primary); flex-shrink: 0; vertical-align: middle; }
  .nav-dropdown .dropdown-menu a:hover { background: var(--color-accent-light); }
}

/* Below 900px the full link list (.primary-nav, kept in the DOM for SEO
   and no-CSS agents) is replaced visually by the fixed bottom tab bar +
   slide-up "More" sheet — see markup right after </header>. */
@media (max-width: 900px) {
  .site-header { flex-wrap: nowrap; }
  .site-header nav.primary-nav { display: none; }
}

/* ---------------------------------------------------------------------
   Mobile bottom navigation + slide-up "More" sheet (replaces the old
   hamburger drawer). Pure CSS (:checked sibling toggle) — no JS
   dependency, matches the project's dependency-free convention.
   --------------------------------------------------------------------- */
.sheet-toggle { position: absolute; opacity: 0; pointer-events: none; }
.bottom-nav, .sheet-backdrop, .bottom-sheet { display: none; }

@media (max-width: 900px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 18px rgba(0,0,0,0.1);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.3rem 0.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    /* BUG FIX (video walkthrough): the global body { word-break:
       break-word } rule (needed elsewhere for long URLs/emails) was
       splitting ordinary nav words like "Submissions" mid-letter
       ("Submissio" / "ns"). Nav labels are short — keep them whole and
       just give narrow screens a smaller font instead. */
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .bottom-nav-item .icon { width: 22px; height: 22px; }
  .bottom-nav-item:active { transform: scale(0.92); }
  .bottom-nav-item.active { color: var(--color-primary); }
  .bottom-nav-item.active .icon { filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--color-primary) 45%, transparent)); }
  @media (max-width: 380px) {
    .bottom-nav-item { font-size: 0.6rem; letter-spacing: -0.01em; }
  }

  /* Room at the bottom of the page so content never sits under the bar */
  body { padding-bottom: 64px; }

  .sheet-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 210;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .bottom-sheet {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 220;
    background: var(--color-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
    max-height: 82vh;
    overflow-y: auto;
    padding: 0.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.28s ease;
  }
  #more-sheet-toggle:checked ~ .sheet-backdrop { opacity: 1; pointer-events: auto; }
  #more-sheet-toggle:checked ~ .bottom-sheet { transform: translateY(0); }

  .bottom-sheet-handle { width: 40px; height: 4px; background: var(--color-border); border-radius: 999px; margin: 0.6rem auto 0.75rem; }
  .bottom-sheet-close {
    position: absolute; top: 0.5rem; right: 1rem;
    font-size: 1.6rem; line-height: 1; color: var(--color-text-muted);
    cursor: pointer; padding: 0.2rem 0.5rem;
  }
  .bottom-sheet-quicklinks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }
  @media (max-width: 400px) {
    /* BUG FIX (video walkthrough): at 2 columns on a ~360px phone each
       cell was only ~140px wide — not enough room for words like
       "Notifications" or "Dashboard", so they broke mid-word (see
       .bottom-nav-item fix above for the root cause). One column gives
       each label the full sheet width. */
    .bottom-sheet-quicklinks { grid-template-columns: 1fr; }
  }
  .sheet-quicklink {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent-light);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .sheet-quicklink .icon { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }
  .sheet-lang { display: flex; justify-content: center; margin-top: 0.5rem; background: var(--color-primary); color: #fff; }
  .sheet-lang:hover { color: #fff; }

  .bottom-sheet-groups { display: grid; gap: 1.1rem; }
  .sheet-group h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--color-primary);
  }
  .sheet-group { display: grid; }
  .sheet-group a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.55rem 0.1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.92rem;
  }
  .sheet-group a .icon-inline { color: var(--color-primary); flex-shrink: 0; vertical-align: middle; }
  .sheet-group a:last-child { border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-sheet, .sheet-backdrop { transition: none; }
}

/* ---------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------- */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
button, .btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 35%, transparent);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
button:hover, .btn:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 45%, transparent);
}
button:active, .btn:active { transform: translateY(0); box-shadow: 0 3px 10px color-mix(in srgb, var(--color-primary) 35%, transparent); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-accent { background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); box-shadow: 0 4px 14px color-mix(in srgb, var(--color-accent) 35%, transparent); }
.btn-accent:hover { background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); filter: brightness(1.05); }

.link-button {
  background: none;
  border: none;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}
.link-danger { color: #a12a2a; }

/* ---------------------------------------------------------------------
   Alerts / badges
   --------------------------------------------------------------------- */
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-error { background: #fdecea; color: #a12a2a; }
.alert-success { background: #eaf7ec; color: #1e6b2e; }
.alert-warning { background: #fff3cd; color: #7a5c00; }
.alert-info { background: var(--color-accent-light); color: var(--color-text); }
small.error { color: #a12a2a; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* BUG FIX (found while upgrading the member dashboard): status_pill()
   is called from several member self-service pages (dashboard,
   my-jobs, my-businesses, my-requests, matrimonial my-profile) but its
   CSS previously only existed in admin.css, which those pages never
   load — so every pending/approved/rejected pill on the member side
   rendered as plain unstyled text. Mirrors admin.css's colors so the
   same pill looks identical in both places. */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-pill .icon { width: 14px; height: 14px; }
.status-pill-pending  { background: #fdf0d5; color: #b8860b; }
.status-pill-approved { background: #e2f3e6; color: #1e6b2e; }
.status-pill-rejected { background: #fbe4e4; color: #a12a2a; }

.error-page { text-align: center; padding: 4rem 1rem; }

/* ---------------------------------------------------------------------
   Section heading — accent-underlined title used to open each homepage
   section / module public-index page.
   --------------------------------------------------------------------- */
.section-heading { text-align: center; margin-bottom: var(--space-5); }
.section-heading h2 { font-size: var(--text-2xl); margin: 0 0 0.5rem; }
.section-heading::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--color-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
.section-heading p { color: var(--color-text-muted); max-width: 560px; margin: 0 auto; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: var(--text-3xl); margin-bottom: 0.6rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--color-primary); font-weight: 600; }

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  text-align: left;
  padding: var(--space-6) 1.5rem;
  margin: 0 0 var(--space-5);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--color-accent) 22%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--color-primary) 20%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-accent-light) 0%, var(--color-bg) 100%);
}
/* Two soft floating "wow" blobs behind the hero content — pure CSS,
   no images, theme-aware via var() so every theme still looks right. */
.hero-split::before,
.hero-split::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.hero-split::before {
  width: 260px; height: 260px;
  top: -60px; right: 8%;
  background: var(--color-accent);
  animation: hero-float 7s ease-in-out infinite;
}
.hero-split::after {
  width: 180px; height: 180px;
  bottom: -50px; left: 4%;
  background: var(--color-primary);
  animation: hero-float 9s ease-in-out infinite reverse;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.06); }
}
.hero-copy, .hero-art { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
  animation: hero-rise 0.6s ease both;
}
.hero-split .hero-copy h1 {
  animation: hero-rise 0.7s ease both 0.08s;
  background: linear-gradient(100deg, var(--color-text) 30%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-text); /* fallback if background-clip: text isn't supported */
}
@supports not (background-clip: text) {
  .hero-split .hero-copy h1 { -webkit-text-fill-color: initial; background: none; color: var(--color-text); }
}
.hero-split .hero-subtitle { animation: hero-rise 0.7s ease both 0.16s; }
.hero-split .hero-copy > p:not(.hero-subtitle) { animation: hero-rise 0.7s ease both 0.24s; }
.hero-split .hero-cta { animation: hero-rise 0.7s ease both 0.32s; }
.hero-art { animation: hero-rise 0.8s ease both 0.2s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-split::before, .hero-split::after { animation: none; }
  .hero-eyebrow, .hero-split .hero-copy h1, .hero-split .hero-subtitle,
  .hero-split .hero-copy > p:not(.hero-subtitle), .hero-split .hero-cta, .hero-art {
    animation: none; opacity: 1; transform: none;
  }
}
.hero-split img { border-radius: var(--radius-lg); box-shadow: var(--card-shadow-hover); }
.hero-split .hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.12)); }
.hero-art-logo { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.15)); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid #fff; padding: 0.63rem 1.4rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; display: inline-block; }
.btn-outline-light:hover { background: #fff; color: var(--color-primary); }
@media (max-width: 780px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; padding: var(--space-5) 1rem; }
  .hero-split .hero-cta { justify-content: center; }
}

.cta-final {
  text-align: center;
  padding: var(--space-6) 1.5rem;
  background: var(--header-bg);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: var(--space-5) 0;
}
.cta-final h2 { font-size: var(--text-2xl); margin: 0 0 0.5rem; color: #fff; }
.cta-final p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

.hero-compact { padding: 1.5rem 1rem; text-align: left; }
.hero-compact h1 { font-size: 1.75rem; margin: 0; }

/* ---------------------------------------------------------------------
   Content blocks
   --------------------------------------------------------------------- */
.content-block { padding: var(--space-5) 0; border-top: 1px solid var(--color-border); }
.content-block h2 { margin-bottom: 0.25rem; }

.breadcrumbs { padding: 0.75rem 0; font-size: 0.85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 0.35rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.35rem; color: var(--color-text-muted, #766); }
.breadcrumbs li:not(:last-child)::after { content: '/'; opacity: 0.5; margin-left: 0.35rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li span[aria-current] { font-weight: 600; }
.section-subtitle { color: var(--color-text-muted); margin-top: 0; }
.section-body { white-space: pre-line; }

/* ---------------------------------------------------------------------
   Cards (used across every module — auto-adapts to N cards per §18)
   --------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}

/* Icon set (includes/icons.php) + member-dashboard stat tiles/progress bar
   — mirrors the admin dashboard redesign so the two "Dashboard" surfaces
   in the app look and behave consistently. */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; vertical-align: -5px; color: var(--color-accent); }
.icon-inline { width: 16px; height: 16px; vertical-align: -3px; }
.icon-flip { transform: scaleX(-1); }

.stat-grid-icon {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.stat-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--card-shadow);
  position: relative;
}
a.stat-tile { text-decoration: none; color: inherit; transition: box-shadow 0.15s ease, transform 0.15s ease; }
a.stat-tile:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.stat-tile-arrow { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }
.stat-tile-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-tile-icon-primary { background: var(--color-primary-light, var(--color-accent-light)); color: var(--color-primary); }
.stat-tile-icon-warning { background: #fdf0d5; color: #b8860b; }
.stat-tile-icon-success { background: #e2f3e6; color: #1e6b2e; }
.stat-tile-icon-danger  { background: #fbe4e4; color: #a12a2a; }
.stat-tile-number { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--color-text); }
.stat-tile-label { color: var(--color-text-muted); font-size: 0.82rem; margin-top: 0.15rem; }

/* Member dashboard hero — photo/avatar + greeting, mirrors the admin
   dashboard's "Welcome back" header for consistency across both
   "Dashboard" surfaces in the app. */
.dash-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.75rem 1.5rem;
  background: var(--header-bg);
  color: #fff;
}
.dash-hero h1 { color: #fff; margin: 0 0 0.2rem; }
.dash-hero .dash-subtitle { color: rgba(255,255,255,0.85); }
.dash-hero-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.4);
}
.dash-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.dash-hero-photo .icon { color: #fff; }

.account-summary-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 0.5rem 1.3rem;
}
.account-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.account-summary-row:last-child { border-bottom: none; }
.account-summary-row span { display: flex; align-items: center; gap: 0.4rem; color: var(--color-text-muted); }

.profile-progress-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1.3rem;
}
.profile-progress-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 0.6rem; }
.profile-progress-head a { font-size: 0.85rem; }
.profile-progress-bar { background: var(--color-border); border-radius: 999px; height: 8px; overflow: hidden; }
.profile-progress-fill { background: var(--color-accent); height: 100%; border-radius: 999px; transition: width 0.3s ease; }
.profile-progress-card .dash-subtitle { margin: 0.6rem 0 0; }
.dash-subtitle { color: var(--color-text-muted); font-size: 0.88rem; margin: 0; }
.card h3 { margin: 0 0 0.35rem; font-size: var(--text-lg); }
.icon-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; }
.icon-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* Empty state — shown wherever a card-grid/list has zero items */
.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-3);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.6; display: block; }
.empty-state .empty-icon .icon { width: 40px; height: 40px; }

/* Simple stat block — for homepage community-stats section */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  text-align: center;
}
.stat-block { background: var(--color-surface); border-radius: var(--radius); padding: 1.25rem 0.5rem; box-shadow: var(--card-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-block:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.stat-block-icon { color: var(--color-accent); display: flex; justify-content: center; margin-bottom: 0.4rem; }
.stat-block-icon .icon { width: 26px; height: 26px; }
.stat-block .stat-number { font-size: var(--text-2xl); font-weight: 700; color: var(--color-primary); }
.stat-block .stat-label { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 0.25rem; }

/* Distinct pastel tint per stat box (cycles through 5 colors) — makes
   a row of stats easier to scan at a glance instead of five identical
   white cards. Colors are derived from the active theme's own palette
   via color-mix(), so this stays theme-aware automatically. */
.stat-grid .stat-block:nth-child(5n+1) { background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)); }
.stat-grid .stat-block:nth-child(5n+2) { background: color-mix(in srgb, #2563eb 12%, var(--color-surface)); }
.stat-grid .stat-block:nth-child(5n+3) { background: color-mix(in srgb, #1e6b2e 12%, var(--color-surface)); }
.stat-grid .stat-block:nth-child(5n+4) { background: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface)); }
.stat-grid .stat-block:nth-child(5n+5) { background: color-mix(in srgb, #6d28d9 12%, var(--color-surface)); }
.stat-grid .stat-block:nth-child(5n+1) .stat-number { color: var(--color-primary); }
.stat-grid .stat-block:nth-child(5n+2) .stat-number { color: #2563eb; }
.stat-grid .stat-block:nth-child(5n+3) .stat-number { color: #1e6b2e; }
.stat-grid .stat-block:nth-child(5n+4) .stat-number { color: color-mix(in srgb, var(--color-accent) 70%, black); }
.stat-grid .stat-block:nth-child(5n+5) .stat-number { color: #6d28d9; }

/* Skeleton loader (CSS-only shimmer, no JS) */
.skeleton { background: linear-gradient(90deg, var(--color-border) 25%, #f5ede2 37%, var(--color-border) 63%); background-size: 400% 100%; animation: skeleton-shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { padding: var(--space-5) 1.5rem var(--space-3); font-size: 0.85rem; color: var(--color-text-muted); background: var(--color-surface); border-top: 1px solid var(--color-border); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  max-width: 1080px;
  margin: 0 auto var(--space-4);
  text-align: left;
}
.footer-col h4 { font-family: var(--font-heading); color: var(--color-text); margin: 0 0 0.6rem; font-size: var(--text-base); }
.footer-col a { display: block; color: var(--color-text-muted); text-decoration: none; padding: 0.2rem 0; font-size: 0.85rem; }
.footer-col a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-bottom { text-align: center; border-top: 1px solid var(--color-border); padding-top: var(--space-3); max-width: 1080px; margin: 0 auto; }
.footer-social a { margin: 0 0.4rem; color: var(--color-primary); text-decoration: none; }
.footer-legal a { color: var(--color-text-muted); text-decoration: none; font-size: 0.8rem; }
.footer-legal a:hover { text-decoration: underline; }
.footer-contact { color: var(--color-text); }

/* ---------------------------------------------------------------------
   FAQ / forms / directory search / gallery — unchanged selectors,
   refreshed values
   --------------------------------------------------------------------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { background: var(--color-surface); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--card-shadow); }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-answer { margin-top: 0.6rem; color: var(--color-text-muted); }

.contact-form { max-width: 480px; }
.contact-direct { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }

.auth-page form { display: grid; gap: 0.75rem; max-width: 420px; }
.auth-page label { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.auth-page input, .auth-page select {
  padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
}

.directory-search { display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem; flex-wrap: wrap; }
.directory-search input[type="text"] { flex: 1; min-width: 200px; padding: 0.6rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.directory-search select { padding: 0.6rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.directory-search button { padding: 0.6rem 1.2rem; }
.search-input-wrap { position: relative; flex: 1; min-width: 200px; display: flex; align-items: center; }
.search-input-wrap .icon { position: absolute; left: 0.65rem; width: 16px; height: 16px; color: var(--color-text-muted); pointer-events: none; }
.search-input-wrap input[type="text"] { width: 100%; padding-left: 2.1rem; }

.profile-photo-preview { max-width: 180px; border-radius: var(--radius); margin-bottom: 1rem; display: block; box-shadow: var(--card-shadow); }

@media (max-width: 480px) {
  .site-header { flex-direction: row; }
}

/* Shared form/table classes — used by both admin views (admin.css
   loads this file too) and member self-service pages. */
.admin-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-sm); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.admin-table th { background: var(--color-accent-light); }

/* RESPONSIVE FIX: .admin-table had no horizontal-scroll handling, so any
   table with more than ~4 columns (Members, Jobs, Matrimonial approvals,
   etc.) would force the whole page to overflow sideways on narrow
   screens (phones, and the admin sidebar's mobile breakpoint). Turning
   the table into a horizontally-scrollable block below 780px keeps every
   column reachable via a contained scroll instead of breaking page
   layout — no per-view markup changes needed since it applies to the
   table element itself. */
@media (max-width: 780px) {
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

.cms-form { display: grid; gap: 1.25rem; max-width: 640px; }
.cms-form fieldset { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.75rem; }
.cms-form legend { font-weight: 700; padding: 0 0.4rem; }
.cms-form label { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.cms-form input:not([type="checkbox"]):not([type="radio"]), .cms-form textarea, .cms-form select {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  padding: 0.6rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
}
.cms-form input[type="checkbox"],
.cms-form input[type="radio"] { width: auto; flex-shrink: 0; }
.cms-form input:focus, .cms-form textarea:focus, .cms-form select:focus { border-color: var(--color-primary); }
.cms-form label.field-checkbox { display: flex; align-items: center; gap: 0.5rem; flex-direction: row; }
.cms-form label.field-checkbox input[type="checkbox"] { width: auto; flex-shrink: 0; }
.cms-cancel-link { margin-left: 1rem; color: var(--color-text-muted); text-decoration: none; }

/* Gallery: responsive grid + CSS-only lightbox (:target trick) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.gallery-thumb { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform 0.2s ease; }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-video-thumb {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1;
  background: #222; color: #fff; border-radius: var(--radius-sm); text-decoration: none; padding: 0.5rem; text-align: center;
}
.lightbox-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 1000; align-items: center; justify-content: center; flex-direction: column; padding: 2rem;
}
.lightbox-overlay:target { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox-caption { color: #fff; margin-top: 0.75rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2rem; text-decoration: none; line-height: 1; }

/* FAQ accordion (homepage widget): native <details>/<summary>, no JS needed */
.faq-item {
  border: 1px solid var(--color-border, #e2e2e2); border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-bottom: 0.6rem; background: #fff;
}
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--color-primary); }
.faq-item[open] summary::before { content: "- "; }
.faq-item p { margin: 0.6rem 0 0; color: var(--color-text-muted, #555); }

/* Accessibility: visually hides text while keeping it available to screen
   readers, for inputs where a visible <label> would clutter a compact
   layout (search boxes, inline filters) — placeholder text alone is not
   an accessible label (it disappears on focus/input and isn't reliably
   announced). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm, 4px) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------------
   Scroll-reveal (JS toggles .is-visible via IntersectionObserver in
   assets/js/site-effects.js; CSS-only fallback if JS is off — content
   is never hidden outright, just starts slightly faded/offset so pages
   still work with JS disabled).
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Generic content-block cards get a bit more life on hover across the
   site (services, jobs, events, gallery, directory, etc. all reuse
   .content-block > .card / .grid-card patterns). */
.content-block .card,
.content-block .grid-card,
.content-block .job-card,
.content-block .business-card,
.content-block .event-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.content-block .card:hover,
.content-block .grid-card:hover,
.content-block .job-card:hover,
.content-block .business-card:hover,
.content-block .event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

/* Section heading gets a small entrance + a slightly livelier underline */
.section-heading::after { transition: width 0.4s ease; }

/* Sponsor / ad banner strip (admin-managed via /admin/sponsors) */
.sponsor-strip { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.sponsor-banners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; }
.sponsor-banner { display: inline-flex; align-items: center; justify-content: center; opacity: 0.85; transition: opacity 0.2s ease, transform 0.2s ease; }
.sponsor-banner:hover { opacity: 1; transform: translateY(-2px); }
.sponsor-banner img { max-height: 60px; max-width: 220px; object-fit: contain; }
.sponsor-banner-text { font-weight: 600; color: var(--color-text-muted); padding: 0.5rem 1rem; border: 1px dashed var(--color-border); border-radius: var(--radius-sm); }

/* Top utility bar — optional slogan/tagline + social icon strip above
   the main header, shown only when a Tagline or a social link is set
   in Admin -> CMS -> Site Settings. Theme-aware via var() like
   everything else, so it fits whichever theme is active without any
   theme-specific markup. */
.top-utility-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-utility-tagline { opacity: 0.95; }
.top-utility-social { display: flex; gap: 0.75rem; margin-left: auto; }
.top-utility-social a { color: #fff; opacity: 0.9; display: inline-flex; }
.top-utility-social a:hover { opacity: 1; }
.top-utility-social svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .top-utility-bar { justify-content: center; text-align: center; } .top-utility-social { margin-left: 0; } }

/* =====================================================================
   ICON BADGE SYSTEM 2026 — replaces flat single-tint icon squares with
   a gradient badge + soft glow + spring tap/hover animation. Purely
   additive re-declarations of the SAME selectors above (loaded later
   in this file, so they win the cascade) — nothing about the markup
   changes, so every page already using .stat-tile-icon (member
   dashboard, admin dashboard) or these menu-icon classes picks this up
   automatically with no template edits.
   ===================================================================== */
.stat-tile-icon {
  border-radius: 14px;
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.stat-tile-icon-primary { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; }
.stat-tile-icon-warning { background: linear-gradient(135deg, #eab308 0%, #b8860b 100%); color: #fff; }
.stat-tile-icon-success { background: linear-gradient(135deg, #34a853 0%, #1e6b2e 100%); color: #fff; }
.stat-tile-icon-danger  { background: linear-gradient(135deg, #e5484d 0%, #a12a2a 100%); color: #fff; }
a.stat-tile:hover .stat-tile-icon, .stat-tile:hover .stat-tile-icon { transform: scale(1.08) rotate(-4deg); }
a.stat-tile:active .stat-tile-icon, .stat-tile:active .stat-tile-icon { transform: scale(0.94) rotate(0deg); }
a.stat-tile { overflow: hidden; }
a.stat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}
a.stat-tile:hover::before { transform: translateX(120%); transition: transform 0.7s ease; }

/* Menu-row icons — public mobile "More" sheet + desktop nav dropdowns.
   Was a bare stroked icon sitting on plain text; now a small tinted
   circular chip that fills solid on press, so the menu reads as an
   app rather than a document link list. */
.sheet-group a .icon-inline,
.nav-dropdown .dropdown-menu a .icon-inline {
  width: 28px;
  height: 28px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 999px;
  background: var(--color-accent-light);
  vertical-align: middle;
  margin-right: 0.15rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}
.sheet-group a:active .icon-inline,
.nav-dropdown .dropdown-menu a:hover .icon-inline {
  background: var(--color-primary);
  color: #fff !important;
  transform: scale(1.08) rotate(-6deg);
}

@media (prefers-reduced-motion: reduce) {
  .stat-tile-icon, a.stat-tile::before, .sheet-group a .icon-inline, .nav-dropdown .dropdown-menu a .icon-inline {
    transition: none !important;
  }
  a.stat-tile:hover::before { transform: translateX(-120%); }
}

/* =====================================================================
   MENU ICON GRID 2026 — turns the categorized link list inside the
   mobile "More" sheet (and its per-item icon) into an app-style grid
   of icon tiles (icon badge on top, label below), the pattern most
   modern app "more" menus use. Public + member site only — the admin
   panel's own accordion groups get the matching treatment directly in
   admin-2026.css since their DOM nesting differs slightly. No markup
   change: same <a> links, same icon('name','icon-inline') calls —
   only the layout and icon size change.
   ===================================================================== */
@media (max-width: 1100px) {
  body:not(.admin-body) .sheet-group {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem 0.3rem;
    margin-bottom: 0.3rem;
  }
  body:not(.admin-body) .sheet-group h4 { grid-column: 1 / -1; margin-bottom: 0.2rem; }
  body:not(.admin-body) .sheet-group a {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    border-bottom: none;
    padding: 0.25rem 0.1rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
  }
  body:not(.admin-body) .sheet-group a .icon-inline {
    width: 22px;
    height: 22px;
    padding: 12px;
    margin: 0 auto;
  }
  @media (max-width: 380px) {
    body:not(.admin-body) .sheet-group { grid-template-columns: repeat(3, 1fr); }
  }
}

/* =====================================================================
   Matrimonial "My Profile" — quick-start cards shown before a profile
   exists (upload a ready-made PDF vs. build one online). Two-column,
   collapses to one on narrow screens.
   ===================================================================== */
.quick-start-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 1.5rem;
  align-items: start;
}
.quick-start-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.25rem 1.4rem;
}
.quick-start-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.quick-start-card .cms-form { margin-top: 0.75rem; }
