/* ==========================================================================
   site.css — header, footer and every public page (home, auth, register,
   profile, matches, match detail) + print rules for the biodata.
   ========================================================================== */

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--maroon-700), var(--gold-500) 50%, var(--maroon-700)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: calc(var(--header-h) - 3px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; white-space: nowrap; }
.brand img { width: 42px; height: 42px; }
.brand-text strong { display: block; font-size: 1.35rem; line-height: 1.2; color: var(--maroon-700); font-weight: 800; }
.brand-text small { display: block; font-size: .72rem; color: var(--ink-500); letter-spacing: .04em; line-height: 1.3; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { white-space: nowrap; padding: .5em .95em; border-radius: 999px; text-decoration: none; color: var(--ink-700); font-weight: 600; font-size: var(--fs-sm); }
.nav-link:hover { background: var(--line-soft); color: var(--maroon-700); }
.nav-link.is-active { background: var(--maroon-50); color: var(--maroon-600); }
.nav-actions { white-space: nowrap; display: flex; gap: 10px; align-items: center; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.nav-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); font-weight: 600; font-size: var(--fs-sm); }
.nav-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-300); background: var(--line); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: .8em 1em; border-radius: var(--radius); }
  .nav-actions { margin: 10px 0 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-900); color: #e9d9dd; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 54px 36px; }
.site-footer h4 { color: var(--gold-300); font-size: var(--fs-base); margin-bottom: 12px; }
.site-footer a { color: #e9d9dd; text-decoration: none; display: block; padding: 3px 0; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: var(--fs-sm); color: #cdb9bf; max-width: 38ch; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; filter: brightness(1.8); }
.footer-brand strong { font-size: 1.3rem; color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: var(--fs-xs); color: #b8a1a8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 24px; } }

/* ---------- Page scaffolding ---------- */
.page { padding-block: 40px 20px; min-height: 56vh; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: var(--fs-2xl); margin-bottom: 4px; }
.page-header p { color: var(--ink-500); margin: 0; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-700); background: var(--gold-100); padding: .2em 1em; border-radius: 999px; margin-bottom: 14px; }
.section { padding-block: 72px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-500); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(192, 145, 47, .16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(123, 31, 54, .09), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 6l16 16-16 16L6 22z' fill='none' stroke='%23c0912f' stroke-opacity='.16'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-block: 76px 120px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--maroon-600); background: linear-gradient(transparent 68%, var(--gold-100) 68%); }
.hero-lead { font-size: var(--fs-lg); color: var(--ink-700); max-width: 52ch; line-height: 1.8; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 30px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-700); font-weight: 600; }
.trust-row span { white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.trust-row .icon { color: var(--gold-600); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(420px, 100%); filter: drop-shadow(0 30px 40px rgba(59, 14, 27, .22)); animation: float 2s ease-in-out 5; }   /* 5 x 2 s = 10 s, then it stays still (owner request: not endless) */
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px 96px; gap: 32px; }
  .hero-art { order: -1; } .hero-art img { width: 220px; }
}

