/* ==========================================================================
   Calculator pages (design 05–11). Every rule under .le-calc / body.le-tool-page. Mobile-first.
   The tool's own generated result markup is restyled here (p, h2, table, lists) — scripts untouched.
   ========================================================================== */
body.le-tool-page .le-main-page { padding: 0 0 40px; }
body.le-tool-page .le-page-body-elementor .elementor-widget-container { font-family: var(--juniper-font-sans); }
body.le-tool-page .e-con, body.le-tool-page .elementor-section, body.le-tool-page .e-con-inner { --padding-block-start: 0; --padding-block-end: 0; padding-top: 0 !important; padding-bottom: 0 !important; }
body.le-tool-page .elementor-widget:not(:last-child) { margin-bottom: 0; }

/* head */
.le-calc-head-icon { margin-bottom: 14px; }
.le-calc-head-icon .le-only-d { display: none; }
@media (min-width: 1024px) { .le-calc-head-icon { margin-bottom: 16px; } .le-calc-head-icon .le-only-m { display: none; } .le-calc-head-icon .le-only-d { display: inline-flex; } }
.le-calc-head { background: var(--juniper-surface); padding: 24px 18px 22px; border-bottom: 1px solid var(--juniper-hairline); }
.le-calc-head .juniper-eyebrow { margin-bottom: 10px; }
.le-calc-title { font-size: 26px; line-height: 1.2; margin: 0 0 10px; font-family: var(--juniper-font-sans); font-weight: 600; color: var(--juniper-ink); }
.le-calc-intro { font-size: 15.5px; line-height: 1.6; color: var(--juniper-ink-soft); margin: 0 0 14px; }
.le-calc-chip { display: inline-block; font-family: var(--juniper-font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); background: var(--juniper-canvas); border-radius: 999px; padding: 7px 12px; }

/* grid: form card + result */
.le-calc-grid { padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 18px; }
.le-calc-form { background: var(--juniper-surface); border-radius: 20px; padding: 18px; box-shadow: var(--juniper-shadow-soft); }
.le-calc-form .juniper-eyebrow { margin-bottom: 16px; }
.le-calc-form form { margin: 0; padding: 0 !important; background: none !important; }
.le-calc-form label { display: block; font-family: var(--juniper-font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); margin: 0 0 7px; font-weight: 500; }
.le-calc-form br { display: none; }
.le-calc-form input[type=text], .le-calc-form input[type=number], .le-calc-form input[type=date], .le-calc-form select { display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--juniper-hairline); border-radius: 14px; padding: 13px 15px; background: var(--juniper-canvas); font: inherit; font-size: 16px; font-weight: 600; color: var(--juniper-ink); margin: 0 0 15px; appearance: none; -webkit-appearance: none; }
.le-calc-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B4E87' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.le-calc-form input:focus, .le-calc-form select:focus { outline: 2px solid var(--juniper-lilac); outline-offset: 1px; border-color: var(--juniper-lilac); }
.le-calc-form input::placeholder { color: var(--juniper-ink-soft); font-weight: 500; }
.le-calc-form .le-hint { font-size: 12.5px; line-height: 1.45; color: var(--juniper-neutral); margin: -8px 0 15px; }
.le-calc-form button, .le-calc-form input[type=submit] { display: block; width: 100%; border: 0; border-radius: 999px; background: var(--juniper-gradient-hero); color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; padding: 15px; cursor: pointer; margin-top: 4px; box-shadow: var(--juniper-shadow-glow); transition: transform var(--juniper-duration) var(--juniper-ease); }   /* same treatment as the site's hero CTAs (was flat lilac, ~2.4:1) */
.le-calc-form button:hover, .le-calc-form input[type=submit]:hover { transform: translateY(-1px); }
.le-calc-form button:focus-visible, .le-calc-form input[type=submit]:focus-visible { outline: 3px solid var(--juniper-lilac-deep); outline-offset: 2px; }
.le-calc-form .le-form-note { font-size: 12.5px; line-height: 1.55; color: var(--juniper-neutral); margin: 16px 0 0; display: none; }
.le-calc-form .le-input-unit { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; }
.le-calc-form .le-input-unit input { margin: 0; flex: 1; }
.le-calc-form .le-input-unit span { font-size: 13px; color: var(--juniper-ink-soft); white-space: nowrap; }
.le-calc-form #cycleLengthSection .le-hint, .le-calc-form div > .le-hint { margin-top: -8px; }
/* result panel */
.le-calc-result { display: none; background: var(--juniper-gradient-soft); border-radius: 28px; padding: 26px 24px 8px; text-align: center; }
.le-calc-result.has-result { display: block; }   /* le-calc.js toggles this when the tool has written something visible */
.le-calc-result .le-result-eyebrow { margin-bottom: 12px; }
/* the script's own "Your … date is:" line becomes the eyebrow (kept in the DOM so the text is unchanged) */
.le-calc-result-date .le-result-body > div > p:first-child { font-family: var(--juniper-font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: var(--juniper-tracking-wider); text-transform: uppercase; color: var(--juniper-fg-2); margin-bottom: 12px; }
.le-calc-result p { font-size: 15px; line-height: 1.5; color: var(--juniper-ink-soft); margin: 0 0 8px; }
.le-calc-result h2, .le-calc-result h3 { font-family: var(--juniper-font-serif); font-weight: 500; letter-spacing: var(--juniper-tracking-tight); color: var(--juniper-ink); font-size: 36px; line-height: 1.05; margin: 0 0 10px; }
.le-calc-result h2 strong { font-weight: 500; }
.le-calc-result table { width: 100%; border-collapse: collapse; background: var(--juniper-surface); border-radius: 20px; box-shadow: var(--juniper-shadow-soft); margin: 14px 0 18px; text-align: left; font-size: 14.5px; overflow: hidden; }
.le-calc-result th { font-family: var(--juniper-font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); font-weight: 500; padding: 14px 18px 8px; border-bottom: 1px solid var(--juniper-hairline); }
.le-calc-result td { padding: 13px 18px; border-bottom: 1px solid var(--juniper-hairline); vertical-align: top; color: var(--juniper-ink); }
.le-calc-result td:first-child { font-weight: 700; font-size: 15px; line-height: 1.3; }
.le-calc-result td:last-child { font-family: var(--juniper-font-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--juniper-rose-deep); text-align: right; padding-top: 15px; }
.le-calc-result table { table-layout: fixed; } .le-calc-result td:last-child { width: 44%; }
.le-calc-result tr:last-child td { border-bottom: 0; }
.le-calc-result .milestone-name { font-weight: 700; } .le-calc-result .milestone-description { font-weight: 400; font-size: 13px; line-height: 1.45; color: var(--juniper-ink-soft); margin-top: 2px; }
.le-calc-result .milestone-description a { color: var(--juniper-lilac-deep); }
/* band / pair kinds: left-aligned readouts, chart card */
.le-calc-result-band, .le-calc-result-pair { text-align: left; padding-bottom: 20px; }
.le-calc-result-band p, .le-calc-result-pair p { color: var(--juniper-ink); font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.le-result-chart { position: relative; height: 300px; background: var(--juniper-surface); border-radius: 20px; padding: 14px 12px 10px; box-shadow: var(--juniper-shadow-soft); margin-bottom: 16px; }
.le-result-chart canvas { width: 100% !important; height: 100% !important; max-height: none !important; }
@media (min-width: 1024px) { .le-result-chart { height: 340px; padding: 16px 14px 10px; } }
.le-result-chart { display: none; } .le-result-chart.has-chart { display: block; }   /* le-calc.js flips it once a Chart instance exists, then resizes it */
.le-calc-result-pair #error:empty, .le-calc-result-pair #result:empty, .le-calc-result-pair #probability:empty { display: none; }
.le-calc-result-pair #error:not(:empty) { color: var(--juniper-danger); font-weight: 600; margin-bottom: 8px; }
.le-calc-result-pair #result, .le-calc-result-pair #probability { background: var(--juniper-surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--juniper-shadow-soft); margin-bottom: 12px; font-size: 16px; line-height: 1.5; color: var(--juniper-ink); }

/* frame */
.le-calc-frame { padding: 0 18px 8px; }
.le-guidance { position: relative; overflow: hidden; background: var(--juniper-surface); border-radius: 28px; padding: 22px; box-shadow: var(--juniper-shadow-glow); margin: 0 0 16px; }
.le-guidance-halo { position: absolute; top: -60px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: var(--juniper-gradient-halo); pointer-events: none; }
.le-guidance-inner { position: relative; }
.le-guidance .juniper-eyebrow { margin-bottom: 8px; }
.le-guidance-text { font-size: 19px; line-height: 1.4; margin: 0; color: var(--juniper-ink); text-wrap: pretty; }
.le-calc-disclaimer { font-size: 12.5px; line-height: 1.55; color: var(--juniper-neutral); margin: 0 0 20px; }
.le-calc-method { background: var(--juniper-surface); border-radius: 20px; padding: 18px; box-shadow: var(--juniper-shadow-soft); margin: 0 0 18px; }
.le-calc-method h3 { font-size: 16.5px; margin: 0 0 8px; }
.le-calc-method p { font-size: 14.5px; line-height: 1.6; color: var(--juniper-ink-soft); margin: 0; }
.le-calc-read { margin: 0 0 22px; }
.le-calc-read-eyebrow { margin-bottom: 12px; } .le-calc-read-title { display: none; }
.le-calc-read ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.le-calc-read a { display: block; background: var(--juniper-surface); border-radius: 14px; padding: 14px 15px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--juniper-ink); box-shadow: var(--juniper-shadow-soft); }
.le-calc-guide { display: block; background: var(--juniper-soft-rose); border-radius: 22px; padding: 20px 18px; margin-top: 4px; }   /* the mobile bottom bar was removed (Bobby 2026-08-16); this card carries the CTA on mobile too */
.le-calc-guide .juniper-eyebrow { margin-bottom: 8px; }
.le-calc-guide h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; color: var(--juniper-ink); }
.le-calc-guide p { font-size: 14px; line-height: 1.55; color: var(--juniper-ink-soft); margin: 0 0 14px; }
.le-calc-guide .le-btn { width: 100%; }

