/* ------------------------------------------------------------------------------------------------------
   Kundli Milan — the matching page
   Loaded only by this page, after kundli-milan-report.css, and written to outweigh it. Every selector below
   carries the same id/class weight as that sheet's, or more; a rule that loses the cascade is not a style,
   it is a comment.

   The birth-time field is deliberately not styled: this form opts out of the custom three-box time control
   (data-plain-time on the form), so it is the browser's own field and inherits the shared styling.

   On look: an earlier pass made this page white, blue-grey and hairline-thin, and it came out reading like a
   spreadsheet rather than a jyotish reading. It is warm again — cream grounds, gold rules, saffron headings —
   with the table grid drawn rather than implied, and the score given as a medallion, which is the one number
   the reader came for.
   ------------------------------------------------------------------------------------------------------ */

body.public-site.matching-page {
    --mn-ink: #3b3127;          /* warm dark: reads on cream without the blue cast */
    --mn-ink-soft: #6d5f4e;
    --mn-head: #6a2313;         /* deep maroon, the same family as the report covers */
    --mn-saffron: #c7590f;
    --mn-gold: #ecaf16;
    --mn-rule: #ecd9b0;         /* gold hairline */
    --mn-rule-soft: #f3e6cb;
    --mn-cream: #fffdf7;
    --mn-cream-deep: #fdf6e8;
    --mn-stripe: #fffaf0;
}

/* ---- reading ------------------------------------------------------------------------------------------ */

