/* The muhurat finder (templates/muhurat/page.html), on the editorial skeleton of page.css. Text never moves: no fades,
   slides or count-ups; only the stars and the planet icons (.mh-ico) are alive. Every width holds at 375 px with no
   sideways scroll: the event chips scroll inside their own row, the calendar and the strip shrink to fit. */

.mh { --mh-ink: var(--ink, #1E1E24); --mh-rust: var(--rust, #9A4426); --mh-gold: var(--gold, #C9A45C);
  --mh-line: var(--line, rgba(30, 30, 36, .12)); --mh-muted: #5d574c; --mh-card: #fbf8f2; --mh-cell: #ece4d3;
  --mh-good: #2f6b4f; --mh-good-bg: #dfe9df; --mh-mix: #6b521c; --mh-mix-bg: #f1e7cf; --mh-blue: #2f4f7a;
  --mh-blue-bg: #e1e7f0; --mh-teal: #2c6466; --mh-teal-bg: #dcebea; --mh-plum: #6a3d63; --mh-plum-bg: #efe2ec; }
.mh-hero { min-height: 0; padding: 56px 0 40px; align-items: flex-start; }
.mh-hero h1 { max-width: 18ch; }
.ed[lang="hi"].mh .mh-hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
.mh-find { padding-top: 36px; }
.mh-narrow { max-width: 72ch; }
.mh .ed-h2 { overflow-wrap: anywhere; }
.mh [hidden] { display: none !important; }

/* the location ask (the location-ask rule) */
.mh-ask { display: flex; gap: 14px; align-items: flex-start; background: #fff9ec; border: 1px solid rgba(201, 164, 92, .55);
  border-radius: 12px; padding: 14px 16px; margin: 10px 0 4px; }
.mh-ask[hidden] { display: none; }
.mh-ask-pin { flex: 0 0 auto; width: 26px; height: 26px; fill: var(--mh-rust); margin-top: 2px; }
.mh-ask-h { font-family: var(--serif, Georgia, serif); font-size: 1.3rem; margin: 0 0 4px; color: var(--mh-ink); }
.mh-ask-p { margin: 0 0 12px; color: #3b3a40; line-height: 1.5; }
.mh-ask-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mh-ask .ed-btn { padding: 10px 20px; min-height: 44px; display: inline-flex; align-items: center; }
.mh-chipbtn { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--sand, #e7dcc6); background: #fffdf8;
  color: var(--indigo, #2b2f6b); font-weight: 600; cursor: pointer; font-size: .95rem; }
.mh-linkbtn { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 6px 2px; color: var(--mh-rust); font-weight: 600; cursor: pointer;
  font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }

/* the form */
.mh-form-card { margin-bottom: 8px; }
.mh-form fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.mh-form legend { font-weight: 600; color: var(--mh-ink); margin: 0 0 8px; padding: 0; font-size: .95rem; }
.mh-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-chiprow .sv-chip span { padding: 11px 14px; font-size: .93rem; white-space: nowrap; }
.mh-fields { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
.mh-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mh-pick-in { position: relative; }
.mh-field label { font-weight: 600; font-size: .9rem; color: #3b3a40; }
.mh-field input, .mh-field select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid #d9cfbc; background: #fff; font: inherit; color: var(--mh-ink); }
/* focus rings in rust (6.1:1 on the card; the gold was 2.2:1) */
.mh-field input:focus-visible, .mh-field select:focus-visible { outline: 2px solid var(--mh-rust); outline-offset: 1px; }
.mh .sv-chip input:focus-visible + span { outline-color: var(--mh-rust); }
.mh-small { font-size: .88rem; color: var(--mh-muted); margin: 6px 0 0; line-height: 1.5; }
.mh-small:empty { display: none; }
.mh-picks { list-style: none; margin: 4px 0 0; padding: 4px; position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
  background: #fff; border: 1px solid #d9cfbc; border-radius: 10px; box-shadow: 0 12px 28px rgba(21, 26, 44, .14);
  max-height: 280px; overflow-y: auto; }
.mh-picks[hidden] { display: none; }
.mh-picks li { padding: 9px 10px; border-radius: 8px; cursor: pointer; line-height: 1.35; }
.mh-picks li:hover { background: #f4ecdc; }
/* the active option of the combobox (aria-activedescendant; the focus stays in the input) */
.mh-picks li[aria-selected="true"] { background: #f4ecdc; box-shadow: inset 0 0 0 2px var(--mh-rust); }
.mh-more { border-top: 1px solid var(--mh-line); margin: 16px 0 0; padding: 2px 0 0; }
.mh-more > summary { cursor: pointer; font-weight: 600; color: var(--mh-ink); list-style-position: inside; }
/* every summary is a 44 px target */
.mh-more > summary, .mh-notes > summary, .mh-cal-more > summary, .mh-lagna > summary, .mh-gaps > summary {
  padding: 10px 0; min-height: 44px; box-sizing: border-box; }
.mh-more[open] > summary { margin-bottom: 2px; }
.mh-person { border: 1px solid var(--mh-line) !important; border-radius: 12px; padding: 12px 14px 14px !important; margin: 12px 0 0 !important; }
.mh-person legend { padding: 0 6px; font-size: .9rem; line-height: 1.4; }
.mh-person .mh-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.mh-name { margin-top: 12px; max-width: 360px; }
.mh-switches { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 0; }
.mh-switches label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; cursor: pointer;
  min-height: 44px; padding: 10px 0; box-sizing: border-box; }
.mh-switches input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--mh-rust); }
.mh-form > .ed-btn { margin-top: 18px; }
.mh-msg { margin: 14px 0 0; color: var(--kum, #8C2F39); font-weight: 600; }
.mh-msg:focus { outline: none; }
.mh-msg:focus-visible { outline: 2px solid var(--mh-rust); outline-offset: 4px; }
/* after a personal answer's language switch: what to enter again, at the top of "For you" */
.mh-form .mh-reenter { margin: 0 0 10px; color: var(--mh-ink); }

/* the answer */
.mh-result { margin-top: 30px; }
.mh-res-head { border-left: 3px solid var(--mh-gold); padding: 4px 0 4px 16px; margin: 0 0 14px; }
.mh-res-head:focus { outline: none; }
.mh-res-head:focus-visible { outline: 2px solid var(--mh-rust); outline-offset: 4px; }
.mh-shown { font-family: var(--serif, Georgia, serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0; color: var(--mh-ink);
  font-variant-numeric: lining-nums; }
.mh-note { margin: 6px 0 0; color: var(--mh-muted); }
.mh-answer .mh-line { font-family: var(--serif, Georgia, serif); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.45;
  color: var(--mh-ink); font-variant-numeric: lining-nums; }
.ed[lang="hi"] .mh-answer .mh-line { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.65; }
.mh-line { margin: 0 0 10px; line-height: 1.62; color: #3b3a40; max-width: 78ch; }
.mh-line.k-warning { color: var(--mh-rust); }
.mh-open, .mh-open .mh-line { font-family: var(--serif, Georgia, serif); font-size: clamp(1.1rem, 1.9vw, 1.28rem); line-height: 1.55;
  color: var(--mh-ink); font-variant-numeric: lining-nums; }
.mh-open { border-left: 2px solid var(--mh-gold); padding: 2px 0 2px 16px; margin: 0 0 20px; max-width: 70ch; }
.mh-open .mh-line { margin: 0; }
.ed[lang="hi"] .mh-open, .ed[lang="hi"] .mh-open .mh-line { font-size: clamp(1.02rem, 1.7vw, 1.15rem); }
.mh-notes { border: 1px solid var(--mh-line); border-radius: 12px; padding: 2px 16px; margin: 16px 0 6px; background: rgba(255, 255, 255, .4); }
.mh-notes[open] { padding-bottom: 12px; }
.mh-notes > summary { cursor: pointer; font-weight: 600; }
.mh-notes[open] > summary { margin-bottom: 2px; }
.mh-tiers { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mh-h3 { font-family: var(--serif, Georgia, serif); font-weight: 500; font-size: 1.45rem; line-height: 1.3; margin: 30px 0 10px;
  color: var(--mh-ink); font-variant-numeric: lining-nums; }
.ed[lang="hi"] .mh-h3 { font-size: 1.25rem; line-height: 1.5; }
.mh-count { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--mh-muted); font-weight: 400;
  margin-left: 6px; white-space: nowrap; }
.ed[lang="hi"] .mh-count { font-family: system-ui, "Noto Sans Devanagari", sans-serif; letter-spacing: 0; font-size: .82rem; }
.mh-none { color: var(--mh-muted); margin: 4px 0 10px; }

/* source chips: the colour says the tier (the legend is under "How this list was made") */
.mh-chip { display: inline-block; margin: 3px 4px 0 0; padding: 1px 9px; border: 1px solid rgba(154, 68, 38, .3); border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .01em; line-height: 1.6; color: var(--mh-rust);
  background: rgba(255, 255, 255, .5); vertical-align: baseline; }
.ed[lang="hi"] .mh-chip { font-family: system-ui, "Noto Sans Devanagari", sans-serif; font-size: .78rem; }
.mh-chip b { font-weight: 600; }
.mh-chip.t-cut { color: var(--mh-plum); border-color: rgba(106, 61, 99, .35); background: var(--mh-plum-bg); }
.mh-chip.t-custom { color: var(--mh-mix); border-color: rgba(107, 82, 28, .35); background: var(--mh-mix-bg); }
.mh-chip.t-regional { color: var(--mh-teal); border-color: rgba(44, 100, 102, .35); background: var(--mh-teal-bg); }
.mh-chip.t-show, .mh-chip.t-method, .mh-chip.t-fact { color: #4d4a44; border-color: rgba(30, 30, 36, .22); background: #f1ece2; }
.mh-chip.t-grade { color: #74581c; border-color: rgba(201, 164, 92, .6); background: #f6edd6; }
.mh-chip.t-plus { color: var(--mh-good); border-color: rgba(47, 107, 79, .35); background: var(--mh-good-bg); }
.mh-chip.t-personal { color: var(--mh-blue); border-color: rgba(47, 79, 122, .35); background: var(--mh-blue-bg); }
.mh-chip.t-analogy { color: #3f4a57; border-color: rgba(63, 74, 87, .3); background: #e6e9ec; }

/* the calendar: a month grid by Hindu day, one mark a cell (templates/muhurat/_month.html). A filled rust dot: first
   choice (or passes every hold); a ring: good; a small gold mark: with a note; a diamond: a naming's due day; a day
   with no window keeps its number, quieter, and opens its reason. */
.mh-legend { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: #4d4a44; }
.mh-legend li { display: inline-flex; align-items: center; gap: 7px; }
.mh-legend i { font-style: normal; font-weight: 700; }
.mh-cal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; }
.mh-cal-m { min-width: 0; overflow-x: auto; }
.mh-cal-more { margin: 14px 0 0; }
.mh-cal-more > summary { cursor: pointer; color: var(--mh-rust); font-weight: 600; margin-bottom: 4px; }
.mh-field .mh-linkbtn { align-self: flex-start; }
.mh-cal-h { font-family: var(--serif, Georgia, serif); font-size: 1.22rem; font-weight: 500; line-height: 1.3; margin: 0;
  padding: 0 0 8px 2px; color: var(--mh-ink); text-align: left; caption-side: top; font-variant-numeric: lining-nums;
  border-bottom: 1px solid var(--mh-line); margin-bottom: 6px; }
.ed[lang="hi"] .mh-cal-h { font-size: 1.08rem; }
.mh-grid { width: 100%; min-width: 324px; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.mh-grid th { font: 600 .66rem/1.2 var(--mono); letter-spacing: .02em; color: var(--mh-muted); padding: 4px 0 2px; text-align: center; }
.ed[lang="hi"] .mh-grid th { font-family: system-ui, "Noto Sans Devanagari", sans-serif; font-size: .7rem; letter-spacing: 0; }
.mh-grid td { padding: 0; text-align: center; }
.mh-grid a, .mh-grid span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 44px; min-width: 44px; padding: 1px; border-radius: 9px; text-decoration: none; color: #6f685c; font-size: .86rem; line-height: 1;
  border: 1px solid transparent; }
.mh-grid :is(a, span)::after, .mh-cm { content: ""; display: block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  box-sizing: border-box; }
.mh-grid :is(.c-first, .c-good, .c-flag, .c-pass, .c-due) { background: #fffdf8; border-color: rgba(154, 68, 38, .2);
  color: var(--mh-ink); font-weight: 700; }
.mh-grid :is(.c-first, .c-pass)::after, .mh-cm.c-first, .mh-cm.c-pass { background: var(--mh-rust); }
.mh-grid .c-good::after, .mh-cm.c-good { box-shadow: inset 0 0 0 1.6px var(--mh-rust); }
.mh-grid .c-flag::after, .mh-cm.c-flag { width: 10px; height: 6px; border-radius: 2px; background: var(--mh-gold);
  box-shadow: inset 0 0 0 1px #8a6a24; }
.mh-grid .c-due::after, .mh-cm.c-due { width: 7px; height: 7px; border-radius: 1px; background: var(--indigo, #2b2f6b); transform: rotate(45deg); }
.mh-grid .c-none::after, .mh-cm.c-none { width: 8px; height: 1.5px; border-radius: 1px; background: #b6ad9d; }
.mh-grid .c-polar::after { width: 3px; height: 3px; background: #b6ad9d; }
.mh-grid .c-out { color: #736855; }
.mh-grid .c-out::after { display: none; }
.mh-grid a:hover { border-color: var(--mh-rust); }
.mh-grid a:focus-visible { outline: 2px solid var(--mh-rust); outline-offset: 1px; }
.mh-cal-key .mh-cm { width: 9px; height: 9px; }
.mh-cal-key .mh-cm.c-flag { width: 12px; height: 7px; }
.mh-cal-key .mh-cm.c-none { width: 10px; height: 2px; }

/* the windows: one card a day (its bar from sunrise to sunrise), one card a window inside it */
.mh-cards { display: grid; gap: 20px; }
.mh-day { background: var(--mh-card); border: 1px solid var(--mh-line); border-radius: 16px; padding: 20px 22px 18px; min-width: 0; }
.mh-day-h .mh-line { font-weight: 600; color: var(--mh-ink); margin: 0 0 4px; }

/* the day timeline (oa/muhurat_visuals.day_timeline): SVG with x in percent, so its words keep their size */
.mh-tl { margin: 10px 0 4px; }
.mh-fit { container-type: inline-size; min-width: 0; }
.mh-svg { display: block; width: 100%; overflow: visible; }
.mh-svg text { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif; font-size: 11px; fill: #4d4a44; }
/* words that could collide carry the box widths they fit at (oa/muhurat_visuals.fit); below the narrowest, none
   (the legend under each picture says everything) */
.mh-fit .lb { display: none; }
@supports not (container-type: inline-size) { .mh-fit .lb.v0 { display: inline; } }
@container (min-width: 250px) { .mh-fit .lb.v0 { display: inline; } }
@container (min-width: 400px) { .mh-fit .lb.v1 { display: inline; } .mh-fit .lb.h1 { display: none; } }
@container (min-width: 560px) { .mh-fit .lb.v2 { display: inline; } .mh-fit .lb.h2 { display: none; } }
@container (min-width: 760px) { .mh-fit .lb.v3 { display: inline; } .mh-fit .lb.h3 { display: none; } }
.tl-day { fill: #F1E6CE; }
.tl-night { fill: #CDD0DE; }
.tl-win { fill: var(--mh-rust); }
.tl-rahu-bg { fill: #fff; fill-opacity: .35; }
.tl-rahu-bg.is-cut { fill-opacity: .55; }
.tl-rahu { opacity: .55; }
.tl-rahu.is-cut { opacity: 1; }
.tl-godhuli { fill: var(--mh-gold); }
.tl-band.b-yama { fill: #5E6480; }
.tl-band.b-gulika { fill: #A2834A; }
.tl-tick { stroke-width: 1.5; }
.tl-tick.t-sunset { stroke: rgba(30, 30, 36, .55); }
.tl-tick.t-noon { stroke: #8a6a24; stroke-dasharray: 2 2; }
.tl-hr { stroke: rgba(30, 30, 36, .28); stroke-width: 1; }
.tl-hr.is-3 { stroke: rgba(30, 30, 36, .5); }
.mh-svg .tl-wn { fill: #fff; font-size: 12px; font-weight: 700; }
.mh-svg .tl-sl { font-weight: 600; fill: #3b3a40; }
.mh-svg .tl-hl { fill: var(--mh-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.mh-tl-key { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 5px 18px; font-size: .84rem; line-height: 1.45; color: #4d4a44; font-variant-numeric: lining-nums; }
.mh-tl-key li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.mh-sw { flex: 0 0 auto; display: inline-block; width: 16px; height: 10px; border-radius: 3px; font-style: normal; position: relative; top: 1px; }
.mh-sw.k-win { width: 18px; height: 14px; top: 2px; background: var(--mh-rust); color: #fff; font: 700 .64rem/14px system-ui, sans-serif; text-align: center; }
.mh-sw.k-rahu { background: repeating-linear-gradient(135deg, rgba(30, 30, 36, .62) 0 1.6px, #f3ece0 1.6px 4.2px); }
.mh-sw.k-rahu:not(.is-cut) { opacity: .6; }
.mh-sw.k-yama { height: 5px; top: -1px; background: #5E6480; }
.mh-sw.k-gulika { height: 5px; top: -1px; background: #A2834A; }
.mh-sw.k-godhuli { height: 5px; top: -1px; background: var(--mh-gold); }
.mh-sw.k-sun { width: 2px; height: 12px; border-radius: 1px; background: rgba(30, 30, 36, .55); margin: 0 7px; }
.mh-sw.k-sunset { width: 2px; height: 12px; border-radius: 1px; background: rgba(30, 30, 36, .55); margin: 0 7px; }
.mh-sw.k-noon { width: 2px; height: 12px; border-radius: 1px; background: repeating-linear-gradient(180deg, #8a6a24 0 2px, transparent 2px 4px); margin: 0 7px; }
.mh-sw.k-night { background: #CDD0DE; box-shadow: inset 0 0 0 1px rgba(30, 30, 36, .12); }

/* one window as a card (templates/muhurat/_win.html) */
.mh-wins { display: grid; gap: 14px; margin-top: 16px; }
.mh-win { background: #fffdf9; border: 1px solid var(--mh-line); border-radius: 14px; padding: 18px 20px 14px; min-width: 0; }
.mh-win-h { display: flex; gap: 12px; align-items: flex-start; }
.mh-wn { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--mh-rust); color: #fff; display: flex;
  align-items: center; justify-content: center; font: 700 .86rem/1 system-ui, sans-serif; margin-top: 2px; }
.mh-win-t { min-width: 0; flex: 1 1 auto; }
.mh-w1 { font-family: var(--serif, Georgia, serif); font-size: 1.24rem; font-weight: 400; line-height: 1.4; color: var(--mh-ink); margin: 0;
  font-variant-numeric: lining-nums; }
/* words for a screen reader only (a window heading's "Muhurat 2: ", a piece's checks in full) */
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ed[lang="hi"] .mh-w1 { font-size: 1.1rem; line-height: 1.6; }
/* Rahu Kaal left out: the heading gives the suggested pieces; the whole window follows with its own label */
.mh-w1-whole { font-size: .9rem; line-height: 1.5; color: var(--mh-muted); margin: 4px 0 0; font-variant-numeric: lining-nums; }
.mh-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.mh-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.45;
  border: 1px solid var(--mh-rust); color: var(--mh-rust); background: #fff; }
.mh-badge.b-first { background: var(--mh-rust); color: #fff; }
.mh-badge.b-flag { border-color: rgba(201, 164, 92, .9); background: #f6edd6; color: #6b521c; }
.mh-badge.b-you { border-color: rgba(47, 79, 122, .4); background: var(--mh-blue-bg); color: var(--mh-blue); }
.mh-wk { font: 600 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mh-muted); margin: 0 0 8px; }
.ed[lang="hi"] .mh-wk { font-family: system-ui, "Noto Sans Devanagari", sans-serif; letter-spacing: .01em; text-transform: none; font-size: .8rem; }
.mh-fn { font-family: var(--mono); font-size: .64em; line-height: 0; color: var(--mh-rust); margin-left: 2px; letter-spacing: .02em; white-space: nowrap; }
.mh-nb { white-space: nowrap; }

/* the lagna strip: the pieces on the window's own span; fixed, dual and movable as a quiet pattern underneath */
.mh-lg { margin: 16px 0 0; container: mh-lg / inline-size; }
.mh-lg-bar { position: relative; height: 46px; border-radius: 9px; overflow: hidden; background: #efe6d4; container-type: inline-size; }
.mh-lg-seg { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc(var(--w) * 1%); box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding-bottom: 6px;
  background: #F6EFE0; border-right: 2px solid #fffdf9; overflow: hidden; white-space: nowrap; color: var(--mh-ink); }
.mh-lg-seg:last-child { border-right: 0; }
.mh-lg-seg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }
.mh-lg-seg.k-fixed::after, .mh-pat.k-fixed { background: rgba(154, 68, 38, .62); }
.mh-lg-seg.k-movable::after, .mh-pat.k-movable { background: repeating-linear-gradient(135deg, rgba(154, 68, 38, .7) 0 2px, transparent 2px 5px); }
.mh-lg-seg.k-dual::after, .mh-pat.k-dual { background: radial-gradient(circle, rgba(154, 68, 38, .8) 1.1px, transparent 1.5px) 0 0 / 5px 5px; }
.mh-lg-seg.is-short { background: #f3e9d7; }
.mh-lg-l { font-size: .72rem; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums; }
.mh-lg-m { display: flex; align-items: center; font-size: .66rem; line-height: 1; }
.mh-lg-mf { display: flex; gap: .25em; font-size: .66rem; }
/* a lagna check not met: a small plum tag with an ordinal word ("8th", "आठवाँ"), never a numeral in a circle (those are
   the card's numbered sources) */
.mh-mk { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35em; height: 1.45em; padding: 0 .2em;
  box-sizing: border-box; border-radius: .3em; border: .09em solid rgba(106, 61, 99, .5); color: var(--mh-plum);
  background: var(--mh-plum-bg); font: 700 1em/1 system-ui, "Noto Sans Devanagari", sans-serif; font-style: normal; white-space: nowrap; }
/* a piece too narrow for its tags shows this dot instead (its tags are listed by piece in the key) */
.mh-lg-dot { display: none; flex: 0 0 auto; width: .7em; height: .7em; border-radius: 50%; background: var(--mh-plum); font-style: normal; }
.mh-ss { display: none; }
/* each word shows only at the widths it fits (oa/muhurat_visuals.lagna_strip: --f, --s, --m, --d in px, a 1 px dead
   band, and a factor so steep that a size is either whole or nothing) */
@supports (width: 1cqw) {
  .mh-lg .mh-sl { font-size: clamp(0px, calc((var(--w) * 1cqw - (var(--f, 0) + 1) * 1px) * 9999), .72rem); }
  .mh-lg .mh-ss { display: inline; font-size: clamp(0px, min(calc((var(--w) * 1cqw - (var(--s, 0) + 1) * 1px) * 9999),
    calc(((var(--f, 0) + 1) * 1px - var(--w) * 1cqw) * 9999)), .72rem); }
  .mh-lg .mh-lg-mf { font-size: clamp(0px, calc((var(--w) * 1cqw - (var(--m, 0) + 1) * 1px) * 9999), .66rem); }
  .mh-lg .mh-lg-dot { display: block; font-size: clamp(0px, min(calc((var(--w) * 1cqw - (var(--d, 0) + 1) * 1px) * 9999),
    calc(((var(--m, 0) + 1) * 1px - var(--w) * 1cqw) * 9999)), .66rem); }
}
.mh-lg figcaption { margin: 8px 0 0; }
.mh-lg-cap { font-size: .88rem; color: #4d4a44; line-height: 1.5; margin: 0 0 6px; font-variant-numeric: lining-nums; }
.mh-lg-key { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: #4d4a44; }
.mh-lg-key li { display: inline-flex; align-items: center; gap: 6px; }
.mh-lg-key .mh-mk { font-size: .66rem; }
.mh-lg-mh { flex-basis: 100%; color: var(--mh-muted); margin-top: 2px; }
.mh-lg-key .mh-lg-pc { gap: 3px; }
.mh-lg-pc b { font-weight: 600; color: var(--mh-ink); margin-right: 3px; }
.mh-lg-key .mh-lg-dk { gap: .5em; }
.mh-lg-dk .mh-lg-dot { display: inline-block; font-size: .82em; }
/* the dot's word: whole only at the bar widths where some piece shows its dot (lagna_strip's --v, in the figure's
   own cqw), nothing at the others */
@supports (width: 1cqw) { .mh-lg-key .mh-lg-dk { font-size: clamp(0px, var(--v, 0px), .8rem); } }
.mh-pat { display: inline-block; width: 18px; height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(154, 68, 38, .25); }

/* why, what was left out, notes: lists with an icon each */
.mh-wbody { margin-top: 16px; }
.mh-wcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0 0 14px; }
.mh-wcols > :only-child { grid-column: 1 / -1; }
.mh-wcol { min-width: 0; }
.mh-ilist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mh-it { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.mh-it p, .mh-it .mh-line { margin: 0; font-size: .93rem; line-height: 1.58; color: #3b3a40; }
.mh-ii { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round;
  stroke-linejoin: round; color: var(--mh-muted); }
.mh-it.i-check .mh-ii, .mh-it.i-plus .mh-ii { color: var(--mh-good); stroke-width: 2.1; }
.mh-it.i-cut .mh-ii { color: var(--mh-rust); }
.mh-it.i-band .mh-ii { color: #5E6480; stroke-width: 2.2; }
.mh-it.i-minor .mh-ii { color: #8a6a24; }
.mh-it.i-you .mh-ii { color: var(--mh-blue); }
.mh-it.t-regional .mh-ii { color: var(--mh-teal); }
.mh-it.t-custom .mh-ii { color: var(--mh-mix); }

/* how steady: the slack meter beside the steady minutes and the robustness line */
.mh-steady { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; background: #f7f1e4;
  border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; }
.mh-slack { min-width: 0; }
.mh-slack-n { margin: 0 0 8px; color: #4d4a44; font-size: .84rem; line-height: 1.2; }
.mh-slack-n b { font-family: var(--serif, Georgia, serif); font-size: 1.6rem; font-weight: 500; color: var(--mh-ink); font-variant-numeric: lining-nums; }
.ed[lang="hi"] .mh-slack-n b { font-size: 1.35rem; }
.mh-meter { display: block; height: 6px; border-radius: 3px; background: rgba(30, 30, 36, .1); overflow: hidden; }
.mh-meter > i { display: block; height: 100%; width: calc(var(--p) * 1%); min-width: 3px; border-radius: 3px; background: #b8913f; }
.mh-steady.is-tight .mh-meter > i { background: var(--mh-rust); }
.mh-steady-t .mh-line { font-size: .93rem; margin: 0 0 6px; }
.mh-steady-t .mh-line:last-child { margin-bottom: 0; }

/* the sky at the window: icon tiles */
.mh-wsky { margin: 0 0 14px; }
.mh-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mh-tile { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--mh-line); border-radius: 12px; padding: 10px 12px;
  background: #fff; min-width: 0; }
.mh-tile-i { flex: 0 0 auto; display: flex; gap: 2px; align-items: center; min-height: 32px; }
.mh-tile-h { margin: 0 0 3px; font-weight: 600; font-size: .84rem; color: var(--mh-ink); line-height: 1.35; }
.mh-tile-p { margin: 0; font-size: .86rem; line-height: 1.5; color: #3b3a40; font-variant-numeric: lining-nums; }
.mh-ti { width: 30px; height: 30px; fill: none; stroke: #8a6a24; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mh-tile.t-S9 .mh-ti { stroke: var(--indigo, #2b2f6b); fill: rgba(43, 47, 107, .08); }
.mh-phase { width: 30px; height: 30px; }
.mh-phase .mp-dark { fill: #2B3150; }
.mh-phase .mp-lit { fill: #F4ECD8; }
.mh-phase .mp-rim { fill: none; stroke: rgba(30, 30, 36, .3); stroke-width: 1; }
.mh-ico.mh-ico-s { width: 26px; height: 26px; }

/* the lagna pieces in full, and what was left out between the windows */
.mh-lagna, .mh-gaps { margin: 4px 0 0; }
.mh-lagna > summary, .mh-gaps > summary { cursor: pointer; color: var(--mh-rust); font-weight: 600; font-size: .93rem; margin-bottom: 0; }
.mh-piece { border-left: 3px solid rgba(154, 68, 38, .62); padding: 2px 0 2px 12px; margin: 0 0 12px; }
.mh-piece.k-movable { border-left-style: dashed; }
.mh-piece.k-dual { border-left-style: dotted; }
.mh-piece .mh-line { font-size: .9rem; margin: 0 0 5px; }
.mh-piece .k-W5 { color: var(--mh-ink); font-weight: 600; }
.mh-gaps { margin-top: 14px; }
.mh-gaps .mh-line { font-size: .9rem; }

/* a card's sources, gathered at its foot: each line carries their numbers */
.mh-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--mh-line); }
.mh-foot-k { font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mh-muted); margin-right: 4px; }
.ed[lang="hi"] .mh-foot-k { font-family: system-ui, "Noto Sans Devanagari", sans-serif; letter-spacing: .01em; text-transform: none; font-size: .8rem; }
.mh-foot .mh-chip { margin: 0; padding: 2px 10px 2px 3px; border-radius: 11px; font-size: .74rem; letter-spacing: 0; }
.ed[lang="hi"] .mh-foot .mh-chip { font-size: .8rem; }
.mh-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(255, 255, 255, .7); font-family: var(--mono); font-size: .68rem; font-weight: 700; }

/* rows: one line a day */
.mh-rows { list-style: none; padding: 0; margin: 0; }
.mh-row { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--mh-line); line-height: 1.55; color: #3b3a40;
  font-variant-numeric: lining-nums; }
/* a row's mark is the calendar's: a filled rust dot, a ring, a small gold note mark */
.mh-row::before { content: ""; position: absolute; left: 6px; top: 17px; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; }
.mh-row.m-first::before, .mh-row.m-pass::before { background: var(--mh-rust); }
.mh-due { font: 600 .78rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--indigo, #2b2f6b);
  margin: 0 0 6px; }
.ed[lang="hi"] .mh-due { font-family: system-ui, "Noto Sans Devanagari", sans-serif; text-transform: none; letter-spacing: 0; }
.mh-row.m-good::before { box-shadow: inset 0 0 0 1.6px var(--mh-rust); }
.mh-row.m-flag::before { width: 10px; height: 6px; top: 18px; left: 5px; border-radius: 2px; background: var(--mh-gold); box-shadow: inset 0 0 0 1px #8a6a24; }
.mh-row b { color: var(--mh-ink); }
.mh-limbs { color: var(--mh-muted); font-size: .93rem; }
.mh-you { display: inline-block; font-size: .8rem; padding: 0 8px; border-radius: 999px; background: var(--mh-blue-bg); color: var(--mh-blue); }
.mh-row a { color: var(--mh-rust); font-weight: 600; font-size: .9rem; white-space: nowrap; display: inline-block;
  padding: 13px 8px; margin: -13px -8px; }
/* the sections' "more" links and the link lists: 44 px tall */
.mh-small > a, .mh-links .ed-link { display: inline-flex; align-items: center; min-height: 44px; }
.mh-month h3 { margin-top: 22px; }

/* the year strip (oa/muhurat_visuals.year_strip): one SVG, each row's word above its bar */
.mh-ys { margin: 8px 0 4px; }
.mh-svg .ys-k { font-size: 11px; font-weight: 600; fill: #3b3a40; }
.ys-seg { fill: var(--mh-rust); }
.ys-seg.s-show { fill: #b7ae9e; }
.ys-seg.s-regional { fill: var(--mh-teal); fill-opacity: .8; }
.ys-seg.s-custom { fill: #b8973f; }
.ys-seg.s-fact { fill: var(--mh-blue); }
.ys-seg.w-city { fill: var(--mh-rust); }
.ys-seg.w-national { fill: var(--mh-rust); fill-opacity: .55; }
.ys-seg.w-book { fill: #fffdf8; stroke: var(--mh-rust); stroke-width: 1.2; }
.ys-seg.w-margin { fill: rgba(154, 68, 38, .22); }
.ys-seg.w-margin-show { fill: rgba(183, 174, 158, .3); stroke: #a39a89; stroke-width: .8; stroke-dasharray: 2 2; }
.ys-mk circle { stroke: #fffdf8; stroke-width: 1.5; }
.ys-mk.m-sun circle { fill: #b8913f; }
.ys-mk.m-eclipse circle { fill: var(--mh-ink); }
.ys-singh { fill: var(--mh-gold); fill-opacity: .1; }
.ys-col rect { fill: rgba(47, 107, 79, .55); }
.mh-svg .ys-n { font-size: 10.5px; font-weight: 600; fill: var(--mh-good); font-variant-numeric: tabular-nums; }
.ys-axis { stroke: rgba(30, 30, 36, .25); stroke-width: 1; }
.ys-mt { stroke: rgba(30, 30, 36, .35); stroke-width: 1; }
.mh-svg .ys-ml { font-size: 10.5px; fill: var(--mh-muted); }
.ys-today { stroke: var(--mh-ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.mh-svg .ys-tl { font-weight: 700; fill: var(--mh-ink); }
.mh-svg .ys-way { font-size: 10.5px; fill: var(--mh-muted); }
.mh-ys-key .mh-sym { display: inline-block; width: 16px; height: 10px; border-radius: 3px; background: var(--mh-rust); }
.mh-sym.s-show { background: #b7ae9e; } .mh-sym.s-regional { background: var(--mh-teal); opacity: .8; }
.mh-sym.s-custom { background: #b8973f; } .mh-sym.s-fact { background: var(--mh-blue); }
.mh-sym.w-city { height: 5px; } .mh-sym.w-national { height: 5px; opacity: .55; }
.mh-sym.w-book { height: 5px; background: #fffdf8; box-shadow: inset 0 0 0 1.2px var(--mh-rust); }
.mh-sym.w-margin { height: 5px; background: rgba(154, 68, 38, .22); }
.mh-sym.w-margin-show { background: rgba(183, 174, 158, .3); box-shadow: inset 0 0 0 1px #a39a89; }
.mh-sym.m-sun, .mh-sym.m-eclipse { width: 10px; height: 10px; border-radius: 50%; background: #b8913f; }
.mh-sym.m-eclipse { background: var(--mh-ink); }
.mh-sym.s-singh { background: rgba(201, 164, 92, .22); box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .5); }
.mh-sym.s-today { width: 2px; height: 14px; border-radius: 0; background: repeating-linear-gradient(180deg, var(--mh-ink) 0 3px, transparent 3px 6px); margin: 0 7px; }
.mh-sym.s-count { width: 8px; height: 12px; border-radius: 2px 2px 0 0; background: rgba(47, 107, 79, .55); margin: 0 4px; }
.mh-list { margin: 4px 0 0; }
.mh-list .mh-line { padding: 8px 0; border-bottom: 1px solid var(--mh-line); margin: 0; }
.mh-asta-h { display: flex; gap: 10px; align-items: center; }

/* excluded dates explained: one compact row a day (or a run of days), its icon the kind of its first reason */
.mh-ex { list-style: none; padding: 0; margin: 4px 0 0; }
.mh-xr { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0 6px;
  border-bottom: 1px solid var(--mh-line); }
.mh-xi { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; color: var(--mh-muted); }
.mh-xr.x-season .mh-xi { color: #8a6a24; }
.mh-xr.x-sun .mh-xi { color: var(--mh-rust); }
.mh-xr.x-planet .mh-xi { color: var(--mh-blue); }
.mh-xr.x-eclipse .mh-xi { color: var(--mh-ink); }
.mh-xr.x-moon .mh-xi { color: var(--indigo, #2b2f6b); }
.mh-xr.x-star .mh-xi { color: var(--mh-teal); }
.mh-xr.x-lagna .mh-xi { color: var(--mh-plum); }
.mh-xr.x-custom .mh-xi { color: var(--mh-mix); }
.mh-xb { min-width: 0; }
.mh-ex-h { font-weight: 600; color: var(--mh-ink); margin: 0 0 3px; font-variant-numeric: lining-nums; }
.mh-ex .mh-line { margin-bottom: 4px; font-size: .93rem; line-height: 1.55; }

/* the defs (templates/muhurat/_defs.html): there, drawing nothing */
.mh-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the sky cards */
.mh-sky { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.mh-skycard { background: var(--mh-card); border: 1px solid var(--mh-line); border-radius: 14px; padding: 18px 20px 12px; min-width: 0; }
.mh-skycard h3 { font-family: var(--serif, Georgia, serif); font-weight: 500; font-size: 1.3rem; margin: 0 0 10px; color: var(--mh-ink); }
.ed[lang="hi"] .mh-skycard h3 { font-size: 1.15rem; }
.mh-skycard .k-sky_fact { color: var(--mh-ink); }

/* sections */
.mh-h2 { display: flex; gap: 14px; align-items: flex-start; }
.mh-ico { flex: 0 0 auto; display: inline-block; width: 40px; height: 40px; animation: oa-float 7s ease-in-out infinite; }
.mh-ico svg { width: 100%; height: 100%; }
.mh-asta-h .mh-ico { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .mh-ico { animation: none; } }
.mh-body .ed-p { margin-bottom: 16px; }
.mh-today { list-style: none; padding: 0; margin: 10px 0 0; }
.mh-today li { padding: 10px 0; border-bottom: 1px solid var(--mh-line); }
.mh-ev { display: block; font: 600 .74rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mh-rust); margin-bottom: 3px; }
.ed[lang="hi"] .mh-ev { font-family: system-ui, "Noto Sans Devanagari", sans-serif; letter-spacing: 0; text-transform: none; font-size: .86rem; }
.mh-today .mh-line { margin: 0; }
.mh-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 0; }
.mh-links .ed-link { white-space: normal; }
.mh-fo { font-weight: 600; }
.mh-how { margin: 26px 0 12px; }
.mh-three { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mh-three .num { display: block; font-family: "Cormorant", Georgia, serif; font-size: 3rem; color: var(--rust); line-height: 1; }
.mh-three h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 8px 0 6px; color: var(--ink); }
.mh-three p { color: #4d4a44; line-height: 1.55; margin: 0; }
.mh-policy { margin: 22px 0 0; color: #3b3a40; font-family: var(--serif); font-size: 1.12rem; }
.mh-method .mh-line { padding: 10px 0; border-bottom: 1px solid var(--mh-line); margin: 0; }
.mh-method .k-method_off { color: var(--mh-muted); }
.mh-final h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }

/* "See more" (page.js) over tall parts: a short fade at the cut */
.pg-more.clipped > :is(.mh-months, .mh-ex, .mh-wbody, .mh-sky, .mh-list, .mh-rows, .mh-method) {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent); }

@media (max-width: 900px) {
  .mh-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mh-fields, .mh-person .mh-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mh-fields > .mh-place { grid-column: 1 / -1; }
  .mh-sky { grid-template-columns: minmax(0, 1fr); }
  .mh-three { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mh-wcols { grid-template-columns: minmax(0, 1fr); }
  .mh-steady { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  .mh-hero { padding: 34px 0 26px; }
  .mh-hero .ed-pill { display: none; }
  .mh-hero .ed-lead { font-size: 1rem; margin-bottom: 0; }
  .mh-hero h1 { margin-bottom: 14px; }
  /* the first screen at 375 px holds the finder's controls (critic §3.1): no kicker, a short H2, a compact ask */
  .mh-find { padding-top: 18px; }
  .mh-find .mh-find-k { display: none; }
  .mh .mh-find .mh-find-h { font-size: 1.2rem; line-height: 1.25; margin: 0 0 10px; }
  .mh-form-card { padding: 14px; }
  .mh-ask { gap: 10px; padding: 10px 12px; }
  .mh-ask-pin { width: 20px; height: 20px; }
  .mh-ask-h { font-size: 1.05rem; margin: 0 0 6px; }
  .mh-ask-p { display: none; }
  .mh-ask .mh-small { font-size: .78rem; margin: 6px 0 0; }
  .mh-ask .ed-btn { padding: 11px 16px; }
  /* the event chips: one row that scrolls inside itself, never the page */
  /* the padding (and the matching negative margin) keeps each chip's whole focus ring inside the scrolling row */
  .mh-events .mh-chiprow:not(.wrap) { flex-wrap: nowrap; overflow-x: auto; padding: 6px 6px 8px; margin: -6px -6px 0;
    scrollbar-width: thin; }
  .mh-events .sv-chip { flex: 0 0 auto; }
  .mh-cal { grid-template-columns: minmax(0, 1fr); }
  .mh-grid a, .mh-grid span { height: 44px; }
  .mh-day { padding: 14px 12px 12px; border-radius: 14px; }
  .mh-win { padding: 14px 12px 12px; border-radius: 12px; }
  .mh-win-h { gap: 10px; }
  .mh-wn { width: 24px; height: 24px; font-size: .78rem; }
  .mh-w1 { font-size: 1.12rem; }
  .ed[lang="hi"] .mh-w1 { font-size: 1.02rem; }
  .mh-tl-key { grid-template-columns: minmax(0, 1fr); }
  .mh-tiles { grid-template-columns: minmax(0, 1fr); }
  .mh-foot .mh-chip { font-size: .7rem; padding: 2px 8px 2px 3px; }
  .ed[lang="hi"] .mh-foot .mh-chip { font-size: .76rem; }
  .mh-ico { width: 30px; height: 30px; }
  .mh-ico.mh-ico-s { width: 24px; height: 24px; }
}

/* The methods (oa/muhurat_methods.py; the owner's multi-method rule): the method strip on the answer (the PDF's
   stamp), the comparison of each method, the register in "how we find a muhurat". Text never moves; long names and
   source chips wrap at 375 px. */
.mh-mstrip { border: 1px solid var(--mh-line); border-radius: 12px; padding: 12px 16px; margin: 16px 0 6px;
  background: rgba(255, 255, 255, .4); min-width: 0; overflow-wrap: anywhere; }
.mh-mstrip-h { font-weight: 600; margin: 0 0 6px; color: var(--mh-ink); }
.mh-stamp { list-style: none; margin: 0; padding: 0; font-size: .86rem; line-height: 1.5; color: var(--mh-muted);
  display: grid; gap: 3px; }
.mh-cmp .mc { margin: 10px 0 14px; }
.mh-who { font-weight: 600; color: var(--mh-ink); margin-top: 14px; }
.mh-without .mh-rows { margin-top: 8px; }
.mh-reg { display: grid; gap: 4px; margin: 10px 0 0; min-width: 0; overflow-wrap: anywhere; }
.mh-reg-it { margin-top: 6px; }
.mh-reg-it > summary { line-height: 1.5; }
.mh-reg-list { margin: 4px 0 10px; padding-left: 18px; line-height: 1.5; }
.mh-reg-list li { margin: 3px 0; }
.mh-flag { font-size: .82rem; color: var(--kumkum, #8C2F39); }
.mh-methods-f { margin-bottom: 12px; }
.mh-methods-f .mh-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mh-mfields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 640px) {
  .mh-methods-f .mh-fields, .mh-mfields { grid-template-columns: minmax(0, 1fr); }
}
/* a person's birth date and time, one under the other at 360-420 px: whole dates and times, level fields */
@media (max-width: 420px) {
  .mh-person .mh-fields { grid-template-columns: minmax(0, 1fr); }
}

/* a search that cannot be answered as entered leaves no empty band and no heading over nothing (the parts come back
   with the next answer) */
#season:has([data-slot="season"]:empty), #differ:has([data-slot="panels"]:empty) { display: none; }

/* The hero sky's muhurat accent (oa/hero_sky.py accent_json, templates/muhurat/_hero_fact.html; research/hero-sky/
   RULES.md Part B, muhurat row): on the town's L2 disc, the rising sign's stretch of the ecliptic in gold, Venus and
   Jupiter ringed with the other planets dimmed, and Vasishtha-Arundhati (true stars, so they shimmer as the others do)
   ringed at night. Nothing here moves; on the L1 fallback hero-sky.css's .hs-acc lights Venus and Jupiter. */
.hs-rs { fill: none; stroke: rgba(201, 164, 92, .85); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hs-am .hs-pl { opacity: .42; }
.hs-am .hs-pl.hs-on { opacity: 1; }
.hs-pl.hs-on .hs-halo { fill: none; stroke: #C9A45C; stroke-width: 1.5; }
.hs-pl.hs-on text { fill: #f2ece0; font-size: 17px; }
.hs-va-ring { fill: none; stroke: rgba(201, 164, 92, .7); stroke-width: 1.2; }
/* Text never moves (RULES A2/A6): the fact line and the caption each lay a hidden twin (.mh-htw: the line's longest
   words over the hours its edges cover, the caption's longest band word) in the same grid cell as the words shown
   (.mh-hv), so a swap in place, or the line emptying at the end of those hours, never changes their height. */
.mh-hfact, .mh-hero .hs-cap { display: grid; grid-template-columns: minmax(0, 1fr); }
.mh-hfact > .mh-hv, .mh-hfact > .mh-htw, .mh-hero .hs-cap > .mh-hv, .mh-hero .hs-cap > .mh-htw { grid-area: 1 / 1; }
.mh-htw { visibility: hidden; }
/* wide screens (1200 px and up): the disc further right than the shared slot, so its eastern rim (the lagna, the
   stretch and the compass letter) starts just right of the hero's text column (the H1 at 18ch runs to 753-800 px of
   the 1200 px container) instead of crossing it: -200 px from 1580 px wide, more below, so the left edge of the
   760 px slot stays some 20-35 px clear of the text at every width, with or without a scrollbar */
@media (min-width: 1200px) {
  .mh-hero .hs-art { right: min(-200px, calc(50vw - 990px)); }
}
/* 721-1199 px: the disc's eastern rim would sit under the text at full strength, so it takes the phone's place,
   behind the text and faint, without the compass letters and the planets' names */
@media (min-width: 721px) and (max-width: 1199px) {
  .mh-hero .hs-art { right: auto; left: 62%; translate: -50% -50%; opacity: .55; }
  .mh-hero .hs-cmp, .mh-hero .hs-pl text { display: none; }
}
/* phones: the angles from the Sun and the Vasishtha-Arundhati clause (the disc still rings the pair) give way, in the
   twin too, so the fact line stays at four lines at 375 px and the finder near the top */
@media (max-width: 720px) {
  .mh-hfact .mh-hdeg, .mh-hfact .mh-hp { display: none; }
}

/* a label kept for screen readers only (the chips' legend: the heading above asks the question) */
.mh-find .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A308 (OA_INFO_ORDER): the open day under the calendar, the month lines, the method details closed at the bottom */
.mh-dayslot { margin: 16px 0 0; padding: 12px 14px 14px; border: 1.5px solid var(--mh-rust); border-radius: 12px; background: var(--mh-card); }
.mh-dayslot:focus { outline: none; }
.mh-dayslot:focus-visible { outline: 2px solid var(--mh-rust); outline-offset: 2px; }
.mh-dayclose { float: right; min-height: 44px; min-width: 44px; padding: 6px 14px; margin: 0 0 6px 8px; border-radius: 999px;
  border: 1.5px solid var(--sand, #e7dcc6); background: #fffdf8; color: var(--mh-ink); font: inherit; font-weight: 600; cursor: pointer; }
.mh-dayclose:focus-visible { outline: 2px solid var(--mh-rust); outline-offset: 1px; }
.mh-ordered .mh-h4 { font-family: var(--serif, Georgia, serif); font-size: 1.05rem; margin: 18px 0 6px; color: var(--mh-ink); }
.mh-ordered .mh-month { margin: 0; }
.mh-calc { margin-top: 24px; }

/* S578: on the narrowest phones (Fold cover screen) each From / To date gets a whole row, so the full date and its
   calendar button show. */
@media (max-width: 379px) {
  .mh-form .mh-fields { grid-template-columns: minmax(0, 1fr); }
}