@media (min-width: 1024px) {
	.le-calc-result td:last-child { white-space: nowrap; width: auto; } .le-calc-result table { table-layout: auto; }
	.le-calc-head { padding: 40px 40px 34px; } .le-calc-head > * { max-width: 760px; }
	.le-calc-title { font-size: 38px; line-height: 1.15; margin-bottom: 12px; } .le-calc-intro { font-size: 18px; }
	.le-calc-chip { display: none; }
	.le-calc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; padding: 36px 40px 0; }
	.le-calc-form { border-radius: 24px; padding: 28px; }
	.le-calc-form .le-form-note { display: block; }
	.le-calc-result h2, .le-calc-result h3 { font-size: 40px; }
	/* frame: guidance + disclaimer sit under the result column; lower row is a 2/3 + 1/3 grid */
	.le-calc-frame { padding: 0 40px 48px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 32px; }
	.le-guidance { grid-column: 2; margin: 0; padding: 22px 24px; }
	.le-calc-disclaimer { grid-column: 2; font-size: 13px; margin: -6px 0 10px; }
	.le-calc-lower { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
	.le-calc-method { padding: 24px; margin-bottom: 20px; } .le-calc-method h3 { font-size: 19px; } .le-calc-method p { font-size: 15.5px; }
	.le-calc-read-eyebrow { display: none; } .le-calc-read-title { display: block; font-size: 24px; margin: 0 0 18px; }
	.le-calc-read ul { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
	.le-calc-read a { border-radius: 18px; padding: 20px; font-size: 16.5px; font-weight: 700; }
	.le-calc-guide { display: block; background: var(--juniper-soft-rose); border-radius: 24px; padding: 24px; }
	.le-calc-guide .juniper-eyebrow { margin-bottom: 10px; } .le-calc-guide h3 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; color: var(--juniper-ink); } .le-calc-guide p { font-size: 14.5px; line-height: 1.55; color: var(--juniper-ink-soft); margin: 0 0 16px; }
	.le-calc-guide .le-btn { width: 100%; }
}

/* ==========================================================================
   Embryo ranking tool (post 1238) — ported from snippet 952 so 952 can retire.
   Structure unchanged; palette mapped to Juniper tokens. Scoped to .le-site so
   the old theme keeps 952's rendering untouched.
   ========================================================================== */
.le-site .calculator.embryo-ranking-tool {
  --primary-color: var(--juniper-lilac-deep);
  --primary-dark:  #5b42ad;
  --day56-color:   var(--juniper-success);
  --day7-color:    var(--juniper-danger);
  --day7-mid:      var(--juniper-rose-deep);
  --border-color:  var(--juniper-hairline);
  --bg-light:      var(--juniper-surface-alt);
  --bg-white:      var(--juniper-surface);
  --text-dark:     var(--juniper-ink);
  --text-muted:    var(--juniper-ink-soft);
  --danger-color:  var(--juniper-ink-soft);
  --shadow:        var(--juniper-shadow-soft);
  --rank-highest:  var(--juniper-success);
  --rank-moderate: var(--juniper-lilac-deep);
  --rank-lower:    var(--juniper-danger);
  font-family: var(--juniper-font-sans);
}
.le-site .calculator.embryo-ranking-tool {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px;
    color: var(--text-dark);
}