/* stat strip overlaps hero bottom */
.stat-strip { position: relative; z-index: 2; margin-top: -64px; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.stat { padding: 26px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat strong { display: block; font-size: 2.2rem; line-height: 1.3; color: var(--maroon-600); }
.stat span { color: var(--ink-500); font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 560px) { .stat strong { font-size: 1.6rem; } .stat { padding: 18px 8px; } .stat span { font-size: var(--fs-xs); } }

/* steps + features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step-no {
  position: absolute; top: -20px; left: 24px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon-800)); color: var(--gold-100); font-weight: 800; box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 6px; }
.step-img { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 auto 8px; }
.trust-split { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: center; }
.trust-split img { width: 100%; height: auto; }
.trust-split p { color: var(--ink-500); max-width: 60ch; }
@media (max-width: 760px) { .trust-split { grid-template-columns: 1fr; gap: 16px; } .trust-split img { max-width: 340px; margin: 0 auto; } }
.step p { color: var(--ink-500); margin: 0; font-size: var(--fs-sm); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--maroon-50); color: var(--maroon-600); margin-bottom: 14px; }
.feature .ico .icon { width: 24px; height: 24px; }
.feature h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.feature p { color: var(--ink-500); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 900px) { .steps, .feature-grid { grid-template-columns: 1fr; } .steps { gap: 34px; } .section { padding-block: 52px; } }
@media (min-width: 640px) and (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

.cta-band { background: url("../img/cta-pattern.svg") center / cover no-repeat, linear-gradient(135deg, var(--maroon-700), var(--maroon-900)); color: #fff; border-radius: var(--radius-xl); padding: 54px 30px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e9d4da; max-width: 52ch; margin-inline: auto; }
.cta-band::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(229, 203, 142, .35); right: -80px; top: -120px; box-shadow: 0 0 0 36px rgba(229, 203, 142, .06); }

/* ---------- Auth (login) ---------- */
.auth-wrap { display: grid; place-items: center; padding-block: 24px 40px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card-body { padding: 34px; }
.auth-card h1 { font-size: var(--fs-2xl); text-align: center; }
.auth-card .lead { text-align: center; color: var(--ink-500); margin-bottom: 24px; }
.auth-logo { display: block; margin: 0 auto 10px; width: 56px; height: 56px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: var(--fs-sm); color: var(--ink-500); }

/* ---------- Register ---------- */
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.reg-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.reg-aside .card-body { padding: 22px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; padding: 7px 0; font-size: var(--fs-sm); color: var(--ink-700); }
.check-list .icon { color: var(--success-500); margin-top: 4px; }
@media (max-width: 980px) { .reg-layout { grid-template-columns: 1fr; } .reg-aside { position: static; order: -1; } }
@media (max-width: 640px) {
  .form-grid, .dl { grid-template-columns: 1fr; }
  .field.span-2, .dl-item.span-2 { grid-column: auto; }   /* no implicit 2nd column on phones */
  .card-body { padding: 20px; }
}

/* ---------- My profile ---------- */
.profile-hero { display: flex; gap: 28px; align-items: center; padding: 28px; flex-wrap: wrap; }
.profile-photo { position: relative; width: 150px; flex: none; }
.profile-photo img { width: 150px; height: 188px; object-fit: cover; border-radius: var(--radius-lg); border: 3px solid #fff; box-shadow: var(--shadow); background: var(--line); }
.profile-photo .btn { position: absolute; right: -8px; bottom: -8px; box-shadow: var(--shadow); }
.profile-meta { flex: 1; min-width: 240px; }
.profile-meta h1 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.meta-line { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-500); font-size: var(--fs-sm); margin-bottom: 12px; }
.meta-line span { display: inline-flex; gap: 6px; align-items: center; }
.completeness { max-width: 360px; margin-top: 14px; }
.completeness .row { justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-700); margin-bottom: 6px; }
.file-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); flex-wrap: wrap; }
.file-row .file-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--maroon-50); color: var(--maroon-600); display: grid; place-items: center; }
.danger-zone { border-color: #efc3c8; }
.danger-zone .card-header { background: var(--danger-bg); }

/* ---------- Matches ---------- */
.matches-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters .card-body { padding: 20px; }
.filters .field + .field { margin-top: 14px; }
.age-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-bar .count { font-weight: 700; color: var(--ink-700); }
.filters-toggle { display: none; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }

.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); color: inherit; }
.pcard-photo { position: relative; aspect-ratio: 1 / 1; background: var(--line); overflow: hidden; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .5s var(--ease); }
.pcard:hover .pcard-photo img { transform: scale(1.04); }
.pcard-code { position: absolute; left: 10px; top: 10px; padding: .1em .7em; border-radius: 99px; font-size: var(--fs-xs); font-weight: 700; background: rgba(35, 15, 22, .66); color: #fff; backdrop-filter: blur(4px); letter-spacing: .02em; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-name { font-size: var(--fs-md); font-weight: 700; color: var(--maroon-900); margin: 0; line-height: 1.4; }
.pcard-sub { color: var(--ink-500); font-size: var(--fs-sm); display: flex; gap: 6px 14px; flex-wrap: wrap; }
.pcard-sub span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pcard .btn { margin-top: auto; }
.pcard-skel { aspect-ratio: 4 / 6.4; border-radius: var(--radius-lg); }

@media (max-width: 960px) {
  .matches-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
}

/* ---------- Match detail ---------- */
.detail-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.detail-side { position: sticky; top: calc(var(--header-h) + 16px); }
.detail-photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--line); }
.detail-side .card { overflow: hidden; }
.detail-id { padding: 20px 22px; }
.detail-id h1 { font-size: var(--fs-xl); margin-bottom: 4px; }
.fact-row { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-700); font-size: var(--fs-sm); margin-top: 10px; }
.fact-row span { display: inline-flex; gap: 6px; align-items: center; }
.fact-row .icon { color: var(--gold-600); }
.contact-card { background: linear-gradient(160deg, var(--gold-50), #fff); border-color: var(--gold-300); }
.contact-card h4 { display: flex; gap: 8px; align-items: center; color: var(--maroon-700); }
.contact-card .code-box { font-size: var(--fs-lg); font-weight: 800; letter-spacing: .06em; color: var(--maroon-700); background: #fff; border: 1px dashed var(--gold-500); border-radius: var(--radius); text-align: center; padding: .35em; margin: 10px 0; }
.detail-main .card + .card { margin-top: 18px; }
.detail-main .card-title { display: flex; gap: 10px; align-items: center; }
.detail-main .card-title .icon { color: var(--gold-600); }
.quote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold-500); color: var(--ink-700); white-space: pre-line; }
.print-only { display: none; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } .detail-side { position: static; } .detail-photo { aspect-ratio: 16 / 12; } }

