/* The career page (templates/career/page.html), on the editorial skeleton of page.css. The chart (.cr-chart) is also
   shown on the astrologer desk, so its rules stand on their own (fallback colours outside .ed). Text never moves:
   no fades, slides or count-ups; only the stars and the planet icons are alive. */

.cr-hero { min-height: 0; padding: 56px 0 40px; align-items: flex-start; }
.cr-hero h1 { max-width: 18ch; }
.ed[lang="hi"].cr .cr-hero h1 { max-width: 20ch; }
.cr-start { padding-top: 36px; }
.cr .ed-card { margin-bottom: 8px; }
.cr .sv-pick .ed-btn { margin-top: 6px; }
.cr-privacy { margin-top: 14px; }
/* The short birth form's steps appear as they are, without the site's fade-and-rise (text never moves here). */
.cr .step.reveal { animation: none; }

/* the chart (templates/career/_chart.html, _card.html; oa/career_charts.py): the answer beside the birth kundli,
   then one card per idea, two to a row where their heights match. The desk shows it without page.css, so every
   colour has its fallback. Nothing in it moves but the planet icons (.cr-ico). */
.cr-result { margin-top: 30px; }
.cr-chart { --cr-ink: var(--ink, #1E1E24); --cr-rust: var(--rust, #9A4426); --cr-gold: var(--gold, #C9A45C);
  --cr-line: var(--line, rgba(30, 30, 36, .12)); --cr-muted: #5d574c; --cr-card: #fbf8f2; --cr-cell: #ece4d3;
  --cr-serif: var(--serif, Georgia, serif); --cr-mono: var(--mono, ui-monospace, Menlo, monospace);
  --cr-good: #2f6b4f; --cr-good-bg: #dfe9df; --cr-mix: #6b521c; --cr-mix-bg: #f1e7cf; --cr-care: #9a4426; --cr-care-bg: #f0dfd4;
  color: var(--cr-ink); }
.cr-chart-head { border-left: 3px solid var(--cr-gold); padding: 4px 0 4px 16px; margin: 0 0 18px; }
.cr-chart-head:focus { outline: none; }
.cr-chart-head:focus-visible { outline: 2px solid var(--cr-gold); outline-offset: 4px; }
.cr-label { font-family: var(--cr-serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0; color: var(--cr-ink); }
/* Cormorant's old-style figures make "10th" read as "ıoth": the chart's numbers stand level */
.cr-chart .cr-card-h, .cr-B0 .k-answer, .cr-label, .cr-yoga-h b { font-variant-numeric: lining-nums; }
.cr-note { color: var(--cr-muted); margin: 6px 0 0; line-height: 1.55; font-size: .97rem; }
.cr-approx { color: var(--cr-rust); }

/* the top: the answer in one sentence and the birth kundli */
.cr-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 18px; align-items: start; }
.cr-B0 { border-top: 3px solid var(--cr-gold); }
.cr-B0 .k-answer { font-family: var(--cr-serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--cr-ink); margin-bottom: 16px; }
.ed[lang="hi"] .cr-B0 .k-answer, .cr-chart:lang(hi) .cr-B0 .k-answer { font-size: clamp(1.12rem, 2vw, 1.32rem); line-height: 1.65; }
.cr-d1 { margin: 0; }
.cr-d1 figcaption { margin: 12px 2px 0; }

/* the kundlis (server-drawn SVG; house 1 the top diamond, houses anticlockwise) */
.ck { display: block; width: 100%; height: auto; border-radius: 12px; }
.cr-d1 .ck { box-shadow: 0 1px 0 rgba(30, 30, 36, .06), 0 14px 34px rgba(21, 26, 44, .10); }
.ck text { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif; }
.ck-bg { fill: #fffaf0; }
.ck-h1 { fill: rgba(201, 164, 92, .2); }
.ck-d10 .ck-h1 { fill: rgba(201, 164, 92, .12); }
.ck-line { fill: none; stroke: #2a2f4a; stroke-width: 1.4; }
.ck-ten { fill: rgba(154, 68, 38, .07); stroke: var(--cr-rust); stroke-width: 3; stroke-linejoin: round; }
.ck-ten-l { fill: var(--cr-rust); font-size: 13px; font-weight: 700; letter-spacing: .03em; text-anchor: middle; dominant-baseline: middle; }
.ck-n { fill: #74581c; font-size: 14px; text-anchor: middle; dominant-baseline: middle; }
.ck-n.own { fill: var(--cr-rust); font-weight: 700; font-size: 16px; }
.ck-p { fill: #1e1e24; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.ck-p.is-lord { fill: var(--cr-rust); }
.ck-ring { fill: rgba(154, 68, 38, .06); stroke: var(--cr-rust); stroke-width: 1.6; }
.ck-dot { fill: #74581c; }
.ck-r { font-size: .72em; }
.ck-key { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: #4d4a44; line-height: 1.45; }
.ck-key li, .ck-key1 { position: relative; padding-left: 20px; }
.ck-sym { position: absolute; left: 1px; top: .32em; display: block; width: 11px; height: 11px; box-sizing: border-box; }
.ck-sym.ten { border: 2px solid var(--cr-rust); background: rgba(154, 68, 38, .07); transform: rotate(45deg) scale(.82); }
.ck-sym.ring { width: 17px; left: -2px; top: .4em; height: 10px; border: 1.6px solid var(--cr-rust); border-radius: 999px; background: rgba(154, 68, 38, .06); }
.ck-sym.dot { width: 6px; height: 6px; left: 3px; top: .55em; border-radius: 50%; background: #74581c; }
.ck-abbr { margin: 8px 0 0; font-size: .8rem; color: var(--cr-muted); line-height: 1.5; }

/* the cards */
.cr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; }
.cr-card { background: var(--cr-card); border: 1px solid var(--cr-line); border-radius: 14px; padding: 22px 24px 18px; min-width: 0;
  display: flex; flex-direction: column; }
.cr-card.is-wide { grid-column: 1 / -1; }
.cr-card-h { font-family: var(--cr-serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25; margin: 0 0 14px; color: var(--cr-ink);
  display: flex; gap: 12px; align-items: center; }
.ed[lang="hi"] .cr-card-h, .cr-chart:lang(hi) .cr-card-h { font-size: 1.22rem; line-height: 1.45; }
.cr-card-h .cr-ico { width: 34px; height: 34px; margin-top: 0; }
.cr-card-in { flex: 1 1 auto; }
.cr-line { margin: 0 0 12px; line-height: 1.62; color: #3b3a40; }
.cr-lines > :last-child { margin-bottom: 0; }
.cr-line.k-modern { border-left: 2px solid var(--cr-gold); padding-left: 12px; }
.cr-line.is-career { border-left: 2px solid var(--cr-gold); padding-left: 12px; }   /* the career houses (B8) */
.cr-line.k-student { background: rgba(201, 164, 92, .14); border-radius: 8px; padding: 10px 14px; }
.cr-line.k-note, .cr-line.k-method { color: var(--cr-muted); }
.cr-nb { white-space: nowrap; }
.cr-fn { font-family: var(--cr-mono); font-size: .64em; line-height: 0; color: var(--cr-rust); margin-left: 3px; letter-spacing: .02em; white-space: nowrap; }
.cr-chip { display: inline-block; margin: 4px 4px 0 0; padding: 2px 9px; border: 1px solid rgba(154, 68, 38, .32); border-radius: 999px;
  font-family: var(--cr-mono); font-size: .72rem; letter-spacing: .02em; line-height: 1.5;
  color: var(--cr-rust, #9A4426); background: rgba(255, 255, 255, .45); vertical-align: baseline; }
.ed[lang="hi"] .cr-chip, .cr-chart:lang(hi) .cr-chip { font-family: system-ui, "Noto Sans Devanagari", sans-serif; font-size: .8rem; }
.cr-chip b { font-weight: 600; }
/* a card's sources, gathered at its foot: each line carries their numbers */
.cr-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--cr-line); }
.cr-foot-k { font: 600 .72rem/1 var(--cr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cr-muted); margin-right: 4px; }
.ed[lang="hi"] .cr-foot-k, .cr-chart:lang(hi) .cr-foot-k { font-family: system-ui, "Noto Sans Devanagari", sans-serif; letter-spacing: .02em; text-transform: none; font-size: .78rem; }
.cr-foot .cr-chip { margin: 0; padding: 2px 10px 2px 3px; border-radius: 11px; font-size: .78rem; letter-spacing: 0; }
.ed[lang="hi"] .cr-foot .cr-chip, .cr-chart:lang(hi) .cr-foot .cr-chip { font-size: .82rem; }
.cr-n { font-style: normal; display: inline-block; min-width: 18px; height: 18px; line-height: 18px; margin-right: 6px; text-align: center;
  border-radius: 50%; background: rgba(154, 68, 38, .12); font-family: var(--cr-mono); font-size: .7rem; font-weight: 700; }

/* the method strip: quieter than the cards above it */
.cr-B10 { background: transparent; }
.cr-B10 .cr-card-h { font-size: 1.15rem; margin-bottom: 10px; }
.cr-B10 .cr-line { font-size: .93rem; }

/* the D10, the karmajiva table, the yogas */
.cr-d10 { margin: 0 0 16px; }
.cr-d10 .ck { border: 1px solid var(--cr-line); }
.cr-d10 figcaption { margin: 10px 0 0; font-size: .88rem; color: #4d4a44; line-height: 1.5; }
.cr-d10 figcaption p { margin: 0 0 5px; }
.cr-kj { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0 0 18px; }
.cr-kj th, .cr-kj td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--cr-line); vertical-align: top; line-height: 1.35; }
.cr-kj thead th { font: 600 .72rem/1.3 var(--cr-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--cr-muted); padding-top: 0; }
.ed[lang="hi"] .cr-kj thead th, .cr-chart:lang(hi) .cr-kj thead th { font-family: system-ui, "Noto Sans Devanagari", sans-serif; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.cr-kj tbody th { font-weight: 600; color: var(--cr-ink); }
.cr-kj td:last-child { font-weight: 600; color: var(--cr-ink); }
.cr-kj tr.is-agree td:last-child { color: var(--cr-rust); }
.cr-yoga-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 6px; }
.cr-yoga-h b { font-family: var(--cr-serif); font-size: 1.16rem; font-weight: 600; color: var(--cr-ink); }
.cr-share { font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: rgba(201, 164, 92, .2); color: #6d5320; white-space: nowrap; }

/* the dasha timeline and the transit strip: HTML bars, so their words keep their size at any width */
.cr-tl { margin: 2px 0 10px; }
.cr-tl-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; align-items: center; }
.cr-tl-row + .cr-tl-row { margin-top: 4px; }
.cr-tl-k { font: 600 .72rem/1.2 var(--cr-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--cr-muted); }
.ed[lang="hi"] .cr-tl-k, .cr-chart:lang(hi) .cr-tl-k { font-family: system-ui, "Noto Sans Devanagari", sans-serif; letter-spacing: 0; text-transform: none; font-size: .82rem; }
/* each bar is its own size container: a segment's label shows only when the segment holds it whole (--f, --s: the
   px its full and short label need, from oa/career_charts._style); no fragments like "enu" */
.cr-tl-bar { position: relative; height: 32px; container-type: inline-size; }
.cr-tl-top .cr-tl-bar, .cr-axis .cr-tl-bar { height: 18px; }
.cr-seg { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc(var(--w) * 1%); box-sizing: border-box; display: flex; align-items: center;
  justify-content: center; overflow: hidden; white-space: nowrap; background: var(--cr-cell); border: 1px solid var(--cr-card);
  border-radius: 6px; color: #3b3a40; font-size: .8rem; font-weight: 600; }
.cr-seg.is-lord { background: var(--cr-rust); color: #fff; }
.cr-seg.is-now { box-shadow: inset 0 0 0 2px var(--cr-ink); }
.cr-seg.t-good { background: var(--cr-good-bg); color: var(--cr-good); }
.cr-seg.t-neutral { background: var(--cr-mix-bg); color: var(--cr-mix); }
.cr-seg.t-care { background: var(--cr-care-bg); color: var(--cr-care); }
.cr-ss { display: none; }
@supports (width: 1cqw) {
  .cr-sl { font-size: clamp(0px, calc((var(--w) * 1cqw - var(--f, 0) * 1px) * 99), .8rem); }
  .cr-ss { display: inline; font-size: clamp(0px, min(calc((var(--w) * 1cqw - var(--s, 0) * 1px) * 99),
    calc((var(--f, 0) * 1px - var(--w) * 1cqw) * 99)), .8rem); }
}
/* "now": a short tick above and below each bar, never across a label (the running segment is outlined) */
.cr-now { position: absolute; z-index: 1; top: -4px; bottom: -4px; left: calc(var(--a) * 1%); width: 2px; margin-left: -1px; }
.cr-now::before, .cr-now::after { content: ""; position: absolute; left: 0; width: 2px; height: 4px; border-radius: 1px; background: var(--cr-ink); }
.cr-now::before { top: 0; }
.cr-now::after { bottom: 0; }
.cr-now-l { position: absolute; left: calc(var(--a) * 1%); bottom: 1px; transform: translateX(-50%); white-space: nowrap;
  font: 700 .64rem/1 var(--cr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cr-ink); }
.ed[lang="hi"] .cr-now-l, .cr-chart:lang(hi) .cr-now-l { font-family: system-ui, "Noto Sans Devanagari", sans-serif; letter-spacing: 0; font-size: .78rem; }
.cr-tick { position: absolute; top: 5px; left: calc(var(--a) * 1%); transform: translateX(-50%); font-size: .72rem; line-height: 1; color: var(--cr-muted);
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-tick::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 4px; background: rgba(30, 30, 36, .3); }
.cr-bar-key { list-style: none; padding: 0; margin: 6px 0 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: #4d4a44; }
.cr-bar-key li { display: inline-flex; align-items: center; gap: 7px; }
.cr-sym { flex: 0 0 auto; display: inline-block; width: 16px; height: 10px; border-radius: 3px; background: var(--cr-cell); }
.cr-sym.lord { background: var(--cr-rust); }
.cr-sym.now { background: transparent; box-shadow: inset 0 0 0 2px var(--cr-ink); }
.cr-sym.t-good { background: var(--cr-good-bg); box-shadow: inset 0 0 0 1px var(--cr-good); }
.cr-sym.t-neutral { background: var(--cr-mix-bg); box-shadow: inset 0 0 0 1px var(--cr-mix); }
.cr-sym.t-care { background: var(--cr-care-bg); box-shadow: inset 0 0 0 1px var(--cr-care); }

/* "See more" (page.js) over tall cards: a short fade at the cut, not a third of the box */
.pg-more.clipped > .cr-cards, .pg-more.clipped > .cr-lines {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 110px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 110px), transparent); }

@media (min-width: 761px) {
  /* a full-width card: its picture beside its lines, or its lines in two columns */
  .cr-card.has-cols .cr-lines { columns: 2; column-gap: 40px; }
  .cr-card.has-cols .cr-line, .cr-card.has-cols .cr-yoga-h { break-inside: avoid; }
  .cr-card.is-wide.has-fig .cr-card-in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .cr-card.is-wide:not(.has-cols):not(.has-fig) .cr-lines { max-width: 72ch; }
}
@media (max-width: 760px) {
  .cr-top { grid-template-columns: minmax(0, 1fr); }
  .cr-d1 { width: 100%; max-width: 420px; margin: 0 auto; }
  .cr-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
  .cr-card { padding: 18px 16px 14px; border-radius: 12px; }
  .cr-card-h { font-size: 1.28rem; }
  .cr-d10 { max-width: 420px; margin-left: auto; margin-right: auto; }
  .cr-tl-row { grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
  .cr-tl-k { letter-spacing: .01em; }
  .cr-tick.odd { display: none; }
}

/* sections */
.cr-h2 { display: flex; gap: 14px; align-items: flex-start; }
.cr-ico { flex: 0 0 auto; width: 40px; height: 40px; margin-top: .25em; animation: oa-float 7s ease-in-out infinite; }
.cr-ico svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .cr-ico { animation: none; } }
.cr-open { font-family: var(--serif, Georgia, serif); font-size: clamp(1.12rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--ink, #1E1E24);
  border-left: 2px solid var(--gold, #C9A45C); padding: 2px 0 2px 16px; margin: 0 0 20px; max-width: 64ch; }
.ed[lang="hi"] .cr-open { font-size: clamp(1.05rem, 1.7vw, 1.18rem); }
.cr-body .ed-p { margin-bottom: 18px; }
.cr-how { margin: 26px 0 12px; }
.cr-gj { margin-top: 18px; }
.cr-gj .ed-mono { margin-bottom: 10px; }
.cr-method { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cr-method li { padding: 11px 0; border-bottom: 1px solid var(--line); color: #3b3a40; line-height: 1.6; }
.cr-method li.method_off { color: #5d574c; }
.cr-links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.cr-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cr-links .ed-link { white-space: normal; }

/* the reading */
.cr-three { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cr-three .num { display: block; font-family: "Cormorant", Georgia, serif; font-size: 3rem; color: var(--rust); line-height: 1; }
.cr-three h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 8px 0 6px; color: var(--ink); }
.cr-three p { color: #4d4a44; line-height: 1.55; margin: 0; }
.cr-next { margin: 8px 0 0; }
.cr-next .cr-note { margin-top: 10px; }
.cr-next-form { margin: 0; }
.cr-policy { margin: 22px 0 0; color: #3b3a40; font-family: var(--serif); font-size: 1.12rem; }
.cr-msg { margin: 14px 0 0; color: var(--kum); font-weight: 600; }
.cr-final h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  /* The form's first step on the first screen at 375 px (critic §3.1): a shorter hero and section heading. */
  .cr-hero { padding: 34px 0 26px; }
  .cr-hero .ed-pill { display: none; }
  .cr-hero .ed-lead { font-size: 1rem; }
  .cr-start .ed-h2 { font-size: 1.45rem; line-height: 1.2; margin: 4px 0 12px; }
  .cr-hero h1 { margin-bottom: 14px; }
  .cr-hero .ed-lead { margin-bottom: 0; }
  .cr-start { padding-top: 26px; }
  .cr-three { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cr-ico { width: 30px; height: 30px; }
}

/* the desk (templates/desk/request.html) */
.cr-desk { margin-top: 18px; }
.cr-desk summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