/* Header */
.le-site .embryo-ranking-tool .tool-header {
    text-align: center;
    margin-bottom: 24px;
}

.le-site .embryo-ranking-tool .tool-header h2 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.le-site .embryo-ranking-tool .tool-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Embryo Input Section */
.le-site .embryo-ranking-tool .embryo-inputs {
    margin-bottom: 0;
}

.le-site .embryo-ranking-tool .embryo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: 8px;
}

.le-site .embryo-ranking-tool .embryo-row:last-of-type {
    margin-bottom: 0;
}

.le-site .embryo-ranking-tool .embryo-number {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 24px;
    font-size: 0.85rem;
}

.le-site .embryo-ranking-tool .embryo-row select {
    flex: 1;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.le-site .embryo-ranking-tool .embryo-row select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--juniper-tint-lilac);
}

.le-site .embryo-ranking-tool .embryo-row .grade-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
}

.le-site .embryo-ranking-tool .embryo-row .grade-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--juniper-tint-lilac);
}

.le-site .embryo-ranking-tool .embryo-row .grade-input.invalid {
    border-color: var(--day7-color);
    background-color: var(--juniper-soft-rose);
}

.le-site .embryo-ranking-tool .embryo-row .grade-input.invalid:focus {
    border-color: var(--day7-color);
    box-shadow: 0 0 0 2px var(--juniper-tint-core);
}

.le-site .embryo-ranking-tool .embryo-row .grade-input::placeholder {
    color: var(--text-muted);
}

.le-site .embryo-ranking-tool .btn-remove {
    padding: 8px;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.le-site .embryo-ranking-tool .btn-remove:hover {
    opacity: 1;
    color: var(--day7-color);
}

/* Action Buttons */
.le-site .embryo-ranking-tool .action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.le-site .embryo-ranking-tool .btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.le-site .embryo-ranking-tool .btn:active {
    transform: scale(0.98);
}

.le-site .embryo-ranking-tool .btn-add {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 140px;
}

.le-site .embryo-ranking-tool .btn-add:hover {
    background: var(--juniper-surface-alt);
}

.le-site .embryo-ranking-tool .btn-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.le-site .embryo-ranking-tool .btn-compare {
    background: var(--primary-color);
    color: white;
    flex: 1;
    min-width: 140px;
}

.le-site .embryo-ranking-tool .btn-compare:hover {
    background: var(--primary-dark);
}

/* Results Section */
.le-site .embryo-ranking-tool .results-section {
    display: none;
    margin-top: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
}

.le-site .embryo-ranking-tool .results-section.visible {
    display: block;
}

.le-site .embryo-ranking-tool .results-header {
    text-align: center;
    margin-bottom: 8px;
}

.le-site .embryo-ranking-tool .results-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.le-site .embryo-ranking-tool .results-header p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.le-site .embryo-ranking-tool .results-header .subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Comparison Bar - Timeline style */
.le-site .embryo-ranking-tool .comparison-bar-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.le-site .embryo-ranking-tool .comparison-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.le-site .embryo-ranking-tool .label-day7 {
    color: var(--day7-color);
}

.le-site .embryo-ranking-tool .label-day56 {
    color: var(--day56-color);
}

.le-site .embryo-ranking-tool .timeline-bar {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.le-site .embryo-ranking-tool .timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--day7-color) 0%, var(--day7-mid) 50%, var(--day56-color) 100%);
    border-radius: 2px;
    transform: translateY(-50%);
}

.le-site .embryo-ranking-tool .timeline-markers {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.le-site .embryo-ranking-tool .timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.le-site .embryo-ranking-tool .marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 1px 3px rgba(42,31,82,0.18);
}

.le-site .embryo-ranking-tool .marker-dot.day56 {
    background: var(--day56-color);
}

.le-site .embryo-ranking-tool .marker-dot.day7 {
    background: var(--day7-color);
}

.le-site .embryo-ranking-tool .marker-dot.day7-mid {
    background: var(--day7-mid);
}

.le-site .embryo-ranking-tool .marker-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 6px;
    color: var(--text-dark);
}

/* Arrow label below timeline */
.le-site .embryo-ranking-tool .timeline-arrow-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 6px;
}

.le-site .embryo-ranking-tool .timeline-arrow-label span {
    font-style: italic;
}

.le-site .embryo-ranking-tool .timeline-arrow-label svg {
    flex-shrink: 0;
}

/* Ranking Table Section */
.le-site .embryo-ranking-tool .ranking-section-header {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 24px 0 12px 0;
}

.le-site .embryo-ranking-tool .ranked-table {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.le-site .embryo-ranking-tool .ranked-table-header {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 1fr;
    padding: 12px 16px;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.le-site .embryo-ranking-tool .ranked-table-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 1fr;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.le-site .embryo-ranking-tool .ranked-table-row:last-child {
    border-bottom: none;
}

.le-site .embryo-ranking-tool .row-rank {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.le-site .embryo-ranking-tool .row-embryo {
    font-weight: 600;
    font-size: 1rem;
}

.le-site .embryo-ranking-tool .row-day {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.le-site .embryo-ranking-tool .row-relative-rank {
    display: flex;
    justify-content: flex-start;
}

.le-site .embryo-ranking-tool .rank-badge {
    position: relative;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    cursor: help;
}

.le-site .embryo-ranking-tool .rank-badge.high {
    background: var(--rank-highest);
}

.le-site .embryo-ranking-tool .rank-badge.moderate {
    background: var(--rank-moderate);
}

.le-site .embryo-ranking-tool .rank-badge.lower {
    background: var(--rank-lower);
}

/* Tooltip styles */
.le-site .embryo-ranking-tool .rank-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--text-dark);
    color: white;
    font-size: 0.7rem;
    font-weight: 400;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: 6px;
    z-index: 10;
}

.le-site .embryo-ranking-tool .rank-badge::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: -4px;
    z-index: 10;
}

.le-site .embryo-ranking-tool .rank-badge:hover::after,
.le-site .embryo-ranking-tool .rank-badge:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Error message */
.le-site .embryo-ranking-tool .error-message {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--juniper-soft-rose);
    border: 1px solid var(--juniper-rose);
    border-radius: 6px;
    color: var(--juniper-rose-deep);
    font-size: 0.9rem;
    text-align: center;
}