/* ---------- Print: biodata as a clean one-pager ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; line-height: 1.55; }
  .site-header, .site-footer, .no-print, .skip-link, .contact-card .btn { display: none !important; }
  .print-only { display: block; }
  .page { padding: 0; min-height: 0; }
  .detail-layout { grid-template-columns: 150px 1fr; gap: 18px; }
  .detail-side { position: static; }
  .detail-photo { aspect-ratio: 4 / 5; border-radius: 8px; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .detail-side .card { border: 0; }
  .detail-id { padding: 8px 0; }
  .print-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--maroon-600); padding-bottom: 8px; margin-bottom: 14px; color: var(--maroon-700); font-weight: 800; font-size: 16pt; }
  .print-head small { font-size: 9pt; font-weight: 500; color: #555; }
  a { color: inherit; text-decoration: none; }
}

/* Privacy / terms pages */
.legal { max-width: 820px; margin-inline: auto; }
.legal h1 { margin-bottom: .2em; }
.legal h2 { font-size: var(--fs-lg, 1.25rem); margin: 1.6em 0 .4em; color: var(--maroon-800); }
.legal p, .legal li { line-height: 1.85; }
.legal ul { padding-left: 1.3em; }
.legal .muted { color: var(--ink-500); margin-bottom: 1.2em; }

