/* The public calculators (/kundli-matching/, /manglik-dosha-calculator/):
   the app's own Marriage Match and Manglik pages, served to visitors who have
   not signed in. views._guest_page swaps the sidebar for the bar below and
   adds a written guide at the foot; this file styles those two and lets the
   one-screen dashboards scroll, because here the guide follows them. */

body.guest{display:block!important;height:auto!important;overflow:visible!important}
body.guest .mg-main,body.guest .mm-main{height:auto!important;overflow:visible!important;
  max-width:1680px;margin:0 auto}
body.guest .row>.panel{height:auto!important}
body.guest #mgBody{display:block!important}
body.guest .ul-btn{text-decoration:none}
/* the sticky bar must not cover a heading the page scrolls to */
body.guest .mg-head,body.guest .mm-head,body.guest #gForm,body.guest #mmMain{scroll-margin-top:72px}
/* the Manglik header's explainer is filled in with the result */
body.guest:not(.mg-done) .mg-head .about{display:none}
/* the sign-in card under a free match: heading, text, button on one line */
@media (min-width:761px){
  body.guest .lock-row .ul-card.g-card{grid-template-columns:auto minmax(0,1fr) auto}
}

/* Phones use the app's phone layout (body.m-shell in mobile.css, all of it
   inside a phone-width media query), less the room it keeps for the app's own
   top bar and tab bar, which a public page does not have. */
@media (max-width:760px){
  body.guest.m-shell{padding-top:0;padding-bottom:0}
}

/* ── the bar ── */
.gbar{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:22px;
  padding:12px clamp(14px,3vw,32px);background:rgba(8,7,22,.86);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(139,130,255,.18);font-family:Outfit,"Segoe UI",system-ui,sans-serif}
.gb-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;
  font-weight:700;font-size:17px;letter-spacing:-.01em}
.gb-brand img{border-radius:50%}
.gb-nav{display:flex;gap:6px;margin-left:auto}
.gb-nav a{padding:8px 12px;border-radius:9px;color:#c9c5ef;text-decoration:none;font-size:14px}
.gb-nav a:hover{color:#fff;background:rgba(255,255,255,.05)}
.gb-nav a[aria-current="page"]{color:#fff;background:rgba(192,132,252,.16)}
.gb-cta{flex:none;padding:9px 16px;border-radius:10px;color:#fff;text-decoration:none;
  font-size:14px;font-weight:600;background:linear-gradient(90deg,#b64cff,#e944d2 55%,#f7478f)}
.gb-cta:hover{filter:brightness(1.08)}
.gbar a:focus-visible{outline:2px solid #f0abfc;outline-offset:2px}
@media (max-width:760px){
  .gbar{gap:10px;flex-wrap:wrap}
  .gb-nav{order:3;width:100%;margin:0;overflow-x:auto;scrollbar-width:none}
  .gb-nav a{white-space:nowrap;font-size:13px;padding:6px 10px}
  .gb-cta{margin-left:auto}
}

/* ── the guide under the calculator ── */
.guide{max-width:960px;margin:28px auto 0;padding:8px clamp(16px,3vw,28px) 64px;
  color:#d9d4f2;font-family:Outfit,"Segoe UI",system-ui,sans-serif;font-size:16px;line-height:1.7}
.guide h2{margin:42px 0 12px;font-size:clamp(22px,2.4vw,28px);line-height:1.25;color:#fff;
  letter-spacing:-.015em}
.guide h2:first-child{margin-top:12px}
.guide h3{margin:26px 0 8px;font-size:18px;color:#f5d0fe}
.guide p{margin:0 0 14px}
.guide ul,.guide ol{margin:0 0 16px;padding-left:22px}
.guide li{margin:6px 0}
.guide b,.guide strong{color:#fff}
.guide a{color:#f0abfc}
.guide .lead{font-size:17px;color:#e9e5ff}
.guide table{width:100%;border-collapse:collapse;margin:8px 0 18px;font-size:15px}
.guide th{text-align:left;padding:9px 12px;color:#aeaad2;font-weight:600;font-size:13px;
  text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid rgba(139,130,255,.3)}
.guide td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:top}
.guide td:nth-child(2){white-space:nowrap;font-variant-numeric:tabular-nums;color:#fff}
.guide .tbl{overflow-x:auto}
.guide .note{padding:14px 16px;border-radius:12px;border:1px solid rgba(246,194,91,.35);
  background:rgba(246,194,91,.07);font-size:15px}
.guide details{border:1px solid rgba(139,130,255,.25);border-radius:12px;padding:0 16px;margin:10px 0;
  background:rgba(18,16,44,.6)}
.guide summary{cursor:pointer;padding:14px 0;font-weight:600;color:#fff;list-style:none}
.guide summary::-webkit-details-marker{display:none}
.guide summary::after{content:"+";float:right;color:#c084fc;font-size:20px;line-height:1}
.guide details[open] summary::after{content:"\2212"}
.guide details p{margin:0 0 14px}
.guide .more{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 0}
.guide .more a{padding:11px 18px;border-radius:11px;text-decoration:none;font-weight:600;color:#fff;
  border:1px solid rgba(160,150,255,.5);background:rgba(14,12,40,.75)}
.guide .more a.pri{border:0;background:linear-gradient(90deg,#b64cff,#e944d2 55%,#f7478f)}
.guide-foot{max-width:960px;margin:0 auto;padding:22px clamp(16px,3vw,28px) 40px;
  border-top:1px solid rgba(255,255,255,.08);font:13px/1.6 Outfit,"Segoe UI",system-ui,sans-serif;color:#8f8ab5}
.guide-foot a{color:#c9c5ef;margin-right:14px}
