/* The offer card (Run AI analysis design §3): the person's chart card on warm
   white | the checkout on deep plum, as a pop-up. Look fixed by Mukul against
   design_photos/offer-in-place.html (version 7). Tokens only. */
.oc-veil { position: fixed; inset: 0; z-index: 1000; background: rgb(var(--black-rgb) / 0.62); display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.oc-veil[hidden] { display: none; }
.oc { position: relative; width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
      background: rgb(var(--warm-white-rgb)); border-radius: 22px; overflow: hidden; color: var(--ink); font-family: var(--font-panel); }
.oc-x { position: absolute; top: 14px; right: 16px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
        background: rgb(var(--black-rgb) / 0.6); color: var(--bone); line-height: 0; border: 1px solid rgb(var(--bone-rgb) / 0.2); cursor: pointer; padding: 0; }
.oc-x svg { display: block; }
.oc-x:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

/* left: the chart card */
.oc-cc { padding: 30px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start;
         --line: rgb(var(--ink-reading-rgb) / 0.14); --mute: rgb(var(--ink-reading-rgb) / 0.68); --dim: rgb(var(--ink-reading-rgb) / 0.7); }
.oc-name { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; color: var(--brick); }
.oc-born { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.oc-born .it { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; }
.oc-born .wide { grid-column: 1 / -1; }
.oc-born .ic { color: var(--mute); grid-row: span 2; padding-top: 2px; }
.oc-born .l { font-size: 12px; color: var(--mute); font-weight: 600; }
.oc-born .v { font-family: var(--font-prose); font-weight: 400; font-size: 19.5px; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.oc-born .wide .v { white-space: normal; }
.oc-sign { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
.oc-moon { width: 92px; aspect-ratio: 1; } .oc-moon canvas { width: 100%; height: 100%; display: block; }
.oc-sign .pre { font-size: 13px; font-weight: 700; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.oc-sign .pre .g { color: var(--r); font-size: 18px; filter: brightness(0.8); }
.oc-sign .word { font-family: var(--font-script); color: var(--r); font-size: 52px; line-height: 1.05; filter: brightness(0.8); }
.oc-sign .what { font-size: 13px; color: var(--dim); }
html[data-lang="hi"] .oc-sign .word { line-height: 1.3; }   /* room for the matras below the line (तु) */
.oc-d1 { align-self: center; }
.oc-d1 .kundali { width: 100%; background: transparent; }
.oc-d1 .kundali text { font-size: 20px; }
.oc-d1 .kundali .k-sign { font-size: 15px; fill: var(--mute); }
.oc-d1 .kundali .k-line { stroke: var(--ink); opacity: .6; }
.oc-d1 .kundali .k-chip { filter: brightness(0.55) saturate(1.5); }
.oc-saved { grid-column: 1 / -1; font-size: 13px; color: var(--dim); }
.oc-saved b { color: var(--el-earth); } .oc-saved a { color: var(--ink); border-bottom: 1px solid rgb(var(--ink-reading-rgb) / 0.3); }

/* right: the checkout */
.oc-co { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 14px; background: var(--plum-deep); color: var(--bone); }
.oc-co .k { font-size: 12px; color: var(--bone-dim); font-weight: 600; letter-spacing: .02em; }
.oc-co .ttl { font-family: var(--serif); font-size: 34px; line-height: 1; }
.oc-co .price { font-size: 28px; font-weight: 700; } .oc-co .price small { font-size: 13px; font-weight: 500; color: var(--bone); }
.oc-co ul { list-style: none; font-size: 14px; line-height: 1.9; } .oc-co li::before { content: "✓  "; color: var(--el-earth); }
.oc-co .lines { border-top: 1px solid rgb(var(--bone-rgb) / 0.22); padding-top: 12px; font-size: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px; color: var(--bone); }
.oc-co .lines .t { font-weight: 700; border-top: 1px solid rgb(var(--bone-rgb) / 0.22); padding-top: 8px; }
.oc-pay { text-align: center; background: var(--coral); color: var(--ink); border: 0; border-radius: var(--r-pill); padding: 15px; font: 700 15px var(--font-panel); cursor: pointer; }
.oc-pay:hover { background: var(--bone); }
.oc-pay[disabled] { opacity: .6; cursor: default; }
.oc-co .fine { font-size: 12px; color: var(--bone-dim); text-align: center; }
.oc-co .msg { font-size: 13px; color: var(--bone); text-align: center; min-height: 1.2em; }

body.oc-open { overflow: hidden; }

@media (max-width: 980px) {
  .oc { grid-template-columns: 1fr; }
  .oc-cc { grid-template-columns: 1fr; }
  .oc-d1 { max-width: 320px; }
  .oc-veil { place-items: start center; }
}
@media (max-width: 560px) {
  .oc-x { width: 44px; height: 44px; top: 10px; right: 10px; }
  .oc-cc { padding: 24px 18px; } .oc-co { padding: 24px 18px; }
  .oc-born { grid-template-columns: 1fr; } .oc-born .v { white-space: normal; }
  .oc-name { font-size: 40px; }
}

/* the run flow's chart step (run-analysis.js): pick a saved chart or add one */
.ra { position: relative; width: min(980px, 100%); background: var(--black); color: var(--bone); border: 1px solid rgb(var(--bone-rgb) / 0.16);
      border-radius: 22px; padding: 30px 32px; font-family: var(--font-panel); }
.ra-title { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; color: var(--coral); margin: 0 0 20px; }
/* the saved charts under the form (the fallback sheet; the engine sheet is two-tone) */
.ra .ra-saved:not(:empty) { margin-top: 30px; }
.ra-head { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--bone); margin: 0 0 12px; }
/* the saved charts: a ledger like My Charts; a white fill rises from the foot on hover */
.ra-list { display: grid; border-top: 1px dashed rgb(var(--bone-rgb) / 0.25); }
.ra-pick { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
           text-align: left; cursor: pointer; background: transparent; color: var(--bone); border: 0; border-bottom: 1px dashed rgb(var(--bone-rgb) / 0.25);
           padding: 12px 16px; font: inherit; transition: color .25s; }
.ra-pick::before { content: ""; position: absolute; inset: 0; background: var(--bone); transform: scaleY(0); transform-origin: 50% 100%;
                   transition: transform .34s cubic-bezier(0.22, 1, 0.3, 1); }
.ra-pick > * { position: relative; }
.ra-pick .ra-n { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.ra-pick small, .ra-pick .ra-go { grid-area: 1 / 2; justify-self: end; }   /* one cell: the date gives way to the action */
.ra-pick small { color: var(--bone-mute); font-size: 13px; transition: opacity .2s; }
.ra-pick .ra-go { font-size: 15px; font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.ra-pick:focus-visible { color: var(--black); outline: none; }
.ra-pick:focus-visible::before { transform: scaleY(1); }
.ra-pick:focus-visible small { opacity: 0; }
.ra-pick:focus-visible .ra-go { opacity: 1; transform: none; }
@media (hover: hover) {   /* a tap would leave the fill stuck on its row */
  .ra-pick:hover { color: var(--black); }
  .ra-pick:hover::before { transform: scaleY(1); }
  .ra-pick:hover small { opacity: 0; }
  .ra-pick:hover .ra-go { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ra-pick::before, .ra-pick .ra-go { transition: none; } }
.ra-form .mc-form { margin-top: 10px; }
/* inside the engine page's sheet: the form on the left of the globe, two to a row */
.modal.ra-mode { width: min(780px, 94vw); }
.modal.ra-mode .m-grid { align-items: center; z-index: 2; }   /* above the saved list, so the city list opens over it */
.modal.ra-mode .mc-field input, .modal.ra-mode .mc-field select { font-size: 16px; padding: 6px 0; }
.modal.ra-mode .mc-form { margin: 0; padding: 0; border: 0; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.modal.ra-mode .mc-field:has([name=name]), .modal.ra-mode .mc-field:has([name=place]),
.modal.ra-mode .mc-status { grid-column: 1 / -1; }
.modal.ra-mode .cf-go { display: flex; flex-direction: row; justify-content: center; margin-top: 26px; }   /* its own row under form and globe, centred on the sheet */
.modal.ra-mode .cf-go .cta { margin-top: 0; }   /* its own size, as the engine's CTA */
.modal.ra-mode .cf-go .cta[disabled] { opacity: .6; pointer-events: none; }

/* below the form the sheet turns to the offer card's warm white: a second
   half, like the card's two halves. The gradient above stays as it is. */
.modal.ra-mode .ra-saved:empty { display: none; }
.modal.ra-mode .ra-saved { margin: 40px -34px -28px; padding: 40px 34px 30px; background: rgb(var(--warm-white-rgb)); color: var(--ink);
  --line: rgb(var(--ink-reading-rgb) / 0.22); }
.modal.ra-mode .ra-head { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--ink); margin: 0 0 14px; }
.modal.ra-mode .ra-head em { font-style: normal; color: var(--brick); }
.modal.ra-mode .ra-list { border-top-color: var(--line); }
.modal.ra-mode .ra-pick { color: var(--ink); border-bottom-color: var(--line); }
.modal.ra-mode .ra-pick small { color: rgb(var(--ink-reading-rgb) / 0.62); }
.modal.ra-mode .ra-pick::before { background: var(--ink); }   /* on the light half the fill rises in ink */
.modal.ra-mode .ra-pick:focus-visible { color: var(--bone); }
@media (hover: hover) { .modal.ra-mode .ra-pick:hover { color: var(--bone); } }
@media (max-width: 560px) { .ra { padding: 24px 18px; } .ra-pick .ra-go { display: none; }
  .modal.ra-mode .mc-form { grid-template-columns: 1fr; } }
/* phones: the globe (the sheet's highlight) leads, smaller, so the form runs
   straight on into Continue; fields keep their 44px tap (chart-form.css) */
@media (max-width: 600px) {
  .modal.ra-mode .m-grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .modal.ra-mode .globe-wrap { order: -1; }
  .modal.ra-mode #globe { width: 200px !important; height: 200px !important; }   /* over the canvas's inline size */
  .modal.ra-mode .mc-field input, .modal.ra-mode .mc-field select { padding-top: 12px; padding-bottom: 12px; min-height: 44px; }
  .modal.ra-mode .ra-pick { min-height: 52px; }
}