/* ---- Express interest, shortlist, saved searches (v5.3) ---- */
.pcard-wrap { position: relative; display: flex; }
.pcard-wrap > .pcard { flex: 1; min-width: 0; }
.pcard-heart { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); color: var(--maroon-600); box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), background .15s; }
.pcard-heart:hover { transform: scale(1.08); background: #fff; }
.pcard-heart:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.pcard-heart .icon { width: 20px; height: 20px; }
.pcard-heart.is-on { background: var(--maroon-600); color: #fff; }
.pcard-heart.is-on .icon { fill: currentColor; }
.pcard-state { position: absolute; left: 10px; bottom: 10px; padding: .15em .75em; border-radius: 99px; font-size: var(--fs-xs); font-weight: 700; background: rgba(255, 255, 255, .94); color: var(--maroon-700); }
.pcard-state-accepted, .pcard-state-connected { background: var(--success); color: #fff; }
.saved-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.saved-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-chip { display: inline-flex; align-items: center; border: 1px solid var(--gold-300); border-radius: 99px; background: #fff; overflow: hidden; }
.saved-chip button { border: 0; background: none; cursor: pointer; font: inherit; color: var(--maroon-700); padding: .3em .8em; min-height: 36px; }
.saved-chip button:hover { background: var(--surface-2); }
.saved-chip .saved-del { padding: .3em .6em; color: var(--ink-500); border-left: 1px solid var(--line-soft); }
.interest-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.interest-card + .interest-card { margin-top: 12px; }
.interest-card img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--radius); flex: none; background: var(--line); }
.interest-main { flex: 1; min-width: 0; }
.interest-main h3 { margin: 0 0 2px; font-size: var(--fs-md); color: var(--maroon-900); }
.interest-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.interest-box { margin-bottom: 18px; }
.nav-badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: 6px; border-radius: 99px; background: var(--gold-500); color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; text-align: center; }
@media (max-width: 640px) { .interest-card { align-items: flex-start; } }

/* Firm logos (organization's own picture instead of the platform emblem) */
.brand img.firm-logo-img, .footer-brand img.firm-logo-img, .admin-brand img.firm-logo-img { filter: none; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 2px rgba(192, 145, 47, .55); }
.firm-hero-logo { display: block; width: 92px; height: 92px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 3px var(--gold-500), 0 8px 22px rgba(59, 14, 27, .18); margin: 0 0 16px; }
.logo-edit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo-edit img { width: 96px; height: 96px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 2px var(--line); }

/* Profile detail: tighter information blocks (3 short columns on wide screens, smaller row spacing) */
.detail-main .dl { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 22px; }
.detail-main .dl-item { padding: 7px 0; }
.detail-main .dl dt { margin-bottom: 0; }
.detail-main .dl-item.span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .detail-main .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; } .detail-main .dl-item.span-2 { grid-column: 1 / -1; } }
.detail-main .card-body { padding: 14px 22px 18px; }

