/* Love Calculator by Name (/love-calculator) and the Calculators hub (/calculators). Mobile first. The only motion is the result ring
   filling once from 0 to the score (owner request, 2026-12-02), done in the page script and skipped under reduced motion.
   The site theme sets main headings, paragraphs and buttons with !important under the prefix below, so the rules
   that must win carry the same prefix. */
.lc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-hero { padding-bottom: 14px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-hero h1 { font-size: clamp(1.45rem, 5.2vw, 2.1rem) !important; line-height: 1.25 !important; margin: 0 0 6px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-hero p { margin: 0 !important; font-size: 1rem !important; color: #5d4b3a; }

.lc-tool { display: grid; gap: 14px; margin: 0 0 22px; }
.lc-form { background: #fff; border: 1px solid #ecd9c3; border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(80, 40, 10, .06); }
.lc-fields { display: grid; gap: 4px; }
.lc-field label { display: block; font-weight: 700; color: #4a2a17; margin: 0 0 6px; font-size: 1rem; }
.lc-field label span { font-weight: 500; color: #7a6450; font-size: .9rem; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-field input {
    display: block; width: 100%; box-sizing: border-box; height: 50px !important; min-height: 50px !important; padding: 0 14px !important;
    font-size: 1.05rem !important; border: 1.5px solid #d9bfa3 !important; border-radius: 12px !important; background: #fffdf9 !important; color: #2b1a10 !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-field input:focus { outline: 3px solid rgba(226, 105, 13, .35) !important; outline-offset: 1px; border-color: #e2690d !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-field input[aria-invalid="true"] { border-color: #b3261e !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-error { min-height: 1.35em; margin: 4px 0 0 !important; font-size: .88rem !important; line-height: 1.35 !important; color: #b3261e !important; }
.lc-heart { display: flex; justify-content: center; color: #d9465f; height: 22px; }
.lc-heart svg { width: 22px; height: 22px; fill: currentColor; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-submit {
    display: block; width: 100%; height: 52px; margin-top: 10px; border: 0 !important; border-radius: 12px !important;
    background: #c2410c !important; color: #fff !important; font-size: 1.05rem !important; font-weight: 700 !important; cursor: pointer;
}
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-submit:hover { background: #9a3412 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-submit:focus-visible { outline: 3px solid #f2a65a !important; outline-offset: 2px; }
.lc-submit[disabled] { opacity: .75; cursor: wait; }

/* The panel keeps one height for the empty state and for a result (measured for 4–40 letter names), so a result
   that arrives after a slow network moves nothing below it. */
.lc-result { background: #fff8f1; border: 1px solid #f0cfae; border-radius: 16px; padding: 16px; min-height: 664px; box-sizing: border-box; }
@media (min-width: 360px) { .lc-result { min-height: 504px; } }
@media (min-width: 375px) { .lc-result { min-height: 438px; } }
@media (min-width: 390px) { .lc-result { min-height: 430px; } }
.lc-result:focus { outline: 2px solid rgba(226, 105, 13, .35); outline-offset: 2px; }
.lc-result-top { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; }
.lc-ring { position: relative; width: 116px; height: 116px; }
.lc-ring svg { width: 116px; height: 116px; transform: rotate(-90deg); display: block; }
.lc-ring circle { fill: none; stroke-width: 11; }
.lc-ring-track { stroke: #f3dcc4; }
.lc-ring-value { stroke: #d9465f; stroke: url(#lc-ring-grad); stroke-linecap: round; }
.lc-result[data-state="empty"] .lc-ring-value, html.lc-anim .lc-result[data-lc-intro] .lc-ring-value { stroke: transparent; }
html.lc-anim .lc-result[data-lc-intro] [data-lc-pct] { visibility: hidden; }
/* While the ring fills, the message, formula and buttons wait (their space is kept, so nothing moves). */
.lc-result[data-state="animating"] :is(.lc-label, .lc-text, .lc-actions, .lc-note),
html.lc-anim .lc-result[data-lc-intro] :is(.lc-label, .lc-text, .lc-actions, .lc-note) { visibility: hidden; }
.lc-ring strong span { font-variant-numeric: tabular-nums; }
.lc-ring strong { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.85rem; font-weight: 800; line-height: 1.05; color: #6a2313; }
.lc-ring svg.lc-ring-heart { position: absolute; left: 13%; top: 15%; width: 74%; height: 74%; transform: none; fill: #fcd6de; }
.lc-result:not([data-state="empty"]) .lc-ring svg.lc-ring-heart { fill: #f8b4c4; }
.lc-ring strong { z-index: 1; }
.lc-ring small { font-size: .68rem; font-weight: 700; letter-spacing: .02em; color: #8a4b2a; margin-top: 3px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-kind { font-size: .8rem !important; font-weight: 700; color: #8a4b2a; margin-bottom: 3px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-result p { margin: 0 !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-names { font-size: 1.08rem !important; font-weight: 700; color: #4a2a17; overflow-wrap: anywhere; }
.lc-names [aria-hidden="true"] { color: #d9465f; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-label { font-size: 1rem !important; font-weight: 700; color: #c2410c; margin-top: 4px !important; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-text { font-size: .95rem !important; line-height: 1.5 !important; color: #4f3e30; margin-top: 4px !important; }
.lc-result[data-state="empty"] .lc-actions { visibility: hidden; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-btn {
    min-height: 44px; padding: 0 14px; border-radius: 10px !important; border: 1.5px solid #e2b48a !important; background: #fff !important;
    color: #7a2e0e !important; font-weight: 700 !important; font-size: .95rem !important; cursor: pointer;
}
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-btn:focus-visible { outline: 3px solid #f2a65a !important; outline-offset: 2px; }
/* WhatsApp share: the first, green action under the ring. */
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-btn.lc-wa {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
    border: 0 !important; background: linear-gradient(90deg, #1a9e5c, #1fbf8f) !important; color: #fff !important;
}
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-btn.lc-wa:hover { background: #168a50 !important; }
.lc-wa svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
@media (max-width: 639px) { .lc-actions .lc-wa { flex: 1 1 100%; } }
.lc-status { font-size: .9rem; color: #2f6b2f; min-width: 1px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-note { margin-top: 10px !important; font-size: .85rem !important; line-height: 1.45 !important; color: #6f6356; }

/* Score list under the result: the range of the current result is marked (colour only, so nothing moves). */
.lc-scale { background: #fff; border: 1px solid #ecd9c3; border-radius: 16px; padding: 16px; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-scale h2 { font-size: 1.2rem !important; line-height: 1.3 !important; margin: 0 0 4px !important; color: #6a2313; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-scale-intro { margin: 0 !important; font-size: .95rem !important; color: #5d4b3a; }
.lc-scale-list { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 10px; }
.lc-scale-list li { padding: 10px 12px; border: 1px solid #f1dcc6; border-left: 4px solid #f3b6c4; border-radius: 12px; background: #fffdfb; }
.lc-scale-list li.is-on { border-color: #e05a7a; background: #fff1f4; }
.lc-scale-list strong { display: block; color: #6a2313; font-size: 1rem; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-scale-list p { margin: 4px 0 0 !important; font-size: .94rem !important; line-height: 1.55 !important; color: #4f3e30; }
:is(html#kl-fresh-root, html) body#page-top.public-site main.site-main .lc-scale .lc-small { margin: 0 !important; }
.lc-section { margin: 0 0 18px; }
.lc-steps { margin: 8px 0; padding-left: 1.2em; line-height: 1.7; }
.lc-small { font-size: .9rem; color: #6f6356; }
.lc-related { display: grid; gap: 10px; margin: 0 0 24px; }
.lc-related a, .calc-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #ecd9c3; border-radius: 14px; text-decoration: none; color: #2b1a10; min-height: 48px; }
.lc-related a { flex-direction: column; align-items: flex-start; gap: 2px; }
.lc-related a:hover, .calc-card:hover { border-color: #e2690d; }
.lc-related a:focus-visible, .calc-card:focus-visible { outline: 3px solid #f2a65a; outline-offset: 2px; }
.lc-related small { color: #6f6356; }

.calc-group { margin: 0 0 20px; }
.calc-cards { display: grid; gap: 10px; }
.calc-card-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #fdecd9; color: #c2410c; display: flex; align-items: center; justify-content: center; }
.calc-card-ico svg { width: 26px; height: 26px; }
.calc-card-copy { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.calc-card-copy strong { font-size: 1.05rem; color: #4a2a17; }
.calc-card-copy small { font-size: .82rem; color: #8a6d55; }
.calc-card-copy span { font-size: .92rem; color: #4f3e30; line-height: 1.45; }
.calc-card-go { color: #c2410c; font-weight: 700; }
.calc-card--featured { border-color: #e7a2ae; background: #fff6f7; }
.calc-card--featured .calc-card-ico { background: #fbe1e6; color: #c2304d; }

@media (min-width: 640px) {
    .lc-fields { grid-template-columns: 1fr 34px 1fr; align-items: start; gap: 10px; }
    .lc-heart { height: 50px; margin-top: 28px; align-items: center; }
    .lc-result { min-height: 265px; }
    .lc-result-top { grid-template-columns: 132px 1fr; }
    .lc-ring, .lc-ring svg { width: 132px; height: 132px; }
    .lc-related, .calc-cards { grid-template-columns: 1fr 1fr; }
}
.lc-related h2 { grid-column: 1 / -1; margin: 0; }