.le-site .embryo-ranking-tool .error-message.visible {
    display: block;
}

/* Disclaimer */
.le-site .embryo-ranking-tool .disclaimer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
}

/* No JavaScript fallback */
.le-site .embryo-ranking-tool .noscript-message {
    padding: 20px;
    background: var(--juniper-soft-rose);
    border: 1px solid var(--juniper-rose);
    border-radius: 6px;
    color: var(--juniper-rose-deep);
    text-align: center;
}

/* Responsive adjustments */
@media (min-width: 480px) {
    .le-site .calculator.embryo-ranking-tool {
        padding: 24px;
    }

    .le-site .embryo-ranking-tool .tool-header h2 {
        font-size: 1.75rem;
    }

    .le-site .embryo-ranking-tool .embryo-row {
        padding: 14px;
    }

    .le-site .embryo-ranking-tool .results-header h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .le-site .embryo-ranking-tool .ranked-table-header,
    .le-site .embryo-ranking-tool .ranked-table-row {
        grid-template-columns: 30px 1fr 1fr 1fr;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .le-site .embryo-ranking-tool .rank-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .le-site .embryo-ranking-tool .row-embryo {
        font-size: 0.9rem;
    }

    .le-site .embryo-ranking-tool .row-day {
        font-size: 0.8rem;
    }

    /* Stack embryo inputs on mobile */
    .le-site .embryo-ranking-tool .embryo-row {
        position: relative;
        padding-right: 40px;
    }

    .le-site .embryo-ranking-tool .embryo-row select,
    .le-site .embryo-ranking-tool .embryo-row .grade-input {
        flex: 1 1 calc(50% - 20px);
        min-width: 0;
    }

    .le-site .embryo-ranking-tool .embryo-row .btn-remove {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Timeline arrow label on mobile */
    .le-site .embryo-ranking-tool .timeline-arrow-label {
        flex-direction: column;
        font-size: 0.65rem;
        gap: 4px;
    }

    .le-site .embryo-ranking-tool .timeline-arrow-label svg {
        order: -1;
    }

    /* Table header spacing on mobile */
    .le-site .embryo-ranking-tool .ranked-table-header {
        font-size: 0.7rem;
        gap: 4px;
    }
}


/* Juniper touches on top of the ported structure */
.le-site .calculator.embryo-ranking-tool { background: var(--juniper-surface); border-radius: 24px; box-shadow: var(--juniper-shadow-soft); }
.le-site .embryo-ranking-tool .embryo-row { border-radius: 14px; background: var(--juniper-canvas); }
.le-site .embryo-ranking-tool .embryo-row select,
.le-site .embryo-ranking-tool .embryo-row .grade-input { border-radius: 12px; background: var(--juniper-surface); color: var(--juniper-ink); font-family: inherit; }
.le-site .embryo-ranking-tool .btn { border-radius: 999px; font-family: inherit; font-weight: 700; }
.le-site .embryo-ranking-tool .btn-compare { background: var(--juniper-lilac-deep); }
.le-site .embryo-ranking-tool .btn-compare:hover { background: #5b42ad; }
.le-site .embryo-ranking-tool .results-section { border-radius: 20px; background: var(--juniper-canvas); }
.le-site .embryo-ranking-tool .results-header h3 { font-family: var(--juniper-font-serif); font-weight: 500; letter-spacing: var(--juniper-tracking-tight); color: var(--juniper-ink); }
.le-site .embryo-ranking-tool .comparison-bar-container,
.le-site .embryo-ranking-tool .ranked-table { border-radius: 16px; }
.le-site .embryo-ranking-tool .ranked-table-header { font-family: var(--juniper-font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); }
.le-site .embryo-ranking-tool .rank-badge { border-radius: 999px; }

/* Verbatim tool scripts write inline colours (green "within", yellow "outside"); map them to the palette without touching the scripts. */
.le-calc-result span[style*="color: green"] { color: var(--juniper-lilac-deep) !important; }
.le-calc-result span[style*="background-color: yellow"] { background: var(--juniper-tint-core) !important; color: var(--juniper-rose-deep) !important; border-radius: 4px; padding: 1px 5px !important; }
.le-calc mark { background: var(--juniper-tint-core); color: var(--juniper-rose-deep); border-radius: 4px; padding: 1px 5px; }
.le-calc-form .le-input-unit input { min-width: 0; }

/* Euploid predictor (598) keeps its long article: hold it to the reading measure on wide screens */
@media (min-width: 1024px) { .le-tool-598 .le-page-body-elementor > .elementor > .e-con, .le-tool-598 .le-page-body-elementor .elementor-section-boxed > .elementor-container { max-width: 900px; margin-left: auto; margin-right: auto; } }

/* Embryo tool (1238): the post's own chart (custom properties) and badges → palette */
.le-site #embryo-grading-chart { --egc-ink: var(--juniper-ink); --egc-mute: var(--juniper-ink-soft); --egc-line: var(--juniper-hairline); --egc-high: var(--juniper-lilac-deep); --egc-mod: var(--juniper-lilac); --egc-low: var(--juniper-rose-deep); }
.le-site #embryo-grading-chart .egc-high-pill { background: var(--juniper-tint-lilac); color: var(--juniper-lilac-deep); }
.le-site #embryo-grading-chart .egc-moderate-pill { background: var(--juniper-surface-alt); color: var(--juniper-ink-soft); }
.le-site #embryo-grading-chart .egc-lower-pill { background: var(--juniper-tint-core); color: var(--juniper-rose-deep); }
.le-site .embryo-ranking-tool .rank-badge.high { background: var(--juniper-lilac-deep) !important; }
.le-site .embryo-ranking-tool .rank-badge.moderate { background: var(--juniper-lilac) !important; color: var(--juniper-ink) !important; }
.le-site .embryo-ranking-tool .rank-badge.lower { background: var(--juniper-rose-deep) !important; }
.le-site .embryo-ranking-tool .marker-dot.day56 {
    background: var(--day56-color);
}

.le-site .embryo-ranking-tool .marker-dot.day7 {
    background: var(--day7-color);
}

.le-site .embryo-ranking-tool .marker-dot.day7-mid {
    background: var(--day7-mid);
}

.le-site .embryo-ranking-tool .marker-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 6px;
    color: var(--text-dark);
}

/* Arrow label below timeline */
.le-site .embryo-ranking-tool .timeline-arrow-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 6px;
}

.le-site .embryo-ranking-tool .timeline-arrow-label span {
    font-style: italic;
}

.le-site .embryo-ranking-tool .timeline-arrow-label svg {
    flex-shrink: 0;
}

/* Ranking Table Section */
.le-site .embryo-ranking-tool .ranking-section-header {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 24px 0 12px 0;
}

.le-site .embryo-ranking-tool .ranked-table {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.le-site .embryo-ranking-tool .ranked-table-header {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 1fr;
    padding: 12px 16px;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.le-site .embryo-ranking-tool .ranked-table-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 1fr;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.le-site .embryo-ranking-tool .ranked-table-row:last-child {
    border-bottom: none;
}

.le-site .embryo-ranking-tool .row-rank {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.le-site .embryo-ranking-tool .row-embryo {
    font-weight: 600;
    font-size: 1rem;
}

.le-site .embryo-ranking-tool .row-day {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.le-site .embryo-ranking-tool .row-relative-rank {
    display: flex;
    justify-content: flex-start;
}

.le-site .embryo-ranking-tool .rank-badge {
    position: relative;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    cursor: help;
}

.le-site .embryo-ranking-tool .rank-badge.high {
    background: var(--rank-highest);
}

.le-site .embryo-ranking-tool .rank-badge.moderate {
    background: var(--rank-moderate);
}

.le-site .embryo-ranking-tool .rank-badge.lower {
    background: var(--rank-lower);
}

/* Tooltip styles */
.le-site .embryo-ranking-tool .rank-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--text-dark);
    color: white;
    font-size: 0.7rem;
    font-weight: 400;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: 6px;
    z-index: 10;
}

.le-site .embryo-ranking-tool .rank-badge::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: -4px;
    z-index: 10;
}

.le-site .embryo-ranking-tool .rank-badge:hover::after,
.le-site .embryo-ranking-tool .rank-badge:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Error message */
.le-site .embryo-ranking-tool .error-message {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--juniper-soft-rose);
    border: 1px solid var(--juniper-rose);
    border-radius: 6px;
    color: var(--juniper-rose-deep);
    font-size: 0.9rem;
    text-align: center;
}

.le-site .embryo-ranking-tool .error-message.visible {
    display: block;
}

/* Disclaimer */
.le-site .embryo-ranking-tool .disclaimer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
}