/* ---- गुण मिलन (v5.7): score pill on cards, breakdown table, panel on the profile page ---- */
.pcard-wrap { flex-direction: column; transition: transform .2s var(--ease); }
.pcard-wrap:hover { transform: translateY(-4px); }
.pcard-wrap > .pcard { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.pcard-wrap > .pcard:hover { transform: none; }
.pcard-guna { background: var(--surface-2); border: 1px solid var(--line); border-top: 1px dashed var(--gold-300); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 8px 14px 10px; font-size: var(--fs-sm); }
.pcard-wrap:hover .pcard-guna { border-color: var(--gold-300); }
.pcard-guna-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-guna-label { color: var(--ink-700); font-weight: 600; }
.pcard-guna.is-empty { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-500); }
.pcard-guna-hint a { color: var(--maroon-600); font-weight: 600; }
.pcard-guna { position: relative; }
.guna-more-btn { background: none; border: 0; padding: 0; margin-top: 2px; min-height: 28px; cursor: pointer; color: var(--maroon-600); font: inherit; font-size: var(--fs-xs); text-decoration: underline; text-underline-offset: 3px; }
.pcard-wrap.is-open { z-index: 40; }
/* the overlay: absolute, so the card keeps its height and the neighbours never move */
.guna-pop { position: absolute; left: 0; top: 100%; z-index: 41; width: max(100%, 248px); max-height: min(72vh, 400px); margin-top: 4px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gold-300); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .15s var(--ease); }
.guna-pop[hidden] { display: none; }
.pcard-guna.is-up .guna-pop { top: auto; bottom: 100%; margin: 0 0 4px; }
.pcard-guna.is-right .guna-pop { left: auto; right: 0; }
.guna-pop-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--maroon-800); }
.guna-pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 14px 10px; }
.guna-pop-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-xs); color: var(--ink-500); }
.guna-pill { display: inline-block; padding: .1em .75em; border-radius: 99px; font-weight: 700; font-size: var(--fs-sm); background: var(--line-soft); color: var(--ink-700); }
.guna-pill.guna-low { background: var(--danger-bg); color: var(--danger-700); }
.guna-pill.guna-average { background: var(--warning-bg); color: var(--warning-700); }
.guna-pill.guna-good, .guna-pill.guna-excellent { background: var(--success-bg); color: var(--success-700); }
.guna-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-top: 6px; }
.guna-table th, .guna-table td { padding: 5px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; }
.guna-table thead th { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 600; }
.guna-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guna-table .is-full td { color: var(--success-700); font-weight: 600; }
.guna-table .is-zero td { color: var(--danger-700); font-weight: 600; }
.guna-table .guna-total th, .guna-table .guna-total td { font-weight: 700; color: var(--maroon-800); border-bottom: 0; border-top: 2px solid var(--gold-300); }
.guna-dosha { display: inline-block; margin-left: 6px; padding: 0 .55em; border-radius: 99px; font-size: var(--fs-xs); background: var(--danger-bg); color: var(--danger-700); }
.guna-fine { color: var(--ink-500); font-size: var(--fs-xs); line-height: 1.6; margin: 8px 0 0; }
.guna-panel { background: #fff; border: 1px solid var(--gold-300); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.guna-panel.is-empty { background: var(--surface-2); border-color: var(--line); }
.guna-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.guna-title { margin: 0; font-size: var(--fs-lg, 1.25rem); color: var(--maroon-800); }
.guna-sub { margin: 2px 0 0; color: var(--ink-500); font-size: var(--fs-sm); }
.guna-big { display: flex; align-items: baseline; gap: 6px; padding: 6px 16px; border-radius: var(--radius-lg); background: var(--line-soft); color: var(--ink-700); }
.guna-big b { font-size: 2rem; line-height: 1.2; }
.guna-big em { font-style: normal; font-weight: 700; margin-left: 6px; }
.guna-big.guna-low { background: var(--danger-bg); color: var(--danger-700); }
.guna-big.guna-average { background: var(--warning-bg); color: var(--warning-700); }
.guna-big.guna-good, .guna-big.guna-excellent { background: var(--success-bg); color: var(--success-700); }
.guna-manglik { margin: 12px 0 0; font-size: var(--fs-sm); }

/* ---- sponsor banner (free-forever package) ---- */
.ad-slot { position: relative; margin: 0 auto 22px; max-width: 970px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 6px; text-align: center; }
.ad-slot img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; border-radius: 6px; }
.ad-tag { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: .72rem; line-height: 1; background: rgba(0,0,0,.6); color: #fff; padding: 3px 7px; border-radius: 4px; }
#ad-slot:empty { display: none; }
.ad-slot a { display: block; }

/* Language switch (मराठी | English) in the site header — small outlined pill, sits with the header actions */
.lang-toggle { font: inherit; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; min-height: 34px; min-width: 44px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gold-500); background: transparent; color: var(--maroon-700); cursor: pointer; }
.lang-toggle:hover { background: var(--surface-2); }
@media (max-width: 860px) { .nav-actions .lang-toggle { flex: none; } }
.ad-slot-google { min-height: 0; margin: 0 auto; padding: 0; border: 0; background: none; }
.ad-slot-google .ad-tag { display: none; }
.ad-slot-google.is-filled { margin: 0 auto 22px; padding: 26px 6px 6px; border: 1px solid var(--line); background: var(--surface); }
.ad-slot-google.is-filled .ad-tag { display: block; }
.ad-slot-google ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