/* Prose breathes; table cells do not — 1.75 in a data row just pushes the rows apart and makes the table
   harder to scan across. */
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main :is(p, li, dd) { line-height: 1.75 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main :is(td, th) { line-height: 1.5 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main p { color: var(--mn-ink) !important; font-size: 15px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main :is(h1, h2, h3, h4) {
    color: var(--mn-head) !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;   /* never track Devanagari: it pulls matras off their letters */
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main h1 { font-size: clamp(26px, 3.4vw, 38px) !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main h2 { font-size: clamp(19px, 2.2vw, 24px) !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main h3 { font-size: 16px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-kicker {
    color: var(--mn-saffron) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* ---- the form ----------------------------------------------------------------------------------------- */

:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form {
    border: 1px solid var(--mn-rule) !important;
    border-radius: 16px !important;
    background: var(--mn-cream) !important;
    box-shadow: 0 8px 24px rgba(106, 35, 19, .07) !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .pb-form-heading p { color: var(--mn-ink-soft) !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .tools-person-panel {
    border: 1px solid var(--mn-rule) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .tools-person-panel > legend {
    padding: 0 0 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--mn-head) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .tools-person-panel > legend::after {
    content: ""; display: block; width: 34px; height: 3px; margin-top: 6px; border-radius: 2px;
    background: linear-gradient(90deg, var(--mn-saffron), var(--mn-gold));
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .pb-field { border-color: var(--mn-rule) !important; box-shadow: none !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .pb-field:focus-within {
    border-color: #f67e23 !important; box-shadow: 0 0 0 3px rgba(246, 126, 35, .14) !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .pb-field::before { color: var(--mn-saffron) !important; background: #fdf1d8 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .pb-field > label > span,
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .pb-field > label,
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .pb-field > span { color: #9a7c4e !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .tools-astrologer-optin,
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-form .tools-contact-optin {
    border: 1px dashed var(--mn-rule) !important; border-radius: 12px !important; background: #fffbf2 !important;
}

/* ---- the score, as a medallion --------------------------------------------------------------------------
   The whole page exists to produce this one number, so it is drawn as one: a saffron disc inside a white and
   gold ring, the way a score is stamped rather than tabulated. */

/* One card, one border. The two halves used to carry a border each, which met in the middle and read as a
   doubled line down the card and again around its edge. The frame belongs to the row; the halves only need
   the single rule that divides them. */
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-result {
    display: grid !important;
    grid-template-columns: minmax(216px, 288px) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--mn-rule) !important;
    border-radius: 16px !important;
    background: var(--mn-cream) !important;
    box-shadow: 0 8px 24px rgba(106, 35, 19, .07) !important;
}

:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 20px 18px !important;
    border: 0 !important;
    border-right: 1px solid var(--mn-rule) !important;
    border-radius: 0 !important;
    background: linear-gradient(165deg, #fff7e6, #ffeecd) !important;
    color: var(--mn-head) !important;
    text-align: center !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score > span {
    display: block !important;
    color: #9a5a12 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
/* Flex, not grid: as grid children the number and the "/36" stacked into two rows, so the denominator sat
   under the score instead of beside it. Now they share a line, with the denominator dropped to sit low. */
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score > strong {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    width: clamp(112px, 13vw, 146px) !important;
    height: clamp(112px, 13vw, 146px) !important;
    margin: 12px auto 10px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 34% 28%, #f7ab3e, #c7590f 70%) !important;
    color: #fff !important;
    font-size: clamp(40px, 5.4vw, 56px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: 0 0 0 5px #fff6e3, 0 0 0 7px #e8c069, 0 14px 30px rgba(160, 70, 10, .3) !important;
}
/* Centred with the number, then nudged down a little. Pinning it to the flex end pushed it onto the rim of
   the disc, where the curve clipped it. */
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score > strong small {
    position: relative !important;
    top: .3em !important;
    align-self: center !important;
    margin: 0 !important;
    color: #ffe3ad !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score > em {
    display: block !important;
    color: var(--mn-head) !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 850 !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score-summary {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 22px 26px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score-summary h2 { margin-top: 0 !important; font-size: 19px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score-summary p { color: var(--mn-ink) !important; font-size: 14.5px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score-summary p.is-good { color: #1f7a4c !important; font-weight: 750 !important; }

:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .matching-score-band {
    border: 1px solid var(--mn-rule) !important; border-radius: 13px !important;
    background: #fff !important; box-shadow: none !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .matching-score-band p { color: var(--mn-ink-soft) !important; font-size: 12.5px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .matching-score-band.is-current {
    border-color: var(--mn-saffron) !important;
    background: #fff7e6 !important;
    box-shadow: 0 6px 18px rgba(199, 89, 15, .15) !important;
}

/* ---- panels and tables ---------------------------------------------------------------------------------- */

:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-report-panel {
    padding: 20px 22px 22px !important;
    border: 1px solid var(--mn-rule) !important;
    border-radius: 16px !important;
    background: var(--mn-cream) !important;
    box-shadow: 0 8px 24px rgba(106, 35, 19, .07) !important;
    overflow: hidden !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-report-panel > h2 {
    position: relative !important;
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mn-rule-soft) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--mn-head) !important;
    font-size: 19px !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-report-panel > h2::before {
    content: "✦";
    margin-inline-end: 9px;
    color: var(--mn-gold);
    font-size: 15px;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-report-panel > h2::after {
    content: ""; position: absolute; left: 0; bottom: -1px;
    width: 58px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--mn-saffron), var(--mn-gold));
}

/* The grid is drawn, not implied: every cell keeps its gold rule. */
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table {
    border: 1px solid var(--mn-rule) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
    font-size: 13.5px !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table :is(th, td) {
    padding: 11px 14px !important;
    border: 1px solid var(--mn-rule-soft) !important;
    vertical-align: top !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table thead th {
    border-color: #b34f0d !important;
    background: linear-gradient(135deg, #c7590f, #e07a17) !important;
    color: #fff8e7 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table thead th small {
    display: block !important; margin-top: 2px !important;
    color: #ffdfae !important; font-size: 11.5px !important; font-weight: 700 !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table tbody th[scope="row"] {
    background: var(--mn-cream-deep) !important;
    color: #6b4a1e !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table tbody td { color: var(--mn-ink) !important; font-weight: 650 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table tbody tr:nth-child(even) td { background: var(--mn-stripe) !important; }
/* The totals row is the answer, so it reads like one. */
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table tfoot :is(th, td),
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-kootas-table tbody tr:last-child :is(th, td) {
    background: #ffeecd !important;
    color: var(--mn-head) !important;
    font-size: 14.5px !important;
    font-weight: 850 !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-table-hint,
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-panel-copy { color: var(--mn-ink-soft) !important; font-size: 12.5px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table small { color: var(--mn-ink-soft) !important; }

/* Status words become pills that can be read at a glance. */
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-status {
    display: inline-flex !important; align-items: center !important;
    padding: 3px 11px !important; border: 1px solid transparent !important; border-radius: 999px !important;
    font-size: 11.5px !important; font-weight: 850 !important; white-space: nowrap !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-status.is-favourable { border-color: #b7dfc6 !important; background: #eefaf2 !important; color: #1b6d43 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-status.is-average    { border-color: #e8d3a8 !important; background: #fffaf0 !important; color: #8a6a28 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-status.is-review     { border-color: #eeb99a !important; background: #fff3ec !important; color: #a3450f !important; }

/* ---- the explanatory sections --------------------------------------------------------------------------- */

:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main :is(.matching-guide, .matching-kootas, .matching-faq, .matching-score-meaning, .matching-question-card) {
    border: 1px solid var(--mn-rule) !important;
    border-radius: 16px !important;
    background: var(--mn-cream) !important;
    box-shadow: 0 8px 24px rgba(106, 35, 19, .07) !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .matching-koota-card {
    border: 1px solid var(--mn-rule) !important; border-radius: 13px !important;
    background: #fff !important; box-shadow: none !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .matching-koota-card :is(p, li) { color: var(--mn-ink-soft) !important; font-size: 13px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .matching-faq__list :is(details, summary) { border-color: var(--mn-rule) !important; color: var(--mn-head) !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .matching-faq__list p { color: var(--mn-ink) !important; font-size: 14px !important; }

@media (max-width: 760px) {
    :is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-match-result { grid-template-columns: minmax(0, 1fr) !important; }
    :is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score { border-right: 0 !important; border-bottom: 1px solid var(--mn-rule) !important; }
    :is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .tools-score-summary { padding: 18px 16px !important; }
    :is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-report-panel { padding: 15px 14px 16px !important; }
    :is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table { font-size: 13px !important; }
    :is(html#kl-fresh-root, html) body#page-top.public-site.matching-page main.site-main .milan-comparison-table :is(th, td) { padding: 9px 11px !important; }
}