/* No JavaScript fallback */
.le-site .embryo-ranking-tool .noscript-message {
    padding: 20px;
    background: var(--juniper-soft-rose);
    border: 1px solid var(--juniper-rose);
    border-radius: 6px;
    color: var(--juniper-rose-deep);
    text-align: center;
}

/* Responsive adjustments */
@media (min-width: 480px) {
    .le-site .calculator.embryo-ranking-tool {
        padding: 24px;
    }

    .le-site .embryo-ranking-tool .tool-header h2 {
        font-size: 1.75rem;
    }

    .le-site .embryo-ranking-tool .embryo-row {
        padding: 14px;
    }

    .le-site .embryo-ranking-tool .results-header h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .le-site .embryo-ranking-tool .ranked-table-header,
    .le-site .embryo-ranking-tool .ranked-table-row {
        grid-template-columns: 30px 1fr 1fr 1fr;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .le-site .embryo-ranking-tool .rank-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .le-site .embryo-ranking-tool .row-embryo {
        font-size: 0.9rem;
    }

    .le-site .embryo-ranking-tool .row-day {
        font-size: 0.8rem;
    }

    /* Stack embryo inputs on mobile */
    .le-site .embryo-ranking-tool .embryo-row {
        position: relative;
        padding-right: 40px;
    }

    .le-site .embryo-ranking-tool .embryo-row select,
    .le-site .embryo-ranking-tool .embryo-row .grade-input {
        flex: 1 1 calc(50% - 20px);
        min-width: 0;
    }

    .le-site .embryo-ranking-tool .embryo-row .btn-remove {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Timeline arrow label on mobile */
    .le-site .embryo-ranking-tool .timeline-arrow-label {
        flex-direction: column;
        font-size: 0.65rem;
        gap: 4px;
    }

    .le-site .embryo-ranking-tool .timeline-arrow-label svg {
        order: -1;
    }

    /* Table header spacing on mobile */
    .le-site .embryo-ranking-tool .ranked-table-header {
        font-size: 0.7rem;
        gap: 4px;
    }
}


/* Juniper touches on top of the ported structure */
.le-site .calculator.embryo-ranking-tool { background: var(--juniper-surface); border-radius: 24px; box-shadow: var(--juniper-shadow-soft); }
.le-site .embryo-ranking-tool .embryo-row { border-radius: 14px; background: var(--juniper-canvas); }
.le-site .embryo-ranking-tool .embryo-row select,
.le-site .embryo-ranking-tool .embryo-row .grade-input { border-radius: 12px; background: var(--juniper-surface); color: var(--juniper-ink); font-family: inherit; }
.le-site .embryo-ranking-tool .btn { border-radius: 999px; font-family: inherit; font-weight: 700; }
.le-site .embryo-ranking-tool .btn-compare { background: var(--juniper-lilac-deep); }
.le-site .embryo-ranking-tool .btn-compare:hover { background: #5b42ad; }
.le-site .embryo-ranking-tool .results-section { border-radius: 20px; background: var(--juniper-canvas); }
.le-site .embryo-ranking-tool .results-header h3 { font-family: var(--juniper-font-serif); font-weight: 500; letter-spacing: var(--juniper-tracking-tight); color: var(--juniper-ink); }
.le-site .embryo-ranking-tool .comparison-bar-container,
.le-site .embryo-ranking-tool .ranked-table { border-radius: 16px; }
.le-site .embryo-ranking-tool .ranked-table-header { font-family: var(--juniper-font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); }
.le-site .embryo-ranking-tool .rank-badge { border-radius: 999px; }

/* Verbatim tool scripts write inline colours (green "within", yellow "outside"); map them to the palette without touching the scripts. */
.le-calc-result span[style*="color: green"] { color: var(--juniper-lilac-deep) !important; }
.le-calc-result span[style*="background-color: yellow"] { background: var(--juniper-tint-core) !important; color: var(--juniper-rose-deep) !important; border-radius: 4px; padding: 1px 5px !important; }
.le-calc mark { background: var(--juniper-tint-core); color: var(--juniper-rose-deep); border-radius: 4px; padding: 1px 5px; }
.le-calc-form .le-input-unit input { min-width: 0; }

/* Euploid predictor (598) keeps its long article: hold it to the reading measure on wide screens */
@media (min-width: 1024px) { .le-tool-598 .le-page-body-elementor > .elementor > .e-con, .le-tool-598 .le-page-body-elementor .elementor-section-boxed > .elementor-container { max-width: 900px; margin-left: auto; margin-right: auto; } }

/* Embryo tool (1238): the post's own chart/badge colours (teal/amber/red/green) → palette. Specificity beats the post's inline <style>. */
.le-site .embryo-ranking-tool .rank-badge.high, .le-site #embryo-grading-chart .egc-high, .le-site #embryo-grading-chart .egc-high-pill { background: var(--juniper-lilac-deep) !important; fill: var(--juniper-lilac-deep) !important; color: #fff; }
.le-site .embryo-ranking-tool .rank-badge.moderate, .le-site #embryo-grading-chart .egc-moderate, .le-site #embryo-grading-chart .egc-moderate-pill { background: var(--juniper-lilac) !important; fill: var(--juniper-lilac) !important; color: var(--juniper-ink); }
.le-site .embryo-ranking-tool .rank-badge.lower, .le-site #embryo-grading-chart .egc-lower, .le-site #embryo-grading-chart .egc-lower-pill { background: var(--juniper-rose-deep) !important; fill: var(--juniper-rose-deep) !important; color: #fff; }
.le-site #embryo-grading-chart .egc-high-pill { color: #fff !important; } .le-site #embryo-grading-chart .egc-lower-pill { color: #fff !important; }
.le-site .embryo-ranking-tool .marker-dot.day56 { background: var(--juniper-lilac-deep) !important; } .le-site .embryo-ranking-tool .marker-dot.day7, .le-site .embryo-ranking-tool .marker-dot.day7-mid { background: var(--juniper-rose-deep) !important; }
.le-site .embryo-ranking-tool .timeline-line { background: linear-gradient(90deg, var(--juniper-rose-deep), var(--juniper-lilac-deep)) !important; }
.le-site .embryo-ranking-tool .label-day7 { color: var(--juniper-rose-deep) !important; } .le-site .embryo-ranking-tool .label-day56 { color: var(--juniper-lilac-deep) !important; }
.le-site .embryo-ranking-tool .btn-compare { background: var(--juniper-gradient-hero) !important; box-shadow: var(--juniper-shadow-glow); }
.le-site .embryo-ranking-tool .btn-remove { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.le-site #embryo-grading-chart .egc-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.le-calc-guide .le-cta-alt { display: block; text-align: center; }
@media (min-width: 1024px) { .le-calc-guide .le-cta-alt { text-align: left; } }

/* ---------- Page prose (design CHANGELOG 2026-08-16) ---------- */
.le-calc-prose { padding: 0 18px 6px; background: var(--juniper-canvas); }   /* design: the disclaimer's 20px bottom margin is the only gap */
.le-prose-col { max-width: 680px; margin: 0 auto; }
.le-prose-col p { font-size: 16px; line-height: 1.7; color: var(--juniper-ink-soft); margin: 0 0 12px; text-wrap: pretty; }
.le-prose-col h2 { font-size: 20px; line-height: 1.25; color: var(--juniper-ink); margin: 22px 0 10px; scroll-margin-top: 80px; }
.le-prose-col h3 { font-size: 17px; line-height: 1.3; color: var(--juniper-ink); margin: 18px 0 8px; }
.le-prose-col a { color: var(--juniper-lilac-deep); text-decoration: underline; text-underline-offset: 3px; }
.le-prose-col ul, .le-prose-col ol { margin: 0 0 14px 18px; padding: 0; color: var(--juniper-ink-soft); font-size: 16px; line-height: 1.7; }
.le-prose-rail { display: none; }
.le-doctor-qs { background: var(--juniper-soft-rose); border-radius: 24px; padding: 22px 18px; margin: 22px 0; }
.le-doctor-qs .juniper-eyebrow { margin-bottom: 12px; }
.le-doctor-qs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.le-doctor-qs li { font-size: 15.5px; line-height: 1.5; color: var(--juniper-ink); padding-left: 14px; border-left: 2px solid var(--juniper-rose-deep); }
.le-calc-sources { border-top: 1px solid var(--juniper-hairline); margin-top: 24px; padding-top: 16px; }
.le-calc-sources .juniper-eyebrow { margin-bottom: 10px; }
.le-calc-sources li { font-size: 13.5px; line-height: 1.55; color: var(--juniper-neutral); margin-bottom: 8px; list-style: none; }
.le-calc-byline { display: flex; align-items: center; gap: 14px; max-width: 680px; margin: 0 auto; padding: 22px 18px 30px; background: var(--juniper-canvas); }
.le-calc-byline .le-portrait { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.le-calc-byline-name { font-size: 15px; font-weight: 700; color: var(--juniper-ink); }
.le-calc-byline-line { font-size: 13.5px; line-height: 1.5; color: var(--juniper-ink-soft); }
@media (min-width: 1024px) {
	.le-calc-prose { padding: 0 0 8px; display: grid; grid-template-columns: 186px minmax(0, 680px); gap: 44px; align-items: start; }
	.le-calc-prose:not(:has(.le-prose-rail)) { display: block; }
	.le-prose-col { margin: 0; }
	.le-prose-col p, .le-prose-col ul, .le-prose-col ol { font-size: 17px; margin-bottom: 14px; }
	.le-prose-col h2 { font-size: 24px; margin: 28px 0 12px; }
	.le-prose-rail { display: block; position: sticky; top: calc(var(--le-header-h, 80px) + 24px); border-left: 1px solid var(--juniper-hairline); padding-left: 14px; }
	.le-prose-rail .juniper-eyebrow { margin-bottom: 10px; }
	.le-prose-rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
	.le-prose-rail a { font-size: 13.5px; line-height: 1.35; color: var(--juniper-ink-soft); text-decoration: none; }
	.le-prose-rail a:hover { color: var(--juniper-lilac-deep); }
	.le-doctor-qs { border-radius: 24px; padding: 28px; margin: 28px 0; }
	.le-doctor-qs li { font-size: 16.5px; padding-left: 18px; }
	.le-calc-byline { gap: 18px; padding: 28px 0 44px; max-width: 680px; }
	.le-calc-byline .le-portrait { width: 56px; height: 56px; }
	.le-calc-prose:has(.le-prose-rail) + .le-calc-byline, .le-calc-prose + .le-calc-byline { margin-left: auto; margin-right: auto; }
}

/* ---------------------------------------------------------------------------
   AMH (1305) rendered as the design's LEResult `band` card. The widget ships its
   own id-scoped stylesheet (#amh-chart-tool …), so these rules carry the same id
   to win on specificity; markup and data stay verbatim.
   --------------------------------------------------------------------------- */
.le-site #amh-chart-tool { --amh-line: #8B63B8; --amh-band: rgba(207,174,234,0.34); --amh-accent: #D48A94; --amh-ink: var(--juniper-ink); --amh-muted: var(--juniper-neutral); --amh-rule: var(--juniper-hairline); --amh-bg: var(--juniper-surface); font-family: var(--juniper-font-sans); background: var(--juniper-gradient-soft); border-radius: 28px; padding: 26px 24px; max-width: none; }
.le-site #amh-chart-tool .le-amh-band::before { content: "where your number falls"; display: block; font-family: var(--juniper-font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: var(--juniper-tracking-wider); text-transform: uppercase; color: var(--juniper-ink-soft); margin-bottom: 14px; }
.le-site #amh-chart-tool .amh-figure { background: var(--juniper-surface); border: 0; border-radius: 20px; box-shadow: var(--juniper-shadow-soft); padding: 16px 14px 6px; margin: 0 0 16px; }
.le-site #amh-chart-tool .amh-legend { gap: 14px; padding: 8px 2px 4px; }
.le-site #amh-chart-tool .amh-legend li { font-size: 11.5px; color: var(--juniper-ink-soft); }
.le-site #amh-chart-tool .amh-mean { stroke: #8B63B8; stroke-width: 2; }
.le-site #amh-chart-tool .amh-band { fill: #CFAEEA; fill-opacity: 0.34; }
.le-site #amh-chart-tool .amh-marker-dot { fill: #D48A94; stroke: #FFFFFF; stroke-width: 2; }
.le-site #amh-chart-tool .amh-marker-line { stroke: #D48A94; stroke-dasharray: 3 3; }
.le-site #amh-chart-tool .amh-xtick, .le-site #amh-chart-tool .amh-ytick { font-family: var(--juniper-font-mono); font-size: 10px; fill: var(--juniper-neutral); }
.le-site #amh-chart-tool .amh-axis-title { font-family: var(--juniper-font-mono); font-size: 9.5px; letter-spacing: 0.06em; fill: var(--juniper-neutral); font-weight: 400; }
.le-site #amh-chart-tool .amh-form { background: var(--juniper-surface); border: 0; border-radius: 20px; box-shadow: var(--juniper-shadow-soft); padding: 18px; margin: 0 0 18px; }
.le-site #amh-chart-tool .amh-form h3 { font-family: var(--juniper-font-sans); font-size: 17px; color: var(--juniper-ink); margin: 0 0 6px; }
.le-site #amh-chart-tool .amh-form .amh-sub, .le-site #amh-chart-tool .amh-hint { color: var(--juniper-ink-soft); font-size: 13.5px; }
.le-site #amh-chart-tool .amh-form label { font-family: var(--juniper-font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); }
.le-site #amh-chart-tool .amh-form input { border: 1px solid var(--juniper-hairline); border-radius: 14px; padding: 13px 15px; background: var(--juniper-canvas); font: inherit; font-size: 15px; color: var(--juniper-ink); }
.le-site #amh-chart-tool .amh-form button { border: 0; border-radius: 999px; background: var(--juniper-gradient-hero); box-shadow: var(--juniper-shadow-glow); color: #fff; font: inherit; font-weight: 700; font-size: 15.5px; padding: 14px 22px; cursor: pointer; }
.le-site #amh-chart-tool .amh-result { background: none; border: 0; padding: 0; margin: 0 0 14px; }
.le-site #amh-chart-tool .amh-result p { font-size: 15px; line-height: 1.55; color: var(--juniper-ink); margin: 0 0 10px; }
.le-site #amh-chart-tool .amh-result .amh-headline { font-size: 16.5px; }
.le-site #amh-chart-tool .amh-details { background: none; border: 0; border-top: 1px solid var(--juniper-hairline); border-radius: 0; padding: 14px 0 0; margin: 0; }
.le-site #amh-chart-tool .amh-details > summary { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--juniper-lilac-deep); cursor: pointer; list-style: none; padding: 0; background: none; }
.le-site #amh-chart-tool .amh-details > summary::-webkit-details-marker { display: none; }
.le-site #amh-chart-tool .amh-details > summary::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: var(--juniper-lilac-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--juniper-duration) var(--juniper-ease); }
.le-site #amh-chart-tool .amh-details[open] > summary::before { transform: rotate(90deg); }
.le-site #amh-chart-tool .amh-disclaimer { background: var(--juniper-surface); border: 0; border-radius: 16px; padding: 15px 17px; font-size: 13.5px; line-height: 1.55; color: var(--juniper-ink-soft); margin: 14px 0 0; }

/* Embryo grading: the designed `ranked` result card */
.le-site .embryo-ranking-tool .results-section { background: var(--juniper-gradient-soft); border-radius: 28px; padding: 26px 24px; }
.le-site .embryo-ranking-tool .results-header { text-align: left; margin-bottom: 18px; }
.le-site .embryo-ranking-tool .results-header::before { content: "your embryos, ranked"; display: block; font-family: var(--juniper-font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: var(--juniper-tracking-wider); text-transform: uppercase; color: var(--juniper-ink-soft); margin-bottom: 10px; }
.le-site .embryo-ranking-tool .results-header h3 { font-family: var(--juniper-font-serif); font-size: 24px; line-height: 1.2; font-weight: 500; color: var(--juniper-ink); margin: 0 0 8px; }
.le-site .embryo-ranking-tool .results-header p { font-size: 14.5px; line-height: 1.55; color: var(--juniper-ink-soft); margin: 0; text-align: left; }
.le-site .embryo-ranking-tool .comparison-bar-container { display: none !important; }   /* the design's ranked card has no timeline; the tool sets display inline */
.le-site .embryo-ranking-tool .ranking-section-header { display: none; }
.le-site .embryo-ranking-tool .ranked-table { background: var(--juniper-surface); border-radius: 20px; padding: 2px 18px 4px; box-shadow: var(--juniper-shadow-soft); }
.le-site .embryo-ranking-tool .ranked-table-header { display: none; }
.le-site .embryo-ranking-tool .ranked-table-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--juniper-hairline); background: none; }
.le-site .embryo-ranking-tool .ranked-table-row:last-child { border-bottom: 0; }
.le-site .embryo-ranking-tool .row-rank { font-family: var(--juniper-font-mono); font-size: 12px; color: var(--juniper-neutral); width: 16px; flex-shrink: 0; font-weight: 400; }
.le-site .embryo-ranking-tool .row-embryo { font-family: var(--juniper-font-mono); font-size: 16px; font-weight: 700; letter-spacing: 0.05em; color: var(--juniper-ink); flex: 1; }
.le-site .embryo-ranking-tool .row-day { font-size: 13px; color: var(--juniper-ink-soft); margin-top: 2px; }
.le-site .embryo-ranking-tool .row-relative-rank { flex-shrink: 0; }
.le-site .embryo-ranking-tool .rank-badge { font-family: var(--juniper-font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 700; border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.le-site .embryo-ranking-tool .rank-badge.high { background: #E7EFE4 !important; color: #4E6B47 !important; }
.le-site .embryo-ranking-tool .rank-badge.moderate { background: var(--juniper-canvas) !important; color: var(--juniper-ink-soft) !important; }
.le-site .embryo-ranking-tool .rank-badge.lower { background: var(--juniper-canvas) !important; color: var(--juniper-neutral) !important; }
.le-site .embryo-ranking-tool .disclaimer { font-size: 13px; line-height: 1.5; color: var(--juniper-ink-soft); text-align: left; font-style: normal; margin-top: 16px; }
@media (min-width: 1024px) {
	.le-site .le-tool-1305 .calculator, .le-site .embryo-ranking-tool .results-section { padding: 28px 26px; }
	.le-site .embryo-ranking-tool .results-header h3 { font-size: 26px; }
}

/* Egg freezing (541): the design's LEResult `pair` — a stat card per figure */
.le-calc-result-pair .le-pair-eyebrow { margin-bottom: 16px; }
.le-calc-result-pair .le-result-body { display: flex; flex-direction: column; gap: 12px; }
.le-calc-result-pair .le-stat { background: var(--juniper-surface); border-radius: 20px; padding: 20px 22px; box-shadow: var(--juniper-shadow-soft); }
.le-calc-result-pair .le-stat:not(:has(.le-stat-value:not(:empty))) { display: none; }
.le-calc-result-pair .le-stat-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.le-calc-result-pair .le-stat-value { font-family: var(--juniper-font-serif); font-size: 42px; line-height: 1; color: var(--juniper-ink); }
.le-calc-result-pair .le-stat-label { font-size: 15px; font-weight: 600; color: var(--juniper-ink); line-height: 1.3; }
.le-calc-result-pair .le-stat #result, .le-calc-result-pair .le-stat #probability { background: none; box-shadow: none; padding: 0; margin: 0; border-radius: 0; font-size: 13.5px; line-height: 1.5; color: var(--juniper-ink-soft); }
.le-calc-result-pair .le-stat #result b, .le-calc-result-pair .le-stat #probability b { font-weight: 700; color: var(--juniper-ink); }
.le-calc-result-pair .le-stat p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--juniper-ink-soft); }

/* Design (calculator frames): below the tool, the page runs as one 3-column grid — prose spans two
   columns and Read next + the book CTA sit in the third, top-aligned. Elementor stacks its widgets,
   so the widget wrappers are placed onto that grid on desktop. */
@media (min-width: 1024px) {
	.le-tool-page .e-con-inner { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 0; align-items: start; }
	.le-tool-page .e-con-inner > .elementor-element { grid-column: 1 / -1; min-width: 0; }
	.le-tool-page .e-con-inner > .elementor-element:has(.le-calc-prose) { grid-column: 1 / span 2; padding: 0 0 48px 40px; }
	.le-tool-page .e-con-inner > .elementor-element:has(.le-calc-frame-tail) { grid-column: 3; padding: 0 40px 48px 0; }
	.le-tool-page .le-calc-frame-tail .le-calc-lower { display: block; }
	.le-tool-page .le-calc-frame-tail .le-calc-read { margin-bottom: 20px; }
	.le-tool-page .le-calc-frame-tail .le-calc-read ul { grid-template-columns: 1fr; }
	.le-tool-page .le-calc-frame-tail .le-calc-guide { margin: 0; }
	.le-tool-page .e-con-inner > .elementor-element:has(.le-calc-byline) { grid-column: 1 / span 2; padding-left: 40px; }
}

/* Tight spacing to the design: the guidance/disclaimer block ends the tool section, the prose
   starts immediately under it (the disclaimer's own 20px bottom margin is the whole gap). */
.le-calc-frame-top { padding-bottom: 0; }
.le-calc-frame-top .le-calc-disclaimer { margin-bottom: 20px; }
@media (min-width: 1024px) {
	.le-calc-frame-top { padding: 0 40px 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 0 32px; }
	.le-calc-frame-top .le-guidance { grid-column: 2; margin: 0 0 14px; }
	.le-calc-frame-top .le-calc-disclaimer { grid-column: 2; margin: 0; }
	.le-tool-page .e-con-inner > .elementor-element:has(.le-calc-frame-top) { padding-bottom: 0; }
}

/* Elementor puts its own gap between widgets; the design's calculator page controls its own
   spacing, so zero it on tool pages (mobile: disclaimer 20px is the whole gap, per the design). */
.le-tool-page .e-con-inner { gap: 0; row-gap: 0; --widgets-spacing: 0px 0px; }
@media (min-width: 1024px) { .le-tool-page .e-con-inner { column-gap: 20px; } }

.le-prose-col > :first-child { margin-top: 0; }   /* a leading H2 must not add to the disclaimer's 20px */

/* AMH (1305): the design's calculator grid — form card on the left, the band result on the right.
   The widget is one block, so its children are placed onto a grid; DOM order is untouched. */
.le-site #amh-chart-tool .amh-disclaimer { display: none; }   /* same sentence as the frame disclaimer below the guidance card */
/* the band result (chart + readout + disclosure) is one card, as in LEResult */
.le-site #amh-chart-tool .le-amh-band { background: var(--juniper-gradient-soft); border-radius: 28px; padding: 26px 24px; }
.le-site #amh-chart-tool { background: none; padding: 0; }

@media (min-width: 1024px) {
	.le-site #amh-chart-tool { display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 32px; align-items: start; }

	.le-site #amh-chart-tool .amh-form { grid-column: 1; grid-row: 1; margin: 0; border-radius: 24px; padding: 28px; align-self: start; }
	.le-site #amh-chart-tool .le-amh-band { grid-column: 2; grid-row: 1; }
	.le-site #amh-chart-tool .amh-details { margin-top: 4px; }
}
